@farris/ui-vue 1.3.5 → 1.3.6
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 +16 -16
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +65 -65
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +13 -13
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +504 -490
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +247 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +356 -344
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +159 -145
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +127 -128
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +15 -15
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +101 -87
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +7 -5
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +181 -167
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4057 -4304
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2450 -2467
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +789 -777
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3593 -3585
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +257 -243
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +322 -306
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +177 -163
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +163 -2643
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +500 -486
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +37 -37
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +485 -470
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +2611 -2623
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +3825 -3837
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +3720 -3712
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +402 -388
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +201 -202
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +264 -245
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +157 -143
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +312 -296
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +4748 -4992
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +4215 -4462
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +169 -155
- package/components/nav/index.umd.cjs +2 -2
- package/components/number-range/index.esm.js +150 -137
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +207 -194
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +427 -414
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +22 -22
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +510 -492
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +192 -178
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +234 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +288 -277
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +62 -61
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +3015 -3027
- package/components/query-solution/index.umd.cjs +5 -5
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +293 -280
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +222 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +187 -173
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +554 -542
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +483 -469
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +632 -617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +228 -214
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +419 -406
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +162 -148
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +308 -284
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +279 -265
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +183 -170
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +307 -294
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +320 -306
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +245 -231
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +260 -247
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +409 -396
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +424 -410
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +2994 -3006
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +749 -733
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +325 -311
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +304 -290
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +99 -85
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +947 -933
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +7750 -7990
- package/farris.all.umd.cjs +12 -12
- package/package.json +1 -1
- package/types/data-view/composition/types.d.ts +0 -1
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
- package/components/event-parameter/index.css +0 -1
- package/types/data-grid/src/components/data/data-grid-area.component.d.ts +0 -8
- package/types/data-grid/src/components/data/data-grid-area.props.d.ts +0 -3
|
@@ -2,7 +2,7 @@ var fn = Object.defineProperty;
|
|
|
2
2
|
var pn = (e, t, n) => t in e ? fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var z = (e, t, n) => pn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { ref as v, watch as ne, createVNode as F, resolveComponent as vn, createTextVNode as Le, computed as V, defineComponent as Fe, onBeforeUnmount as hn, onMounted as ze, nextTick as it, reactive as Ee, withDirectives as mn, resolveDirective as gn, Fragment as Ae, mergeProps as ot, onUnmounted as ft, Teleport as yn, Transition as Ot, shallowRef as bn, createApp as Ft, render as rt, h as wn, cloneVNode as _n, inject as Cn } from "vue";
|
|
5
|
-
import { isPlainObject as _t, cloneDeep as
|
|
5
|
+
import { isPlainObject as _t, cloneDeep as Ne } from "lodash-es";
|
|
6
6
|
import "../modal/index.esm.js";
|
|
7
7
|
import xn from "../transfer/index.esm.js";
|
|
8
8
|
import Sn from "../tabs/index.esm.js";
|
|
@@ -23,10 +23,10 @@ import qn from "../button-group/index.esm.js";
|
|
|
23
23
|
import Un from "../calendar/index.esm.js";
|
|
24
24
|
import Yn from "../capsule/index.esm.js";
|
|
25
25
|
import Xn from "../combo-tree/index.esm.js";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
26
|
+
import Qn from "../component/index.esm.js";
|
|
27
|
+
import Jn from "../color-picker/index.esm.js";
|
|
28
|
+
import Zn from "../content-container/index.esm.js";
|
|
29
|
+
import Kn from "../date-picker/index.esm.js";
|
|
30
30
|
import eo from "../data-grid/index.esm.js";
|
|
31
31
|
import to from "../dropdown/index.esm.js";
|
|
32
32
|
import no from "../events-editor/index.esm.js";
|
|
@@ -72,100 +72,114 @@ import "../external-container/index.esm.js";
|
|
|
72
72
|
import { createPropsResolver as Ao } from "../dynamic-resolver/index.esm.js";
|
|
73
73
|
const Mt = {}, Et = {};
|
|
74
74
|
function pt(e) {
|
|
75
|
-
const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), r = Object.keys(t).reduce((
|
|
76
|
-
if (n && (!a || !o.find((
|
|
77
|
-
const
|
|
78
|
-
r.id = `${
|
|
75
|
+
const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), r = Object.keys(t).reduce((l, c) => ((!a || !o.find((s) => s === c)) && (l[c] = t[c].type === "object" && t[c].properties ? pt(t[c]) : Ne(t[c].default)), l), {});
|
|
76
|
+
if (n && (!a || !o.find((l) => l === "id"))) {
|
|
77
|
+
const l = n.toLowerCase().replace(/-/g, "_");
|
|
78
|
+
r.id = `${l}_${Math.random().toString().slice(2, 6)}`;
|
|
79
79
|
}
|
|
80
80
|
return r;
|
|
81
81
|
}
|
|
82
|
+
function zo(e) {
|
|
83
|
+
const { properties: t, title: n, required: o } = e;
|
|
84
|
+
if (o && Array.isArray(o)) {
|
|
85
|
+
const a = o.reduce((r, l) => (r[l] = t[l].type === "object" && t[l].properties ? pt(t[l]) : Ne(t[l].default), r), {});
|
|
86
|
+
if (n && o.find((r) => r === "id")) {
|
|
87
|
+
const r = n.toLowerCase().replace(/-/g, "_");
|
|
88
|
+
a.id = `${r}_${Math.random().toString().slice(2, 6)}`;
|
|
89
|
+
}
|
|
90
|
+
return a;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
type: n
|
|
94
|
+
};
|
|
95
|
+
}
|
|
82
96
|
function It(e, t = {}, n) {
|
|
83
97
|
const o = Mt[e];
|
|
84
98
|
if (o) {
|
|
85
|
-
let a =
|
|
99
|
+
let a = zo(o);
|
|
86
100
|
const r = Et[e];
|
|
87
101
|
return a = r ? r({ getSchemaByType: It }, a, t, n) : a, a;
|
|
88
102
|
}
|
|
89
103
|
return null;
|
|
90
104
|
}
|
|
91
|
-
function
|
|
105
|
+
function Wo(e, t) {
|
|
92
106
|
const n = pt(t);
|
|
93
|
-
return Object.keys(n).reduce((o, a) => (o[a] && _t(o[a]) && _t(e[a] || !e[a]) ? Object.assign(o[a], e[a] || {}) : o[a] = e[a], o), n), n;
|
|
107
|
+
return Object.keys(n).reduce((o, a) => (Object.prototype.hasOwnProperty.call(e, a) && (o[a] && _t(o[a]) && _t(e[a] || !e[a]) ? Object.assign(o[a], e[a] || {}) : o[a] = e[a]), o), n), n;
|
|
94
108
|
}
|
|
95
|
-
function
|
|
109
|
+
function Go(e, t) {
|
|
96
110
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
|
|
97
111
|
if (t.has(a)) {
|
|
98
112
|
const r = t.get(a);
|
|
99
113
|
if (typeof r == "string")
|
|
100
114
|
o[r] = e[a];
|
|
101
115
|
else {
|
|
102
|
-
const
|
|
103
|
-
Object.assign(o,
|
|
116
|
+
const l = r(a, e[a], e);
|
|
117
|
+
Object.assign(o, l);
|
|
104
118
|
}
|
|
105
119
|
} else
|
|
106
120
|
o[a] = e[a];
|
|
107
121
|
return o;
|
|
108
122
|
}, {});
|
|
109
123
|
}
|
|
110
|
-
function
|
|
111
|
-
const o =
|
|
112
|
-
return
|
|
124
|
+
function qo(e, t, n = /* @__PURE__ */ new Map()) {
|
|
125
|
+
const o = Wo(e, t);
|
|
126
|
+
return Go(o, n);
|
|
113
127
|
}
|
|
114
|
-
function
|
|
115
|
-
function t(
|
|
128
|
+
function Uo(e = {}) {
|
|
129
|
+
function t(i, p, y, b) {
|
|
116
130
|
if (typeof y == "number")
|
|
117
|
-
return b[
|
|
131
|
+
return b[i].length === y;
|
|
118
132
|
if (typeof y == "object") {
|
|
119
133
|
const E = Object.keys(y)[0], C = y[E];
|
|
120
134
|
if (E === "not")
|
|
121
|
-
return Number(b[
|
|
135
|
+
return Number(b[i].length) !== Number(C);
|
|
122
136
|
if (E === "moreThan")
|
|
123
|
-
return Number(b[
|
|
137
|
+
return Number(b[i].length) >= Number(C);
|
|
124
138
|
if (E === "lessThan")
|
|
125
|
-
return Number(b[
|
|
139
|
+
return Number(b[i].length) <= Number(C);
|
|
126
140
|
}
|
|
127
141
|
return !1;
|
|
128
142
|
}
|
|
129
|
-
function n(
|
|
130
|
-
return b[
|
|
143
|
+
function n(i, p, y, b) {
|
|
144
|
+
return b[i] && b[i].propertyValue && String(b[i].propertyValue.value) === String(y);
|
|
131
145
|
}
|
|
132
146
|
const o = /* @__PURE__ */ new Map([
|
|
133
147
|
["length", t],
|
|
134
148
|
["getProperty", n]
|
|
135
149
|
]);
|
|
136
|
-
Object.keys(e).reduce((
|
|
137
|
-
function a(
|
|
138
|
-
const y =
|
|
139
|
-
return typeof p == "number" ? [{ target: y, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: y, operator: "getProperty", param:
|
|
150
|
+
Object.keys(e).reduce((i, p) => (i.set(p, e[p]), i), o);
|
|
151
|
+
function a(i, p) {
|
|
152
|
+
const y = i;
|
|
153
|
+
return typeof p == "number" ? [{ target: y, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: y, operator: "getProperty", param: i, value: !!p }] : typeof p == "object" ? Object.keys(p).map((b) => {
|
|
140
154
|
if (b === "length")
|
|
141
155
|
return { target: y, operator: "length", param: null, value: p[b] };
|
|
142
156
|
const E = b, C = p[b];
|
|
143
157
|
return { target: y, operator: "getProperty", param: E, value: C };
|
|
144
158
|
}) : [];
|
|
145
159
|
}
|
|
146
|
-
function r(
|
|
147
|
-
return Object.keys(
|
|
148
|
-
const E = a(b,
|
|
160
|
+
function r(i) {
|
|
161
|
+
return Object.keys(i).reduce((y, b) => {
|
|
162
|
+
const E = a(b, i[b]);
|
|
149
163
|
return y.push(...E), y;
|
|
150
164
|
}, []);
|
|
151
165
|
}
|
|
152
|
-
function i
|
|
153
|
-
if (o.has(
|
|
154
|
-
const y = o.get(
|
|
155
|
-
return y && y(
|
|
166
|
+
function l(i, p) {
|
|
167
|
+
if (o.has(i.operator)) {
|
|
168
|
+
const y = o.get(i.operator);
|
|
169
|
+
return y && y(i.target, i.param, i.value, p) || !1;
|
|
156
170
|
}
|
|
157
171
|
return !1;
|
|
158
172
|
}
|
|
159
|
-
function c(
|
|
160
|
-
return r(
|
|
173
|
+
function c(i, p) {
|
|
174
|
+
return r(i).reduce((E, C) => E && l(C, p), !0);
|
|
161
175
|
}
|
|
162
|
-
function s(
|
|
163
|
-
const y = Object.keys(
|
|
176
|
+
function s(i, p) {
|
|
177
|
+
const y = Object.keys(i), b = y.includes("allOf"), E = y.includes("anyOf"), C = b || E, d = (C ? i[C ? b ? "allOf" : "anyOf" : "allOf"] : [i]).map((u) => c(u, p));
|
|
164
178
|
return b ? !d.includes(!1) : d.includes(!0);
|
|
165
179
|
}
|
|
166
180
|
return { parseValueSchema: s };
|
|
167
181
|
}
|
|
168
|
-
const
|
|
182
|
+
const Z = {
|
|
169
183
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
170
184
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
171
185
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -205,24 +219,24 @@ const J = {
|
|
|
205
219
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
206
220
|
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
207
221
|
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
function
|
|
211
|
-
return Mt[t.title] = t, Et[t.title] = o,
|
|
212
|
-
const c =
|
|
222
|
+
}, Yo = {}, Xo = {};
|
|
223
|
+
Uo();
|
|
224
|
+
function Qe(e, t, n = /* @__PURE__ */ new Map(), o = (l, c, s, i) => c, a = {}, r = (l) => l) {
|
|
225
|
+
return Mt[t.title] = t, Et[t.title] = o, Yo[t.title] = a, Xo[t.title] = r, (l = {}) => {
|
|
226
|
+
const c = qo(l, t, n), s = Object.keys(e).reduce((i, p) => (i[p] = e[p].default, i), {});
|
|
213
227
|
return Object.assign(s, c);
|
|
214
228
|
};
|
|
215
229
|
}
|
|
216
230
|
function vt(e, t) {
|
|
217
231
|
return { customClass: t.class, customStyle: t.style };
|
|
218
232
|
}
|
|
219
|
-
const
|
|
233
|
+
const Qo = /* @__PURE__ */ new Map([
|
|
220
234
|
["appearance", vt]
|
|
221
235
|
]);
|
|
222
|
-
function
|
|
236
|
+
function Jo(e, t, n) {
|
|
223
237
|
return t;
|
|
224
238
|
}
|
|
225
|
-
const
|
|
239
|
+
const Zo = "tree-view", Ko = "A Farris Component", ea = "object", ta = {
|
|
226
240
|
basic: {
|
|
227
241
|
description: "Basic Infomation",
|
|
228
242
|
title: "基本信息",
|
|
@@ -244,12 +258,12 @@ const Qo = "tree-view", Jo = "A Farris Component", Zo = "object", ea = {
|
|
|
244
258
|
}
|
|
245
259
|
}
|
|
246
260
|
}
|
|
247
|
-
},
|
|
248
|
-
title:
|
|
249
|
-
description:
|
|
250
|
-
type:
|
|
251
|
-
categories:
|
|
252
|
-
},
|
|
261
|
+
}, na = {
|
|
262
|
+
title: Zo,
|
|
263
|
+
description: Ko,
|
|
264
|
+
type: ea,
|
|
265
|
+
categories: ta
|
|
266
|
+
}, oa = "https://json-schema.org/draft/2020-12/schema", aa = "https://farris-design.gitee.io/tree-view.schema.json", ra = "tree-view", la = "A Farris Component", ia = "object", sa = {
|
|
253
267
|
id: {
|
|
254
268
|
description: "The unique identifier for tree-view",
|
|
255
269
|
type: "string"
|
|
@@ -311,17 +325,17 @@ const Qo = "tree-view", Jo = "A Farris Component", Zo = "object", ea = {
|
|
|
311
325
|
type: "boolean",
|
|
312
326
|
default: !0
|
|
313
327
|
}
|
|
314
|
-
},
|
|
328
|
+
}, ua = [
|
|
315
329
|
"id",
|
|
316
330
|
"type"
|
|
317
|
-
],
|
|
318
|
-
$schema:
|
|
319
|
-
$id:
|
|
320
|
-
title:
|
|
321
|
-
description:
|
|
322
|
-
type:
|
|
323
|
-
properties:
|
|
324
|
-
required:
|
|
331
|
+
], ca = {
|
|
332
|
+
$schema: oa,
|
|
333
|
+
$id: aa,
|
|
334
|
+
title: ra,
|
|
335
|
+
description: la,
|
|
336
|
+
type: ia,
|
|
337
|
+
properties: sa,
|
|
338
|
+
required: ua
|
|
325
339
|
}, ht = {
|
|
326
340
|
/** 列集合 */
|
|
327
341
|
columns: {
|
|
@@ -408,7 +422,7 @@ const Qo = "tree-view", Jo = "A Farris Component", Zo = "object", ea = {
|
|
|
408
422
|
},
|
|
409
423
|
/** 行配置 */
|
|
410
424
|
rowOption: { type: Object }
|
|
411
|
-
}, Bt =
|
|
425
|
+
}, Bt = Qe(ht, ca, Qo, Jo, na);
|
|
412
426
|
var xe = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(xe || {}), Ie = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(Ie || {}), Xe = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(Xe || {}), ut = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(ut || {});
|
|
413
427
|
function mt(e, t) {
|
|
414
428
|
var E;
|
|
@@ -425,7 +439,7 @@ function mt(e, t) {
|
|
|
425
439
|
I
|
|
426
440
|
), I;
|
|
427
441
|
}
|
|
428
|
-
function
|
|
442
|
+
function l(C, I, T) {
|
|
429
443
|
const d = o * (T + 1), u = I[C.field].left - d + (I[C.field].width || 0), m = C.parent.height ? `${C.parent.height}px` : "";
|
|
430
444
|
return {
|
|
431
445
|
left: `${d}px`,
|
|
@@ -447,7 +461,7 @@ function mt(e, t) {
|
|
|
447
461
|
width: isNaN(Number(I[C.field].width)) ? "100%" : `${I[C.field].width}px`
|
|
448
462
|
};
|
|
449
463
|
}
|
|
450
|
-
function
|
|
464
|
+
function i(C, I, T) {
|
|
451
465
|
const w = (I.spanned || []).reduce((m, g) => m + (g.parent.height || 0), 0) + (C.height || 0);
|
|
452
466
|
return {
|
|
453
467
|
top: `${C.top}px`,
|
|
@@ -479,16 +493,16 @@ function mt(e, t) {
|
|
|
479
493
|
calculateCellPositionInRow: r,
|
|
480
494
|
cellKey: p,
|
|
481
495
|
cellPosition: s,
|
|
482
|
-
groupCellPosition:
|
|
496
|
+
groupCellPosition: l,
|
|
483
497
|
rowKey: y,
|
|
484
498
|
rowPosition: b,
|
|
485
|
-
rowSpanCellPosition:
|
|
499
|
+
rowSpanCellPosition: i,
|
|
486
500
|
summaryCellPosition: c
|
|
487
501
|
};
|
|
488
502
|
}
|
|
489
|
-
function
|
|
503
|
+
function da(e, t, n) {
|
|
490
504
|
const { hasChildrenField: o } = n, a = v("#9399a0"), r = v(28);
|
|
491
|
-
function
|
|
505
|
+
function l() {
|
|
492
506
|
return [].concat(
|
|
493
507
|
...t.value.filter((b) => b.raw.__fv_descendant_index__.length !== 0).map((b) => [...b.raw.__fv_descendant_index__.slice(-1)]).flat()
|
|
494
508
|
).sort((b, E) => Number(b) - Number(E));
|
|
@@ -496,7 +510,7 @@ function ca(e, t, n) {
|
|
|
496
510
|
function c(p) {
|
|
497
511
|
const y = new Array(t.value.length).fill(0);
|
|
498
512
|
if (e.showLines) {
|
|
499
|
-
const b =
|
|
513
|
+
const b = l();
|
|
500
514
|
t.value.forEach((E, C) => {
|
|
501
515
|
const I = b.includes(C), T = E.raw[o.value];
|
|
502
516
|
y[C] = `repeating-linear-gradient(90deg, ${a.value} 0 1px, transparent 0px 2px) ${T ? "-10px" : "0px"} ${r.value / 2}px/20px 1px no-repeat,repeating-linear-gradient(${a.value} 0 1px, transparent 0px 2px) 0px 0px/1px ${I ? "50%" : "100%"} no-repeat`;
|
|
@@ -509,7 +523,7 @@ function ca(e, t, n) {
|
|
|
509
523
|
b[C].childsLength = b[C].childWithLines.filter((I) => y[I].visible).length;
|
|
510
524
|
}), y;
|
|
511
525
|
}
|
|
512
|
-
function
|
|
526
|
+
function i(p) {
|
|
513
527
|
const E = p.raw.__fv_parent_index__ === void 0 || p.raw.__fv_parent_index__ === -1 ? 0 : 8, C = 0, I = p.raw[o.value], T = p.visible ? {
|
|
514
528
|
left: `${p.layer * 10 + p.layer * E + C}px`,
|
|
515
529
|
// paddingBottom: handlePaddingBottomReturnValue(visualTreeNode.index),
|
|
@@ -523,11 +537,11 @@ function ca(e, t, n) {
|
|
|
523
537
|
};
|
|
524
538
|
return I || (T.paddingLeft = "2rem"), T;
|
|
525
539
|
}
|
|
526
|
-
return { hierarchyCellContentStyle:
|
|
540
|
+
return { hierarchyCellContentStyle: i, handleCollapsedPaddingBottom: s };
|
|
527
541
|
}
|
|
528
|
-
function
|
|
542
|
+
function fa(e, t, n) {
|
|
529
543
|
const o = v(e.iconField);
|
|
530
|
-
function a(r,
|
|
544
|
+
function a(r, l) {
|
|
531
545
|
if (o.value)
|
|
532
546
|
return r.raw[e.iconField];
|
|
533
547
|
let c = "";
|
|
@@ -552,8 +566,8 @@ function gt() {
|
|
|
552
566
|
}
|
|
553
567
|
return { updateRowPosition: e, updateVisualInfomation: t };
|
|
554
568
|
}
|
|
555
|
-
function
|
|
556
|
-
const { dataView:
|
|
569
|
+
function pa(e, t, n, o, a, r) {
|
|
570
|
+
const { dataView: l, fold: c, hasRealChildren: s, unFold: i } = o, { collapseField: p, hasChildrenField: y } = a, { updateRowPosition: b } = gt();
|
|
557
571
|
function E(T, d) {
|
|
558
572
|
const w = d[T].layer;
|
|
559
573
|
let u = T + 1;
|
|
@@ -590,7 +604,7 @@ function fa(e, t, n, o, a, r) {
|
|
|
590
604
|
}
|
|
591
605
|
return { toggleTreeNode: I };
|
|
592
606
|
}
|
|
593
|
-
function
|
|
607
|
+
function va(e, t, n, o, a, r, l, c, s, i, p) {
|
|
594
608
|
const {
|
|
595
609
|
onClickCell: y
|
|
596
610
|
} = r, {
|
|
@@ -614,20 +628,20 @@ function pa(e, t, n, o, a, r, i, c, s, l, p) {
|
|
|
614
628
|
hasChildrenField: x,
|
|
615
629
|
shouldShowCheckBox: k,
|
|
616
630
|
shouldShowIcon: S
|
|
617
|
-
} =
|
|
631
|
+
} = l, {
|
|
618
632
|
toggleTreeNode: B
|
|
619
|
-
} =
|
|
633
|
+
} = pa(e, t, o, a, l), {
|
|
620
634
|
toggleSelectHierarchyItem: M
|
|
621
|
-
} =
|
|
635
|
+
} = i, {
|
|
622
636
|
cellKey: j,
|
|
623
637
|
cellPosition: D,
|
|
624
638
|
rowKey: N,
|
|
625
639
|
rowPosition: R
|
|
626
640
|
} = mt(e, n), {
|
|
627
641
|
hierarchyCellContentStyle: P
|
|
628
|
-
} =
|
|
642
|
+
} = da(e, o, l), {
|
|
629
643
|
treeNodeIconsClass: $
|
|
630
|
-
} =
|
|
644
|
+
} = fa(e, f, x);
|
|
631
645
|
function L(Y, X) {
|
|
632
646
|
const me = Y.raw[x.value];
|
|
633
647
|
return {
|
|
@@ -635,13 +649,13 @@ function pa(e, t, n, o, a, r, i, c, s, l, p) {
|
|
|
635
649
|
"fv-tree-node-toggle-minus": me && !Y.collapse
|
|
636
650
|
};
|
|
637
651
|
}
|
|
638
|
-
function
|
|
652
|
+
function K(Y, X) {
|
|
639
653
|
Y.stopPropagation(), B(X);
|
|
640
654
|
}
|
|
641
655
|
function le(Y, X) {
|
|
642
656
|
return F("div", {
|
|
643
657
|
class: L(Y),
|
|
644
|
-
onClick: (me) =>
|
|
658
|
+
onClick: (me) => K(me, Y)
|
|
645
659
|
}, null);
|
|
646
660
|
}
|
|
647
661
|
function ce(Y, X) {
|
|
@@ -707,7 +721,7 @@ function pa(e, t, n, o, a, r, i, c, s, l, p) {
|
|
|
707
721
|
renderDataRow: fe
|
|
708
722
|
};
|
|
709
723
|
}
|
|
710
|
-
function
|
|
724
|
+
function ha() {
|
|
711
725
|
function e(o, a) {
|
|
712
726
|
switch (o.command) {
|
|
713
727
|
case "edit":
|
|
@@ -736,7 +750,7 @@ function va() {
|
|
|
736
750
|
class: "ml-2",
|
|
737
751
|
type: r.type,
|
|
738
752
|
size: r.size || "small",
|
|
739
|
-
onClick: (
|
|
753
|
+
onClick: (l) => t(r, l, a)
|
|
740
754
|
}, {
|
|
741
755
|
default: () => [Le(" "), r.text, Le(" ")]
|
|
742
756
|
}))]);
|
|
@@ -746,17 +760,17 @@ function va() {
|
|
|
746
760
|
};
|
|
747
761
|
}
|
|
748
762
|
function Nt(e) {
|
|
749
|
-
const t = v(e.minHeight), n = v(e.minWidth), o = v(e.height), a = v(e.width), r = V(() => o.value <= 0 ? 0 : Math.max(o.value, t.value)),
|
|
763
|
+
const t = v(e.minHeight), n = v(e.minWidth), o = v(e.height), a = v(e.width), r = V(() => o.value <= 0 ? 0 : Math.max(o.value, t.value)), l = V(() => a.value <= 0 ? 0 : Math.max(a.value, n.value));
|
|
750
764
|
return ne([
|
|
751
765
|
() => e.height,
|
|
752
766
|
() => e.width,
|
|
753
767
|
() => e.minHeight,
|
|
754
768
|
() => e.minWidth
|
|
755
|
-
], ([s,
|
|
756
|
-
t.value = Number(p), n.value = Number(y), o.value = Number(s), a.value = Number(
|
|
769
|
+
], ([s, i, p, y]) => {
|
|
770
|
+
t.value = Number(p), n.value = Number(y), o.value = Number(s), a.value = Number(i);
|
|
757
771
|
}), { containerStyleObject: V(() => ({
|
|
758
772
|
height: r.value > 0 ? `${r.value}px` : e.fit ? "100%" : "",
|
|
759
|
-
width:
|
|
773
|
+
width: l.value > 0 ? `${l.value}px` : e.fit ? "100%" : ""
|
|
760
774
|
})) };
|
|
761
775
|
}
|
|
762
776
|
function Rt(e) {
|
|
@@ -796,7 +810,7 @@ function Rt(e) {
|
|
|
796
810
|
summaryColumns: []
|
|
797
811
|
};
|
|
798
812
|
}
|
|
799
|
-
const r = v(e.summary),
|
|
813
|
+
const r = v(e.summary), l = V(() => {
|
|
800
814
|
const u = r.value;
|
|
801
815
|
return (u == null ? void 0 : u.groupFields) || [];
|
|
802
816
|
});
|
|
@@ -812,10 +826,10 @@ function Rt(e) {
|
|
|
812
826
|
function s(u) {
|
|
813
827
|
a();
|
|
814
828
|
const m = /* @__PURE__ */ new Map();
|
|
815
|
-
return
|
|
829
|
+
return l.value && l.value.reduce((g, h) => (g.set(h, !0), g), m), u.reduce((g, h) => (h.visible = h.visible !== !1, h.fixed === "left" ? (o.value.leftColumns.push(h), o.value.leftColumnsMap.set(h.field, h), o.value.leftColumnsWidth += h.actualWidth) : h.fixed === "right" ? (o.value.rightColumns.push(h), o.value.rightColumnsMap.set(h.field, h), o.value.rightColumnsWidth += h.actualWidth) : (o.value.primaryColumns.push(h), o.value.primaryColumnsMap.set(h.field, h), o.value.primaryColumnsWidth += h.actualWidth), m.has(h.field) && o.value.summaryColumns.push(h), g), o), c(), o;
|
|
816
830
|
}
|
|
817
831
|
s(e.columns);
|
|
818
|
-
const
|
|
832
|
+
const i = V(() => o.value.leftColumns.length > 0), p = V(() => o.value.rightColumns.length > 0);
|
|
819
833
|
function y(u, m) {
|
|
820
834
|
return m.sortable && m.sort && m.sort !== "none" && u.push(m), u;
|
|
821
835
|
}
|
|
@@ -861,7 +875,7 @@ function Rt(e) {
|
|
|
861
875
|
applySortableColumns: d,
|
|
862
876
|
collectionSortableColumns: T,
|
|
863
877
|
columnContext: o,
|
|
864
|
-
hasLeftFixedColumn:
|
|
878
|
+
hasLeftFixedColumn: i,
|
|
865
879
|
hasRightFixedColumn: p,
|
|
866
880
|
updateColumnRenderContext: s,
|
|
867
881
|
updateColumnSettingIcon: c
|
|
@@ -889,7 +903,7 @@ const Vt = {
|
|
|
889
903
|
*/
|
|
890
904
|
isControlInline: { type: Boolean, default: !0 }
|
|
891
905
|
};
|
|
892
|
-
class
|
|
906
|
+
class ma {
|
|
893
907
|
constructor(t = { value: [] }) {
|
|
894
908
|
z(this, "editorType", "check-box");
|
|
895
909
|
z(this, "value");
|
|
@@ -909,7 +923,7 @@ class ha {
|
|
|
909
923
|
return this.value.length === 0;
|
|
910
924
|
}
|
|
911
925
|
}
|
|
912
|
-
class
|
|
926
|
+
class ga {
|
|
913
927
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
914
928
|
z(this, "editorType", "combo-lookup");
|
|
915
929
|
z(this, "textValue");
|
|
@@ -929,11 +943,11 @@ class ma {
|
|
|
929
943
|
return t[n[0]];
|
|
930
944
|
}
|
|
931
945
|
getTextValue(t) {
|
|
932
|
-
const n = t.split("."), o = this.value.split(",").map((a) => this.getPropValue(a,
|
|
946
|
+
const n = t.split("."), o = this.value.split(",").map((a) => this.getPropValue(a, Ne(n)));
|
|
933
947
|
return o && o.length ? o.join(",") : "";
|
|
934
948
|
}
|
|
935
949
|
getValue() {
|
|
936
|
-
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o,
|
|
950
|
+
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, Ne(t)));
|
|
937
951
|
return n && n.length ? n.join(",") : "";
|
|
938
952
|
}
|
|
939
953
|
setValue(t) {
|
|
@@ -943,7 +957,7 @@ class ma {
|
|
|
943
957
|
return !this.valueField;
|
|
944
958
|
}
|
|
945
959
|
}
|
|
946
|
-
class
|
|
960
|
+
class ya {
|
|
947
961
|
constructor(t = { value: "" }) {
|
|
948
962
|
z(this, "editorType", "date-picker");
|
|
949
963
|
z(this, "value");
|
|
@@ -984,7 +998,7 @@ class xt {
|
|
|
984
998
|
return !this.begin || !this.end;
|
|
985
999
|
}
|
|
986
1000
|
}
|
|
987
|
-
class
|
|
1001
|
+
class ba {
|
|
988
1002
|
constructor(t = { value: "" }) {
|
|
989
1003
|
z(this, "editorType", "datetime-picker");
|
|
990
1004
|
z(this, "value");
|
|
@@ -1004,7 +1018,7 @@ class ya {
|
|
|
1004
1018
|
return !this.value;
|
|
1005
1019
|
}
|
|
1006
1020
|
}
|
|
1007
|
-
class
|
|
1021
|
+
class wa {
|
|
1008
1022
|
// 旧结构无,新结构为选中的value值,多选是以,分割的字符串
|
|
1009
1023
|
constructor(t = { value: "", dispalyText: "" }) {
|
|
1010
1024
|
z(this, "editorType", "combo-list");
|
|
@@ -1027,7 +1041,7 @@ class ba {
|
|
|
1027
1041
|
return !this.displayText && !this.value;
|
|
1028
1042
|
}
|
|
1029
1043
|
}
|
|
1030
|
-
class
|
|
1044
|
+
class _a {
|
|
1031
1045
|
constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
|
|
1032
1046
|
z(this, "editorType", "input-group");
|
|
1033
1047
|
// 通过弹窗返回的若干个值对象构成的数组
|
|
@@ -1052,11 +1066,11 @@ class wa {
|
|
|
1052
1066
|
return t[n[0]];
|
|
1053
1067
|
}
|
|
1054
1068
|
getTextValue(t) {
|
|
1055
|
-
const n = t.split("."), o = this.value.map((a) => this.getPropValue(a,
|
|
1069
|
+
const n = t.split("."), o = this.value.map((a) => this.getPropValue(a, Ne(n)));
|
|
1056
1070
|
return o && o.length ? o.join(",") : "";
|
|
1057
1071
|
}
|
|
1058
1072
|
getValue() {
|
|
1059
|
-
const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o,
|
|
1073
|
+
const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, Ne(t)));
|
|
1060
1074
|
return n && n.length ? n.join(",") : "";
|
|
1061
1075
|
}
|
|
1062
1076
|
setValue(t) {
|
|
@@ -1066,7 +1080,7 @@ class wa {
|
|
|
1066
1080
|
return !this.displayText && !this.value.length;
|
|
1067
1081
|
}
|
|
1068
1082
|
}
|
|
1069
|
-
class
|
|
1083
|
+
class Ca {
|
|
1070
1084
|
constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
|
|
1071
1085
|
z(this, "editorType", "lookup");
|
|
1072
1086
|
z(this, "textValue");
|
|
@@ -1102,7 +1116,7 @@ class _a {
|
|
|
1102
1116
|
return !this.value.length;
|
|
1103
1117
|
}
|
|
1104
1118
|
}
|
|
1105
|
-
class
|
|
1119
|
+
class xa {
|
|
1106
1120
|
constructor(t = { value: "" }) {
|
|
1107
1121
|
z(this, "editorType", "month-picker");
|
|
1108
1122
|
z(this, "value");
|
|
@@ -1122,7 +1136,7 @@ class Ca {
|
|
|
1122
1136
|
return !this.value;
|
|
1123
1137
|
}
|
|
1124
1138
|
}
|
|
1125
|
-
class
|
|
1139
|
+
class Sa {
|
|
1126
1140
|
constructor(t = { begin: "", end: "" }) {
|
|
1127
1141
|
z(this, "editorType", "month-range");
|
|
1128
1142
|
z(this, "begin");
|
|
@@ -1143,7 +1157,7 @@ class xa {
|
|
|
1143
1157
|
return !this.begin || !this.end;
|
|
1144
1158
|
}
|
|
1145
1159
|
}
|
|
1146
|
-
class
|
|
1160
|
+
class Ta {
|
|
1147
1161
|
constructor(t = { begin: null, end: null }) {
|
|
1148
1162
|
z(this, "editorType", "number-range");
|
|
1149
1163
|
z(this, "begin");
|
|
@@ -1167,7 +1181,7 @@ class Sa {
|
|
|
1167
1181
|
return this.begin == null && this.end == null;
|
|
1168
1182
|
}
|
|
1169
1183
|
}
|
|
1170
|
-
class
|
|
1184
|
+
class ka {
|
|
1171
1185
|
constructor(t = { value: "" }) {
|
|
1172
1186
|
z(this, "editorType", "number-spinner");
|
|
1173
1187
|
z(this, "value");
|
|
@@ -1187,7 +1201,7 @@ class Ta {
|
|
|
1187
1201
|
return this.value == null || isNaN(this.value);
|
|
1188
1202
|
}
|
|
1189
1203
|
}
|
|
1190
|
-
class
|
|
1204
|
+
class Oa {
|
|
1191
1205
|
constructor(t = { value: null }) {
|
|
1192
1206
|
z(this, "editorType", "radio-group");
|
|
1193
1207
|
z(this, "value");
|
|
@@ -1231,33 +1245,33 @@ function $t() {
|
|
|
1231
1245
|
function e(t, n) {
|
|
1232
1246
|
switch (t) {
|
|
1233
1247
|
case "check-box":
|
|
1234
|
-
return new
|
|
1248
|
+
return new ma(n);
|
|
1235
1249
|
case "combo-list":
|
|
1236
|
-
return new
|
|
1250
|
+
return new wa(n);
|
|
1237
1251
|
case "combo-lookup":
|
|
1238
|
-
return new
|
|
1252
|
+
return new ga(n);
|
|
1239
1253
|
case "input-group":
|
|
1240
|
-
return new
|
|
1254
|
+
return new _a(n);
|
|
1241
1255
|
case "date-picker":
|
|
1242
|
-
return new
|
|
1256
|
+
return new ya(n);
|
|
1243
1257
|
case "date-range":
|
|
1244
1258
|
return new xt(n);
|
|
1245
1259
|
case "datetime-picker":
|
|
1246
|
-
return new
|
|
1260
|
+
return new ba(n);
|
|
1247
1261
|
case "datetime-range":
|
|
1248
1262
|
return new xt(n);
|
|
1249
1263
|
case "lookup":
|
|
1250
|
-
return new _a(n);
|
|
1251
|
-
case "month-picker":
|
|
1252
1264
|
return new Ca(n);
|
|
1253
|
-
case "month-
|
|
1265
|
+
case "month-picker":
|
|
1254
1266
|
return new xa(n);
|
|
1255
|
-
case "
|
|
1267
|
+
case "month-range":
|
|
1256
1268
|
return new Sa(n);
|
|
1257
|
-
case "number-
|
|
1269
|
+
case "number-range":
|
|
1258
1270
|
return new Ta(n);
|
|
1259
|
-
case "
|
|
1271
|
+
case "number-spinner":
|
|
1260
1272
|
return new ka(n);
|
|
1273
|
+
case "radio-group":
|
|
1274
|
+
return new Oa(n);
|
|
1261
1275
|
default:
|
|
1262
1276
|
return new jt(n);
|
|
1263
1277
|
}
|
|
@@ -1266,7 +1280,7 @@ function $t() {
|
|
|
1266
1280
|
}
|
|
1267
1281
|
function Pt(e, t) {
|
|
1268
1282
|
const n = v(e.fields), o = v([]), a = /* @__PURE__ */ new Map(), { createConditionValue: r } = $t();
|
|
1269
|
-
function
|
|
1283
|
+
function l(p) {
|
|
1270
1284
|
switch (p.editor ? p.editor.type : "input-group") {
|
|
1271
1285
|
case "date-range":
|
|
1272
1286
|
p.editor.type = "date-picker";
|
|
@@ -1281,12 +1295,12 @@ function Pt(e, t) {
|
|
|
1281
1295
|
return p.editor;
|
|
1282
1296
|
}
|
|
1283
1297
|
function c(p) {
|
|
1284
|
-
return p.map((b) => Object.assign({}, b)).map((b) => (b.editor =
|
|
1298
|
+
return p.map((b) => Object.assign({}, b)).map((b) => (b.editor = l(b), b));
|
|
1285
1299
|
}
|
|
1286
1300
|
function s(p = !0) {
|
|
1287
|
-
n.value.reduce((y, b) => (p || (b.editor =
|
|
1301
|
+
n.value.reduce((y, b) => (p || (b.editor = l(b)), y.set(b.labelCode, b), y), a);
|
|
1288
1302
|
}
|
|
1289
|
-
function
|
|
1303
|
+
function i(p) {
|
|
1290
1304
|
return p.forEach((y) => {
|
|
1291
1305
|
if (y) {
|
|
1292
1306
|
const b = a.get(y.fieldCode);
|
|
@@ -1294,11 +1308,11 @@ function Pt(e, t) {
|
|
|
1294
1308
|
}
|
|
1295
1309
|
}), p;
|
|
1296
1310
|
}
|
|
1297
|
-
return { convertToSingleControl: c, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: s, initialConditionValue:
|
|
1311
|
+
return { convertToSingleControl: c, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: s, initialConditionValue: i };
|
|
1298
1312
|
}
|
|
1299
|
-
function
|
|
1313
|
+
function Fa(e, t, n) {
|
|
1300
1314
|
const o = v(null), a = v(n), r = v(0);
|
|
1301
|
-
function
|
|
1315
|
+
function l(p, y) {
|
|
1302
1316
|
let b = null;
|
|
1303
1317
|
return function() {
|
|
1304
1318
|
const E = arguments;
|
|
@@ -1308,7 +1322,7 @@ function Oa(e, t, n) {
|
|
|
1308
1322
|
};
|
|
1309
1323
|
}
|
|
1310
1324
|
function c() {
|
|
1311
|
-
a.value && (o.value = new ResizeObserver(
|
|
1325
|
+
a.value && (o.value = new ResizeObserver(l((p) => {
|
|
1312
1326
|
const y = p[0];
|
|
1313
1327
|
r.value = y.contentRect.width;
|
|
1314
1328
|
})), o.value.observe(a.value));
|
|
@@ -1317,11 +1331,11 @@ function Oa(e, t, n) {
|
|
|
1317
1331
|
let b = "col-12";
|
|
1318
1332
|
return p > 250 * 6 ? b = "col-2" : p > 250 * 4 ? b = "col-3" : p > 250 * 3 ? b = "col-4" : p > 250 * 2 && (b = "col-6"), b;
|
|
1319
1333
|
}
|
|
1320
|
-
const
|
|
1334
|
+
const i = V(() => s(r.value));
|
|
1321
1335
|
return ne([n], ([p]) => {
|
|
1322
1336
|
a.value = p, c();
|
|
1323
1337
|
}), {
|
|
1324
|
-
conditionClass:
|
|
1338
|
+
conditionClass: i,
|
|
1325
1339
|
resizeObserver: o
|
|
1326
1340
|
};
|
|
1327
1341
|
}
|
|
@@ -1330,15 +1344,15 @@ const St = /* @__PURE__ */ Fe({
|
|
|
1330
1344
|
props: Vt,
|
|
1331
1345
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
1332
1346
|
setup(e, t) {
|
|
1333
|
-
const n = v(), o = v(e.key), a = v(e.isControlInline), r = v(e.conditions),
|
|
1347
|
+
const n = v(), o = v(e.key), a = v(e.isControlInline), r = v(e.conditions), l = Pt(e), {
|
|
1334
1348
|
initialConditionValue: c,
|
|
1335
1349
|
fieldMap: s,
|
|
1336
|
-
loadFieldConfigs:
|
|
1337
|
-
} =
|
|
1350
|
+
loadFieldConfigs: i
|
|
1351
|
+
} = l, p = Fa(e, t, n), {
|
|
1338
1352
|
conditionClass: y,
|
|
1339
1353
|
resizeObserver: b
|
|
1340
1354
|
} = p;
|
|
1341
|
-
|
|
1355
|
+
i(!0), c(r.value), hn(() => {
|
|
1342
1356
|
var d;
|
|
1343
1357
|
(d = b.value) == null || d.unobserve(n.value);
|
|
1344
1358
|
}), ne(() => e.conditions, () => {
|
|
@@ -1376,10 +1390,10 @@ const St = /* @__PURE__ */ Fe({
|
|
|
1376
1390
|
}
|
|
1377
1391
|
}), yt = /* @__PURE__ */ new Map([
|
|
1378
1392
|
["appearance", vt]
|
|
1379
|
-
]),
|
|
1393
|
+
]), Ma = /* @__PURE__ */ new Map([]);
|
|
1380
1394
|
var ct = /* @__PURE__ */ ((e) => (e.String = "String", e.DateTime = "DateTime", e.Date = "Date", e.Enum = "Enum", e.Boolean = "Boolean", e.Number = "Number", e.Text = "Text", e.BigNumber = "BigNumber", e))(ct || {});
|
|
1381
|
-
const
|
|
1382
|
-
class
|
|
1395
|
+
const Ea = "root-viewmodel";
|
|
1396
|
+
class Ia {
|
|
1383
1397
|
constructor(t, n) {
|
|
1384
1398
|
z(this, "formSchemaUtils");
|
|
1385
1399
|
z(this, "controlCreatorUtils");
|
|
@@ -1436,11 +1450,11 @@ class Ea {
|
|
|
1436
1450
|
}), n.contents = [o];
|
|
1437
1451
|
const { selectedFields: r } = t;
|
|
1438
1452
|
r == null || r.forEach((c) => {
|
|
1439
|
-
const s =
|
|
1453
|
+
const s = Ne(c), i = this.resolveControlClassByFormColumns(t), p = this.controlCreatorUtils.setFormFieldProperty(s, "", i);
|
|
1440
1454
|
p && a.push(p);
|
|
1441
1455
|
});
|
|
1442
|
-
const { templateId:
|
|
1443
|
-
return
|
|
1456
|
+
const { templateId: l } = this.formSchemaUtils.getFormSchema().module;
|
|
1457
|
+
return l === "double-list-in-tab-template" && (n.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", n.fill = !0), [n];
|
|
1444
1458
|
}
|
|
1445
1459
|
resolveControlClassByFormColumns(t) {
|
|
1446
1460
|
let n = "";
|
|
@@ -1473,7 +1487,7 @@ class Ea {
|
|
|
1473
1487
|
code: `${t.componentId}-component-viewmodel`,
|
|
1474
1488
|
name: t.componentName,
|
|
1475
1489
|
bindTo: t.bindTo,
|
|
1476
|
-
parent:
|
|
1490
|
+
parent: Ea,
|
|
1477
1491
|
fields: this.assembleViewModelFields(t),
|
|
1478
1492
|
commands: [],
|
|
1479
1493
|
states: [],
|
|
@@ -1487,8 +1501,8 @@ class Ea {
|
|
|
1487
1501
|
const n = [], { selectedFields: o } = t;
|
|
1488
1502
|
return o == null || o.forEach((a) => {
|
|
1489
1503
|
let r = "blur";
|
|
1490
|
-
const
|
|
1491
|
-
(
|
|
1504
|
+
const l = a.type.name;
|
|
1505
|
+
(l === ct.Enum || l === ct.Boolean) && (r = "change"), n.push({
|
|
1492
1506
|
type: "Form",
|
|
1493
1507
|
id: a.id,
|
|
1494
1508
|
fieldName: a.bindingField,
|
|
@@ -1500,27 +1514,27 @@ class Ea {
|
|
|
1500
1514
|
}), n;
|
|
1501
1515
|
}
|
|
1502
1516
|
}
|
|
1503
|
-
function
|
|
1504
|
-
var r,
|
|
1517
|
+
function Ba(e, t, n, o) {
|
|
1518
|
+
var r, l, c, s, i;
|
|
1505
1519
|
const a = n.parentComponentInstance;
|
|
1506
1520
|
if (a && o) {
|
|
1507
1521
|
const p = (r = a.schema) == null ? void 0 : r.type, b = {
|
|
1508
1522
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
1509
|
-
componentName: ((c = (
|
|
1523
|
+
componentName: ((c = (l = n.bindingSourceContext) == null ? void 0 : l.bindingEntity) == null ? void 0 : c.name) || "标题",
|
|
1510
1524
|
componentType: "form",
|
|
1511
1525
|
formColumns: p === "splitter-pane" ? 1 : 4,
|
|
1512
1526
|
parentContainerId: a.schema.id,
|
|
1513
1527
|
bindTo: ((s = n.bindingSourceContext) == null ? void 0 : s.bindTo) || "/",
|
|
1514
|
-
selectedFields: (
|
|
1528
|
+
selectedFields: (i = n.bindingSourceContext) == null ? void 0 : i.bindingEntityFields
|
|
1515
1529
|
};
|
|
1516
|
-
return new
|
|
1530
|
+
return new Ia(e, o).createComponent(b);
|
|
1517
1531
|
} else
|
|
1518
1532
|
return t;
|
|
1519
1533
|
}
|
|
1520
|
-
function
|
|
1534
|
+
function Na(e, t, n) {
|
|
1521
1535
|
return t;
|
|
1522
1536
|
}
|
|
1523
|
-
const
|
|
1537
|
+
const Ra = "https://json-schema.org/draft/2020-12/schema", Va = "https://farris-design.gitee.io/response-form.schema.json", ja = "response-form", $a = "A Farris Data Collection Component", Pa = "object", Ha = {
|
|
1524
1538
|
id: {
|
|
1525
1539
|
description: "The unique identifier for a form group",
|
|
1526
1540
|
type: "string"
|
|
@@ -1548,23 +1562,24 @@ const Na = "https://json-schema.org/draft/2020-12/schema", Ra = "https://farris-
|
|
|
1548
1562
|
type: "array",
|
|
1549
1563
|
default: []
|
|
1550
1564
|
}
|
|
1551
|
-
},
|
|
1565
|
+
}, Da = [
|
|
1552
1566
|
"id",
|
|
1553
|
-
"type"
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
$
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1567
|
+
"type",
|
|
1568
|
+
"contents"
|
|
1569
|
+
], La = {
|
|
1570
|
+
$schema: Ra,
|
|
1571
|
+
$id: Va,
|
|
1572
|
+
title: ja,
|
|
1573
|
+
description: $a,
|
|
1574
|
+
type: Pa,
|
|
1575
|
+
properties: Ha,
|
|
1576
|
+
required: Da
|
|
1577
|
+
}, Aa = {
|
|
1563
1578
|
customClass: { type: String, default: "" },
|
|
1564
1579
|
customStyle: { type: String, defaut: "" }
|
|
1565
1580
|
};
|
|
1566
|
-
|
|
1567
|
-
const
|
|
1581
|
+
Qe(Aa, La, yt, Ba);
|
|
1582
|
+
const za = "https://json-schema.org/draft/2020-12/schema", Wa = "https://farris-design.gitee.io/form-group.schema.json", Ga = "form-group", qa = "A Farris Input Component", Ua = "object", Ya = {
|
|
1568
1583
|
id: {
|
|
1569
1584
|
description: "The unique identifier for a form group",
|
|
1570
1585
|
type: "string"
|
|
@@ -1594,7 +1609,8 @@ const Aa = "https://json-schema.org/draft/2020-12/schema", za = "https://farris-
|
|
|
1594
1609
|
},
|
|
1595
1610
|
editor: {
|
|
1596
1611
|
description: "",
|
|
1597
|
-
type: "obejct"
|
|
1612
|
+
type: "obejct",
|
|
1613
|
+
default: {}
|
|
1598
1614
|
},
|
|
1599
1615
|
label: {
|
|
1600
1616
|
description: "",
|
|
@@ -1610,17 +1626,18 @@ const Aa = "https://json-schema.org/draft/2020-12/schema", za = "https://farris-
|
|
|
1610
1626
|
type: "object",
|
|
1611
1627
|
default: {}
|
|
1612
1628
|
}
|
|
1613
|
-
},
|
|
1629
|
+
}, Xa = [
|
|
1614
1630
|
"id",
|
|
1615
|
-
"type"
|
|
1631
|
+
"type",
|
|
1632
|
+
"editor"
|
|
1616
1633
|
], Ht = {
|
|
1617
|
-
$schema:
|
|
1618
|
-
$id:
|
|
1619
|
-
title:
|
|
1620
|
-
description:
|
|
1621
|
-
type:
|
|
1622
|
-
properties:
|
|
1623
|
-
required:
|
|
1634
|
+
$schema: za,
|
|
1635
|
+
$id: Wa,
|
|
1636
|
+
title: Ga,
|
|
1637
|
+
description: qa,
|
|
1638
|
+
type: Ua,
|
|
1639
|
+
properties: Ya,
|
|
1640
|
+
required: Xa
|
|
1624
1641
|
}, Dt = {
|
|
1625
1642
|
id: { type: String, default: "" },
|
|
1626
1643
|
customClass: { type: String, default: "" },
|
|
@@ -1636,16 +1653,16 @@ const Aa = "https://json-schema.org/draft/2020-12/schema", za = "https://farris-
|
|
|
1636
1653
|
showLabel: { type: Boolean, default: !0 },
|
|
1637
1654
|
type: { type: String, default: "input-group" }
|
|
1638
1655
|
};
|
|
1639
|
-
|
|
1656
|
+
Qe(
|
|
1640
1657
|
Dt,
|
|
1641
1658
|
Ht,
|
|
1642
1659
|
yt,
|
|
1643
1660
|
void 0
|
|
1644
1661
|
);
|
|
1645
|
-
function
|
|
1662
|
+
function Qa(e, t, n) {
|
|
1646
1663
|
var m;
|
|
1647
1664
|
const o = "", a = "", r = v();
|
|
1648
|
-
function
|
|
1665
|
+
function l() {
|
|
1649
1666
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
1650
1667
|
}
|
|
1651
1668
|
function c() {
|
|
@@ -1654,7 +1671,7 @@ function Xa(e, t, n) {
|
|
|
1654
1671
|
function s() {
|
|
1655
1672
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
1656
1673
|
}
|
|
1657
|
-
function
|
|
1674
|
+
function i() {
|
|
1658
1675
|
return (t == null ? void 0 : t.schema.componentType) === "frame";
|
|
1659
1676
|
}
|
|
1660
1677
|
function p(g) {
|
|
@@ -1699,10 +1716,10 @@ function Xa(e, t, n) {
|
|
|
1699
1716
|
});
|
|
1700
1717
|
}
|
|
1701
1718
|
return r.value = {
|
|
1702
|
-
canMove:
|
|
1719
|
+
canMove: l(),
|
|
1703
1720
|
canSelectParent: c(),
|
|
1704
1721
|
canDelete: s(),
|
|
1705
|
-
canNested: !
|
|
1722
|
+
canNested: !i(),
|
|
1706
1723
|
contents: t == null ? void 0 : t.schema.contents,
|
|
1707
1724
|
elementRef: e,
|
|
1708
1725
|
parent: (m = t == null ? void 0 : t.parent) == null ? void 0 : m.componentInstance,
|
|
@@ -1723,21 +1740,21 @@ function Xa(e, t, n) {
|
|
|
1723
1740
|
onRemoveComponent: u
|
|
1724
1741
|
}, r;
|
|
1725
1742
|
}
|
|
1726
|
-
const
|
|
1743
|
+
const Ja = {
|
|
1727
1744
|
id: { type: String },
|
|
1728
1745
|
required: { type: Boolean, default: !1 },
|
|
1729
1746
|
text: { type: String, default: "" },
|
|
1730
1747
|
title: { type: String }
|
|
1731
|
-
},
|
|
1748
|
+
}, Za = /* @__PURE__ */ Fe({
|
|
1732
1749
|
name: "FDynamicFormLabel",
|
|
1733
|
-
props:
|
|
1750
|
+
props: Ja,
|
|
1734
1751
|
emits: [],
|
|
1735
1752
|
setup(e, t) {
|
|
1736
1753
|
const n = v(e.title || e.text), o = v(e.required), a = v(e.text);
|
|
1737
1754
|
return ne(() => e.text, () => {
|
|
1738
1755
|
a.value = e.text;
|
|
1739
|
-
}), ne(() => e.required, (r,
|
|
1740
|
-
r !==
|
|
1756
|
+
}), ne(() => e.required, (r, l) => {
|
|
1757
|
+
r !== l && (o.value = r);
|
|
1741
1758
|
}), () => a.value && F("label", {
|
|
1742
1759
|
class: "col-form-label",
|
|
1743
1760
|
title: n.value
|
|
@@ -1747,13 +1764,13 @@ const Ka = {
|
|
|
1747
1764
|
class: "farris-label-text"
|
|
1748
1765
|
}, [a.value])]);
|
|
1749
1766
|
}
|
|
1750
|
-
}),
|
|
1767
|
+
}), Ka = /* @__PURE__ */ new Map([
|
|
1751
1768
|
["appearance", vt]
|
|
1752
1769
|
]);
|
|
1753
|
-
function
|
|
1770
|
+
function er(e, t, n) {
|
|
1754
1771
|
return t;
|
|
1755
1772
|
}
|
|
1756
|
-
const
|
|
1773
|
+
const tr = "https://json-schema.org/draft/2020-12/schema", nr = "https://farris-design.gitee.io/input-group.schema.json", or = "input-group", ar = "A Farris Input Component", rr = "object", lr = {
|
|
1757
1774
|
id: {
|
|
1758
1775
|
description: "The unique identifier for a Input Group",
|
|
1759
1776
|
type: "string"
|
|
@@ -1950,23 +1967,22 @@ const er = "https://json-schema.org/draft/2020-12/schema", tr = "https://farris-
|
|
|
1950
1967
|
type: "string",
|
|
1951
1968
|
default: ""
|
|
1952
1969
|
}
|
|
1953
|
-
},
|
|
1954
|
-
"id",
|
|
1970
|
+
}, ir = [
|
|
1955
1971
|
"type"
|
|
1956
|
-
],
|
|
1972
|
+
], sr = [
|
|
1957
1973
|
"id",
|
|
1958
1974
|
"appearance",
|
|
1959
1975
|
"binding",
|
|
1960
1976
|
"visible"
|
|
1961
|
-
],
|
|
1962
|
-
$schema:
|
|
1963
|
-
$id:
|
|
1964
|
-
title:
|
|
1965
|
-
description:
|
|
1966
|
-
type:
|
|
1967
|
-
properties:
|
|
1968
|
-
required:
|
|
1969
|
-
ignore:
|
|
1977
|
+
], ur = {
|
|
1978
|
+
$schema: tr,
|
|
1979
|
+
$id: nr,
|
|
1980
|
+
title: or,
|
|
1981
|
+
description: ar,
|
|
1982
|
+
type: rr,
|
|
1983
|
+
properties: lr,
|
|
1984
|
+
required: ir,
|
|
1985
|
+
ignore: sr
|
|
1970
1986
|
}, Lt = {
|
|
1971
1987
|
id: { Type: String, default: "" },
|
|
1972
1988
|
/** 是否自动完成 */
|
|
@@ -2035,35 +2051,35 @@ const er = "https://json-schema.org/draft/2020-12/schema", tr = "https://farris-
|
|
|
2035
2051
|
*/
|
|
2036
2052
|
updateOn: { type: String, default: "blur" }
|
|
2037
2053
|
};
|
|
2038
|
-
|
|
2039
|
-
function
|
|
2054
|
+
Qe(Lt, ur, Ka, er);
|
|
2055
|
+
function cr(e, t) {
|
|
2040
2056
|
const n = v(e.groupText), o = V(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = V(() => e.enableClear || !!e.groupText);
|
|
2041
2057
|
return { appendedButtonClass: V(() => ({
|
|
2042
2058
|
"input-group-append": !0,
|
|
2043
2059
|
"append-force-show": o.value
|
|
2044
2060
|
})), appendedContent: n, shouldShowAppendedButton: a };
|
|
2045
2061
|
}
|
|
2046
|
-
function
|
|
2047
|
-
const { appendedContent: a } = o, r = v(e.enableViewPassword),
|
|
2062
|
+
function dr(e, t, n, o) {
|
|
2063
|
+
const { appendedContent: a } = o, r = v(e.enableViewPassword), l = V(() => e.type === "password"), c = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', s = '<span class="f-icon f-icon-eye"></span>', i = v(!1);
|
|
2048
2064
|
ne(() => [e.readonly, e.disabled], ([b, E]) => {
|
|
2049
|
-
|
|
2065
|
+
l.value && (n.value = b || E ? "password" : n.value, a.value = b || E ? s : a.value);
|
|
2050
2066
|
});
|
|
2051
2067
|
function p() {
|
|
2052
|
-
return
|
|
2068
|
+
return i.value = !i.value, n.value = i.value ? "text" : "password", a.value = i.value ? c : s, !1;
|
|
2053
2069
|
}
|
|
2054
2070
|
function y() {
|
|
2055
|
-
n.value =
|
|
2071
|
+
n.value = l.value ? "password" : "text", a.value = l.value ? r.value ? s : "" : a.value;
|
|
2056
2072
|
}
|
|
2057
|
-
return y(), { isPassword:
|
|
2073
|
+
return y(), { isPassword: l, onClickAppendedButton: p };
|
|
2058
2074
|
}
|
|
2059
|
-
function
|
|
2075
|
+
function fr(e, t, n) {
|
|
2060
2076
|
const o = v(), {
|
|
2061
2077
|
onBlurTextBox: a,
|
|
2062
2078
|
onFocusTextBox: r,
|
|
2063
|
-
onInput:
|
|
2079
|
+
onInput: l,
|
|
2064
2080
|
onKeyDown: c,
|
|
2065
2081
|
textBoxValue: s
|
|
2066
|
-
} = n,
|
|
2082
|
+
} = n, i = V(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), p = V(() => ({
|
|
2067
2083
|
"form-control": !0,
|
|
2068
2084
|
"f-utils-fill": !0
|
|
2069
2085
|
})), y = V(() => ({
|
|
@@ -2088,20 +2104,20 @@ function dr(e, t, n) {
|
|
|
2088
2104
|
value: s.value,
|
|
2089
2105
|
disabled: e.disabled,
|
|
2090
2106
|
readonly: e.readonly || !e.editable,
|
|
2091
|
-
placeholder:
|
|
2107
|
+
placeholder: i.value,
|
|
2092
2108
|
onBlur: a,
|
|
2093
2109
|
onChange: b,
|
|
2094
2110
|
onFocus: C,
|
|
2095
|
-
onInput:
|
|
2111
|
+
onInput: l,
|
|
2096
2112
|
onKeydown: c
|
|
2097
2113
|
}, null);
|
|
2098
2114
|
}
|
|
2099
|
-
function
|
|
2115
|
+
function pr(e, t, n) {
|
|
2100
2116
|
const {
|
|
2101
2117
|
canDownward: o,
|
|
2102
2118
|
canUpward: a,
|
|
2103
2119
|
onClickDownButton: r,
|
|
2104
|
-
onClickUpButton:
|
|
2120
|
+
onClickUpButton: l
|
|
2105
2121
|
} = n, c = V(() => ({
|
|
2106
2122
|
"input-group-append": !0,
|
|
2107
2123
|
"btn-group": !0,
|
|
@@ -2110,7 +2126,7 @@ function fr(e, t, n) {
|
|
|
2110
2126
|
btn: !0,
|
|
2111
2127
|
"btn-secondary": !0,
|
|
2112
2128
|
"btn-number-flag": !0
|
|
2113
|
-
})),
|
|
2129
|
+
})), i = V(() => ({
|
|
2114
2130
|
cursor: a() ? "pointer" : "not-allowed",
|
|
2115
2131
|
"margin-left": 0
|
|
2116
2132
|
})), p = V(() => ({
|
|
@@ -2122,8 +2138,8 @@ function fr(e, t, n) {
|
|
|
2122
2138
|
}, [F("button", {
|
|
2123
2139
|
title: "upButton",
|
|
2124
2140
|
class: s.value,
|
|
2125
|
-
style:
|
|
2126
|
-
onClick:
|
|
2141
|
+
style: i.value,
|
|
2142
|
+
onClick: l,
|
|
2127
2143
|
disabled: !a()
|
|
2128
2144
|
}, [F("span", {
|
|
2129
2145
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
@@ -2137,34 +2153,34 @@ function fr(e, t, n) {
|
|
|
2137
2153
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
2138
2154
|
}, null)])]);
|
|
2139
2155
|
}
|
|
2140
|
-
function
|
|
2141
|
-
const n = Hn(e, t), o = Dn(e, t, n), a = Ln(e, t, o, n), r = An(e, t, o, n, a),
|
|
2156
|
+
function vr(e, t) {
|
|
2157
|
+
const n = Hn(e, t), o = Dn(e, t, n), a = Ln(e, t, o, n), r = An(e, t, o, n, a), l = pr(e, t, a), {
|
|
2142
2158
|
displayValue: c,
|
|
2143
2159
|
modelValue: s,
|
|
2144
|
-
getRealValue:
|
|
2145
|
-
} = n, p =
|
|
2160
|
+
getRealValue: i
|
|
2161
|
+
} = n, p = fr(e, t, r), {
|
|
2146
2162
|
format: y
|
|
2147
2163
|
} = o, {
|
|
2148
2164
|
isFocus: b
|
|
2149
2165
|
} = r, E = V(() => !e.disabled && !e.readonly);
|
|
2150
2166
|
return ze(() => {
|
|
2151
|
-
const C =
|
|
2167
|
+
const C = i(e.modelValue);
|
|
2152
2168
|
c.value = y(C);
|
|
2153
2169
|
}), ne(() => [e.value], ([C]) => {
|
|
2154
|
-
const I =
|
|
2170
|
+
const I = i(C);
|
|
2155
2171
|
s.value = I, c.value = y(I);
|
|
2156
2172
|
}), ne(() => [e.modelValue], ([C]) => {
|
|
2157
|
-
C !== s.value && (s.value = C, !b.value && (c.value = y(
|
|
2173
|
+
C !== s.value && (s.value = C, !b.value && (c.value = y(i(C))));
|
|
2158
2174
|
}), ne(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2159
2175
|
c.value = y(s.value);
|
|
2160
2176
|
}), () => F("div", {
|
|
2161
2177
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2162
|
-
}, [p(), E.value &&
|
|
2178
|
+
}, [p(), E.value && l()]);
|
|
2163
2179
|
}
|
|
2164
|
-
function
|
|
2165
|
-
const a = v(), r = v(e.autocomplete),
|
|
2180
|
+
function hr(e, t, n, o) {
|
|
2181
|
+
const a = v(), r = v(e.autocomplete), l = v(e.enableTitle), {
|
|
2166
2182
|
isPassword: c
|
|
2167
|
-
} = n, s = v(e.minLength),
|
|
2183
|
+
} = n, s = v(e.minLength), i = v(e.maxLength), p = v(e.tabIndex), {
|
|
2168
2184
|
disabled: y,
|
|
2169
2185
|
displayText: b,
|
|
2170
2186
|
inputType: E,
|
|
@@ -2189,12 +2205,12 @@ function vr(e, t, n, o) {
|
|
|
2189
2205
|
autocomplete: r.value,
|
|
2190
2206
|
class: O.value,
|
|
2191
2207
|
disabled: y == null ? void 0 : y.value,
|
|
2192
|
-
maxlength:
|
|
2208
|
+
maxlength: i.value,
|
|
2193
2209
|
minlength: s.value,
|
|
2194
2210
|
placeholder: _.value,
|
|
2195
2211
|
readonly: h == null ? void 0 : h.value,
|
|
2196
2212
|
tabindex: p.value,
|
|
2197
|
-
title:
|
|
2213
|
+
title: l.value && !c.value ? f.value : "",
|
|
2198
2214
|
type: E.value,
|
|
2199
2215
|
value: b == null ? void 0 : b.value,
|
|
2200
2216
|
onBlur: C,
|
|
@@ -2207,7 +2223,7 @@ function vr(e, t, n, o) {
|
|
|
2207
2223
|
onMousedown: m
|
|
2208
2224
|
}, null);
|
|
2209
2225
|
}
|
|
2210
|
-
function
|
|
2226
|
+
function mr(e, t) {
|
|
2211
2227
|
const n = V(() => e.useExtendInfo && !!e.extendInfo), o = Ee({
|
|
2212
2228
|
content: e.extendInfo
|
|
2213
2229
|
});
|
|
@@ -2223,11 +2239,11 @@ function hr(e, t) {
|
|
|
2223
2239
|
class: "tips-arrow"
|
|
2224
2240
|
}, null)]), [[gn("tooltip"), o]]);
|
|
2225
2241
|
}
|
|
2226
|
-
function
|
|
2242
|
+
function gr(e, t, n, o, a) {
|
|
2227
2243
|
const {
|
|
2228
2244
|
appendedButtonClass: r,
|
|
2229
|
-
appendedContent:
|
|
2230
|
-
} = n, c = V(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), s = V(() =>
|
|
2245
|
+
appendedContent: l
|
|
2246
|
+
} = n, c = V(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), s = V(() => l.value && !t.slots.groupTextTemplate), i = V(() => !!t.slots.groupTextTemplate), {
|
|
2231
2247
|
clearButtonClass: p,
|
|
2232
2248
|
clearButtonStyle: y,
|
|
2233
2249
|
onClearValue: b,
|
|
@@ -2260,7 +2276,7 @@ function mr(e, t, n, o, a) {
|
|
|
2260
2276
|
class: "input-group-text",
|
|
2261
2277
|
onMouseenter: (_) => I(_),
|
|
2262
2278
|
onMouseleave: (_) => T(_),
|
|
2263
|
-
innerHTML:
|
|
2279
|
+
innerHTML: l.value,
|
|
2264
2280
|
onClick: (_) => w(_)
|
|
2265
2281
|
}, null);
|
|
2266
2282
|
}
|
|
@@ -2268,28 +2284,28 @@ function mr(e, t, n, o, a) {
|
|
|
2268
2284
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
2269
2285
|
}
|
|
2270
2286
|
function g() {
|
|
2271
|
-
return s.value ? u :
|
|
2287
|
+
return s.value ? u : i.value ? m : "";
|
|
2272
2288
|
}
|
|
2273
2289
|
const h = g();
|
|
2274
2290
|
return () => F("div", {
|
|
2275
2291
|
class: r.value
|
|
2276
2292
|
}, [E.value && C(), h && h()]);
|
|
2277
2293
|
}
|
|
2278
|
-
const
|
|
2294
|
+
const yr = /* @__PURE__ */ Fe({
|
|
2279
2295
|
name: "FInputGroup",
|
|
2280
2296
|
props: Lt,
|
|
2281
2297
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2282
2298
|
setup(e, t) {
|
|
2283
2299
|
const n = v(e.modelValue), o = v(e.modelValue), a = Nn(e, t, n, o), {
|
|
2284
2300
|
inputGroupClass: r,
|
|
2285
|
-
inputType:
|
|
2301
|
+
inputType: l,
|
|
2286
2302
|
inputGroupStyle: c
|
|
2287
|
-
} = a, s =
|
|
2288
|
-
shouldShowAppendedButton:
|
|
2303
|
+
} = a, s = cr(e), {
|
|
2304
|
+
shouldShowAppendedButton: i
|
|
2289
2305
|
} = s, p = Rn(e, t, a), {
|
|
2290
2306
|
onMouseEnter: y,
|
|
2291
2307
|
onMouseLeave: b
|
|
2292
|
-
} = p, E =
|
|
2308
|
+
} = p, E = dr(e, t, l, s), C = vr(e, t), I = hr(e, t, E, a), T = gr(e, t, s, p, E), d = mr(e, t), w = V(() => e.type === "number");
|
|
2293
2309
|
ne(() => [e.value], ([m]) => {
|
|
2294
2310
|
n.value = m, o.value = m;
|
|
2295
2311
|
}), ne(() => [e.modelValue], ([m]) => {
|
|
@@ -2303,22 +2319,22 @@ const gr = /* @__PURE__ */ Fe({
|
|
|
2303
2319
|
style: c.value,
|
|
2304
2320
|
onMouseenter: y,
|
|
2305
2321
|
onMouseleave: b
|
|
2306
|
-
}, [w.value ? C() : F(Ae, null, [d(), I(),
|
|
2322
|
+
}, [w.value ? C() : F(Ae, null, [d(), I(), i.value && T()])])]);
|
|
2307
2323
|
return () => u();
|
|
2308
2324
|
}
|
|
2309
2325
|
}), W = {}, G = {}, q = {}, U = {};
|
|
2310
2326
|
let Tt = !1;
|
|
2311
|
-
function yr() {
|
|
2312
|
-
Tt || (Tt = !0, Wn.register(W, G, q, U), zn.register(W, G, q, U), Gn.register(W, G, q, U), qn.register(W, G, q, U), Un.register(W, G, q, U), Yn.register(W, G, q, U), kn.register(W, G, q, U), st.register(W, G, q, U), Xn.register(W, G, q, U), Kn.register(W, G, q, U), Jn.register(W, G, q, U), Qn.register(W, G, q, U), Zn.register(W, G, q, U), eo.register(W, G, q, U), to.register(W, G, q, U), En.register(W, G, q, U), no.register(W, G, q, U), Fn.register(W, G, q, U), oo.register(W, G, q, U), ro.register(W, G, q, U), lo.register(W, G, q, U), io.register(W, G, q, U), uo.register(W, G, q, U), so.register(W, G, q, U), co.register(W, G, q, U), fo.register(W, G, q, U), po.register(W, G, q, U), vo.register(W, G, q, U), Pn.register(W, G, q, U), Tn.register(W, G, q, U), ho.register(W, G, q, U), mo.register(W, G, q, U), Mn.register(W, G, q, U), go.register(W, G, q, U), yo.register(W, G, q, U), bo.register(W, G, q, U), wo.register(W, G, q, U), Co.register(W, G, q, U), xo.register(W, G, q, U), _o.register(W, G, q, U), Ho.register(W, G, q), So.register(W, G, q, U), To.register(W, G, q, U), ko.register(W, G, q, U), Oo.register(W, G, q, U), Fo.register(W, G, q, U), Mo.register(W, G, q, U), Sn.register(W, G, q, U), Eo.register(W, G, q, U), Io.register(W, G, q, U), Bo.register(W, G, q, U), xn.register(W, G, q, U), No.register(W, G, q, U), Vo.register(W, G, q, U), Ro.register(W, G, q, U), jo.register(W, G, q, U), $o.register(W, G, q, U), Po.register(W, G, q, U), Do.register(W, G, q, U), ao.register(W, G, q, U), Lo.register(W, G, q, U));
|
|
2313
|
-
}
|
|
2314
2327
|
function br() {
|
|
2315
|
-
|
|
2328
|
+
Tt || (Tt = !0, Wn.register(W, G, q, U), zn.register(W, G, q, U), Gn.register(W, G, q, U), qn.register(W, G, q, U), Un.register(W, G, q, U), Yn.register(W, G, q, U), kn.register(W, G, q, U), st.register(W, G, q, U), Xn.register(W, G, q, U), Qn.register(W, G, q, U), Zn.register(W, G, q, U), Jn.register(W, G, q, U), Kn.register(W, G, q, U), eo.register(W, G, q, U), to.register(W, G, q, U), En.register(W, G, q, U), no.register(W, G, q, U), Fn.register(W, G, q, U), oo.register(W, G, q, U), ro.register(W, G, q, U), lo.register(W, G, q, U), io.register(W, G, q, U), uo.register(W, G, q, U), so.register(W, G, q, U), co.register(W, G, q, U), fo.register(W, G, q, U), po.register(W, G, q, U), vo.register(W, G, q, U), Pn.register(W, G, q, U), Tn.register(W, G, q, U), ho.register(W, G, q, U), mo.register(W, G, q, U), Mn.register(W, G, q, U), go.register(W, G, q, U), yo.register(W, G, q, U), bo.register(W, G, q, U), wo.register(W, G, q, U), Co.register(W, G, q, U), xo.register(W, G, q, U), _o.register(W, G, q, U), Ho.register(W, G, q), So.register(W, G, q, U), To.register(W, G, q, U), ko.register(W, G, q, U), Oo.register(W, G, q, U), Fo.register(W, G, q, U), Mo.register(W, G, q, U), Sn.register(W, G, q, U), Eo.register(W, G, q, U), Io.register(W, G, q, U), Bo.register(W, G, q, U), xn.register(W, G, q, U), No.register(W, G, q, U), Vo.register(W, G, q, U), Ro.register(W, G, q, U), jo.register(W, G, q, U), $o.register(W, G, q, U), Po.register(W, G, q, U), Do.register(W, G, q, U), ao.register(W, G, q, U), Lo.register(W, G, q, U));
|
|
2329
|
+
}
|
|
2330
|
+
function wr() {
|
|
2331
|
+
br();
|
|
2316
2332
|
function e(a) {
|
|
2317
|
-
return W[a] ||
|
|
2333
|
+
return W[a] || yr;
|
|
2318
2334
|
}
|
|
2319
2335
|
function t(a, r) {
|
|
2320
|
-
const
|
|
2321
|
-
return
|
|
2336
|
+
const l = G[a];
|
|
2337
|
+
return l ? l(r) : {};
|
|
2322
2338
|
}
|
|
2323
2339
|
function n(a) {
|
|
2324
2340
|
switch (a) {
|
|
@@ -2394,26 +2410,26 @@ function br() {
|
|
|
2394
2410
|
}
|
|
2395
2411
|
return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
|
|
2396
2412
|
}
|
|
2397
|
-
const
|
|
2413
|
+
const _r = /* @__PURE__ */ Fe({
|
|
2398
2414
|
name: "FDynamicFormGroup",
|
|
2399
2415
|
props: Dt,
|
|
2400
2416
|
emits: ["change", "update:modelValue"],
|
|
2401
2417
|
setup(e, t) {
|
|
2402
|
-
const n = v(e.id), o = v(e.customClass), a = v(e.editor), r = v(e.label),
|
|
2418
|
+
const n = v(e.id), o = v(e.customClass), a = v(e.editor), r = v(e.label), l = v(e.modelValue), c = v(e.readonly), s = v(e.required), i = v(e.showLabel), p = v(e.visible);
|
|
2403
2419
|
v(e.type);
|
|
2404
2420
|
const y = v(), {
|
|
2405
2421
|
resolveEditorProps: b,
|
|
2406
2422
|
resolveEditorType: E,
|
|
2407
2423
|
getChangeFunctionName: C,
|
|
2408
2424
|
getClearFunctionName: I
|
|
2409
|
-
} =
|
|
2425
|
+
} = wr(), T = V(() => ({
|
|
2410
2426
|
"form-group": !0,
|
|
2411
2427
|
"farris-form-group": !0,
|
|
2412
2428
|
"common-group": !0,
|
|
2413
2429
|
"q-state-readonly": c.value
|
|
2414
2430
|
}));
|
|
2415
2431
|
function d(m, g) {
|
|
2416
|
-
|
|
2432
|
+
l.value = g !== void 0 ? g : m, t.emit("update:modelValue", l.value), t.emit("change", l.value);
|
|
2417
2433
|
}
|
|
2418
2434
|
function w() {
|
|
2419
2435
|
t.emit("update:modelValue", "");
|
|
@@ -2423,12 +2439,12 @@ const wr = /* @__PURE__ */ Fe({
|
|
|
2423
2439
|
return O && (h[O] = w), h[_] = d, (h.id == null || h.id === "") && (h.id = n.value), () => F(g, ot({
|
|
2424
2440
|
ref: y
|
|
2425
2441
|
}, h, {
|
|
2426
|
-
modelValue:
|
|
2427
|
-
"onUpdate:modelValue": (f) =>
|
|
2442
|
+
modelValue: l.value,
|
|
2443
|
+
"onUpdate:modelValue": (f) => l.value = f
|
|
2428
2444
|
}), t.slots);
|
|
2429
2445
|
});
|
|
2430
2446
|
return ne([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([m, g, h, _, O, f, x, k, S]) => {
|
|
2431
|
-
n.value = m, o.value = g, a.value = h, r.value = _,
|
|
2447
|
+
n.value = m, o.value = g, a.value = h, r.value = _, l.value = O, c.value = f, s.value = x, i.value = k, p.value = S;
|
|
2432
2448
|
}), t.expose({
|
|
2433
2449
|
editorRef: y
|
|
2434
2450
|
}), () => p.value && F("div", {
|
|
@@ -2439,7 +2455,7 @@ const wr = /* @__PURE__ */ Fe({
|
|
|
2439
2455
|
class: "farris-group-wrap"
|
|
2440
2456
|
}, [F("div", {
|
|
2441
2457
|
class: T.value
|
|
2442
|
-
}, [
|
|
2458
|
+
}, [i.value && F(Za, {
|
|
2443
2459
|
id: `${n.value}-lable`,
|
|
2444
2460
|
required: s.value,
|
|
2445
2461
|
text: r.value,
|
|
@@ -2473,54 +2489,54 @@ const wr = /* @__PURE__ */ Fe({
|
|
|
2473
2489
|
*/
|
|
2474
2490
|
z(qe, "fieldControlTypeMapping", {
|
|
2475
2491
|
String: [
|
|
2476
|
-
{ key:
|
|
2477
|
-
{ key:
|
|
2478
|
-
{ key:
|
|
2479
|
-
{ key:
|
|
2480
|
-
{ key:
|
|
2481
|
-
{ key:
|
|
2482
|
-
{ key:
|
|
2483
|
-
{ key:
|
|
2492
|
+
{ key: Z["input-group"].type, value: Z["input-group"].name },
|
|
2493
|
+
{ key: Z.lookup.type, value: Z.lookup.name },
|
|
2494
|
+
{ key: Z["date-picker"].type, value: Z["date-picker"].name },
|
|
2495
|
+
{ key: Z["check-box"].type, value: Z["check-box"].name },
|
|
2496
|
+
{ key: Z["check-group"].type, value: Z["check-group"].name },
|
|
2497
|
+
{ key: Z["radio-group"].type, value: Z["radio-group"].name },
|
|
2498
|
+
{ key: Z["combo-list"].type, value: Z["combo-list"].name },
|
|
2499
|
+
{ key: Z.textarea.type, value: Z.textarea.name }
|
|
2484
2500
|
],
|
|
2485
2501
|
Text: [
|
|
2486
|
-
{ key:
|
|
2487
|
-
{ key:
|
|
2502
|
+
{ key: Z.textarea.type, value: Z.textarea.name },
|
|
2503
|
+
{ key: Z.lookup.type, value: Z.lookup.name }
|
|
2488
2504
|
],
|
|
2489
2505
|
Decimal: [
|
|
2490
|
-
{ key:
|
|
2506
|
+
{ key: Z["number-spinner"].type, value: Z["number-spinner"].name }
|
|
2491
2507
|
],
|
|
2492
2508
|
Integer: [
|
|
2493
|
-
{ key:
|
|
2509
|
+
{ key: Z["number-spinner"].type, value: Z["number-spinner"].name }
|
|
2494
2510
|
],
|
|
2495
2511
|
Number: [
|
|
2496
|
-
{ key:
|
|
2512
|
+
{ key: Z["number-spinner"].type, value: Z["number-spinner"].name }
|
|
2497
2513
|
],
|
|
2498
2514
|
BigNumber: [
|
|
2499
|
-
{ key:
|
|
2515
|
+
{ key: Z["number-spinner"].type, value: Z["number-spinner"].name }
|
|
2500
2516
|
],
|
|
2501
2517
|
Date: [
|
|
2502
|
-
{ key:
|
|
2518
|
+
{ key: Z["date-picker"].type, value: Z["date-picker"].name }
|
|
2503
2519
|
],
|
|
2504
2520
|
DateTime: [
|
|
2505
|
-
{ key:
|
|
2521
|
+
{ key: Z["date-picker"].type, value: Z["date-picker"].name }
|
|
2506
2522
|
],
|
|
2507
2523
|
Boolean: [
|
|
2508
|
-
{ key:
|
|
2509
|
-
{ key:
|
|
2524
|
+
{ key: Z.switch.type, value: Z.switch.name },
|
|
2525
|
+
{ key: Z["check-box"].type, value: Z["check-box"].name }
|
|
2510
2526
|
],
|
|
2511
2527
|
Enum: [
|
|
2512
|
-
{ key:
|
|
2513
|
-
{ key:
|
|
2528
|
+
{ key: Z["combo-list"].type, value: Z["combo-list"].name },
|
|
2529
|
+
{ key: Z["radio-group"].type, value: Z["radio-group"].name }
|
|
2514
2530
|
],
|
|
2515
2531
|
Object: [
|
|
2516
|
-
{ key:
|
|
2517
|
-
{ key:
|
|
2518
|
-
{ key:
|
|
2532
|
+
{ key: Z.lookup.type, value: Z.lookup.name },
|
|
2533
|
+
{ key: Z["combo-list"].type, value: Z["combo-list"].name },
|
|
2534
|
+
{ key: Z["radio-group"].type, value: Z["radio-group"].name }
|
|
2519
2535
|
]
|
|
2520
2536
|
});
|
|
2521
2537
|
let kt = qe;
|
|
2522
2538
|
v(0);
|
|
2523
|
-
const
|
|
2539
|
+
const Cr = {
|
|
2524
2540
|
id: { type: String, default: "" },
|
|
2525
2541
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
2526
2542
|
editor: { type: Object, default: {} },
|
|
@@ -2535,13 +2551,13 @@ const _r = {
|
|
|
2535
2551
|
*/
|
|
2536
2552
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
2537
2553
|
};
|
|
2538
|
-
|
|
2539
|
-
|
|
2554
|
+
Qe(
|
|
2555
|
+
Cr,
|
|
2540
2556
|
Ht,
|
|
2541
2557
|
yt,
|
|
2542
2558
|
void 0
|
|
2543
2559
|
);
|
|
2544
|
-
const
|
|
2560
|
+
const xr = "https://json-schema.org/draft/2020-12/schema", Sr = "https://farris-design.gitee.io/grid-field-editor.schema.json", Tr = "response-form-layout-setting", kr = "A Farris Data Grid Component", Or = "object", Fr = {
|
|
2545
2561
|
id: {
|
|
2546
2562
|
description: "The unique identifier for a Input Group",
|
|
2547
2563
|
type: "string"
|
|
@@ -2561,18 +2577,18 @@ const Cr = "https://json-schema.org/draft/2020-12/schema", xr = "https://farris-
|
|
|
2561
2577
|
type: "Object",
|
|
2562
2578
|
default: null
|
|
2563
2579
|
}
|
|
2564
|
-
},
|
|
2580
|
+
}, Mr = [
|
|
2565
2581
|
"id",
|
|
2566
2582
|
"type"
|
|
2567
|
-
],
|
|
2568
|
-
$schema:
|
|
2569
|
-
$id:
|
|
2570
|
-
title:
|
|
2571
|
-
description:
|
|
2572
|
-
type:
|
|
2573
|
-
properties:
|
|
2574
|
-
required:
|
|
2575
|
-
},
|
|
2583
|
+
], Er = {
|
|
2584
|
+
$schema: xr,
|
|
2585
|
+
$id: Sr,
|
|
2586
|
+
title: Tr,
|
|
2587
|
+
description: kr,
|
|
2588
|
+
type: Or,
|
|
2589
|
+
properties: Fr,
|
|
2590
|
+
required: Mr
|
|
2591
|
+
}, Ir = {
|
|
2576
2592
|
initialState: {
|
|
2577
2593
|
type: Object,
|
|
2578
2594
|
default: {
|
|
@@ -2583,8 +2599,8 @@ const Cr = "https://json-schema.org/draft/2020-12/schema", xr = "https://farris-
|
|
|
2583
2599
|
}
|
|
2584
2600
|
}
|
|
2585
2601
|
};
|
|
2586
|
-
Ao(
|
|
2587
|
-
const
|
|
2602
|
+
Ao(Ir, Er, Ma, Na);
|
|
2603
|
+
const Br = {
|
|
2588
2604
|
width: { Type: Number, default: 400 },
|
|
2589
2605
|
type: { Type: String, default: "info" },
|
|
2590
2606
|
title: { Type: String, default: "" },
|
|
@@ -2597,12 +2613,12 @@ const Ir = {
|
|
|
2597
2613
|
function bt() {
|
|
2598
2614
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
2599
2615
|
}
|
|
2600
|
-
async function
|
|
2616
|
+
async function Nr(e) {
|
|
2601
2617
|
if (!navigator.clipboard)
|
|
2602
2618
|
throw bt();
|
|
2603
2619
|
return navigator.clipboard.writeText(e);
|
|
2604
2620
|
}
|
|
2605
|
-
async function
|
|
2621
|
+
async function Rr(e) {
|
|
2606
2622
|
const t = document.createElement("span");
|
|
2607
2623
|
t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
|
|
2608
2624
|
const n = window.getSelection(), o = window.document.createRange();
|
|
@@ -2616,25 +2632,25 @@ async function Nr(e) {
|
|
|
2616
2632
|
if (!a)
|
|
2617
2633
|
throw bt();
|
|
2618
2634
|
}
|
|
2619
|
-
async function
|
|
2635
|
+
async function Vr(e) {
|
|
2620
2636
|
try {
|
|
2621
|
-
await
|
|
2637
|
+
await Nr(e);
|
|
2622
2638
|
} catch (t) {
|
|
2623
2639
|
try {
|
|
2624
|
-
await
|
|
2640
|
+
await Rr(e);
|
|
2625
2641
|
} catch (n) {
|
|
2626
2642
|
throw n || t || bt();
|
|
2627
2643
|
}
|
|
2628
2644
|
}
|
|
2629
2645
|
}
|
|
2630
|
-
function
|
|
2646
|
+
function jr() {
|
|
2631
2647
|
async function e(t) {
|
|
2632
|
-
await
|
|
2648
|
+
await Vr(t);
|
|
2633
2649
|
}
|
|
2634
2650
|
return { onCopy: e };
|
|
2635
2651
|
}
|
|
2636
|
-
function
|
|
2637
|
-
const a = v(14), r = v(140),
|
|
2652
|
+
function $r(e, t, n, o) {
|
|
2653
|
+
const a = v(14), r = v(140), l = v(""), c = v(o.value.length), s = V(() => o.value), i = V(() => ({
|
|
2638
2654
|
"font-size": `${a.value}px`,
|
|
2639
2655
|
height: "100%"
|
|
2640
2656
|
}));
|
|
@@ -2648,24 +2664,24 @@ function jr(e, t, n, o) {
|
|
|
2648
2664
|
title: "promptMessage",
|
|
2649
2665
|
name: "promptMessage",
|
|
2650
2666
|
class: "form-control",
|
|
2651
|
-
style:
|
|
2667
|
+
style: i.value,
|
|
2652
2668
|
rows: "4",
|
|
2653
2669
|
maxlength: r.value,
|
|
2654
2670
|
onInput: (y) => p(y)
|
|
2655
2671
|
}, [s.value]), F("span", {
|
|
2656
2672
|
class: "textarea-wordcount",
|
|
2657
|
-
title:
|
|
2673
|
+
title: l.value,
|
|
2658
2674
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
2659
2675
|
}, [c.value + " / " + r.value])]);
|
|
2660
2676
|
}
|
|
2661
|
-
function
|
|
2662
|
-
const a =
|
|
2663
|
-
function
|
|
2677
|
+
function Pr(e, t, n, o) {
|
|
2678
|
+
const a = $r(e, t, n, o), r = /* @__PURE__ */ new Map([["text-area", a]]);
|
|
2679
|
+
function l(c) {
|
|
2664
2680
|
return r.get(c) || null;
|
|
2665
2681
|
}
|
|
2666
|
-
return { getEditorRender:
|
|
2682
|
+
return { getEditorRender: l };
|
|
2667
2683
|
}
|
|
2668
|
-
function
|
|
2684
|
+
function Hr() {
|
|
2669
2685
|
const e = v(!1), t = v("复制成功");
|
|
2670
2686
|
return {
|
|
2671
2687
|
feedbackStyle: V(() => {
|
|
@@ -2691,12 +2707,12 @@ function Pr() {
|
|
|
2691
2707
|
toShowFeedback: e
|
|
2692
2708
|
};
|
|
2693
2709
|
}
|
|
2694
|
-
function
|
|
2710
|
+
function Dr(e, t) {
|
|
2695
2711
|
const n = t.getEditorRender(e.promptEditorType);
|
|
2696
2712
|
return () => n && n();
|
|
2697
2713
|
}
|
|
2698
|
-
function
|
|
2699
|
-
const t = v(3), n = v(480), o = V(() => !!e.value && !!e.value.date), a = V(() => `发生时间 : ${e.value && e.value.date || ""}`), r = V(() => !!e.value && !!e.value.detail),
|
|
2714
|
+
function Lr(e) {
|
|
2715
|
+
const t = v(3), n = v(480), o = V(() => !!e.value && !!e.value.date), a = V(() => `发生时间 : ${e.value && e.value.date || ""}`), r = V(() => !!e.value && !!e.value.detail), l = V(() => {
|
|
2700
2716
|
const T = `${n.value}px`;
|
|
2701
2717
|
return {
|
|
2702
2718
|
overflow: "hidden",
|
|
@@ -2706,15 +2722,15 @@ function Dr(e) {
|
|
|
2706
2722
|
"-webkit-line-clamp": t.value,
|
|
2707
2723
|
"max-height": T
|
|
2708
2724
|
};
|
|
2709
|
-
}), c = V(() => e.value && e.value.detail || ""), s = V(() => !0),
|
|
2725
|
+
}), c = V(() => e.value && e.value.detail || ""), s = V(() => !0), i = v(!1), p = v("展开"), y = v("收起"), b = V(() => {
|
|
2710
2726
|
const T = {
|
|
2711
2727
|
display: "block",
|
|
2712
2728
|
color: "#2A87FF"
|
|
2713
2729
|
};
|
|
2714
|
-
return T["text-align"] =
|
|
2730
|
+
return T["text-align"] = i.value ? "" : "right", T;
|
|
2715
2731
|
});
|
|
2716
2732
|
function E(T, d) {
|
|
2717
|
-
|
|
2733
|
+
i.value = !i.value, t.value = i.value ? 20 : 3;
|
|
2718
2734
|
}
|
|
2719
2735
|
function C(T) {
|
|
2720
2736
|
return E();
|
|
@@ -2727,34 +2743,34 @@ function Dr(e) {
|
|
|
2727
2743
|
}, [o.value && F("div", null, [a.value]), r.value && F("div", {
|
|
2728
2744
|
id: "exception_error_msg",
|
|
2729
2745
|
ref: "exceptionMessageRef",
|
|
2730
|
-
style:
|
|
2746
|
+
style: l.value
|
|
2731
2747
|
}, [Le("详细信息 : "), F("span", {
|
|
2732
2748
|
innerHTML: c.value
|
|
2733
2749
|
}, null)]), s.value && F("span", {
|
|
2734
2750
|
style: b.value
|
|
2735
|
-
}, [
|
|
2751
|
+
}, [i.value && F("span", {
|
|
2736
2752
|
onClick: C,
|
|
2737
2753
|
style: "cursor: pointer;"
|
|
2738
|
-
}, [y.value]), !
|
|
2754
|
+
}, [y.value]), !i.value && F("span", {
|
|
2739
2755
|
onClick: I,
|
|
2740
2756
|
style: "cursor: pointer;"
|
|
2741
2757
|
}, [p.value])])]);
|
|
2742
2758
|
}
|
|
2743
|
-
function
|
|
2759
|
+
function Ar(e) {
|
|
2744
2760
|
return () => F("p", {
|
|
2745
2761
|
class: "toast-msg-detail",
|
|
2746
2762
|
innerHTML: e.value
|
|
2747
2763
|
}, null);
|
|
2748
2764
|
}
|
|
2749
|
-
function
|
|
2765
|
+
function zr(e, t, n, o) {
|
|
2750
2766
|
const a = v(e.exceptionInfo), r = V(() => {
|
|
2751
2767
|
const b = {
|
|
2752
2768
|
"f-icon": !0
|
|
2753
2769
|
}, E = `f-icon-${t.value}`;
|
|
2754
2770
|
return b[E] = !0, b;
|
|
2755
|
-
}),
|
|
2771
|
+
}), l = V(() => n.value || a.value && a.value.message), c = V(() => o.value), s = V(() => !!o.value), i = V(() => !!a.value);
|
|
2756
2772
|
function p() {
|
|
2757
|
-
return
|
|
2773
|
+
return i.value ? Lr(a) : s.value ? Ar(c) : () => null;
|
|
2758
2774
|
}
|
|
2759
2775
|
const y = p();
|
|
2760
2776
|
return () => F(Ae, null, [F("div", {
|
|
@@ -2765,20 +2781,20 @@ function Ar(e, t, n, o) {
|
|
|
2765
2781
|
class: "modal-tips-content"
|
|
2766
2782
|
}, [F("p", {
|
|
2767
2783
|
class: "toast-msg-title",
|
|
2768
|
-
innerHTML:
|
|
2784
|
+
innerHTML: l.value
|
|
2769
2785
|
}, null), y()])]);
|
|
2770
2786
|
}
|
|
2771
|
-
function
|
|
2787
|
+
function Wr(e, t, n) {
|
|
2772
2788
|
const {
|
|
2773
2789
|
onCopy: o
|
|
2774
2790
|
} = t, {
|
|
2775
2791
|
toShowFeedback: a
|
|
2776
|
-
} = n, r = v("复制成功"),
|
|
2792
|
+
} = n, r = v("复制成功"), l = v("复制详细信息"), c = v(e.exceptionInfo || {
|
|
2777
2793
|
date: "",
|
|
2778
2794
|
message: "",
|
|
2779
2795
|
detail: ""
|
|
2780
2796
|
}), s = V(() => c.value && c.value.detail || "");
|
|
2781
|
-
function
|
|
2797
|
+
function i(p) {
|
|
2782
2798
|
o(s.value).catch((y) => {
|
|
2783
2799
|
r.value = "复制失败";
|
|
2784
2800
|
}).finally(() => {
|
|
@@ -2790,12 +2806,12 @@ function zr(e, t, n) {
|
|
|
2790
2806
|
return () => F("span", {
|
|
2791
2807
|
style: "width: 100%;color: #2A87FF;padding-left: 37px;"
|
|
2792
2808
|
}, [F("span", {
|
|
2793
|
-
onClick:
|
|
2809
|
+
onClick: i,
|
|
2794
2810
|
style: "cursor: pointer;"
|
|
2795
|
-
}, [
|
|
2811
|
+
}, [l.value])]);
|
|
2796
2812
|
}
|
|
2797
|
-
function
|
|
2798
|
-
const a = v(e.type), r = v([]),
|
|
2813
|
+
function Gr(e, t, n, o) {
|
|
2814
|
+
const a = v(e.type), r = v([]), l = v(e.exceptionInfo), c = v(e.okButtonText), s = v(e.cancelButtonText), i = v(!0), p = v(!0), y = V(() => !!(r.value && r.value.length)), b = V(() => l.value && l.value.date && l.value.message && l.value.detail), E = V(() => !(r.value && r.value.length) && (c.value || s.value)), C = V(() => p.value && c.value), I = V(() => i.value && s.value), T = Wr(e, n, o);
|
|
2799
2815
|
function d(u) {
|
|
2800
2816
|
a.value === "question" && t.emit("reject"), t.emit("close");
|
|
2801
2817
|
}
|
|
@@ -2822,7 +2838,7 @@ function Wr(e, t, n, o) {
|
|
|
2822
2838
|
}
|
|
2823
2839
|
const et = /* @__PURE__ */ Fe({
|
|
2824
2840
|
name: "FMessageBox",
|
|
2825
|
-
props:
|
|
2841
|
+
props: Br,
|
|
2826
2842
|
emits: ["accept", "reject", "close"],
|
|
2827
2843
|
setup(e, t) {
|
|
2828
2844
|
const n = v(e.type), o = v(e.title), a = v(e.detail), r = V(() => {
|
|
@@ -2832,13 +2848,13 @@ const et = /* @__PURE__ */ Fe({
|
|
|
2832
2848
|
"flex-row": !0
|
|
2833
2849
|
}, d = `messager-type-${n.value}`;
|
|
2834
2850
|
return T[d] = !0, T;
|
|
2835
|
-
}),
|
|
2851
|
+
}), l = V(() => {
|
|
2836
2852
|
const T = {};
|
|
2837
2853
|
return n.value === "prompt" ? T.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (T.padding = "0.5rem 1.5rem 1rem 1.5rem"), T;
|
|
2838
|
-
}), c =
|
|
2854
|
+
}), c = jr(), s = Pr(e, n, o, a), i = Hr(), {
|
|
2839
2855
|
feedbackStyle: p,
|
|
2840
2856
|
feedbackMessage: y
|
|
2841
|
-
} =
|
|
2857
|
+
} = i;
|
|
2842
2858
|
function b() {
|
|
2843
2859
|
return F("div", {
|
|
2844
2860
|
style: p.value
|
|
@@ -2847,20 +2863,20 @@ const et = /* @__PURE__ */ Fe({
|
|
|
2847
2863
|
function E() {
|
|
2848
2864
|
switch (n.value) {
|
|
2849
2865
|
case "prompt":
|
|
2850
|
-
return
|
|
2866
|
+
return Dr(e, s);
|
|
2851
2867
|
default:
|
|
2852
|
-
return
|
|
2868
|
+
return zr(e, n, o, a);
|
|
2853
2869
|
}
|
|
2854
2870
|
}
|
|
2855
|
-
const C = E(), I =
|
|
2871
|
+
const C = E(), I = Gr(e, t, c, i);
|
|
2856
2872
|
return () => F("div", {
|
|
2857
2873
|
class: "farris-messager"
|
|
2858
2874
|
}, [F("section", {
|
|
2859
2875
|
class: r.value,
|
|
2860
|
-
style:
|
|
2876
|
+
style: l.value
|
|
2861
2877
|
}, [C()]), I(), b()]);
|
|
2862
2878
|
}
|
|
2863
|
-
}),
|
|
2879
|
+
}), qr = {
|
|
2864
2880
|
/**
|
|
2865
2881
|
* 自定义类
|
|
2866
2882
|
*/
|
|
@@ -3004,8 +3020,8 @@ class De {
|
|
|
3004
3020
|
return this.width = t.width, this.height = t.height, this;
|
|
3005
3021
|
}
|
|
3006
3022
|
}
|
|
3007
|
-
function
|
|
3008
|
-
const n = v(), o = v(), a = v(), r = v(),
|
|
3023
|
+
function Ur(e, t) {
|
|
3024
|
+
const n = v(), o = v(), a = v(), r = v(), l = v(), c = v(), s = v(), i = v(), p = v(), y = v(), b = v(), E = v(), C = v(e.draggable), I = v(!1);
|
|
3009
3025
|
function T() {
|
|
3010
3026
|
const N = o.value || document.body, R = window.getComputedStyle(N);
|
|
3011
3027
|
if (!R || !n.value)
|
|
@@ -3017,9 +3033,9 @@ function qr(e, t) {
|
|
|
3017
3033
|
}
|
|
3018
3034
|
function d(N) {
|
|
3019
3035
|
if (n.value) {
|
|
3020
|
-
r.value = De.getCurrent(n.value),
|
|
3036
|
+
r.value = De.getCurrent(n.value), l.value = he.getCurrent(n.value), c.value = r.value ? De.copy(r.value) : null, s.value = l.value ? he.copy(l.value) : null, T();
|
|
3021
3037
|
const R = N.target.getAttribute("type") || "";
|
|
3022
|
-
|
|
3038
|
+
i.value = {
|
|
3023
3039
|
n: !!R.match(/n/),
|
|
3024
3040
|
s: !!R.match(/s/),
|
|
3025
3041
|
w: !!R.match(/w/),
|
|
@@ -3031,28 +3047,28 @@ function qr(e, t) {
|
|
|
3031
3047
|
var N, R, P, $;
|
|
3032
3048
|
if (n.value) {
|
|
3033
3049
|
const L = n.value;
|
|
3034
|
-
|
|
3050
|
+
i.value && ((i.value.n || i.value.s) && ((N = c.value) != null && N.height) && (L.style.height = c.value.height + "px"), (i.value.w || i.value.e) && ((R = c.value) != null && R.width) && (L.style.width = c.value.width + "px"), s.value && ((P = s.value) != null && P.x && (L.style.left = s.value.x + "px"), ($ = s.value) != null && $.y && (L.style.top = s.value.y + "px")));
|
|
3035
3051
|
}
|
|
3036
3052
|
}
|
|
3037
3053
|
function u() {
|
|
3038
3054
|
const N = e.minHeight ? e.minHeight : 1, R = e.minWidth ? e.minWidth : 1;
|
|
3039
|
-
c.value && s.value &&
|
|
3055
|
+
c.value && s.value && i.value && r.value && (c.value.height < N && (c.value.height = N, i.value.n && l.value && (s.value.y = l.value.y + (r.value.height - N))), c.value.width < R && (c.value.width = R, i.value.w && l.value && (s.value.x = l.value.x + (r.value.width - R))), e.maxHeight && c.value.height > e.maxHeight && (c.value.height = e.maxHeight, l.value && i.value.n && (s.value.y = l.value.y + (r.value.height - e.maxHeight))), e.maxWidth && c.value.width > e.maxWidth && (c.value.width = e.maxWidth, i.value.w && l.value && (s.value.x = l.value.x + (r.value.width - e.maxWidth))));
|
|
3040
3056
|
}
|
|
3041
3057
|
function m() {
|
|
3042
3058
|
if (o.value) {
|
|
3043
3059
|
const N = y.value;
|
|
3044
|
-
if (s.value && c.value &&
|
|
3060
|
+
if (s.value && c.value && i.value && r.value) {
|
|
3045
3061
|
const R = N.width - N.pr - N.deltaL - N.translateX - s.value.x, P = N.height - N.pb - N.deltaT - N.translateY - s.value.y;
|
|
3046
|
-
|
|
3062
|
+
i.value.n && s.value.y + N.translateY < 0 && l.value && (s.value.y = -N.translateY, c.value.height = r.value.height + l.value.y + N.translateY), i.value.w && s.value.x + N.translateX < 0 && l.value && (s.value.x = -N.translateX, c.value.width = r.value.width + l.value.x + N.translateX), c.value.width > R && (c.value.width = R), c.value.height > P && (c.value.height = P);
|
|
3047
3063
|
}
|
|
3048
3064
|
}
|
|
3049
3065
|
}
|
|
3050
3066
|
function g(N) {
|
|
3051
|
-
if (!a.value || !r.value || !
|
|
3067
|
+
if (!a.value || !r.value || !l.value || !i.value)
|
|
3052
3068
|
return;
|
|
3053
3069
|
N.subtract(a.value);
|
|
3054
3070
|
const R = N.x, P = N.y;
|
|
3055
|
-
|
|
3071
|
+
i.value.n ? (s.value.y = l.value.y + P, c.value.height = r.value.height - P) : i.value.s && (c.value.height = r.value.height + P), i.value.e ? c.value.width = r.value.width + R : i.value.w && (c.value.width = r.value.width - R, s.value.x = l.value.x + R), m(), u(), w();
|
|
3056
3072
|
}
|
|
3057
3073
|
function h(N) {
|
|
3058
3074
|
if (!p.value)
|
|
@@ -3086,7 +3102,7 @@ function qr(e, t) {
|
|
|
3086
3102
|
const R = _();
|
|
3087
3103
|
b.value = R;
|
|
3088
3104
|
}
|
|
3089
|
-
a.value = void 0, r.value = null,
|
|
3105
|
+
a.value = void 0, r.value = null, l.value = null, c.value = null, s.value = null, i.value = null, p.value = null, document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", O);
|
|
3090
3106
|
}
|
|
3091
3107
|
function f() {
|
|
3092
3108
|
document.addEventListener("mousemove", h), document.addEventListener("mouseup", O);
|
|
@@ -3189,10 +3205,10 @@ function qr(e, t) {
|
|
|
3189
3205
|
unWindowResizeHandle: D
|
|
3190
3206
|
};
|
|
3191
3207
|
}
|
|
3192
|
-
function
|
|
3193
|
-
const o = v(), a = v(e.draggable), r = v(e.lockAxis),
|
|
3208
|
+
function Yr(e, t, n) {
|
|
3209
|
+
const o = v(), a = v(e.draggable), r = v(e.lockAxis), l = v(), c = v(), s = v(!1), i = v(new he(0, 0)), p = v(new he(0, 0)), y = v(new he(0, 0)), b = v(new he(0, 0));
|
|
3194
3210
|
ne(() => n.value, (_) => {
|
|
3195
|
-
|
|
3211
|
+
l.value.style.cursor = _ ? "move" : "default";
|
|
3196
3212
|
});
|
|
3197
3213
|
function E(_, O) {
|
|
3198
3214
|
if (O.tagName === "BUTTON")
|
|
@@ -3207,7 +3223,7 @@ function Ur(e, t, n) {
|
|
|
3207
3223
|
function C() {
|
|
3208
3224
|
var x, k;
|
|
3209
3225
|
let _ = y.value.x + p.value.x, O = y.value.y + p.value.y;
|
|
3210
|
-
r.value === "x" ? (_ = ((x =
|
|
3226
|
+
r.value === "x" ? (_ = ((x = i.value) == null ? void 0 : x.x) || 0, y.value.x = 0) : r.value === "y" && (O = ((k = i.value) == null ? void 0 : k.y) || 0, y.value.y = 0);
|
|
3211
3227
|
const f = `translate3d(${Math.round(_)}px, ${Math.round(O)}px, 0px)`;
|
|
3212
3228
|
o.value && (o.value.style.transform = f), b.value.x = _, b.value.y = O;
|
|
3213
3229
|
}
|
|
@@ -3223,17 +3239,17 @@ function Ur(e, t, n) {
|
|
|
3223
3239
|
return f.top || (y.value.y -= O.top - _.top), f.bottom || (y.value.y -= O.bottom - _.bottom), f.right || (y.value.x -= O.right - _.right), f.left || (y.value.x -= O.left - _.left), C(), f;
|
|
3224
3240
|
}
|
|
3225
3241
|
function T(_) {
|
|
3226
|
-
_ && (
|
|
3242
|
+
_ && (i.value && _.subtract(i.value), y.value.set(_), C(), I());
|
|
3227
3243
|
}
|
|
3228
3244
|
function d(_) {
|
|
3229
|
-
s.value && a.value && (_.stopPropagation(), _.preventDefault(), T(he.fromEvent(_,
|
|
3245
|
+
s.value && a.value && (_.stopPropagation(), _.preventDefault(), T(he.fromEvent(_, l.value)));
|
|
3230
3246
|
}
|
|
3231
3247
|
function w() {
|
|
3232
3248
|
var _;
|
|
3233
3249
|
s.value && (s.value = !1, p.value.add(y.value), y.value.reset(), (_ = o.value) == null || _.classList.remove("ng-dragging"), document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", w));
|
|
3234
3250
|
}
|
|
3235
3251
|
function u() {
|
|
3236
|
-
!s.value &&
|
|
3252
|
+
!s.value && l.value && (s.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", d), document.addEventListener("mouseup", w));
|
|
3237
3253
|
}
|
|
3238
3254
|
function m() {
|
|
3239
3255
|
if (o.value) {
|
|
@@ -3247,21 +3263,21 @@ function Ur(e, t, n) {
|
|
|
3247
3263
|
if (!n.value || _ instanceof MouseEvent && _.button === 2)
|
|
3248
3264
|
return;
|
|
3249
3265
|
const O = _.target || _.srcElement;
|
|
3250
|
-
|
|
3266
|
+
l.value !== void 0 && O && !E(O, l.value) || a.value !== !1 && (document.body.click(), _.stopPropagation(), _.preventDefault(), i.value = he.fromEvent(_, o.value), m(), u());
|
|
3251
3267
|
}
|
|
3252
3268
|
function h(_, O, f) {
|
|
3253
3269
|
if (a.value && O) {
|
|
3254
3270
|
if (_)
|
|
3255
|
-
|
|
3271
|
+
l.value = _;
|
|
3256
3272
|
else if (e.dragHandle) {
|
|
3257
3273
|
if (e.dragHandle instanceof HTMLElement)
|
|
3258
|
-
|
|
3274
|
+
l.value = e.dragHandle;
|
|
3259
3275
|
else if (typeof e.dragHandle == "string") {
|
|
3260
3276
|
const x = O.querySelector(e.dragHandle);
|
|
3261
|
-
x && (
|
|
3277
|
+
x && (l.value = x);
|
|
3262
3278
|
}
|
|
3263
3279
|
}
|
|
3264
|
-
o.value = O, c.value = f,
|
|
3280
|
+
o.value = O, c.value = f, l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", g);
|
|
3265
3281
|
}
|
|
3266
3282
|
}
|
|
3267
3283
|
return {
|
|
@@ -3279,7 +3295,7 @@ function At(e, t) {
|
|
|
3279
3295
|
};
|
|
3280
3296
|
}
|
|
3281
3297
|
}
|
|
3282
|
-
function
|
|
3298
|
+
function Xr(e, t) {
|
|
3283
3299
|
const n = v(e.enableEsc);
|
|
3284
3300
|
let o = null;
|
|
3285
3301
|
return n.value ? (o = At("Escape", (a) => {
|
|
@@ -3288,7 +3304,7 @@ function Yr(e, t) {
|
|
|
3288
3304
|
remove: o
|
|
3289
3305
|
}) : null;
|
|
3290
3306
|
}
|
|
3291
|
-
function
|
|
3307
|
+
function Qr(e, t) {
|
|
3292
3308
|
const n = v(e.enableEnter);
|
|
3293
3309
|
let o = null;
|
|
3294
3310
|
return n.value ? (o = At("Enter", (a) => {
|
|
@@ -3299,10 +3315,10 @@ function Xr(e, t) {
|
|
|
3299
3315
|
}
|
|
3300
3316
|
const zt = /* @__PURE__ */ Fe({
|
|
3301
3317
|
name: "FModal",
|
|
3302
|
-
props:
|
|
3318
|
+
props: qr,
|
|
3303
3319
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
|
|
3304
3320
|
setup(e, t) {
|
|
3305
|
-
const n = v(e.width || 300), o = v(e.height || 200), a = v(e.modelValue), r = v(""),
|
|
3321
|
+
const n = v(e.width || 300), o = v(e.height || 200), a = v(e.modelValue), r = v(""), l = v(e.class), c = v(e.fitContent), s = v(e.showHeader), i = v(""), p = v(e.showCloseButton), y = v(e.showMaxButton), b = v(!1), E = v(""), C = v(""), I = v(""), T = v(e.showButtons), d = v(e.title), w = v(e.reiszeable), u = v(e.containment || null), m = v();
|
|
3306
3322
|
function g(A, ae) {
|
|
3307
3323
|
a.value = !1, t.emit("update:modelValue", !1), ae != null && t.emit(ae ? "accept" : "cancel"), t.emit("closed", A);
|
|
3308
3324
|
}
|
|
@@ -3320,7 +3336,7 @@ const zt = /* @__PURE__ */ Fe({
|
|
|
3320
3336
|
handle: (A) => {
|
|
3321
3337
|
g(A, !0);
|
|
3322
3338
|
}
|
|
3323
|
-
}], _ = v(e.buttons && e.buttons.length ? e.buttons : h), O = V(() => !!
|
|
3339
|
+
}], _ = v(e.buttons && e.buttons.length ? e.buttons : h), O = V(() => !!i.value), f = V(() => !!T.value && !!_.value), x = v(), k = v(), S = v(!1), {
|
|
3324
3340
|
renderResizeBar: B,
|
|
3325
3341
|
maximize: M,
|
|
3326
3342
|
restore: j,
|
|
@@ -3328,9 +3344,9 @@ const zt = /* @__PURE__ */ Fe({
|
|
|
3328
3344
|
resizedEventParam: N,
|
|
3329
3345
|
allowDrag: R,
|
|
3330
3346
|
unWindowResizeHandle: P
|
|
3331
|
-
} =
|
|
3347
|
+
} = Ur(e), {
|
|
3332
3348
|
registerDraggle: $
|
|
3333
|
-
} =
|
|
3349
|
+
} = Yr(e, t, R);
|
|
3334
3350
|
ne(() => e.title, (A, ae) => {
|
|
3335
3351
|
A !== ae && (d.value = A);
|
|
3336
3352
|
}), ne(() => e.modelValue, (A, ae) => {
|
|
@@ -3340,8 +3356,8 @@ const zt = /* @__PURE__ */ Fe({
|
|
|
3340
3356
|
}), ne(() => e.showButtons, (A, ae) => {
|
|
3341
3357
|
A !== ae && (T.value = A);
|
|
3342
3358
|
}), ne(() => N.value, (A, ae) => {
|
|
3343
|
-
const pe = A || {},
|
|
3344
|
-
JSON.stringify(pe) !== JSON.stringify(
|
|
3359
|
+
const pe = A || {}, Re = ae || {};
|
|
3360
|
+
JSON.stringify(pe) !== JSON.stringify(Re) && t.emit("resize", {
|
|
3345
3361
|
newSize: A,
|
|
3346
3362
|
oldSize: ae
|
|
3347
3363
|
});
|
|
@@ -3350,19 +3366,19 @@ const zt = /* @__PURE__ */ Fe({
|
|
|
3350
3366
|
const A = document.querySelectorAll(".farris-modal").length;
|
|
3351
3367
|
(!A || A - 1 <= 0) && document.body.classList.remove("modal-open"), m.value && m.value.classList.remove("show");
|
|
3352
3368
|
}
|
|
3353
|
-
const
|
|
3369
|
+
const K = V(() => (a.value ? document.body.classList.add("modal-open") : L(), a.value)), le = V(() => {
|
|
3354
3370
|
const A = {
|
|
3355
3371
|
modal: !0,
|
|
3356
3372
|
"farris-modal": !0,
|
|
3357
3373
|
fade: !0
|
|
3358
3374
|
};
|
|
3359
|
-
return A["f-modal-fitContent"] = !!c.value, A.show = !!
|
|
3375
|
+
return A["f-modal-fitContent"] = !!c.value, A.show = !!K.value, A;
|
|
3360
3376
|
}), ce = V(() => {
|
|
3361
3377
|
var pe;
|
|
3362
3378
|
const A = {
|
|
3363
3379
|
"modal-dialog": !0
|
|
3364
|
-
}, ae = (pe =
|
|
3365
|
-
return ae == null || ae.reduce((
|
|
3380
|
+
}, ae = (pe = l.value) == null ? void 0 : pe.split(" ");
|
|
3381
|
+
return ae == null || ae.reduce((Re, We) => (Re[We] = !0, Re), A), A;
|
|
3366
3382
|
}), we = V(() => ({
|
|
3367
3383
|
position: "absolute",
|
|
3368
3384
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
@@ -3409,7 +3425,7 @@ const zt = /* @__PURE__ */ Fe({
|
|
|
3409
3425
|
}
|
|
3410
3426
|
let Ce = null, se = null;
|
|
3411
3427
|
ze(() => {
|
|
3412
|
-
k.value && !u.value && (u.value = k.value.parentElement, D.value = u.value, $(x.value, k.value, D.value)),
|
|
3428
|
+
k.value && !u.value && (u.value = k.value.parentElement, D.value = u.value, $(x.value, k.value, D.value)), K.value && document.body.classList.add("modal-open"), Ce = Xr(e, t), se = Qr(e, t);
|
|
3413
3429
|
}), ft(() => {
|
|
3414
3430
|
L(), P && P(), Ce && Ce.remove(), se && se.remove();
|
|
3415
3431
|
}), t.expose({
|
|
@@ -3460,7 +3476,7 @@ const zt = /* @__PURE__ */ Fe({
|
|
|
3460
3476
|
}, [F("div", {
|
|
3461
3477
|
class: "modal-title"
|
|
3462
3478
|
}, [O.value && F("span", {
|
|
3463
|
-
class:
|
|
3479
|
+
class: i.value,
|
|
3464
3480
|
style: "margin-right: 8px"
|
|
3465
3481
|
}, null), F("span", {
|
|
3466
3482
|
class: "modal-title-label"
|
|
@@ -3474,7 +3490,7 @@ const zt = /* @__PURE__ */ Fe({
|
|
|
3474
3490
|
return () => F(yn, {
|
|
3475
3491
|
to: "body"
|
|
3476
3492
|
}, {
|
|
3477
|
-
default: () => [
|
|
3493
|
+
default: () => [K.value && F(Ot, {
|
|
3478
3494
|
name: "fade",
|
|
3479
3495
|
appear: !0
|
|
3480
3496
|
}, {
|
|
@@ -3512,7 +3528,7 @@ function Wt(e) {
|
|
|
3512
3528
|
if (e.render && typeof e.render == "function")
|
|
3513
3529
|
return e.render;
|
|
3514
3530
|
}
|
|
3515
|
-
function
|
|
3531
|
+
function Jr(e) {
|
|
3516
3532
|
const t = document.createElement("div");
|
|
3517
3533
|
t.style.display = "contents";
|
|
3518
3534
|
const n = Ft({
|
|
@@ -3520,7 +3536,7 @@ function Kr(e) {
|
|
|
3520
3536
|
ft(() => {
|
|
3521
3537
|
document.body.removeChild(t);
|
|
3522
3538
|
});
|
|
3523
|
-
const r = v(),
|
|
3539
|
+
const r = v(), l = v(e.class || ""), c = v(!!e.showButtons), s = v(!!e.showHeader), i = v(e.showCloseButton == null ? !0 : e.showCloseButton), p = v(!0), y = v(e.title || ""), b = e.acceptCallback || (() => {
|
|
3524
3540
|
}), E = e.rejectCallback || (() => {
|
|
3525
3541
|
}), C = e.closedCallback || ((w) => {
|
|
3526
3542
|
}), I = e.resizeHandle || ((w) => {
|
|
@@ -3532,7 +3548,7 @@ function Kr(e) {
|
|
|
3532
3548
|
modalRef: r
|
|
3533
3549
|
}), () => F(zt, {
|
|
3534
3550
|
ref: r,
|
|
3535
|
-
class:
|
|
3551
|
+
class: l.value,
|
|
3536
3552
|
modelValue: p.value,
|
|
3537
3553
|
"onUpdate:modelValue": (w) => p.value = w,
|
|
3538
3554
|
title: y.value,
|
|
@@ -3541,7 +3557,7 @@ function Kr(e) {
|
|
|
3541
3557
|
buttons: e.buttons,
|
|
3542
3558
|
"show-header": s.value,
|
|
3543
3559
|
"show-buttons": c.value,
|
|
3544
|
-
"show-close-button":
|
|
3560
|
+
"show-close-button": i.value,
|
|
3545
3561
|
"show-max-button": !1,
|
|
3546
3562
|
onAccept: b,
|
|
3547
3563
|
onCancel: E,
|
|
@@ -3555,7 +3571,7 @@ function Kr(e) {
|
|
|
3555
3571
|
});
|
|
3556
3572
|
return document.body.appendChild(t), n.mount(t), n;
|
|
3557
3573
|
}
|
|
3558
|
-
class
|
|
3574
|
+
class Zr {
|
|
3559
3575
|
constructor(t) {
|
|
3560
3576
|
z(this, "appContext", null);
|
|
3561
3577
|
z(this, "modalRef", v());
|
|
@@ -3574,7 +3590,7 @@ class Qr {
|
|
|
3574
3590
|
showButtons: !0,
|
|
3575
3591
|
showHeader: !0
|
|
3576
3592
|
}, t);
|
|
3577
|
-
return
|
|
3593
|
+
return Jr(n);
|
|
3578
3594
|
}
|
|
3579
3595
|
open(t) {
|
|
3580
3596
|
const n = document.createDocumentFragment();
|
|
@@ -3584,19 +3600,19 @@ class Qr {
|
|
|
3584
3600
|
showButtons: !0,
|
|
3585
3601
|
showHeader: !0
|
|
3586
3602
|
}, t)), a = v(!0), r = o.value.acceptCallback || (() => {
|
|
3587
|
-
}),
|
|
3603
|
+
}), l = o.value.rejectCallback || (() => {
|
|
3588
3604
|
}), c = o.value.closedCallback || ((d, w) => {
|
|
3589
3605
|
}), s = o.value.resizeHandle || ((d) => {
|
|
3590
3606
|
});
|
|
3591
|
-
let
|
|
3607
|
+
let i;
|
|
3592
3608
|
const p = Wt(o.value), y = (d) => {
|
|
3593
3609
|
var u;
|
|
3594
3610
|
a.value = !1;
|
|
3595
3611
|
const w = (u = d == null ? void 0 : d.target) == null ? void 0 : u.classList.contains("modal_close");
|
|
3596
3612
|
c(d, this.isUseEscCloseModal.value ? "esc" : w ? "icon" : "button");
|
|
3597
3613
|
}, b = (d) => {
|
|
3598
|
-
y(d),
|
|
3599
|
-
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], rt(null, n),
|
|
3614
|
+
y(d), i && it(() => {
|
|
3615
|
+
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], rt(null, n), i = null, this.modalRef.value = null, this.modalRefs) {
|
|
3600
3616
|
const w = Object.keys(this.modalRefs).map((u) => Number(u));
|
|
3601
3617
|
w.length > 0 ? this.activeModalIndex.value = Math.max(...w) : this.activeModalIndex.value = 0;
|
|
3602
3618
|
}
|
|
@@ -3611,14 +3627,14 @@ class Qr {
|
|
|
3611
3627
|
"onUpdate:modelValue": (d) => a.value = d
|
|
3612
3628
|
}, o.value, {
|
|
3613
3629
|
onAccept: r,
|
|
3614
|
-
onCancel:
|
|
3630
|
+
onCancel: l,
|
|
3615
3631
|
onClosed: b,
|
|
3616
3632
|
onResize: s,
|
|
3617
3633
|
onEsc: E
|
|
3618
3634
|
}), {
|
|
3619
3635
|
default: () => [p && p(this.app)]
|
|
3620
3636
|
});
|
|
3621
|
-
return
|
|
3637
|
+
return i = ((d) => {
|
|
3622
3638
|
const w = wn(C, d);
|
|
3623
3639
|
return w.appContext = this.appContext, rt(w, n), w;
|
|
3624
3640
|
})({
|
|
@@ -3629,7 +3645,7 @@ class Qr {
|
|
|
3629
3645
|
o.value = {
|
|
3630
3646
|
...o.value,
|
|
3631
3647
|
...d
|
|
3632
|
-
},
|
|
3648
|
+
}, i && rt(_n(i, {
|
|
3633
3649
|
...o
|
|
3634
3650
|
}), n);
|
|
3635
3651
|
},
|
|
@@ -3638,18 +3654,18 @@ class Qr {
|
|
|
3638
3654
|
};
|
|
3639
3655
|
}
|
|
3640
3656
|
}
|
|
3641
|
-
class
|
|
3657
|
+
class $e {
|
|
3642
3658
|
static show(t) {
|
|
3643
3659
|
const n = Ee({
|
|
3644
3660
|
...t
|
|
3645
|
-
}), o = !1, a = n.type === "error" || n.type === "prompt", r = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "",
|
|
3661
|
+
}), o = !1, a = n.type === "error" || n.type === "prompt", r = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", l = n.acceptCallback || (() => {
|
|
3646
3662
|
}), c = n.rejectCallback || (() => {
|
|
3647
3663
|
});
|
|
3648
|
-
let s = null,
|
|
3664
|
+
let s = null, i = new Zr(s);
|
|
3649
3665
|
const p = () => {
|
|
3650
|
-
s && (s == null || s.destroy(),
|
|
3666
|
+
s && (s == null || s.destroy(), i = null);
|
|
3651
3667
|
};
|
|
3652
|
-
s =
|
|
3668
|
+
s = i == null ? void 0 : i.open({
|
|
3653
3669
|
class: "modal-message modal-message-type-info",
|
|
3654
3670
|
title: r,
|
|
3655
3671
|
showButtons: o,
|
|
@@ -3658,7 +3674,7 @@ class je {
|
|
|
3658
3674
|
fitContent: !0,
|
|
3659
3675
|
showMaxButton: !1,
|
|
3660
3676
|
render: () => F(et, ot(n, {
|
|
3661
|
-
onAccept:
|
|
3677
|
+
onAccept: l,
|
|
3662
3678
|
onReject: c,
|
|
3663
3679
|
onClose: p
|
|
3664
3680
|
}), null)
|
|
@@ -3672,7 +3688,7 @@ class je {
|
|
|
3672
3688
|
okButtonText: "知道了",
|
|
3673
3689
|
cancelButtonText: ""
|
|
3674
3690
|
});
|
|
3675
|
-
|
|
3691
|
+
$e.show(o);
|
|
3676
3692
|
}
|
|
3677
3693
|
static warning(t, n) {
|
|
3678
3694
|
const o = Ee({
|
|
@@ -3682,7 +3698,7 @@ class je {
|
|
|
3682
3698
|
okButtonText: "知道了",
|
|
3683
3699
|
cancelButtonText: ""
|
|
3684
3700
|
});
|
|
3685
|
-
|
|
3701
|
+
$e.show(o);
|
|
3686
3702
|
}
|
|
3687
3703
|
static success(t, n) {
|
|
3688
3704
|
const o = Ee({
|
|
@@ -3692,7 +3708,7 @@ class je {
|
|
|
3692
3708
|
okButtonText: "关闭",
|
|
3693
3709
|
cancelButtonText: ""
|
|
3694
3710
|
});
|
|
3695
|
-
|
|
3711
|
+
$e.show(o);
|
|
3696
3712
|
}
|
|
3697
3713
|
static error(t, n, o) {
|
|
3698
3714
|
const a = Ee({
|
|
@@ -3706,7 +3722,7 @@ class je {
|
|
|
3706
3722
|
detail: n
|
|
3707
3723
|
}
|
|
3708
3724
|
});
|
|
3709
|
-
|
|
3725
|
+
$e.show(a);
|
|
3710
3726
|
}
|
|
3711
3727
|
static prompt(t, n) {
|
|
3712
3728
|
const o = Ee({
|
|
@@ -3716,7 +3732,7 @@ class je {
|
|
|
3716
3732
|
okButtonText: "确定",
|
|
3717
3733
|
cancelButtonText: "取消"
|
|
3718
3734
|
});
|
|
3719
|
-
|
|
3735
|
+
$e.show(o);
|
|
3720
3736
|
}
|
|
3721
3737
|
static question(t, n, o, a) {
|
|
3722
3738
|
const r = Ee({
|
|
@@ -3728,14 +3744,14 @@ class je {
|
|
|
3728
3744
|
acceptCallback: o,
|
|
3729
3745
|
rejectCallback: a
|
|
3730
3746
|
});
|
|
3731
|
-
|
|
3747
|
+
$e.show(r);
|
|
3732
3748
|
}
|
|
3733
3749
|
}
|
|
3734
3750
|
et.install = (e) => {
|
|
3735
|
-
e.component(et.name, et), e.provide("FMessageBoxService",
|
|
3751
|
+
e.component(et.name, et), e.provide("FMessageBoxService", $e);
|
|
3736
3752
|
};
|
|
3737
3753
|
var Gt = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(Gt || {}), qt = /* @__PURE__ */ ((e) => (e.Equal = "0", e.NotEqual = "1", e.Greater = "2", e.GreaterOrEqual = "3", e.Less = "4", e.LessOrEqual = "5", e.Like = "6", e.LikeStartWith = "7", e.LikeEndWith = "8", e))(qt || {});
|
|
3738
|
-
const
|
|
3754
|
+
const Kr = [
|
|
3739
3755
|
{
|
|
3740
3756
|
value: "0",
|
|
3741
3757
|
name: "等于"
|
|
@@ -3772,7 +3788,7 @@ const Jr = [
|
|
|
3772
3788
|
value: "8",
|
|
3773
3789
|
name: "结束是"
|
|
3774
3790
|
}
|
|
3775
|
-
],
|
|
3791
|
+
], el = {
|
|
3776
3792
|
"button-edit": ["0", "1", " 6", "7", "8"],
|
|
3777
3793
|
"check-box": ["0"],
|
|
3778
3794
|
"combo-list": ["0", "1"],
|
|
@@ -3792,14 +3808,14 @@ const Jr = [
|
|
|
3792
3808
|
"radio-group": ["0"],
|
|
3793
3809
|
text: ["0", "1", " 6", "7", "8"]
|
|
3794
3810
|
};
|
|
3795
|
-
function
|
|
3811
|
+
function tl(e, t, n) {
|
|
3796
3812
|
const { fieldMap: o } = n;
|
|
3797
3813
|
function a(r) {
|
|
3798
|
-
const
|
|
3799
|
-
if (!
|
|
3814
|
+
const l = o.get(r.fieldCode);
|
|
3815
|
+
if (!l)
|
|
3800
3816
|
return [];
|
|
3801
|
-
const c =
|
|
3802
|
-
return
|
|
3817
|
+
const c = l.editor.type, s = new Set(el[c]);
|
|
3818
|
+
return Kr.filter((p) => s.has(p.value));
|
|
3803
3819
|
}
|
|
3804
3820
|
return { getCompareOperators: a };
|
|
3805
3821
|
}
|
|
@@ -3821,7 +3837,7 @@ function Ut() {
|
|
|
3821
3837
|
function r(f, x) {
|
|
3822
3838
|
return { relation: f, items: [], children: [], path: [], groupId: ++o, level: x };
|
|
3823
3839
|
}
|
|
3824
|
-
function
|
|
3840
|
+
function l() {
|
|
3825
3841
|
const f = Object.assign({}, e.value);
|
|
3826
3842
|
n.forEach((x, k) => {
|
|
3827
3843
|
x.groupId === f.groupId && n.set(k, f);
|
|
@@ -3845,7 +3861,7 @@ function Ut() {
|
|
|
3845
3861
|
}
|
|
3846
3862
|
return k;
|
|
3847
3863
|
}
|
|
3848
|
-
function
|
|
3864
|
+
function i(f, x, k, S, B) {
|
|
3849
3865
|
for (let N = x; N <= 0; N++)
|
|
3850
3866
|
S.pop();
|
|
3851
3867
|
const M = S[S.length - 1];
|
|
@@ -3867,7 +3883,7 @@ function Ut() {
|
|
|
3867
3883
|
if (k < 0 || k === S)
|
|
3868
3884
|
return f[f.length - 1];
|
|
3869
3885
|
const R = D - N, P = B && B.relation !== void 0 ? B.relation : 1;
|
|
3870
|
-
return j = R > 0 ? s(N, R, j, f, P) : j, j = R < 0 ?
|
|
3886
|
+
return j = R > 0 ? s(N, R, j, f, P) : j, j = R < 0 ? i(N, R, j, f, P) : j, j = R === 0 && N > 0 && D > 0 && B && M && !!B.rBracket && !!M.lBracket ? p(N, j, f, P) : j, j;
|
|
3871
3887
|
}
|
|
3872
3888
|
function b(f) {
|
|
3873
3889
|
const k = { relation: f.length && f[0].relation !== void 0 ? f[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, S = [k], B = c(f);
|
|
@@ -3886,7 +3902,7 @@ function Ut() {
|
|
|
3886
3902
|
const x = t.get(f.conditionId);
|
|
3887
3903
|
if (x) {
|
|
3888
3904
|
const k = x.items.findIndex((B) => B.conditionId === f.conditionId) + 1, S = a();
|
|
3889
|
-
t.set(S.conditionId, x), x.items.splice(k, 0, S),
|
|
3905
|
+
t.set(S.conditionId, x), x.items.splice(k, 0, S), l();
|
|
3890
3906
|
}
|
|
3891
3907
|
}
|
|
3892
3908
|
function I(f, x, k, S) {
|
|
@@ -3918,7 +3934,7 @@ function Ut() {
|
|
|
3918
3934
|
if (k) {
|
|
3919
3935
|
I(f, S, B, M), T(k, B, S.items, M, S.groups);
|
|
3920
3936
|
const j = r(k.relation, k.level + 1);
|
|
3921
|
-
d(j, B, M), k.children.push(j), n.set(j.groupId, k),
|
|
3937
|
+
d(j, B, M), k.children.push(j), n.set(j.groupId, k), l();
|
|
3922
3938
|
}
|
|
3923
3939
|
}
|
|
3924
3940
|
function u(f) {
|
|
@@ -3927,10 +3943,10 @@ function Ut() {
|
|
|
3927
3943
|
S.items.push(B), t.set(B.conditionId, S);
|
|
3928
3944
|
}), k.forEach((B) => {
|
|
3929
3945
|
S.children.push(B), n.set(B.groupId, S);
|
|
3930
|
-
}),
|
|
3946
|
+
}), l());
|
|
3931
3947
|
}
|
|
3932
3948
|
function m(f) {
|
|
3933
|
-
f.relation = f.relation === 1 ? 2 : 1,
|
|
3949
|
+
f.relation = f.relation === 1 ? 2 : 1, l();
|
|
3934
3950
|
}
|
|
3935
3951
|
let g;
|
|
3936
3952
|
function h(f) {
|
|
@@ -3955,7 +3971,7 @@ function Ut() {
|
|
|
3955
3971
|
}
|
|
3956
3972
|
function O(f) {
|
|
3957
3973
|
const x = t.get(f.conditionId);
|
|
3958
|
-
x && (x.items = x.items.filter((k) => k.conditionId !== f.conditionId), t.delete(f.conditionId), _(),
|
|
3974
|
+
x && (x.items = x.items.filter((k) => k.conditionId !== f.conditionId), t.delete(f.conditionId), _(), l());
|
|
3959
3975
|
}
|
|
3960
3976
|
return {
|
|
3961
3977
|
addCondition: E,
|
|
@@ -3966,20 +3982,20 @@ function Ut() {
|
|
|
3966
3982
|
groupParentMap: n,
|
|
3967
3983
|
insertConditionTo: C,
|
|
3968
3984
|
loadConditionGroup: b,
|
|
3969
|
-
refresh:
|
|
3985
|
+
refresh: l,
|
|
3970
3986
|
removeCondition: O,
|
|
3971
3987
|
rootGroup: e,
|
|
3972
3988
|
unGroup: u
|
|
3973
3989
|
};
|
|
3974
3990
|
}
|
|
3975
|
-
function
|
|
3976
|
-
const o = v(/* @__PURE__ */ new Set()), a = v(/* @__PURE__ */ new Set()), { conditionGroupMap: r, groupParentMap:
|
|
3991
|
+
function nl(e, t, n) {
|
|
3992
|
+
const o = v(/* @__PURE__ */ new Set()), a = v(/* @__PURE__ */ new Set()), { conditionGroupMap: r, groupParentMap: l } = n;
|
|
3977
3993
|
let c, s;
|
|
3978
|
-
function
|
|
3994
|
+
function i(d) {
|
|
3979
3995
|
let w = c.level <= d.level ? c : d, u = c.level > d.level ? c : d;
|
|
3980
3996
|
const m = [];
|
|
3981
3997
|
for (; u && w && u !== w; )
|
|
3982
|
-
u.level > w.level ? (m.push(u), u =
|
|
3998
|
+
u.level > w.level ? (m.push(u), u = l.get(u.groupId)) : u.level === w.level && (w = l.get(w.groupId), w && m.unshift(w));
|
|
3983
3999
|
return m;
|
|
3984
4000
|
}
|
|
3985
4001
|
function p(d) {
|
|
@@ -3989,11 +4005,11 @@ function tl(e, t, n) {
|
|
|
3989
4005
|
const { conditionId: w } = d;
|
|
3990
4006
|
o.value.add(w), c = o.value.size === 0 ? r.get(w) : c;
|
|
3991
4007
|
const u = r.get(d.conditionId);
|
|
3992
|
-
|
|
4008
|
+
i(u).forEach((g) => p(g));
|
|
3993
4009
|
}
|
|
3994
4010
|
const b = V(() => o.value.size === 0 && a.value.size === 1), E = function(d) {
|
|
3995
4011
|
a.value.delete(d.groupId), d.items.forEach((u) => s(u)), d.children.forEach((u) => !b.value && E(u));
|
|
3996
|
-
const w =
|
|
4012
|
+
const w = l.get(d.groupId);
|
|
3997
4013
|
w && a.value.has(w.groupId) && E(w);
|
|
3998
4014
|
};
|
|
3999
4015
|
s = function(d) {
|
|
@@ -4023,10 +4039,10 @@ const lt = /* @__PURE__ */ Fe({
|
|
|
4023
4039
|
setup(e, t) {
|
|
4024
4040
|
const n = v(e.key), o = v(e.conditions), a = Pt(e), {
|
|
4025
4041
|
convertToSingleControl: r,
|
|
4026
|
-
fields:
|
|
4042
|
+
fields: l,
|
|
4027
4043
|
fieldMap: c,
|
|
4028
4044
|
loadFieldConfigs: s
|
|
4029
|
-
} = a,
|
|
4045
|
+
} = a, i = Ut(), {
|
|
4030
4046
|
addCondition: p,
|
|
4031
4047
|
changeGroupRelation: y,
|
|
4032
4048
|
getConditions: b,
|
|
@@ -4037,15 +4053,15 @@ const lt = /* @__PURE__ */ Fe({
|
|
|
4037
4053
|
removeCondition: d,
|
|
4038
4054
|
rootGroup: w,
|
|
4039
4055
|
unGroup: u
|
|
4040
|
-
} =
|
|
4056
|
+
} = i, {
|
|
4041
4057
|
createConditionValue: m
|
|
4042
|
-
} = $t(), g =
|
|
4058
|
+
} = $t(), g = nl(e, t, i), {
|
|
4043
4059
|
selectedItems: h,
|
|
4044
4060
|
toggleSelect: _
|
|
4045
4061
|
} = g, {
|
|
4046
4062
|
getCompareOperators: O
|
|
4047
|
-
} =
|
|
4048
|
-
s(!1),
|
|
4063
|
+
} = tl(e, t, a);
|
|
4064
|
+
s(!1), l.value = r(l.value), I(o.value);
|
|
4049
4065
|
function f(R) {
|
|
4050
4066
|
var $;
|
|
4051
4067
|
const P = (($ = c.get(R.fieldCode)) == null ? void 0 : $.editor) || {
|
|
@@ -4076,7 +4092,7 @@ const lt = /* @__PURE__ */ Fe({
|
|
|
4076
4092
|
"value-field": "labelCode",
|
|
4077
4093
|
"text-field": "name",
|
|
4078
4094
|
"id-field": "id",
|
|
4079
|
-
data:
|
|
4095
|
+
data: l.value,
|
|
4080
4096
|
modelValue: P.fieldCode,
|
|
4081
4097
|
"onUpdate:modelValue": (L) => P.fieldCode = L,
|
|
4082
4098
|
onChange: (L) => f(P)
|
|
@@ -4092,7 +4108,7 @@ const lt = /* @__PURE__ */ Fe({
|
|
|
4092
4108
|
onChange: (L) => x(L, P)
|
|
4093
4109
|
}, null)]), F("div", {
|
|
4094
4110
|
class: "condition-list-item-control mr-3"
|
|
4095
|
-
}, [F(
|
|
4111
|
+
}, [F(_r, {
|
|
4096
4112
|
editor: ($ = c.get(P.fieldCode)) == null ? void 0 : $.editor,
|
|
4097
4113
|
showLabel: !1,
|
|
4098
4114
|
modelValue: P.value.value,
|
|
@@ -4175,7 +4191,7 @@ const lt = /* @__PURE__ */ Fe({
|
|
|
4175
4191
|
lt.install = (e) => {
|
|
4176
4192
|
e.component(St.name, St).component(lt.name, lt);
|
|
4177
4193
|
};
|
|
4178
|
-
const
|
|
4194
|
+
const ol = [
|
|
4179
4195
|
"equal",
|
|
4180
4196
|
"notEqual",
|
|
4181
4197
|
"greaterThan",
|
|
@@ -4185,16 +4201,16 @@ const nl = [
|
|
|
4185
4201
|
"contain",
|
|
4186
4202
|
"startWidth",
|
|
4187
4203
|
"endWidth"
|
|
4188
|
-
],
|
|
4204
|
+
], al = {
|
|
4189
4205
|
equal: (e, t, n) => e && e[t] === n,
|
|
4190
4206
|
notEqual: (e, t, n) => e && e[t] !== n,
|
|
4191
4207
|
contain: (e, t, n) => e ? (e[t] || "").indexOf(n) > -1 : !1,
|
|
4192
4208
|
startWidth: (e, t, n) => e ? (e[t] || "").startsWith(n) : !1,
|
|
4193
4209
|
endWidth: (e, t, n) => e ? (e[t] || "").endsWith(n) : !1
|
|
4194
|
-
},
|
|
4210
|
+
}, rl = {
|
|
4195
4211
|
equal: (e, t, n) => e && e[t] === n,
|
|
4196
4212
|
notEqual: (e, t, n) => e && e[t] !== n
|
|
4197
|
-
},
|
|
4213
|
+
}, ll = {
|
|
4198
4214
|
equal: (e, t, n) => {
|
|
4199
4215
|
if (e) {
|
|
4200
4216
|
const o = new Date(new Date(n).toLocaleDateString()).valueOf();
|
|
@@ -4237,10 +4253,10 @@ const nl = [
|
|
|
4237
4253
|
}
|
|
4238
4254
|
return !1;
|
|
4239
4255
|
}
|
|
4240
|
-
},
|
|
4256
|
+
}, il = {
|
|
4241
4257
|
equal: (e, t, n) => e ? String(n).split(",").includes(String(e[t])) : !1,
|
|
4242
4258
|
notEqual: (e, t, n) => e ? String(n).split(",").findIndex((a) => a === String(e[t])) === -1 : !1
|
|
4243
|
-
},
|
|
4259
|
+
}, sl = {
|
|
4244
4260
|
equal: (e, t, n) => {
|
|
4245
4261
|
if (e) {
|
|
4246
4262
|
const o = Number.parseFloat(String(n)), a = Number.parseFloat(String(e[t]));
|
|
@@ -4284,13 +4300,13 @@ const nl = [
|
|
|
4284
4300
|
return !1;
|
|
4285
4301
|
}
|
|
4286
4302
|
};
|
|
4287
|
-
function
|
|
4303
|
+
function ul() {
|
|
4288
4304
|
const e = v([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } = Ut(), o = /* @__PURE__ */ new Map([
|
|
4289
|
-
["boolean",
|
|
4290
|
-
["datetime",
|
|
4291
|
-
["enum",
|
|
4292
|
-
["number",
|
|
4293
|
-
["text",
|
|
4305
|
+
["boolean", rl],
|
|
4306
|
+
["datetime", ll],
|
|
4307
|
+
["enum", il],
|
|
4308
|
+
["number", sl],
|
|
4309
|
+
["text", al]
|
|
4294
4310
|
]);
|
|
4295
4311
|
function a(y) {
|
|
4296
4312
|
t.delete(y), e.value = Array.from(t.values());
|
|
@@ -4298,13 +4314,13 @@ function sl() {
|
|
|
4298
4314
|
function r() {
|
|
4299
4315
|
t.clear(), e.value = [];
|
|
4300
4316
|
}
|
|
4301
|
-
function
|
|
4302
|
-
const { valueType: b } = y.value, E = y.compareType || "0", C =
|
|
4317
|
+
function l(y) {
|
|
4318
|
+
const { valueType: b } = y.value, E = y.compareType || "0", C = ol[Number(E)];
|
|
4303
4319
|
return o.get(b)[C];
|
|
4304
4320
|
}
|
|
4305
4321
|
function c(y) {
|
|
4306
4322
|
const b = y.relation === 2 ? 0 : 1, E = y.items.map((I) => {
|
|
4307
|
-
const T =
|
|
4323
|
+
const T = l(I);
|
|
4308
4324
|
return (w) => T(w, I.fieldCode, I.value.getValue());
|
|
4309
4325
|
}), C = y.children && y.children.length ? y.children.map((I) => c(I)) : [];
|
|
4310
4326
|
return { relation: b, filterFunctions: E, children: C };
|
|
@@ -4313,19 +4329,19 @@ function sl() {
|
|
|
4313
4329
|
const y = n(e.value);
|
|
4314
4330
|
return c(y);
|
|
4315
4331
|
}
|
|
4316
|
-
function
|
|
4317
|
-
const E = b.filterFunctions.map((I) => I(y)), C = b.children.map((I) =>
|
|
4332
|
+
function i(y, b) {
|
|
4333
|
+
const E = b.filterFunctions.map((I) => I(y)), C = b.children.map((I) => i(y, I));
|
|
4318
4334
|
return b.relation === 1 ? E.every((I) => I) && C.every((I) => I) : E.includes(!0) || C.includes(!0);
|
|
4319
4335
|
}
|
|
4320
4336
|
function p(y) {
|
|
4321
4337
|
const b = s();
|
|
4322
|
-
return
|
|
4338
|
+
return i(y, b);
|
|
4323
4339
|
}
|
|
4324
4340
|
return { apply: p, clearCondition: r, conditions: e, removeCondition: a };
|
|
4325
4341
|
}
|
|
4326
|
-
function
|
|
4342
|
+
function cl(e, t) {
|
|
4327
4343
|
var d;
|
|
4328
|
-
const { idField: n } = t, o = v(e.summary), a = v(e.group), r = v(((d = e.group) == null ? void 0 : d.groupFields) || []),
|
|
4344
|
+
const { idField: n } = t, o = v(e.summary), a = v(e.group), r = v(((d = e.group) == null ? void 0 : d.groupFields) || []), l = V(() => {
|
|
4329
4345
|
var w;
|
|
4330
4346
|
return (w = e.group) == null ? void 0 : w.enable;
|
|
4331
4347
|
}), c = V(() => {
|
|
@@ -4334,7 +4350,7 @@ function ul(e, t) {
|
|
|
4334
4350
|
}), s = V(() => {
|
|
4335
4351
|
const w = o.value;
|
|
4336
4352
|
return (w == null ? void 0 : w.groupFields) || [];
|
|
4337
|
-
}),
|
|
4353
|
+
}), i = V(() => {
|
|
4338
4354
|
const w = a.value;
|
|
4339
4355
|
return w && w.showSummary;
|
|
4340
4356
|
}), p = /* @__PURE__ */ new Map();
|
|
@@ -4384,7 +4400,7 @@ function ul(e, t) {
|
|
|
4384
4400
|
const _ = C(m.nestGroup);
|
|
4385
4401
|
u.push(..._), h += _.length;
|
|
4386
4402
|
}
|
|
4387
|
-
if (m.details && m.details.length && (u.push(...m.details), h += m.details.length),
|
|
4403
|
+
if (m.details && m.details.length && (u.push(...m.details), h += m.details.length), i.value) {
|
|
4388
4404
|
const _ = {
|
|
4389
4405
|
__fv_data_grid_group_field__: m.field,
|
|
4390
4406
|
__fv_data_grid_group_layer__: m.layer,
|
|
@@ -4412,10 +4428,10 @@ function ul(e, t) {
|
|
|
4412
4428
|
"fv-grid-group-row-icon-collapse": w.collapse
|
|
4413
4429
|
};
|
|
4414
4430
|
}
|
|
4415
|
-
return { collpaseGroupIconClass: T, generateGroupData: I, groupFields: r, shouldGroupingData:
|
|
4431
|
+
return { collpaseGroupIconClass: T, generateGroupData: I, groupFields: r, shouldGroupingData: l, showGroupPanel: c };
|
|
4416
4432
|
}
|
|
4417
|
-
function
|
|
4418
|
-
const a = v(!!e.hierarchy), { idField: r } = o, { collapseField:
|
|
4433
|
+
function dl(e, t, n, o) {
|
|
4434
|
+
const a = v(!!e.hierarchy), { idField: r } = o, { collapseField: l, hasChildrenField: c, parentIdField: s } = n, i = /* @__PURE__ */ new Map();
|
|
4419
4435
|
function p(S, B) {
|
|
4420
4436
|
const M = /* @__PURE__ */ new Map();
|
|
4421
4437
|
return S.reduce((j, D) => {
|
|
@@ -4498,15 +4514,15 @@ function cl(e, t, n, o) {
|
|
|
4498
4514
|
});
|
|
4499
4515
|
}
|
|
4500
4516
|
function g(S) {
|
|
4501
|
-
|
|
4517
|
+
i.clear(), S.forEach((j, D) => {
|
|
4502
4518
|
const N = j[r.value];
|
|
4503
|
-
|
|
4519
|
+
i.set(N, T(N, D));
|
|
4504
4520
|
});
|
|
4505
4521
|
const B = y(S), M = p(S, B);
|
|
4506
|
-
return d(
|
|
4522
|
+
return d(i, M), u(S, i), m(i), i;
|
|
4507
4523
|
}
|
|
4508
4524
|
function h(S) {
|
|
4509
|
-
const B = S[r.value], M =
|
|
4525
|
+
const B = S[r.value], M = i.get(B);
|
|
4510
4526
|
return M && M.children.size > 0;
|
|
4511
4527
|
}
|
|
4512
4528
|
function _(S) {
|
|
@@ -4518,22 +4534,22 @@ function cl(e, t, n, o) {
|
|
|
4518
4534
|
return S.forEach((j, D) => {
|
|
4519
4535
|
var $;
|
|
4520
4536
|
const N = j[r.value], R = M.has(N) ? ($ = M.get(N)) == null ? void 0 : $.map((L) => L.__fv_index__) : [], P = T(N, D);
|
|
4521
|
-
j.__fv_graph_node__ = P, j.__fv_children_index__ = R, j.__fv_descendant_index__ = [...R], j.__fv_parents__ = /* @__PURE__ */ new Map(), _(j) && (j[
|
|
4537
|
+
j.__fv_graph_node__ = P, j.__fv_children_index__ = R, j.__fv_descendant_index__ = [...R], j.__fv_parents__ = /* @__PURE__ */ new Map(), _(j) && (j[l.value] = !0);
|
|
4522
4538
|
}), b(S), C(S, B), e.showLines && I(S), S;
|
|
4523
4539
|
}
|
|
4524
4540
|
function f(S, B, M) {
|
|
4525
|
-
const D = M.value[S][r.value], N =
|
|
4541
|
+
const D = M.value[S][r.value], N = i.get(D);
|
|
4526
4542
|
if (N) {
|
|
4527
|
-
const R =
|
|
4543
|
+
const R = i.get(N.parentId);
|
|
4528
4544
|
let P = M.value.length - 1;
|
|
4529
4545
|
if (R) {
|
|
4530
4546
|
const $ = Array.from(R.children.keys()).indexOf(N.id);
|
|
4531
4547
|
if ($ === R.children.size - 1) {
|
|
4532
|
-
const
|
|
4533
|
-
P = M.value.findIndex((ce) => ce[r.value] ===
|
|
4548
|
+
const K = Array.from(R.descendant.values())[R.descendant.size - 1];
|
|
4549
|
+
P = M.value.findIndex((ce) => ce[r.value] === K.id) + 1;
|
|
4534
4550
|
} else {
|
|
4535
|
-
const
|
|
4536
|
-
P = M.value.findIndex((ce) => ce[r.value] ===
|
|
4551
|
+
const K = Array.from(R.children.values())[$ + 1];
|
|
4552
|
+
P = M.value.findIndex((ce) => ce[r.value] === K.id);
|
|
4537
4553
|
}
|
|
4538
4554
|
B[c.value] = !1, B[s.value] = R.id, M.value.splice(P, 0, B);
|
|
4539
4555
|
}
|
|
@@ -4541,24 +4557,24 @@ function cl(e, t, n, o) {
|
|
|
4541
4557
|
}
|
|
4542
4558
|
function x(S, B, M) {
|
|
4543
4559
|
const j = M.value[S], D = j[r.value];
|
|
4544
|
-
if (
|
|
4560
|
+
if (i.get(D)) {
|
|
4545
4561
|
const P = M.value.findIndex(($) => $[r.value] === D) + 1;
|
|
4546
|
-
j[c.value] = !0, j[
|
|
4562
|
+
j[c.value] = !0, j[l.value] = !1, B[c.value] = !1, B[s.value] = D, M.value.splice(P, 0, B);
|
|
4547
4563
|
}
|
|
4548
4564
|
}
|
|
4549
4565
|
function k(S, B) {
|
|
4550
|
-
const M = S[r.value], j =
|
|
4566
|
+
const M = S[r.value], j = i.get(M), D = Array.from(j.descendant.keys());
|
|
4551
4567
|
D.unshift(M);
|
|
4552
|
-
const N =
|
|
4568
|
+
const N = i.get(j.parentId);
|
|
4553
4569
|
if (N && (N.children.delete(M), N.children.size === 0)) {
|
|
4554
4570
|
const P = B.find(($) => $[r.value] === j.parentId);
|
|
4555
|
-
P[c.value] = !1, P[
|
|
4571
|
+
P[c.value] = !1, P[l.value] = !1;
|
|
4556
4572
|
}
|
|
4557
4573
|
return B.filter((P) => D.indexOf(P.id) === -1);
|
|
4558
4574
|
}
|
|
4559
4575
|
return { generateHierarchyData: O, hasRealChildren: h, insertSibling: f, insertChild: x, shouldStratifyData: a, trimmedOriginalData: k };
|
|
4560
4576
|
}
|
|
4561
|
-
const
|
|
4577
|
+
const fl = {
|
|
4562
4578
|
showCloseButton: { type: Boolean, default: !0 },
|
|
4563
4579
|
position: { type: String, default: "top-center" },
|
|
4564
4580
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -4570,16 +4586,16 @@ const dl = {
|
|
|
4570
4586
|
id: { type: String },
|
|
4571
4587
|
animate: { type: String, default: "fadeIn" },
|
|
4572
4588
|
options: { type: Object }
|
|
4573
|
-
},
|
|
4589
|
+
}, pl = {
|
|
4574
4590
|
showCloseButton: { type: Boolean, default: !0 },
|
|
4575
4591
|
animate: { type: String, default: "fadeIn" },
|
|
4576
4592
|
options: { type: Object }
|
|
4577
4593
|
}, dt = /* @__PURE__ */ Fe({
|
|
4578
4594
|
name: "Toast",
|
|
4579
|
-
props:
|
|
4595
|
+
props: pl,
|
|
4580
4596
|
emits: ["close", "click"],
|
|
4581
4597
|
setup: (e, t) => {
|
|
4582
|
-
const n = v(e.animate), o = "fadeOut", a = V(() => e.options), r = v(!1),
|
|
4598
|
+
const n = v(e.animate), o = "fadeOut", a = V(() => e.options), r = v(!1), l = V(() => {
|
|
4583
4599
|
const d = {
|
|
4584
4600
|
animated: r.value,
|
|
4585
4601
|
toast: !0
|
|
@@ -4590,7 +4606,7 @@ const dl = {
|
|
|
4590
4606
|
"f-icon": !0
|
|
4591
4607
|
};
|
|
4592
4608
|
return m[u] = !0, m;
|
|
4593
|
-
}), s = V(() => a.value.title || a.value.message),
|
|
4609
|
+
}), s = V(() => a.value.title || a.value.message), i = V(() => a.value.title && a.value.message), p = V(() => !a.value.title && a.value.message), y = V(() => e.showCloseButton), b = V(() => !!a.value.buttons || !!t.slots.default);
|
|
4594
4610
|
function E(d) {
|
|
4595
4611
|
d.stopPropagation(), d.preventDefault(), r.value = !1, setTimeout(() => {
|
|
4596
4612
|
t.emit("close", a.value);
|
|
@@ -4614,7 +4630,7 @@ const dl = {
|
|
|
4614
4630
|
}, [w.text]))), t.slots.default && t.slots.default()])]);
|
|
4615
4631
|
};
|
|
4616
4632
|
return () => F("div", {
|
|
4617
|
-
class:
|
|
4633
|
+
class: l.value
|
|
4618
4634
|
}, [y.value && F("button", {
|
|
4619
4635
|
title: "close",
|
|
4620
4636
|
class: "toast-close f-btn-icon f-bare",
|
|
@@ -4629,7 +4645,7 @@ const dl = {
|
|
|
4629
4645
|
class: c.value
|
|
4630
4646
|
}, null)]), F("div", {
|
|
4631
4647
|
class: "modal-tips-content"
|
|
4632
|
-
}, [
|
|
4648
|
+
}, [i.value && F(Ae, null, [F("h5", {
|
|
4633
4649
|
class: "toast-title modal-tips-title",
|
|
4634
4650
|
innerHTML: a.value.title
|
|
4635
4651
|
}, null), F("p", {
|
|
@@ -4649,7 +4665,7 @@ const dl = {
|
|
|
4649
4665
|
}
|
|
4650
4666
|
}), tt = /* @__PURE__ */ Fe({
|
|
4651
4667
|
name: "Notify",
|
|
4652
|
-
props:
|
|
4668
|
+
props: fl,
|
|
4653
4669
|
emits: ["close", "empty"],
|
|
4654
4670
|
setup(e, t) {
|
|
4655
4671
|
const n = V(() => ({
|
|
@@ -4659,7 +4675,7 @@ const dl = {
|
|
|
4659
4675
|
right: 12,
|
|
4660
4676
|
top: 20,
|
|
4661
4677
|
bottom: 12
|
|
4662
|
-
}, a = v(), r = v(e.options),
|
|
4678
|
+
}, a = v(), r = v(e.options), l = v(e.showCloseButton), c = V(() => e.position || "bottom-right"), s = V(() => e.timeout != null ? e.timeout : 3e3), i = V(() => {
|
|
4663
4679
|
const b = e.bottom ? e.bottom : o.bottom, E = e.top ? e.top : o.top, C = {
|
|
4664
4680
|
transition: "all 0.2s ease",
|
|
4665
4681
|
left: c.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
@@ -4684,11 +4700,11 @@ const dl = {
|
|
|
4684
4700
|
}
|
|
4685
4701
|
return () => F("div", {
|
|
4686
4702
|
class: n.value,
|
|
4687
|
-
style:
|
|
4703
|
+
style: i.value,
|
|
4688
4704
|
ref: a
|
|
4689
4705
|
}, [F(dt, {
|
|
4690
4706
|
options: r.value,
|
|
4691
|
-
showCloseButton:
|
|
4707
|
+
showCloseButton: l.value,
|
|
4692
4708
|
animate: e.animate,
|
|
4693
4709
|
onClose: (b) => y(b, r.value)
|
|
4694
4710
|
}, null)]);
|
|
@@ -4708,16 +4724,16 @@ class Yt {
|
|
|
4708
4724
|
...t
|
|
4709
4725
|
}), r = document.createElement("div");
|
|
4710
4726
|
r.style.display = "contents";
|
|
4711
|
-
const
|
|
4727
|
+
const l = Ft({
|
|
4712
4728
|
setup() {
|
|
4713
4729
|
const c = v();
|
|
4714
4730
|
function s() {
|
|
4715
4731
|
c.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
4716
|
-
n.updateNotifyPositionForClose(a, c),
|
|
4732
|
+
n.updateNotifyPositionForClose(a, c), l.unmount();
|
|
4717
4733
|
}, 220);
|
|
4718
4734
|
}
|
|
4719
4735
|
if (a.position.indexOf("top") > -1) {
|
|
4720
|
-
const
|
|
4736
|
+
const i = n.getNotifyInstances(a.position), p = i[i.length - 1];
|
|
4721
4737
|
if (p) {
|
|
4722
4738
|
const y = p.value.container.getBoundingClientRect();
|
|
4723
4739
|
a.top = y.bottom;
|
|
@@ -4740,7 +4756,7 @@ class Yt {
|
|
|
4740
4756
|
});
|
|
4741
4757
|
}
|
|
4742
4758
|
});
|
|
4743
|
-
return
|
|
4759
|
+
return l.provide("NotifyService", this), document.body.appendChild(r), l.mount(r), l;
|
|
4744
4760
|
}
|
|
4745
4761
|
getNotifyInstances(t) {
|
|
4746
4762
|
return this.notifyRefs.filter((n) => n.value.notifyPosition === t);
|
|
@@ -4759,8 +4775,8 @@ class Yt {
|
|
|
4759
4775
|
const o = this.notifyRefs.indexOf(n);
|
|
4760
4776
|
if (t.position.indexOf("top") > -1) {
|
|
4761
4777
|
const a = this.getNotifyInstances(t.position), r = a.indexOf(n);
|
|
4762
|
-
a.slice(r + 1).forEach((
|
|
4763
|
-
|
|
4778
|
+
a.slice(r + 1).forEach((l) => {
|
|
4779
|
+
l.value.container.style.top = l.value.container.offsetTop - l.value.container.offsetHeight + "px";
|
|
4764
4780
|
});
|
|
4765
4781
|
}
|
|
4766
4782
|
o > -1 && this.notifyRefs.splice(o, 1);
|
|
@@ -4769,16 +4785,16 @@ class Yt {
|
|
|
4769
4785
|
return this.createNotifyInstance(t);
|
|
4770
4786
|
}
|
|
4771
4787
|
buildNotifyProps(t, n) {
|
|
4772
|
-
let o = "", a = "", r,
|
|
4773
|
-
typeof n == "string" ? o = n : n && (o = n.message || "", a = n.title || "",
|
|
4774
|
-
const
|
|
4788
|
+
let o = "", a = "", r, l, c;
|
|
4789
|
+
typeof n == "string" ? o = n : n && (o = n.message || "", a = n.title || "", l = n.position || null, c = n.showCloseButton != null ? n.showCloseButton : null, r = n.timeout != null ? n.timeout : null);
|
|
4790
|
+
const i = {
|
|
4775
4791
|
options: {
|
|
4776
4792
|
type: t,
|
|
4777
4793
|
message: o,
|
|
4778
4794
|
title: a
|
|
4779
4795
|
}
|
|
4780
4796
|
};
|
|
4781
|
-
return
|
|
4797
|
+
return l != null && (i.position = l), c != null && (i.showCloseButton = c), r != null && (i.timeout = r), i;
|
|
4782
4798
|
}
|
|
4783
4799
|
info(t) {
|
|
4784
4800
|
const n = this.buildNotifyProps("info", t);
|
|
@@ -4805,22 +4821,22 @@ class Yt {
|
|
|
4805
4821
|
}), this.notifyRefs.length = 0;
|
|
4806
4822
|
}
|
|
4807
4823
|
}
|
|
4808
|
-
const
|
|
4824
|
+
const vl = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
4809
4825
|
tt.install = (e) => {
|
|
4810
4826
|
e.component(tt.name, tt), e.component(dt.name, dt);
|
|
4811
4827
|
const t = new Yt();
|
|
4812
|
-
e.provide(
|
|
4828
|
+
e.provide(vl, t), e.provide("FNotifyService", t);
|
|
4813
4829
|
};
|
|
4814
4830
|
function Xt(e, t, n, o, a) {
|
|
4815
4831
|
var wt;
|
|
4816
|
-
const { pageSize: r, total:
|
|
4832
|
+
const { pageSize: r, total: l, shouldRenderPagination: c, currentPage: s, mode: i } = a, p = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), I = v([]), T = v([]), d = ul(), w = cl(e, o), { generateGroupData: u, groupFields: m, shouldGroupingData: g } = w, h = v(e.data), _ = dl(e, h, n, o), {
|
|
4817
4833
|
generateHierarchyData: O,
|
|
4818
4834
|
hasRealChildren: f,
|
|
4819
4835
|
insertSibling: x,
|
|
4820
4836
|
insertChild: k,
|
|
4821
4837
|
shouldStratifyData: S,
|
|
4822
4838
|
trimmedOriginalData: B
|
|
4823
|
-
} = _, { idField: M, reviseIdentifyField: j } = o, D = v(e.newDataItem), N = v(e.data), R = v(e.data), { flatTreeData: P } =
|
|
4839
|
+
} = _, { idField: M, reviseIdentifyField: j } = o, D = v(e.newDataItem), N = v(e.data), R = v(e.data), { flatTreeData: P } = _l(e);
|
|
4824
4840
|
function $(H) {
|
|
4825
4841
|
return P(H);
|
|
4826
4842
|
}
|
|
@@ -4828,7 +4844,7 @@ function Xt(e, t, n, o, a) {
|
|
|
4828
4844
|
const H = $(e.data);
|
|
4829
4845
|
h.value = H, N.value = H, R.value = H;
|
|
4830
4846
|
}
|
|
4831
|
-
const L = v(e.summary),
|
|
4847
|
+
const L = v(e.summary), K = V(() => {
|
|
4832
4848
|
const H = L.value;
|
|
4833
4849
|
return (H == null ? void 0 : H.groupFields) || [];
|
|
4834
4850
|
});
|
|
@@ -4836,22 +4852,22 @@ function Xt(e, t, n, o, a) {
|
|
|
4836
4852
|
const ce = V(() => {
|
|
4837
4853
|
var H;
|
|
4838
4854
|
return ((H = N.value) == null ? void 0 : H.length) || 0;
|
|
4839
|
-
}), we = v(e.pagination), _e = new Yt(), ye = V(() => e.hierarchy ? 0 : c.value ?
|
|
4840
|
-
ne(() => h.value.length, (H,
|
|
4841
|
-
H !==
|
|
4855
|
+
}), we = v(e.pagination), _e = new Yt(), ye = V(() => e.hierarchy ? 0 : c.value ? i.value === "server" ? 0 : (s.value - 1) * r.value : 0), oe = V(() => c.value ? i.value === "server" ? Math.min(r.value, ce.value) : Math.min(ye.value + r.value, l.value, ce.value) : ce.value);
|
|
4856
|
+
ne(() => h.value.length, (H, J) => {
|
|
4857
|
+
H !== J && (l.value = H);
|
|
4842
4858
|
});
|
|
4843
4859
|
function re() {
|
|
4844
4860
|
var ke, Ge;
|
|
4845
|
-
N.value =
|
|
4846
|
-
const H = ye.value,
|
|
4861
|
+
N.value = Ne(h.value), g.value && (N.value = u(m.value, h.value, t)), le = K.value.reduce((Ve, ue) => (Ve.set(ue, 0), Ve), le);
|
|
4862
|
+
const H = ye.value, J = oe.value;
|
|
4847
4863
|
let te = 0;
|
|
4848
4864
|
const ge = [];
|
|
4849
4865
|
if ((ke = N.value) != null && ke.length) {
|
|
4850
4866
|
j(N.value);
|
|
4851
|
-
const
|
|
4852
|
-
for (let ue = H; ue <
|
|
4867
|
+
const Ve = M.value !== e.idField;
|
|
4868
|
+
for (let ue = H; ue < J; ue++) {
|
|
4853
4869
|
const ve = N.value[ue];
|
|
4854
|
-
ve.__fv_data_grid_group_row__ ? (te = 0, ve.__fv_data_index__ = "") : ve.__fv_data_grid_group_summary__ ? ve.__fv_data_index__ = "" : (ve.__fv_disabled__ = ve[((Ge = e.rowOption) == null ? void 0 : Ge.disabledField) || "disabled"], te++, c.value ? ve.__fv_data_index__ = te + (s.value - 1) * r.value : ve.__fv_data_index__ = te), ve.__fv_index__ = ue,
|
|
4870
|
+
ve.__fv_data_grid_group_row__ ? (te = 0, ve.__fv_data_index__ = "") : ve.__fv_data_grid_group_summary__ ? ve.__fv_data_index__ = "" : (ve.__fv_disabled__ = ve[((Ge = e.rowOption) == null ? void 0 : Ge.disabledField) || "disabled"], te++, c.value ? ve.__fv_data_index__ = te + (s.value - 1) * r.value : ve.__fv_data_index__ = te), ve.__fv_index__ = ue, Ve && (ve[M.value] = ue), K.value.forEach((Oe) => {
|
|
4855
4871
|
const Ue = le.get(Oe) || 0;
|
|
4856
4872
|
le.set(Oe, Ue + ve[Oe]);
|
|
4857
4873
|
}), ge.push(ve);
|
|
@@ -4860,17 +4876,17 @@ function Xt(e, t, n, o, a) {
|
|
|
4860
4876
|
return S.value && O(ge), R.value = [...ge], ge;
|
|
4861
4877
|
}
|
|
4862
4878
|
const de = v(re());
|
|
4863
|
-
function fe(H,
|
|
4864
|
-
const ke = (te ? re() : [...R.value]).filter((ue) => d.apply(ue)), Ge = H && H.length ? ke.filter((ue) => H.reduce((ve, Oe) => ve && Oe.filter(ue), !0)) : ke,
|
|
4865
|
-
const Oe = [...
|
|
4879
|
+
function fe(H, J, te = !1) {
|
|
4880
|
+
const ke = (te ? re() : [...R.value]).filter((ue) => d.apply(ue)), Ge = H && H.length ? ke.filter((ue) => H.reduce((ve, Oe) => ve && Oe.filter(ue), !0)) : ke, Ve = J && J.length ? Ge.sort((ue, ve) => {
|
|
4881
|
+
const Oe = [...J], Ue = Oe.shift();
|
|
4866
4882
|
let at = Ue.compare(ue[Ue.field], ve[Ue.field]);
|
|
4867
4883
|
for (; at === 0 && Oe.length !== 0; ) {
|
|
4868
|
-
const
|
|
4869
|
-
|
|
4884
|
+
const Ke = Oe.shift();
|
|
4885
|
+
Ke && (at = Ke.compare(ue[Ke.field], ve[Ke.field]));
|
|
4870
4886
|
}
|
|
4871
4887
|
return at;
|
|
4872
4888
|
}) : Ge;
|
|
4873
|
-
return de.value =
|
|
4889
|
+
return de.value = Ve.map((ue, ve) => {
|
|
4874
4890
|
if (ue.__fv_data_grid_group_row__) {
|
|
4875
4891
|
const Oe = `group_of_${ue.__fv_data_grid_group_field__}_${ue.__fv_data_grid_group_value__}`;
|
|
4876
4892
|
ue.__fv_data_grid_group_collapse__ = !!p.get(Oe);
|
|
@@ -4879,16 +4895,16 @@ function Xt(e, t, n, o, a) {
|
|
|
4879
4895
|
}), de.value;
|
|
4880
4896
|
}
|
|
4881
4897
|
function Y(H) {
|
|
4882
|
-
return C.clear(), T.value = H, T.value.reduce((
|
|
4898
|
+
return C.clear(), T.value = H, T.value.reduce((J, te) => (J.set(te.field, te), J), C), fe([], T.value);
|
|
4883
4899
|
}
|
|
4884
|
-
function X(H,
|
|
4885
|
-
return C.set(H,
|
|
4900
|
+
function X(H, J) {
|
|
4901
|
+
return C.set(H, J), T.value = Array.from(C.values()), fe([], T.value);
|
|
4886
4902
|
}
|
|
4887
4903
|
function me(H) {
|
|
4888
4904
|
return C.delete(H), T.value = Array.from(C.values()), fe([], T.value);
|
|
4889
4905
|
}
|
|
4890
|
-
function Ce(H,
|
|
4891
|
-
return y.set(H,
|
|
4906
|
+
function Ce(H, J) {
|
|
4907
|
+
return y.set(H, J), I.value = Array.from(y.values()), fe([], Array.from(C.values()));
|
|
4892
4908
|
}
|
|
4893
4909
|
function se(H) {
|
|
4894
4910
|
return y.delete(H), I.value = Array.from(y.values()), fe([], Array.from(C.values()), !0);
|
|
@@ -4896,35 +4912,35 @@ function Xt(e, t, n, o, a) {
|
|
|
4896
4912
|
function Be() {
|
|
4897
4913
|
return y.clear(), I.value = [], fe([], Array.from(C.values()), !0);
|
|
4898
4914
|
}
|
|
4899
|
-
function Se(H,
|
|
4900
|
-
const te = `group_of_${H}_${
|
|
4915
|
+
function Se(H, J) {
|
|
4916
|
+
const te = `group_of_${H}_${J}`;
|
|
4901
4917
|
p.set(te, !0);
|
|
4902
|
-
const ge = (ke) => ke[H] !==
|
|
4903
|
-
return b.set(`collapse_${H}_${
|
|
4918
|
+
const ge = (ke) => ke[H] !== J;
|
|
4919
|
+
return b.set(`collapse_${H}_${J}`, {
|
|
4904
4920
|
field: H,
|
|
4905
4921
|
fieldName: H,
|
|
4906
4922
|
fieldType: "string",
|
|
4907
|
-
filterValue:
|
|
4923
|
+
filterValue: J,
|
|
4908
4924
|
filter: ge
|
|
4909
4925
|
}), fe(Array.from(b.values()), Array.from(C.values()));
|
|
4910
4926
|
}
|
|
4911
|
-
function Te(H,
|
|
4912
|
-
const te = `group_of_${H}_${
|
|
4913
|
-
return p.set(te, !1), b.delete(`collapse_${H}_${
|
|
4927
|
+
function Te(H, J) {
|
|
4928
|
+
const te = `group_of_${H}_${J}`;
|
|
4929
|
+
return p.set(te, !1), b.delete(`collapse_${H}_${J}`), fe(Array.from(b.values()), Array.from(C.values()), !0);
|
|
4914
4930
|
}
|
|
4915
4931
|
function Pe(H) {
|
|
4916
|
-
const
|
|
4917
|
-
E.set(`fold_${
|
|
4932
|
+
const J = H.raw[M.value], te = (ge) => !ge.__fv_parents__.has(J);
|
|
4933
|
+
E.set(`fold_${J}`, {
|
|
4918
4934
|
field: "id",
|
|
4919
4935
|
fieldName: "id",
|
|
4920
4936
|
fieldType: "string",
|
|
4921
|
-
filterValue: String(
|
|
4937
|
+
filterValue: String(J),
|
|
4922
4938
|
filter: te
|
|
4923
4939
|
}), fe(Array.from(E.values()), Array.from(C.values())), O(de.value);
|
|
4924
4940
|
}
|
|
4925
4941
|
function A(H) {
|
|
4926
|
-
const
|
|
4927
|
-
E.delete(`fold_${
|
|
4942
|
+
const J = H[M.value];
|
|
4943
|
+
E.delete(`fold_${J}`);
|
|
4928
4944
|
}
|
|
4929
4945
|
function ae(H) {
|
|
4930
4946
|
A(H.raw), fe(Array.from(E.values()), Array.from(C.values()), !0), O(de.value);
|
|
@@ -4933,23 +4949,23 @@ function Xt(e, t, n, o, a) {
|
|
|
4933
4949
|
const H = re();
|
|
4934
4950
|
de.value = H, e.hierarchy && (fe(Array.from(E.values()), Array.from(C.values())), O(de.value));
|
|
4935
4951
|
}
|
|
4936
|
-
function
|
|
4937
|
-
var
|
|
4938
|
-
if (H && ((
|
|
4952
|
+
function Re(H) {
|
|
4953
|
+
var J;
|
|
4954
|
+
if (H && ((J = H[0]) != null && J.children)) {
|
|
4939
4955
|
const te = $(H);
|
|
4940
4956
|
h.value = te, N.value = te, R.value = te;
|
|
4941
4957
|
} else
|
|
4942
4958
|
h.value = H, N.value = H, R.value = H;
|
|
4943
4959
|
pe();
|
|
4944
4960
|
}
|
|
4945
|
-
function We(H,
|
|
4946
|
-
return (H && H.length ? de.value.filter((ke, Ge) => H.reduce((
|
|
4961
|
+
function We(H, J, te) {
|
|
4962
|
+
return (H && H.length ? de.value.filter((ke, Ge) => H.reduce((Ve, ue) => Ve && ue.filter(ke), !0)) : de.value).slice(J, te);
|
|
4947
4963
|
}
|
|
4948
|
-
function
|
|
4964
|
+
function Q(H) {
|
|
4949
4965
|
(H - 1) * r.value <= ce.value && pe();
|
|
4950
4966
|
}
|
|
4951
4967
|
function ee(H) {
|
|
4952
|
-
h.value.push(
|
|
4968
|
+
h.value.push(Ne(H)), de.value = re();
|
|
4953
4969
|
}
|
|
4954
4970
|
function ie(H = 0) {
|
|
4955
4971
|
if (!(H > -1))
|
|
@@ -4964,29 +4980,29 @@ function Xt(e, t, n, o, a) {
|
|
|
4964
4980
|
A(ge), k(H, te, h), pe();
|
|
4965
4981
|
}
|
|
4966
4982
|
function Me(H) {
|
|
4967
|
-
const
|
|
4968
|
-
h.value.splice(
|
|
4983
|
+
const J = H ? H - 1 : 0;
|
|
4984
|
+
h.value.splice(J, 1), pe();
|
|
4969
4985
|
}
|
|
4970
4986
|
function He(H) {
|
|
4971
|
-
const
|
|
4972
|
-
|
|
4987
|
+
const J = h.value.findIndex((te) => te[M.value] === H);
|
|
4988
|
+
J !== -1 && (h.value.splice(J, 1), pe());
|
|
4973
4989
|
}
|
|
4974
|
-
function
|
|
4975
|
-
const
|
|
4976
|
-
if (!(
|
|
4990
|
+
function Je(H) {
|
|
4991
|
+
const J = H > -1 ? h.value[H] : null;
|
|
4992
|
+
if (!(J && J.deletable !== !1))
|
|
4977
4993
|
return !1;
|
|
4978
|
-
h.value = B(
|
|
4994
|
+
h.value = B(J, h.value), pe();
|
|
4979
4995
|
}
|
|
4980
|
-
function
|
|
4996
|
+
function Ze() {
|
|
4981
4997
|
const H = b.size > 0 ? Array.from(b.values()) : [];
|
|
4982
4998
|
return fe(H, Array.from(C.values()));
|
|
4983
4999
|
}
|
|
4984
5000
|
function un(H) {
|
|
4985
5001
|
we.value && (we.value.size = H, pe());
|
|
4986
5002
|
}
|
|
4987
|
-
function cn(H,
|
|
5003
|
+
function cn(H, J) {
|
|
4988
5004
|
const te = h.value[Number(H) - 1];
|
|
4989
|
-
te.editable !== !1 ? (te.name =
|
|
5005
|
+
te.editable !== !1 ? (te.name = J, pe()) : _e.show({
|
|
4990
5006
|
showCloseButton: !1,
|
|
4991
5007
|
timeout: 3e3,
|
|
4992
5008
|
animate: "fadeIn",
|
|
@@ -5013,8 +5029,8 @@ function Xt(e, t, n, o, a) {
|
|
|
5013
5029
|
getRange: We,
|
|
5014
5030
|
getSelectionItems: dn,
|
|
5015
5031
|
hasRealChildren: f,
|
|
5016
|
-
load:
|
|
5017
|
-
navigatePageTo:
|
|
5032
|
+
load: Re,
|
|
5033
|
+
navigatePageTo: Q,
|
|
5018
5034
|
summaries: le,
|
|
5019
5035
|
totalItems: ce,
|
|
5020
5036
|
insertNewDataItem: ie,
|
|
@@ -5023,10 +5039,10 @@ function Xt(e, t, n, o, a) {
|
|
|
5023
5039
|
removeDataItem: Me,
|
|
5024
5040
|
removeDataItemById: He,
|
|
5025
5041
|
removeFilter: se,
|
|
5026
|
-
removeHierarchyDataItem:
|
|
5042
|
+
removeHierarchyDataItem: Je,
|
|
5027
5043
|
removeSorter: me,
|
|
5028
5044
|
rawView: R,
|
|
5029
|
-
refresh:
|
|
5045
|
+
refresh: Ze,
|
|
5030
5046
|
setSorters: Y,
|
|
5031
5047
|
sorters: T,
|
|
5032
5048
|
updateDataView: pe,
|
|
@@ -5036,28 +5052,28 @@ function Xt(e, t, n, o, a) {
|
|
|
5036
5052
|
originalData: h
|
|
5037
5053
|
};
|
|
5038
5054
|
}
|
|
5039
|
-
function
|
|
5055
|
+
function Qt(e) {
|
|
5040
5056
|
v(e.selection.showCheckbox || !1);
|
|
5041
5057
|
const t = V(() => {
|
|
5042
|
-
var
|
|
5043
|
-
return ((
|
|
5058
|
+
var l;
|
|
5059
|
+
return ((l = e.hierarchy) == null ? void 0 : l.collapseField) || "__fv_collapse__";
|
|
5044
5060
|
}), n = V(() => {
|
|
5045
|
-
var
|
|
5046
|
-
return ((
|
|
5061
|
+
var l;
|
|
5062
|
+
return ((l = e.hierarchy) == null ? void 0 : l.hasChildrenField) || "__fv_hasChildren__";
|
|
5047
5063
|
}), o = V(() => {
|
|
5048
|
-
var
|
|
5049
|
-
return ((
|
|
5064
|
+
var l;
|
|
5065
|
+
return ((l = e.hierarchy) == null ? void 0 : l.parentIdField) || "parent";
|
|
5050
5066
|
}), a = V(() => e.hierarchy && e.selection.showCheckbox), r = V(() => (e.treeNodeIconsData.fold || e.iconField) && e.showTreeNodeIcons);
|
|
5051
5067
|
return { collapseField: t, hasChildrenField: n, parentIdField: o, shouldShowCheckBox: a, shouldShowIcon: r };
|
|
5052
5068
|
}
|
|
5053
|
-
function
|
|
5069
|
+
function hl(e, t, n, o) {
|
|
5054
5070
|
var I, T, d, w, u, m;
|
|
5055
|
-
const { idField: a } = n, r = v(((T = (I = e.hierarchy) == null ? void 0 : I.cascadeOption) == null ? void 0 : T.autoCheckChildren) || !1),
|
|
5071
|
+
const { idField: a } = n, r = v(((T = (I = e.hierarchy) == null ? void 0 : I.cascadeOption) == null ? void 0 : T.autoCheckChildren) || !1), l = v(((w = (d = e.hierarchy) == null ? void 0 : d.cascadeOption) == null ? void 0 : w.autoCheckParent) || !1), c = v(((m = (u = e.hierarchy) == null ? void 0 : u.cascadeOption) == null ? void 0 : m.selectionRange) || "All");
|
|
5056
5072
|
ne(() => {
|
|
5057
5073
|
var g;
|
|
5058
5074
|
return (g = e.hierarchy) == null ? void 0 : g.cascadeOption;
|
|
5059
5075
|
}, (g) => {
|
|
5060
|
-
r.value = g ? !!g.autoCheckChildren : !1,
|
|
5076
|
+
r.value = g ? !!g.autoCheckChildren : !1, l.value = g ? !!g.autoCheckParent : !1, c.value = g ? g.selectionRange : "All";
|
|
5061
5077
|
});
|
|
5062
5078
|
function s(g, h) {
|
|
5063
5079
|
for (let _ = 0; _ < h.length; _++)
|
|
@@ -5065,25 +5081,25 @@ function vl(e, t, n, o) {
|
|
|
5065
5081
|
return !1;
|
|
5066
5082
|
return !0;
|
|
5067
5083
|
}
|
|
5068
|
-
function
|
|
5084
|
+
function i(g, h) {
|
|
5069
5085
|
return g.filter((O) => h.indexOf(O) === -1);
|
|
5070
5086
|
}
|
|
5071
5087
|
const p = V(() => c.value === "OnlyParent"), y = V(() => c.value === "OnlyChildren");
|
|
5072
5088
|
function b(g, h) {
|
|
5073
5089
|
let _ = g;
|
|
5074
5090
|
const O = t.value[h], f = O[a.value], x = Array.from(O.raw.__fv_descendant_index__).map((D) => t.value[D]), k = x.map((D) => D.raw[a.value]), S = s(g, k), B = s(g, [f]);
|
|
5075
|
-
return B && S && p.value && (_ =
|
|
5091
|
+
return B && S && p.value && (_ = i(g, k), x.forEach((D) => {
|
|
5076
5092
|
D.disabled = !0;
|
|
5077
|
-
})), B && S && y.value && (_ =
|
|
5093
|
+
})), B && S && y.value && (_ = i(g, [f]), x.forEach((D) => {
|
|
5078
5094
|
D.disabled = !0;
|
|
5079
5095
|
})), _;
|
|
5080
5096
|
}
|
|
5081
5097
|
function E(g, h) {
|
|
5082
5098
|
let _ = g;
|
|
5083
5099
|
const O = h[a.value], f = Array.from(h.__fv_children_index__).map((j) => t.value[j]), x = f.map((j) => j.raw[a.value]), k = s(g, x), S = s(g, [h[a.value]]);
|
|
5084
|
-
return S && k && p.value && (_ =
|
|
5100
|
+
return S && k && p.value && (_ = i(g, x), f.forEach((j) => {
|
|
5085
5101
|
j.disabled = !0;
|
|
5086
|
-
})), S && k && y.value && (_ =
|
|
5102
|
+
})), S && k && y.value && (_ = i(g, [O]), f.forEach((j) => {
|
|
5087
5103
|
j.disabled = !0;
|
|
5088
5104
|
})), _;
|
|
5089
5105
|
}
|
|
@@ -5091,10 +5107,10 @@ function vl(e, t, n, o) {
|
|
|
5091
5107
|
let _ = g.map((k) => k[a.value]);
|
|
5092
5108
|
return h.__fv_parent_index__ > 0 && (_ = b(_, h.__fv_parent_index__)), h.__fv_children_index__.length > 0 && (_ = E(_, h)), g.filter((k) => _.includes(k[a.value]));
|
|
5093
5109
|
}
|
|
5094
|
-
return { autoCheckChildren: r, autoCheckParent:
|
|
5110
|
+
return { autoCheckChildren: r, autoCheckParent: l, interactAfterCheckHierarchyItem: C };
|
|
5095
5111
|
}
|
|
5096
|
-
function
|
|
5097
|
-
const { select: r, unSelect:
|
|
5112
|
+
function Jt(e, t, n, o, a) {
|
|
5113
|
+
const { select: r, unSelect: l, indeterminate: c, getSelectedItems: s, selectedValues: i, currentSelectedDataId: p } = o, { autoCheckChildren: y, autoCheckParent: b, interactAfterCheckHierarchyItem: E } = hl(e, t, n), { idField: C } = n;
|
|
5098
5114
|
function I() {
|
|
5099
5115
|
return t.value.filter((O) => !!O.checked).map((O) => O.raw.__fv_index__);
|
|
5100
5116
|
}
|
|
@@ -5109,13 +5125,13 @@ function Qt(e, t, n, o, a) {
|
|
|
5109
5125
|
let f = O.raw.__fv_parent_index__;
|
|
5110
5126
|
for (; f !== void 0; ) {
|
|
5111
5127
|
const x = I(), k = t.value[f], S = T(k.raw.__fv_children_index__, x);
|
|
5112
|
-
S.length === k.raw.__fv_children_index__.length && S.length !== 0 ?
|
|
5128
|
+
S.length === k.raw.__fv_children_index__.length && S.length !== 0 ? l(k) : S.length === 0 ? b.value && r(k) : S.length < k.raw.__fv_children_index__.length && k.checked !== !0 && c(k), f = k.raw.__fv_parent_index__;
|
|
5113
5129
|
}
|
|
5114
5130
|
}
|
|
5115
5131
|
function u(O) {
|
|
5116
5132
|
const f = !!O.checked;
|
|
5117
5133
|
y.value && O.raw.__fv_children_index__.map((k) => t.value[k]).forEach((k) => {
|
|
5118
|
-
f ? r(k) :
|
|
5134
|
+
f ? r(k) : l(k);
|
|
5119
5135
|
});
|
|
5120
5136
|
}
|
|
5121
5137
|
function m(O) {
|
|
@@ -5144,47 +5160,47 @@ function Qt(e, t, n, o, a) {
|
|
|
5144
5160
|
}
|
|
5145
5161
|
return { getNextSelectableHierarchyItemId: _, toggleSelectHierarchyItem: m };
|
|
5146
5162
|
}
|
|
5147
|
-
function
|
|
5163
|
+
function Zt(e, t, n, o, a, r, l, c) {
|
|
5148
5164
|
var We;
|
|
5149
|
-
const { dataView: s } = t, { getVisualData:
|
|
5165
|
+
const { dataView: s } = t, { getVisualData: i, maxVisibleRowIndex: p, minVisibleRowIndex: y } = a, b = v(o.value.primaryColumnsWidth), E = v(o.value.leftColumnsWidth), C = v(o.value.rightColumnsWidth), I = ((We = e.rowOption) == null ? void 0 : We.height) || 28, T = v(0), d = v(0);
|
|
5150
5166
|
let w = 0, u = r.value - 1;
|
|
5151
5167
|
const m = v(0), g = v(0), h = v(0);
|
|
5152
5168
|
function _() {
|
|
5153
5169
|
if (s.value.length <= 0)
|
|
5154
5170
|
return 0;
|
|
5155
|
-
const
|
|
5156
|
-
return (
|
|
5171
|
+
const Q = p.value < s.value.length ? s.value[p.value] : s.value[s.value.length - 1];
|
|
5172
|
+
return (Q.__fv_data_position__ || 0) + (Q.__fv_data_height__ || 0) + Math.max(s.value.length - 1 - p.value, 0) * I;
|
|
5157
5173
|
}
|
|
5158
5174
|
const O = V(() => {
|
|
5159
|
-
const
|
|
5160
|
-
return s.value.length > r.value +
|
|
5175
|
+
const Q = _();
|
|
5176
|
+
return s.value.length > r.value + l ? Math.floor((r.value + l) / s.value.length * g.value) : Math.floor(g.value / Math.max(Q, g.value) * g.value);
|
|
5161
5177
|
}), f = V(() => Math.floor(h.value / Math.max(b.value, h.value) * m.value)), x = 0, k = 0, S = V(() => m.value - (E.value + b.value + C.value + c.value));
|
|
5162
|
-
function B(
|
|
5163
|
-
const ee = s.value.find((ie) => ie.__fv_data_position__ >
|
|
5178
|
+
function B(Q) {
|
|
5179
|
+
const ee = s.value.find((ie) => ie.__fv_data_position__ > Q);
|
|
5164
5180
|
return ee ? ee.__fv_index__ - 1 : 0;
|
|
5165
5181
|
}
|
|
5166
|
-
function M(
|
|
5167
|
-
var
|
|
5182
|
+
function M(Q) {
|
|
5183
|
+
var Je, Ze;
|
|
5168
5184
|
if (!s.value.length) {
|
|
5169
5185
|
n.value = [];
|
|
5170
5186
|
return;
|
|
5171
5187
|
}
|
|
5172
|
-
const ee = (
|
|
5188
|
+
const ee = (Je = e.pagination) != null && Je.enable ? 0 : Math.max(w - l, 0), ie = s.value[s.value.length - 1].__fv_index__, be = (Ze = e.pagination) != null && Ze.enable ? s.value.length - 1 : Math.min(u + l - 1, ie), Me = s.value[ee - 1], He = i(ee, be, Me, Q);
|
|
5173
5189
|
He.length && (n.value = [...He]);
|
|
5174
5190
|
}
|
|
5175
5191
|
const j = V(() => _() > g.value), D = V(() => Math.floor(b.value) > h.value);
|
|
5176
|
-
function N(
|
|
5177
|
-
let ee = T.value +
|
|
5192
|
+
function N(Q) {
|
|
5193
|
+
let ee = T.value + Q;
|
|
5178
5194
|
ee > x && (ee = x);
|
|
5179
5195
|
const ie = ee > x, be = _(), Me = j.value;
|
|
5180
|
-
Me && ee < g.value - be && (ee = g.value - be), (!Me || ie) && (ee = x), T.value !== ee && (T.value = ee, w = B(Math.abs(T.value)), u = w + r.value, (w < y.value || u > p.value -
|
|
5196
|
+
Me && ee < g.value - be && (ee = g.value - be), (!Me || ie) && (ee = x), T.value !== ee && (T.value = ee, w = B(Math.abs(T.value)), u = w + r.value, (w < y.value || u > p.value - l / 2) && M());
|
|
5181
5197
|
}
|
|
5182
|
-
function R(
|
|
5198
|
+
function R(Q) {
|
|
5183
5199
|
if (!D.value) {
|
|
5184
5200
|
d.value = 0;
|
|
5185
5201
|
return;
|
|
5186
5202
|
}
|
|
5187
|
-
let ee = d.value +
|
|
5203
|
+
let ee = d.value + Q;
|
|
5188
5204
|
ee > k && (ee = k), ee < S.value && (ee = S.value), d.value !== ee && (d.value = ee);
|
|
5189
5205
|
}
|
|
5190
5206
|
function P() {
|
|
@@ -5198,15 +5214,15 @@ function Jt(e, t, n, o, a, r, i, c) {
|
|
|
5198
5214
|
}), ne(o, () => {
|
|
5199
5215
|
b.value = o.value.primaryColumnsWidth, E.value = o.value.leftColumnsWidth, C.value = o.value.rightColumnsWidth;
|
|
5200
5216
|
});
|
|
5201
|
-
function L(
|
|
5202
|
-
let { deltaX: ee } =
|
|
5203
|
-
return typeof ee > "u" && (ee = -1 *
|
|
5217
|
+
function L(Q) {
|
|
5218
|
+
let { deltaX: ee } = Q.deltaX, ie = -1 * Q.deltaY;
|
|
5219
|
+
return typeof ee > "u" && (ee = -1 * Q.wheelDeltaX / 6), typeof ie > "u" && (ie = Q.wheelDeltaY / 6), Q.deltaMode && Q.deltaMode === 1 && (ee *= 10, ie *= 10), Q.shiftKey ? { deltaY: -ie, deltaX: -ee } : { deltaX: ee, deltaY: ie };
|
|
5204
5220
|
}
|
|
5205
|
-
function
|
|
5221
|
+
function K(Q) {
|
|
5206
5222
|
if (e.disabled)
|
|
5207
5223
|
return;
|
|
5208
|
-
|
|
5209
|
-
const { deltaX: ee, deltaY: ie } = L(
|
|
5224
|
+
Q.preventDefault(), Q.stopPropagation();
|
|
5225
|
+
const { deltaX: ee, deltaY: ie } = L(Q);
|
|
5210
5226
|
N(ie), R(ee);
|
|
5211
5227
|
}
|
|
5212
5228
|
const le = V(() => ({
|
|
@@ -5238,8 +5254,8 @@ function Jt(e, t, n, o, a, r, i, c) {
|
|
|
5238
5254
|
})), Y = V(() => ({
|
|
5239
5255
|
width: `${C.value}px`
|
|
5240
5256
|
})), X = V(() => {
|
|
5241
|
-
const
|
|
5242
|
-
return T.value / (g.value -
|
|
5257
|
+
const Q = _();
|
|
5258
|
+
return T.value / (g.value - Q) * (g.value - O.value);
|
|
5243
5259
|
}), me = V(() => ({
|
|
5244
5260
|
height: `${O.value}px`,
|
|
5245
5261
|
top: `${X.value}px`
|
|
@@ -5247,38 +5263,38 @@ function Jt(e, t, n, o, a, r, i, c) {
|
|
|
5247
5263
|
width: `${f.value}px`,
|
|
5248
5264
|
left: `${Ce.value}px`
|
|
5249
5265
|
})), Be = v(!1), Se = v(-1), Te = v(-1), Pe = v();
|
|
5250
|
-
function A(
|
|
5266
|
+
function A(Q) {
|
|
5251
5267
|
if (Be.value && Te.value !== -1) {
|
|
5252
|
-
const ee = Te.value -
|
|
5268
|
+
const ee = Te.value - Q.pageX, ie = m.value - f.value;
|
|
5253
5269
|
if (Math.abs(ee) <= ie) {
|
|
5254
5270
|
const be = ee / (h.value - f.value) * (b.value - h.value);
|
|
5255
|
-
R(be), Te.value =
|
|
5271
|
+
R(be), Te.value = Q.pageX;
|
|
5256
5272
|
}
|
|
5257
5273
|
}
|
|
5258
5274
|
}
|
|
5259
|
-
function ae(
|
|
5275
|
+
function ae(Q) {
|
|
5260
5276
|
if (Be.value && Se.value !== -1) {
|
|
5261
|
-
const ee = Se.value -
|
|
5277
|
+
const ee = Se.value - Q.pageY, ie = _(), be = ie - O.value;
|
|
5262
5278
|
if (Math.abs(ee) <= be) {
|
|
5263
5279
|
const Me = ee / (g.value - O.value) * (ie - g.value);
|
|
5264
|
-
N(Me), Se.value =
|
|
5280
|
+
N(Me), Se.value = Q.pageY;
|
|
5265
5281
|
}
|
|
5266
5282
|
}
|
|
5267
5283
|
}
|
|
5268
|
-
function pe(
|
|
5284
|
+
function pe(Q) {
|
|
5269
5285
|
Be.value = !1, Se.value = -1, Te.value = -1, document.removeEventListener("mouseup", pe), document.removeEventListener("mousemove", A), document.removeEventListener("mousemove", ae), document.body.style.userSelect = "", Pe.value && (Pe.value.style.opacity = null);
|
|
5270
5286
|
}
|
|
5271
|
-
function
|
|
5287
|
+
function Re(Q, ee, ie) {
|
|
5272
5288
|
var He;
|
|
5273
5289
|
Be.value = !0;
|
|
5274
|
-
const be = (He =
|
|
5290
|
+
const be = (He = Q.target) == null ? void 0 : He.parentElement;
|
|
5275
5291
|
be && (be.style.opacity = "1", Pe.value = be);
|
|
5276
5292
|
const Me = ie === "horizontal" ? A : ae;
|
|
5277
|
-
ie === "vertical" && (Se.value =
|
|
5293
|
+
ie === "vertical" && (Se.value = Q.pageY), ie === "horizontal" && (Te.value = Q.pageX), ee.value && (ee.value, document.addEventListener("mousemove", Me), document.addEventListener("mouseup", pe), document.body.style.userSelect = "none");
|
|
5278
5294
|
}
|
|
5279
5295
|
return {
|
|
5280
|
-
onMouseDownScrollThumb:
|
|
5281
|
-
onWheel:
|
|
5296
|
+
onMouseDownScrollThumb: Re,
|
|
5297
|
+
onWheel: K,
|
|
5282
5298
|
dataGridWidth: m,
|
|
5283
5299
|
gridDataStyle: we,
|
|
5284
5300
|
gridHeaderColumnsStyle: fe,
|
|
@@ -5303,8 +5319,8 @@ function Jt(e, t, n, o, a, r, i, c) {
|
|
|
5303
5319
|
offsetY: T
|
|
5304
5320
|
};
|
|
5305
5321
|
}
|
|
5306
|
-
function
|
|
5307
|
-
const s = v(o.value - 1 + a),
|
|
5322
|
+
function Kt(e, t, n, o, a, r, l, c) {
|
|
5323
|
+
const s = v(o.value - 1 + a), i = v(0), { renderDataRow: p } = r, y = p, b = p;
|
|
5308
5324
|
function E(T) {
|
|
5309
5325
|
let d = p;
|
|
5310
5326
|
return T.__fv_data_grid_group_row__ && (d = y), T.__fv_data_grid_group_summary__ && (d = b), d;
|
|
@@ -5318,7 +5334,7 @@ function Zt(e, t, n, o, a, r, i, c) {
|
|
|
5318
5334
|
M.refreshKey = h, g.push(M);
|
|
5319
5335
|
}
|
|
5320
5336
|
}
|
|
5321
|
-
return
|
|
5337
|
+
return i.value = g.length > 0 ? g[0].index : 0, s.value = g.length > 0 ? g[g.length - 1].index : 0, g;
|
|
5322
5338
|
}
|
|
5323
5339
|
function I(T, d, w) {
|
|
5324
5340
|
const u = d.groupField || "", { groupValue: m } = d;
|
|
@@ -5326,20 +5342,20 @@ function Zt(e, t, n, o, a, r, i, c) {
|
|
|
5326
5342
|
const { dataView: g } = n, h = w[0].index, _ = Math.min(h + o.value + a + 1, g.value.length - 1);
|
|
5327
5343
|
return C(h, _);
|
|
5328
5344
|
}
|
|
5329
|
-
return { getVisualData: C, maxVisibleRowIndex: s, minVisibleRowIndex:
|
|
5345
|
+
return { getVisualData: C, maxVisibleRowIndex: s, minVisibleRowIndex: i, toggleGroupRow: I };
|
|
5330
5346
|
}
|
|
5331
|
-
function
|
|
5347
|
+
function ml() {
|
|
5332
5348
|
function e(t, n) {
|
|
5333
5349
|
const {
|
|
5334
5350
|
formatter: o
|
|
5335
5351
|
} = t, a = n.raw[t.field];
|
|
5336
|
-
return o.data.find((
|
|
5352
|
+
return o.data.find((l) => l.value === a).name;
|
|
5337
5353
|
}
|
|
5338
5354
|
return {
|
|
5339
5355
|
renderEnumColumn: e
|
|
5340
5356
|
};
|
|
5341
5357
|
}
|
|
5342
|
-
function
|
|
5358
|
+
function gl() {
|
|
5343
5359
|
function e(o, a) {
|
|
5344
5360
|
return o ? F("span", {
|
|
5345
5361
|
innerHTML: a.formatter.trueText
|
|
@@ -5348,23 +5364,23 @@ function ml() {
|
|
|
5348
5364
|
}, null);
|
|
5349
5365
|
}
|
|
5350
5366
|
function t(o, a) {
|
|
5351
|
-
var r,
|
|
5352
|
-
return o ? (r = a.formatter) == null ? void 0 : r.trueText : (
|
|
5367
|
+
var r, l;
|
|
5368
|
+
return o ? (r = a.formatter) == null ? void 0 : r.trueText : (l = a.formatter) == null ? void 0 : l.falseText;
|
|
5353
5369
|
}
|
|
5354
5370
|
function n(o, a) {
|
|
5355
5371
|
const {
|
|
5356
5372
|
formatter: r
|
|
5357
|
-
} = o,
|
|
5373
|
+
} = o, l = a.raw[o.field];
|
|
5358
5374
|
if (r.type === ut.TEXT)
|
|
5359
|
-
return t(
|
|
5375
|
+
return t(l, o);
|
|
5360
5376
|
if (r.type === ut.IMAGE)
|
|
5361
|
-
return e(
|
|
5377
|
+
return e(l, o);
|
|
5362
5378
|
}
|
|
5363
5379
|
return {
|
|
5364
5380
|
renderBooleanColumn: n
|
|
5365
5381
|
};
|
|
5366
5382
|
}
|
|
5367
|
-
function
|
|
5383
|
+
function yl() {
|
|
5368
5384
|
const {
|
|
5369
5385
|
formatTo: e
|
|
5370
5386
|
} = Vn();
|
|
@@ -5379,21 +5395,21 @@ function gl() {
|
|
|
5379
5395
|
renderDateColumn: n
|
|
5380
5396
|
};
|
|
5381
5397
|
}
|
|
5382
|
-
function
|
|
5398
|
+
function bl() {
|
|
5383
5399
|
const {
|
|
5384
5400
|
formatTo: e
|
|
5385
5401
|
} = jn();
|
|
5386
5402
|
function t(o, a) {
|
|
5387
5403
|
const {
|
|
5388
5404
|
formatter: r
|
|
5389
|
-
} = a,
|
|
5405
|
+
} = a, l = {
|
|
5390
5406
|
precision: r.precision,
|
|
5391
5407
|
prefix: r.prefix || "",
|
|
5392
5408
|
suffix: r.suffix || "",
|
|
5393
5409
|
decimalSeparator: r.decimal || ".",
|
|
5394
5410
|
groupSeparator: r.thousand || ""
|
|
5395
5411
|
};
|
|
5396
|
-
return e(o,
|
|
5412
|
+
return e(o, l);
|
|
5397
5413
|
}
|
|
5398
5414
|
function n(o, a) {
|
|
5399
5415
|
const r = a.raw[o.field];
|
|
@@ -5403,39 +5419,39 @@ function yl() {
|
|
|
5403
5419
|
renderNumberColumn: n
|
|
5404
5420
|
};
|
|
5405
5421
|
}
|
|
5406
|
-
function
|
|
5422
|
+
function wl() {
|
|
5407
5423
|
const {
|
|
5408
5424
|
renderBooleanColumn: e
|
|
5409
|
-
} =
|
|
5425
|
+
} = gl(), {
|
|
5410
5426
|
renderEnumColumn: t
|
|
5411
|
-
} =
|
|
5427
|
+
} = ml(), {
|
|
5412
5428
|
renderNumberColumn: n
|
|
5413
|
-
} =
|
|
5429
|
+
} = bl(), {
|
|
5414
5430
|
renderDateColumn: o
|
|
5415
|
-
} =
|
|
5431
|
+
} = yl();
|
|
5416
5432
|
function a(c) {
|
|
5417
5433
|
return c;
|
|
5418
5434
|
}
|
|
5419
5435
|
function r(c, s) {
|
|
5420
5436
|
const {
|
|
5421
|
-
formatter:
|
|
5437
|
+
formatter: i
|
|
5422
5438
|
} = s;
|
|
5423
|
-
return
|
|
5439
|
+
return i.customFormat ? new Function(`return ${i.customFormat}`)() : c;
|
|
5424
5440
|
}
|
|
5425
|
-
function
|
|
5426
|
-
const p =
|
|
5441
|
+
function l(c, s, i) {
|
|
5442
|
+
const p = i.data[s.field], {
|
|
5427
5443
|
formatter: y
|
|
5428
5444
|
} = s;
|
|
5429
|
-
return y.type === "none" ? p : y.type === "custom" ? r(p, s) : y.type === "enum" ? t(s,
|
|
5445
|
+
return y.type === "none" ? p : y.type === "custom" ? r(p, s) : y.type === "enum" ? t(s, i) : y.type === "number" ? n(s, i) : y.type === "boolean" ? e(s, i) : y.type === "date" ? o(s, i) : p;
|
|
5430
5446
|
}
|
|
5431
5447
|
return {
|
|
5432
|
-
renderFormatColumn:
|
|
5448
|
+
renderFormatColumn: l
|
|
5433
5449
|
};
|
|
5434
5450
|
}
|
|
5435
5451
|
function en(e, t, n) {
|
|
5436
5452
|
var T;
|
|
5437
|
-
const o = v(e.mergeCell), r = ((T = v(e.rowOption).value) == null ? void 0 : T.wrapContent) || !1, { updateVisualInfomation:
|
|
5438
|
-
function
|
|
5453
|
+
const o = v(e.mergeCell), r = ((T = v(e.rowOption).value) == null ? void 0 : T.wrapContent) || !1, { updateVisualInfomation: l } = n, { renderCommandColumn: c } = ha(), { renderFormatColumn: s } = wl();
|
|
5454
|
+
function i(d, w, u, m, g, h = 1) {
|
|
5439
5455
|
const _ = {
|
|
5440
5456
|
colSpan: h,
|
|
5441
5457
|
rowSpan: 1,
|
|
@@ -5449,7 +5465,7 @@ function en(e, t, n) {
|
|
|
5449
5465
|
valign: "start",
|
|
5450
5466
|
showEllipsis: !0,
|
|
5451
5467
|
getEditor: (O) => O.data,
|
|
5452
|
-
setRef: (O) =>
|
|
5468
|
+
setRef: (O) => l(O, _, m),
|
|
5453
5469
|
update: () => {
|
|
5454
5470
|
},
|
|
5455
5471
|
accept: () => {
|
|
@@ -5462,7 +5478,7 @@ function en(e, t, n) {
|
|
|
5462
5478
|
return _;
|
|
5463
5479
|
}
|
|
5464
5480
|
function p(d, w, u) {
|
|
5465
|
-
return d.getEditor = (m) => t.getEditor(m, w, m.parent), d.setRef = (m) => r &&
|
|
5481
|
+
return d.getEditor = (m) => t.getEditor(m, w, m.parent), d.setRef = (m) => r && l(m, d, u), d.update = (m) => {
|
|
5466
5482
|
m !== void 0 && (d.editingData = m);
|
|
5467
5483
|
}, d.accept = () => {
|
|
5468
5484
|
Ct(d.editingData, u, w.field), d.data = Ye(u, w.field);
|
|
@@ -5489,23 +5505,23 @@ function en(e, t, n) {
|
|
|
5489
5505
|
w.showEllipsis !== void 0 && (d.showEllipsis = w.showEllipsis), d.align = w.align || "left", d.valign = w.valign || "middle";
|
|
5490
5506
|
}
|
|
5491
5507
|
function I(d, w, u, m, g) {
|
|
5492
|
-
const h = d.readonly ? xe.readonly : xe.editable, _ =
|
|
5508
|
+
const h = d.readonly ? xe.readonly : xe.editable, _ = i(d.field, h, w, u, m);
|
|
5493
5509
|
return C(_, d), p(_, d, u), y(_, d), E(_, g, d), _;
|
|
5494
5510
|
}
|
|
5495
|
-
return { createCellByColumn: I, createCellByField:
|
|
5511
|
+
return { createCellByColumn: I, createCellByField: i };
|
|
5496
5512
|
}
|
|
5497
5513
|
function tn(e, t, n, o, a, r) {
|
|
5498
5514
|
var d, w;
|
|
5499
|
-
const
|
|
5515
|
+
const l = v(e.rowOption), c = ((d = l.value) == null ? void 0 : d.height) || 28, s = ((w = l.value) == null ? void 0 : w.wrapContent) || !1, { idField: i } = o, { collapseField: p } = n, { updateRowPosition: y } = a, { createCellByColumn: b } = r;
|
|
5500
5516
|
function E(u, m, g, h, _, O, f) {
|
|
5501
5517
|
var ce, we, _e;
|
|
5502
5518
|
const {
|
|
5503
5519
|
__fv_data_grid_group_field__: x,
|
|
5504
5520
|
__fv_data_grid_group_value__: k,
|
|
5505
5521
|
__fv_data_index__: S
|
|
5506
|
-
} = g, B = g.__fv_data_grid_group_layer__ || (g.__fv_parents__ ? (ce = g.__fv_parents__) == null ? void 0 : ce.size : 0) || 0, M = typeof g.parent == "number" ? Number(g.parent) : -1, j = g.__fv_data_grid_group_collapse__ || g[p.value], D = g.__fv_visible__ === void 0 ? !0 : g.__fv_visible__, N = g.__fv_checked__, R = g.__fv_indeterminate__, P = g.__fv_disabled__ || g[((we = e.rowOption) == null ? void 0 : we.disabledField) || "disabled"], $ = f == null ? void 0 : f.find((ye) => ye.raw[
|
|
5522
|
+
} = g, B = g.__fv_data_grid_group_layer__ || (g.__fv_parents__ ? (ce = g.__fv_parents__) == null ? void 0 : ce.size : 0) || 0, M = typeof g.parent == "number" ? Number(g.parent) : -1, j = g.__fv_data_grid_group_collapse__ || g[p.value], D = g.__fv_visible__ === void 0 ? !0 : g.__fv_visible__, N = g.__fv_checked__, R = g.__fv_indeterminate__, P = g.__fv_disabled__ || g[((we = e.rowOption) == null ? void 0 : we.disabledField) || "disabled"], $ = f == null ? void 0 : f.find((ye) => ye.raw[i.value] === g.parent), L = $ && $.collapse;
|
|
5507
5523
|
h && (h.parent, g.parent);
|
|
5508
|
-
const
|
|
5524
|
+
const K = L || $ && !$.visible, le = {
|
|
5509
5525
|
collapse: j,
|
|
5510
5526
|
data: {},
|
|
5511
5527
|
dataIndex: S,
|
|
@@ -5524,10 +5540,10 @@ function tn(e, t, n, o, a, r) {
|
|
|
5524
5540
|
setRef: (ye) => {
|
|
5525
5541
|
le.ref = ye;
|
|
5526
5542
|
},
|
|
5527
|
-
visible: D && !
|
|
5543
|
+
visible: D && !K,
|
|
5528
5544
|
status: Ie.initial
|
|
5529
5545
|
};
|
|
5530
|
-
return h || (g.__fv_data_position__ = 0), s || (le.height = c, g.__fv_data_height__ = le.height, y(le, g)), (_e =
|
|
5546
|
+
return h || (g.__fv_data_position__ = 0), s || (le.height = c, g.__fv_data_height__ = le.height, y(le, g)), (_e = l.value) != null && _e.customRowStatus && (l.value.customRowStatus(le), g.__fv_collapse__ = le.collapse, g.__fv_visible__ = le.visible, g.__fv_disabled__ = le.disabled), le;
|
|
5531
5547
|
}
|
|
5532
5548
|
function C(u, m, g, h, _, O, f) {
|
|
5533
5549
|
const x = E(Xe.data, _, m, g, h, O, f);
|
|
@@ -5539,7 +5555,7 @@ function tn(e, t, n, o, a, r) {
|
|
|
5539
5555
|
return Object.assign(u, { index: m, dataIndex: g, top: h, pre: _ });
|
|
5540
5556
|
}
|
|
5541
5557
|
function T(u, m, g, h, _, O, f) {
|
|
5542
|
-
const x = u.__fv_data_index__, k = u[
|
|
5558
|
+
const x = u.__fv_data_index__, k = u[i.value], S = t.getEditingSnapshot(k);
|
|
5543
5559
|
return S === null ? C(
|
|
5544
5560
|
O,
|
|
5545
5561
|
u,
|
|
@@ -5556,7 +5572,7 @@ function nn(e, t, n) {
|
|
|
5556
5572
|
var O;
|
|
5557
5573
|
const {
|
|
5558
5574
|
idField: o
|
|
5559
|
-
} = n, a = v(e.editable), r = v(e.editOption),
|
|
5575
|
+
} = n, a = v(e.editable), r = v(e.editOption), l = v(((O = e.rowOption) == null ? void 0 : O.wrapContent) || !1);
|
|
5560
5576
|
ne(() => e.editable, () => {
|
|
5561
5577
|
a.value = e.editable;
|
|
5562
5578
|
}), ne(() => {
|
|
@@ -5566,26 +5582,26 @@ function nn(e, t, n) {
|
|
|
5566
5582
|
r.value.editMode = f;
|
|
5567
5583
|
});
|
|
5568
5584
|
const c = /* @__PURE__ */ new Map([["boolean", "check-box"], ["datetime", "date-picker"], ["enum", "combo-list"], ["number", "number-spinner"], ["string", "input-group"], ["text", "text"], ["commands", "commands-editor"]]);
|
|
5569
|
-
let s,
|
|
5585
|
+
let s, i, p, y;
|
|
5570
5586
|
function b(f) {
|
|
5571
|
-
return
|
|
5587
|
+
return i && i.raw[o.value] === f ? i : null;
|
|
5572
5588
|
}
|
|
5573
5589
|
const E = Ee({});
|
|
5574
5590
|
function C(f, x, k = {}) {
|
|
5575
|
-
f.mode = xe.editing, s = f,
|
|
5591
|
+
f.mode = xe.editing, s = f, i = x, p = x == null ? void 0 : x.raw[f.field], y = k;
|
|
5576
5592
|
}
|
|
5577
5593
|
function I(f) {
|
|
5578
5594
|
f.accept(), f.mode = xe.editable, s = null, t.emit("endEditCell", {
|
|
5579
5595
|
cell: f,
|
|
5580
|
-
row:
|
|
5581
|
-
newValue:
|
|
5596
|
+
row: i,
|
|
5597
|
+
newValue: i == null ? void 0 : i.raw[f.field],
|
|
5582
5598
|
oldValue: p,
|
|
5583
5599
|
column: y,
|
|
5584
5600
|
editor: E
|
|
5585
5601
|
});
|
|
5586
5602
|
}
|
|
5587
5603
|
function T(f) {
|
|
5588
|
-
document.body.classList.contains("lookup-modal-open") || (s && (I(s),
|
|
5604
|
+
document.body.classList.contains("lookup-modal-open") || (s && (I(s), i && (i = void 0)), document.body.removeEventListener("click", T));
|
|
5589
5605
|
}
|
|
5590
5606
|
function d(f, x, k, S = {}) {
|
|
5591
5607
|
a.value && r.value.editMode === "cell" && x.mode === xe.editable && (s && I(s), C(x, k, S), document.body.removeEventListener("click", T), document.body.addEventListener("click", T));
|
|
@@ -5593,15 +5609,15 @@ function nn(e, t, n) {
|
|
|
5593
5609
|
function w(f) {
|
|
5594
5610
|
Object.values(f.data).filter((x) => x.mode === xe.editable && x.field !== "__commands__").forEach((x) => {
|
|
5595
5611
|
x.mode = xe.editing;
|
|
5596
|
-
}), f.status = Ie.editing,
|
|
5612
|
+
}), f.status = Ie.editing, i = f;
|
|
5597
5613
|
}
|
|
5598
5614
|
function u(f, x) {
|
|
5599
5615
|
Object.values(f.data).filter((k) => k.mode === xe.editing).forEach((k) => {
|
|
5600
5616
|
x ? k.accept() : k.cancel(), k.mode = xe.editable;
|
|
5601
|
-
}), f.status = Ie.initial,
|
|
5617
|
+
}), f.status = Ie.initial, i === f && (i = void 0);
|
|
5602
5618
|
}
|
|
5603
5619
|
function m(f) {
|
|
5604
|
-
a.value && r.value.editMode === "row" &&
|
|
5620
|
+
a.value && r.value.editMode === "row" && i !== f && (i && u(i, !1), w(f));
|
|
5605
5621
|
}
|
|
5606
5622
|
function g(f) {
|
|
5607
5623
|
u(f, !0), f.status = Ie.initial;
|
|
@@ -5613,7 +5629,7 @@ function nn(e, t, n) {
|
|
|
5613
5629
|
const S = x.dataType, B = x.editor || {
|
|
5614
5630
|
type: c.get(S) || "input-group"
|
|
5615
5631
|
};
|
|
5616
|
-
return !
|
|
5632
|
+
return !l.value && B.type === "text" && (B.type = "input-group"), B ? (B.context = {
|
|
5617
5633
|
rowData: k.raw,
|
|
5618
5634
|
column: x,
|
|
5619
5635
|
cell: f,
|
|
@@ -5649,15 +5665,15 @@ function on(e) {
|
|
|
5649
5665
|
function an(e, t, n, o) {
|
|
5650
5666
|
const { idField: a } = o, {
|
|
5651
5667
|
currentSelectedDataId: r,
|
|
5652
|
-
multiSelectOnClickRow:
|
|
5668
|
+
multiSelectOnClickRow: l,
|
|
5653
5669
|
multiSelectOnClickRowWithShift: c,
|
|
5654
5670
|
selectItem: s,
|
|
5655
|
-
selectedValues:
|
|
5671
|
+
selectedValues: i,
|
|
5656
5672
|
toggleSelectItem: p,
|
|
5657
5673
|
enableSelectRow: y
|
|
5658
5674
|
} = n, b = v(0), E = v(-1);
|
|
5659
5675
|
function C(h) {
|
|
5660
|
-
return y.value && (c.value ?
|
|
5676
|
+
return y.value && (c.value ? i.value.includes(h.raw[a.value]) : h.raw[a.value] === r.value);
|
|
5661
5677
|
}
|
|
5662
5678
|
function I(h) {
|
|
5663
5679
|
var O;
|
|
@@ -5696,7 +5712,7 @@ function an(e, t, n, o) {
|
|
|
5696
5712
|
function w(h, _) {
|
|
5697
5713
|
if (_.disabled)
|
|
5698
5714
|
return;
|
|
5699
|
-
c.value && h.shiftKey ||
|
|
5715
|
+
c.value && h.shiftKey || l.value ? p(_) : s(_), d(_), h.stopPropagation();
|
|
5700
5716
|
}
|
|
5701
5717
|
function u(h, _) {
|
|
5702
5718
|
}
|
|
@@ -5727,7 +5743,7 @@ function an(e, t, n, o) {
|
|
|
5727
5743
|
};
|
|
5728
5744
|
}
|
|
5729
5745
|
function rn(e, t, n, o, a) {
|
|
5730
|
-
const { idField: r } = n,
|
|
5746
|
+
const { idField: r } = n, l = v(""), c = V(() => e.selection.enableSelectRow), s = v(e.selection.multiSelect ?? !1), i = v(e.selection.multiSelectMode), p = v(e.selection.showCheckbox), y = v(e.selection.showSelectAll), b = v(e.selectionValues);
|
|
5731
5747
|
ne(() => e.selection.showSelectAll, ($, L) => {
|
|
5732
5748
|
$ !== L && (y.value = $);
|
|
5733
5749
|
});
|
|
@@ -5735,13 +5751,13 @@ function rn(e, t, n, o, a) {
|
|
|
5735
5751
|
return t.getSelectionItems(b.value);
|
|
5736
5752
|
}
|
|
5737
5753
|
function C() {
|
|
5738
|
-
const $ = o.value.reduce((
|
|
5739
|
-
return b.value.map((
|
|
5754
|
+
const $ = o.value.reduce((K, le) => (K.set(le.raw[r.value], le), K), /* @__PURE__ */ new Map());
|
|
5755
|
+
return b.value.map((K) => $.get(K)).filter((K) => !!K);
|
|
5740
5756
|
}
|
|
5741
5757
|
const I = V(() => c.value && s.value), T = V(() => !!e.hierarchy), d = V(() => {
|
|
5742
|
-
const $ = p.value &&
|
|
5758
|
+
const $ = p.value && i.value === "DependOnCheck";
|
|
5743
5759
|
return I.value && $;
|
|
5744
|
-
}), w = V(() => I.value && !p.value), u = V(() => I.value && p.value &&
|
|
5760
|
+
}), w = V(() => I.value && !p.value), u = V(() => I.value && p.value && i.value === "OnCheckAndClick");
|
|
5745
5761
|
V(() => u.value);
|
|
5746
5762
|
function m() {
|
|
5747
5763
|
const $ = t.getSelectionItems(b.value);
|
|
@@ -5759,67 +5775,67 @@ function rn(e, t, n, o, a) {
|
|
|
5759
5775
|
}), ne(() => e.selectionValues, ($) => {
|
|
5760
5776
|
b.value = $, g();
|
|
5761
5777
|
}, { immediate: !0 }), ne(() => e.selection, ($) => {
|
|
5762
|
-
s.value = !!$.multiSelect,
|
|
5778
|
+
s.value = !!$.multiSelect, i.value = $.multiSelectMode || "DependOnCheck", p.value = !!$.showCheckbox;
|
|
5763
5779
|
});
|
|
5764
5780
|
const h = V(() => !s.value);
|
|
5765
5781
|
function _($) {
|
|
5766
5782
|
return $.raw[r.value] || "";
|
|
5767
5783
|
}
|
|
5768
5784
|
function O($) {
|
|
5769
|
-
return b.value.findIndex((
|
|
5785
|
+
return b.value.findIndex((K) => K === _($));
|
|
5770
5786
|
}
|
|
5771
5787
|
function f() {
|
|
5772
|
-
C().forEach((
|
|
5773
|
-
|
|
5774
|
-
}), t.getSelectionItems(b.value).forEach((
|
|
5775
|
-
|
|
5776
|
-
}), b.value = [],
|
|
5788
|
+
C().forEach((K) => {
|
|
5789
|
+
K.checked = !1;
|
|
5790
|
+
}), t.getSelectionItems(b.value).forEach((K) => {
|
|
5791
|
+
K.__fv_checked__ = !1;
|
|
5792
|
+
}), b.value = [], l.value = "";
|
|
5777
5793
|
}
|
|
5778
5794
|
function x($) {
|
|
5779
5795
|
const L = $.raw;
|
|
5780
5796
|
L.__fv_checked__ = !0, L.__fv_indeterminate__ = !1;
|
|
5781
|
-
const
|
|
5782
|
-
|
|
5797
|
+
const K = new Set(b.value);
|
|
5798
|
+
K.add(L[r.value]), b.value = Array.from(K.values()), $.checked = !0, $.indeterminate = !1, l.value = $.raw[r.value];
|
|
5783
5799
|
}
|
|
5784
5800
|
function k($) {
|
|
5785
5801
|
const L = $.raw;
|
|
5786
|
-
L.__fv_checked__ = !1, L.__fv_indeterminate__ = !1, b.value = b.value.filter((
|
|
5802
|
+
L.__fv_checked__ = !1, L.__fv_indeterminate__ = !1, b.value = b.value.filter((K) => K !== L[r.value]), $.checked = !1, $.indeterminate = !1, l.value = "";
|
|
5787
5803
|
}
|
|
5788
5804
|
function S($) {
|
|
5789
5805
|
const L = $.raw;
|
|
5790
|
-
L.__fv_checked__ = !1, L.__fv_indeterminate__ = !0, b.value = b.value.filter((
|
|
5806
|
+
L.__fv_checked__ = !1, L.__fv_indeterminate__ = !0, b.value = b.value.filter((K) => K !== L[r.value]), $.checked = !1, $.indeterminate = !0;
|
|
5791
5807
|
}
|
|
5792
5808
|
function B($) {
|
|
5793
5809
|
h.value && f(), $.checked ? k($) : x($), m();
|
|
5794
5810
|
}
|
|
5795
5811
|
function M($) {
|
|
5796
|
-
$.raw[r.value] !==
|
|
5812
|
+
$.raw[r.value] !== l.value && (f(), x($), m());
|
|
5797
5813
|
}
|
|
5798
5814
|
function j($) {
|
|
5799
|
-
const L = o.value.find((
|
|
5815
|
+
const L = o.value.find((K) => K.raw[r.value] === $);
|
|
5800
5816
|
L && M(L);
|
|
5801
5817
|
}
|
|
5802
5818
|
function D($) {
|
|
5803
|
-
const L = o.value.filter((
|
|
5804
|
-
L && L.length && (f(), L.forEach((
|
|
5805
|
-
x(
|
|
5819
|
+
const L = o.value.filter((K) => $.includes(K.raw[r.value]));
|
|
5820
|
+
L && L.length && (f(), L.forEach((K) => {
|
|
5821
|
+
x(K);
|
|
5806
5822
|
}), m());
|
|
5807
5823
|
}
|
|
5808
5824
|
function N() {
|
|
5809
|
-
o.value.forEach(($) => x($)),
|
|
5825
|
+
o.value.forEach(($) => x($)), l.value = "", m();
|
|
5810
5826
|
}
|
|
5811
5827
|
function R() {
|
|
5812
|
-
b.value.splice(0, b.value.length),
|
|
5828
|
+
b.value.splice(0, b.value.length), l.value = "", o.value.forEach(($) => {
|
|
5813
5829
|
const L = $.raw;
|
|
5814
5830
|
L.__fv_checked__ = !1, L.__fv_indeterminate__ = !1, $.checked = !1, $.indeterminate = !1;
|
|
5815
5831
|
}), m();
|
|
5816
5832
|
}
|
|
5817
5833
|
function P() {
|
|
5818
|
-
return o.value.find(($) => $.raw[r.value] ===
|
|
5834
|
+
return o.value.find(($) => $.raw[r.value] === l.value);
|
|
5819
5835
|
}
|
|
5820
5836
|
return {
|
|
5821
5837
|
clearSelection: f,
|
|
5822
|
-
currentSelectedDataId:
|
|
5838
|
+
currentSelectedDataId: l,
|
|
5823
5839
|
enableMultiSelect: s,
|
|
5824
5840
|
enableSelectRow: c,
|
|
5825
5841
|
findIndexInSelectedItems: O,
|
|
@@ -5827,7 +5843,7 @@ function rn(e, t, n, o, a) {
|
|
|
5827
5843
|
getSelectionRow: P,
|
|
5828
5844
|
indeterminate: S,
|
|
5829
5845
|
isSelectingHirarchyItem: T,
|
|
5830
|
-
multiSelectMode:
|
|
5846
|
+
multiSelectMode: i,
|
|
5831
5847
|
multiSelectOnClickRow: u,
|
|
5832
5848
|
multiSelectOnClickRowWithShift: w,
|
|
5833
5849
|
multiSelectOnlyOnCheck: d,
|
|
@@ -5844,12 +5860,12 @@ function rn(e, t, n, o, a) {
|
|
|
5844
5860
|
unSelectAll: R
|
|
5845
5861
|
};
|
|
5846
5862
|
}
|
|
5847
|
-
function
|
|
5863
|
+
function je(e) {
|
|
5848
5864
|
return typeof e > "u";
|
|
5849
5865
|
}
|
|
5850
5866
|
function ln(e) {
|
|
5851
5867
|
var y, b, E, C, I, T, d, w;
|
|
5852
|
-
const t = v((y = e.pagination) == null ? void 0 : y.enable), n = v(((b = e.pagination) == null ? void 0 : b.index) || 1), o = v((E = e.pagination) == null ? void 0 : E.size), a = v((C = e.pagination) == null ? void 0 : C.sizeLimits), r = v((I = e.pagination) == null ? void 0 : I.mode),
|
|
5868
|
+
const t = v((y = e.pagination) == null ? void 0 : y.enable), n = v(((b = e.pagination) == null ? void 0 : b.index) || 1), o = v((E = e.pagination) == null ? void 0 : E.size), a = v((C = e.pagination) == null ? void 0 : C.sizeLimits), r = v((I = e.pagination) == null ? void 0 : I.mode), l = v((T = e.pagination) == null ? void 0 : T.showIndex), c = v((d = e.pagination) == null ? void 0 : d.showLimits), s = v(((w = e.pagination) == null ? void 0 : w.total) || 0), i = v(s.value || e.data.length || 0);
|
|
5853
5869
|
return ne(() => {
|
|
5854
5870
|
var u;
|
|
5855
5871
|
return (u = e.pagination) == null ? void 0 : u.sizeLimits;
|
|
@@ -5862,7 +5878,7 @@ function ln(e) {
|
|
|
5862
5878
|
var u;
|
|
5863
5879
|
return (u = e.pagination) == null ? void 0 : u.showIndex;
|
|
5864
5880
|
}, (u, m) => {
|
|
5865
|
-
u !== m && (
|
|
5881
|
+
u !== m && (l.value = u);
|
|
5866
5882
|
}), ne(() => {
|
|
5867
5883
|
var u;
|
|
5868
5884
|
return (u = e.pagination) == null ? void 0 : u.showLimits;
|
|
@@ -5872,7 +5888,7 @@ function ln(e) {
|
|
|
5872
5888
|
var u;
|
|
5873
5889
|
return (u = e.pagination) == null ? void 0 : u.total;
|
|
5874
5890
|
}, (u, m) => {
|
|
5875
|
-
u !== m && (s.value = u,
|
|
5891
|
+
u !== m && (s.value = u, i.value = u);
|
|
5876
5892
|
}), ne(() => {
|
|
5877
5893
|
var u;
|
|
5878
5894
|
return (u = e.pagination) == null ? void 0 : u.enable;
|
|
@@ -5883,24 +5899,24 @@ function ln(e) {
|
|
|
5883
5899
|
pageSize: o,
|
|
5884
5900
|
pageList: a,
|
|
5885
5901
|
pageTotal: s,
|
|
5886
|
-
total:
|
|
5902
|
+
total: i,
|
|
5887
5903
|
shouldRenderPagination: t,
|
|
5888
|
-
showPageIndex:
|
|
5904
|
+
showPageIndex: l,
|
|
5889
5905
|
showPageList: c,
|
|
5890
5906
|
mode: r,
|
|
5891
5907
|
updatePagination: (u) => {
|
|
5892
5908
|
if (!u)
|
|
5893
5909
|
return;
|
|
5894
5910
|
const { enable: m, total: g, size: h, index: _, sizeLimits: O, showIndex: f, showLimits: x, mode: k } = u;
|
|
5895
|
-
|
|
5911
|
+
je(m) || (t.value = m), je(_) || (n.value = _), je(h) || (o.value = h), je(O) || (a.value = O), je(f) || (l.value = f), je(x) || (c.value = x), je(g) || (s.value = g), je(k) || (r.value = k);
|
|
5896
5912
|
}
|
|
5897
5913
|
};
|
|
5898
5914
|
}
|
|
5899
|
-
function
|
|
5900
|
-
const t = "parent", n = "layer", o = "hasChildren", a = (r,
|
|
5915
|
+
function _l(e) {
|
|
5916
|
+
const t = "parent", n = "layer", o = "hasChildren", a = (r, l = 1, c = [], s = null) => (r = r || [], r.reduce((i, p) => (p.id = p.id || p.data[e.idField], p[t] = s, p[n] = l, p[o] = !1, p = { ...p, ...p.data }, c.push(p), p.children && p.children.length && (p[o] = !0, a(p.children, l + 1, c, p.id)), i), c), c);
|
|
5901
5917
|
return { flatTreeData: a };
|
|
5902
5918
|
}
|
|
5903
|
-
function sn(e, t, n, o, a, r,
|
|
5919
|
+
function sn(e, t, n, o, a, r, l, c, s, i, p, y, b) {
|
|
5904
5920
|
const {
|
|
5905
5921
|
calculateCellPositionInRow: E
|
|
5906
5922
|
} = o, {
|
|
@@ -5909,7 +5925,7 @@ function sn(e, t, n, o, a, r, i, c, s, l, p, y, b) {
|
|
|
5909
5925
|
gridDataStyle: I
|
|
5910
5926
|
} = b, {
|
|
5911
5927
|
renderDataRow: T
|
|
5912
|
-
} =
|
|
5928
|
+
} = va(e, t, C, n, r, l, c, s, i, p);
|
|
5913
5929
|
function d() {
|
|
5914
5930
|
const u = E(C.value.primaryColumns);
|
|
5915
5931
|
return n.value.filter((m) => m.visible !== !1).map((m) => T(m, u, "primary", C.value.primaryColumns));
|
|
@@ -5929,7 +5945,7 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
5929
5945
|
props: ht,
|
|
5930
5946
|
emits: ["outputValue", "currentEvent", "selectionChange"],
|
|
5931
5947
|
setup(e, t) {
|
|
5932
|
-
const n = v(), o = v(!1), a = v([]), r = on(e),
|
|
5948
|
+
const n = v(), o = v(!1), a = v([]), r = on(e), l = Qt(e), c = ln(e), s = Xt(e, /* @__PURE__ */ new Map(), l, r, c), i = rn(e, s, r, a, t), p = Jt(e, a, r, i, t), y = V(() => ({
|
|
5933
5949
|
"fv-tree": !0
|
|
5934
5950
|
})), b = V(() => ({
|
|
5935
5951
|
"fv-tree-content": !0
|
|
@@ -5946,15 +5962,15 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
5946
5962
|
}
|
|
5947
5963
|
const d = v(e.columns), w = Rt(e), {
|
|
5948
5964
|
columnContext: u
|
|
5949
|
-
} = w, m = 0, g = 100, h = V(() => Math.min(s.dataView.value.length, g)), _ = nn(e, t, r), O = gt(), f = en(e, {}, O), x = tn(e, _,
|
|
5965
|
+
} = w, m = 0, g = 100, h = V(() => Math.min(s.dataView.value.length, g)), _ = nn(e, t, r), O = gt(), f = en(e, {}, O), x = tn(e, _, l, r, O, f), k = Kt(e, d, s, h, m, x), {
|
|
5950
5966
|
getVisualData: S
|
|
5951
5967
|
} = k, B = mt(e, u);
|
|
5952
5968
|
a.value = S(0, h.value + m - 1);
|
|
5953
|
-
const M = an(e, t,
|
|
5969
|
+
const M = an(e, t, i, r), j = Zt(e, s, a, u, k, h, m, v(0)), {
|
|
5954
5970
|
renderTreeArea: D
|
|
5955
|
-
} = sn(e, t, a, B, w, s, _,
|
|
5971
|
+
} = sn(e, t, a, B, w, s, _, l, M, i, p, k, j);
|
|
5956
5972
|
function N() {
|
|
5957
|
-
const oe =
|
|
5973
|
+
const oe = i.getSelectionRow();
|
|
5958
5974
|
return oe ? oe.dataIndex - 1 : -1;
|
|
5959
5975
|
}
|
|
5960
5976
|
function R() {
|
|
@@ -5967,24 +5983,24 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
5967
5983
|
}
|
|
5968
5984
|
function $() {
|
|
5969
5985
|
const oe = N(), re = p.getNextSelectableHierarchyItemId(oe);
|
|
5970
|
-
s.removeHierarchyDataItem(oe), a.value = S(0, h.value + m - 1), re &&
|
|
5986
|
+
s.removeHierarchyDataItem(oe), a.value = S(0, h.value + m - 1), re && i.selectItemById(re);
|
|
5971
5987
|
}
|
|
5972
5988
|
function L(oe, re) {
|
|
5973
5989
|
s.editDataItem(oe, re), a.value = S(0, h.value + m - 1);
|
|
5974
5990
|
}
|
|
5975
|
-
function
|
|
5991
|
+
function K() {
|
|
5976
5992
|
}
|
|
5977
5993
|
function le() {
|
|
5978
5994
|
}
|
|
5979
5995
|
function ce(oe) {
|
|
5980
5996
|
if (oe > -1) {
|
|
5981
5997
|
const re = a.value[oe];
|
|
5982
|
-
re &&
|
|
5998
|
+
re && i.selectItem(re);
|
|
5983
5999
|
}
|
|
5984
6000
|
}
|
|
5985
6001
|
function we(oe) {
|
|
5986
6002
|
if (oe) {
|
|
5987
|
-
const re =
|
|
6003
|
+
const re = i.getSelectionRow();
|
|
5988
6004
|
if (s.load(oe), a.value = S(0, h.value + m - 1), re && re.raw && re.raw.originalId) {
|
|
5989
6005
|
const de = oe.findIndex((fe) => fe.originalId === re.raw.originalId);
|
|
5990
6006
|
de > -1 && ce(de);
|
|
@@ -5992,24 +6008,24 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
5992
6008
|
}
|
|
5993
6009
|
}
|
|
5994
6010
|
function _e() {
|
|
5995
|
-
|
|
6011
|
+
i.clearSelection();
|
|
5996
6012
|
}
|
|
5997
6013
|
function ye(oe) {
|
|
5998
|
-
|
|
6014
|
+
i.selectItemById(oe);
|
|
5999
6015
|
}
|
|
6000
6016
|
return t.expose({
|
|
6001
6017
|
addNewDataItem: R,
|
|
6002
6018
|
addNewChildDataItem: P,
|
|
6003
6019
|
removeDataItem: $,
|
|
6004
6020
|
editDataItem: L,
|
|
6005
|
-
acceptDataItem:
|
|
6021
|
+
acceptDataItem: K,
|
|
6006
6022
|
cancelDataItem: le,
|
|
6007
6023
|
selectItem: ce,
|
|
6008
6024
|
updateDataSource: we,
|
|
6009
6025
|
clearSelection: _e,
|
|
6010
6026
|
selectItemById: ye
|
|
6011
6027
|
}), ne(() => [e.data], ([oe]) => {
|
|
6012
|
-
const re =
|
|
6028
|
+
const re = i.getSelectionRow();
|
|
6013
6029
|
if (s.load(oe), a.value = S(0, h.value + m - 1), re && re.raw && re.raw.originalId) {
|
|
6014
6030
|
const de = oe.findIndex((fe) => fe.originalId === re.raw.originalId);
|
|
6015
6031
|
de > -1 && ce(de);
|
|
@@ -6029,14 +6045,14 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
6029
6045
|
}
|
|
6030
6046
|
}, [D(), I(), T()])]);
|
|
6031
6047
|
}
|
|
6032
|
-
}),
|
|
6048
|
+
}), Cl = /* @__PURE__ */ Fe({
|
|
6033
6049
|
name: "FTreeViewDesign",
|
|
6034
6050
|
props: ht,
|
|
6035
6051
|
emits: ["outputValue", "currentEvent", "selectionChange"],
|
|
6036
6052
|
setup(e, t) {
|
|
6037
|
-
const n = v(), o = Cn("design-item-context"), a =
|
|
6053
|
+
const n = v(), o = Cn("design-item-context"), a = Qa(n, o);
|
|
6038
6054
|
v(e.idField);
|
|
6039
|
-
const r = v(),
|
|
6055
|
+
const r = v(), l = v(!1), c = v([]), s = Qt(e), i = on(e), p = ln(e), y = Xt(e, /* @__PURE__ */ new Map(), s, i, p), b = rn(e, y, i, c, t), E = Jt(e, c, i, b, t), C = V(() => ({
|
|
6040
6056
|
"fv-tree": !0
|
|
6041
6057
|
})), I = V(() => ({
|
|
6042
6058
|
"fv-tree-content": !0
|
|
@@ -6053,11 +6069,11 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
6053
6069
|
}
|
|
6054
6070
|
const m = v(e.columns), g = Rt(e), {
|
|
6055
6071
|
columnContext: h
|
|
6056
|
-
} = g, _ = 0, O = V(() => y.dataView.value.length), f = nn(e, t,
|
|
6072
|
+
} = g, _ = 0, O = V(() => y.dataView.value.length), f = nn(e, t, i), x = gt(), k = en(e, {}, x), S = tn(e, f, s, i, x, k), B = Kt(e, m, y, O, _, S), {
|
|
6057
6073
|
getVisualData: M
|
|
6058
6074
|
} = B, j = mt(e, h);
|
|
6059
6075
|
c.value = M(0, O.value + _ - 1);
|
|
6060
|
-
const D = an(e, t, b,
|
|
6076
|
+
const D = an(e, t, b, i), N = Zt(e, y, c, h, B, O, _, v(0)), {
|
|
6061
6077
|
renderTreeArea: R
|
|
6062
6078
|
} = sn(e, t, c, j, g, y, f, s, D, b, E, B, N);
|
|
6063
6079
|
return t.expose(a.value), () => F("div", {
|
|
@@ -6068,10 +6084,10 @@ const nt = /* @__PURE__ */ Fe({
|
|
|
6068
6084
|
ref: r,
|
|
6069
6085
|
class: I.value,
|
|
6070
6086
|
onMouseover: () => {
|
|
6071
|
-
|
|
6087
|
+
l.value = !0;
|
|
6072
6088
|
},
|
|
6073
6089
|
onMouseleave: () => {
|
|
6074
|
-
|
|
6090
|
+
l.value = !1;
|
|
6075
6091
|
}
|
|
6076
6092
|
}, [R(), w(), u()])]);
|
|
6077
6093
|
}
|
|
@@ -6080,12 +6096,12 @@ nt.register = (e, t, n) => {
|
|
|
6080
6096
|
e["tree-view"] = nt, t["tree-view"] = Bt;
|
|
6081
6097
|
};
|
|
6082
6098
|
nt.registerDesigner = (e, t, n) => {
|
|
6083
|
-
e["tree-view"] =
|
|
6099
|
+
e["tree-view"] = Cl, t["tree-view"] = Bt;
|
|
6084
6100
|
};
|
|
6085
|
-
const
|
|
6101
|
+
const Hi = $n(nt);
|
|
6086
6102
|
export {
|
|
6087
6103
|
nt as FTreeView,
|
|
6088
|
-
|
|
6104
|
+
Hi as default,
|
|
6089
6105
|
Bt as propsResolver,
|
|
6090
6106
|
ht as treeViewProps
|
|
6091
6107
|
};
|