@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 { defineComponent as ae, createVNode as r, computed as P, createTextVNode as re, ref as c, inject as
|
|
5
|
-
import { isPlainObject as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
1
|
+
var yn = Object.defineProperty;
|
|
2
|
+
var bn = (e, t, n) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var z = (e, t, n) => bn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { defineComponent as ae, createVNode as r, computed as P, createTextVNode as re, ref as c, inject as ke, provide as Cn, watch as Q, onMounted as me, onBeforeUnmount as It, mergeProps as Te, isVNode as wn, Fragment as ye, onUnmounted as pt, Teleport as _n, Transition as Mt, shallowRef as xn, createApp as Bt, nextTick as st, render as tt, h as Sn, cloneVNode as kn, withModifiers as Tn, withDirectives as Vt, vModelText as Fn, resolveComponent as En, reactive as ve, resolveDirective as In } from "vue";
|
|
5
|
+
import { isPlainObject as wt, cloneDeep as _e } from "lodash-es";
|
|
6
|
+
import Mn from "../accordion/index.esm.js";
|
|
7
|
+
import Bn from "../avatar/index.esm.js";
|
|
8
|
+
import Vn from "../button-edit/index.esm.js";
|
|
9
|
+
import On from "../button-group/index.esm.js";
|
|
10
|
+
import Dn from "../calendar/index.esm.js";
|
|
11
|
+
import Nn from "../capsule/index.esm.js";
|
|
12
|
+
import Rn, { FCheckBox as mt } from "../checkbox/index.esm.js";
|
|
13
|
+
import $n from "../color-picker/index.esm.js";
|
|
14
14
|
import rt from "../combo-list/index.esm.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
15
|
+
import Pn from "../content-container/index.esm.js";
|
|
16
|
+
import Ln from "../data-grid/index.esm.js";
|
|
17
|
+
import jn from "../date-picker/index.esm.js";
|
|
18
|
+
import An from "../dropdown/index.esm.js";
|
|
19
|
+
import Hn, { FDynamicFormGroup as zn, FDynamicFormInput as Gn } from "../dynamic-form/index.esm.js";
|
|
20
20
|
import "../external-container/index.esm.js";
|
|
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 { getCustomClass as nt, useTextBox as
|
|
63
|
-
import { useIdentify as
|
|
21
|
+
import qn from "../events-editor/index.esm.js";
|
|
22
|
+
import Wn from "../filter-bar/index.esm.js";
|
|
23
|
+
import Un from "../image-cropper/index.esm.js";
|
|
24
|
+
import Xn from "../input-group/index.esm.js";
|
|
25
|
+
import Yn from "../layout/index.esm.js";
|
|
26
|
+
import Kn from "../list-nav/index.esm.js";
|
|
27
|
+
import Jn from "../list-view/index.esm.js";
|
|
28
|
+
import Qn from "../lookup/index.esm.js";
|
|
29
|
+
import Zn from "../nav/index.esm.js";
|
|
30
|
+
import eo, { useNumber as to, useFormat as no, useSpinner as oo, useTextBox as ao } from "../number-spinner/index.esm.js";
|
|
31
|
+
import lo from "../number-range/index.esm.js";
|
|
32
|
+
import so from "../order/index.esm.js";
|
|
33
|
+
import ro from "../page-header/index.esm.js";
|
|
34
|
+
import io from "../page-footer/index.esm.js";
|
|
35
|
+
import uo from "../pagination/index.esm.js";
|
|
36
|
+
import co from "../progress/index.esm.js";
|
|
37
|
+
import fo from "../query-solution/index.esm.js";
|
|
38
|
+
import po from "../radio-group/index.esm.js";
|
|
39
|
+
import mo from "../rate/index.esm.js";
|
|
40
|
+
import vo from "../response-toolbar/index.esm.js";
|
|
41
|
+
import ho from "../response-layout/index.esm.js";
|
|
42
|
+
import go from "../response-layout-editor/index.esm.js";
|
|
43
|
+
import yo from "../search-box/index.esm.js";
|
|
44
|
+
import bo from "../section/index.esm.js";
|
|
45
|
+
import Co from "../smoke-detector/index.esm.js";
|
|
46
|
+
import wo from "../splitter/index.esm.js";
|
|
47
|
+
import _o from "../step/index.esm.js";
|
|
48
|
+
import xo from "../switch/index.esm.js";
|
|
49
|
+
import So from "../tabs/index.esm.js";
|
|
50
|
+
import ko from "../tags/index.esm.js";
|
|
51
|
+
import To from "../text/index.esm.js";
|
|
52
|
+
import Fo from "../time-picker/index.esm.js";
|
|
53
|
+
import Eo from "../transfer/index.esm.js";
|
|
54
|
+
import Io from "../tree-view/index.esm.js";
|
|
55
|
+
import Mo from "../uploader/index.esm.js";
|
|
56
|
+
import Bo from "../verify-detail/index.esm.js";
|
|
57
|
+
import Vo from "../weather/index.esm.js";
|
|
58
|
+
import Oo from "../component/index.esm.js";
|
|
59
|
+
import Do from "../video/index.esm.js";
|
|
60
|
+
import No from "../textarea/index.esm.js";
|
|
61
|
+
import Ro from "../tree-grid/index.esm.js";
|
|
62
|
+
import { getCustomClass as nt, useTextBox as $o, useClear as Po, useDateFormat as Lo, useNumberFormat as jo, resolveField as $e, setFieldValue as _t } from "../common/index.esm.js";
|
|
63
|
+
import { useIdentify as Ao, useHierarchy as Ho, useGroupData as zo, usePagination as Go, useDataView as qo, useSelection as Wo, useEdit as Uo, useVisualDataBound as Xo, useVisualDataCell as Yo, useVisualDataRow as Ko, useVisualGroupRow as Jo, useVisualSummaryRow as Qo, useVisualData as Zo } from "../data-view/index.esm.js";
|
|
64
64
|
import "../modal/index.esm.js";
|
|
65
65
|
import "../condition/index.esm.js";
|
|
66
66
|
import "../designer-canvas/index.esm.js";
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import { createPropsResolver as
|
|
74
|
-
const
|
|
67
|
+
import ea from "../combo-tree/index.esm.js";
|
|
68
|
+
import ta from "../field-selector/index.esm.js";
|
|
69
|
+
import na from "../binding-selector/index.esm.js";
|
|
70
|
+
import oa from "../mapping-editor/index.esm.js";
|
|
71
|
+
import aa from "../schema-selector/index.esm.js";
|
|
72
|
+
import la from "../event-parameter/index.esm.js";
|
|
73
|
+
import { createPropsResolver as sa } from "../dynamic-resolver/index.esm.js";
|
|
74
|
+
const Ot = {}, Dt = {};
|
|
75
75
|
function vt(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((f) => f === i)) && (s[i] = t[i].type === "object" && t[i].properties ? vt(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((f) => f === i)) && (s[i] = t[i].type === "object" && t[i].properties ? vt(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 Nt(e, t = {}, n) {
|
|
84
|
+
const o = Ot[e];
|
|
85
85
|
if (o) {
|
|
86
86
|
let a = vt(o);
|
|
87
|
-
const l =
|
|
88
|
-
return a = l ? l({ getSchemaByType:
|
|
87
|
+
const l = Dt[e];
|
|
88
|
+
return a = l ? l({ getSchemaByType: Nt }, a, t, n) : a, a;
|
|
89
89
|
}
|
|
90
90
|
return null;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ra(e, t) {
|
|
93
93
|
const n = vt(t);
|
|
94
|
-
return Object.keys(n).reduce((o, a) => (o[a] &&
|
|
94
|
+
return Object.keys(n).reduce((o, a) => (o[a] && wt(o[a]) && wt(e[a] || !e[a]) ? Object.assign(o[a], e[a] || {}) : o[a] = e[a], o), n), n;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ia(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,21 +108,21 @@ function ua(e, t) {
|
|
|
108
108
|
return o;
|
|
109
109
|
}, {});
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
const o =
|
|
113
|
-
return
|
|
111
|
+
function ua(e, t, n = /* @__PURE__ */ new Map()) {
|
|
112
|
+
const o = ra(e, t);
|
|
113
|
+
return ia(o, n);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ca(e = {}) {
|
|
116
116
|
function t(u, v, d, p) {
|
|
117
117
|
if (typeof d == "number")
|
|
118
118
|
return p[u].length === d;
|
|
119
119
|
if (typeof d == "object") {
|
|
120
|
-
const
|
|
121
|
-
if (
|
|
120
|
+
const _ = Object.keys(d)[0], E = d[_];
|
|
121
|
+
if (_ === "not")
|
|
122
122
|
return Number(p[u].length) !== Number(E);
|
|
123
|
-
if (
|
|
123
|
+
if (_ === "moreThan")
|
|
124
124
|
return Number(p[u].length) >= Number(E);
|
|
125
|
-
if (
|
|
125
|
+
if (_ === "lessThan")
|
|
126
126
|
return Number(p[u].length) <= Number(E);
|
|
127
127
|
}
|
|
128
128
|
return !1;
|
|
@@ -140,14 +140,14 @@ function da(e = {}) {
|
|
|
140
140
|
return typeof v == "number" ? [{ target: d, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: d, operator: "getProperty", param: u, value: !!v }] : typeof v == "object" ? Object.keys(v).map((p) => {
|
|
141
141
|
if (p === "length")
|
|
142
142
|
return { target: d, operator: "length", param: null, value: v[p] };
|
|
143
|
-
const
|
|
144
|
-
return { target: d, operator: "getProperty", param:
|
|
143
|
+
const _ = p, E = v[p];
|
|
144
|
+
return { target: d, operator: "getProperty", param: _, value: E };
|
|
145
145
|
}) : [];
|
|
146
146
|
}
|
|
147
147
|
function l(u) {
|
|
148
148
|
return Object.keys(u).reduce((d, p) => {
|
|
149
|
-
const
|
|
150
|
-
return d.push(...
|
|
149
|
+
const _ = a(p, u[p]);
|
|
150
|
+
return d.push(..._), d;
|
|
151
151
|
}, []);
|
|
152
152
|
}
|
|
153
153
|
function s(u, v) {
|
|
@@ -158,10 +158,10 @@ function da(e = {}) {
|
|
|
158
158
|
return !1;
|
|
159
159
|
}
|
|
160
160
|
function i(u, v) {
|
|
161
|
-
return l(u).reduce((
|
|
161
|
+
return l(u).reduce((_, E) => _ && s(E, v), !0);
|
|
162
162
|
}
|
|
163
163
|
function f(u, v) {
|
|
164
|
-
const d = Object.keys(u), p = d.includes("allOf"),
|
|
164
|
+
const d = Object.keys(u), p = d.includes("allOf"), _ = d.includes("anyOf"), E = p || _, m = (E ? u[E ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((b) => i(b, v));
|
|
165
165
|
return p ? !m.includes(!1) : m.includes(!0);
|
|
166
166
|
}
|
|
167
167
|
return { parseValueSchema: f };
|
|
@@ -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
|
+
}, da = {}, fa = {};
|
|
210
|
+
ca();
|
|
211
211
|
function Ee(e, t, n = /* @__PURE__ */ new Map(), o = (s, i, f, u) => i, a = {}, l = (s) => s) {
|
|
212
|
-
return
|
|
213
|
-
const i =
|
|
212
|
+
return Ot[t.title] = t, Dt[t.title] = o, da[t.title] = a, fa[t.title] = l, (s = {}) => {
|
|
213
|
+
const i = ua(s, t, n), f = Object.keys(e).reduce((u, v) => (u[v] = e[v].default, u), {});
|
|
214
214
|
return Object.assign(f, i);
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
217
|
function Ge(e, t) {
|
|
218
218
|
return { customClass: t.class, customStyle: t.style };
|
|
219
219
|
}
|
|
220
|
-
const
|
|
220
|
+
const pa = /* @__PURE__ */ new Map([
|
|
221
221
|
["appearance", Ge]
|
|
222
222
|
]);
|
|
223
|
-
function
|
|
223
|
+
function ma(e, t, n) {
|
|
224
224
|
return t;
|
|
225
225
|
}
|
|
226
|
-
const
|
|
226
|
+
const va = "https://json-schema.org/draft/2020-12/schema", ha = "https://farris-design.gitee.io/external-container.schema.json", ga = "external-container", ya = "A Farris Visual Component", ba = "object", Ca = {
|
|
227
227
|
id: {
|
|
228
228
|
description: "The unique identifier for a external-container",
|
|
229
229
|
type: "string"
|
|
@@ -263,19 +263,19 @@ const ha = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-
|
|
|
263
263
|
description: "The unique identifier for component",
|
|
264
264
|
type: "string"
|
|
265
265
|
}
|
|
266
|
-
},
|
|
266
|
+
}, wa = [
|
|
267
267
|
"id",
|
|
268
268
|
"type",
|
|
269
269
|
"contents"
|
|
270
|
-
],
|
|
271
|
-
$schema:
|
|
272
|
-
$id:
|
|
273
|
-
title:
|
|
274
|
-
description:
|
|
275
|
-
type:
|
|
276
|
-
properties:
|
|
277
|
-
required:
|
|
278
|
-
},
|
|
270
|
+
], _a = {
|
|
271
|
+
$schema: va,
|
|
272
|
+
$id: ha,
|
|
273
|
+
title: ga,
|
|
274
|
+
description: ya,
|
|
275
|
+
type: ba,
|
|
276
|
+
properties: Ca,
|
|
277
|
+
required: wa
|
|
278
|
+
}, xa = "external-container", Sa = "A Farris Component", ka = "object", Ta = {
|
|
279
279
|
basic: {
|
|
280
280
|
description: "Basic Infomation",
|
|
281
281
|
title: "基本信息",
|
|
@@ -302,18 +302,18 @@ const ha = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
},
|
|
306
|
-
title:
|
|
307
|
-
description:
|
|
308
|
-
type:
|
|
309
|
-
categories:
|
|
305
|
+
}, Fa = {
|
|
306
|
+
title: xa,
|
|
307
|
+
description: Sa,
|
|
308
|
+
type: ka,
|
|
309
|
+
categories: Ta
|
|
310
310
|
}, ht = {
|
|
311
311
|
customClass: { type: String, default: "" },
|
|
312
312
|
componentType: { type: String, default: "" },
|
|
313
313
|
url: { type: String, default: "" },
|
|
314
314
|
schema: { type: Object },
|
|
315
315
|
useIsolateJs: { type: Boolean, default: !1 }
|
|
316
|
-
},
|
|
316
|
+
}, xt = Ee(ht, _a, pa, ma, Fa), ot = /* @__PURE__ */ ae({
|
|
317
317
|
name: "FExternalContainer",
|
|
318
318
|
props: ht,
|
|
319
319
|
emits: [],
|
|
@@ -322,7 +322,7 @@ const ha = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-
|
|
|
322
322
|
class: e.customClass
|
|
323
323
|
}, [t.slots.default && t.slots.default()]);
|
|
324
324
|
}
|
|
325
|
-
}),
|
|
325
|
+
}), Ea = {
|
|
326
326
|
id: { type: String, default: "" },
|
|
327
327
|
componentId: { type: String, default: "" },
|
|
328
328
|
type: { type: String, default: "" },
|
|
@@ -337,11 +337,11 @@ const ha = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-
|
|
|
337
337
|
*/
|
|
338
338
|
modelValue: { type: Object },
|
|
339
339
|
ignore: { type: Boolean, default: !1 }
|
|
340
|
-
},
|
|
340
|
+
}, Ia = {}, Ma = {}, Ba = {
|
|
341
341
|
id: { type: String }
|
|
342
|
-
},
|
|
342
|
+
}, Va = /* @__PURE__ */ ae({
|
|
343
343
|
name: "FDesignerPlaceholder",
|
|
344
|
-
props:
|
|
344
|
+
props: Ba,
|
|
345
345
|
emits: [],
|
|
346
346
|
setup(e) {
|
|
347
347
|
const t = P(() => ({
|
|
@@ -370,11 +370,11 @@ const ha = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-
|
|
|
370
370
|
}, [re("拖拽组件到这里")]);
|
|
371
371
|
}
|
|
372
372
|
}), at = c(0);
|
|
373
|
-
function
|
|
373
|
+
function Oa(e, t) {
|
|
374
374
|
const n = t.getBoundingClientRect(), o = e.getBoundingClientRect(), a = o.top >= n.top, l = o.top <= n.bottom;
|
|
375
375
|
return a && l;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Da(e) {
|
|
378
378
|
if (!e)
|
|
379
379
|
return;
|
|
380
380
|
let t;
|
|
@@ -385,7 +385,7 @@ function Na(e) {
|
|
|
385
385
|
return;
|
|
386
386
|
const o = t.querySelector(".component-btn-group");
|
|
387
387
|
if (o) {
|
|
388
|
-
if (!
|
|
388
|
+
if (!Oa(t, e)) {
|
|
389
389
|
o.style.display = "none";
|
|
390
390
|
return;
|
|
391
391
|
}
|
|
@@ -397,23 +397,23 @@ function Na(e) {
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
400
|
+
function Na(e) {
|
|
401
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !wn(e);
|
|
402
402
|
}
|
|
403
403
|
const it = /* @__PURE__ */ ae({
|
|
404
404
|
name: "FDesignerItem",
|
|
405
|
-
props:
|
|
405
|
+
props: Ea,
|
|
406
406
|
emits: ["selectionChange"],
|
|
407
407
|
setup(e, t) {
|
|
408
|
-
const n = c(`${e.modelValue.id}-component`), o = c(e.canMove), a = c(e.canDelete), l = c(!1), s = c(e.modelValue), i = c(e.componentId || ""), f = c(""), u = c(""), v = c(e.customClass), d = c(), p =
|
|
408
|
+
const n = c(`${e.modelValue.id}-component`), o = c(e.canMove), a = c(e.canDelete), l = c(!1), s = c(e.modelValue), i = c(e.componentId || ""), f = c(""), u = c(""), v = c(e.customClass), d = c(), p = ke("canvas-dragula"), _ = c(), E = ke("design-item-context"), O = {
|
|
409
409
|
designerItemElementRef: d,
|
|
410
|
-
componentInstance:
|
|
410
|
+
componentInstance: _,
|
|
411
411
|
schema: s.value,
|
|
412
412
|
parent: E,
|
|
413
413
|
setupContext: t
|
|
414
414
|
};
|
|
415
|
-
|
|
416
|
-
const N =
|
|
415
|
+
Cn("design-item-context", O);
|
|
416
|
+
const N = ke("useFormSchema"), m = P(() => {
|
|
417
417
|
const y = e.modelValue.appearance && e.modelValue.appearance.class || "";
|
|
418
418
|
let I = {
|
|
419
419
|
"farris-component": !0,
|
|
@@ -429,28 +429,28 @@ const it = /* @__PURE__ */ ae({
|
|
|
429
429
|
return I[`farris-component-${s.value.type}`] = !0, I = nt(I, y), I = nt(I, u.value), I = nt(I, v.value), I;
|
|
430
430
|
}), h = P(() => {
|
|
431
431
|
const y = {}, I = e.modelValue.appearance && e.modelValue.appearance.style || "";
|
|
432
|
-
return I && I.split(";").reduce(($,
|
|
433
|
-
const [D, L] =
|
|
432
|
+
return I && I.split(";").reduce(($, x) => {
|
|
433
|
+
const [D, L] = x.split(":");
|
|
434
434
|
return $[D] = L, $;
|
|
435
|
-
}, y), f.value && f.value.split(";").reduce(($,
|
|
436
|
-
const [D, L] =
|
|
435
|
+
}, y), f.value && f.value.split(";").reduce(($, x) => {
|
|
436
|
+
const [D, L] = x.split(":");
|
|
437
437
|
return D && ($[D] = L), $;
|
|
438
438
|
}, y), y;
|
|
439
439
|
});
|
|
440
440
|
function b(y, I) {
|
|
441
441
|
var D, L;
|
|
442
|
-
if (y && (y.preventDefault(), y.stopPropagation()),
|
|
443
|
-
const R =
|
|
442
|
+
if (y && (y.preventDefault(), y.stopPropagation()), _.value.triggerBelongedComponentToDeleteWhenDeleted) {
|
|
443
|
+
const R = _.value.getBelongedComponentInstance(_);
|
|
444
444
|
if (R && R.parent) {
|
|
445
445
|
const A = c(R == null ? void 0 : R.parent), K = A.value.contents.findIndex((ee) => ee.id === R.schema.id);
|
|
446
446
|
(L = (D = A.value) == null ? void 0 : D.contents) == null || L.splice(K, 1), at.value++;
|
|
447
447
|
}
|
|
448
448
|
return;
|
|
449
449
|
}
|
|
450
|
-
|
|
451
|
-
let $ = E,
|
|
452
|
-
if (I.type === "component" && ($ = E == null ? void 0 : E.parent,
|
|
453
|
-
const R = $.schema.contents.findIndex(
|
|
450
|
+
_.value.onRemoveComponent();
|
|
451
|
+
let $ = E, x = (R) => R.id === I.id;
|
|
452
|
+
if (I.type === "component" && ($ = E == null ? void 0 : E.parent, x = (R) => R.component === I.id), $ && $.schema.contents) {
|
|
453
|
+
const R = $.schema.contents.findIndex(x);
|
|
454
454
|
$.schema.contents.splice(R, 1), at.value++, t.emit("selectionChange");
|
|
455
455
|
}
|
|
456
456
|
}
|
|
@@ -494,17 +494,17 @@ const it = /* @__PURE__ */ ae({
|
|
|
494
494
|
"data-noattach": "true"
|
|
495
495
|
}, [r("div", null, [C(y), w(), V()])]);
|
|
496
496
|
}
|
|
497
|
-
function B(y, I, $,
|
|
498
|
-
t.emit("selectionChange", y, I, $,
|
|
497
|
+
function B(y, I, $, x) {
|
|
498
|
+
t.emit("selectionChange", y, I, $, x);
|
|
499
499
|
}
|
|
500
500
|
function g(y) {
|
|
501
501
|
let I;
|
|
502
|
-
const $ = y.type,
|
|
502
|
+
const $ = y.type, x = Ia[$], D = Ma[$], L = D ? D(y) : {};
|
|
503
503
|
L.customClass = e.ignore ? L.customClass : "", L.componentId = i.value, L.id = y.id;
|
|
504
504
|
const R = y.contents && y.contents.length === 0;
|
|
505
|
-
return y.contents && !!y.contents.length &&
|
|
506
|
-
ref:
|
|
507
|
-
}, L),
|
|
505
|
+
return y.contents && !!y.contents.length && x ? r(x, Te({
|
|
506
|
+
ref: _
|
|
507
|
+
}, L), Na(I = y.contents.map((K) => r(it, {
|
|
508
508
|
key: K.id,
|
|
509
509
|
modelValue: K,
|
|
510
510
|
"onUpdate:modelValue": (ee) => K = ee,
|
|
@@ -512,22 +512,22 @@ const it = /* @__PURE__ */ ae({
|
|
|
512
512
|
onSelectionChange: B
|
|
513
513
|
}, null))) ? I : {
|
|
514
514
|
default: () => [I]
|
|
515
|
-
}) :
|
|
516
|
-
ref:
|
|
515
|
+
}) : x ? R ? r(x, Te({
|
|
516
|
+
ref: _
|
|
517
517
|
}, L), {
|
|
518
|
-
default: () => [r(
|
|
519
|
-
}) : r(
|
|
520
|
-
ref:
|
|
518
|
+
default: () => [r(Va, null, null)]
|
|
519
|
+
}) : r(x, Te({
|
|
520
|
+
ref: _
|
|
521
521
|
}, L), null) : r("div", null, null);
|
|
522
522
|
}
|
|
523
523
|
function M(y) {
|
|
524
524
|
if (y.type === "component-ref") {
|
|
525
|
-
let $ = N == null ? void 0 : N.getFormSchema().module.components.find((
|
|
525
|
+
let $ = N == null ? void 0 : N.getFormSchema().module.components.find((x) => x.id === y.component);
|
|
526
526
|
if ($)
|
|
527
527
|
return r(it, {
|
|
528
528
|
key: $.id,
|
|
529
529
|
modelValue: $,
|
|
530
|
-
"onUpdate:modelValue": (
|
|
530
|
+
"onUpdate:modelValue": (x) => $ = x,
|
|
531
531
|
componentId: $.id,
|
|
532
532
|
onSelectionChange: B
|
|
533
533
|
}, null);
|
|
@@ -538,28 +538,28 @@ const it = /* @__PURE__ */ ae({
|
|
|
538
538
|
});
|
|
539
539
|
function k(y) {
|
|
540
540
|
const I = y == null ? void 0 : y.target;
|
|
541
|
-
|
|
541
|
+
Da(I);
|
|
542
542
|
}
|
|
543
543
|
function F() {
|
|
544
544
|
var y, I;
|
|
545
545
|
(I = (y = s.value) == null ? void 0 : y.contents) != null && I.length && d.value && d.value.addEventListener("scroll", k);
|
|
546
546
|
}
|
|
547
547
|
me(() => {
|
|
548
|
-
if (d.value &&
|
|
549
|
-
const y = d.value.querySelector(`[data-dragref='${
|
|
550
|
-
p && y && p.attachComponents(y, s.value), l.value =
|
|
548
|
+
if (d.value && _.value && _.value.schema) {
|
|
549
|
+
const y = d.value.querySelector(`[data-dragref='${_.value.schema.id}-container']`);
|
|
550
|
+
p && y && p.attachComponents(y, s.value), l.value = _.value.canNested !== void 0 ? _.value.canNested : l.value, a.value = _.value.canDelete !== void 0 ? _.value.canDelete : a.value, o.value = _.value.canMove !== void 0 ? _.value.canMove : o.value, f.value = _.value.styles || "", u.value = _.value.designerClass || "", d.value && (d.value.componentInstance = _, d.value.designItemContext = O), _.value.belongedComponentId = i.value;
|
|
551
551
|
}
|
|
552
552
|
F(), at.value++;
|
|
553
|
-
}),
|
|
553
|
+
}), It(() => {
|
|
554
554
|
d.value && d.value.removeEventListener("scroll", k);
|
|
555
555
|
});
|
|
556
556
|
function T(y) {
|
|
557
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
557
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((x) => x.classList.remove("dgComponentFocused")), y && (y.preventDefault(), y.stopPropagation());
|
|
558
558
|
let I = O.designerItemElementRef;
|
|
559
559
|
const $ = d.value;
|
|
560
560
|
if ($) {
|
|
561
|
-
const
|
|
562
|
-
|
|
561
|
+
const x = document.getElementsByClassName("dgComponentSelected");
|
|
562
|
+
x && x.length === 1 && x[0] === d.value || (Array.from(x).forEach((L) => L.classList.remove("dgComponentSelected")), $.classList.add("dgComponentFocused"), t.emit("selectionChange", s.value.type, s.value, i.value, _.value), _.value.getDraggableDesignItemElement && (I = _.value.getDraggableDesignItemElement(O), I && I.value && I.value.classList.add("dgComponentSelected")));
|
|
563
563
|
}
|
|
564
564
|
k({
|
|
565
565
|
target: I == null ? void 0 : I.value
|
|
@@ -604,7 +604,7 @@ function gt(e, t, n) {
|
|
|
604
604
|
function p(w) {
|
|
605
605
|
return !!n && n.canAccepts(w);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function _() {
|
|
608
608
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
609
609
|
}
|
|
610
610
|
function E() {
|
|
@@ -614,7 +614,7 @@ function gt(e, t, n) {
|
|
|
614
614
|
}
|
|
615
615
|
function N(w, V) {
|
|
616
616
|
const { componentType: S } = w;
|
|
617
|
-
let B =
|
|
617
|
+
let B = Nt(S, w, V);
|
|
618
618
|
n && n.onResolveNewComponentSchema && (B = n.onResolveNewComponentSchema(w, B));
|
|
619
619
|
const g = S.toLowerCase().replace(/-/g, "_");
|
|
620
620
|
return B && !B.id && B.type === S && (B.id = `${g}_${Math.random().toString().slice(2, 6)}`), B;
|
|
@@ -648,7 +648,7 @@ function gt(e, t, n) {
|
|
|
648
648
|
canAccepts: p,
|
|
649
649
|
getBelongedComponentInstance: v,
|
|
650
650
|
getDraggableDesignItemElement: d,
|
|
651
|
-
getDraggingDisplayText:
|
|
651
|
+
getDraggingDisplayText: _,
|
|
652
652
|
getPropConfig: h,
|
|
653
653
|
getDragScopeElement: E,
|
|
654
654
|
onAcceptMovedChildElement: O,
|
|
@@ -659,7 +659,7 @@ function gt(e, t, n) {
|
|
|
659
659
|
onRemoveComponent: b
|
|
660
660
|
}, l;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Ra(e, t) {
|
|
663
663
|
function n() {
|
|
664
664
|
return !1;
|
|
665
665
|
}
|
|
@@ -677,9 +677,9 @@ function $a(e, t) {
|
|
|
677
677
|
}
|
|
678
678
|
return { canAccepts: n, checkCanDeleteComponent: o, checkCanMoveComponent: a, hideNestedPaddingInDesginerView: l, getStyles: s };
|
|
679
679
|
}
|
|
680
|
-
const
|
|
680
|
+
const $a = "data-grid-component", Pa = "component", La = "data-grid", ja = {
|
|
681
681
|
class: "f-struct-wrapper f-utils-fill-flex-column"
|
|
682
|
-
},
|
|
682
|
+
}, Aa = [
|
|
683
683
|
{
|
|
684
684
|
id: "data-grid-section",
|
|
685
685
|
type: "section",
|
|
@@ -749,13 +749,13 @@ const Pa = "data-grid-component", La = "component", ja = "data-grid", Aa = {
|
|
|
749
749
|
}
|
|
750
750
|
]
|
|
751
751
|
}
|
|
752
|
-
],
|
|
753
|
-
id:
|
|
754
|
-
type:
|
|
755
|
-
componentType:
|
|
756
|
-
appearance:
|
|
757
|
-
contents:
|
|
758
|
-
},
|
|
752
|
+
], Ha = {
|
|
753
|
+
id: $a,
|
|
754
|
+
type: Pa,
|
|
755
|
+
componentType: La,
|
|
756
|
+
appearance: ja,
|
|
757
|
+
contents: Aa
|
|
758
|
+
}, za = {
|
|
759
759
|
/**
|
|
760
760
|
* 自定义类
|
|
761
761
|
*/
|
|
@@ -880,12 +880,12 @@ class oe {
|
|
|
880
880
|
return this.x = t.x, this.y = t.y, this;
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
class
|
|
883
|
+
class Se {
|
|
884
884
|
constructor(t, n) {
|
|
885
885
|
this.width = t, this.height = n;
|
|
886
886
|
}
|
|
887
887
|
static getCurrent(t) {
|
|
888
|
-
const n = new
|
|
888
|
+
const n = new Se(0, 0);
|
|
889
889
|
if (window) {
|
|
890
890
|
const o = window.getComputedStyle(t);
|
|
891
891
|
return o && (n.width = parseInt(o.getPropertyValue("width"), 10), n.height = parseInt(o.getPropertyValue("height"), 10)), n;
|
|
@@ -893,27 +893,27 @@ class xe {
|
|
|
893
893
|
return null;
|
|
894
894
|
}
|
|
895
895
|
static copy(t) {
|
|
896
|
-
return new
|
|
896
|
+
return new Se(0, 0).set(t);
|
|
897
897
|
}
|
|
898
898
|
set(t) {
|
|
899
899
|
return this.width = t.width, this.height = t.height, this;
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
|
-
function
|
|
903
|
-
const n = c(), o = c(), a = c(), l = c(), s = c(), i = c(), f = c(), u = c(), v = c(), d = c(), p = c(),
|
|
902
|
+
function Ga(e, t) {
|
|
903
|
+
const n = c(), o = c(), a = c(), l = c(), s = c(), i = c(), f = c(), u = c(), v = c(), d = c(), p = c(), _ = c(), E = c(e.draggable), O = c(!1);
|
|
904
904
|
function N() {
|
|
905
|
-
const
|
|
905
|
+
const x = o.value || document.body, D = window.getComputedStyle(x);
|
|
906
906
|
if (!D || !n.value)
|
|
907
907
|
return;
|
|
908
908
|
const L = oe.getTransformInfo(n.value), R = {};
|
|
909
909
|
f.value && (R.deltaL = n.value.offsetLeft - f.value.x, R.deltaT = n.value.offsetTop - f.value.y);
|
|
910
910
|
const A = D.getPropertyValue("position");
|
|
911
|
-
R.width =
|
|
911
|
+
R.width = x.clientWidth, R.height = x.clientHeight, R.pr = parseInt(D.getPropertyValue("padding-right"), 10), R.pb = parseInt(D.getPropertyValue("padding-bottom"), 10), R.position = D.getPropertyValue("position"), A === "static" && (x.style.position = "relative"), R.translateX = L.x, R.translateY = L.y, d.value = R;
|
|
912
912
|
}
|
|
913
|
-
function m(
|
|
913
|
+
function m(x) {
|
|
914
914
|
if (n.value) {
|
|
915
|
-
l.value =
|
|
916
|
-
const D =
|
|
915
|
+
l.value = Se.getCurrent(n.value), s.value = oe.getCurrent(n.value), i.value = l.value ? Se.copy(l.value) : null, f.value = s.value ? oe.copy(s.value) : null, N();
|
|
916
|
+
const D = x.target.getAttribute("type") || "";
|
|
917
917
|
u.value = {
|
|
918
918
|
n: !!D.match(/n/),
|
|
919
919
|
s: !!D.match(/s/),
|
|
@@ -923,49 +923,49 @@ function qa(e, t) {
|
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
925
|
function h() {
|
|
926
|
-
var
|
|
926
|
+
var x, D, L, R;
|
|
927
927
|
if (n.value) {
|
|
928
928
|
const A = n.value;
|
|
929
|
-
u.value && ((u.value.n || u.value.s) && ((
|
|
929
|
+
u.value && ((u.value.n || u.value.s) && ((x = i.value) != null && x.height) && (A.style.height = i.value.height + "px"), (u.value.w || u.value.e) && ((D = i.value) != null && D.width) && (A.style.width = i.value.width + "px"), f.value && ((L = f.value) != null && L.x && (A.style.left = f.value.x + "px"), (R = f.value) != null && R.y && (A.style.top = f.value.y + "px")));
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
932
|
function b() {
|
|
933
|
-
const
|
|
934
|
-
i.value && f.value && u.value && l.value && (i.value.height <
|
|
933
|
+
const x = e.minHeight ? e.minHeight : 1, D = e.minWidth ? e.minWidth : 1;
|
|
934
|
+
i.value && f.value && u.value && l.value && (i.value.height < x && (i.value.height = x, u.value.n && s.value && (f.value.y = s.value.y + (l.value.height - x))), i.value.width < D && (i.value.width = D, u.value.w && s.value && (f.value.x = s.value.x + (l.value.width - D))), e.maxHeight && i.value.height > e.maxHeight && (i.value.height = e.maxHeight, s.value && u.value.n && (f.value.y = s.value.y + (l.value.height - e.maxHeight))), e.maxWidth && i.value.width > e.maxWidth && (i.value.width = e.maxWidth, u.value.w && s.value && (f.value.x = s.value.x + (l.value.width - e.maxWidth))));
|
|
935
935
|
}
|
|
936
936
|
function C() {
|
|
937
937
|
if (o.value) {
|
|
938
|
-
const
|
|
938
|
+
const x = d.value;
|
|
939
939
|
if (f.value && i.value && u.value && l.value) {
|
|
940
|
-
const D =
|
|
941
|
-
u.value.n && f.value.y +
|
|
940
|
+
const D = x.width - x.pr - x.deltaL - x.translateX - f.value.x, L = x.height - x.pb - x.deltaT - x.translateY - f.value.y;
|
|
941
|
+
u.value.n && f.value.y + x.translateY < 0 && s.value && (f.value.y = -x.translateY, i.value.height = l.value.height + s.value.y + x.translateY), u.value.w && f.value.x + x.translateX < 0 && s.value && (f.value.x = -x.translateX, i.value.width = l.value.width + s.value.x + x.translateX), i.value.width > D && (i.value.width = D), i.value.height > L && (i.value.height = L);
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
|
-
function w(
|
|
945
|
+
function w(x) {
|
|
946
946
|
if (!a.value || !l.value || !s.value || !u.value)
|
|
947
947
|
return;
|
|
948
|
-
|
|
949
|
-
const D =
|
|
948
|
+
x.subtract(a.value);
|
|
949
|
+
const D = x.x, L = x.y;
|
|
950
950
|
u.value.n ? (f.value.y = s.value.y + L, i.value.height = l.value.height - L) : u.value.s && (i.value.height = l.value.height + L), u.value.e ? i.value.width = l.value.width + D : u.value.w && (i.value.width = l.value.width - D, f.value.x = s.value.x + D), C(), b(), h();
|
|
951
951
|
}
|
|
952
|
-
function V(
|
|
952
|
+
function V(x) {
|
|
953
953
|
if (!v.value)
|
|
954
954
|
return;
|
|
955
|
-
const D = oe.fromEvent(
|
|
955
|
+
const D = oe.fromEvent(x);
|
|
956
956
|
D && w(D);
|
|
957
957
|
}
|
|
958
958
|
function S() {
|
|
959
959
|
if (n.value) {
|
|
960
960
|
const {
|
|
961
|
-
width:
|
|
961
|
+
width: x,
|
|
962
962
|
height: D,
|
|
963
963
|
x: L,
|
|
964
964
|
y: R
|
|
965
965
|
} = n.value.getBoundingClientRect(), A = oe.getTransformInfo(n.value);
|
|
966
966
|
return {
|
|
967
967
|
size: {
|
|
968
|
-
width:
|
|
968
|
+
width: x,
|
|
969
969
|
height: D
|
|
970
970
|
},
|
|
971
971
|
position: {
|
|
@@ -976,7 +976,7 @@ function qa(e, t) {
|
|
|
976
976
|
}
|
|
977
977
|
return null;
|
|
978
978
|
}
|
|
979
|
-
function B(
|
|
979
|
+
function B(x) {
|
|
980
980
|
if (n.value) {
|
|
981
981
|
const D = S();
|
|
982
982
|
p.value = D;
|
|
@@ -986,11 +986,11 @@ function qa(e, t) {
|
|
|
986
986
|
function g() {
|
|
987
987
|
document.addEventListener("mousemove", V), document.addEventListener("mouseup", B);
|
|
988
988
|
}
|
|
989
|
-
function M(
|
|
990
|
-
|
|
989
|
+
function M(x) {
|
|
990
|
+
x instanceof MouseEvent && x.button === 2 || E.value && (x.stopPropagation(), x.preventDefault(), a.value = oe.fromEvent(x), v.value = x.target, m(x), g());
|
|
991
991
|
}
|
|
992
|
-
function k(
|
|
993
|
-
return n.value =
|
|
992
|
+
function k(x) {
|
|
993
|
+
return n.value = x, r(ye, null, [r("div", {
|
|
994
994
|
class: "fv-resizable-handle fv-resizable-n",
|
|
995
995
|
type: "n",
|
|
996
996
|
onMousedown: (D) => M(D)
|
|
@@ -1024,9 +1024,9 @@ function qa(e, t) {
|
|
|
1024
1024
|
onMousedown: (D) => M(D)
|
|
1025
1025
|
}, null)]);
|
|
1026
1026
|
}
|
|
1027
|
-
function F(
|
|
1028
|
-
const D = o.value || document.body, L =
|
|
1029
|
-
|
|
1027
|
+
function F(x = !0) {
|
|
1028
|
+
const D = o.value || document.body, L = Se.getCurrent(D), R = n.value;
|
|
1029
|
+
x && (_.value = S(), _.value.transform = R.style.transform), L && R && (i.value = L, 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 = "", p.value = {
|
|
1030
1030
|
size: i.value,
|
|
1031
1031
|
position: {
|
|
1032
1032
|
x: 0,
|
|
@@ -1035,16 +1035,16 @@ function qa(e, t) {
|
|
|
1035
1035
|
}, E.value = !1, O.value = !0);
|
|
1036
1036
|
}
|
|
1037
1037
|
function T() {
|
|
1038
|
-
var
|
|
1039
|
-
if (
|
|
1038
|
+
var x, D;
|
|
1039
|
+
if (_.value) {
|
|
1040
1040
|
const L = {
|
|
1041
|
-
width:
|
|
1042
|
-
height:
|
|
1041
|
+
width: _.value.size.width || 0,
|
|
1042
|
+
height: _.value.size.height || 0
|
|
1043
1043
|
}, R = {
|
|
1044
1044
|
x: (window.innerWidth - L.width) / 2,
|
|
1045
1045
|
y: (window.innerHeight - L.height) / 2
|
|
1046
1046
|
};
|
|
1047
|
-
(
|
|
1047
|
+
(x = i.value) == null || x.set(L), (D = f.value) == null || D.set(R);
|
|
1048
1048
|
const A = n.value;
|
|
1049
1049
|
A.style.height = L.height + "px", A.style.width = L.width + "px", A.style.left = `${R.x}px`, A.style.top = `${R.y}px`, A.style.transform = "", p.value = {
|
|
1050
1050
|
size: L,
|
|
@@ -1054,22 +1054,22 @@ function qa(e, t) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
function y() {
|
|
1056
1056
|
if (n.value) {
|
|
1057
|
-
const
|
|
1058
|
-
if (
|
|
1057
|
+
const x = Se.getCurrent(n.value);
|
|
1058
|
+
if (x) {
|
|
1059
1059
|
const {
|
|
1060
1060
|
width: D,
|
|
1061
1061
|
height: L
|
|
1062
|
-
} =
|
|
1062
|
+
} = x;
|
|
1063
1063
|
n.value.style.left = `${(window.innerWidth - D) / 2}px`, n.value.style.top = `${(window.innerHeight - L) / 2}px`, n.value.style.transform = "";
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
function I() {
|
|
1068
|
-
const
|
|
1068
|
+
const x = () => {
|
|
1069
1069
|
O.value ? F(!1) : y();
|
|
1070
1070
|
};
|
|
1071
|
-
return window.addEventListener("resize",
|
|
1072
|
-
window.removeEventListener("resize",
|
|
1071
|
+
return window.addEventListener("resize", x), () => {
|
|
1072
|
+
window.removeEventListener("resize", x);
|
|
1073
1073
|
};
|
|
1074
1074
|
}
|
|
1075
1075
|
const $ = I();
|
|
@@ -1084,18 +1084,18 @@ function qa(e, t) {
|
|
|
1084
1084
|
unWindowResizeHandle: $
|
|
1085
1085
|
};
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function qa(e, t, n) {
|
|
1088
1088
|
const o = c(), a = c(e.draggable), l = c(e.lockAxis), s = c(), i = c(), f = c(!1), u = c(new oe(0, 0)), v = c(new oe(0, 0)), d = c(new oe(0, 0)), p = c(new oe(0, 0));
|
|
1089
1089
|
Q(() => n.value, (S) => {
|
|
1090
1090
|
s.value.style.cursor = S ? "move" : "default";
|
|
1091
1091
|
});
|
|
1092
|
-
function
|
|
1092
|
+
function _(S, B) {
|
|
1093
1093
|
if (B.tagName === "BUTTON")
|
|
1094
1094
|
return !1;
|
|
1095
1095
|
if (B === S)
|
|
1096
1096
|
return !0;
|
|
1097
1097
|
for (const g in B.children)
|
|
1098
|
-
if (Object.prototype.hasOwnProperty.call(B.children, g) &&
|
|
1098
|
+
if (Object.prototype.hasOwnProperty.call(B.children, g) && _(S, B.children[g]))
|
|
1099
1099
|
return !0;
|
|
1100
1100
|
return !1;
|
|
1101
1101
|
}
|
|
@@ -1142,7 +1142,7 @@ function Wa(e, t, n) {
|
|
|
1142
1142
|
if (!n.value || S instanceof MouseEvent && S.button === 2)
|
|
1143
1143
|
return;
|
|
1144
1144
|
const B = S.target || S.srcElement;
|
|
1145
|
-
s.value !== void 0 && B && !
|
|
1145
|
+
s.value !== void 0 && B && !_(B, s.value) || a.value !== !1 && (document.body.click(), S.stopPropagation(), S.preventDefault(), u.value = oe.fromEvent(S, o.value), C(), b());
|
|
1146
1146
|
}
|
|
1147
1147
|
function V(S, B, g) {
|
|
1148
1148
|
if (a.value && B) {
|
|
@@ -1164,7 +1164,7 @@ function Wa(e, t, n) {
|
|
|
1164
1164
|
resetTranslate: C
|
|
1165
1165
|
};
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function Rt(e, t) {
|
|
1168
1168
|
if (e) {
|
|
1169
1169
|
const n = (o) => {
|
|
1170
1170
|
o.key.toLowerCase() === e.toLowerCase() && t({ event: o, key: e });
|
|
@@ -1174,30 +1174,30 @@ function $t(e, t) {
|
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function Wa(e, t) {
|
|
1178
1178
|
const n = c(e.enableEsc);
|
|
1179
1179
|
let o = null;
|
|
1180
|
-
return n.value ? (o =
|
|
1180
|
+
return n.value ? (o = Rt("Escape", (a) => {
|
|
1181
1181
|
t.emit("esc", { event: a.event, type: "esc" });
|
|
1182
1182
|
}), {
|
|
1183
1183
|
remove: o
|
|
1184
1184
|
}) : null;
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Ua(e, t) {
|
|
1187
1187
|
const n = c(e.enableEnter);
|
|
1188
1188
|
let o = null;
|
|
1189
|
-
return n.value ? (o =
|
|
1189
|
+
return n.value ? (o = Rt("Enter", (a) => {
|
|
1190
1190
|
t.emit("enter", { event: a.event, type: "enter" });
|
|
1191
1191
|
}), {
|
|
1192
1192
|
remove: o
|
|
1193
1193
|
}) : null;
|
|
1194
1194
|
}
|
|
1195
|
-
const
|
|
1195
|
+
const $t = /* @__PURE__ */ ae({
|
|
1196
1196
|
name: "FModal",
|
|
1197
|
-
props:
|
|
1197
|
+
props: za,
|
|
1198
1198
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
|
|
1199
1199
|
setup(e, t) {
|
|
1200
|
-
const n = c(e.width || 300), o = c(e.height || 200), a = c(e.modelValue), l = c(""), s = c(e.class), i = c(e.fitContent), f = c(e.showHeader), u = c(""), v = c(e.showCloseButton), d = c(e.showMaxButton), p = c(!1),
|
|
1200
|
+
const n = c(e.width || 300), o = c(e.height || 200), a = c(e.modelValue), l = c(""), s = c(e.class), i = c(e.fitContent), f = c(e.showHeader), u = c(""), v = c(e.showCloseButton), d = c(e.showMaxButton), p = c(!1), _ = c(""), E = c(""), O = c(""), N = c(e.showButtons), m = c(e.title), h = c(e.reiszeable), b = c(e.containment || null), C = c();
|
|
1201
1201
|
function w(H, Z) {
|
|
1202
1202
|
a.value = !1, t.emit("update:modelValue", !1), Z != null && t.emit(Z ? "accept" : "cancel"), t.emit("closed", H);
|
|
1203
1203
|
}
|
|
@@ -1220,12 +1220,12 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
1220
1220
|
maximize: y,
|
|
1221
1221
|
restore: I,
|
|
1222
1222
|
boundingElement: $,
|
|
1223
|
-
resizedEventParam:
|
|
1223
|
+
resizedEventParam: x,
|
|
1224
1224
|
allowDrag: D,
|
|
1225
1225
|
unWindowResizeHandle: L
|
|
1226
|
-
} =
|
|
1226
|
+
} = Ga(e), {
|
|
1227
1227
|
registerDraggle: R
|
|
1228
|
-
} =
|
|
1228
|
+
} = qa(e, t, D);
|
|
1229
1229
|
Q(() => e.title, (H, Z) => {
|
|
1230
1230
|
H !== Z && (m.value = H);
|
|
1231
1231
|
}), Q(() => e.modelValue, (H, Z) => {
|
|
@@ -1234,7 +1234,7 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
1234
1234
|
H !== Z && (f.value = H);
|
|
1235
1235
|
}), Q(() => e.showButtons, (H, Z) => {
|
|
1236
1236
|
H !== Z && (N.value = H);
|
|
1237
|
-
}), Q(() =>
|
|
1237
|
+
}), Q(() => x.value, (H, Z) => {
|
|
1238
1238
|
const le = H || {}, Be = Z || {};
|
|
1239
1239
|
JSON.stringify(le) !== JSON.stringify(Be) && t.emit("resize", {
|
|
1240
1240
|
newSize: H,
|
|
@@ -1252,13 +1252,13 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
1252
1252
|
fade: !0
|
|
1253
1253
|
};
|
|
1254
1254
|
return H["f-modal-fitContent"] = !!i.value, H.show = !!K.value, H;
|
|
1255
|
-
}),
|
|
1255
|
+
}), ue = P(() => {
|
|
1256
1256
|
var le;
|
|
1257
1257
|
const H = {
|
|
1258
1258
|
"modal-dialog": !0
|
|
1259
1259
|
}, Z = (le = s.value) == null ? void 0 : le.split(" ");
|
|
1260
1260
|
return Z == null || Z.reduce((Be, Ze) => (Be[Ze] = !0, Be), H), H;
|
|
1261
|
-
}),
|
|
1261
|
+
}), xe = P(() => ({
|
|
1262
1262
|
position: "absolute",
|
|
1263
1263
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
1264
1264
|
left: `${(window.innerWidth - n.value) / 2}px`,
|
|
@@ -1278,7 +1278,7 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
1278
1278
|
modalrevert: F.value
|
|
1279
1279
|
})), Me = P(() => ({
|
|
1280
1280
|
"modal-body": !0,
|
|
1281
|
-
"f-utils-flex-column":
|
|
1281
|
+
"f-utils-flex-column": _.value === "iframe"
|
|
1282
1282
|
}));
|
|
1283
1283
|
function de() {
|
|
1284
1284
|
return {};
|
|
@@ -1304,7 +1304,7 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
1304
1304
|
}
|
|
1305
1305
|
let De = null, Ne = null;
|
|
1306
1306
|
me(() => {
|
|
1307
|
-
k.value && !b.value && (b.value = k.value.parentElement, $.value = b.value, R(M.value, k.value, $.value)), K.value && document.body.classList.add("modal-open"), De =
|
|
1307
|
+
k.value && !b.value && (b.value = k.value.parentElement, $.value = b.value, R(M.value, k.value, $.value)), K.value && document.body.classList.add("modal-open"), De = Wa(e, t), Ne = Ua(e, t);
|
|
1308
1308
|
}), pt(() => {
|
|
1309
1309
|
A(), L && L(), De && De.remove(), Ne && Ne.remove();
|
|
1310
1310
|
}), t.expose({
|
|
@@ -1366,10 +1366,10 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
1366
1366
|
function Qe(H) {
|
|
1367
1367
|
H.stopPropagation();
|
|
1368
1368
|
}
|
|
1369
|
-
return () => r(
|
|
1369
|
+
return () => r(_n, {
|
|
1370
1370
|
to: "body"
|
|
1371
1371
|
}, {
|
|
1372
|
-
default: () => [K.value && r(
|
|
1372
|
+
default: () => [K.value && r(Mt, {
|
|
1373
1373
|
name: "fade",
|
|
1374
1374
|
appear: !0
|
|
1375
1375
|
}, {
|
|
@@ -1382,14 +1382,14 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
1382
1382
|
onClick: Qe
|
|
1383
1383
|
}, [r("div", {
|
|
1384
1384
|
id: l.value,
|
|
1385
|
-
class:
|
|
1386
|
-
style:
|
|
1385
|
+
class: ue.value,
|
|
1386
|
+
style: xe.value,
|
|
1387
1387
|
ref: k
|
|
1388
1388
|
}, [r("div", {
|
|
1389
1389
|
class: Ie.value
|
|
1390
1390
|
}, [f.value && Je(), r("div", {
|
|
1391
1391
|
class: Me.value
|
|
1392
|
-
}, [(Z = (H = t.slots).default) == null ? void 0 : Z.call(H),
|
|
1392
|
+
}, [(Z = (H = t.slots).default) == null ? void 0 : Z.call(H), _.value === "iframe" && r("iframe", {
|
|
1393
1393
|
title: l.value,
|
|
1394
1394
|
class: "f-utils-fill",
|
|
1395
1395
|
width: "100%",
|
|
@@ -1401,31 +1401,31 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
1401
1401
|
});
|
|
1402
1402
|
}
|
|
1403
1403
|
});
|
|
1404
|
-
function
|
|
1404
|
+
function Pt(e) {
|
|
1405
1405
|
if (e.content && e.content.render)
|
|
1406
1406
|
return e.content.render;
|
|
1407
1407
|
if (e.render && typeof e.render == "function")
|
|
1408
1408
|
return e.render;
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function Xa(e) {
|
|
1411
1411
|
const t = document.createElement("div");
|
|
1412
1412
|
t.style.display = "contents";
|
|
1413
|
-
const n =
|
|
1413
|
+
const n = Bt({
|
|
1414
1414
|
setup(o, a) {
|
|
1415
1415
|
pt(() => {
|
|
1416
1416
|
document.body.removeChild(t);
|
|
1417
1417
|
});
|
|
1418
1418
|
const l = c(), s = c(e.class || ""), i = c(!!e.showButtons), f = c(!!e.showHeader), u = c(e.showCloseButton == null ? !0 : e.showCloseButton), v = c(!0), d = c(e.title || ""), p = e.acceptCallback || (() => {
|
|
1419
|
-
}),
|
|
1419
|
+
}), _ = e.rejectCallback || (() => {
|
|
1420
1420
|
}), E = e.closedCallback || ((h) => {
|
|
1421
1421
|
}), O = e.resizeHandle || ((h) => {
|
|
1422
|
-
}), N =
|
|
1422
|
+
}), N = Pt(e), m = (h) => {
|
|
1423
1423
|
v.value = !1, n.unmount(), E(h);
|
|
1424
1424
|
};
|
|
1425
1425
|
return me(() => {
|
|
1426
1426
|
}), a.expose({
|
|
1427
1427
|
modalRef: l
|
|
1428
|
-
}), () => r(
|
|
1428
|
+
}), () => r($t, {
|
|
1429
1429
|
ref: l,
|
|
1430
1430
|
class: s.value,
|
|
1431
1431
|
modelValue: v.value,
|
|
@@ -1439,7 +1439,7 @@ function Ya(e) {
|
|
|
1439
1439
|
"show-close-button": u.value,
|
|
1440
1440
|
"show-max-button": !1,
|
|
1441
1441
|
onAccept: p,
|
|
1442
|
-
onCancel:
|
|
1442
|
+
onCancel: _,
|
|
1443
1443
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
1444
1444
|
onClosed: m,
|
|
1445
1445
|
onResize: O
|
|
@@ -1450,7 +1450,7 @@ function Ya(e) {
|
|
|
1450
1450
|
});
|
|
1451
1451
|
return document.body.appendChild(t), n.mount(t), n;
|
|
1452
1452
|
}
|
|
1453
|
-
class
|
|
1453
|
+
class Lt {
|
|
1454
1454
|
constructor(t) {
|
|
1455
1455
|
z(this, "appContext", null);
|
|
1456
1456
|
z(this, "modalRef", c());
|
|
@@ -1469,12 +1469,12 @@ class jt {
|
|
|
1469
1469
|
showButtons: !0,
|
|
1470
1470
|
showHeader: !0
|
|
1471
1471
|
}, t);
|
|
1472
|
-
return
|
|
1472
|
+
return Xa(n);
|
|
1473
1473
|
}
|
|
1474
1474
|
open(t) {
|
|
1475
1475
|
const n = document.createDocumentFragment();
|
|
1476
1476
|
t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
|
|
1477
|
-
const o =
|
|
1477
|
+
const o = xn(Object.assign({
|
|
1478
1478
|
title: "",
|
|
1479
1479
|
showButtons: !0,
|
|
1480
1480
|
showHeader: !0
|
|
@@ -1484,7 +1484,7 @@ class jt {
|
|
|
1484
1484
|
}), f = o.value.resizeHandle || ((m) => {
|
|
1485
1485
|
});
|
|
1486
1486
|
let u;
|
|
1487
|
-
const v =
|
|
1487
|
+
const v = Pt(o.value), d = (m) => {
|
|
1488
1488
|
var b;
|
|
1489
1489
|
a.value = !1;
|
|
1490
1490
|
const h = (b = m == null ? void 0 : m.target) == null ? void 0 : b.classList.contains("modal_close");
|
|
@@ -1497,10 +1497,10 @@ class jt {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
this.isUseEscCloseModal.value = !1;
|
|
1499
1499
|
});
|
|
1500
|
-
},
|
|
1500
|
+
}, _ = (m) => {
|
|
1501
1501
|
var h;
|
|
1502
1502
|
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((h = this.activeModalInstance.value) == null || h.close(m == null ? void 0 : m.event));
|
|
1503
|
-
}, E = () => r(
|
|
1503
|
+
}, E = () => r($t, Te({
|
|
1504
1504
|
ref: this.modalRef,
|
|
1505
1505
|
modelValue: a.value,
|
|
1506
1506
|
"onUpdate:modelValue": (m) => a.value = m
|
|
@@ -1509,12 +1509,12 @@ class jt {
|
|
|
1509
1509
|
onCancel: s,
|
|
1510
1510
|
onClosed: p,
|
|
1511
1511
|
onResize: f,
|
|
1512
|
-
onEsc:
|
|
1512
|
+
onEsc: _
|
|
1513
1513
|
}), {
|
|
1514
1514
|
default: () => [v && v(this.app)]
|
|
1515
1515
|
});
|
|
1516
1516
|
return u = ((m) => {
|
|
1517
|
-
const h =
|
|
1517
|
+
const h = Sn(E, m);
|
|
1518
1518
|
return h.appContext = this.appContext, tt(h, n), h;
|
|
1519
1519
|
})({
|
|
1520
1520
|
...o.value
|
|
@@ -1524,7 +1524,7 @@ class jt {
|
|
|
1524
1524
|
o.value = {
|
|
1525
1525
|
...o.value,
|
|
1526
1526
|
...m
|
|
1527
|
-
}, u && tt(
|
|
1527
|
+
}, u && tt(kn(u, {
|
|
1528
1528
|
...o
|
|
1529
1529
|
}), n);
|
|
1530
1530
|
},
|
|
@@ -1533,13 +1533,13 @@ class jt {
|
|
|
1533
1533
|
};
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1536
|
+
const jt = /* @__PURE__ */ new Map([
|
|
1537
1537
|
["appearance", Ge]
|
|
1538
1538
|
]);
|
|
1539
|
-
function
|
|
1539
|
+
function At(e, t, n) {
|
|
1540
1540
|
return t;
|
|
1541
1541
|
}
|
|
1542
|
-
const
|
|
1542
|
+
const Ya = "https://json-schema.org/draft/2020-12/schema", Ka = "https://farris-design.gitee.io/list-view.schema.json", Ja = "list-view", Qa = "A Farris Component", Za = "object", el = {
|
|
1543
1543
|
id: {
|
|
1544
1544
|
description: "The unique identifier for list-view",
|
|
1545
1545
|
type: "string"
|
|
@@ -1601,18 +1601,18 @@ const Ka = "https://json-schema.org/draft/2020-12/schema", Ja = "https://farris-
|
|
|
1601
1601
|
type: "boolean",
|
|
1602
1602
|
default: !0
|
|
1603
1603
|
}
|
|
1604
|
-
},
|
|
1604
|
+
}, tl = [
|
|
1605
1605
|
"id",
|
|
1606
1606
|
"type"
|
|
1607
|
-
],
|
|
1608
|
-
$schema:
|
|
1609
|
-
$id:
|
|
1610
|
-
title:
|
|
1611
|
-
description:
|
|
1612
|
-
type:
|
|
1613
|
-
properties:
|
|
1614
|
-
required:
|
|
1615
|
-
},
|
|
1607
|
+
], nl = {
|
|
1608
|
+
$schema: Ya,
|
|
1609
|
+
$id: Ka,
|
|
1610
|
+
title: Ja,
|
|
1611
|
+
description: Qa,
|
|
1612
|
+
type: Za,
|
|
1613
|
+
properties: el,
|
|
1614
|
+
required: tl
|
|
1615
|
+
}, ol = "list-view", al = "A Farris Component", ll = "object", sl = {
|
|
1616
1616
|
basic: {
|
|
1617
1617
|
description: "Basic Infomation",
|
|
1618
1618
|
title: "基本信息",
|
|
@@ -1634,11 +1634,11 @@ const Ka = "https://json-schema.org/draft/2020-12/schema", Ja = "https://farris-
|
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
|
-
},
|
|
1638
|
-
title:
|
|
1639
|
-
description:
|
|
1640
|
-
type:
|
|
1641
|
-
categories:
|
|
1637
|
+
}, rl = {
|
|
1638
|
+
title: ol,
|
|
1639
|
+
description: al,
|
|
1640
|
+
type: ll,
|
|
1641
|
+
categories: sl
|
|
1642
1642
|
}, qe = {
|
|
1643
1643
|
/** 列集合 */
|
|
1644
1644
|
columns: {
|
|
@@ -1680,8 +1680,8 @@ const Ka = "https://json-schema.org/draft/2020-12/schema", Ja = "https://farris-
|
|
|
1680
1680
|
disableField: { type: String, default: "disabled" },
|
|
1681
1681
|
// 搜索启用高亮
|
|
1682
1682
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
1683
|
-
},
|
|
1684
|
-
function
|
|
1683
|
+
}, Ht = Ee(qe, nl, jt, At, rl);
|
|
1684
|
+
function zt(e, t) {
|
|
1685
1685
|
function n(l) {
|
|
1686
1686
|
const s = [];
|
|
1687
1687
|
let i = l.nextNode();
|
|
@@ -1692,15 +1692,15 @@ function Gt(e, t) {
|
|
|
1692
1692
|
function o(l, s) {
|
|
1693
1693
|
const i = document.createTreeWalker(l, NodeFilter.SHOW_TEXT);
|
|
1694
1694
|
return n(i).map((d) => ({ textNode: d, text: (d.textContent || "").toLocaleLowerCase() })).map(({ textNode: d, text: p }) => {
|
|
1695
|
-
const
|
|
1695
|
+
const _ = [];
|
|
1696
1696
|
let E = 0;
|
|
1697
1697
|
for (; E < p.length; ) {
|
|
1698
1698
|
const O = p.indexOf(s, E);
|
|
1699
1699
|
if (O === -1)
|
|
1700
1700
|
break;
|
|
1701
|
-
|
|
1701
|
+
_.push(O), E = O + s.length;
|
|
1702
1702
|
}
|
|
1703
|
-
return
|
|
1703
|
+
return _.map((O) => {
|
|
1704
1704
|
const N = new Range();
|
|
1705
1705
|
return N.setStart(d, O), N.setEnd(d, O + s.length), N;
|
|
1706
1706
|
});
|
|
@@ -1714,8 +1714,8 @@ function Gt(e, t) {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
return { search: a };
|
|
1716
1716
|
}
|
|
1717
|
-
function
|
|
1718
|
-
const v = c(e.size), d = c(e.textField), p = c(e.titleField),
|
|
1717
|
+
function St(e, t, n, o, a, l, s, i, f, u) {
|
|
1718
|
+
const v = c(e.size), d = c(e.textField), p = c(e.titleField), _ = c(e.disableField), E = P(() => {
|
|
1719
1719
|
var B, g;
|
|
1720
1720
|
return ((B = e.selection) == null ? void 0 : B.multiSelect) && ((g = e.selection) == null ? void 0 : g.showCheckbox);
|
|
1721
1721
|
}), {
|
|
@@ -1745,7 +1745,7 @@ function kt(e, t, n, o, a, l, s, i, f, u) {
|
|
|
1745
1745
|
}, [r(mt, {
|
|
1746
1746
|
id: "list-" + h(B, g),
|
|
1747
1747
|
customClass: "listview-checkbox",
|
|
1748
|
-
disabled: B[
|
|
1748
|
+
disabled: B[_.value],
|
|
1749
1749
|
checked: B.checked,
|
|
1750
1750
|
"onUpdate:checked": (k) => B.checked = k,
|
|
1751
1751
|
onChange: (k) => {
|
|
@@ -1762,10 +1762,10 @@ function kt(e, t, n, o, a, l, s, i, f, u) {
|
|
|
1762
1762
|
renderItem: S
|
|
1763
1763
|
};
|
|
1764
1764
|
}
|
|
1765
|
-
function
|
|
1765
|
+
function il(e, t, n, o, a, l, s, i, f, u) {
|
|
1766
1766
|
const v = c(e.multiSelect), d = c(e.disableField), {
|
|
1767
1767
|
onMouseenterItem: p,
|
|
1768
|
-
onMouseoverItem:
|
|
1768
|
+
onMouseoverItem: _,
|
|
1769
1769
|
onMouseoutItem: E
|
|
1770
1770
|
} = l, {
|
|
1771
1771
|
getKey: O,
|
|
@@ -1789,7 +1789,7 @@ function ul(e, t, n, o, a, l, s, i, f, u) {
|
|
|
1789
1789
|
key: O(w, V),
|
|
1790
1790
|
onClick: (B) => h(B, w, V),
|
|
1791
1791
|
onMouseenter: (B) => p(B, w, V),
|
|
1792
|
-
onMouseover: (B) =>
|
|
1792
|
+
onMouseover: (B) => _(B, w, V),
|
|
1793
1793
|
onMouseout: (B) => E(B, w, V)
|
|
1794
1794
|
}, [v.value && r("div", {
|
|
1795
1795
|
class: "f-list-select",
|
|
@@ -1809,10 +1809,10 @@ function ul(e, t, n, o, a, l, s, i, f, u) {
|
|
|
1809
1809
|
renderItem: C
|
|
1810
1810
|
};
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function ul(e, t, n, o, a, l, s, i, f, u) {
|
|
1813
1813
|
const v = c(e.multiSelect), d = c(e.disableField), {
|
|
1814
1814
|
onMouseenterItem: p,
|
|
1815
|
-
onMouseoverItem:
|
|
1815
|
+
onMouseoverItem: _,
|
|
1816
1816
|
onMouseoutItem: E
|
|
1817
1817
|
} = l, {
|
|
1818
1818
|
getKey: O,
|
|
@@ -1845,7 +1845,7 @@ function cl(e, t, n, o, a, l, s, i, f, u) {
|
|
|
1845
1845
|
key: O(T, y),
|
|
1846
1846
|
onClick: ($) => h($, T, y),
|
|
1847
1847
|
onMouseenter: ($) => p($, T, y),
|
|
1848
|
-
onMouseover: ($) =>
|
|
1848
|
+
onMouseover: ($) => _($, T, y),
|
|
1849
1849
|
onMouseout: ($) => E($, T, y),
|
|
1850
1850
|
draggable: "true",
|
|
1851
1851
|
onDragstart: ($) => b($, T, y),
|
|
@@ -1881,20 +1881,20 @@ function cl(e, t, n, o, a, l, s, i, f, u) {
|
|
|
1881
1881
|
renderItem: F
|
|
1882
1882
|
};
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function cl(e, t, n, o, a, l, s, i, f, u) {
|
|
1885
1885
|
var O;
|
|
1886
1886
|
const v = c(((O = e.group) == null ? void 0 : O.groupFields) || []), {
|
|
1887
1887
|
collpaseGroupIconClass: d
|
|
1888
1888
|
} = a, {
|
|
1889
1889
|
toggleGroupRow: p
|
|
1890
1890
|
} = u;
|
|
1891
|
-
function
|
|
1891
|
+
function _(N, m) {
|
|
1892
1892
|
m.collapse = !m.collapse, n.value = p(m.collapse ? "collapse" : "expand", m, n.value);
|
|
1893
1893
|
}
|
|
1894
1894
|
function E(N, m, h) {
|
|
1895
1895
|
return N.layer > -1 && r("div", {
|
|
1896
1896
|
class: "f-navlookup-recentHeader",
|
|
1897
|
-
onClick: (b) =>
|
|
1897
|
+
onClick: (b) => _(b, N)
|
|
1898
1898
|
}, [r("div", {
|
|
1899
1899
|
class: "fv-grid-group-row-icon"
|
|
1900
1900
|
}, [r("span", {
|
|
@@ -1907,7 +1907,7 @@ function dl(e, t, n, o, a, l, s, i, f, u) {
|
|
|
1907
1907
|
renderItem: E
|
|
1908
1908
|
};
|
|
1909
1909
|
}
|
|
1910
|
-
function
|
|
1910
|
+
function dl() {
|
|
1911
1911
|
const e = c(-1), t = c(""), n = c(-1), o = c(!1);
|
|
1912
1912
|
function a(u, v, d) {
|
|
1913
1913
|
n.value = d;
|
|
@@ -1935,9 +1935,9 @@ function fl() {
|
|
|
1935
1935
|
suspendHover: i
|
|
1936
1936
|
};
|
|
1937
1937
|
}
|
|
1938
|
-
function
|
|
1938
|
+
function fl(e, t, n, o) {
|
|
1939
1939
|
const a = c(e.idField), { dataView: l } = n, s = c(-1), i = c(!1), { activeIndex: f, focusedItemId: u, hoverIndex: v, resumeHover: d, suspendHover: p } = o;
|
|
1940
|
-
function
|
|
1940
|
+
function _(m, h, b) {
|
|
1941
1941
|
m.stopPropagation(), p(), h && setTimeout(() => {
|
|
1942
1942
|
s.value = b, i.value = !0, h.moving = !0;
|
|
1943
1943
|
});
|
|
@@ -1957,14 +1957,14 @@ function pl(e, t, n, o) {
|
|
|
1957
1957
|
}), i.value = !1, d(), v.value = h.raw.__fv_index__, f.value = h.raw.__fv_index__, u.value = h.raw[a.value], t.emit("change", l.value), t.emit("activeChange", h);
|
|
1958
1958
|
}
|
|
1959
1959
|
return {
|
|
1960
|
-
dragstart:
|
|
1960
|
+
dragstart: _,
|
|
1961
1961
|
dragenter: E,
|
|
1962
1962
|
dragover: O,
|
|
1963
1963
|
dragend: N,
|
|
1964
1964
|
isDragging: i
|
|
1965
1965
|
};
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1967
|
+
function pl(e, t, n) {
|
|
1968
1968
|
const { dataView: o } = n;
|
|
1969
1969
|
function a(l) {
|
|
1970
1970
|
if (l > -1 && l < o.value.length) {
|
|
@@ -1974,8 +1974,8 @@ function ml(e, t, n) {
|
|
|
1974
1974
|
}
|
|
1975
1975
|
return { removeItem: a };
|
|
1976
1976
|
}
|
|
1977
|
-
function
|
|
1978
|
-
const s = c(e.idField), i = c(e.disableField), f = c(e.draggable), u = c(e.itemClass), v = c(e.selection.multiSelect ?? !1), d = c(e.selection.multiSelectMode), { isDragging: p } = o, { activeIndex:
|
|
1977
|
+
function ml(e, t, n, o, a, l) {
|
|
1978
|
+
const s = c(e.idField), i = c(e.disableField), f = c(e.draggable), u = c(e.itemClass), v = c(e.selection.multiSelect ?? !1), d = c(e.selection.multiSelectMode), { isDragging: p } = o, { activeIndex: _, focusedItemId: E, hoverIndex: O } = a, { clearSelection: N, getSelectedItems: m, toggleSelectItem: h } = l, b = c(m());
|
|
1979
1979
|
function C(k, F) {
|
|
1980
1980
|
const T = {
|
|
1981
1981
|
"f-listview-item": !0,
|
|
@@ -2010,7 +2010,7 @@ function vl(e, t, n, o, a, l) {
|
|
|
2010
2010
|
k.preventDefault(), k.stopPropagation();
|
|
2011
2011
|
return;
|
|
2012
2012
|
}
|
|
2013
|
-
E.value = F.raw[s.value],
|
|
2013
|
+
E.value = F.raw[s.value], _.value = T, B.value && N(), g.value && (h(F), b.value = m()), t.emit("clickItem", { data: b.value, index: T }), t.emit("activeChange", b.value);
|
|
2014
2014
|
}
|
|
2015
2015
|
return {
|
|
2016
2016
|
getKey: w,
|
|
@@ -2019,21 +2019,21 @@ function vl(e, t, n, o, a, l) {
|
|
|
2019
2019
|
onClickItem: M
|
|
2020
2020
|
};
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2023
|
-
const i = c(e.view), f = c(e.view === "CardView"), u = c({}), v = c("暂无数据"), d =
|
|
2022
|
+
function Gt(e, t, n, o, a, l, s) {
|
|
2023
|
+
const i = c(e.view), f = c(e.view === "CardView"), u = c({}), v = c("暂无数据"), d = dl(), p = fl(e, t, o, d), _ = pl(e, t, o), E = ml(e, t, n, p, d, l), O = P(() => ({
|
|
2024
2024
|
"f-list-view-group": !0,
|
|
2025
2025
|
"d-flex": f.value,
|
|
2026
2026
|
"flex-wrap": f.value
|
|
2027
2027
|
})), N = P(() => !!n.value && n.value.length > 0), m = P(() => n.value.length === 0);
|
|
2028
2028
|
P(() => m.value && !t.slots.empty);
|
|
2029
2029
|
function h() {
|
|
2030
|
-
return i.value === "SingleView" ?
|
|
2030
|
+
return i.value === "SingleView" ? St : i.value === "DraggableView" ? ul : (i.value === "ContentView" || i.value === "CardView") && t.slots.content ? il : St;
|
|
2031
2031
|
}
|
|
2032
2032
|
const b = h(), {
|
|
2033
2033
|
renderItem: C
|
|
2034
|
-
} = b(e, t, n, p, a, d, E, l,
|
|
2034
|
+
} = b(e, t, n, p, a, d, E, l, _, s), {
|
|
2035
2035
|
renderItem: w
|
|
2036
|
-
} =
|
|
2036
|
+
} = cl(e, t, n, p, a, d, E, l, _, s), V = [C, w];
|
|
2037
2037
|
function S() {
|
|
2038
2038
|
return n.value.filter((M) => M.visible !== !1).map((M, k) => V[M.type](M, k, u));
|
|
2039
2039
|
}
|
|
@@ -2054,7 +2054,7 @@ function qt(e, t, n, o, a, l, s) {
|
|
|
2054
2054
|
renderListArea: g
|
|
2055
2055
|
};
|
|
2056
2056
|
}
|
|
2057
|
-
function
|
|
2057
|
+
function qt(e, t, n) {
|
|
2058
2058
|
function o() {
|
|
2059
2059
|
return t.slots.header && r("div", {
|
|
2060
2060
|
class: "f-list-view-header"
|
|
@@ -2084,7 +2084,7 @@ function ze(e, t, n) {
|
|
|
2084
2084
|
function d() {
|
|
2085
2085
|
return r("div", {
|
|
2086
2086
|
class: "f-list-view-header",
|
|
2087
|
-
onClick:
|
|
2087
|
+
onClick: Tn(() => v, ["prevent", "stop"])
|
|
2088
2088
|
}, [r("div", {
|
|
2089
2089
|
class: u.value
|
|
2090
2090
|
}, [r("div", {
|
|
@@ -2093,14 +2093,14 @@ function ze(e, t, n) {
|
|
|
2093
2093
|
class: "f-cmp-inputgroup"
|
|
2094
2094
|
}, [r("div", {
|
|
2095
2095
|
class: "input-group f-state-editable"
|
|
2096
|
-
}, [
|
|
2096
|
+
}, [Vt(r("input", {
|
|
2097
2097
|
class: "form-control f-utils-fill text-left",
|
|
2098
2098
|
"onUpdate:modelValue": (p) => l.value = p,
|
|
2099
2099
|
name: "input-group-value",
|
|
2100
2100
|
type: "text",
|
|
2101
2101
|
placeholder: a.value,
|
|
2102
2102
|
autocomplete: "off"
|
|
2103
|
-
}, null), [[
|
|
2103
|
+
}, null), [[Fn, l.value]]), r("div", {
|
|
2104
2104
|
class: "input-group-append"
|
|
2105
2105
|
}, [i.value && r("span", {
|
|
2106
2106
|
class: "input-group-text input-group-clear",
|
|
@@ -2117,42 +2117,42 @@ function ze(e, t, n) {
|
|
|
2117
2117
|
renderHeader: d
|
|
2118
2118
|
};
|
|
2119
2119
|
}
|
|
2120
|
-
const
|
|
2120
|
+
const Fe = /* @__PURE__ */ ae({
|
|
2121
2121
|
name: "FListView",
|
|
2122
2122
|
props: qe,
|
|
2123
2123
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
2124
2124
|
setup(e, t) {
|
|
2125
|
-
const n = c(), o = c(!0), a = c(!1), l = c([]), s = 0, i = c(e.columns), f =
|
|
2125
|
+
const n = c(), o = c(!0), a = c(!1), l = c([]), s = 0, i = c(e.columns), f = Ao(e), u = Ho(e), v = zo(e, f), d = Go(e), p = qo(e, /* @__PURE__ */ new Map(), u, f, d), _ = Wo(e, p, f, l, t), E = zt(e, n), O = P(() => p.dataView.value.length), N = Uo(e, t, f), m = Xo(), h = Yo(e, {}, m), b = Ko(e, N, u, f, m, h), C = Jo(e, f, h, b), w = Qo(e, f, h, b), V = Zo(e, i, p, O, s, b, C, w), {
|
|
2126
2126
|
getVisualData: S
|
|
2127
2127
|
} = V;
|
|
2128
2128
|
l.value = S(0, O.value + s - 1);
|
|
2129
2129
|
const B = P(() => {
|
|
2130
|
-
const
|
|
2130
|
+
const x = {
|
|
2131
2131
|
"f-list-view": !0,
|
|
2132
2132
|
"f-list-view-multiple": e.multiSelect
|
|
2133
2133
|
};
|
|
2134
|
-
return e.size !== "default" && (
|
|
2134
|
+
return e.size !== "default" && (x[`${e.size}-item`] = !0), x;
|
|
2135
2135
|
}), g = P(() => !!t.slots.footer || o.value);
|
|
2136
2136
|
function M() {
|
|
2137
|
-
return e.header === "SearchBar" ? ze : e.header === "ContentHeader" ?
|
|
2137
|
+
return e.header === "SearchBar" ? ze : e.header === "ContentHeader" ? qt : ze;
|
|
2138
2138
|
}
|
|
2139
2139
|
const k = M(), {
|
|
2140
2140
|
renderHeader: F
|
|
2141
2141
|
} = k(e, t, E), {
|
|
2142
2142
|
renderListArea: T
|
|
2143
|
-
} =
|
|
2144
|
-
function y(
|
|
2145
|
-
E.search(
|
|
2143
|
+
} = Gt(e, t, l, p, v, _, V);
|
|
2144
|
+
function y(x) {
|
|
2145
|
+
E.search(x);
|
|
2146
2146
|
}
|
|
2147
|
-
function I(
|
|
2148
|
-
|
|
2147
|
+
function I(x) {
|
|
2148
|
+
x && (p.load(x), l.value = S(0, O.value + s - 1));
|
|
2149
2149
|
}
|
|
2150
2150
|
t.expose({
|
|
2151
2151
|
search: y,
|
|
2152
2152
|
updateDataSource: I
|
|
2153
2153
|
});
|
|
2154
|
-
function $(
|
|
2155
|
-
e.multiSelect && (
|
|
2154
|
+
function $(x) {
|
|
2155
|
+
e.multiSelect && (x.preventDefault(), x.stopPropagation());
|
|
2156
2156
|
}
|
|
2157
2157
|
return () => r("div", {
|
|
2158
2158
|
class: B.value,
|
|
@@ -2171,8 +2171,8 @@ const Te = /* @__PURE__ */ ae({
|
|
|
2171
2171
|
}, [t.slots.footer && t.slots.footer()])]);
|
|
2172
2172
|
}
|
|
2173
2173
|
});
|
|
2174
|
-
var
|
|
2175
|
-
function
|
|
2174
|
+
var ie = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(ie || {}), he = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(he || {}), We = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(We || {}), ut = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(ut || {});
|
|
2175
|
+
function vl() {
|
|
2176
2176
|
function e(n, o) {
|
|
2177
2177
|
const a = n.pre;
|
|
2178
2178
|
if (a) {
|
|
@@ -2189,7 +2189,7 @@ function hl() {
|
|
|
2189
2189
|
}
|
|
2190
2190
|
return { updateRowPosition: e, updateVisualInfomation: t };
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function hl() {
|
|
2193
2193
|
function e(o, a) {
|
|
2194
2194
|
switch (o.command) {
|
|
2195
2195
|
case "edit":
|
|
@@ -2214,7 +2214,7 @@ function gl() {
|
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
2216
|
function n(o, a) {
|
|
2217
|
-
return r("div", null, [o.commands && o.commands.map((l) => e(l, a) && r(
|
|
2217
|
+
return r("div", null, [o.commands && o.commands.map((l) => e(l, a) && r(En("f-button"), {
|
|
2218
2218
|
class: "ml-2",
|
|
2219
2219
|
type: l.type,
|
|
2220
2220
|
size: l.size || "small",
|
|
@@ -2240,7 +2240,7 @@ c([{
|
|
|
2240
2240
|
name: "半年",
|
|
2241
2241
|
selectable: !0
|
|
2242
2242
|
}]);
|
|
2243
|
-
const
|
|
2243
|
+
const Wt = {
|
|
2244
2244
|
conditions: { type: Array, default: [] },
|
|
2245
2245
|
fields: { type: Array, default: [] },
|
|
2246
2246
|
key: { type: String, default: "" },
|
|
@@ -2249,7 +2249,7 @@ const Ut = {
|
|
|
2249
2249
|
*/
|
|
2250
2250
|
isControlInline: { type: Boolean, default: !0 }
|
|
2251
2251
|
};
|
|
2252
|
-
class
|
|
2252
|
+
class gl {
|
|
2253
2253
|
constructor(t = { value: [] }) {
|
|
2254
2254
|
z(this, "editorType", "check-box");
|
|
2255
2255
|
z(this, "value");
|
|
@@ -2269,7 +2269,7 @@ class yl {
|
|
|
2269
2269
|
return this.value.length === 0;
|
|
2270
2270
|
}
|
|
2271
2271
|
}
|
|
2272
|
-
class
|
|
2272
|
+
class yl {
|
|
2273
2273
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
2274
2274
|
z(this, "editorType", "combo-lookup");
|
|
2275
2275
|
z(this, "textValue");
|
|
@@ -2289,11 +2289,11 @@ class bl {
|
|
|
2289
2289
|
return t[n[0]];
|
|
2290
2290
|
}
|
|
2291
2291
|
getTextValue(t) {
|
|
2292
|
-
const n = t.split("."), o = this.value.split(",").map((a) => this.getPropValue(a,
|
|
2292
|
+
const n = t.split("."), o = this.value.split(",").map((a) => this.getPropValue(a, _e(n)));
|
|
2293
2293
|
return o && o.length ? o.join(",") : "";
|
|
2294
2294
|
}
|
|
2295
2295
|
getValue() {
|
|
2296
|
-
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o,
|
|
2296
|
+
const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, _e(t)));
|
|
2297
2297
|
return n && n.length ? n.join(",") : "";
|
|
2298
2298
|
}
|
|
2299
2299
|
setValue(t) {
|
|
@@ -2303,7 +2303,7 @@ class bl {
|
|
|
2303
2303
|
return !this.valueField;
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
|
-
class
|
|
2306
|
+
class bl {
|
|
2307
2307
|
constructor(t = { value: "" }) {
|
|
2308
2308
|
z(this, "editorType", "date-picker");
|
|
2309
2309
|
z(this, "value");
|
|
@@ -2323,7 +2323,7 @@ class Cl {
|
|
|
2323
2323
|
this.value = void 0;
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
|
-
class
|
|
2326
|
+
class kt {
|
|
2327
2327
|
constructor(t = { begin: "", end: "" }) {
|
|
2328
2328
|
z(this, "editorType", "date-range");
|
|
2329
2329
|
z(this, "begin", "");
|
|
@@ -2344,7 +2344,7 @@ class Tt {
|
|
|
2344
2344
|
return !this.begin || !this.end;
|
|
2345
2345
|
}
|
|
2346
2346
|
}
|
|
2347
|
-
class
|
|
2347
|
+
class Cl {
|
|
2348
2348
|
constructor(t = { value: "" }) {
|
|
2349
2349
|
z(this, "editorType", "datetime-picker");
|
|
2350
2350
|
z(this, "value");
|
|
@@ -2364,7 +2364,7 @@ class wl {
|
|
|
2364
2364
|
return !this.value;
|
|
2365
2365
|
}
|
|
2366
2366
|
}
|
|
2367
|
-
class
|
|
2367
|
+
class wl {
|
|
2368
2368
|
// 旧结构无,新结构为选中的value值,多选是以,分割的字符串
|
|
2369
2369
|
constructor(t = { value: "", dispalyText: "" }) {
|
|
2370
2370
|
z(this, "editorType", "combo-list");
|
|
@@ -2384,10 +2384,10 @@ class _l {
|
|
|
2384
2384
|
this.displayText = t.dispalyText, this.value = t.value;
|
|
2385
2385
|
}
|
|
2386
2386
|
isEmpty() {
|
|
2387
|
-
return !this.displayText;
|
|
2387
|
+
return !this.displayText && !this.value;
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
|
-
class
|
|
2390
|
+
class _l {
|
|
2391
2391
|
constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
|
|
2392
2392
|
z(this, "editorType", "input-group");
|
|
2393
2393
|
// 通过弹窗返回的若干个值对象构成的数组
|
|
@@ -2412,21 +2412,21 @@ class xl {
|
|
|
2412
2412
|
return t[n[0]];
|
|
2413
2413
|
}
|
|
2414
2414
|
getTextValue(t) {
|
|
2415
|
-
const n = t.split("."), o = this.value.map((a) => this.getPropValue(a,
|
|
2415
|
+
const n = t.split("."), o = this.value.map((a) => this.getPropValue(a, _e(n)));
|
|
2416
2416
|
return o && o.length ? o.join(",") : "";
|
|
2417
2417
|
}
|
|
2418
2418
|
getValue() {
|
|
2419
|
-
const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o,
|
|
2419
|
+
const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, _e(t)));
|
|
2420
2420
|
return n && n.length ? n.join(",") : "";
|
|
2421
2421
|
}
|
|
2422
2422
|
setValue(t) {
|
|
2423
2423
|
throw new Error("Method not implemented.");
|
|
2424
2424
|
}
|
|
2425
2425
|
isEmpty() {
|
|
2426
|
-
return !this.displayText;
|
|
2426
|
+
return !this.displayText && !this.value.length;
|
|
2427
2427
|
}
|
|
2428
2428
|
}
|
|
2429
|
-
class
|
|
2429
|
+
class xl {
|
|
2430
2430
|
constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
|
|
2431
2431
|
z(this, "editorType", "lookup");
|
|
2432
2432
|
z(this, "textValue");
|
|
@@ -2462,7 +2462,7 @@ class Sl {
|
|
|
2462
2462
|
return !this.value.length;
|
|
2463
2463
|
}
|
|
2464
2464
|
}
|
|
2465
|
-
class
|
|
2465
|
+
class Sl {
|
|
2466
2466
|
constructor(t = { value: "" }) {
|
|
2467
2467
|
z(this, "editorType", "month-picker");
|
|
2468
2468
|
z(this, "value");
|
|
@@ -2482,7 +2482,7 @@ class kl {
|
|
|
2482
2482
|
return !this.value;
|
|
2483
2483
|
}
|
|
2484
2484
|
}
|
|
2485
|
-
class
|
|
2485
|
+
class kl {
|
|
2486
2486
|
constructor(t = { begin: "", end: "" }) {
|
|
2487
2487
|
z(this, "editorType", "month-range");
|
|
2488
2488
|
z(this, "begin");
|
|
@@ -2503,7 +2503,7 @@ class Tl {
|
|
|
2503
2503
|
return !this.begin || !this.end;
|
|
2504
2504
|
}
|
|
2505
2505
|
}
|
|
2506
|
-
class
|
|
2506
|
+
class Tl {
|
|
2507
2507
|
constructor(t = { begin: null, end: null }) {
|
|
2508
2508
|
z(this, "editorType", "number-range");
|
|
2509
2509
|
z(this, "begin");
|
|
@@ -2527,7 +2527,7 @@ class Fl {
|
|
|
2527
2527
|
return this.begin == null && this.end == null;
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
|
-
class
|
|
2530
|
+
class Fl {
|
|
2531
2531
|
constructor(t = { value: "" }) {
|
|
2532
2532
|
z(this, "editorType", "number-spinner");
|
|
2533
2533
|
z(this, "value");
|
|
@@ -2544,10 +2544,10 @@ class El {
|
|
|
2544
2544
|
this.value = isNaN(parseFloat(t)) ? null : t;
|
|
2545
2545
|
}
|
|
2546
2546
|
isEmpty() {
|
|
2547
|
-
return this.value == null;
|
|
2547
|
+
return this.value == null || isNaN(this.value);
|
|
2548
2548
|
}
|
|
2549
2549
|
}
|
|
2550
|
-
class
|
|
2550
|
+
class El {
|
|
2551
2551
|
constructor(t = { value: null }) {
|
|
2552
2552
|
z(this, "editorType", "radio-group");
|
|
2553
2553
|
z(this, "value");
|
|
@@ -2567,7 +2567,7 @@ class Il {
|
|
|
2567
2567
|
return !this.value;
|
|
2568
2568
|
}
|
|
2569
2569
|
}
|
|
2570
|
-
class
|
|
2570
|
+
class Ut {
|
|
2571
2571
|
constructor(t = { value: "" }) {
|
|
2572
2572
|
z(this, "editorType", "text");
|
|
2573
2573
|
z(this, "value");
|
|
@@ -2587,45 +2587,45 @@ class Xt {
|
|
|
2587
2587
|
return !this.value;
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
|
-
function
|
|
2590
|
+
function Xt() {
|
|
2591
2591
|
function e(t, n) {
|
|
2592
2592
|
switch (t) {
|
|
2593
2593
|
case "check-box":
|
|
2594
|
-
return new
|
|
2594
|
+
return new gl(n);
|
|
2595
2595
|
case "combo-list":
|
|
2596
|
-
return new
|
|
2596
|
+
return new wl(n);
|
|
2597
2597
|
case "combo-lookup":
|
|
2598
|
-
return new
|
|
2598
|
+
return new yl(n);
|
|
2599
2599
|
case "input-group":
|
|
2600
|
-
return new
|
|
2600
|
+
return new _l(n);
|
|
2601
2601
|
case "date-picker":
|
|
2602
|
-
return new
|
|
2602
|
+
return new bl(n);
|
|
2603
2603
|
case "date-range":
|
|
2604
|
-
return new
|
|
2604
|
+
return new kt(n);
|
|
2605
2605
|
case "datetime-picker":
|
|
2606
|
-
return new
|
|
2606
|
+
return new Cl(n);
|
|
2607
2607
|
case "datetime-range":
|
|
2608
|
-
return new
|
|
2608
|
+
return new kt(n);
|
|
2609
2609
|
case "lookup":
|
|
2610
|
-
return new
|
|
2610
|
+
return new xl(n);
|
|
2611
2611
|
case "month-picker":
|
|
2612
|
-
return new
|
|
2612
|
+
return new Sl(n);
|
|
2613
2613
|
case "month-range":
|
|
2614
|
-
return new
|
|
2614
|
+
return new kl(n);
|
|
2615
2615
|
case "number-range":
|
|
2616
|
-
return new
|
|
2616
|
+
return new Tl(n);
|
|
2617
2617
|
case "number-spinner":
|
|
2618
|
-
return new
|
|
2618
|
+
return new Fl(n);
|
|
2619
2619
|
case "radio-group":
|
|
2620
|
-
return new
|
|
2620
|
+
return new El(n);
|
|
2621
2621
|
default:
|
|
2622
|
-
return new
|
|
2622
|
+
return new Ut(n);
|
|
2623
2623
|
}
|
|
2624
2624
|
}
|
|
2625
2625
|
return { createConditionValue: e };
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2628
|
-
const n = c(e.fields), o = c([]), a = /* @__PURE__ */ new Map(), { createConditionValue: l } =
|
|
2627
|
+
function Yt(e, t) {
|
|
2628
|
+
const n = c(e.fields), o = c([]), a = /* @__PURE__ */ new Map(), { createConditionValue: l } = Xt();
|
|
2629
2629
|
function s(v) {
|
|
2630
2630
|
switch (v.editor ? v.editor.type : "input-group") {
|
|
2631
2631
|
case "date-range":
|
|
@@ -2656,15 +2656,15 @@ function Kt(e, t) {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
return { convertToSingleControl: i, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: f, initialConditionValue: u };
|
|
2658
2658
|
}
|
|
2659
|
-
function
|
|
2659
|
+
function Il(e, t, n) {
|
|
2660
2660
|
const o = c(null), a = c(n), l = c(0);
|
|
2661
2661
|
function s(v, d) {
|
|
2662
2662
|
let p = null;
|
|
2663
2663
|
return function() {
|
|
2664
|
-
const
|
|
2664
|
+
const _ = arguments;
|
|
2665
2665
|
p || (p = setTimeout(() => {
|
|
2666
2666
|
p = null;
|
|
2667
|
-
}, 500), v(...
|
|
2667
|
+
}, 500), v(..._));
|
|
2668
2668
|
};
|
|
2669
2669
|
}
|
|
2670
2670
|
function i() {
|
|
@@ -2685,26 +2685,26 @@ function Ml(e, t, n) {
|
|
|
2685
2685
|
resizeObserver: o
|
|
2686
2686
|
};
|
|
2687
2687
|
}
|
|
2688
|
-
const
|
|
2688
|
+
const Tt = /* @__PURE__ */ ae({
|
|
2689
2689
|
name: "FConditionFields",
|
|
2690
|
-
props:
|
|
2690
|
+
props: Wt,
|
|
2691
2691
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
2692
2692
|
setup(e, t) {
|
|
2693
|
-
const n = c(), o = c(e.key), a = c(e.isControlInline), l = c(e.conditions), s =
|
|
2693
|
+
const n = c(), o = c(e.key), a = c(e.isControlInline), l = c(e.conditions), s = Yt(e), {
|
|
2694
2694
|
initialConditionValue: i,
|
|
2695
2695
|
fieldMap: f,
|
|
2696
2696
|
loadFieldConfigs: u
|
|
2697
|
-
} = s, v =
|
|
2697
|
+
} = s, v = Il(e, t, n), {
|
|
2698
2698
|
conditionClass: d,
|
|
2699
2699
|
resizeObserver: p
|
|
2700
2700
|
} = v;
|
|
2701
|
-
u(!0), i(l.value),
|
|
2701
|
+
u(!0), i(l.value), It(() => {
|
|
2702
2702
|
var m;
|
|
2703
2703
|
(m = p.value) == null || m.unobserve(n.value);
|
|
2704
2704
|
}), Q(() => e.conditions, () => {
|
|
2705
2705
|
l.value = e.conditions, i(l.value);
|
|
2706
2706
|
});
|
|
2707
|
-
const
|
|
2707
|
+
const _ = P(() => ({
|
|
2708
2708
|
// row: true,
|
|
2709
2709
|
"f-utils-flex-row-wrap": !0,
|
|
2710
2710
|
"farris-form": !0,
|
|
@@ -2716,7 +2716,7 @@ const Ft = /* @__PURE__ */ ae({
|
|
|
2716
2716
|
function N() {
|
|
2717
2717
|
return l.value.map((m) => {
|
|
2718
2718
|
var h;
|
|
2719
|
-
return r(
|
|
2719
|
+
return r(zn, {
|
|
2720
2720
|
customClass: E.value,
|
|
2721
2721
|
label: m.fieldName,
|
|
2722
2722
|
editor: (h = f.get(m.fieldCode)) == null ? void 0 : h.editor,
|
|
@@ -2729,17 +2729,17 @@ const Ft = /* @__PURE__ */ ae({
|
|
|
2729
2729
|
});
|
|
2730
2730
|
}
|
|
2731
2731
|
return () => r("div", {
|
|
2732
|
-
class:
|
|
2732
|
+
class: _.value,
|
|
2733
2733
|
key: o.value,
|
|
2734
2734
|
ref: n
|
|
2735
2735
|
}, [N()]);
|
|
2736
2736
|
}
|
|
2737
2737
|
}), yt = /* @__PURE__ */ new Map([
|
|
2738
2738
|
["appearance", Ge]
|
|
2739
|
-
]),
|
|
2739
|
+
]), Ml = /* @__PURE__ */ new Map([]);
|
|
2740
2740
|
var ct = /* @__PURE__ */ ((e) => (e.String = "String", e.DateTime = "DateTime", e.Date = "Date", e.Enum = "Enum", e.Boolean = "Boolean", e.Number = "Number", e.Text = "Text", e.BigNumber = "BigNumber", e))(ct || {});
|
|
2741
|
-
const
|
|
2742
|
-
class
|
|
2741
|
+
const Bl = "root-viewmodel";
|
|
2742
|
+
class Vl {
|
|
2743
2743
|
constructor(t, n) {
|
|
2744
2744
|
z(this, "formSchemaUtils");
|
|
2745
2745
|
z(this, "controlCreatorUtils");
|
|
@@ -2796,7 +2796,7 @@ class Ol {
|
|
|
2796
2796
|
}), n.contents = [o];
|
|
2797
2797
|
const { selectedFields: l } = t;
|
|
2798
2798
|
l == null || l.forEach((i) => {
|
|
2799
|
-
const f =
|
|
2799
|
+
const f = _e(i), u = this.resolveControlClassByFormColumns(t), v = this.controlCreatorUtils.setFormFieldProperty(f, "", u);
|
|
2800
2800
|
v && a.push(v);
|
|
2801
2801
|
});
|
|
2802
2802
|
const { templateId: s } = this.formSchemaUtils.getFormSchema().module;
|
|
@@ -2833,7 +2833,7 @@ class Ol {
|
|
|
2833
2833
|
code: `${t.componentId}-component-viewmodel`,
|
|
2834
2834
|
name: t.componentName,
|
|
2835
2835
|
bindTo: t.bindTo,
|
|
2836
|
-
parent:
|
|
2836
|
+
parent: Bl,
|
|
2837
2837
|
fields: this.assembleViewModelFields(t),
|
|
2838
2838
|
commands: [],
|
|
2839
2839
|
states: [],
|
|
@@ -2860,26 +2860,27 @@ class Ol {
|
|
|
2860
2860
|
}), n;
|
|
2861
2861
|
}
|
|
2862
2862
|
}
|
|
2863
|
-
function
|
|
2864
|
-
var l, s, i, f;
|
|
2863
|
+
function Ol(e, t, n, o) {
|
|
2864
|
+
var l, s, i, f, u;
|
|
2865
2865
|
const a = n.parentComponentInstance;
|
|
2866
2866
|
if (a && o) {
|
|
2867
|
-
const
|
|
2867
|
+
const v = (l = a.schema) == null ? void 0 : l.type, p = {
|
|
2868
2868
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
2869
2869
|
componentName: ((i = (s = n.bindingSourceContext) == null ? void 0 : s.bindingEntity) == null ? void 0 : i.name) || "标题",
|
|
2870
2870
|
componentType: "form",
|
|
2871
|
-
formColumns:
|
|
2871
|
+
formColumns: v === "splitter-pane" ? 1 : 4,
|
|
2872
2872
|
parentContainerId: a.schema.id,
|
|
2873
|
-
bindTo: ((f = n.bindingSourceContext) == null ? void 0 : f.bindTo) || "/"
|
|
2873
|
+
bindTo: ((f = n.bindingSourceContext) == null ? void 0 : f.bindTo) || "/",
|
|
2874
|
+
selectedFields: (u = n.bindingSourceContext) == null ? void 0 : u.bindingEntityFields
|
|
2874
2875
|
};
|
|
2875
|
-
return new
|
|
2876
|
+
return new Vl(e, o).createComponent(p);
|
|
2876
2877
|
} else
|
|
2877
2878
|
return t;
|
|
2878
2879
|
}
|
|
2879
|
-
function
|
|
2880
|
+
function Dl(e, t, n) {
|
|
2880
2881
|
return t;
|
|
2881
2882
|
}
|
|
2882
|
-
const
|
|
2883
|
+
const Nl = "https://json-schema.org/draft/2020-12/schema", Rl = "https://farris-design.gitee.io/response-form.schema.json", $l = "response-form", Pl = "A Farris Data Collection Component", Ll = "object", jl = {
|
|
2883
2884
|
id: {
|
|
2884
2885
|
description: "The unique identifier for a form group",
|
|
2885
2886
|
type: "string"
|
|
@@ -2907,23 +2908,23 @@ const Rl = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-
|
|
|
2907
2908
|
type: "array",
|
|
2908
2909
|
default: []
|
|
2909
2910
|
}
|
|
2910
|
-
},
|
|
2911
|
+
}, Al = [
|
|
2911
2912
|
"id",
|
|
2912
2913
|
"type"
|
|
2913
|
-
],
|
|
2914
|
-
$schema:
|
|
2915
|
-
$id:
|
|
2916
|
-
title:
|
|
2917
|
-
description:
|
|
2918
|
-
type:
|
|
2919
|
-
properties:
|
|
2920
|
-
required:
|
|
2921
|
-
},
|
|
2914
|
+
], Hl = {
|
|
2915
|
+
$schema: Nl,
|
|
2916
|
+
$id: Rl,
|
|
2917
|
+
title: $l,
|
|
2918
|
+
description: Pl,
|
|
2919
|
+
type: Ll,
|
|
2920
|
+
properties: jl,
|
|
2921
|
+
required: Al
|
|
2922
|
+
}, zl = {
|
|
2922
2923
|
customClass: { type: String, default: "" },
|
|
2923
2924
|
customStyle: { type: String, defaut: "" }
|
|
2924
2925
|
};
|
|
2925
|
-
Ee(
|
|
2926
|
-
const
|
|
2926
|
+
Ee(zl, Hl, yt, Ol);
|
|
2927
|
+
const Gl = "https://json-schema.org/draft/2020-12/schema", ql = "https://farris-design.gitee.io/form-group.schema.json", Wl = "form-group", Ul = "A Farris Input Component", Xl = "object", Yl = {
|
|
2927
2928
|
id: {
|
|
2928
2929
|
description: "The unique identifier for a form group",
|
|
2929
2930
|
type: "string"
|
|
@@ -2969,18 +2970,18 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-
|
|
|
2969
2970
|
type: "object",
|
|
2970
2971
|
default: {}
|
|
2971
2972
|
}
|
|
2972
|
-
},
|
|
2973
|
+
}, Kl = [
|
|
2973
2974
|
"id",
|
|
2974
2975
|
"type"
|
|
2975
|
-
],
|
|
2976
|
-
$schema:
|
|
2977
|
-
$id:
|
|
2978
|
-
title:
|
|
2979
|
-
description:
|
|
2980
|
-
type:
|
|
2981
|
-
properties:
|
|
2982
|
-
required:
|
|
2983
|
-
},
|
|
2976
|
+
], Kt = {
|
|
2977
|
+
$schema: Gl,
|
|
2978
|
+
$id: ql,
|
|
2979
|
+
title: Wl,
|
|
2980
|
+
description: Ul,
|
|
2981
|
+
type: Xl,
|
|
2982
|
+
properties: Yl,
|
|
2983
|
+
required: Kl
|
|
2984
|
+
}, Jt = {
|
|
2984
2985
|
id: { type: String, default: "" },
|
|
2985
2986
|
customClass: { type: String, default: "" },
|
|
2986
2987
|
customStyle: { type: String, default: "" },
|
|
@@ -2996,19 +2997,19 @@ const ql = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-
|
|
|
2996
2997
|
type: { type: String, default: "input-group" }
|
|
2997
2998
|
};
|
|
2998
2999
|
Ee(
|
|
2999
|
-
Qt,
|
|
3000
3000
|
Jt,
|
|
3001
|
+
Kt,
|
|
3001
3002
|
yt,
|
|
3002
3003
|
void 0
|
|
3003
3004
|
);
|
|
3004
|
-
const
|
|
3005
|
+
const Jl = {
|
|
3005
3006
|
id: { type: String },
|
|
3006
3007
|
required: { type: Boolean, default: !1 },
|
|
3007
3008
|
text: { type: String, default: "" },
|
|
3008
3009
|
title: { type: String }
|
|
3009
|
-
},
|
|
3010
|
+
}, Ql = /* @__PURE__ */ ae({
|
|
3010
3011
|
name: "FDynamicFormLabel",
|
|
3011
|
-
props:
|
|
3012
|
+
props: Jl,
|
|
3012
3013
|
emits: [],
|
|
3013
3014
|
setup(e, t) {
|
|
3014
3015
|
const n = c(e.title || e.text), o = c(e.required), a = c(e.text);
|
|
@@ -3025,13 +3026,13 @@ const Ql = {
|
|
|
3025
3026
|
class: "farris-label-text"
|
|
3026
3027
|
}, [a.value])]);
|
|
3027
3028
|
}
|
|
3028
|
-
}),
|
|
3029
|
+
}), Zl = /* @__PURE__ */ new Map([
|
|
3029
3030
|
["appearance", Ge]
|
|
3030
3031
|
]);
|
|
3031
|
-
function
|
|
3032
|
+
function es(e, t, n) {
|
|
3032
3033
|
return t;
|
|
3033
3034
|
}
|
|
3034
|
-
const
|
|
3035
|
+
const ts = "https://json-schema.org/draft/2020-12/schema", ns = "https://farris-design.gitee.io/input-group.schema.json", os = "input-group", as = "A Farris Input Component", ls = "object", ss = {
|
|
3035
3036
|
id: {
|
|
3036
3037
|
description: "The unique identifier for a Input Group",
|
|
3037
3038
|
type: "string"
|
|
@@ -3228,24 +3229,24 @@ const ns = "https://json-schema.org/draft/2020-12/schema", os = "https://farris-
|
|
|
3228
3229
|
type: "string",
|
|
3229
3230
|
default: ""
|
|
3230
3231
|
}
|
|
3231
|
-
},
|
|
3232
|
+
}, rs = [
|
|
3232
3233
|
"id",
|
|
3233
3234
|
"type"
|
|
3234
|
-
],
|
|
3235
|
+
], is = [
|
|
3235
3236
|
"id",
|
|
3236
3237
|
"appearance",
|
|
3237
3238
|
"binding",
|
|
3238
3239
|
"visible"
|
|
3239
|
-
],
|
|
3240
|
-
$schema:
|
|
3241
|
-
$id:
|
|
3242
|
-
title:
|
|
3243
|
-
description:
|
|
3244
|
-
type:
|
|
3245
|
-
properties:
|
|
3246
|
-
required:
|
|
3247
|
-
ignore:
|
|
3248
|
-
},
|
|
3240
|
+
], us = {
|
|
3241
|
+
$schema: ts,
|
|
3242
|
+
$id: ns,
|
|
3243
|
+
title: os,
|
|
3244
|
+
description: as,
|
|
3245
|
+
type: ls,
|
|
3246
|
+
properties: ss,
|
|
3247
|
+
required: rs,
|
|
3248
|
+
ignore: is
|
|
3249
|
+
}, Qt = {
|
|
3249
3250
|
id: { Type: String, default: "" },
|
|
3250
3251
|
/** 是否自动完成 */
|
|
3251
3252
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -3313,18 +3314,18 @@ const ns = "https://json-schema.org/draft/2020-12/schema", os = "https://farris-
|
|
|
3313
3314
|
*/
|
|
3314
3315
|
updateOn: { type: String, default: "blur" }
|
|
3315
3316
|
};
|
|
3316
|
-
Ee(
|
|
3317
|
-
function
|
|
3317
|
+
Ee(Qt, us, Zl, es);
|
|
3318
|
+
function cs(e, t) {
|
|
3318
3319
|
const n = c(e.groupText), o = P(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = P(() => e.enableClear || !!e.groupText);
|
|
3319
3320
|
return { appendedButtonClass: P(() => ({
|
|
3320
3321
|
"input-group-append": !0,
|
|
3321
3322
|
"append-force-show": o.value
|
|
3322
3323
|
})), appendedContent: n, shouldShowAppendedButton: a };
|
|
3323
3324
|
}
|
|
3324
|
-
function
|
|
3325
|
+
function ds(e, t, n, o) {
|
|
3325
3326
|
const { appendedContent: a } = o, l = c(e.enableViewPassword), s = P(() => e.type === "password"), i = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', f = '<span class="f-icon f-icon-eye"></span>', u = c(!1);
|
|
3326
|
-
Q(() => [e.readonly, e.disabled], ([p,
|
|
3327
|
-
s.value && (n.value = p ||
|
|
3327
|
+
Q(() => [e.readonly, e.disabled], ([p, _]) => {
|
|
3328
|
+
s.value && (n.value = p || _ ? "password" : n.value, a.value = p || _ ? f : a.value);
|
|
3328
3329
|
});
|
|
3329
3330
|
function v() {
|
|
3330
3331
|
return u.value = !u.value, n.value = u.value ? "text" : "password", a.value = u.value ? i : f, !1;
|
|
@@ -3334,7 +3335,7 @@ function fs(e, t, n, o) {
|
|
|
3334
3335
|
}
|
|
3335
3336
|
return d(), { isPassword: s, onClickAppendedButton: v };
|
|
3336
3337
|
}
|
|
3337
|
-
function
|
|
3338
|
+
function fs(e, t, n) {
|
|
3338
3339
|
const o = c(), {
|
|
3339
3340
|
onBlurTextBox: a,
|
|
3340
3341
|
onFocusTextBox: l,
|
|
@@ -3350,14 +3351,14 @@ function ps(e, t, n) {
|
|
|
3350
3351
|
function p(O) {
|
|
3351
3352
|
O.stopPropagation();
|
|
3352
3353
|
}
|
|
3353
|
-
function
|
|
3354
|
+
function _() {
|
|
3354
3355
|
e.selectOnCreated, e.focusOnCreated;
|
|
3355
3356
|
}
|
|
3356
3357
|
async function E(O) {
|
|
3357
|
-
l(O), await st,
|
|
3358
|
+
l(O), await st, _();
|
|
3358
3359
|
}
|
|
3359
3360
|
return me(async () => {
|
|
3360
|
-
await st,
|
|
3361
|
+
await st, _();
|
|
3361
3362
|
}), () => r("input", {
|
|
3362
3363
|
ref: o,
|
|
3363
3364
|
class: v.value,
|
|
@@ -3374,7 +3375,7 @@ function ps(e, t, n) {
|
|
|
3374
3375
|
onKeydown: i
|
|
3375
3376
|
}, null);
|
|
3376
3377
|
}
|
|
3377
|
-
function
|
|
3378
|
+
function ps(e, t, n) {
|
|
3378
3379
|
const {
|
|
3379
3380
|
canDownward: o,
|
|
3380
3381
|
canUpward: a,
|
|
@@ -3415,16 +3416,16 @@ function ms(e, t, n) {
|
|
|
3415
3416
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
3416
3417
|
}, null)])]);
|
|
3417
3418
|
}
|
|
3418
|
-
function
|
|
3419
|
-
const n =
|
|
3419
|
+
function ms(e, t) {
|
|
3420
|
+
const n = to(e, t), o = no(e, t, n), a = oo(e, t, o, n), l = ao(e, t, o, n, a), s = ps(e, t, a), {
|
|
3420
3421
|
displayValue: i,
|
|
3421
3422
|
modelValue: f,
|
|
3422
3423
|
getRealValue: u
|
|
3423
|
-
} = n, v =
|
|
3424
|
+
} = n, v = fs(e, t, l), {
|
|
3424
3425
|
format: d
|
|
3425
3426
|
} = o, {
|
|
3426
3427
|
isFocus: p
|
|
3427
|
-
} = l,
|
|
3428
|
+
} = l, _ = P(() => !e.disabled && !e.readonly);
|
|
3428
3429
|
return me(() => {
|
|
3429
3430
|
const E = u(e.modelValue);
|
|
3430
3431
|
i.value = d(E);
|
|
@@ -3437,15 +3438,15 @@ function vs(e, t) {
|
|
|
3437
3438
|
i.value = d(f.value);
|
|
3438
3439
|
}), () => r("div", {
|
|
3439
3440
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
3440
|
-
}, [v(),
|
|
3441
|
+
}, [v(), _.value && s()]);
|
|
3441
3442
|
}
|
|
3442
|
-
function
|
|
3443
|
+
function vs(e, t, n, o) {
|
|
3443
3444
|
const a = c(), l = c(e.autocomplete), s = c(e.enableTitle), {
|
|
3444
3445
|
isPassword: i
|
|
3445
3446
|
} = n, f = c(e.minLength), u = c(e.maxLength), v = c(e.tabIndex), {
|
|
3446
3447
|
disabled: d,
|
|
3447
3448
|
displayText: p,
|
|
3448
|
-
inputType:
|
|
3449
|
+
inputType: _,
|
|
3449
3450
|
onBlur: E,
|
|
3450
3451
|
onFocus: O,
|
|
3451
3452
|
onInput: N,
|
|
@@ -3473,7 +3474,7 @@ function hs(e, t, n, o) {
|
|
|
3473
3474
|
readonly: V == null ? void 0 : V.value,
|
|
3474
3475
|
tabindex: v.value,
|
|
3475
3476
|
title: s.value && !i.value ? g.value : "",
|
|
3476
|
-
type:
|
|
3477
|
+
type: _.value,
|
|
3477
3478
|
value: p == null ? void 0 : p.value,
|
|
3478
3479
|
onBlur: E,
|
|
3479
3480
|
onClick: m,
|
|
@@ -3485,23 +3486,23 @@ function hs(e, t, n, o) {
|
|
|
3485
3486
|
onMousedown: C
|
|
3486
3487
|
}, null);
|
|
3487
3488
|
}
|
|
3488
|
-
function
|
|
3489
|
+
function hs(e, t) {
|
|
3489
3490
|
const n = P(() => e.useExtendInfo && !!e.extendInfo), o = ve({
|
|
3490
3491
|
content: e.extendInfo
|
|
3491
3492
|
});
|
|
3492
3493
|
function a() {
|
|
3493
3494
|
t.emit("updateExtendInfo");
|
|
3494
3495
|
}
|
|
3495
|
-
return () => n.value &&
|
|
3496
|
+
return () => n.value && Vt(r("span", {
|
|
3496
3497
|
class: "input-group-before-tips",
|
|
3497
3498
|
onMouseenter: a
|
|
3498
3499
|
}, [r("i", {
|
|
3499
3500
|
class: "f-icon f-icon-info-circle"
|
|
3500
3501
|
}, null), r("b", {
|
|
3501
3502
|
class: "tips-arrow"
|
|
3502
|
-
}, null)]), [[
|
|
3503
|
+
}, null)]), [[In("tooltip"), o]]);
|
|
3503
3504
|
}
|
|
3504
|
-
function
|
|
3505
|
+
function gs(e, t, n, o, a) {
|
|
3505
3506
|
const {
|
|
3506
3507
|
appendedButtonClass: l,
|
|
3507
3508
|
appendedContent: s
|
|
@@ -3509,7 +3510,7 @@ function ys(e, t, n, o, a) {
|
|
|
3509
3510
|
clearButtonClass: v,
|
|
3510
3511
|
clearButtonStyle: d,
|
|
3511
3512
|
onClearValue: p,
|
|
3512
|
-
shouldShowClearButton:
|
|
3513
|
+
shouldShowClearButton: _
|
|
3513
3514
|
} = o;
|
|
3514
3515
|
function E() {
|
|
3515
3516
|
return r("span", {
|
|
@@ -3551,23 +3552,23 @@ function ys(e, t, n, o, a) {
|
|
|
3551
3552
|
const V = w();
|
|
3552
3553
|
return () => r("div", {
|
|
3553
3554
|
class: l.value
|
|
3554
|
-
}, [
|
|
3555
|
+
}, [_.value && E(), V && V()]);
|
|
3555
3556
|
}
|
|
3556
|
-
const
|
|
3557
|
+
const ys = /* @__PURE__ */ ae({
|
|
3557
3558
|
name: "FInputGroup",
|
|
3558
|
-
props:
|
|
3559
|
+
props: Qt,
|
|
3559
3560
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
3560
3561
|
setup(e, t) {
|
|
3561
|
-
const n = c(e.modelValue), o = c(e.modelValue), a =
|
|
3562
|
+
const n = c(e.modelValue), o = c(e.modelValue), a = $o(e, t, n, o), {
|
|
3562
3563
|
inputGroupClass: l,
|
|
3563
3564
|
inputType: s,
|
|
3564
3565
|
inputGroupStyle: i
|
|
3565
|
-
} = a, f =
|
|
3566
|
+
} = a, f = cs(e), {
|
|
3566
3567
|
shouldShowAppendedButton: u
|
|
3567
|
-
} = f, v =
|
|
3568
|
+
} = f, v = Po(e, t, a), {
|
|
3568
3569
|
onMouseEnter: d,
|
|
3569
3570
|
onMouseLeave: p
|
|
3570
|
-
} = v,
|
|
3571
|
+
} = v, _ = ds(e, t, s, f), E = ms(e, t), O = vs(e, t, _, a), N = gs(e, t, f, v, _), m = hs(e, t), h = P(() => e.type === "number");
|
|
3571
3572
|
Q(() => [e.value], ([C]) => {
|
|
3572
3573
|
n.value = C, o.value = C;
|
|
3573
3574
|
}), Q(() => [e.modelValue], ([C]) => {
|
|
@@ -3585,14 +3586,14 @@ const bs = /* @__PURE__ */ ae({
|
|
|
3585
3586
|
return () => b();
|
|
3586
3587
|
}
|
|
3587
3588
|
}), G = {}, q = {}, W = {}, U = {};
|
|
3588
|
-
let
|
|
3589
|
-
function
|
|
3590
|
-
|
|
3589
|
+
let Ft = !1;
|
|
3590
|
+
function bs() {
|
|
3591
|
+
Ft || (Ft = !0, Bn.register(G, q, W, U), Mn.register(G, q, W, U), Vn.register(G, q, W, U), On.register(G, q, W, U), Dn.register(G, q, W, U), Nn.register(G, q, W, U), Rn.register(G, q, W, U), rt.register(G, q, W, U), ea.register(G, q, W, U), Oo.register(G, q, W, U), Pn.register(G, q, W, U), $n.register(G, q, W, U), jn.register(G, q, W, U), Ln.register(G, q, W, U), An.register(G, q, W, U), Hn.register(G, q, W, U), qn.register(G, q, W, U), Wn.register(G, q, W, U), ta.register(G, q, W, U), Un.register(G, q, W, U), Xn.register(G, q, W, U), Yn.register(G, q, W, U), Jn.register(G, q, W, U), Kn.register(G, q, W, U), Qn.register(G, q, W, U), oa.register(G, q, W, U), Zn.register(G, q, W, U), lo.register(G, q, W, U), eo.register(G, q, W, U), so.register(G, q, W, U), ro.register(G, q, W, U), io.register(G, q, W, U), uo.register(G, q, W, U), co.register(G, q, W, U), fo.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), vo.register(G, q, W, U), aa.register(G, q, W), yo.register(G, q, W, U), bo.register(G, q, W, U), Co.register(G, q, W, U), wo.register(G, q, W, U), _o.register(G, q, W, U), xo.register(G, q, W, U), So.register(G, q, W, U), ko.register(G, q, W, U), To.register(G, q, W, U), Fo.register(G, q, W, U), Eo.register(G, q, W, U), Io.register(G, q, W, U), Bo.register(G, q, W, U), Mo.register(G, q, W, U), Vo.register(G, q, W, U), Do.register(G, q, W, U), No.register(G, q, W, U), Ro.register(G, q, W, U), na.register(G, q, W, U), la.register(G, q, W, U));
|
|
3591
3592
|
}
|
|
3592
|
-
function
|
|
3593
|
-
|
|
3593
|
+
function Cs() {
|
|
3594
|
+
bs();
|
|
3594
3595
|
function e(a) {
|
|
3595
|
-
return G[a] ||
|
|
3596
|
+
return G[a] || ys;
|
|
3596
3597
|
}
|
|
3597
3598
|
function t(a, l) {
|
|
3598
3599
|
const s = q[a];
|
|
@@ -3672,19 +3673,19 @@ function ws() {
|
|
|
3672
3673
|
}
|
|
3673
3674
|
return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
|
|
3674
3675
|
}
|
|
3675
|
-
const
|
|
3676
|
+
const ws = /* @__PURE__ */ ae({
|
|
3676
3677
|
name: "FDynamicFormGroup",
|
|
3677
|
-
props:
|
|
3678
|
+
props: Jt,
|
|
3678
3679
|
emits: ["change", "update:modelValue"],
|
|
3679
3680
|
setup(e, t) {
|
|
3680
3681
|
const n = c(e.id), o = c(e.customClass), a = c(e.editor), l = c(e.label), s = c(e.modelValue), i = c(e.readonly), f = c(e.required), u = c(e.showLabel), v = c(e.visible);
|
|
3681
3682
|
c(e.type);
|
|
3682
3683
|
const d = c(), {
|
|
3683
3684
|
resolveEditorProps: p,
|
|
3684
|
-
resolveEditorType:
|
|
3685
|
+
resolveEditorType: _,
|
|
3685
3686
|
getChangeFunctionName: E,
|
|
3686
3687
|
getClearFunctionName: O
|
|
3687
|
-
} =
|
|
3688
|
+
} = Cs(), N = P(() => ({
|
|
3688
3689
|
"form-group": !0,
|
|
3689
3690
|
"farris-form-group": !0,
|
|
3690
3691
|
"common-group": !0,
|
|
@@ -3697,8 +3698,8 @@ const _s = /* @__PURE__ */ ae({
|
|
|
3697
3698
|
t.emit("update:modelValue", "");
|
|
3698
3699
|
}
|
|
3699
3700
|
const b = P(() => {
|
|
3700
|
-
const C = a.value.type || "input-group", w =
|
|
3701
|
-
return B && (V[B] = h), V[S] = m, (V.id == null || V.id === "") && (V.id = n.value), () => r(w,
|
|
3701
|
+
const C = a.value.type || "input-group", w = _(C), V = p(C, a.value), S = E(C), B = O(a.value.type);
|
|
3702
|
+
return B && (V[B] = h), V[S] = m, (V.id == null || V.id === "") && (V.id = n.value), () => r(w, Te({
|
|
3702
3703
|
ref: d
|
|
3703
3704
|
}, V, {
|
|
3704
3705
|
modelValue: s.value,
|
|
@@ -3717,7 +3718,7 @@ const _s = /* @__PURE__ */ ae({
|
|
|
3717
3718
|
class: "farris-group-wrap"
|
|
3718
3719
|
}, [r("div", {
|
|
3719
3720
|
class: N.value
|
|
3720
|
-
}, [u.value && r(
|
|
3721
|
+
}, [u.value && r(Ql, {
|
|
3721
3722
|
id: `${n.value}-lable`,
|
|
3722
3723
|
required: f.value,
|
|
3723
3724
|
text: l.value,
|
|
@@ -3796,8 +3797,8 @@ z(Oe, "fieldControlTypeMapping", {
|
|
|
3796
3797
|
{ key: Y["radio-group"].type, value: Y["radio-group"].name }
|
|
3797
3798
|
]
|
|
3798
3799
|
});
|
|
3799
|
-
let
|
|
3800
|
-
const
|
|
3800
|
+
let Et = Oe;
|
|
3801
|
+
const _s = {
|
|
3801
3802
|
id: { type: String, default: "" },
|
|
3802
3803
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
3803
3804
|
editor: { type: Object, default: {} },
|
|
@@ -3813,12 +3814,12 @@ const xs = {
|
|
|
3813
3814
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
3814
3815
|
};
|
|
3815
3816
|
Ee(
|
|
3816
|
-
|
|
3817
|
-
|
|
3817
|
+
_s,
|
|
3818
|
+
Kt,
|
|
3818
3819
|
yt,
|
|
3819
3820
|
void 0
|
|
3820
3821
|
);
|
|
3821
|
-
const
|
|
3822
|
+
const xs = "https://json-schema.org/draft/2020-12/schema", Ss = "https://farris-design.gitee.io/grid-field-editor.schema.json", ks = "response-form-layout-setting", Ts = "A Farris Data Grid Component", Fs = "object", Es = {
|
|
3822
3823
|
id: {
|
|
3823
3824
|
description: "The unique identifier for a Input Group",
|
|
3824
3825
|
type: "string"
|
|
@@ -3838,18 +3839,18 @@ const Ss = "https://json-schema.org/draft/2020-12/schema", ks = "https://farris-
|
|
|
3838
3839
|
type: "Object",
|
|
3839
3840
|
default: null
|
|
3840
3841
|
}
|
|
3841
|
-
},
|
|
3842
|
+
}, Is = [
|
|
3842
3843
|
"id",
|
|
3843
3844
|
"type"
|
|
3844
|
-
],
|
|
3845
|
-
$schema:
|
|
3846
|
-
$id:
|
|
3847
|
-
title:
|
|
3848
|
-
description:
|
|
3849
|
-
type:
|
|
3850
|
-
properties:
|
|
3851
|
-
required:
|
|
3852
|
-
},
|
|
3845
|
+
], Ms = {
|
|
3846
|
+
$schema: xs,
|
|
3847
|
+
$id: Ss,
|
|
3848
|
+
title: ks,
|
|
3849
|
+
description: Ts,
|
|
3850
|
+
type: Fs,
|
|
3851
|
+
properties: Es,
|
|
3852
|
+
required: Is
|
|
3853
|
+
}, Bs = {
|
|
3853
3854
|
initialState: {
|
|
3854
3855
|
type: Object,
|
|
3855
3856
|
default: {
|
|
@@ -3860,8 +3861,8 @@ const Ss = "https://json-schema.org/draft/2020-12/schema", ks = "https://farris-
|
|
|
3860
3861
|
}
|
|
3861
3862
|
}
|
|
3862
3863
|
};
|
|
3863
|
-
|
|
3864
|
-
const
|
|
3864
|
+
sa(Bs, Ms, Ml, Dl);
|
|
3865
|
+
const Vs = {
|
|
3865
3866
|
width: { Type: Number, default: 400 },
|
|
3866
3867
|
type: { Type: String, default: "info" },
|
|
3867
3868
|
title: { Type: String, default: "" },
|
|
@@ -3874,12 +3875,12 @@ const Os = {
|
|
|
3874
3875
|
function bt() {
|
|
3875
3876
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
3876
3877
|
}
|
|
3877
|
-
async function
|
|
3878
|
+
async function Os(e) {
|
|
3878
3879
|
if (!navigator.clipboard)
|
|
3879
3880
|
throw bt();
|
|
3880
3881
|
return navigator.clipboard.writeText(e);
|
|
3881
3882
|
}
|
|
3882
|
-
async function
|
|
3883
|
+
async function Ds(e) {
|
|
3883
3884
|
const t = document.createElement("span");
|
|
3884
3885
|
t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
|
|
3885
3886
|
const n = window.getSelection(), o = window.document.createRange();
|
|
@@ -3893,24 +3894,24 @@ async function Ns(e) {
|
|
|
3893
3894
|
if (!a)
|
|
3894
3895
|
throw bt();
|
|
3895
3896
|
}
|
|
3896
|
-
async function
|
|
3897
|
+
async function Ns(e) {
|
|
3897
3898
|
try {
|
|
3898
|
-
await
|
|
3899
|
+
await Os(e);
|
|
3899
3900
|
} catch (t) {
|
|
3900
3901
|
try {
|
|
3901
|
-
await
|
|
3902
|
+
await Ds(e);
|
|
3902
3903
|
} catch (n) {
|
|
3903
3904
|
throw n || t || bt();
|
|
3904
3905
|
}
|
|
3905
3906
|
}
|
|
3906
3907
|
}
|
|
3907
|
-
function
|
|
3908
|
+
function Rs() {
|
|
3908
3909
|
async function e(t) {
|
|
3909
|
-
await
|
|
3910
|
+
await Ns(t);
|
|
3910
3911
|
}
|
|
3911
3912
|
return { onCopy: e };
|
|
3912
3913
|
}
|
|
3913
|
-
function
|
|
3914
|
+
function $s(e, t, n, o) {
|
|
3914
3915
|
const a = c(14), l = c(140), s = c(""), i = c(o.value.length), f = P(() => o.value), u = P(() => ({
|
|
3915
3916
|
"font-size": `${a.value}px`,
|
|
3916
3917
|
height: "100%"
|
|
@@ -3935,14 +3936,14 @@ function Ps(e, t, n, o) {
|
|
|
3935
3936
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
3936
3937
|
}, [i.value + " / " + l.value])]);
|
|
3937
3938
|
}
|
|
3938
|
-
function
|
|
3939
|
-
const a =
|
|
3939
|
+
function Ps(e, t, n, o) {
|
|
3940
|
+
const a = $s(e, t, n, o), l = /* @__PURE__ */ new Map([["text-area", a]]);
|
|
3940
3941
|
function s(i) {
|
|
3941
3942
|
return l.get(i) || null;
|
|
3942
3943
|
}
|
|
3943
3944
|
return { getEditorRender: s };
|
|
3944
3945
|
}
|
|
3945
|
-
function
|
|
3946
|
+
function Ls() {
|
|
3946
3947
|
const e = c(!1), t = c("复制成功");
|
|
3947
3948
|
return {
|
|
3948
3949
|
feedbackStyle: P(() => {
|
|
@@ -3968,11 +3969,11 @@ function js() {
|
|
|
3968
3969
|
toShowFeedback: e
|
|
3969
3970
|
};
|
|
3970
3971
|
}
|
|
3971
|
-
function
|
|
3972
|
+
function js(e, t) {
|
|
3972
3973
|
const n = t.getEditorRender(e.promptEditorType);
|
|
3973
3974
|
return () => n && n();
|
|
3974
3975
|
}
|
|
3975
|
-
function
|
|
3976
|
+
function As(e) {
|
|
3976
3977
|
const t = c(3), n = c(480), o = P(() => !!e.value && !!e.value.date), a = P(() => `发生时间 : ${e.value && e.value.date || ""}`), l = P(() => !!e.value && !!e.value.detail), s = P(() => {
|
|
3977
3978
|
const N = `${n.value}px`;
|
|
3978
3979
|
return {
|
|
@@ -3990,14 +3991,14 @@ function Hs(e) {
|
|
|
3990
3991
|
};
|
|
3991
3992
|
return N["text-align"] = u.value ? "" : "right", N;
|
|
3992
3993
|
});
|
|
3993
|
-
function
|
|
3994
|
+
function _(N, m) {
|
|
3994
3995
|
u.value = !u.value, t.value = u.value ? 20 : 3;
|
|
3995
3996
|
}
|
|
3996
3997
|
function E(N) {
|
|
3997
|
-
return
|
|
3998
|
+
return _();
|
|
3998
3999
|
}
|
|
3999
4000
|
function O(N) {
|
|
4000
|
-
return
|
|
4001
|
+
return _();
|
|
4001
4002
|
}
|
|
4002
4003
|
return () => r("div", {
|
|
4003
4004
|
class: "toast-msg-detail"
|
|
@@ -4017,21 +4018,21 @@ function Hs(e) {
|
|
|
4017
4018
|
style: "cursor: pointer;"
|
|
4018
4019
|
}, [v.value])])]);
|
|
4019
4020
|
}
|
|
4020
|
-
function
|
|
4021
|
+
function Hs(e) {
|
|
4021
4022
|
return () => r("p", {
|
|
4022
4023
|
class: "toast-msg-detail",
|
|
4023
4024
|
innerHTML: e.value
|
|
4024
4025
|
}, null);
|
|
4025
4026
|
}
|
|
4026
|
-
function
|
|
4027
|
+
function zs(e, t, n, o) {
|
|
4027
4028
|
const a = c(e.exceptionInfo), l = P(() => {
|
|
4028
4029
|
const p = {
|
|
4029
4030
|
"f-icon": !0
|
|
4030
|
-
},
|
|
4031
|
-
return p[
|
|
4031
|
+
}, _ = `f-icon-${t.value}`;
|
|
4032
|
+
return p[_] = !0, p;
|
|
4032
4033
|
}), s = P(() => n.value || a.value && a.value.message), i = P(() => o.value), f = P(() => !!o.value), u = P(() => !!a.value);
|
|
4033
4034
|
function v() {
|
|
4034
|
-
return u.value ?
|
|
4035
|
+
return u.value ? As(a) : f.value ? Hs(i) : () => null;
|
|
4035
4036
|
}
|
|
4036
4037
|
const d = v();
|
|
4037
4038
|
return () => r(ye, null, [r("div", {
|
|
@@ -4045,7 +4046,7 @@ function Gs(e, t, n, o) {
|
|
|
4045
4046
|
innerHTML: s.value
|
|
4046
4047
|
}, null), d()])]);
|
|
4047
4048
|
}
|
|
4048
|
-
function
|
|
4049
|
+
function Gs(e, t, n) {
|
|
4049
4050
|
const {
|
|
4050
4051
|
onCopy: o
|
|
4051
4052
|
} = t, {
|
|
@@ -4071,8 +4072,8 @@ function qs(e, t, n) {
|
|
|
4071
4072
|
style: "cursor: pointer;"
|
|
4072
4073
|
}, [s.value])]);
|
|
4073
4074
|
}
|
|
4074
|
-
function
|
|
4075
|
-
const a = c(e.type), l = c([]), s = c(e.exceptionInfo), i = c(e.okButtonText), f = c(e.cancelButtonText), u = c(!0), v = c(!0), d = P(() => !!(l.value && l.value.length)), p = P(() => s.value && s.value.date && s.value.message && s.value.detail),
|
|
4075
|
+
function qs(e, t, n, o) {
|
|
4076
|
+
const a = c(e.type), l = c([]), s = c(e.exceptionInfo), i = c(e.okButtonText), f = c(e.cancelButtonText), u = c(!0), v = c(!0), d = P(() => !!(l.value && l.value.length)), p = P(() => s.value && s.value.date && s.value.message && s.value.detail), _ = P(() => !(l.value && l.value.length) && (i.value || f.value)), E = P(() => v.value && i.value), O = P(() => u.value && f.value), N = Gs(e, n, o);
|
|
4076
4077
|
function m(b) {
|
|
4077
4078
|
a.value === "question" && t.emit("reject"), t.emit("close");
|
|
4078
4079
|
}
|
|
@@ -4081,11 +4082,11 @@ function Ws(e, t, n, o) {
|
|
|
4081
4082
|
}
|
|
4082
4083
|
return () => r("div", {
|
|
4083
4084
|
class: "modal-footer"
|
|
4084
|
-
}, [p.value && N(),
|
|
4085
|
+
}, [p.value && N(), _.value && O.value && r("button", {
|
|
4085
4086
|
type: "button",
|
|
4086
4087
|
class: "btn btn-secondary btn-lg",
|
|
4087
4088
|
onClick: m
|
|
4088
|
-
}, [f.value]),
|
|
4089
|
+
}, [f.value]), _.value && E.value && r("button", {
|
|
4089
4090
|
type: "button",
|
|
4090
4091
|
class: "btn btn-primary btn-lg",
|
|
4091
4092
|
onClick: h
|
|
@@ -4099,7 +4100,7 @@ function Ws(e, t, n, o) {
|
|
|
4099
4100
|
}
|
|
4100
4101
|
const Ae = /* @__PURE__ */ ae({
|
|
4101
4102
|
name: "FMessageBox",
|
|
4102
|
-
props:
|
|
4103
|
+
props: Vs,
|
|
4103
4104
|
emits: ["accept", "reject", "close"],
|
|
4104
4105
|
setup(e, t) {
|
|
4105
4106
|
const n = c(e.type), o = c(e.title), a = c(e.detail), l = P(() => {
|
|
@@ -4112,7 +4113,7 @@ const Ae = /* @__PURE__ */ ae({
|
|
|
4112
4113
|
}), s = P(() => {
|
|
4113
4114
|
const N = {};
|
|
4114
4115
|
return n.value === "prompt" ? N.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (N.padding = "0.5rem 1.5rem 1rem 1.5rem"), N;
|
|
4115
|
-
}), i =
|
|
4116
|
+
}), i = Rs(), f = Ps(e, n, o, a), u = Ls(), {
|
|
4116
4117
|
feedbackStyle: v,
|
|
4117
4118
|
feedbackMessage: d
|
|
4118
4119
|
} = u;
|
|
@@ -4121,15 +4122,15 @@ const Ae = /* @__PURE__ */ ae({
|
|
|
4121
4122
|
style: v.value
|
|
4122
4123
|
}, [d.value]);
|
|
4123
4124
|
}
|
|
4124
|
-
function
|
|
4125
|
+
function _() {
|
|
4125
4126
|
switch (n.value) {
|
|
4126
4127
|
case "prompt":
|
|
4127
|
-
return
|
|
4128
|
+
return js(e, f);
|
|
4128
4129
|
default:
|
|
4129
|
-
return
|
|
4130
|
+
return zs(e, n, o, a);
|
|
4130
4131
|
}
|
|
4131
4132
|
}
|
|
4132
|
-
const E =
|
|
4133
|
+
const E = _(), O = qs(e, t, i, u);
|
|
4133
4134
|
return () => r("div", {
|
|
4134
4135
|
class: "farris-messager"
|
|
4135
4136
|
}, [r("section", {
|
|
@@ -4145,7 +4146,7 @@ class we {
|
|
|
4145
4146
|
}), o = !1, a = n.type === "error" || n.type === "prompt", l = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", s = n.acceptCallback || (() => {
|
|
4146
4147
|
}), i = n.rejectCallback || (() => {
|
|
4147
4148
|
});
|
|
4148
|
-
let f = null, u = new
|
|
4149
|
+
let f = null, u = new Lt(f);
|
|
4149
4150
|
const v = () => {
|
|
4150
4151
|
f && (f == null || f.destroy(), u = null);
|
|
4151
4152
|
};
|
|
@@ -4157,7 +4158,7 @@ class we {
|
|
|
4157
4158
|
width: n.width || 400,
|
|
4158
4159
|
fitContent: !0,
|
|
4159
4160
|
showMaxButton: !1,
|
|
4160
|
-
render: () => r(Ae,
|
|
4161
|
+
render: () => r(Ae, Te(n, {
|
|
4161
4162
|
onAccept: s,
|
|
4162
4163
|
onReject: i,
|
|
4163
4164
|
onClose: v
|
|
@@ -4234,8 +4235,8 @@ class we {
|
|
|
4234
4235
|
Ae.install = (e) => {
|
|
4235
4236
|
e.component(Ae.name, Ae), e.provide("FMessageBoxService", we);
|
|
4236
4237
|
};
|
|
4237
|
-
var
|
|
4238
|
-
const
|
|
4238
|
+
var Zt = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(Zt || {}), en = /* @__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))(en || {});
|
|
4239
|
+
const Ws = [
|
|
4239
4240
|
{
|
|
4240
4241
|
value: "0",
|
|
4241
4242
|
name: "等于"
|
|
@@ -4272,7 +4273,7 @@ const Us = [
|
|
|
4272
4273
|
value: "8",
|
|
4273
4274
|
name: "结束是"
|
|
4274
4275
|
}
|
|
4275
|
-
],
|
|
4276
|
+
], Us = {
|
|
4276
4277
|
"button-edit": ["0", "1", " 6", "7", "8"],
|
|
4277
4278
|
"check-box": ["0"],
|
|
4278
4279
|
"combo-list": ["0", "1"],
|
|
@@ -4292,18 +4293,18 @@ const Us = [
|
|
|
4292
4293
|
"radio-group": ["0"],
|
|
4293
4294
|
text: ["0", "1", " 6", "7", "8"]
|
|
4294
4295
|
};
|
|
4295
|
-
function
|
|
4296
|
+
function Xs(e, t, n) {
|
|
4296
4297
|
const { fieldMap: o } = n;
|
|
4297
4298
|
function a(l) {
|
|
4298
4299
|
const s = o.get(l.fieldCode);
|
|
4299
4300
|
if (!s)
|
|
4300
4301
|
return [];
|
|
4301
|
-
const i = s.editor.type, f = new Set(
|
|
4302
|
-
return
|
|
4302
|
+
const i = s.editor.type, f = new Set(Us[i]);
|
|
4303
|
+
return Ws.filter((v) => f.has(v.value));
|
|
4303
4304
|
}
|
|
4304
4305
|
return { getCompareOperators: a };
|
|
4305
4306
|
}
|
|
4306
|
-
function
|
|
4307
|
+
function tn() {
|
|
4307
4308
|
const e = c({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
4308
4309
|
let o = 0;
|
|
4309
4310
|
function a() {
|
|
@@ -4311,9 +4312,9 @@ function nn() {
|
|
|
4311
4312
|
id: "",
|
|
4312
4313
|
fieldCode: "",
|
|
4313
4314
|
fieldName: "",
|
|
4314
|
-
compareType:
|
|
4315
|
-
valueType:
|
|
4316
|
-
value: new
|
|
4315
|
+
compareType: en.Equal,
|
|
4316
|
+
valueType: Zt.Value,
|
|
4317
|
+
value: new Ut(),
|
|
4317
4318
|
relation: 0,
|
|
4318
4319
|
conditionId: Date.now()
|
|
4319
4320
|
};
|
|
@@ -4346,7 +4347,7 @@ function nn() {
|
|
|
4346
4347
|
return k;
|
|
4347
4348
|
}
|
|
4348
4349
|
function u(g, M, k, F, T) {
|
|
4349
|
-
for (let
|
|
4350
|
+
for (let x = M; x <= 0; x++)
|
|
4350
4351
|
F.pop();
|
|
4351
4352
|
const y = F[F.length - 1];
|
|
4352
4353
|
if (!y)
|
|
@@ -4363,20 +4364,20 @@ function nn() {
|
|
|
4363
4364
|
let I = g[g.length - 1];
|
|
4364
4365
|
if (!I)
|
|
4365
4366
|
throw new Error("The group path is out of range");
|
|
4366
|
-
const $ = M.get(F) || 0,
|
|
4367
|
+
const $ = M.get(F) || 0, x = M.get(k) || 0;
|
|
4367
4368
|
if (k < 0 || k === F)
|
|
4368
4369
|
return g[g.length - 1];
|
|
4369
|
-
const D = $ -
|
|
4370
|
-
return I = D > 0 ? f(
|
|
4370
|
+
const D = $ - x, L = T && T.relation !== void 0 ? T.relation : 1;
|
|
4371
|
+
return I = D > 0 ? f(x, D, I, g, L) : I, I = D < 0 ? u(x, D, I, g, L) : I, I = D === 0 && x > 0 && $ > 0 && T && y && !!T.rBracket && !!y.lBracket ? v(x, I, g, L) : I, I;
|
|
4371
4372
|
}
|
|
4372
4373
|
function p(g) {
|
|
4373
4374
|
const k = { relation: g.length && g[0].relation !== void 0 ? g[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, F = [k], T = i(g);
|
|
4374
4375
|
return g.forEach((y, I) => {
|
|
4375
|
-
const $ = I - 1,
|
|
4376
|
+
const $ = I - 1, x = g[$], D = d(F, T, $, I, x, y);
|
|
4376
4377
|
D.items.push(y), t.set(y.conditionId, D);
|
|
4377
4378
|
}), e.value = k, k;
|
|
4378
4379
|
}
|
|
4379
|
-
function
|
|
4380
|
+
function _() {
|
|
4380
4381
|
const g = a();
|
|
4381
4382
|
t.set(g.conditionId, e.value), e.value.items.push(g);
|
|
4382
4383
|
}
|
|
@@ -4393,12 +4394,12 @@ function nn() {
|
|
|
4393
4394
|
g.reduce((T, y) => {
|
|
4394
4395
|
const I = y.conditionId !== void 0, $ = y.groupId !== void 0;
|
|
4395
4396
|
if (I) {
|
|
4396
|
-
const
|
|
4397
|
-
k.push(
|
|
4397
|
+
const x = y;
|
|
4398
|
+
k.push(x), T.items.set(x.conditionId, x);
|
|
4398
4399
|
}
|
|
4399
4400
|
if ($) {
|
|
4400
|
-
const
|
|
4401
|
-
F.push(
|
|
4401
|
+
const x = y;
|
|
4402
|
+
F.push(x), T.groups.set(x.groupId, x);
|
|
4402
4403
|
}
|
|
4403
4404
|
return T;
|
|
4404
4405
|
}, M);
|
|
@@ -4458,7 +4459,7 @@ function nn() {
|
|
|
4458
4459
|
M && (M.items = M.items.filter((k) => k.conditionId !== g.conditionId), t.delete(g.conditionId), S(), s());
|
|
4459
4460
|
}
|
|
4460
4461
|
return {
|
|
4461
|
-
addCondition:
|
|
4462
|
+
addCondition: _,
|
|
4462
4463
|
changeGroupRelation: C,
|
|
4463
4464
|
conditionGroupMap: t,
|
|
4464
4465
|
getConditions: w,
|
|
@@ -4472,7 +4473,7 @@ function nn() {
|
|
|
4472
4473
|
unGroup: b
|
|
4473
4474
|
};
|
|
4474
4475
|
}
|
|
4475
|
-
function
|
|
4476
|
+
function Ys(e, t, n) {
|
|
4476
4477
|
const o = c(/* @__PURE__ */ new Set()), a = c(/* @__PURE__ */ new Set()), { conditionGroupMap: l, groupParentMap: s } = n;
|
|
4477
4478
|
let i, f;
|
|
4478
4479
|
function u(m) {
|
|
@@ -4491,16 +4492,16 @@ function Ks(e, t, n) {
|
|
|
4491
4492
|
const b = l.get(m.conditionId);
|
|
4492
4493
|
u(b).forEach((w) => v(w));
|
|
4493
4494
|
}
|
|
4494
|
-
const p = P(() => o.value.size === 0 && a.value.size === 1),
|
|
4495
|
-
a.value.delete(m.groupId), m.items.forEach((b) => f(b)), m.children.forEach((b) => !p.value &&
|
|
4495
|
+
const p = P(() => o.value.size === 0 && a.value.size === 1), _ = function(m) {
|
|
4496
|
+
a.value.delete(m.groupId), m.items.forEach((b) => f(b)), m.children.forEach((b) => !p.value && _(b));
|
|
4496
4497
|
const h = s.get(m.groupId);
|
|
4497
|
-
h && a.value.has(h.groupId) &&
|
|
4498
|
+
h && a.value.has(h.groupId) && _(h);
|
|
4498
4499
|
};
|
|
4499
4500
|
f = function(m) {
|
|
4500
4501
|
const { conditionId: h } = m;
|
|
4501
4502
|
if (o.value.has(h) && o.value.delete(h), a.value.size > 0) {
|
|
4502
4503
|
const b = l.get(h);
|
|
4503
|
-
b && a.value.has(b.groupId) &&
|
|
4504
|
+
b && a.value.has(b.groupId) && _(b);
|
|
4504
4505
|
}
|
|
4505
4506
|
};
|
|
4506
4507
|
function E(m) {
|
|
@@ -4518,19 +4519,19 @@ function Ks(e, t, n) {
|
|
|
4518
4519
|
}
|
|
4519
4520
|
const lt = /* @__PURE__ */ ae({
|
|
4520
4521
|
name: "FConditionList",
|
|
4521
|
-
props:
|
|
4522
|
+
props: Wt,
|
|
4522
4523
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
4523
4524
|
setup(e, t) {
|
|
4524
|
-
const n = c(e.key), o = c(e.conditions), a =
|
|
4525
|
+
const n = c(e.key), o = c(e.conditions), a = Yt(e), {
|
|
4525
4526
|
convertToSingleControl: l,
|
|
4526
4527
|
fields: s,
|
|
4527
4528
|
fieldMap: i,
|
|
4528
4529
|
loadFieldConfigs: f
|
|
4529
|
-
} = a, u =
|
|
4530
|
+
} = a, u = tn(), {
|
|
4530
4531
|
addCondition: v,
|
|
4531
4532
|
changeGroupRelation: d,
|
|
4532
4533
|
getConditions: p,
|
|
4533
|
-
group:
|
|
4534
|
+
group: _,
|
|
4534
4535
|
insertConditionTo: E,
|
|
4535
4536
|
loadConditionGroup: O,
|
|
4536
4537
|
refresh: N,
|
|
@@ -4539,12 +4540,12 @@ const lt = /* @__PURE__ */ ae({
|
|
|
4539
4540
|
unGroup: b
|
|
4540
4541
|
} = u, {
|
|
4541
4542
|
createConditionValue: C
|
|
4542
|
-
} =
|
|
4543
|
+
} = Xt(), w = Ys(e, t, u), {
|
|
4543
4544
|
selectedItems: V,
|
|
4544
4545
|
toggleSelect: S
|
|
4545
4546
|
} = w, {
|
|
4546
4547
|
getCompareOperators: B
|
|
4547
|
-
} =
|
|
4548
|
+
} = Xs(e, t, a);
|
|
4548
4549
|
f(!1), s.value = l(s.value), O(o.value);
|
|
4549
4550
|
function g(D) {
|
|
4550
4551
|
var R;
|
|
@@ -4592,7 +4593,7 @@ const lt = /* @__PURE__ */ ae({
|
|
|
4592
4593
|
onChange: (A) => M(A, L)
|
|
4593
4594
|
}, null)]), r("div", {
|
|
4594
4595
|
class: "condition-list-item-control mr-3"
|
|
4595
|
-
}, [r(
|
|
4596
|
+
}, [r(ws, {
|
|
4596
4597
|
editor: (R = i.get(L.fieldCode)) == null ? void 0 : R.editor,
|
|
4597
4598
|
showLabel: !1,
|
|
4598
4599
|
modelValue: L.value.value,
|
|
@@ -4640,9 +4641,9 @@ const lt = /* @__PURE__ */ ae({
|
|
|
4640
4641
|
}, [T(D), D.children && D.children.map((L) => I(L))]), y(D)]);
|
|
4641
4642
|
}
|
|
4642
4643
|
function $() {
|
|
4643
|
-
|
|
4644
|
+
_(w.getSelectedGroupItem()), w.clear();
|
|
4644
4645
|
}
|
|
4645
|
-
function
|
|
4646
|
+
function x() {
|
|
4646
4647
|
return r("div", {
|
|
4647
4648
|
class: "condition-list-bottom"
|
|
4648
4649
|
}, [r("div", {
|
|
@@ -4669,13 +4670,13 @@ const lt = /* @__PURE__ */ ae({
|
|
|
4669
4670
|
key: n.value
|
|
4670
4671
|
}, [r("div", {
|
|
4671
4672
|
class: "condition-list-body"
|
|
4672
|
-
}, [I(h.value)]),
|
|
4673
|
+
}, [I(h.value)]), x()]);
|
|
4673
4674
|
}
|
|
4674
4675
|
});
|
|
4675
4676
|
lt.install = (e) => {
|
|
4676
|
-
e.component(
|
|
4677
|
+
e.component(Tt.name, Tt).component(lt.name, lt);
|
|
4677
4678
|
};
|
|
4678
|
-
const
|
|
4679
|
+
const Ks = [
|
|
4679
4680
|
"equal",
|
|
4680
4681
|
"notEqual",
|
|
4681
4682
|
"greaterThan",
|
|
@@ -4685,16 +4686,16 @@ const Js = [
|
|
|
4685
4686
|
"contain",
|
|
4686
4687
|
"startWidth",
|
|
4687
4688
|
"endWidth"
|
|
4688
|
-
],
|
|
4689
|
+
], Js = {
|
|
4689
4690
|
equal: (e, t, n) => e && e[t] === n,
|
|
4690
4691
|
notEqual: (e, t, n) => e && e[t] !== n,
|
|
4691
4692
|
contain: (e, t, n) => e ? (e[t] || "").indexOf(n) > -1 : !1,
|
|
4692
4693
|
startWidth: (e, t, n) => e ? (e[t] || "").startsWith(n) : !1,
|
|
4693
4694
|
endWidth: (e, t, n) => e ? (e[t] || "").endsWith(n) : !1
|
|
4694
|
-
},
|
|
4695
|
+
}, Qs = {
|
|
4695
4696
|
equal: (e, t, n) => e && e[t] === n,
|
|
4696
4697
|
notEqual: (e, t, n) => e && e[t] !== n
|
|
4697
|
-
},
|
|
4698
|
+
}, Zs = {
|
|
4698
4699
|
equal: (e, t, n) => {
|
|
4699
4700
|
if (e) {
|
|
4700
4701
|
const o = new Date(new Date(n).toLocaleDateString()).valueOf();
|
|
@@ -4737,10 +4738,10 @@ const Js = [
|
|
|
4737
4738
|
}
|
|
4738
4739
|
return !1;
|
|
4739
4740
|
}
|
|
4740
|
-
},
|
|
4741
|
+
}, er = {
|
|
4741
4742
|
equal: (e, t, n) => e ? String(n).split(",").includes(String(e[t])) : !1,
|
|
4742
4743
|
notEqual: (e, t, n) => e ? String(n).split(",").findIndex((a) => a === String(e[t])) === -1 : !1
|
|
4743
|
-
},
|
|
4744
|
+
}, tr = {
|
|
4744
4745
|
equal: (e, t, n) => {
|
|
4745
4746
|
if (e) {
|
|
4746
4747
|
const o = Number.parseFloat(String(n)), a = Number.parseFloat(String(e[t]));
|
|
@@ -4784,13 +4785,13 @@ const Js = [
|
|
|
4784
4785
|
return !1;
|
|
4785
4786
|
}
|
|
4786
4787
|
};
|
|
4787
|
-
function
|
|
4788
|
-
const e = c([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } =
|
|
4789
|
-
["boolean",
|
|
4790
|
-
["datetime",
|
|
4791
|
-
["enum",
|
|
4792
|
-
["number",
|
|
4793
|
-
["text",
|
|
4788
|
+
function nr() {
|
|
4789
|
+
const e = c([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } = tn(), o = /* @__PURE__ */ new Map([
|
|
4790
|
+
["boolean", Qs],
|
|
4791
|
+
["datetime", Zs],
|
|
4792
|
+
["enum", er],
|
|
4793
|
+
["number", tr],
|
|
4794
|
+
["text", Js]
|
|
4794
4795
|
]);
|
|
4795
4796
|
function a(d) {
|
|
4796
4797
|
t.delete(d), e.value = Array.from(t.values());
|
|
@@ -4799,23 +4800,23 @@ function or() {
|
|
|
4799
4800
|
t.clear(), e.value = [];
|
|
4800
4801
|
}
|
|
4801
4802
|
function s(d) {
|
|
4802
|
-
const { valueType: p } = d.value,
|
|
4803
|
+
const { valueType: p } = d.value, _ = d.compareType || "0", E = Ks[Number(_)];
|
|
4803
4804
|
return o.get(p)[E];
|
|
4804
4805
|
}
|
|
4805
4806
|
function i(d) {
|
|
4806
|
-
const p = d.relation === 2 ? 0 : 1,
|
|
4807
|
+
const p = d.relation === 2 ? 0 : 1, _ = d.items.map((O) => {
|
|
4807
4808
|
const N = s(O);
|
|
4808
4809
|
return (h) => N(h, O.fieldCode, O.value.getValue());
|
|
4809
4810
|
}), E = d.children && d.children.length ? d.children.map((O) => i(O)) : [];
|
|
4810
|
-
return { relation: p, filterFunctions:
|
|
4811
|
+
return { relation: p, filterFunctions: _, children: E };
|
|
4811
4812
|
}
|
|
4812
4813
|
function f() {
|
|
4813
4814
|
const d = n(e.value);
|
|
4814
4815
|
return i(d);
|
|
4815
4816
|
}
|
|
4816
4817
|
function u(d, p) {
|
|
4817
|
-
const
|
|
4818
|
-
return p.relation === 1 ?
|
|
4818
|
+
const _ = p.filterFunctions.map((O) => O(d)), E = p.children.map((O) => u(d, O));
|
|
4819
|
+
return p.relation === 1 ? _.every((O) => O) && E.every((O) => O) : _.includes(!0) || E.includes(!0);
|
|
4819
4820
|
}
|
|
4820
4821
|
function v(d) {
|
|
4821
4822
|
const p = f();
|
|
@@ -4823,7 +4824,7 @@ function or() {
|
|
|
4823
4824
|
}
|
|
4824
4825
|
return { apply: v, clearCondition: l, conditions: e, removeCondition: a };
|
|
4825
4826
|
}
|
|
4826
|
-
function
|
|
4827
|
+
function nn(e, t) {
|
|
4827
4828
|
var m;
|
|
4828
4829
|
const { idField: n } = t, o = c(e.summary), a = c(e.group), l = c(((m = e.group) == null ? void 0 : m.groupFields) || []), s = P(() => {
|
|
4829
4830
|
var h;
|
|
@@ -4866,7 +4867,7 @@ function on(e, t) {
|
|
|
4866
4867
|
B.nestGroup = /* @__PURE__ */ new Map(), p(B.nestGroup, B.details, C + 1, w, V), B.details = [];
|
|
4867
4868
|
}));
|
|
4868
4869
|
}
|
|
4869
|
-
function
|
|
4870
|
+
function _(h, b) {
|
|
4870
4871
|
return e.group && e.group.formatter ? e.group.formatter(h.value, { ...h, total: b }) : `${h.title}:${h.value} (${b})`;
|
|
4871
4872
|
}
|
|
4872
4873
|
function E(h) {
|
|
@@ -4897,7 +4898,7 @@ function on(e, t) {
|
|
|
4897
4898
|
}
|
|
4898
4899
|
C.groupSummaries && C.groupSummaries.size && C.groupSummaries.forEach((S, B) => {
|
|
4899
4900
|
w[B] = S;
|
|
4900
|
-
}), w[n.value] = `group_of_${C.field}_${C.value}`, w[C.field] =
|
|
4901
|
+
}), w[n.value] = `group_of_${C.field}_${C.value}`, w[C.field] = _(C, V);
|
|
4901
4902
|
}), b.forEach((C, w) => {
|
|
4902
4903
|
C.__fv_data_index__ = w;
|
|
4903
4904
|
}), b;
|
|
@@ -4914,18 +4915,18 @@ function on(e, t) {
|
|
|
4914
4915
|
}
|
|
4915
4916
|
return { collpaseGroupIconClass: N, generateGroupData: O, groupFields: l, shouldGroupingData: s, showGroupPanel: i };
|
|
4916
4917
|
}
|
|
4917
|
-
function
|
|
4918
|
+
function or(e, t, n, o) {
|
|
4918
4919
|
const a = c(!!e.hierarchy), { idField: l } = o, { collapseField: s, hasChildrenField: i, parentIdField: f } = n, u = /* @__PURE__ */ new Map();
|
|
4919
4920
|
function v(F, T) {
|
|
4920
4921
|
const y = /* @__PURE__ */ new Map();
|
|
4921
4922
|
return F.reduce((I, $) => {
|
|
4922
|
-
const
|
|
4923
|
-
if (
|
|
4924
|
-
const L = T.get(
|
|
4923
|
+
const x = $[f.value] !== void 0 ? $[f.value] : "";
|
|
4924
|
+
if (x && T.has(x)) {
|
|
4925
|
+
const L = T.get(x);
|
|
4925
4926
|
$.__fv_parent_index__ = L.__fv_index__, L.__fv_hasChildren__ = !0;
|
|
4926
4927
|
}
|
|
4927
|
-
const D = I.has(
|
|
4928
|
-
return D.push($), I.set(
|
|
4928
|
+
const D = I.has(x) ? I.get(x) : [];
|
|
4929
|
+
return D.push($), I.set(x, D), I;
|
|
4929
4930
|
}, y), y;
|
|
4930
4931
|
}
|
|
4931
4932
|
function d(F) {
|
|
@@ -4946,7 +4947,7 @@ function ar(e, t, n, o) {
|
|
|
4946
4947
|
});
|
|
4947
4948
|
});
|
|
4948
4949
|
}
|
|
4949
|
-
function
|
|
4950
|
+
function _(F) {
|
|
4950
4951
|
F.forEach((T) => {
|
|
4951
4952
|
const y = new Set(T.__fv_children_index__);
|
|
4952
4953
|
T.__fv_children_index__ = [...y].sort((I, $) => I - $);
|
|
@@ -4958,7 +4959,7 @@ function ar(e, t, n, o) {
|
|
|
4958
4959
|
Array.from(I.keys()).map(($) => T.get($)).forEach(($) => {
|
|
4959
4960
|
$.__fv_children_index__.push(y.__fv_index__);
|
|
4960
4961
|
});
|
|
4961
|
-
}),
|
|
4962
|
+
}), _(F);
|
|
4962
4963
|
}
|
|
4963
4964
|
function O(F) {
|
|
4964
4965
|
F.forEach((T) => {
|
|
@@ -4970,8 +4971,8 @@ function ar(e, t, n, o) {
|
|
|
4970
4971
|
}
|
|
4971
4972
|
function m(F, T) {
|
|
4972
4973
|
Array.from(T.keys()).forEach((y) => {
|
|
4973
|
-
T.get(y).reduce(($,
|
|
4974
|
-
const D =
|
|
4974
|
+
T.get(y).reduce(($, x) => {
|
|
4975
|
+
const D = x[l.value], L = F.get(x[l.value]), R = F.get(y);
|
|
4975
4976
|
return R && (R.children.set(D, L), R.children.set(D, L), L.parentId = y, L.parentIndex = R.index, L.parents.set(y, R)), $;
|
|
4976
4977
|
}, F);
|
|
4977
4978
|
});
|
|
@@ -4999,8 +5000,8 @@ function ar(e, t, n, o) {
|
|
|
4999
5000
|
}
|
|
5000
5001
|
function w(F) {
|
|
5001
5002
|
u.clear(), F.forEach((I, $) => {
|
|
5002
|
-
const
|
|
5003
|
-
u.set(
|
|
5003
|
+
const x = I[l.value];
|
|
5004
|
+
u.set(x, N(x, $));
|
|
5004
5005
|
});
|
|
5005
5006
|
const T = d(F), y = v(F, T);
|
|
5006
5007
|
return m(u, y), b(F, u), C(u), u;
|
|
@@ -5017,23 +5018,23 @@ function ar(e, t, n, o) {
|
|
|
5017
5018
|
const T = d(F), y = v(F, T);
|
|
5018
5019
|
return F.forEach((I, $) => {
|
|
5019
5020
|
var R;
|
|
5020
|
-
const
|
|
5021
|
+
const x = I[l.value], D = y.has(x) ? (R = y.get(x)) == null ? void 0 : R.map((A) => A.__fv_index__) : [], L = N(x, $);
|
|
5021
5022
|
I.__fv_graph_node__ = L, I.__fv_children_index__ = D, I.__fv_descendant_index__ = [...D], I.__fv_parents__ = /* @__PURE__ */ new Map(), S(I) && (I[s.value] = !0);
|
|
5022
5023
|
}), p(F), E(F, T), e.showLines && O(F), F;
|
|
5023
5024
|
}
|
|
5024
5025
|
function g(F, T, y) {
|
|
5025
|
-
const $ = y.value[F][l.value],
|
|
5026
|
-
if (
|
|
5027
|
-
const D = u.get(
|
|
5026
|
+
const $ = y.value[F][l.value], x = u.get($);
|
|
5027
|
+
if (x) {
|
|
5028
|
+
const D = u.get(x.parentId);
|
|
5028
5029
|
let L = y.value.length - 1;
|
|
5029
5030
|
if (D) {
|
|
5030
|
-
const R = Array.from(D.children.keys()).indexOf(
|
|
5031
|
+
const R = Array.from(D.children.keys()).indexOf(x.id);
|
|
5031
5032
|
if (R === D.children.size - 1) {
|
|
5032
5033
|
const K = Array.from(D.descendant.values())[D.descendant.size - 1];
|
|
5033
|
-
L = y.value.findIndex((
|
|
5034
|
+
L = y.value.findIndex((ue) => ue[l.value] === K.id) + 1;
|
|
5034
5035
|
} else {
|
|
5035
5036
|
const K = Array.from(D.children.values())[R + 1];
|
|
5036
|
-
L = y.value.findIndex((
|
|
5037
|
+
L = y.value.findIndex((ue) => ue[l.value] === K.id);
|
|
5037
5038
|
}
|
|
5038
5039
|
T[i.value] = !1, T[f.value] = D.id, y.value.splice(L, 0, T);
|
|
5039
5040
|
}
|
|
@@ -5049,8 +5050,8 @@ function ar(e, t, n, o) {
|
|
|
5049
5050
|
function k(F, T) {
|
|
5050
5051
|
const y = F[l.value], I = u.get(y), $ = Array.from(I.descendant.keys());
|
|
5051
5052
|
$.unshift(y);
|
|
5052
|
-
const
|
|
5053
|
-
if (
|
|
5053
|
+
const x = u.get(I.parentId);
|
|
5054
|
+
if (x && (x.children.delete(y), x.children.size === 0)) {
|
|
5054
5055
|
const L = T.find((R) => R[l.value] === I.parentId);
|
|
5055
5056
|
L[i.value] = !1, L[s.value] = !1;
|
|
5056
5057
|
}
|
|
@@ -5058,7 +5059,7 @@ function ar(e, t, n, o) {
|
|
|
5058
5059
|
}
|
|
5059
5060
|
return { generateHierarchyData: B, hasRealChildren: V, insertSibling: g, insertChild: M, shouldStratifyData: a, trimmedOriginalData: k };
|
|
5060
5061
|
}
|
|
5061
|
-
const
|
|
5062
|
+
const ar = {
|
|
5062
5063
|
showCloseButton: { type: Boolean, default: !0 },
|
|
5063
5064
|
position: { type: String, default: "top-center" },
|
|
5064
5065
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -5070,13 +5071,13 @@ const lr = {
|
|
|
5070
5071
|
id: { type: String },
|
|
5071
5072
|
animate: { type: String, default: "fadeIn" },
|
|
5072
5073
|
options: { type: Object }
|
|
5073
|
-
},
|
|
5074
|
+
}, lr = {
|
|
5074
5075
|
showCloseButton: { type: Boolean, default: !0 },
|
|
5075
5076
|
animate: { type: String, default: "fadeIn" },
|
|
5076
5077
|
options: { type: Object }
|
|
5077
5078
|
}, dt = /* @__PURE__ */ ae({
|
|
5078
5079
|
name: "Toast",
|
|
5079
|
-
props:
|
|
5080
|
+
props: lr,
|
|
5080
5081
|
emits: ["close", "click"],
|
|
5081
5082
|
setup: (e, t) => {
|
|
5082
5083
|
const n = c(e.animate), o = "fadeOut", a = P(() => e.options), l = c(!1), s = P(() => {
|
|
@@ -5091,7 +5092,7 @@ const lr = {
|
|
|
5091
5092
|
};
|
|
5092
5093
|
return C[b] = !0, C;
|
|
5093
5094
|
}), f = P(() => a.value.title || a.value.message), u = P(() => a.value.title && a.value.message), v = P(() => !a.value.title && a.value.message), d = P(() => e.showCloseButton), p = P(() => !!a.value.buttons || !!t.slots.default);
|
|
5094
|
-
function
|
|
5095
|
+
function _(m) {
|
|
5095
5096
|
m.stopPropagation(), m.preventDefault(), l.value = !1, setTimeout(() => {
|
|
5096
5097
|
t.emit("close", a.value);
|
|
5097
5098
|
}, 200);
|
|
@@ -5118,7 +5119,7 @@ const lr = {
|
|
|
5118
5119
|
}, [d.value && r("button", {
|
|
5119
5120
|
title: "close",
|
|
5120
5121
|
class: "toast-close f-btn-icon f-bare",
|
|
5121
|
-
onClick:
|
|
5122
|
+
onClick: _
|
|
5122
5123
|
}, [r("span", {
|
|
5123
5124
|
class: "f-icon modal_close"
|
|
5124
5125
|
}, null)]), f.value && r("section", {
|
|
@@ -5149,7 +5150,7 @@ const lr = {
|
|
|
5149
5150
|
}
|
|
5150
5151
|
}), He = /* @__PURE__ */ ae({
|
|
5151
5152
|
name: "Notify",
|
|
5152
|
-
props:
|
|
5153
|
+
props: ar,
|
|
5153
5154
|
emits: ["close", "empty"],
|
|
5154
5155
|
setup(e, t) {
|
|
5155
5156
|
const n = P(() => ({
|
|
@@ -5160,11 +5161,11 @@ const lr = {
|
|
|
5160
5161
|
top: 20,
|
|
5161
5162
|
bottom: 12
|
|
5162
5163
|
}, a = c(), l = c(e.options), s = c(e.showCloseButton), i = P(() => e.position || "bottom-right"), f = P(() => e.timeout != null ? e.timeout : 3e3), u = P(() => {
|
|
5163
|
-
const p = e.bottom ? e.bottom : o.bottom,
|
|
5164
|
+
const p = e.bottom ? e.bottom : o.bottom, _ = e.top ? e.top : o.top, E = {
|
|
5164
5165
|
transition: "all 0.2s ease",
|
|
5165
5166
|
left: i.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
5166
5167
|
right: i.value.indexOf("right") > -1 ? `${e.right ? e.right : o.right}px` : "",
|
|
5167
|
-
top: i.value.indexOf("top") > -1 ? `${
|
|
5168
|
+
top: i.value.indexOf("top") > -1 ? `${_}px` : "",
|
|
5168
5169
|
bottom: i.value.indexOf("bottom") > -1 ? `${p}px` : ""
|
|
5169
5170
|
};
|
|
5170
5171
|
return i.value.indexOf("center") > -1 && (E.left = "50%", E.marginLeft = "calc(-24rem / 2)", i.value === "center-center" && (E.top = "50%", E.transform = "translate(-50%, -50%)")), E;
|
|
@@ -5179,7 +5180,7 @@ const lr = {
|
|
|
5179
5180
|
container: a,
|
|
5180
5181
|
notifyPosition: i
|
|
5181
5182
|
});
|
|
5182
|
-
function d(p,
|
|
5183
|
+
function d(p, _) {
|
|
5183
5184
|
v();
|
|
5184
5185
|
}
|
|
5185
5186
|
return () => r("div", {
|
|
@@ -5194,7 +5195,7 @@ const lr = {
|
|
|
5194
5195
|
}, null)]);
|
|
5195
5196
|
}
|
|
5196
5197
|
});
|
|
5197
|
-
class
|
|
5198
|
+
class on {
|
|
5198
5199
|
constructor() {
|
|
5199
5200
|
z(this, "notifyRefs", []);
|
|
5200
5201
|
z(this, "globalConfig", ve({}));
|
|
@@ -5208,7 +5209,7 @@ class an {
|
|
|
5208
5209
|
...t
|
|
5209
5210
|
}), l = document.createElement("div");
|
|
5210
5211
|
l.style.display = "contents";
|
|
5211
|
-
const s =
|
|
5212
|
+
const s = Bt({
|
|
5212
5213
|
setup() {
|
|
5213
5214
|
const i = c();
|
|
5214
5215
|
function f() {
|
|
@@ -5227,12 +5228,12 @@ class an {
|
|
|
5227
5228
|
document.body.removeChild(l);
|
|
5228
5229
|
}), me(() => {
|
|
5229
5230
|
n.updateNotifyPositionForCreate(a, i);
|
|
5230
|
-
}), () => r(
|
|
5231
|
+
}), () => r(Mt, {
|
|
5231
5232
|
mode: "out-in",
|
|
5232
5233
|
name: "fade",
|
|
5233
5234
|
appear: !0
|
|
5234
5235
|
}, {
|
|
5235
|
-
default: () => [r(He,
|
|
5236
|
+
default: () => [r(He, Te({
|
|
5236
5237
|
ref: i
|
|
5237
5238
|
}, a, {
|
|
5238
5239
|
onClose: f
|
|
@@ -5305,53 +5306,52 @@ class an {
|
|
|
5305
5306
|
}), this.notifyRefs.length = 0;
|
|
5306
5307
|
}
|
|
5307
5308
|
}
|
|
5308
|
-
const
|
|
5309
|
+
const sr = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
5309
5310
|
He.install = (e) => {
|
|
5310
5311
|
e.component(He.name, He), e.component(dt.name, dt);
|
|
5311
|
-
const t = new
|
|
5312
|
-
e.provide(
|
|
5312
|
+
const t = new on();
|
|
5313
|
+
e.provide(sr, t), e.provide("FNotifyService", t);
|
|
5313
5314
|
};
|
|
5314
|
-
function
|
|
5315
|
-
var Ct
|
|
5316
|
-
const { pageSize: l, total: s, shouldRenderPagination: i, currentPage: f, mode: u } = a, v = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(),
|
|
5315
|
+
function rr(e, t, n, o, a) {
|
|
5316
|
+
var Ct;
|
|
5317
|
+
const { pageSize: l, total: s, shouldRenderPagination: i, currentPage: f, mode: u } = a, v = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), O = c([]), N = c([]), m = nr(), h = nn(e, o), { generateGroupData: b, groupFields: C, shouldGroupingData: w } = h, V = c(e.data), S = or(e, V, n, o), {
|
|
5317
5318
|
generateHierarchyData: B,
|
|
5318
5319
|
hasRealChildren: g,
|
|
5319
5320
|
insertSibling: M,
|
|
5320
5321
|
insertChild: k,
|
|
5321
5322
|
shouldStratifyData: F,
|
|
5322
5323
|
trimmedOriginalData: T
|
|
5323
|
-
} = S, { idField: y, reviseIdentifyField: I } = o, $ = c(e.newDataItem),
|
|
5324
|
+
} = S, { idField: y, reviseIdentifyField: I } = o, $ = c(e.newDataItem), x = c(e.data), D = c(e.data), { flatTreeData: L } = xr(e);
|
|
5324
5325
|
function R(j) {
|
|
5325
5326
|
return L(j);
|
|
5326
5327
|
}
|
|
5327
5328
|
if (e.data && ((Ct = e.data[0]) != null && Ct.children)) {
|
|
5328
5329
|
const j = R(e.data);
|
|
5329
|
-
V.value = j,
|
|
5330
|
+
V.value = j, x.value = j, D.value = j;
|
|
5330
5331
|
}
|
|
5331
5332
|
const A = c(e.summary), K = P(() => {
|
|
5332
5333
|
const j = A.value;
|
|
5333
5334
|
return (j == null ? void 0 : j.groupFields) || [];
|
|
5334
5335
|
});
|
|
5335
5336
|
let ee = /* @__PURE__ */ new Map();
|
|
5336
|
-
const
|
|
5337
|
+
const ue = P(() => {
|
|
5338
|
+
var j;
|
|
5339
|
+
return ((j = x.value) == null ? void 0 : j.length) || 0;
|
|
5340
|
+
}), xe = c(e.pagination), Ie = new on(), ge = P(() => e.hierarchy ? 0 : i.value ? u.value === "server" ? 0 : (f.value - 1) * l.value : 0), Pe = P(() => i.value ? u.value === "server" ? Math.min(l.value, ue.value) : Math.min(ge.value + l.value, s.value, ue.value) : ue.value);
|
|
5337
5341
|
Q(() => V.value.length, (j, X) => {
|
|
5338
5342
|
j !== X && (s.value = j);
|
|
5339
|
-
}), Q(_, (j, X) => {
|
|
5340
|
-
ie.value = j.length;
|
|
5341
|
-
}, {
|
|
5342
|
-
deep: !0
|
|
5343
5343
|
});
|
|
5344
5344
|
function Me() {
|
|
5345
5345
|
var fe, Ve;
|
|
5346
|
-
|
|
5346
|
+
x.value = _e(V.value), w.value && (x.value = b(C.value, V.value, t)), ee = K.value.reduce((be, te) => (be.set(te, 0), be), ee);
|
|
5347
5347
|
const j = ge.value, X = Pe.value;
|
|
5348
5348
|
let J = 0;
|
|
5349
5349
|
const se = [];
|
|
5350
|
-
if ((fe =
|
|
5351
|
-
I(
|
|
5350
|
+
if ((fe = x.value) != null && fe.length) {
|
|
5351
|
+
I(x.value);
|
|
5352
5352
|
const be = y.value !== e.idField;
|
|
5353
5353
|
for (let te = j; te < X; te++) {
|
|
5354
|
-
const ne =
|
|
5354
|
+
const ne = x.value[te];
|
|
5355
5355
|
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[((Ve = e.rowOption) == null ? void 0 : Ve.disabledField) || "disabled"], J++, i.value ? ne.__fv_data_index__ = J + (f.value - 1) * l.value : ne.__fv_data_index__ = J), ne.__fv_index__ = te, be && (ne[y.value] = te), K.value.forEach((pe) => {
|
|
5356
5356
|
const Re = ee.get(pe) || 0;
|
|
5357
5357
|
ee.set(pe, Re + ne[pe]);
|
|
@@ -5415,77 +5415,77 @@ function ir(e, t, n, o, a) {
|
|
|
5415
5415
|
}
|
|
5416
5416
|
function Qe(j) {
|
|
5417
5417
|
const X = j.raw[y.value], J = (se) => !se.__fv_parents__.has(X);
|
|
5418
|
-
|
|
5418
|
+
_.set(`fold_${X}`, {
|
|
5419
5419
|
field: "id",
|
|
5420
5420
|
fieldName: "id",
|
|
5421
5421
|
fieldType: "string",
|
|
5422
5422
|
filterValue: String(X),
|
|
5423
5423
|
filter: J
|
|
5424
|
-
}), ce(Array.from(
|
|
5424
|
+
}), ce(Array.from(_.values()), Array.from(E.values())), B(de.value);
|
|
5425
5425
|
}
|
|
5426
5426
|
function H(j) {
|
|
5427
5427
|
const X = j[y.value];
|
|
5428
|
-
|
|
5428
|
+
_.delete(`fold_${X}`);
|
|
5429
5429
|
}
|
|
5430
5430
|
function Z(j) {
|
|
5431
|
-
H(j.raw), ce(Array.from(
|
|
5431
|
+
H(j.raw), ce(Array.from(_.values()), Array.from(E.values()), !0), B(de.value);
|
|
5432
5432
|
}
|
|
5433
5433
|
function le() {
|
|
5434
5434
|
const j = Me();
|
|
5435
|
-
de.value = j, e.hierarchy && (ce(Array.from(
|
|
5435
|
+
de.value = j, e.hierarchy && (ce(Array.from(_.values()), Array.from(E.values())), B(de.value));
|
|
5436
5436
|
}
|
|
5437
5437
|
function Be(j) {
|
|
5438
5438
|
var X;
|
|
5439
5439
|
if (j && ((X = j[0]) != null && X.children)) {
|
|
5440
5440
|
const J = R(j);
|
|
5441
|
-
V.value = J,
|
|
5441
|
+
V.value = J, x.value = J, D.value = J;
|
|
5442
5442
|
} else
|
|
5443
|
-
V.value = j,
|
|
5443
|
+
V.value = j, x.value = j, D.value = j;
|
|
5444
5444
|
le();
|
|
5445
5445
|
}
|
|
5446
5446
|
function Ze(j, X, J) {
|
|
5447
5447
|
return (j && j.length ? de.value.filter((fe, Ve) => j.reduce((be, te) => be && te.filter(fe), !0)) : de.value).slice(X, J);
|
|
5448
5448
|
}
|
|
5449
|
-
function
|
|
5450
|
-
(j - 1) * l.value <=
|
|
5449
|
+
function sn(j) {
|
|
5450
|
+
(j - 1) * l.value <= ue.value && le();
|
|
5451
5451
|
}
|
|
5452
|
-
function
|
|
5453
|
-
V.value.push(
|
|
5452
|
+
function rn(j) {
|
|
5453
|
+
V.value.push(_e(j)), de.value = Me();
|
|
5454
5454
|
}
|
|
5455
|
-
function
|
|
5455
|
+
function un(j = 0) {
|
|
5456
5456
|
if (!(j > -1))
|
|
5457
5457
|
return !1;
|
|
5458
5458
|
const J = $.value();
|
|
5459
5459
|
e.hierarchy ? M(j, J, V) : V.value.splice(j, 0, J), le();
|
|
5460
5460
|
}
|
|
5461
|
-
function
|
|
5461
|
+
function cn(j = 0) {
|
|
5462
5462
|
if (!(j > -1 && e.hierarchy))
|
|
5463
5463
|
return !1;
|
|
5464
5464
|
const J = $.value(), se = V.value[j];
|
|
5465
5465
|
H(se), k(j, J, V), le();
|
|
5466
5466
|
}
|
|
5467
|
-
function
|
|
5467
|
+
function dn(j) {
|
|
5468
5468
|
const X = j ? j - 1 : 0;
|
|
5469
5469
|
V.value.splice(X, 1), le();
|
|
5470
5470
|
}
|
|
5471
|
-
function
|
|
5471
|
+
function fn(j) {
|
|
5472
5472
|
const X = V.value.findIndex((J) => J[y.value] === j);
|
|
5473
5473
|
X !== -1 && (V.value.splice(X, 1), le());
|
|
5474
5474
|
}
|
|
5475
|
-
function
|
|
5475
|
+
function pn(j) {
|
|
5476
5476
|
const X = j > -1 ? V.value[j] : null;
|
|
5477
5477
|
if (!(X && X.deletable !== !1))
|
|
5478
5478
|
return !1;
|
|
5479
5479
|
V.value = T(X, V.value), le();
|
|
5480
5480
|
}
|
|
5481
|
-
function
|
|
5481
|
+
function mn() {
|
|
5482
5482
|
const j = p.size > 0 ? Array.from(p.values()) : [];
|
|
5483
5483
|
return ce(j, Array.from(E.values()));
|
|
5484
5484
|
}
|
|
5485
|
-
function
|
|
5486
|
-
|
|
5485
|
+
function vn(j) {
|
|
5486
|
+
xe.value && (xe.value.size = j, le());
|
|
5487
5487
|
}
|
|
5488
|
-
function
|
|
5488
|
+
function hn(j, X) {
|
|
5489
5489
|
const J = V.value[Number(j) - 1];
|
|
5490
5490
|
J.editable !== !1 ? (J.name = X, le()) : Ie.show({
|
|
5491
5491
|
showCloseButton: !1,
|
|
@@ -5494,7 +5494,7 @@ function ir(e, t, n, o, a) {
|
|
|
5494
5494
|
toasts: [{ type: "string", title: "提示", msg: "当前节点禁止编辑" }]
|
|
5495
5495
|
});
|
|
5496
5496
|
}
|
|
5497
|
-
function
|
|
5497
|
+
function gn(j) {
|
|
5498
5498
|
return j.map((J) => {
|
|
5499
5499
|
const se = D.value.findIndex((fe) => fe[y.value] === J);
|
|
5500
5500
|
return se > -1 ? D.value[se] : null;
|
|
@@ -5502,32 +5502,32 @@ function ir(e, t, n, o, a) {
|
|
|
5502
5502
|
}
|
|
5503
5503
|
return {
|
|
5504
5504
|
addFilter: De,
|
|
5505
|
-
addNewDataItem:
|
|
5505
|
+
addNewDataItem: rn,
|
|
5506
5506
|
addSorter: Ue,
|
|
5507
|
-
changePageSizeTo:
|
|
5507
|
+
changePageSizeTo: vn,
|
|
5508
5508
|
collapse: Ke,
|
|
5509
5509
|
dataView: de,
|
|
5510
|
-
editDataItem:
|
|
5510
|
+
editDataItem: hn,
|
|
5511
5511
|
expand: Je,
|
|
5512
5512
|
filters: O,
|
|
5513
5513
|
fold: Qe,
|
|
5514
5514
|
getRange: Ze,
|
|
5515
|
-
getSelectionItems:
|
|
5515
|
+
getSelectionItems: gn,
|
|
5516
5516
|
hasRealChildren: g,
|
|
5517
5517
|
load: Be,
|
|
5518
|
-
navigatePageTo:
|
|
5518
|
+
navigatePageTo: sn,
|
|
5519
5519
|
summaries: ee,
|
|
5520
|
-
totalItems:
|
|
5521
|
-
insertNewDataItem:
|
|
5522
|
-
insertNewChildDataItem:
|
|
5520
|
+
totalItems: ue,
|
|
5521
|
+
insertNewDataItem: un,
|
|
5522
|
+
insertNewChildDataItem: cn,
|
|
5523
5523
|
removeAllFilter: Ye,
|
|
5524
|
-
removeDataItem:
|
|
5525
|
-
removeDataItemById:
|
|
5524
|
+
removeDataItem: dn,
|
|
5525
|
+
removeDataItemById: fn,
|
|
5526
5526
|
removeFilter: Ne,
|
|
5527
|
-
removeHierarchyDataItem:
|
|
5527
|
+
removeHierarchyDataItem: pn,
|
|
5528
5528
|
removeSorter: Xe,
|
|
5529
5529
|
rawView: D,
|
|
5530
|
-
refresh:
|
|
5530
|
+
refresh: mn,
|
|
5531
5531
|
setSorters: Le,
|
|
5532
5532
|
sorters: N,
|
|
5533
5533
|
updateDataView: le,
|
|
@@ -5537,7 +5537,7 @@ function ir(e, t, n, o, a) {
|
|
|
5537
5537
|
originalData: V
|
|
5538
5538
|
};
|
|
5539
5539
|
}
|
|
5540
|
-
function
|
|
5540
|
+
function ir(e) {
|
|
5541
5541
|
c(e.selection.showCheckbox || !1);
|
|
5542
5542
|
const t = P(() => {
|
|
5543
5543
|
var s;
|
|
@@ -5551,9 +5551,9 @@ function ur(e) {
|
|
|
5551
5551
|
}), a = P(() => e.hierarchy && e.selection.showCheckbox), l = P(() => (e.treeNodeIconsData.fold || e.iconField) && e.showTreeNodeIcons);
|
|
5552
5552
|
return { collapseField: t, hasChildrenField: n, parentIdField: o, shouldShowCheckBox: a, shouldShowIcon: l };
|
|
5553
5553
|
}
|
|
5554
|
-
function
|
|
5554
|
+
function ur(e, t, n, o, a, l, s, i) {
|
|
5555
5555
|
const f = c(o.value - 1 + a), u = c(0), { renderDataRow: v } = l, d = s ? s.renderGroupRow : v, p = i ? i.renderSummaryRow : v;
|
|
5556
|
-
function
|
|
5556
|
+
function _(N) {
|
|
5557
5557
|
let m = v;
|
|
5558
5558
|
return N.__fv_data_grid_group_row__ && (m = d), N.__fv_data_grid_group_summary__ && (m = p), m;
|
|
5559
5559
|
}
|
|
@@ -5562,7 +5562,7 @@ function cr(e, t, n, o, a, l, s, i) {
|
|
|
5562
5562
|
if (C.value.length > 0) {
|
|
5563
5563
|
const V = b ? Date.now().toString() : "";
|
|
5564
5564
|
for (let S = N, B = 0; S <= m; S++, B++) {
|
|
5565
|
-
const g = C.value[S], M = C.value[S - 1] || h, k = w[B - 1], F = M ? (M.__fv_data_position__ || 0) + (M.__fv_data_height__ || 0) : 0, y =
|
|
5565
|
+
const g = C.value[S], M = C.value[S - 1] || h, k = w[B - 1], F = M ? (M.__fv_data_position__ || 0) + (M.__fv_data_height__ || 0) : 0, y = _(g)(g, M, k, S, F, t.value, w);
|
|
5566
5566
|
y.refreshKey = V, w.push(y);
|
|
5567
5567
|
}
|
|
5568
5568
|
}
|
|
@@ -5576,7 +5576,7 @@ function cr(e, t, n, o, a, l, s, i) {
|
|
|
5576
5576
|
}
|
|
5577
5577
|
return { getVisualData: E, maxVisibleRowIndex: f, minVisibleRowIndex: u, toggleGroupRow: O };
|
|
5578
5578
|
}
|
|
5579
|
-
function
|
|
5579
|
+
function cr() {
|
|
5580
5580
|
function e(t, n) {
|
|
5581
5581
|
const {
|
|
5582
5582
|
formatter: o
|
|
@@ -5587,7 +5587,7 @@ function dr() {
|
|
|
5587
5587
|
renderEnumColumn: e
|
|
5588
5588
|
};
|
|
5589
5589
|
}
|
|
5590
|
-
function
|
|
5590
|
+
function dr() {
|
|
5591
5591
|
function e(o, a) {
|
|
5592
5592
|
return o ? r("span", {
|
|
5593
5593
|
innerHTML: a.formatter.trueText
|
|
@@ -5612,10 +5612,10 @@ function fr() {
|
|
|
5612
5612
|
renderBooleanColumn: n
|
|
5613
5613
|
};
|
|
5614
5614
|
}
|
|
5615
|
-
function
|
|
5615
|
+
function fr() {
|
|
5616
5616
|
const {
|
|
5617
5617
|
formatTo: e
|
|
5618
|
-
} =
|
|
5618
|
+
} = Lo();
|
|
5619
5619
|
function t(o, a) {
|
|
5620
5620
|
return e(o, a.formatter.dateFormat);
|
|
5621
5621
|
}
|
|
@@ -5627,10 +5627,10 @@ function pr() {
|
|
|
5627
5627
|
renderDateColumn: n
|
|
5628
5628
|
};
|
|
5629
5629
|
}
|
|
5630
|
-
function
|
|
5630
|
+
function pr() {
|
|
5631
5631
|
const {
|
|
5632
5632
|
formatTo: e
|
|
5633
|
-
} =
|
|
5633
|
+
} = jo();
|
|
5634
5634
|
function t(o, a) {
|
|
5635
5635
|
const {
|
|
5636
5636
|
formatter: l
|
|
@@ -5651,16 +5651,16 @@ function mr() {
|
|
|
5651
5651
|
renderNumberColumn: n
|
|
5652
5652
|
};
|
|
5653
5653
|
}
|
|
5654
|
-
function
|
|
5654
|
+
function mr() {
|
|
5655
5655
|
const {
|
|
5656
5656
|
renderBooleanColumn: e
|
|
5657
|
-
} = fr(), {
|
|
5658
|
-
renderEnumColumn: t
|
|
5659
5657
|
} = dr(), {
|
|
5658
|
+
renderEnumColumn: t
|
|
5659
|
+
} = cr(), {
|
|
5660
5660
|
renderNumberColumn: n
|
|
5661
|
-
} =
|
|
5661
|
+
} = pr(), {
|
|
5662
5662
|
renderDateColumn: o
|
|
5663
|
-
} =
|
|
5663
|
+
} = fr();
|
|
5664
5664
|
function a(i) {
|
|
5665
5665
|
return i;
|
|
5666
5666
|
}
|
|
@@ -5680,9 +5680,9 @@ function vr() {
|
|
|
5680
5680
|
renderFormatColumn: s
|
|
5681
5681
|
};
|
|
5682
5682
|
}
|
|
5683
|
-
function
|
|
5683
|
+
function vr(e, t, n) {
|
|
5684
5684
|
var N;
|
|
5685
|
-
const o = c(e.mergeCell), l = ((N = c(e.rowOption).value) == null ? void 0 : N.wrapContent) || !1, { updateVisualInfomation: s } = n, { renderCommandColumn: i } =
|
|
5685
|
+
const o = c(e.mergeCell), l = ((N = c(e.rowOption).value) == null ? void 0 : N.wrapContent) || !1, { updateVisualInfomation: s } = n, { renderCommandColumn: i } = hl(), { renderFormatColumn: f } = mr();
|
|
5686
5686
|
function u(m, h, b, C, w, V = 1) {
|
|
5687
5687
|
const S = {
|
|
5688
5688
|
colSpan: V,
|
|
@@ -5713,11 +5713,11 @@ function hr(e, t, n) {
|
|
|
5713
5713
|
return m.getEditor = (C) => t.getEditor(C, h, C.parent), m.setRef = (C) => l && s(C, m, b), m.update = (C) => {
|
|
5714
5714
|
C !== void 0 && (m.editingData = C);
|
|
5715
5715
|
}, m.accept = () => {
|
|
5716
|
-
|
|
5716
|
+
_t(m.editingData, b, h.field), m.data = $e(b, h.field);
|
|
5717
5717
|
}, m.cancel = () => {
|
|
5718
5718
|
m.editingData = m.data;
|
|
5719
5719
|
}, m.updateData = (C) => {
|
|
5720
|
-
|
|
5720
|
+
_t($e(C, h.field), b, h.field), m.data = $e(b, h.field);
|
|
5721
5721
|
}, m;
|
|
5722
5722
|
}
|
|
5723
5723
|
function d(m, h) {
|
|
@@ -5730,28 +5730,28 @@ function hr(e, t, n) {
|
|
|
5730
5730
|
V.rowSpan++, V.spanned = V.spanned || [], V.spanned.push(m), m.colSpan = 0, m.rowSpan = 0, m.spannedBy = V;
|
|
5731
5731
|
}
|
|
5732
5732
|
}
|
|
5733
|
-
function
|
|
5733
|
+
function _(m, h, b) {
|
|
5734
5734
|
o.value && p(m, h, b.field);
|
|
5735
5735
|
}
|
|
5736
5736
|
function E(m, h) {
|
|
5737
5737
|
h.showEllipsis !== void 0 && (m.showEllipsis = h.showEllipsis), m.align = h.align || "left", m.valign = h.valign || "middle";
|
|
5738
5738
|
}
|
|
5739
5739
|
function O(m, h, b, C, w) {
|
|
5740
|
-
const V = m.readonly ?
|
|
5741
|
-
return E(S, m), v(S, m, b), d(S, m),
|
|
5740
|
+
const V = m.readonly ? ie.readonly : ie.editable, S = u(m.field, V, h, b, C);
|
|
5741
|
+
return E(S, m), v(S, m, b), d(S, m), _(S, w, m), S;
|
|
5742
5742
|
}
|
|
5743
5743
|
return { createCellByColumn: O, createCellByField: u };
|
|
5744
5744
|
}
|
|
5745
|
-
function
|
|
5745
|
+
function hr(e, t, n, o, a, l) {
|
|
5746
5746
|
var m, h;
|
|
5747
5747
|
const s = c(e.rowOption), i = ((m = s.value) == null ? void 0 : m.height) || 28, f = ((h = s.value) == null ? void 0 : h.wrapContent) || !1, { idField: u } = o, { collapseField: v } = n, { updateRowPosition: d } = a, { createCellByColumn: p } = l;
|
|
5748
|
-
function
|
|
5749
|
-
var
|
|
5748
|
+
function _(b, C, w, V, S, B, g) {
|
|
5749
|
+
var ue, xe, Ie;
|
|
5750
5750
|
const {
|
|
5751
5751
|
__fv_data_grid_group_field__: M,
|
|
5752
5752
|
__fv_data_grid_group_value__: k,
|
|
5753
5753
|
__fv_data_index__: F
|
|
5754
|
-
} = w, T = w.__fv_data_grid_group_layer__ || (w.__fv_parents__ ? (
|
|
5754
|
+
} = w, T = w.__fv_data_grid_group_layer__ || (w.__fv_parents__ ? (ue = w.__fv_parents__) == null ? void 0 : ue.size : 0) || 0, y = typeof w.parent == "number" ? Number(w.parent) : -1, I = w.__fv_data_grid_group_collapse__ || w[v.value], $ = w.__fv_visible__ === void 0 ? !0 : w.__fv_visible__, x = w.__fv_checked__, D = w.__fv_indeterminate__, L = w.__fv_disabled__ || w[((xe = e.rowOption) == null ? void 0 : xe.disabledField) || "disabled"], R = g == null ? void 0 : g.find((ge) => ge.raw[u.value] === w.parent), A = R && R.collapse;
|
|
5755
5755
|
V && (V.parent, w.parent);
|
|
5756
5756
|
const K = A || R && !R.visible, ee = {
|
|
5757
5757
|
collapse: I,
|
|
@@ -5766,7 +5766,7 @@ function gr(e, t, n, o, a, l) {
|
|
|
5766
5766
|
top: B,
|
|
5767
5767
|
type: b,
|
|
5768
5768
|
raw: w,
|
|
5769
|
-
checked:
|
|
5769
|
+
checked: x,
|
|
5770
5770
|
disabled: L,
|
|
5771
5771
|
indeterminate: D,
|
|
5772
5772
|
setRef: (ge) => {
|
|
@@ -5778,7 +5778,7 @@ function gr(e, t, n, o, a, l) {
|
|
|
5778
5778
|
return V || (w.__fv_data_position__ = 0), f || (ee.height = i, w.__fv_data_height__ = ee.height, d(ee, w)), (Ie = s.value) != null && Ie.customRowStatus && (s.value.customRowStatus(ee), w.__fv_collapse__ = ee.collapse, w.__fv_visible__ = ee.visible, w.__fv_disabled__ = ee.disabled), ee;
|
|
5779
5779
|
}
|
|
5780
5780
|
function E(b, C, w, V, S, B, g) {
|
|
5781
|
-
const M =
|
|
5781
|
+
const M = _(We.data, S, C, w, V, B, g);
|
|
5782
5782
|
return b.forEach((k, F) => {
|
|
5783
5783
|
M.data[k.field] = p(k, S, C, M, V);
|
|
5784
5784
|
}), M;
|
|
@@ -5798,9 +5798,9 @@ function gr(e, t, n, o, a, l) {
|
|
|
5798
5798
|
g
|
|
5799
5799
|
) : O(F, V, M, S, w);
|
|
5800
5800
|
}
|
|
5801
|
-
return { createEmptyRow:
|
|
5801
|
+
return { createEmptyRow: _, createNewRowFromDataItem: E, renderDataRow: N };
|
|
5802
5802
|
}
|
|
5803
|
-
function
|
|
5803
|
+
function gr(e, t, n, o) {
|
|
5804
5804
|
const a = c(e.summary), { idField: l } = t, { createCellByField: s } = n, { createEmptyRow: i } = o, f = P(() => {
|
|
5805
5805
|
const p = a.value;
|
|
5806
5806
|
return (p == null ? void 0 : p.groupFields) || [];
|
|
@@ -5808,35 +5808,35 @@ function yr(e, t, n, o) {
|
|
|
5808
5808
|
const p = a.value;
|
|
5809
5809
|
return p && p.enable && p.groupFields && p.groupFields.length > 0;
|
|
5810
5810
|
});
|
|
5811
|
-
function v(p,
|
|
5811
|
+
function v(p, _, E, O) {
|
|
5812
5812
|
if (u.value) {
|
|
5813
|
-
const N = p.data[
|
|
5813
|
+
const N = p.data[_];
|
|
5814
5814
|
let m = N.colSpan;
|
|
5815
5815
|
const h = f.value.reduce((b, C) => (b.set(C, !0), b), /* @__PURE__ */ new Map());
|
|
5816
5816
|
O.reduce((b, C, w) => {
|
|
5817
5817
|
if (h.has(C.field)) {
|
|
5818
|
-
const V = s(C.field,
|
|
5818
|
+
const V = s(C.field, ie.readonly, w, E, p);
|
|
5819
5819
|
p.data[C.field] = V, m - 1 > w && (m = w);
|
|
5820
5820
|
}
|
|
5821
5821
|
return b;
|
|
5822
5822
|
}, p), N.colSpan = m;
|
|
5823
5823
|
}
|
|
5824
5824
|
}
|
|
5825
|
-
function d(p,
|
|
5826
|
-
const b = p.__fv_data_grid_group_field__, C = i(We.group, O, p,
|
|
5827
|
-
return C.data[l.value] = s(l.value,
|
|
5825
|
+
function d(p, _, E, O, N, m, h) {
|
|
5826
|
+
const b = p.__fv_data_grid_group_field__, C = i(We.group, O, p, _, E, N);
|
|
5827
|
+
return C.data[l.value] = s(l.value, ie.readonly, -1, p, C, 0), C.data[b] = s(b, ie.readonly, 1, p, C, m.length), v(C, b, p, m), C;
|
|
5828
5828
|
}
|
|
5829
5829
|
return { renderGroupRow: d };
|
|
5830
5830
|
}
|
|
5831
|
-
function
|
|
5831
|
+
function yr(e, t, n, o) {
|
|
5832
5832
|
const { idField: a } = t, { createCellByField: l } = n, { createEmptyRow: s } = o;
|
|
5833
|
-
function i(f, u, v, d, p,
|
|
5833
|
+
function i(f, u, v, d, p, _, E) {
|
|
5834
5834
|
const O = f.__fv_data_grid_group_field__, N = s(We.summary, d, f, u, v, p);
|
|
5835
|
-
return N.data[a.value] = l(a.value,
|
|
5835
|
+
return N.data[a.value] = l(a.value, ie.readonly, -1, f, N), N.data[O] = l(O, ie.readonly, 1, f, N, _.length), N;
|
|
5836
5836
|
}
|
|
5837
5837
|
return { renderSummaryRow: i };
|
|
5838
5838
|
}
|
|
5839
|
-
function
|
|
5839
|
+
function br(e, t, n) {
|
|
5840
5840
|
var B;
|
|
5841
5841
|
const {
|
|
5842
5842
|
idField: o
|
|
@@ -5854,34 +5854,34 @@ function Cr(e, t, n) {
|
|
|
5854
5854
|
function p(g) {
|
|
5855
5855
|
return u && u.raw[o.value] === g ? u : null;
|
|
5856
5856
|
}
|
|
5857
|
-
const
|
|
5857
|
+
const _ = ve({});
|
|
5858
5858
|
function E(g, M, k = {}) {
|
|
5859
|
-
g.mode =
|
|
5859
|
+
g.mode = ie.editing, f = g, u = M, v = M == null ? void 0 : M.raw[g.field], d = k;
|
|
5860
5860
|
}
|
|
5861
5861
|
function O(g) {
|
|
5862
|
-
g.accept(), g.mode =
|
|
5862
|
+
g.accept(), g.mode = ie.editable, f = null, t.emit("endEditCell", {
|
|
5863
5863
|
cell: g,
|
|
5864
5864
|
row: u,
|
|
5865
5865
|
newValue: u == null ? void 0 : u.raw[g.field],
|
|
5866
5866
|
oldValue: v,
|
|
5867
5867
|
column: d,
|
|
5868
|
-
editor:
|
|
5868
|
+
editor: _
|
|
5869
5869
|
});
|
|
5870
5870
|
}
|
|
5871
5871
|
function N(g) {
|
|
5872
5872
|
document.body.classList.contains("lookup-modal-open") || (f && (O(f), u && (u = void 0)), document.body.removeEventListener("click", N));
|
|
5873
5873
|
}
|
|
5874
5874
|
function m(g, M, k, F = {}) {
|
|
5875
|
-
a.value && l.value.editMode === "cell" && M.mode ===
|
|
5875
|
+
a.value && l.value.editMode === "cell" && M.mode === ie.editable && (f && O(f), E(M, k, F), document.body.removeEventListener("click", N), document.body.addEventListener("click", N));
|
|
5876
5876
|
}
|
|
5877
5877
|
function h(g) {
|
|
5878
|
-
Object.values(g.data).filter((M) => M.mode ===
|
|
5879
|
-
M.mode =
|
|
5878
|
+
Object.values(g.data).filter((M) => M.mode === ie.editable && M.field !== "__commands__").forEach((M) => {
|
|
5879
|
+
M.mode = ie.editing;
|
|
5880
5880
|
}), g.status = he.editing, u = g;
|
|
5881
5881
|
}
|
|
5882
5882
|
function b(g, M) {
|
|
5883
|
-
Object.values(g.data).filter((k) => k.mode ===
|
|
5884
|
-
M ? k.accept() : k.cancel(), k.mode =
|
|
5883
|
+
Object.values(g.data).filter((k) => k.mode === ie.editing).forEach((k) => {
|
|
5884
|
+
M ? k.accept() : k.cancel(), k.mode = ie.editable;
|
|
5885
5885
|
}), g.status = he.initial, u === g && (u = void 0);
|
|
5886
5886
|
}
|
|
5887
5887
|
function C(g) {
|
|
@@ -5901,8 +5901,8 @@ function Cr(e, t, n) {
|
|
|
5901
5901
|
rowData: k.raw,
|
|
5902
5902
|
column: M,
|
|
5903
5903
|
cell: g,
|
|
5904
|
-
editor:
|
|
5905
|
-
}, r(
|
|
5904
|
+
editor: _
|
|
5905
|
+
}, r(Gn, {
|
|
5906
5906
|
focusOnCreated: e.focusOnEditingCell,
|
|
5907
5907
|
selectOnCreated: e.selectOnEditingCell,
|
|
5908
5908
|
editor: T,
|
|
@@ -5920,7 +5920,7 @@ function Cr(e, t, n) {
|
|
|
5920
5920
|
getEditor: S
|
|
5921
5921
|
};
|
|
5922
5922
|
}
|
|
5923
|
-
function
|
|
5923
|
+
function Cr(e) {
|
|
5924
5924
|
const t = c(e.idField);
|
|
5925
5925
|
function n(o) {
|
|
5926
5926
|
if (o && o.length) {
|
|
@@ -5930,12 +5930,12 @@ function wr(e) {
|
|
|
5930
5930
|
}
|
|
5931
5931
|
return { idField: t, reviseIdentifyField: n };
|
|
5932
5932
|
}
|
|
5933
|
-
function
|
|
5933
|
+
function wr(e, t, n, o, a) {
|
|
5934
5934
|
const { idField: l } = n, s = c(""), i = P(() => e.selection.enableSelectRow), f = c(e.selection.multiSelect ?? !1), u = c(e.selection.multiSelectMode), v = c(e.selection.showCheckbox), d = c(e.selection.showSelectAll), p = c(e.selectionValues);
|
|
5935
5935
|
Q(() => e.selection.showSelectAll, (R, A) => {
|
|
5936
5936
|
R !== A && (d.value = R);
|
|
5937
5937
|
});
|
|
5938
|
-
function
|
|
5938
|
+
function _() {
|
|
5939
5939
|
return t.getSelectionItems(p.value);
|
|
5940
5940
|
}
|
|
5941
5941
|
function E() {
|
|
@@ -6009,7 +6009,7 @@ function _r(e, t, n, o, a) {
|
|
|
6009
6009
|
M(K);
|
|
6010
6010
|
}), C());
|
|
6011
6011
|
}
|
|
6012
|
-
function
|
|
6012
|
+
function x() {
|
|
6013
6013
|
o.value.forEach((R) => M(R)), s.value = "", C();
|
|
6014
6014
|
}
|
|
6015
6015
|
function D() {
|
|
@@ -6027,7 +6027,7 @@ function _r(e, t, n, o, a) {
|
|
|
6027
6027
|
enableMultiSelect: f,
|
|
6028
6028
|
enableSelectRow: i,
|
|
6029
6029
|
findIndexInSelectedItems: B,
|
|
6030
|
-
getSelectedItems:
|
|
6030
|
+
getSelectedItems: _,
|
|
6031
6031
|
getSelectionRow: L,
|
|
6032
6032
|
indeterminate: F,
|
|
6033
6033
|
isSelectingHirarchyItem: N,
|
|
@@ -6036,7 +6036,7 @@ function _r(e, t, n, o, a) {
|
|
|
6036
6036
|
multiSelectOnClickRowWithShift: h,
|
|
6037
6037
|
multiSelectOnlyOnCheck: m,
|
|
6038
6038
|
select: M,
|
|
6039
|
-
selectAll:
|
|
6039
|
+
selectAll: x,
|
|
6040
6040
|
selectedValues: p,
|
|
6041
6041
|
selectItem: y,
|
|
6042
6042
|
selectItemById: I,
|
|
@@ -6051,9 +6051,9 @@ function _r(e, t, n, o, a) {
|
|
|
6051
6051
|
function Ce(e) {
|
|
6052
6052
|
return typeof e > "u";
|
|
6053
6053
|
}
|
|
6054
|
-
function
|
|
6055
|
-
var d, p,
|
|
6056
|
-
const t = c((d = e.pagination) == null ? void 0 : d.enable), n = c(((p = e.pagination) == null ? void 0 : p.index) || 1), o = c((
|
|
6054
|
+
function _r(e) {
|
|
6055
|
+
var d, p, _, E, O, N, m, h;
|
|
6056
|
+
const t = c((d = e.pagination) == null ? void 0 : d.enable), n = c(((p = e.pagination) == null ? void 0 : p.index) || 1), o = c((_ = e.pagination) == null ? void 0 : _.size), a = c((E = e.pagination) == null ? void 0 : E.sizeLimits), l = c((O = e.pagination) == null ? void 0 : O.mode), s = c((N = e.pagination) == null ? void 0 : N.showIndex), i = c((m = e.pagination) == null ? void 0 : m.showLimits), f = c(((h = e.pagination) == null ? void 0 : h.total) || 0), u = c(f.value || e.data.length || 0);
|
|
6057
6057
|
return Q(() => {
|
|
6058
6058
|
var b;
|
|
6059
6059
|
return (b = e.pagination) == null ? void 0 : b.sizeLimits;
|
|
@@ -6100,16 +6100,16 @@ function xr(e) {
|
|
|
6100
6100
|
}
|
|
6101
6101
|
};
|
|
6102
6102
|
}
|
|
6103
|
-
function
|
|
6103
|
+
function xr(e) {
|
|
6104
6104
|
const t = "parent", n = "layer", o = "hasChildren", a = (l, s = 1, i = [], f = null) => (l = l || [], l.reduce((u, v) => (v.id = v.id || v.data[e.idField], v[t] = f, 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)), u), i), i);
|
|
6105
6105
|
return { flatTreeData: a };
|
|
6106
6106
|
}
|
|
6107
|
-
const
|
|
6107
|
+
const Sr = /* @__PURE__ */ ae({
|
|
6108
6108
|
name: "FListViewDesign",
|
|
6109
6109
|
props: qe,
|
|
6110
6110
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
|
|
6111
6111
|
setup(e, t) {
|
|
6112
|
-
const n = c(), o = c(!0), a = c(!1), l = c([]), s = 0, i = c(e.columns), f =
|
|
6112
|
+
const n = c(), o = c(!0), a = c(!1), l = c([]), s = 0, i = c(e.columns), f = Cr(e), u = ir(e), v = nn(e, f), d = _r(e), p = rr(e, /* @__PURE__ */ new Map(), u, f, d), _ = wr(e, p, f, l, t), E = zt(e, n), O = c(), N = ke("design-item-context"), m = gt(O, N), h = P(() => p.dataView.value.length), b = br(e, t, f), C = vl(), w = vr(e, {}, C), V = hr(e, b, u, f, C, w), S = gr(e, f, w, V), B = yr(e, f, w, V), g = ur(e, i, p, h, s, V, S, B), {
|
|
6113
6113
|
getVisualData: M
|
|
6114
6114
|
} = g;
|
|
6115
6115
|
l.value = M(0, h.value + s - 1), me(() => {
|
|
@@ -6123,19 +6123,19 @@ const kr = /* @__PURE__ */ ae({
|
|
|
6123
6123
|
return e.size !== "default" && (D[`${e.size}-item`] = !0), D;
|
|
6124
6124
|
}), F = P(() => !!t.slots.footer || o.value);
|
|
6125
6125
|
function T() {
|
|
6126
|
-
return e.header === "SearchBar" ? ze : e.header === "ContentHeader" ?
|
|
6126
|
+
return e.header === "SearchBar" ? ze : e.header === "ContentHeader" ? qt : ze;
|
|
6127
6127
|
}
|
|
6128
6128
|
const y = T(), {
|
|
6129
6129
|
renderHeader: I
|
|
6130
6130
|
} = y(e, t, E), {
|
|
6131
6131
|
renderListArea: $
|
|
6132
|
-
} =
|
|
6133
|
-
function
|
|
6132
|
+
} = Gt(e, t, l, p, v, _, g);
|
|
6133
|
+
function x(D) {
|
|
6134
6134
|
e.multiSelect && (D.preventDefault(), D.stopPropagation());
|
|
6135
6135
|
}
|
|
6136
6136
|
return () => r("div", {
|
|
6137
6137
|
class: k.value,
|
|
6138
|
-
onClick:
|
|
6138
|
+
onClick: x
|
|
6139
6139
|
}, [I(), r("div", {
|
|
6140
6140
|
ref: n,
|
|
6141
6141
|
class: "f-list-view-content",
|
|
@@ -6223,7 +6223,7 @@ const kr = /* @__PURE__ */ ae({
|
|
|
6223
6223
|
}, [l.date])])])])]))]);
|
|
6224
6224
|
};
|
|
6225
6225
|
}
|
|
6226
|
-
}),
|
|
6226
|
+
}), kr = "https://json-schema.org/draft/2020-12/schema", Tr = "https://farris-design.gitee.io/list-view-table.schema.json", Fr = "list-view-table", Er = "A Farris Component", Ir = "object", Mr = {
|
|
6227
6227
|
id: {
|
|
6228
6228
|
description: "The unique identifier for list-view-table",
|
|
6229
6229
|
type: "string"
|
|
@@ -6285,18 +6285,18 @@ const kr = /* @__PURE__ */ ae({
|
|
|
6285
6285
|
type: "boolean",
|
|
6286
6286
|
default: !0
|
|
6287
6287
|
}
|
|
6288
|
-
},
|
|
6288
|
+
}, Br = [
|
|
6289
6289
|
"id",
|
|
6290
6290
|
"type"
|
|
6291
|
-
],
|
|
6292
|
-
$schema:
|
|
6293
|
-
$id:
|
|
6294
|
-
title:
|
|
6295
|
-
description:
|
|
6296
|
-
type:
|
|
6297
|
-
properties:
|
|
6298
|
-
required:
|
|
6299
|
-
},
|
|
6291
|
+
], Vr = {
|
|
6292
|
+
$schema: kr,
|
|
6293
|
+
$id: Tr,
|
|
6294
|
+
title: Fr,
|
|
6295
|
+
description: Er,
|
|
6296
|
+
type: Ir,
|
|
6297
|
+
properties: Mr,
|
|
6298
|
+
required: Br
|
|
6299
|
+
}, Or = "list-view-table", Dr = "A Farris Component", Nr = "object", Rr = {
|
|
6300
6300
|
basic: {
|
|
6301
6301
|
description: "Basic Infomation",
|
|
6302
6302
|
title: "基本信息",
|
|
@@ -6318,16 +6318,16 @@ const kr = /* @__PURE__ */ ae({
|
|
|
6318
6318
|
}
|
|
6319
6319
|
}
|
|
6320
6320
|
}
|
|
6321
|
-
},
|
|
6322
|
-
title:
|
|
6323
|
-
description:
|
|
6324
|
-
type:
|
|
6325
|
-
categories:
|
|
6326
|
-
},
|
|
6321
|
+
}, $r = {
|
|
6322
|
+
title: Or,
|
|
6323
|
+
description: Dr,
|
|
6324
|
+
type: Nr,
|
|
6325
|
+
categories: Rr
|
|
6326
|
+
}, an = {
|
|
6327
6327
|
data: { type: Array, default: [] }
|
|
6328
|
-
},
|
|
6328
|
+
}, ln = Ee(an, Vr, jt, At, $r), Pr = /* @__PURE__ */ ae({
|
|
6329
6329
|
name: "FListViewTableDesign",
|
|
6330
|
-
props:
|
|
6330
|
+
props: an,
|
|
6331
6331
|
emits: ["outputValue", "currentEvent", "selectionChanged"],
|
|
6332
6332
|
setup(e, t) {
|
|
6333
6333
|
const n = [{
|
|
@@ -6379,7 +6379,7 @@ const kr = /* @__PURE__ */ ae({
|
|
|
6379
6379
|
desc: "浙江杭州",
|
|
6380
6380
|
amount: 84.13,
|
|
6381
6381
|
avatar: "./assets/avatar7.png"
|
|
6382
|
-
}], o = P(() => e.data.length > 0 ? e.data : n), a = c(), l =
|
|
6382
|
+
}], o = P(() => e.data.length > 0 ? e.data : n), a = c(), l = ke("design-item-context"), s = gt(a, l);
|
|
6383
6383
|
return me(() => {
|
|
6384
6384
|
a.value.componentInstance = s;
|
|
6385
6385
|
}), t.expose(s.value), () => {
|
|
@@ -6420,16 +6420,16 @@ const kr = /* @__PURE__ */ ae({
|
|
|
6420
6420
|
};
|
|
6421
6421
|
}
|
|
6422
6422
|
});
|
|
6423
|
-
|
|
6424
|
-
e.component(
|
|
6423
|
+
Fe.install = (e) => {
|
|
6424
|
+
e.component(Fe.name, Fe), e.component(ft.name, ft);
|
|
6425
6425
|
};
|
|
6426
|
-
|
|
6427
|
-
e["list-view"] =
|
|
6426
|
+
Fe.register = (e, t, n) => {
|
|
6427
|
+
e["list-view"] = Fe, t["list-view"] = Ht, e["list-view-table"] = ft, t["list-view-table"] = ln;
|
|
6428
6428
|
};
|
|
6429
|
-
|
|
6430
|
-
e["list-view"] =
|
|
6429
|
+
Fe.registerDesigner = (e, t, n) => {
|
|
6430
|
+
e["list-view"] = Sr, t["list-view"] = Ht, e["list-view-table"] = Pr, t["list-view-table"] = ln;
|
|
6431
6431
|
};
|
|
6432
|
-
const
|
|
6432
|
+
const Lr = /* @__PURE__ */ ae({
|
|
6433
6433
|
name: "FImportExteranlSchema",
|
|
6434
6434
|
emits: ["close", "submit"],
|
|
6435
6435
|
setup(e, t) {
|
|
@@ -6445,7 +6445,7 @@ const jr = /* @__PURE__ */ ae({
|
|
|
6445
6445
|
i && i.unmount();
|
|
6446
6446
|
}
|
|
6447
6447
|
function l(i) {
|
|
6448
|
-
return r("div", null, [r(
|
|
6448
|
+
return r("div", null, [r(Fe, {
|
|
6449
6449
|
data: n
|
|
6450
6450
|
}, {
|
|
6451
6451
|
default: () => [re(" ")]
|
|
@@ -6466,7 +6466,7 @@ const jr = /* @__PURE__ */ ae({
|
|
|
6466
6466
|
}, [re("确认")])])])])]);
|
|
6467
6467
|
}
|
|
6468
6468
|
function s() {
|
|
6469
|
-
|
|
6469
|
+
Lt.show({
|
|
6470
6470
|
title: "Settings",
|
|
6471
6471
|
width: 800,
|
|
6472
6472
|
showButtons: !1,
|
|
@@ -6486,14 +6486,14 @@ const jr = /* @__PURE__ */ ae({
|
|
|
6486
6486
|
class: "f-import-exteranl-component-button-center"
|
|
6487
6487
|
}, [re("引入组件")])])]);
|
|
6488
6488
|
}
|
|
6489
|
-
}),
|
|
6489
|
+
}), jr = /* @__PURE__ */ ae({
|
|
6490
6490
|
name: "FExternalContainerDesign",
|
|
6491
6491
|
props: ht,
|
|
6492
6492
|
emits: [],
|
|
6493
6493
|
setup(e, t) {
|
|
6494
6494
|
const n = c();
|
|
6495
|
-
|
|
6496
|
-
const o =
|
|
6495
|
+
ke("designer-host-service");
|
|
6496
|
+
const o = ke("design-item-context"), a = Ra(), l = gt(n, o, a);
|
|
6497
6497
|
me(() => {
|
|
6498
6498
|
n.value.componentInstance = l;
|
|
6499
6499
|
}), t.expose(l.value);
|
|
@@ -6505,10 +6505,10 @@ const jr = /* @__PURE__ */ ae({
|
|
|
6505
6505
|
}, null);
|
|
6506
6506
|
}
|
|
6507
6507
|
function u(d) {
|
|
6508
|
-
s.value =
|
|
6508
|
+
s.value = Ha;
|
|
6509
6509
|
}
|
|
6510
6510
|
function v() {
|
|
6511
|
-
return r(
|
|
6511
|
+
return r(Lr, {
|
|
6512
6512
|
onSubmit: u
|
|
6513
6513
|
}, null);
|
|
6514
6514
|
}
|
|
@@ -6518,21 +6518,21 @@ const jr = /* @__PURE__ */ ae({
|
|
|
6518
6518
|
"data-dragref": `${o.schema.id}-container`
|
|
6519
6519
|
}, [i.value ? v() : f()]);
|
|
6520
6520
|
}
|
|
6521
|
-
}),
|
|
6521
|
+
}), au = {
|
|
6522
6522
|
install(e) {
|
|
6523
6523
|
e.component(ot.name, ot);
|
|
6524
6524
|
},
|
|
6525
6525
|
register(e, t) {
|
|
6526
|
-
e["external-container"] = ot, t["external-container"] =
|
|
6526
|
+
e["external-container"] = ot, t["external-container"] = xt;
|
|
6527
6527
|
},
|
|
6528
6528
|
registerDesigner(e, t) {
|
|
6529
|
-
e["external-container"] =
|
|
6529
|
+
e["external-container"] = jr, t["external-container"] = xt;
|
|
6530
6530
|
}
|
|
6531
6531
|
};
|
|
6532
6532
|
export {
|
|
6533
6533
|
ot as FExternalContainer,
|
|
6534
|
-
|
|
6535
|
-
|
|
6534
|
+
jr as FExternalContainerDesign,
|
|
6535
|
+
au as default,
|
|
6536
6536
|
ht as externalContainerProps,
|
|
6537
|
-
|
|
6537
|
+
xt as propsResolver
|
|
6538
6538
|
};
|