@farris/ui-vue 1.2.6 → 1.2.7
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 +147 -139
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +11 -28
- package/components/avatar/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +33 -50
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +183 -171
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +236 -235
- package/components/condition/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +1531 -1560
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +1299 -1300
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +235 -252
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +127 -143
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +206 -201
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +650 -647
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +1101 -1131
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +335 -332
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +128 -145
- package/components/input-group/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +306 -303
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +2470 -2469
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1928 -1958
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/order/index.esm.js +802 -788
- package/components/order/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +116 -137
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-editor/index.esm.js +533 -521
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +178 -177
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +56 -73
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +547 -518
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +260 -281
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +598 -617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/switch/index.esm.js +137 -154
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +109 -130
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +103 -120
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +172 -189
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +124 -122
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +1600 -1630
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +245 -246
- package/components/tree-view/index.umd.cjs +1 -1
- package/farris.all.esm.js +4123 -4112
- package/farris.all.umd.cjs +8 -8
- package/package.json +1 -1
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -2
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -16
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
|
@@ -62,9 +62,10 @@ import Sn from "@farris/ui-vue/components/weather";
|
|
|
62
62
|
import Fn from "@farris/ui-vue/components/video";
|
|
63
63
|
import wn from "@farris/ui-vue/components/textarea";
|
|
64
64
|
import xn from "@farris/ui-vue/components/schema-selector";
|
|
65
|
-
import
|
|
66
|
-
import {
|
|
67
|
-
import Nn from "@farris/ui-vue/components/
|
|
65
|
+
import Bn from "@farris/ui-vue/components/tree-grid";
|
|
66
|
+
import { useIdentify as kn, useHierarchy as Pn, useGroupData as In, usePagination as Vn, useDataView as Mn, useSelection as En, useEdit as $n, useVisualDataBound as On, useVisualDataCell as Dn, useVisualDataRow as Rn, useVisualGroupRow as jn, useVisualSummaryRow as Ln, useVisualData as An } from "@farris/ui-vue/components/data-view";
|
|
67
|
+
import { resolveAppearance as Nn } from "@farris/ui-vue/components/dynamic-resolver";
|
|
68
|
+
import qn from "@farris/ui-vue/components/popover";
|
|
68
69
|
const me = {}, Ve = {};
|
|
69
70
|
function ve(e) {
|
|
70
71
|
const { properties: t, title: n } = e, o = Object.keys(t).reduce((a, s) => (a[s] = t[s].type === "object" && t[s].properties ? ve(t[s]) : Q(t[s].default), a), {});
|
|
@@ -83,7 +84,7 @@ function Me(e, t) {
|
|
|
83
84
|
const n = ve(t);
|
|
84
85
|
return Object.keys(e).reduce((o, a) => (o[a] = e[a], o), n), n;
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function Gn(e, t) {
|
|
87
88
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
|
|
88
89
|
if (t.has(a)) {
|
|
89
90
|
const s = t.get(a);
|
|
@@ -98,9 +99,9 @@ function qn(e, t) {
|
|
|
98
99
|
return o;
|
|
99
100
|
}, {});
|
|
100
101
|
}
|
|
101
|
-
function
|
|
102
|
+
function Hn(e, t, n = /* @__PURE__ */ new Map()) {
|
|
102
103
|
const o = Me(e, t);
|
|
103
|
-
return
|
|
104
|
+
return Gn(o, n);
|
|
104
105
|
}
|
|
105
106
|
function Ee(e) {
|
|
106
107
|
const t = e.type;
|
|
@@ -110,7 +111,7 @@ function Ee(e) {
|
|
|
110
111
|
}
|
|
111
112
|
return e;
|
|
112
113
|
}
|
|
113
|
-
function
|
|
114
|
+
function Wn(e = {}) {
|
|
114
115
|
function t(r, v, l, d) {
|
|
115
116
|
if (typeof l == "number")
|
|
116
117
|
return d[r].length === l;
|
|
@@ -164,19 +165,19 @@ function Hn(e = {}) {
|
|
|
164
165
|
}
|
|
165
166
|
return { parseValueSchema: u };
|
|
166
167
|
}
|
|
167
|
-
const
|
|
168
|
+
const _n = {
|
|
168
169
|
convertTo: (e, t, n, o) => {
|
|
169
170
|
e.appearance && (e.appearance[t] = n);
|
|
170
171
|
},
|
|
171
172
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
172
|
-
}, _n = {
|
|
173
|
-
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
174
173
|
}, zn = {
|
|
174
|
+
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
175
|
+
}, Un = {
|
|
175
176
|
convertTo: (e, t, n, o) => {
|
|
176
177
|
e.editor && (e.editor[t] = n);
|
|
177
178
|
},
|
|
178
179
|
convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
|
|
179
|
-
},
|
|
180
|
+
}, Qn = {
|
|
180
181
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
181
182
|
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
182
183
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
@@ -287,32 +288,32 @@ const Wn = {
|
|
|
287
288
|
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
288
289
|
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
289
290
|
/** 审批类 end */
|
|
290
|
-
},
|
|
291
|
+
}, Kn = {
|
|
291
292
|
convertFrom: (e, t, n) => {
|
|
292
293
|
var a;
|
|
293
294
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
294
|
-
return ((a =
|
|
295
|
+
return ((a = Qn[o]) == null ? void 0 : a.name) || o;
|
|
295
296
|
}
|
|
296
|
-
},
|
|
297
|
+
}, Xn = {
|
|
297
298
|
convertTo: (e, t, n, o) => {
|
|
298
299
|
e[t] = e[t];
|
|
299
300
|
},
|
|
300
301
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
301
|
-
},
|
|
302
|
-
convertFrom: (e, t) => e.binding ? e.binding.
|
|
302
|
+
}, Jn = {
|
|
303
|
+
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
303
304
|
convertTo: (e, t, n) => {
|
|
304
305
|
if (n && n.length > 0) {
|
|
305
306
|
const o = n[0];
|
|
306
|
-
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.
|
|
307
|
+
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
|
|
307
308
|
}
|
|
308
309
|
}
|
|
309
|
-
},
|
|
310
|
+
}, Zn = {
|
|
310
311
|
convertTo: (e, t, n, o) => {
|
|
311
312
|
typeof e.pagination == "boolean" && (e.pagination = {}), e.pagination && (e.pagination[t] = n);
|
|
312
313
|
},
|
|
313
314
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
314
315
|
};
|
|
315
|
-
class
|
|
316
|
+
class Yn {
|
|
316
317
|
constructor() {
|
|
317
318
|
/** 控件标题 */
|
|
318
319
|
V(this, "label", "");
|
|
@@ -342,7 +343,7 @@ class Zn {
|
|
|
342
343
|
V(this, "fieldSetId", "");
|
|
343
344
|
}
|
|
344
345
|
}
|
|
345
|
-
function
|
|
346
|
+
function eo() {
|
|
346
347
|
let e, t;
|
|
347
348
|
const n = /* @__PURE__ */ new Map();
|
|
348
349
|
let o = [];
|
|
@@ -363,7 +364,7 @@ function Yn() {
|
|
|
363
364
|
return;
|
|
364
365
|
}
|
|
365
366
|
d && (v += 1, d = !1);
|
|
366
|
-
const p = c.appearance && c.appearance.class, y = new
|
|
367
|
+
const p = c.appearance && c.appearance.class, y = new Yn();
|
|
367
368
|
p ? a(p, y) : y.isSupportedClass = !1, y.label = c.label || c.id, y.id = c.id, y.group = v, l && (y.fieldSetId = u.id), t === c.id && (e = v), n.set(c.id, c), r.push(y);
|
|
368
369
|
});
|
|
369
370
|
}
|
|
@@ -411,28 +412,28 @@ function Yn() {
|
|
|
411
412
|
convertTo: g
|
|
412
413
|
};
|
|
413
414
|
}
|
|
414
|
-
const Ce =
|
|
415
|
+
const Ce = eo(), to = {
|
|
415
416
|
convertTo: (e, t, n, o, a) => Ce.convertTo(e, t, n, o, a),
|
|
416
417
|
convertFrom: (e, t, n, o) => Ce.convertFrom(e, t, n, o)
|
|
417
|
-
}, to = {
|
|
418
|
-
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
419
418
|
}, no = {
|
|
419
|
+
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
420
|
+
}, oo = {
|
|
420
421
|
convertFrom: (e, t) => e[t] || "",
|
|
421
422
|
convertTo: (e, t, n) => {
|
|
422
423
|
e[t] = n;
|
|
423
424
|
}
|
|
424
425
|
}, ye = {}, ue = /* @__PURE__ */ new Map([
|
|
425
|
-
["/converter/appearance.converter",
|
|
426
|
-
["/converter/buttons.converter",
|
|
427
|
-
["/converter/property-editor.converter",
|
|
428
|
-
["/converter/response-form-layout.converter",
|
|
429
|
-
["/converter/items-count.converter",
|
|
430
|
-
["/converter/type.converter",
|
|
431
|
-
["/converter/change-editor.converter",
|
|
432
|
-
["/converter/form-group-label.converter",
|
|
433
|
-
["/converter/field-selector.converter",
|
|
434
|
-
["/converter/pagination.converter",
|
|
435
|
-
]),
|
|
426
|
+
["/converter/appearance.converter", _n],
|
|
427
|
+
["/converter/buttons.converter", zn],
|
|
428
|
+
["/converter/property-editor.converter", Un],
|
|
429
|
+
["/converter/response-form-layout.converter", to],
|
|
430
|
+
["/converter/items-count.converter", no],
|
|
431
|
+
["/converter/type.converter", Kn],
|
|
432
|
+
["/converter/change-editor.converter", Xn],
|
|
433
|
+
["/converter/form-group-label.converter", oo],
|
|
434
|
+
["/converter/field-selector.converter", Jn],
|
|
435
|
+
["/converter/pagination.converter", Zn]
|
|
436
|
+
]), ao = {}, lo = /* @__PURE__ */ new Map([
|
|
436
437
|
["string", { type: "input-group", enableClear: !1 }],
|
|
437
438
|
["boolean", {
|
|
438
439
|
type: "combo-list",
|
|
@@ -454,24 +455,24 @@ const Ce = Yn(), eo = {
|
|
|
454
455
|
["array", { type: "button-edit" }],
|
|
455
456
|
["number", { type: "number-spinner" }],
|
|
456
457
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
457
|
-
]),
|
|
458
|
+
]), io = Wn();
|
|
458
459
|
function $e(e, t) {
|
|
459
|
-
return () =>
|
|
460
|
+
return () => io.parseValueSchema(e, t);
|
|
460
461
|
}
|
|
461
|
-
function
|
|
462
|
+
function ro(e, t, n) {
|
|
462
463
|
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : $e(t.visible, n) : () => !0;
|
|
463
464
|
}
|
|
464
|
-
function
|
|
465
|
+
function so(e, t, n) {
|
|
465
466
|
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : $e(t.readonly, n) : () => !1;
|
|
466
467
|
}
|
|
467
|
-
function
|
|
468
|
+
function uo(e, t) {
|
|
468
469
|
const n = e.$converter || t;
|
|
469
470
|
return typeof n == "string" && n && ue.has(n) ? ue.get(n) || null : n || null;
|
|
470
471
|
}
|
|
471
472
|
function ge(e, t, n, o, a, s = "", f = "") {
|
|
472
473
|
return Object.keys(e).map((u) => {
|
|
473
|
-
const r = m(1), v = u, l = e[u], d = Object.keys(l), c = l.title, p = l.type, y =
|
|
474
|
-
let S =
|
|
474
|
+
const r = m(1), v = u, l = e[u], d = Object.keys(l), c = l.title, p = l.type, y = lo.get(p) || { type: "input-group", enableClear: !1 }, h = l.editor ? Object.assign({}, y, l.editor) : y, P = ro(d, l, t), I = so(d, l, t), C = l.type === "cascade" ? ge(l.properties, t, n, o, a, s, f) : [], T = !0;
|
|
475
|
+
let S = uo(l, f);
|
|
475
476
|
const w = B({
|
|
476
477
|
get() {
|
|
477
478
|
if (r.value) {
|
|
@@ -489,7 +490,7 @@ function ge(e, t, n, o, a, s = "", f = "") {
|
|
|
489
490
|
return t[v] = x, x;
|
|
490
491
|
});
|
|
491
492
|
}
|
|
492
|
-
function
|
|
493
|
+
function co(e, t, n, o, a = "") {
|
|
493
494
|
const s = t.$ref.schema, f = t.$ref.converter, g = n[s], u = g.type, r = Ee(g), v = {}, l = ye[u];
|
|
494
495
|
if (l && l.categories) {
|
|
495
496
|
const d = l.categories[e], c = d == null ? void 0 : d.title;
|
|
@@ -512,7 +513,7 @@ function ie(e, t, n, o, a) {
|
|
|
512
513
|
return Object.keys(u.categories).map((l) => {
|
|
513
514
|
const d = u.categories[l];
|
|
514
515
|
if (d.$ref) {
|
|
515
|
-
v.push(
|
|
516
|
+
v.push(co(l, d, e, t, o));
|
|
516
517
|
return;
|
|
517
518
|
}
|
|
518
519
|
const c = d == null ? void 0 : d.title, p = d == null ? void 0 : d.tabId, y = d == null ? void 0 : d.tabName, h = d == null ? void 0 : d.hide, P = d == null ? void 0 : d.hideTitle, I = ge(d.properties || {}, g, f, e, t, o, d.$converter), C = d.setPropertyRelates;
|
|
@@ -522,21 +523,21 @@ function ie(e, t, n, o, a) {
|
|
|
522
523
|
return [];
|
|
523
524
|
}
|
|
524
525
|
function Z(e, t, n = /* @__PURE__ */ new Map(), o = (f, g, u) => g, a = {}, s = (f) => f) {
|
|
525
|
-
return me[t.title] = t, Ve[t.title] = o, ye[t.title] = a,
|
|
526
|
-
const g =
|
|
526
|
+
return me[t.title] = t, Ve[t.title] = o, ye[t.title] = a, ao[t.title] = s, (f = {}) => {
|
|
527
|
+
const g = Hn(f, t, n), u = Object.keys(e).reduce((r, v) => (r[v] = e[v].default, r), {});
|
|
527
528
|
return Object.assign(u, g);
|
|
528
529
|
};
|
|
529
530
|
}
|
|
530
531
|
function ee(e, t) {
|
|
531
532
|
return { customClass: t.class, customStyle: t.style };
|
|
532
533
|
}
|
|
533
|
-
const
|
|
534
|
+
const po = /* @__PURE__ */ new Map([
|
|
534
535
|
["appearance", ee]
|
|
535
536
|
]);
|
|
536
|
-
function
|
|
537
|
+
function fo(e, t, n) {
|
|
537
538
|
return t;
|
|
538
539
|
}
|
|
539
|
-
const
|
|
540
|
+
const mo = "https://json-schema.org/draft/2020-12/schema", vo = "https://farris-design.gitee.io/filter-bar.schema.json", yo = "filter-bar", go = "A Farris Component", ho = "object", bo = {
|
|
540
541
|
id: {
|
|
541
542
|
description: "The unique identifier for filter-bar",
|
|
542
543
|
type: "string"
|
|
@@ -598,18 +599,18 @@ const fo = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-
|
|
|
598
599
|
type: "boolean",
|
|
599
600
|
default: !0
|
|
600
601
|
}
|
|
601
|
-
},
|
|
602
|
+
}, Co = [
|
|
602
603
|
"id",
|
|
603
604
|
"type"
|
|
604
|
-
],
|
|
605
|
-
$schema:
|
|
606
|
-
$id:
|
|
607
|
-
title:
|
|
608
|
-
description:
|
|
609
|
-
type:
|
|
610
|
-
properties:
|
|
611
|
-
required:
|
|
612
|
-
},
|
|
605
|
+
], To = {
|
|
606
|
+
$schema: mo,
|
|
607
|
+
$id: vo,
|
|
608
|
+
title: yo,
|
|
609
|
+
description: go,
|
|
610
|
+
type: ho,
|
|
611
|
+
properties: bo,
|
|
612
|
+
required: Co
|
|
613
|
+
}, So = "filter-bar", Fo = "A Farris Component", wo = "object", xo = {
|
|
613
614
|
basic: {
|
|
614
615
|
description: "Basic Infomation",
|
|
615
616
|
title: "基本信息",
|
|
@@ -801,11 +802,11 @@ const fo = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-
|
|
|
801
802
|
}
|
|
802
803
|
}
|
|
803
804
|
}
|
|
804
|
-
},
|
|
805
|
-
title:
|
|
806
|
-
description:
|
|
807
|
-
type:
|
|
808
|
-
categories:
|
|
805
|
+
}, Bo = {
|
|
806
|
+
title: So,
|
|
807
|
+
description: Fo,
|
|
808
|
+
type: wo,
|
|
809
|
+
categories: xo
|
|
809
810
|
}, he = {
|
|
810
811
|
/** 被绑定数据 */
|
|
811
812
|
data: {
|
|
@@ -833,8 +834,8 @@ const fo = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-
|
|
|
833
834
|
resetText: { type: String, default: "清空已选" },
|
|
834
835
|
/** 是否显示重置 */
|
|
835
836
|
showReset: { type: Boolean, default: !1 }
|
|
836
|
-
}, Te = Z(he,
|
|
837
|
-
class
|
|
837
|
+
}, Te = Z(he, To, po, fo, Bo);
|
|
838
|
+
class ko {
|
|
838
839
|
constructor(t = { value: [] }) {
|
|
839
840
|
V(this, "editorType", "check-box");
|
|
840
841
|
V(this, "value");
|
|
@@ -854,7 +855,7 @@ class Bo {
|
|
|
854
855
|
return this.value.length === 0;
|
|
855
856
|
}
|
|
856
857
|
}
|
|
857
|
-
class
|
|
858
|
+
class Po {
|
|
858
859
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
859
860
|
V(this, "editorType", "combo-lookup");
|
|
860
861
|
V(this, "textValue");
|
|
@@ -888,7 +889,7 @@ class ko {
|
|
|
888
889
|
return !this.valueField;
|
|
889
890
|
}
|
|
890
891
|
}
|
|
891
|
-
class
|
|
892
|
+
class Io {
|
|
892
893
|
constructor(t = { value: "" }) {
|
|
893
894
|
V(this, "editorType", "date-picker");
|
|
894
895
|
V(this, "value");
|
|
@@ -929,7 +930,7 @@ class Se {
|
|
|
929
930
|
return !this.begin || !this.end;
|
|
930
931
|
}
|
|
931
932
|
}
|
|
932
|
-
class
|
|
933
|
+
class Vo {
|
|
933
934
|
constructor(t = { value: "" }) {
|
|
934
935
|
V(this, "editorType", "datetime-picker");
|
|
935
936
|
V(this, "value");
|
|
@@ -949,7 +950,7 @@ class Io {
|
|
|
949
950
|
return !this.value;
|
|
950
951
|
}
|
|
951
952
|
}
|
|
952
|
-
class
|
|
953
|
+
class Mo {
|
|
953
954
|
// 旧结构无,新结构为选中的value值,多选是以,分割的字符串
|
|
954
955
|
constructor(t = { value: "", dispalyText: "" }) {
|
|
955
956
|
V(this, "editorType", "combo-list");
|
|
@@ -972,7 +973,7 @@ class Vo {
|
|
|
972
973
|
return !this.displayText;
|
|
973
974
|
}
|
|
974
975
|
}
|
|
975
|
-
class
|
|
976
|
+
class Eo {
|
|
976
977
|
constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
|
|
977
978
|
V(this, "editorType", "input-group");
|
|
978
979
|
// 通过弹窗返回的若干个值对象构成的数组
|
|
@@ -1011,7 +1012,7 @@ class Mo {
|
|
|
1011
1012
|
return !this.displayText;
|
|
1012
1013
|
}
|
|
1013
1014
|
}
|
|
1014
|
-
class
|
|
1015
|
+
class $o {
|
|
1015
1016
|
constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
|
|
1016
1017
|
V(this, "editorType", "lookup");
|
|
1017
1018
|
V(this, "textValue");
|
|
@@ -1047,7 +1048,7 @@ class Eo {
|
|
|
1047
1048
|
return !this.value.length;
|
|
1048
1049
|
}
|
|
1049
1050
|
}
|
|
1050
|
-
class
|
|
1051
|
+
class Oo {
|
|
1051
1052
|
constructor(t = { value: "" }) {
|
|
1052
1053
|
V(this, "editorType", "month-picker");
|
|
1053
1054
|
V(this, "value");
|
|
@@ -1067,7 +1068,7 @@ class $o {
|
|
|
1067
1068
|
return !this.value;
|
|
1068
1069
|
}
|
|
1069
1070
|
}
|
|
1070
|
-
class
|
|
1071
|
+
class Do {
|
|
1071
1072
|
constructor(t = { begin: "", end: "" }) {
|
|
1072
1073
|
V(this, "editorType", "month-range");
|
|
1073
1074
|
V(this, "begin");
|
|
@@ -1088,7 +1089,7 @@ class Oo {
|
|
|
1088
1089
|
return !this.begin || !this.end;
|
|
1089
1090
|
}
|
|
1090
1091
|
}
|
|
1091
|
-
class
|
|
1092
|
+
class Ro {
|
|
1092
1093
|
constructor(t = { begin: null, end: null }) {
|
|
1093
1094
|
V(this, "editorType", "number-range");
|
|
1094
1095
|
V(this, "begin");
|
|
@@ -1112,7 +1113,7 @@ class Do {
|
|
|
1112
1113
|
return this.begin == null && this.end == null;
|
|
1113
1114
|
}
|
|
1114
1115
|
}
|
|
1115
|
-
class
|
|
1116
|
+
class jo {
|
|
1116
1117
|
constructor(t = { value: "" }) {
|
|
1117
1118
|
V(this, "editorType", "number-spinner");
|
|
1118
1119
|
V(this, "value");
|
|
@@ -1132,7 +1133,7 @@ class Ro {
|
|
|
1132
1133
|
return this.value == null;
|
|
1133
1134
|
}
|
|
1134
1135
|
}
|
|
1135
|
-
class
|
|
1136
|
+
class Lo {
|
|
1136
1137
|
constructor(t = { value: null }) {
|
|
1137
1138
|
V(this, "editorType", "radio-group");
|
|
1138
1139
|
V(this, "value");
|
|
@@ -1152,7 +1153,7 @@ class jo {
|
|
|
1152
1153
|
return !this.value;
|
|
1153
1154
|
}
|
|
1154
1155
|
}
|
|
1155
|
-
class
|
|
1156
|
+
class Ao {
|
|
1156
1157
|
constructor(t = { value: "" }) {
|
|
1157
1158
|
V(this, "editorType", "text");
|
|
1158
1159
|
V(this, "value");
|
|
@@ -1172,45 +1173,45 @@ class Lo {
|
|
|
1172
1173
|
return !this.value;
|
|
1173
1174
|
}
|
|
1174
1175
|
}
|
|
1175
|
-
function
|
|
1176
|
+
function No() {
|
|
1176
1177
|
function e(t, n) {
|
|
1177
1178
|
switch (t) {
|
|
1178
1179
|
case "check-box":
|
|
1179
|
-
return new
|
|
1180
|
+
return new ko(n);
|
|
1180
1181
|
case "combo-list":
|
|
1181
|
-
return new
|
|
1182
|
+
return new Mo(n);
|
|
1182
1183
|
case "combo-lookup":
|
|
1183
|
-
return new
|
|
1184
|
+
return new Po(n);
|
|
1184
1185
|
case "input-group":
|
|
1185
|
-
return new
|
|
1186
|
+
return new Eo(n);
|
|
1186
1187
|
case "date-picker":
|
|
1187
|
-
return new
|
|
1188
|
+
return new Io(n);
|
|
1188
1189
|
case "date-range":
|
|
1189
1190
|
return new Se(n);
|
|
1190
1191
|
case "datetime-picker":
|
|
1191
|
-
return new
|
|
1192
|
+
return new Vo(n);
|
|
1192
1193
|
case "datetime-range":
|
|
1193
1194
|
return new Se(n);
|
|
1194
1195
|
case "lookup":
|
|
1195
|
-
return new Eo(n);
|
|
1196
|
-
case "month-picker":
|
|
1197
1196
|
return new $o(n);
|
|
1198
|
-
case "month-
|
|
1197
|
+
case "month-picker":
|
|
1199
1198
|
return new Oo(n);
|
|
1200
|
-
case "
|
|
1199
|
+
case "month-range":
|
|
1201
1200
|
return new Do(n);
|
|
1202
|
-
case "number-
|
|
1201
|
+
case "number-range":
|
|
1203
1202
|
return new Ro(n);
|
|
1204
|
-
case "
|
|
1203
|
+
case "number-spinner":
|
|
1205
1204
|
return new jo(n);
|
|
1206
|
-
|
|
1205
|
+
case "radio-group":
|
|
1207
1206
|
return new Lo(n);
|
|
1207
|
+
default:
|
|
1208
|
+
return new Ao(n);
|
|
1208
1209
|
}
|
|
1209
1210
|
}
|
|
1210
1211
|
return { createConditionValue: e };
|
|
1211
1212
|
}
|
|
1212
1213
|
function Oe(e, t) {
|
|
1213
|
-
const n = m([]), o = m([]), a = m([]), s = m(""), f = m(!1), g = m(e.mode), u = /* @__PURE__ */ new Map(), r =
|
|
1214
|
+
const n = m([]), o = m([]), a = m([]), s = m(""), f = m(!1), g = m(e.mode), u = /* @__PURE__ */ new Map(), r = No();
|
|
1214
1215
|
function v(C) {
|
|
1215
1216
|
return !f.value && g.value === "display-only" && !!C.hasValue && !!C.displayText;
|
|
1216
1217
|
}
|
|
@@ -1376,7 +1377,7 @@ const re = /* @__PURE__ */ z({
|
|
|
1376
1377
|
}, [c.value && y(), h.value && P(), I.value && C()])])])]);
|
|
1377
1378
|
}
|
|
1378
1379
|
});
|
|
1379
|
-
function
|
|
1380
|
+
function qo(e, t, n) {
|
|
1380
1381
|
var S;
|
|
1381
1382
|
function o() {
|
|
1382
1383
|
}
|
|
@@ -1458,7 +1459,7 @@ function No(e, t, n) {
|
|
|
1458
1459
|
triggerBelongedComponentToDeleteWhenDeleted: m(!1)
|
|
1459
1460
|
}, f;
|
|
1460
1461
|
}
|
|
1461
|
-
const
|
|
1462
|
+
const Go = /* @__PURE__ */ z({
|
|
1462
1463
|
name: "FFilterBarDesign",
|
|
1463
1464
|
props: he,
|
|
1464
1465
|
emits: ["Clear", "Remove", "Reset"],
|
|
@@ -1469,7 +1470,7 @@ const qo = /* @__PURE__ */ z({
|
|
|
1469
1470
|
loadFilterItems: r
|
|
1470
1471
|
} = f, v = B(() => ({
|
|
1471
1472
|
display: g.value && g.value.length ? "" : "none"
|
|
1472
|
-
})), l = m(), d = de("design-item-context"), c =
|
|
1473
|
+
})), l = m(), d = de("design-item-context"), c = qo(l, d);
|
|
1473
1474
|
K(() => {
|
|
1474
1475
|
l.value.componentInstance = c;
|
|
1475
1476
|
}), t.expose(c.value), H([() => e.data, () => e.fields], ([F, x]) => {
|
|
@@ -1497,18 +1498,18 @@ const qo = /* @__PURE__ */ z({
|
|
|
1497
1498
|
class: "f-filter-list-wrapper"
|
|
1498
1499
|
}, [h.value && I(), C.value && T(), S.value && w()])])])]);
|
|
1499
1500
|
}
|
|
1500
|
-
}),
|
|
1501
|
+
}), Ho = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-design.gitee.io/query-solution-config.schema.json", _o = "query-solution-config", zo = "A Farris Container Component", Uo = {
|
|
1501
1502
|
fields: {
|
|
1502
1503
|
description: "The unique identifier for a query solution",
|
|
1503
1504
|
type: "array"
|
|
1504
1505
|
}
|
|
1505
|
-
},
|
|
1506
|
-
$schema:
|
|
1507
|
-
$id:
|
|
1508
|
-
title:
|
|
1509
|
-
description:
|
|
1510
|
-
properties:
|
|
1511
|
-
},
|
|
1506
|
+
}, Qo = {
|
|
1507
|
+
$schema: Ho,
|
|
1508
|
+
$id: Wo,
|
|
1509
|
+
title: _o,
|
|
1510
|
+
description: zo,
|
|
1511
|
+
properties: Uo
|
|
1512
|
+
}, Ko = "query-solution-config", Xo = "A Farris Component", Jo = "object", Zo = {
|
|
1512
1513
|
basic: {
|
|
1513
1514
|
description: "Basic Infomation",
|
|
1514
1515
|
title: "基本信息",
|
|
@@ -1593,15 +1594,15 @@ const qo = /* @__PURE__ */ z({
|
|
|
1593
1594
|
properties: {}
|
|
1594
1595
|
}
|
|
1595
1596
|
}, ce = {
|
|
1596
|
-
title:
|
|
1597
|
-
description:
|
|
1598
|
-
type:
|
|
1599
|
-
categories:
|
|
1600
|
-
},
|
|
1597
|
+
title: Ko,
|
|
1598
|
+
description: Xo,
|
|
1599
|
+
type: Jo,
|
|
1600
|
+
categories: Zo
|
|
1601
|
+
}, Yo = /* @__PURE__ */ new Map([
|
|
1601
1602
|
["appearance", ee]
|
|
1602
1603
|
// ['preset', resolvePreset]
|
|
1603
1604
|
]);
|
|
1604
|
-
function
|
|
1605
|
+
function ea(e, t, n) {
|
|
1605
1606
|
return t;
|
|
1606
1607
|
}
|
|
1607
1608
|
const Le = {
|
|
@@ -1609,8 +1610,8 @@ const Le = {
|
|
|
1609
1610
|
modelValue: { type: Array, default: [] },
|
|
1610
1611
|
source: { type: String, default: "query-solution" }
|
|
1611
1612
|
};
|
|
1612
|
-
Z(Le,
|
|
1613
|
-
const
|
|
1613
|
+
Z(Le, Qo, Yo, ea, ce);
|
|
1614
|
+
const ta = {
|
|
1614
1615
|
width: { type: String, default: "300px" },
|
|
1615
1616
|
height: { type: Number, default: 10 },
|
|
1616
1617
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -1638,7 +1639,7 @@ const ea = {
|
|
|
1638
1639
|
schema: { type: Object, default: {} },
|
|
1639
1640
|
/** 属性变更后事件 */
|
|
1640
1641
|
propertyChanged: { type: Function }
|
|
1641
|
-
},
|
|
1642
|
+
}, na = {
|
|
1642
1643
|
/** 某一分类下的属性配置 */
|
|
1643
1644
|
// as PropType<ElementPropertyConfig>
|
|
1644
1645
|
category: { type: Object, default: {} },
|
|
@@ -1647,12 +1648,12 @@ const ea = {
|
|
|
1647
1648
|
propertyData: { type: Object, default: {} },
|
|
1648
1649
|
valueChanged: { type: Function },
|
|
1649
1650
|
triggerRefreshPanel: { type: Function }
|
|
1650
|
-
},
|
|
1651
|
+
}, oa = {
|
|
1651
1652
|
elementConfig: { type: Object, default: {} },
|
|
1652
1653
|
category: { type: Object, default: {} }
|
|
1653
|
-
},
|
|
1654
|
+
}, aa = /* @__PURE__ */ new Map([
|
|
1654
1655
|
["appearance", ee]
|
|
1655
|
-
]),
|
|
1656
|
+
]), la = "https://json-schema.org/draft/2020-12/schema", ia = "https://farris-design.gitee.io/form-group.schema.json", ra = "form-group", sa = "A Farris Input Component", ua = "object", ca = {
|
|
1656
1657
|
id: {
|
|
1657
1658
|
description: "The unique identifier for a form group",
|
|
1658
1659
|
type: "string"
|
|
@@ -1693,17 +1694,17 @@ const ea = {
|
|
|
1693
1694
|
description: "",
|
|
1694
1695
|
type: "number"
|
|
1695
1696
|
}
|
|
1696
|
-
},
|
|
1697
|
+
}, da = [
|
|
1697
1698
|
"id",
|
|
1698
1699
|
"type"
|
|
1699
|
-
],
|
|
1700
|
-
$schema:
|
|
1701
|
-
$id:
|
|
1702
|
-
title:
|
|
1703
|
-
description:
|
|
1704
|
-
type:
|
|
1705
|
-
properties:
|
|
1706
|
-
required:
|
|
1700
|
+
], pa = {
|
|
1701
|
+
$schema: la,
|
|
1702
|
+
$id: ia,
|
|
1703
|
+
title: ra,
|
|
1704
|
+
description: sa,
|
|
1705
|
+
type: ua,
|
|
1706
|
+
properties: ca,
|
|
1707
|
+
required: da
|
|
1707
1708
|
}, Ae = {
|
|
1708
1709
|
id: { type: String, default: "" },
|
|
1709
1710
|
customClass: { type: String, default: "" },
|
|
@@ -1720,18 +1721,18 @@ const ea = {
|
|
|
1720
1721
|
};
|
|
1721
1722
|
Z(
|
|
1722
1723
|
Ae,
|
|
1723
|
-
|
|
1724
|
-
|
|
1724
|
+
pa,
|
|
1725
|
+
aa,
|
|
1725
1726
|
void 0
|
|
1726
1727
|
);
|
|
1727
|
-
const
|
|
1728
|
+
const fa = {
|
|
1728
1729
|
id: { type: String },
|
|
1729
1730
|
required: { type: Boolean, default: !1 },
|
|
1730
1731
|
text: { type: String, default: "" },
|
|
1731
1732
|
title: { type: String }
|
|
1732
|
-
},
|
|
1733
|
+
}, ma = /* @__PURE__ */ z({
|
|
1733
1734
|
name: "FDynamicFormLabel",
|
|
1734
|
-
props:
|
|
1735
|
+
props: fa,
|
|
1735
1736
|
emits: [],
|
|
1736
1737
|
setup(e, t) {
|
|
1737
1738
|
const n = m(e.title || e.text), o = m(e.required), a = m(e.text);
|
|
@@ -1748,13 +1749,13 @@ const pa = {
|
|
|
1748
1749
|
class: "farris-label-text"
|
|
1749
1750
|
}, [a.value])]);
|
|
1750
1751
|
}
|
|
1751
|
-
}),
|
|
1752
|
+
}), va = /* @__PURE__ */ new Map([
|
|
1752
1753
|
["appearance", ee]
|
|
1753
1754
|
]);
|
|
1754
|
-
function
|
|
1755
|
+
function ya(e, t, n) {
|
|
1755
1756
|
return t;
|
|
1756
1757
|
}
|
|
1757
|
-
const
|
|
1758
|
+
const ga = "https://json-schema.org/draft/2020-12/schema", ha = "https://farris-design.gitee.io/input-group.schema.json", ba = "input-group", Ca = "A Farris Input Component", Ta = "object", Sa = {
|
|
1758
1759
|
id: {
|
|
1759
1760
|
description: "The unique identifier for a Input Group",
|
|
1760
1761
|
type: "string"
|
|
@@ -1956,17 +1957,17 @@ const ya = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-
|
|
|
1956
1957
|
type: "string",
|
|
1957
1958
|
default: ""
|
|
1958
1959
|
}
|
|
1959
|
-
},
|
|
1960
|
+
}, Fa = [
|
|
1960
1961
|
"id",
|
|
1961
1962
|
"type"
|
|
1962
|
-
],
|
|
1963
|
-
$schema:
|
|
1964
|
-
$id:
|
|
1965
|
-
title:
|
|
1966
|
-
description:
|
|
1967
|
-
type:
|
|
1968
|
-
properties:
|
|
1969
|
-
required:
|
|
1963
|
+
], wa = {
|
|
1964
|
+
$schema: ga,
|
|
1965
|
+
$id: ha,
|
|
1966
|
+
title: ba,
|
|
1967
|
+
description: Ca,
|
|
1968
|
+
type: Ta,
|
|
1969
|
+
properties: Sa,
|
|
1970
|
+
required: Fa
|
|
1970
1971
|
}, Ne = {
|
|
1971
1972
|
/** 是否自动完成 */
|
|
1972
1973
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -2034,8 +2035,8 @@ const ya = "https://json-schema.org/draft/2020-12/schema", ga = "https://farris-
|
|
|
2034
2035
|
*/
|
|
2035
2036
|
updateOn: { type: String, default: "blur" }
|
|
2036
2037
|
};
|
|
2037
|
-
Z(Ne,
|
|
2038
|
-
function
|
|
2038
|
+
Z(Ne, wa, va, ya);
|
|
2039
|
+
function xa(e, t, n, o) {
|
|
2039
2040
|
const a = m(e.disabled), s = m(!1), f = m("text"), g = m(e.showBorder), u = m(e.textAlign), r = m(e.updateOn), v = B(() => e.editable || !e.readonly), l = B(() => e.editable && !e.disabled && !e.readonly), d = B(() => !e.disabled && s.value), c = B(() => n.value === "" || n.value === null || n.value === void 0), p = B(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), y = B(() => e.readonly || !e.editable), h = B(() => e.enableTitle ? n.value : ""), P = B(() => ({
|
|
2040
2041
|
"form-control": !0,
|
|
2041
2042
|
"f-utils-fill": !0,
|
|
@@ -2118,7 +2119,7 @@ function wa(e, t, n, o) {
|
|
|
2118
2119
|
inputGroupStyle: C
|
|
2119
2120
|
};
|
|
2120
2121
|
}
|
|
2121
|
-
function
|
|
2122
|
+
function Ba(e, t, n) {
|
|
2122
2123
|
const o = m(!1), a = B(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: f, hasFocused: g, isEmpty: u } = n;
|
|
2123
2124
|
function r(y) {
|
|
2124
2125
|
o.value = y;
|
|
@@ -2144,8 +2145,8 @@ function xa(e, t, n) {
|
|
|
2144
2145
|
}
|
|
2145
2146
|
return { clearButtonClass: v, clearButtonStyle: l, hasShownClearButton: o, onClearValue: d, onMouseEnter: c, onMouseLeave: p, shouldShowClearButton: a };
|
|
2146
2147
|
}
|
|
2147
|
-
const
|
|
2148
|
-
function
|
|
2148
|
+
const ka = ["moz", "ms", "webkit"];
|
|
2149
|
+
function Pa() {
|
|
2149
2150
|
let e = 0;
|
|
2150
2151
|
return (t) => {
|
|
2151
2152
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
|
|
@@ -2154,23 +2155,23 @@ function ka() {
|
|
|
2154
2155
|
return e = n + o, a;
|
|
2155
2156
|
};
|
|
2156
2157
|
}
|
|
2157
|
-
function
|
|
2158
|
+
function Ia() {
|
|
2158
2159
|
if (typeof window > "u")
|
|
2159
2160
|
return () => 0;
|
|
2160
2161
|
if (window.requestAnimationFrame)
|
|
2161
2162
|
return window.requestAnimationFrame.bind(window);
|
|
2162
|
-
const e =
|
|
2163
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
2163
|
+
const e = ka.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
2164
|
+
return e ? window[`${e}RequestAnimationFrame`] : Pa();
|
|
2164
2165
|
}
|
|
2165
|
-
|
|
2166
|
-
function
|
|
2166
|
+
Ia();
|
|
2167
|
+
function Va(e, t) {
|
|
2167
2168
|
const n = m(e.groupText), o = B(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = B(() => e.enableClear || !!e.groupText);
|
|
2168
2169
|
return { appendedButtonClass: B(() => ({
|
|
2169
2170
|
"input-group-append": !0,
|
|
2170
2171
|
"append-force-show": o.value
|
|
2171
2172
|
})), appendedContent: n, shouldShowAppendedButton: a };
|
|
2172
2173
|
}
|
|
2173
|
-
function
|
|
2174
|
+
function Ma(e, t, n, o) {
|
|
2174
2175
|
const { appendedContent: a } = o, s = m(e.enableViewPassword), f = B(() => e.type === "password"), g = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', r = m(!1);
|
|
2175
2176
|
H(() => [e.readonly, e.disabled], ([d, c]) => {
|
|
2176
2177
|
f.value && (n.value = d || c ? "password" : n.value, a.value = d || c ? u : a.value);
|
|
@@ -2183,7 +2184,7 @@ function Va(e, t, n, o) {
|
|
|
2183
2184
|
}
|
|
2184
2185
|
return l(), { isPassword: f, onClickAppendedButton: v };
|
|
2185
2186
|
}
|
|
2186
|
-
function
|
|
2187
|
+
function Ea(e, t, n) {
|
|
2187
2188
|
const o = m(), {
|
|
2188
2189
|
onBlurTextBox: a,
|
|
2189
2190
|
onFocusTextBox: s,
|
|
@@ -2223,7 +2224,7 @@ function Ma(e, t, n) {
|
|
|
2223
2224
|
onKeydown: g
|
|
2224
2225
|
}, null);
|
|
2225
2226
|
}
|
|
2226
|
-
function
|
|
2227
|
+
function $a(e, t, n) {
|
|
2227
2228
|
const {
|
|
2228
2229
|
canDownward: o,
|
|
2229
2230
|
canUpward: a,
|
|
@@ -2264,12 +2265,12 @@ function Ea(e, t, n) {
|
|
|
2264
2265
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
2265
2266
|
}, null)])]);
|
|
2266
2267
|
}
|
|
2267
|
-
function
|
|
2268
|
-
const n = bt(e, t), o = Ct(e, t, n), a = Tt(e, t, o, n), s = St(e, t, o, n, a), f =
|
|
2268
|
+
function Oa(e, t) {
|
|
2269
|
+
const n = bt(e, t), o = Ct(e, t, n), a = Tt(e, t, o, n), s = St(e, t, o, n, a), f = $a(e, t, a), {
|
|
2269
2270
|
displayValue: g,
|
|
2270
2271
|
modelValue: u,
|
|
2271
2272
|
getRealValue: r
|
|
2272
|
-
} = n, v =
|
|
2273
|
+
} = n, v = Ea(e, t, s), {
|
|
2273
2274
|
format: l
|
|
2274
2275
|
} = o, {
|
|
2275
2276
|
isFocus: d
|
|
@@ -2288,7 +2289,7 @@ function $a(e, t) {
|
|
|
2288
2289
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
2289
2290
|
}, [v(), c.value && f()]);
|
|
2290
2291
|
}
|
|
2291
|
-
function
|
|
2292
|
+
function Da(e, t, n, o) {
|
|
2292
2293
|
const a = m(), s = m(e.autocomplete), f = m(e.enableTitle), {
|
|
2293
2294
|
isPassword: g
|
|
2294
2295
|
} = n, u = m(e.minLength), r = m(e.maxLength), v = m(e.tabIndex), {
|
|
@@ -2334,7 +2335,7 @@ function Oa(e, t, n, o) {
|
|
|
2334
2335
|
onMousedown: T
|
|
2335
2336
|
}, null);
|
|
2336
2337
|
}
|
|
2337
|
-
function
|
|
2338
|
+
function Ra(e, t) {
|
|
2338
2339
|
const n = B(() => e.useExtendInfo && !!e.extendInfo), o = st({
|
|
2339
2340
|
content: e.extendInfo
|
|
2340
2341
|
});
|
|
@@ -2350,7 +2351,7 @@ function Da(e, t) {
|
|
|
2350
2351
|
class: "tips-arrow"
|
|
2351
2352
|
}, null)]), [[ut("tooltip"), o]]);
|
|
2352
2353
|
}
|
|
2353
|
-
function
|
|
2354
|
+
function ja(e, t, n, o, a) {
|
|
2354
2355
|
const {
|
|
2355
2356
|
appendedButtonClass: s,
|
|
2356
2357
|
appendedContent: f
|
|
@@ -2402,21 +2403,21 @@ function Ra(e, t, n, o, a) {
|
|
|
2402
2403
|
class: s.value
|
|
2403
2404
|
}, [c.value && p(), w && w()]);
|
|
2404
2405
|
}
|
|
2405
|
-
const
|
|
2406
|
+
const La = /* @__PURE__ */ z({
|
|
2406
2407
|
name: "FInputGroup",
|
|
2407
2408
|
props: Ne,
|
|
2408
2409
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2409
2410
|
setup(e, t) {
|
|
2410
|
-
const n = m(e.modelValue), o = m(e.modelValue), a =
|
|
2411
|
+
const n = m(e.modelValue), o = m(e.modelValue), a = xa(e, t, n, o), {
|
|
2411
2412
|
inputGroupClass: s,
|
|
2412
2413
|
inputType: f,
|
|
2413
2414
|
inputGroupStyle: g
|
|
2414
|
-
} = a, u =
|
|
2415
|
+
} = a, u = Va(e), {
|
|
2415
2416
|
shouldShowAppendedButton: r
|
|
2416
|
-
} = u, v =
|
|
2417
|
+
} = u, v = Ba(e, t, a), {
|
|
2417
2418
|
onMouseEnter: l,
|
|
2418
2419
|
onMouseLeave: d
|
|
2419
|
-
} = v, c =
|
|
2420
|
+
} = v, c = Ma(e, t, f, u), p = Oa(e, t), y = Da(e, t, c, a), h = ja(e, t, u, v, c), P = Ra(e, t), I = B(() => e.type === "number");
|
|
2420
2421
|
H(() => [e.value], ([T]) => {
|
|
2421
2422
|
n.value = T, o.value = T;
|
|
2422
2423
|
}), H(() => [e.modelValue], ([T]) => {
|
|
@@ -2435,17 +2436,17 @@ const ja = /* @__PURE__ */ z({
|
|
|
2435
2436
|
}
|
|
2436
2437
|
}), E = {}, $ = {}, O = {}, D = {};
|
|
2437
2438
|
let Fe = !1;
|
|
2438
|
-
function La() {
|
|
2439
|
-
Fe || (Fe = !0, wt.register(E, $, O, D), Ft.register(E, $, O, D), xt.register(E, $, O, D), Bt.register(E, $, O, D), kt.register(E, $, O, D), Pt.register(E, $, O, D), It.register(E, $, O, D), Vt.register(E, $, O, D), Mt.register(E, $, O, D), Et.register(E, $, O, D), Ot.register(E, $, O, D), $t.register(E, $, O, D), Dt.register(E, $, O, D), Rt.register(E, $, O, D), jt.register(E, $, O, D), Lt.register(E, $, O, D), At.register(E, $, O, D), Nt.register(E, $, O, D), qt.register(E, $, O, D), Gt.register(E, $, O, D), Ht.register(E, $, O, D), Wt.register(E, $, O, D), zt.register(E, $, O, D), _t.register(E, $, O, D), Ut.register(E, $, O, D), Qt.register(E, $, O, D), Kt.register(E, $, O, D), Xt.register(E, $, O, D), ht.register(E, $, O, D), Jt.register(E, $, O, D), Zt.register(E, $, O, D), Yt.register(E, $, O, D), en.register(E, $, O, D), tn.register(E, $, O, D), nn.register(E, $, O, D), on.register(E, $, O, D), an.register(E, $, O, D), rn.register(E, $, O, D), sn.register(E, $, O, D), ln.register(E, $, O, D), xn.register(E, $, O), un.register(E, $, O, D), cn.register(E, $, O, D), dn.register(E, $, O, D), pn.register(E, $, O, D), fn.register(E, $, O, D), mn.register(E, $, O, D), vn.register(E, $, O, D), Ie.register(E, $, O, D), yn.register(E, $, O, D), gn.register(E, $, O, D), hn.register(E, $, O, D), bn.register(E, $, O, D), Tn.register(E, $, O, D), Cn.register(E, $, O, D), Sn.register(E, $, O, D), Fn.register(E, $, O, D), wn.register(E, $, O, D));
|
|
2440
|
-
}
|
|
2441
2439
|
function Aa() {
|
|
2442
|
-
|
|
2440
|
+
Fe || (Fe = !0, wt.register(E, $, O, D), Ft.register(E, $, O, D), xt.register(E, $, O, D), Bt.register(E, $, O, D), kt.register(E, $, O, D), Pt.register(E, $, O, D), It.register(E, $, O, D), Vt.register(E, $, O, D), Mt.register(E, $, O, D), Et.register(E, $, O, D), Ot.register(E, $, O, D), $t.register(E, $, O, D), Dt.register(E, $, O, D), Rt.register(E, $, O, D), jt.register(E, $, O, D), Lt.register(E, $, O, D), At.register(E, $, O, D), Nt.register(E, $, O, D), qt.register(E, $, O, D), Gt.register(E, $, O, D), Ht.register(E, $, O, D), Wt.register(E, $, O, D), zt.register(E, $, O, D), _t.register(E, $, O, D), Ut.register(E, $, O, D), Qt.register(E, $, O, D), Kt.register(E, $, O, D), Xt.register(E, $, O, D), ht.register(E, $, O, D), Jt.register(E, $, O, D), Zt.register(E, $, O, D), Yt.register(E, $, O, D), en.register(E, $, O, D), tn.register(E, $, O, D), nn.register(E, $, O, D), on.register(E, $, O, D), an.register(E, $, O, D), rn.register(E, $, O, D), sn.register(E, $, O, D), ln.register(E, $, O, D), xn.register(E, $, O), un.register(E, $, O, D), cn.register(E, $, O, D), dn.register(E, $, O, D), pn.register(E, $, O, D), fn.register(E, $, O, D), mn.register(E, $, O, D), vn.register(E, $, O, D), Ie.register(E, $, O, D), yn.register(E, $, O, D), gn.register(E, $, O, D), hn.register(E, $, O, D), bn.register(E, $, O, D), Tn.register(E, $, O, D), Cn.register(E, $, O, D), Sn.register(E, $, O, D), Fn.register(E, $, O, D), wn.register(E, $, O, D), Bn.register(E, $, O, D));
|
|
2441
|
+
}
|
|
2442
|
+
function Na() {
|
|
2443
|
+
Aa();
|
|
2443
2444
|
function e(a, s) {
|
|
2444
2445
|
const f = $[a];
|
|
2445
2446
|
return f ? f(s) : {};
|
|
2446
2447
|
}
|
|
2447
2448
|
function t(a) {
|
|
2448
|
-
return E[a] ||
|
|
2449
|
+
return E[a] || La;
|
|
2449
2450
|
}
|
|
2450
2451
|
function n(a) {
|
|
2451
2452
|
switch (a) {
|
|
@@ -2511,7 +2512,7 @@ function Aa() {
|
|
|
2511
2512
|
}
|
|
2512
2513
|
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
|
|
2513
2514
|
}
|
|
2514
|
-
const
|
|
2515
|
+
const qa = /* @__PURE__ */ z({
|
|
2515
2516
|
name: "FDynamicFormGroup",
|
|
2516
2517
|
props: Ae,
|
|
2517
2518
|
emits: ["change", "update:modelValue"],
|
|
@@ -2523,7 +2524,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
2523
2524
|
resolveEditorType: c,
|
|
2524
2525
|
getChangeFunctionName: p,
|
|
2525
2526
|
getClearFunctionName: y
|
|
2526
|
-
} =
|
|
2527
|
+
} = Na(), h = B(() => ({
|
|
2527
2528
|
"form-group": !0,
|
|
2528
2529
|
"farris-form-group": !0,
|
|
2529
2530
|
"common-group": !0,
|
|
@@ -2555,7 +2556,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
2555
2556
|
class: "farris-group-wrap"
|
|
2556
2557
|
}, [i("div", {
|
|
2557
2558
|
class: h.value
|
|
2558
|
-
}, [r.value && i(
|
|
2559
|
+
}, [r.value && i(ma, {
|
|
2559
2560
|
id: `${n.value}-lable`,
|
|
2560
2561
|
required: u.value,
|
|
2561
2562
|
text: s.value,
|
|
@@ -2564,9 +2565,9 @@ const Na = /* @__PURE__ */ z({
|
|
|
2564
2565
|
class: "farris-input-wrap"
|
|
2565
2566
|
}, [C.value()])])])]);
|
|
2566
2567
|
}
|
|
2567
|
-
}),
|
|
2568
|
+
}), Ga = /* @__PURE__ */ z({
|
|
2568
2569
|
name: "FPropertyPanelItem",
|
|
2569
|
-
props:
|
|
2570
|
+
props: oa,
|
|
2570
2571
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
2571
2572
|
setup(e, t) {
|
|
2572
2573
|
var r;
|
|
@@ -2594,7 +2595,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
2594
2595
|
}
|
|
2595
2596
|
return () => i("div", {
|
|
2596
2597
|
class: g.value
|
|
2597
|
-
}, [i(
|
|
2598
|
+
}, [i(qa, {
|
|
2598
2599
|
id: o.value,
|
|
2599
2600
|
customClass: `${n.value}-${o.value}`,
|
|
2600
2601
|
label: a.value,
|
|
@@ -2604,9 +2605,9 @@ const Na = /* @__PURE__ */ z({
|
|
|
2604
2605
|
editorParams: e.elementConfig.editorParams
|
|
2605
2606
|
}, null)]);
|
|
2606
2607
|
}
|
|
2607
|
-
}),
|
|
2608
|
+
}), Ha = /* @__PURE__ */ z({
|
|
2608
2609
|
name: "FPropertyPanelItemList",
|
|
2609
|
-
props:
|
|
2610
|
+
props: na,
|
|
2610
2611
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
2611
2612
|
setup(e, t) {
|
|
2612
2613
|
const n = m(e.category);
|
|
@@ -2667,7 +2668,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
2667
2668
|
function v(c) {
|
|
2668
2669
|
return i("div", {
|
|
2669
2670
|
class: "px-2 mb-2"
|
|
2670
|
-
}, [i(
|
|
2671
|
+
}, [i(Ga, {
|
|
2671
2672
|
key: g(c),
|
|
2672
2673
|
elementConfig: c,
|
|
2673
2674
|
category: n.value,
|
|
@@ -2704,9 +2705,9 @@ const Na = /* @__PURE__ */ z({
|
|
|
2704
2705
|
}
|
|
2705
2706
|
return () => i(J, null, [n.value.properties.map((c) => d(c)(c))]);
|
|
2706
2707
|
}
|
|
2707
|
-
}),
|
|
2708
|
+
}), Wa = /* @__PURE__ */ z({
|
|
2708
2709
|
name: "FPropertyPanel",
|
|
2709
|
-
props:
|
|
2710
|
+
props: ta,
|
|
2710
2711
|
emits: ["propertyChanged"],
|
|
2711
2712
|
setup(e, t) {
|
|
2712
2713
|
const n = m(e.width), o = m(e.isWidePanel), a = m(e.enableSearch), s = m(e.mode), f = m(e.isPersitOpenState), g = m(e.isShowPanel), u = m(), r = m(), v = m(e.showCloseBtn), l = m(e.selectedTabId), d = m(!0), c = m(e.isWhiteTheme);
|
|
@@ -2925,7 +2926,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
2925
2926
|
}]
|
|
2926
2927
|
}, null), L.categoryName]), i("div", {
|
|
2927
2928
|
hidden: L.status === "closed"
|
|
2928
|
-
}, [i(
|
|
2929
|
+
}, [i(Ha, {
|
|
2929
2930
|
category: L,
|
|
2930
2931
|
propertyData: r.value,
|
|
2931
2932
|
onTriggerRefreshPanel: Xe,
|
|
@@ -2996,7 +2997,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
2996
2997
|
}]
|
|
2997
2998
|
}, [lt(), Ke()]), Je(), et()]), ot(), tt()])]);
|
|
2998
2999
|
}
|
|
2999
|
-
}),
|
|
3000
|
+
}), _a = {
|
|
3000
3001
|
className: {
|
|
3001
3002
|
description: "样式",
|
|
3002
3003
|
title: "样式",
|
|
@@ -3007,7 +3008,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
3007
3008
|
title: "是否必填",
|
|
3008
3009
|
type: "boolean"
|
|
3009
3010
|
}
|
|
3010
|
-
},
|
|
3011
|
+
}, za = {
|
|
3011
3012
|
className: {
|
|
3012
3013
|
description: "样式",
|
|
3013
3014
|
title: "样式",
|
|
@@ -3033,7 +3034,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
3033
3034
|
title: "最小值",
|
|
3034
3035
|
type: "number"
|
|
3035
3036
|
}
|
|
3036
|
-
},
|
|
3037
|
+
}, Ua = {
|
|
3037
3038
|
className: {
|
|
3038
3039
|
description: "样式",
|
|
3039
3040
|
title: "样式",
|
|
@@ -3081,7 +3082,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
3081
3082
|
title: "枚举项",
|
|
3082
3083
|
type: "string"
|
|
3083
3084
|
}
|
|
3084
|
-
},
|
|
3085
|
+
}, Qa = {
|
|
3085
3086
|
className: {
|
|
3086
3087
|
description: "样式",
|
|
3087
3088
|
title: "样式",
|
|
@@ -3137,7 +3138,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
3137
3138
|
title: "面板宽度",
|
|
3138
3139
|
type: "number"
|
|
3139
3140
|
}
|
|
3140
|
-
},
|
|
3141
|
+
}, Ka = {
|
|
3141
3142
|
className: {
|
|
3142
3143
|
description: "样式",
|
|
3143
3144
|
title: "样式",
|
|
@@ -3158,7 +3159,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
3158
3159
|
title: "显示格式",
|
|
3159
3160
|
type: "string"
|
|
3160
3161
|
}
|
|
3161
|
-
},
|
|
3162
|
+
}, Xa = {
|
|
3162
3163
|
className: {
|
|
3163
3164
|
description: "样式",
|
|
3164
3165
|
title: "样式",
|
|
@@ -3179,7 +3180,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
3179
3180
|
title: "显示格式",
|
|
3180
3181
|
type: "string"
|
|
3181
3182
|
}
|
|
3182
|
-
},
|
|
3183
|
+
}, Ja = {
|
|
3183
3184
|
className: {
|
|
3184
3185
|
description: "样式",
|
|
3185
3186
|
title: "样式",
|
|
@@ -3201,7 +3202,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
3201
3202
|
type: "boolean"
|
|
3202
3203
|
}
|
|
3203
3204
|
}, we = {
|
|
3204
|
-
text:
|
|
3205
|
+
text: _a,
|
|
3205
3206
|
"single-number": {
|
|
3206
3207
|
className: {
|
|
3207
3208
|
description: "样式",
|
|
@@ -3229,9 +3230,9 @@ const Na = /* @__PURE__ */ z({
|
|
|
3229
3230
|
type: "number"
|
|
3230
3231
|
}
|
|
3231
3232
|
},
|
|
3232
|
-
number:
|
|
3233
|
-
dropdown:
|
|
3234
|
-
help:
|
|
3233
|
+
number: za,
|
|
3234
|
+
dropdown: Ua,
|
|
3235
|
+
help: Qa,
|
|
3235
3236
|
"combolist-help": {
|
|
3236
3237
|
className: {
|
|
3237
3238
|
description: "样式",
|
|
@@ -3319,7 +3320,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
3319
3320
|
type: "boolean"
|
|
3320
3321
|
}
|
|
3321
3322
|
},
|
|
3322
|
-
date:
|
|
3323
|
+
date: Ka,
|
|
3323
3324
|
"single-date": {
|
|
3324
3325
|
className: {
|
|
3325
3326
|
description: "样式",
|
|
@@ -3386,7 +3387,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
3386
3387
|
type: "string"
|
|
3387
3388
|
}
|
|
3388
3389
|
},
|
|
3389
|
-
month:
|
|
3390
|
+
month: Xa,
|
|
3390
3391
|
"single-year": {
|
|
3391
3392
|
className: {
|
|
3392
3393
|
description: "样式",
|
|
@@ -3409,7 +3410,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
3409
3410
|
type: "string"
|
|
3410
3411
|
}
|
|
3411
3412
|
},
|
|
3412
|
-
radio:
|
|
3413
|
+
radio: Ja,
|
|
3413
3414
|
"input-group": {
|
|
3414
3415
|
className: {
|
|
3415
3416
|
description: "样式",
|
|
@@ -3423,7 +3424,7 @@ const Na = /* @__PURE__ */ z({
|
|
|
3423
3424
|
}
|
|
3424
3425
|
}
|
|
3425
3426
|
};
|
|
3426
|
-
function
|
|
3427
|
+
function Za(e, t, n, o) {
|
|
3427
3428
|
const a = m(), s = m("query-solution-config"), f = m({}), g = m(), u = m(null);
|
|
3428
3429
|
H(n, (p) => {
|
|
3429
3430
|
if (p && p.controlType) {
|
|
@@ -3619,7 +3620,7 @@ function Ja(e, t, n, o) {
|
|
|
3619
3620
|
h.categories.control.properties = we[p], a.value.updatePropertyConfig(h, u.value);
|
|
3620
3621
|
});
|
|
3621
3622
|
function c() {
|
|
3622
|
-
return i(J, null, [i(
|
|
3623
|
+
return i(J, null, [i(Wa, {
|
|
3623
3624
|
propertyConfig: g.value,
|
|
3624
3625
|
ref: a,
|
|
3625
3626
|
propertyName: s.value,
|
|
@@ -3635,13 +3636,13 @@ function Ja(e, t, n, o) {
|
|
|
3635
3636
|
getBasicSchemaProerty: r
|
|
3636
3637
|
};
|
|
3637
3638
|
}
|
|
3638
|
-
const
|
|
3639
|
+
const Ya = /* @__PURE__ */ new Map([
|
|
3639
3640
|
["appearance", ee]
|
|
3640
3641
|
]);
|
|
3641
|
-
function
|
|
3642
|
+
function el(e, t, n) {
|
|
3642
3643
|
return t;
|
|
3643
3644
|
}
|
|
3644
|
-
const
|
|
3645
|
+
const tl = "transfer", nl = "A Farris Component", ol = "object", al = {
|
|
3645
3646
|
basic: {
|
|
3646
3647
|
description: "Basic Infomation",
|
|
3647
3648
|
title: "基本信息",
|
|
@@ -3663,12 +3664,12 @@ const el = "transfer", tl = "A Farris Component", nl = "object", ol = {
|
|
|
3663
3664
|
}
|
|
3664
3665
|
}
|
|
3665
3666
|
}
|
|
3666
|
-
},
|
|
3667
|
-
title:
|
|
3668
|
-
description:
|
|
3669
|
-
type:
|
|
3670
|
-
categories:
|
|
3671
|
-
},
|
|
3667
|
+
}, ll = {
|
|
3668
|
+
title: tl,
|
|
3669
|
+
description: nl,
|
|
3670
|
+
type: ol,
|
|
3671
|
+
categories: al
|
|
3672
|
+
}, il = "https://json-schema.org/draft/2020-12/schema", rl = "https://farris-design.gitee.io/transfer.schema.json", sl = "transfer", ul = "A Farris Component", cl = "object", dl = {
|
|
3672
3673
|
id: {
|
|
3673
3674
|
description: "The unique identifier for transfer",
|
|
3674
3675
|
type: "string"
|
|
@@ -3730,17 +3731,17 @@ const el = "transfer", tl = "A Farris Component", nl = "object", ol = {
|
|
|
3730
3731
|
type: "boolean",
|
|
3731
3732
|
default: !0
|
|
3732
3733
|
}
|
|
3733
|
-
},
|
|
3734
|
+
}, pl = [
|
|
3734
3735
|
"id",
|
|
3735
3736
|
"type"
|
|
3736
|
-
],
|
|
3737
|
-
$schema:
|
|
3738
|
-
$id:
|
|
3739
|
-
title:
|
|
3740
|
-
description:
|
|
3741
|
-
type:
|
|
3742
|
-
properties:
|
|
3743
|
-
required:
|
|
3737
|
+
], fl = {
|
|
3738
|
+
$schema: il,
|
|
3739
|
+
$id: rl,
|
|
3740
|
+
title: sl,
|
|
3741
|
+
description: ul,
|
|
3742
|
+
type: cl,
|
|
3743
|
+
properties: dl,
|
|
3744
|
+
required: pl
|
|
3744
3745
|
}, qe = {
|
|
3745
3746
|
dataSource: {
|
|
3746
3747
|
type: Array,
|
|
@@ -3754,14 +3755,14 @@ const el = "transfer", tl = "A Farris Component", nl = "object", ol = {
|
|
|
3754
3755
|
selections: { type: Array, default: [] },
|
|
3755
3756
|
selectionValues: { type: Array, default: [] }
|
|
3756
3757
|
};
|
|
3757
|
-
Z(qe,
|
|
3758
|
-
const
|
|
3758
|
+
Z(qe, fl, Ya, el, ll);
|
|
3759
|
+
const ml = /* @__PURE__ */ new Map([
|
|
3759
3760
|
["appearance", ee]
|
|
3760
3761
|
]);
|
|
3761
|
-
function
|
|
3762
|
+
function vl(e, t, n) {
|
|
3762
3763
|
return t;
|
|
3763
3764
|
}
|
|
3764
|
-
const
|
|
3765
|
+
const yl = "https://json-schema.org/draft/2020-12/schema", gl = "https://farris-design.gitee.io/list-view.schema.json", hl = "list-view", bl = "A Farris Component", Cl = "object", Tl = {
|
|
3765
3766
|
id: {
|
|
3766
3767
|
description: "The unique identifier for list-view",
|
|
3767
3768
|
type: "string"
|
|
@@ -3823,18 +3824,18 @@ const vl = "https://json-schema.org/draft/2020-12/schema", yl = "https://farris-
|
|
|
3823
3824
|
type: "boolean",
|
|
3824
3825
|
default: !0
|
|
3825
3826
|
}
|
|
3826
|
-
},
|
|
3827
|
+
}, Sl = [
|
|
3827
3828
|
"id",
|
|
3828
3829
|
"type"
|
|
3829
|
-
],
|
|
3830
|
-
$schema:
|
|
3831
|
-
$id:
|
|
3832
|
-
title:
|
|
3833
|
-
description:
|
|
3834
|
-
type:
|
|
3835
|
-
properties:
|
|
3836
|
-
required:
|
|
3837
|
-
},
|
|
3830
|
+
], Fl = {
|
|
3831
|
+
$schema: yl,
|
|
3832
|
+
$id: gl,
|
|
3833
|
+
title: hl,
|
|
3834
|
+
description: bl,
|
|
3835
|
+
type: Cl,
|
|
3836
|
+
properties: Tl,
|
|
3837
|
+
required: Sl
|
|
3838
|
+
}, wl = "list-view", xl = "A Farris Component", Bl = "object", kl = {
|
|
3838
3839
|
basic: {
|
|
3839
3840
|
description: "Basic Infomation",
|
|
3840
3841
|
title: "基本信息",
|
|
@@ -3856,11 +3857,11 @@ const vl = "https://json-schema.org/draft/2020-12/schema", yl = "https://farris-
|
|
|
3856
3857
|
}
|
|
3857
3858
|
}
|
|
3858
3859
|
}
|
|
3859
|
-
},
|
|
3860
|
-
title:
|
|
3861
|
-
description:
|
|
3862
|
-
type:
|
|
3863
|
-
categories:
|
|
3860
|
+
}, Pl = {
|
|
3861
|
+
title: wl,
|
|
3862
|
+
description: xl,
|
|
3863
|
+
type: Bl,
|
|
3864
|
+
categories: kl
|
|
3864
3865
|
}, Ge = {
|
|
3865
3866
|
/** 列集合 */
|
|
3866
3867
|
columns: {
|
|
@@ -3899,10 +3900,12 @@ const vl = "https://json-schema.org/draft/2020-12/schema", yl = "https://farris-
|
|
|
3899
3900
|
}
|
|
3900
3901
|
},
|
|
3901
3902
|
keepOrder: { type: Boolean, default: !1 },
|
|
3902
|
-
disableField: { type: String, default: "disabled" }
|
|
3903
|
+
disableField: { type: String, default: "disabled" },
|
|
3904
|
+
// 搜索启用高亮
|
|
3905
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
3903
3906
|
};
|
|
3904
|
-
Z(Ge,
|
|
3905
|
-
function
|
|
3907
|
+
Z(Ge, Fl, ml, vl, Pl);
|
|
3908
|
+
function Il(e, t) {
|
|
3906
3909
|
function n(s) {
|
|
3907
3910
|
const f = [];
|
|
3908
3911
|
let g = s.nextNode();
|
|
@@ -3980,7 +3983,7 @@ function xe(e, t, n, o, a, s, f, g, u, r) {
|
|
|
3980
3983
|
renderItem: F
|
|
3981
3984
|
};
|
|
3982
3985
|
}
|
|
3983
|
-
function
|
|
3986
|
+
function Vl(e, t, n, o, a, s, f, g, u, r) {
|
|
3984
3987
|
const v = m(e.multiSelect), l = m(e.disableField), {
|
|
3985
3988
|
onMouseenterItem: d,
|
|
3986
3989
|
onMouseoverItem: c,
|
|
@@ -4027,7 +4030,7 @@ function Il(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4027
4030
|
renderItem: T
|
|
4028
4031
|
};
|
|
4029
4032
|
}
|
|
4030
|
-
function
|
|
4033
|
+
function Ml(e, t, n, o, a, s, f, g, u, r) {
|
|
4031
4034
|
const v = m(e.multiSelect), l = m(e.disableField), {
|
|
4032
4035
|
onMouseenterItem: d,
|
|
4033
4036
|
onMouseoverItem: c,
|
|
@@ -4099,7 +4102,7 @@ function Vl(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4099
4102
|
renderItem: N
|
|
4100
4103
|
};
|
|
4101
4104
|
}
|
|
4102
|
-
function
|
|
4105
|
+
function El(e, t, n, o, a, s, f, g, u, r) {
|
|
4103
4106
|
var y;
|
|
4104
4107
|
const v = m(((y = e.group) == null ? void 0 : y.groupFields) || []), {
|
|
4105
4108
|
collpaseGroupIconClass: l
|
|
@@ -4125,7 +4128,7 @@ function Ml(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4125
4128
|
renderItem: p
|
|
4126
4129
|
};
|
|
4127
4130
|
}
|
|
4128
|
-
function
|
|
4131
|
+
function $l() {
|
|
4129
4132
|
const e = m(-1), t = m(""), n = m(-1), o = m(!1);
|
|
4130
4133
|
function a(r, v, l) {
|
|
4131
4134
|
n.value = l;
|
|
@@ -4153,7 +4156,7 @@ function El() {
|
|
|
4153
4156
|
suspendHover: g
|
|
4154
4157
|
};
|
|
4155
4158
|
}
|
|
4156
|
-
function
|
|
4159
|
+
function Ol(e, t, n, o) {
|
|
4157
4160
|
const a = m(e.idField), { dataView: s } = n, f = m(-1), g = m(!1), { activeIndex: u, focusedItemId: r, hoverIndex: v, resumeHover: l, suspendHover: d } = o;
|
|
4158
4161
|
function c(P, I, C) {
|
|
4159
4162
|
P.stopPropagation(), d(), I && setTimeout(() => {
|
|
@@ -4182,7 +4185,7 @@ function $l(e, t, n, o) {
|
|
|
4182
4185
|
isDragging: g
|
|
4183
4186
|
};
|
|
4184
4187
|
}
|
|
4185
|
-
function
|
|
4188
|
+
function Dl(e, t, n) {
|
|
4186
4189
|
const { dataView: o } = n;
|
|
4187
4190
|
function a(s) {
|
|
4188
4191
|
if (s > -1 && s < o.value.length) {
|
|
@@ -4192,7 +4195,7 @@ function Ol(e, t, n) {
|
|
|
4192
4195
|
}
|
|
4193
4196
|
return { removeItem: a };
|
|
4194
4197
|
}
|
|
4195
|
-
function
|
|
4198
|
+
function Rl(e, t, n, o, a, s) {
|
|
4196
4199
|
const f = m(e.idField), g = m(e.disableField), u = m(e.draggable), r = m(e.itemClass), v = m(e.selection.multiSelect ?? !1), l = m(e.selection.multiSelectMode);
|
|
4197
4200
|
m(!0);
|
|
4198
4201
|
const { isDragging: d } = o, { activeIndex: c, focusedItemId: p, hoverIndex: y } = a, { clearSelection: h, getSelectedItems: P, toggleSelectItem: I } = s, C = m(P());
|
|
@@ -4230,20 +4233,20 @@ function Dl(e, t, n, o, a, s) {
|
|
|
4230
4233
|
onClickItem: R
|
|
4231
4234
|
};
|
|
4232
4235
|
}
|
|
4233
|
-
function
|
|
4234
|
-
const g = m(e.view), u = m(e.view === "CardView"), r = m({}), v = m("暂无数据"), l =
|
|
4236
|
+
function jl(e, t, n, o, a, s, f) {
|
|
4237
|
+
const g = m(e.view), u = m(e.view === "CardView"), r = m({}), v = m("暂无数据"), l = $l(), d = Ol(e, t, o, l), c = Dl(e, t, o), p = Rl(e, t, n, d, l, s), y = B(() => ({
|
|
4235
4238
|
"f-list-view-group": !0,
|
|
4236
4239
|
"d-flex": u.value,
|
|
4237
4240
|
"flex-wrap": u.value
|
|
4238
4241
|
})), h = B(() => !!n.value && n.value.length > 0), P = B(() => n.value.length === 0), I = B(() => P.value && !t.slots.empty);
|
|
4239
4242
|
function C() {
|
|
4240
|
-
return g.value === "SingleView" ? xe : g.value === "DraggableView" ?
|
|
4243
|
+
return g.value === "SingleView" ? xe : g.value === "DraggableView" ? Ml : (g.value === "ContentView" || g.value === "CardView") && t.slots.content ? Vl : xe;
|
|
4241
4244
|
}
|
|
4242
4245
|
const T = C(), {
|
|
4243
4246
|
renderItem: S
|
|
4244
4247
|
} = T(e, t, n, d, a, l, p, s, c, f), {
|
|
4245
4248
|
renderItem: w
|
|
4246
|
-
} =
|
|
4249
|
+
} = El(e, t, n, d, a, l, p, s, c, f), F = [S, w];
|
|
4247
4250
|
function x() {
|
|
4248
4251
|
return n.value.filter((M) => M.visible !== !1).map((M, N) => F[M.type](M, N, r));
|
|
4249
4252
|
}
|
|
@@ -4264,7 +4267,7 @@ function Rl(e, t, n, o, a, s, f) {
|
|
|
4264
4267
|
renderListArea: R
|
|
4265
4268
|
};
|
|
4266
4269
|
}
|
|
4267
|
-
function
|
|
4270
|
+
function Ll(e, t, n) {
|
|
4268
4271
|
function o() {
|
|
4269
4272
|
return t.slots.header && i("div", {
|
|
4270
4273
|
class: "f-list-view-header"
|
|
@@ -4280,7 +4283,7 @@ function Be(e, t, n) {
|
|
|
4280
4283
|
s.value = "";
|
|
4281
4284
|
}
|
|
4282
4285
|
H(s, (d) => {
|
|
4283
|
-
n.search(d);
|
|
4286
|
+
e.enableHighlightSearch && n.search(d), t.emit("afterSearch", d);
|
|
4284
4287
|
});
|
|
4285
4288
|
const r = B(() => {
|
|
4286
4289
|
const d = {
|
|
@@ -4330,9 +4333,9 @@ function Be(e, t, n) {
|
|
|
4330
4333
|
const ke = /* @__PURE__ */ z({
|
|
4331
4334
|
name: "FListView",
|
|
4332
4335
|
props: Ge,
|
|
4333
|
-
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
4336
|
+
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
4334
4337
|
setup(e, t) {
|
|
4335
|
-
const n = m(), o = m(!0), a = m(!1), s = m([]), f = 0, g = m(e.columns), u =
|
|
4338
|
+
const n = m(), o = m(!0), a = m(!1), s = m([]), f = 0, g = m(e.columns), u = kn(e), r = Pn(e), v = In(e, u), l = Vn(e), d = Mn(e, /* @__PURE__ */ new Map(), r, u, l), c = En(e, d, u, s, t), p = Il(e, n), y = B(() => d.dataView.value.length), h = $n(e, u), P = On(), I = Dn(e, {}, P), C = Rn(e, h, r, u, P, I), T = jn(e, u, I, C), S = Ln(e, u, I, C), w = An(e, g, d, y, f, C, T, S), {
|
|
4336
4339
|
getVisualData: F
|
|
4337
4340
|
} = w;
|
|
4338
4341
|
s.value = F(0, y.value + f - 1);
|
|
@@ -4344,13 +4347,13 @@ const ke = /* @__PURE__ */ z({
|
|
|
4344
4347
|
return e.size !== "default" && (U[`${e.size}-item`] = !0), U;
|
|
4345
4348
|
}), b = B(() => !!t.slots.footer || o.value);
|
|
4346
4349
|
function R() {
|
|
4347
|
-
return e.header === "SearchBar" ? Be : e.header === "ContentHeader" ?
|
|
4350
|
+
return e.header === "SearchBar" ? Be : e.header === "ContentHeader" ? Ll : Be;
|
|
4348
4351
|
}
|
|
4349
4352
|
const M = R(), {
|
|
4350
4353
|
renderHeader: N
|
|
4351
4354
|
} = M(e, t, p), {
|
|
4352
4355
|
renderListArea: k
|
|
4353
|
-
} =
|
|
4356
|
+
} = jl(e, t, s, d, v, c, w);
|
|
4354
4357
|
function q(U) {
|
|
4355
4358
|
p.search(U);
|
|
4356
4359
|
}
|
|
@@ -4380,7 +4383,7 @@ const ke = /* @__PURE__ */ z({
|
|
|
4380
4383
|
class: "f-list-view-footer"
|
|
4381
4384
|
}, [t.slots.footer && t.slots.footer()])]);
|
|
4382
4385
|
}
|
|
4383
|
-
}),
|
|
4386
|
+
}), Al = /* @__PURE__ */ z({
|
|
4384
4387
|
name: "FTransfer",
|
|
4385
4388
|
props: qe,
|
|
4386
4389
|
emits: ["change", "activeChange"],
|
|
@@ -4492,7 +4495,7 @@ const ke = /* @__PURE__ */ z({
|
|
|
4492
4495
|
style: "height:480px"
|
|
4493
4496
|
}, [I(), F()]);
|
|
4494
4497
|
}
|
|
4495
|
-
}),
|
|
4498
|
+
}), Nl = [
|
|
4496
4499
|
{ id: "text", name: "文本", controlType: "text" },
|
|
4497
4500
|
{ id: "single-number", name: "数值", controlType: "single-number" },
|
|
4498
4501
|
{ id: "number", name: "数值区间", controlType: "number" },
|
|
@@ -4508,7 +4511,7 @@ const ke = /* @__PURE__ */ z({
|
|
|
4508
4511
|
{ id: "radio", name: "单选", controlType: "radio" },
|
|
4509
4512
|
{ id: "input-group", name: "富文本", controlType: "input-group" }
|
|
4510
4513
|
];
|
|
4511
|
-
function
|
|
4514
|
+
function ql(e, t, n, o, a) {
|
|
4512
4515
|
const s = m(!1), f = m(), g = m([]), u = m([]), r = m([]), {
|
|
4513
4516
|
getExtendSchemaProerty: v,
|
|
4514
4517
|
getBasicSchemaProerty: l
|
|
@@ -4520,7 +4523,7 @@ function Nl(e, t, n, o, a) {
|
|
|
4520
4523
|
u.value = C;
|
|
4521
4524
|
}
|
|
4522
4525
|
function p() {
|
|
4523
|
-
return
|
|
4526
|
+
return Nl;
|
|
4524
4527
|
}
|
|
4525
4528
|
function y() {
|
|
4526
4529
|
r.value = p();
|
|
@@ -4568,7 +4571,7 @@ function Nl(e, t, n, o, a) {
|
|
|
4568
4571
|
u.value = Q(g.value);
|
|
4569
4572
|
}
|
|
4570
4573
|
function I() {
|
|
4571
|
-
return s.value ? i(
|
|
4574
|
+
return s.value ? i(Al, {
|
|
4572
4575
|
selections: u.value,
|
|
4573
4576
|
"data-source": r.value,
|
|
4574
4577
|
class: "query-solution-config-transfer",
|
|
@@ -4584,13 +4587,13 @@ function Nl(e, t, n, o, a) {
|
|
|
4584
4587
|
cancel: P
|
|
4585
4588
|
};
|
|
4586
4589
|
}
|
|
4587
|
-
const
|
|
4588
|
-
["appearance",
|
|
4590
|
+
const Gl = /* @__PURE__ */ new Map([
|
|
4591
|
+
["appearance", Nn]
|
|
4589
4592
|
]);
|
|
4590
|
-
function
|
|
4593
|
+
function Hl(e, t, n) {
|
|
4591
4594
|
return t;
|
|
4592
4595
|
}
|
|
4593
|
-
const
|
|
4596
|
+
const Wl = "https://json-schema.org/draft/2020-12/schema", _l = "https://farris-design.gitee.io/button-edit.schema.json", zl = "button-edit", Ul = "A Farris Input Component", Ql = "object", Kl = {
|
|
4594
4597
|
id: {
|
|
4595
4598
|
description: "The unique identifier for a Input Group",
|
|
4596
4599
|
type: "string"
|
|
@@ -4774,18 +4777,18 @@ const Hl = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-
|
|
|
4774
4777
|
type: "string",
|
|
4775
4778
|
default: ""
|
|
4776
4779
|
}
|
|
4777
|
-
},
|
|
4780
|
+
}, Xl = [
|
|
4778
4781
|
"id",
|
|
4779
4782
|
"type"
|
|
4780
|
-
],
|
|
4781
|
-
$schema:
|
|
4782
|
-
$id:
|
|
4783
|
-
title:
|
|
4784
|
-
description:
|
|
4785
|
-
type:
|
|
4786
|
-
properties:
|
|
4787
|
-
required:
|
|
4788
|
-
},
|
|
4783
|
+
], Jl = {
|
|
4784
|
+
$schema: Wl,
|
|
4785
|
+
$id: _l,
|
|
4786
|
+
title: zl,
|
|
4787
|
+
description: Ul,
|
|
4788
|
+
type: Ql,
|
|
4789
|
+
properties: Kl,
|
|
4790
|
+
required: Xl
|
|
4791
|
+
}, Zl = "buttonEdit", Yl = "A Farris Component", ei = "object", ti = {
|
|
4789
4792
|
basic: {
|
|
4790
4793
|
description: "Basic Infomation",
|
|
4791
4794
|
title: "基本信息",
|
|
@@ -4867,11 +4870,11 @@ const Hl = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-
|
|
|
4867
4870
|
}
|
|
4868
4871
|
}
|
|
4869
4872
|
}
|
|
4870
|
-
},
|
|
4871
|
-
title:
|
|
4872
|
-
description:
|
|
4873
|
-
type:
|
|
4874
|
-
categories:
|
|
4873
|
+
}, ni = {
|
|
4874
|
+
title: Zl,
|
|
4875
|
+
description: Yl,
|
|
4876
|
+
type: ei,
|
|
4877
|
+
categories: ti
|
|
4875
4878
|
}, He = {
|
|
4876
4879
|
/**
|
|
4877
4880
|
* 组件标识
|
|
@@ -4979,14 +4982,14 @@ const Hl = "https://json-schema.org/draft/2020-12/schema", Wl = "https://farris-
|
|
|
4979
4982
|
*/
|
|
4980
4983
|
beforeOpen: { type: Function, default: null }
|
|
4981
4984
|
};
|
|
4982
|
-
Z(He,
|
|
4983
|
-
const
|
|
4985
|
+
Z(He, Jl, Gl, Hl, ni);
|
|
4986
|
+
const oi = {
|
|
4984
4987
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
4985
4988
|
host: { type: Object },
|
|
4986
4989
|
backgroundColor: { type: String, default: "" }
|
|
4987
|
-
},
|
|
4990
|
+
}, ai = /* @__PURE__ */ z({
|
|
4988
4991
|
name: "FOverlay",
|
|
4989
|
-
props:
|
|
4992
|
+
props: oi,
|
|
4990
4993
|
emits: ["click"],
|
|
4991
4994
|
setup(e, t) {
|
|
4992
4995
|
const n = m(e.popupContentPosition), o = m(e.host), a = B(() => ({
|
|
@@ -5032,13 +5035,13 @@ const ni = {
|
|
|
5032
5035
|
});
|
|
5033
5036
|
}
|
|
5034
5037
|
});
|
|
5035
|
-
function
|
|
5038
|
+
function li(e) {
|
|
5036
5039
|
if (e.content && e.content.render)
|
|
5037
5040
|
return e.content.render;
|
|
5038
5041
|
if (e.render && typeof e.render == "function")
|
|
5039
5042
|
return e.render;
|
|
5040
5043
|
}
|
|
5041
|
-
function
|
|
5044
|
+
function ii(e) {
|
|
5042
5045
|
const t = document.createElement("div");
|
|
5043
5046
|
t.style.display = "contents";
|
|
5044
5047
|
let n;
|
|
@@ -5051,8 +5054,8 @@ function li(e) {
|
|
|
5051
5054
|
yt(() => {
|
|
5052
5055
|
document.body.removeChild(t);
|
|
5053
5056
|
});
|
|
5054
|
-
const s =
|
|
5055
|
-
return () => i(
|
|
5057
|
+
const s = li(e);
|
|
5058
|
+
return () => i(ai, {
|
|
5056
5059
|
"popup-content-position": e.popupPosition,
|
|
5057
5060
|
host: e.host,
|
|
5058
5061
|
onClick: a,
|
|
@@ -5063,12 +5066,12 @@ function li(e) {
|
|
|
5063
5066
|
}
|
|
5064
5067
|
}), document.body.appendChild(t), n.mount(t), n;
|
|
5065
5068
|
}
|
|
5066
|
-
class
|
|
5069
|
+
class ri {
|
|
5067
5070
|
static show(t) {
|
|
5068
|
-
return
|
|
5071
|
+
return ii(t);
|
|
5069
5072
|
}
|
|
5070
5073
|
}
|
|
5071
|
-
const
|
|
5074
|
+
const si = Symbol("FModalService");
|
|
5072
5075
|
function We(e, t) {
|
|
5073
5076
|
function n() {
|
|
5074
5077
|
const o = e.beforeOpen || e.beforeClickButton || null;
|
|
@@ -5083,11 +5086,11 @@ function We(e, t) {
|
|
|
5083
5086
|
}
|
|
5084
5087
|
return { judgeCanOpen: n };
|
|
5085
5088
|
}
|
|
5086
|
-
function
|
|
5089
|
+
function ui(e, t, n, o, a) {
|
|
5087
5090
|
const s = m(e.buttonBehavior), f = m(e.popupOnInput), g = B(() => ({
|
|
5088
5091
|
"input-group-append": !0,
|
|
5089
5092
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
5090
|
-
})), { judgeCanOpen: u } = We(e, a), r = B(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), v = de(
|
|
5093
|
+
})), { judgeCanOpen: u } = We(e, a), r = B(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), v = de(si, null), l = m();
|
|
5091
5094
|
async function d(y) {
|
|
5092
5095
|
if (await u() && r.value) {
|
|
5093
5096
|
const h = !!t.slots.default;
|
|
@@ -5098,7 +5101,7 @@ function si(e, t, n, o, a) {
|
|
|
5098
5101
|
});
|
|
5099
5102
|
l.value = I == null ? void 0 : I.modalRef;
|
|
5100
5103
|
}
|
|
5101
|
-
s.value === "Overlay" &&
|
|
5104
|
+
s.value === "Overlay" && ri.show({
|
|
5102
5105
|
// host: buttonEditRef.value,
|
|
5103
5106
|
host: document.body,
|
|
5104
5107
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
@@ -5120,7 +5123,7 @@ function si(e, t, n, o, a) {
|
|
|
5120
5123
|
modalRef: l
|
|
5121
5124
|
};
|
|
5122
5125
|
}
|
|
5123
|
-
function
|
|
5126
|
+
function ci(e, t, n, o, a, s) {
|
|
5124
5127
|
const f = m(!1), g = B(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: u } = s;
|
|
5125
5128
|
function r(c) {
|
|
5126
5129
|
f.value = c;
|
|
@@ -5152,7 +5155,7 @@ function ui(e, t, n, o, a, s) {
|
|
|
5152
5155
|
onMouseLeaveTextBox: d
|
|
5153
5156
|
};
|
|
5154
5157
|
}
|
|
5155
|
-
function
|
|
5158
|
+
function di(e, t, n, o, a) {
|
|
5156
5159
|
const s = B(() => e.popupOnInput), f = B(() => e.popupOnFocus), { shouldPopupContent: g } = a, u = B(() => e.enableTitle ? n.value : ""), r = B(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = B(() => e.readonly || !e.editable), l = m(!1), d = B(() => !e.disable && l.value), c = B(() => ({
|
|
5157
5160
|
"text-left": e.textAlign === "left",
|
|
5158
5161
|
"text-center": e.textAlign === "center",
|
|
@@ -5224,7 +5227,7 @@ function ci(e, t, n, o, a) {
|
|
|
5224
5227
|
onTextBoxValueChange: x
|
|
5225
5228
|
};
|
|
5226
5229
|
}
|
|
5227
|
-
function
|
|
5230
|
+
function pi(e, t, n, o) {
|
|
5228
5231
|
const a = m(), s = m(!1), { judgeCanOpen: f } = We(e, o);
|
|
5229
5232
|
function g() {
|
|
5230
5233
|
const l = a.value;
|
|
@@ -5249,7 +5252,7 @@ function di(e, t, n, o) {
|
|
|
5249
5252
|
}
|
|
5250
5253
|
return { hidePopup: v, popup: r, shouldPopupContent: s, togglePopup: u, popoverRef: a };
|
|
5251
5254
|
}
|
|
5252
|
-
function
|
|
5255
|
+
function fi(e, t, n) {
|
|
5253
5256
|
const o = m(), {
|
|
5254
5257
|
isTextBoxReadonly: a,
|
|
5255
5258
|
textBoxClass: s,
|
|
@@ -5291,7 +5294,7 @@ function pi(e, t, n) {
|
|
|
5291
5294
|
onMousedown: p
|
|
5292
5295
|
}, null);
|
|
5293
5296
|
}
|
|
5294
|
-
function
|
|
5297
|
+
function mi(e, t, n) {
|
|
5295
5298
|
const o = m(e.separator), {
|
|
5296
5299
|
changeTextBoxValue: a
|
|
5297
5300
|
} = n, s = B(() => t.value ? t.value.split(o.value).map((g) => ({
|
|
@@ -5310,7 +5313,7 @@ function fi(e, t, n) {
|
|
|
5310
5313
|
onChange: f
|
|
5311
5314
|
}, null);
|
|
5312
5315
|
}
|
|
5313
|
-
function
|
|
5316
|
+
function vi(e, t, n, o) {
|
|
5314
5317
|
const {
|
|
5315
5318
|
buttonGroupClass: a,
|
|
5316
5319
|
onClickButton: s,
|
|
@@ -5346,12 +5349,12 @@ function mi(e, t, n, o) {
|
|
|
5346
5349
|
buttonHandleElement: l
|
|
5347
5350
|
};
|
|
5348
5351
|
}
|
|
5349
|
-
function
|
|
5352
|
+
function yi(e, t, n) {
|
|
5350
5353
|
const o = m(e.popupMinWidth), {
|
|
5351
5354
|
hidePopup: a,
|
|
5352
5355
|
popoverRef: s
|
|
5353
5356
|
} = n;
|
|
5354
|
-
return () => i(
|
|
5357
|
+
return () => i(qn, {
|
|
5355
5358
|
id: `${e.id}-popover`,
|
|
5356
5359
|
ref: s,
|
|
5357
5360
|
visible: !0,
|
|
@@ -5370,20 +5373,20 @@ function vi(e, t, n) {
|
|
|
5370
5373
|
}
|
|
5371
5374
|
});
|
|
5372
5375
|
}
|
|
5373
|
-
const
|
|
5376
|
+
const gi = /* @__PURE__ */ z({
|
|
5374
5377
|
name: "FButtonEdit",
|
|
5375
5378
|
props: He,
|
|
5376
5379
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
|
|
5377
5380
|
setup(e, t) {
|
|
5378
|
-
const n = m(), o = m(e.customClass), a = m(e.modelValue), s =
|
|
5381
|
+
const n = m(), o = m(e.customClass), a = m(e.modelValue), s = pi(e, t, n, a), {
|
|
5379
5382
|
shouldPopupContent: f,
|
|
5380
5383
|
hidePopup: g,
|
|
5381
5384
|
togglePopup: u
|
|
5382
|
-
} = s, r =
|
|
5385
|
+
} = s, r = ui(e, t, n, s, a), v = m(""), l = di(e, t, a, v, s), {
|
|
5383
5386
|
hasFocusedTextBox: d,
|
|
5384
5387
|
commitValue: c,
|
|
5385
5388
|
inputGroupClass: p
|
|
5386
|
-
} = l, y =
|
|
5389
|
+
} = l, y = ci(e, t, a, d, v, l), {
|
|
5387
5390
|
onMouseEnterTextBox: h,
|
|
5388
5391
|
onMouseLeaveTextBox: P
|
|
5389
5392
|
} = y, I = B(() => {
|
|
@@ -5395,7 +5398,7 @@ const yi = /* @__PURE__ */ z({
|
|
|
5395
5398
|
return o.value && o.value.split(" ").reduce((R, M) => (R[M] = !0, R), b), b;
|
|
5396
5399
|
});
|
|
5397
5400
|
function C() {
|
|
5398
|
-
return e.multiSelect && e.inputType === "tag" ?
|
|
5401
|
+
return e.multiSelect && e.inputType === "tag" ? mi(e, a, l) : fi(e, a, l);
|
|
5399
5402
|
}
|
|
5400
5403
|
let T = C();
|
|
5401
5404
|
H([() => e.multiSelect, () => e.inputType], () => {
|
|
@@ -5404,7 +5407,7 @@ const yi = /* @__PURE__ */ z({
|
|
|
5404
5407
|
const {
|
|
5405
5408
|
renderButtonGroup: S,
|
|
5406
5409
|
buttonHandleElement: w
|
|
5407
|
-
} =
|
|
5410
|
+
} = vi(e, t, r, y), F = yi(e, t, s), x = {
|
|
5408
5411
|
commitValue: c,
|
|
5409
5412
|
elementRef: n,
|
|
5410
5413
|
hidePopup: g,
|
|
@@ -5433,12 +5436,12 @@ const yi = /* @__PURE__ */ z({
|
|
|
5433
5436
|
onMouseleave: P
|
|
5434
5437
|
}, [T(), S()])]), f.value && F()]);
|
|
5435
5438
|
}
|
|
5436
|
-
}),
|
|
5439
|
+
}), hi = /* @__PURE__ */ z({
|
|
5437
5440
|
name: "FQuerySolutionConfig",
|
|
5438
5441
|
props: Le,
|
|
5439
5442
|
emits: ["update:modelValue"],
|
|
5440
5443
|
setup(e, t) {
|
|
5441
|
-
const n = m(null), o = B(() => "共" + e.modelValue.length + "项"), a = m(), s =
|
|
5444
|
+
const n = m(null), o = B(() => "共" + e.modelValue.length + "项"), a = m(), s = Za(e, t, n, a), {
|
|
5442
5445
|
renderPanel: f
|
|
5443
5446
|
} = s, {
|
|
5444
5447
|
renderTransfer: g,
|
|
@@ -5446,7 +5449,7 @@ const yi = /* @__PURE__ */ z({
|
|
|
5446
5449
|
confirm: r,
|
|
5447
5450
|
cancel: v,
|
|
5448
5451
|
selectPanels: l
|
|
5449
|
-
} =
|
|
5452
|
+
} = ql(e, t, n, a, s), d = {
|
|
5450
5453
|
fitContent: !1,
|
|
5451
5454
|
width: 900,
|
|
5452
5455
|
height: 600,
|
|
@@ -5465,7 +5468,7 @@ const yi = /* @__PURE__ */ z({
|
|
|
5465
5468
|
}
|
|
5466
5469
|
return K(() => {
|
|
5467
5470
|
u();
|
|
5468
|
-
}), () => i(
|
|
5471
|
+
}), () => i(gi, {
|
|
5469
5472
|
id: e.id,
|
|
5470
5473
|
"button-behavior": "Modal",
|
|
5471
5474
|
"modal-options": d,
|
|
@@ -5477,18 +5480,18 @@ const yi = /* @__PURE__ */ z({
|
|
|
5477
5480
|
}, [y()])]
|
|
5478
5481
|
});
|
|
5479
5482
|
}
|
|
5480
|
-
}),
|
|
5483
|
+
}), bi = "https://json-schema.org/draft/2020-12/schema", Ci = "https://farris-design.gitee.io/filter-bar-config.schema.json", Ti = "filter-bar-config", Si = "A Farris Container Component", Fi = {
|
|
5481
5484
|
fields: {
|
|
5482
5485
|
description: "The unique identifier for a query solution",
|
|
5483
5486
|
type: "array"
|
|
5484
5487
|
}
|
|
5485
|
-
},
|
|
5486
|
-
$schema:
|
|
5487
|
-
$id:
|
|
5488
|
-
title:
|
|
5489
|
-
description:
|
|
5490
|
-
properties:
|
|
5491
|
-
},
|
|
5488
|
+
}, wi = {
|
|
5489
|
+
$schema: bi,
|
|
5490
|
+
$id: Ci,
|
|
5491
|
+
title: Ti,
|
|
5492
|
+
description: Si,
|
|
5493
|
+
properties: Fi
|
|
5494
|
+
}, xi = "filter-bar-config", Bi = "A Farris Component", ki = "object", Pi = {
|
|
5492
5495
|
basic: {
|
|
5493
5496
|
description: "Basic Infomation",
|
|
5494
5497
|
title: "基本信息",
|
|
@@ -5572,35 +5575,35 @@ const yi = /* @__PURE__ */ z({
|
|
|
5572
5575
|
title: "控件",
|
|
5573
5576
|
properties: {}
|
|
5574
5577
|
}
|
|
5575
|
-
},
|
|
5576
|
-
title:
|
|
5577
|
-
description:
|
|
5578
|
-
type:
|
|
5579
|
-
categories:
|
|
5580
|
-
},
|
|
5578
|
+
}, Ii = {
|
|
5579
|
+
title: xi,
|
|
5580
|
+
description: Bi,
|
|
5581
|
+
type: ki,
|
|
5582
|
+
categories: Pi
|
|
5583
|
+
}, Vi = /* @__PURE__ */ new Map([
|
|
5581
5584
|
["appearance", ee]
|
|
5582
5585
|
// ['preset', resolvePreset]
|
|
5583
5586
|
]);
|
|
5584
|
-
function
|
|
5587
|
+
function Mi(e, t, n) {
|
|
5585
5588
|
return t;
|
|
5586
5589
|
}
|
|
5587
|
-
const
|
|
5590
|
+
const Ei = {
|
|
5588
5591
|
fields: { type: Array, default: [] },
|
|
5589
5592
|
modelValue: { type: Array, default: [] }
|
|
5590
|
-
},
|
|
5593
|
+
}, $i = Z(Ei, wi, Vi, Mi, Ii), zr = {
|
|
5591
5594
|
install(e) {
|
|
5592
5595
|
e.component(re.name, re);
|
|
5593
5596
|
},
|
|
5594
5597
|
register(e, t, n, o) {
|
|
5595
|
-
e["filter-bar"] = re, t["filter-bar"] = Te, e["filter-bar-config"] =
|
|
5598
|
+
e["filter-bar"] = re, t["filter-bar"] = Te, e["filter-bar-config"] = hi, t["filter-bar-config"] = $i;
|
|
5596
5599
|
},
|
|
5597
5600
|
registerDesigner(e, t, n) {
|
|
5598
|
-
e["filter-bar"] =
|
|
5601
|
+
e["filter-bar"] = Go, t["filter-bar"] = Te;
|
|
5599
5602
|
}
|
|
5600
5603
|
};
|
|
5601
5604
|
export {
|
|
5602
5605
|
re as FFilterBar,
|
|
5603
|
-
|
|
5606
|
+
zr as default,
|
|
5604
5607
|
he as filterBarProps,
|
|
5605
5608
|
Te as propsResolver
|
|
5606
5609
|
};
|