@farris/ui-vue 1.2.4 → 1.2.5
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/accordion/index.esm.js +58 -58
- package/components/accordion/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +1 -1
- package/components/capsule/index.umd.cjs +1 -1
- package/components/common/index.esm.js +2 -2
- package/components/common/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +137 -135
- package/components/condition/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +2316 -2299
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +1929 -1920
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1 -1
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/style.css +1 -1
- package/components/designer-outline/index.esm.js +44 -42
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-toolbox/index.esm.js +28 -467
- package/components/designer-toolbox/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +836 -790
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +382 -378
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +1167 -1150
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +131 -127
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/style.css +1 -1
- package/components/list-view/index.esm.js +128 -124
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +2156 -2139
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +3137 -3120
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +511 -469
- package/components/nav/index.umd.cjs +2 -2
- package/components/order/index.esm.js +859 -815
- package/components/order/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +491 -449
- package/components/pagination/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +75 -73
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +63 -61
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2002 -1956
- package/components/schema-selector/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +165 -192
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2 -2
- package/components/tabs/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +95 -93
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +2316 -2299
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +296 -295
- package/components/tree-view/index.umd.cjs +1 -1
- package/farris.all.esm.js +2517 -2483
- package/farris.all.umd.cjs +7 -7
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/condition/index.d.ts +60 -1
- package/types/data-view/components/column-setting/column-setting.component.d.ts +2 -1
- package/types/data-view/composition/types.d.ts +2 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +3 -3
- package/types/list-view/src/composition/types.d.ts +1 -1
- package/types/message-box/index.d.ts +84 -1
- package/types/notify/index.d.ts +84 -1
- package/types/tree-grid/src/schema/column-resolver.d.ts +3 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var Ao = Object.defineProperty;
|
|
2
2
|
var Ho = (e, t, n) => t in e ? Ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var K = (e, t, n) => Ho(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as Oe, ref as F, computed as D, createVNode as h, Teleport as Go, createApp as on, onUnmounted as ut, inject as je, watch as
|
|
4
|
+
import { defineComponent as Oe, ref as F, computed as D, createVNode as h, Teleport as Go, createApp as on, onUnmounted as ut, inject as je, watch as oe, nextTick as Ue, onMounted as Re, withDirectives as pt, vShow as Wo, Fragment as Ke, mergeProps as ot, resolveComponent as Ne, createTextVNode as Ee, isVNode as an, vModelCheckbox as Lo, onBeforeUnmount as rn, reactive as ln, resolveDirective as zo, provide as sn, withModifiers as qo, vModelText as Uo } from "vue";
|
|
5
5
|
import { cloneDeep as lt } from "lodash-es";
|
|
6
6
|
import { resolveAppearance as Ko } from "@farris/ui-vue/components/dynamic-resolver";
|
|
7
7
|
import un from "@farris/ui-vue/components/tags";
|
|
8
8
|
import Xo from "@farris/ui-vue/components/popover";
|
|
9
9
|
import { useResizeObserver as mt } from "@vueuse/core";
|
|
10
|
-
import { useLoading as cn, useIdentify as kt, useGroupData as Tt, useFilter as dn, useHierarchy as Ot, usePagination as It, useDataView as Bt, useSelection as Vt, useSelectHierarchyItem as Yo, useDataViewContainerStyle as fn, useCommandColumn as pn, useColumn as mn, useSort as gn, useGroupColumn as vn, useEdit as Mt, useVisualDataBound as Pt, useVisualDataCell as Dt, useVisualDataRow as
|
|
11
|
-
import {
|
|
10
|
+
import { useLoading as cn, useIdentify as kt, useGroupData as Tt, useFilter as dn, useHierarchy as Ot, usePagination as It, useDataView as Bt, useSelection as Vt, useSelectHierarchyItem as Yo, useDataViewContainerStyle as fn, useCommandColumn as pn, useColumn as mn, useSort as gn, useGroupColumn as vn, useEdit as Mt, useVisualDataBound as Pt, useVisualDataCell as Dt, useVisualDataRow as Et, useVisualData as Rt, useCellPosition as hn, useSidebar as yn, useVirtualScroll as bn, useFitColumn as Cn, useFilterHistory as wn, useColumnFilter as Sn, useRow as _n, useDragColumn as Fn, getColumnHeader as xn, getSidebar as kn, getDisableMask as Tn, getHorizontalScrollbar as On, getVerticalScrollbar as In, getEmpty as Bn, useVisualGroupRow as Vn, useVisualSummaryRow as Mn, useCellContentStyle as Qo, getPagination as Zo, getSummary as Jo, getFilterPanel as ei, getGroupPanel as ti, useNavigation as ni } from "@farris/ui-vue/components/data-view";
|
|
11
|
+
import { F_MODAL_SERVICE_TOKEN as oi } from "@farris/ui-vue/components/modal";
|
|
12
12
|
import Pn from "@farris/ui-vue/components/transfer";
|
|
13
13
|
import Dn, { FTabPage as vt } from "@farris/ui-vue/components/tabs";
|
|
14
14
|
import ii, { FOrder as ai } from "@farris/ui-vue/components/order";
|
|
15
15
|
import ri from "@farris/ui-vue/components/condition";
|
|
16
16
|
import li, { FCheckBox as st } from "@farris/ui-vue/components/checkbox";
|
|
17
17
|
import si, { FFilterBar as ui } from "@farris/ui-vue/components/filter-bar";
|
|
18
|
-
import
|
|
18
|
+
import En from "@farris/ui-vue/components/pagination";
|
|
19
19
|
import ci, { FDynamicFormGroup as di } from "@farris/ui-vue/components/dynamic-form";
|
|
20
20
|
import Ct from "@farris/ui-vue/components/combo-list";
|
|
21
21
|
import "bignumber.js";
|
|
@@ -38,8 +38,8 @@ import Vi from "@farris/ui-vue/components/image-cropper";
|
|
|
38
38
|
import Mi from "@farris/ui-vue/components/input-group";
|
|
39
39
|
import Pi from "@farris/ui-vue/components/layout";
|
|
40
40
|
import Di from "@farris/ui-vue/components/list-nav";
|
|
41
|
-
import
|
|
42
|
-
import
|
|
41
|
+
import Ei from "@farris/ui-vue/components/list-view";
|
|
42
|
+
import Ri from "@farris/ui-vue/components/lookup";
|
|
43
43
|
import $i from "@farris/ui-vue/components/mapping-editor";
|
|
44
44
|
import Ni from "@farris/ui-vue/components/nav";
|
|
45
45
|
import ji from "@farris/ui-vue/components/number-range";
|
|
@@ -69,13 +69,13 @@ import sa from "@farris/ui-vue/components/textarea";
|
|
|
69
69
|
import ua from "@farris/ui-vue/components/schema-selector";
|
|
70
70
|
import "@farris/ui-vue/components/external-container";
|
|
71
71
|
import { CHECKBOX_CONTEXT as ca, useCheck as da } from "@farris/ui-vue/components/common";
|
|
72
|
-
const
|
|
72
|
+
const Rn = {}, $n = {};
|
|
73
73
|
function $t(e) {
|
|
74
74
|
const { properties: t, title: n } = e, o = Object.keys(t).reduce((i, a) => (i[a] = t[a].type === "object" && t[a].properties ? $t(t[a]) : lt(t[a].default), i), {});
|
|
75
75
|
return o.id = `${n}-${Date.now()}`, o;
|
|
76
76
|
}
|
|
77
77
|
function wt(e, t = {}) {
|
|
78
|
-
const n =
|
|
78
|
+
const n = Rn[e];
|
|
79
79
|
if (n) {
|
|
80
80
|
let o = $t(n);
|
|
81
81
|
const i = $n[e];
|
|
@@ -160,7 +160,7 @@ function ga(e = {}) {
|
|
|
160
160
|
}
|
|
161
161
|
return { parseValueSchema: d };
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const te = {
|
|
164
164
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
165
165
|
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
166
166
|
ToolBar: { type: "ToolBar", name: "工具栏", icon: "ButtonGroup" },
|
|
@@ -274,7 +274,7 @@ const ne = {
|
|
|
274
274
|
}, va = {}, ha = {};
|
|
275
275
|
ga();
|
|
276
276
|
function Ae(e, t, n = /* @__PURE__ */ new Map(), o = (r, l, d) => l, i = {}, a = (r) => r) {
|
|
277
|
-
return
|
|
277
|
+
return Rn[t.title] = t, $n[t.title] = o, va[t.title] = i, ha[t.title] = a, (r = {}) => {
|
|
278
278
|
const l = ma(r, t, n), d = Object.keys(e).reduce((m, c) => (m[c] = e[c].default, m), {});
|
|
279
279
|
return Object.assign(d, l);
|
|
280
280
|
};
|
|
@@ -699,13 +699,13 @@ const Sa = "https://json-schema.org/draft/2020-12/schema", _a = "https://farris-
|
|
|
699
699
|
beforeOpen: { type: Function, default: null }
|
|
700
700
|
};
|
|
701
701
|
Ae(Nn, Ia, Ca, wa, Da);
|
|
702
|
-
const
|
|
702
|
+
const Ea = {
|
|
703
703
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
704
704
|
host: { type: Object },
|
|
705
705
|
backgroundColor: { type: String, default: "" }
|
|
706
|
-
},
|
|
706
|
+
}, Ra = /* @__PURE__ */ Oe({
|
|
707
707
|
name: "FOverlay",
|
|
708
|
-
props:
|
|
708
|
+
props: Ea,
|
|
709
709
|
emits: ["click"],
|
|
710
710
|
setup(e, t) {
|
|
711
711
|
const n = F(e.popupContentPosition), o = F(e.host), i = D(() => ({
|
|
@@ -771,7 +771,7 @@ function Na(e) {
|
|
|
771
771
|
document.body.removeChild(t);
|
|
772
772
|
});
|
|
773
773
|
const a = $a(e);
|
|
774
|
-
return () => h(
|
|
774
|
+
return () => h(Ra, {
|
|
775
775
|
"popup-content-position": e.popupPosition,
|
|
776
776
|
host: e.host,
|
|
777
777
|
onClick: i,
|
|
@@ -844,7 +844,7 @@ function Ga(e, t, n, o, i, a) {
|
|
|
844
844
|
function m(_) {
|
|
845
845
|
r.value = _;
|
|
846
846
|
}
|
|
847
|
-
|
|
847
|
+
oe(i, () => {
|
|
848
848
|
m(!!i.value);
|
|
849
849
|
});
|
|
850
850
|
function c(_) {
|
|
@@ -891,7 +891,7 @@ function Wa(e, t, n, o, i) {
|
|
|
891
891
|
function S(x) {
|
|
892
892
|
l.value = !1, v(x, !0);
|
|
893
893
|
}
|
|
894
|
-
|
|
894
|
+
oe(
|
|
895
895
|
() => e.modelValue,
|
|
896
896
|
(x) => {
|
|
897
897
|
n.value = x;
|
|
@@ -983,7 +983,7 @@ function za(e, t, n) {
|
|
|
983
983
|
onMouseDownTextBox: g,
|
|
984
984
|
onTextBoxValueChange: v
|
|
985
985
|
} = n;
|
|
986
|
-
return
|
|
986
|
+
return Re(() => {
|
|
987
987
|
var S, C;
|
|
988
988
|
e.selectOnCreated && ((S = o.value) == null || S.select()), e.focusOnCreated && ((C = o.value) == null || C.focus());
|
|
989
989
|
}), () => h("input", {
|
|
@@ -1117,7 +1117,7 @@ const An = /* @__PURE__ */ Oe({
|
|
|
1117
1117
|
return e.multiSelect && e.inputType === "tag" ? qa(e, i, u) : za(e, i, u);
|
|
1118
1118
|
}
|
|
1119
1119
|
let O = w();
|
|
1120
|
-
|
|
1120
|
+
oe([() => e.multiSelect, () => e.inputType], () => {
|
|
1121
1121
|
O = w();
|
|
1122
1122
|
});
|
|
1123
1123
|
const {
|
|
@@ -1137,7 +1137,7 @@ const An = /* @__PURE__ */ Oe({
|
|
|
1137
1137
|
return e.buttonBehavior === "Modal" ? (x = m.modalRef.value) == null ? void 0 : x.value : null;
|
|
1138
1138
|
}
|
|
1139
1139
|
};
|
|
1140
|
-
return
|
|
1140
|
+
return Re(() => {
|
|
1141
1141
|
n.value.componentInstance = B, window.onresize = () => {
|
|
1142
1142
|
document.body.click();
|
|
1143
1143
|
};
|
|
@@ -2119,7 +2119,7 @@ const ur = "https://json-schema.org/draft/2020-12/schema", cr = "https://farris-
|
|
|
2119
2119
|
/** 显示设置按钮 */
|
|
2120
2120
|
showSetting: { type: Boolean, default: !1 }
|
|
2121
2121
|
}, Hn = Ae(jt, vr, ir, sr, wr), Sr = ba();
|
|
2122
|
-
var De = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(De || {}), qe = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(qe || {}), it = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(it || {}),
|
|
2122
|
+
var De = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(De || {}), qe = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(qe || {}), it = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(it || {}), j = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.filterable = 1] = "filterable", e[e.sortable = 2] = "sortable", e[e.filtered = 4] = "filtered", e[e.sorted = 8] = "sorted", e[e.ascending = 16] = "ascending", e[e.descending = 32] = "descending", e))(j || {});
|
|
2123
2123
|
function _r(e, t, n, o, i, a, r) {
|
|
2124
2124
|
const l = [{
|
|
2125
2125
|
name: "升序",
|
|
@@ -2134,9 +2134,9 @@ function _r(e, t, n, o, i, a, r) {
|
|
|
2134
2134
|
icon: "f-icon f-icon-col-descendingorder"
|
|
2135
2135
|
}];
|
|
2136
2136
|
function d(C) {
|
|
2137
|
-
const y = C.status, w = (y &
|
|
2138
|
-
let b = w ? y ^
|
|
2139
|
-
return b = O ? b ^
|
|
2137
|
+
const y = C.status, w = (y & j.sorted) === j.sorted, O = (y & j.ascending) === j.ascending, f = (y & j.descending) === j.descending;
|
|
2138
|
+
let b = w ? y ^ j.sorted : y;
|
|
2139
|
+
return b = O ? b ^ j.ascending : b, b = f ? b ^ j.descending : b, b;
|
|
2140
2140
|
}
|
|
2141
2141
|
function m(C) {
|
|
2142
2142
|
C.sortType = "none", C.status = d(C);
|
|
@@ -2147,14 +2147,14 @@ function _r(e, t, n, o, i, a, r) {
|
|
|
2147
2147
|
y.filterValue = null, t.removeFilter(`field_filter_${y.field}`), m(y);
|
|
2148
2148
|
}
|
|
2149
2149
|
function u(C) {
|
|
2150
|
-
const y = d(C), w = C.sortType === "none" ? y : C.sortType === "asc" ? y |
|
|
2150
|
+
const y = d(C), w = C.sortType === "none" ? y : C.sortType === "asc" ? y | j.sorted | j.ascending : y | j.sorted | j.descending;
|
|
2151
2151
|
C.status = w;
|
|
2152
2152
|
const O = C.column;
|
|
2153
2153
|
O && (O.sort = C.sortType, O.sortOrder = C.sortType !== "none" ? O.sortOrder : 0, C.status = w, e.applyColumnSorter(t, a));
|
|
2154
2154
|
}
|
|
2155
2155
|
function s(C) {
|
|
2156
|
-
const y = (C.status &
|
|
2157
|
-
C.status = y ? C.status ^
|
|
2156
|
+
const y = (C.status & j.filtered) === j.filtered;
|
|
2157
|
+
C.status = y ? C.status ^ j.filtered : C.status | j.filtered;
|
|
2158
2158
|
const w = C.filterValue != null && C.filterValue !== "" && C.filter;
|
|
2159
2159
|
t.refresh();
|
|
2160
2160
|
}
|
|
@@ -2162,7 +2162,7 @@ function _r(e, t, n, o, i, a, r) {
|
|
|
2162
2162
|
y.showPopover = !1, y.filterHistory = void 0, i.updateFilterHistory(y, y.filterValue), s(y), u(y), r.reCalculateVisualDataRows();
|
|
2163
2163
|
}
|
|
2164
2164
|
function g(C) {
|
|
2165
|
-
const y = C.status, w = (y &
|
|
2165
|
+
const y = C.status, w = (y & j.sorted) === j.sorted, O = w && (y & j.ascending) === j.ascending;
|
|
2166
2166
|
C.sortType = w ? O ? "asc" : "desc" : "none", a.updateSorter(C, t);
|
|
2167
2167
|
}
|
|
2168
2168
|
function v(C, y) {
|
|
@@ -2182,7 +2182,7 @@ function _r(e, t, n, o, i, a, r) {
|
|
|
2182
2182
|
class: "fv-column-filter-section"
|
|
2183
2183
|
}, [h("div", {
|
|
2184
2184
|
class: "fv-column-filter-section-title"
|
|
2185
|
-
}, [
|
|
2185
|
+
}, [Ee("筛选")]), h("div", {
|
|
2186
2186
|
class: "fv-column-filter-section-editor"
|
|
2187
2187
|
}, [n.getFilterEditor(C)])]), h("div", {
|
|
2188
2188
|
class: "fv-column-sort-filter-footer"
|
|
@@ -2193,20 +2193,23 @@ function _r(e, t, n, o, i, a, r) {
|
|
|
2193
2193
|
type: "link",
|
|
2194
2194
|
onClick: (y) => c(y, C)
|
|
2195
2195
|
}, {
|
|
2196
|
-
default: () => [
|
|
2196
|
+
default: () => [Ee("清空")]
|
|
2197
2197
|
})]), h("div", {
|
|
2198
2198
|
class: "fv-column-confirm-section"
|
|
2199
2199
|
}, [h(Ne("f-button"), {
|
|
2200
|
-
|
|
2200
|
+
customClass: {
|
|
2201
|
+
"f-btn-ml": !0
|
|
2202
|
+
},
|
|
2203
|
+
size: "small",
|
|
2201
2204
|
onClick: (y) => _(y, C)
|
|
2202
2205
|
}, {
|
|
2203
|
-
default: () => [
|
|
2206
|
+
default: () => [Ee("确定")]
|
|
2204
2207
|
}), h(Ne("f-button"), {
|
|
2205
|
-
|
|
2208
|
+
size: "small",
|
|
2206
2209
|
type: "secondary",
|
|
2207
2210
|
onClick: (y) => v(y, C)
|
|
2208
2211
|
}, {
|
|
2209
|
-
default: () => [
|
|
2212
|
+
default: () => [Ee("取消")]
|
|
2210
2213
|
})])])]);
|
|
2211
2214
|
}
|
|
2212
2215
|
return {
|
|
@@ -2221,29 +2224,29 @@ function xr(e, t, n, o, i, a, r, l, d, m, c) {
|
|
|
2221
2224
|
const T = p.status;
|
|
2222
2225
|
return {
|
|
2223
2226
|
"fv-column-handler": !0,
|
|
2224
|
-
"fv-column-handler-active": (T &
|
|
2227
|
+
"fv-column-handler-active": (T & j.filtered) === j.filtered || (T & j.sorted) === j.sorted || p.showPopover
|
|
2225
2228
|
};
|
|
2226
2229
|
}
|
|
2227
2230
|
function s(p) {
|
|
2228
|
-
return (p.status &
|
|
2231
|
+
return (p.status & j.sortable) === j.sortable && (p.status & j.filterable) === j.none && (p.status & j.sorted) === j.none;
|
|
2229
2232
|
}
|
|
2230
2233
|
function _(p) {
|
|
2231
|
-
return (p.status &
|
|
2234
|
+
return (p.status & j.sortable) === j.sortable && (p.status & j.filterable) === j.none && (p.status & j.sorted) === j.sorted && (p.status & j.ascending) === j.ascending;
|
|
2232
2235
|
}
|
|
2233
2236
|
function g(p) {
|
|
2234
|
-
return (p.status &
|
|
2237
|
+
return (p.status & j.sortable) === j.sortable && (p.status & j.filterable) === j.none && (p.status & j.sorted) === j.sorted && (p.status & j.descending) === j.descending;
|
|
2235
2238
|
}
|
|
2236
2239
|
function v(p) {
|
|
2237
|
-
return (p.status &
|
|
2240
|
+
return (p.status & j.sortable) === j.none && (p.status & j.filterable) === j.filterable && (p.status & j.sorted) === j.none;
|
|
2238
2241
|
}
|
|
2239
2242
|
function S(p) {
|
|
2240
|
-
return (p.status &
|
|
2243
|
+
return (p.status & j.sortable) === j.sortable && (p.status & j.filterable) === j.filterable && (p.status & j.sorted) === j.none;
|
|
2241
2244
|
}
|
|
2242
2245
|
function C(p) {
|
|
2243
|
-
return (p.status &
|
|
2246
|
+
return (p.status & j.sortable) === j.sortable && (p.status & j.filterable) === j.filterable && (p.status & j.sorted) === j.sorted && (p.status & j.ascending) === j.ascending;
|
|
2244
2247
|
}
|
|
2245
2248
|
function y(p) {
|
|
2246
|
-
return (p.status &
|
|
2249
|
+
return (p.status & j.sortable) === j.sortable && (p.status & j.filterable) === j.filterable && (p.status & j.sorted) === j.sorted && (p.status & j.descending) === j.descending;
|
|
2247
2250
|
}
|
|
2248
2251
|
const w = function(p) {
|
|
2249
2252
|
return {
|
|
@@ -2256,7 +2259,7 @@ function xr(e, t, n, o, i, a, r, l, d, m, c) {
|
|
|
2256
2259
|
"f-icon-col-filterandascending": C(p),
|
|
2257
2260
|
"f-icon-col-filteranddescending": y(p)
|
|
2258
2261
|
};
|
|
2259
|
-
}, O = /* @__PURE__ */ new Map([[
|
|
2262
|
+
}, O = /* @__PURE__ */ new Map([[j.sortable, j.sortable | j.sorted | j.ascending], [j.sortable | j.sorted | j.ascending, j.sortable | j.sorted | j.descending], [j.sortable | j.sorted | j.descending, j.sortable]]), {
|
|
2260
2263
|
renderFilterContainer: f
|
|
2261
2264
|
} = _r(i, a, r, l, d, m, c), b = F();
|
|
2262
2265
|
function M(p, T) {
|
|
@@ -2288,18 +2291,18 @@ function xr(e, t, n, o, i, a, r, l, d, m, c) {
|
|
|
2288
2291
|
}
|
|
2289
2292
|
function k(p) {
|
|
2290
2293
|
const T = p.status;
|
|
2291
|
-
if ((T &
|
|
2292
|
-
const
|
|
2293
|
-
|
|
2294
|
+
if ((T & j.sortable) === j.sortable && (T & j.filterable) === j.none && O.has(T)) {
|
|
2295
|
+
const R = O.get(T), N = (R & j.sorted) === j.sorted, $ = (R & j.ascending) === j.ascending, H = (R & j.descending) === j.descending, W = p.column;
|
|
2296
|
+
W && (W.sort = $ ? "asc" : H ? "desc" : "none", W.sortOrder = N ? W.sortOrder : 0, p.status = R, i.applyColumnSorter(a, m), c.reCalculateVisualDataRows());
|
|
2294
2297
|
}
|
|
2295
2298
|
}
|
|
2296
2299
|
function I(p, T, P) {
|
|
2297
|
-
k(T), M(T, P), (T.status &
|
|
2300
|
+
k(T), M(T, P), (T.status & j.filterable) === j.filterable && x(p, T);
|
|
2298
2301
|
}
|
|
2299
2302
|
function V(p, T, P) {
|
|
2300
2303
|
return [h("span", {
|
|
2301
2304
|
class: u(p),
|
|
2302
|
-
onClick: (
|
|
2305
|
+
onClick: (R) => I(R, p, P)
|
|
2303
2306
|
}, [h("i", {
|
|
2304
2307
|
class: w(p)
|
|
2305
2308
|
}, null), p && p.column && p.sortType !== "none" && (p.column.sortOrder || ""), p.showPopover && B(p)])];
|
|
@@ -2308,64 +2311,66 @@ function xr(e, t, n, o, i, a, r, l, d, m, c) {
|
|
|
2308
2311
|
renderHeaderCellHandler: V
|
|
2309
2312
|
};
|
|
2310
2313
|
}
|
|
2311
|
-
function kr(e, t, n, o, i, a, r, l, d) {
|
|
2312
|
-
const
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2314
|
+
function kr(e, t, n, o, i, a, r, l, d, m) {
|
|
2315
|
+
const c = "id", u = F();
|
|
2316
|
+
let s;
|
|
2317
|
+
const {
|
|
2318
|
+
applySortableColumns: _,
|
|
2319
|
+
collectionFilterableColumns: g,
|
|
2320
|
+
collectionSortableColumns: v,
|
|
2321
|
+
columnContext: S,
|
|
2322
|
+
updateColumnSettingIcon: C
|
|
2318
2323
|
} = o, {
|
|
2319
|
-
conditions:
|
|
2324
|
+
conditions: y
|
|
2320
2325
|
} = a, {
|
|
2321
|
-
calculateColumnsSize:
|
|
2326
|
+
calculateColumnsSize: w
|
|
2322
2327
|
} = r, {
|
|
2323
|
-
fitHorizontalScroll:
|
|
2324
|
-
} = d,
|
|
2325
|
-
id:
|
|
2326
|
-
name:
|
|
2327
|
-
}))),
|
|
2328
|
-
id:
|
|
2329
|
-
name:
|
|
2330
|
-
}))),
|
|
2331
|
-
id:
|
|
2332
|
-
name:
|
|
2333
|
-
order:
|
|
2334
|
-
}))),
|
|
2335
|
-
id:
|
|
2336
|
-
code:
|
|
2337
|
-
labelCode:
|
|
2338
|
-
name:
|
|
2339
|
-
editor:
|
|
2328
|
+
fitHorizontalScroll: O
|
|
2329
|
+
} = d, f = F([]), b = D(() => !!f.value.length), M = D(() => S.value.primaryColumns.map((X) => ({
|
|
2330
|
+
id: X.field,
|
|
2331
|
+
name: X.title
|
|
2332
|
+
}))), B = D(() => S.value.primaryColumns.filter((X) => X.visible).map((X) => ({
|
|
2333
|
+
id: X.field,
|
|
2334
|
+
name: X.title
|
|
2335
|
+
}))), x = D(() => v().map((X) => ({
|
|
2336
|
+
id: X.field,
|
|
2337
|
+
name: X.title,
|
|
2338
|
+
order: X.sort
|
|
2339
|
+
}))), k = D(() => g().map((X) => ({
|
|
2340
|
+
id: X.field,
|
|
2341
|
+
code: X.field,
|
|
2342
|
+
labelCode: X.field,
|
|
2343
|
+
name: X.title,
|
|
2344
|
+
editor: X.editor,
|
|
2340
2345
|
// || ({ type: useFilterComposition.getFilterEditorType(filterableColumn) } as EditorConfig),
|
|
2341
2346
|
value: {},
|
|
2342
2347
|
visible: !0
|
|
2343
2348
|
})));
|
|
2344
|
-
function
|
|
2345
|
-
|
|
2349
|
+
function I() {
|
|
2350
|
+
s == null || s.destroy();
|
|
2346
2351
|
}
|
|
2347
|
-
function
|
|
2348
|
-
const
|
|
2349
|
-
return
|
|
2352
|
+
function V() {
|
|
2353
|
+
const X = /* @__PURE__ */ new Map();
|
|
2354
|
+
return S.value.primaryColumns.reduce((le, G) => (G.visible = !1, le.set(G.field, G), le), X), X;
|
|
2350
2355
|
}
|
|
2351
|
-
function
|
|
2352
|
-
return
|
|
2353
|
-
id:
|
|
2356
|
+
function p(X, le) {
|
|
2357
|
+
return X.map(({
|
|
2358
|
+
id: q
|
|
2354
2359
|
}) => {
|
|
2355
|
-
const
|
|
2356
|
-
return
|
|
2360
|
+
const fe = le.get(q);
|
|
2361
|
+
return fe.visible = !0, le.delete(q), fe;
|
|
2357
2362
|
});
|
|
2358
2363
|
}
|
|
2359
|
-
function
|
|
2360
|
-
const
|
|
2361
|
-
|
|
2362
|
-
|
|
2364
|
+
function T(X) {
|
|
2365
|
+
const le = V(), G = p(X, le);
|
|
2366
|
+
S.value.primaryColumns = [...G, ...Array.from(le.values())], C(), w(), Ue(() => {
|
|
2367
|
+
O();
|
|
2363
2368
|
});
|
|
2364
2369
|
}
|
|
2365
|
-
function
|
|
2366
|
-
|
|
2370
|
+
function P(X) {
|
|
2371
|
+
f.value = X;
|
|
2367
2372
|
}
|
|
2368
|
-
function
|
|
2373
|
+
function E(X) {
|
|
2369
2374
|
return h("div", {
|
|
2370
2375
|
class: "fv-grid-settings"
|
|
2371
2376
|
}, [h(Dn, {
|
|
@@ -2376,7 +2381,7 @@ function kr(e, t, n, o, i, a, r, l, d) {
|
|
|
2376
2381
|
class: "modal-title"
|
|
2377
2382
|
}, [h("span", {
|
|
2378
2383
|
class: "modal-title-label"
|
|
2379
|
-
}, [
|
|
2384
|
+
}, [Ee("列配置")])]),
|
|
2380
2385
|
default: () => [h(vt, {
|
|
2381
2386
|
id: "display-columns",
|
|
2382
2387
|
title: "显示列",
|
|
@@ -2384,10 +2389,10 @@ function kr(e, t, n, o, i, a, r, l, d) {
|
|
|
2384
2389
|
}, {
|
|
2385
2390
|
default: () => [h(Pn, {
|
|
2386
2391
|
style: "height: 480px",
|
|
2387
|
-
"identify-field":
|
|
2388
|
-
"data-source":
|
|
2389
|
-
selections:
|
|
2390
|
-
onChange:
|
|
2392
|
+
"identify-field": c,
|
|
2393
|
+
"data-source": M.value,
|
|
2394
|
+
selections: B.value,
|
|
2395
|
+
onChange: T
|
|
2391
2396
|
}, null)]
|
|
2392
2397
|
}), h(vt, {
|
|
2393
2398
|
id: "column-order",
|
|
@@ -2396,9 +2401,9 @@ function kr(e, t, n, o, i, a, r, l, d) {
|
|
|
2396
2401
|
}, {
|
|
2397
2402
|
default: () => [h(ai, {
|
|
2398
2403
|
style: "height: 480px",
|
|
2399
|
-
"data-source":
|
|
2400
|
-
items:
|
|
2401
|
-
onChange:
|
|
2404
|
+
"data-source": M.value,
|
|
2405
|
+
items: x.value,
|
|
2406
|
+
onChange: P
|
|
2402
2407
|
}, null)]
|
|
2403
2408
|
}), h(vt, {
|
|
2404
2409
|
id: "column-filter",
|
|
@@ -2406,77 +2411,80 @@ function kr(e, t, n, o, i, a, r, l, d) {
|
|
|
2406
2411
|
class: "container"
|
|
2407
2412
|
}, {
|
|
2408
2413
|
default: () => [h(ri, {
|
|
2409
|
-
ref:
|
|
2414
|
+
ref: u,
|
|
2410
2415
|
style: "height: 480px",
|
|
2411
|
-
fields:
|
|
2412
|
-
conditions:
|
|
2416
|
+
fields: k.value,
|
|
2417
|
+
conditions: y.value
|
|
2413
2418
|
}, null)]
|
|
2414
2419
|
})],
|
|
2415
2420
|
headerSuffix: () => h("div", {
|
|
2416
2421
|
class: "f-btn-icon f-bare",
|
|
2417
|
-
onClick: (
|
|
2422
|
+
onClick: (le) => I()
|
|
2418
2423
|
}, [h("span", {
|
|
2419
2424
|
class: "f-icon modal_close"
|
|
2420
2425
|
}, null)])
|
|
2421
2426
|
})]);
|
|
2422
2427
|
}
|
|
2423
|
-
function
|
|
2424
|
-
const
|
|
2425
|
-
return
|
|
2428
|
+
function R() {
|
|
2429
|
+
const X = /* @__PURE__ */ new Map();
|
|
2430
|
+
return v().reduce((le, G) => (G.sort = "none", G.sortOrder = 0, le.set(G.field, G), le), X), X;
|
|
2426
2431
|
}
|
|
2427
|
-
function
|
|
2428
|
-
return
|
|
2429
|
-
const
|
|
2430
|
-
return
|
|
2432
|
+
function N(X) {
|
|
2433
|
+
return f.value.filter((G) => G.id && G.order).map((G, q) => {
|
|
2434
|
+
const fe = q + 1, re = X.get(G.id);
|
|
2435
|
+
return re && (re.sort = G.order, re.sortOrder = fe), re;
|
|
2431
2436
|
});
|
|
2432
2437
|
}
|
|
2433
|
-
function
|
|
2434
|
-
if (
|
|
2435
|
-
const
|
|
2436
|
-
|
|
2438
|
+
function $() {
|
|
2439
|
+
if (b.value) {
|
|
2440
|
+
const X = R(), le = N(X);
|
|
2441
|
+
_(le, i, l), d.reCalculateVisualDataRows(), w();
|
|
2437
2442
|
}
|
|
2438
2443
|
}
|
|
2439
|
-
function
|
|
2440
|
-
|
|
2444
|
+
function H() {
|
|
2445
|
+
u.value && (y.value = u.value.getConditions(), i.refresh(), d.reCalculateVisualDataRows());
|
|
2441
2446
|
}
|
|
2442
|
-
function
|
|
2443
|
-
|
|
2447
|
+
function W() {
|
|
2448
|
+
$(), H();
|
|
2444
2449
|
}
|
|
2445
|
-
function
|
|
2450
|
+
function ae() {
|
|
2446
2451
|
}
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
renderSettingsPanel: T
|
|
2451
|
-
};
|
|
2452
|
-
}
|
|
2453
|
-
function Tr(e, t, n, o, i, a, r, l, d) {
|
|
2454
|
-
function m(u) {
|
|
2455
|
-
const s = "Settings", {
|
|
2456
|
-
acceptCallback: S,
|
|
2457
|
-
rejectCallback: C,
|
|
2458
|
-
renderSettingsPanel: y
|
|
2459
|
-
} = kr(e, t, n, o, i, a, r, l, d);
|
|
2460
|
-
oi.show({
|
|
2461
|
-
title: s,
|
|
2452
|
+
function me() {
|
|
2453
|
+
s = m.open({
|
|
2454
|
+
title: "",
|
|
2462
2455
|
width: 800,
|
|
2463
2456
|
showButtons: !0,
|
|
2464
2457
|
showHeader: !1,
|
|
2465
|
-
render:
|
|
2466
|
-
acceptCallback:
|
|
2467
|
-
rejectCallback:
|
|
2458
|
+
render: E,
|
|
2459
|
+
acceptCallback: W,
|
|
2460
|
+
rejectCallback: ae
|
|
2468
2461
|
});
|
|
2469
2462
|
}
|
|
2470
|
-
|
|
2463
|
+
return {
|
|
2464
|
+
acceptCallback: W,
|
|
2465
|
+
rejectCallback: ae,
|
|
2466
|
+
renderSettingsPanel: E,
|
|
2467
|
+
openSettingPanel: me
|
|
2468
|
+
};
|
|
2469
|
+
}
|
|
2470
|
+
function Tr(e, t, n, o, i, a, r, l, d) {
|
|
2471
|
+
const m = je(oi);
|
|
2472
|
+
function c(s) {
|
|
2473
|
+
const {
|
|
2474
|
+
openSettingPanel: _
|
|
2475
|
+
} = kr(e, t, n, o, i, a, r, l, d, m);
|
|
2476
|
+
_();
|
|
2477
|
+
}
|
|
2478
|
+
function u() {
|
|
2471
2479
|
return h("span", {
|
|
2472
2480
|
class: "fv-grid-settings-icon",
|
|
2473
|
-
onClick:
|
|
2481
|
+
onClick: c
|
|
2474
2482
|
}, [h("i", {
|
|
2475
2483
|
class: "f-icon f-icon-home-setup"
|
|
2476
2484
|
}, null)]);
|
|
2477
2485
|
}
|
|
2478
2486
|
return {
|
|
2479
|
-
renderGridSettingsIcon:
|
|
2487
|
+
renderGridSettingsIcon: u
|
|
2480
2488
|
};
|
|
2481
2489
|
}
|
|
2482
2490
|
function Or(e, t, n, o) {
|
|
@@ -2530,62 +2538,62 @@ function Ir(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C) {
|
|
|
2530
2538
|
resizeHandleStyle: T,
|
|
2531
2539
|
resizeOverlayStyle: P
|
|
2532
2540
|
} = Or(e, k, c, v), {
|
|
2533
|
-
gridHeaderColumnsStyle:
|
|
2534
|
-
leftFixedGridHeaderColumnsStyle:
|
|
2541
|
+
gridHeaderColumnsStyle: E,
|
|
2542
|
+
leftFixedGridHeaderColumnsStyle: R,
|
|
2535
2543
|
rightFixedGridHeaderColumnsStyle: N
|
|
2536
2544
|
} = v, {
|
|
2537
2545
|
dragstart: $,
|
|
2538
|
-
dragenter:
|
|
2539
|
-
dragover:
|
|
2540
|
-
dragend:
|
|
2541
|
-
} = r,
|
|
2542
|
-
function
|
|
2543
|
-
const
|
|
2544
|
-
height: `${
|
|
2545
|
-
left: `${
|
|
2546
|
-
top: `${(
|
|
2547
|
-
width: `${
|
|
2546
|
+
dragenter: H,
|
|
2547
|
+
dragover: W,
|
|
2548
|
+
dragend: ae
|
|
2549
|
+
} = r, me = D(() => y.value || M.value || b.value), X = k.value.defaultColumnWidth, le = 32, G = /* @__PURE__ */ new Map([[0, 0]]);
|
|
2550
|
+
function q(A, de) {
|
|
2551
|
+
const U = G.get(de) || 0, Y = {
|
|
2552
|
+
height: `${A.depth * le}px`,
|
|
2553
|
+
left: `${A.left}px`,
|
|
2554
|
+
top: `${(A.layer - 1) * le}px`,
|
|
2555
|
+
width: `${A.actualWidth}px`
|
|
2548
2556
|
};
|
|
2549
|
-
return k.value.headerDepth > 1 && (
|
|
2557
|
+
return k.value.headerDepth > 1 && (Y["line-height"] = `${A.depth * le}px`), G.set(de + 1, U + (A.actualWidth || X)), Y;
|
|
2550
2558
|
}
|
|
2551
|
-
const
|
|
2559
|
+
const fe = D(() => ({
|
|
2552
2560
|
"fv-grid-header": !0,
|
|
2553
2561
|
"fv-grid-header-group-columns": k.value.headerDepth > 1
|
|
2554
|
-
})),
|
|
2555
|
-
height: `${k.value.headerDepth *
|
|
2556
|
-
})),
|
|
2557
|
-
return (
|
|
2562
|
+
})), re = D(() => ({
|
|
2563
|
+
height: `${k.value.headerDepth * le}px`
|
|
2564
|
+
})), ue = function(A) {
|
|
2565
|
+
return (A.status & j.sortable) === j.sortable || (A.status & j.filterable) === j.filterable;
|
|
2558
2566
|
}, {
|
|
2559
|
-
renderHeaderCellHandler:
|
|
2560
|
-
} = xr(e, t, n, o, i, a, l, d, m, g, v), Be = function(
|
|
2561
|
-
return e.showSetting && !!
|
|
2567
|
+
renderHeaderCellHandler: ye
|
|
2568
|
+
} = xr(e, t, n, o, i, a, l, d, m, g, v), Be = function(A) {
|
|
2569
|
+
return e.showSetting && !!A.showSetting;
|
|
2562
2570
|
}, {
|
|
2563
|
-
renderGridSettingsIcon:
|
|
2571
|
+
renderGridSettingsIcon: Ce
|
|
2564
2572
|
} = Tr(e, t, S, i, a, d, c, g, v);
|
|
2565
|
-
function
|
|
2573
|
+
function ce(A, de, U) {
|
|
2566
2574
|
return h("div", {
|
|
2567
2575
|
class: "fv-grid-header-cell",
|
|
2568
|
-
style:
|
|
2576
|
+
style: q(A, U),
|
|
2569
2577
|
draggable: "true",
|
|
2570
|
-
onDragstart: (
|
|
2571
|
-
onDragenter: (
|
|
2572
|
-
onDragend: (
|
|
2573
|
-
onDragover: (
|
|
2578
|
+
onDragstart: (Y) => $(Y, A, U),
|
|
2579
|
+
onDragenter: (Y) => H(Y, U),
|
|
2580
|
+
onDragend: (Y) => ae(Y, A),
|
|
2581
|
+
onDragover: (Y) => W(Y, U)
|
|
2574
2582
|
}, [h("span", {
|
|
2575
2583
|
class: "fv-column-title"
|
|
2576
|
-
}, [
|
|
2584
|
+
}, [A.title]), ue(A) && ye(A, U, de), Be(A) && Ce(), A.resizable && h("span", {
|
|
2577
2585
|
class: "fv-column-resize-bar",
|
|
2578
|
-
onMousedown: (
|
|
2586
|
+
onMousedown: (Y) => p(Y, A.field)
|
|
2579
2587
|
}, null)]);
|
|
2580
2588
|
}
|
|
2581
|
-
function
|
|
2582
|
-
return
|
|
2583
|
-
const
|
|
2584
|
-
if (
|
|
2585
|
-
const
|
|
2586
|
-
|
|
2589
|
+
function ve(A) {
|
|
2590
|
+
return A.map((de, U) => {
|
|
2591
|
+
const Y = [];
|
|
2592
|
+
if (Y.push(ce(de, A, U)), de.children && de.children.length) {
|
|
2593
|
+
const Fe = ve(de.children);
|
|
2594
|
+
Y.push(...Fe);
|
|
2587
2595
|
}
|
|
2588
|
-
return
|
|
2596
|
+
return Y;
|
|
2589
2597
|
});
|
|
2590
2598
|
}
|
|
2591
2599
|
function Se() {
|
|
@@ -2593,25 +2601,25 @@ function Ir(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C) {
|
|
|
2593
2601
|
class: "fv-grid-header-left-fixed"
|
|
2594
2602
|
}, [h("div", {
|
|
2595
2603
|
class: "fv-grid-header-columns",
|
|
2596
|
-
style:
|
|
2597
|
-
}, [
|
|
2604
|
+
style: R.value
|
|
2605
|
+
}, [ve(k.value.leftHeaderColumns)])]);
|
|
2598
2606
|
}
|
|
2599
|
-
function
|
|
2607
|
+
function ge() {
|
|
2600
2608
|
return h("div", {
|
|
2601
2609
|
class: "fv-grid-header-right-fixed"
|
|
2602
2610
|
}, [h("div", {
|
|
2603
2611
|
class: "fv-grid-header-columns",
|
|
2604
2612
|
style: N.value
|
|
2605
|
-
}, [
|
|
2613
|
+
}, [ve(k.value.rightHeaderColumns)])]);
|
|
2606
2614
|
}
|
|
2607
|
-
const
|
|
2608
|
-
function Pe(
|
|
2609
|
-
|
|
2615
|
+
const he = F(C.value.length === f.value.length);
|
|
2616
|
+
function Pe(A) {
|
|
2617
|
+
he.value ? w() : O();
|
|
2610
2618
|
}
|
|
2611
|
-
|
|
2612
|
-
|
|
2619
|
+
oe(he, (A, de) => {
|
|
2620
|
+
A !== de && (A ? w() : O());
|
|
2613
2621
|
}), D(() => f.value.length > 0 && C.value.length !== f.value.length);
|
|
2614
|
-
function
|
|
2622
|
+
function L() {
|
|
2615
2623
|
return h("div", {
|
|
2616
2624
|
class: "fv-grid-header-corner d-flex",
|
|
2617
2625
|
style: x.value
|
|
@@ -2619,8 +2627,8 @@ function Ir(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C) {
|
|
|
2619
2627
|
class: "d-inline-flex align-items-center"
|
|
2620
2628
|
}, [h(st, {
|
|
2621
2629
|
id: "checkbox_for_select_all",
|
|
2622
|
-
checked:
|
|
2623
|
-
"onUpdate:checked": (
|
|
2630
|
+
checked: he.value,
|
|
2631
|
+
"onUpdate:checked": (A) => he.value = A
|
|
2624
2632
|
}, null)]), M.value && !y.value && h("div", {
|
|
2625
2633
|
class: "d-inline-flex align-items-center",
|
|
2626
2634
|
style: {
|
|
@@ -2628,8 +2636,8 @@ function Ir(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C) {
|
|
|
2628
2636
|
}
|
|
2629
2637
|
}, [h(st, {
|
|
2630
2638
|
id: "checkbox_for_select_all",
|
|
2631
|
-
checked:
|
|
2632
|
-
"onUpdate:checked": (
|
|
2639
|
+
checked: he.value,
|
|
2640
|
+
"onUpdate:checked": (A) => he.value = A,
|
|
2633
2641
|
onChange: Pe
|
|
2634
2642
|
}, null)]), b.value && h("div", {
|
|
2635
2643
|
class: "d-inline-flex align-items-center"
|
|
@@ -2641,18 +2649,18 @@ function Ir(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C) {
|
|
|
2641
2649
|
}
|
|
2642
2650
|
}, [B.value])])]);
|
|
2643
2651
|
}
|
|
2644
|
-
function
|
|
2652
|
+
function pe() {
|
|
2645
2653
|
return h("div", {
|
|
2646
|
-
class:
|
|
2647
|
-
style:
|
|
2648
|
-
}, [
|
|
2654
|
+
class: fe.value,
|
|
2655
|
+
style: re.value
|
|
2656
|
+
}, [me.value && L(), I.value && Se(), h("div", {
|
|
2649
2657
|
class: "fv-grid-header-primary"
|
|
2650
2658
|
}, [h("div", {
|
|
2651
2659
|
class: "fv-grid-header-columns",
|
|
2652
|
-
style:
|
|
2653
|
-
}, [
|
|
2660
|
+
style: E.value
|
|
2661
|
+
}, [ve(k.value.primaryHeaderColumns)])]), V.value && ge()]);
|
|
2654
2662
|
}
|
|
2655
|
-
function
|
|
2663
|
+
function be() {
|
|
2656
2664
|
return h(Ke, null, [h("div", {
|
|
2657
2665
|
class: "fv-datagrid-resize-overlay",
|
|
2658
2666
|
style: P.value
|
|
@@ -2662,8 +2670,8 @@ function Ir(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C) {
|
|
|
2662
2670
|
}, null)]);
|
|
2663
2671
|
}
|
|
2664
2672
|
return {
|
|
2665
|
-
renderGridHeader:
|
|
2666
|
-
renderGridColumnResizeOverlay:
|
|
2673
|
+
renderGridHeader: pe,
|
|
2674
|
+
renderGridColumnResizeOverlay: be
|
|
2667
2675
|
};
|
|
2668
2676
|
}
|
|
2669
2677
|
function Br() {
|
|
@@ -2699,14 +2707,14 @@ function Vr(e, t, n, o, i) {
|
|
|
2699
2707
|
g.push(C);
|
|
2700
2708
|
}), m.value = g;
|
|
2701
2709
|
}
|
|
2702
|
-
|
|
2710
|
+
oe(r, () => c());
|
|
2703
2711
|
function u(g) {
|
|
2704
2712
|
d(`field_filter_${g}`);
|
|
2705
2713
|
const v = a.value.primaryHeaderColumns.find((S) => S.field === g);
|
|
2706
2714
|
if (v) {
|
|
2707
2715
|
v.filterValue = null;
|
|
2708
2716
|
let S = v.status;
|
|
2709
|
-
S = (S &
|
|
2717
|
+
S = (S & j.filtered) === j.filtered ? S ^ j.filtered : S, v.status = S;
|
|
2710
2718
|
}
|
|
2711
2719
|
n.refresh(), i.reCalculateVisualDataRows();
|
|
2712
2720
|
}
|
|
@@ -2714,7 +2722,7 @@ function Vr(e, t, n, o, i) {
|
|
|
2714
2722
|
l(), a.value.primaryHeaderColumns.forEach((g) => {
|
|
2715
2723
|
g.filterValue = null;
|
|
2716
2724
|
let v = g.status;
|
|
2717
|
-
v = (v &
|
|
2725
|
+
v = (v & j.filtered) === j.filtered ? v ^ j.filtered : v, g.status = v;
|
|
2718
2726
|
}), n.refresh(), i.reCalculateVisualDataRows();
|
|
2719
2727
|
}
|
|
2720
2728
|
function _() {
|
|
@@ -2829,7 +2837,7 @@ function At(e, t) {
|
|
|
2829
2837
|
height: `${v}`
|
|
2830
2838
|
};
|
|
2831
2839
|
}
|
|
2832
|
-
return
|
|
2840
|
+
return oe(t, () => {
|
|
2833
2841
|
i.value = t.value.primaryColumnsWidth;
|
|
2834
2842
|
}), {
|
|
2835
2843
|
calculateCellPositionInRow: a,
|
|
@@ -2908,7 +2916,7 @@ function Ht() {
|
|
|
2908
2916
|
}
|
|
2909
2917
|
return { updateRowPosition: e, updateVisualInfomation: t };
|
|
2910
2918
|
}
|
|
2911
|
-
function
|
|
2919
|
+
function Er(e, t, n, o, i, a) {
|
|
2912
2920
|
const { dataView: r, fold: l, hasRealChildren: d, unFold: m } = o, { collapseField: c, hasChildrenField: u } = i, { updateRowPosition: s } = Ht();
|
|
2913
2921
|
function _(S, C) {
|
|
2914
2922
|
const y = C[S].layer;
|
|
@@ -2945,7 +2953,7 @@ function Rr(e, t, n, o, i, a) {
|
|
|
2945
2953
|
}
|
|
2946
2954
|
return { toggleTreeNode: v };
|
|
2947
2955
|
}
|
|
2948
|
-
function
|
|
2956
|
+
function Rr(e, t, n, o, i, a, r, l, d, m, c) {
|
|
2949
2957
|
const {
|
|
2950
2958
|
onClickCell: u
|
|
2951
2959
|
} = a, {
|
|
@@ -2965,7 +2973,7 @@ function Er(e, t, n, o, i, a, r, l, d, m, c) {
|
|
|
2965
2973
|
shouldShowIcon: b
|
|
2966
2974
|
} = r, {
|
|
2967
2975
|
toggleTreeNode: M
|
|
2968
|
-
} =
|
|
2976
|
+
} = Er(e, t, o, i, r), {
|
|
2969
2977
|
toggleSelectHierarchyItem: B
|
|
2970
2978
|
} = m, {
|
|
2971
2979
|
cellKey: x,
|
|
@@ -2977,80 +2985,80 @@ function Er(e, t, n, o, i, a, r, l, d, m, c) {
|
|
|
2977
2985
|
} = Pr(e, o, r), {
|
|
2978
2986
|
treeNodeIconsClass: T
|
|
2979
2987
|
} = Dr(e, w, O);
|
|
2980
|
-
function P(
|
|
2981
|
-
const
|
|
2988
|
+
function P(G, q) {
|
|
2989
|
+
const fe = G.raw[O.value];
|
|
2982
2990
|
return {
|
|
2983
|
-
"fv-tree-node-toggle":
|
|
2984
|
-
"fv-tree-node-toggle-minus":
|
|
2991
|
+
"fv-tree-node-toggle": fe && G.collapse,
|
|
2992
|
+
"fv-tree-node-toggle-minus": fe && !G.collapse
|
|
2985
2993
|
};
|
|
2986
2994
|
}
|
|
2987
|
-
function
|
|
2988
|
-
|
|
2995
|
+
function E(G, q) {
|
|
2996
|
+
G.stopPropagation(), M(q);
|
|
2989
2997
|
}
|
|
2990
|
-
function
|
|
2998
|
+
function R(G, q) {
|
|
2991
2999
|
return h("div", {
|
|
2992
|
-
class: P(
|
|
2993
|
-
onClick: (
|
|
3000
|
+
class: P(G),
|
|
3001
|
+
onClick: (fe) => E(fe, G)
|
|
2994
3002
|
}, null);
|
|
2995
3003
|
}
|
|
2996
|
-
function N(
|
|
3004
|
+
function N(G, q) {
|
|
2997
3005
|
return b.value && h("div", {
|
|
2998
3006
|
id: "treeNodeIcons",
|
|
2999
|
-
class: T(
|
|
3007
|
+
class: T(G, q)
|
|
3000
3008
|
}, null);
|
|
3001
3009
|
}
|
|
3002
|
-
function $(
|
|
3003
|
-
|
|
3010
|
+
function $(G) {
|
|
3011
|
+
G.checked ? S(G) : C(G), B(G);
|
|
3004
3012
|
}
|
|
3005
|
-
function G
|
|
3013
|
+
function H(G, q) {
|
|
3006
3014
|
return f.value && h(st, {
|
|
3007
|
-
id: "checkbox_for_" + x(
|
|
3008
|
-
indeterminate:
|
|
3009
|
-
checked:
|
|
3010
|
-
"onUpdate:checked": (
|
|
3011
|
-
onChange: () => $(
|
|
3015
|
+
id: "checkbox_for_" + x(G, q.index),
|
|
3016
|
+
indeterminate: G.indeterminate,
|
|
3017
|
+
checked: G.checked,
|
|
3018
|
+
"onUpdate:checked": (fe) => G.checked = fe,
|
|
3019
|
+
onChange: () => $(G)
|
|
3012
3020
|
}, null);
|
|
3013
3021
|
}
|
|
3014
|
-
function
|
|
3022
|
+
function W(G, q) {
|
|
3015
3023
|
return h("span", {
|
|
3016
|
-
title:
|
|
3017
|
-
}, [
|
|
3024
|
+
title: q.data
|
|
3025
|
+
}, [q.mode === De.editing ? q.getEditor(q) : q.data]);
|
|
3018
3026
|
}
|
|
3019
|
-
function
|
|
3027
|
+
function ae(G, q, fe) {
|
|
3020
3028
|
return h("div", {
|
|
3021
|
-
ref:
|
|
3022
|
-
key: x(
|
|
3029
|
+
ref: q.setRef,
|
|
3030
|
+
key: x(G, q.index),
|
|
3023
3031
|
class: "fv-grid-hierarchy-cell",
|
|
3024
|
-
style: k(
|
|
3032
|
+
style: k(q, fe)
|
|
3025
3033
|
}, [h("div", {
|
|
3026
|
-
style: p(
|
|
3027
|
-
}, [
|
|
3034
|
+
style: p(G)
|
|
3035
|
+
}, [R(G), N(G, q), H(G, q), W(G, q)])]);
|
|
3028
3036
|
}
|
|
3029
|
-
function
|
|
3037
|
+
function me(G, q, fe) {
|
|
3030
3038
|
return h("div", {
|
|
3031
|
-
ref:
|
|
3032
|
-
key: x(
|
|
3039
|
+
ref: q.setRef,
|
|
3040
|
+
key: x(G, q.index),
|
|
3033
3041
|
class: "fv-grid-cell",
|
|
3034
|
-
style: k(
|
|
3035
|
-
onClick: (
|
|
3036
|
-
}, [
|
|
3042
|
+
style: k(q, fe),
|
|
3043
|
+
onClick: (re) => u(re, q)
|
|
3044
|
+
}, [q.mode === De.editing ? q.getEditor(q) : q.formatter ? q.formatter(q, G) : q.data != null ? q.data.toString() : q.data]);
|
|
3037
3045
|
}
|
|
3038
|
-
function
|
|
3039
|
-
return
|
|
3046
|
+
function X(G, q) {
|
|
3047
|
+
return q === "left" && n.value.leftColumns.length > 0 && n.value.leftColumns[0].field === G.field || q === "primary" && n.value.primaryColumns.length > 0 && n.value.primaryColumns[0].field === G.field;
|
|
3040
3048
|
}
|
|
3041
|
-
function
|
|
3049
|
+
function le(G, q, fe = "primary") {
|
|
3042
3050
|
return h("div", {
|
|
3043
|
-
ref:
|
|
3044
|
-
key: I(
|
|
3045
|
-
class: s(
|
|
3046
|
-
style: V(
|
|
3047
|
-
onMouseover: (
|
|
3048
|
-
onMouseout: (
|
|
3049
|
-
onClick: (
|
|
3050
|
-
}, [Object.values(
|
|
3051
|
+
ref: G.setRef,
|
|
3052
|
+
key: I(G),
|
|
3053
|
+
class: s(G),
|
|
3054
|
+
style: V(G),
|
|
3055
|
+
onMouseover: (re) => g(re, G),
|
|
3056
|
+
onMouseout: (re) => v(re, G),
|
|
3057
|
+
onClick: (re) => _(re, G)
|
|
3058
|
+
}, [Object.values(G.data).filter((re) => q[re.field] && re.rowSpan === 1).map((re, ue) => X(re, fe) ? ae(G, re, q) : me(G, re, q))]);
|
|
3051
3059
|
}
|
|
3052
3060
|
return {
|
|
3053
|
-
renderDataRow:
|
|
3061
|
+
renderDataRow: le
|
|
3054
3062
|
};
|
|
3055
3063
|
}
|
|
3056
3064
|
function Gn(e, t, n) {
|
|
@@ -3087,13 +3095,13 @@ function $r(e, t, n, o, i) {
|
|
|
3087
3095
|
function s(g) {
|
|
3088
3096
|
n.changePageSizeTo(g), o.resetScroll(), t.emit("pageSizeChanged", g);
|
|
3089
3097
|
}
|
|
3090
|
-
|
|
3098
|
+
Re(() => {
|
|
3091
3099
|
c.value === "server" && u(1);
|
|
3092
3100
|
});
|
|
3093
3101
|
function _() {
|
|
3094
3102
|
return h("div", {
|
|
3095
3103
|
class: "fv-datagrid-pagination"
|
|
3096
|
-
}, [h(
|
|
3104
|
+
}, [h(En, {
|
|
3097
3105
|
mode: "default",
|
|
3098
3106
|
currentPage: a.value,
|
|
3099
3107
|
"onUpdate:currentPage": (g) => a.value = g,
|
|
@@ -3202,7 +3210,7 @@ function Nr(e, t, n) {
|
|
|
3202
3210
|
class: "fv-datagird-summary-panel"
|
|
3203
3211
|
}, [h("span", {
|
|
3204
3212
|
class: "fv-datagrid-summary-title"
|
|
3205
|
-
}, [
|
|
3213
|
+
}, [Ee("当页合计")]), h("div", {
|
|
3206
3214
|
class: "fv-datagrid-summary-content"
|
|
3207
3215
|
}, [o.value.summaryColumns.map((l) => h("div", {
|
|
3208
3216
|
class: "fv-datagrid-summary-field"
|
|
@@ -3266,7 +3274,7 @@ function jr() {
|
|
|
3266
3274
|
size: a.size || "small",
|
|
3267
3275
|
onClick: (r) => t(a, r, i)
|
|
3268
3276
|
}, {
|
|
3269
|
-
default: () => [
|
|
3277
|
+
default: () => [Ee(" "), a.text, Ee(" ")]
|
|
3270
3278
|
}))]);
|
|
3271
3279
|
}
|
|
3272
3280
|
return {
|
|
@@ -3280,7 +3288,7 @@ function Ar(e) {
|
|
|
3280
3288
|
}, [h("div", {
|
|
3281
3289
|
class: "f-datagrid-norecords-content",
|
|
3282
3290
|
style: "margin: 0;width: 100%;position: relative; top: 0"
|
|
3283
|
-
}, [
|
|
3291
|
+
}, [Ee(" "), e.slots.empty && e.slots.empty() || "暂无数据"])]);
|
|
3284
3292
|
}
|
|
3285
3293
|
return {
|
|
3286
3294
|
renderEmpty: t
|
|
@@ -3288,7 +3296,7 @@ function Ar(e) {
|
|
|
3288
3296
|
}
|
|
3289
3297
|
function zn(e) {
|
|
3290
3298
|
const t = F(e.minHeight), n = F(e.minWidth), o = F(e.height), i = F(e.width), a = D(() => o.value <= 0 ? 0 : Math.max(o.value, t.value)), r = D(() => i.value <= 0 ? 0 : Math.max(i.value, n.value));
|
|
3291
|
-
return
|
|
3299
|
+
return oe([
|
|
3292
3300
|
() => e.height,
|
|
3293
3301
|
() => e.width,
|
|
3294
3302
|
() => e.minHeight,
|
|
@@ -3297,8 +3305,7 @@ function zn(e) {
|
|
|
3297
3305
|
t.value = Number(c), n.value = Number(u), o.value = Number(d), i.value = Number(m);
|
|
3298
3306
|
}), { containerStyleObject: D(() => ({
|
|
3299
3307
|
height: a.value > 0 ? `${a.value}px` : e.fit ? "100%" : "",
|
|
3300
|
-
width: r.value > 0 ? `${r.value}px` : e.fit ? "100%" : ""
|
|
3301
|
-
flex: "none"
|
|
3308
|
+
width: r.value > 0 ? `${r.value}px` : e.fit ? "100%" : ""
|
|
3302
3309
|
})) };
|
|
3303
3310
|
}
|
|
3304
3311
|
function qn(e) {
|
|
@@ -3449,7 +3456,7 @@ function Lr(e) {
|
|
|
3449
3456
|
style: "display:flex;margin-bottom:6px;"
|
|
3450
3457
|
}, [h("label", {
|
|
3451
3458
|
style: "margin-right:8px"
|
|
3452
|
-
}, [
|
|
3459
|
+
}, [Ee("按区间筛选")]), h(Ne("f-switch"), {
|
|
3453
3460
|
modelValue: t.value,
|
|
3454
3461
|
"onUpdate:modelValue": (n) => t.value = n,
|
|
3455
3462
|
size: "small"
|
|
@@ -3543,7 +3550,7 @@ function Ur(e, t, n, o, i, a) {
|
|
|
3543
3550
|
"selection-values": c(e.filterValue),
|
|
3544
3551
|
onSelectChange: (_) => s(_)
|
|
3545
3552
|
}, {
|
|
3546
|
-
default: () => [
|
|
3553
|
+
default: () => [Ee(" ")]
|
|
3547
3554
|
});
|
|
3548
3555
|
}
|
|
3549
3556
|
function Kr(e) {
|
|
@@ -3585,7 +3592,7 @@ function Kr(e) {
|
|
|
3585
3592
|
view: "SingleView",
|
|
3586
3593
|
size: "Small"
|
|
3587
3594
|
}, {
|
|
3588
|
-
default: () => [
|
|
3595
|
+
default: () => [Ee(" ")]
|
|
3589
3596
|
});
|
|
3590
3597
|
}
|
|
3591
3598
|
function Un(e, t, n, o, i) {
|
|
@@ -3714,18 +3721,18 @@ function Yn(e, t, n, o, i) {
|
|
|
3714
3721
|
function v(k, I) {
|
|
3715
3722
|
const V = [], p = [];
|
|
3716
3723
|
let T = 0;
|
|
3717
|
-
k.value.primaryColumns.filter((
|
|
3718
|
-
typeof
|
|
3724
|
+
k.value.primaryColumns.filter((R) => R.visible).forEach((R) => {
|
|
3725
|
+
typeof R.width == "string" ? p.push(R) : (R.width = R.width || r, T += R.width, V.push(R));
|
|
3719
3726
|
});
|
|
3720
|
-
const P = I * (V.length / k.value.primaryColumns.filter((
|
|
3721
|
-
V.forEach((
|
|
3722
|
-
const N = P * (
|
|
3723
|
-
|
|
3727
|
+
const P = I * (V.length / k.value.primaryColumns.filter((R) => R.visible).length);
|
|
3728
|
+
V.forEach((R) => {
|
|
3729
|
+
const N = P * (R.width / T);
|
|
3730
|
+
R.actualWidth = N, k.value.primaryColumnsWidth += R.actualWidth;
|
|
3724
3731
|
});
|
|
3725
|
-
const
|
|
3726
|
-
p.forEach((
|
|
3727
|
-
const N = _(
|
|
3728
|
-
|
|
3732
|
+
const E = I - P;
|
|
3733
|
+
p.forEach((R) => {
|
|
3734
|
+
const N = _(R, k.value, E);
|
|
3735
|
+
R.actualWidth = N, k.value.primaryColumnsWidth += R.actualWidth;
|
|
3729
3736
|
});
|
|
3730
3737
|
}
|
|
3731
3738
|
function S(k, I) {
|
|
@@ -3736,19 +3743,19 @@ function Yn(e, t, n, o, i) {
|
|
|
3736
3743
|
}
|
|
3737
3744
|
function C(k, I) {
|
|
3738
3745
|
const V = [], p = [], T = /* @__PURE__ */ new WeakMap();
|
|
3739
|
-
let P = 0,
|
|
3746
|
+
let P = 0, E = 0;
|
|
3740
3747
|
if (k.value.primaryColumns.filter((N) => N.visible).forEach((N) => {
|
|
3741
3748
|
if (typeof N.width == "string") {
|
|
3742
3749
|
const $ = _(N, k.value, I);
|
|
3743
3750
|
T.set(N, $), P += $, p.push(N);
|
|
3744
3751
|
} else
|
|
3745
|
-
N.width = N.width || r,
|
|
3746
|
-
}), I - P >
|
|
3752
|
+
N.width = N.width || r, E += N.width, V.push(N);
|
|
3753
|
+
}), I - P > E) {
|
|
3747
3754
|
const N = I - P;
|
|
3748
3755
|
p.forEach(($) => {
|
|
3749
3756
|
$.actualWidth = T.get($) || r, k.value.primaryColumnsWidth += $.actualWidth;
|
|
3750
3757
|
}), V.forEach(($) => {
|
|
3751
|
-
$.actualWidth = N * ($.width /
|
|
3758
|
+
$.actualWidth = N * ($.width / E), k.value.primaryColumnsWidth += $.actualWidth;
|
|
3752
3759
|
});
|
|
3753
3760
|
} else
|
|
3754
3761
|
v(k, I);
|
|
@@ -3780,16 +3787,16 @@ function Yn(e, t, n, o, i) {
|
|
|
3780
3787
|
var $;
|
|
3781
3788
|
let p = 0;
|
|
3782
3789
|
const T = k.value.primaryColumns, P = k.value.rightColumns;
|
|
3783
|
-
k.value.rightColumns.filter((
|
|
3784
|
-
|
|
3790
|
+
k.value.rightColumns.filter((H) => H.visible).forEach((H) => {
|
|
3791
|
+
H.actualWidth = g(H, k.value, I), p += H.actualWidth;
|
|
3785
3792
|
});
|
|
3786
|
-
const
|
|
3787
|
-
if (
|
|
3793
|
+
const E = V - p, R = w[s.value];
|
|
3794
|
+
if (R && R(k, E), k.value.primaryColumnsWidth + p <= V)
|
|
3788
3795
|
return k.value.primaryColumns = [...T, ...P], k.value.primaryColumnsWidth += p, k.value.rightColumns = [], k.value.rightColumnsWidth = 0, !0;
|
|
3789
3796
|
const N = /* @__PURE__ */ new Map();
|
|
3790
|
-
return N.set("primary", []), N.set("right", []), k.value.primaryColumns.reduce((
|
|
3791
|
-
var
|
|
3792
|
-
return
|
|
3797
|
+
return N.set("primary", []), N.set("right", []), k.value.primaryColumns.reduce((H, W) => {
|
|
3798
|
+
var ae, me;
|
|
3799
|
+
return W.fixed === "right" ? (ae = H.get("right")) == null || ae.push(W) : (me = H.get("primary")) == null || me.push(W), H;
|
|
3793
3800
|
}, N), ($ = N.get("right")) != null && $.length && (k.value.primaryColumns = [...N.get("primary") || []], k.value.rightColumns = [...N.get("right") || []]), k.value.primaryColumnsWidth = 0, k.value.rightColumnsWidth = 0, !1;
|
|
3794
3801
|
}
|
|
3795
3802
|
function M() {
|
|
@@ -3812,7 +3819,7 @@ function Yn(e, t, n, o, i) {
|
|
|
3812
3819
|
O(t), t.value = Object.assign({}, t.value);
|
|
3813
3820
|
}
|
|
3814
3821
|
}
|
|
3815
|
-
return
|
|
3822
|
+
return oe([
|
|
3816
3823
|
() => {
|
|
3817
3824
|
var k;
|
|
3818
3825
|
return (k = e.columnOption) == null ? void 0 : k.fitMode;
|
|
@@ -3839,7 +3846,7 @@ function Qn(e, t) {
|
|
|
3839
3846
|
parent: s,
|
|
3840
3847
|
resizable: !1,
|
|
3841
3848
|
title: c.title || "",
|
|
3842
|
-
status:
|
|
3849
|
+
status: j.none,
|
|
3843
3850
|
popoverRef: F(),
|
|
3844
3851
|
showPopover: !1,
|
|
3845
3852
|
column: null,
|
|
@@ -3895,8 +3902,8 @@ function Qn(e, t) {
|
|
|
3895
3902
|
function d(c) {
|
|
3896
3903
|
let u = /* @__PURE__ */ new Map(), s = 0;
|
|
3897
3904
|
if (c.reduce((_, g) => {
|
|
3898
|
-
let v =
|
|
3899
|
-
return v = g.sortable ? v |
|
|
3905
|
+
let v = j.none;
|
|
3906
|
+
return v = g.sortable ? v | j.sortable : v, v = g.filterable ? v | j.filterable : v, v = g.sort && g.sort !== "none" ? v | j.sorted | (g.sort === "asc" ? j.ascending : j.descending) : v, _.set(g.field, {
|
|
3900
3907
|
actualWidth: g.actualWidth || 0,
|
|
3901
3908
|
children: [],
|
|
3902
3909
|
depth: 1,
|
|
@@ -4359,7 +4366,7 @@ function ll(e, t, n) {
|
|
|
4359
4366
|
let s = "col-12";
|
|
4360
4367
|
return c > 250 * 6 ? s = "col-2" : c > 250 * 4 ? s = "col-3" : c > 250 * 3 ? s = "col-4" : c > 250 * 2 && (s = "col-6"), s;
|
|
4361
4368
|
}
|
|
4362
|
-
return
|
|
4369
|
+
return oe([n], ([c]) => {
|
|
4363
4370
|
i.value = c, l();
|
|
4364
4371
|
}), {
|
|
4365
4372
|
conditionClass: r,
|
|
@@ -4382,7 +4389,7 @@ const Zt = /* @__PURE__ */ Oe({
|
|
|
4382
4389
|
m(!0), l(a.value), rn(() => {
|
|
4383
4390
|
var C;
|
|
4384
4391
|
(C = s.value) == null || C.unobserve(n.value);
|
|
4385
|
-
}),
|
|
4392
|
+
}), oe(() => e.conditions, () => {
|
|
4386
4393
|
a.value = e.conditions;
|
|
4387
4394
|
});
|
|
4388
4395
|
const _ = D(() => ({
|
|
@@ -4675,26 +4682,26 @@ const Ml = {
|
|
|
4675
4682
|
emits: [],
|
|
4676
4683
|
setup(e, t) {
|
|
4677
4684
|
const n = F(e.title || e.text), o = F(e.required), i = F(e.text);
|
|
4678
|
-
return
|
|
4685
|
+
return oe(() => e.text, () => {
|
|
4679
4686
|
i.value = e.text;
|
|
4680
|
-
}),
|
|
4687
|
+
}), oe(() => e.required, (a, r) => {
|
|
4681
4688
|
a !== r && (o.value = a);
|
|
4682
4689
|
}), () => h("label", {
|
|
4683
4690
|
class: "col-form-label",
|
|
4684
4691
|
title: n.value
|
|
4685
4692
|
}, [o.value && h("span", {
|
|
4686
4693
|
class: "farris-label-info text-danger"
|
|
4687
|
-
}, [
|
|
4694
|
+
}, [Ee("*")]), h("span", {
|
|
4688
4695
|
class: "farris-label-text"
|
|
4689
4696
|
}, [i.value])]);
|
|
4690
4697
|
}
|
|
4691
4698
|
}), Dl = /* @__PURE__ */ new Map([
|
|
4692
4699
|
["appearance", Qe]
|
|
4693
4700
|
]);
|
|
4694
|
-
function
|
|
4701
|
+
function El(e, t, n) {
|
|
4695
4702
|
return t;
|
|
4696
4703
|
}
|
|
4697
|
-
const
|
|
4704
|
+
const Rl = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-design.gitee.io/input-group.schema.json", Nl = "input-group", jl = "A Farris Input Component", Al = "object", Hl = {
|
|
4698
4705
|
id: {
|
|
4699
4706
|
description: "The unique identifier for a Input Group",
|
|
4700
4707
|
type: "string"
|
|
@@ -4900,7 +4907,7 @@ const El = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-
|
|
|
4900
4907
|
"id",
|
|
4901
4908
|
"type"
|
|
4902
4909
|
], Wl = {
|
|
4903
|
-
$schema:
|
|
4910
|
+
$schema: Rl,
|
|
4904
4911
|
$id: $l,
|
|
4905
4912
|
title: Nl,
|
|
4906
4913
|
description: jl,
|
|
@@ -4974,7 +4981,7 @@ const El = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-
|
|
|
4974
4981
|
*/
|
|
4975
4982
|
updateOn: { type: String, default: "blur" }
|
|
4976
4983
|
};
|
|
4977
|
-
Ae(io, Wl, Dl,
|
|
4984
|
+
Ae(io, Wl, Dl, El);
|
|
4978
4985
|
function Ll(e, t, n, o) {
|
|
4979
4986
|
const i = F(e.disabled), a = F(!1), r = F("text"), l = F(e.showBorder), d = F(e.textAlign), m = F(e.updateOn), c = D(() => e.editable || !e.readonly), u = D(() => e.editable && !e.disabled && !e.readonly), s = D(() => !e.disabled && a.value), _ = D(() => n.value === "" || n.value === null || n.value === void 0), g = D(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = D(() => e.readonly || !e.editable), S = D(() => e.enableTitle ? n.value : ""), C = D(() => ({
|
|
4980
4987
|
"form-control": !0,
|
|
@@ -4991,17 +4998,17 @@ function Ll(e, t, n, o) {
|
|
|
4991
4998
|
"f-state-readonly": v.value,
|
|
4992
4999
|
"f-state-focus": s.value
|
|
4993
5000
|
};
|
|
4994
|
-
return (e.customClass || "").split(" ").reduce((P,
|
|
5001
|
+
return (e.customClass || "").split(" ").reduce((P, E) => (P[E] = !0, P), p), p;
|
|
4995
5002
|
}), w = D(() => l.value ? "" : "border-width : 0 ");
|
|
4996
5003
|
function O(p, T = !0) {
|
|
4997
5004
|
n.value = p, o.value !== p && (o.value = p), T && t.emit("change", p), t.emit("update:modelValue", p), t.emit("update:value", p);
|
|
4998
5005
|
}
|
|
4999
|
-
|
|
5006
|
+
oe(
|
|
5000
5007
|
() => e.modelValue,
|
|
5001
5008
|
(p, T) => {
|
|
5002
5009
|
p !== T && (n.value = p, o.value = p);
|
|
5003
5010
|
}
|
|
5004
|
-
),
|
|
5011
|
+
), oe(() => e.disabled, (p, T) => {
|
|
5005
5012
|
p !== T && (i.value = p);
|
|
5006
5013
|
});
|
|
5007
5014
|
function f(p) {
|
|
@@ -5063,7 +5070,7 @@ function zl(e, t, n) {
|
|
|
5063
5070
|
function m(v) {
|
|
5064
5071
|
o.value = v;
|
|
5065
5072
|
}
|
|
5066
|
-
|
|
5073
|
+
oe(r, () => {
|
|
5067
5074
|
l != null && l.value ? m(!!(r != null && r.value)) : m(!1);
|
|
5068
5075
|
});
|
|
5069
5076
|
const c = D(() => ({
|
|
@@ -5135,7 +5142,7 @@ function Ql(e, t) {
|
|
|
5135
5142
|
}
|
|
5136
5143
|
function Zl(e, t, n, o) {
|
|
5137
5144
|
const { appendedContent: i } = o, a = F(e.enableViewPassword), r = D(() => e.type === "password"), l = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', d = '<span class="f-icon f-icon-eye"></span>', m = F(!1);
|
|
5138
|
-
|
|
5145
|
+
oe(() => [e.readonly, e.disabled], ([s, _]) => {
|
|
5139
5146
|
r.value && (n.value = s || _ ? "password" : n.value, i.value = s || _ ? d : i.value);
|
|
5140
5147
|
});
|
|
5141
5148
|
function c() {
|
|
@@ -5168,7 +5175,7 @@ function Jl(e, t, n) {
|
|
|
5168
5175
|
async function g(v) {
|
|
5169
5176
|
a(v), await Ue, _();
|
|
5170
5177
|
}
|
|
5171
|
-
return
|
|
5178
|
+
return Re(async () => {
|
|
5172
5179
|
await Ue, _();
|
|
5173
5180
|
}), () => h("input", {
|
|
5174
5181
|
ref: o,
|
|
@@ -5237,15 +5244,15 @@ function ts(e, t) {
|
|
|
5237
5244
|
} = o, {
|
|
5238
5245
|
isFocus: s
|
|
5239
5246
|
} = a, _ = D(() => !e.disabled && !e.readonly);
|
|
5240
|
-
return
|
|
5247
|
+
return Re(() => {
|
|
5241
5248
|
const g = m(e.modelValue);
|
|
5242
5249
|
l.value = u(g);
|
|
5243
|
-
}),
|
|
5250
|
+
}), oe(() => [e.value], ([g]) => {
|
|
5244
5251
|
const v = m(g);
|
|
5245
5252
|
d.value = v, l.value = u(v);
|
|
5246
|
-
}),
|
|
5253
|
+
}), oe(() => [e.modelValue], ([g]) => {
|
|
5247
5254
|
g !== d.value && (d.value = g, !s.value && (l.value = u(m(g))));
|
|
5248
|
-
}),
|
|
5255
|
+
}), oe(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
5249
5256
|
l.value = u(d.value);
|
|
5250
5257
|
}), () => h("div", {
|
|
5251
5258
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
@@ -5271,7 +5278,7 @@ function ns(e, t, n, o) {
|
|
|
5271
5278
|
textBoxClass: B,
|
|
5272
5279
|
textBoxTitle: x
|
|
5273
5280
|
} = o;
|
|
5274
|
-
return
|
|
5281
|
+
return Re(() => {
|
|
5275
5282
|
e.selectOnCreated, e.focusOnCreated;
|
|
5276
5283
|
}), () => h("input", {
|
|
5277
5284
|
ref: i,
|
|
@@ -5380,11 +5387,11 @@ const as = /* @__PURE__ */ Oe({
|
|
|
5380
5387
|
onMouseEnter: u,
|
|
5381
5388
|
onMouseLeave: s
|
|
5382
5389
|
} = c, _ = Zl(e, t, r, d), g = ts(e, t), v = ns(e, t, _, i), S = is(e, t, d, c, _), C = os(e, t), y = D(() => e.type === "number");
|
|
5383
|
-
|
|
5390
|
+
oe(() => [e.value], ([O]) => {
|
|
5384
5391
|
n.value = O, o.value = O;
|
|
5385
|
-
}),
|
|
5392
|
+
}), oe(() => [e.modelValue], ([O]) => {
|
|
5386
5393
|
n.value = O, o.value = O;
|
|
5387
|
-
}),
|
|
5394
|
+
}), Re(() => {
|
|
5388
5395
|
e.value && (n.value = e.value, o.value = e.value);
|
|
5389
5396
|
});
|
|
5390
5397
|
const w = () => h(Ke, null, [h("div", {
|
|
@@ -5399,7 +5406,7 @@ const as = /* @__PURE__ */ Oe({
|
|
|
5399
5406
|
}), Q = {}, Z = {}, J = {}, ee = {};
|
|
5400
5407
|
let Jt = !1;
|
|
5401
5408
|
function rs() {
|
|
5402
|
-
Jt || (Jt = !0, yi.register(Q, Z, J, ee), hi.register(Q, Z, J, ee), bi.register(Q, Z, J, ee), Ci.register(Q, Z, J, ee), wi.register(Q, Z, J, ee), Si.register(Q, Z, J, ee), li.register(Q, Z, J, ee), Ct.register(Q, Z, J, ee), _i.register(Q, Z, J, ee), xi.register(Q, Z, J, ee), Fi.register(Q, Z, J, ee), ki.register(Q, Z, J, ee), Ti.register(Q, Z, J, ee), Oi.register(Q, Z, J, ee), ci.register(Q, Z, J, ee), Ii.register(Q, Z, J, ee), si.register(Q, Z, J, ee), Bi.register(Q, Z, J, ee), Vi.register(Q, Z, J, ee), Mi.register(Q, Z, J, ee), Pi.register(Q, Z, J, ee),
|
|
5409
|
+
Jt || (Jt = !0, yi.register(Q, Z, J, ee), hi.register(Q, Z, J, ee), bi.register(Q, Z, J, ee), Ci.register(Q, Z, J, ee), wi.register(Q, Z, J, ee), Si.register(Q, Z, J, ee), li.register(Q, Z, J, ee), Ct.register(Q, Z, J, ee), _i.register(Q, Z, J, ee), xi.register(Q, Z, J, ee), Fi.register(Q, Z, J, ee), ki.register(Q, Z, J, ee), Ti.register(Q, Z, J, ee), Oi.register(Q, Z, J, ee), ci.register(Q, Z, J, ee), Ii.register(Q, Z, J, ee), si.register(Q, Z, J, ee), Bi.register(Q, Z, J, ee), Vi.register(Q, Z, J, ee), Mi.register(Q, Z, J, ee), Pi.register(Q, Z, J, ee), Ei.register(Q, Z, J, ee), Di.register(Q, Z, J, ee), Ri.register(Q, Z, J, ee), $i.register(Q, Z, J, ee), Ni.register(Q, Z, J, ee), ji.register(Q, Z, J, ee), fi.register(Q, Z, J, ee), ii.register(Q, Z, J, ee), Ai.register(Q, Z, J, ee), Hi.register(Q, Z, J, ee), En.register(Q, Z, J, ee), Gi.register(Q, Z, J, ee), Wi.register(Q, Z, J, ee), Li.register(Q, Z, J, ee), zi.register(Q, Z, J, ee), Ui.register(Q, Z, J, ee), Ki.register(Q, Z, J, ee), qi.register(Q, Z, J, ee), ua.register(Q, Z, J), Xi.register(Q, Z, J, ee), Yi.register(Q, Z, J, ee), Qi.register(Q, Z, J, ee), Zi.register(Q, Z, J, ee), Ji.register(Q, Z, J, ee), ea.register(Q, Z, J, ee), Dn.register(Q, Z, J, ee), un.register(Q, Z, J, ee), ta.register(Q, Z, J, ee), na.register(Q, Z, J, ee), Pn.register(Q, Z, J, ee), oa.register(Q, Z, J, ee), aa.register(Q, Z, J, ee), ia.register(Q, Z, J, ee), ra.register(Q, Z, J, ee), la.register(Q, Z, J, ee), sa.register(Q, Z, J, ee));
|
|
5403
5410
|
}
|
|
5404
5411
|
function ao() {
|
|
5405
5412
|
rs();
|
|
@@ -5414,6 +5421,8 @@ function ao() {
|
|
|
5414
5421
|
switch (i) {
|
|
5415
5422
|
case "check-box":
|
|
5416
5423
|
return "onChangeValue";
|
|
5424
|
+
case "switch":
|
|
5425
|
+
return "onModelValueChanged";
|
|
5417
5426
|
case "check-group":
|
|
5418
5427
|
return "onChangeValue";
|
|
5419
5428
|
case "combo-list":
|
|
@@ -5504,7 +5513,7 @@ const ls = /* @__PURE__ */ Oe({
|
|
|
5504
5513
|
"onUpdate:modelValue": (x) => r.value = x
|
|
5505
5514
|
}), null);
|
|
5506
5515
|
});
|
|
5507
|
-
return
|
|
5516
|
+
return oe([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([O, f, b, M, B, x, k, I, V]) => {
|
|
5508
5517
|
n.value = O, o.value = f, i.value = b, a.value = M, r.value = B, l.value = x, d.value = k, m.value = I, c.value = V;
|
|
5509
5518
|
}), t.expose({
|
|
5510
5519
|
editorRef: u
|
|
@@ -5535,57 +5544,57 @@ class Lt {
|
|
|
5535
5544
|
*/
|
|
5536
5545
|
K(Lt, "fieldControlTypeMapping", {
|
|
5537
5546
|
String: [
|
|
5538
|
-
{ key:
|
|
5539
|
-
{ key:
|
|
5540
|
-
{ key:
|
|
5541
|
-
{ key:
|
|
5542
|
-
{ key:
|
|
5543
|
-
{ key:
|
|
5544
|
-
{ key:
|
|
5545
|
-
{ key:
|
|
5547
|
+
{ key: te["input-group"].type, value: te["input-group"].name },
|
|
5548
|
+
{ key: te.lookup.type, value: te.lookup.name },
|
|
5549
|
+
{ key: te.Image.type, value: te.Image.name },
|
|
5550
|
+
{ key: te["date-picker"].type, value: te["date-picker"].name },
|
|
5551
|
+
{ key: te["check-box"].type, value: te["check-box"].name },
|
|
5552
|
+
{ key: te["radio-group"].type, value: te["radio-group"].name },
|
|
5553
|
+
{ key: te["combo-list"].type, value: te["combo-list"].name },
|
|
5554
|
+
{ key: te.textarea.type, value: te.textarea.name }
|
|
5546
5555
|
// { key: DgControl.Tags.type, value: DgControl.Tags.name },
|
|
5547
5556
|
],
|
|
5548
5557
|
Text: [
|
|
5549
|
-
{ key:
|
|
5550
|
-
{ key:
|
|
5551
|
-
{ key:
|
|
5558
|
+
{ key: te.textarea.type, value: te.textarea.name },
|
|
5559
|
+
{ key: te.avatar.type, value: te.avatar.name },
|
|
5560
|
+
{ key: te.lookup.type, value: te.lookup.name }
|
|
5552
5561
|
],
|
|
5553
5562
|
Decimal: [
|
|
5554
|
-
{ key:
|
|
5563
|
+
{ key: te["number-spinner"].type, value: te["number-spinner"].name }
|
|
5555
5564
|
],
|
|
5556
5565
|
Integer: [
|
|
5557
|
-
{ key:
|
|
5566
|
+
{ key: te["number-spinner"].type, value: te["number-spinner"].name }
|
|
5558
5567
|
],
|
|
5559
5568
|
Number: [
|
|
5560
|
-
{ key:
|
|
5569
|
+
{ key: te["number-spinner"].type, value: te["number-spinner"].name }
|
|
5561
5570
|
],
|
|
5562
5571
|
BigNumber: [
|
|
5563
|
-
{ key:
|
|
5572
|
+
{ key: te["number-spinner"].type, value: te["number-spinner"].name }
|
|
5564
5573
|
],
|
|
5565
5574
|
Date: [
|
|
5566
|
-
{ key:
|
|
5575
|
+
{ key: te["date-picker"].type, value: te["date-picker"].name }
|
|
5567
5576
|
],
|
|
5568
5577
|
DateTime: [
|
|
5569
|
-
{ key:
|
|
5578
|
+
{ key: te["date-picker"].type, value: te["date-picker"].name }
|
|
5570
5579
|
],
|
|
5571
5580
|
Boolean: [
|
|
5572
|
-
{ key:
|
|
5573
|
-
{ key:
|
|
5581
|
+
{ key: te.switch.type, value: te.switch.name },
|
|
5582
|
+
{ key: te["check-box"].type, value: te["check-box"].name }
|
|
5574
5583
|
],
|
|
5575
5584
|
Enum: [
|
|
5576
|
-
{ key:
|
|
5577
|
-
{ key:
|
|
5585
|
+
{ key: te["combo-list"].type, value: te["combo-list"].name },
|
|
5586
|
+
{ key: te["radio-group"].type, value: te["radio-group"].name }
|
|
5578
5587
|
],
|
|
5579
5588
|
Object: [
|
|
5580
|
-
{ key:
|
|
5581
|
-
{ key:
|
|
5582
|
-
{ key:
|
|
5589
|
+
{ key: te.lookup.type, value: te.lookup.name },
|
|
5590
|
+
{ key: te["combo-list"].type, value: te["combo-list"].name },
|
|
5591
|
+
{ key: te["radio-group"].type, value: te["radio-group"].name }
|
|
5583
5592
|
],
|
|
5584
5593
|
EmployeeSelector: [
|
|
5585
|
-
{ key:
|
|
5594
|
+
{ key: te.EmployeeSelector.type, value: te.EmployeeSelector.name }
|
|
5586
5595
|
],
|
|
5587
5596
|
AdminOrganizationSelector: [
|
|
5588
|
-
{ key:
|
|
5597
|
+
{ key: te.AdminOrganizationSelector.type, value: te.AdminOrganizationSelector.name }
|
|
5589
5598
|
]
|
|
5590
5599
|
});
|
|
5591
5600
|
class gt {
|
|
@@ -5882,7 +5891,7 @@ const ds = /* @__PURE__ */ Oe({
|
|
|
5882
5891
|
"onUpdate:modelValue": (_) => i.value = _
|
|
5883
5892
|
}), null);
|
|
5884
5893
|
});
|
|
5885
|
-
return
|
|
5894
|
+
return oe([() => e.id, () => e.editor, () => e.modelValue], ([c, u, s]) => {
|
|
5886
5895
|
n.value = c, o.value = u, i.value = s;
|
|
5887
5896
|
}), () => m.value();
|
|
5888
5897
|
}
|
|
@@ -5993,19 +6002,19 @@ function uo() {
|
|
|
5993
6002
|
}
|
|
5994
6003
|
function d(x, k, I, V, p) {
|
|
5995
6004
|
for (let T = 0; T < k; T++) {
|
|
5996
|
-
const P = x + (T + 1),
|
|
5997
|
-
I.children.push(
|
|
6005
|
+
const P = x + (T + 1), E = a(p, P);
|
|
6006
|
+
I.children.push(E), n.set(E.groupId, I), I = I.children[I.children.length - 1], V.push(I);
|
|
5998
6007
|
}
|
|
5999
6008
|
return I;
|
|
6000
6009
|
}
|
|
6001
6010
|
function m(x, k, I, V, p) {
|
|
6002
|
-
for (let
|
|
6011
|
+
for (let R = k; R <= 0; R++)
|
|
6003
6012
|
V.pop();
|
|
6004
6013
|
const T = V[V.length - 1];
|
|
6005
6014
|
if (!T)
|
|
6006
6015
|
throw new Error("The group path is out of range");
|
|
6007
|
-
const P = x + k,
|
|
6008
|
-
return T.children.push(
|
|
6016
|
+
const P = x + k, E = a(p, P);
|
|
6017
|
+
return T.children.push(E), n.set(E.groupId, T), I = T.children[T.children.length - 1], V.push(I), I;
|
|
6009
6018
|
}
|
|
6010
6019
|
function c(x, k, I, V) {
|
|
6011
6020
|
I.pop();
|
|
@@ -6016,16 +6025,16 @@ function uo() {
|
|
|
6016
6025
|
let P = x[x.length - 1];
|
|
6017
6026
|
if (!P)
|
|
6018
6027
|
throw new Error("The group path is out of range");
|
|
6019
|
-
const
|
|
6028
|
+
const E = k.get(V) || 0, R = k.get(I) || 0;
|
|
6020
6029
|
if (I < 0 || I === V)
|
|
6021
6030
|
return x[x.length - 1];
|
|
6022
|
-
const N =
|
|
6023
|
-
return P = N > 0 ? d(
|
|
6031
|
+
const N = E - R, $ = p && p.relation !== void 0 ? p.relation : 1;
|
|
6032
|
+
return P = N > 0 ? d(R, N, P, x, $) : P, P = N < 0 ? m(R, N, P, x, $) : P, P = N === 0 && R > 0 && E > 0 && p && T && !!p.rBracket && !!T.lBracket ? c(R, P, x, $) : P, P;
|
|
6024
6033
|
}
|
|
6025
6034
|
function s(x) {
|
|
6026
6035
|
const I = { relation: x.length && x[0].relation !== void 0 ? x[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, V = [I], p = l(x);
|
|
6027
6036
|
return x.forEach((T, P) => {
|
|
6028
|
-
const
|
|
6037
|
+
const E = P - 1, R = x[E], N = u(V, p, E, P, R, T);
|
|
6029
6038
|
N.items.push(T), t.set(T.conditionId, N);
|
|
6030
6039
|
}), e.value = I, I;
|
|
6031
6040
|
}
|
|
@@ -6048,14 +6057,14 @@ function uo() {
|
|
|
6048
6057
|
}
|
|
6049
6058
|
function S(x, k, I, V) {
|
|
6050
6059
|
x.reduce((p, T) => {
|
|
6051
|
-
const P = T.conditionId !== void 0,
|
|
6060
|
+
const P = T.conditionId !== void 0, E = T.groupId !== void 0;
|
|
6052
6061
|
if (P) {
|
|
6053
|
-
const
|
|
6054
|
-
I.push(
|
|
6062
|
+
const R = T;
|
|
6063
|
+
I.push(R), p.items.set(R.conditionId, R);
|
|
6055
6064
|
}
|
|
6056
|
-
if (
|
|
6057
|
-
const
|
|
6058
|
-
V.push(
|
|
6065
|
+
if (E) {
|
|
6066
|
+
const R = T;
|
|
6067
|
+
V.push(R), p.groups.set(R.groupId, R);
|
|
6059
6068
|
}
|
|
6060
6069
|
return p;
|
|
6061
6070
|
}, k);
|
|
@@ -6200,8 +6209,8 @@ const ht = /* @__PURE__ */ Oe({
|
|
|
6200
6209
|
} = ms(e, t, i);
|
|
6201
6210
|
d(!1), r.value = a(r.value), v(o.value);
|
|
6202
6211
|
function x(N) {
|
|
6203
|
-
var
|
|
6204
|
-
const $ = ((
|
|
6212
|
+
var H;
|
|
6213
|
+
const $ = ((H = l.get(N.fieldCode)) == null ? void 0 : H.editor) || {
|
|
6205
6214
|
type: "text"
|
|
6206
6215
|
};
|
|
6207
6216
|
N.value = O($.type, void 0), t.emit("labelCodeChange", N);
|
|
@@ -6219,7 +6228,7 @@ const ht = /* @__PURE__ */ Oe({
|
|
|
6219
6228
|
}
|
|
6220
6229
|
function p(N) {
|
|
6221
6230
|
return N.items.map(($) => {
|
|
6222
|
-
var
|
|
6231
|
+
var H;
|
|
6223
6232
|
return h("div", {
|
|
6224
6233
|
class: "condition-list-item",
|
|
6225
6234
|
key: $.conditionId
|
|
@@ -6231,8 +6240,8 @@ const ht = /* @__PURE__ */ Oe({
|
|
|
6231
6240
|
"id-field": "id",
|
|
6232
6241
|
data: r.value,
|
|
6233
6242
|
modelValue: $.fieldCode,
|
|
6234
|
-
"onUpdate:modelValue": (
|
|
6235
|
-
onChange: (
|
|
6243
|
+
"onUpdate:modelValue": (W) => $.fieldCode = W,
|
|
6244
|
+
onChange: (W) => x($)
|
|
6236
6245
|
}, null)]), h("div", {
|
|
6237
6246
|
class: "condition-list-item-compare mr-3"
|
|
6238
6247
|
}, [h(Ct, {
|
|
@@ -6241,17 +6250,17 @@ const ht = /* @__PURE__ */ Oe({
|
|
|
6241
6250
|
"id-field": "id",
|
|
6242
6251
|
data: B($),
|
|
6243
6252
|
modelValue: $.compareType,
|
|
6244
|
-
"onUpdate:modelValue": (
|
|
6245
|
-
onChange: (
|
|
6253
|
+
"onUpdate:modelValue": (W) => $.compareType = W,
|
|
6254
|
+
onChange: (W) => k(W, $)
|
|
6246
6255
|
}, null)]), h("div", {
|
|
6247
6256
|
class: "condition-list-item-control mr-3"
|
|
6248
6257
|
}, [h(ls, {
|
|
6249
|
-
editor: (
|
|
6258
|
+
editor: (H = l.get($.fieldCode)) == null ? void 0 : H.editor,
|
|
6250
6259
|
showLabel: !1,
|
|
6251
6260
|
modelValue: $.value.value,
|
|
6252
|
-
"onUpdate:modelValue": (
|
|
6253
|
-
onChange: (
|
|
6254
|
-
V(
|
|
6261
|
+
"onUpdate:modelValue": (W) => $.value.value = W,
|
|
6262
|
+
onChange: (W) => {
|
|
6263
|
+
V(W, $);
|
|
6255
6264
|
}
|
|
6256
6265
|
}, null)]), h("div", {
|
|
6257
6266
|
class: "condition-list-item-extend"
|
|
@@ -6292,10 +6301,10 @@ const ht = /* @__PURE__ */ Oe({
|
|
|
6292
6301
|
class: "condition-list-content-group"
|
|
6293
6302
|
}, [p(N), N.children && N.children.map(($) => P($))]), T(N)]);
|
|
6294
6303
|
}
|
|
6295
|
-
function
|
|
6304
|
+
function E() {
|
|
6296
6305
|
_(f.getSelectedGroupItem()), f.clear();
|
|
6297
6306
|
}
|
|
6298
|
-
function
|
|
6307
|
+
function R() {
|
|
6299
6308
|
return h("div", {
|
|
6300
6309
|
class: "condition-list-bottom"
|
|
6301
6310
|
}, [h("div", {
|
|
@@ -6305,24 +6314,24 @@ const ht = /* @__PURE__ */ Oe({
|
|
|
6305
6314
|
class: "f-icon f-icon-filter-add"
|
|
6306
6315
|
}, null), h("span", {
|
|
6307
6316
|
class: "ml-1"
|
|
6308
|
-
}, [
|
|
6317
|
+
}, [Ee("添加条件")])]), h("div", {
|
|
6309
6318
|
class: "add-condition-btn mb-1",
|
|
6310
|
-
onClick:
|
|
6319
|
+
onClick: E
|
|
6311
6320
|
}, [h("span", {
|
|
6312
6321
|
class: "f-icon f-icon-filter-grouping"
|
|
6313
6322
|
}, null), h("span", {
|
|
6314
6323
|
class: "ml-1"
|
|
6315
|
-
}, [
|
|
6324
|
+
}, [Ee("生成条件组")])]), h("div", {
|
|
6316
6325
|
class: "condition-list-reset add-condition-btn",
|
|
6317
6326
|
onClick: I
|
|
6318
|
-
}, [
|
|
6327
|
+
}, [Ee("重置")])]);
|
|
6319
6328
|
}
|
|
6320
6329
|
return () => h("div", {
|
|
6321
6330
|
class: "condition-list",
|
|
6322
6331
|
key: n.value
|
|
6323
6332
|
}, [h("div", {
|
|
6324
6333
|
class: "condition-list-body"
|
|
6325
|
-
}, [P(y.value)]),
|
|
6334
|
+
}, [P(y.value)]), R()]);
|
|
6326
6335
|
}
|
|
6327
6336
|
});
|
|
6328
6337
|
ht.install = (e) => {
|
|
@@ -6493,7 +6502,7 @@ function qt(e, t) {
|
|
|
6493
6502
|
const V = k[B];
|
|
6494
6503
|
let p = x.get(V);
|
|
6495
6504
|
if (!p) {
|
|
6496
|
-
const P = l.value.reduce((
|
|
6505
|
+
const P = l.value.reduce((E, R) => (E.set(R, 0), E), /* @__PURE__ */ new Map());
|
|
6497
6506
|
p = {
|
|
6498
6507
|
field: B,
|
|
6499
6508
|
title: ((T = M.get(B)) == null ? void 0 : T.title) || B,
|
|
@@ -6505,8 +6514,8 @@ function qt(e, t) {
|
|
|
6505
6514
|
}
|
|
6506
6515
|
return l.value && l.value.forEach((P) => {
|
|
6507
6516
|
if (p) {
|
|
6508
|
-
const
|
|
6509
|
-
p.groupSummaries.set(P,
|
|
6517
|
+
const E = p.groupSummaries.get(P) || 0;
|
|
6518
|
+
p.groupSummaries.set(P, E + k[P]);
|
|
6510
6519
|
}
|
|
6511
6520
|
}), p.details.push(k), x;
|
|
6512
6521
|
}, w), f < b.length - 1 && w.forEach((x, k) => {
|
|
@@ -6568,28 +6577,28 @@ function Ss(e, t, n, o) {
|
|
|
6568
6577
|
const i = F(!!e.hierarchy), { idField: a } = o, { collapseField: r, hasChildrenField: l, parentIdField: d } = n, m = /* @__PURE__ */ new Map();
|
|
6569
6578
|
function c(V, p) {
|
|
6570
6579
|
const T = /* @__PURE__ */ new Map();
|
|
6571
|
-
return V.reduce((P,
|
|
6572
|
-
const
|
|
6573
|
-
if (
|
|
6574
|
-
const $ = p.get(
|
|
6575
|
-
|
|
6576
|
-
}
|
|
6577
|
-
const N = P.has(
|
|
6578
|
-
return N.push(
|
|
6580
|
+
return V.reduce((P, E) => {
|
|
6581
|
+
const R = E[d.value] !== void 0 ? E[d.value] : "";
|
|
6582
|
+
if (R && p.has(R)) {
|
|
6583
|
+
const $ = p.get(R);
|
|
6584
|
+
E.__fv_parent_index__ = $.__fv_index__, $.__fv_hasChildren__ = !0;
|
|
6585
|
+
}
|
|
6586
|
+
const N = P.has(R) ? P.get(R) : [];
|
|
6587
|
+
return N.push(E), P.set(R, N), P;
|
|
6579
6588
|
}, T), T;
|
|
6580
6589
|
}
|
|
6581
6590
|
function u(V) {
|
|
6582
6591
|
const p = /* @__PURE__ */ new Map();
|
|
6583
6592
|
return V.reduce((T, P) => {
|
|
6584
|
-
const
|
|
6585
|
-
return T.set(
|
|
6593
|
+
const E = P[a.value];
|
|
6594
|
+
return T.set(E, P), T;
|
|
6586
6595
|
}, p), p;
|
|
6587
6596
|
}
|
|
6588
6597
|
function s(V) {
|
|
6589
6598
|
V.forEach((p) => {
|
|
6590
6599
|
const T = p[a.value];
|
|
6591
|
-
p.__fv_children_index__.map((
|
|
6592
|
-
|
|
6600
|
+
p.__fv_children_index__.map((E) => V[E]).forEach((E) => {
|
|
6601
|
+
E.__fv_parents__ = new Map([
|
|
6593
6602
|
...p.__fv_parents__.entries(),
|
|
6594
6603
|
[T, !0]
|
|
6595
6604
|
]);
|
|
@@ -6599,14 +6608,14 @@ function Ss(e, t, n, o) {
|
|
|
6599
6608
|
function _(V) {
|
|
6600
6609
|
V.forEach((p) => {
|
|
6601
6610
|
const T = new Set(p.__fv_children_index__);
|
|
6602
|
-
p.__fv_children_index__ = [...T].sort((P,
|
|
6611
|
+
p.__fv_children_index__ = [...T].sort((P, E) => P - E);
|
|
6603
6612
|
});
|
|
6604
6613
|
}
|
|
6605
6614
|
function g(V, p) {
|
|
6606
6615
|
V.forEach((T) => {
|
|
6607
6616
|
const P = T.__fv_parents__;
|
|
6608
|
-
Array.from(P.keys()).map((
|
|
6609
|
-
|
|
6617
|
+
Array.from(P.keys()).map((E) => p.get(E)).forEach((E) => {
|
|
6618
|
+
E.__fv_children_index__.push(T.__fv_index__);
|
|
6610
6619
|
});
|
|
6611
6620
|
}), _(V);
|
|
6612
6621
|
}
|
|
@@ -6620,9 +6629,9 @@ function Ss(e, t, n, o) {
|
|
|
6620
6629
|
}
|
|
6621
6630
|
function C(V, p) {
|
|
6622
6631
|
Array.from(p.keys()).forEach((T) => {
|
|
6623
|
-
p.get(T).reduce((
|
|
6624
|
-
const N =
|
|
6625
|
-
return
|
|
6632
|
+
p.get(T).reduce((E, R) => {
|
|
6633
|
+
const N = R[a.value], $ = V.get(R[a.value]), H = V.get(T);
|
|
6634
|
+
return H && (H.children.set(N, $), H.children.set(N, $), $.parentId = T, $.parentIndex = H.index, $.parents.set(T, H)), E;
|
|
6626
6635
|
}, V);
|
|
6627
6636
|
});
|
|
6628
6637
|
}
|
|
@@ -6636,8 +6645,8 @@ function Ss(e, t, n, o) {
|
|
|
6636
6645
|
}
|
|
6637
6646
|
function w(V, p) {
|
|
6638
6647
|
V.filter((T) => T[d.value] === void 0 || T[d.value] === "").forEach((T) => {
|
|
6639
|
-
const P = T[a.value],
|
|
6640
|
-
y(
|
|
6648
|
+
const P = T[a.value], E = p.get(P);
|
|
6649
|
+
y(E);
|
|
6641
6650
|
});
|
|
6642
6651
|
}
|
|
6643
6652
|
function O(V) {
|
|
@@ -6648,9 +6657,9 @@ function Ss(e, t, n, o) {
|
|
|
6648
6657
|
});
|
|
6649
6658
|
}
|
|
6650
6659
|
function f(V) {
|
|
6651
|
-
m.clear(), V.forEach((P,
|
|
6652
|
-
const
|
|
6653
|
-
m.set(
|
|
6660
|
+
m.clear(), V.forEach((P, E) => {
|
|
6661
|
+
const R = P[a.value];
|
|
6662
|
+
m.set(R, S(R, E));
|
|
6654
6663
|
});
|
|
6655
6664
|
const p = u(V), T = c(V, p);
|
|
6656
6665
|
return C(m, T), w(V, m), O(m), m;
|
|
@@ -6665,46 +6674,46 @@ function Ss(e, t, n, o) {
|
|
|
6665
6674
|
function B(V) {
|
|
6666
6675
|
f(t.value);
|
|
6667
6676
|
const p = u(V), T = c(V, p);
|
|
6668
|
-
return V.forEach((P,
|
|
6669
|
-
var
|
|
6670
|
-
const
|
|
6677
|
+
return V.forEach((P, E) => {
|
|
6678
|
+
var H;
|
|
6679
|
+
const R = P[a.value], N = T.has(R) ? (H = T.get(R)) == null ? void 0 : H.map((W) => W.__fv_index__) : [], $ = S(R, E);
|
|
6671
6680
|
P.__fv_graph_node__ = $, P.__fv_children_index__ = N, P.__fv_descendant_index__ = [...N], P.__fv_parents__ = /* @__PURE__ */ new Map(), M(P) && (P[r.value] = !0);
|
|
6672
6681
|
}), s(V), g(V, p), e.showLines && v(V), V;
|
|
6673
6682
|
}
|
|
6674
6683
|
function x(V, p, T) {
|
|
6675
|
-
const
|
|
6676
|
-
if (
|
|
6677
|
-
const N = m.get(
|
|
6684
|
+
const E = T.value[V][a.value], R = m.get(E);
|
|
6685
|
+
if (R) {
|
|
6686
|
+
const N = m.get(R.parentId);
|
|
6678
6687
|
let $ = T.value.length - 1;
|
|
6679
6688
|
if (N) {
|
|
6680
|
-
const
|
|
6681
|
-
if (
|
|
6682
|
-
const
|
|
6683
|
-
$ = T.value.findIndex((
|
|
6689
|
+
const H = Array.from(N.children.keys()).indexOf(R.id);
|
|
6690
|
+
if (H === N.children.size - 1) {
|
|
6691
|
+
const ae = Array.from(N.descendant.values())[N.descendant.size - 1];
|
|
6692
|
+
$ = T.value.findIndex((X) => X[a.value] === ae.id) + 1;
|
|
6684
6693
|
} else {
|
|
6685
|
-
const
|
|
6686
|
-
$ = T.value.findIndex((
|
|
6694
|
+
const ae = Array.from(N.children.values())[H + 1];
|
|
6695
|
+
$ = T.value.findIndex((X) => X[a.value] === ae.id);
|
|
6687
6696
|
}
|
|
6688
6697
|
p[l.value] = !1, p[d.value] = N.id, T.value.splice($, 0, p);
|
|
6689
6698
|
}
|
|
6690
6699
|
}
|
|
6691
6700
|
}
|
|
6692
6701
|
function k(V, p, T) {
|
|
6693
|
-
const P = T.value[V],
|
|
6694
|
-
if (m.get(
|
|
6695
|
-
const $ = T.value.findIndex((
|
|
6696
|
-
P[l.value] = !0, P[r.value] = !1, p[l.value] = !1, p[d.value] =
|
|
6702
|
+
const P = T.value[V], E = P[a.value];
|
|
6703
|
+
if (m.get(E)) {
|
|
6704
|
+
const $ = T.value.findIndex((H) => H[a.value] === E) + 1;
|
|
6705
|
+
P[l.value] = !0, P[r.value] = !1, p[l.value] = !1, p[d.value] = E, T.value.splice($, 0, p);
|
|
6697
6706
|
}
|
|
6698
6707
|
}
|
|
6699
6708
|
function I(V, p) {
|
|
6700
|
-
const T = V[a.value], P = m.get(T),
|
|
6701
|
-
|
|
6702
|
-
const
|
|
6703
|
-
if (
|
|
6704
|
-
const $ = p.find((
|
|
6709
|
+
const T = V[a.value], P = m.get(T), E = Array.from(P.descendant.keys());
|
|
6710
|
+
E.unshift(T);
|
|
6711
|
+
const R = m.get(P.parentId);
|
|
6712
|
+
if (R && (R.children.delete(T), R.children.size === 0)) {
|
|
6713
|
+
const $ = p.find((H) => H[a.value] === P.parentId);
|
|
6705
6714
|
$[l.value] = !1, $[r.value] = !1;
|
|
6706
6715
|
}
|
|
6707
|
-
return p.filter(($) =>
|
|
6716
|
+
return p.filter(($) => E.indexOf($.id) === -1);
|
|
6708
6717
|
}
|
|
6709
6718
|
return { generateHierarchyData: B, hasRealChildren: b, insertSibling: x, insertChild: k, shouldStratifyData: i, trimmedOriginalData: I };
|
|
6710
6719
|
}
|
|
@@ -6751,7 +6760,7 @@ const _s = {
|
|
|
6751
6760
|
function v(C) {
|
|
6752
6761
|
return `f-preten-link ${C.customClass ? C.customClass : ""}`;
|
|
6753
6762
|
}
|
|
6754
|
-
|
|
6763
|
+
oe(n, () => {
|
|
6755
6764
|
n.value;
|
|
6756
6765
|
});
|
|
6757
6766
|
const S = () => {
|
|
@@ -6875,7 +6884,7 @@ class co {
|
|
|
6875
6884
|
}
|
|
6876
6885
|
return ut(() => {
|
|
6877
6886
|
document.body.removeChild(a);
|
|
6878
|
-
}),
|
|
6887
|
+
}), Re(() => {
|
|
6879
6888
|
n.updateNotifyPositionForCreate(i, l);
|
|
6880
6889
|
}), () => h(ft, ot({
|
|
6881
6890
|
ref: l
|
|
@@ -6964,42 +6973,42 @@ function fo(e, t, n, o, i) {
|
|
|
6964
6973
|
insertChild: I,
|
|
6965
6974
|
shouldStratifyData: V,
|
|
6966
6975
|
trimmedOriginalData: p
|
|
6967
|
-
} = M, { idField: T, reviseIdentifyField: P } = o,
|
|
6976
|
+
} = M, { idField: T, reviseIdentifyField: P } = o, E = F(e.newDataItem), R = F(e.data), N = F(e.data), { flatTreeData: $ } = Rs(e);
|
|
6968
6977
|
if (e.data && ((Xe = e.data[0]) != null && Xe.children)) {
|
|
6969
|
-
const
|
|
6970
|
-
b.value =
|
|
6978
|
+
const z = fe(e.data);
|
|
6979
|
+
b.value = z, R.value = z, N.value = z;
|
|
6971
6980
|
}
|
|
6972
|
-
const
|
|
6973
|
-
const
|
|
6974
|
-
return (
|
|
6981
|
+
const H = F(e.summary), W = D(() => {
|
|
6982
|
+
const z = H.value;
|
|
6983
|
+
return (z == null ? void 0 : z.groupFields) || [];
|
|
6975
6984
|
});
|
|
6976
|
-
let
|
|
6977
|
-
const
|
|
6978
|
-
function
|
|
6979
|
-
return $(
|
|
6980
|
-
}
|
|
6981
|
-
function
|
|
6982
|
-
|
|
6983
|
-
const
|
|
6984
|
-
let
|
|
6985
|
+
let ae = /* @__PURE__ */ new Map();
|
|
6986
|
+
const me = D(() => R.value.length), X = F(e.pagination), le = new co(), G = D(() => l.value ? m.value === "server" ? 0 : (d.value - 1) * a.value : 0), q = D(() => l.value ? m.value === "server" ? Math.min(a.value, r.value, me.value) : Math.min(G.value + a.value, r.value, me.value) : me.value);
|
|
6987
|
+
function fe(z) {
|
|
6988
|
+
return $(z);
|
|
6989
|
+
}
|
|
6990
|
+
function re() {
|
|
6991
|
+
R.value = b.value, f.value && (R.value = w(O.value, b.value, t)), ae = W.value.reduce((ie, ke) => (ie.set(ke, 0), ie), ae);
|
|
6992
|
+
const z = G.value, ne = q.value;
|
|
6993
|
+
let se = 0;
|
|
6985
6994
|
const Ie = [];
|
|
6986
|
-
if (
|
|
6987
|
-
P(
|
|
6988
|
-
const
|
|
6989
|
-
for (let ke =
|
|
6990
|
-
const Me =
|
|
6991
|
-
Me.__fv_data_grid_group_row__ ? (
|
|
6992
|
-
const Ge =
|
|
6993
|
-
|
|
6995
|
+
if (R.value.length) {
|
|
6996
|
+
P(R.value);
|
|
6997
|
+
const ie = T.value !== e.idField;
|
|
6998
|
+
for (let ke = z; ke < ne; ke++) {
|
|
6999
|
+
const Me = R.value[ke];
|
|
7000
|
+
Me.__fv_data_grid_group_row__ ? (se = 0, Me.__fv_data_index__ = "") : Me.__fv_data_grid_group_summary__ ? Me.__fv_data_index__ = "" : (se++, l.value ? Me.__fv_data_index__ = se + (d.value - 1) * a.value : Me.__fv_data_index__ = se), Me.__fv_index__ = ke, ie && (Me[T.value] = ke), W.value.forEach((Te) => {
|
|
7001
|
+
const Ge = ae.get(Te) || 0;
|
|
7002
|
+
ae.set(Te, Ge + Me[Te]);
|
|
6994
7003
|
}), Ie.push(Me);
|
|
6995
7004
|
}
|
|
6996
7005
|
}
|
|
6997
7006
|
return V.value && B(Ie), N.value = [...Ie], Ie;
|
|
6998
7007
|
}
|
|
6999
|
-
const
|
|
7000
|
-
function
|
|
7001
|
-
const
|
|
7002
|
-
const We = [...
|
|
7008
|
+
const ue = F(re());
|
|
7009
|
+
function ye(z, ne, se = !1) {
|
|
7010
|
+
const ie = (se ? re() : [...N.value]).filter((Te) => C.apply(Te)), ke = z && z.length ? ie.filter((Te) => z.reduce((Ge, We) => Ge && We.filter(Te), !0)) : ie, Me = ne && ne.length ? ke.sort((Te, Ge) => {
|
|
7011
|
+
const We = [...ne], nt = We.shift();
|
|
7003
7012
|
let Ye = nt.compare(Te[nt.field], Ge[nt.field]);
|
|
7004
7013
|
for (; Ye === 0 && We.length !== 0; ) {
|
|
7005
7014
|
const we = We.shift();
|
|
@@ -7007,169 +7016,169 @@ function fo(e, t, n, o, i) {
|
|
|
7007
7016
|
}
|
|
7008
7017
|
return Ye;
|
|
7009
7018
|
}) : ke;
|
|
7010
|
-
return
|
|
7019
|
+
return ue.value = Me.map((Te, Ge) => {
|
|
7011
7020
|
if (Te.__fv_data_grid_group_row__) {
|
|
7012
7021
|
const We = `group_of_${Te.__fv_data_grid_group_field__}_${Te.__fv_data_grid_group_value__}`;
|
|
7013
7022
|
Te.__fv_data_grid_group_collapse__ = !!c.get(We);
|
|
7014
7023
|
}
|
|
7015
7024
|
return Te.__fv_index__ = Ge, Te;
|
|
7016
|
-
}),
|
|
7025
|
+
}), ue.value;
|
|
7017
7026
|
}
|
|
7018
|
-
function Be(
|
|
7019
|
-
return g.clear(), S.value =
|
|
7027
|
+
function Be(z) {
|
|
7028
|
+
return g.clear(), S.value = z, S.value.reduce((ne, se) => (ne.set(se.field, se), ne), g), ye([], S.value);
|
|
7020
7029
|
}
|
|
7021
|
-
function
|
|
7022
|
-
return g.set(
|
|
7030
|
+
function Ce(z, ne) {
|
|
7031
|
+
return g.set(z, ne), S.value = Array.from(g.values()), ye([], S.value);
|
|
7023
7032
|
}
|
|
7024
|
-
function
|
|
7025
|
-
return g.delete(
|
|
7033
|
+
function ce(z) {
|
|
7034
|
+
return g.delete(z), S.value = Array.from(g.values()), ye([], S.value);
|
|
7026
7035
|
}
|
|
7027
|
-
function
|
|
7028
|
-
return u.set(
|
|
7036
|
+
function ve(z, ne) {
|
|
7037
|
+
return u.set(z, ne), v.value = Array.from(u.values()), ye([], Array.from(g.values()));
|
|
7029
7038
|
}
|
|
7030
|
-
function Se(
|
|
7031
|
-
return u.delete(
|
|
7039
|
+
function Se(z) {
|
|
7040
|
+
return u.delete(z), v.value = Array.from(u.values()), ye([], Array.from(g.values()), !0);
|
|
7032
7041
|
}
|
|
7033
|
-
function
|
|
7034
|
-
return u.clear(), v.value = [],
|
|
7035
|
-
}
|
|
7036
|
-
function
|
|
7037
|
-
const
|
|
7038
|
-
c.set(
|
|
7039
|
-
const Ie = (
|
|
7040
|
-
return s.set(`collapse_${
|
|
7041
|
-
field:
|
|
7042
|
-
fieldName:
|
|
7042
|
+
function ge() {
|
|
7043
|
+
return u.clear(), v.value = [], ye([], Array.from(g.values()), !0);
|
|
7044
|
+
}
|
|
7045
|
+
function he(z, ne) {
|
|
7046
|
+
const se = `group_of_${z}_${ne}`;
|
|
7047
|
+
c.set(se, !0);
|
|
7048
|
+
const Ie = (ie) => ie[z] !== ne;
|
|
7049
|
+
return s.set(`collapse_${z}_${ne}`, {
|
|
7050
|
+
field: z,
|
|
7051
|
+
fieldName: z,
|
|
7043
7052
|
fieldType: "string",
|
|
7044
|
-
filterValue:
|
|
7053
|
+
filterValue: ne,
|
|
7045
7054
|
filter: Ie
|
|
7046
|
-
}),
|
|
7055
|
+
}), ye(Array.from(s.values()), Array.from(g.values()));
|
|
7047
7056
|
}
|
|
7048
|
-
function Pe(
|
|
7049
|
-
const
|
|
7050
|
-
return c.set(
|
|
7057
|
+
function Pe(z, ne) {
|
|
7058
|
+
const se = `group_of_${z}_${ne}`;
|
|
7059
|
+
return c.set(se, !1), s.delete(`collapse_${z}_${ne}`), ye(Array.from(s.values()), Array.from(g.values()), !0);
|
|
7051
7060
|
}
|
|
7052
|
-
function
|
|
7053
|
-
const
|
|
7054
|
-
_.set(`fold_${
|
|
7061
|
+
function L(z) {
|
|
7062
|
+
const ne = z.raw[T.value], se = (Ie) => !Ie.__fv_parents__.has(ne);
|
|
7063
|
+
_.set(`fold_${ne}`, {
|
|
7055
7064
|
field: "id",
|
|
7056
7065
|
fieldName: "id",
|
|
7057
7066
|
fieldType: "string",
|
|
7058
|
-
filterValue: String(
|
|
7059
|
-
filter:
|
|
7060
|
-
}),
|
|
7061
|
-
}
|
|
7062
|
-
function
|
|
7063
|
-
const
|
|
7064
|
-
_.delete(`fold_${
|
|
7065
|
-
}
|
|
7066
|
-
function
|
|
7067
|
-
|
|
7068
|
-
}
|
|
7069
|
-
function
|
|
7070
|
-
const
|
|
7071
|
-
|
|
7072
|
-
}
|
|
7073
|
-
function
|
|
7074
|
-
var
|
|
7075
|
-
if (
|
|
7076
|
-
const
|
|
7077
|
-
b.value =
|
|
7067
|
+
filterValue: String(ne),
|
|
7068
|
+
filter: se
|
|
7069
|
+
}), ye(Array.from(_.values()), Array.from(g.values())), B(ue.value);
|
|
7070
|
+
}
|
|
7071
|
+
function pe(z) {
|
|
7072
|
+
const ne = z[T.value];
|
|
7073
|
+
_.delete(`fold_${ne}`);
|
|
7074
|
+
}
|
|
7075
|
+
function be(z) {
|
|
7076
|
+
pe(z.raw), ye(Array.from(_.values()), Array.from(g.values()), !0), B(ue.value);
|
|
7077
|
+
}
|
|
7078
|
+
function A() {
|
|
7079
|
+
const z = re();
|
|
7080
|
+
ue.value = z, e.hierarchy && (ye(Array.from(_.values()), Array.from(g.values())), B(ue.value));
|
|
7081
|
+
}
|
|
7082
|
+
function de(z) {
|
|
7083
|
+
var ne;
|
|
7084
|
+
if (z && ((ne = z[0]) != null && ne.children)) {
|
|
7085
|
+
const se = fe(z);
|
|
7086
|
+
b.value = se, R.value = se, N.value = se;
|
|
7078
7087
|
} else
|
|
7079
|
-
b.value =
|
|
7080
|
-
|
|
7088
|
+
b.value = z, R.value = z, N.value = z;
|
|
7089
|
+
A();
|
|
7081
7090
|
}
|
|
7082
|
-
function
|
|
7083
|
-
return (
|
|
7091
|
+
function U(z, ne, se) {
|
|
7092
|
+
return (z && z.length ? ue.value.filter((ie, ke) => z.reduce((Me, Te) => Me && Te.filter(ie), !0)) : ue.value).slice(ne, se);
|
|
7084
7093
|
}
|
|
7085
|
-
function
|
|
7086
|
-
(
|
|
7094
|
+
function Y(z) {
|
|
7095
|
+
(z - 1) * a.value <= me.value && A();
|
|
7087
7096
|
}
|
|
7088
|
-
function
|
|
7089
|
-
b.value.push(lt(
|
|
7097
|
+
function Fe(z) {
|
|
7098
|
+
b.value.push(lt(z)), ue.value = re();
|
|
7090
7099
|
}
|
|
7091
|
-
function xe(
|
|
7092
|
-
if (!(
|
|
7100
|
+
function xe(z = 0) {
|
|
7101
|
+
if (!(z > -1))
|
|
7093
7102
|
return !1;
|
|
7094
|
-
const
|
|
7095
|
-
e.hierarchy ? k(
|
|
7103
|
+
const se = E.value();
|
|
7104
|
+
e.hierarchy ? k(z, se, b) : b.value.splice(z, 0, se), A();
|
|
7096
7105
|
}
|
|
7097
|
-
function Ve(
|
|
7098
|
-
if (!(
|
|
7106
|
+
function Ve(z = 0) {
|
|
7107
|
+
if (!(z > -1 && e.hierarchy))
|
|
7099
7108
|
return !1;
|
|
7100
|
-
const
|
|
7101
|
-
|
|
7109
|
+
const se = E.value(), Ie = b.value[z];
|
|
7110
|
+
pe(Ie), I(z, se, b), A();
|
|
7102
7111
|
}
|
|
7103
|
-
function $e(
|
|
7104
|
-
const
|
|
7105
|
-
b.value.splice(
|
|
7112
|
+
function $e(z) {
|
|
7113
|
+
const ne = z ? z - 1 : 0;
|
|
7114
|
+
b.value.splice(ne, 1), A();
|
|
7106
7115
|
}
|
|
7107
|
-
function Le(
|
|
7108
|
-
const
|
|
7109
|
-
|
|
7116
|
+
function Le(z) {
|
|
7117
|
+
const ne = b.value.findIndex((se) => se[T.value] === z);
|
|
7118
|
+
ne !== -1 && (b.value.splice(ne, 1), A());
|
|
7110
7119
|
}
|
|
7111
|
-
function ze(
|
|
7112
|
-
const
|
|
7113
|
-
if (!(
|
|
7120
|
+
function ze(z) {
|
|
7121
|
+
const ne = z > -1 ? b.value[z] : null;
|
|
7122
|
+
if (!(ne && ne.deletable !== !1))
|
|
7114
7123
|
return !1;
|
|
7115
|
-
b.value = p(
|
|
7124
|
+
b.value = p(ne, b.value), A();
|
|
7116
7125
|
}
|
|
7117
7126
|
function Ze() {
|
|
7118
|
-
const
|
|
7119
|
-
return
|
|
7127
|
+
const z = s.size > 0 ? Array.from(s.values()) : [];
|
|
7128
|
+
return ye(z, Array.from(g.values()));
|
|
7120
7129
|
}
|
|
7121
|
-
function Je(
|
|
7122
|
-
|
|
7130
|
+
function Je(z) {
|
|
7131
|
+
X.value && (X.value.size = z, A());
|
|
7123
7132
|
}
|
|
7124
|
-
function et(
|
|
7125
|
-
const
|
|
7126
|
-
|
|
7133
|
+
function et(z, ne) {
|
|
7134
|
+
const se = b.value[Number(z) - 1];
|
|
7135
|
+
se.editable !== !1 ? (se.name = ne, A()) : le.show({
|
|
7127
7136
|
showCloseButton: !1,
|
|
7128
7137
|
timeout: 3e3,
|
|
7129
7138
|
animate: "fadeIn",
|
|
7130
7139
|
toasts: [{ type: "string", title: "提示", msg: "当前节点禁止编辑" }]
|
|
7131
7140
|
});
|
|
7132
7141
|
}
|
|
7133
|
-
function tt(
|
|
7134
|
-
return
|
|
7135
|
-
const Ie = N.value.findIndex((
|
|
7142
|
+
function tt(z) {
|
|
7143
|
+
return z.map((se) => {
|
|
7144
|
+
const Ie = N.value.findIndex((ie) => ie[T.value] === se);
|
|
7136
7145
|
return Ie > -1 ? N.value[Ie] : null;
|
|
7137
|
-
}).filter((
|
|
7146
|
+
}).filter((se) => se != null);
|
|
7138
7147
|
}
|
|
7139
7148
|
return {
|
|
7140
|
-
addFilter:
|
|
7141
|
-
addNewDataItem:
|
|
7142
|
-
addSorter:
|
|
7149
|
+
addFilter: ve,
|
|
7150
|
+
addNewDataItem: Fe,
|
|
7151
|
+
addSorter: Ce,
|
|
7143
7152
|
changePageSizeTo: Je,
|
|
7144
|
-
collapse:
|
|
7145
|
-
dataView:
|
|
7153
|
+
collapse: he,
|
|
7154
|
+
dataView: ue,
|
|
7146
7155
|
editDataItem: et,
|
|
7147
7156
|
expand: Pe,
|
|
7148
7157
|
filters: v,
|
|
7149
|
-
fold:
|
|
7150
|
-
getRange:
|
|
7158
|
+
fold: L,
|
|
7159
|
+
getRange: U,
|
|
7151
7160
|
getSelectionItems: tt,
|
|
7152
7161
|
hasRealChildren: x,
|
|
7153
|
-
load:
|
|
7154
|
-
navigatePageTo:
|
|
7155
|
-
summaries:
|
|
7156
|
-
totalItems:
|
|
7162
|
+
load: de,
|
|
7163
|
+
navigatePageTo: Y,
|
|
7164
|
+
summaries: ae,
|
|
7165
|
+
totalItems: me,
|
|
7157
7166
|
insertNewDataItem: xe,
|
|
7158
7167
|
insertNewChildDataItem: Ve,
|
|
7159
|
-
removeAllFilter:
|
|
7168
|
+
removeAllFilter: ge,
|
|
7160
7169
|
removeDataItem: $e,
|
|
7161
7170
|
removeDataItemById: Le,
|
|
7162
7171
|
removeFilter: Se,
|
|
7163
7172
|
removeHierarchyDataItem: ze,
|
|
7164
|
-
removeSorter:
|
|
7173
|
+
removeSorter: ce,
|
|
7165
7174
|
rawView: N,
|
|
7166
7175
|
refresh: Ze,
|
|
7167
7176
|
setSorters: Be,
|
|
7168
7177
|
sorters: S,
|
|
7169
|
-
updateDataView:
|
|
7170
|
-
unFold:
|
|
7171
|
-
startIndex:
|
|
7172
|
-
endIndex:
|
|
7178
|
+
updateDataView: A,
|
|
7179
|
+
unFold: be,
|
|
7180
|
+
startIndex: G,
|
|
7181
|
+
endIndex: q,
|
|
7173
7182
|
originalData: b
|
|
7174
7183
|
};
|
|
7175
7184
|
}
|
|
@@ -7214,7 +7223,7 @@ function mo(e) {
|
|
|
7214
7223
|
function ks(e, t, n, o) {
|
|
7215
7224
|
var v, S, C, y, w, O;
|
|
7216
7225
|
const { idField: i } = n, a = F(((S = (v = e.hierarchy) == null ? void 0 : v.cascadeOption) == null ? void 0 : S.autoCheckChildren) || !1), r = F(((y = (C = e.hierarchy) == null ? void 0 : C.cascadeOption) == null ? void 0 : y.autoCheckParent) || !1), l = F(((O = (w = e.hierarchy) == null ? void 0 : w.cascadeOption) == null ? void 0 : O.selectionRange) || "All");
|
|
7217
|
-
|
|
7226
|
+
oe(() => {
|
|
7218
7227
|
var f;
|
|
7219
7228
|
return (f = e.hierarchy) == null ? void 0 : f.cascadeOption;
|
|
7220
7229
|
}, (f) => {
|
|
@@ -7232,11 +7241,11 @@ function ks(e, t, n, o) {
|
|
|
7232
7241
|
const c = D(() => l.value === "OnlyParent"), u = D(() => l.value === "OnlyChildren");
|
|
7233
7242
|
function s(f, b) {
|
|
7234
7243
|
let M = f;
|
|
7235
|
-
const B = t.value[b], x = B.raw[i.value], k = Array.from(B.raw.__fv_descendant_index__).map((
|
|
7236
|
-
return p && V && c.value && (M = m(f, I), k.forEach((
|
|
7237
|
-
|
|
7238
|
-
})), p && V && u.value && (M = m(f, [x]), k.forEach((
|
|
7239
|
-
|
|
7244
|
+
const B = t.value[b], x = B.raw[i.value], k = Array.from(B.raw.__fv_descendant_index__).map((E) => t.value[E]), I = k.map((E) => E.raw[i.value]), V = d(f, I), p = d(f, [x]);
|
|
7245
|
+
return p && V && c.value && (M = m(f, I), k.forEach((E) => {
|
|
7246
|
+
E.disable = !0;
|
|
7247
|
+
})), p && V && u.value && (M = m(f, [x]), k.forEach((E) => {
|
|
7248
|
+
E.disable = !0;
|
|
7240
7249
|
})), M;
|
|
7241
7250
|
}
|
|
7242
7251
|
function _(f, b) {
|
|
@@ -7288,7 +7297,7 @@ function Ts(e, t, n, o, i) {
|
|
|
7288
7297
|
function w(b, M) {
|
|
7289
7298
|
let B = -1;
|
|
7290
7299
|
if (b.raw.__fv_parent_index__ > -1) {
|
|
7291
|
-
const V = t.value[b.raw.__fv_parent_index__].raw.__fv_descendant_index__, p = V.length > 1, T = V.findIndex((
|
|
7300
|
+
const V = t.value[b.raw.__fv_parent_index__].raw.__fv_descendant_index__, p = V.length > 1, T = V.findIndex((E) => E === M), P = T === V.length - 1;
|
|
7292
7301
|
B = p ? P ? V[T - 1] : V[T + 1] : -1;
|
|
7293
7302
|
}
|
|
7294
7303
|
return B > -1 ? t.value[B] : null;
|
|
@@ -7306,154 +7315,154 @@ function Ts(e, t, n, o, i) {
|
|
|
7306
7315
|
return { getNextSelectableHierarchyItemId: f, toggleSelectHierarchyItem: y };
|
|
7307
7316
|
}
|
|
7308
7317
|
function go(e, t, n, o, i, a, r, l) {
|
|
7309
|
-
var
|
|
7310
|
-
const { dataView: d } = t, { getVisualData: m, maxVisibleRowIndex: c, minVisibleRowIndex: u } = i, s = F(o.value.primaryColumnsWidth), _ = F(o.value.leftColumnsWidth), g = F(o.value.rightColumnsWidth), v = ((
|
|
7318
|
+
var de;
|
|
7319
|
+
const { dataView: d } = t, { getVisualData: m, maxVisibleRowIndex: c, minVisibleRowIndex: u } = i, s = F(o.value.primaryColumnsWidth), _ = F(o.value.leftColumnsWidth), g = F(o.value.rightColumnsWidth), v = ((de = e.rowOption) == null ? void 0 : de.height) || 28, S = F(0), C = F(0);
|
|
7311
7320
|
let y = 0, w = a.value - 1;
|
|
7312
7321
|
const O = F(0), f = F(0), b = F(0);
|
|
7313
7322
|
function M() {
|
|
7314
7323
|
if (d.value.length <= 0)
|
|
7315
7324
|
return 0;
|
|
7316
|
-
const
|
|
7317
|
-
return (
|
|
7325
|
+
const U = c.value < d.value.length ? d.value[c.value] : d.value[d.value.length - 1];
|
|
7326
|
+
return (U.__fv_data_position__ || 0) + (U.__fv_data_height__ || 0) + Math.max(d.value.length - 1 - c.value, 0) * v;
|
|
7318
7327
|
}
|
|
7319
7328
|
const B = D(() => {
|
|
7320
|
-
const
|
|
7321
|
-
return d.value.length > a.value + r ? Math.floor((a.value + r) / d.value.length * f.value) : Math.floor(f.value / Math.max(
|
|
7329
|
+
const U = M();
|
|
7330
|
+
return d.value.length > a.value + r ? Math.floor((a.value + r) / d.value.length * f.value) : Math.floor(f.value / Math.max(U, f.value) * f.value);
|
|
7322
7331
|
}), x = D(() => Math.floor(b.value / Math.max(s.value, b.value) * O.value)), k = 0, I = 0, V = D(() => O.value - (_.value + s.value + g.value + l.value));
|
|
7323
|
-
function p(
|
|
7324
|
-
const
|
|
7325
|
-
return
|
|
7332
|
+
function p(U) {
|
|
7333
|
+
const Y = d.value.find((Fe) => Fe.__fv_data_position__ > U);
|
|
7334
|
+
return Y ? Y.__fv_index__ - 1 : 0;
|
|
7326
7335
|
}
|
|
7327
|
-
function T(
|
|
7336
|
+
function T(U) {
|
|
7328
7337
|
var Le, ze;
|
|
7329
7338
|
if (!d.value.length) {
|
|
7330
7339
|
n.value = [];
|
|
7331
7340
|
return;
|
|
7332
7341
|
}
|
|
7333
|
-
const
|
|
7342
|
+
const Y = (Le = e.pagination) != null && Le.enable ? 0 : Math.max(y - r, 0), Fe = d.value[d.value.length - 1].__fv_index__, xe = (ze = e.pagination) != null && ze.enable ? d.value.length - 1 : Math.min(w + r - 1, Fe), Ve = d.value[Y - 1], $e = m(Y, xe, Ve, U);
|
|
7334
7343
|
$e.length && (n.value = [...$e]);
|
|
7335
7344
|
}
|
|
7336
|
-
const P = D(() => M() > f.value),
|
|
7337
|
-
function
|
|
7338
|
-
let
|
|
7339
|
-
|
|
7340
|
-
const
|
|
7341
|
-
Ve &&
|
|
7345
|
+
const P = D(() => M() > f.value), E = D(() => s.value > b.value);
|
|
7346
|
+
function R(U) {
|
|
7347
|
+
let Y = S.value + U;
|
|
7348
|
+
Y > k && (Y = k);
|
|
7349
|
+
const Fe = Y > k, xe = M(), Ve = P.value;
|
|
7350
|
+
Ve && Y < f.value - xe && (Y = f.value - xe), (!Ve || Fe) && (Y = k), S.value !== Y && (S.value = Y, y = p(Math.abs(S.value)), w = y + a.value, (y < u.value || w > c.value - r / 2) && T());
|
|
7342
7351
|
}
|
|
7343
|
-
function N(
|
|
7344
|
-
if (!
|
|
7352
|
+
function N(U) {
|
|
7353
|
+
if (!E.value) {
|
|
7345
7354
|
C.value = 0;
|
|
7346
7355
|
return;
|
|
7347
7356
|
}
|
|
7348
|
-
let
|
|
7349
|
-
|
|
7357
|
+
let Y = C.value + U;
|
|
7358
|
+
Y > I && (Y = I), Y < V.value && (Y = V.value), C.value !== Y && (C.value = Y);
|
|
7350
7359
|
}
|
|
7351
7360
|
function $() {
|
|
7352
7361
|
Math.abs(C.value) + b.value > s.value && (C.value = Math.min(b.value - s.value, 0));
|
|
7353
7362
|
}
|
|
7354
|
-
function
|
|
7363
|
+
function H() {
|
|
7355
7364
|
S.value = 0, y = 0, w = a.value - 1, T();
|
|
7356
7365
|
}
|
|
7357
|
-
|
|
7366
|
+
oe(b, () => {
|
|
7358
7367
|
N(0);
|
|
7359
|
-
}),
|
|
7368
|
+
}), oe(o, () => {
|
|
7360
7369
|
s.value = o.value.primaryColumnsWidth, _.value = o.value.leftColumnsWidth, g.value = o.value.rightColumnsWidth;
|
|
7361
7370
|
});
|
|
7362
|
-
function
|
|
7363
|
-
|
|
7364
|
-
const
|
|
7365
|
-
|
|
7371
|
+
function W(U) {
|
|
7372
|
+
U.preventDefault(), U.stopPropagation();
|
|
7373
|
+
const Y = (U.wheelDeltaY || U.deltaY) / 10, Fe = (U.wheelDeltaX || U.deltaX) / 10;
|
|
7374
|
+
R(Y), N(Fe);
|
|
7366
7375
|
}
|
|
7367
|
-
const
|
|
7376
|
+
const ae = D(() => ({
|
|
7368
7377
|
height: `${d.value.length * v}px`,
|
|
7369
7378
|
width: `${_.value}px`,
|
|
7370
7379
|
transform: `translateY(${S.value}px)`
|
|
7371
|
-
})), te = D(() => ({
|
|
7372
|
-
transform: `translateY(${S.value}px)`
|
|
7373
7380
|
})), me = D(() => ({
|
|
7381
|
+
transform: `translateY(${S.value}px)`
|
|
7382
|
+
})), X = D(() => ({
|
|
7374
7383
|
height: `${d.value.length * v}px`,
|
|
7375
7384
|
width: `${s.value}px`,
|
|
7376
7385
|
transform: `translate(${C.value}px, ${S.value}px)`
|
|
7377
|
-
})),
|
|
7386
|
+
})), le = D(() => ({
|
|
7378
7387
|
transform: `translate(${C.value}px, ${S.value}px)`
|
|
7379
|
-
})),
|
|
7388
|
+
})), G = D(() => ({
|
|
7380
7389
|
height: `${d.value.length * v}px`,
|
|
7381
7390
|
width: `${g.value}px`,
|
|
7382
7391
|
transform: `translateY(${S.value}px)`
|
|
7383
|
-
})),
|
|
7392
|
+
})), q = D(() => ({
|
|
7384
7393
|
transform: `translateY(${S.value}px)`
|
|
7385
|
-
})),
|
|
7394
|
+
})), fe = D(() => ({
|
|
7386
7395
|
height: `${d.value.length * v}px`,
|
|
7387
7396
|
width: `${l.value}px`,
|
|
7388
7397
|
transform: `translateY(${S.value}px)`
|
|
7389
|
-
})),
|
|
7398
|
+
})), re = D(() => ({
|
|
7390
7399
|
width: `${_.value}px`
|
|
7391
|
-
})),
|
|
7400
|
+
})), ue = D(() => ({
|
|
7392
7401
|
transform: `translateX(${C.value}px)`
|
|
7393
|
-
})),
|
|
7402
|
+
})), ye = D(() => ({
|
|
7394
7403
|
width: `${g.value}px`
|
|
7395
7404
|
})), Be = D(() => {
|
|
7396
|
-
const
|
|
7397
|
-
return S.value / (f.value -
|
|
7398
|
-
}),
|
|
7405
|
+
const U = M();
|
|
7406
|
+
return S.value / (f.value - U) * (f.value - B.value);
|
|
7407
|
+
}), Ce = D(() => ({
|
|
7399
7408
|
height: `${B.value}px`,
|
|
7400
7409
|
top: `${Be.value}px`
|
|
7401
|
-
})),
|
|
7410
|
+
})), ce = D(() => C.value / V.value * (O.value - x.value)), ve = D(() => ({
|
|
7402
7411
|
width: `${x.value}px`,
|
|
7403
|
-
left: `${
|
|
7404
|
-
})), Se = F(!1),
|
|
7405
|
-
function
|
|
7406
|
-
if (Se.value &&
|
|
7407
|
-
const
|
|
7408
|
-
if (Math.abs(
|
|
7409
|
-
const xe =
|
|
7410
|
-
N(xe),
|
|
7412
|
+
left: `${ce.value}px`
|
|
7413
|
+
})), Se = F(!1), ge = F(-1), he = F(-1), Pe = F();
|
|
7414
|
+
function L(U) {
|
|
7415
|
+
if (Se.value && he.value !== -1) {
|
|
7416
|
+
const Y = he.value - U.pageX, Fe = O.value - x.value;
|
|
7417
|
+
if (Math.abs(Y) <= Fe) {
|
|
7418
|
+
const xe = Y / (b.value - x.value) * (s.value - b.value);
|
|
7419
|
+
N(xe), he.value = U.pageX;
|
|
7411
7420
|
}
|
|
7412
7421
|
}
|
|
7413
7422
|
}
|
|
7414
|
-
function
|
|
7415
|
-
if (Se.value &&
|
|
7416
|
-
const
|
|
7417
|
-
if (Math.abs(
|
|
7418
|
-
const Ve =
|
|
7419
|
-
|
|
7423
|
+
function pe(U) {
|
|
7424
|
+
if (Se.value && ge.value !== -1) {
|
|
7425
|
+
const Y = ge.value - U.pageY, Fe = M(), xe = Fe - B.value;
|
|
7426
|
+
if (Math.abs(Y) <= xe) {
|
|
7427
|
+
const Ve = Y / (f.value - B.value) * (Fe - f.value);
|
|
7428
|
+
R(Ve), ge.value = U.pageY;
|
|
7420
7429
|
}
|
|
7421
7430
|
}
|
|
7422
7431
|
}
|
|
7423
|
-
function
|
|
7424
|
-
Se.value = !1,
|
|
7432
|
+
function be(U) {
|
|
7433
|
+
Se.value = !1, ge.value = -1, he.value = -1, document.removeEventListener("mouseup", be), document.removeEventListener("mousemove", L), document.removeEventListener("mousemove", pe), document.body.style.userSelect = "", Pe.value && (Pe.value.style.opacity = null);
|
|
7425
7434
|
}
|
|
7426
|
-
function
|
|
7435
|
+
function A(U, Y, Fe) {
|
|
7427
7436
|
var $e;
|
|
7428
7437
|
Se.value = !0;
|
|
7429
|
-
const xe = ($e =
|
|
7438
|
+
const xe = ($e = U.target) == null ? void 0 : $e.parentElement;
|
|
7430
7439
|
xe && (xe.style.opacity = 1, Pe.value = xe);
|
|
7431
|
-
const Ve =
|
|
7432
|
-
|
|
7440
|
+
const Ve = Fe === "horizontal" ? L : pe;
|
|
7441
|
+
Fe === "vertical" && (ge.value = U.pageY), Fe === "horizontal" && (he.value = U.pageX), Y.value && (Y.value, document.addEventListener("mousemove", Ve), document.addEventListener("mouseup", be), document.body.style.userSelect = "none");
|
|
7433
7442
|
}
|
|
7434
7443
|
return {
|
|
7435
|
-
onMouseDownScrollThumb:
|
|
7436
|
-
onWheel:
|
|
7444
|
+
onMouseDownScrollThumb: A,
|
|
7445
|
+
onWheel: W,
|
|
7437
7446
|
dataGridWidth: O,
|
|
7438
|
-
gridDataStyle:
|
|
7439
|
-
gridHeaderColumnsStyle:
|
|
7440
|
-
gridMergedDataStyle:
|
|
7441
|
-
gridSideStyle:
|
|
7447
|
+
gridDataStyle: X,
|
|
7448
|
+
gridHeaderColumnsStyle: ue,
|
|
7449
|
+
gridMergedDataStyle: le,
|
|
7450
|
+
gridSideStyle: fe,
|
|
7442
7451
|
fitHorizontalScroll: $,
|
|
7443
7452
|
viewPortWidth: b,
|
|
7444
7453
|
viewPortHeight: f,
|
|
7445
|
-
horizontalScrollThumbStyle:
|
|
7446
|
-
leftFixedGridDataStyle:
|
|
7447
|
-
leftFixedGridHeaderColumnsStyle:
|
|
7448
|
-
leftFixedGridMergedDataStyle:
|
|
7454
|
+
horizontalScrollThumbStyle: ve,
|
|
7455
|
+
leftFixedGridDataStyle: ae,
|
|
7456
|
+
leftFixedGridHeaderColumnsStyle: re,
|
|
7457
|
+
leftFixedGridMergedDataStyle: me,
|
|
7449
7458
|
reCalculateVisualDataRows: T,
|
|
7450
|
-
resetScroll:
|
|
7451
|
-
rightFixedGridDataStyle:
|
|
7452
|
-
rightFixedGridHeaderColumnsStyle:
|
|
7453
|
-
rightFixedGridMergedDataStyle:
|
|
7454
|
-
shouldShowHorizontalScrollbar:
|
|
7459
|
+
resetScroll: H,
|
|
7460
|
+
rightFixedGridDataStyle: G,
|
|
7461
|
+
rightFixedGridHeaderColumnsStyle: ye,
|
|
7462
|
+
rightFixedGridMergedDataStyle: q,
|
|
7463
|
+
shouldShowHorizontalScrollbar: E,
|
|
7455
7464
|
shouldShowVirticalScrollbar: P,
|
|
7456
|
-
verticalScrollThumbStyle:
|
|
7465
|
+
verticalScrollThumbStyle: Ce,
|
|
7457
7466
|
offsetX: C,
|
|
7458
7467
|
offsetY: S
|
|
7459
7468
|
};
|
|
@@ -7543,12 +7552,12 @@ function yo(e, t, n, o, i, a) {
|
|
|
7543
7552
|
var C, y;
|
|
7544
7553
|
const r = F(e.rowOption), l = ((C = r.value) == null ? void 0 : C.height) || 28, d = ((y = r.value) == null ? void 0 : y.wrapContent) || !1, { idField: m } = o, { collapseField: c } = n, { updateRowPosition: u } = i, { createCellByColumn: s } = a;
|
|
7545
7554
|
function _(w, O, f, b, M, B) {
|
|
7546
|
-
var
|
|
7555
|
+
var ae, me;
|
|
7547
7556
|
const {
|
|
7548
7557
|
__fv_data_grid_group_field__: x,
|
|
7549
7558
|
__fv_data_grid_group_value__: k,
|
|
7550
7559
|
__fv_data_index__: I
|
|
7551
|
-
} = f, V = f.__fv_data_grid_group_layer__ || f.__fv_parents__ ? (
|
|
7560
|
+
} = f, V = f.__fv_data_grid_group_layer__ || f.__fv_parents__ ? (ae = f.__fv_parents__) == null ? void 0 : ae.size : 0, p = typeof f.parent == "number" ? Number(f.parent) : -1, T = f.__fv_data_grid_group_collapse__ || f[c.value], P = f.__fv_visible__ === void 0 ? !0 : f.__fv_visible__, E = f.__fv_checked__, R = f.__fv_indeterminate__, N = b && b[m.value] === f.parent, $ = b && b.parent === f.parent, H = N && M && (M.collapse || !M.visible) || $ && M && !M.visible, W = {
|
|
7552
7561
|
collapse: T,
|
|
7553
7562
|
data: {},
|
|
7554
7563
|
dataIndex: I,
|
|
@@ -7561,15 +7570,15 @@ function yo(e, t, n, o, i, a) {
|
|
|
7561
7570
|
top: B,
|
|
7562
7571
|
type: w,
|
|
7563
7572
|
raw: f,
|
|
7564
|
-
checked:
|
|
7565
|
-
indeterminate:
|
|
7566
|
-
setRef: (
|
|
7567
|
-
|
|
7573
|
+
checked: E,
|
|
7574
|
+
indeterminate: R,
|
|
7575
|
+
setRef: (X) => {
|
|
7576
|
+
W.ref = X;
|
|
7568
7577
|
},
|
|
7569
|
-
visible: P && !
|
|
7578
|
+
visible: P && !H,
|
|
7570
7579
|
status: qe.initial
|
|
7571
7580
|
};
|
|
7572
|
-
return b || (f.__fv_data_position__ = 0), d || (
|
|
7581
|
+
return b || (f.__fv_data_position__ = 0), d || (W.height = l, f.__fv_data_height__ = W.height, u(W, f)), (me = r.value) != null && me.customRowStatus && (r.value.customRowStatus(W), f.__fv_collapse__ = W.collapse, f.__fv_visible__ = W.visible), W;
|
|
7573
7582
|
}
|
|
7574
7583
|
function g(w, O, f, b, M, B) {
|
|
7575
7584
|
const x = _(it.data, M, O, f, b, B);
|
|
@@ -7627,9 +7636,9 @@ function bo(e, t) {
|
|
|
7627
7636
|
const {
|
|
7628
7637
|
idField: n
|
|
7629
7638
|
} = t, o = F(e.editable), i = F(e.editOption), a = F(((O = e.rowOption) == null ? void 0 : O.wrapContent) || !1);
|
|
7630
|
-
|
|
7639
|
+
oe(() => e.editable, () => {
|
|
7631
7640
|
o.value = e.editable;
|
|
7632
|
-
}),
|
|
7641
|
+
}), oe(() => {
|
|
7633
7642
|
var f;
|
|
7634
7643
|
return (f = e.editOption) == null ? void 0 : f.editMode;
|
|
7635
7644
|
}, (f) => {
|
|
@@ -7842,15 +7851,15 @@ function wo(e, t, n, o) {
|
|
|
7842
7851
|
}
|
|
7843
7852
|
function So(e, t, n, o, i) {
|
|
7844
7853
|
const { idField: a } = n, r = F(""), l = F(e.selection.enableSelectRow ?? !0), d = F(e.selection.multiSelect ?? !1), m = F(e.selection.multiSelectMode), c = F(e.selection.showCheckbox), u = F(e.selection.showSelectAll), s = F(e.selectionValues);
|
|
7845
|
-
|
|
7846
|
-
$ !==
|
|
7854
|
+
oe(() => e.selection.showSelectAll, ($, H) => {
|
|
7855
|
+
$ !== H && (u.value = $);
|
|
7847
7856
|
});
|
|
7848
7857
|
function _() {
|
|
7849
7858
|
return t.getSelectionItems(s.value);
|
|
7850
7859
|
}
|
|
7851
7860
|
function g() {
|
|
7852
|
-
const $ = o.value.reduce((
|
|
7853
|
-
return s.value.map((
|
|
7861
|
+
const $ = o.value.reduce((W, ae) => (W.set(ae.raw[a.value], ae), W), /* @__PURE__ */ new Map());
|
|
7862
|
+
return s.value.map((W) => $.get(W)).filter((W) => !!W);
|
|
7854
7863
|
}
|
|
7855
7864
|
D(() => l.value && !d.value);
|
|
7856
7865
|
const v = D(() => l.value && d.value), S = D(() => !!e.hierarchy), C = D(() => {
|
|
@@ -7863,17 +7872,17 @@ function So(e, t, n, o, i) {
|
|
|
7863
7872
|
i.emit("selectionChange", $);
|
|
7864
7873
|
}
|
|
7865
7874
|
function f() {
|
|
7866
|
-
o.value.forEach((
|
|
7867
|
-
|
|
7868
|
-
}), g().forEach((
|
|
7869
|
-
|
|
7875
|
+
o.value.forEach((H) => {
|
|
7876
|
+
H.checked = !1, H.indeterminate = !1, H.raw.__fv_checked__ = !1, H.raw.__fv_indeterminate__ = !1;
|
|
7877
|
+
}), g().forEach((H) => {
|
|
7878
|
+
H.checked = !0, H.raw.__fv_checked__ = !0;
|
|
7870
7879
|
});
|
|
7871
7880
|
}
|
|
7872
|
-
|
|
7881
|
+
oe(() => o.value, () => {
|
|
7873
7882
|
f();
|
|
7874
|
-
}),
|
|
7883
|
+
}), oe(() => e.selectionValues, ($) => {
|
|
7875
7884
|
s.value = $, f();
|
|
7876
|
-
}, { immediate: !0 }),
|
|
7885
|
+
}, { immediate: !0 }), oe(() => e.selection, ($) => {
|
|
7877
7886
|
l.value = !!$.enableSelectRow, d.value = !!$.multiSelect, m.value = $.multiSelectMode || "DependOnCheck", c.value = !!$.showCheckbox;
|
|
7878
7887
|
});
|
|
7879
7888
|
const b = D(() => !d.value);
|
|
@@ -7881,28 +7890,28 @@ function So(e, t, n, o, i) {
|
|
|
7881
7890
|
return $.raw[a.value] || "";
|
|
7882
7891
|
}
|
|
7883
7892
|
function B($) {
|
|
7884
|
-
return s.value.findIndex((
|
|
7893
|
+
return s.value.findIndex((W) => W === M($));
|
|
7885
7894
|
}
|
|
7886
7895
|
function x() {
|
|
7887
|
-
g().forEach((
|
|
7888
|
-
|
|
7889
|
-
}), t.getSelectionItems(s.value).forEach((
|
|
7890
|
-
|
|
7896
|
+
g().forEach((W) => {
|
|
7897
|
+
W.checked = !1;
|
|
7898
|
+
}), t.getSelectionItems(s.value).forEach((W) => {
|
|
7899
|
+
W.__fv_checked__ = !1;
|
|
7891
7900
|
}), s.value = [];
|
|
7892
7901
|
}
|
|
7893
7902
|
function k($) {
|
|
7894
|
-
const
|
|
7895
|
-
|
|
7896
|
-
const
|
|
7897
|
-
|
|
7903
|
+
const H = $.raw;
|
|
7904
|
+
H.__fv_checked__ = !0, H.__fv_indeterminate__ = !1;
|
|
7905
|
+
const W = new Set(s.value);
|
|
7906
|
+
W.add(H[a.value]), s.value = Array.from(W.values()), $.checked = !0, $.indeterminate = !1, r.value = $.raw[a.value];
|
|
7898
7907
|
}
|
|
7899
7908
|
function I($) {
|
|
7900
|
-
const
|
|
7901
|
-
|
|
7909
|
+
const H = $.raw;
|
|
7910
|
+
H.__fv_checked__ = !1, H.__fv_indeterminate__ = !1, s.value = s.value.filter((W) => W !== H[a.value]), $.checked = !1, $.indeterminate = !1, r.value = "";
|
|
7902
7911
|
}
|
|
7903
7912
|
function V($) {
|
|
7904
|
-
const
|
|
7905
|
-
|
|
7913
|
+
const H = $.raw;
|
|
7914
|
+
H.__fv_checked__ = !1, H.__fv_indeterminate__ = !0, s.value = s.value.filter((W) => W !== H[a.value]), $.checked = !1, $.indeterminate = !0;
|
|
7906
7915
|
}
|
|
7907
7916
|
function p($) {
|
|
7908
7917
|
b.value && x(), $.checked ? I($) : k($), O();
|
|
@@ -7911,16 +7920,16 @@ function So(e, t, n, o, i) {
|
|
|
7911
7920
|
$.raw[a.value] !== r.value && (x(), k($), O());
|
|
7912
7921
|
}
|
|
7913
7922
|
function P($) {
|
|
7914
|
-
const
|
|
7915
|
-
|
|
7923
|
+
const H = o.value.find((W) => W.raw[a.value] === $);
|
|
7924
|
+
H && T(H);
|
|
7916
7925
|
}
|
|
7917
|
-
function
|
|
7926
|
+
function E() {
|
|
7918
7927
|
o.value.forEach(($) => k($)), O();
|
|
7919
7928
|
}
|
|
7920
|
-
function
|
|
7929
|
+
function R() {
|
|
7921
7930
|
s.value.splice(0, s.value.length), r.value = "", o.value.forEach(($) => {
|
|
7922
|
-
const
|
|
7923
|
-
|
|
7931
|
+
const H = $.raw;
|
|
7932
|
+
H.__fv_checked__ = !1, H.__fv_indeterminate__ = !1, $.checked = !1, $.indeterminate = !1;
|
|
7924
7933
|
}), O();
|
|
7925
7934
|
}
|
|
7926
7935
|
function N() {
|
|
@@ -7941,7 +7950,7 @@ function So(e, t, n, o, i) {
|
|
|
7941
7950
|
multiSelectOnClickRowWithShift: y,
|
|
7942
7951
|
multiSelectOnlyOnCheck: C,
|
|
7943
7952
|
select: k,
|
|
7944
|
-
selectAll:
|
|
7953
|
+
selectAll: E,
|
|
7945
7954
|
selectedValues: s,
|
|
7946
7955
|
selectItem: T,
|
|
7947
7956
|
selectItemById: P,
|
|
@@ -7949,7 +7958,7 @@ function So(e, t, n, o, i) {
|
|
|
7949
7958
|
showSelectAll: u,
|
|
7950
7959
|
toggleSelectItem: p,
|
|
7951
7960
|
unSelect: I,
|
|
7952
|
-
unSelectAll:
|
|
7961
|
+
unSelectAll: R
|
|
7953
7962
|
};
|
|
7954
7963
|
}
|
|
7955
7964
|
function _o(e, t) {
|
|
@@ -7958,7 +7967,7 @@ function _o(e, t) {
|
|
|
7958
7967
|
var y;
|
|
7959
7968
|
return r.value ? ((y = e.rowNumber) == null ? void 0 : y.heading) ?? "序号" : "";
|
|
7960
7969
|
}), u = D(() => (l.value ? Number(m.value) : 0) + (r.value ? Number(d.value) : 0));
|
|
7961
|
-
|
|
7970
|
+
oe(() => e.rowNumber, (y) => {
|
|
7962
7971
|
y && y.enable !== void 0 && (r.value = y.enable), y && y.width !== void 0 && (d.value = y.width);
|
|
7963
7972
|
});
|
|
7964
7973
|
function s(y) {
|
|
@@ -8022,7 +8031,7 @@ function Fo(e) {
|
|
|
8022
8031
|
return o(r.column);
|
|
8023
8032
|
}
|
|
8024
8033
|
function a(r, l) {
|
|
8025
|
-
const d = i(r), m = (r.status &
|
|
8034
|
+
const d = i(r), m = (r.status & j.sortable) === j.sortable && (r.status & j.sorted) === j.sorted, c = (r.status & j.ascending) === j.ascending, u = (r.status & j.descending) === j.descending;
|
|
8026
8035
|
if (m && d) {
|
|
8027
8036
|
const s = c ? d.ascend : u ? d.decend : void 0;
|
|
8028
8037
|
s ? l.addSorter(r.field, { field: r.field, compare: s }) : l.removeSorter(r.field);
|
|
@@ -8031,7 +8040,7 @@ function Fo(e) {
|
|
|
8031
8040
|
}
|
|
8032
8041
|
return { getSorterByColumn: o, updateSorter: a };
|
|
8033
8042
|
}
|
|
8034
|
-
function
|
|
8043
|
+
function Es(e) {
|
|
8035
8044
|
function t(o) {
|
|
8036
8045
|
return {};
|
|
8037
8046
|
}
|
|
@@ -8060,7 +8069,7 @@ function xo(e) {
|
|
|
8060
8069
|
var u;
|
|
8061
8070
|
return ((u = e.pagination) == null ? void 0 : u.total) || e.data.length;
|
|
8062
8071
|
}), r = F((c = e.pagination) == null ? void 0 : c.mode);
|
|
8063
|
-
return
|
|
8072
|
+
return oe(() => {
|
|
8064
8073
|
var u;
|
|
8065
8074
|
return (u = e.pagination) == null ? void 0 : u.sizeLimits;
|
|
8066
8075
|
}, (u, s) => {
|
|
@@ -8077,7 +8086,7 @@ function xo(e) {
|
|
|
8077
8086
|
mode: r
|
|
8078
8087
|
};
|
|
8079
8088
|
}
|
|
8080
|
-
function
|
|
8089
|
+
function Rs(e) {
|
|
8081
8090
|
const t = "parent", n = "layer", o = "hasChildren", i = (a, r = 1, l = [], d = null) => (a = a || [], a.reduce((m, c) => (c.id = c.id || c.data[e.idField], c.data[t] = d, c.data[n] = r, c.data[o] = !1, m.push(c.data), c.children && c.children.length && (c.data[o] = !0, i(c.children, r + 1, l, c.id)), m), l), l);
|
|
8082
8091
|
return { flatTreeData: i };
|
|
8083
8092
|
}
|
|
@@ -8094,10 +8103,10 @@ function ko(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v) {
|
|
|
8094
8103
|
rightFixedGridDataStyle: b
|
|
8095
8104
|
} = _, {
|
|
8096
8105
|
renderDataRow: M
|
|
8097
|
-
} =
|
|
8106
|
+
} = Rr(e, t, C, v, l, d, m, c, u, s), B = [M];
|
|
8098
8107
|
function x(T, P) {
|
|
8099
|
-
const
|
|
8100
|
-
return v.value.filter((
|
|
8108
|
+
const E = S(T);
|
|
8109
|
+
return v.value.filter((R) => R.visible !== !1).map((R) => B[R.type](R, E, P));
|
|
8101
8110
|
}
|
|
8102
8111
|
function k() {
|
|
8103
8112
|
return h("div", {
|
|
@@ -8152,23 +8161,23 @@ const ct = /* @__PURE__ */ Oe({
|
|
|
8152
8161
|
const V = mn(e), p = gn(e), {
|
|
8153
8162
|
applyColumnSorter: T,
|
|
8154
8163
|
columnContext: P,
|
|
8155
|
-
updateColumnRenderContext:
|
|
8164
|
+
updateColumnRenderContext: E
|
|
8156
8165
|
} = V;
|
|
8157
8166
|
T(w, p);
|
|
8158
|
-
const
|
|
8159
|
-
getVisualData:
|
|
8160
|
-
} =
|
|
8161
|
-
sidebarWidth:
|
|
8162
|
-
} =
|
|
8163
|
-
m.value =
|
|
8164
|
-
const
|
|
8165
|
-
onWheel:
|
|
8166
|
-
dataGridWidth:
|
|
8167
|
-
viewPortHeight:
|
|
8168
|
-
viewPortWidth:
|
|
8169
|
-
} =
|
|
8170
|
-
calculateColumnsSize:
|
|
8171
|
-
} = Be,
|
|
8167
|
+
const R = vn(e, P), N = Mt(e, g), $ = Pt(), H = Dt(e, N, $), W = Et(e, N, C, g, $, H), ae = Rt(e, k, w, M, 0, W), {
|
|
8168
|
+
getVisualData: me
|
|
8169
|
+
} = ae, X = hn(e, P), le = yn(e, O), {
|
|
8170
|
+
sidebarWidth: G
|
|
8171
|
+
} = le;
|
|
8172
|
+
m.value = me(0, M.value + 0 - 1);
|
|
8173
|
+
const q = bn(e, w, m, P, ae, M, 0, G), {
|
|
8174
|
+
onWheel: fe,
|
|
8175
|
+
dataGridWidth: re,
|
|
8176
|
+
viewPortHeight: ue,
|
|
8177
|
+
viewPortWidth: ye
|
|
8178
|
+
} = q, Be = Cn(e, P, a, ye, R), {
|
|
8179
|
+
calculateColumnsSize: Ce
|
|
8180
|
+
} = Be, ce = wn(), ve = Sn(a, d, w, ce, q), Se = _n(e, t, O, g), ge = Fn(e, t, V, w, R, v, q), he = D(() => ({
|
|
8172
8181
|
"fv-grid": !0,
|
|
8173
8182
|
"fv-grid-bordered": e.showBorder,
|
|
8174
8183
|
"fv-datagrid-strip": e.showStripe
|
|
@@ -8177,70 +8186,70 @@ const ct = /* @__PURE__ */ Oe({
|
|
|
8177
8186
|
"fv-grid-content-hover": c.value,
|
|
8178
8187
|
"fv-grid-wrap-content": u.value
|
|
8179
8188
|
})), {
|
|
8180
|
-
renderDataArea:
|
|
8181
|
-
} = ko(e, t, r, l, d,
|
|
8182
|
-
renderGridHeader:
|
|
8183
|
-
renderGridColumnResizeOverlay:
|
|
8184
|
-
} = xn(e, a, l, d, V, w,
|
|
8185
|
-
renderDataGridSidebar:
|
|
8186
|
-
} = kn(e, Se, O,
|
|
8187
|
-
renderDisableMask:
|
|
8189
|
+
renderDataArea: L
|
|
8190
|
+
} = ko(e, t, r, l, d, X, V, w, N, C, Se, O, f, q, ae, m), {
|
|
8191
|
+
renderGridHeader: pe,
|
|
8192
|
+
renderGridColumnResizeOverlay: be
|
|
8193
|
+
} = xn(e, a, l, d, V, w, ge, ve, S, ce, Be, R, O, le, p, q, ye, m), {
|
|
8194
|
+
renderDataGridSidebar: A
|
|
8195
|
+
} = kn(e, Se, O, le, q), {
|
|
8196
|
+
renderDisableMask: de
|
|
8188
8197
|
} = Tn(), {
|
|
8189
|
-
renderHorizontalScrollbar:
|
|
8190
|
-
} = On(e, a,
|
|
8191
|
-
renderVerticalScrollbar:
|
|
8192
|
-
} = In(e, a,
|
|
8193
|
-
function
|
|
8194
|
-
var
|
|
8195
|
-
|
|
8196
|
-
}
|
|
8197
|
-
|
|
8198
|
-
a.value && (mt(a.value,
|
|
8199
|
-
a.value && (
|
|
8198
|
+
renderHorizontalScrollbar: U
|
|
8199
|
+
} = On(e, a, q), {
|
|
8200
|
+
renderVerticalScrollbar: Y
|
|
8201
|
+
} = In(e, a, q);
|
|
8202
|
+
function Fe() {
|
|
8203
|
+
var ie, ke;
|
|
8204
|
+
ue.value = ((ie = r.value) == null ? void 0 : ie.clientHeight) || 0, re.value = ((ke = a.value) == null ? void 0 : ke.clientWidth) || 0, Ce();
|
|
8205
|
+
}
|
|
8206
|
+
Re(() => {
|
|
8207
|
+
a.value && (mt(a.value, Fe), Ce(), Ue(() => {
|
|
8208
|
+
a.value && (re.value = a.value.clientWidth), r.value && (ye.value = r.value.clientWidth, ue.value = r.value.clientHeight);
|
|
8200
8209
|
})), s.value && _();
|
|
8201
8210
|
}), ut(() => {
|
|
8202
|
-
}),
|
|
8203
|
-
a.value &&
|
|
8211
|
+
}), oe(ye, () => {
|
|
8212
|
+
a.value && Ce();
|
|
8204
8213
|
});
|
|
8205
8214
|
function xe() {
|
|
8206
|
-
const
|
|
8207
|
-
return
|
|
8215
|
+
const ie = O.getSelectionRow();
|
|
8216
|
+
return ie ? ie.dataIndex - 1 : -1;
|
|
8208
8217
|
}
|
|
8209
8218
|
function Ve() {
|
|
8210
|
-
const
|
|
8211
|
-
w.insertNewDataItem(
|
|
8219
|
+
const ie = xe();
|
|
8220
|
+
w.insertNewDataItem(ie), m.value = me(0, M.value + 0 - 1);
|
|
8212
8221
|
}
|
|
8213
8222
|
function $e() {
|
|
8214
|
-
const
|
|
8215
|
-
w.insertNewChildDataItem(
|
|
8223
|
+
const ie = xe();
|
|
8224
|
+
w.insertNewChildDataItem(ie), m.value = me(0, M.value + 0 - 1);
|
|
8216
8225
|
}
|
|
8217
8226
|
function Le() {
|
|
8218
|
-
const
|
|
8219
|
-
w.removeHierarchyDataItem(
|
|
8227
|
+
const ie = xe(), ke = f.getNextSelectableHierarchyItemId(ie);
|
|
8228
|
+
w.removeHierarchyDataItem(ie), m.value = me(0, M.value + 0 - 1), ke && O.selectItemById(ke);
|
|
8220
8229
|
}
|
|
8221
|
-
function ze(
|
|
8222
|
-
N.onEditingRow(
|
|
8230
|
+
function ze(ie) {
|
|
8231
|
+
N.onEditingRow(ie);
|
|
8223
8232
|
}
|
|
8224
|
-
function Ze(
|
|
8225
|
-
N.acceptEditingRow(
|
|
8233
|
+
function Ze(ie) {
|
|
8234
|
+
N.acceptEditingRow(ie);
|
|
8226
8235
|
}
|
|
8227
|
-
function Je(
|
|
8228
|
-
N.cancelEditingRow(
|
|
8236
|
+
function Je(ie) {
|
|
8237
|
+
N.cancelEditingRow(ie);
|
|
8229
8238
|
}
|
|
8230
|
-
function et(
|
|
8231
|
-
|
|
8239
|
+
function et(ie) {
|
|
8240
|
+
ie && (k.value = ie, I(k), E(k.value), T(w, p), Ce());
|
|
8232
8241
|
}
|
|
8233
|
-
function tt(
|
|
8234
|
-
|
|
8242
|
+
function tt(ie) {
|
|
8243
|
+
ie && (w.load(ie), m.value = me(0, M.value + 0 - 1));
|
|
8235
8244
|
}
|
|
8236
|
-
function Xe(
|
|
8237
|
-
O.selectItemById(
|
|
8245
|
+
function Xe(ie) {
|
|
8246
|
+
O.selectItemById(ie);
|
|
8238
8247
|
}
|
|
8239
|
-
function
|
|
8248
|
+
function z() {
|
|
8240
8249
|
return O.getSelectedItems();
|
|
8241
8250
|
}
|
|
8242
|
-
const
|
|
8243
|
-
renderEmpty:
|
|
8251
|
+
const ne = D(() => !m.value || !m.value.length), {
|
|
8252
|
+
renderEmpty: se
|
|
8244
8253
|
} = Bn(t);
|
|
8245
8254
|
return t.expose({
|
|
8246
8255
|
addNewDataItem: Ve,
|
|
@@ -8252,13 +8261,13 @@ const ct = /* @__PURE__ */ Oe({
|
|
|
8252
8261
|
updateColumns: et,
|
|
8253
8262
|
updateDataSource: tt,
|
|
8254
8263
|
selectItemById: Xe,
|
|
8255
|
-
getSelectedItems:
|
|
8264
|
+
getSelectedItems: z
|
|
8256
8265
|
}), () => h("div", {
|
|
8257
8266
|
ref: i,
|
|
8258
|
-
class:
|
|
8267
|
+
class: he.value,
|
|
8259
8268
|
style: B.value,
|
|
8260
|
-
onWheel:
|
|
8261
|
-
}, [
|
|
8269
|
+
onWheel: fe
|
|
8270
|
+
}, [pe(), ne.value && se(), h("div", {
|
|
8262
8271
|
ref: a,
|
|
8263
8272
|
class: Pe.value,
|
|
8264
8273
|
onMouseover: () => {
|
|
@@ -8267,7 +8276,7 @@ const ct = /* @__PURE__ */ Oe({
|
|
|
8267
8276
|
onMouseleave: () => {
|
|
8268
8277
|
c.value = !1;
|
|
8269
8278
|
}
|
|
8270
|
-
}, [
|
|
8279
|
+
}, [A(m), L(), U(), Y()]), be(), b.value && de()]);
|
|
8271
8280
|
}
|
|
8272
8281
|
}), $s = /* @__PURE__ */ Oe({
|
|
8273
8282
|
name: "FTreeGridDesign",
|
|
@@ -8287,71 +8296,71 @@ const ct = /* @__PURE__ */ Oe({
|
|
|
8287
8296
|
updateColumnRenderContext: P
|
|
8288
8297
|
} = I;
|
|
8289
8298
|
p(w, V);
|
|
8290
|
-
const
|
|
8291
|
-
getVisualData:
|
|
8292
|
-
} =
|
|
8293
|
-
sidebarWidth:
|
|
8294
|
-
} =
|
|
8295
|
-
m.value =
|
|
8296
|
-
const
|
|
8297
|
-
onWheel:
|
|
8298
|
-
dataGridWidth:
|
|
8299
|
-
viewPortHeight:
|
|
8300
|
-
viewPortWidth:
|
|
8301
|
-
} =
|
|
8299
|
+
const E = Qn(e, T), R = bo(e, g), N = Ht(), $ = ho(e, R, N), H = yo(e, R, C, g, N, $), W = vo(e, x, w, b, o, H), {
|
|
8300
|
+
getVisualData: ae
|
|
8301
|
+
} = W, me = At(e, T), X = _o(e, O), {
|
|
8302
|
+
sidebarWidth: le
|
|
8303
|
+
} = X;
|
|
8304
|
+
m.value = ae(0, b.value + o - 1);
|
|
8305
|
+
const G = go(e, w, m, T, W, b, o, le), {
|
|
8306
|
+
onWheel: q,
|
|
8307
|
+
dataGridWidth: fe,
|
|
8308
|
+
viewPortHeight: re,
|
|
8309
|
+
viewPortWidth: ue
|
|
8310
|
+
} = G, ye = Yn(e, T, a, ue, E), {
|
|
8302
8311
|
calculateColumnsSize: Be
|
|
8303
|
-
} =
|
|
8312
|
+
} = ye, Ce = po(), ce = Un(a, d, w, Ce, G), ve = wo(e, t, O, g), Se = Xn(e, t, I, w, E, v, G), ge = D(() => ({
|
|
8304
8313
|
"drag-container": !0,
|
|
8305
8314
|
"fv-grid": !0,
|
|
8306
8315
|
"fv-grid-bordered": e.showBorder,
|
|
8307
8316
|
"fv-datagrid-strip": e.showStripe
|
|
8308
|
-
})),
|
|
8317
|
+
})), he = D(() => ({
|
|
8309
8318
|
"fv-grid-content": !0,
|
|
8310
8319
|
"fv-grid-content-hover": c.value,
|
|
8311
8320
|
"fv-grid-wrap-content": u.value
|
|
8312
8321
|
})), {
|
|
8313
8322
|
renderDataArea: Pe
|
|
8314
|
-
} = ko(e, t, r, l, d,
|
|
8315
|
-
renderGridHeader:
|
|
8316
|
-
renderGridColumnResizeOverlay:
|
|
8317
|
-
} = Ir(e, a, l, d, I, w, Se,
|
|
8318
|
-
renderDataGridSidebar:
|
|
8319
|
-
} = Wn(e,
|
|
8320
|
-
renderHorizontalScrollbar:
|
|
8321
|
-
} = Gn(e, a,
|
|
8322
|
-
renderVerticalScrollbar:
|
|
8323
|
-
} = Ln(e, a,
|
|
8324
|
-
function
|
|
8323
|
+
} = ko(e, t, r, l, d, me, I, w, R, C, ve, O, f, G, W, m), {
|
|
8324
|
+
renderGridHeader: L,
|
|
8325
|
+
renderGridColumnResizeOverlay: pe
|
|
8326
|
+
} = Ir(e, a, l, d, I, w, Se, ce, S, Ce, ye, E, O, X, V, G, ue, m), {
|
|
8327
|
+
renderDataGridSidebar: be
|
|
8328
|
+
} = Wn(e, ve, O, X, G), {
|
|
8329
|
+
renderHorizontalScrollbar: A
|
|
8330
|
+
} = Gn(e, a, G), {
|
|
8331
|
+
renderVerticalScrollbar: de
|
|
8332
|
+
} = Ln(e, a, G);
|
|
8333
|
+
function U() {
|
|
8325
8334
|
var Ve, $e;
|
|
8326
|
-
|
|
8335
|
+
re.value = ((Ve = r.value) == null ? void 0 : Ve.clientHeight) || 0, fe.value = (($e = a.value) == null ? void 0 : $e.clientWidth) || 0, Be();
|
|
8327
8336
|
}
|
|
8328
|
-
|
|
8329
|
-
n.value.componentInstance = _, a.value && (mt(a.value,
|
|
8330
|
-
a.value && (
|
|
8337
|
+
Re(() => {
|
|
8338
|
+
n.value.componentInstance = _, a.value && (mt(a.value, U), Be(), Ue(() => {
|
|
8339
|
+
a.value && (fe.value = a.value.clientWidth), r.value && (ue.value = r.value.clientWidth, re.value = r.value.clientHeight);
|
|
8331
8340
|
}));
|
|
8332
8341
|
}), ut(() => {
|
|
8333
|
-
}),
|
|
8342
|
+
}), oe(ue, () => {
|
|
8334
8343
|
a.value && Be();
|
|
8335
8344
|
});
|
|
8336
|
-
const
|
|
8337
|
-
renderEmpty:
|
|
8345
|
+
const Y = D(() => !m.value || !m.value.length), {
|
|
8346
|
+
renderEmpty: Fe
|
|
8338
8347
|
} = Ar(t);
|
|
8339
8348
|
return t.expose(_.value), () => h("div", {
|
|
8340
8349
|
ref: n,
|
|
8341
8350
|
dragref: `${s.schema.id}-container`,
|
|
8342
|
-
class:
|
|
8351
|
+
class: ge.value,
|
|
8343
8352
|
style: M.value,
|
|
8344
|
-
onWheel:
|
|
8345
|
-
}, [
|
|
8353
|
+
onWheel: q
|
|
8354
|
+
}, [L(), Y.value && Fe(), h("div", {
|
|
8346
8355
|
ref: a,
|
|
8347
|
-
class:
|
|
8356
|
+
class: he.value,
|
|
8348
8357
|
onMouseover: () => {
|
|
8349
8358
|
c.value = !0;
|
|
8350
8359
|
},
|
|
8351
8360
|
onMouseleave: () => {
|
|
8352
8361
|
c.value = !1;
|
|
8353
8362
|
}
|
|
8354
|
-
}, [
|
|
8363
|
+
}, [be(m), Pe(), A(), de()]), pe()]);
|
|
8355
8364
|
}
|
|
8356
8365
|
});
|
|
8357
8366
|
function Ns(e, t, n) {
|
|
@@ -9152,6 +9161,8 @@ const Ls = "https://json-schema.org/draft/2020-12/schema", zs = "https://farris-
|
|
|
9152
9161
|
properties: Xs,
|
|
9153
9162
|
required: Ys
|
|
9154
9163
|
}, Ut = {
|
|
9164
|
+
/** 变更策略 默认主动更新 */
|
|
9165
|
+
changePolicy: { type: String, default: "push" },
|
|
9155
9166
|
/** 列集合 */
|
|
9156
9167
|
columns: { type: Array, default: [] },
|
|
9157
9168
|
/** 列配置 */
|
|
@@ -9298,128 +9309,128 @@ function Vo(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g) {
|
|
|
9298
9309
|
} = u, {
|
|
9299
9310
|
onClickCell: P
|
|
9300
9311
|
} = d, {
|
|
9301
|
-
toggleGroupRow:
|
|
9312
|
+
toggleGroupRow: E
|
|
9302
9313
|
} = s, {
|
|
9303
|
-
columnContext:
|
|
9314
|
+
columnContext: R,
|
|
9304
9315
|
hasLeftFixedColumn: N,
|
|
9305
9316
|
hasRightFixedColumn: $
|
|
9306
9317
|
} = l, {
|
|
9307
|
-
navigateOnKeyUp:
|
|
9318
|
+
navigateOnKeyUp: H
|
|
9308
9319
|
} = c, {
|
|
9309
|
-
gridDataStyle:
|
|
9310
|
-
gridMergedDataStyle:
|
|
9311
|
-
leftFixedGridDataStyle:
|
|
9312
|
-
leftFixedGridMergedDataStyle:
|
|
9313
|
-
rightFixedGridDataStyle:
|
|
9314
|
-
rightFixedGridMergedDataStyle:
|
|
9320
|
+
gridDataStyle: W,
|
|
9321
|
+
gridMergedDataStyle: ae,
|
|
9322
|
+
leftFixedGridDataStyle: me,
|
|
9323
|
+
leftFixedGridMergedDataStyle: X,
|
|
9324
|
+
rightFixedGridDataStyle: le,
|
|
9325
|
+
rightFixedGridMergedDataStyle: G
|
|
9315
9326
|
} = _;
|
|
9316
|
-
function
|
|
9317
|
-
|
|
9318
|
-
}
|
|
9319
|
-
function
|
|
9320
|
-
const
|
|
9321
|
-
if (
|
|
9322
|
-
for (let
|
|
9323
|
-
|
|
9327
|
+
function q(L, pe) {
|
|
9328
|
+
pe.collapse = !pe.collapse, g.value = E(pe.collapse ? "collapse" : "expand", pe, g.value);
|
|
9329
|
+
}
|
|
9330
|
+
function fe(L, pe) {
|
|
9331
|
+
const be = [];
|
|
9332
|
+
if (L.groupField && pe[L.groupField]) {
|
|
9333
|
+
for (let de = 0; de <= L.layer; de++)
|
|
9334
|
+
be.push(h("div", {
|
|
9324
9335
|
class: "fv-grid-group-row-icon",
|
|
9325
|
-
onClick: (
|
|
9336
|
+
onClick: (U) => q(U, L)
|
|
9326
9337
|
}, [h("span", {
|
|
9327
|
-
class: x(
|
|
9338
|
+
class: x(L)
|
|
9328
9339
|
}, null)]));
|
|
9329
|
-
const
|
|
9330
|
-
|
|
9331
|
-
ref:
|
|
9332
|
-
key: S(
|
|
9340
|
+
const A = L.data[L.groupField];
|
|
9341
|
+
be.push(h("div", {
|
|
9342
|
+
ref: A.setRef,
|
|
9343
|
+
key: S(L, L.layer + 1),
|
|
9333
9344
|
class: "fv-grid-cell",
|
|
9334
|
-
style: f(
|
|
9335
|
-
}, [
|
|
9336
|
-
|
|
9337
|
-
ref:
|
|
9338
|
-
key: S(
|
|
9345
|
+
style: f(A, pe, L.layer)
|
|
9346
|
+
}, [A.data])), Object.values(L.data).filter((de) => de.field !== L.groupField && de.colSpan !== 0).forEach((de) => {
|
|
9347
|
+
be.push(h("div", {
|
|
9348
|
+
ref: de.setRef,
|
|
9349
|
+
key: S(L, de.index),
|
|
9339
9350
|
class: "fv-grid-cell",
|
|
9340
|
-
style: C(
|
|
9341
|
-
}, [
|
|
9351
|
+
style: C(de, pe)
|
|
9352
|
+
}, [de.data]));
|
|
9342
9353
|
});
|
|
9343
9354
|
}
|
|
9344
|
-
return
|
|
9345
|
-
}
|
|
9346
|
-
function
|
|
9347
|
-
return
|
|
9348
|
-
ref:
|
|
9349
|
-
key: y(
|
|
9350
|
-
class: I(
|
|
9351
|
-
style: w(
|
|
9352
|
-
onClick: (
|
|
9353
|
-
onMouseover: (
|
|
9354
|
-
}, [
|
|
9355
|
-
}
|
|
9356
|
-
function
|
|
9357
|
-
const
|
|
9358
|
-
if (
|
|
9359
|
-
const
|
|
9360
|
-
|
|
9361
|
-
ref:
|
|
9362
|
-
key: S(
|
|
9355
|
+
return be;
|
|
9356
|
+
}
|
|
9357
|
+
function re(L, pe, be) {
|
|
9358
|
+
return L.layer > -1 && h("div", {
|
|
9359
|
+
ref: L.setRef,
|
|
9360
|
+
key: y(L),
|
|
9361
|
+
class: I(L),
|
|
9362
|
+
style: w(L),
|
|
9363
|
+
onClick: (A) => V(A, L),
|
|
9364
|
+
onMouseover: (A) => p(A, L)
|
|
9365
|
+
}, [fe(L, pe)]);
|
|
9366
|
+
}
|
|
9367
|
+
function ue(L, pe) {
|
|
9368
|
+
const be = [];
|
|
9369
|
+
if (L.groupField && pe[L.groupField]) {
|
|
9370
|
+
const A = L.data[L.groupField];
|
|
9371
|
+
be.push(h("div", {
|
|
9372
|
+
ref: A.setRef,
|
|
9373
|
+
key: S(L, L.layer + 1),
|
|
9363
9374
|
class: "fv-grid-cell",
|
|
9364
|
-
style: b(
|
|
9365
|
-
}, [
|
|
9366
|
-
}
|
|
9367
|
-
return
|
|
9368
|
-
}
|
|
9369
|
-
function
|
|
9370
|
-
return
|
|
9371
|
-
ref:
|
|
9372
|
-
key: y(
|
|
9373
|
-
class: I(
|
|
9374
|
-
style: w(
|
|
9375
|
-
onClick: (
|
|
9376
|
-
onMouseover: (
|
|
9377
|
-
}, [
|
|
9378
|
-
}
|
|
9379
|
-
function Be(
|
|
9375
|
+
style: b(A, pe, L.layer)
|
|
9376
|
+
}, [A.data]));
|
|
9377
|
+
}
|
|
9378
|
+
return be;
|
|
9379
|
+
}
|
|
9380
|
+
function ye(L, pe, be) {
|
|
9381
|
+
return L.layer > -1 && h("div", {
|
|
9382
|
+
ref: L.setRef,
|
|
9383
|
+
key: y(L),
|
|
9384
|
+
class: I(L),
|
|
9385
|
+
style: w(L),
|
|
9386
|
+
onClick: (A) => V(A, L),
|
|
9387
|
+
onMouseover: (A) => p(A, L)
|
|
9388
|
+
}, [ue(L, pe)]);
|
|
9389
|
+
}
|
|
9390
|
+
function Be(L, pe, be) {
|
|
9380
9391
|
return h("div", {
|
|
9381
|
-
ref:
|
|
9382
|
-
key: y(
|
|
9383
|
-
class: I(
|
|
9384
|
-
style: w(
|
|
9385
|
-
onClick: (
|
|
9386
|
-
onMouseover: (
|
|
9387
|
-
onMouseout: (
|
|
9388
|
-
}, [Object.values(
|
|
9389
|
-
const
|
|
9392
|
+
ref: L.setRef,
|
|
9393
|
+
key: y(L),
|
|
9394
|
+
class: I(L),
|
|
9395
|
+
style: w(L),
|
|
9396
|
+
onClick: (A) => V(A, L),
|
|
9397
|
+
onMouseover: (A) => p(A, L),
|
|
9398
|
+
onMouseout: (A) => T(A, L)
|
|
9399
|
+
}, [Object.values(L.data).filter((A) => pe[A.field] && A.rowSpan === 1).map((A) => {
|
|
9400
|
+
const de = be == null ? void 0 : be.find((U) => U.field === A.field);
|
|
9390
9401
|
return h("div", {
|
|
9391
|
-
ref:
|
|
9392
|
-
key: S(
|
|
9393
|
-
class: k(
|
|
9394
|
-
style: C(
|
|
9395
|
-
onClick: (
|
|
9396
|
-
onKeyup: (
|
|
9402
|
+
ref: A.setRef,
|
|
9403
|
+
key: S(L, A.index),
|
|
9404
|
+
class: k(A),
|
|
9405
|
+
style: C(A, pe),
|
|
9406
|
+
onClick: (U) => P(U, A),
|
|
9407
|
+
onKeyup: (U) => H(U, A)
|
|
9397
9408
|
}, [h("div", {
|
|
9398
|
-
class: M(
|
|
9399
|
-
style: B(
|
|
9409
|
+
class: M(A, de),
|
|
9410
|
+
style: B(A)
|
|
9400
9411
|
}, [h("div", {
|
|
9401
9412
|
class: {
|
|
9402
|
-
"text-truncate":
|
|
9413
|
+
"text-truncate": de == null ? void 0 : de.showEllipsis,
|
|
9403
9414
|
"w-100": !0
|
|
9404
9415
|
}
|
|
9405
|
-
}, [
|
|
9406
|
-
cell:
|
|
9407
|
-
row:
|
|
9408
|
-
}) :
|
|
9416
|
+
}, [A.data != null && t.slots.cellTemplate ? t.slots.cellTemplate({
|
|
9417
|
+
cell: A,
|
|
9418
|
+
row: L
|
|
9419
|
+
}) : A.mode === De.editing ? A.getEditor(A) : A.formatter ? A.formatter(A, L) : A.data != null ? A.data.toString() : A.data])])]);
|
|
9409
9420
|
})]);
|
|
9410
9421
|
}
|
|
9411
|
-
const
|
|
9412
|
-
function
|
|
9413
|
-
const
|
|
9414
|
-
return g.value.map((
|
|
9422
|
+
const Ce = [Be, re, ye];
|
|
9423
|
+
function ce(L, pe) {
|
|
9424
|
+
const be = v(L);
|
|
9425
|
+
return g.value.map((A) => Ce[A.type](A, be, L));
|
|
9415
9426
|
}
|
|
9416
|
-
function
|
|
9417
|
-
const
|
|
9418
|
-
return g.value.map((
|
|
9419
|
-
key: S(
|
|
9427
|
+
function ve(L) {
|
|
9428
|
+
const pe = v(L);
|
|
9429
|
+
return g.value.map((be) => Object.values(be.data).filter((A) => pe[A.field] && A.rowSpan > 1).map((A) => h("div", {
|
|
9430
|
+
key: S(be, A.index),
|
|
9420
9431
|
class: "fv-grid-cell fv-grid-merged-cell",
|
|
9421
|
-
style: O(
|
|
9422
|
-
}, [
|
|
9432
|
+
style: O(be, A, pe)
|
|
9433
|
+
}, [A.data])));
|
|
9423
9434
|
}
|
|
9424
9435
|
function Se() {
|
|
9425
9436
|
return h("div", {
|
|
@@ -9427,39 +9438,39 @@ function Vo(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g) {
|
|
|
9427
9438
|
class: "fv-grid-content-left-fixed"
|
|
9428
9439
|
}, [h("div", {
|
|
9429
9440
|
class: "fv-grid-data",
|
|
9430
|
-
style: te.value
|
|
9431
|
-
}, [se(E.value.leftColumns.filter((W) => W.visible))]), h("div", {
|
|
9432
|
-
class: "fv-grid-merge-date",
|
|
9433
9441
|
style: me.value
|
|
9434
|
-
}, [
|
|
9442
|
+
}, [ce(R.value.leftColumns.filter((L) => L.visible))]), h("div", {
|
|
9443
|
+
class: "fv-grid-merge-date",
|
|
9444
|
+
style: X.value
|
|
9445
|
+
}, [ve(R.value.leftColumns.filter((L) => L.visible))])]);
|
|
9435
9446
|
}
|
|
9436
|
-
function
|
|
9447
|
+
function ge() {
|
|
9437
9448
|
return h("div", {
|
|
9438
9449
|
ref: n,
|
|
9439
9450
|
class: "fv-grid-content-primary"
|
|
9440
9451
|
}, [h("div", {
|
|
9441
9452
|
class: "fv-grid-data",
|
|
9442
|
-
style:
|
|
9443
|
-
}, [
|
|
9453
|
+
style: W.value
|
|
9454
|
+
}, [ce(R.value.primaryColumns.filter((L) => L.visible))]), h("div", {
|
|
9444
9455
|
class: "fv-grid-merge-date",
|
|
9445
|
-
style:
|
|
9446
|
-
}, [
|
|
9456
|
+
style: ae.value
|
|
9457
|
+
}, [ve(R.value.primaryColumns.filter((L) => L.visible))])]);
|
|
9447
9458
|
}
|
|
9448
|
-
function
|
|
9459
|
+
function he() {
|
|
9449
9460
|
return h("div", {
|
|
9450
9461
|
ref: i,
|
|
9451
9462
|
class: "fv-grid-content-right-fixed"
|
|
9452
9463
|
}, [h("div", {
|
|
9453
9464
|
class: "fv-grid-data",
|
|
9454
|
-
style:
|
|
9455
|
-
}, [
|
|
9465
|
+
style: le.value
|
|
9466
|
+
}, [ce(R.value.rightColumns.filter((L) => L.visible))]), h("div", {
|
|
9456
9467
|
class: "fv-grid-merge-date",
|
|
9457
|
-
style:
|
|
9458
|
-
}, [
|
|
9468
|
+
style: G.value
|
|
9469
|
+
}, [ve(R.value.rightColumns.filter((L) => L.visible))])]);
|
|
9459
9470
|
}
|
|
9460
9471
|
function Pe() {
|
|
9461
|
-
const
|
|
9462
|
-
return N.value &&
|
|
9472
|
+
const L = [];
|
|
9473
|
+
return N.value && L.push(Se()), L.push(ge()), $.value && L.push(he()), L;
|
|
9463
9474
|
}
|
|
9464
9475
|
return {
|
|
9465
9476
|
renderDataArea: Pe
|
|
@@ -9487,128 +9498,132 @@ const rt = /* @__PURE__ */ Oe({
|
|
|
9487
9498
|
const V = mn(e), p = gn(e), {
|
|
9488
9499
|
applyColumnSorter: T,
|
|
9489
9500
|
columnContext: P,
|
|
9490
|
-
updateColumnRenderContext:
|
|
9501
|
+
updateColumnRenderContext: E
|
|
9491
9502
|
} = V;
|
|
9492
9503
|
T(f, p);
|
|
9493
|
-
const
|
|
9494
|
-
getVisualData:
|
|
9495
|
-
} =
|
|
9496
|
-
sidebarWidth:
|
|
9497
|
-
} =
|
|
9498
|
-
u.value =
|
|
9499
|
-
const
|
|
9500
|
-
onWheel:
|
|
9504
|
+
const R = vn(e, P), N = Mt(e, a), $ = Pt(), H = Dt(e, N, $), W = Et(e, N, S, a, $, H), ae = Vn(e, a, H, W), me = Mn(e, a, H, W), X = Rt(e, i, f, B, 0, W, ae, me), {
|
|
9505
|
+
getVisualData: le
|
|
9506
|
+
} = X, G = Qo(P), q = hn(e, P), fe = yn(e, b), {
|
|
9507
|
+
sidebarWidth: re
|
|
9508
|
+
} = fe;
|
|
9509
|
+
u.value = le(0, B.value + 0 - 1);
|
|
9510
|
+
const ue = bn(e, f, u, P, X, B, 0, re), {
|
|
9511
|
+
onWheel: ye,
|
|
9501
9512
|
dataGridWidth: Be,
|
|
9502
|
-
viewPortHeight:
|
|
9503
|
-
viewPortWidth:
|
|
9504
|
-
resetScroll:
|
|
9505
|
-
} =
|
|
9506
|
-
calculateColumnsSize:
|
|
9507
|
-
} = Se,
|
|
9513
|
+
viewPortHeight: Ce,
|
|
9514
|
+
viewPortWidth: ce,
|
|
9515
|
+
resetScroll: ve
|
|
9516
|
+
} = ue, Se = Cn(e, P, l, ce, R), {
|
|
9517
|
+
calculateColumnsSize: ge
|
|
9518
|
+
} = Se, he = wn(), Pe = Sn(l, c, f, he, ue), L = _n(e, t, b, a), pe = Fn(e, t, V, f, R, g, ue), be = D(() => ({
|
|
9508
9519
|
"fv-grid": !0,
|
|
9509
9520
|
"fv-datagrid-strip": e.showStripe
|
|
9510
|
-
})),
|
|
9521
|
+
})), A = D(() => ({
|
|
9511
9522
|
"fv-grid-content": !0,
|
|
9512
9523
|
"fv-grid-content-hover": s.value,
|
|
9513
9524
|
"fv-grid-wrap-content": _.value
|
|
9514
9525
|
})), {
|
|
9515
|
-
renderGridHeader:
|
|
9516
|
-
renderGridColumnResizeOverlay:
|
|
9517
|
-
} = xn(e, l, m, c, V, f,
|
|
9518
|
-
renderDataGridPagination:
|
|
9519
|
-
} = Zo(e, t, f,
|
|
9520
|
-
renderDataGridSidebar:
|
|
9521
|
-
} = kn(e,
|
|
9526
|
+
renderGridHeader: de,
|
|
9527
|
+
renderGridColumnResizeOverlay: U
|
|
9528
|
+
} = xn(e, l, m, c, V, f, pe, Pe, v, he, Se, R, b, fe, p, ue, ce, u), {
|
|
9529
|
+
renderDataGridPagination: Y
|
|
9530
|
+
} = Zo(e, t, f, ue, w), {
|
|
9531
|
+
renderDataGridSidebar: Fe
|
|
9532
|
+
} = kn(e, L, b, fe, ue), {
|
|
9522
9533
|
renderDisableMask: xe
|
|
9523
9534
|
} = Tn(), {
|
|
9524
9535
|
renderDataGridSummery: Ve
|
|
9525
9536
|
} = Jo(e, f, V), {
|
|
9526
9537
|
renderHorizontalScrollbar: $e
|
|
9527
|
-
} = On(e, l,
|
|
9538
|
+
} = On(e, l, ue), {
|
|
9528
9539
|
renderVerticalScrollbar: Le
|
|
9529
|
-
} = In(e, l,
|
|
9540
|
+
} = In(e, l, ue), {
|
|
9530
9541
|
renderFilterPanel: ze
|
|
9531
|
-
} = ei(e, V, f, v,
|
|
9542
|
+
} = ei(e, V, f, v, ue), {
|
|
9532
9543
|
renderGroupPanel: Ze
|
|
9533
|
-
} = ti(e, f,
|
|
9544
|
+
} = ti(e, f, pe, g, ue);
|
|
9534
9545
|
function Je() {
|
|
9535
|
-
var
|
|
9536
|
-
|
|
9546
|
+
var _e, dt;
|
|
9547
|
+
Ce.value = ((_e = d.value) == null ? void 0 : _e.clientHeight) || 0, Be.value = ((dt = l.value) == null ? void 0 : dt.clientWidth) || 0, ge();
|
|
9537
9548
|
}
|
|
9538
|
-
|
|
9539
|
-
l.value && (mt(l.value, Je),
|
|
9540
|
-
l.value && (Be.value = l.value.clientWidth), d.value && (
|
|
9549
|
+
Re(() => {
|
|
9550
|
+
l.value && (mt(l.value, Je), ge(), Ue(() => {
|
|
9551
|
+
l.value && (Be.value = l.value.clientWidth), d.value && (ce.value = d.value.clientWidth, Ce.value = d.value.clientHeight);
|
|
9541
9552
|
})), C.value && y();
|
|
9542
9553
|
}), ut(() => {
|
|
9543
|
-
}),
|
|
9554
|
+
}), oe(ce, () => {
|
|
9544
9555
|
});
|
|
9545
9556
|
function et() {
|
|
9546
|
-
f.insertNewDataItem(),
|
|
9557
|
+
f.insertNewDataItem(), ve();
|
|
9547
9558
|
}
|
|
9548
9559
|
function tt() {
|
|
9549
|
-
f.insertNewDataItem(u.value.length),
|
|
9560
|
+
f.insertNewDataItem(u.value.length), ve();
|
|
9550
9561
|
}
|
|
9551
|
-
function Xe(
|
|
9552
|
-
N.onEditingRow(
|
|
9562
|
+
function Xe(_e) {
|
|
9563
|
+
N.onEditingRow(_e);
|
|
9553
9564
|
}
|
|
9554
|
-
function
|
|
9555
|
-
f.removeDataItem(
|
|
9565
|
+
function z(_e) {
|
|
9566
|
+
f.removeDataItem(_e), ve();
|
|
9556
9567
|
}
|
|
9557
|
-
function
|
|
9558
|
-
f.removeDataItemById(
|
|
9568
|
+
function ne(_e) {
|
|
9569
|
+
f.removeDataItemById(_e), ve();
|
|
9559
9570
|
}
|
|
9560
|
-
function
|
|
9561
|
-
N.acceptEditingRow(
|
|
9571
|
+
function se(_e) {
|
|
9572
|
+
N.acceptEditingRow(_e);
|
|
9562
9573
|
}
|
|
9563
|
-
function Ie(
|
|
9564
|
-
N.cancelEditingRow(
|
|
9574
|
+
function Ie(_e) {
|
|
9575
|
+
N.cancelEditingRow(_e);
|
|
9565
9576
|
}
|
|
9566
|
-
function
|
|
9567
|
-
|
|
9577
|
+
function ie(_e) {
|
|
9578
|
+
_e && (i.value = _e, I(i), E(i.value), T(f, p), ge());
|
|
9568
9579
|
}
|
|
9569
|
-
function ke(
|
|
9570
|
-
|
|
9580
|
+
function ke(_e) {
|
|
9581
|
+
_e && (f.load(_e), u.value = le(0, B.value + 0 - 1));
|
|
9571
9582
|
}
|
|
9572
|
-
|
|
9583
|
+
oe([f.startIndex, f.endIndex], ([_e, dt], [No, jo]) => {
|
|
9573
9584
|
var Kt, Xt;
|
|
9574
|
-
|
|
9585
|
+
_e !== No && ke((Kt = f.originalData) == null ? void 0 : Kt.value), dt !== jo && ke((Xt = f.originalData) == null ? void 0 : Xt.value);
|
|
9586
|
+
}), oe(() => e.data, (_e) => {
|
|
9587
|
+
e.changePolicy === "default" && ke(_e);
|
|
9588
|
+
}, {
|
|
9589
|
+
deep: !0
|
|
9575
9590
|
});
|
|
9576
|
-
function Me(
|
|
9577
|
-
b.selectItemById(
|
|
9591
|
+
function Me(_e) {
|
|
9592
|
+
b.selectItemById(_e);
|
|
9578
9593
|
}
|
|
9579
9594
|
const Te = {
|
|
9580
9595
|
addNewDataItem: et,
|
|
9581
9596
|
addNewDataItemAtLast: tt,
|
|
9582
|
-
removeDataItem:
|
|
9583
|
-
removeDataItemById:
|
|
9597
|
+
removeDataItem: z,
|
|
9598
|
+
removeDataItemById: ne,
|
|
9584
9599
|
editDataItem: Xe,
|
|
9585
|
-
acceptDataItem:
|
|
9600
|
+
acceptDataItem: se,
|
|
9586
9601
|
cancelDataItem: Ie,
|
|
9587
9602
|
selectItemById: Me,
|
|
9588
|
-
updateColumns:
|
|
9603
|
+
updateColumns: ie,
|
|
9589
9604
|
updateDataSource: ke
|
|
9590
9605
|
};
|
|
9591
9606
|
t.expose(Te);
|
|
9592
9607
|
const Ge = ni(e, t, Te, V, N, u), {
|
|
9593
9608
|
renderDataArea: We
|
|
9594
|
-
} = Vo(e, t, d, m, c,
|
|
9609
|
+
} = Vo(e, t, d, m, c, G, q, V, N, g, Ge, L, X, ue, u), nt = D(() => !u.value || !u.value.length), {
|
|
9595
9610
|
renderEmpty: Ye
|
|
9596
9611
|
} = Bn(t);
|
|
9597
9612
|
return () => h("div", {
|
|
9598
9613
|
ref: r,
|
|
9599
|
-
class:
|
|
9614
|
+
class: be.value,
|
|
9600
9615
|
style: x.value,
|
|
9601
|
-
onWheel:
|
|
9602
|
-
}, [ze(), Ze(),
|
|
9616
|
+
onWheel: ye
|
|
9617
|
+
}, [ze(), Ze(), de(), nt.value && Ye(), h("div", {
|
|
9603
9618
|
ref: l,
|
|
9604
|
-
class:
|
|
9619
|
+
class: A.value,
|
|
9605
9620
|
onMouseover: () => {
|
|
9606
9621
|
s.value = !0;
|
|
9607
9622
|
},
|
|
9608
9623
|
onMouseleave: () => {
|
|
9609
9624
|
s.value = !1;
|
|
9610
9625
|
}
|
|
9611
|
-
}, [
|
|
9626
|
+
}, [Fe(u), We(), $e(), Le()]), Ve(), O.value && Y(), U(), M.value && xe()]);
|
|
9612
9627
|
}
|
|
9613
9628
|
}), Js = "https://json-schema.org/draft/2020-12/schema", eu = "https://farris-design.gitee.io/check-box.schema.json", tu = "check-box", nu = "A Farris Input Component", ou = "object", iu = {
|
|
9614
9629
|
id: {
|
|
@@ -9748,11 +9763,11 @@ const uu = /* @__PURE__ */ Oe({
|
|
|
9748
9763
|
"custom-checkbox": !0
|
|
9749
9764
|
};
|
|
9750
9765
|
return _.value && _.value.split(" ").reduce((C, y) => (C[y] = !0, C), S), S;
|
|
9751
|
-
}),
|
|
9766
|
+
}), oe(() => e.modelValue, (S) => {
|
|
9752
9767
|
g.value = S;
|
|
9753
|
-
}),
|
|
9768
|
+
}), oe(() => e.indeterminate, (S) => {
|
|
9754
9769
|
v.value = S;
|
|
9755
|
-
}),
|
|
9770
|
+
}), Re(() => {
|
|
9756
9771
|
}), () => {
|
|
9757
9772
|
var S, C, y, w, O, f;
|
|
9758
9773
|
return h(Ke, null, [r.value && h("div", {
|
|
@@ -9825,7 +9840,7 @@ const uu = /* @__PURE__ */ Oe({
|
|
|
9825
9840
|
role: "alert",
|
|
9826
9841
|
"data-noattach": "true",
|
|
9827
9842
|
"data-position": "0"
|
|
9828
|
-
}, [
|
|
9843
|
+
}, [Ee("拖拽组件到这里")]);
|
|
9829
9844
|
}
|
|
9830
9845
|
}), yt = F(0);
|
|
9831
9846
|
function pu(e, t) {
|
|
@@ -9879,24 +9894,24 @@ const _t = /* @__PURE__ */ Oe({
|
|
|
9879
9894
|
"can-move": o.value,
|
|
9880
9895
|
"d-none": c.value && c.value.classList.contains("d-none")
|
|
9881
9896
|
};
|
|
9882
|
-
return T[`farris-component-${r.value.type}`] = !0, p && p.split(" ").reduce((P,
|
|
9897
|
+
return T[`farris-component-${r.value.type}`] = !0, p && p.split(" ").reduce((P, E) => (P[E] = !0, P), T), m.value && m.value.split(" ").reduce((P, E) => (P[E] = !0, P), T), T;
|
|
9883
9898
|
}), C = D(() => {
|
|
9884
9899
|
const p = {}, T = e.modelValue.appearance && e.modelValue.appearance.style || "";
|
|
9885
|
-
return T && T.split(";").reduce((P,
|
|
9886
|
-
const [
|
|
9887
|
-
return P[
|
|
9888
|
-
}, p), d.value && d.value.split(";").reduce((P,
|
|
9889
|
-
const [
|
|
9890
|
-
return
|
|
9900
|
+
return T && T.split(";").reduce((P, E) => {
|
|
9901
|
+
const [R, N] = E.split(":");
|
|
9902
|
+
return P[R] = N, P;
|
|
9903
|
+
}, p), d.value && d.value.split(";").reduce((P, E) => {
|
|
9904
|
+
const [R, N] = E.split(":");
|
|
9905
|
+
return R && (P[R] = N), P;
|
|
9891
9906
|
}, p), p;
|
|
9892
9907
|
});
|
|
9893
9908
|
function y(p, T) {
|
|
9894
|
-
var P,
|
|
9909
|
+
var P, E, R;
|
|
9895
9910
|
if (p && (p.preventDefault(), p.stopPropagation()), s.value.triggerBelongedComponentToDeleteWhenDeleted) {
|
|
9896
9911
|
const N = s.value.getBelongedComponentInstance(s);
|
|
9897
9912
|
if (N && N.parent) {
|
|
9898
|
-
const $ = F(N == null ? void 0 : N.parent),
|
|
9899
|
-
(
|
|
9913
|
+
const $ = F(N == null ? void 0 : N.parent), H = $.value.contents.findIndex((W) => W.id === N.schema.id);
|
|
9914
|
+
(E = (P = $.value) == null ? void 0 : P.contents) == null || E.splice(H, 1), (R = $.value) == null || R.updateDragAndDropRules(), yt.value++;
|
|
9900
9915
|
}
|
|
9901
9916
|
return;
|
|
9902
9917
|
}
|
|
@@ -9945,46 +9960,46 @@ const _t = /* @__PURE__ */ Oe({
|
|
|
9945
9960
|
"data-noattach": "true"
|
|
9946
9961
|
}, [h("div", null, [w(p), O(), f()])]);
|
|
9947
9962
|
}
|
|
9948
|
-
function M(p, T, P,
|
|
9949
|
-
t.emit("selectionChange", p, T, P,
|
|
9963
|
+
function M(p, T, P, E) {
|
|
9964
|
+
t.emit("selectionChange", p, T, P, E);
|
|
9950
9965
|
}
|
|
9951
9966
|
function B(p) {
|
|
9952
9967
|
let T;
|
|
9953
|
-
const P = p.type,
|
|
9968
|
+
const P = p.type, E = ss[P], R = us[P], N = R ? R(p) : {};
|
|
9954
9969
|
N.customClass = e.ignore ? N.customClass : "", N.componentId = l.value;
|
|
9955
9970
|
const $ = p.contents && p.contents.length === 0;
|
|
9956
|
-
return p.contents && !!p.contents.length &&
|
|
9971
|
+
return p.contents && !!p.contents.length && E ? h(E, ot({
|
|
9957
9972
|
ref: s
|
|
9958
|
-
}, N), gu(T = p.contents.map((
|
|
9959
|
-
key:
|
|
9960
|
-
modelValue:
|
|
9961
|
-
"onUpdate:modelValue": (
|
|
9973
|
+
}, N), gu(T = p.contents.map((W) => h(_t, {
|
|
9974
|
+
key: W.id,
|
|
9975
|
+
modelValue: W,
|
|
9976
|
+
"onUpdate:modelValue": (ae) => W = ae,
|
|
9962
9977
|
componentId: l.value,
|
|
9963
9978
|
onSelectionChange: M
|
|
9964
9979
|
}, null))) ? T : {
|
|
9965
9980
|
default: () => [T]
|
|
9966
|
-
}) :
|
|
9981
|
+
}) : E ? $ ? h(E, ot({
|
|
9967
9982
|
ref: s
|
|
9968
9983
|
}, N), {
|
|
9969
9984
|
default: () => [h(fu, null, null)]
|
|
9970
|
-
}) : h(
|
|
9985
|
+
}) : h(E, ot({
|
|
9971
9986
|
ref: s
|
|
9972
9987
|
}, N), null) : h("div", null, null);
|
|
9973
9988
|
}
|
|
9974
9989
|
function x(p) {
|
|
9975
9990
|
if (p.type === "component-ref") {
|
|
9976
|
-
let P = v == null ? void 0 : v.getFormSchema().module.components.find((
|
|
9991
|
+
let P = v == null ? void 0 : v.getFormSchema().module.components.find((E) => E.id === p.component);
|
|
9977
9992
|
if (P)
|
|
9978
9993
|
return h(_t, {
|
|
9979
9994
|
key: P.id,
|
|
9980
9995
|
modelValue: P,
|
|
9981
|
-
"onUpdate:modelValue": (
|
|
9996
|
+
"onUpdate:modelValue": (E) => P = E,
|
|
9982
9997
|
componentId: P.id,
|
|
9983
9998
|
onSelectionChange: M
|
|
9984
9999
|
}, null);
|
|
9985
10000
|
}
|
|
9986
10001
|
}
|
|
9987
|
-
|
|
10002
|
+
oe(() => e.modelValue, (p) => {
|
|
9988
10003
|
r.value = p, n.value = `${p.id}-component`;
|
|
9989
10004
|
});
|
|
9990
10005
|
function k(p) {
|
|
@@ -9995,7 +10010,7 @@ const _t = /* @__PURE__ */ Oe({
|
|
|
9995
10010
|
var p, T;
|
|
9996
10011
|
(T = (p = r.value) == null ? void 0 : p.contents) != null && T.length && c.value && c.value.addEventListener("scroll", k);
|
|
9997
10012
|
}
|
|
9998
|
-
|
|
10013
|
+
Re(() => {
|
|
9999
10014
|
if (c.value && s.value && s.value.schema) {
|
|
10000
10015
|
const p = c.value.querySelector(`[data-dragref='${s.value.schema.id}-container']`);
|
|
10001
10016
|
u && p && u.attachComponents(p, r.value), a.value = s.value.canNested !== void 0 ? s.value.canNested : a.value, i.value = s.value.canDelete !== void 0 ? s.value.canDelete : i.value, o.value = s.value.canMove !== void 0 ? s.value.canMove : o.value, d.value = s.value.styles || "", m.value = s.value.designerClass || "", c.value && (c.value.componentInstance = s, c.value.designItemContext = g);
|
|
@@ -10009,9 +10024,9 @@ const _t = /* @__PURE__ */ Oe({
|
|
|
10009
10024
|
const T = c.value;
|
|
10010
10025
|
if (T) {
|
|
10011
10026
|
const P = document.getElementsByClassName("dgComponentSelected");
|
|
10012
|
-
if (!(P && P.length === 1 && P[0] === c.value) && (Array.from(P).forEach((
|
|
10013
|
-
const
|
|
10014
|
-
|
|
10027
|
+
if (!(P && P.length === 1 && P[0] === c.value) && (Array.from(P).forEach((R) => R.classList.remove("dgComponentSelected")), T.classList.add("dgComponentFocused"), t.emit("selectionChange", r.value.type, r.value, l.value, s.value), s.value.getDraggableDesignItemElement)) {
|
|
10028
|
+
const R = s.value.getDraggableDesignItemElement(g);
|
|
10029
|
+
R && R.value && R.value.classList.add("dgComponentSelected");
|
|
10015
10030
|
}
|
|
10016
10031
|
}
|
|
10017
10032
|
k(p);
|
|
@@ -10043,103 +10058,103 @@ function vu(e, t, n, o, i, a, r, l, d, m, c, u, s, _, g, v, S, C, y) {
|
|
|
10043
10058
|
} = a, {
|
|
10044
10059
|
gridHeaderColumnsStyle: T,
|
|
10045
10060
|
leftFixedGridHeaderColumnsStyle: P,
|
|
10046
|
-
rightFixedGridHeaderColumnsStyle:
|
|
10047
|
-
} = S,
|
|
10048
|
-
function
|
|
10049
|
-
const Se =
|
|
10050
|
-
height: `${
|
|
10051
|
-
left: `${
|
|
10052
|
-
top: `${(
|
|
10053
|
-
width: `${
|
|
10061
|
+
rightFixedGridHeaderColumnsStyle: E
|
|
10062
|
+
} = S, R = D(() => w.value || B.value || M.value), N = I.value.defaultColumnWidth, $ = 32, H = /* @__PURE__ */ new Map([[0, 0]]);
|
|
10063
|
+
function W(ce, ve) {
|
|
10064
|
+
const Se = H.get(ve) || 0, ge = {
|
|
10065
|
+
height: `${ce.depth * $}px`,
|
|
10066
|
+
left: `${ce.left}px`,
|
|
10067
|
+
top: `${(ce.layer - 1) * $}px`,
|
|
10068
|
+
width: `${ce.actualWidth}px`
|
|
10054
10069
|
};
|
|
10055
|
-
return I.value.headerDepth > 1 && (
|
|
10070
|
+
return I.value.headerDepth > 1 && (ge["line-height"] = `${ce.depth * $}px`), H.set(ve + 1, Se + (ce.actualWidth || N)), ge;
|
|
10056
10071
|
}
|
|
10057
|
-
const
|
|
10072
|
+
const ae = D(() => ({
|
|
10058
10073
|
"fv-grid-header": !0,
|
|
10059
10074
|
"fv-grid-header-group-columns": I.value.headerDepth > 1
|
|
10060
|
-
})),
|
|
10075
|
+
})), me = D(() => ({
|
|
10061
10076
|
height: `${I.value.headerDepth * $}px`
|
|
10062
10077
|
}));
|
|
10063
|
-
function
|
|
10064
|
-
var
|
|
10065
|
-
(
|
|
10078
|
+
function X(ce, ve, Se, ge) {
|
|
10079
|
+
var he;
|
|
10080
|
+
(he = e == null ? void 0 : e.setupContext) == null || he.emit("selectionChange", ce, ve, Se, ge);
|
|
10066
10081
|
}
|
|
10067
|
-
function
|
|
10068
|
-
const
|
|
10082
|
+
function le(ce, ve, Se) {
|
|
10083
|
+
const ge = ce.column;
|
|
10069
10084
|
return h("div", {
|
|
10070
10085
|
class: "fv-grid-header-cell",
|
|
10071
|
-
style:
|
|
10086
|
+
style: W(ce, Se)
|
|
10072
10087
|
}, [h(_t, {
|
|
10073
|
-
modelValue:
|
|
10074
|
-
"onUpdate:modelValue": (
|
|
10088
|
+
modelValue: ge,
|
|
10089
|
+
"onUpdate:modelValue": (he) => ge = he,
|
|
10075
10090
|
canAdd: !1,
|
|
10076
10091
|
canDelete: !1,
|
|
10077
10092
|
canMove: !1,
|
|
10078
|
-
key:
|
|
10093
|
+
key: ge.id,
|
|
10079
10094
|
type: "data-grid-column",
|
|
10080
10095
|
componentId: t.componentId,
|
|
10081
|
-
onSelectionChange:
|
|
10096
|
+
onSelectionChange: X
|
|
10082
10097
|
}, null)]);
|
|
10083
10098
|
}
|
|
10084
|
-
function
|
|
10085
|
-
return
|
|
10086
|
-
const
|
|
10087
|
-
if (
|
|
10088
|
-
const
|
|
10089
|
-
|
|
10099
|
+
function G(ce) {
|
|
10100
|
+
return ce.map((ve, Se) => {
|
|
10101
|
+
const ge = [];
|
|
10102
|
+
if (ge.push(le(ve, ce, Se)), ve.children && ve.children.length) {
|
|
10103
|
+
const he = G(ve.children);
|
|
10104
|
+
ge.push(...he);
|
|
10090
10105
|
}
|
|
10091
|
-
return
|
|
10106
|
+
return ge;
|
|
10092
10107
|
});
|
|
10093
10108
|
}
|
|
10094
|
-
function
|
|
10109
|
+
function q() {
|
|
10095
10110
|
return h("div", {
|
|
10096
10111
|
class: "fv-grid-header-left-fixed"
|
|
10097
10112
|
}, [h("div", {
|
|
10098
10113
|
class: "fv-grid-header-columns",
|
|
10099
10114
|
style: P.value
|
|
10100
|
-
}, [
|
|
10115
|
+
}, [G(I.value.leftHeaderColumns)])]);
|
|
10101
10116
|
}
|
|
10102
|
-
function
|
|
10117
|
+
function fe() {
|
|
10103
10118
|
return h("div", {
|
|
10104
10119
|
class: "fv-grid-header-right-fixed"
|
|
10105
10120
|
}, [h("div", {
|
|
10106
10121
|
class: "fv-grid-header-columns",
|
|
10107
|
-
style:
|
|
10108
|
-
}, [
|
|
10122
|
+
style: E.value
|
|
10123
|
+
}, [G(I.value.rightHeaderColumns)])]);
|
|
10109
10124
|
}
|
|
10110
|
-
const
|
|
10111
|
-
function
|
|
10112
|
-
|
|
10125
|
+
const re = F(y.value.length === b.value.length);
|
|
10126
|
+
function ue(ce) {
|
|
10127
|
+
re.value ? O() : f();
|
|
10113
10128
|
}
|
|
10114
|
-
const
|
|
10129
|
+
const ye = D(() => b.value.length > 0 && y.value.length !== b.value.length);
|
|
10115
10130
|
function Be() {
|
|
10116
10131
|
return h("div", {
|
|
10117
10132
|
class: "fv-grid-header-corner d-flex",
|
|
10118
10133
|
style: k.value
|
|
10119
10134
|
}, [w.value && h(uu, {
|
|
10120
10135
|
id: "checkbox_for_select_all",
|
|
10121
|
-
indeterminate:
|
|
10122
|
-
modelValue:
|
|
10123
|
-
"onUpdate:modelValue": (
|
|
10124
|
-
onChange:
|
|
10136
|
+
indeterminate: ye.value,
|
|
10137
|
+
modelValue: re.value,
|
|
10138
|
+
"onUpdate:modelValue": (ce) => re.value = ce,
|
|
10139
|
+
onChange: ue,
|
|
10125
10140
|
style: "margin-left:8px"
|
|
10126
10141
|
}, null), M.value && h("div", {
|
|
10127
10142
|
style: "line-height:18px"
|
|
10128
10143
|
}, [x.value])]);
|
|
10129
10144
|
}
|
|
10130
|
-
function
|
|
10145
|
+
function Ce() {
|
|
10131
10146
|
return h("div", {
|
|
10132
|
-
class:
|
|
10133
|
-
style:
|
|
10134
|
-
}, [
|
|
10147
|
+
class: ae.value,
|
|
10148
|
+
style: me.value
|
|
10149
|
+
}, [R.value && Be(), V.value && q(), h("div", {
|
|
10135
10150
|
class: "fv-grid-header-primary"
|
|
10136
10151
|
}, [h("div", {
|
|
10137
10152
|
class: "fv-grid-header-columns",
|
|
10138
10153
|
style: T.value
|
|
10139
|
-
}, [
|
|
10154
|
+
}, [G(I.value.primaryHeaderColumns)])]), p.value && fe()]);
|
|
10140
10155
|
}
|
|
10141
10156
|
return {
|
|
10142
|
-
renderGridHeader:
|
|
10157
|
+
renderGridHeader: Ce
|
|
10143
10158
|
};
|
|
10144
10159
|
}
|
|
10145
10160
|
class hu extends gt {
|
|
@@ -10312,7 +10327,7 @@ const Ft = /* @__PURE__ */ Oe({
|
|
|
10312
10327
|
setup(e, t) {
|
|
10313
10328
|
var Ye;
|
|
10314
10329
|
const n = F(), o = je("designer-host-service"), i = je("design-item-context"), a = yu(i, o), r = Wt(n, i, a);
|
|
10315
|
-
r.value.styles = "display:flex;flex:1;",
|
|
10330
|
+
r.value.styles = "display:flex;flex:1;", Re(() => {
|
|
10316
10331
|
n.value.componentInstance = r;
|
|
10317
10332
|
}), t.expose(r.value);
|
|
10318
10333
|
const l = F(e.columns), d = 20, m = Co(e), c = 0, u = F(), s = F(), _ = F(), g = F(), v = F(e.showStripe), S = F([]), C = F(!1), y = F(((Ye = e.rowOption) == null ? void 0 : Ye.wrapContent) || !1), w = qt(e, m), O = zt(), f = mo(e), b = xo(e), {
|
|
@@ -10323,114 +10338,114 @@ const Ft = /* @__PURE__ */ Oe({
|
|
|
10323
10338
|
applyCommands: T
|
|
10324
10339
|
} = p;
|
|
10325
10340
|
T(l);
|
|
10326
|
-
const P = qn(e),
|
|
10327
|
-
applyColumnSorter:
|
|
10341
|
+
const P = qn(e), E = Fo(), {
|
|
10342
|
+
applyColumnSorter: R,
|
|
10328
10343
|
columnContext: N,
|
|
10329
10344
|
updateColumnRenderContext: $
|
|
10330
10345
|
} = P;
|
|
10331
|
-
|
|
10332
|
-
const
|
|
10333
|
-
getVisualData:
|
|
10334
|
-
} =
|
|
10346
|
+
R(B, E);
|
|
10347
|
+
const H = Qn(e, N), W = bo(e, m), ae = Ht(), me = ho(e, W, ae), X = yo(e, W, f, m, ae, me), le = Os(e, m, me, X), G = Is(e, m, me, X), q = vo(e, l, B, I, c, X, le, G), {
|
|
10348
|
+
getVisualData: fe
|
|
10349
|
+
} = q, re = Es(N), ue = At(e, N), ye = _o(e, x), {
|
|
10335
10350
|
sidebarWidth: Be
|
|
10336
|
-
} =
|
|
10337
|
-
S.value =
|
|
10338
|
-
const
|
|
10339
|
-
onWheel:
|
|
10340
|
-
dataGridWidth:
|
|
10351
|
+
} = ye;
|
|
10352
|
+
S.value = fe(0, I.value + c - 1);
|
|
10353
|
+
const Ce = go(e, B, S, N, q, I, c, Be), {
|
|
10354
|
+
onWheel: ce,
|
|
10355
|
+
dataGridWidth: ve,
|
|
10341
10356
|
viewPortHeight: Se,
|
|
10342
|
-
viewPortWidth:
|
|
10343
|
-
resetScroll:
|
|
10344
|
-
} =
|
|
10345
|
-
calculateColumnsSize:
|
|
10346
|
-
} = Pe,
|
|
10357
|
+
viewPortWidth: ge,
|
|
10358
|
+
resetScroll: he
|
|
10359
|
+
} = Ce, Pe = Yn(e, N, u, ge, H), {
|
|
10360
|
+
calculateColumnsSize: L
|
|
10361
|
+
} = Pe, pe = po(), be = Un(u, g, B, pe, Ce), A = wo(e, t, x, m), de = Xn(e, t, P, B, H, w, Ce), U = D(() => ({
|
|
10347
10362
|
"fv-grid": !0,
|
|
10348
10363
|
"fv-datagrid-strip": v.value
|
|
10349
|
-
})),
|
|
10364
|
+
})), Y = D(() => ({
|
|
10350
10365
|
"fv-grid-content": !0,
|
|
10351
10366
|
"fv-grid-content-hover": C.value,
|
|
10352
10367
|
"fv-grid-wrap-content": y.value
|
|
10353
10368
|
})), {
|
|
10354
|
-
renderGridHeader:
|
|
10355
|
-
} = vu(i, e, u, _, g, P, B,
|
|
10369
|
+
renderGridHeader: Fe
|
|
10370
|
+
} = vu(i, e, u, _, g, P, B, de, be, O, pe, Pe, H, x, ye, E, Ce, ge, S), {
|
|
10356
10371
|
renderDataGridPagination: xe
|
|
10357
|
-
} = $r(e, t, B,
|
|
10372
|
+
} = $r(e, t, B, Ce, b), {
|
|
10358
10373
|
renderDataGridSidebar: Ve
|
|
10359
|
-
} = Wn(e,
|
|
10374
|
+
} = Wn(e, A, x, ye, Ce), {
|
|
10360
10375
|
renderDisableMask: $e
|
|
10361
10376
|
} = Br(), {
|
|
10362
10377
|
renderDataGridSummery: Le
|
|
10363
10378
|
} = Nr(e, B, P), {
|
|
10364
10379
|
renderHorizontalScrollbar: ze
|
|
10365
|
-
} = Gn(e, u,
|
|
10380
|
+
} = Gn(e, u, Ce), {
|
|
10366
10381
|
renderVerticalScrollbar: Ze
|
|
10367
|
-
} = Ln(e, u,
|
|
10382
|
+
} = Ln(e, u, Ce), {
|
|
10368
10383
|
renderFilterPanel: Je
|
|
10369
|
-
} = Vr(e, P, B, O,
|
|
10384
|
+
} = Vr(e, P, B, O, Ce), {
|
|
10370
10385
|
renderGroupPanel: et
|
|
10371
|
-
} = Mr(e, B,
|
|
10386
|
+
} = Mr(e, B, de, w, Ce);
|
|
10372
10387
|
function tt() {
|
|
10373
|
-
var we,
|
|
10374
|
-
Se.value = ((we = s.value) == null ? void 0 : we.clientHeight) || 0,
|
|
10388
|
+
var we, _e;
|
|
10389
|
+
Se.value = ((we = s.value) == null ? void 0 : we.clientHeight) || 0, ve.value = ((_e = u.value) == null ? void 0 : _e.clientWidth) || 0, L();
|
|
10375
10390
|
}
|
|
10376
|
-
|
|
10377
|
-
u.value && (mt(u.value, tt),
|
|
10378
|
-
u.value && (
|
|
10391
|
+
Re(() => {
|
|
10392
|
+
u.value && (mt(u.value, tt), L(), Ue(() => {
|
|
10393
|
+
u.value && (ve.value = u.value.clientWidth), s.value && (ge.value = s.value.clientWidth, Se.value = s.value.clientHeight);
|
|
10379
10394
|
}));
|
|
10380
10395
|
}), ut(() => {
|
|
10381
|
-
}),
|
|
10382
|
-
u.value &&
|
|
10383
|
-
}),
|
|
10396
|
+
}), oe(ge, () => {
|
|
10397
|
+
u.value && L();
|
|
10398
|
+
}), oe(() => e.columns, (we) => {
|
|
10384
10399
|
Me(we);
|
|
10385
10400
|
});
|
|
10386
10401
|
function Xe() {
|
|
10387
|
-
B.insertNewDataItem(),
|
|
10402
|
+
B.insertNewDataItem(), he();
|
|
10388
10403
|
}
|
|
10389
|
-
function
|
|
10390
|
-
B.insertNewDataItem(S.value.length),
|
|
10404
|
+
function z() {
|
|
10405
|
+
B.insertNewDataItem(S.value.length), he();
|
|
10391
10406
|
}
|
|
10392
|
-
function
|
|
10393
|
-
|
|
10407
|
+
function ne(we) {
|
|
10408
|
+
W.onEditingRow(we);
|
|
10394
10409
|
}
|
|
10395
|
-
function
|
|
10396
|
-
B.removeDataItem(we),
|
|
10410
|
+
function se(we) {
|
|
10411
|
+
B.removeDataItem(we), he();
|
|
10397
10412
|
}
|
|
10398
10413
|
function Ie(we) {
|
|
10399
|
-
B.removeDataItemById(we),
|
|
10414
|
+
B.removeDataItemById(we), he();
|
|
10400
10415
|
}
|
|
10401
|
-
function
|
|
10402
|
-
|
|
10416
|
+
function ie(we) {
|
|
10417
|
+
W.acceptEditingRow(we);
|
|
10403
10418
|
}
|
|
10404
10419
|
function ke(we) {
|
|
10405
|
-
|
|
10420
|
+
W.cancelEditingRow(we);
|
|
10406
10421
|
}
|
|
10407
10422
|
function Me(we) {
|
|
10408
|
-
we && (l.value = we, T(l), $(l.value),
|
|
10423
|
+
we && (l.value = we, T(l), $(l.value), R(B, E), L());
|
|
10409
10424
|
}
|
|
10410
10425
|
function Te(we) {
|
|
10411
|
-
we && (B.load(we), S.value =
|
|
10426
|
+
we && (B.load(we), S.value = fe(0, I.value + c - 1));
|
|
10412
10427
|
}
|
|
10413
10428
|
const We = Bs(e, t, {
|
|
10414
10429
|
addNewDataItem: Xe,
|
|
10415
|
-
addNewDataItemAtLast:
|
|
10416
|
-
removeDataItem:
|
|
10430
|
+
addNewDataItemAtLast: z,
|
|
10431
|
+
removeDataItem: se,
|
|
10417
10432
|
removeDataItemById: Ie,
|
|
10418
|
-
editDataItem:
|
|
10419
|
-
acceptDataItem:
|
|
10433
|
+
editDataItem: ne,
|
|
10434
|
+
acceptDataItem: ie,
|
|
10420
10435
|
cancelDataItem: ke,
|
|
10421
10436
|
updateColumns: Me,
|
|
10422
10437
|
updateDataSource: Te
|
|
10423
|
-
}, P,
|
|
10438
|
+
}, P, W, S), {
|
|
10424
10439
|
renderDataArea: nt
|
|
10425
|
-
} = Vo(e, t, s, _, g,
|
|
10440
|
+
} = Vo(e, t, s, _, g, re, ue, P, W, w, We, A, q, Ce, S);
|
|
10426
10441
|
return () => h("div", {
|
|
10427
10442
|
ref: n,
|
|
10428
|
-
class:
|
|
10443
|
+
class: U.value,
|
|
10429
10444
|
style: V.value,
|
|
10430
|
-
onWheel:
|
|
10431
|
-
}, [Je(), et(),
|
|
10445
|
+
onWheel: ce
|
|
10446
|
+
}, [Je(), et(), Fe(), h("div", {
|
|
10432
10447
|
ref: u,
|
|
10433
|
-
class:
|
|
10448
|
+
class: Y.value,
|
|
10434
10449
|
onMouseover: () => {
|
|
10435
10450
|
C.value = !0;
|
|
10436
10451
|
},
|
|
@@ -10509,7 +10524,7 @@ const Bu = "transfer", Vu = "A Farris Component", Mu = "object", Pu = {
|
|
|
10509
10524
|
description: Vu,
|
|
10510
10525
|
type: Mu,
|
|
10511
10526
|
categories: Pu
|
|
10512
|
-
},
|
|
10527
|
+
}, Eu = "https://json-schema.org/draft/2020-12/schema", Ru = "https://farris-design.gitee.io/transfer.schema.json", $u = "transfer", Nu = "A Farris Component", ju = "object", Au = {
|
|
10513
10528
|
id: {
|
|
10514
10529
|
description: "The unique identifier for transfer",
|
|
10515
10530
|
type: "string"
|
|
@@ -10575,8 +10590,8 @@ const Bu = "transfer", Vu = "A Farris Component", Mu = "object", Pu = {
|
|
|
10575
10590
|
"id",
|
|
10576
10591
|
"type"
|
|
10577
10592
|
], Gu = {
|
|
10578
|
-
$schema:
|
|
10579
|
-
$id:
|
|
10593
|
+
$schema: Eu,
|
|
10594
|
+
$id: Ru,
|
|
10580
10595
|
title: $u,
|
|
10581
10596
|
description: Nu,
|
|
10582
10597
|
type: ju,
|
|
@@ -10702,7 +10717,7 @@ const zu = "https://json-schema.org/draft/2020-12/schema", qu = "https://farris-
|
|
|
10702
10717
|
description: ec,
|
|
10703
10718
|
type: tc,
|
|
10704
10719
|
categories: nc
|
|
10705
|
-
},
|
|
10720
|
+
}, Eo = {
|
|
10706
10721
|
/** 列集合 */
|
|
10707
10722
|
columns: {
|
|
10708
10723
|
type: Array,
|
|
@@ -10742,7 +10757,7 @@ const zu = "https://json-schema.org/draft/2020-12/schema", qu = "https://farris-
|
|
|
10742
10757
|
keepOrder: { type: Boolean, default: !1 },
|
|
10743
10758
|
disableField: { type: String, default: "disabled" }
|
|
10744
10759
|
};
|
|
10745
|
-
Ae(
|
|
10760
|
+
Ae(Eo, Zu, Wu, Lu, oc);
|
|
10746
10761
|
function ic(e, t) {
|
|
10747
10762
|
function n(a) {
|
|
10748
10763
|
const r = [];
|
|
@@ -10807,7 +10822,9 @@ function en(e, t, n, o, i, a, r, l, d, m) {
|
|
|
10807
10822
|
disabled: B[g.value],
|
|
10808
10823
|
checked: B.checked,
|
|
10809
10824
|
"onUpdate:checked": (I) => B.checked = I,
|
|
10810
|
-
onChange: (I) =>
|
|
10825
|
+
onChange: (I) => {
|
|
10826
|
+
O(B, x, !I.checked);
|
|
10827
|
+
}
|
|
10811
10828
|
}, null)]), h("div", {
|
|
10812
10829
|
class: "f-list-content"
|
|
10813
10830
|
}, [h("div", {
|
|
@@ -10857,7 +10874,7 @@ function ac(e, t, n, o, i, a, r, l, d, m) {
|
|
|
10857
10874
|
disabled: f[u.value] || !f.checked,
|
|
10858
10875
|
checked: f.checked,
|
|
10859
10876
|
"onUpdate:checked": (B) => f.checked = B,
|
|
10860
|
-
onChange: (B) => C(f, b)
|
|
10877
|
+
onChange: (B) => C(f, b, !B.checked)
|
|
10861
10878
|
}, null)]), h("div", {
|
|
10862
10879
|
class: "f-list-content"
|
|
10863
10880
|
}, [w(f, b, M)])]);
|
|
@@ -10900,30 +10917,30 @@ function rc(e, t, n, o, i, a, r, l, d, m) {
|
|
|
10900
10917
|
class: S(p, T),
|
|
10901
10918
|
id: v(p, T),
|
|
10902
10919
|
key: v(p, T),
|
|
10903
|
-
onClick: (
|
|
10904
|
-
onMouseenter: (
|
|
10905
|
-
onMouseover: (
|
|
10906
|
-
onMouseout: (
|
|
10920
|
+
onClick: (E) => y(E, p, T),
|
|
10921
|
+
onMouseenter: (E) => s(E, p, T),
|
|
10922
|
+
onMouseover: (E) => _(E, p, T),
|
|
10923
|
+
onMouseout: (E) => g(E, p, T),
|
|
10907
10924
|
draggable: "true",
|
|
10908
|
-
onDragstart: (
|
|
10909
|
-
onDragenter: (
|
|
10910
|
-
onDragend: (
|
|
10911
|
-
onDragover: (
|
|
10925
|
+
onDragstart: (E) => w(E, p, T),
|
|
10926
|
+
onDragenter: (E) => O(E, T),
|
|
10927
|
+
onDragend: (E) => b(E, p),
|
|
10928
|
+
onDragover: (E) => f(E, T)
|
|
10912
10929
|
}, [c.value && h("div", {
|
|
10913
10930
|
class: "f-list-select",
|
|
10914
|
-
onClick: (
|
|
10931
|
+
onClick: (E) => E.stopPropagation()
|
|
10915
10932
|
}, [h(st, {
|
|
10916
10933
|
id: "list-" + v(p, T),
|
|
10917
10934
|
customClass: "listview-checkbox",
|
|
10918
10935
|
disabled: p[u.value] || !p.checked,
|
|
10919
10936
|
checked: p.checked,
|
|
10920
|
-
"onUpdate:checked": (
|
|
10921
|
-
onChange: (
|
|
10937
|
+
"onUpdate:checked": (E) => p.checked = E,
|
|
10938
|
+
onChange: (E) => C(p, T, !E.checked)
|
|
10922
10939
|
}, null)]), h("div", {
|
|
10923
10940
|
class: "f-list-content"
|
|
10924
10941
|
}, [I(p)]), h("div", {
|
|
10925
10942
|
class: "f-list-remove",
|
|
10926
|
-
onClick: (
|
|
10943
|
+
onClick: (E) => M(T)
|
|
10927
10944
|
}, [h("div", {
|
|
10928
10945
|
class: "f-list-remove-icon"
|
|
10929
10946
|
}, [h("i", {
|
|
@@ -11045,14 +11062,14 @@ function dc(e, t, n, o, i, a) {
|
|
|
11045
11062
|
"f-listview-hover": !s.value && V === v.value,
|
|
11046
11063
|
moving: !!I.moving
|
|
11047
11064
|
};
|
|
11048
|
-
return m.value.split(" ").reduce((P,
|
|
11065
|
+
return m.value.split(" ").reduce((P, E) => (P[E] = !0, P), p), p;
|
|
11049
11066
|
}
|
|
11050
11067
|
function f(I, V) {
|
|
11051
11068
|
return I.raw[r.value] || "";
|
|
11052
11069
|
}
|
|
11053
11070
|
const b = D(() => !c.value);
|
|
11054
|
-
function M(I, V) {
|
|
11055
|
-
|
|
11071
|
+
function M(I, V, p) {
|
|
11072
|
+
I.checked = p, !I.raw[l.value] && (b.value && (g.value = I.raw[r.value]), y(I));
|
|
11056
11073
|
}
|
|
11057
11074
|
const B = D(() => c.value && u.value === "OnCheckClearByClick"), x = D(() => !c.value || c.value && (u.value === "OnCheckAndClick" || u.value === "OnClick"));
|
|
11058
11075
|
function k(I, V, p) {
|
|
@@ -11118,7 +11135,7 @@ function tn(e, t, n) {
|
|
|
11118
11135
|
function d(s) {
|
|
11119
11136
|
a.value = "";
|
|
11120
11137
|
}
|
|
11121
|
-
|
|
11138
|
+
oe(a, (s) => {
|
|
11122
11139
|
n.search(s);
|
|
11123
11140
|
});
|
|
11124
11141
|
const m = D(() => {
|
|
@@ -11168,19 +11185,19 @@ function tn(e, t, n) {
|
|
|
11168
11185
|
}
|
|
11169
11186
|
const nn = /* @__PURE__ */ Oe({
|
|
11170
11187
|
name: "FListView",
|
|
11171
|
-
props:
|
|
11188
|
+
props: Eo,
|
|
11172
11189
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
11173
11190
|
setup(e, t) {
|
|
11174
|
-
const n = F(), o = F(!0), i = F(!1), a = F([]), r = 0, l = F(e.columns), d = kt(e), m = Ot(e), c = Tt(e, d), u = It(e), s = Bt(e, /* @__PURE__ */ new Map(), m, d, u), _ = Vt(e, s, d, a, t), g = ic(e, n), v = D(() => s.dataView.value.length), S = Mt(e, d), C = Pt(), y = Dt(e, {}, C), w =
|
|
11191
|
+
const n = F(), o = F(!0), i = F(!1), a = F([]), r = 0, l = F(e.columns), d = kt(e), m = Ot(e), c = Tt(e, d), u = It(e), s = Bt(e, /* @__PURE__ */ new Map(), m, d, u), _ = Vt(e, s, d, a, t), g = ic(e, n), v = D(() => s.dataView.value.length), S = Mt(e, d), C = Pt(), y = Dt(e, {}, C), w = Et(e, S, m, d, C, y), O = Vn(e, d, y, w), f = Mn(e, d, y, w), b = Rt(e, l, s, v, r, w, O, f), {
|
|
11175
11192
|
getVisualData: M
|
|
11176
11193
|
} = b;
|
|
11177
11194
|
a.value = M(0, v.value + r - 1);
|
|
11178
11195
|
const B = D(() => {
|
|
11179
|
-
const
|
|
11196
|
+
const R = {
|
|
11180
11197
|
"f-list-view": !0,
|
|
11181
11198
|
"f-list-view-multiple": e.multiSelect
|
|
11182
11199
|
};
|
|
11183
|
-
return e.size !== "default" && (
|
|
11200
|
+
return e.size !== "default" && (R[`${e.size}-item`] = !0), R;
|
|
11184
11201
|
}), x = D(() => !!t.slots.footer || o.value);
|
|
11185
11202
|
function k() {
|
|
11186
11203
|
return e.header === "SearchBar" ? tn : e.header === "ContentHeader" ? pc : tn;
|
|
@@ -11190,22 +11207,22 @@ const nn = /* @__PURE__ */ Oe({
|
|
|
11190
11207
|
} = I(e, t, g), {
|
|
11191
11208
|
renderListArea: p
|
|
11192
11209
|
} = fc(e, t, a, s, c, _, b);
|
|
11193
|
-
function T(
|
|
11194
|
-
g.search(
|
|
11210
|
+
function T(R) {
|
|
11211
|
+
g.search(R);
|
|
11195
11212
|
}
|
|
11196
|
-
function P(
|
|
11197
|
-
|
|
11213
|
+
function P(R) {
|
|
11214
|
+
R && (s.load(R), a.value = M(0, v.value + r - 1));
|
|
11198
11215
|
}
|
|
11199
11216
|
t.expose({
|
|
11200
11217
|
search: T,
|
|
11201
11218
|
updateDataSource: P
|
|
11202
11219
|
});
|
|
11203
|
-
function R
|
|
11204
|
-
e.multiSelect && (
|
|
11220
|
+
function E(R) {
|
|
11221
|
+
e.multiSelect && (R.preventDefault(), R.stopPropagation());
|
|
11205
11222
|
}
|
|
11206
11223
|
return () => h("div", {
|
|
11207
11224
|
class: B.value,
|
|
11208
|
-
onClick:
|
|
11225
|
+
onClick: E
|
|
11209
11226
|
}, [V(), h("div", {
|
|
11210
11227
|
ref: n,
|
|
11211
11228
|
class: "f-list-view-content",
|
|
@@ -11258,7 +11275,7 @@ const nn = /* @__PURE__ */ Oe({
|
|
|
11258
11275
|
"selection-values": m.value,
|
|
11259
11276
|
onSelectionChange: v
|
|
11260
11277
|
}, {
|
|
11261
|
-
default: () => [
|
|
11278
|
+
default: () => [Ee(" ")]
|
|
11262
11279
|
});
|
|
11263
11280
|
}
|
|
11264
11281
|
function C() {
|
|
@@ -11281,7 +11298,7 @@ const nn = /* @__PURE__ */ Oe({
|
|
|
11281
11298
|
I && (I.checked = !1, c.delete(k)), t.emit("change", d.value);
|
|
11282
11299
|
}
|
|
11283
11300
|
}
|
|
11284
|
-
|
|
11301
|
+
oe(d, (x) => {
|
|
11285
11302
|
u.value.updateDataSource(x);
|
|
11286
11303
|
});
|
|
11287
11304
|
function O(x) {
|
|
@@ -11340,7 +11357,7 @@ const nn = /* @__PURE__ */ Oe({
|
|
|
11340
11357
|
let m = [];
|
|
11341
11358
|
const c = F([]);
|
|
11342
11359
|
let u = [];
|
|
11343
|
-
|
|
11360
|
+
Re(() => {
|
|
11344
11361
|
c.value = o.getAllFields2TreeByVMId(n.value), s();
|
|
11345
11362
|
});
|
|
11346
11363
|
function s() {
|
|
@@ -11549,7 +11566,7 @@ const nn = /* @__PURE__ */ Oe({
|
|
|
11549
11566
|
description: bc,
|
|
11550
11567
|
type: Cc,
|
|
11551
11568
|
properties: wc
|
|
11552
|
-
},
|
|
11569
|
+
}, Ro = {
|
|
11553
11570
|
id: { type: String, default: "" },
|
|
11554
11571
|
type: { type: String, default: "" },
|
|
11555
11572
|
/** 允许分组,默认为 true */
|
|
@@ -11611,7 +11628,7 @@ const nn = /* @__PURE__ */ Oe({
|
|
|
11611
11628
|
formatter: { type: Function, default: () => {
|
|
11612
11629
|
} },
|
|
11613
11630
|
componentId: { type: String, default: "" }
|
|
11614
|
-
}, _c = Ae(
|
|
11631
|
+
}, _c = Ae(Ro, Sc, js, Ws);
|
|
11615
11632
|
class Fc extends He {
|
|
11616
11633
|
constructor(t, n) {
|
|
11617
11634
|
super(t, n);
|
|
@@ -11848,7 +11865,7 @@ const at = {
|
|
|
11848
11865
|
}
|
|
11849
11866
|
}
|
|
11850
11867
|
}, Dc = Symbol("schema_repository_token");
|
|
11851
|
-
class
|
|
11868
|
+
class Ec extends gt {
|
|
11852
11869
|
getPropertyConfig(t) {
|
|
11853
11870
|
const n = this.getBasicPropConfig(t), o = this.getAppearanceConfig(), i = this.getBehaviorConfig(t), a = this.getLookupConfig(t.editor);
|
|
11854
11871
|
return {
|
|
@@ -12039,7 +12056,7 @@ class Rc extends gt {
|
|
|
12039
12056
|
};
|
|
12040
12057
|
}
|
|
12041
12058
|
}
|
|
12042
|
-
class
|
|
12059
|
+
class Rc extends He {
|
|
12043
12060
|
constructor(t, n) {
|
|
12044
12061
|
super(t, n);
|
|
12045
12062
|
}
|
|
@@ -12307,10 +12324,10 @@ class Hc extends gt {
|
|
|
12307
12324
|
a = new Ic(this.componentId, this.designerHostService);
|
|
12308
12325
|
return;
|
|
12309
12326
|
case "lookup":
|
|
12310
|
-
a = new
|
|
12327
|
+
a = new Ec(this.componentId, this.designerHostService);
|
|
12311
12328
|
return;
|
|
12312
12329
|
case "number-range":
|
|
12313
|
-
a = new
|
|
12330
|
+
a = new Rc(this.componentId, this.designerHostService);
|
|
12314
12331
|
return;
|
|
12315
12332
|
case "number-spinner":
|
|
12316
12333
|
a = new $c(this.componentId, this.designerHostService);
|
|
@@ -12405,7 +12422,7 @@ class Hc extends gt {
|
|
|
12405
12422
|
);
|
|
12406
12423
|
const i = this.formSchemaUtils.getComponentByViewModelId(this.viewModelId), a = this.formSchemaUtils.selectNode(
|
|
12407
12424
|
i,
|
|
12408
|
-
(m) => m.type ===
|
|
12425
|
+
(m) => m.type === te["data-grid"].type || m.type === te["tree-grid"].type
|
|
12409
12426
|
);
|
|
12410
12427
|
if (!a)
|
|
12411
12428
|
return;
|
|
@@ -12454,11 +12471,11 @@ function Gc(e, t) {
|
|
|
12454
12471
|
}
|
|
12455
12472
|
const Wc = /* @__PURE__ */ Oe({
|
|
12456
12473
|
name: "FDataGridColumnDesign",
|
|
12457
|
-
props:
|
|
12474
|
+
props: Ro,
|
|
12458
12475
|
emits: [],
|
|
12459
12476
|
setup(e, t) {
|
|
12460
12477
|
const n = F(), o = je("designer-host-service"), i = je("design-item-context"), a = Gc(i, o), r = Wt(n, i, a);
|
|
12461
|
-
|
|
12478
|
+
Re(() => {
|
|
12462
12479
|
n.value.componentInstance = r;
|
|
12463
12480
|
}), t.expose(r.value);
|
|
12464
12481
|
function l(d) {
|
|
@@ -12698,7 +12715,7 @@ const td = Symbol("radioGroupContext"), nd = /* @__PURE__ */ Oe({
|
|
|
12698
12715
|
var v;
|
|
12699
12716
|
return (v = i.value) == null ? void 0 : v.map((S) => S[e.idField]);
|
|
12700
12717
|
});
|
|
12701
|
-
|
|
12718
|
+
oe(() => e.data, (v) => {
|
|
12702
12719
|
n.value = v, a.value.updateDataSource(v);
|
|
12703
12720
|
});
|
|
12704
12721
|
const d = {
|
|
@@ -12756,7 +12773,7 @@ const td = Symbol("radioGroupContext"), nd = /* @__PURE__ */ Oe({
|
|
|
12756
12773
|
emits: ["selected", "bindingTypeChanged"],
|
|
12757
12774
|
setup(e, t) {
|
|
12758
12775
|
const n = '<i class="f-icon f-icon-lookup"></i>', o = F(e.bindingData), i = F(e.columns), a = F(e.data), r = F(), l = je(e.repositoryToken);
|
|
12759
|
-
|
|
12776
|
+
oe(() => e.data, (S) => {
|
|
12760
12777
|
a.value = S;
|
|
12761
12778
|
});
|
|
12762
12779
|
const d = F("");
|
|
@@ -12789,7 +12806,7 @@ const td = Symbol("radioGroupContext"), nd = /* @__PURE__ */ Oe({
|
|
|
12789
12806
|
onBindingTypeChange: c
|
|
12790
12807
|
}, null);
|
|
12791
12808
|
}
|
|
12792
|
-
|
|
12809
|
+
Re(() => {
|
|
12793
12810
|
u();
|
|
12794
12811
|
});
|
|
12795
12812
|
const g = {
|