@farris/ui-vue 1.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +16 -16
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +65 -65
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +13 -13
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +504 -490
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +247 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +356 -344
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +159 -145
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +127 -128
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +15 -15
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +101 -87
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +9 -7
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +181 -167
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +746 -730
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +9 -7
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +789 -777
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3096 -3069
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +257 -243
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +322 -306
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +177 -163
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +78 -82
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +501 -487
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +37 -37
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +487 -472
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +440 -433
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +594 -587
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +2766 -2739
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +402 -388
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +201 -202
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +264 -245
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +157 -143
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +314 -298
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +862 -843
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1031 -1015
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +169 -155
- package/components/nav/index.umd.cjs +2 -2
- package/components/number-range/index.esm.js +150 -137
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +207 -194
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +427 -414
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +22 -22
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +510 -492
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +192 -178
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +234 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +288 -277
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +62 -61
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +776 -770
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +296 -283
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +222 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +187 -173
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +554 -542
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +483 -469
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +634 -619
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +228 -214
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +419 -406
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +162 -148
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +308 -284
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +279 -265
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +183 -170
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +307 -294
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +320 -306
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +245 -231
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +260 -247
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +409 -396
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +424 -410
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +383 -376
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +595 -575
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +325 -311
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +304 -290
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +99 -85
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +947 -933
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +5492 -5470
- 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/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
|
@@ -1,121 +1,135 @@
|
|
|
1
|
-
import { ref as g, computed as $, createVNode as
|
|
2
|
-
import { isPlainObject as U, cloneDeep as
|
|
1
|
+
import { ref as g, computed as $, createVNode as s, Fragment as B, watch as J, withModifiers as le, withDirectives as se, vModelText as ae, defineComponent as N, createTextVNode as _, inject as oe, onMounted as ie } from "vue";
|
|
2
|
+
import { isPlainObject as U, cloneDeep as Q } from "lodash-es";
|
|
3
3
|
import { useIdentify as re, useHierarchy as ce, useGroupData as ue, usePagination as fe, useDataView as de, useSelection as pe, useEdit as ve, useVisualDataBound as he, useVisualDataCell as ge, useVisualDataRow as me, useVisualGroupRow as ye, useVisualSummaryRow as we, useVisualData as Se } from "../data-view/index.esm.js";
|
|
4
4
|
import { FCheckBox as G } from "../checkbox/index.esm.js";
|
|
5
5
|
import { withInstall as be } from "../common/index.esm.js";
|
|
6
|
-
const
|
|
6
|
+
const Y = {}, Z = {};
|
|
7
7
|
function q(t) {
|
|
8
|
-
const { properties: e, title:
|
|
9
|
-
if (
|
|
10
|
-
const
|
|
11
|
-
|
|
8
|
+
const { properties: e, title: n, ignore: o } = t, u = o && Array.isArray(o), l = Object.keys(e).reduce((a, m) => ((!u || !o.find((r) => r === m)) && (a[m] = e[m].type === "object" && e[m].properties ? q(e[m]) : Q(e[m].default)), a), {});
|
|
9
|
+
if (n && (!u || !o.find((a) => a === "id"))) {
|
|
10
|
+
const a = n.toLowerCase().replace(/-/g, "_");
|
|
11
|
+
l.id = `${a}_${Math.random().toString().slice(2, 6)}`;
|
|
12
12
|
}
|
|
13
|
-
return
|
|
13
|
+
return l;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
function Ce(t) {
|
|
16
|
+
const { properties: e, title: n, required: o } = t;
|
|
17
|
+
if (o && Array.isArray(o)) {
|
|
18
|
+
const u = o.reduce((l, a) => (l[a] = e[a].type === "object" && e[a].properties ? q(e[a]) : Q(e[a].default), l), {});
|
|
19
|
+
if (n && o.find((l) => l === "id")) {
|
|
20
|
+
const l = n.toLowerCase().replace(/-/g, "_");
|
|
21
|
+
u.id = `${l}_${Math.random().toString().slice(2, 6)}`;
|
|
22
|
+
}
|
|
23
|
+
return u;
|
|
21
24
|
}
|
|
22
|
-
return
|
|
25
|
+
return {
|
|
26
|
+
type: n
|
|
27
|
+
};
|
|
23
28
|
}
|
|
24
|
-
function
|
|
25
|
-
const
|
|
26
|
-
|
|
29
|
+
function K(t, e = {}, n) {
|
|
30
|
+
const o = Y[t];
|
|
31
|
+
if (o) {
|
|
32
|
+
let u = Ce(o);
|
|
33
|
+
const l = Z[t];
|
|
34
|
+
return u = l ? l({ getSchemaByType: K }, u, e, n) : u, u;
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
27
37
|
}
|
|
28
38
|
function ke(t, e) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
const n = q(e);
|
|
40
|
+
return Object.keys(n).reduce((o, u) => (Object.prototype.hasOwnProperty.call(t, u) && (o[u] && U(o[u]) && U(t[u] || !t[u]) ? Object.assign(o[u], t[u] || {}) : o[u] = t[u]), o), n), n;
|
|
41
|
+
}
|
|
42
|
+
function Me(t, e) {
|
|
43
|
+
return Object.keys(t).filter((o) => t[o] != null).reduce((o, u) => {
|
|
44
|
+
if (e.has(u)) {
|
|
45
|
+
const l = e.get(u);
|
|
46
|
+
if (typeof l == "string")
|
|
47
|
+
o[l] = t[u];
|
|
34
48
|
else {
|
|
35
|
-
const
|
|
36
|
-
Object.assign(
|
|
49
|
+
const a = l(u, t[u], t);
|
|
50
|
+
Object.assign(o, a);
|
|
37
51
|
}
|
|
38
52
|
} else
|
|
39
|
-
|
|
40
|
-
return
|
|
53
|
+
o[u] = t[u];
|
|
54
|
+
return o;
|
|
41
55
|
}, {});
|
|
42
56
|
}
|
|
43
|
-
function
|
|
44
|
-
const
|
|
45
|
-
return
|
|
57
|
+
function Ve(t, e, n = /* @__PURE__ */ new Map()) {
|
|
58
|
+
const o = ke(t, e);
|
|
59
|
+
return Me(o, n);
|
|
46
60
|
}
|
|
47
|
-
function
|
|
48
|
-
function e(
|
|
49
|
-
if (typeof
|
|
50
|
-
return
|
|
51
|
-
if (typeof
|
|
52
|
-
const V = Object.keys(
|
|
61
|
+
function Oe(t = {}) {
|
|
62
|
+
function e(p, f, i, c) {
|
|
63
|
+
if (typeof i == "number")
|
|
64
|
+
return c[p].length === i;
|
|
65
|
+
if (typeof i == "object") {
|
|
66
|
+
const V = Object.keys(i)[0], S = i[V];
|
|
53
67
|
if (V === "not")
|
|
54
|
-
return Number(
|
|
68
|
+
return Number(c[p].length) !== Number(S);
|
|
55
69
|
if (V === "moreThan")
|
|
56
|
-
return Number(
|
|
70
|
+
return Number(c[p].length) >= Number(S);
|
|
57
71
|
if (V === "lessThan")
|
|
58
|
-
return Number(
|
|
72
|
+
return Number(c[p].length) <= Number(S);
|
|
59
73
|
}
|
|
60
74
|
return !1;
|
|
61
75
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
76
|
+
function n(p, f, i, c) {
|
|
77
|
+
return c[p] && c[p].propertyValue && String(c[p].propertyValue.value) === String(i);
|
|
64
78
|
}
|
|
65
|
-
const
|
|
79
|
+
const o = /* @__PURE__ */ new Map([
|
|
66
80
|
["length", e],
|
|
67
|
-
["getProperty",
|
|
81
|
+
["getProperty", n]
|
|
68
82
|
]);
|
|
69
|
-
Object.keys(t).reduce((
|
|
70
|
-
function p
|
|
71
|
-
const
|
|
72
|
-
return typeof
|
|
73
|
-
if (
|
|
74
|
-
return { target:
|
|
75
|
-
const V =
|
|
76
|
-
return { target:
|
|
83
|
+
Object.keys(t).reduce((p, f) => (p.set(f, t[f]), p), o);
|
|
84
|
+
function u(p, f) {
|
|
85
|
+
const i = p;
|
|
86
|
+
return typeof f == "number" ? [{ target: i, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: i, operator: "getProperty", param: p, value: !!f }] : typeof f == "object" ? Object.keys(f).map((c) => {
|
|
87
|
+
if (c === "length")
|
|
88
|
+
return { target: i, operator: "length", param: null, value: f[c] };
|
|
89
|
+
const V = c, S = f[c];
|
|
90
|
+
return { target: i, operator: "getProperty", param: V, value: S };
|
|
77
91
|
}) : [];
|
|
78
92
|
}
|
|
79
|
-
function
|
|
80
|
-
return Object.keys(
|
|
81
|
-
const V =
|
|
82
|
-
return
|
|
93
|
+
function l(p) {
|
|
94
|
+
return Object.keys(p).reduce((i, c) => {
|
|
95
|
+
const V = u(c, p[c]);
|
|
96
|
+
return i.push(...V), i;
|
|
83
97
|
}, []);
|
|
84
98
|
}
|
|
85
|
-
function
|
|
86
|
-
if (
|
|
87
|
-
const
|
|
88
|
-
return
|
|
99
|
+
function a(p, f) {
|
|
100
|
+
if (o.has(p.operator)) {
|
|
101
|
+
const i = o.get(p.operator);
|
|
102
|
+
return i && i(p.target, p.param, p.value, f) || !1;
|
|
89
103
|
}
|
|
90
104
|
return !1;
|
|
91
105
|
}
|
|
92
|
-
function m(
|
|
93
|
-
return
|
|
106
|
+
function m(p, f) {
|
|
107
|
+
return l(p).reduce((V, S) => V && a(S, f), !0);
|
|
94
108
|
}
|
|
95
|
-
function
|
|
96
|
-
const
|
|
97
|
-
return
|
|
109
|
+
function r(p, f) {
|
|
110
|
+
const i = Object.keys(p), c = i.includes("allOf"), V = i.includes("anyOf"), S = c || V, D = (S ? p[S ? c ? "allOf" : "anyOf" : "allOf"] : [p]).map((F) => m(F, f));
|
|
111
|
+
return c ? !D.includes(!1) : D.includes(!0);
|
|
98
112
|
}
|
|
99
|
-
return { parseValueSchema:
|
|
113
|
+
return { parseValueSchema: r };
|
|
100
114
|
}
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
function
|
|
104
|
-
return
|
|
105
|
-
const m =
|
|
106
|
-
return Object.assign(
|
|
115
|
+
const De = {}, Te = {};
|
|
116
|
+
Oe();
|
|
117
|
+
function x(t, e, n = /* @__PURE__ */ new Map(), o = (a, m, r, p) => m, u = {}, l = (a) => a) {
|
|
118
|
+
return Y[e.title] = e, Z[e.title] = o, De[e.title] = u, Te[e.title] = l, (a = {}) => {
|
|
119
|
+
const m = Ve(a, e, n), r = Object.keys(t).reduce((p, f) => (p[f] = t[f].default, p), {});
|
|
120
|
+
return Object.assign(r, m);
|
|
107
121
|
};
|
|
108
122
|
}
|
|
109
|
-
function
|
|
123
|
+
function ee(t, e) {
|
|
110
124
|
return { customClass: e.class, customStyle: e.style };
|
|
111
125
|
}
|
|
112
|
-
const
|
|
113
|
-
["appearance",
|
|
126
|
+
const Fe = /* @__PURE__ */ new Map([
|
|
127
|
+
["appearance", ee]
|
|
114
128
|
]);
|
|
115
|
-
function
|
|
129
|
+
function Ie(t, e, n) {
|
|
116
130
|
return e;
|
|
117
131
|
}
|
|
118
|
-
const
|
|
132
|
+
const je = "transfer", Re = "A Farris Component", $e = "object", Pe = {
|
|
119
133
|
basic: {
|
|
120
134
|
description: "Basic Infomation",
|
|
121
135
|
title: "基本信息",
|
|
@@ -137,12 +151,12 @@ const Ie = "transfer", je = "A Farris Component", Re = "object", $e = {
|
|
|
137
151
|
}
|
|
138
152
|
}
|
|
139
153
|
}
|
|
140
|
-
},
|
|
141
|
-
title:
|
|
142
|
-
description:
|
|
143
|
-
type:
|
|
144
|
-
categories:
|
|
145
|
-
},
|
|
154
|
+
}, Ae = {
|
|
155
|
+
title: je,
|
|
156
|
+
description: Re,
|
|
157
|
+
type: $e,
|
|
158
|
+
categories: Pe
|
|
159
|
+
}, Le = "https://json-schema.org/draft/2020-12/schema", He = "https://farris-design.gitee.io/transfer.schema.json", Ee = "transfer", _e = "A Farris Component", Be = "object", Ne = {
|
|
146
160
|
id: {
|
|
147
161
|
description: "The unique identifier for transfer",
|
|
148
162
|
type: "string"
|
|
@@ -204,17 +218,17 @@ const Ie = "transfer", je = "A Farris Component", Re = "object", $e = {
|
|
|
204
218
|
type: "boolean",
|
|
205
219
|
default: !0
|
|
206
220
|
}
|
|
207
|
-
},
|
|
221
|
+
}, Ge = [
|
|
208
222
|
"id",
|
|
209
223
|
"type"
|
|
210
|
-
],
|
|
211
|
-
$schema:
|
|
212
|
-
$id:
|
|
213
|
-
title:
|
|
214
|
-
description:
|
|
215
|
-
type:
|
|
216
|
-
properties:
|
|
217
|
-
required:
|
|
224
|
+
], qe = {
|
|
225
|
+
$schema: Le,
|
|
226
|
+
$id: He,
|
|
227
|
+
title: Ee,
|
|
228
|
+
description: _e,
|
|
229
|
+
type: Be,
|
|
230
|
+
properties: Ne,
|
|
231
|
+
required: Ge
|
|
218
232
|
}, z = {
|
|
219
233
|
dataSource: {
|
|
220
234
|
type: Array,
|
|
@@ -227,13 +241,13 @@ const Ie = "transfer", je = "A Farris Component", Re = "object", $e = {
|
|
|
227
241
|
placeholder: { type: String, default: "" },
|
|
228
242
|
selections: { type: Array, default: [] },
|
|
229
243
|
selectionValues: { type: Array, default: [] }
|
|
230
|
-
},
|
|
231
|
-
["appearance",
|
|
244
|
+
}, te = x(z, qe, Fe, Ie, Ae), ze = /* @__PURE__ */ new Map([
|
|
245
|
+
["appearance", ee]
|
|
232
246
|
]);
|
|
233
|
-
function
|
|
247
|
+
function Ue(t, e, n) {
|
|
234
248
|
return e;
|
|
235
249
|
}
|
|
236
|
-
const
|
|
250
|
+
const We = "https://json-schema.org/draft/2020-12/schema", Xe = "https://farris-design.gitee.io/list-view.schema.json", Je = "list-view", Qe = "A Farris Component", Ye = "object", Ze = {
|
|
237
251
|
id: {
|
|
238
252
|
description: "The unique identifier for list-view",
|
|
239
253
|
type: "string"
|
|
@@ -295,18 +309,18 @@ const Ue = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
295
309
|
type: "boolean",
|
|
296
310
|
default: !0
|
|
297
311
|
}
|
|
298
|
-
},
|
|
312
|
+
}, Ke = [
|
|
299
313
|
"id",
|
|
300
314
|
"type"
|
|
301
|
-
],
|
|
302
|
-
$schema:
|
|
303
|
-
$id:
|
|
304
|
-
title:
|
|
305
|
-
description:
|
|
306
|
-
type:
|
|
307
|
-
properties:
|
|
308
|
-
required:
|
|
309
|
-
},
|
|
315
|
+
], xe = {
|
|
316
|
+
$schema: We,
|
|
317
|
+
$id: Xe,
|
|
318
|
+
title: Je,
|
|
319
|
+
description: Qe,
|
|
320
|
+
type: Ye,
|
|
321
|
+
properties: Ze,
|
|
322
|
+
required: Ke
|
|
323
|
+
}, et = "list-view", tt = "A Farris Component", nt = "object", lt = {
|
|
310
324
|
basic: {
|
|
311
325
|
description: "Basic Infomation",
|
|
312
326
|
title: "基本信息",
|
|
@@ -328,12 +342,12 @@ const Ue = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
328
342
|
}
|
|
329
343
|
}
|
|
330
344
|
}
|
|
331
|
-
},
|
|
332
|
-
title:
|
|
333
|
-
description:
|
|
334
|
-
type:
|
|
335
|
-
categories:
|
|
336
|
-
},
|
|
345
|
+
}, st = {
|
|
346
|
+
title: et,
|
|
347
|
+
description: tt,
|
|
348
|
+
type: nt,
|
|
349
|
+
categories: lt
|
|
350
|
+
}, ne = {
|
|
337
351
|
/** 列集合 */
|
|
338
352
|
columns: {
|
|
339
353
|
type: Array,
|
|
@@ -375,128 +389,128 @@ const Ue = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-
|
|
|
375
389
|
// 搜索启用高亮
|
|
376
390
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
377
391
|
};
|
|
378
|
-
|
|
379
|
-
function
|
|
380
|
-
function l
|
|
381
|
-
const
|
|
382
|
-
let m =
|
|
392
|
+
x(ne, xe, ze, Ue, st);
|
|
393
|
+
function at(t, e) {
|
|
394
|
+
function n(l) {
|
|
395
|
+
const a = [];
|
|
396
|
+
let m = l.nextNode();
|
|
383
397
|
for (; m; )
|
|
384
|
-
|
|
385
|
-
return
|
|
398
|
+
a.push(m), m = l.nextNode();
|
|
399
|
+
return a;
|
|
386
400
|
}
|
|
387
|
-
function
|
|
388
|
-
const m = document.createTreeWalker(
|
|
389
|
-
return
|
|
401
|
+
function o(l, a) {
|
|
402
|
+
const m = document.createTreeWalker(l, NodeFilter.SHOW_TEXT);
|
|
403
|
+
return n(m).map((i) => ({ textNode: i, text: (i.textContent || "").toLocaleLowerCase() })).map(({ textNode: i, text: c }) => {
|
|
390
404
|
const V = [];
|
|
391
405
|
let S = 0;
|
|
392
|
-
for (; S <
|
|
393
|
-
const k =
|
|
406
|
+
for (; S < c.length; ) {
|
|
407
|
+
const k = c.indexOf(a, S);
|
|
394
408
|
if (k === -1)
|
|
395
409
|
break;
|
|
396
|
-
V.push(k), S = k +
|
|
410
|
+
V.push(k), S = k + a.length;
|
|
397
411
|
}
|
|
398
412
|
return V.map((k) => {
|
|
399
413
|
const I = new Range();
|
|
400
|
-
return I.setStart(
|
|
414
|
+
return I.setStart(i, k), I.setEnd(i, k + a.length), I;
|
|
401
415
|
});
|
|
402
416
|
}).flat();
|
|
403
417
|
}
|
|
404
|
-
function
|
|
405
|
-
if (!CSS.highlights || (CSS.highlights.clear(), !
|
|
418
|
+
function u(l) {
|
|
419
|
+
if (!CSS.highlights || (CSS.highlights.clear(), !l || !e))
|
|
406
420
|
return;
|
|
407
|
-
const
|
|
421
|
+
const a = o(e.value, l.toLocaleLowerCase()), m = new Highlight(...a);
|
|
408
422
|
CSS.highlights.set("search-result", m);
|
|
409
423
|
}
|
|
410
|
-
return { search:
|
|
424
|
+
return { search: u };
|
|
411
425
|
}
|
|
412
|
-
function W(t, e,
|
|
413
|
-
const
|
|
426
|
+
function W(t, e, n, o, u, l, a, m, r, p) {
|
|
427
|
+
const f = g(t.size), i = g(t.textField), c = g(t.titleField), V = g(t.disableField), S = $(() => {
|
|
414
428
|
var v, w;
|
|
415
429
|
return ((v = t.selection) == null ? void 0 : v.multiSelect) && ((w = t.selection) == null ? void 0 : w.showCheckbox);
|
|
416
430
|
}), {
|
|
417
431
|
onMouseenterItem: k,
|
|
418
432
|
onMouseoverItem: I,
|
|
419
433
|
onMouseoutItem: D
|
|
420
|
-
} =
|
|
434
|
+
} = l, {
|
|
421
435
|
getKey: O,
|
|
422
436
|
listViewItemClass: F,
|
|
423
437
|
onCheckItem: P,
|
|
424
438
|
onClickItem: y
|
|
425
|
-
} =
|
|
426
|
-
margin:
|
|
439
|
+
} = a, M = $(() => ({
|
|
440
|
+
margin: f.value === "small" ? "0.25rem 0" : "10px 0"
|
|
427
441
|
}));
|
|
428
442
|
function T(v, w, C) {
|
|
429
|
-
return v.checked = m.findIndexInSelectedItems(v) > -1,
|
|
443
|
+
return v.checked = m.findIndexInSelectedItems(v) > -1, s("li", {
|
|
430
444
|
class: F(v, w),
|
|
431
445
|
id: O(v, w),
|
|
432
446
|
key: O(v, w),
|
|
433
|
-
onClick: (
|
|
434
|
-
onMouseenter: (
|
|
435
|
-
onMouseover: (
|
|
436
|
-
onMouseout: (
|
|
437
|
-
}, [S.value &&
|
|
447
|
+
onClick: (d) => y(d, v, w),
|
|
448
|
+
onMouseenter: (d) => k(d, v, w),
|
|
449
|
+
onMouseover: (d) => I(d, v, w),
|
|
450
|
+
onMouseout: (d) => D(d, v, w)
|
|
451
|
+
}, [S.value && s("div", {
|
|
438
452
|
class: "f-list-select",
|
|
439
|
-
onClick: (
|
|
440
|
-
}, [
|
|
453
|
+
onClick: (d) => d.stopPropagation()
|
|
454
|
+
}, [s(G, {
|
|
441
455
|
id: "list-" + O(v, w),
|
|
442
456
|
customClass: "listview-checkbox",
|
|
443
457
|
disabled: v[V.value],
|
|
444
458
|
checked: v.checked,
|
|
445
|
-
"onUpdate:checked": (
|
|
446
|
-
onChange: (
|
|
447
|
-
P(v, w, !
|
|
459
|
+
"onUpdate:checked": (d) => v.checked = d,
|
|
460
|
+
onChange: (d) => {
|
|
461
|
+
P(v, w, !d.checked);
|
|
448
462
|
}
|
|
449
|
-
}, null)]),
|
|
463
|
+
}, null)]), s("div", {
|
|
450
464
|
class: "f-list-content"
|
|
451
|
-
}, [
|
|
465
|
+
}, [s("div", {
|
|
452
466
|
style: M.value,
|
|
453
|
-
title: v.raw[
|
|
454
|
-
}, [v.raw[
|
|
467
|
+
title: v.raw[c.value] || v.raw[i.value]
|
|
468
|
+
}, [v.raw[i.value]])])]);
|
|
455
469
|
}
|
|
456
470
|
return {
|
|
457
471
|
renderItem: T
|
|
458
472
|
};
|
|
459
473
|
}
|
|
460
|
-
function
|
|
461
|
-
const
|
|
462
|
-
onMouseenterItem:
|
|
474
|
+
function ot(t, e, n, o, u, l, a, m, r, p) {
|
|
475
|
+
const f = g(t.multiSelect), i = g(t.disableField), {
|
|
476
|
+
onMouseenterItem: c,
|
|
463
477
|
onMouseoverItem: V,
|
|
464
478
|
onMouseoutItem: S
|
|
465
|
-
} =
|
|
479
|
+
} = l, {
|
|
466
480
|
getKey: k,
|
|
467
481
|
listViewItemClass: I,
|
|
468
482
|
onCheckItem: D,
|
|
469
483
|
onClickItem: O
|
|
470
|
-
} =
|
|
484
|
+
} = a;
|
|
471
485
|
function F(y, M, T) {
|
|
472
|
-
return e.slots.content ?
|
|
486
|
+
return e.slots.content ? s(B, null, [e.slots.content && e.slots.content({
|
|
473
487
|
item: y.raw,
|
|
474
488
|
index: M,
|
|
475
489
|
selectedItem: T
|
|
476
|
-
})]) :
|
|
490
|
+
})]) : s("div", {
|
|
477
491
|
style: "margin: 10px 0;"
|
|
478
492
|
}, [y.raw.name]);
|
|
479
493
|
}
|
|
480
494
|
function P(y, M, T) {
|
|
481
|
-
return
|
|
495
|
+
return s("li", {
|
|
482
496
|
class: I(y, M),
|
|
483
497
|
id: k(y, M),
|
|
484
498
|
key: k(y, M),
|
|
485
499
|
onClick: (v) => O(v, y, M),
|
|
486
|
-
onMouseenter: (v) =>
|
|
500
|
+
onMouseenter: (v) => c(v, y, M),
|
|
487
501
|
onMouseover: (v) => V(v, y, M),
|
|
488
502
|
onMouseout: (v) => S(v, y, M)
|
|
489
|
-
}, [
|
|
503
|
+
}, [f.value && s("div", {
|
|
490
504
|
class: "f-list-select",
|
|
491
505
|
onClick: (v) => v.stopPropagation()
|
|
492
|
-
}, [
|
|
506
|
+
}, [s(G, {
|
|
493
507
|
id: "list-" + k(y, M),
|
|
494
508
|
customClass: "listview-checkbox",
|
|
495
|
-
disabled: y[
|
|
509
|
+
disabled: y[i.value] || !y.checked,
|
|
496
510
|
checked: y.checked,
|
|
497
511
|
"onUpdate:checked": (v) => y.checked = v,
|
|
498
512
|
onChange: (v) => D(y, M, !v.checked)
|
|
499
|
-
}, null)]),
|
|
513
|
+
}, null)]), s("div", {
|
|
500
514
|
class: "f-list-content"
|
|
501
515
|
}, [F(y, M, T)])]);
|
|
502
516
|
}
|
|
@@ -504,42 +518,42 @@ function at(t, e, l, c, p, s, o, m, i, d) {
|
|
|
504
518
|
renderItem: P
|
|
505
519
|
};
|
|
506
520
|
}
|
|
507
|
-
function
|
|
508
|
-
const
|
|
509
|
-
onMouseenterItem:
|
|
521
|
+
function it(t, e, n, o, u, l, a, m, r, p) {
|
|
522
|
+
const f = g(t.multiSelect), i = g(t.disableField), {
|
|
523
|
+
onMouseenterItem: c,
|
|
510
524
|
onMouseoverItem: V,
|
|
511
525
|
onMouseoutItem: S
|
|
512
|
-
} =
|
|
526
|
+
} = l, {
|
|
513
527
|
getKey: k,
|
|
514
528
|
listViewItemClass: I,
|
|
515
529
|
onCheckItem: D,
|
|
516
530
|
onClickItem: O
|
|
517
|
-
} =
|
|
531
|
+
} = a, {
|
|
518
532
|
dragstart: F,
|
|
519
533
|
dragenter: P,
|
|
520
534
|
dragover: y,
|
|
521
535
|
dragend: M
|
|
522
|
-
} =
|
|
536
|
+
} = o, {
|
|
523
537
|
removeItem: T
|
|
524
|
-
} =
|
|
525
|
-
margin:
|
|
538
|
+
} = r, v = $(() => ({
|
|
539
|
+
margin: f.value ? "10px 0" : "10px 0px 10px 14px"
|
|
526
540
|
}));
|
|
527
541
|
function w(h) {
|
|
528
|
-
return
|
|
542
|
+
return s("div", {
|
|
529
543
|
style: v.value
|
|
530
544
|
}, [h.raw.name]);
|
|
531
545
|
}
|
|
532
546
|
function C() {
|
|
533
547
|
return e.slots.itemContent ? e.slots.itemContent : w;
|
|
534
548
|
}
|
|
535
|
-
const
|
|
549
|
+
const d = C();
|
|
536
550
|
function b(h, j, A) {
|
|
537
|
-
return
|
|
551
|
+
return s("li", {
|
|
538
552
|
class: I(h, j),
|
|
539
553
|
id: k(h, j),
|
|
540
554
|
key: k(h, j),
|
|
541
555
|
onClick: (R) => O(R, h, j),
|
|
542
|
-
onMouseenter: (R) =>
|
|
556
|
+
onMouseenter: (R) => c(R, h, j),
|
|
543
557
|
onMouseover: (R) => V(R, h, j),
|
|
544
558
|
onMouseout: (R) => S(R, h, j),
|
|
545
559
|
draggable: "true",
|
|
@@ -547,28 +561,28 @@ function ot(t, e, l, c, p, s, o, m, i, d) {
|
|
|
547
561
|
onDragenter: (R) => P(R, j),
|
|
548
562
|
onDragend: (R) => M(R, h),
|
|
549
563
|
onDragover: (R) => y(R, j)
|
|
550
|
-
}, [
|
|
564
|
+
}, [f.value && s("div", {
|
|
551
565
|
class: "f-list-select",
|
|
552
566
|
onClick: (R) => R.stopPropagation()
|
|
553
|
-
}, [
|
|
567
|
+
}, [s(G, {
|
|
554
568
|
id: "list-" + k(h, j),
|
|
555
569
|
customClass: "listview-checkbox",
|
|
556
|
-
disabled: h[
|
|
570
|
+
disabled: h[i.value] || !h.checked,
|
|
557
571
|
checked: h.checked,
|
|
558
572
|
"onUpdate:checked": (R) => h.checked = R,
|
|
559
573
|
onChange: (R) => D(h, j, !R.checked)
|
|
560
|
-
}, null)]),
|
|
574
|
+
}, null)]), s("div", {
|
|
561
575
|
class: "f-list-content"
|
|
562
|
-
}, [
|
|
576
|
+
}, [d(h)]), s("div", {
|
|
563
577
|
class: "f-list-remove",
|
|
564
578
|
onClick: (R) => T(j)
|
|
565
|
-
}, [
|
|
579
|
+
}, [s("div", {
|
|
566
580
|
class: "f-list-remove-icon"
|
|
567
|
-
}, [
|
|
581
|
+
}, [s("i", {
|
|
568
582
|
class: "f-icon f-icon-remove_face"
|
|
569
|
-
}, null)])]),
|
|
583
|
+
}, null)])]), s("div", {
|
|
570
584
|
class: "f-list-handle"
|
|
571
|
-
}, [
|
|
585
|
+
}, [s("div", null, [s("i", {
|
|
572
586
|
class: "f-icon f-icon-drag-vertical"
|
|
573
587
|
}, null)])])]);
|
|
574
588
|
}
|
|
@@ -576,80 +590,80 @@ function ot(t, e, l, c, p, s, o, m, i, d) {
|
|
|
576
590
|
renderItem: b
|
|
577
591
|
};
|
|
578
592
|
}
|
|
579
|
-
function
|
|
593
|
+
function rt(t, e, n, o, u, l, a, m, r, p) {
|
|
580
594
|
var k;
|
|
581
|
-
const
|
|
582
|
-
collpaseGroupIconClass:
|
|
583
|
-
} =
|
|
584
|
-
toggleGroupRow:
|
|
585
|
-
} =
|
|
595
|
+
const f = g(((k = t.group) == null ? void 0 : k.groupFields) || []), {
|
|
596
|
+
collpaseGroupIconClass: i
|
|
597
|
+
} = u, {
|
|
598
|
+
toggleGroupRow: c
|
|
599
|
+
} = p;
|
|
586
600
|
function V(I, D) {
|
|
587
|
-
D.collapse = !D.collapse,
|
|
601
|
+
D.collapse = !D.collapse, n.value = c(D.collapse ? "collapse" : "expand", D, n.value);
|
|
588
602
|
}
|
|
589
603
|
function S(I, D, O) {
|
|
590
|
-
return I.layer > -1 &&
|
|
604
|
+
return I.layer > -1 && s("div", {
|
|
591
605
|
class: "f-navlookup-recentHeader",
|
|
592
606
|
onClick: (F) => V(F, I)
|
|
593
|
-
}, [
|
|
607
|
+
}, [s("div", {
|
|
594
608
|
class: "fv-grid-group-row-icon"
|
|
595
|
-
}, [
|
|
596
|
-
class:
|
|
597
|
-
}, null)]),
|
|
609
|
+
}, [s("span", {
|
|
610
|
+
class: i(I)
|
|
611
|
+
}, null)]), s("div", {
|
|
598
612
|
class: "f-navlookup-recommandLabel"
|
|
599
|
-
}, [I.raw[
|
|
613
|
+
}, [I.raw[f.value[I.layer]]])]);
|
|
600
614
|
}
|
|
601
615
|
return {
|
|
602
616
|
renderItem: S
|
|
603
617
|
};
|
|
604
618
|
}
|
|
605
|
-
function
|
|
606
|
-
const t = g(-1), e = g(""),
|
|
607
|
-
function p
|
|
608
|
-
|
|
619
|
+
function ct() {
|
|
620
|
+
const t = g(-1), e = g(""), n = g(-1), o = g(!1);
|
|
621
|
+
function u(p, f, i) {
|
|
622
|
+
n.value = i;
|
|
609
623
|
}
|
|
610
|
-
function
|
|
611
|
-
|
|
624
|
+
function l(p, f, i) {
|
|
625
|
+
o.value || (n.value = i);
|
|
612
626
|
}
|
|
613
|
-
function
|
|
614
|
-
|
|
627
|
+
function a(p, f, i) {
|
|
628
|
+
n.value = -1;
|
|
615
629
|
}
|
|
616
630
|
function m() {
|
|
617
|
-
|
|
631
|
+
o.value = !0;
|
|
618
632
|
}
|
|
619
|
-
function
|
|
620
|
-
|
|
633
|
+
function r() {
|
|
634
|
+
o.value = !1;
|
|
621
635
|
}
|
|
622
636
|
return {
|
|
623
637
|
activeIndex: t,
|
|
624
638
|
focusedItemId: e,
|
|
625
|
-
hoverIndex:
|
|
626
|
-
onMouseenterItem:
|
|
627
|
-
onMouseoverItem:
|
|
628
|
-
onMouseoutItem:
|
|
629
|
-
resumeHover:
|
|
639
|
+
hoverIndex: n,
|
|
640
|
+
onMouseenterItem: u,
|
|
641
|
+
onMouseoverItem: l,
|
|
642
|
+
onMouseoutItem: a,
|
|
643
|
+
resumeHover: r,
|
|
630
644
|
suspendHover: m
|
|
631
645
|
};
|
|
632
646
|
}
|
|
633
|
-
function
|
|
634
|
-
const
|
|
647
|
+
function ut(t, e, n, o) {
|
|
648
|
+
const u = g(t.idField), { dataView: l } = n, a = g(-1), m = g(!1), { activeIndex: r, focusedItemId: p, hoverIndex: f, resumeHover: i, suspendHover: c } = o;
|
|
635
649
|
function V(D, O, F) {
|
|
636
|
-
D.stopPropagation(),
|
|
637
|
-
|
|
650
|
+
D.stopPropagation(), c(), O && setTimeout(() => {
|
|
651
|
+
a.value = F, m.value = !0, O.moving = !0;
|
|
638
652
|
});
|
|
639
653
|
}
|
|
640
654
|
function S(D, O) {
|
|
641
|
-
if (D.preventDefault(),
|
|
642
|
-
const F =
|
|
643
|
-
P.splice(
|
|
655
|
+
if (D.preventDefault(), a.value !== O) {
|
|
656
|
+
const F = l.value[a.value], P = l.value;
|
|
657
|
+
P.splice(a.value, 1), P.splice(O, 0, F), a.value = O;
|
|
644
658
|
}
|
|
645
659
|
}
|
|
646
660
|
function k(D, O) {
|
|
647
661
|
D.preventDefault(), D.dataTransfer && (D.dataTransfer.dropEffect = "move");
|
|
648
662
|
}
|
|
649
663
|
function I(D, O) {
|
|
650
|
-
O && (O.moving = !1),
|
|
664
|
+
O && (O.moving = !1), l.value.forEach((F, P) => {
|
|
651
665
|
F.__fv_index__ = P;
|
|
652
|
-
}), m.value = !1,
|
|
666
|
+
}), m.value = !1, i(), f.value = O.raw.__fv_index__, r.value = O.raw.__fv_index__, p.value = O.raw[u.value], e.emit("change", l.value), e.emit("activeChange", O);
|
|
653
667
|
}
|
|
654
668
|
return {
|
|
655
669
|
dragstart: V,
|
|
@@ -659,53 +673,53 @@ function ct(t, e, l, c) {
|
|
|
659
673
|
isDragging: m
|
|
660
674
|
};
|
|
661
675
|
}
|
|
662
|
-
function
|
|
663
|
-
const { dataView:
|
|
664
|
-
function
|
|
665
|
-
if (
|
|
666
|
-
const
|
|
667
|
-
e.emit("removeItem",
|
|
676
|
+
function ft(t, e, n) {
|
|
677
|
+
const { dataView: o } = n;
|
|
678
|
+
function u(l) {
|
|
679
|
+
if (l > -1 && l < o.value.length) {
|
|
680
|
+
const a = o.value.splice(l, 1);
|
|
681
|
+
e.emit("removeItem", a[0]);
|
|
668
682
|
}
|
|
669
683
|
}
|
|
670
|
-
return { removeItem:
|
|
684
|
+
return { removeItem: u };
|
|
671
685
|
}
|
|
672
|
-
function
|
|
673
|
-
const
|
|
674
|
-
function P(
|
|
686
|
+
function dt(t, e, n, o, u, l) {
|
|
687
|
+
const a = g(t.idField), m = g(t.disableField), r = g(t.draggable), p = g(t.itemClass), f = g(t.selection.multiSelect ?? !1), i = g(t.selection.multiSelectMode), { isDragging: c } = o, { activeIndex: V, focusedItemId: S, hoverIndex: k } = u, { clearSelection: I, getSelectedItems: D, toggleSelectItem: O } = l, F = g(D());
|
|
688
|
+
function P(d, b) {
|
|
675
689
|
const h = {
|
|
676
690
|
"f-listview-item": !0,
|
|
677
691
|
"f-list-view-group-item": !0,
|
|
678
|
-
"f-list-view-draggable-item":
|
|
679
|
-
"f-un-click": !
|
|
680
|
-
"f-un-select": !!
|
|
692
|
+
"f-list-view-draggable-item": r.value,
|
|
693
|
+
"f-un-click": !d.checked,
|
|
694
|
+
"f-un-select": !!d.raw[m.value],
|
|
681
695
|
// 'f-listview-active': item.raw.__fv_index__ === activeIndex.value,
|
|
682
696
|
// 多选
|
|
683
697
|
"f-listview-active": F.value.findIndex(
|
|
684
|
-
(A) => A[
|
|
698
|
+
(A) => A[a.value] === d.raw[a.value]
|
|
685
699
|
) > -1,
|
|
686
700
|
"f-listview-item-active": F.value.findIndex(
|
|
687
|
-
(A) => A[
|
|
701
|
+
(A) => A[a.value] === d.raw[a.value]
|
|
688
702
|
) > -1,
|
|
689
|
-
"f-listview-hover": !
|
|
690
|
-
"f-listview-item-hover": !
|
|
691
|
-
moving: !!
|
|
703
|
+
"f-listview-hover": !c.value && b === k.value,
|
|
704
|
+
"f-listview-item-hover": !c.value && b === k.value,
|
|
705
|
+
moving: !!d.moving
|
|
692
706
|
};
|
|
693
|
-
return
|
|
707
|
+
return p.value.split(" ").reduce((A, R) => (A[R] = !0, A), h), h;
|
|
694
708
|
}
|
|
695
|
-
function y(
|
|
696
|
-
return
|
|
709
|
+
function y(d, b) {
|
|
710
|
+
return d.raw[a.value] || "";
|
|
697
711
|
}
|
|
698
|
-
const M = $(() => !
|
|
699
|
-
function T(
|
|
700
|
-
|
|
712
|
+
const M = $(() => !f.value);
|
|
713
|
+
function T(d, b, h) {
|
|
714
|
+
d.checked = h, !d.raw[m.value] && (M.value && (S.value = d.raw[a.value]), O(d));
|
|
701
715
|
}
|
|
702
|
-
const v = $(() =>
|
|
703
|
-
function C(
|
|
716
|
+
const v = $(() => f.value && i.value === "OnCheckClearByClick"), w = $(() => !f.value || f.value && (i.value === "OnCheckAndClick" || i.value === "OnClick"));
|
|
717
|
+
function C(d, b, h) {
|
|
704
718
|
if (b.raw[m.value]) {
|
|
705
|
-
|
|
719
|
+
d.preventDefault(), d.stopPropagation();
|
|
706
720
|
return;
|
|
707
721
|
}
|
|
708
|
-
S.value = b.raw[
|
|
722
|
+
S.value = b.raw[a.value], V.value = h, v.value && I(), w.value && (O(b), F.value = D()), e.emit("clickItem", { data: F.value, index: h }), e.emit("activeChange", F.value);
|
|
709
723
|
}
|
|
710
724
|
return {
|
|
711
725
|
getKey: y,
|
|
@@ -714,33 +728,33 @@ function ft(t, e, l, c, p, s) {
|
|
|
714
728
|
onClickItem: C
|
|
715
729
|
};
|
|
716
730
|
}
|
|
717
|
-
function
|
|
718
|
-
const m = g(t.view),
|
|
731
|
+
function pt(t, e, n, o, u, l, a) {
|
|
732
|
+
const m = g(t.view), r = g(t.view === "CardView"), p = g({}), f = g("暂无数据"), i = ct(), c = ut(t, e, o, i), V = ft(t, e, o), S = dt(t, e, n, c, i, l), k = $(() => ({
|
|
719
733
|
"f-list-view-group": !0,
|
|
720
|
-
"d-flex":
|
|
721
|
-
"flex-wrap":
|
|
722
|
-
})), I = $(() => !!
|
|
734
|
+
"d-flex": r.value,
|
|
735
|
+
"flex-wrap": r.value
|
|
736
|
+
})), I = $(() => !!n.value && n.value.length > 0), D = $(() => n.value.length === 0);
|
|
723
737
|
$(() => D.value && !e.slots.empty);
|
|
724
738
|
function O() {
|
|
725
|
-
return m.value === "SingleView" ? W : m.value === "DraggableView" ?
|
|
739
|
+
return m.value === "SingleView" ? W : m.value === "DraggableView" ? it : (m.value === "ContentView" || m.value === "CardView") && e.slots.content ? ot : W;
|
|
726
740
|
}
|
|
727
741
|
const F = O(), {
|
|
728
742
|
renderItem: P
|
|
729
|
-
} = F(t, e,
|
|
743
|
+
} = F(t, e, n, c, u, i, S, l, V, a), {
|
|
730
744
|
renderItem: y
|
|
731
|
-
} =
|
|
745
|
+
} = rt(t, e, n, c, u, i, S, l, V, a), M = [P, y];
|
|
732
746
|
function T() {
|
|
733
|
-
return
|
|
747
|
+
return n.value.filter((C) => C.visible !== !1).map((C, d) => M[C.type](C, d, p));
|
|
734
748
|
}
|
|
735
749
|
function v() {
|
|
736
|
-
return
|
|
750
|
+
return s("div", {
|
|
737
751
|
class: "f-list-view-emptydata"
|
|
738
|
-
}, [
|
|
752
|
+
}, [s("p", {
|
|
739
753
|
class: "f-empty-title"
|
|
740
|
-
}, [e.slots.empty ? e.slots.empty() :
|
|
754
|
+
}, [e.slots.empty ? e.slots.empty() : f.value])]);
|
|
741
755
|
}
|
|
742
756
|
function w() {
|
|
743
|
-
return
|
|
757
|
+
return s("ul", {
|
|
744
758
|
class: k.value,
|
|
745
759
|
style: "list-style: none;"
|
|
746
760
|
}, [I.value && T(), D.value && v()]);
|
|
@@ -749,98 +763,98 @@ function dt(t, e, l, c, p, s, o) {
|
|
|
749
763
|
renderListArea: w
|
|
750
764
|
};
|
|
751
765
|
}
|
|
752
|
-
function
|
|
753
|
-
function
|
|
754
|
-
return e.slots.header &&
|
|
766
|
+
function vt(t, e, n) {
|
|
767
|
+
function o() {
|
|
768
|
+
return e.slots.header && s("div", {
|
|
755
769
|
class: "f-list-view-header"
|
|
756
770
|
}, [e.slots.header()]);
|
|
757
771
|
}
|
|
758
772
|
return {
|
|
759
|
-
renderHeader:
|
|
773
|
+
renderHeader: o
|
|
760
774
|
};
|
|
761
775
|
}
|
|
762
|
-
function X(t, e,
|
|
763
|
-
const
|
|
764
|
-
function
|
|
765
|
-
|
|
776
|
+
function X(t, e, n) {
|
|
777
|
+
const o = g(t.headerClass), u = g(t.placeholder), l = g(""), a = $(() => !l.value), m = $(() => !!l.value);
|
|
778
|
+
function r(c) {
|
|
779
|
+
l.value = "";
|
|
766
780
|
}
|
|
767
|
-
J(
|
|
768
|
-
t.enableHighlightSearch &&
|
|
781
|
+
J(l, (c) => {
|
|
782
|
+
t.enableHighlightSearch && n.search(c), e.emit("afterSearch", c);
|
|
769
783
|
});
|
|
770
|
-
const
|
|
771
|
-
const
|
|
784
|
+
const p = $(() => {
|
|
785
|
+
const c = {
|
|
772
786
|
"form-group": !0,
|
|
773
787
|
"farris-form-group": !0
|
|
774
788
|
};
|
|
775
|
-
return
|
|
789
|
+
return o.value && o.value.split(" ").reduce((S, k) => (S[k] = !0, S), c), c;
|
|
776
790
|
});
|
|
777
|
-
function
|
|
791
|
+
function f(c) {
|
|
778
792
|
}
|
|
779
|
-
function
|
|
780
|
-
return
|
|
793
|
+
function i() {
|
|
794
|
+
return s("div", {
|
|
781
795
|
class: "f-list-view-header",
|
|
782
|
-
onClick:
|
|
783
|
-
}, [
|
|
784
|
-
class:
|
|
785
|
-
}, [
|
|
796
|
+
onClick: le(() => f, ["prevent", "stop"])
|
|
797
|
+
}, [s("div", {
|
|
798
|
+
class: p.value
|
|
799
|
+
}, [s("div", {
|
|
786
800
|
class: "farris-input-wrap"
|
|
787
|
-
}, [
|
|
801
|
+
}, [s("div", {
|
|
788
802
|
class: "f-cmp-inputgroup"
|
|
789
|
-
}, [
|
|
803
|
+
}, [s("div", {
|
|
790
804
|
class: "input-group f-state-editable"
|
|
791
|
-
}, [
|
|
805
|
+
}, [se(s("input", {
|
|
792
806
|
class: "form-control f-utils-fill text-left",
|
|
793
|
-
"onUpdate:modelValue": (
|
|
807
|
+
"onUpdate:modelValue": (c) => l.value = c,
|
|
794
808
|
name: "input-group-value",
|
|
795
809
|
type: "text",
|
|
796
|
-
placeholder:
|
|
810
|
+
placeholder: u.value,
|
|
797
811
|
autocomplete: "off"
|
|
798
|
-
}, null), [[
|
|
812
|
+
}, null), [[ae, l.value]]), s("div", {
|
|
799
813
|
class: "input-group-append"
|
|
800
|
-
}, [m.value &&
|
|
814
|
+
}, [m.value && s("span", {
|
|
801
815
|
class: "input-group-text input-group-clear",
|
|
802
|
-
onClick: (
|
|
803
|
-
}, [
|
|
816
|
+
onClick: (c) => r()
|
|
817
|
+
}, [s("i", {
|
|
804
818
|
class: "f-icon f-icon-close-circle"
|
|
805
|
-
}, null)]),
|
|
819
|
+
}, null)]), a.value && s("span", {
|
|
806
820
|
class: "input-group-text"
|
|
807
|
-
}, [
|
|
821
|
+
}, [s("span", {
|
|
808
822
|
class: "f-icon f-icon-search"
|
|
809
823
|
}, null)])])])])])])]);
|
|
810
824
|
}
|
|
811
825
|
return {
|
|
812
|
-
renderHeader:
|
|
826
|
+
renderHeader: i
|
|
813
827
|
};
|
|
814
828
|
}
|
|
815
829
|
const H = /* @__PURE__ */ N({
|
|
816
830
|
name: "FListView",
|
|
817
|
-
props:
|
|
831
|
+
props: ne,
|
|
818
832
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
819
833
|
setup(t, e) {
|
|
820
|
-
const
|
|
834
|
+
const n = g(), o = g(!0), u = g(!1), l = g([]), a = 0, m = g(t.columns), r = re(t), p = ce(t), f = ue(t, r), i = fe(t), c = de(t, /* @__PURE__ */ new Map(), p, r, i), V = pe(t, c, r, l, e), S = at(t, n), k = $(() => c.dataView.value.length), I = ve(t, e, r), D = he(), O = ge(t, {}, D), F = me(t, I, p, r, D, O), P = ye(t, r, O, F), y = we(t, r, O, F), M = Se(t, m, c, k, a, F, P, y), {
|
|
821
835
|
getVisualData: T
|
|
822
836
|
} = M;
|
|
823
|
-
|
|
837
|
+
l.value = T(0, k.value + a - 1);
|
|
824
838
|
const v = $(() => {
|
|
825
839
|
const L = {
|
|
826
840
|
"f-list-view": !0,
|
|
827
841
|
"f-list-view-multiple": t.multiSelect
|
|
828
842
|
};
|
|
829
843
|
return t.size !== "default" && (L[`${t.size}-item`] = !0), L;
|
|
830
|
-
}), w = $(() => !!e.slots.footer ||
|
|
844
|
+
}), w = $(() => !!e.slots.footer || o.value);
|
|
831
845
|
function C() {
|
|
832
|
-
return t.header === "SearchBar" ? X : t.header === "ContentHeader" ?
|
|
846
|
+
return t.header === "SearchBar" ? X : t.header === "ContentHeader" ? vt : X;
|
|
833
847
|
}
|
|
834
|
-
const
|
|
848
|
+
const d = C(), {
|
|
835
849
|
renderHeader: b
|
|
836
|
-
} =
|
|
850
|
+
} = d(t, e, S), {
|
|
837
851
|
renderListArea: h
|
|
838
|
-
} =
|
|
852
|
+
} = pt(t, e, l, c, f, V, M);
|
|
839
853
|
function j(L) {
|
|
840
854
|
S.search(L);
|
|
841
855
|
}
|
|
842
856
|
function A(L) {
|
|
843
|
-
L && (
|
|
857
|
+
L && (c.load(L), l.value = T(0, k.value + a - 1));
|
|
844
858
|
}
|
|
845
859
|
e.expose({
|
|
846
860
|
search: j,
|
|
@@ -849,19 +863,19 @@ const H = /* @__PURE__ */ N({
|
|
|
849
863
|
function R(L) {
|
|
850
864
|
t.multiSelect && (L.preventDefault(), L.stopPropagation());
|
|
851
865
|
}
|
|
852
|
-
return () =>
|
|
866
|
+
return () => s("div", {
|
|
853
867
|
class: v.value,
|
|
854
868
|
onClick: R
|
|
855
|
-
}, [b(),
|
|
856
|
-
ref:
|
|
869
|
+
}, [b(), s("div", {
|
|
870
|
+
ref: n,
|
|
857
871
|
class: "f-list-view-content",
|
|
858
872
|
onMouseover: () => {
|
|
859
|
-
|
|
873
|
+
u.value = !0;
|
|
860
874
|
},
|
|
861
875
|
onMouseleave: () => {
|
|
862
|
-
|
|
876
|
+
u.value = !1;
|
|
863
877
|
}
|
|
864
|
-
}, [h()]), w.value &&
|
|
878
|
+
}, [h()]), w.value && s("div", {
|
|
865
879
|
class: "f-list-view-footer"
|
|
866
880
|
}, [e.slots.footer && e.slots.footer()])]);
|
|
867
881
|
}
|
|
@@ -870,23 +884,23 @@ const H = /* @__PURE__ */ N({
|
|
|
870
884
|
props: z,
|
|
871
885
|
emits: ["change", "activeChange"],
|
|
872
886
|
setup(t, e) {
|
|
873
|
-
const
|
|
874
|
-
function
|
|
887
|
+
const n = g(t.identifyField), o = g("已选:"), u = g("项数据"), l = g(t.displayType), a = g(!1), m = g(t.dataSource), r = g(t.selections || []), p = $(() => r.value.map((w) => w[n.value])), f = /* @__PURE__ */ new Map(), i = g();
|
|
888
|
+
function c() {
|
|
875
889
|
const w = /* @__PURE__ */ new Map(), C = t.selectionValues || [];
|
|
876
890
|
C.length && C.reduce((b, h) => (b.set(h, !0), b), w);
|
|
877
|
-
const
|
|
878
|
-
|
|
879
|
-
const h = b[
|
|
880
|
-
b.checked = j, j &&
|
|
891
|
+
const d = t.selections || [];
|
|
892
|
+
d.length && (w.clear(), d.reduce((b, h) => (b.set(h[n.value], !0), b), w)), r.value.length || (r.value = m.value.filter((b) => w.has(b[n.value])).map((b) => Object.assign({}, b))), m.value.forEach((b) => {
|
|
893
|
+
const h = b[n.value], j = w.has(h);
|
|
894
|
+
b.checked = j, j && f.set(h, b);
|
|
881
895
|
});
|
|
882
896
|
}
|
|
883
|
-
|
|
884
|
-
const V = $(() =>
|
|
897
|
+
c();
|
|
898
|
+
const V = $(() => l.value === "List"), S = $(() => l.value === "Tree");
|
|
885
899
|
function k(w) {
|
|
886
|
-
|
|
900
|
+
r.value = w.map((C) => Object.assign({}, C)), e.emit("change", r.value);
|
|
887
901
|
}
|
|
888
902
|
function I() {
|
|
889
|
-
return
|
|
903
|
+
return s(H, {
|
|
890
904
|
class: "f-utils-fill",
|
|
891
905
|
data: m.value,
|
|
892
906
|
multiSelect: !0,
|
|
@@ -901,47 +915,47 @@ const H = /* @__PURE__ */ N({
|
|
|
901
915
|
draggable: !1,
|
|
902
916
|
header: "Search",
|
|
903
917
|
headerClass: "transfer-search-box",
|
|
904
|
-
"selection-values":
|
|
918
|
+
"selection-values": p.value,
|
|
905
919
|
onSelectionChange: k
|
|
906
920
|
}, {
|
|
907
921
|
default: () => [_(" ")]
|
|
908
922
|
});
|
|
909
923
|
}
|
|
910
924
|
function D() {
|
|
911
|
-
return
|
|
925
|
+
return s(B, null, null);
|
|
912
926
|
}
|
|
913
927
|
function O() {
|
|
914
|
-
return
|
|
928
|
+
return s("div", {
|
|
915
929
|
class: "f-utils-fill option-pane d-flex flex-column"
|
|
916
|
-
}, [
|
|
930
|
+
}, [s("div", {
|
|
917
931
|
class: "f-utils-flex-column option-pane-content f-utils-fill"
|
|
918
|
-
}, [
|
|
932
|
+
}, [s("div", {
|
|
919
933
|
class: "container columns-box d-flex f-utils-fill"
|
|
920
934
|
}, [V.value && I(), S.value && D()])])]);
|
|
921
935
|
}
|
|
922
936
|
function F(w) {
|
|
923
|
-
const C = w[
|
|
937
|
+
const C = w[n.value];
|
|
924
938
|
if (C !== null || C !== void 0) {
|
|
925
|
-
|
|
926
|
-
const
|
|
927
|
-
|
|
939
|
+
r.value = r.value.filter((b) => b[n.value] !== C);
|
|
940
|
+
const d = f.get(C);
|
|
941
|
+
d && (d.checked = !1, f.delete(C)), e.emit("change", r.value);
|
|
928
942
|
}
|
|
929
943
|
}
|
|
930
|
-
J(
|
|
931
|
-
|
|
944
|
+
J(r, (w) => {
|
|
945
|
+
i.value.updateDataSource(w);
|
|
932
946
|
});
|
|
933
947
|
function P(w) {
|
|
934
948
|
const C = /* @__PURE__ */ new Map();
|
|
935
|
-
|
|
949
|
+
r.value.reduce((d, b) => (d.set(b[n.value], b), d), C), r.value = w.map((d) => C.get(d[n.value])), e.emit("change", r.value);
|
|
936
950
|
}
|
|
937
951
|
function y(w) {
|
|
938
952
|
e.emit("activeChange", w);
|
|
939
953
|
}
|
|
940
954
|
function M() {
|
|
941
|
-
return
|
|
942
|
-
ref:
|
|
955
|
+
return s(H, {
|
|
956
|
+
ref: i,
|
|
943
957
|
style: "flex:1",
|
|
944
|
-
data:
|
|
958
|
+
data: r.value,
|
|
945
959
|
draggable: !0,
|
|
946
960
|
view: "DraggableView",
|
|
947
961
|
"keep-order": !0,
|
|
@@ -951,62 +965,62 @@ const H = /* @__PURE__ */ N({
|
|
|
951
965
|
}, null);
|
|
952
966
|
}
|
|
953
967
|
function T() {
|
|
954
|
-
return
|
|
968
|
+
return s("div", {
|
|
955
969
|
class: "f-utils-fill selection-pane d-flex flex-column"
|
|
956
|
-
}, [
|
|
970
|
+
}, [s("div", {
|
|
957
971
|
class: "f-utils-flex-column selection-pane-content f-utils-fill"
|
|
958
|
-
}, [
|
|
972
|
+
}, [s("div", {
|
|
959
973
|
class: "selection-pane-title"
|
|
960
|
-
}, [
|
|
974
|
+
}, [s("span", {
|
|
961
975
|
class: "selection-title"
|
|
962
|
-
}, [
|
|
976
|
+
}, [o.value]), s("span", {
|
|
963
977
|
class: "selection-count"
|
|
964
|
-
}, [
|
|
978
|
+
}, [r.value && r.value.length]), s("span", {
|
|
965
979
|
class: "selection-item-title"
|
|
966
|
-
}, [
|
|
980
|
+
}, [u.value])]), s("div", {
|
|
967
981
|
class: "container columns-box f-utils-fill d-flex"
|
|
968
982
|
}, [M()])])]);
|
|
969
983
|
}
|
|
970
984
|
const v = $(() => ({
|
|
971
985
|
transfer: !0,
|
|
972
986
|
row: !0,
|
|
973
|
-
"f-utils-fill":
|
|
987
|
+
"f-utils-fill": a.value
|
|
974
988
|
}));
|
|
975
|
-
return () =>
|
|
989
|
+
return () => s("div", {
|
|
976
990
|
class: v.value,
|
|
977
991
|
style: "height:480px"
|
|
978
992
|
}, [O(), T()]);
|
|
979
993
|
}
|
|
980
994
|
});
|
|
981
|
-
function
|
|
995
|
+
function ht(t, e, n) {
|
|
982
996
|
var P;
|
|
983
|
-
const
|
|
984
|
-
function
|
|
997
|
+
const o = "", u = "", l = g();
|
|
998
|
+
function a() {
|
|
985
999
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
986
1000
|
}
|
|
987
1001
|
function m() {
|
|
988
1002
|
return !1;
|
|
989
1003
|
}
|
|
990
|
-
function
|
|
1004
|
+
function r() {
|
|
991
1005
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
992
1006
|
}
|
|
993
|
-
function
|
|
1007
|
+
function p() {
|
|
994
1008
|
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
995
1009
|
}
|
|
996
|
-
function
|
|
1010
|
+
function f(y) {
|
|
997
1011
|
if (!y || !y.value)
|
|
998
1012
|
return null;
|
|
999
1013
|
if (y.value.schema && y.value.schema.type === "component")
|
|
1000
1014
|
return y.value;
|
|
1001
|
-
const M = g(y == null ? void 0 : y.value.parent), T =
|
|
1015
|
+
const M = g(y == null ? void 0 : y.value.parent), T = f(M);
|
|
1002
1016
|
return T || null;
|
|
1003
1017
|
}
|
|
1004
|
-
function
|
|
1018
|
+
function i(y = e) {
|
|
1005
1019
|
const { componentInstance: M, designerItemElementRef: T } = y;
|
|
1006
|
-
return !M || !M.value ? null : M.value.canMove ? T :
|
|
1020
|
+
return !M || !M.value ? null : M.value.canMove ? T : i(y.parent);
|
|
1007
1021
|
}
|
|
1008
|
-
function
|
|
1009
|
-
return !!
|
|
1022
|
+
function c(y) {
|
|
1023
|
+
return !!n;
|
|
1010
1024
|
}
|
|
1011
1025
|
function V() {
|
|
1012
1026
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
@@ -1017,7 +1031,7 @@ function vt(t, e, l) {
|
|
|
1017
1031
|
}
|
|
1018
1032
|
function I(y, M) {
|
|
1019
1033
|
const { componentType: T } = y;
|
|
1020
|
-
let v =
|
|
1034
|
+
let v = K(T, y, M);
|
|
1021
1035
|
const w = T.toLowerCase().replace(/-/g, "_");
|
|
1022
1036
|
return v && !v.id && v.type === T && (v.id = `${w}_${Math.random().toString().slice(2, 6)}`), v;
|
|
1023
1037
|
}
|
|
@@ -1034,20 +1048,20 @@ function vt(t, e, l) {
|
|
|
1034
1048
|
(v = T == null ? void 0 : T.componentInstance) != null && v.value.onRemoveComponent && T.componentInstance.value.onRemoveComponent();
|
|
1035
1049
|
});
|
|
1036
1050
|
}
|
|
1037
|
-
return
|
|
1038
|
-
canMove:
|
|
1051
|
+
return l.value = {
|
|
1052
|
+
canMove: a(),
|
|
1039
1053
|
canSelectParent: m(),
|
|
1040
|
-
canDelete:
|
|
1041
|
-
canNested: !
|
|
1054
|
+
canDelete: r(),
|
|
1055
|
+
canNested: !p(),
|
|
1042
1056
|
contents: e == null ? void 0 : e.schema.contents,
|
|
1043
1057
|
elementRef: t,
|
|
1044
1058
|
parent: (P = e == null ? void 0 : e.parent) == null ? void 0 : P.componentInstance,
|
|
1045
1059
|
schema: e == null ? void 0 : e.schema,
|
|
1046
|
-
styles:
|
|
1047
|
-
designerClass:
|
|
1048
|
-
canAccepts:
|
|
1049
|
-
getBelongedComponentInstance:
|
|
1050
|
-
getDraggableDesignItemElement:
|
|
1060
|
+
styles: o,
|
|
1061
|
+
designerClass: u,
|
|
1062
|
+
canAccepts: c,
|
|
1063
|
+
getBelongedComponentInstance: f,
|
|
1064
|
+
getDraggableDesignItemElement: i,
|
|
1051
1065
|
getDraggingDisplayText: V,
|
|
1052
1066
|
getPropConfig: O,
|
|
1053
1067
|
getDragScopeElement: S,
|
|
@@ -1057,70 +1071,70 @@ function vt(t, e, l) {
|
|
|
1057
1071
|
triggerBelongedComponentToMoveWhenMoved: g(!1),
|
|
1058
1072
|
triggerBelongedComponentToDeleteWhenDeleted: g(!1),
|
|
1059
1073
|
onRemoveComponent: F
|
|
1060
|
-
},
|
|
1074
|
+
}, l;
|
|
1061
1075
|
}
|
|
1062
|
-
const
|
|
1076
|
+
const gt = /* @__PURE__ */ N({
|
|
1063
1077
|
name: "FTransferDesign",
|
|
1064
1078
|
props: z,
|
|
1065
1079
|
emits: ["change"],
|
|
1066
1080
|
setup(t, e) {
|
|
1067
|
-
const
|
|
1068
|
-
function
|
|
1069
|
-
const C = /* @__PURE__ */ new Map(),
|
|
1070
|
-
|
|
1081
|
+
const n = g(t.identifyField), o = g("已选:"), u = g("项数据"), l = g(t.displayType), a = g(!1), m = g(t.dataSource), r = g(t.selections || []), p = $(() => r.value.map((C) => C[n.value])), f = /* @__PURE__ */ new Map();
|
|
1082
|
+
function i() {
|
|
1083
|
+
const C = /* @__PURE__ */ new Map(), d = t.selectionValues || [];
|
|
1084
|
+
d.length && d.reduce((h, j) => (h.set(j, !0), h), C);
|
|
1071
1085
|
const b = t.selections || [];
|
|
1072
|
-
b.length && (C.clear(), b.reduce((h, j) => (h.set(j[
|
|
1073
|
-
const j = h[
|
|
1074
|
-
h.checked = A, A &&
|
|
1086
|
+
b.length && (C.clear(), b.reduce((h, j) => (h.set(j[n.value], !0), h), C)), r.value.length || (r.value = m.value.filter((h) => C.has(h[n.value])).map((h) => Object.assign({}, h))), m.value.forEach((h) => {
|
|
1087
|
+
const j = h[n.value], A = C.has(j);
|
|
1088
|
+
h.checked = A, A && f.set(j, h);
|
|
1075
1089
|
});
|
|
1076
1090
|
}
|
|
1077
|
-
|
|
1078
|
-
const
|
|
1091
|
+
i();
|
|
1092
|
+
const c = $(() => l.value === "List"), V = $(() => l.value === "Tree");
|
|
1079
1093
|
function S(C) {
|
|
1080
|
-
|
|
1094
|
+
r.value = C.map((d) => Object.assign({}, d)), e.emit("change", r.value);
|
|
1081
1095
|
}
|
|
1082
1096
|
function k() {
|
|
1083
|
-
return
|
|
1097
|
+
return s(H, {
|
|
1084
1098
|
class: "f-utils-fill",
|
|
1085
1099
|
data: m.value,
|
|
1086
1100
|
"multi-select": !0,
|
|
1087
1101
|
draggable: !1,
|
|
1088
1102
|
header: "Search",
|
|
1089
1103
|
headerClass: "transfer-search-box",
|
|
1090
|
-
"selection-values":
|
|
1104
|
+
"selection-values": p.value,
|
|
1091
1105
|
onSelectionChange: S
|
|
1092
1106
|
}, {
|
|
1093
1107
|
default: () => [_(" ")]
|
|
1094
1108
|
});
|
|
1095
1109
|
}
|
|
1096
1110
|
function I() {
|
|
1097
|
-
return
|
|
1111
|
+
return s(B, null, null);
|
|
1098
1112
|
}
|
|
1099
1113
|
function D() {
|
|
1100
|
-
return
|
|
1114
|
+
return s("div", {
|
|
1101
1115
|
class: "f-utils-fill option-pane d-flex flex-column"
|
|
1102
|
-
}, [
|
|
1116
|
+
}, [s("div", {
|
|
1103
1117
|
class: "f-utils-flex-column option-pane-content f-utils-fill"
|
|
1104
|
-
}, [
|
|
1118
|
+
}, [s("div", {
|
|
1105
1119
|
class: "container columns-box d-flex f-utils-fill"
|
|
1106
|
-
}, [
|
|
1120
|
+
}, [c.value && k(), V.value && I()])])]);
|
|
1107
1121
|
}
|
|
1108
1122
|
function O(C) {
|
|
1109
|
-
const
|
|
1110
|
-
if (
|
|
1111
|
-
|
|
1112
|
-
const b =
|
|
1113
|
-
b && (b.checked = !1,
|
|
1123
|
+
const d = C[n.value];
|
|
1124
|
+
if (d !== null || d !== void 0) {
|
|
1125
|
+
r.value = r.value.filter((h) => h[n.value] !== d);
|
|
1126
|
+
const b = f.get(d);
|
|
1127
|
+
b && (b.checked = !1, f.delete(d)), e.emit("change", r.value);
|
|
1114
1128
|
}
|
|
1115
1129
|
}
|
|
1116
1130
|
function F(C) {
|
|
1117
|
-
const
|
|
1118
|
-
|
|
1131
|
+
const d = /* @__PURE__ */ new Map();
|
|
1132
|
+
r.value.reduce((b, h) => (b.set(h[n.value], h), b), d), r.value = C.map((b) => d.get(b[n.value])), e.emit("change", r.value);
|
|
1119
1133
|
}
|
|
1120
1134
|
function P() {
|
|
1121
|
-
return
|
|
1135
|
+
return s(H, {
|
|
1122
1136
|
style: "flex:1",
|
|
1123
|
-
data:
|
|
1137
|
+
data: r.value,
|
|
1124
1138
|
draggable: !0,
|
|
1125
1139
|
view: "DraggableView",
|
|
1126
1140
|
"keep-order": !0,
|
|
@@ -1131,46 +1145,46 @@ const ht = /* @__PURE__ */ N({
|
|
|
1131
1145
|
});
|
|
1132
1146
|
}
|
|
1133
1147
|
function y() {
|
|
1134
|
-
return
|
|
1148
|
+
return s("div", {
|
|
1135
1149
|
class: "f-utils-fill selection-pane d-flex flex-column"
|
|
1136
|
-
}, [
|
|
1150
|
+
}, [s("div", {
|
|
1137
1151
|
class: "f-utils-flex-column selection-pane-content f-utils-fill"
|
|
1138
|
-
}, [
|
|
1152
|
+
}, [s("div", {
|
|
1139
1153
|
class: "selection-pane-title"
|
|
1140
|
-
}, [
|
|
1154
|
+
}, [s("span", {
|
|
1141
1155
|
class: "selection-title"
|
|
1142
|
-
}, [
|
|
1156
|
+
}, [o.value]), s("span", {
|
|
1143
1157
|
class: "selection-count"
|
|
1144
|
-
}, [
|
|
1158
|
+
}, [r.value && r.value.length]), s("span", {
|
|
1145
1159
|
class: "selection-item-title"
|
|
1146
|
-
}, [
|
|
1160
|
+
}, [u.value])]), s("div", {
|
|
1147
1161
|
class: "container columns-box f-utils-fill d-flex"
|
|
1148
1162
|
}, [P()])])]);
|
|
1149
1163
|
}
|
|
1150
1164
|
const M = $(() => ({
|
|
1151
1165
|
transfer: !0,
|
|
1152
1166
|
row: !0,
|
|
1153
|
-
"f-utils-fill":
|
|
1154
|
-
})), T = g(), v =
|
|
1155
|
-
return
|
|
1167
|
+
"f-utils-fill": a.value
|
|
1168
|
+
})), T = g(), v = oe("design-item-context"), w = ht(T, v);
|
|
1169
|
+
return ie(() => {
|
|
1156
1170
|
T.value.componentInstance = w;
|
|
1157
|
-
}), e.expose(w.value), () =>
|
|
1171
|
+
}), e.expose(w.value), () => s("div", {
|
|
1158
1172
|
ref: T,
|
|
1159
1173
|
class: M.value,
|
|
1160
1174
|
style: "height:480px"
|
|
1161
1175
|
}, [D(), y()]);
|
|
1162
1176
|
}
|
|
1163
1177
|
});
|
|
1164
|
-
E.register = (t, e,
|
|
1165
|
-
t.transfer = E, e.transfer =
|
|
1178
|
+
E.register = (t, e, n) => {
|
|
1179
|
+
t.transfer = E, e.transfer = te;
|
|
1166
1180
|
};
|
|
1167
|
-
E.registerDesigner = (t, e,
|
|
1168
|
-
t.transfer =
|
|
1181
|
+
E.registerDesigner = (t, e, n) => {
|
|
1182
|
+
t.transfer = gt, e.transfer = te;
|
|
1169
1183
|
};
|
|
1170
|
-
const
|
|
1184
|
+
const Ct = be(E);
|
|
1171
1185
|
export {
|
|
1172
1186
|
E as FTransfer,
|
|
1173
|
-
|
|
1174
|
-
|
|
1187
|
+
Ct as default,
|
|
1188
|
+
te as propsResolver,
|
|
1175
1189
|
z as transferProps
|
|
1176
1190
|
};
|