@farris/ui-vue 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/binding-selector/index.esm.js +15 -15
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +108 -107
- package/components/condition/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4532 -4268
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2709 -2690
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +4795 -4375
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +601 -593
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/event-parameter/index.css +1 -0
- package/components/event-parameter/index.esm.js +2685 -165
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +594 -575
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +772 -772
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +2921 -2902
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +4137 -4050
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +4569 -4149
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +936 -936
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +5226 -4962
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +4648 -4384
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.css +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +6128 -5879
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-group/index.esm.js +6 -6
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +975 -973
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.esm.js +2107 -417
- package/components/section/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +577 -575
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +84 -79
- package/components/textarea/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3307 -3288
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +1537 -1533
- package/components/tree-view/index.umd.cjs +1 -1
- package/farris.all.esm.js +24890 -24173
- package/farris.all.umd.cjs +13 -13
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
- package/types/data-grid/src/components/data/data-grid-area.component.d.ts +8 -0
- package/types/data-grid/src/components/data/data-grid-area.props.d.ts +3 -0
- package/types/data-view/composition/types.d.ts +1 -0
- package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +1 -2
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +14 -3
- package/types/entity-binding-selector/composition/use-field-tree.d.ts +28 -0
- package/types/event-parameter/src/composition/use-general-editor.d.ts +26 -0
- package/types/event-parameter/src/event-parameter.props.d.ts +4 -4
- package/types/events-editor/src/composition/types.d.ts +1 -1
- package/types/query-solution/src/composition/types.d.ts +55 -0
- package/types/query-solution/src/composition/use-condition.d.ts +19 -0
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +3 -2
- package/types/query-solution/src/designer/query-solution-config/converter/query-solution-config-property.converter.d.ts +4 -0
- package/types/section/index.d.ts +15 -0
- package/types/section/src/designer/section-header.design.component.d.ts +4 -0
- package/types/section/src/designer/section-toolbar-item.props.d.ts +19 -0
- package/types/section/src/designer/section-toolbar.design.component.d.ts +3 -0
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var z = (e, t, n) =>
|
|
4
|
-
import { ref as f, computed as D, createVNode as c, Fragment as ge, watch as Z, withModifiers as
|
|
5
|
-
import { isPlainObject as
|
|
6
|
-
import { useIdentify as
|
|
7
|
-
import
|
|
1
|
+
var cn = Object.defineProperty;
|
|
2
|
+
var dn = (e, t, n) => t in e ? cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var z = (e, t, n) => dn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as f, computed as D, createVNode as c, Fragment as ge, watch as Z, withModifiers as fn, withDirectives as Ct, vModelText as pn, defineComponent as ue, resolveComponent as vn, createTextVNode as pe, onBeforeUnmount as mn, onMounted as ye, nextTick as tt, reactive as ve, resolveDirective as hn, mergeProps as He, onUnmounted as rt, Teleport as gn, Transition as _t, shallowRef as yn, createApp as xt, render as Ke, h as bn, cloneVNode as wn, inject as St } from "vue";
|
|
5
|
+
import { isPlainObject as vt, cloneDeep as _e } from "lodash-es";
|
|
6
|
+
import { useIdentify as Cn, useHierarchy as _n, useGroupData as xn, usePagination as Sn, useDataView as kn, useSelection as Tn, useEdit as Fn, useVisualDataBound as En, useVisualDataCell as Mn, useVisualDataRow as In, useVisualGroupRow as Bn, useVisualSummaryRow as Vn, useVisualData as On } from "../data-view/index.esm.js";
|
|
7
|
+
import Nn, { FCheckBox as it } from "../checkbox/index.esm.js";
|
|
8
8
|
import "../modal/index.esm.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
9
|
+
import Rn from "../transfer/index.esm.js";
|
|
10
|
+
import Dn from "../tabs/index.esm.js";
|
|
11
|
+
import $n from "../order/index.esm.js";
|
|
12
12
|
import "../condition/index.esm.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
13
|
+
import Ln from "../filter-bar/index.esm.js";
|
|
14
|
+
import Pn from "../pagination/index.esm.js";
|
|
15
|
+
import An, { FDynamicFormGroup as jn, FDynamicFormInput as Hn } from "../dynamic-form/index.esm.js";
|
|
16
16
|
import nt from "../combo-list/index.esm.js";
|
|
17
17
|
import "../designer-canvas/index.esm.js";
|
|
18
|
-
import { useTextBox as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
18
|
+
import { useTextBox as zn, useClear as Gn, useDateFormat as qn, useNumberFormat as Wn, resolveField as Re, setFieldValue as mt } from "../common/index.esm.js";
|
|
19
|
+
import Un, { useNumber as Xn, useFormat as Yn, useSpinner as Qn, useTextBox as Jn } from "../number-spinner/index.esm.js";
|
|
20
|
+
import Zn from "../accordion/index.esm.js";
|
|
21
|
+
import Kn from "../avatar/index.esm.js";
|
|
22
|
+
import eo from "../button-edit/index.esm.js";
|
|
23
|
+
import to from "../button-group/index.esm.js";
|
|
24
|
+
import no from "../calendar/index.esm.js";
|
|
25
|
+
import oo from "../capsule/index.esm.js";
|
|
26
|
+
import ao from "../combo-tree/index.esm.js";
|
|
27
|
+
import lo from "../component/index.esm.js";
|
|
28
|
+
import so from "../color-picker/index.esm.js";
|
|
29
|
+
import ro from "../content-container/index.esm.js";
|
|
30
|
+
import io from "../date-picker/index.esm.js";
|
|
31
|
+
import uo from "../data-grid/index.esm.js";
|
|
32
|
+
import co from "../dropdown/index.esm.js";
|
|
33
|
+
import fo from "../events-editor/index.esm.js";
|
|
34
|
+
import po from "../field-selector/index.esm.js";
|
|
35
|
+
import vo from "../binding-selector/index.esm.js";
|
|
36
|
+
import mo from "../image-cropper/index.esm.js";
|
|
37
|
+
import ho from "../input-group/index.esm.js";
|
|
38
|
+
import go from "../layout/index.esm.js";
|
|
39
|
+
import yo from "../list-nav/index.esm.js";
|
|
40
|
+
import bo from "../list-view/index.esm.js";
|
|
41
|
+
import wo from "../lookup/index.esm.js";
|
|
42
|
+
import Co from "../mapping-editor/index.esm.js";
|
|
43
|
+
import _o from "../nav/index.esm.js";
|
|
44
|
+
import xo from "../number-range/index.esm.js";
|
|
45
|
+
import So from "../page-header/index.esm.js";
|
|
46
|
+
import ko from "../page-footer/index.esm.js";
|
|
47
|
+
import To from "../progress/index.esm.js";
|
|
48
|
+
import Fo from "../query-solution/index.esm.js";
|
|
49
|
+
import Eo from "../radio-group/index.esm.js";
|
|
50
|
+
import Mo from "../rate/index.esm.js";
|
|
51
|
+
import Io from "../response-toolbar/index.esm.js";
|
|
52
|
+
import Bo from "../response-layout/index.esm.js";
|
|
53
|
+
import Vo from "../response-layout-editor/index.esm.js";
|
|
54
|
+
import Oo from "../search-box/index.esm.js";
|
|
55
|
+
import No from "../section/index.esm.js";
|
|
56
|
+
import Ro from "../smoke-detector/index.esm.js";
|
|
57
|
+
import Do from "../splitter/index.esm.js";
|
|
58
|
+
import $o from "../step/index.esm.js";
|
|
59
|
+
import Lo from "../switch/index.esm.js";
|
|
60
|
+
import Po from "../tags/index.esm.js";
|
|
61
|
+
import Ao from "../text/index.esm.js";
|
|
62
|
+
import jo from "../time-picker/index.esm.js";
|
|
63
|
+
import Ho from "../tree-view/index.esm.js";
|
|
64
|
+
import zo from "../uploader/index.esm.js";
|
|
65
|
+
import Go from "../verify-detail/index.esm.js";
|
|
66
|
+
import qo from "../weather/index.esm.js";
|
|
67
|
+
import Wo from "../video/index.esm.js";
|
|
68
|
+
import Uo from "../textarea/index.esm.js";
|
|
69
|
+
import Xo from "../schema-selector/index.esm.js";
|
|
70
|
+
import Yo from "../tree-grid/index.esm.js";
|
|
71
|
+
import Qo from "../event-parameter/index.esm.js";
|
|
72
72
|
import "../external-container/index.esm.js";
|
|
73
|
-
import { createPropsResolver as
|
|
74
|
-
const
|
|
73
|
+
import { createPropsResolver as Jo } from "../dynamic-resolver/index.esm.js";
|
|
74
|
+
const kt = {}, Tt = {};
|
|
75
75
|
function ut(e) {
|
|
76
|
-
const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), l = Object.keys(t).reduce((s, i) => ((!a || !o.find((u) => u === i)) && (s[i] = t[i].type === "object" && t[i].properties ? ut(t[i]) :
|
|
76
|
+
const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), l = Object.keys(t).reduce((s, i) => ((!a || !o.find((u) => u === i)) && (s[i] = t[i].type === "object" && t[i].properties ? ut(t[i]) : _e(t[i].default)), s), {});
|
|
77
77
|
if (n && (!a || !o.find((s) => s === "id"))) {
|
|
78
78
|
const s = n.toLowerCase().replace(/-/g, "_");
|
|
79
79
|
l.id = `${s}_${Math.random().toString().slice(2, 6)}`;
|
|
80
80
|
}
|
|
81
81
|
return l;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const o =
|
|
83
|
+
function Ft(e, t = {}, n) {
|
|
84
|
+
const o = kt[e];
|
|
85
85
|
if (o) {
|
|
86
86
|
let a = ut(o);
|
|
87
|
-
const l =
|
|
88
|
-
return a = l ? l({ getSchemaByType:
|
|
87
|
+
const l = Tt[e];
|
|
88
|
+
return a = l ? l({ getSchemaByType: Ft }, a, t, n) : a, a;
|
|
89
89
|
}
|
|
90
90
|
return null;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Zo(e, t) {
|
|
93
93
|
const n = ut(t);
|
|
94
|
-
return Object.keys(n).reduce((o, a) => (o[a] &&
|
|
94
|
+
return Object.keys(n).reduce((o, a) => (o[a] && vt(o[a]) && vt(e[a] || !e[a]) ? Object.assign(o[a], e[a] || {}) : o[a] = e[a], o), n), n;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Ko(e, t) {
|
|
97
97
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
|
|
98
98
|
if (t.has(a)) {
|
|
99
99
|
const l = t.get(a);
|
|
@@ -108,22 +108,22 @@ function ea(e, t) {
|
|
|
108
108
|
return o;
|
|
109
109
|
}, {});
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
const o =
|
|
113
|
-
return
|
|
111
|
+
function ea(e, t, n = /* @__PURE__ */ new Map()) {
|
|
112
|
+
const o = Zo(e, t);
|
|
113
|
+
return Ko(o, n);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ta(e = {}) {
|
|
116
116
|
function t(r, v, m, d) {
|
|
117
117
|
if (typeof m == "number")
|
|
118
118
|
return d[r].length === m;
|
|
119
119
|
if (typeof m == "object") {
|
|
120
|
-
const M = Object.keys(m)[0],
|
|
120
|
+
const M = Object.keys(m)[0], T = m[M];
|
|
121
121
|
if (M === "not")
|
|
122
|
-
return Number(d[r].length) !== Number(
|
|
122
|
+
return Number(d[r].length) !== Number(T);
|
|
123
123
|
if (M === "moreThan")
|
|
124
|
-
return Number(d[r].length) >= Number(
|
|
124
|
+
return Number(d[r].length) >= Number(T);
|
|
125
125
|
if (M === "lessThan")
|
|
126
|
-
return Number(d[r].length) <= Number(
|
|
126
|
+
return Number(d[r].length) <= Number(T);
|
|
127
127
|
}
|
|
128
128
|
return !1;
|
|
129
129
|
}
|
|
@@ -140,8 +140,8 @@ function na(e = {}) {
|
|
|
140
140
|
return typeof v == "number" ? [{ target: m, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: m, operator: "getProperty", param: r, value: !!v }] : typeof v == "object" ? Object.keys(v).map((d) => {
|
|
141
141
|
if (d === "length")
|
|
142
142
|
return { target: m, operator: "length", param: null, value: v[d] };
|
|
143
|
-
const M = d,
|
|
144
|
-
return { target: m, operator: "getProperty", param: M, value:
|
|
143
|
+
const M = d, T = v[d];
|
|
144
|
+
return { target: m, operator: "getProperty", param: M, value: T };
|
|
145
145
|
}) : [];
|
|
146
146
|
}
|
|
147
147
|
function l(r) {
|
|
@@ -158,10 +158,10 @@ function na(e = {}) {
|
|
|
158
158
|
return !1;
|
|
159
159
|
}
|
|
160
160
|
function i(r, v) {
|
|
161
|
-
return l(r).reduce((M,
|
|
161
|
+
return l(r).reduce((M, T) => M && s(T, v), !0);
|
|
162
162
|
}
|
|
163
163
|
function u(r, v) {
|
|
164
|
-
const m = Object.keys(r), d = m.includes("allOf"), M = m.includes("anyOf"),
|
|
164
|
+
const m = Object.keys(r), d = m.includes("allOf"), M = m.includes("anyOf"), T = d || M, p = (T ? r[T ? d ? "allOf" : "anyOf" : "allOf"] : [r]).map((y) => i(y, v));
|
|
165
165
|
return d ? !p.includes(!1) : p.includes(!0);
|
|
166
166
|
}
|
|
167
167
|
return { parseValueSchema: u };
|
|
@@ -206,24 +206,24 @@ const Y = {
|
|
|
206
206
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
207
207
|
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
|
|
208
208
|
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
209
|
-
},
|
|
210
|
-
|
|
209
|
+
}, na = {}, oa = {};
|
|
210
|
+
ta();
|
|
211
211
|
function Be(e, t, n = /* @__PURE__ */ new Map(), o = (s, i, u, r) => i, a = {}, l = (s) => s) {
|
|
212
|
-
return
|
|
213
|
-
const i =
|
|
212
|
+
return kt[t.title] = t, Tt[t.title] = o, na[t.title] = a, oa[t.title] = l, (s = {}) => {
|
|
213
|
+
const i = ea(s, t, n), u = Object.keys(e).reduce((r, v) => (r[v] = e[v].default, r), {});
|
|
214
214
|
return Object.assign(u, i);
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
217
|
function ct(e, t) {
|
|
218
218
|
return { customClass: t.class, customStyle: t.style };
|
|
219
219
|
}
|
|
220
|
-
const
|
|
220
|
+
const Et = /* @__PURE__ */ new Map([
|
|
221
221
|
["appearance", ct]
|
|
222
222
|
]);
|
|
223
|
-
function
|
|
223
|
+
function Mt(e, t, n) {
|
|
224
224
|
return t;
|
|
225
225
|
}
|
|
226
|
-
const
|
|
226
|
+
const aa = "https://json-schema.org/draft/2020-12/schema", la = "https://farris-design.gitee.io/list-view.schema.json", sa = "list-view", ra = "A Farris Component", ia = "object", ua = {
|
|
227
227
|
id: {
|
|
228
228
|
description: "The unique identifier for list-view",
|
|
229
229
|
type: "string"
|
|
@@ -285,18 +285,18 @@ const la = "https://json-schema.org/draft/2020-12/schema", sa = "https://farris-
|
|
|
285
285
|
type: "boolean",
|
|
286
286
|
default: !0
|
|
287
287
|
}
|
|
288
|
-
},
|
|
288
|
+
}, ca = [
|
|
289
289
|
"id",
|
|
290
290
|
"type"
|
|
291
|
-
],
|
|
292
|
-
$schema:
|
|
293
|
-
$id:
|
|
294
|
-
title:
|
|
295
|
-
description:
|
|
296
|
-
type:
|
|
297
|
-
properties:
|
|
298
|
-
required:
|
|
299
|
-
},
|
|
291
|
+
], da = {
|
|
292
|
+
$schema: aa,
|
|
293
|
+
$id: la,
|
|
294
|
+
title: sa,
|
|
295
|
+
description: ra,
|
|
296
|
+
type: ia,
|
|
297
|
+
properties: ua,
|
|
298
|
+
required: ca
|
|
299
|
+
}, fa = "list-view", pa = "A Farris Component", va = "object", ma = {
|
|
300
300
|
basic: {
|
|
301
301
|
description: "Basic Infomation",
|
|
302
302
|
title: "基本信息",
|
|
@@ -318,11 +318,11 @@ const la = "https://json-schema.org/draft/2020-12/schema", sa = "https://farris-
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
},
|
|
322
|
-
title:
|
|
323
|
-
description:
|
|
324
|
-
type:
|
|
325
|
-
categories:
|
|
321
|
+
}, ha = {
|
|
322
|
+
title: fa,
|
|
323
|
+
description: pa,
|
|
324
|
+
type: va,
|
|
325
|
+
categories: ma
|
|
326
326
|
}, ze = {
|
|
327
327
|
/** 列集合 */
|
|
328
328
|
columns: {
|
|
@@ -364,8 +364,8 @@ const la = "https://json-schema.org/draft/2020-12/schema", sa = "https://farris-
|
|
|
364
364
|
disableField: { type: String, default: "disabled" },
|
|
365
365
|
// 搜索启用高亮
|
|
366
366
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
367
|
-
},
|
|
368
|
-
function
|
|
367
|
+
}, It = Be(ze, da, Et, Mt, ha);
|
|
368
|
+
function Bt(e, t) {
|
|
369
369
|
function n(l) {
|
|
370
370
|
const s = [];
|
|
371
371
|
let i = l.nextNode();
|
|
@@ -377,12 +377,12 @@ function Vt(e, t) {
|
|
|
377
377
|
const i = document.createTreeWalker(l, NodeFilter.SHOW_TEXT);
|
|
378
378
|
return n(i).map((m) => ({ textNode: m, text: (m.textContent || "").toLocaleLowerCase() })).map(({ textNode: m, text: d }) => {
|
|
379
379
|
const M = [];
|
|
380
|
-
let
|
|
381
|
-
for (;
|
|
382
|
-
const V = d.indexOf(s,
|
|
380
|
+
let T = 0;
|
|
381
|
+
for (; T < d.length; ) {
|
|
382
|
+
const V = d.indexOf(s, T);
|
|
383
383
|
if (V === -1)
|
|
384
384
|
break;
|
|
385
|
-
M.push(V),
|
|
385
|
+
M.push(V), T = V + s.length;
|
|
386
386
|
}
|
|
387
387
|
return M.map((V) => {
|
|
388
388
|
const O = new Range();
|
|
@@ -398,8 +398,8 @@ function Vt(e, t) {
|
|
|
398
398
|
}
|
|
399
399
|
return { search: a };
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
const v = f(e.size), m = f(e.textField), d = f(e.titleField), M = f(e.disableField),
|
|
401
|
+
function ht(e, t, n, o, a, l, s, i, u, r) {
|
|
402
|
+
const v = f(e.size), m = f(e.textField), d = f(e.titleField), M = f(e.disableField), T = D(() => {
|
|
403
403
|
var E, g;
|
|
404
404
|
return ((E = e.selection) == null ? void 0 : E.multiSelect) && ((g = e.selection) == null ? void 0 : g.showCheckbox);
|
|
405
405
|
}), {
|
|
@@ -411,10 +411,10 @@ function gt(e, t, n, o, a, l, s, i, u, r) {
|
|
|
411
411
|
listViewItemClass: y,
|
|
412
412
|
onCheckItem: b,
|
|
413
413
|
onClickItem: w
|
|
414
|
-
} = s,
|
|
414
|
+
} = s, I = D(() => ({
|
|
415
415
|
margin: v.value === "small" ? "0.25rem 0" : "10px 0"
|
|
416
416
|
}));
|
|
417
|
-
function C(E, g,
|
|
417
|
+
function C(E, g, F) {
|
|
418
418
|
return E.checked = i.findIndexInSelectedItems(E) > -1, c("li", {
|
|
419
419
|
class: y(E, g),
|
|
420
420
|
id: h(E, g),
|
|
@@ -423,7 +423,7 @@ function gt(e, t, n, o, a, l, s, i, u, r) {
|
|
|
423
423
|
onMouseenter: (x) => V(x, E, g),
|
|
424
424
|
onMouseover: (x) => O(x, E, g),
|
|
425
425
|
onMouseout: (x) => p(x, E, g)
|
|
426
|
-
}, [
|
|
426
|
+
}, [T.value && c("div", {
|
|
427
427
|
class: "f-list-select",
|
|
428
428
|
onClick: (x) => x.stopPropagation()
|
|
429
429
|
}, [c(it, {
|
|
@@ -438,7 +438,7 @@ function gt(e, t, n, o, a, l, s, i, u, r) {
|
|
|
438
438
|
}, null)]), c("div", {
|
|
439
439
|
class: "f-list-content"
|
|
440
440
|
}, [c("div", {
|
|
441
|
-
style:
|
|
441
|
+
style: I.value,
|
|
442
442
|
title: E.raw[d.value] || E.raw[m.value]
|
|
443
443
|
}, [E.raw[m.value]])])]);
|
|
444
444
|
}
|
|
@@ -446,58 +446,58 @@ function gt(e, t, n, o, a, l, s, i, u, r) {
|
|
|
446
446
|
renderItem: C
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function ga(e, t, n, o, a, l, s, i, u, r) {
|
|
450
450
|
const v = f(e.multiSelect), m = f(e.disableField), {
|
|
451
451
|
onMouseenterItem: d,
|
|
452
452
|
onMouseoverItem: M,
|
|
453
|
-
onMouseoutItem:
|
|
453
|
+
onMouseoutItem: T
|
|
454
454
|
} = l, {
|
|
455
455
|
getKey: V,
|
|
456
456
|
listViewItemClass: O,
|
|
457
457
|
onCheckItem: p,
|
|
458
458
|
onClickItem: h
|
|
459
459
|
} = s;
|
|
460
|
-
function y(w,
|
|
460
|
+
function y(w, I, C) {
|
|
461
461
|
return t.slots.content ? c(ge, null, [t.slots.content && t.slots.content({
|
|
462
462
|
item: w.raw,
|
|
463
|
-
index:
|
|
463
|
+
index: I,
|
|
464
464
|
selectedItem: C
|
|
465
465
|
})]) : c("div", {
|
|
466
466
|
style: "margin: 10px 0;"
|
|
467
467
|
}, [w.raw.name]);
|
|
468
468
|
}
|
|
469
|
-
function b(w,
|
|
469
|
+
function b(w, I, C) {
|
|
470
470
|
return c("li", {
|
|
471
|
-
class: O(w,
|
|
472
|
-
id: V(w,
|
|
473
|
-
key: V(w,
|
|
474
|
-
onClick: (E) => h(E, w,
|
|
475
|
-
onMouseenter: (E) => d(E, w,
|
|
476
|
-
onMouseover: (E) => M(E, w,
|
|
477
|
-
onMouseout: (E) =>
|
|
471
|
+
class: O(w, I),
|
|
472
|
+
id: V(w, I),
|
|
473
|
+
key: V(w, I),
|
|
474
|
+
onClick: (E) => h(E, w, I),
|
|
475
|
+
onMouseenter: (E) => d(E, w, I),
|
|
476
|
+
onMouseover: (E) => M(E, w, I),
|
|
477
|
+
onMouseout: (E) => T(E, w, I)
|
|
478
478
|
}, [v.value && c("div", {
|
|
479
479
|
class: "f-list-select",
|
|
480
480
|
onClick: (E) => E.stopPropagation()
|
|
481
481
|
}, [c(it, {
|
|
482
|
-
id: "list-" + V(w,
|
|
482
|
+
id: "list-" + V(w, I),
|
|
483
483
|
customClass: "listview-checkbox",
|
|
484
484
|
disabled: w[m.value] || !w.checked,
|
|
485
485
|
checked: w.checked,
|
|
486
486
|
"onUpdate:checked": (E) => w.checked = E,
|
|
487
|
-
onChange: (E) => p(w,
|
|
487
|
+
onChange: (E) => p(w, I, !E.checked)
|
|
488
488
|
}, null)]), c("div", {
|
|
489
489
|
class: "f-list-content"
|
|
490
|
-
}, [y(w,
|
|
490
|
+
}, [y(w, I, C)])]);
|
|
491
491
|
}
|
|
492
492
|
return {
|
|
493
493
|
renderItem: b
|
|
494
494
|
};
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function ya(e, t, n, o, a, l, s, i, u, r) {
|
|
497
497
|
const v = f(e.multiSelect), m = f(e.disableField), {
|
|
498
498
|
onMouseenterItem: d,
|
|
499
499
|
onMouseoverItem: M,
|
|
500
|
-
onMouseoutItem:
|
|
500
|
+
onMouseoutItem: T
|
|
501
501
|
} = l, {
|
|
502
502
|
getKey: V,
|
|
503
503
|
listViewItemClass: O,
|
|
@@ -507,7 +507,7 @@ function ba(e, t, n, o, a, l, s, i, u, r) {
|
|
|
507
507
|
dragstart: y,
|
|
508
508
|
dragenter: b,
|
|
509
509
|
dragover: w,
|
|
510
|
-
dragend:
|
|
510
|
+
dragend: I
|
|
511
511
|
} = o, {
|
|
512
512
|
removeItem: C
|
|
513
513
|
} = u, E = D(() => ({
|
|
@@ -518,10 +518,10 @@ function ba(e, t, n, o, a, l, s, i, u, r) {
|
|
|
518
518
|
style: E.value
|
|
519
519
|
}, [_.raw.name]);
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function F() {
|
|
522
522
|
return t.slots.itemContent ? t.slots.itemContent : g;
|
|
523
523
|
}
|
|
524
|
-
const x =
|
|
524
|
+
const x = F();
|
|
525
525
|
function S(_, k, $) {
|
|
526
526
|
return c("li", {
|
|
527
527
|
class: O(_, k),
|
|
@@ -530,11 +530,11 @@ function ba(e, t, n, o, a, l, s, i, u, r) {
|
|
|
530
530
|
onClick: (L) => h(L, _, k),
|
|
531
531
|
onMouseenter: (L) => d(L, _, k),
|
|
532
532
|
onMouseover: (L) => M(L, _, k),
|
|
533
|
-
onMouseout: (L) =>
|
|
533
|
+
onMouseout: (L) => T(L, _, k),
|
|
534
534
|
draggable: "true",
|
|
535
535
|
onDragstart: (L) => y(L, _, k),
|
|
536
536
|
onDragenter: (L) => b(L, k),
|
|
537
|
-
onDragend: (L) =>
|
|
537
|
+
onDragend: (L) => I(L, _),
|
|
538
538
|
onDragover: (L) => w(L, k)
|
|
539
539
|
}, [v.value && c("div", {
|
|
540
540
|
class: "f-list-select",
|
|
@@ -565,7 +565,7 @@ function ba(e, t, n, o, a, l, s, i, u, r) {
|
|
|
565
565
|
renderItem: S
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function ba(e, t, n, o, a, l, s, i, u, r) {
|
|
569
569
|
var V;
|
|
570
570
|
const v = f(((V = e.group) == null ? void 0 : V.groupFields) || []), {
|
|
571
571
|
collpaseGroupIconClass: m
|
|
@@ -575,7 +575,7 @@ function wa(e, t, n, o, a, l, s, i, u, r) {
|
|
|
575
575
|
function M(O, p) {
|
|
576
576
|
p.collapse = !p.collapse, n.value = d(p.collapse ? "collapse" : "expand", p, n.value);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function T(O, p, h) {
|
|
579
579
|
return O.layer > -1 && c("div", {
|
|
580
580
|
class: "f-navlookup-recentHeader",
|
|
581
581
|
onClick: (y) => M(y, O)
|
|
@@ -588,10 +588,10 @@ function wa(e, t, n, o, a, l, s, i, u, r) {
|
|
|
588
588
|
}, [O.raw[v.value[O.layer]]])]);
|
|
589
589
|
}
|
|
590
590
|
return {
|
|
591
|
-
renderItem:
|
|
591
|
+
renderItem: T
|
|
592
592
|
};
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function wa() {
|
|
595
595
|
const e = f(-1), t = f(""), n = f(-1), o = f(!1);
|
|
596
596
|
function a(r, v, m) {
|
|
597
597
|
n.value = m;
|
|
@@ -619,14 +619,14 @@ function Ca() {
|
|
|
619
619
|
suspendHover: i
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Ca(e, t, n, o) {
|
|
623
623
|
const a = f(e.idField), { dataView: l } = n, s = f(-1), i = f(!1), { activeIndex: u, focusedItemId: r, hoverIndex: v, resumeHover: m, suspendHover: d } = o;
|
|
624
624
|
function M(p, h, y) {
|
|
625
625
|
p.stopPropagation(), d(), h && setTimeout(() => {
|
|
626
626
|
s.value = y, i.value = !0, h.moving = !0;
|
|
627
627
|
});
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function T(p, h) {
|
|
630
630
|
if (p.preventDefault(), s.value !== h) {
|
|
631
631
|
const y = l.value[s.value], b = l.value;
|
|
632
632
|
b.splice(s.value, 1), b.splice(h, 0, y), s.value = h;
|
|
@@ -642,13 +642,13 @@ function _a(e, t, n, o) {
|
|
|
642
642
|
}
|
|
643
643
|
return {
|
|
644
644
|
dragstart: M,
|
|
645
|
-
dragenter:
|
|
645
|
+
dragenter: T,
|
|
646
646
|
dragover: V,
|
|
647
647
|
dragend: O,
|
|
648
648
|
isDragging: i
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function _a(e, t, n) {
|
|
652
652
|
const { dataView: o } = n;
|
|
653
653
|
function a(l) {
|
|
654
654
|
if (l > -1 && l < o.value.length) {
|
|
@@ -658,8 +658,8 @@ function xa(e, t, n) {
|
|
|
658
658
|
}
|
|
659
659
|
return { removeItem: a };
|
|
660
660
|
}
|
|
661
|
-
function
|
|
662
|
-
const s = f(e.idField), i = f(e.disableField), u = f(e.draggable), r = f(e.itemClass), v = f(e.selection.multiSelect ?? !1), m = f(e.selection.multiSelectMode), { isDragging: d } = o, { activeIndex: M, focusedItemId:
|
|
661
|
+
function xa(e, t, n, o, a, l) {
|
|
662
|
+
const s = f(e.idField), i = f(e.disableField), u = f(e.draggable), r = f(e.itemClass), v = f(e.selection.multiSelect ?? !1), m = f(e.selection.multiSelectMode), { isDragging: d } = o, { activeIndex: M, focusedItemId: T, hoverIndex: V } = a, { clearSelection: O, getSelectedItems: p, toggleSelectItem: h } = l, y = f(p());
|
|
663
663
|
function b(x, S) {
|
|
664
664
|
const _ = {
|
|
665
665
|
"f-listview-item": !0,
|
|
@@ -684,42 +684,42 @@ function Sa(e, t, n, o, a, l) {
|
|
|
684
684
|
function w(x, S) {
|
|
685
685
|
return x.raw[s.value] || "";
|
|
686
686
|
}
|
|
687
|
-
const
|
|
687
|
+
const I = D(() => !v.value);
|
|
688
688
|
function C(x, S, _) {
|
|
689
|
-
x.checked = _, !x.raw[i.value] && (
|
|
689
|
+
x.checked = _, !x.raw[i.value] && (I.value && (T.value = x.raw[s.value]), h(x));
|
|
690
690
|
}
|
|
691
691
|
const E = D(() => v.value && m.value === "OnCheckClearByClick"), g = D(() => !v.value || v.value && (m.value === "OnCheckAndClick" || m.value === "OnClick"));
|
|
692
|
-
function
|
|
692
|
+
function F(x, S, _) {
|
|
693
693
|
if (S.raw[i.value]) {
|
|
694
694
|
x.preventDefault(), x.stopPropagation();
|
|
695
695
|
return;
|
|
696
696
|
}
|
|
697
|
-
|
|
697
|
+
T.value = S.raw[s.value], M.value = _, E.value && O(), g.value && (h(S), y.value = p()), t.emit("clickItem", { data: y.value, index: _ }), t.emit("activeChange", y.value);
|
|
698
698
|
}
|
|
699
699
|
return {
|
|
700
700
|
getKey: w,
|
|
701
701
|
listViewItemClass: b,
|
|
702
702
|
onCheckItem: C,
|
|
703
|
-
onClickItem:
|
|
703
|
+
onClickItem: F
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
const i = f(e.view), u = f(e.view === "CardView"), r = f({}), v = f("暂无数据"), m =
|
|
706
|
+
function Vt(e, t, n, o, a, l, s) {
|
|
707
|
+
const i = f(e.view), u = f(e.view === "CardView"), r = f({}), v = f("暂无数据"), m = wa(), d = Ca(e, t, o, m), M = _a(e, t, o), T = xa(e, t, n, d, m, l), V = D(() => ({
|
|
708
708
|
"f-list-view-group": !0,
|
|
709
709
|
"d-flex": u.value,
|
|
710
710
|
"flex-wrap": u.value
|
|
711
711
|
})), O = D(() => !!n.value && n.value.length > 0), p = D(() => n.value.length === 0);
|
|
712
712
|
D(() => p.value && !t.slots.empty);
|
|
713
713
|
function h() {
|
|
714
|
-
return i.value === "SingleView" ?
|
|
714
|
+
return i.value === "SingleView" ? ht : i.value === "DraggableView" ? ya : (i.value === "ContentView" || i.value === "CardView") && t.slots.content ? ga : ht;
|
|
715
715
|
}
|
|
716
716
|
const y = h(), {
|
|
717
717
|
renderItem: b
|
|
718
|
-
} = y(e, t, n, d, a, m,
|
|
718
|
+
} = y(e, t, n, d, a, m, T, l, M, s), {
|
|
719
719
|
renderItem: w
|
|
720
|
-
} =
|
|
720
|
+
} = ba(e, t, n, d, a, m, T, l, M, s), I = [b, w];
|
|
721
721
|
function C() {
|
|
722
|
-
return n.value.filter((
|
|
722
|
+
return n.value.filter((F) => F.visible !== !1).map((F, x) => I[F.type](F, x, r));
|
|
723
723
|
}
|
|
724
724
|
function E() {
|
|
725
725
|
return c("div", {
|
|
@@ -738,7 +738,7 @@ function Ot(e, t, n, o, a, l, s) {
|
|
|
738
738
|
renderListArea: g
|
|
739
739
|
};
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Ot(e, t, n) {
|
|
742
742
|
function o() {
|
|
743
743
|
return t.slots.header && c("div", {
|
|
744
744
|
class: "f-list-view-header"
|
|
@@ -761,14 +761,14 @@ function je(e, t, n) {
|
|
|
761
761
|
"form-group": !0,
|
|
762
762
|
"farris-form-group": !0
|
|
763
763
|
};
|
|
764
|
-
return o.value && o.value.split(" ").reduce((
|
|
764
|
+
return o.value && o.value.split(" ").reduce((T, V) => (T[V] = !0, T), d), d;
|
|
765
765
|
});
|
|
766
766
|
function v(d) {
|
|
767
767
|
}
|
|
768
768
|
function m() {
|
|
769
769
|
return c("div", {
|
|
770
770
|
class: "f-list-view-header",
|
|
771
|
-
onClick:
|
|
771
|
+
onClick: fn(() => v, ["prevent", "stop"])
|
|
772
772
|
}, [c("div", {
|
|
773
773
|
class: r.value
|
|
774
774
|
}, [c("div", {
|
|
@@ -777,14 +777,14 @@ function je(e, t, n) {
|
|
|
777
777
|
class: "f-cmp-inputgroup"
|
|
778
778
|
}, [c("div", {
|
|
779
779
|
class: "input-group f-state-editable"
|
|
780
|
-
}, [
|
|
780
|
+
}, [Ct(c("input", {
|
|
781
781
|
class: "form-control f-utils-fill text-left",
|
|
782
782
|
"onUpdate:modelValue": (d) => l.value = d,
|
|
783
783
|
name: "input-group-value",
|
|
784
784
|
type: "text",
|
|
785
785
|
placeholder: a.value,
|
|
786
786
|
autocomplete: "off"
|
|
787
|
-
}, null), [[
|
|
787
|
+
}, null), [[pn, l.value]]), c("div", {
|
|
788
788
|
class: "input-group-append"
|
|
789
789
|
}, [i.value && c("span", {
|
|
790
790
|
class: "input-group-text input-group-clear",
|
|
@@ -806,37 +806,37 @@ const Ie = /* @__PURE__ */ ue({
|
|
|
806
806
|
props: ze,
|
|
807
807
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
808
808
|
setup(e, t) {
|
|
809
|
-
const n = f(), o = f(!0), a = f(!1), l = f([]), s = 0, i = f(e.columns), u =
|
|
809
|
+
const n = f(), o = f(!0), a = f(!1), l = f([]), s = 0, i = f(e.columns), u = Cn(e), r = _n(e), v = xn(e, u), m = Sn(e), d = kn(e, /* @__PURE__ */ new Map(), r, u, m), M = Tn(e, d, u, l, t), T = Bt(e, n), V = D(() => d.dataView.value.length), O = Fn(e, t, u), p = En(), h = Mn(e, {}, p), y = In(e, O, r, u, p, h), b = Bn(e, u, h, y), w = Vn(e, u, h, y), I = On(e, i, d, V, s, y, b, w), {
|
|
810
810
|
getVisualData: C
|
|
811
|
-
} =
|
|
811
|
+
} = I;
|
|
812
812
|
l.value = C(0, V.value + s - 1);
|
|
813
813
|
const E = D(() => {
|
|
814
|
-
const
|
|
814
|
+
const B = {
|
|
815
815
|
"f-list-view": !0,
|
|
816
816
|
"f-list-view-multiple": e.multiSelect
|
|
817
817
|
};
|
|
818
|
-
return e.size !== "default" && (
|
|
818
|
+
return e.size !== "default" && (B[`${e.size}-item`] = !0), B;
|
|
819
819
|
}), g = D(() => !!t.slots.footer || o.value);
|
|
820
|
-
function
|
|
821
|
-
return e.header === "SearchBar" ? je : e.header === "ContentHeader" ?
|
|
820
|
+
function F() {
|
|
821
|
+
return e.header === "SearchBar" ? je : e.header === "ContentHeader" ? Ot : je;
|
|
822
822
|
}
|
|
823
|
-
const x =
|
|
823
|
+
const x = F(), {
|
|
824
824
|
renderHeader: S
|
|
825
|
-
} = x(e, t,
|
|
825
|
+
} = x(e, t, T), {
|
|
826
826
|
renderListArea: _
|
|
827
|
-
} =
|
|
828
|
-
function k(
|
|
829
|
-
|
|
827
|
+
} = Vt(e, t, l, d, v, M, I);
|
|
828
|
+
function k(B) {
|
|
829
|
+
T.search(B);
|
|
830
830
|
}
|
|
831
|
-
function $(
|
|
832
|
-
|
|
831
|
+
function $(B) {
|
|
832
|
+
B && (d.load(B), l.value = C(0, V.value + s - 1));
|
|
833
833
|
}
|
|
834
834
|
t.expose({
|
|
835
835
|
search: k,
|
|
836
836
|
updateDataSource: $
|
|
837
837
|
});
|
|
838
|
-
function L(
|
|
839
|
-
e.multiSelect && (
|
|
838
|
+
function L(B) {
|
|
839
|
+
e.multiSelect && (B.preventDefault(), B.stopPropagation());
|
|
840
840
|
}
|
|
841
841
|
return () => c("div", {
|
|
842
842
|
class: E.value,
|
|
@@ -855,7 +855,7 @@ const Ie = /* @__PURE__ */ ue({
|
|
|
855
855
|
}, [t.slots.footer && t.slots.footer()])]);
|
|
856
856
|
}
|
|
857
857
|
});
|
|
858
|
-
function
|
|
858
|
+
function Nt(e, t, n) {
|
|
859
859
|
var b;
|
|
860
860
|
const o = "", a = "", l = f();
|
|
861
861
|
function s() {
|
|
@@ -875,12 +875,12 @@ function Rt(e, t, n) {
|
|
|
875
875
|
return null;
|
|
876
876
|
if (w.value.schema && w.value.schema.type === "component")
|
|
877
877
|
return w.value;
|
|
878
|
-
const
|
|
878
|
+
const I = f(w == null ? void 0 : w.value.parent), C = v(I);
|
|
879
879
|
return C || null;
|
|
880
880
|
}
|
|
881
881
|
function m(w = t) {
|
|
882
|
-
const { componentInstance:
|
|
883
|
-
return !
|
|
882
|
+
const { componentInstance: I, designerItemElementRef: C } = w;
|
|
883
|
+
return !I || !I.value ? null : I.value.canMove ? C : m(w.parent);
|
|
884
884
|
}
|
|
885
885
|
function d(w) {
|
|
886
886
|
return !!n;
|
|
@@ -888,13 +888,13 @@ function Rt(e, t, n) {
|
|
|
888
888
|
function M() {
|
|
889
889
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function T() {
|
|
892
892
|
}
|
|
893
|
-
function V(w,
|
|
893
|
+
function V(w, I) {
|
|
894
894
|
}
|
|
895
|
-
function O(w,
|
|
895
|
+
function O(w, I) {
|
|
896
896
|
const { componentType: C } = w;
|
|
897
|
-
let E =
|
|
897
|
+
let E = Ft(C, w, I);
|
|
898
898
|
const g = C.toLowerCase().replace(/-/g, "_");
|
|
899
899
|
return E && !E.id && E.type === C && (E.id = `${g}_${Math.random().toString().slice(2, 6)}`), E;
|
|
900
900
|
}
|
|
@@ -905,9 +905,9 @@ function Rt(e, t, n) {
|
|
|
905
905
|
function y() {
|
|
906
906
|
t != null && t.schema.contents && t.schema.contents.map((w) => {
|
|
907
907
|
var E;
|
|
908
|
-
let
|
|
909
|
-
w.type === "component-ref" && (
|
|
910
|
-
const C = e.value.querySelector(`#${
|
|
908
|
+
let I = w.id;
|
|
909
|
+
w.type === "component-ref" && (I = w.component);
|
|
910
|
+
const C = e.value.querySelector(`#${I}-design-item`);
|
|
911
911
|
(E = C == null ? void 0 : C.componentInstance) != null && E.value.onRemoveComponent && C.componentInstance.value.onRemoveComponent();
|
|
912
912
|
});
|
|
913
913
|
}
|
|
@@ -927,7 +927,7 @@ function Rt(e, t, n) {
|
|
|
927
927
|
getDraggableDesignItemElement: m,
|
|
928
928
|
getDraggingDisplayText: M,
|
|
929
929
|
getPropConfig: h,
|
|
930
|
-
getDragScopeElement:
|
|
930
|
+
getDragScopeElement: T,
|
|
931
931
|
onAcceptMovedChildElement: V,
|
|
932
932
|
onChildElementMovedOut: p,
|
|
933
933
|
addNewChildComponentSchema: O,
|
|
@@ -936,8 +936,8 @@ function Rt(e, t, n) {
|
|
|
936
936
|
onRemoveComponent: y
|
|
937
937
|
}, l;
|
|
938
938
|
}
|
|
939
|
-
var
|
|
940
|
-
function
|
|
939
|
+
var se = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(se || {}), me = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(me || {}), Ge = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(Ge || {}), ot = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(ot || {});
|
|
940
|
+
function Sa() {
|
|
941
941
|
function e(n, o) {
|
|
942
942
|
const a = n.pre;
|
|
943
943
|
if (a) {
|
|
@@ -954,7 +954,7 @@ function ka() {
|
|
|
954
954
|
}
|
|
955
955
|
return { updateRowPosition: e, updateVisualInfomation: t };
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function ka() {
|
|
958
958
|
function e(o, a) {
|
|
959
959
|
switch (o.command) {
|
|
960
960
|
case "edit":
|
|
@@ -979,7 +979,7 @@ function Ta() {
|
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
function n(o, a) {
|
|
982
|
-
return c("div", null, [o.commands && o.commands.map((l) => e(l, a) && c(
|
|
982
|
+
return c("div", null, [o.commands && o.commands.map((l) => e(l, a) && c(vn("f-button"), {
|
|
983
983
|
class: "ml-2",
|
|
984
984
|
type: l.type,
|
|
985
985
|
size: l.size || "small",
|
|
@@ -1005,7 +1005,7 @@ f([{
|
|
|
1005
1005
|
name: "半年",
|
|
1006
1006
|
selectable: !0
|
|
1007
1007
|
}]);
|
|
1008
|
-
const
|
|
1008
|
+
const Rt = {
|
|
1009
1009
|
conditions: { type: Array, default: [] },
|
|
1010
1010
|
fields: { type: Array, default: [] },
|
|
1011
1011
|
key: { type: String, default: "" },
|
|
@@ -1014,7 +1014,7 @@ const Dt = {
|
|
|
1014
1014
|
*/
|
|
1015
1015
|
isControlInline: { type: Boolean, default: !0 }
|
|
1016
1016
|
};
|
|
1017
|
-
class
|
|
1017
|
+
class Ta {
|
|
1018
1018
|
constructor(t = { value: [] }) {
|
|
1019
1019
|
z(this, "editorType", "check-box");
|
|
1020
1020
|
z(this, "value");
|
|
@@ -1034,7 +1034,7 @@ class Fa {
|
|
|
1034
1034
|
return this.value.length === 0;
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
|
-
class
|
|
1037
|
+
class Fa {
|
|
1038
1038
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
1039
1039
|
z(this, "editorType", "combo-lookup");
|
|
1040
1040
|
z(this, "textValue");
|
|
@@ -1054,11 +1054,11 @@ class Ea {
|
|
|
1054
1054
|
return t[n[0]];
|
|
1055
1055
|
}
|
|
1056
1056
|
getTextValue(t) {
|
|
1057
|
-
const n = t.split("."), o = this.value.split(",").map((a) => this.getPropValue(a,
|
|
1057
|
+
const n = t.split("."), o = this.value.split(",").map((a) => this.getPropValue(a, _e(n)));
|
|
1058
1058
|
return o && o.length ? o.join(",") : "";
|
|
1059
1059
|
}
|
|
1060
1060
|
getValue() {
|
|
1061
|
-
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o,
|
|
1061
|
+
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, _e(t)));
|
|
1062
1062
|
return n && n.length ? n.join(",") : "";
|
|
1063
1063
|
}
|
|
1064
1064
|
setValue(t) {
|
|
@@ -1068,7 +1068,7 @@ class Ea {
|
|
|
1068
1068
|
return !this.valueField;
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
|
-
class
|
|
1071
|
+
class Ea {
|
|
1072
1072
|
constructor(t = { value: "" }) {
|
|
1073
1073
|
z(this, "editorType", "date-picker");
|
|
1074
1074
|
z(this, "value");
|
|
@@ -1088,7 +1088,7 @@ class Ma {
|
|
|
1088
1088
|
this.value = void 0;
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
|
-
class
|
|
1091
|
+
class gt {
|
|
1092
1092
|
constructor(t = { begin: "", end: "" }) {
|
|
1093
1093
|
z(this, "editorType", "date-range");
|
|
1094
1094
|
z(this, "begin", "");
|
|
@@ -1109,7 +1109,7 @@ class yt {
|
|
|
1109
1109
|
return !this.begin || !this.end;
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
|
-
class
|
|
1112
|
+
class Ma {
|
|
1113
1113
|
constructor(t = { value: "" }) {
|
|
1114
1114
|
z(this, "editorType", "datetime-picker");
|
|
1115
1115
|
z(this, "value");
|
|
@@ -1129,7 +1129,7 @@ class Ia {
|
|
|
1129
1129
|
return !this.value;
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
|
-
class
|
|
1132
|
+
class Ia {
|
|
1133
1133
|
// 旧结构无,新结构为选中的value值,多选是以,分割的字符串
|
|
1134
1134
|
constructor(t = { value: "", dispalyText: "" }) {
|
|
1135
1135
|
z(this, "editorType", "combo-list");
|
|
@@ -1149,10 +1149,10 @@ class Ba {
|
|
|
1149
1149
|
this.displayText = t.dispalyText, this.value = t.value;
|
|
1150
1150
|
}
|
|
1151
1151
|
isEmpty() {
|
|
1152
|
-
return !this.displayText;
|
|
1152
|
+
return !this.displayText && !this.value;
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
|
-
class
|
|
1155
|
+
class Ba {
|
|
1156
1156
|
constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
|
|
1157
1157
|
z(this, "editorType", "input-group");
|
|
1158
1158
|
// 通过弹窗返回的若干个值对象构成的数组
|
|
@@ -1177,21 +1177,21 @@ class Va {
|
|
|
1177
1177
|
return t[n[0]];
|
|
1178
1178
|
}
|
|
1179
1179
|
getTextValue(t) {
|
|
1180
|
-
const n = t.split("."), o = this.value.map((a) => this.getPropValue(a,
|
|
1180
|
+
const n = t.split("."), o = this.value.map((a) => this.getPropValue(a, _e(n)));
|
|
1181
1181
|
return o && o.length ? o.join(",") : "";
|
|
1182
1182
|
}
|
|
1183
1183
|
getValue() {
|
|
1184
|
-
const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o,
|
|
1184
|
+
const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, _e(t)));
|
|
1185
1185
|
return n && n.length ? n.join(",") : "";
|
|
1186
1186
|
}
|
|
1187
1187
|
setValue(t) {
|
|
1188
1188
|
throw new Error("Method not implemented.");
|
|
1189
1189
|
}
|
|
1190
1190
|
isEmpty() {
|
|
1191
|
-
return !this.displayText;
|
|
1191
|
+
return !this.displayText && !this.value.length;
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
|
-
class
|
|
1194
|
+
class Va {
|
|
1195
1195
|
constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
|
|
1196
1196
|
z(this, "editorType", "lookup");
|
|
1197
1197
|
z(this, "textValue");
|
|
@@ -1227,7 +1227,7 @@ class Oa {
|
|
|
1227
1227
|
return !this.value.length;
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
class
|
|
1230
|
+
class Oa {
|
|
1231
1231
|
constructor(t = { value: "" }) {
|
|
1232
1232
|
z(this, "editorType", "month-picker");
|
|
1233
1233
|
z(this, "value");
|
|
@@ -1247,7 +1247,7 @@ class Na {
|
|
|
1247
1247
|
return !this.value;
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
|
-
class
|
|
1250
|
+
class Na {
|
|
1251
1251
|
constructor(t = { begin: "", end: "" }) {
|
|
1252
1252
|
z(this, "editorType", "month-range");
|
|
1253
1253
|
z(this, "begin");
|
|
@@ -1268,7 +1268,7 @@ class Ra {
|
|
|
1268
1268
|
return !this.begin || !this.end;
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
class
|
|
1271
|
+
class Ra {
|
|
1272
1272
|
constructor(t = { begin: null, end: null }) {
|
|
1273
1273
|
z(this, "editorType", "number-range");
|
|
1274
1274
|
z(this, "begin");
|
|
@@ -1292,7 +1292,7 @@ class Da {
|
|
|
1292
1292
|
return this.begin == null && this.end == null;
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
|
-
class
|
|
1295
|
+
class Da {
|
|
1296
1296
|
constructor(t = { value: "" }) {
|
|
1297
1297
|
z(this, "editorType", "number-spinner");
|
|
1298
1298
|
z(this, "value");
|
|
@@ -1309,10 +1309,10 @@ class $a {
|
|
|
1309
1309
|
this.value = isNaN(parseFloat(t)) ? null : t;
|
|
1310
1310
|
}
|
|
1311
1311
|
isEmpty() {
|
|
1312
|
-
return this.value == null;
|
|
1312
|
+
return this.value == null || isNaN(this.value);
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
|
-
class
|
|
1315
|
+
class $a {
|
|
1316
1316
|
constructor(t = { value: null }) {
|
|
1317
1317
|
z(this, "editorType", "radio-group");
|
|
1318
1318
|
z(this, "value");
|
|
@@ -1332,7 +1332,7 @@ class La {
|
|
|
1332
1332
|
return !this.value;
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
|
-
class
|
|
1335
|
+
class Dt {
|
|
1336
1336
|
constructor(t = { value: "" }) {
|
|
1337
1337
|
z(this, "editorType", "text");
|
|
1338
1338
|
z(this, "value");
|
|
@@ -1352,45 +1352,45 @@ class $t {
|
|
|
1352
1352
|
return !this.value;
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function $t() {
|
|
1356
1356
|
function e(t, n) {
|
|
1357
1357
|
switch (t) {
|
|
1358
1358
|
case "check-box":
|
|
1359
|
-
return new
|
|
1359
|
+
return new Ta(n);
|
|
1360
1360
|
case "combo-list":
|
|
1361
|
-
return new
|
|
1361
|
+
return new Ia(n);
|
|
1362
1362
|
case "combo-lookup":
|
|
1363
|
-
return new
|
|
1363
|
+
return new Fa(n);
|
|
1364
1364
|
case "input-group":
|
|
1365
|
-
return new
|
|
1365
|
+
return new Ba(n);
|
|
1366
1366
|
case "date-picker":
|
|
1367
|
-
return new
|
|
1367
|
+
return new Ea(n);
|
|
1368
1368
|
case "date-range":
|
|
1369
|
-
return new
|
|
1369
|
+
return new gt(n);
|
|
1370
1370
|
case "datetime-picker":
|
|
1371
|
-
return new
|
|
1371
|
+
return new Ma(n);
|
|
1372
1372
|
case "datetime-range":
|
|
1373
|
-
return new
|
|
1373
|
+
return new gt(n);
|
|
1374
1374
|
case "lookup":
|
|
1375
|
-
return new
|
|
1375
|
+
return new Va(n);
|
|
1376
1376
|
case "month-picker":
|
|
1377
|
-
return new
|
|
1377
|
+
return new Oa(n);
|
|
1378
1378
|
case "month-range":
|
|
1379
|
-
return new
|
|
1379
|
+
return new Na(n);
|
|
1380
1380
|
case "number-range":
|
|
1381
|
-
return new
|
|
1381
|
+
return new Ra(n);
|
|
1382
1382
|
case "number-spinner":
|
|
1383
|
-
return new
|
|
1383
|
+
return new Da(n);
|
|
1384
1384
|
case "radio-group":
|
|
1385
|
-
return new
|
|
1385
|
+
return new $a(n);
|
|
1386
1386
|
default:
|
|
1387
|
-
return new
|
|
1387
|
+
return new Dt(n);
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
1390
|
return { createConditionValue: e };
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1393
|
-
const n = f(e.fields), o = f([]), a = /* @__PURE__ */ new Map(), { createConditionValue: l } =
|
|
1392
|
+
function Lt(e, t) {
|
|
1393
|
+
const n = f(e.fields), o = f([]), a = /* @__PURE__ */ new Map(), { createConditionValue: l } = $t();
|
|
1394
1394
|
function s(v) {
|
|
1395
1395
|
switch (v.editor ? v.editor.type : "input-group") {
|
|
1396
1396
|
case "date-range":
|
|
@@ -1421,7 +1421,7 @@ function Pt(e, t) {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
return { convertToSingleControl: i, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: u, initialConditionValue: r };
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function La(e, t, n) {
|
|
1425
1425
|
const o = f(null), a = f(n), l = f(0);
|
|
1426
1426
|
function s(v, m) {
|
|
1427
1427
|
let d = null;
|
|
@@ -1450,20 +1450,20 @@ function Pa(e, t, n) {
|
|
|
1450
1450
|
resizeObserver: o
|
|
1451
1451
|
};
|
|
1452
1452
|
}
|
|
1453
|
-
const
|
|
1453
|
+
const yt = /* @__PURE__ */ ue({
|
|
1454
1454
|
name: "FConditionFields",
|
|
1455
|
-
props:
|
|
1455
|
+
props: Rt,
|
|
1456
1456
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
1457
1457
|
setup(e, t) {
|
|
1458
|
-
const n = f(), o = f(e.key), a = f(e.isControlInline), l = f(e.conditions), s =
|
|
1458
|
+
const n = f(), o = f(e.key), a = f(e.isControlInline), l = f(e.conditions), s = Lt(e), {
|
|
1459
1459
|
initialConditionValue: i,
|
|
1460
1460
|
fieldMap: u,
|
|
1461
1461
|
loadFieldConfigs: r
|
|
1462
|
-
} = s, v =
|
|
1462
|
+
} = s, v = La(e, t, n), {
|
|
1463
1463
|
conditionClass: m,
|
|
1464
1464
|
resizeObserver: d
|
|
1465
1465
|
} = v;
|
|
1466
|
-
r(!0), i(l.value),
|
|
1466
|
+
r(!0), i(l.value), mn(() => {
|
|
1467
1467
|
var p;
|
|
1468
1468
|
(p = d.value) == null || p.unobserve(n.value);
|
|
1469
1469
|
}), Z(() => e.conditions, () => {
|
|
@@ -1474,15 +1474,15 @@ const bt = /* @__PURE__ */ ue({
|
|
|
1474
1474
|
"f-utils-flex-row-wrap": !0,
|
|
1475
1475
|
"farris-form": !0,
|
|
1476
1476
|
"farris-form-controls-inline": a.value
|
|
1477
|
-
})),
|
|
1477
|
+
})), T = D(() => m.value);
|
|
1478
1478
|
function V(p, h) {
|
|
1479
1479
|
t.emit("valueChange", p, h);
|
|
1480
1480
|
}
|
|
1481
1481
|
function O() {
|
|
1482
1482
|
return l.value.map((p) => {
|
|
1483
1483
|
var h;
|
|
1484
|
-
return c(
|
|
1485
|
-
customClass:
|
|
1484
|
+
return c(jn, {
|
|
1485
|
+
customClass: T.value,
|
|
1486
1486
|
label: p.fieldName,
|
|
1487
1487
|
editor: (h = u.get(p.fieldCode)) == null ? void 0 : h.editor,
|
|
1488
1488
|
modelValue: p.value.value,
|
|
@@ -1501,10 +1501,10 @@ const bt = /* @__PURE__ */ ue({
|
|
|
1501
1501
|
}
|
|
1502
1502
|
}), dt = /* @__PURE__ */ new Map([
|
|
1503
1503
|
["appearance", ct]
|
|
1504
|
-
]),
|
|
1504
|
+
]), Pa = /* @__PURE__ */ new Map([]);
|
|
1505
1505
|
var at = /* @__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))(at || {});
|
|
1506
|
-
const
|
|
1507
|
-
class
|
|
1506
|
+
const Aa = "root-viewmodel";
|
|
1507
|
+
class ja {
|
|
1508
1508
|
constructor(t, n) {
|
|
1509
1509
|
z(this, "formSchemaUtils");
|
|
1510
1510
|
z(this, "controlCreatorUtils");
|
|
@@ -1561,7 +1561,7 @@ class Ha {
|
|
|
1561
1561
|
}), n.contents = [o];
|
|
1562
1562
|
const { selectedFields: l } = t;
|
|
1563
1563
|
l == null || l.forEach((i) => {
|
|
1564
|
-
const u =
|
|
1564
|
+
const u = _e(i), r = this.resolveControlClassByFormColumns(t), v = this.controlCreatorUtils.setFormFieldProperty(u, "", r);
|
|
1565
1565
|
v && a.push(v);
|
|
1566
1566
|
});
|
|
1567
1567
|
const { templateId: s } = this.formSchemaUtils.getFormSchema().module;
|
|
@@ -1598,7 +1598,7 @@ class Ha {
|
|
|
1598
1598
|
code: `${t.componentId}-component-viewmodel`,
|
|
1599
1599
|
name: t.componentName,
|
|
1600
1600
|
bindTo: t.bindTo,
|
|
1601
|
-
parent:
|
|
1601
|
+
parent: Aa,
|
|
1602
1602
|
fields: this.assembleViewModelFields(t),
|
|
1603
1603
|
commands: [],
|
|
1604
1604
|
states: [],
|
|
@@ -1625,26 +1625,27 @@ class Ha {
|
|
|
1625
1625
|
}), n;
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1629
|
-
var l, s, i, u;
|
|
1628
|
+
function Ha(e, t, n, o) {
|
|
1629
|
+
var l, s, i, u, r;
|
|
1630
1630
|
const a = n.parentComponentInstance;
|
|
1631
1631
|
if (a && o) {
|
|
1632
|
-
const
|
|
1632
|
+
const v = (l = a.schema) == null ? void 0 : l.type, d = {
|
|
1633
1633
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
1634
1634
|
componentName: ((i = (s = n.bindingSourceContext) == null ? void 0 : s.bindingEntity) == null ? void 0 : i.name) || "标题",
|
|
1635
1635
|
componentType: "form",
|
|
1636
|
-
formColumns:
|
|
1636
|
+
formColumns: v === "splitter-pane" ? 1 : 4,
|
|
1637
1637
|
parentContainerId: a.schema.id,
|
|
1638
|
-
bindTo: ((u = n.bindingSourceContext) == null ? void 0 : u.bindTo) || "/"
|
|
1638
|
+
bindTo: ((u = n.bindingSourceContext) == null ? void 0 : u.bindTo) || "/",
|
|
1639
|
+
selectedFields: (r = n.bindingSourceContext) == null ? void 0 : r.bindingEntityFields
|
|
1639
1640
|
};
|
|
1640
|
-
return new
|
|
1641
|
+
return new ja(e, o).createComponent(d);
|
|
1641
1642
|
} else
|
|
1642
1643
|
return t;
|
|
1643
1644
|
}
|
|
1644
|
-
function
|
|
1645
|
+
function za(e, t, n) {
|
|
1645
1646
|
return t;
|
|
1646
1647
|
}
|
|
1647
|
-
const
|
|
1648
|
+
const Ga = "https://json-schema.org/draft/2020-12/schema", qa = "https://farris-design.gitee.io/response-form.schema.json", Wa = "response-form", Ua = "A Farris Data Collection Component", Xa = "object", Ya = {
|
|
1648
1649
|
id: {
|
|
1649
1650
|
description: "The unique identifier for a form group",
|
|
1650
1651
|
type: "string"
|
|
@@ -1672,23 +1673,23 @@ const qa = "https://json-schema.org/draft/2020-12/schema", Wa = "https://farris-
|
|
|
1672
1673
|
type: "array",
|
|
1673
1674
|
default: []
|
|
1674
1675
|
}
|
|
1675
|
-
},
|
|
1676
|
+
}, Qa = [
|
|
1676
1677
|
"id",
|
|
1677
1678
|
"type"
|
|
1678
|
-
],
|
|
1679
|
-
$schema:
|
|
1680
|
-
$id:
|
|
1681
|
-
title:
|
|
1682
|
-
description:
|
|
1683
|
-
type:
|
|
1684
|
-
properties:
|
|
1685
|
-
required:
|
|
1686
|
-
},
|
|
1679
|
+
], Ja = {
|
|
1680
|
+
$schema: Ga,
|
|
1681
|
+
$id: qa,
|
|
1682
|
+
title: Wa,
|
|
1683
|
+
description: Ua,
|
|
1684
|
+
type: Xa,
|
|
1685
|
+
properties: Ya,
|
|
1686
|
+
required: Qa
|
|
1687
|
+
}, Za = {
|
|
1687
1688
|
customClass: { type: String, default: "" },
|
|
1688
1689
|
customStyle: { type: String, defaut: "" }
|
|
1689
1690
|
};
|
|
1690
|
-
Be(
|
|
1691
|
-
const
|
|
1691
|
+
Be(Za, Ja, dt, Ha);
|
|
1692
|
+
const Ka = "https://json-schema.org/draft/2020-12/schema", el = "https://farris-design.gitee.io/form-group.schema.json", tl = "form-group", nl = "A Farris Input Component", ol = "object", al = {
|
|
1692
1693
|
id: {
|
|
1693
1694
|
description: "The unique identifier for a form group",
|
|
1694
1695
|
type: "string"
|
|
@@ -1734,18 +1735,18 @@ const el = "https://json-schema.org/draft/2020-12/schema", tl = "https://farris-
|
|
|
1734
1735
|
type: "object",
|
|
1735
1736
|
default: {}
|
|
1736
1737
|
}
|
|
1737
|
-
},
|
|
1738
|
+
}, ll = [
|
|
1738
1739
|
"id",
|
|
1739
1740
|
"type"
|
|
1740
|
-
],
|
|
1741
|
-
$schema:
|
|
1742
|
-
$id:
|
|
1743
|
-
title:
|
|
1744
|
-
description:
|
|
1745
|
-
type:
|
|
1746
|
-
properties:
|
|
1747
|
-
required:
|
|
1748
|
-
},
|
|
1741
|
+
], Pt = {
|
|
1742
|
+
$schema: Ka,
|
|
1743
|
+
$id: el,
|
|
1744
|
+
title: tl,
|
|
1745
|
+
description: nl,
|
|
1746
|
+
type: ol,
|
|
1747
|
+
properties: al,
|
|
1748
|
+
required: ll
|
|
1749
|
+
}, At = {
|
|
1749
1750
|
id: { type: String, default: "" },
|
|
1750
1751
|
customClass: { type: String, default: "" },
|
|
1751
1752
|
customStyle: { type: String, default: "" },
|
|
@@ -1761,19 +1762,19 @@ const el = "https://json-schema.org/draft/2020-12/schema", tl = "https://farris-
|
|
|
1761
1762
|
type: { type: String, default: "input-group" }
|
|
1762
1763
|
};
|
|
1763
1764
|
Be(
|
|
1764
|
-
jt,
|
|
1765
1765
|
At,
|
|
1766
|
+
Pt,
|
|
1766
1767
|
dt,
|
|
1767
1768
|
void 0
|
|
1768
1769
|
);
|
|
1769
|
-
const
|
|
1770
|
+
const sl = {
|
|
1770
1771
|
id: { type: String },
|
|
1771
1772
|
required: { type: Boolean, default: !1 },
|
|
1772
1773
|
text: { type: String, default: "" },
|
|
1773
1774
|
title: { type: String }
|
|
1774
|
-
},
|
|
1775
|
+
}, rl = /* @__PURE__ */ ue({
|
|
1775
1776
|
name: "FDynamicFormLabel",
|
|
1776
|
-
props:
|
|
1777
|
+
props: sl,
|
|
1777
1778
|
emits: [],
|
|
1778
1779
|
setup(e, t) {
|
|
1779
1780
|
const n = f(e.title || e.text), o = f(e.required), a = f(e.text);
|
|
@@ -1790,13 +1791,13 @@ const rl = {
|
|
|
1790
1791
|
class: "farris-label-text"
|
|
1791
1792
|
}, [a.value])]);
|
|
1792
1793
|
}
|
|
1793
|
-
}),
|
|
1794
|
+
}), il = /* @__PURE__ */ new Map([
|
|
1794
1795
|
["appearance", ct]
|
|
1795
1796
|
]);
|
|
1796
|
-
function
|
|
1797
|
+
function ul(e, t, n) {
|
|
1797
1798
|
return t;
|
|
1798
1799
|
}
|
|
1799
|
-
const
|
|
1800
|
+
const cl = "https://json-schema.org/draft/2020-12/schema", dl = "https://farris-design.gitee.io/input-group.schema.json", fl = "input-group", pl = "A Farris Input Component", vl = "object", ml = {
|
|
1800
1801
|
id: {
|
|
1801
1802
|
description: "The unique identifier for a Input Group",
|
|
1802
1803
|
type: "string"
|
|
@@ -1993,24 +1994,24 @@ const dl = "https://json-schema.org/draft/2020-12/schema", fl = "https://farris-
|
|
|
1993
1994
|
type: "string",
|
|
1994
1995
|
default: ""
|
|
1995
1996
|
}
|
|
1996
|
-
},
|
|
1997
|
+
}, hl = [
|
|
1997
1998
|
"id",
|
|
1998
1999
|
"type"
|
|
1999
|
-
],
|
|
2000
|
+
], gl = [
|
|
2000
2001
|
"id",
|
|
2001
2002
|
"appearance",
|
|
2002
2003
|
"binding",
|
|
2003
2004
|
"visible"
|
|
2004
|
-
],
|
|
2005
|
-
$schema:
|
|
2006
|
-
$id:
|
|
2007
|
-
title:
|
|
2008
|
-
description:
|
|
2009
|
-
type:
|
|
2010
|
-
properties:
|
|
2011
|
-
required:
|
|
2012
|
-
ignore:
|
|
2013
|
-
},
|
|
2005
|
+
], yl = {
|
|
2006
|
+
$schema: cl,
|
|
2007
|
+
$id: dl,
|
|
2008
|
+
title: fl,
|
|
2009
|
+
description: pl,
|
|
2010
|
+
type: vl,
|
|
2011
|
+
properties: ml,
|
|
2012
|
+
required: hl,
|
|
2013
|
+
ignore: gl
|
|
2014
|
+
}, jt = {
|
|
2014
2015
|
id: { Type: String, default: "" },
|
|
2015
2016
|
/** 是否自动完成 */
|
|
2016
2017
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -2078,15 +2079,15 @@ const dl = "https://json-schema.org/draft/2020-12/schema", fl = "https://farris-
|
|
|
2078
2079
|
*/
|
|
2079
2080
|
updateOn: { type: String, default: "blur" }
|
|
2080
2081
|
};
|
|
2081
|
-
Be(
|
|
2082
|
-
function
|
|
2082
|
+
Be(jt, yl, il, ul);
|
|
2083
|
+
function bl(e, t) {
|
|
2083
2084
|
const n = f(e.groupText), o = D(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = D(() => e.enableClear || !!e.groupText);
|
|
2084
2085
|
return { appendedButtonClass: D(() => ({
|
|
2085
2086
|
"input-group-append": !0,
|
|
2086
2087
|
"append-force-show": o.value
|
|
2087
2088
|
})), appendedContent: n, shouldShowAppendedButton: a };
|
|
2088
2089
|
}
|
|
2089
|
-
function
|
|
2090
|
+
function wl(e, t, n, o) {
|
|
2090
2091
|
const { appendedContent: a } = o, l = f(e.enableViewPassword), s = D(() => e.type === "password"), i = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', r = f(!1);
|
|
2091
2092
|
Z(() => [e.readonly, e.disabled], ([d, M]) => {
|
|
2092
2093
|
s.value && (n.value = d || M ? "password" : n.value, a.value = d || M ? u : a.value);
|
|
@@ -2099,7 +2100,7 @@ function Cl(e, t, n, o) {
|
|
|
2099
2100
|
}
|
|
2100
2101
|
return m(), { isPassword: s, onClickAppendedButton: v };
|
|
2101
2102
|
}
|
|
2102
|
-
function
|
|
2103
|
+
function Cl(e, t, n) {
|
|
2103
2104
|
const o = f(), {
|
|
2104
2105
|
onBlurTextBox: a,
|
|
2105
2106
|
onFocusTextBox: l,
|
|
@@ -2118,7 +2119,7 @@ function _l(e, t, n) {
|
|
|
2118
2119
|
function M() {
|
|
2119
2120
|
e.selectOnCreated, e.focusOnCreated;
|
|
2120
2121
|
}
|
|
2121
|
-
async function
|
|
2122
|
+
async function T(V) {
|
|
2122
2123
|
l(V), await tt, M();
|
|
2123
2124
|
}
|
|
2124
2125
|
return ye(async () => {
|
|
@@ -2134,12 +2135,12 @@ function _l(e, t, n) {
|
|
|
2134
2135
|
placeholder: r.value,
|
|
2135
2136
|
onBlur: a,
|
|
2136
2137
|
onChange: d,
|
|
2137
|
-
onFocus:
|
|
2138
|
+
onFocus: T,
|
|
2138
2139
|
onInput: s,
|
|
2139
2140
|
onKeydown: i
|
|
2140
2141
|
}, null);
|
|
2141
2142
|
}
|
|
2142
|
-
function
|
|
2143
|
+
function _l(e, t, n) {
|
|
2143
2144
|
const {
|
|
2144
2145
|
canDownward: o,
|
|
2145
2146
|
canUpward: a,
|
|
@@ -2180,38 +2181,38 @@ function xl(e, t, n) {
|
|
|
2180
2181
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
2181
2182
|
}, null)])]);
|
|
2182
2183
|
}
|
|
2183
|
-
function
|
|
2184
|
-
const n =
|
|
2184
|
+
function xl(e, t) {
|
|
2185
|
+
const n = Xn(e, t), o = Yn(e, t, n), a = Qn(e, t, o, n), l = Jn(e, t, o, n, a), s = _l(e, t, a), {
|
|
2185
2186
|
displayValue: i,
|
|
2186
2187
|
modelValue: u,
|
|
2187
2188
|
getRealValue: r
|
|
2188
|
-
} = n, v =
|
|
2189
|
+
} = n, v = Cl(e, t, l), {
|
|
2189
2190
|
format: m
|
|
2190
2191
|
} = o, {
|
|
2191
2192
|
isFocus: d
|
|
2192
2193
|
} = l, M = D(() => !e.disabled && !e.readonly);
|
|
2193
2194
|
return ye(() => {
|
|
2194
|
-
const
|
|
2195
|
-
i.value = m(
|
|
2196
|
-
}), Z(() => [e.value], ([
|
|
2197
|
-
const V = r(
|
|
2195
|
+
const T = r(e.modelValue);
|
|
2196
|
+
i.value = m(T);
|
|
2197
|
+
}), Z(() => [e.value], ([T]) => {
|
|
2198
|
+
const V = r(T);
|
|
2198
2199
|
u.value = V, i.value = m(V);
|
|
2199
|
-
}), Z(() => [e.modelValue], ([
|
|
2200
|
-
|
|
2200
|
+
}), Z(() => [e.modelValue], ([T]) => {
|
|
2201
|
+
T !== u.value && (u.value = T, !d.value && (i.value = m(r(T))));
|
|
2201
2202
|
}), Z(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
2202
2203
|
i.value = m(u.value);
|
|
2203
2204
|
}), () => c("div", {
|
|
2204
2205
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2205
2206
|
}, [v(), M.value && s()]);
|
|
2206
2207
|
}
|
|
2207
|
-
function
|
|
2208
|
+
function Sl(e, t, n, o) {
|
|
2208
2209
|
const a = f(), l = f(e.autocomplete), s = f(e.enableTitle), {
|
|
2209
2210
|
isPassword: i
|
|
2210
2211
|
} = n, u = f(e.minLength), r = f(e.maxLength), v = f(e.tabIndex), {
|
|
2211
2212
|
disabled: m,
|
|
2212
2213
|
displayText: d,
|
|
2213
2214
|
inputType: M,
|
|
2214
|
-
onBlur:
|
|
2215
|
+
onBlur: T,
|
|
2215
2216
|
onFocus: V,
|
|
2216
2217
|
onInput: O,
|
|
2217
2218
|
onClick: p,
|
|
@@ -2219,7 +2220,7 @@ function kl(e, t, n, o) {
|
|
|
2219
2220
|
onKeyup: y,
|
|
2220
2221
|
onMousedown: b,
|
|
2221
2222
|
onTextBoxValueChange: w,
|
|
2222
|
-
readonly:
|
|
2223
|
+
readonly: I,
|
|
2223
2224
|
placeholder: C,
|
|
2224
2225
|
textBoxClass: E,
|
|
2225
2226
|
textBoxTitle: g
|
|
@@ -2235,12 +2236,12 @@ function kl(e, t, n, o) {
|
|
|
2235
2236
|
maxlength: r.value,
|
|
2236
2237
|
minlength: u.value,
|
|
2237
2238
|
placeholder: C.value,
|
|
2238
|
-
readonly:
|
|
2239
|
+
readonly: I == null ? void 0 : I.value,
|
|
2239
2240
|
tabindex: v.value,
|
|
2240
2241
|
title: s.value && !i.value ? g.value : "",
|
|
2241
2242
|
type: M.value,
|
|
2242
2243
|
value: d == null ? void 0 : d.value,
|
|
2243
|
-
onBlur:
|
|
2244
|
+
onBlur: T,
|
|
2244
2245
|
onClick: p,
|
|
2245
2246
|
onChange: w,
|
|
2246
2247
|
onFocus: V,
|
|
@@ -2250,23 +2251,23 @@ function kl(e, t, n, o) {
|
|
|
2250
2251
|
onMousedown: b
|
|
2251
2252
|
}, null);
|
|
2252
2253
|
}
|
|
2253
|
-
function
|
|
2254
|
+
function kl(e, t) {
|
|
2254
2255
|
const n = D(() => e.useExtendInfo && !!e.extendInfo), o = ve({
|
|
2255
2256
|
content: e.extendInfo
|
|
2256
2257
|
});
|
|
2257
2258
|
function a() {
|
|
2258
2259
|
t.emit("updateExtendInfo");
|
|
2259
2260
|
}
|
|
2260
|
-
return () => n.value &&
|
|
2261
|
+
return () => n.value && Ct(c("span", {
|
|
2261
2262
|
class: "input-group-before-tips",
|
|
2262
2263
|
onMouseenter: a
|
|
2263
2264
|
}, [c("i", {
|
|
2264
2265
|
class: "f-icon f-icon-info-circle"
|
|
2265
2266
|
}, null), c("b", {
|
|
2266
2267
|
class: "tips-arrow"
|
|
2267
|
-
}, null)]), [[
|
|
2268
|
+
}, null)]), [[hn("tooltip"), o]]);
|
|
2268
2269
|
}
|
|
2269
|
-
function
|
|
2270
|
+
function Tl(e, t, n, o, a) {
|
|
2270
2271
|
const {
|
|
2271
2272
|
appendedButtonClass: l,
|
|
2272
2273
|
appendedContent: s
|
|
@@ -2276,7 +2277,7 @@ function Fl(e, t, n, o, a) {
|
|
|
2276
2277
|
onClearValue: d,
|
|
2277
2278
|
shouldShowClearButton: M
|
|
2278
2279
|
} = o;
|
|
2279
|
-
function
|
|
2280
|
+
function T() {
|
|
2280
2281
|
return c("span", {
|
|
2281
2282
|
id: "clearIcon",
|
|
2282
2283
|
class: v.value,
|
|
@@ -2313,26 +2314,26 @@ function Fl(e, t, n, o, a) {
|
|
|
2313
2314
|
function w() {
|
|
2314
2315
|
return u.value ? y : r.value ? b : "";
|
|
2315
2316
|
}
|
|
2316
|
-
const
|
|
2317
|
+
const I = w();
|
|
2317
2318
|
return () => c("div", {
|
|
2318
2319
|
class: l.value
|
|
2319
|
-
}, [M.value &&
|
|
2320
|
+
}, [M.value && T(), I && I()]);
|
|
2320
2321
|
}
|
|
2321
|
-
const
|
|
2322
|
+
const Fl = /* @__PURE__ */ ue({
|
|
2322
2323
|
name: "FInputGroup",
|
|
2323
|
-
props:
|
|
2324
|
+
props: jt,
|
|
2324
2325
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2325
2326
|
setup(e, t) {
|
|
2326
|
-
const n = f(e.modelValue), o = f(e.modelValue), a =
|
|
2327
|
+
const n = f(e.modelValue), o = f(e.modelValue), a = zn(e, t, n, o), {
|
|
2327
2328
|
inputGroupClass: l,
|
|
2328
2329
|
inputType: s,
|
|
2329
2330
|
inputGroupStyle: i
|
|
2330
|
-
} = a, u =
|
|
2331
|
+
} = a, u = bl(e), {
|
|
2331
2332
|
shouldShowAppendedButton: r
|
|
2332
|
-
} = u, v =
|
|
2333
|
+
} = u, v = Gn(e, t, a), {
|
|
2333
2334
|
onMouseEnter: m,
|
|
2334
2335
|
onMouseLeave: d
|
|
2335
|
-
} = v, M =
|
|
2336
|
+
} = v, M = wl(e, t, s, u), T = xl(e, t), V = Sl(e, t, M, a), O = Tl(e, t, u, v, M), p = kl(e, t), h = D(() => e.type === "number");
|
|
2336
2337
|
Z(() => [e.value], ([b]) => {
|
|
2337
2338
|
n.value = b, o.value = b;
|
|
2338
2339
|
}), Z(() => [e.modelValue], ([b]) => {
|
|
@@ -2346,18 +2347,18 @@ const El = /* @__PURE__ */ ue({
|
|
|
2346
2347
|
style: i.value,
|
|
2347
2348
|
onMouseenter: m,
|
|
2348
2349
|
onMouseleave: d
|
|
2349
|
-
}, [h.value ?
|
|
2350
|
+
}, [h.value ? T() : c(ge, null, [p(), V(), r.value && O()])])]);
|
|
2350
2351
|
return () => y();
|
|
2351
2352
|
}
|
|
2352
2353
|
}), G = {}, q = {}, W = {}, U = {};
|
|
2353
|
-
let
|
|
2354
|
-
function
|
|
2355
|
-
|
|
2354
|
+
let bt = !1;
|
|
2355
|
+
function El() {
|
|
2356
|
+
bt || (bt = !0, Kn.register(G, q, W, U), Zn.register(G, q, W, U), eo.register(G, q, W, U), to.register(G, q, W, U), no.register(G, q, W, U), oo.register(G, q, W, U), Nn.register(G, q, W, U), nt.register(G, q, W, U), ao.register(G, q, W, U), lo.register(G, q, W, U), ro.register(G, q, W, U), so.register(G, q, W, U), io.register(G, q, W, U), uo.register(G, q, W, U), co.register(G, q, W, U), An.register(G, q, W, U), fo.register(G, q, W, U), Ln.register(G, q, W, U), po.register(G, q, W, U), mo.register(G, q, W, U), ho.register(G, q, W, U), go.register(G, q, W, U), bo.register(G, q, W, U), yo.register(G, q, W, U), wo.register(G, q, W, U), Co.register(G, q, W, U), _o.register(G, q, W, U), xo.register(G, q, W, U), Un.register(G, q, W, U), $n.register(G, q, W, U), So.register(G, q, W, U), ko.register(G, q, W, U), Pn.register(G, q, W, U), To.register(G, q, W, U), Fo.register(G, q, W, U), Eo.register(G, q, W, U), Mo.register(G, q, W, U), Bo.register(G, q, W, U), Vo.register(G, q, W, U), Io.register(G, q, W, U), Xo.register(G, q, W), Oo.register(G, q, W, U), No.register(G, q, W, U), Ro.register(G, q, W, U), Do.register(G, q, W, U), $o.register(G, q, W, U), Lo.register(G, q, W, U), Dn.register(G, q, W, U), Po.register(G, q, W, U), Ao.register(G, q, W, U), jo.register(G, q, W, U), Rn.register(G, q, W, U), Ho.register(G, q, W, U), Go.register(G, q, W, U), zo.register(G, q, W, U), qo.register(G, q, W, U), Wo.register(G, q, W, U), Uo.register(G, q, W, U), Yo.register(G, q, W, U), vo.register(G, q, W, U), Qo.register(G, q, W, U));
|
|
2356
2357
|
}
|
|
2357
|
-
function
|
|
2358
|
-
|
|
2358
|
+
function Ml() {
|
|
2359
|
+
El();
|
|
2359
2360
|
function e(a) {
|
|
2360
|
-
return G[a] ||
|
|
2361
|
+
return G[a] || Fl;
|
|
2361
2362
|
}
|
|
2362
2363
|
function t(a, l) {
|
|
2363
2364
|
const s = q[a];
|
|
@@ -2437,9 +2438,9 @@ function Il() {
|
|
|
2437
2438
|
}
|
|
2438
2439
|
return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
|
|
2439
2440
|
}
|
|
2440
|
-
const
|
|
2441
|
+
const Il = /* @__PURE__ */ ue({
|
|
2441
2442
|
name: "FDynamicFormGroup",
|
|
2442
|
-
props:
|
|
2443
|
+
props: At,
|
|
2443
2444
|
emits: ["change", "update:modelValue"],
|
|
2444
2445
|
setup(e, t) {
|
|
2445
2446
|
const n = f(e.id), o = f(e.customClass), a = f(e.editor), l = f(e.label), s = f(e.modelValue), i = f(e.readonly), u = f(e.required), r = f(e.showLabel), v = f(e.visible);
|
|
@@ -2447,9 +2448,9 @@ const Bl = /* @__PURE__ */ ue({
|
|
|
2447
2448
|
const m = f(), {
|
|
2448
2449
|
resolveEditorProps: d,
|
|
2449
2450
|
resolveEditorType: M,
|
|
2450
|
-
getChangeFunctionName:
|
|
2451
|
+
getChangeFunctionName: T,
|
|
2451
2452
|
getClearFunctionName: V
|
|
2452
|
-
} =
|
|
2453
|
+
} = Ml(), O = D(() => ({
|
|
2453
2454
|
"form-group": !0,
|
|
2454
2455
|
"farris-form-group": !0,
|
|
2455
2456
|
"common-group": !0,
|
|
@@ -2462,16 +2463,16 @@ const Bl = /* @__PURE__ */ ue({
|
|
|
2462
2463
|
t.emit("update:modelValue", "");
|
|
2463
2464
|
}
|
|
2464
2465
|
const y = D(() => {
|
|
2465
|
-
const b = a.value.type || "input-group", w = M(b),
|
|
2466
|
-
return E && (
|
|
2466
|
+
const b = a.value.type || "input-group", w = M(b), I = d(b, a.value), C = T(b), E = V(a.value.type);
|
|
2467
|
+
return E && (I[E] = h), I[C] = p, (I.id == null || I.id === "") && (I.id = n.value), () => c(w, He({
|
|
2467
2468
|
ref: m
|
|
2468
|
-
},
|
|
2469
|
+
}, I, {
|
|
2469
2470
|
modelValue: s.value,
|
|
2470
2471
|
"onUpdate:modelValue": (g) => s.value = g
|
|
2471
2472
|
}), t.slots);
|
|
2472
2473
|
});
|
|
2473
|
-
return Z([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([b, w,
|
|
2474
|
-
n.value = b, o.value = w, a.value =
|
|
2474
|
+
return Z([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([b, w, I, C, E, g, F, x, S]) => {
|
|
2475
|
+
n.value = b, o.value = w, a.value = I, l.value = C, s.value = E, i.value = g, u.value = F, r.value = x, v.value = S;
|
|
2475
2476
|
}), t.expose({
|
|
2476
2477
|
editorRef: m
|
|
2477
2478
|
}), () => v.value && c("div", {
|
|
@@ -2482,7 +2483,7 @@ const Bl = /* @__PURE__ */ ue({
|
|
|
2482
2483
|
class: "farris-group-wrap"
|
|
2483
2484
|
}, [c("div", {
|
|
2484
2485
|
class: O.value
|
|
2485
|
-
}, [r.value && c(
|
|
2486
|
+
}, [r.value && c(rl, {
|
|
2486
2487
|
id: `${n.value}-lable`,
|
|
2487
2488
|
required: u.value,
|
|
2488
2489
|
text: l.value,
|
|
@@ -2561,9 +2562,9 @@ z(Me, "fieldControlTypeMapping", {
|
|
|
2561
2562
|
{ key: Y["radio-group"].type, value: Y["radio-group"].name }
|
|
2562
2563
|
]
|
|
2563
2564
|
});
|
|
2564
|
-
let
|
|
2565
|
+
let wt = Me;
|
|
2565
2566
|
f(0);
|
|
2566
|
-
const
|
|
2567
|
+
const Bl = {
|
|
2567
2568
|
id: { type: String, default: "" },
|
|
2568
2569
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
2569
2570
|
editor: { type: Object, default: {} },
|
|
@@ -2579,12 +2580,12 @@ const Vl = {
|
|
|
2579
2580
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
2580
2581
|
};
|
|
2581
2582
|
Be(
|
|
2582
|
-
|
|
2583
|
-
|
|
2583
|
+
Bl,
|
|
2584
|
+
Pt,
|
|
2584
2585
|
dt,
|
|
2585
2586
|
void 0
|
|
2586
2587
|
);
|
|
2587
|
-
const
|
|
2588
|
+
const Vl = "https://json-schema.org/draft/2020-12/schema", Ol = "https://farris-design.gitee.io/grid-field-editor.schema.json", Nl = "response-form-layout-setting", Rl = "A Farris Data Grid Component", Dl = "object", $l = {
|
|
2588
2589
|
id: {
|
|
2589
2590
|
description: "The unique identifier for a Input Group",
|
|
2590
2591
|
type: "string"
|
|
@@ -2604,18 +2605,18 @@ const Ol = "https://json-schema.org/draft/2020-12/schema", Nl = "https://farris-
|
|
|
2604
2605
|
type: "Object",
|
|
2605
2606
|
default: null
|
|
2606
2607
|
}
|
|
2607
|
-
},
|
|
2608
|
+
}, Ll = [
|
|
2608
2609
|
"id",
|
|
2609
2610
|
"type"
|
|
2610
|
-
],
|
|
2611
|
-
$schema:
|
|
2612
|
-
$id:
|
|
2613
|
-
title:
|
|
2614
|
-
description:
|
|
2615
|
-
type:
|
|
2616
|
-
properties:
|
|
2617
|
-
required:
|
|
2618
|
-
},
|
|
2611
|
+
], Pl = {
|
|
2612
|
+
$schema: Vl,
|
|
2613
|
+
$id: Ol,
|
|
2614
|
+
title: Nl,
|
|
2615
|
+
description: Rl,
|
|
2616
|
+
type: Dl,
|
|
2617
|
+
properties: $l,
|
|
2618
|
+
required: Ll
|
|
2619
|
+
}, Al = {
|
|
2619
2620
|
initialState: {
|
|
2620
2621
|
type: Object,
|
|
2621
2622
|
default: {
|
|
@@ -2626,8 +2627,8 @@ const Ol = "https://json-schema.org/draft/2020-12/schema", Nl = "https://farris-
|
|
|
2626
2627
|
}
|
|
2627
2628
|
}
|
|
2628
2629
|
};
|
|
2629
|
-
|
|
2630
|
-
const
|
|
2630
|
+
Jo(Al, Pl, Pa, za);
|
|
2631
|
+
const jl = {
|
|
2631
2632
|
width: { Type: Number, default: 400 },
|
|
2632
2633
|
type: { Type: String, default: "info" },
|
|
2633
2634
|
title: { Type: String, default: "" },
|
|
@@ -2640,12 +2641,12 @@ const Hl = {
|
|
|
2640
2641
|
function ft() {
|
|
2641
2642
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
2642
2643
|
}
|
|
2643
|
-
async function
|
|
2644
|
+
async function Hl(e) {
|
|
2644
2645
|
if (!navigator.clipboard)
|
|
2645
2646
|
throw ft();
|
|
2646
2647
|
return navigator.clipboard.writeText(e);
|
|
2647
2648
|
}
|
|
2648
|
-
async function
|
|
2649
|
+
async function zl(e) {
|
|
2649
2650
|
const t = document.createElement("span");
|
|
2650
2651
|
t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
|
|
2651
2652
|
const n = window.getSelection(), o = window.document.createRange();
|
|
@@ -2659,24 +2660,24 @@ async function Gl(e) {
|
|
|
2659
2660
|
if (!a)
|
|
2660
2661
|
throw ft();
|
|
2661
2662
|
}
|
|
2662
|
-
async function
|
|
2663
|
+
async function Gl(e) {
|
|
2663
2664
|
try {
|
|
2664
|
-
await
|
|
2665
|
+
await Hl(e);
|
|
2665
2666
|
} catch (t) {
|
|
2666
2667
|
try {
|
|
2667
|
-
await
|
|
2668
|
+
await zl(e);
|
|
2668
2669
|
} catch (n) {
|
|
2669
2670
|
throw n || t || ft();
|
|
2670
2671
|
}
|
|
2671
2672
|
}
|
|
2672
2673
|
}
|
|
2673
|
-
function
|
|
2674
|
+
function ql() {
|
|
2674
2675
|
async function e(t) {
|
|
2675
|
-
await
|
|
2676
|
+
await Gl(t);
|
|
2676
2677
|
}
|
|
2677
2678
|
return { onCopy: e };
|
|
2678
2679
|
}
|
|
2679
|
-
function
|
|
2680
|
+
function Wl(e, t, n, o) {
|
|
2680
2681
|
const a = f(14), l = f(140), s = f(""), i = f(o.value.length), u = D(() => o.value), r = D(() => ({
|
|
2681
2682
|
"font-size": `${a.value}px`,
|
|
2682
2683
|
height: "100%"
|
|
@@ -2701,14 +2702,14 @@ function Ul(e, t, n, o) {
|
|
|
2701
2702
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
2702
2703
|
}, [i.value + " / " + l.value])]);
|
|
2703
2704
|
}
|
|
2704
|
-
function
|
|
2705
|
-
const a =
|
|
2705
|
+
function Ul(e, t, n, o) {
|
|
2706
|
+
const a = Wl(e, t, n, o), l = /* @__PURE__ */ new Map([["text-area", a]]);
|
|
2706
2707
|
function s(i) {
|
|
2707
2708
|
return l.get(i) || null;
|
|
2708
2709
|
}
|
|
2709
2710
|
return { getEditorRender: s };
|
|
2710
2711
|
}
|
|
2711
|
-
function
|
|
2712
|
+
function Xl() {
|
|
2712
2713
|
const e = f(!1), t = f("复制成功");
|
|
2713
2714
|
return {
|
|
2714
2715
|
feedbackStyle: D(() => {
|
|
@@ -2734,11 +2735,11 @@ function Yl() {
|
|
|
2734
2735
|
toShowFeedback: e
|
|
2735
2736
|
};
|
|
2736
2737
|
}
|
|
2737
|
-
function
|
|
2738
|
+
function Yl(e, t) {
|
|
2738
2739
|
const n = t.getEditorRender(e.promptEditorType);
|
|
2739
2740
|
return () => n && n();
|
|
2740
2741
|
}
|
|
2741
|
-
function
|
|
2742
|
+
function Ql(e) {
|
|
2742
2743
|
const t = f(3), n = f(480), o = D(() => !!e.value && !!e.value.date), a = D(() => `发生时间 : ${e.value && e.value.date || ""}`), l = D(() => !!e.value && !!e.value.detail), s = D(() => {
|
|
2743
2744
|
const O = `${n.value}px`;
|
|
2744
2745
|
return {
|
|
@@ -2759,7 +2760,7 @@ function Jl(e) {
|
|
|
2759
2760
|
function M(O, p) {
|
|
2760
2761
|
r.value = !r.value, t.value = r.value ? 20 : 3;
|
|
2761
2762
|
}
|
|
2762
|
-
function
|
|
2763
|
+
function T(O) {
|
|
2763
2764
|
return M();
|
|
2764
2765
|
}
|
|
2765
2766
|
function V(O) {
|
|
@@ -2776,20 +2777,20 @@ function Jl(e) {
|
|
|
2776
2777
|
}, null)]), u.value && c("span", {
|
|
2777
2778
|
style: d.value
|
|
2778
2779
|
}, [r.value && c("span", {
|
|
2779
|
-
onClick:
|
|
2780
|
+
onClick: T,
|
|
2780
2781
|
style: "cursor: pointer;"
|
|
2781
2782
|
}, [m.value]), !r.value && c("span", {
|
|
2782
2783
|
onClick: V,
|
|
2783
2784
|
style: "cursor: pointer;"
|
|
2784
2785
|
}, [v.value])])]);
|
|
2785
2786
|
}
|
|
2786
|
-
function
|
|
2787
|
+
function Jl(e) {
|
|
2787
2788
|
return () => c("p", {
|
|
2788
2789
|
class: "toast-msg-detail",
|
|
2789
2790
|
innerHTML: e.value
|
|
2790
2791
|
}, null);
|
|
2791
2792
|
}
|
|
2792
|
-
function
|
|
2793
|
+
function Zl(e, t, n, o) {
|
|
2793
2794
|
const a = f(e.exceptionInfo), l = D(() => {
|
|
2794
2795
|
const d = {
|
|
2795
2796
|
"f-icon": !0
|
|
@@ -2797,7 +2798,7 @@ function Kl(e, t, n, o) {
|
|
|
2797
2798
|
return d[M] = !0, d;
|
|
2798
2799
|
}), s = D(() => n.value || a.value && a.value.message), i = D(() => o.value), u = D(() => !!o.value), r = D(() => !!a.value);
|
|
2799
2800
|
function v() {
|
|
2800
|
-
return r.value ?
|
|
2801
|
+
return r.value ? Ql(a) : u.value ? Jl(i) : () => null;
|
|
2801
2802
|
}
|
|
2802
2803
|
const m = v();
|
|
2803
2804
|
return () => c(ge, null, [c("div", {
|
|
@@ -2811,7 +2812,7 @@ function Kl(e, t, n, o) {
|
|
|
2811
2812
|
innerHTML: s.value
|
|
2812
2813
|
}, null), m()])]);
|
|
2813
2814
|
}
|
|
2814
|
-
function
|
|
2815
|
+
function Kl(e, t, n) {
|
|
2815
2816
|
const {
|
|
2816
2817
|
onCopy: o
|
|
2817
2818
|
} = t, {
|
|
@@ -2837,8 +2838,8 @@ function es(e, t, n) {
|
|
|
2837
2838
|
style: "cursor: pointer;"
|
|
2838
2839
|
}, [s.value])]);
|
|
2839
2840
|
}
|
|
2840
|
-
function
|
|
2841
|
-
const a = f(e.type), l = f([]), s = f(e.exceptionInfo), i = f(e.okButtonText), u = f(e.cancelButtonText), r = f(!0), v = f(!0), m = D(() => !!(l.value && l.value.length)), d = D(() => s.value && s.value.date && s.value.message && s.value.detail), M = D(() => !(l.value && l.value.length) && (i.value || u.value)),
|
|
2841
|
+
function es(e, t, n, o) {
|
|
2842
|
+
const a = f(e.type), l = f([]), s = f(e.exceptionInfo), i = f(e.okButtonText), u = f(e.cancelButtonText), r = f(!0), v = f(!0), m = D(() => !!(l.value && l.value.length)), d = D(() => s.value && s.value.date && s.value.message && s.value.detail), M = D(() => !(l.value && l.value.length) && (i.value || u.value)), T = D(() => v.value && i.value), V = D(() => r.value && u.value), O = Kl(e, n, o);
|
|
2842
2843
|
function p(y) {
|
|
2843
2844
|
a.value === "question" && t.emit("reject"), t.emit("close");
|
|
2844
2845
|
}
|
|
@@ -2851,7 +2852,7 @@ function ts(e, t, n, o) {
|
|
|
2851
2852
|
type: "button",
|
|
2852
2853
|
class: "btn btn-secondary btn-lg",
|
|
2853
2854
|
onClick: p
|
|
2854
|
-
}, [u.value]), M.value &&
|
|
2855
|
+
}, [u.value]), M.value && T.value && c("button", {
|
|
2855
2856
|
type: "button",
|
|
2856
2857
|
class: "btn btn-primary btn-lg",
|
|
2857
2858
|
onClick: h
|
|
@@ -2865,7 +2866,7 @@ function ts(e, t, n, o) {
|
|
|
2865
2866
|
}
|
|
2866
2867
|
const Pe = /* @__PURE__ */ ue({
|
|
2867
2868
|
name: "FMessageBox",
|
|
2868
|
-
props:
|
|
2869
|
+
props: jl,
|
|
2869
2870
|
emits: ["accept", "reject", "close"],
|
|
2870
2871
|
setup(e, t) {
|
|
2871
2872
|
const n = f(e.type), o = f(e.title), a = f(e.detail), l = D(() => {
|
|
@@ -2878,7 +2879,7 @@ const Pe = /* @__PURE__ */ ue({
|
|
|
2878
2879
|
}), s = D(() => {
|
|
2879
2880
|
const O = {};
|
|
2880
2881
|
return n.value === "prompt" ? O.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (O.padding = "0.5rem 1.5rem 1rem 1.5rem"), O;
|
|
2881
|
-
}), i =
|
|
2882
|
+
}), i = ql(), u = Ul(e, n, o, a), r = Xl(), {
|
|
2882
2883
|
feedbackStyle: v,
|
|
2883
2884
|
feedbackMessage: m
|
|
2884
2885
|
} = r;
|
|
@@ -2890,20 +2891,20 @@ const Pe = /* @__PURE__ */ ue({
|
|
|
2890
2891
|
function M() {
|
|
2891
2892
|
switch (n.value) {
|
|
2892
2893
|
case "prompt":
|
|
2893
|
-
return
|
|
2894
|
+
return Yl(e, u);
|
|
2894
2895
|
default:
|
|
2895
|
-
return
|
|
2896
|
+
return Zl(e, n, o, a);
|
|
2896
2897
|
}
|
|
2897
2898
|
}
|
|
2898
|
-
const
|
|
2899
|
+
const T = M(), V = es(e, t, i, r);
|
|
2899
2900
|
return () => c("div", {
|
|
2900
2901
|
class: "farris-messager"
|
|
2901
2902
|
}, [c("section", {
|
|
2902
2903
|
class: l.value,
|
|
2903
2904
|
style: s.value
|
|
2904
|
-
}, [
|
|
2905
|
+
}, [T()]), V(), d()]);
|
|
2905
2906
|
}
|
|
2906
|
-
}),
|
|
2907
|
+
}), ts = {
|
|
2907
2908
|
/**
|
|
2908
2909
|
* 自定义类
|
|
2909
2910
|
*/
|
|
@@ -3028,12 +3029,12 @@ class oe {
|
|
|
3028
3029
|
return this.x = t.x, this.y = t.y, this;
|
|
3029
3030
|
}
|
|
3030
3031
|
}
|
|
3031
|
-
class
|
|
3032
|
+
class Se {
|
|
3032
3033
|
constructor(t, n) {
|
|
3033
3034
|
this.width = t, this.height = n;
|
|
3034
3035
|
}
|
|
3035
3036
|
static getCurrent(t) {
|
|
3036
|
-
const n = new
|
|
3037
|
+
const n = new Se(0, 0);
|
|
3037
3038
|
if (window) {
|
|
3038
3039
|
const o = window.getComputedStyle(t);
|
|
3039
3040
|
return o && (n.width = parseInt(o.getPropertyValue("width"), 10), n.height = parseInt(o.getPropertyValue("height"), 10)), n;
|
|
@@ -3041,27 +3042,27 @@ class xe {
|
|
|
3041
3042
|
return null;
|
|
3042
3043
|
}
|
|
3043
3044
|
static copy(t) {
|
|
3044
|
-
return new
|
|
3045
|
+
return new Se(0, 0).set(t);
|
|
3045
3046
|
}
|
|
3046
3047
|
set(t) {
|
|
3047
3048
|
return this.width = t.width, this.height = t.height, this;
|
|
3048
3049
|
}
|
|
3049
3050
|
}
|
|
3050
|
-
function
|
|
3051
|
-
const n = f(), o = f(), a = f(), l = f(), s = f(), i = f(), u = f(), r = f(), v = f(), m = f(), d = f(), M = f(),
|
|
3051
|
+
function ns(e, t) {
|
|
3052
|
+
const n = f(), o = f(), a = f(), l = f(), s = f(), i = f(), u = f(), r = f(), v = f(), m = f(), d = f(), M = f(), T = f(e.draggable), V = f(!1);
|
|
3052
3053
|
function O() {
|
|
3053
|
-
const
|
|
3054
|
+
const B = o.value || document.body, N = window.getComputedStyle(B);
|
|
3054
3055
|
if (!N || !n.value)
|
|
3055
3056
|
return;
|
|
3056
|
-
const
|
|
3057
|
+
const A = oe.getTransformInfo(n.value), R = {};
|
|
3057
3058
|
u.value && (R.deltaL = n.value.offsetLeft - u.value.x, R.deltaT = n.value.offsetTop - u.value.y);
|
|
3058
3059
|
const j = N.getPropertyValue("position");
|
|
3059
|
-
R.width =
|
|
3060
|
+
R.width = B.clientWidth, R.height = B.clientHeight, R.pr = parseInt(N.getPropertyValue("padding-right"), 10), R.pb = parseInt(N.getPropertyValue("padding-bottom"), 10), R.position = N.getPropertyValue("position"), j === "static" && (B.style.position = "relative"), R.translateX = A.x, R.translateY = A.y, m.value = R;
|
|
3060
3061
|
}
|
|
3061
|
-
function p(
|
|
3062
|
+
function p(B) {
|
|
3062
3063
|
if (n.value) {
|
|
3063
|
-
l.value =
|
|
3064
|
-
const N =
|
|
3064
|
+
l.value = Se.getCurrent(n.value), s.value = oe.getCurrent(n.value), i.value = l.value ? Se.copy(l.value) : null, u.value = s.value ? oe.copy(s.value) : null, O();
|
|
3065
|
+
const N = B.target.getAttribute("type") || "";
|
|
3065
3066
|
r.value = {
|
|
3066
3067
|
n: !!N.match(/n/),
|
|
3067
3068
|
s: !!N.match(/s/),
|
|
@@ -3071,153 +3072,153 @@ function os(e, t) {
|
|
|
3071
3072
|
}
|
|
3072
3073
|
}
|
|
3073
3074
|
function h() {
|
|
3074
|
-
var
|
|
3075
|
+
var B, N, A, R;
|
|
3075
3076
|
if (n.value) {
|
|
3076
3077
|
const j = n.value;
|
|
3077
|
-
r.value && ((r.value.n || r.value.s) && ((
|
|
3078
|
+
r.value && ((r.value.n || r.value.s) && ((B = i.value) != null && B.height) && (j.style.height = i.value.height + "px"), (r.value.w || r.value.e) && ((N = i.value) != null && N.width) && (j.style.width = i.value.width + "px"), u.value && ((A = u.value) != null && A.x && (j.style.left = u.value.x + "px"), (R = u.value) != null && R.y && (j.style.top = u.value.y + "px")));
|
|
3078
3079
|
}
|
|
3079
3080
|
}
|
|
3080
3081
|
function y() {
|
|
3081
|
-
const
|
|
3082
|
-
i.value && u.value && r.value && l.value && (i.value.height <
|
|
3082
|
+
const B = e.minHeight ? e.minHeight : 1, N = e.minWidth ? e.minWidth : 1;
|
|
3083
|
+
i.value && u.value && r.value && l.value && (i.value.height < B && (i.value.height = B, r.value.n && s.value && (u.value.y = s.value.y + (l.value.height - B))), i.value.width < N && (i.value.width = N, r.value.w && s.value && (u.value.x = s.value.x + (l.value.width - N))), e.maxHeight && i.value.height > e.maxHeight && (i.value.height = e.maxHeight, s.value && r.value.n && (u.value.y = s.value.y + (l.value.height - e.maxHeight))), e.maxWidth && i.value.width > e.maxWidth && (i.value.width = e.maxWidth, r.value.w && s.value && (u.value.x = s.value.x + (l.value.width - e.maxWidth))));
|
|
3083
3084
|
}
|
|
3084
3085
|
function b() {
|
|
3085
3086
|
if (o.value) {
|
|
3086
|
-
const
|
|
3087
|
+
const B = m.value;
|
|
3087
3088
|
if (u.value && i.value && r.value && l.value) {
|
|
3088
|
-
const N =
|
|
3089
|
-
r.value.n && u.value.y +
|
|
3089
|
+
const N = B.width - B.pr - B.deltaL - B.translateX - u.value.x, A = B.height - B.pb - B.deltaT - B.translateY - u.value.y;
|
|
3090
|
+
r.value.n && u.value.y + B.translateY < 0 && s.value && (u.value.y = -B.translateY, i.value.height = l.value.height + s.value.y + B.translateY), r.value.w && u.value.x + B.translateX < 0 && s.value && (u.value.x = -B.translateX, i.value.width = l.value.width + s.value.x + B.translateX), i.value.width > N && (i.value.width = N), i.value.height > A && (i.value.height = A);
|
|
3090
3091
|
}
|
|
3091
3092
|
}
|
|
3092
3093
|
}
|
|
3093
|
-
function w(
|
|
3094
|
+
function w(B) {
|
|
3094
3095
|
if (!a.value || !l.value || !s.value || !r.value)
|
|
3095
3096
|
return;
|
|
3096
|
-
|
|
3097
|
-
const N =
|
|
3098
|
-
r.value.n ? (u.value.y = s.value.y +
|
|
3097
|
+
B.subtract(a.value);
|
|
3098
|
+
const N = B.x, A = B.y;
|
|
3099
|
+
r.value.n ? (u.value.y = s.value.y + A, i.value.height = l.value.height - A) : r.value.s && (i.value.height = l.value.height + A), r.value.e ? i.value.width = l.value.width + N : r.value.w && (i.value.width = l.value.width - N, u.value.x = s.value.x + N), b(), y(), h();
|
|
3099
3100
|
}
|
|
3100
|
-
function B
|
|
3101
|
+
function I(B) {
|
|
3101
3102
|
if (!v.value)
|
|
3102
3103
|
return;
|
|
3103
|
-
const N = oe.fromEvent(
|
|
3104
|
+
const N = oe.fromEvent(B);
|
|
3104
3105
|
N && w(N);
|
|
3105
3106
|
}
|
|
3106
3107
|
function C() {
|
|
3107
3108
|
if (n.value) {
|
|
3108
3109
|
const {
|
|
3109
|
-
width:
|
|
3110
|
+
width: B,
|
|
3110
3111
|
height: N,
|
|
3111
|
-
x:
|
|
3112
|
+
x: A,
|
|
3112
3113
|
y: R
|
|
3113
3114
|
} = n.value.getBoundingClientRect(), j = oe.getTransformInfo(n.value);
|
|
3114
3115
|
return {
|
|
3115
3116
|
size: {
|
|
3116
|
-
width:
|
|
3117
|
+
width: B,
|
|
3117
3118
|
height: N
|
|
3118
3119
|
},
|
|
3119
3120
|
position: {
|
|
3120
|
-
x:
|
|
3121
|
+
x: A - j.x,
|
|
3121
3122
|
y: R - j.y
|
|
3122
3123
|
}
|
|
3123
3124
|
};
|
|
3124
3125
|
}
|
|
3125
3126
|
return null;
|
|
3126
3127
|
}
|
|
3127
|
-
function E(
|
|
3128
|
+
function E(B) {
|
|
3128
3129
|
if (n.value) {
|
|
3129
3130
|
const N = C();
|
|
3130
3131
|
d.value = N;
|
|
3131
3132
|
}
|
|
3132
|
-
a.value = void 0, l.value = null, s.value = null, i.value = null, u.value = null, r.value = null, v.value = null, document.removeEventListener("mousemove",
|
|
3133
|
+
a.value = void 0, l.value = null, s.value = null, i.value = null, u.value = null, r.value = null, v.value = null, document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", E);
|
|
3133
3134
|
}
|
|
3134
3135
|
function g() {
|
|
3135
|
-
document.addEventListener("mousemove",
|
|
3136
|
+
document.addEventListener("mousemove", I), document.addEventListener("mouseup", E);
|
|
3136
3137
|
}
|
|
3137
|
-
function
|
|
3138
|
-
|
|
3138
|
+
function F(B) {
|
|
3139
|
+
B instanceof MouseEvent && B.button === 2 || T.value && (B.stopPropagation(), B.preventDefault(), a.value = oe.fromEvent(B), v.value = B.target, p(B), g());
|
|
3139
3140
|
}
|
|
3140
|
-
function x(
|
|
3141
|
-
return n.value =
|
|
3141
|
+
function x(B) {
|
|
3142
|
+
return n.value = B, c(ge, null, [c("div", {
|
|
3142
3143
|
class: "fv-resizable-handle fv-resizable-n",
|
|
3143
3144
|
type: "n",
|
|
3144
|
-
onMousedown: (N) =>
|
|
3145
|
+
onMousedown: (N) => F(N)
|
|
3145
3146
|
}, null), c("div", {
|
|
3146
3147
|
class: "fv-resizable-handle fv-resizable-e",
|
|
3147
3148
|
type: "e",
|
|
3148
|
-
onMousedown: (N) =>
|
|
3149
|
+
onMousedown: (N) => F(N)
|
|
3149
3150
|
}, null), c("div", {
|
|
3150
3151
|
class: "fv-resizable-handle fv-resizable-s",
|
|
3151
3152
|
type: "s",
|
|
3152
|
-
onMousedown: (N) =>
|
|
3153
|
+
onMousedown: (N) => F(N)
|
|
3153
3154
|
}, null), c("div", {
|
|
3154
3155
|
class: "fv-resizable-handle fv-resizable-w",
|
|
3155
3156
|
type: "w",
|
|
3156
|
-
onMousedown: (N) =>
|
|
3157
|
+
onMousedown: (N) => F(N)
|
|
3157
3158
|
}, null), c("div", {
|
|
3158
3159
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
3159
3160
|
type: "ne",
|
|
3160
|
-
onMousedown: (N) =>
|
|
3161
|
+
onMousedown: (N) => F(N)
|
|
3161
3162
|
}, null), c("div", {
|
|
3162
3163
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
3163
3164
|
type: "se",
|
|
3164
|
-
onMousedown: (N) =>
|
|
3165
|
+
onMousedown: (N) => F(N)
|
|
3165
3166
|
}, null), c("div", {
|
|
3166
3167
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
3167
3168
|
type: "sw",
|
|
3168
|
-
onMousedown: (N) =>
|
|
3169
|
+
onMousedown: (N) => F(N)
|
|
3169
3170
|
}, null), c("div", {
|
|
3170
3171
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
3171
3172
|
type: "nw",
|
|
3172
|
-
onMousedown: (N) =>
|
|
3173
|
+
onMousedown: (N) => F(N)
|
|
3173
3174
|
}, null)]);
|
|
3174
3175
|
}
|
|
3175
|
-
function S(
|
|
3176
|
-
const N = o.value || document.body,
|
|
3177
|
-
|
|
3176
|
+
function S(B = !0) {
|
|
3177
|
+
const N = o.value || document.body, A = Se.getCurrent(N), R = n.value;
|
|
3178
|
+
B && (M.value = C(), M.value.transform = R.style.transform), A && R && (i.value = A, R.style.height = i.value.height - 14 + "px", R.style.width = i.value.width - 14 + "px", R.style.left = "7px", R.style.top = "7px", R.style.transform = "", d.value = {
|
|
3178
3179
|
size: i.value,
|
|
3179
3180
|
position: {
|
|
3180
3181
|
x: 0,
|
|
3181
3182
|
y: 0
|
|
3182
3183
|
}
|
|
3183
|
-
},
|
|
3184
|
+
}, T.value = !1, V.value = !0);
|
|
3184
3185
|
}
|
|
3185
3186
|
function _() {
|
|
3186
|
-
var
|
|
3187
|
+
var B, N;
|
|
3187
3188
|
if (M.value) {
|
|
3188
|
-
const
|
|
3189
|
+
const A = {
|
|
3189
3190
|
width: M.value.size.width || 0,
|
|
3190
3191
|
height: M.value.size.height || 0
|
|
3191
3192
|
}, R = {
|
|
3192
|
-
x: (window.innerWidth -
|
|
3193
|
-
y: (window.innerHeight -
|
|
3193
|
+
x: (window.innerWidth - A.width) / 2,
|
|
3194
|
+
y: (window.innerHeight - A.height) / 2
|
|
3194
3195
|
};
|
|
3195
|
-
(
|
|
3196
|
+
(B = i.value) == null || B.set(A), (N = u.value) == null || N.set(R);
|
|
3196
3197
|
const j = n.value;
|
|
3197
|
-
j.style.height =
|
|
3198
|
-
size:
|
|
3198
|
+
j.style.height = A.height + "px", j.style.width = A.width + "px", j.style.left = `${R.x}px`, j.style.top = `${R.y}px`, j.style.transform = "", d.value = {
|
|
3199
|
+
size: A,
|
|
3199
3200
|
position: R
|
|
3200
|
-
},
|
|
3201
|
+
}, T.value = e.draggable, V.value = !1;
|
|
3201
3202
|
}
|
|
3202
3203
|
}
|
|
3203
3204
|
function k() {
|
|
3204
3205
|
if (n.value) {
|
|
3205
|
-
const
|
|
3206
|
-
if (
|
|
3206
|
+
const B = Se.getCurrent(n.value);
|
|
3207
|
+
if (B) {
|
|
3207
3208
|
const {
|
|
3208
3209
|
width: N,
|
|
3209
|
-
height:
|
|
3210
|
-
} =
|
|
3211
|
-
n.value.style.left = `${(window.innerWidth - N) / 2}px`, n.value.style.top = `${(window.innerHeight -
|
|
3210
|
+
height: A
|
|
3211
|
+
} = B;
|
|
3212
|
+
n.value.style.left = `${(window.innerWidth - N) / 2}px`, n.value.style.top = `${(window.innerHeight - A) / 2}px`, n.value.style.transform = "";
|
|
3212
3213
|
}
|
|
3213
3214
|
}
|
|
3214
3215
|
}
|
|
3215
3216
|
function $() {
|
|
3216
|
-
const
|
|
3217
|
+
const B = () => {
|
|
3217
3218
|
V.value ? S(!1) : k();
|
|
3218
3219
|
};
|
|
3219
|
-
return window.addEventListener("resize",
|
|
3220
|
-
window.removeEventListener("resize",
|
|
3220
|
+
return window.addEventListener("resize", B), () => {
|
|
3221
|
+
window.removeEventListener("resize", B);
|
|
3221
3222
|
};
|
|
3222
3223
|
}
|
|
3223
3224
|
const L = $();
|
|
@@ -3227,12 +3228,12 @@ function os(e, t) {
|
|
|
3227
3228
|
resizedEventParam: d,
|
|
3228
3229
|
maximize: S,
|
|
3229
3230
|
restore: _,
|
|
3230
|
-
allowDrag:
|
|
3231
|
+
allowDrag: T,
|
|
3231
3232
|
isMaximized: V,
|
|
3232
3233
|
unWindowResizeHandle: L
|
|
3233
3234
|
};
|
|
3234
3235
|
}
|
|
3235
|
-
function
|
|
3236
|
+
function os(e, t, n) {
|
|
3236
3237
|
const o = f(), a = f(e.draggable), l = f(e.lockAxis), s = f(), i = f(), u = f(!1), r = f(new oe(0, 0)), v = f(new oe(0, 0)), m = f(new oe(0, 0)), d = f(new oe(0, 0));
|
|
3237
3238
|
Z(() => n.value, (C) => {
|
|
3238
3239
|
s.value.style.cursor = C ? "move" : "default";
|
|
@@ -3247,10 +3248,10 @@ function as(e, t, n) {
|
|
|
3247
3248
|
return !0;
|
|
3248
3249
|
return !1;
|
|
3249
3250
|
}
|
|
3250
|
-
function
|
|
3251
|
-
var
|
|
3251
|
+
function T() {
|
|
3252
|
+
var F, x;
|
|
3252
3253
|
let C = m.value.x + v.value.x, E = m.value.y + v.value.y;
|
|
3253
|
-
l.value === "x" ? (C = ((
|
|
3254
|
+
l.value === "x" ? (C = ((F = r.value) == null ? void 0 : F.x) || 0, m.value.x = 0) : l.value === "y" && (E = ((x = r.value) == null ? void 0 : x.y) || 0, m.value.y = 0);
|
|
3254
3255
|
const g = `translate3d(${Math.round(C)}px, ${Math.round(E)}px, 0px)`;
|
|
3255
3256
|
o.value && (o.value.style.transform = g), d.value.x = C, d.value.y = E;
|
|
3256
3257
|
}
|
|
@@ -3263,10 +3264,10 @@ function as(e, t, n) {
|
|
|
3263
3264
|
bottom: C.bottom > E.bottom,
|
|
3264
3265
|
left: C.left < E.left
|
|
3265
3266
|
};
|
|
3266
|
-
return g.top || (m.value.y -= E.top - C.top), g.bottom || (m.value.y -= E.bottom - C.bottom), g.right || (m.value.x -= E.right - C.right), g.left || (m.value.x -= E.left - C.left),
|
|
3267
|
+
return g.top || (m.value.y -= E.top - C.top), g.bottom || (m.value.y -= E.bottom - C.bottom), g.right || (m.value.x -= E.right - C.right), g.left || (m.value.x -= E.left - C.left), T(), g;
|
|
3267
3268
|
}
|
|
3268
3269
|
function O(C) {
|
|
3269
|
-
C && (r.value && C.subtract(r.value), m.value.set(C),
|
|
3270
|
+
C && (r.value && C.subtract(r.value), m.value.set(C), T(), V());
|
|
3270
3271
|
}
|
|
3271
3272
|
function p(C) {
|
|
3272
3273
|
u.value && a.value && (C.stopPropagation(), C.preventDefault(), O(oe.fromEvent(C, s.value)));
|
|
@@ -3292,7 +3293,7 @@ function as(e, t, n) {
|
|
|
3292
3293
|
const E = C.target || C.srcElement;
|
|
3293
3294
|
s.value !== void 0 && E && !M(E, s.value) || a.value !== !1 && (document.body.click(), C.stopPropagation(), C.preventDefault(), r.value = oe.fromEvent(C, o.value), b(), y());
|
|
3294
3295
|
}
|
|
3295
|
-
function
|
|
3296
|
+
function I(C, E, g) {
|
|
3296
3297
|
if (a.value && E) {
|
|
3297
3298
|
if (C)
|
|
3298
3299
|
s.value = C;
|
|
@@ -3300,19 +3301,19 @@ function as(e, t, n) {
|
|
|
3300
3301
|
if (e.dragHandle instanceof HTMLElement)
|
|
3301
3302
|
s.value = e.dragHandle;
|
|
3302
3303
|
else if (typeof e.dragHandle == "string") {
|
|
3303
|
-
const
|
|
3304
|
-
|
|
3304
|
+
const F = E.querySelector(e.dragHandle);
|
|
3305
|
+
F && (s.value = F);
|
|
3305
3306
|
}
|
|
3306
3307
|
}
|
|
3307
3308
|
o.value = E, i.value = g, s.value.classList.add("ng-draggable"), s.value.addEventListener("mousedown", w);
|
|
3308
3309
|
}
|
|
3309
3310
|
}
|
|
3310
3311
|
return {
|
|
3311
|
-
registerDraggle:
|
|
3312
|
+
registerDraggle: I,
|
|
3312
3313
|
resetTranslate: b
|
|
3313
3314
|
};
|
|
3314
3315
|
}
|
|
3315
|
-
function
|
|
3316
|
+
function Ht(e, t) {
|
|
3316
3317
|
if (e) {
|
|
3317
3318
|
const n = (o) => {
|
|
3318
3319
|
o.key.toLowerCase() === e.toLowerCase() && t({ event: o, key: e });
|
|
@@ -3322,34 +3323,34 @@ function zt(e, t) {
|
|
|
3322
3323
|
};
|
|
3323
3324
|
}
|
|
3324
3325
|
}
|
|
3325
|
-
function
|
|
3326
|
+
function as(e, t) {
|
|
3326
3327
|
const n = f(e.enableEsc);
|
|
3327
3328
|
let o = null;
|
|
3328
|
-
return n.value ? (o =
|
|
3329
|
+
return n.value ? (o = Ht("Escape", (a) => {
|
|
3329
3330
|
t.emit("esc", { event: a.event, type: "esc" });
|
|
3330
3331
|
}), {
|
|
3331
3332
|
remove: o
|
|
3332
3333
|
}) : null;
|
|
3333
3334
|
}
|
|
3334
|
-
function
|
|
3335
|
+
function ls(e, t) {
|
|
3335
3336
|
const n = f(e.enableEnter);
|
|
3336
3337
|
let o = null;
|
|
3337
|
-
return n.value ? (o =
|
|
3338
|
+
return n.value ? (o = Ht("Enter", (a) => {
|
|
3338
3339
|
t.emit("enter", { event: a.event, type: "enter" });
|
|
3339
3340
|
}), {
|
|
3340
3341
|
remove: o
|
|
3341
3342
|
}) : null;
|
|
3342
3343
|
}
|
|
3343
|
-
const
|
|
3344
|
+
const zt = /* @__PURE__ */ ue({
|
|
3344
3345
|
name: "FModal",
|
|
3345
|
-
props:
|
|
3346
|
+
props: ts,
|
|
3346
3347
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
|
|
3347
3348
|
setup(e, t) {
|
|
3348
|
-
const n = f(e.width || 300), o = f(e.height || 200), a = f(e.modelValue), l = f(""), s = f(e.class), i = f(e.fitContent), u = f(e.showHeader), r = f(""), v = f(e.showCloseButton), m = f(e.showMaxButton), d = f(!1), M = f(""),
|
|
3349
|
+
const n = f(e.width || 300), o = f(e.height || 200), a = f(e.modelValue), l = f(""), s = f(e.class), i = f(e.fitContent), u = f(e.showHeader), r = f(""), v = f(e.showCloseButton), m = f(e.showMaxButton), d = f(!1), M = f(""), T = f(""), V = f(""), O = f(e.showButtons), p = f(e.title), h = f(e.reiszeable), y = f(e.containment || null), b = f();
|
|
3349
3350
|
function w(H, K) {
|
|
3350
3351
|
a.value = !1, t.emit("update:modelValue", !1), K != null && t.emit(K ? "accept" : "cancel"), t.emit("closed", H);
|
|
3351
3352
|
}
|
|
3352
|
-
const
|
|
3353
|
+
const I = [{
|
|
3353
3354
|
name: "cancel",
|
|
3354
3355
|
text: "取消",
|
|
3355
3356
|
class: "btn btn-secondary",
|
|
@@ -3363,17 +3364,17 @@ const Gt = /* @__PURE__ */ ue({
|
|
|
3363
3364
|
handle: (H) => {
|
|
3364
3365
|
w(H, !0);
|
|
3365
3366
|
}
|
|
3366
|
-
}], C = f(e.buttons && e.buttons.length ? e.buttons :
|
|
3367
|
+
}], C = f(e.buttons && e.buttons.length ? e.buttons : I), E = D(() => !!r.value), g = D(() => !!O.value && !!C.value), F = f(), x = f(), S = f(!1), {
|
|
3367
3368
|
renderResizeBar: _,
|
|
3368
3369
|
maximize: k,
|
|
3369
3370
|
restore: $,
|
|
3370
3371
|
boundingElement: L,
|
|
3371
|
-
resizedEventParam:
|
|
3372
|
+
resizedEventParam: B,
|
|
3372
3373
|
allowDrag: N,
|
|
3373
|
-
unWindowResizeHandle:
|
|
3374
|
-
} =
|
|
3374
|
+
unWindowResizeHandle: A
|
|
3375
|
+
} = ns(e), {
|
|
3375
3376
|
registerDraggle: R
|
|
3376
|
-
} =
|
|
3377
|
+
} = os(e, t, N);
|
|
3377
3378
|
Z(() => e.title, (H, K) => {
|
|
3378
3379
|
H !== K && (p.value = H);
|
|
3379
3380
|
}), Z(() => e.modelValue, (H, K) => {
|
|
@@ -3382,7 +3383,7 @@ const Gt = /* @__PURE__ */ ue({
|
|
|
3382
3383
|
H !== K && (u.value = H);
|
|
3383
3384
|
}), Z(() => e.showButtons, (H, K) => {
|
|
3384
3385
|
H !== K && (O.value = H);
|
|
3385
|
-
}), Z(() =>
|
|
3386
|
+
}), Z(() => B.value, (H, K) => {
|
|
3386
3387
|
const ae = H || {}, Fe = K || {};
|
|
3387
3388
|
JSON.stringify(ae) !== JSON.stringify(Fe) && t.emit("resize", {
|
|
3388
3389
|
newSize: H,
|
|
@@ -3400,13 +3401,13 @@ const Gt = /* @__PURE__ */ ue({
|
|
|
3400
3401
|
fade: !0
|
|
3401
3402
|
};
|
|
3402
3403
|
return H["f-modal-fitContent"] = !!i.value, H.show = !!Q.value, H;
|
|
3403
|
-
}),
|
|
3404
|
+
}), re = D(() => {
|
|
3404
3405
|
var ae;
|
|
3405
3406
|
const H = {
|
|
3406
3407
|
"modal-dialog": !0
|
|
3407
3408
|
}, K = (ae = s.value) == null ? void 0 : ae.split(" ");
|
|
3408
3409
|
return K == null || K.reduce((Fe, Je) => (Fe[Je] = !0, Fe), H), H;
|
|
3409
|
-
}),
|
|
3410
|
+
}), xe = D(() => ({
|
|
3410
3411
|
position: "absolute",
|
|
3411
3412
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
3412
3413
|
left: `${(window.innerWidth - n.value) / 2}px`,
|
|
@@ -3452,9 +3453,9 @@ const Gt = /* @__PURE__ */ ue({
|
|
|
3452
3453
|
}
|
|
3453
3454
|
let Ve = null, Oe = null;
|
|
3454
3455
|
ye(() => {
|
|
3455
|
-
x.value && !y.value && (y.value = x.value.parentElement, L.value = y.value, R(
|
|
3456
|
+
x.value && !y.value && (y.value = x.value.parentElement, L.value = y.value, R(F.value, x.value, L.value)), Q.value && document.body.classList.add("modal-open"), Ve = as(e, t), Oe = ls(e, t);
|
|
3456
3457
|
}), rt(() => {
|
|
3457
|
-
j(),
|
|
3458
|
+
j(), A && A(), Ve && Ve.remove(), Oe && Oe.remove();
|
|
3458
3459
|
}), t.expose({
|
|
3459
3460
|
modalElementRef: x,
|
|
3460
3461
|
updateModalOptions: We,
|
|
@@ -3497,7 +3498,7 @@ const Gt = /* @__PURE__ */ ue({
|
|
|
3497
3498
|
}
|
|
3498
3499
|
function Ye() {
|
|
3499
3500
|
return c("div", {
|
|
3500
|
-
ref:
|
|
3501
|
+
ref: F,
|
|
3501
3502
|
class: "modal-header",
|
|
3502
3503
|
style: he.value
|
|
3503
3504
|
}, [c("div", {
|
|
@@ -3514,10 +3515,10 @@ const Gt = /* @__PURE__ */ ue({
|
|
|
3514
3515
|
function Qe(H) {
|
|
3515
3516
|
H.stopPropagation();
|
|
3516
3517
|
}
|
|
3517
|
-
return () => c(
|
|
3518
|
+
return () => c(gn, {
|
|
3518
3519
|
to: "body"
|
|
3519
3520
|
}, {
|
|
3520
|
-
default: () => [Q.value && c(
|
|
3521
|
+
default: () => [Q.value && c(_t, {
|
|
3521
3522
|
name: "fade",
|
|
3522
3523
|
appear: !0
|
|
3523
3524
|
}, {
|
|
@@ -3530,8 +3531,8 @@ const Gt = /* @__PURE__ */ ue({
|
|
|
3530
3531
|
onClick: Qe
|
|
3531
3532
|
}, [c("div", {
|
|
3532
3533
|
id: l.value,
|
|
3533
|
-
class:
|
|
3534
|
-
style:
|
|
3534
|
+
class: re.value,
|
|
3535
|
+
style: xe.value,
|
|
3535
3536
|
ref: x
|
|
3536
3537
|
}, [c("div", {
|
|
3537
3538
|
class: ke.value
|
|
@@ -3542,38 +3543,38 @@ const Gt = /* @__PURE__ */ ue({
|
|
|
3542
3543
|
class: "f-utils-fill",
|
|
3543
3544
|
width: "100%",
|
|
3544
3545
|
frameborder: "0",
|
|
3545
|
-
src:
|
|
3546
|
+
src: T.value
|
|
3546
3547
|
}, null)]), g.value && Xe()]), !i.value && h.value && x.value && _(x.value)])])];
|
|
3547
3548
|
}
|
|
3548
3549
|
})]
|
|
3549
3550
|
});
|
|
3550
3551
|
}
|
|
3551
3552
|
});
|
|
3552
|
-
function
|
|
3553
|
+
function Gt(e) {
|
|
3553
3554
|
if (e.content && e.content.render)
|
|
3554
3555
|
return e.content.render;
|
|
3555
3556
|
if (e.render && typeof e.render == "function")
|
|
3556
3557
|
return e.render;
|
|
3557
3558
|
}
|
|
3558
|
-
function
|
|
3559
|
+
function ss(e) {
|
|
3559
3560
|
const t = document.createElement("div");
|
|
3560
3561
|
t.style.display = "contents";
|
|
3561
|
-
const n =
|
|
3562
|
+
const n = xt({
|
|
3562
3563
|
setup(o, a) {
|
|
3563
3564
|
rt(() => {
|
|
3564
3565
|
document.body.removeChild(t);
|
|
3565
3566
|
});
|
|
3566
3567
|
const l = f(), s = f(e.class || ""), i = f(!!e.showButtons), u = f(!!e.showHeader), r = f(e.showCloseButton == null ? !0 : e.showCloseButton), v = f(!0), m = f(e.title || ""), d = e.acceptCallback || (() => {
|
|
3567
3568
|
}), M = e.rejectCallback || (() => {
|
|
3568
|
-
}),
|
|
3569
|
+
}), T = e.closedCallback || ((h) => {
|
|
3569
3570
|
}), V = e.resizeHandle || ((h) => {
|
|
3570
|
-
}), O =
|
|
3571
|
-
v.value = !1, n.unmount(),
|
|
3571
|
+
}), O = Gt(e), p = (h) => {
|
|
3572
|
+
v.value = !1, n.unmount(), T(h);
|
|
3572
3573
|
};
|
|
3573
3574
|
return ye(() => {
|
|
3574
3575
|
}), a.expose({
|
|
3575
3576
|
modalRef: l
|
|
3576
|
-
}), () => c(
|
|
3577
|
+
}), () => c(zt, {
|
|
3577
3578
|
ref: l,
|
|
3578
3579
|
class: s.value,
|
|
3579
3580
|
modelValue: v.value,
|
|
@@ -3598,7 +3599,7 @@ function rs(e) {
|
|
|
3598
3599
|
});
|
|
3599
3600
|
return document.body.appendChild(t), n.mount(t), n;
|
|
3600
3601
|
}
|
|
3601
|
-
class
|
|
3602
|
+
class rs {
|
|
3602
3603
|
constructor(t) {
|
|
3603
3604
|
z(this, "appContext", null);
|
|
3604
3605
|
z(this, "modalRef", f());
|
|
@@ -3617,12 +3618,12 @@ class is {
|
|
|
3617
3618
|
showButtons: !0,
|
|
3618
3619
|
showHeader: !0
|
|
3619
3620
|
}, t);
|
|
3620
|
-
return
|
|
3621
|
+
return ss(n);
|
|
3621
3622
|
}
|
|
3622
3623
|
open(t) {
|
|
3623
3624
|
const n = document.createDocumentFragment();
|
|
3624
3625
|
t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
|
|
3625
|
-
const o =
|
|
3626
|
+
const o = yn(Object.assign({
|
|
3626
3627
|
title: "",
|
|
3627
3628
|
showButtons: !0,
|
|
3628
3629
|
showHeader: !0
|
|
@@ -3632,7 +3633,7 @@ class is {
|
|
|
3632
3633
|
}), u = o.value.resizeHandle || ((p) => {
|
|
3633
3634
|
});
|
|
3634
3635
|
let r;
|
|
3635
|
-
const v =
|
|
3636
|
+
const v = Gt(o.value), m = (p) => {
|
|
3636
3637
|
var y;
|
|
3637
3638
|
a.value = !1;
|
|
3638
3639
|
const h = (y = p == null ? void 0 : p.target) == null ? void 0 : y.classList.contains("modal_close");
|
|
@@ -3648,7 +3649,7 @@ class is {
|
|
|
3648
3649
|
}, M = (p) => {
|
|
3649
3650
|
var h;
|
|
3650
3651
|
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((h = this.activeModalInstance.value) == null || h.close(p == null ? void 0 : p.event));
|
|
3651
|
-
},
|
|
3652
|
+
}, T = () => c(zt, He({
|
|
3652
3653
|
ref: this.modalRef,
|
|
3653
3654
|
modelValue: a.value,
|
|
3654
3655
|
"onUpdate:modelValue": (p) => a.value = p
|
|
@@ -3662,7 +3663,7 @@ class is {
|
|
|
3662
3663
|
default: () => [v && v(this.app)]
|
|
3663
3664
|
});
|
|
3664
3665
|
return r = ((p) => {
|
|
3665
|
-
const h =
|
|
3666
|
+
const h = bn(T, p);
|
|
3666
3667
|
return h.appContext = this.appContext, Ke(h, n), h;
|
|
3667
3668
|
})({
|
|
3668
3669
|
...o.value
|
|
@@ -3672,7 +3673,7 @@ class is {
|
|
|
3672
3673
|
o.value = {
|
|
3673
3674
|
...o.value,
|
|
3674
3675
|
...p
|
|
3675
|
-
}, r && Ke(
|
|
3676
|
+
}, r && Ke(wn(r, {
|
|
3676
3677
|
...o
|
|
3677
3678
|
}), n);
|
|
3678
3679
|
},
|
|
@@ -3688,7 +3689,7 @@ class Ce {
|
|
|
3688
3689
|
}), o = !1, a = n.type === "error" || n.type === "prompt", l = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", s = n.acceptCallback || (() => {
|
|
3689
3690
|
}), i = n.rejectCallback || (() => {
|
|
3690
3691
|
});
|
|
3691
|
-
let u = null, r = new
|
|
3692
|
+
let u = null, r = new rs(u);
|
|
3692
3693
|
const v = () => {
|
|
3693
3694
|
u && (u == null || u.destroy(), r = null);
|
|
3694
3695
|
};
|
|
@@ -3777,8 +3778,8 @@ class Ce {
|
|
|
3777
3778
|
Pe.install = (e) => {
|
|
3778
3779
|
e.component(Pe.name, Pe), e.provide("FMessageBoxService", Ce);
|
|
3779
3780
|
};
|
|
3780
|
-
var
|
|
3781
|
-
const
|
|
3781
|
+
var qt = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(qt || {}), Wt = /* @__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))(Wt || {});
|
|
3782
|
+
const is = [
|
|
3782
3783
|
{
|
|
3783
3784
|
value: "0",
|
|
3784
3785
|
name: "等于"
|
|
@@ -3815,7 +3816,7 @@ const us = [
|
|
|
3815
3816
|
value: "8",
|
|
3816
3817
|
name: "结束是"
|
|
3817
3818
|
}
|
|
3818
|
-
],
|
|
3819
|
+
], us = {
|
|
3819
3820
|
"button-edit": ["0", "1", " 6", "7", "8"],
|
|
3820
3821
|
"check-box": ["0"],
|
|
3821
3822
|
"combo-list": ["0", "1"],
|
|
@@ -3835,18 +3836,18 @@ const us = [
|
|
|
3835
3836
|
"radio-group": ["0"],
|
|
3836
3837
|
text: ["0", "1", " 6", "7", "8"]
|
|
3837
3838
|
};
|
|
3838
|
-
function
|
|
3839
|
+
function cs(e, t, n) {
|
|
3839
3840
|
const { fieldMap: o } = n;
|
|
3840
3841
|
function a(l) {
|
|
3841
3842
|
const s = o.get(l.fieldCode);
|
|
3842
3843
|
if (!s)
|
|
3843
3844
|
return [];
|
|
3844
|
-
const i = s.editor.type, u = new Set(
|
|
3845
|
-
return
|
|
3845
|
+
const i = s.editor.type, u = new Set(us[i]);
|
|
3846
|
+
return is.filter((v) => u.has(v.value));
|
|
3846
3847
|
}
|
|
3847
3848
|
return { getCompareOperators: a };
|
|
3848
3849
|
}
|
|
3849
|
-
function
|
|
3850
|
+
function Ut() {
|
|
3850
3851
|
const e = f({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
3851
3852
|
let o = 0;
|
|
3852
3853
|
function a() {
|
|
@@ -3854,68 +3855,68 @@ function Xt() {
|
|
|
3854
3855
|
id: "",
|
|
3855
3856
|
fieldCode: "",
|
|
3856
3857
|
fieldName: "",
|
|
3857
|
-
compareType:
|
|
3858
|
-
valueType:
|
|
3859
|
-
value: new
|
|
3858
|
+
compareType: Wt.Equal,
|
|
3859
|
+
valueType: qt.Value,
|
|
3860
|
+
value: new Dt(),
|
|
3860
3861
|
relation: 0,
|
|
3861
3862
|
conditionId: Date.now()
|
|
3862
3863
|
};
|
|
3863
3864
|
}
|
|
3864
|
-
function l(g,
|
|
3865
|
-
return { relation: g, items: [], children: [], path: [], groupId: ++o, level:
|
|
3865
|
+
function l(g, F) {
|
|
3866
|
+
return { relation: g, items: [], children: [], path: [], groupId: ++o, level: F };
|
|
3866
3867
|
}
|
|
3867
3868
|
function s() {
|
|
3868
3869
|
const g = Object.assign({}, e.value);
|
|
3869
|
-
n.forEach((
|
|
3870
|
-
|
|
3871
|
-
}), t.forEach((
|
|
3872
|
-
|
|
3870
|
+
n.forEach((F, x) => {
|
|
3871
|
+
F.groupId === g.groupId && n.set(x, g);
|
|
3872
|
+
}), t.forEach((F, x) => {
|
|
3873
|
+
F.groupId === g.groupId && t.set(x, g);
|
|
3873
3874
|
}), e.value = g;
|
|
3874
3875
|
}
|
|
3875
3876
|
function i(g) {
|
|
3876
|
-
const
|
|
3877
|
+
const F = /* @__PURE__ */ new Map();
|
|
3877
3878
|
let x = 0;
|
|
3878
3879
|
return g.forEach((S, _) => {
|
|
3879
3880
|
var k, $;
|
|
3880
|
-
if (x += ((k = S.lBracket) == null ? void 0 : k.length) || 0,
|
|
3881
|
+
if (x += ((k = S.lBracket) == null ? void 0 : k.length) || 0, F.set(_, x), x -= (($ = S.rBracket) == null ? void 0 : $.length) || 0, x < 0)
|
|
3881
3882
|
throw new Error("The right bracket is out of range.");
|
|
3882
|
-
}),
|
|
3883
|
+
}), F;
|
|
3883
3884
|
}
|
|
3884
|
-
function u(g,
|
|
3885
|
-
for (let k = 0; k <
|
|
3885
|
+
function u(g, F, x, S, _) {
|
|
3886
|
+
for (let k = 0; k < F; k++) {
|
|
3886
3887
|
const $ = g + (k + 1), L = l(_, $);
|
|
3887
3888
|
x.children.push(L), n.set(L.groupId, x), x = x.children[x.children.length - 1], S.push(x);
|
|
3888
3889
|
}
|
|
3889
3890
|
return x;
|
|
3890
3891
|
}
|
|
3891
|
-
function r(g,
|
|
3892
|
-
for (let
|
|
3892
|
+
function r(g, F, x, S, _) {
|
|
3893
|
+
for (let B = F; B <= 0; B++)
|
|
3893
3894
|
S.pop();
|
|
3894
3895
|
const k = S[S.length - 1];
|
|
3895
3896
|
if (!k)
|
|
3896
3897
|
throw new Error("The group path is out of range");
|
|
3897
|
-
const $ = g +
|
|
3898
|
+
const $ = g + F, L = l(_, $);
|
|
3898
3899
|
return k.children.push(L), n.set(L.groupId, k), x = k.children[k.children.length - 1], S.push(x), x;
|
|
3899
3900
|
}
|
|
3900
|
-
function v(g,
|
|
3901
|
+
function v(g, F, x, S) {
|
|
3901
3902
|
x.pop();
|
|
3902
3903
|
const _ = x[x.length - 1], k = l(S, g);
|
|
3903
|
-
return _.children.push(k), n.set(k.groupId, _),
|
|
3904
|
+
return _.children.push(k), n.set(k.groupId, _), F = _.children[_.children.length - 1], x.push(F), F;
|
|
3904
3905
|
}
|
|
3905
|
-
function m(g,
|
|
3906
|
+
function m(g, F, x, S, _, k) {
|
|
3906
3907
|
let $ = g[g.length - 1];
|
|
3907
3908
|
if (!$)
|
|
3908
3909
|
throw new Error("The group path is out of range");
|
|
3909
|
-
const L =
|
|
3910
|
+
const L = F.get(S) || 0, B = F.get(x) || 0;
|
|
3910
3911
|
if (x < 0 || x === S)
|
|
3911
3912
|
return g[g.length - 1];
|
|
3912
|
-
const N = L -
|
|
3913
|
-
return $ = N > 0 ? u(
|
|
3913
|
+
const N = L - B, A = _ && _.relation !== void 0 ? _.relation : 1;
|
|
3914
|
+
return $ = N > 0 ? u(B, N, $, g, A) : $, $ = N < 0 ? r(B, N, $, g, A) : $, $ = N === 0 && B > 0 && L > 0 && _ && k && !!_.rBracket && !!k.lBracket ? v(B, $, g, A) : $, $;
|
|
3914
3915
|
}
|
|
3915
3916
|
function d(g) {
|
|
3916
3917
|
const x = { relation: g.length && g[0].relation !== void 0 ? g[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, S = [x], _ = i(g);
|
|
3917
3918
|
return g.forEach((k, $) => {
|
|
3918
|
-
const L = $ - 1,
|
|
3919
|
+
const L = $ - 1, B = g[L], N = m(S, _, L, $, B, k);
|
|
3919
3920
|
N.items.push(k), t.set(k.conditionId, N);
|
|
3920
3921
|
}), e.value = x, x;
|
|
3921
3922
|
}
|
|
@@ -3923,41 +3924,41 @@ function Xt() {
|
|
|
3923
3924
|
const g = a();
|
|
3924
3925
|
t.set(g.conditionId, e.value), e.value.items.push(g);
|
|
3925
3926
|
}
|
|
3926
|
-
function
|
|
3927
|
+
function T(g) {
|
|
3927
3928
|
if (!g)
|
|
3928
3929
|
return;
|
|
3929
|
-
const
|
|
3930
|
-
if (
|
|
3931
|
-
const x =
|
|
3932
|
-
t.set(S.conditionId,
|
|
3930
|
+
const F = t.get(g.conditionId);
|
|
3931
|
+
if (F) {
|
|
3932
|
+
const x = F.items.findIndex((_) => _.conditionId === g.conditionId) + 1, S = a();
|
|
3933
|
+
t.set(S.conditionId, F), F.items.splice(x, 0, S), s();
|
|
3933
3934
|
}
|
|
3934
3935
|
}
|
|
3935
|
-
function V(g,
|
|
3936
|
+
function V(g, F, x, S) {
|
|
3936
3937
|
g.reduce((_, k) => {
|
|
3937
3938
|
const $ = k.conditionId !== void 0, L = k.groupId !== void 0;
|
|
3938
3939
|
if ($) {
|
|
3939
|
-
const
|
|
3940
|
-
x.push(
|
|
3940
|
+
const B = k;
|
|
3941
|
+
x.push(B), _.items.set(B.conditionId, B);
|
|
3941
3942
|
}
|
|
3942
3943
|
if (L) {
|
|
3943
|
-
const
|
|
3944
|
-
S.push(
|
|
3944
|
+
const B = k;
|
|
3945
|
+
S.push(B), _.groups.set(B.groupId, B);
|
|
3945
3946
|
}
|
|
3946
3947
|
return _;
|
|
3947
|
-
},
|
|
3948
|
+
}, F);
|
|
3948
3949
|
}
|
|
3949
|
-
function O(g,
|
|
3950
|
-
g && (g.items =
|
|
3950
|
+
function O(g, F, x, S, _) {
|
|
3951
|
+
g && (g.items = F.length ? g.items.filter((k) => !x.has(k.conditionId)) : g.items, g.children = S.length ? g.children.filter((k) => !_.has(k.groupId)) : g.children);
|
|
3951
3952
|
}
|
|
3952
|
-
function p(g,
|
|
3953
|
-
|
|
3953
|
+
function p(g, F, x) {
|
|
3954
|
+
F.forEach((S) => {
|
|
3954
3955
|
g.items.push(S), t.set(S.conditionId, g);
|
|
3955
3956
|
}), x.forEach((S) => {
|
|
3956
3957
|
g.children.push(S), n.set(S.groupId, g);
|
|
3957
3958
|
});
|
|
3958
3959
|
}
|
|
3959
3960
|
function h(g) {
|
|
3960
|
-
const
|
|
3961
|
+
const F = g[0], x = F.conditionId !== void 0 ? t.get(F.conditionId) : n.get(F.groupId), S = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, _ = [], k = [];
|
|
3961
3962
|
if (x) {
|
|
3962
3963
|
V(g, S, _, k), O(x, _, S.items, k, S.groups);
|
|
3963
3964
|
const $ = l(x.relation, x.level + 1);
|
|
@@ -3965,8 +3966,8 @@ function Xt() {
|
|
|
3965
3966
|
}
|
|
3966
3967
|
}
|
|
3967
3968
|
function y(g) {
|
|
3968
|
-
const
|
|
3969
|
-
S && (S.children = S.children.filter((_) => _.groupId !== g.groupId), n.delete(g.groupId),
|
|
3969
|
+
const F = [...g.items], x = [...g.children], S = n.get(g.groupId);
|
|
3970
|
+
S && (S.children = S.children.filter((_) => _.groupId !== g.groupId), n.delete(g.groupId), F.forEach((_) => {
|
|
3970
3971
|
S.items.push(_), t.set(_.conditionId, S);
|
|
3971
3972
|
}), x.forEach((_) => {
|
|
3972
3973
|
S.children.push(_), n.set(_.groupId, S);
|
|
@@ -3976,29 +3977,29 @@ function Xt() {
|
|
|
3976
3977
|
g.relation = g.relation === 1 ? 2 : 1, s();
|
|
3977
3978
|
}
|
|
3978
3979
|
let w;
|
|
3979
|
-
function
|
|
3980
|
-
const { relation:
|
|
3980
|
+
function I(g) {
|
|
3981
|
+
const { relation: F } = g;
|
|
3981
3982
|
return (g.children && g.children.length ? g.children.map((S, _, k) => {
|
|
3982
3983
|
const $ = w(S);
|
|
3983
|
-
return $[0].lBracket = ($[0].lBracket || "") + "(", $[$.length - 1].rBracket = ($[$.length - 1].rBracket || "") + ")", $[$.length - 1].relation = _ < k.length - 1 ?
|
|
3984
|
+
return $[0].lBracket = ($[0].lBracket || "") + "(", $[$.length - 1].rBracket = ($[$.length - 1].rBracket || "") + ")", $[$.length - 1].relation = _ < k.length - 1 ? F : 0, $;
|
|
3984
3985
|
}) : []).flat();
|
|
3985
3986
|
}
|
|
3986
3987
|
w = (g = e.value) => {
|
|
3987
|
-
const { relation:
|
|
3988
|
+
const { relation: F } = g, x = g.items.map((_, k, $) => (_.lBracket = k === 0 ? "(" : "", _.rBracket = k === $.length - 1 ? ")" : "", _.relation = k < $.length - 1 ? F || 1 : 0, _)), S = I(g);
|
|
3988
3989
|
return [...x, ...S];
|
|
3989
3990
|
};
|
|
3990
3991
|
function C(g) {
|
|
3991
|
-
const
|
|
3992
|
-
if (
|
|
3992
|
+
const F = g || e.value;
|
|
3993
|
+
if (F.children.length && F.children.forEach((x) => {
|
|
3993
3994
|
C(x);
|
|
3994
|
-
}),
|
|
3995
|
-
const x =
|
|
3995
|
+
}), F.level === 0 && !F.items.length && F.children.length === 1) {
|
|
3996
|
+
const x = F.children[0];
|
|
3996
3997
|
e.value.relation = x.relation, y(x);
|
|
3997
|
-
} else
|
|
3998
|
+
} else F.items.length === 0 && F.children.length <= 1 && y(F);
|
|
3998
3999
|
}
|
|
3999
4000
|
function E(g) {
|
|
4000
|
-
const
|
|
4001
|
-
|
|
4001
|
+
const F = t.get(g.conditionId);
|
|
4002
|
+
F && (F.items = F.items.filter((x) => x.conditionId !== g.conditionId), t.delete(g.conditionId), C(), s());
|
|
4002
4003
|
}
|
|
4003
4004
|
return {
|
|
4004
4005
|
addCondition: M,
|
|
@@ -4007,7 +4008,7 @@ function Xt() {
|
|
|
4007
4008
|
getConditions: w,
|
|
4008
4009
|
group: h,
|
|
4009
4010
|
groupParentMap: n,
|
|
4010
|
-
insertConditionTo:
|
|
4011
|
+
insertConditionTo: T,
|
|
4011
4012
|
loadConditionGroup: d,
|
|
4012
4013
|
refresh: s,
|
|
4013
4014
|
removeCondition: E,
|
|
@@ -4015,7 +4016,7 @@ function Xt() {
|
|
|
4015
4016
|
unGroup: y
|
|
4016
4017
|
};
|
|
4017
4018
|
}
|
|
4018
|
-
function
|
|
4019
|
+
function ds(e, t, n) {
|
|
4019
4020
|
const o = f(/* @__PURE__ */ new Set()), a = f(/* @__PURE__ */ new Set()), { conditionGroupMap: l, groupParentMap: s } = n;
|
|
4020
4021
|
let i, u;
|
|
4021
4022
|
function r(p) {
|
|
@@ -4046,7 +4047,7 @@ function fs(e, t, n) {
|
|
|
4046
4047
|
y && a.value.has(y.groupId) && M(y);
|
|
4047
4048
|
}
|
|
4048
4049
|
};
|
|
4049
|
-
function
|
|
4050
|
+
function T(p) {
|
|
4050
4051
|
const { conditionId: h } = p;
|
|
4051
4052
|
o.value.size === 0 && (i = l.get(h)), o.value.has(h) ? u(p) : m(p);
|
|
4052
4053
|
}
|
|
@@ -4057,24 +4058,24 @@ function fs(e, t, n) {
|
|
|
4057
4058
|
function O() {
|
|
4058
4059
|
o.value.clear(), a.value.clear();
|
|
4059
4060
|
}
|
|
4060
|
-
return { clear: O, getSelectedGroupItem: V, selectedItems: o, toggleSelect:
|
|
4061
|
+
return { clear: O, getSelectedGroupItem: V, selectedItems: o, toggleSelect: T };
|
|
4061
4062
|
}
|
|
4062
4063
|
const et = /* @__PURE__ */ ue({
|
|
4063
4064
|
name: "FConditionList",
|
|
4064
|
-
props:
|
|
4065
|
+
props: Rt,
|
|
4065
4066
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
4066
4067
|
setup(e, t) {
|
|
4067
|
-
const n = f(e.key), o = f(e.conditions), a =
|
|
4068
|
+
const n = f(e.key), o = f(e.conditions), a = Lt(e), {
|
|
4068
4069
|
convertToSingleControl: l,
|
|
4069
4070
|
fields: s,
|
|
4070
4071
|
fieldMap: i,
|
|
4071
4072
|
loadFieldConfigs: u
|
|
4072
|
-
} = a, r =
|
|
4073
|
+
} = a, r = Ut(), {
|
|
4073
4074
|
addCondition: v,
|
|
4074
4075
|
changeGroupRelation: m,
|
|
4075
4076
|
getConditions: d,
|
|
4076
4077
|
group: M,
|
|
4077
|
-
insertConditionTo:
|
|
4078
|
+
insertConditionTo: T,
|
|
4078
4079
|
loadConditionGroup: V,
|
|
4079
4080
|
refresh: O,
|
|
4080
4081
|
removeCondition: p,
|
|
@@ -4082,37 +4083,37 @@ const et = /* @__PURE__ */ ue({
|
|
|
4082
4083
|
unGroup: y
|
|
4083
4084
|
} = r, {
|
|
4084
4085
|
createConditionValue: b
|
|
4085
|
-
} =
|
|
4086
|
-
selectedItems:
|
|
4086
|
+
} = $t(), w = ds(e, t, r), {
|
|
4087
|
+
selectedItems: I,
|
|
4087
4088
|
toggleSelect: C
|
|
4088
4089
|
} = w, {
|
|
4089
4090
|
getCompareOperators: E
|
|
4090
|
-
} =
|
|
4091
|
+
} = cs(e, t, a);
|
|
4091
4092
|
u(!1), s.value = l(s.value), V(o.value);
|
|
4092
4093
|
function g(N) {
|
|
4093
4094
|
var R;
|
|
4094
|
-
const
|
|
4095
|
+
const A = ((R = i.get(N.fieldCode)) == null ? void 0 : R.editor) || {
|
|
4095
4096
|
type: "text"
|
|
4096
4097
|
};
|
|
4097
|
-
N.value = b(
|
|
4098
|
+
N.value = b(A.type, void 0), t.emit("labelCodeChange", N);
|
|
4098
4099
|
}
|
|
4099
|
-
function
|
|
4100
|
-
t.emit("compareTypeChange",
|
|
4100
|
+
function F(N, A) {
|
|
4101
|
+
t.emit("compareTypeChange", A);
|
|
4101
4102
|
}
|
|
4102
4103
|
function x() {
|
|
4103
4104
|
}
|
|
4104
4105
|
t.expose({
|
|
4105
4106
|
getConditions: d
|
|
4106
4107
|
});
|
|
4107
|
-
function S(N,
|
|
4108
|
-
t.emit("valueChange", N,
|
|
4108
|
+
function S(N, A) {
|
|
4109
|
+
t.emit("valueChange", N, A);
|
|
4109
4110
|
}
|
|
4110
4111
|
function _(N) {
|
|
4111
|
-
return N.items.map((
|
|
4112
|
+
return N.items.map((A) => {
|
|
4112
4113
|
var R;
|
|
4113
4114
|
return c("div", {
|
|
4114
4115
|
class: "condition-list-item",
|
|
4115
|
-
key:
|
|
4116
|
+
key: A.conditionId
|
|
4116
4117
|
}, [c("div", {
|
|
4117
4118
|
class: "condition-list-item-type mr-3"
|
|
4118
4119
|
}, [c(nt, {
|
|
@@ -4120,47 +4121,47 @@ const et = /* @__PURE__ */ ue({
|
|
|
4120
4121
|
"text-field": "name",
|
|
4121
4122
|
"id-field": "id",
|
|
4122
4123
|
data: s.value,
|
|
4123
|
-
modelValue:
|
|
4124
|
-
"onUpdate:modelValue": (j) =>
|
|
4125
|
-
onChange: (j) => g(
|
|
4124
|
+
modelValue: A.fieldCode,
|
|
4125
|
+
"onUpdate:modelValue": (j) => A.fieldCode = j,
|
|
4126
|
+
onChange: (j) => g(A)
|
|
4126
4127
|
}, null)]), c("div", {
|
|
4127
4128
|
class: "condition-list-item-compare mr-3"
|
|
4128
4129
|
}, [c(nt, {
|
|
4129
4130
|
"value-field": "value",
|
|
4130
4131
|
"text-field": "name",
|
|
4131
4132
|
"id-field": "id",
|
|
4132
|
-
data: E(
|
|
4133
|
-
modelValue:
|
|
4134
|
-
"onUpdate:modelValue": (j) =>
|
|
4135
|
-
onChange: (j) =>
|
|
4133
|
+
data: E(A),
|
|
4134
|
+
modelValue: A.compareType,
|
|
4135
|
+
"onUpdate:modelValue": (j) => A.compareType = j,
|
|
4136
|
+
onChange: (j) => F(j, A)
|
|
4136
4137
|
}, null)]), c("div", {
|
|
4137
4138
|
class: "condition-list-item-control mr-3"
|
|
4138
|
-
}, [c(
|
|
4139
|
-
editor: (R = i.get(
|
|
4139
|
+
}, [c(Il, {
|
|
4140
|
+
editor: (R = i.get(A.fieldCode)) == null ? void 0 : R.editor,
|
|
4140
4141
|
showLabel: !1,
|
|
4141
|
-
modelValue:
|
|
4142
|
-
"onUpdate:modelValue": (j) =>
|
|
4142
|
+
modelValue: A.value.value,
|
|
4143
|
+
"onUpdate:modelValue": (j) => A.value.value = j,
|
|
4143
4144
|
onChange: (j) => {
|
|
4144
|
-
S(j,
|
|
4145
|
+
S(j, A);
|
|
4145
4146
|
}
|
|
4146
4147
|
}, null)]), c("div", {
|
|
4147
4148
|
class: "condition-list-item-extend"
|
|
4148
4149
|
}, [c("span", {
|
|
4149
4150
|
class: "f-icon f-icon-plus-sm mr-2",
|
|
4150
|
-
onClick: () =>
|
|
4151
|
+
onClick: () => T(A)
|
|
4151
4152
|
}, null), c("span", {
|
|
4152
4153
|
class: "f-icon f-icon-minus-sm",
|
|
4153
|
-
onClick: () => p(
|
|
4154
|
+
onClick: () => p(A)
|
|
4154
4155
|
}, null)]), c("div", {
|
|
4155
4156
|
class: "custom-control custom-checkbox"
|
|
4156
4157
|
}, [c("input", {
|
|
4157
4158
|
title: "selection",
|
|
4158
4159
|
class: "custom-control-input",
|
|
4159
4160
|
type: "checkbox",
|
|
4160
|
-
checked:
|
|
4161
|
+
checked: I.value.has(A.conditionId)
|
|
4161
4162
|
}, null), c("label", {
|
|
4162
4163
|
class: "custom-control-label",
|
|
4163
|
-
onClick: () => C(
|
|
4164
|
+
onClick: () => C(A)
|
|
4164
4165
|
}, null)])]);
|
|
4165
4166
|
});
|
|
4166
4167
|
}
|
|
@@ -4180,12 +4181,12 @@ const et = /* @__PURE__ */ ue({
|
|
|
4180
4181
|
class: "condition-list-content"
|
|
4181
4182
|
}, [c("div", {
|
|
4182
4183
|
class: "condition-list-content-group"
|
|
4183
|
-
}, [_(N), N.children && N.children.map((
|
|
4184
|
+
}, [_(N), N.children && N.children.map((A) => $(A))]), k(N)]);
|
|
4184
4185
|
}
|
|
4185
4186
|
function L() {
|
|
4186
4187
|
M(w.getSelectedGroupItem()), w.clear();
|
|
4187
4188
|
}
|
|
4188
|
-
function
|
|
4189
|
+
function B() {
|
|
4189
4190
|
return c("div", {
|
|
4190
4191
|
class: "condition-list-bottom"
|
|
4191
4192
|
}, [c("div", {
|
|
@@ -4212,13 +4213,13 @@ const et = /* @__PURE__ */ ue({
|
|
|
4212
4213
|
key: n.value
|
|
4213
4214
|
}, [c("div", {
|
|
4214
4215
|
class: "condition-list-body"
|
|
4215
|
-
}, [$(h.value)]),
|
|
4216
|
+
}, [$(h.value)]), B()]);
|
|
4216
4217
|
}
|
|
4217
4218
|
});
|
|
4218
4219
|
et.install = (e) => {
|
|
4219
|
-
e.component(
|
|
4220
|
+
e.component(yt.name, yt).component(et.name, et);
|
|
4220
4221
|
};
|
|
4221
|
-
const
|
|
4222
|
+
const fs = [
|
|
4222
4223
|
"equal",
|
|
4223
4224
|
"notEqual",
|
|
4224
4225
|
"greaterThan",
|
|
@@ -4228,16 +4229,16 @@ const ps = [
|
|
|
4228
4229
|
"contain",
|
|
4229
4230
|
"startWidth",
|
|
4230
4231
|
"endWidth"
|
|
4231
|
-
],
|
|
4232
|
+
], ps = {
|
|
4232
4233
|
equal: (e, t, n) => e && e[t] === n,
|
|
4233
4234
|
notEqual: (e, t, n) => e && e[t] !== n,
|
|
4234
4235
|
contain: (e, t, n) => e ? (e[t] || "").indexOf(n) > -1 : !1,
|
|
4235
4236
|
startWidth: (e, t, n) => e ? (e[t] || "").startsWith(n) : !1,
|
|
4236
4237
|
endWidth: (e, t, n) => e ? (e[t] || "").endsWith(n) : !1
|
|
4237
|
-
},
|
|
4238
|
+
}, vs = {
|
|
4238
4239
|
equal: (e, t, n) => e && e[t] === n,
|
|
4239
4240
|
notEqual: (e, t, n) => e && e[t] !== n
|
|
4240
|
-
},
|
|
4241
|
+
}, ms = {
|
|
4241
4242
|
equal: (e, t, n) => {
|
|
4242
4243
|
if (e) {
|
|
4243
4244
|
const o = new Date(new Date(n).toLocaleDateString()).valueOf();
|
|
@@ -4280,10 +4281,10 @@ const ps = [
|
|
|
4280
4281
|
}
|
|
4281
4282
|
return !1;
|
|
4282
4283
|
}
|
|
4283
|
-
},
|
|
4284
|
+
}, hs = {
|
|
4284
4285
|
equal: (e, t, n) => e ? String(n).split(",").includes(String(e[t])) : !1,
|
|
4285
4286
|
notEqual: (e, t, n) => e ? String(n).split(",").findIndex((a) => a === String(e[t])) === -1 : !1
|
|
4286
|
-
},
|
|
4287
|
+
}, gs = {
|
|
4287
4288
|
equal: (e, t, n) => {
|
|
4288
4289
|
if (e) {
|
|
4289
4290
|
const o = Number.parseFloat(String(n)), a = Number.parseFloat(String(e[t]));
|
|
@@ -4327,13 +4328,13 @@ const ps = [
|
|
|
4327
4328
|
return !1;
|
|
4328
4329
|
}
|
|
4329
4330
|
};
|
|
4330
|
-
function
|
|
4331
|
-
const e = f([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } =
|
|
4332
|
-
["boolean",
|
|
4333
|
-
["datetime",
|
|
4334
|
-
["enum",
|
|
4335
|
-
["number",
|
|
4336
|
-
["text",
|
|
4331
|
+
function ys() {
|
|
4332
|
+
const e = f([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } = Ut(), o = /* @__PURE__ */ new Map([
|
|
4333
|
+
["boolean", vs],
|
|
4334
|
+
["datetime", ms],
|
|
4335
|
+
["enum", hs],
|
|
4336
|
+
["number", gs],
|
|
4337
|
+
["text", ps]
|
|
4337
4338
|
]);
|
|
4338
4339
|
function a(m) {
|
|
4339
4340
|
t.delete(m), e.value = Array.from(t.values());
|
|
@@ -4342,23 +4343,23 @@ function bs() {
|
|
|
4342
4343
|
t.clear(), e.value = [];
|
|
4343
4344
|
}
|
|
4344
4345
|
function s(m) {
|
|
4345
|
-
const { valueType: d } = m.value, M = m.compareType || "0",
|
|
4346
|
-
return o.get(d)[
|
|
4346
|
+
const { valueType: d } = m.value, M = m.compareType || "0", T = fs[Number(M)];
|
|
4347
|
+
return o.get(d)[T];
|
|
4347
4348
|
}
|
|
4348
4349
|
function i(m) {
|
|
4349
4350
|
const d = m.relation === 2 ? 0 : 1, M = m.items.map((V) => {
|
|
4350
4351
|
const O = s(V);
|
|
4351
4352
|
return (h) => O(h, V.fieldCode, V.value.getValue());
|
|
4352
|
-
}),
|
|
4353
|
-
return { relation: d, filterFunctions: M, children:
|
|
4353
|
+
}), T = m.children && m.children.length ? m.children.map((V) => i(V)) : [];
|
|
4354
|
+
return { relation: d, filterFunctions: M, children: T };
|
|
4354
4355
|
}
|
|
4355
4356
|
function u() {
|
|
4356
4357
|
const m = n(e.value);
|
|
4357
4358
|
return i(m);
|
|
4358
4359
|
}
|
|
4359
4360
|
function r(m, d) {
|
|
4360
|
-
const M = d.filterFunctions.map((V) => V(m)),
|
|
4361
|
-
return d.relation === 1 ? M.every((V) => V) &&
|
|
4361
|
+
const M = d.filterFunctions.map((V) => V(m)), T = d.children.map((V) => r(m, V));
|
|
4362
|
+
return d.relation === 1 ? M.every((V) => V) && T.every((V) => V) : M.includes(!0) || T.includes(!0);
|
|
4362
4363
|
}
|
|
4363
4364
|
function v(m) {
|
|
4364
4365
|
const d = u();
|
|
@@ -4366,7 +4367,7 @@ function bs() {
|
|
|
4366
4367
|
}
|
|
4367
4368
|
return { apply: v, clearCondition: l, conditions: e, removeCondition: a };
|
|
4368
4369
|
}
|
|
4369
|
-
function
|
|
4370
|
+
function Xt(e, t) {
|
|
4370
4371
|
var p;
|
|
4371
4372
|
const { idField: n } = t, o = f(e.summary), a = f(e.group), l = f(((p = e.group) == null ? void 0 : p.groupFields) || []), s = D(() => {
|
|
4372
4373
|
var h;
|
|
@@ -4382,9 +4383,9 @@ function Yt(e, t) {
|
|
|
4382
4383
|
return h && h.showSummary;
|
|
4383
4384
|
}), v = /* @__PURE__ */ new Map();
|
|
4384
4385
|
let m = [];
|
|
4385
|
-
function d(h, y, b, w,
|
|
4386
|
+
function d(h, y, b, w, I) {
|
|
4386
4387
|
const C = w[b];
|
|
4387
|
-
C && (y.reduce((E, g,
|
|
4388
|
+
C && (y.reduce((E, g, F) => {
|
|
4388
4389
|
var _;
|
|
4389
4390
|
const x = g[C];
|
|
4390
4391
|
let S = E.get(x);
|
|
@@ -4392,7 +4393,7 @@ function Yt(e, t) {
|
|
|
4392
4393
|
const k = u.value.reduce(($, L) => ($.set(L, 0), $), /* @__PURE__ */ new Map());
|
|
4393
4394
|
S = {
|
|
4394
4395
|
field: C,
|
|
4395
|
-
title: ((_ =
|
|
4396
|
+
title: ((_ = I.get(C)) == null ? void 0 : _.title) || C,
|
|
4396
4397
|
value: x,
|
|
4397
4398
|
layer: b,
|
|
4398
4399
|
details: [],
|
|
@@ -4406,13 +4407,13 @@ function Yt(e, t) {
|
|
|
4406
4407
|
}
|
|
4407
4408
|
}), S.details.push(g), E;
|
|
4408
4409
|
}, h), b < w.length - 1 && h.forEach((E, g) => {
|
|
4409
|
-
E.nestGroup = /* @__PURE__ */ new Map(), d(E.nestGroup, E.details, b + 1, w,
|
|
4410
|
+
E.nestGroup = /* @__PURE__ */ new Map(), d(E.nestGroup, E.details, b + 1, w, I), E.details = [];
|
|
4410
4411
|
}));
|
|
4411
4412
|
}
|
|
4412
4413
|
function M(h, y) {
|
|
4413
4414
|
return e.group && e.group.formatter ? e.group.formatter(h.value, { ...h, total: y }) : `${h.title}:${h.value} (${y})`;
|
|
4414
4415
|
}
|
|
4415
|
-
function
|
|
4416
|
+
function T(h) {
|
|
4416
4417
|
const y = [];
|
|
4417
4418
|
return h.forEach((b) => {
|
|
4418
4419
|
const w = {
|
|
@@ -4422,31 +4423,31 @@ function Yt(e, t) {
|
|
|
4422
4423
|
__fv_data_grid_group_row__: !0,
|
|
4423
4424
|
__fv_data_grid_group_value__: b.value
|
|
4424
4425
|
};
|
|
4425
|
-
let
|
|
4426
|
+
let I = 0;
|
|
4426
4427
|
if (y.push(w), b.nestGroup) {
|
|
4427
|
-
const C =
|
|
4428
|
-
y.push(...C),
|
|
4428
|
+
const C = T(b.nestGroup);
|
|
4429
|
+
y.push(...C), I += C.length;
|
|
4429
4430
|
}
|
|
4430
|
-
if (b.details && b.details.length && (y.push(...b.details),
|
|
4431
|
+
if (b.details && b.details.length && (y.push(...b.details), I += b.details.length), r.value) {
|
|
4431
4432
|
const C = {
|
|
4432
4433
|
__fv_data_grid_group_field__: b.field,
|
|
4433
4434
|
__fv_data_grid_group_layer__: b.layer,
|
|
4434
4435
|
__fv_data_grid_group_summary__: !0
|
|
4435
4436
|
};
|
|
4436
4437
|
C[n.value] = `summary_of_${b.field}_${b.value}`, C[b.field] = Array.from(b.groupSummaries.entries()).reduce(
|
|
4437
|
-
(E, [g,
|
|
4438
|
+
(E, [g, F]) => `${E} ${g} total:${F} `,
|
|
4438
4439
|
""
|
|
4439
4440
|
), y.push(C);
|
|
4440
4441
|
}
|
|
4441
4442
|
b.groupSummaries && b.groupSummaries.size && b.groupSummaries.forEach((C, E) => {
|
|
4442
4443
|
w[E] = C;
|
|
4443
|
-
}), w[n.value] = `group_of_${b.field}_${b.value}`, w[b.field] = M(b,
|
|
4444
|
+
}), w[n.value] = `group_of_${b.field}_${b.value}`, w[b.field] = M(b, I);
|
|
4444
4445
|
}), y.forEach((b, w) => {
|
|
4445
4446
|
b.__fv_data_index__ = w;
|
|
4446
4447
|
}), y;
|
|
4447
4448
|
}
|
|
4448
4449
|
function V(h, y, b) {
|
|
4449
|
-
return !h || h.length === 0 || !y.length ? y : (h.join(","), v.clear(), m = [], d(v, y, 0, h, b), m =
|
|
4450
|
+
return !h || h.length === 0 || !y.length ? y : (h.join(","), v.clear(), m = [], d(v, y, 0, h, b), m = T(v), m);
|
|
4450
4451
|
}
|
|
4451
4452
|
function O(h) {
|
|
4452
4453
|
return {
|
|
@@ -4457,18 +4458,18 @@ function Yt(e, t) {
|
|
|
4457
4458
|
}
|
|
4458
4459
|
return { collpaseGroupIconClass: O, generateGroupData: V, groupFields: l, shouldGroupingData: s, showGroupPanel: i };
|
|
4459
4460
|
}
|
|
4460
|
-
function
|
|
4461
|
+
function bs(e, t, n, o) {
|
|
4461
4462
|
const a = f(!!e.hierarchy), { idField: l } = o, { collapseField: s, hasChildrenField: i, parentIdField: u } = n, r = /* @__PURE__ */ new Map();
|
|
4462
4463
|
function v(S, _) {
|
|
4463
4464
|
const k = /* @__PURE__ */ new Map();
|
|
4464
4465
|
return S.reduce(($, L) => {
|
|
4465
|
-
const
|
|
4466
|
-
if (
|
|
4467
|
-
const
|
|
4468
|
-
L.__fv_parent_index__ =
|
|
4466
|
+
const B = L[u.value] !== void 0 ? L[u.value] : "";
|
|
4467
|
+
if (B && _.has(B)) {
|
|
4468
|
+
const A = _.get(B);
|
|
4469
|
+
L.__fv_parent_index__ = A.__fv_index__, A.__fv_hasChildren__ = !0;
|
|
4469
4470
|
}
|
|
4470
|
-
const N = $.has(
|
|
4471
|
-
return N.push(L), $.set(
|
|
4471
|
+
const N = $.has(B) ? $.get(B) : [];
|
|
4472
|
+
return N.push(L), $.set(B, N), $;
|
|
4472
4473
|
}, k), k;
|
|
4473
4474
|
}
|
|
4474
4475
|
function m(S) {
|
|
@@ -4495,7 +4496,7 @@ function ws(e, t, n, o) {
|
|
|
4495
4496
|
_.__fv_children_index__ = [...k].sort(($, L) => $ - L);
|
|
4496
4497
|
});
|
|
4497
4498
|
}
|
|
4498
|
-
function
|
|
4499
|
+
function T(S, _) {
|
|
4499
4500
|
S.forEach((k) => {
|
|
4500
4501
|
const $ = k.__fv_parents__;
|
|
4501
4502
|
Array.from($.keys()).map((L) => _.get(L)).forEach((L) => {
|
|
@@ -4513,9 +4514,9 @@ function ws(e, t, n, o) {
|
|
|
4513
4514
|
}
|
|
4514
4515
|
function p(S, _) {
|
|
4515
4516
|
Array.from(_.keys()).forEach((k) => {
|
|
4516
|
-
_.get(k).reduce((L,
|
|
4517
|
-
const N =
|
|
4518
|
-
return R && (R.children.set(N,
|
|
4517
|
+
_.get(k).reduce((L, B) => {
|
|
4518
|
+
const N = B[l.value], A = S.get(B[l.value]), R = S.get(k);
|
|
4519
|
+
return R && (R.children.set(N, A), R.children.set(N, A), A.parentId = k, A.parentIndex = R.index, A.parents.set(k, R)), L;
|
|
4519
4520
|
}, S);
|
|
4520
4521
|
});
|
|
4521
4522
|
}
|
|
@@ -4542,66 +4543,66 @@ function ws(e, t, n, o) {
|
|
|
4542
4543
|
}
|
|
4543
4544
|
function w(S) {
|
|
4544
4545
|
r.clear(), S.forEach(($, L) => {
|
|
4545
|
-
const
|
|
4546
|
-
r.set(
|
|
4546
|
+
const B = $[l.value];
|
|
4547
|
+
r.set(B, O(B, L));
|
|
4547
4548
|
});
|
|
4548
4549
|
const _ = m(S), k = v(S, _);
|
|
4549
4550
|
return p(r, k), y(S, r), b(r), r;
|
|
4550
4551
|
}
|
|
4551
|
-
function
|
|
4552
|
+
function I(S) {
|
|
4552
4553
|
const _ = S[l.value], k = r.get(_);
|
|
4553
4554
|
return k && k.children.size > 0;
|
|
4554
4555
|
}
|
|
4555
4556
|
function C(S) {
|
|
4556
|
-
return S[i.value] && !
|
|
4557
|
+
return S[i.value] && !I(S);
|
|
4557
4558
|
}
|
|
4558
4559
|
function E(S) {
|
|
4559
4560
|
w(t.value);
|
|
4560
4561
|
const _ = m(S), k = v(S, _);
|
|
4561
4562
|
return S.forEach(($, L) => {
|
|
4562
4563
|
var R;
|
|
4563
|
-
const
|
|
4564
|
-
$.__fv_graph_node__ =
|
|
4565
|
-
}), d(S),
|
|
4564
|
+
const B = $[l.value], N = k.has(B) ? (R = k.get(B)) == null ? void 0 : R.map((j) => j.__fv_index__) : [], A = O(B, L);
|
|
4565
|
+
$.__fv_graph_node__ = A, $.__fv_children_index__ = N, $.__fv_descendant_index__ = [...N], $.__fv_parents__ = /* @__PURE__ */ new Map(), C($) && ($[s.value] = !0);
|
|
4566
|
+
}), d(S), T(S, _), e.showLines && V(S), S;
|
|
4566
4567
|
}
|
|
4567
4568
|
function g(S, _, k) {
|
|
4568
|
-
const L = k.value[S][l.value],
|
|
4569
|
-
if (
|
|
4570
|
-
const N = r.get(
|
|
4571
|
-
let
|
|
4569
|
+
const L = k.value[S][l.value], B = r.get(L);
|
|
4570
|
+
if (B) {
|
|
4571
|
+
const N = r.get(B.parentId);
|
|
4572
|
+
let A = k.value.length - 1;
|
|
4572
4573
|
if (N) {
|
|
4573
|
-
const R = Array.from(N.children.keys()).indexOf(
|
|
4574
|
+
const R = Array.from(N.children.keys()).indexOf(B.id);
|
|
4574
4575
|
if (R === N.children.size - 1) {
|
|
4575
4576
|
const Q = Array.from(N.descendant.values())[N.descendant.size - 1];
|
|
4576
|
-
|
|
4577
|
+
A = k.value.findIndex((re) => re[l.value] === Q.id) + 1;
|
|
4577
4578
|
} else {
|
|
4578
4579
|
const Q = Array.from(N.children.values())[R + 1];
|
|
4579
|
-
|
|
4580
|
+
A = k.value.findIndex((re) => re[l.value] === Q.id);
|
|
4580
4581
|
}
|
|
4581
|
-
_[i.value] = !1, _[u.value] = N.id, k.value.splice(
|
|
4582
|
+
_[i.value] = !1, _[u.value] = N.id, k.value.splice(A, 0, _);
|
|
4582
4583
|
}
|
|
4583
4584
|
}
|
|
4584
4585
|
}
|
|
4585
|
-
function
|
|
4586
|
+
function F(S, _, k) {
|
|
4586
4587
|
const $ = k.value[S], L = $[l.value];
|
|
4587
4588
|
if (r.get(L)) {
|
|
4588
|
-
const
|
|
4589
|
-
$[i.value] = !0, $[s.value] = !1, _[i.value] = !1, _[u.value] = L, k.value.splice(
|
|
4589
|
+
const A = k.value.findIndex((R) => R[l.value] === L) + 1;
|
|
4590
|
+
$[i.value] = !0, $[s.value] = !1, _[i.value] = !1, _[u.value] = L, k.value.splice(A, 0, _);
|
|
4590
4591
|
}
|
|
4591
4592
|
}
|
|
4592
4593
|
function x(S, _) {
|
|
4593
4594
|
const k = S[l.value], $ = r.get(k), L = Array.from($.descendant.keys());
|
|
4594
4595
|
L.unshift(k);
|
|
4595
|
-
const
|
|
4596
|
-
if (
|
|
4597
|
-
const
|
|
4598
|
-
|
|
4596
|
+
const B = r.get($.parentId);
|
|
4597
|
+
if (B && (B.children.delete(k), B.children.size === 0)) {
|
|
4598
|
+
const A = _.find((R) => R[l.value] === $.parentId);
|
|
4599
|
+
A[i.value] = !1, A[s.value] = !1;
|
|
4599
4600
|
}
|
|
4600
|
-
return _.filter((
|
|
4601
|
+
return _.filter((A) => L.indexOf(A.id) === -1);
|
|
4601
4602
|
}
|
|
4602
|
-
return { generateHierarchyData: E, hasRealChildren:
|
|
4603
|
+
return { generateHierarchyData: E, hasRealChildren: I, insertSibling: g, insertChild: F, shouldStratifyData: a, trimmedOriginalData: x };
|
|
4603
4604
|
}
|
|
4604
|
-
const
|
|
4605
|
+
const ws = {
|
|
4605
4606
|
showCloseButton: { type: Boolean, default: !0 },
|
|
4606
4607
|
position: { type: String, default: "top-center" },
|
|
4607
4608
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -4613,13 +4614,13 @@ const Cs = {
|
|
|
4613
4614
|
id: { type: String },
|
|
4614
4615
|
animate: { type: String, default: "fadeIn" },
|
|
4615
4616
|
options: { type: Object }
|
|
4616
|
-
},
|
|
4617
|
+
}, Cs = {
|
|
4617
4618
|
showCloseButton: { type: Boolean, default: !0 },
|
|
4618
4619
|
animate: { type: String, default: "fadeIn" },
|
|
4619
4620
|
options: { type: Object }
|
|
4620
4621
|
}, lt = /* @__PURE__ */ ue({
|
|
4621
4622
|
name: "Toast",
|
|
4622
|
-
props:
|
|
4623
|
+
props: Cs,
|
|
4623
4624
|
emits: ["close", "click"],
|
|
4624
4625
|
setup: (e, t) => {
|
|
4625
4626
|
const n = f(e.animate), o = "fadeOut", a = D(() => e.options), l = f(!1), s = D(() => {
|
|
@@ -4639,7 +4640,7 @@ const Cs = {
|
|
|
4639
4640
|
t.emit("close", a.value);
|
|
4640
4641
|
}, 200);
|
|
4641
4642
|
}
|
|
4642
|
-
function
|
|
4643
|
+
function T(p, h) {
|
|
4643
4644
|
}
|
|
4644
4645
|
function V(p) {
|
|
4645
4646
|
return `f-preten-link ${p.customClass ? p.customClass : ""}`;
|
|
@@ -4692,7 +4693,7 @@ const Cs = {
|
|
|
4692
4693
|
}
|
|
4693
4694
|
}), Ae = /* @__PURE__ */ ue({
|
|
4694
4695
|
name: "Notify",
|
|
4695
|
-
props:
|
|
4696
|
+
props: ws,
|
|
4696
4697
|
emits: ["close", "empty"],
|
|
4697
4698
|
setup(e, t) {
|
|
4698
4699
|
const n = D(() => ({
|
|
@@ -4703,14 +4704,14 @@ const Cs = {
|
|
|
4703
4704
|
top: 20,
|
|
4704
4705
|
bottom: 12
|
|
4705
4706
|
}, a = f(), l = f(e.options), s = f(e.showCloseButton), i = D(() => e.position || "bottom-right"), u = D(() => e.timeout != null ? e.timeout : 3e3), r = D(() => {
|
|
4706
|
-
const d = e.bottom ? e.bottom : o.bottom, M = e.top ? e.top : o.top,
|
|
4707
|
+
const d = e.bottom ? e.bottom : o.bottom, M = e.top ? e.top : o.top, T = {
|
|
4707
4708
|
transition: "all 0.2s ease",
|
|
4708
4709
|
left: i.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
4709
4710
|
right: i.value.indexOf("right") > -1 ? `${e.right ? e.right : o.right}px` : "",
|
|
4710
4711
|
top: i.value.indexOf("top") > -1 ? `${M}px` : "",
|
|
4711
4712
|
bottom: i.value.indexOf("bottom") > -1 ? `${d}px` : ""
|
|
4712
4713
|
};
|
|
4713
|
-
return i.value.indexOf("center") > -1 && (
|
|
4714
|
+
return i.value.indexOf("center") > -1 && (T.left = "50%", T.marginLeft = "calc(-24rem / 2)", i.value === "center-center" && (T.top = "50%", T.transform = "translate(-50%, -50%)")), T;
|
|
4714
4715
|
});
|
|
4715
4716
|
function v(d) {
|
|
4716
4717
|
t.emit("close");
|
|
@@ -4737,7 +4738,7 @@ const Cs = {
|
|
|
4737
4738
|
}, null)]);
|
|
4738
4739
|
}
|
|
4739
4740
|
});
|
|
4740
|
-
class
|
|
4741
|
+
class Yt {
|
|
4741
4742
|
constructor() {
|
|
4742
4743
|
z(this, "notifyRefs", []);
|
|
4743
4744
|
z(this, "globalConfig", ve({}));
|
|
@@ -4751,7 +4752,7 @@ class Qt {
|
|
|
4751
4752
|
...t
|
|
4752
4753
|
}), l = document.createElement("div");
|
|
4753
4754
|
l.style.display = "contents";
|
|
4754
|
-
const s =
|
|
4755
|
+
const s = xt({
|
|
4755
4756
|
setup() {
|
|
4756
4757
|
const i = f();
|
|
4757
4758
|
function u() {
|
|
@@ -4770,7 +4771,7 @@ class Qt {
|
|
|
4770
4771
|
document.body.removeChild(l);
|
|
4771
4772
|
}), ye(() => {
|
|
4772
4773
|
n.updateNotifyPositionForCreate(a, i);
|
|
4773
|
-
}), () => c(
|
|
4774
|
+
}), () => c(_t, {
|
|
4774
4775
|
mode: "out-in",
|
|
4775
4776
|
name: "fade",
|
|
4776
4777
|
appear: !0
|
|
@@ -4848,53 +4849,52 @@ class Qt {
|
|
|
4848
4849
|
}), this.notifyRefs.length = 0;
|
|
4849
4850
|
}
|
|
4850
4851
|
}
|
|
4851
|
-
const
|
|
4852
|
+
const _s = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
4852
4853
|
Ae.install = (e) => {
|
|
4853
4854
|
e.component(Ae.name, Ae), e.component(lt.name, lt);
|
|
4854
|
-
const t = new
|
|
4855
|
-
e.provide(
|
|
4855
|
+
const t = new Yt();
|
|
4856
|
+
e.provide(_s, t), e.provide("FNotifyService", t);
|
|
4856
4857
|
};
|
|
4857
|
-
function
|
|
4858
|
-
var pt
|
|
4859
|
-
const { pageSize: l, total: s, shouldRenderPagination: i, currentPage: u, mode: r } = a, v = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ new Map(),
|
|
4858
|
+
function xs(e, t, n, o, a) {
|
|
4859
|
+
var pt;
|
|
4860
|
+
const { pageSize: l, total: s, shouldRenderPagination: i, currentPage: u, mode: r } = a, v = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), V = f([]), O = f([]), p = ys(), h = Xt(e, o), { generateGroupData: y, groupFields: b, shouldGroupingData: w } = h, I = f(e.data), C = bs(e, I, n, o), {
|
|
4860
4861
|
generateHierarchyData: E,
|
|
4861
4862
|
hasRealChildren: g,
|
|
4862
|
-
insertSibling:
|
|
4863
|
+
insertSibling: F,
|
|
4863
4864
|
insertChild: x,
|
|
4864
4865
|
shouldStratifyData: S,
|
|
4865
4866
|
trimmedOriginalData: _
|
|
4866
|
-
} = C, { idField: k, reviseIdentifyField: $ } = o, L = f(e.newDataItem),
|
|
4867
|
-
function R(
|
|
4868
|
-
return P
|
|
4867
|
+
} = C, { idField: k, reviseIdentifyField: $ } = o, L = f(e.newDataItem), B = f(e.data), N = f(e.data), { flatTreeData: A } = Ps(e);
|
|
4868
|
+
function R(P) {
|
|
4869
|
+
return A(P);
|
|
4869
4870
|
}
|
|
4870
4871
|
if (e.data && ((pt = e.data[0]) != null && pt.children)) {
|
|
4871
|
-
const
|
|
4872
|
-
|
|
4872
|
+
const P = R(e.data);
|
|
4873
|
+
I.value = P, B.value = P, N.value = P;
|
|
4873
4874
|
}
|
|
4874
4875
|
const j = f(e.summary), Q = D(() => {
|
|
4875
|
-
const
|
|
4876
|
-
return (
|
|
4876
|
+
const P = j.value;
|
|
4877
|
+
return (P == null ? void 0 : P.groupFields) || [];
|
|
4877
4878
|
});
|
|
4878
4879
|
let te = /* @__PURE__ */ new Map();
|
|
4879
|
-
const
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
}),
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
deep: !0
|
|
4880
|
+
const re = D(() => {
|
|
4881
|
+
var P;
|
|
4882
|
+
return ((P = B.value) == null ? void 0 : P.length) || 0;
|
|
4883
|
+
}), xe = f(e.pagination), ke = new Yt(), he = D(() => e.hierarchy ? 0 : i.value ? r.value === "server" ? 0 : (u.value - 1) * l.value : 0), De = D(() => i.value ? r.value === "server" ? Math.min(l.value, re.value) : Math.min(he.value + l.value, s.value, re.value) : re.value);
|
|
4884
|
+
Z(() => I.value.length, (P, X) => {
|
|
4885
|
+
P !== X && (s.value = P);
|
|
4886
4886
|
});
|
|
4887
4887
|
function Te() {
|
|
4888
4888
|
var de, Ee;
|
|
4889
|
-
|
|
4890
|
-
const
|
|
4889
|
+
B.value = _e(I.value), w.value && (B.value = y(b.value, I.value, t)), te = Q.value.reduce((be, ee) => (be.set(ee, 0), be), te);
|
|
4890
|
+
const P = he.value, X = De.value;
|
|
4891
4891
|
let J = 0;
|
|
4892
4892
|
const le = [];
|
|
4893
|
-
if ((de =
|
|
4894
|
-
$(
|
|
4893
|
+
if ((de = B.value) != null && de.length) {
|
|
4894
|
+
$(B.value);
|
|
4895
4895
|
const be = k.value !== e.idField;
|
|
4896
|
-
for (let ee =
|
|
4897
|
-
const ne =
|
|
4896
|
+
for (let ee = P; ee < X; ee++) {
|
|
4897
|
+
const ne = B.value[ee];
|
|
4898
4898
|
ne.__fv_data_grid_group_row__ ? (J = 0, ne.__fv_data_index__ = "") : ne.__fv_data_grid_group_summary__ ? ne.__fv_data_index__ = "" : (ne.__fv_disabled__ = ne[((Ee = e.rowOption) == null ? void 0 : Ee.disabledField) || "disabled"], J++, i.value ? ne.__fv_data_index__ = J + (u.value - 1) * l.value : ne.__fv_data_index__ = J), ne.__fv_index__ = ee, be && (ne[k.value] = ee), Q.value.forEach((fe) => {
|
|
4899
4899
|
const Ne = te.get(fe) || 0;
|
|
4900
4900
|
te.set(fe, Ne + ne[fe]);
|
|
@@ -4904,8 +4904,8 @@ function Ss(e, t, n, o, a) {
|
|
|
4904
4904
|
return S.value && E(le), N.value = [...le], le;
|
|
4905
4905
|
}
|
|
4906
4906
|
const ce = f(Te());
|
|
4907
|
-
function ie(
|
|
4908
|
-
const de = (J ? Te() : [...N.value]).filter((ee) => p.apply(ee)), Ee =
|
|
4907
|
+
function ie(P, X, J = !1) {
|
|
4908
|
+
const de = (J ? Te() : [...N.value]).filter((ee) => p.apply(ee)), Ee = P && P.length ? de.filter((ee) => P.reduce((ne, fe) => ne && fe.filter(ee), !0)) : de, be = X && X.length ? Ee.sort((ee, ne) => {
|
|
4909
4909
|
const fe = [...X], Ne = fe.shift();
|
|
4910
4910
|
let Ze = Ne.compare(ee[Ne.field], ne[Ne.field]);
|
|
4911
4911
|
for (; Ze === 0 && fe.length !== 0; ) {
|
|
@@ -4922,114 +4922,114 @@ function Ss(e, t, n, o, a) {
|
|
|
4922
4922
|
return ee.__fv_index__ = ne, ee;
|
|
4923
4923
|
}), ce.value;
|
|
4924
4924
|
}
|
|
4925
|
-
function $e(
|
|
4926
|
-
return
|
|
4925
|
+
function $e(P) {
|
|
4926
|
+
return T.clear(), O.value = P, O.value.reduce((X, J) => (X.set(J.field, J), X), T), ie([], O.value);
|
|
4927
4927
|
}
|
|
4928
|
-
function qe(
|
|
4929
|
-
return
|
|
4928
|
+
function qe(P, X) {
|
|
4929
|
+
return T.set(P, X), O.value = Array.from(T.values()), ie([], O.value);
|
|
4930
4930
|
}
|
|
4931
|
-
function We(
|
|
4932
|
-
return
|
|
4931
|
+
function We(P) {
|
|
4932
|
+
return T.delete(P), O.value = Array.from(T.values()), ie([], O.value);
|
|
4933
4933
|
}
|
|
4934
|
-
function Ve(
|
|
4935
|
-
return m.set(
|
|
4934
|
+
function Ve(P, X) {
|
|
4935
|
+
return m.set(P, X), V.value = Array.from(m.values()), ie([], Array.from(T.values()));
|
|
4936
4936
|
}
|
|
4937
|
-
function Oe(
|
|
4938
|
-
return m.delete(
|
|
4937
|
+
function Oe(P) {
|
|
4938
|
+
return m.delete(P), V.value = Array.from(m.values()), ie([], Array.from(T.values()), !0);
|
|
4939
4939
|
}
|
|
4940
4940
|
function Ue() {
|
|
4941
|
-
return m.clear(), V.value = [], ie([], Array.from(
|
|
4941
|
+
return m.clear(), V.value = [], ie([], Array.from(T.values()), !0);
|
|
4942
4942
|
}
|
|
4943
|
-
function Xe(
|
|
4944
|
-
const J = `group_of_${
|
|
4943
|
+
function Xe(P, X) {
|
|
4944
|
+
const J = `group_of_${P}_${X}`;
|
|
4945
4945
|
v.set(J, !0);
|
|
4946
|
-
const le = (de) => de[
|
|
4947
|
-
return d.set(`collapse_${
|
|
4948
|
-
field:
|
|
4949
|
-
fieldName:
|
|
4946
|
+
const le = (de) => de[P] !== X;
|
|
4947
|
+
return d.set(`collapse_${P}_${X}`, {
|
|
4948
|
+
field: P,
|
|
4949
|
+
fieldName: P,
|
|
4950
4950
|
fieldType: "string",
|
|
4951
4951
|
filterValue: X,
|
|
4952
4952
|
filter: le
|
|
4953
|
-
}), ie(Array.from(d.values()), Array.from(
|
|
4953
|
+
}), ie(Array.from(d.values()), Array.from(T.values()));
|
|
4954
4954
|
}
|
|
4955
|
-
function Ye(
|
|
4956
|
-
const J = `group_of_${
|
|
4957
|
-
return v.set(J, !1), d.delete(`collapse_${
|
|
4955
|
+
function Ye(P, X) {
|
|
4956
|
+
const J = `group_of_${P}_${X}`;
|
|
4957
|
+
return v.set(J, !1), d.delete(`collapse_${P}_${X}`), ie(Array.from(d.values()), Array.from(T.values()), !0);
|
|
4958
4958
|
}
|
|
4959
|
-
function Qe(
|
|
4960
|
-
const X =
|
|
4959
|
+
function Qe(P) {
|
|
4960
|
+
const X = P.raw[k.value], J = (le) => !le.__fv_parents__.has(X);
|
|
4961
4961
|
M.set(`fold_${X}`, {
|
|
4962
4962
|
field: "id",
|
|
4963
4963
|
fieldName: "id",
|
|
4964
4964
|
fieldType: "string",
|
|
4965
4965
|
filterValue: String(X),
|
|
4966
4966
|
filter: J
|
|
4967
|
-
}), ie(Array.from(M.values()), Array.from(
|
|
4967
|
+
}), ie(Array.from(M.values()), Array.from(T.values())), E(ce.value);
|
|
4968
4968
|
}
|
|
4969
|
-
function H(
|
|
4970
|
-
const X =
|
|
4969
|
+
function H(P) {
|
|
4970
|
+
const X = P[k.value];
|
|
4971
4971
|
M.delete(`fold_${X}`);
|
|
4972
4972
|
}
|
|
4973
|
-
function K(
|
|
4974
|
-
H(
|
|
4973
|
+
function K(P) {
|
|
4974
|
+
H(P.raw), ie(Array.from(M.values()), Array.from(T.values()), !0), E(ce.value);
|
|
4975
4975
|
}
|
|
4976
4976
|
function ae() {
|
|
4977
|
-
const
|
|
4978
|
-
ce.value =
|
|
4977
|
+
const P = Te();
|
|
4978
|
+
ce.value = P, e.hierarchy && (ie(Array.from(M.values()), Array.from(T.values())), E(ce.value));
|
|
4979
4979
|
}
|
|
4980
|
-
function Fe(
|
|
4980
|
+
function Fe(P) {
|
|
4981
4981
|
var X;
|
|
4982
|
-
if (
|
|
4983
|
-
const J = R(
|
|
4984
|
-
|
|
4982
|
+
if (P && ((X = P[0]) != null && X.children)) {
|
|
4983
|
+
const J = R(P);
|
|
4984
|
+
I.value = J, B.value = J, N.value = J;
|
|
4985
4985
|
} else
|
|
4986
|
-
|
|
4986
|
+
I.value = P, B.value = P, N.value = P;
|
|
4987
4987
|
ae();
|
|
4988
4988
|
}
|
|
4989
|
-
function Je(
|
|
4990
|
-
return (
|
|
4989
|
+
function Je(P, X, J) {
|
|
4990
|
+
return (P && P.length ? ce.value.filter((de, Ee) => P.reduce((be, ee) => be && ee.filter(de), !0)) : ce.value).slice(X, J);
|
|
4991
4991
|
}
|
|
4992
|
-
function
|
|
4993
|
-
(
|
|
4992
|
+
function Zt(P) {
|
|
4993
|
+
(P - 1) * l.value <= re.value && ae();
|
|
4994
4994
|
}
|
|
4995
|
-
function
|
|
4996
|
-
|
|
4995
|
+
function Kt(P) {
|
|
4996
|
+
I.value.push(_e(P)), ce.value = Te();
|
|
4997
4997
|
}
|
|
4998
|
-
function
|
|
4999
|
-
if (!(
|
|
4998
|
+
function en(P = 0) {
|
|
4999
|
+
if (!(P > -1))
|
|
5000
5000
|
return !1;
|
|
5001
5001
|
const J = L.value();
|
|
5002
|
-
e.hierarchy ?
|
|
5002
|
+
e.hierarchy ? F(P, J, I) : I.value.splice(P, 0, J), ae();
|
|
5003
5003
|
}
|
|
5004
|
-
function
|
|
5005
|
-
if (!(
|
|
5004
|
+
function tn(P = 0) {
|
|
5005
|
+
if (!(P > -1 && e.hierarchy))
|
|
5006
5006
|
return !1;
|
|
5007
|
-
const J = L.value(), le =
|
|
5008
|
-
H(le), x(
|
|
5007
|
+
const J = L.value(), le = I.value[P];
|
|
5008
|
+
H(le), x(P, J, I), ae();
|
|
5009
5009
|
}
|
|
5010
|
-
function
|
|
5011
|
-
const X =
|
|
5012
|
-
|
|
5010
|
+
function nn(P) {
|
|
5011
|
+
const X = P ? P - 1 : 0;
|
|
5012
|
+
I.value.splice(X, 1), ae();
|
|
5013
5013
|
}
|
|
5014
|
-
function
|
|
5015
|
-
const X =
|
|
5016
|
-
X !== -1 && (
|
|
5014
|
+
function on(P) {
|
|
5015
|
+
const X = I.value.findIndex((J) => J[k.value] === P);
|
|
5016
|
+
X !== -1 && (I.value.splice(X, 1), ae());
|
|
5017
5017
|
}
|
|
5018
|
-
function
|
|
5019
|
-
const X =
|
|
5018
|
+
function an(P) {
|
|
5019
|
+
const X = P > -1 ? I.value[P] : null;
|
|
5020
5020
|
if (!(X && X.deletable !== !1))
|
|
5021
5021
|
return !1;
|
|
5022
|
-
|
|
5022
|
+
I.value = _(X, I.value), ae();
|
|
5023
5023
|
}
|
|
5024
|
-
function
|
|
5025
|
-
const
|
|
5026
|
-
return ie(
|
|
5024
|
+
function ln() {
|
|
5025
|
+
const P = d.size > 0 ? Array.from(d.values()) : [];
|
|
5026
|
+
return ie(P, Array.from(T.values()));
|
|
5027
5027
|
}
|
|
5028
|
-
function
|
|
5029
|
-
|
|
5028
|
+
function sn(P) {
|
|
5029
|
+
xe.value && (xe.value.size = P, ae());
|
|
5030
5030
|
}
|
|
5031
|
-
function
|
|
5032
|
-
const J =
|
|
5031
|
+
function rn(P, X) {
|
|
5032
|
+
const J = I.value[Number(P) - 1];
|
|
5033
5033
|
J.editable !== !1 ? (J.name = X, ae()) : ke.show({
|
|
5034
5034
|
showCloseButton: !1,
|
|
5035
5035
|
timeout: 3e3,
|
|
@@ -5037,50 +5037,50 @@ function Ss(e, t, n, o, a) {
|
|
|
5037
5037
|
toasts: [{ type: "string", title: "提示", msg: "当前节点禁止编辑" }]
|
|
5038
5038
|
});
|
|
5039
5039
|
}
|
|
5040
|
-
function
|
|
5041
|
-
return
|
|
5040
|
+
function un(P) {
|
|
5041
|
+
return P.map((J) => {
|
|
5042
5042
|
const le = N.value.findIndex((de) => de[k.value] === J);
|
|
5043
5043
|
return le > -1 ? N.value[le] : null;
|
|
5044
5044
|
}).filter((J) => J != null);
|
|
5045
5045
|
}
|
|
5046
5046
|
return {
|
|
5047
5047
|
addFilter: Ve,
|
|
5048
|
-
addNewDataItem:
|
|
5048
|
+
addNewDataItem: Kt,
|
|
5049
5049
|
addSorter: qe,
|
|
5050
|
-
changePageSizeTo:
|
|
5050
|
+
changePageSizeTo: sn,
|
|
5051
5051
|
collapse: Xe,
|
|
5052
5052
|
dataView: ce,
|
|
5053
|
-
editDataItem:
|
|
5053
|
+
editDataItem: rn,
|
|
5054
5054
|
expand: Ye,
|
|
5055
5055
|
filters: V,
|
|
5056
5056
|
fold: Qe,
|
|
5057
5057
|
getRange: Je,
|
|
5058
|
-
getSelectionItems:
|
|
5058
|
+
getSelectionItems: un,
|
|
5059
5059
|
hasRealChildren: g,
|
|
5060
5060
|
load: Fe,
|
|
5061
|
-
navigatePageTo:
|
|
5061
|
+
navigatePageTo: Zt,
|
|
5062
5062
|
summaries: te,
|
|
5063
|
-
totalItems:
|
|
5064
|
-
insertNewDataItem:
|
|
5065
|
-
insertNewChildDataItem:
|
|
5063
|
+
totalItems: re,
|
|
5064
|
+
insertNewDataItem: en,
|
|
5065
|
+
insertNewChildDataItem: tn,
|
|
5066
5066
|
removeAllFilter: Ue,
|
|
5067
|
-
removeDataItem:
|
|
5068
|
-
removeDataItemById:
|
|
5067
|
+
removeDataItem: nn,
|
|
5068
|
+
removeDataItemById: on,
|
|
5069
5069
|
removeFilter: Oe,
|
|
5070
|
-
removeHierarchyDataItem:
|
|
5070
|
+
removeHierarchyDataItem: an,
|
|
5071
5071
|
removeSorter: We,
|
|
5072
5072
|
rawView: N,
|
|
5073
|
-
refresh:
|
|
5073
|
+
refresh: ln,
|
|
5074
5074
|
setSorters: $e,
|
|
5075
5075
|
sorters: O,
|
|
5076
5076
|
updateDataView: ae,
|
|
5077
5077
|
unFold: K,
|
|
5078
5078
|
startIndex: he,
|
|
5079
5079
|
endIndex: De,
|
|
5080
|
-
originalData:
|
|
5080
|
+
originalData: I
|
|
5081
5081
|
};
|
|
5082
5082
|
}
|
|
5083
|
-
function
|
|
5083
|
+
function Ss(e) {
|
|
5084
5084
|
f(e.selection.showCheckbox || !1);
|
|
5085
5085
|
const t = D(() => {
|
|
5086
5086
|
var s;
|
|
@@ -5094,19 +5094,19 @@ function ks(e) {
|
|
|
5094
5094
|
}), a = D(() => e.hierarchy && e.selection.showCheckbox), l = D(() => (e.treeNodeIconsData.fold || e.iconField) && e.showTreeNodeIcons);
|
|
5095
5095
|
return { collapseField: t, hasChildrenField: n, parentIdField: o, shouldShowCheckBox: a, shouldShowIcon: l };
|
|
5096
5096
|
}
|
|
5097
|
-
function
|
|
5097
|
+
function ks(e, t, n, o, a, l, s, i) {
|
|
5098
5098
|
const u = f(o.value - 1 + a), r = f(0), { renderDataRow: v } = l, m = s ? s.renderGroupRow : v, d = i ? i.renderSummaryRow : v;
|
|
5099
5099
|
function M(O) {
|
|
5100
5100
|
let p = v;
|
|
5101
5101
|
return O.__fv_data_grid_group_row__ && (p = m), O.__fv_data_grid_group_summary__ && (p = d), p;
|
|
5102
5102
|
}
|
|
5103
|
-
function
|
|
5103
|
+
function T(O, p, h, y) {
|
|
5104
5104
|
const { dataView: b } = n, w = [];
|
|
5105
5105
|
if (b.value.length > 0) {
|
|
5106
|
-
const
|
|
5106
|
+
const I = y ? Date.now().toString() : "";
|
|
5107
5107
|
for (let C = O, E = 0; C <= p; C++, E++) {
|
|
5108
|
-
const g = b.value[C],
|
|
5109
|
-
k.refreshKey =
|
|
5108
|
+
const g = b.value[C], F = b.value[C - 1] || h, x = w[E - 1], S = F ? (F.__fv_data_position__ || 0) + (F.__fv_data_height__ || 0) : 0, k = M(g)(g, F, x, C, S, t.value, w);
|
|
5109
|
+
k.refreshKey = I, w.push(k);
|
|
5110
5110
|
}
|
|
5111
5111
|
}
|
|
5112
5112
|
return r.value = w.length > 0 ? w[0].index : 0, u.value = w.length > 0 ? w[w.length - 1].index : 0, w;
|
|
@@ -5114,12 +5114,12 @@ function Ts(e, t, n, o, a, l, s, i) {
|
|
|
5114
5114
|
function V(O, p, h) {
|
|
5115
5115
|
const y = p.groupField || "", { groupValue: b } = p;
|
|
5116
5116
|
n[O](y, b);
|
|
5117
|
-
const { dataView: w } = n,
|
|
5118
|
-
return
|
|
5117
|
+
const { dataView: w } = n, I = h[0].index, C = Math.min(I + o.value + a + 1, w.value.length - 1);
|
|
5118
|
+
return T(I, C);
|
|
5119
5119
|
}
|
|
5120
|
-
return { getVisualData:
|
|
5120
|
+
return { getVisualData: T, maxVisibleRowIndex: u, minVisibleRowIndex: r, toggleGroupRow: V };
|
|
5121
5121
|
}
|
|
5122
|
-
function
|
|
5122
|
+
function Ts() {
|
|
5123
5123
|
function e(t, n) {
|
|
5124
5124
|
const {
|
|
5125
5125
|
formatter: o
|
|
@@ -5130,7 +5130,7 @@ function Fs() {
|
|
|
5130
5130
|
renderEnumColumn: e
|
|
5131
5131
|
};
|
|
5132
5132
|
}
|
|
5133
|
-
function
|
|
5133
|
+
function Fs() {
|
|
5134
5134
|
function e(o, a) {
|
|
5135
5135
|
return o ? c("span", {
|
|
5136
5136
|
innerHTML: a.formatter.trueText
|
|
@@ -5155,10 +5155,10 @@ function Es() {
|
|
|
5155
5155
|
renderBooleanColumn: n
|
|
5156
5156
|
};
|
|
5157
5157
|
}
|
|
5158
|
-
function
|
|
5158
|
+
function Es() {
|
|
5159
5159
|
const {
|
|
5160
5160
|
formatTo: e
|
|
5161
|
-
} =
|
|
5161
|
+
} = qn();
|
|
5162
5162
|
function t(o, a) {
|
|
5163
5163
|
return e(o, a.formatter.dateFormat);
|
|
5164
5164
|
}
|
|
@@ -5170,10 +5170,10 @@ function Ms() {
|
|
|
5170
5170
|
renderDateColumn: n
|
|
5171
5171
|
};
|
|
5172
5172
|
}
|
|
5173
|
-
function
|
|
5173
|
+
function Ms() {
|
|
5174
5174
|
const {
|
|
5175
5175
|
formatTo: e
|
|
5176
|
-
} =
|
|
5176
|
+
} = Wn();
|
|
5177
5177
|
function t(o, a) {
|
|
5178
5178
|
const {
|
|
5179
5179
|
formatter: l
|
|
@@ -5194,16 +5194,16 @@ function Is() {
|
|
|
5194
5194
|
renderNumberColumn: n
|
|
5195
5195
|
};
|
|
5196
5196
|
}
|
|
5197
|
-
function
|
|
5197
|
+
function Is() {
|
|
5198
5198
|
const {
|
|
5199
5199
|
renderBooleanColumn: e
|
|
5200
|
-
} = Es(), {
|
|
5201
|
-
renderEnumColumn: t
|
|
5202
5200
|
} = Fs(), {
|
|
5201
|
+
renderEnumColumn: t
|
|
5202
|
+
} = Ts(), {
|
|
5203
5203
|
renderNumberColumn: n
|
|
5204
|
-
} =
|
|
5204
|
+
} = Ms(), {
|
|
5205
5205
|
renderDateColumn: o
|
|
5206
|
-
} =
|
|
5206
|
+
} = Es();
|
|
5207
5207
|
function a(i) {
|
|
5208
5208
|
return i;
|
|
5209
5209
|
}
|
|
@@ -5223,12 +5223,12 @@ function Bs() {
|
|
|
5223
5223
|
renderFormatColumn: s
|
|
5224
5224
|
};
|
|
5225
5225
|
}
|
|
5226
|
-
function
|
|
5226
|
+
function Bs(e, t, n) {
|
|
5227
5227
|
var O;
|
|
5228
|
-
const o = f(e.mergeCell), l = ((O = f(e.rowOption).value) == null ? void 0 : O.wrapContent) || !1, { updateVisualInfomation: s } = n, { renderCommandColumn: i } =
|
|
5229
|
-
function r(p, h, y, b, w,
|
|
5228
|
+
const o = f(e.mergeCell), l = ((O = f(e.rowOption).value) == null ? void 0 : O.wrapContent) || !1, { updateVisualInfomation: s } = n, { renderCommandColumn: i } = ka(), { renderFormatColumn: u } = Is();
|
|
5229
|
+
function r(p, h, y, b, w, I = 1) {
|
|
5230
5230
|
const C = {
|
|
5231
|
-
colSpan:
|
|
5231
|
+
colSpan: I,
|
|
5232
5232
|
rowSpan: 1,
|
|
5233
5233
|
index: y,
|
|
5234
5234
|
field: p,
|
|
@@ -5256,11 +5256,11 @@ function Vs(e, t, n) {
|
|
|
5256
5256
|
return p.getEditor = (b) => t.getEditor(b, h, b.parent), p.setRef = (b) => l && s(b, p, y), p.update = (b) => {
|
|
5257
5257
|
b !== void 0 && (p.editingData = b);
|
|
5258
5258
|
}, p.accept = () => {
|
|
5259
|
-
|
|
5259
|
+
mt(p.editingData, y, h.field), p.data = Re(y, h.field);
|
|
5260
5260
|
}, p.cancel = () => {
|
|
5261
5261
|
p.editingData = p.data;
|
|
5262
5262
|
}, p.updateData = (b) => {
|
|
5263
|
-
|
|
5263
|
+
mt(Re(b, h.field), y, h.field), p.data = Re(y, h.field);
|
|
5264
5264
|
}, p;
|
|
5265
5265
|
}
|
|
5266
5266
|
function m(p, h) {
|
|
@@ -5269,48 +5269,48 @@ function Vs(e, t, n) {
|
|
|
5269
5269
|
function d(p, h, y) {
|
|
5270
5270
|
const b = h && h.data[y];
|
|
5271
5271
|
if (b && b.data === p.data) {
|
|
5272
|
-
const
|
|
5273
|
-
|
|
5272
|
+
const I = b && b.spannedBy || b;
|
|
5273
|
+
I.rowSpan++, I.spanned = I.spanned || [], I.spanned.push(p), p.colSpan = 0, p.rowSpan = 0, p.spannedBy = I;
|
|
5274
5274
|
}
|
|
5275
5275
|
}
|
|
5276
5276
|
function M(p, h, y) {
|
|
5277
5277
|
o.value && d(p, h, y.field);
|
|
5278
5278
|
}
|
|
5279
|
-
function
|
|
5279
|
+
function T(p, h) {
|
|
5280
5280
|
h.showEllipsis !== void 0 && (p.showEllipsis = h.showEllipsis), p.align = h.align || "left", p.valign = h.valign || "middle";
|
|
5281
5281
|
}
|
|
5282
5282
|
function V(p, h, y, b, w) {
|
|
5283
|
-
const
|
|
5284
|
-
return
|
|
5283
|
+
const I = p.readonly ? se.readonly : se.editable, C = r(p.field, I, h, y, b);
|
|
5284
|
+
return T(C, p), v(C, p, y), m(C, p), M(C, w, p), C;
|
|
5285
5285
|
}
|
|
5286
5286
|
return { createCellByColumn: V, createCellByField: r };
|
|
5287
5287
|
}
|
|
5288
|
-
function
|
|
5288
|
+
function Vs(e, t, n, o, a, l) {
|
|
5289
5289
|
var p, h;
|
|
5290
5290
|
const s = f(e.rowOption), i = ((p = s.value) == null ? void 0 : p.height) || 28, u = ((h = s.value) == null ? void 0 : h.wrapContent) || !1, { idField: r } = o, { collapseField: v } = n, { updateRowPosition: m } = a, { createCellByColumn: d } = l;
|
|
5291
|
-
function M(y, b, w,
|
|
5292
|
-
var
|
|
5291
|
+
function M(y, b, w, I, C, E, g) {
|
|
5292
|
+
var re, xe, ke;
|
|
5293
5293
|
const {
|
|
5294
|
-
__fv_data_grid_group_field__:
|
|
5294
|
+
__fv_data_grid_group_field__: F,
|
|
5295
5295
|
__fv_data_grid_group_value__: x,
|
|
5296
5296
|
__fv_data_index__: S
|
|
5297
|
-
} = w, _ = w.__fv_data_grid_group_layer__ || (w.__fv_parents__ ? (
|
|
5298
|
-
|
|
5297
|
+
} = w, _ = w.__fv_data_grid_group_layer__ || (w.__fv_parents__ ? (re = w.__fv_parents__) == null ? void 0 : re.size : 0) || 0, k = typeof w.parent == "number" ? Number(w.parent) : -1, $ = w.__fv_data_grid_group_collapse__ || w[v.value], L = w.__fv_visible__ === void 0 ? !0 : w.__fv_visible__, B = w.__fv_checked__, N = w.__fv_indeterminate__, A = w.__fv_disabled__ || w[((xe = e.rowOption) == null ? void 0 : xe.disabledField) || "disabled"], R = g == null ? void 0 : g.find((he) => he.raw[r.value] === w.parent), j = R && R.collapse;
|
|
5298
|
+
I && (I.parent, w.parent);
|
|
5299
5299
|
const Q = j || R && !R.visible, te = {
|
|
5300
5300
|
collapse: $,
|
|
5301
5301
|
data: {},
|
|
5302
5302
|
dataIndex: S,
|
|
5303
|
-
groupField:
|
|
5303
|
+
groupField: F,
|
|
5304
5304
|
groupValue: x,
|
|
5305
5305
|
layer: _,
|
|
5306
5306
|
index: b,
|
|
5307
5307
|
parentIndex: k,
|
|
5308
|
-
pre:
|
|
5308
|
+
pre: I,
|
|
5309
5309
|
top: E,
|
|
5310
5310
|
type: y,
|
|
5311
5311
|
raw: w,
|
|
5312
|
-
checked:
|
|
5313
|
-
disabled:
|
|
5312
|
+
checked: B,
|
|
5313
|
+
disabled: A,
|
|
5314
5314
|
indeterminate: N,
|
|
5315
5315
|
setRef: (he) => {
|
|
5316
5316
|
te.ref = he;
|
|
@@ -5318,32 +5318,32 @@ function Os(e, t, n, o, a, l) {
|
|
|
5318
5318
|
visible: L && !Q,
|
|
5319
5319
|
status: me.initial
|
|
5320
5320
|
};
|
|
5321
|
-
return
|
|
5321
|
+
return I || (w.__fv_data_position__ = 0), u || (te.height = i, w.__fv_data_height__ = te.height, m(te, w)), (ke = s.value) != null && ke.customRowStatus && (s.value.customRowStatus(te), w.__fv_collapse__ = te.collapse, w.__fv_visible__ = te.visible, w.__fv_disabled__ = te.disabled), te;
|
|
5322
5322
|
}
|
|
5323
|
-
function
|
|
5324
|
-
const
|
|
5323
|
+
function T(y, b, w, I, C, E, g) {
|
|
5324
|
+
const F = M(Ge.data, C, b, w, I, E, g);
|
|
5325
5325
|
return y.forEach((x, S) => {
|
|
5326
|
-
|
|
5327
|
-
}),
|
|
5326
|
+
F.data[x.field] = d(x, C, b, F, I);
|
|
5327
|
+
}), F;
|
|
5328
5328
|
}
|
|
5329
|
-
function V(y, b, w,
|
|
5330
|
-
return Object.assign(y, { index: b, dataIndex: w, top:
|
|
5329
|
+
function V(y, b, w, I, C) {
|
|
5330
|
+
return Object.assign(y, { index: b, dataIndex: w, top: I, pre: C });
|
|
5331
5331
|
}
|
|
5332
|
-
function O(y, b, w,
|
|
5333
|
-
const
|
|
5334
|
-
return S === null ?
|
|
5332
|
+
function O(y, b, w, I, C, E, g) {
|
|
5333
|
+
const F = y.__fv_data_index__, x = y[r.value], S = t.getEditingSnapshot(x);
|
|
5334
|
+
return S === null ? T(
|
|
5335
5335
|
E,
|
|
5336
5336
|
y,
|
|
5337
5337
|
b,
|
|
5338
5338
|
w,
|
|
5339
|
-
|
|
5339
|
+
I,
|
|
5340
5340
|
C,
|
|
5341
5341
|
g
|
|
5342
|
-
) : V(S,
|
|
5342
|
+
) : V(S, I, F, C, w);
|
|
5343
5343
|
}
|
|
5344
|
-
return { createEmptyRow: M, createNewRowFromDataItem:
|
|
5344
|
+
return { createEmptyRow: M, createNewRowFromDataItem: T, renderDataRow: O };
|
|
5345
5345
|
}
|
|
5346
|
-
function
|
|
5346
|
+
function Os(e, t, n, o) {
|
|
5347
5347
|
const a = f(e.summary), { idField: l } = t, { createCellByField: s } = n, { createEmptyRow: i } = o, u = D(() => {
|
|
5348
5348
|
const d = a.value;
|
|
5349
5349
|
return (d == null ? void 0 : d.groupFields) || [];
|
|
@@ -5351,35 +5351,35 @@ function Ns(e, t, n, o) {
|
|
|
5351
5351
|
const d = a.value;
|
|
5352
5352
|
return d && d.enable && d.groupFields && d.groupFields.length > 0;
|
|
5353
5353
|
});
|
|
5354
|
-
function v(d, M,
|
|
5354
|
+
function v(d, M, T, V) {
|
|
5355
5355
|
if (r.value) {
|
|
5356
5356
|
const O = d.data[M];
|
|
5357
5357
|
let p = O.colSpan;
|
|
5358
5358
|
const h = u.value.reduce((y, b) => (y.set(b, !0), y), /* @__PURE__ */ new Map());
|
|
5359
5359
|
V.reduce((y, b, w) => {
|
|
5360
5360
|
if (h.has(b.field)) {
|
|
5361
|
-
const
|
|
5362
|
-
d.data[b.field] =
|
|
5361
|
+
const I = s(b.field, se.readonly, w, T, d);
|
|
5362
|
+
d.data[b.field] = I, p - 1 > w && (p = w);
|
|
5363
5363
|
}
|
|
5364
5364
|
return y;
|
|
5365
5365
|
}, d), O.colSpan = p;
|
|
5366
5366
|
}
|
|
5367
5367
|
}
|
|
5368
|
-
function m(d, M,
|
|
5369
|
-
const y = d.__fv_data_grid_group_field__, b = i(Ge.group, V, d, M,
|
|
5370
|
-
return b.data[l.value] = s(l.value,
|
|
5368
|
+
function m(d, M, T, V, O, p, h) {
|
|
5369
|
+
const y = d.__fv_data_grid_group_field__, b = i(Ge.group, V, d, M, T, O);
|
|
5370
|
+
return b.data[l.value] = s(l.value, se.readonly, -1, d, b, 0), b.data[y] = s(y, se.readonly, 1, d, b, p.length), v(b, y, d, p), b;
|
|
5371
5371
|
}
|
|
5372
5372
|
return { renderGroupRow: m };
|
|
5373
5373
|
}
|
|
5374
|
-
function
|
|
5374
|
+
function Ns(e, t, n, o) {
|
|
5375
5375
|
const { idField: a } = t, { createCellByField: l } = n, { createEmptyRow: s } = o;
|
|
5376
|
-
function i(u, r, v, m, d, M,
|
|
5376
|
+
function i(u, r, v, m, d, M, T) {
|
|
5377
5377
|
const V = u.__fv_data_grid_group_field__, O = s(Ge.summary, m, u, r, v, d);
|
|
5378
|
-
return O.data[a.value] = l(a.value,
|
|
5378
|
+
return O.data[a.value] = l(a.value, se.readonly, -1, u, O), O.data[V] = l(V, se.readonly, 1, u, O, M.length), O;
|
|
5379
5379
|
}
|
|
5380
5380
|
return { renderSummaryRow: i };
|
|
5381
5381
|
}
|
|
5382
|
-
function
|
|
5382
|
+
function Rs(e, t, n) {
|
|
5383
5383
|
var E;
|
|
5384
5384
|
const {
|
|
5385
5385
|
idField: o
|
|
@@ -5398,11 +5398,11 @@ function Ds(e, t, n) {
|
|
|
5398
5398
|
return r && r.raw[o.value] === g ? r : null;
|
|
5399
5399
|
}
|
|
5400
5400
|
const M = ve({});
|
|
5401
|
-
function
|
|
5402
|
-
g.mode =
|
|
5401
|
+
function T(g, F, x = {}) {
|
|
5402
|
+
g.mode = se.editing, u = g, r = F, v = F == null ? void 0 : F.raw[g.field], m = x;
|
|
5403
5403
|
}
|
|
5404
5404
|
function V(g) {
|
|
5405
|
-
g.accept(), g.mode =
|
|
5405
|
+
g.accept(), g.mode = se.editable, u = null, t.emit("endEditCell", {
|
|
5406
5406
|
cell: g,
|
|
5407
5407
|
row: r,
|
|
5408
5408
|
newValue: r == null ? void 0 : r.raw[g.field],
|
|
@@ -5414,17 +5414,17 @@ function Ds(e, t, n) {
|
|
|
5414
5414
|
function O(g) {
|
|
5415
5415
|
document.body.classList.contains("lookup-modal-open") || (u && (V(u), r && (r = void 0)), document.body.removeEventListener("click", O));
|
|
5416
5416
|
}
|
|
5417
|
-
function p(g,
|
|
5418
|
-
a.value && l.value.editMode === "cell" &&
|
|
5417
|
+
function p(g, F, x, S = {}) {
|
|
5418
|
+
a.value && l.value.editMode === "cell" && F.mode === se.editable && (u && V(u), T(F, x, S), document.body.removeEventListener("click", O), document.body.addEventListener("click", O));
|
|
5419
5419
|
}
|
|
5420
5420
|
function h(g) {
|
|
5421
|
-
Object.values(g.data).filter((
|
|
5422
|
-
|
|
5421
|
+
Object.values(g.data).filter((F) => F.mode === se.editable && F.field !== "__commands__").forEach((F) => {
|
|
5422
|
+
F.mode = se.editing;
|
|
5423
5423
|
}), g.status = me.editing, r = g;
|
|
5424
5424
|
}
|
|
5425
|
-
function y(g,
|
|
5426
|
-
Object.values(g.data).filter((x) => x.mode ===
|
|
5427
|
-
|
|
5425
|
+
function y(g, F) {
|
|
5426
|
+
Object.values(g.data).filter((x) => x.mode === se.editing).forEach((x) => {
|
|
5427
|
+
F ? x.accept() : x.cancel(), x.mode = se.editable;
|
|
5428
5428
|
}), g.status = me.initial, r === g && (r = void 0);
|
|
5429
5429
|
}
|
|
5430
5430
|
function b(g) {
|
|
@@ -5433,37 +5433,37 @@ function Ds(e, t, n) {
|
|
|
5433
5433
|
function w(g) {
|
|
5434
5434
|
y(g, !0), g.status = me.initial;
|
|
5435
5435
|
}
|
|
5436
|
-
function
|
|
5436
|
+
function I(g) {
|
|
5437
5437
|
y(g, !1), g.status = me.initial;
|
|
5438
5438
|
}
|
|
5439
|
-
function C(g,
|
|
5440
|
-
const S =
|
|
5439
|
+
function C(g, F, x) {
|
|
5440
|
+
const S = F.dataType, _ = F.editor || {
|
|
5441
5441
|
type: i.get(S) || "input-group"
|
|
5442
5442
|
};
|
|
5443
5443
|
return !s.value && _.type === "text" && (_.type = "input-group"), _ ? (_.context = {
|
|
5444
5444
|
rowData: x.raw,
|
|
5445
|
-
column:
|
|
5445
|
+
column: F,
|
|
5446
5446
|
cell: g,
|
|
5447
5447
|
editor: M
|
|
5448
|
-
}, c(
|
|
5448
|
+
}, c(Hn, {
|
|
5449
5449
|
focusOnCreated: e.focusOnEditingCell,
|
|
5450
5450
|
selectOnCreated: e.selectOnEditingCell,
|
|
5451
5451
|
editor: _,
|
|
5452
5452
|
modelValue: g.editingData,
|
|
5453
5453
|
"onUpdate:modelValue": (k) => g.editingData = k,
|
|
5454
|
-
id:
|
|
5454
|
+
id: F.id
|
|
5455
5455
|
}, null)) : g.data;
|
|
5456
5456
|
}
|
|
5457
5457
|
return {
|
|
5458
5458
|
onClickCell: p,
|
|
5459
5459
|
onEditingRow: b,
|
|
5460
5460
|
acceptEditingRow: w,
|
|
5461
|
-
cancelEditingRow:
|
|
5461
|
+
cancelEditingRow: I,
|
|
5462
5462
|
getEditingSnapshot: d,
|
|
5463
5463
|
getEditor: C
|
|
5464
5464
|
};
|
|
5465
5465
|
}
|
|
5466
|
-
function
|
|
5466
|
+
function Ds(e) {
|
|
5467
5467
|
const t = f(e.idField);
|
|
5468
5468
|
function n(o) {
|
|
5469
5469
|
if (o && o.length) {
|
|
@@ -5473,7 +5473,7 @@ function $s(e) {
|
|
|
5473
5473
|
}
|
|
5474
5474
|
return { idField: t, reviseIdentifyField: n };
|
|
5475
5475
|
}
|
|
5476
|
-
function
|
|
5476
|
+
function $s(e, t, n, o, a) {
|
|
5477
5477
|
const { idField: l } = n, s = f(""), i = D(() => e.selection.enableSelectRow), u = f(e.selection.multiSelect ?? !1), r = f(e.selection.multiSelectMode), v = f(e.selection.showCheckbox), m = f(e.selection.showSelectAll), d = f(e.selectionValues);
|
|
5478
5478
|
Z(() => e.selection.showSelectAll, (R, j) => {
|
|
5479
5479
|
R !== j && (m.value = R);
|
|
@@ -5481,7 +5481,7 @@ function Ls(e, t, n, o, a) {
|
|
|
5481
5481
|
function M() {
|
|
5482
5482
|
return t.getSelectionItems(d.value);
|
|
5483
5483
|
}
|
|
5484
|
-
function
|
|
5484
|
+
function T() {
|
|
5485
5485
|
const R = o.value.reduce((Q, te) => (Q.set(te.raw[l.value], te), Q), /* @__PURE__ */ new Map());
|
|
5486
5486
|
return d.value.map((Q) => R.get(Q)).filter((Q) => !!Q);
|
|
5487
5487
|
}
|
|
@@ -5497,7 +5497,7 @@ function Ls(e, t, n, o, a) {
|
|
|
5497
5497
|
function w() {
|
|
5498
5498
|
o.value.forEach((j) => {
|
|
5499
5499
|
j.checked = !1, j.indeterminate = !1, j.raw.__fv_checked__ = !1, j.raw.__fv_indeterminate__ = !1;
|
|
5500
|
-
}),
|
|
5500
|
+
}), T().forEach((j) => {
|
|
5501
5501
|
j.checked = !0, j.raw.__fv_checked__ = !0;
|
|
5502
5502
|
});
|
|
5503
5503
|
}
|
|
@@ -5508,7 +5508,7 @@ function Ls(e, t, n, o, a) {
|
|
|
5508
5508
|
}, { immediate: !0 }), Z(() => e.selection, (R) => {
|
|
5509
5509
|
u.value = !!R.multiSelect, r.value = R.multiSelectMode || "DependOnCheck", v.value = !!R.showCheckbox;
|
|
5510
5510
|
});
|
|
5511
|
-
const
|
|
5511
|
+
const I = D(() => !u.value);
|
|
5512
5512
|
function C(R) {
|
|
5513
5513
|
return R.raw[l.value] || "";
|
|
5514
5514
|
}
|
|
@@ -5516,13 +5516,13 @@ function Ls(e, t, n, o, a) {
|
|
|
5516
5516
|
return d.value.findIndex((Q) => Q === C(R));
|
|
5517
5517
|
}
|
|
5518
5518
|
function g() {
|
|
5519
|
-
|
|
5519
|
+
T().forEach((Q) => {
|
|
5520
5520
|
Q.checked = !1;
|
|
5521
5521
|
}), t.getSelectionItems(d.value).forEach((Q) => {
|
|
5522
5522
|
Q.__fv_checked__ = !1;
|
|
5523
5523
|
}), d.value = [], s.value = "";
|
|
5524
5524
|
}
|
|
5525
|
-
function
|
|
5525
|
+
function F(R) {
|
|
5526
5526
|
const j = R.raw;
|
|
5527
5527
|
j.__fv_checked__ = !0, j.__fv_indeterminate__ = !1;
|
|
5528
5528
|
const Q = new Set(d.value);
|
|
@@ -5537,10 +5537,10 @@ function Ls(e, t, n, o, a) {
|
|
|
5537
5537
|
j.__fv_checked__ = !1, j.__fv_indeterminate__ = !0, d.value = d.value.filter((Q) => Q !== j[l.value]), R.checked = !1, R.indeterminate = !0;
|
|
5538
5538
|
}
|
|
5539
5539
|
function _(R) {
|
|
5540
|
-
|
|
5540
|
+
I.value && g(), R.checked ? x(R) : F(R), b();
|
|
5541
5541
|
}
|
|
5542
5542
|
function k(R) {
|
|
5543
|
-
R.raw[l.value] !== s.value && (g(),
|
|
5543
|
+
R.raw[l.value] !== s.value && (g(), F(R), b());
|
|
5544
5544
|
}
|
|
5545
5545
|
function $(R) {
|
|
5546
5546
|
const j = o.value.find((Q) => Q.raw[l.value] === R);
|
|
@@ -5549,11 +5549,11 @@ function Ls(e, t, n, o, a) {
|
|
|
5549
5549
|
function L(R) {
|
|
5550
5550
|
const j = o.value.filter((Q) => R.includes(Q.raw[l.value]));
|
|
5551
5551
|
j && j.length && (g(), j.forEach((Q) => {
|
|
5552
|
-
|
|
5552
|
+
F(Q);
|
|
5553
5553
|
}), b());
|
|
5554
5554
|
}
|
|
5555
|
-
function
|
|
5556
|
-
o.value.forEach((R) =>
|
|
5555
|
+
function B() {
|
|
5556
|
+
o.value.forEach((R) => F(R)), s.value = "", b();
|
|
5557
5557
|
}
|
|
5558
5558
|
function N() {
|
|
5559
5559
|
d.value.splice(0, d.value.length), s.value = "", o.value.forEach((R) => {
|
|
@@ -5561,7 +5561,7 @@ function Ls(e, t, n, o, a) {
|
|
|
5561
5561
|
j.__fv_checked__ = !1, j.__fv_indeterminate__ = !1, R.checked = !1, R.indeterminate = !1;
|
|
5562
5562
|
}), b();
|
|
5563
5563
|
}
|
|
5564
|
-
function
|
|
5564
|
+
function A() {
|
|
5565
5565
|
return o.value.find((R) => R.raw[l.value] === s.value);
|
|
5566
5566
|
}
|
|
5567
5567
|
return {
|
|
@@ -5571,15 +5571,15 @@ function Ls(e, t, n, o, a) {
|
|
|
5571
5571
|
enableSelectRow: i,
|
|
5572
5572
|
findIndexInSelectedItems: E,
|
|
5573
5573
|
getSelectedItems: M,
|
|
5574
|
-
getSelectionRow:
|
|
5574
|
+
getSelectionRow: A,
|
|
5575
5575
|
indeterminate: S,
|
|
5576
5576
|
isSelectingHirarchyItem: O,
|
|
5577
5577
|
multiSelectMode: r,
|
|
5578
5578
|
multiSelectOnClickRow: y,
|
|
5579
5579
|
multiSelectOnClickRowWithShift: h,
|
|
5580
5580
|
multiSelectOnlyOnCheck: p,
|
|
5581
|
-
select:
|
|
5582
|
-
selectAll:
|
|
5581
|
+
select: F,
|
|
5582
|
+
selectAll: B,
|
|
5583
5583
|
selectedValues: d,
|
|
5584
5584
|
selectItem: k,
|
|
5585
5585
|
selectItemById: $,
|
|
@@ -5594,9 +5594,9 @@ function Ls(e, t, n, o, a) {
|
|
|
5594
5594
|
function we(e) {
|
|
5595
5595
|
return typeof e > "u";
|
|
5596
5596
|
}
|
|
5597
|
-
function
|
|
5598
|
-
var m, d, M,
|
|
5599
|
-
const t = f((m = e.pagination) == null ? void 0 : m.enable), n = f(((d = e.pagination) == null ? void 0 : d.index) || 1), o = f((M = e.pagination) == null ? void 0 : M.size), a = f((
|
|
5597
|
+
function Ls(e) {
|
|
5598
|
+
var m, d, M, T, V, O, p, h;
|
|
5599
|
+
const t = f((m = e.pagination) == null ? void 0 : m.enable), n = f(((d = e.pagination) == null ? void 0 : d.index) || 1), o = f((M = e.pagination) == null ? void 0 : M.size), a = f((T = e.pagination) == null ? void 0 : T.sizeLimits), l = f((V = e.pagination) == null ? void 0 : V.mode), s = f((O = e.pagination) == null ? void 0 : O.showIndex), i = f((p = e.pagination) == null ? void 0 : p.showLimits), u = f(((h = e.pagination) == null ? void 0 : h.total) || 0), r = f(u.value || e.data.length || 0);
|
|
5600
5600
|
return Z(() => {
|
|
5601
5601
|
var y;
|
|
5602
5602
|
return (y = e.pagination) == null ? void 0 : y.sizeLimits;
|
|
@@ -5638,24 +5638,24 @@ function Ps(e) {
|
|
|
5638
5638
|
updatePagination: (y) => {
|
|
5639
5639
|
if (!y)
|
|
5640
5640
|
return;
|
|
5641
|
-
const { enable: b, total: w, size:
|
|
5642
|
-
we(b) || (t.value = b), we(C) || (n.value = C), we(
|
|
5641
|
+
const { enable: b, total: w, size: I, index: C, sizeLimits: E, showIndex: g, showLimits: F, mode: x } = y;
|
|
5642
|
+
we(b) || (t.value = b), we(C) || (n.value = C), we(I) || (o.value = I), we(E) || (a.value = E), we(g) || (s.value = g), we(F) || (i.value = F), we(w) || (u.value = w), we(x) || (l.value = x);
|
|
5643
5643
|
}
|
|
5644
5644
|
};
|
|
5645
5645
|
}
|
|
5646
|
-
function
|
|
5646
|
+
function Ps(e) {
|
|
5647
5647
|
const t = "parent", n = "layer", o = "hasChildren", a = (l, s = 1, i = [], u = null) => (l = l || [], l.reduce((r, v) => (v.id = v.id || v.data[e.idField], v[t] = u, v[n] = s, v[o] = !1, v = { ...v, ...v.data }, i.push(v), v.children && v.children.length && (v[o] = !0, a(v.children, s + 1, i, v.id)), r), i), i);
|
|
5648
5648
|
return { flatTreeData: a };
|
|
5649
5649
|
}
|
|
5650
|
-
const
|
|
5650
|
+
const As = /* @__PURE__ */ ue({
|
|
5651
5651
|
name: "FListViewDesign",
|
|
5652
5652
|
props: ze,
|
|
5653
5653
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
|
|
5654
5654
|
setup(e, t) {
|
|
5655
|
-
const n = f(), o = f(!0), a = f(!1), l = f([]), s = 0, i = f(e.columns), u =
|
|
5656
|
-
getVisualData:
|
|
5655
|
+
const n = f(), o = f(!0), a = f(!1), l = f([]), s = 0, i = f(e.columns), u = Ds(e), r = Ss(e), v = Xt(e, u), m = Ls(e), d = xs(e, /* @__PURE__ */ new Map(), r, u, m), M = $s(e, d, u, l, t), T = Bt(e, n), V = f(), O = St("design-item-context"), p = Nt(V, O), h = D(() => d.dataView.value.length), y = Rs(e, t, u), b = Sa(), w = Bs(e, {}, b), I = Vs(e, y, r, u, b, w), C = Os(e, u, w, I), E = Ns(e, u, w, I), g = ks(e, i, d, h, s, I, C, E), {
|
|
5656
|
+
getVisualData: F
|
|
5657
5657
|
} = g;
|
|
5658
|
-
l.value =
|
|
5658
|
+
l.value = F(0, h.value + s - 1), ye(() => {
|
|
5659
5659
|
V.value.componentInstance = p;
|
|
5660
5660
|
}), t.expose(p.value);
|
|
5661
5661
|
const x = D(() => {
|
|
@@ -5666,19 +5666,19 @@ const js = /* @__PURE__ */ ue({
|
|
|
5666
5666
|
return e.size !== "default" && (N[`${e.size}-item`] = !0), N;
|
|
5667
5667
|
}), S = D(() => !!t.slots.footer || o.value);
|
|
5668
5668
|
function _() {
|
|
5669
|
-
return e.header === "SearchBar" ? je : e.header === "ContentHeader" ?
|
|
5669
|
+
return e.header === "SearchBar" ? je : e.header === "ContentHeader" ? Ot : je;
|
|
5670
5670
|
}
|
|
5671
5671
|
const k = _(), {
|
|
5672
5672
|
renderHeader: $
|
|
5673
|
-
} = k(e, t,
|
|
5673
|
+
} = k(e, t, T), {
|
|
5674
5674
|
renderListArea: L
|
|
5675
|
-
} =
|
|
5676
|
-
function
|
|
5675
|
+
} = Vt(e, t, l, d, v, M, g);
|
|
5676
|
+
function B(N) {
|
|
5677
5677
|
e.multiSelect && (N.preventDefault(), N.stopPropagation());
|
|
5678
5678
|
}
|
|
5679
5679
|
return () => c("div", {
|
|
5680
5680
|
class: x.value,
|
|
5681
|
-
onClick:
|
|
5681
|
+
onClick: B
|
|
5682
5682
|
}, [$(), c("div", {
|
|
5683
5683
|
ref: n,
|
|
5684
5684
|
class: "f-list-view-content",
|
|
@@ -5766,7 +5766,7 @@ const js = /* @__PURE__ */ ue({
|
|
|
5766
5766
|
}, [l.date])])])])]))]);
|
|
5767
5767
|
};
|
|
5768
5768
|
}
|
|
5769
|
-
}),
|
|
5769
|
+
}), js = "https://json-schema.org/draft/2020-12/schema", Hs = "https://farris-design.gitee.io/list-view-table.schema.json", zs = "list-view-table", Gs = "A Farris Component", qs = "object", Ws = {
|
|
5770
5770
|
id: {
|
|
5771
5771
|
description: "The unique identifier for list-view-table",
|
|
5772
5772
|
type: "string"
|
|
@@ -5828,18 +5828,18 @@ const js = /* @__PURE__ */ ue({
|
|
|
5828
5828
|
type: "boolean",
|
|
5829
5829
|
default: !0
|
|
5830
5830
|
}
|
|
5831
|
-
},
|
|
5831
|
+
}, Us = [
|
|
5832
5832
|
"id",
|
|
5833
5833
|
"type"
|
|
5834
|
-
],
|
|
5835
|
-
$schema:
|
|
5836
|
-
$id:
|
|
5837
|
-
title:
|
|
5838
|
-
description:
|
|
5839
|
-
type:
|
|
5840
|
-
properties:
|
|
5841
|
-
required:
|
|
5842
|
-
},
|
|
5834
|
+
], Xs = {
|
|
5835
|
+
$schema: js,
|
|
5836
|
+
$id: Hs,
|
|
5837
|
+
title: zs,
|
|
5838
|
+
description: Gs,
|
|
5839
|
+
type: qs,
|
|
5840
|
+
properties: Ws,
|
|
5841
|
+
required: Us
|
|
5842
|
+
}, Ys = "list-view-table", Qs = "A Farris Component", Js = "object", Zs = {
|
|
5843
5843
|
basic: {
|
|
5844
5844
|
description: "Basic Infomation",
|
|
5845
5845
|
title: "基本信息",
|
|
@@ -5861,16 +5861,16 @@ const js = /* @__PURE__ */ ue({
|
|
|
5861
5861
|
}
|
|
5862
5862
|
}
|
|
5863
5863
|
}
|
|
5864
|
-
},
|
|
5865
|
-
title:
|
|
5866
|
-
description:
|
|
5867
|
-
type:
|
|
5868
|
-
categories:
|
|
5869
|
-
},
|
|
5864
|
+
}, Ks = {
|
|
5865
|
+
title: Ys,
|
|
5866
|
+
description: Qs,
|
|
5867
|
+
type: Js,
|
|
5868
|
+
categories: Zs
|
|
5869
|
+
}, Qt = {
|
|
5870
5870
|
data: { type: Array, default: [] }
|
|
5871
|
-
},
|
|
5871
|
+
}, Jt = Be(Qt, Xs, Et, Mt, Ks), er = /* @__PURE__ */ ue({
|
|
5872
5872
|
name: "FListViewTableDesign",
|
|
5873
|
-
props:
|
|
5873
|
+
props: Qt,
|
|
5874
5874
|
emits: ["outputValue", "currentEvent", "selectionChanged"],
|
|
5875
5875
|
setup(e, t) {
|
|
5876
5876
|
const n = [{
|
|
@@ -5922,7 +5922,7 @@ const js = /* @__PURE__ */ ue({
|
|
|
5922
5922
|
desc: "浙江杭州",
|
|
5923
5923
|
amount: 84.13,
|
|
5924
5924
|
avatar: "./assets/avatar7.png"
|
|
5925
|
-
}], o = D(() => e.data.length > 0 ? e.data : n), a = f(), l =
|
|
5925
|
+
}], o = D(() => e.data.length > 0 ? e.data : n), a = f(), l = St("design-item-context"), s = Nt(a, l);
|
|
5926
5926
|
return ye(() => {
|
|
5927
5927
|
a.value.componentInstance = s;
|
|
5928
5928
|
}), t.expose(s.value), () => {
|
|
@@ -5967,14 +5967,14 @@ Ie.install = (e) => {
|
|
|
5967
5967
|
e.component(Ie.name, Ie), e.component(st.name, st);
|
|
5968
5968
|
};
|
|
5969
5969
|
Ie.register = (e, t, n) => {
|
|
5970
|
-
e["list-view"] = Ie, t["list-view"] =
|
|
5970
|
+
e["list-view"] = Ie, t["list-view"] = It, e["list-view-table"] = st, t["list-view-table"] = Jt;
|
|
5971
5971
|
};
|
|
5972
5972
|
Ie.registerDesigner = (e, t, n) => {
|
|
5973
|
-
e["list-view"] =
|
|
5973
|
+
e["list-view"] = As, t["list-view"] = It, e["list-view-table"] = er, t["list-view-table"] = Jt;
|
|
5974
5974
|
};
|
|
5975
5975
|
export {
|
|
5976
5976
|
Ie as FListView,
|
|
5977
5977
|
Ie as default,
|
|
5978
5978
|
ze as listViewProps,
|
|
5979
|
-
|
|
5979
|
+
It as propsResolver
|
|
5980
5980
|
};
|