@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,6 +62,7 @@ import qt from "@farris/ui-vue/components/weather";
|
|
|
62
62
|
import Ut from "@farris/ui-vue/components/video";
|
|
63
63
|
import Ht from "@farris/ui-vue/components/textarea";
|
|
64
64
|
import Wt from "@farris/ui-vue/components/schema-selector";
|
|
65
|
+
import zt from "@farris/ui-vue/components/tree-grid";
|
|
65
66
|
import "@farris/ui-vue/components/external-container";
|
|
66
67
|
const de = {}, me = {};
|
|
67
68
|
function ne(e) {
|
|
@@ -77,11 +78,11 @@ function z(e, t = {}) {
|
|
|
77
78
|
}
|
|
78
79
|
return null;
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function Qt(e, t) {
|
|
81
82
|
const n = ne(t);
|
|
82
83
|
return Object.keys(e).reduce((r, o) => (r[o] = e[o], r), n), n;
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function _t(e, t) {
|
|
85
86
|
return Object.keys(e).filter((r) => e[r] != null).reduce((r, o) => {
|
|
86
87
|
if (t.has(o)) {
|
|
87
88
|
const i = t.get(o);
|
|
@@ -96,11 +97,11 @@ function Qt(e, t) {
|
|
|
96
97
|
return r;
|
|
97
98
|
}, {});
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
-
const r =
|
|
101
|
-
return
|
|
100
|
+
function Zt(e, t, n = /* @__PURE__ */ new Map()) {
|
|
101
|
+
const r = Qt(e, t);
|
|
102
|
+
return _t(r, n);
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
+
function Xt(e = {}) {
|
|
104
105
|
function t(a, u, c, y) {
|
|
105
106
|
if (typeof c == "number")
|
|
106
107
|
return y[a].length === c;
|
|
@@ -265,18 +266,18 @@ const T = {
|
|
|
265
266
|
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
266
267
|
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
267
268
|
/** 审批类 end */
|
|
268
|
-
}, fe = {},
|
|
269
|
-
|
|
269
|
+
}, fe = {}, Yt = {};
|
|
270
|
+
Xt();
|
|
270
271
|
function Z(e, t, n = /* @__PURE__ */ new Map(), r = (l, d, m) => d, o = {}, i = (l) => l) {
|
|
271
|
-
return de[t.title] = t, me[t.title] = r, fe[t.title] = o,
|
|
272
|
-
const d =
|
|
272
|
+
return de[t.title] = t, me[t.title] = r, fe[t.title] = o, Yt[t.title] = i, (l = {}) => {
|
|
273
|
+
const d = Zt(l, t, n), m = Object.keys(e).reduce((a, u) => (a[u] = e[u].default, a), {});
|
|
273
274
|
return Object.assign(m, d);
|
|
274
275
|
};
|
|
275
276
|
}
|
|
276
277
|
function ye(e, t) {
|
|
277
278
|
return { customClass: t.class, customStyle: t.style };
|
|
278
279
|
}
|
|
279
|
-
function
|
|
280
|
+
function Kt() {
|
|
280
281
|
function e(t) {
|
|
281
282
|
return t.editor;
|
|
282
283
|
}
|
|
@@ -287,22 +288,22 @@ function Yt() {
|
|
|
287
288
|
const oe = /* @__PURE__ */ new Map([
|
|
288
289
|
["appearance", ye]
|
|
289
290
|
]);
|
|
290
|
-
function
|
|
291
|
+
function Jt(e, t, n, r) {
|
|
291
292
|
const o = e.getSchemaByType("section");
|
|
292
293
|
return o.id = `${r}-section`, o.appearance = { class: "f-section-form f-section-in-main" }, o.mainTitle = "标题", o.contents = [t], o;
|
|
293
294
|
}
|
|
294
|
-
function
|
|
295
|
+
function en(e, t, n, r) {
|
|
295
296
|
const o = e.getSchemaByType("component");
|
|
296
297
|
return o.id = `${r}-component`, o.componentType = "form-col-1", o.appearance = {
|
|
297
298
|
class: "f-struct-form f-struct-wrapper"
|
|
298
299
|
}, o.contents = [t], o;
|
|
299
300
|
}
|
|
300
|
-
function
|
|
301
|
+
function tn(e, t, n) {
|
|
301
302
|
t.appearance = { class: "f-form-layout farris-form farris-form-controls-inline" };
|
|
302
|
-
const r =
|
|
303
|
-
return
|
|
303
|
+
const r = Jt(e, t, n, t.id);
|
|
304
|
+
return en(e, r, n, t.id);
|
|
304
305
|
}
|
|
305
|
-
const
|
|
306
|
+
const nn = "https://json-schema.org/draft/2020-12/schema", on = "https://farris-design.gitee.io/response-form.schema.json", rn = "response-form", an = "A Farris Data Collection Component", sn = "object", ln = {
|
|
306
307
|
id: {
|
|
307
308
|
description: "The unique identifier for a form group",
|
|
308
309
|
type: "string"
|
|
@@ -330,18 +331,18 @@ const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-
|
|
|
330
331
|
type: "array",
|
|
331
332
|
default: []
|
|
332
333
|
}
|
|
333
|
-
},
|
|
334
|
+
}, cn = [
|
|
334
335
|
"id",
|
|
335
336
|
"type"
|
|
336
|
-
],
|
|
337
|
-
$schema:
|
|
338
|
-
$id:
|
|
339
|
-
title:
|
|
340
|
-
description:
|
|
341
|
-
type:
|
|
342
|
-
properties:
|
|
343
|
-
required:
|
|
344
|
-
},
|
|
337
|
+
], un = {
|
|
338
|
+
$schema: nn,
|
|
339
|
+
$id: on,
|
|
340
|
+
title: rn,
|
|
341
|
+
description: an,
|
|
342
|
+
type: sn,
|
|
343
|
+
properties: ln,
|
|
344
|
+
required: cn
|
|
345
|
+
}, pn = "response-form", dn = "A Farris Component", mn = "object", fn = {
|
|
345
346
|
basic: {
|
|
346
347
|
description: "Basic Infomation",
|
|
347
348
|
title: "基本信息",
|
|
@@ -363,14 +364,14 @@ const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-
|
|
|
363
364
|
}
|
|
364
365
|
}
|
|
365
366
|
}
|
|
366
|
-
},
|
|
367
|
-
title:
|
|
368
|
-
description:
|
|
369
|
-
type:
|
|
370
|
-
categories:
|
|
367
|
+
}, yn = {
|
|
368
|
+
title: pn,
|
|
369
|
+
description: dn,
|
|
370
|
+
type: mn,
|
|
371
|
+
categories: fn
|
|
371
372
|
}, ge = {
|
|
372
373
|
customClass: { type: String, default: "" }
|
|
373
|
-
}, ce = Z(ge,
|
|
374
|
+
}, ce = Z(ge, un, oe, tn, yn), K = /* @__PURE__ */ G({
|
|
374
375
|
name: "FResponseForm",
|
|
375
376
|
props: ge,
|
|
376
377
|
emits: [],
|
|
@@ -386,7 +387,7 @@ const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-
|
|
|
386
387
|
class: r.value
|
|
387
388
|
}, [t.slots.default && t.slots.default()]);
|
|
388
389
|
}
|
|
389
|
-
}),
|
|
390
|
+
}), gn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-design.gitee.io/form-group.schema.json", hn = "form-group", vn = "A Farris Input Component", Cn = "object", Tn = {
|
|
390
391
|
id: {
|
|
391
392
|
description: "The unique identifier for a form group",
|
|
392
393
|
type: "string"
|
|
@@ -427,17 +428,17 @@ const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-
|
|
|
427
428
|
description: "",
|
|
428
429
|
type: "number"
|
|
429
430
|
}
|
|
430
|
-
},
|
|
431
|
+
}, Fn = [
|
|
431
432
|
"id",
|
|
432
433
|
"type"
|
|
433
434
|
], be = {
|
|
434
|
-
$schema:
|
|
435
|
-
$id:
|
|
436
|
-
title:
|
|
437
|
-
description:
|
|
438
|
-
type:
|
|
439
|
-
properties:
|
|
440
|
-
required:
|
|
435
|
+
$schema: gn,
|
|
436
|
+
$id: bn,
|
|
437
|
+
title: hn,
|
|
438
|
+
description: vn,
|
|
439
|
+
type: Cn,
|
|
440
|
+
properties: Tn,
|
|
441
|
+
required: Fn
|
|
441
442
|
}, Q = {
|
|
442
443
|
id: { type: String, default: "" },
|
|
443
444
|
customClass: { type: String, default: "" },
|
|
@@ -456,7 +457,7 @@ const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-
|
|
|
456
457
|
be,
|
|
457
458
|
oe,
|
|
458
459
|
void 0
|
|
459
|
-
),
|
|
460
|
+
), wn = Kt();
|
|
460
461
|
function re(e, t, n) {
|
|
461
462
|
var L;
|
|
462
463
|
function r() {
|
|
@@ -546,7 +547,7 @@ function re(e, t, n) {
|
|
|
546
547
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || f(!1)
|
|
547
548
|
}, l;
|
|
548
549
|
}
|
|
549
|
-
function
|
|
550
|
+
function Bn() {
|
|
550
551
|
function e(t) {
|
|
551
552
|
var o, i;
|
|
552
553
|
if (!t)
|
|
@@ -566,7 +567,7 @@ function wn() {
|
|
|
566
567
|
basalDragulaRuleForContainer: e
|
|
567
568
|
};
|
|
568
569
|
}
|
|
569
|
-
const
|
|
570
|
+
const Sn = "https://json-schema.org/draft/2020-12/schema", Pn = "https://farris-design.gitee.io/dragging-rules.schema.json", kn = "Dragging Rules", xn = "The rules of designer canvas", Mn = "object", jn = {
|
|
570
571
|
"f-page": {
|
|
571
572
|
description: "The root class of page designed by farris.",
|
|
572
573
|
type: "object",
|
|
@@ -1130,16 +1131,16 @@ const Bn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
1130
1131
|
description: "",
|
|
1131
1132
|
type: "object"
|
|
1132
1133
|
}
|
|
1133
|
-
},
|
|
1134
|
-
$schema:
|
|
1135
|
-
$id:
|
|
1136
|
-
title:
|
|
1137
|
-
description:
|
|
1138
|
-
type:
|
|
1139
|
-
properties:
|
|
1140
|
-
required:
|
|
1134
|
+
}, An = [], Dn = {
|
|
1135
|
+
$schema: Sn,
|
|
1136
|
+
$id: Pn,
|
|
1137
|
+
title: kn,
|
|
1138
|
+
description: xn,
|
|
1139
|
+
type: Mn,
|
|
1140
|
+
properties: jn,
|
|
1141
|
+
required: An
|
|
1141
1142
|
}, J = /* @__PURE__ */ new Map();
|
|
1142
|
-
function
|
|
1143
|
+
function En() {
|
|
1143
1144
|
function e(s, p, g, w) {
|
|
1144
1145
|
var D;
|
|
1145
1146
|
if (typeof g == "number")
|
|
@@ -1218,7 +1219,7 @@ function Dn() {
|
|
|
1218
1219
|
}
|
|
1219
1220
|
}
|
|
1220
1221
|
function y() {
|
|
1221
|
-
const { properties: s } =
|
|
1222
|
+
const { properties: s } = Dn;
|
|
1222
1223
|
Object.keys(s).forEach((p) => {
|
|
1223
1224
|
c(p, s[p], J);
|
|
1224
1225
|
});
|
|
@@ -1229,15 +1230,15 @@ function Dn() {
|
|
|
1229
1230
|
}
|
|
1230
1231
|
return y(), { getRuleValue: F };
|
|
1231
1232
|
}
|
|
1232
|
-
function
|
|
1233
|
+
function Vn(e, t) {
|
|
1233
1234
|
var x;
|
|
1234
|
-
const n = e.schema, r = (x = e.parent) == null ? void 0 : x.schema, o =
|
|
1235
|
+
const n = e.schema, r = (x = e.parent) == null ? void 0 : x.schema, o = En(), i = f(!1), l = f(!1);
|
|
1235
1236
|
let d = !0, m = !1, a, u = !1;
|
|
1236
1237
|
function c(B) {
|
|
1237
1238
|
return a && a.componentClassList && a.componentClassList.includes("f-form-layout") && a.componentClassList.includes("farris-form") ? B.sourceType === "control" && B.controlCategory === "input" || B.sourceType === "move" && B.controlType === "form-group" : !0;
|
|
1238
1239
|
}
|
|
1239
1240
|
function y(B) {
|
|
1240
|
-
return !(!
|
|
1241
|
+
return !(!Bn().basalDragulaRuleForContainer(B) || !d || !c(B));
|
|
1241
1242
|
}
|
|
1242
1243
|
function F() {
|
|
1243
1244
|
i.value = !1, l.value = !1;
|
|
@@ -1347,14 +1348,14 @@ function En(e, t) {
|
|
|
1347
1348
|
triggerBelongedComponentToDeleteWhenDeleted: l
|
|
1348
1349
|
};
|
|
1349
1350
|
}
|
|
1350
|
-
const
|
|
1351
|
+
const On = /* @__PURE__ */ G({
|
|
1351
1352
|
name: "FResponseFormDesign",
|
|
1352
1353
|
props: Q,
|
|
1353
1354
|
emits: [],
|
|
1354
1355
|
setup(e, t) {
|
|
1355
1356
|
const n = f(), r = W("design-item-context");
|
|
1356
1357
|
W("designer-host-service");
|
|
1357
|
-
const o =
|
|
1358
|
+
const o = Vn(r), i = re(n, r, o);
|
|
1358
1359
|
U(() => {
|
|
1359
1360
|
n.value.componentInstance = i;
|
|
1360
1361
|
}), t.expose(i.value);
|
|
@@ -1371,14 +1372,14 @@ const Vn = /* @__PURE__ */ G({
|
|
|
1371
1372
|
"data-associate": `${r.schema.id}-component`
|
|
1372
1373
|
}, [t.slots.default && t.slots.default()]);
|
|
1373
1374
|
}
|
|
1374
|
-
}),
|
|
1375
|
+
}), Ln = {
|
|
1375
1376
|
id: { type: String },
|
|
1376
1377
|
required: { type: Boolean, default: !1 },
|
|
1377
1378
|
text: { type: String, default: "" },
|
|
1378
1379
|
title: { type: String }
|
|
1379
1380
|
}, he = /* @__PURE__ */ G({
|
|
1380
1381
|
name: "FDynamicFormLabel",
|
|
1381
|
-
props:
|
|
1382
|
+
props: Ln,
|
|
1382
1383
|
emits: [],
|
|
1383
1384
|
setup(e, t) {
|
|
1384
1385
|
const n = f(e.title || e.text), r = f(e.required), o = f(e.text);
|
|
@@ -1395,13 +1396,13 @@ const Vn = /* @__PURE__ */ G({
|
|
|
1395
1396
|
class: "farris-label-text"
|
|
1396
1397
|
}, [o.value])]);
|
|
1397
1398
|
}
|
|
1398
|
-
}),
|
|
1399
|
+
}), Nn = /* @__PURE__ */ new Map([
|
|
1399
1400
|
["appearance", ye]
|
|
1400
1401
|
]);
|
|
1401
|
-
function
|
|
1402
|
+
function In(e, t, n) {
|
|
1402
1403
|
return t;
|
|
1403
1404
|
}
|
|
1404
|
-
const
|
|
1405
|
+
const $n = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", Gn = "input-group", qn = "A Farris Input Component", Un = "object", Hn = {
|
|
1405
1406
|
id: {
|
|
1406
1407
|
description: "The unique identifier for a Input Group",
|
|
1407
1408
|
type: "string"
|
|
@@ -1603,17 +1604,17 @@ const In = "https://json-schema.org/draft/2020-12/schema", $n = "https://farris-
|
|
|
1603
1604
|
type: "string",
|
|
1604
1605
|
default: ""
|
|
1605
1606
|
}
|
|
1606
|
-
},
|
|
1607
|
+
}, Wn = [
|
|
1607
1608
|
"id",
|
|
1608
1609
|
"type"
|
|
1609
|
-
],
|
|
1610
|
-
$schema:
|
|
1611
|
-
$id:
|
|
1612
|
-
title:
|
|
1613
|
-
description:
|
|
1614
|
-
type:
|
|
1615
|
-
properties:
|
|
1616
|
-
required:
|
|
1610
|
+
], zn = {
|
|
1611
|
+
$schema: $n,
|
|
1612
|
+
$id: Rn,
|
|
1613
|
+
title: Gn,
|
|
1614
|
+
description: qn,
|
|
1615
|
+
type: Un,
|
|
1616
|
+
properties: Hn,
|
|
1617
|
+
required: Wn
|
|
1617
1618
|
}, ae = {
|
|
1618
1619
|
/** 是否自动完成 */
|
|
1619
1620
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -1681,8 +1682,8 @@ const In = "https://json-schema.org/draft/2020-12/schema", $n = "https://farris-
|
|
|
1681
1682
|
*/
|
|
1682
1683
|
updateOn: { type: String, default: "blur" }
|
|
1683
1684
|
};
|
|
1684
|
-
Z(ae,
|
|
1685
|
-
function
|
|
1685
|
+
Z(ae, zn, Nn, In);
|
|
1686
|
+
function Qn(e, t, n, r) {
|
|
1686
1687
|
const o = f(e.disabled), i = f(!1), l = f("text"), d = f(e.showBorder), m = f(e.textAlign), a = f(e.updateOn), u = P(() => e.editable || !e.readonly), c = P(() => e.editable && !e.disabled && !e.readonly), y = P(() => !e.disabled && i.value), F = P(() => n.value === "" || n.value === null || n.value === void 0), s = P(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), p = P(() => e.readonly || !e.editable), g = P(() => e.enableTitle ? n.value : ""), w = P(() => ({
|
|
1687
1688
|
"form-control": !0,
|
|
1688
1689
|
"f-utils-fill": !0,
|
|
@@ -1765,7 +1766,7 @@ function zn(e, t, n, r) {
|
|
|
1765
1766
|
inputGroupStyle: j
|
|
1766
1767
|
};
|
|
1767
1768
|
}
|
|
1768
|
-
function
|
|
1769
|
+
function _n(e, t, n, r) {
|
|
1769
1770
|
const o = f(e.disabled), i = f(!1), l = f("text"), d = f(e.showBorder), m = f(e.textAlign);
|
|
1770
1771
|
P(() => e.editable || !e.readonly);
|
|
1771
1772
|
const a = P(() => e.editable && !e.disabled && !e.readonly), u = P(() => !e.disabled && i.value), c = P(() => n.value === "" || n.value === null || n.value === void 0), y = P(() => e.placeholder), F = P(() => e.readonly || !e.editable), s = P(() => e.enableTitle ? n.value : ""), p = P(() => ({
|
|
@@ -1833,8 +1834,8 @@ function ve(e, t, n) {
|
|
|
1833
1834
|
}
|
|
1834
1835
|
return { clearButtonClass: u, clearButtonStyle: c, hasShownClearButton: r, onClearValue: y, onMouseEnter: F, onMouseLeave: s, shouldShowClearButton: o };
|
|
1835
1836
|
}
|
|
1836
|
-
const
|
|
1837
|
-
function
|
|
1837
|
+
const Zn = ["moz", "ms", "webkit"];
|
|
1838
|
+
function Xn() {
|
|
1838
1839
|
let e = 0;
|
|
1839
1840
|
return (t) => {
|
|
1840
1841
|
const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - e)), o = setTimeout(() => {
|
|
@@ -1843,15 +1844,15 @@ function Zn() {
|
|
|
1843
1844
|
return e = n + r, o;
|
|
1844
1845
|
};
|
|
1845
1846
|
}
|
|
1846
|
-
function
|
|
1847
|
+
function Yn() {
|
|
1847
1848
|
if (typeof window > "u")
|
|
1848
1849
|
return () => 0;
|
|
1849
1850
|
if (window.requestAnimationFrame)
|
|
1850
1851
|
return window.requestAnimationFrame.bind(window);
|
|
1851
|
-
const e =
|
|
1852
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
1852
|
+
const e = Zn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
1853
|
+
return e ? window[`${e}RequestAnimationFrame`] : Xn();
|
|
1853
1854
|
}
|
|
1854
|
-
|
|
1855
|
+
Yn();
|
|
1855
1856
|
function Ce(e, t) {
|
|
1856
1857
|
const n = f(e.groupText), r = P(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), o = P(() => e.enableClear || !!e.groupText);
|
|
1857
1858
|
return { appendedButtonClass: P(() => ({
|
|
@@ -1872,7 +1873,7 @@ function Te(e, t, n, r) {
|
|
|
1872
1873
|
}
|
|
1873
1874
|
return c(), { isPassword: l, onClickAppendedButton: u };
|
|
1874
1875
|
}
|
|
1875
|
-
function
|
|
1876
|
+
function Kn(e, t, n) {
|
|
1876
1877
|
const r = f(), {
|
|
1877
1878
|
onBlurTextBox: o,
|
|
1878
1879
|
onFocusTextBox: i,
|
|
@@ -1912,7 +1913,7 @@ function Yn(e, t, n) {
|
|
|
1912
1913
|
onKeydown: d
|
|
1913
1914
|
}, null);
|
|
1914
1915
|
}
|
|
1915
|
-
function
|
|
1916
|
+
function Jn(e, t, n) {
|
|
1916
1917
|
const {
|
|
1917
1918
|
canDownward: r,
|
|
1918
1919
|
canUpward: o,
|
|
@@ -1953,12 +1954,12 @@ function Kn(e, t, n) {
|
|
|
1953
1954
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1954
1955
|
}, null)])]);
|
|
1955
1956
|
}
|
|
1956
|
-
function
|
|
1957
|
-
const n = $e(e, t), r = Re(e, t, n), o = Ge(e, t, r, n), i = qe(e, t, r, n, o), l =
|
|
1957
|
+
function eo(e, t) {
|
|
1958
|
+
const n = $e(e, t), r = Re(e, t, n), o = Ge(e, t, r, n), i = qe(e, t, r, n, o), l = Jn(e, t, o), {
|
|
1958
1959
|
displayValue: d,
|
|
1959
1960
|
modelValue: m,
|
|
1960
1961
|
getRealValue: a
|
|
1961
|
-
} = n, u =
|
|
1962
|
+
} = n, u = Kn(e, t, i), {
|
|
1962
1963
|
format: c
|
|
1963
1964
|
} = r, {
|
|
1964
1965
|
isFocus: y
|
|
@@ -1977,7 +1978,7 @@ function Jn(e, t) {
|
|
|
1977
1978
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1978
1979
|
}, [u(), F.value && l()]);
|
|
1979
1980
|
}
|
|
1980
|
-
function
|
|
1981
|
+
function to(e, t, n, r) {
|
|
1981
1982
|
const o = f(), i = f(e.autocomplete), l = f(e.enableTitle), {
|
|
1982
1983
|
isPassword: d
|
|
1983
1984
|
} = n, m = f(e.minLength), a = f(e.maxLength), u = f(e.tabIndex), {
|
|
@@ -2023,7 +2024,7 @@ function eo(e, t, n, r) {
|
|
|
2023
2024
|
onMousedown: M
|
|
2024
2025
|
}, null);
|
|
2025
2026
|
}
|
|
2026
|
-
function
|
|
2027
|
+
function no(e, t) {
|
|
2027
2028
|
const n = P(() => e.useExtendInfo && !!e.extendInfo), r = Ve({
|
|
2028
2029
|
content: e.extendInfo
|
|
2029
2030
|
});
|
|
@@ -2091,12 +2092,12 @@ function Fe(e, t, n, r, o) {
|
|
|
2091
2092
|
class: i.value
|
|
2092
2093
|
}, [F.value && s(), S && S()]);
|
|
2093
2094
|
}
|
|
2094
|
-
const
|
|
2095
|
+
const oo = /* @__PURE__ */ G({
|
|
2095
2096
|
name: "FInputGroup",
|
|
2096
2097
|
props: ae,
|
|
2097
2098
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
2098
2099
|
setup(e, t) {
|
|
2099
|
-
const n = f(e.modelValue), r = f(e.modelValue), o =
|
|
2100
|
+
const n = f(e.modelValue), r = f(e.modelValue), o = Qn(e, t, n, r), {
|
|
2100
2101
|
inputGroupClass: i,
|
|
2101
2102
|
inputType: l,
|
|
2102
2103
|
inputGroupStyle: d
|
|
@@ -2105,7 +2106,7 @@ const no = /* @__PURE__ */ G({
|
|
|
2105
2106
|
} = m, u = ve(e, t, o), {
|
|
2106
2107
|
onMouseEnter: c,
|
|
2107
2108
|
onMouseLeave: y
|
|
2108
|
-
} = u, F = Te(e, t, l, m), s =
|
|
2109
|
+
} = u, F = Te(e, t, l, m), s = eo(e, t), p = to(e, t, F, o), g = Fe(e, t, m, u, F), w = no(e, t), D = P(() => e.type === "number");
|
|
2109
2110
|
$(() => [e.value], ([M]) => {
|
|
2110
2111
|
n.value = M, r.value = M;
|
|
2111
2112
|
}), $(() => [e.modelValue], ([M]) => {
|
|
@@ -2124,17 +2125,17 @@ const no = /* @__PURE__ */ G({
|
|
|
2124
2125
|
}
|
|
2125
2126
|
}), b = {}, h = {}, v = {}, C = {};
|
|
2126
2127
|
let pe = !1;
|
|
2127
|
-
function
|
|
2128
|
-
pe || (pe = !0, He.register(b, h, v, C), Ue.register(b, h, v, C), We.register(b, h, v, C), ze.register(b, h, v, C), Qe.register(b, h, v, C), _e.register(b, h, v, C), Ze.register(b, h, v, C), Xe.register(b, h, v, C), Ye.register(b, h, v, C), Ke.register(b, h, v, C), et.register(b, h, v, C), Je.register(b, h, v, C), tt.register(b, h, v, C), nt.register(b, h, v, C), ot.register(b, h, v, C), rt.register(b, h, v, C), at.register(b, h, v, C), it.register(b, h, v, C), st.register(b, h, v, C), lt.register(b, h, v, C), ct.register(b, h, v, C), ut.register(b, h, v, C), dt.register(b, h, v, C), pt.register(b, h, v, C), mt.register(b, h, v, C), ft.register(b, h, v, C), yt.register(b, h, v, C), gt.register(b, h, v, C), Ie.register(b, h, v, C), bt.register(b, h, v, C), ht.register(b, h, v, C), vt.register(b, h, v, C), Ct.register(b, h, v, C), Tt.register(b, h, v, C), Ft.register(b, h, v, C), wt.register(b, h, v, C), Bt.register(b, h, v, C), Pt.register(b, h, v, C), kt.register(b, h, v, C), St.register(b, h, v, C), Wt.register(b, h, v), xt.register(b, h, v, C), Mt.register(b, h, v, C), jt.register(b, h, v, C), At.register(b, h, v, C), Dt.register(b, h, v, C), Et.register(b, h, v, C), Vt.register(b, h, v, C), Ot.register(b, h, v, C), Lt.register(b, h, v, C), Nt.register(b, h, v, C), It.register(b, h, v, C), $t.register(b, h, v, C), Gt.register(b, h, v, C), Rt.register(b, h, v, C), qt.register(b, h, v, C), Ut.register(b, h, v, C), Ht.register(b, h, v, C));
|
|
2128
|
+
function ro() {
|
|
2129
|
+
pe || (pe = !0, He.register(b, h, v, C), Ue.register(b, h, v, C), We.register(b, h, v, C), ze.register(b, h, v, C), Qe.register(b, h, v, C), _e.register(b, h, v, C), Ze.register(b, h, v, C), Xe.register(b, h, v, C), Ye.register(b, h, v, C), Ke.register(b, h, v, C), et.register(b, h, v, C), Je.register(b, h, v, C), tt.register(b, h, v, C), nt.register(b, h, v, C), ot.register(b, h, v, C), rt.register(b, h, v, C), at.register(b, h, v, C), it.register(b, h, v, C), st.register(b, h, v, C), lt.register(b, h, v, C), ct.register(b, h, v, C), ut.register(b, h, v, C), dt.register(b, h, v, C), pt.register(b, h, v, C), mt.register(b, h, v, C), ft.register(b, h, v, C), yt.register(b, h, v, C), gt.register(b, h, v, C), Ie.register(b, h, v, C), bt.register(b, h, v, C), ht.register(b, h, v, C), vt.register(b, h, v, C), Ct.register(b, h, v, C), Tt.register(b, h, v, C), Ft.register(b, h, v, C), wt.register(b, h, v, C), Bt.register(b, h, v, C), Pt.register(b, h, v, C), kt.register(b, h, v, C), St.register(b, h, v, C), Wt.register(b, h, v), xt.register(b, h, v, C), Mt.register(b, h, v, C), jt.register(b, h, v, C), At.register(b, h, v, C), Dt.register(b, h, v, C), Et.register(b, h, v, C), Vt.register(b, h, v, C), Ot.register(b, h, v, C), Lt.register(b, h, v, C), Nt.register(b, h, v, C), It.register(b, h, v, C), $t.register(b, h, v, C), Gt.register(b, h, v, C), Rt.register(b, h, v, C), qt.register(b, h, v, C), Ut.register(b, h, v, C), Ht.register(b, h, v, C), zt.register(b, h, v, C));
|
|
2129
2130
|
}
|
|
2130
2131
|
function we() {
|
|
2131
|
-
|
|
2132
|
+
ro();
|
|
2132
2133
|
function e(o, i) {
|
|
2133
2134
|
const l = h[o];
|
|
2134
2135
|
return l ? l(i) : {};
|
|
2135
2136
|
}
|
|
2136
2137
|
function t(o) {
|
|
2137
|
-
return b[o] ||
|
|
2138
|
+
return b[o] || oo;
|
|
2138
2139
|
}
|
|
2139
2140
|
function n(o) {
|
|
2140
2141
|
switch (o) {
|
|
@@ -2253,8 +2254,8 @@ const ee = /* @__PURE__ */ G({
|
|
|
2253
2254
|
class: "farris-input-wrap"
|
|
2254
2255
|
}, [j.value()])])])]);
|
|
2255
2256
|
}
|
|
2256
|
-
}),
|
|
2257
|
-
function
|
|
2257
|
+
}), ao = {}, io = {};
|
|
2258
|
+
function so(e, t) {
|
|
2258
2259
|
e.schema;
|
|
2259
2260
|
const n = f(!0), r = f(!0);
|
|
2260
2261
|
function o(c) {
|
|
@@ -2352,7 +2353,7 @@ I(Be, "fieldControlTypeMapping", {
|
|
|
2352
2353
|
{ key: T.AdminOrganizationSelector.type, value: T.AdminOrganizationSelector.name }
|
|
2353
2354
|
]
|
|
2354
2355
|
});
|
|
2355
|
-
class
|
|
2356
|
+
class lo {
|
|
2356
2357
|
constructor(t, n) {
|
|
2357
2358
|
I(this, "componentId");
|
|
2358
2359
|
I(this, "viewModelId");
|
|
@@ -2513,29 +2514,8 @@ class so {
|
|
|
2513
2514
|
return r;
|
|
2514
2515
|
}
|
|
2515
2516
|
}
|
|
2516
|
-
getBindingFieldEditorOptions(t) {
|
|
2517
|
-
const n = this.formSchemaUtils.getFormMetadataBasicInfo();
|
|
2518
|
-
return {
|
|
2519
|
-
type: "field-selector",
|
|
2520
|
-
bindingType: { enable: !1 },
|
|
2521
|
-
editorParams: {
|
|
2522
|
-
propertyData: t,
|
|
2523
|
-
formBasicInfo: n
|
|
2524
|
-
},
|
|
2525
|
-
columns: [
|
|
2526
|
-
{ field: "name", title: "字段名称" },
|
|
2527
|
-
{ field: "bindingField", title: "绑定字段" },
|
|
2528
|
-
{ field: "fieldType", title: "字段类型" }
|
|
2529
|
-
],
|
|
2530
|
-
beforeOpenDialog: (r) => {
|
|
2531
|
-
const o = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
2532
|
-
r.instance.loadData(o);
|
|
2533
|
-
},
|
|
2534
|
-
textField: "bindingField"
|
|
2535
|
-
};
|
|
2536
|
-
}
|
|
2537
2517
|
}
|
|
2538
|
-
class
|
|
2518
|
+
class co extends lo {
|
|
2539
2519
|
constructor(t, n) {
|
|
2540
2520
|
super(t, n);
|
|
2541
2521
|
}
|
|
@@ -2570,10 +2550,14 @@ class lo extends so {
|
|
|
2570
2550
|
{ field: "bindingField", title: "绑定字段" },
|
|
2571
2551
|
{ field: "fieldType", title: "字段类型" }
|
|
2572
2552
|
],
|
|
2553
|
+
textField: "bindingField",
|
|
2573
2554
|
data: r
|
|
2574
2555
|
}
|
|
2575
2556
|
};
|
|
2576
2557
|
}
|
|
2558
|
+
getBindingOtions(t) {
|
|
2559
|
+
return this.getFieldSelectorOptions(t);
|
|
2560
|
+
}
|
|
2577
2561
|
getComponentConfig(t, n = {}, r = {}) {
|
|
2578
2562
|
const o = Object.assign({
|
|
2579
2563
|
description: "组件信息",
|
|
@@ -2605,12 +2589,12 @@ class lo extends so {
|
|
|
2605
2589
|
return { ...o, properties: { ...i } };
|
|
2606
2590
|
}
|
|
2607
2591
|
}
|
|
2608
|
-
class
|
|
2592
|
+
class uo extends co {
|
|
2609
2593
|
constructor(t, n) {
|
|
2610
2594
|
super(t, n);
|
|
2611
2595
|
}
|
|
2612
2596
|
}
|
|
2613
|
-
function
|
|
2597
|
+
function po(e, t) {
|
|
2614
2598
|
const {
|
|
2615
2599
|
canAccepts: n,
|
|
2616
2600
|
checkCanDeleteComponent: r,
|
|
@@ -2620,9 +2604,9 @@ function uo(e, t) {
|
|
|
2620
2604
|
resolveComponentContext: d,
|
|
2621
2605
|
triggerBelongedComponentToMoveWhenMoved: m,
|
|
2622
2606
|
triggerBelongedComponentToDeleteWhenDeleted: a
|
|
2623
|
-
} =
|
|
2607
|
+
} = so(e), u = e.schema;
|
|
2624
2608
|
function c(y) {
|
|
2625
|
-
return new
|
|
2609
|
+
return new uo(y, t).getPropertyConfig(u);
|
|
2626
2610
|
}
|
|
2627
2611
|
return {
|
|
2628
2612
|
canAccepts: n,
|
|
@@ -2636,12 +2620,12 @@ function uo(e, t) {
|
|
|
2636
2620
|
getPropsConfig: c
|
|
2637
2621
|
};
|
|
2638
2622
|
}
|
|
2639
|
-
const
|
|
2623
|
+
const mo = /* @__PURE__ */ G({
|
|
2640
2624
|
name: "FInputGroupDesign",
|
|
2641
2625
|
props: ae,
|
|
2642
2626
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
2643
2627
|
setup(e, t) {
|
|
2644
|
-
const n = f(e.modelValue), r = f(e.modelValue), o =
|
|
2628
|
+
const n = f(e.modelValue), r = f(e.modelValue), o = _n(e, t, n, r), {
|
|
2645
2629
|
inputGroupClass: i,
|
|
2646
2630
|
inputType: l,
|
|
2647
2631
|
inputGroupStyle: d
|
|
@@ -2650,7 +2634,7 @@ const po = /* @__PURE__ */ G({
|
|
|
2650
2634
|
} = m, u = ve(e, t, o), {
|
|
2651
2635
|
onMouseEnter: c,
|
|
2652
2636
|
onMouseLeave: y
|
|
2653
|
-
} = u, F = Te(e, t, l, m), s = f(), p = W("designer-host-service"), g = W("design-item-context"), w =
|
|
2637
|
+
} = u, F = Te(e, t, l, m), s = f(), p = W("designer-host-service"), g = W("design-item-context"), w = po(g, p), D = re(s, g, w);
|
|
2654
2638
|
U(() => {
|
|
2655
2639
|
s.value.componentInstance = D;
|
|
2656
2640
|
}), t.expose(D.value);
|
|
@@ -2670,17 +2654,17 @@ const po = /* @__PURE__ */ G({
|
|
|
2670
2654
|
}, null), a.value && j()]);
|
|
2671
2655
|
}
|
|
2672
2656
|
});
|
|
2673
|
-
function
|
|
2657
|
+
function fo() {
|
|
2674
2658
|
function e(n, r) {
|
|
2675
|
-
const o =
|
|
2659
|
+
const o = io[n];
|
|
2676
2660
|
return o ? o(r) : {};
|
|
2677
2661
|
}
|
|
2678
2662
|
function t(n) {
|
|
2679
|
-
return
|
|
2663
|
+
return ao[n] || mo;
|
|
2680
2664
|
}
|
|
2681
2665
|
return { resolveEditorProps: e, resolveEditorType: t };
|
|
2682
2666
|
}
|
|
2683
|
-
const
|
|
2667
|
+
const yo = /* @__PURE__ */ G({
|
|
2684
2668
|
name: "FDynamicFormGroupDesign",
|
|
2685
2669
|
props: Q,
|
|
2686
2670
|
emits: ["change", "update:modelValue"],
|
|
@@ -2690,7 +2674,7 @@ const fo = /* @__PURE__ */ G({
|
|
|
2690
2674
|
const u = f(), {
|
|
2691
2675
|
resolveEditorProps: c,
|
|
2692
2676
|
resolveEditorType: y
|
|
2693
|
-
} =
|
|
2677
|
+
} = fo(), F = P(() => ({
|
|
2694
2678
|
"form-group": !0,
|
|
2695
2679
|
"farris-form-group": !0,
|
|
2696
2680
|
"common-group": !0,
|
|
@@ -2726,7 +2710,7 @@ const fo = /* @__PURE__ */ G({
|
|
|
2726
2710
|
class: "farris-input-wrap"
|
|
2727
2711
|
}, [s.value()])])])]);
|
|
2728
2712
|
}
|
|
2729
|
-
}),
|
|
2713
|
+
}), go = /* @__PURE__ */ G({
|
|
2730
2714
|
name: "FFormGroupDesign",
|
|
2731
2715
|
props: Q,
|
|
2732
2716
|
emits: [],
|
|
@@ -2738,7 +2722,7 @@ const fo = /* @__PURE__ */ G({
|
|
|
2738
2722
|
let l = fe[e.editor.type];
|
|
2739
2723
|
return l && Object.keys(l).length === 0 && ((d = n.value) != null && d.editorRef) && ((a = (m = n.value) == null ? void 0 : m.editorRef) != null && a.getPropConfig) && (l = n.value.editorRef.getPropConfig(...i)), l;
|
|
2740
2724
|
};
|
|
2741
|
-
}), t.expose(o.value), () => A(
|
|
2725
|
+
}), t.expose(o.value), () => A(yo, _(e, {
|
|
2742
2726
|
ref: n
|
|
2743
2727
|
}), null);
|
|
2744
2728
|
}
|
|
@@ -2756,12 +2740,12 @@ const fo = /* @__PURE__ */ G({
|
|
|
2756
2740
|
* 作为内嵌编辑器被创建后默认选中文本
|
|
2757
2741
|
*/
|
|
2758
2742
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
2759
|
-
},
|
|
2743
|
+
}, bo = Z(
|
|
2760
2744
|
Se,
|
|
2761
2745
|
be,
|
|
2762
2746
|
oe,
|
|
2763
2747
|
void 0
|
|
2764
|
-
),
|
|
2748
|
+
), ho = /* @__PURE__ */ G({
|
|
2765
2749
|
name: "FDynamicFormInput",
|
|
2766
2750
|
props: Se,
|
|
2767
2751
|
emits: ["change", "update:modelValue"],
|
|
@@ -2787,23 +2771,23 @@ const fo = /* @__PURE__ */ G({
|
|
|
2787
2771
|
n.value = u, r.value = c, o.value = y;
|
|
2788
2772
|
}), () => a.value();
|
|
2789
2773
|
}
|
|
2790
|
-
}),
|
|
2774
|
+
}), Mr = {
|
|
2791
2775
|
install(e) {
|
|
2792
2776
|
e.component(K.name, K).component(ee.name, ee);
|
|
2793
2777
|
},
|
|
2794
2778
|
register(e, t, n, r) {
|
|
2795
|
-
e["form-group"] = ee, t["form-group"] = ue, e["response-form"] = K, t["response-form"] = ce, e["form-input"] =
|
|
2779
|
+
e["form-group"] = ee, t["form-group"] = ue, e["response-form"] = K, t["response-form"] = ce, e["form-input"] = ho, t["form-input"] = bo, r["form-group"] = { editorResolver: wn };
|
|
2796
2780
|
},
|
|
2797
2781
|
registerDesigner(e, t, n) {
|
|
2798
|
-
e["form-group"] =
|
|
2782
|
+
e["form-group"] = go, t["form-group"] = ue, e["response-form"] = On, t["response-form"] = ce;
|
|
2799
2783
|
}
|
|
2800
2784
|
};
|
|
2801
2785
|
export {
|
|
2802
2786
|
ee as FDynamicFormGroup,
|
|
2803
2787
|
K as FResponseForm,
|
|
2804
|
-
|
|
2788
|
+
Mr as default,
|
|
2805
2789
|
Q as dynamicFormGroupProps,
|
|
2806
|
-
|
|
2790
|
+
wn as editorResolver,
|
|
2807
2791
|
ue as formGroupPropsResolver,
|
|
2808
2792
|
ce as formPropsResolver,
|
|
2809
2793
|
ge as responseFormProps
|