@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
|
@@ -24,8 +24,8 @@ import dt from "@farris/ui-vue/components/dynamic-form";
|
|
|
24
24
|
import pt from "@farris/ui-vue/components/events-editor";
|
|
25
25
|
import mt from "@farris/ui-vue/components/filter-bar";
|
|
26
26
|
import ft from "@farris/ui-vue/components/field-selector";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
27
|
+
import gt from "@farris/ui-vue/components/image-cropper";
|
|
28
|
+
import yt from "@farris/ui-vue/components/input-group";
|
|
29
29
|
import vt from "@farris/ui-vue/components/layout";
|
|
30
30
|
import bt from "@farris/ui-vue/components/list-nav";
|
|
31
31
|
import ht from "@farris/ui-vue/components/list-view";
|
|
@@ -62,7 +62,8 @@ import Xt from "@farris/ui-vue/components/weather";
|
|
|
62
62
|
import Zt from "@farris/ui-vue/components/video";
|
|
63
63
|
import Jt from "@farris/ui-vue/components/textarea";
|
|
64
64
|
import Yt from "@farris/ui-vue/components/schema-selector";
|
|
65
|
-
|
|
65
|
+
import Kt from "@farris/ui-vue/components/tree-grid";
|
|
66
|
+
const en = {
|
|
66
67
|
width: { type: String, default: "300px" },
|
|
67
68
|
height: { type: Number, default: 10 },
|
|
68
69
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -91,7 +92,7 @@ const Kt = {
|
|
|
91
92
|
/** 属性变更后事件 */
|
|
92
93
|
propertyChanged: { type: Function }
|
|
93
94
|
};
|
|
94
|
-
function
|
|
95
|
+
function tn(e = {}) {
|
|
95
96
|
function t(o, u, l, a) {
|
|
96
97
|
if (typeof l == "number")
|
|
97
98
|
return a[o].length === l;
|
|
@@ -129,7 +130,7 @@ function en(e = {}) {
|
|
|
129
130
|
return l.push(...i), l;
|
|
130
131
|
}, []);
|
|
131
132
|
}
|
|
132
|
-
function
|
|
133
|
+
function g(o, u) {
|
|
133
134
|
if (r.has(o.operator)) {
|
|
134
135
|
const l = r.get(o.operator);
|
|
135
136
|
return l && l(o.target, o.param, o.value, u) || !1;
|
|
@@ -137,7 +138,7 @@ function en(e = {}) {
|
|
|
137
138
|
return !1;
|
|
138
139
|
}
|
|
139
140
|
function B(o, u) {
|
|
140
|
-
return m(o).reduce((i, p) => i &&
|
|
141
|
+
return m(o).reduce((i, p) => i && g(p, u), !0);
|
|
141
142
|
}
|
|
142
143
|
function d(o, u) {
|
|
143
144
|
const l = Object.keys(o), a = l.includes("allOf"), i = l.includes("anyOf"), p = a || i, O = (p ? o[p ? a ? "allOf" : "anyOf" : "allOf"] : [o]).map((L) => B(L, u));
|
|
@@ -145,7 +146,7 @@ function en(e = {}) {
|
|
|
145
146
|
}
|
|
146
147
|
return { parseValueSchema: d };
|
|
147
148
|
}
|
|
148
|
-
const ce = {},
|
|
149
|
+
const ce = {}, nn = {};
|
|
149
150
|
function de(e) {
|
|
150
151
|
const { properties: t, title: n } = e, r = Object.keys(t).reduce((s, m) => (s[m] = t[m].type === "object" && t[m].properties ? de(t[m]) : He(t[m].default), s), {});
|
|
151
152
|
return r.id = `${n}-${Date.now()}`, r;
|
|
@@ -154,24 +155,24 @@ function pe(e, t) {
|
|
|
154
155
|
const n = de(t);
|
|
155
156
|
return Object.keys(e).reduce((r, s) => (r[s] = e[s], r), n), n;
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
+
function on(e, t) {
|
|
158
159
|
return Object.keys(e).filter((r) => e[r] != null).reduce((r, s) => {
|
|
159
160
|
if (t.has(s)) {
|
|
160
161
|
const m = t.get(s);
|
|
161
162
|
if (typeof m == "string")
|
|
162
163
|
r[m] = e[s];
|
|
163
164
|
else {
|
|
164
|
-
const
|
|
165
|
-
Object.assign(r,
|
|
165
|
+
const g = m(s, e[s], e);
|
|
166
|
+
Object.assign(r, g);
|
|
166
167
|
}
|
|
167
168
|
} else
|
|
168
169
|
r[s] = e[s];
|
|
169
170
|
return r;
|
|
170
171
|
}, {});
|
|
171
172
|
}
|
|
172
|
-
function
|
|
173
|
+
function rn(e, t, n = /* @__PURE__ */ new Map()) {
|
|
173
174
|
const r = pe(e, t);
|
|
174
|
-
return
|
|
175
|
+
return on(r, n);
|
|
175
176
|
}
|
|
176
177
|
function me(e) {
|
|
177
178
|
const t = e.type;
|
|
@@ -181,19 +182,19 @@ function me(e) {
|
|
|
181
182
|
}
|
|
182
183
|
return e;
|
|
183
184
|
}
|
|
184
|
-
const
|
|
185
|
+
const an = {
|
|
185
186
|
convertTo: (e, t, n, r) => {
|
|
186
187
|
e.appearance && (e.appearance[t] = n);
|
|
187
188
|
},
|
|
188
189
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
189
|
-
}, an = {
|
|
190
|
-
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
191
190
|
}, ln = {
|
|
191
|
+
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
192
|
+
}, sn = {
|
|
192
193
|
convertTo: (e, t, n, r) => {
|
|
193
194
|
e.editor && (e.editor[t] = n);
|
|
194
195
|
},
|
|
195
196
|
convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
|
|
196
|
-
},
|
|
197
|
+
}, un = {
|
|
197
198
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
198
199
|
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
199
200
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
@@ -304,32 +305,32 @@ const rn = {
|
|
|
304
305
|
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
305
306
|
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
306
307
|
/** 审批类 end */
|
|
307
|
-
},
|
|
308
|
+
}, cn = {
|
|
308
309
|
convertFrom: (e, t, n) => {
|
|
309
310
|
var s;
|
|
310
311
|
const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
311
|
-
return ((s =
|
|
312
|
+
return ((s = un[r]) == null ? void 0 : s.name) || r;
|
|
312
313
|
}
|
|
313
|
-
},
|
|
314
|
+
}, dn = {
|
|
314
315
|
convertTo: (e, t, n, r) => {
|
|
315
316
|
e[t] = e[t];
|
|
316
317
|
},
|
|
317
318
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
318
|
-
},
|
|
319
|
-
convertFrom: (e, t) => e.binding ? e.binding.
|
|
319
|
+
}, pn = {
|
|
320
|
+
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
320
321
|
convertTo: (e, t, n) => {
|
|
321
322
|
if (n && n.length > 0) {
|
|
322
323
|
const r = n[0];
|
|
323
|
-
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = r.
|
|
324
|
+
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = r.bindingField, e.binding.field = r.id, e.binding.fullPath = r.path, e.path = r.bindingPath;
|
|
324
325
|
}
|
|
325
326
|
}
|
|
326
|
-
},
|
|
327
|
+
}, mn = {
|
|
327
328
|
convertTo: (e, t, n, r) => {
|
|
328
329
|
typeof e.pagination == "boolean" && (e.pagination = {}), e.pagination && (e.pagination[t] = n);
|
|
329
330
|
},
|
|
330
331
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
331
332
|
};
|
|
332
|
-
class
|
|
333
|
+
class fn {
|
|
333
334
|
constructor() {
|
|
334
335
|
/** 控件标题 */
|
|
335
336
|
V(this, "label", "");
|
|
@@ -359,7 +360,7 @@ class mn {
|
|
|
359
360
|
V(this, "fieldSetId", "");
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
+
function gn() {
|
|
363
364
|
let e, t;
|
|
364
365
|
const n = /* @__PURE__ */ new Map();
|
|
365
366
|
let r = [];
|
|
@@ -380,11 +381,11 @@ function fn() {
|
|
|
380
381
|
return;
|
|
381
382
|
}
|
|
382
383
|
a && (u += 1, a = !1);
|
|
383
|
-
const p = i.appearance && i.appearance.class, f = new
|
|
384
|
+
const p = i.appearance && i.appearance.class, f = new fn();
|
|
384
385
|
p ? s(p, f) : f.isSupportedClass = !1, f.label = i.label || i.id, f.id = i.id, f.group = u, l && (f.fieldSetId = d.id), t === i.id && (e = u), n.set(i.id, i), o.push(f);
|
|
385
386
|
});
|
|
386
387
|
}
|
|
387
|
-
function
|
|
388
|
+
function g(d, o, u, l) {
|
|
388
389
|
l = l || d.id;
|
|
389
390
|
const a = u.closest(l, "content-container");
|
|
390
391
|
if (!a)
|
|
@@ -424,32 +425,32 @@ function fn() {
|
|
|
424
425
|
}), i.contents = p, i.id;
|
|
425
426
|
}
|
|
426
427
|
return {
|
|
427
|
-
convertFrom:
|
|
428
|
+
convertFrom: g,
|
|
428
429
|
convertTo: B
|
|
429
430
|
};
|
|
430
431
|
}
|
|
431
|
-
const ie =
|
|
432
|
+
const ie = gn(), yn = {
|
|
432
433
|
convertTo: (e, t, n, r, s) => ie.convertTo(e, t, n, r, s),
|
|
433
434
|
convertFrom: (e, t, n, r) => ie.convertFrom(e, t, n, r)
|
|
434
|
-
}, gn = {
|
|
435
|
-
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
436
435
|
}, vn = {
|
|
436
|
+
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
437
|
+
}, bn = {
|
|
437
438
|
convertFrom: (e, t) => e[t] || "",
|
|
438
439
|
convertTo: (e, t, n) => {
|
|
439
440
|
e[t] = n;
|
|
440
441
|
}
|
|
441
442
|
}, ne = {}, te = /* @__PURE__ */ new Map([
|
|
442
|
-
["/converter/appearance.converter",
|
|
443
|
-
["/converter/buttons.converter",
|
|
444
|
-
["/converter/property-editor.converter",
|
|
443
|
+
["/converter/appearance.converter", an],
|
|
444
|
+
["/converter/buttons.converter", ln],
|
|
445
|
+
["/converter/property-editor.converter", sn],
|
|
445
446
|
["/converter/response-form-layout.converter", yn],
|
|
446
|
-
["/converter/items-count.converter",
|
|
447
|
-
["/converter/type.converter",
|
|
448
|
-
["/converter/change-editor.converter",
|
|
449
|
-
["/converter/form-group-label.converter",
|
|
450
|
-
["/converter/field-selector.converter",
|
|
451
|
-
["/converter/pagination.converter",
|
|
452
|
-
]),
|
|
447
|
+
["/converter/items-count.converter", vn],
|
|
448
|
+
["/converter/type.converter", cn],
|
|
449
|
+
["/converter/change-editor.converter", dn],
|
|
450
|
+
["/converter/form-group-label.converter", bn],
|
|
451
|
+
["/converter/field-selector.converter", pn],
|
|
452
|
+
["/converter/pagination.converter", mn]
|
|
453
|
+
]), hn = {}, Cn = /* @__PURE__ */ new Map([
|
|
453
454
|
["string", { type: "input-group", enableClear: !1 }],
|
|
454
455
|
["boolean", {
|
|
455
456
|
type: "combo-list",
|
|
@@ -471,24 +472,24 @@ const ie = fn(), yn = {
|
|
|
471
472
|
["array", { type: "button-edit" }],
|
|
472
473
|
["number", { type: "number-spinner" }],
|
|
473
474
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
474
|
-
]),
|
|
475
|
+
]), Fn = tn();
|
|
475
476
|
function fe(e, t) {
|
|
476
|
-
return () =>
|
|
477
|
+
return () => Fn.parseValueSchema(e, t);
|
|
477
478
|
}
|
|
478
|
-
function
|
|
479
|
+
function Sn(e, t, n) {
|
|
479
480
|
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : fe(t.visible, n) : () => !0;
|
|
480
481
|
}
|
|
481
|
-
function
|
|
482
|
+
function Tn(e, t, n) {
|
|
482
483
|
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : fe(t.readonly, n) : () => !1;
|
|
483
484
|
}
|
|
484
|
-
function
|
|
485
|
+
function wn(e, t) {
|
|
485
486
|
const n = e.$converter || t;
|
|
486
487
|
return typeof n == "string" && n && te.has(n) ? te.get(n) || null : n || null;
|
|
487
488
|
}
|
|
488
|
-
function oe(e, t, n, r, s, m = "",
|
|
489
|
+
function oe(e, t, n, r, s, m = "", g = "") {
|
|
489
490
|
return Object.keys(e).map((d) => {
|
|
490
|
-
const o = C(1), u = d, l = e[d], a = Object.keys(l), i = l.title, p = l.type, f =
|
|
491
|
-
let k =
|
|
491
|
+
const o = C(1), u = d, l = e[d], a = Object.keys(l), i = l.title, p = l.type, f = Cn.get(p) || { type: "input-group", enableClear: !1 }, F = l.editor ? Object.assign({}, f, l.editor) : f, O = Sn(a, l, t), A = Tn(a, l, t), L = l.type === "cascade" ? oe(l.properties, t, n, r, s, m, g) : [], I = !0;
|
|
492
|
+
let k = wn(l, g);
|
|
492
493
|
const M = E({
|
|
493
494
|
get() {
|
|
494
495
|
if (o.value) {
|
|
@@ -506,12 +507,12 @@ function oe(e, t, n, r, s, m = "", y = "") {
|
|
|
506
507
|
return t[u] = $, $;
|
|
507
508
|
});
|
|
508
509
|
}
|
|
509
|
-
function
|
|
510
|
-
const m = t.$ref.schema,
|
|
510
|
+
function Bn(e, t, n, r, s = "") {
|
|
511
|
+
const m = t.$ref.schema, g = t.$ref.converter, B = n[m], d = B.type, o = me(B), u = {}, l = ne[d];
|
|
511
512
|
if (l && l.categories) {
|
|
512
513
|
const a = l.categories[e], i = a == null ? void 0 : a.title;
|
|
513
|
-
|
|
514
|
-
a.properties[F].$converter =
|
|
514
|
+
g && Object.keys(a.properties).forEach((F) => {
|
|
515
|
+
a.properties[F].$converter = g;
|
|
515
516
|
});
|
|
516
517
|
const p = (a == null ? void 0 : a.properties) || {}, f = oe(p, u, o, B, r, s);
|
|
517
518
|
return { categoryId: e, categoryName: i, properties: f };
|
|
@@ -521,7 +522,7 @@ function wn(e, t, n, r, s = "") {
|
|
|
521
522
|
function ee(e, t, n, r, s) {
|
|
522
523
|
var o;
|
|
523
524
|
let m = e.type;
|
|
524
|
-
const
|
|
525
|
+
const g = me(e), B = {};
|
|
525
526
|
((o = e.editor) == null ? void 0 : o.type) === "lookup" && (m = "lookup"), m === "lookup" && n.elementRef.editorRef && (n = n.elementRef.editorRef);
|
|
526
527
|
let d = s || ne[m];
|
|
527
528
|
if (Object.keys(d).length === 0 && n && n.getPropConfig && (d = n.getPropConfig(r)), d && d.categories) {
|
|
@@ -529,16 +530,16 @@ function ee(e, t, n, r, s) {
|
|
|
529
530
|
return Object.keys(d.categories).map((l) => {
|
|
530
531
|
const a = d.categories[l];
|
|
531
532
|
if (a.$ref) {
|
|
532
|
-
u.push(
|
|
533
|
+
u.push(Bn(l, a, e, t, r));
|
|
533
534
|
return;
|
|
534
535
|
}
|
|
535
|
-
const i = a == null ? void 0 : a.title, p = a == null ? void 0 : a.tabId, f = a == null ? void 0 : a.tabName, F = a == null ? void 0 : a.hide, O = a == null ? void 0 : a.hideTitle, A = oe(a.properties || {}, B,
|
|
536
|
+
const i = a == null ? void 0 : a.title, p = a == null ? void 0 : a.tabId, f = a == null ? void 0 : a.tabName, F = a == null ? void 0 : a.hide, O = a == null ? void 0 : a.hideTitle, A = oe(a.properties || {}, B, g, e, t, r, a.$converter), L = a.setPropertyRelates;
|
|
536
537
|
u.push({ categoryId: l, categoryName: i, tabId: p, tabName: f, hide: F, properties: A, hideTitle: O, setPropertyRelates: L });
|
|
537
538
|
}), u;
|
|
538
539
|
}
|
|
539
540
|
return [];
|
|
540
541
|
}
|
|
541
|
-
const
|
|
542
|
+
const Pn = {
|
|
542
543
|
/** 某一分类下的属性配置 */
|
|
543
544
|
// as PropType<ElementPropertyConfig>
|
|
544
545
|
category: { type: Object, default: {} },
|
|
@@ -547,22 +548,22 @@ const Bn = {
|
|
|
547
548
|
propertyData: { type: Object, default: {} },
|
|
548
549
|
valueChanged: { type: Function },
|
|
549
550
|
triggerRefreshPanel: { type: Function }
|
|
550
|
-
},
|
|
551
|
+
}, xn = {
|
|
551
552
|
elementConfig: { type: Object, default: {} },
|
|
552
553
|
category: { type: Object, default: {} }
|
|
553
554
|
};
|
|
554
|
-
function
|
|
555
|
-
return ce[t.title] = t,
|
|
556
|
-
const B =
|
|
555
|
+
function ge(e, t, n = /* @__PURE__ */ new Map(), r = (g, B, d) => B, s = {}, m = (g) => g) {
|
|
556
|
+
return ce[t.title] = t, nn[t.title] = r, ne[t.title] = s, hn[t.title] = m, (g = {}) => {
|
|
557
|
+
const B = rn(g, t, n), d = Object.keys(e).reduce((o, u) => (o[u] = e[u].default, o), {});
|
|
557
558
|
return Object.assign(d, B);
|
|
558
559
|
};
|
|
559
560
|
}
|
|
560
|
-
function
|
|
561
|
+
function ye(e, t) {
|
|
561
562
|
return { customClass: t.class, customStyle: t.style };
|
|
562
563
|
}
|
|
563
|
-
const
|
|
564
|
-
["appearance",
|
|
565
|
-
]),
|
|
564
|
+
const In = /* @__PURE__ */ new Map([
|
|
565
|
+
["appearance", ye]
|
|
566
|
+
]), En = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-design.gitee.io/form-group.schema.json", Ln = "form-group", Mn = "A Farris Input Component", Dn = "object", On = {
|
|
566
567
|
id: {
|
|
567
568
|
description: "The unique identifier for a form group",
|
|
568
569
|
type: "string"
|
|
@@ -603,17 +604,17 @@ const xn = /* @__PURE__ */ new Map([
|
|
|
603
604
|
description: "",
|
|
604
605
|
type: "number"
|
|
605
606
|
}
|
|
606
|
-
},
|
|
607
|
+
}, Nn = [
|
|
607
608
|
"id",
|
|
608
609
|
"type"
|
|
609
|
-
],
|
|
610
|
-
$schema:
|
|
611
|
-
$id:
|
|
612
|
-
title:
|
|
613
|
-
description:
|
|
614
|
-
type:
|
|
615
|
-
properties:
|
|
616
|
-
required:
|
|
610
|
+
], An = {
|
|
611
|
+
$schema: En,
|
|
612
|
+
$id: kn,
|
|
613
|
+
title: Ln,
|
|
614
|
+
description: Mn,
|
|
615
|
+
type: Dn,
|
|
616
|
+
properties: On,
|
|
617
|
+
required: Nn
|
|
617
618
|
}, ve = {
|
|
618
619
|
id: { type: String, default: "" },
|
|
619
620
|
customClass: { type: String, default: "" },
|
|
@@ -628,27 +629,27 @@ const xn = /* @__PURE__ */ new Map([
|
|
|
628
629
|
showLabel: { type: Boolean, default: !0 },
|
|
629
630
|
type: { type: String, default: "input-group" }
|
|
630
631
|
};
|
|
631
|
-
|
|
632
|
+
ge(
|
|
632
633
|
ve,
|
|
633
|
-
|
|
634
|
-
|
|
634
|
+
An,
|
|
635
|
+
In,
|
|
635
636
|
void 0
|
|
636
637
|
);
|
|
637
|
-
const
|
|
638
|
+
const Vn = {
|
|
638
639
|
id: { type: String },
|
|
639
640
|
required: { type: Boolean, default: !1 },
|
|
640
641
|
text: { type: String, default: "" },
|
|
641
642
|
title: { type: String }
|
|
642
|
-
},
|
|
643
|
+
}, jn = /* @__PURE__ */ z({
|
|
643
644
|
name: "FDynamicFormLabel",
|
|
644
|
-
props:
|
|
645
|
+
props: Vn,
|
|
645
646
|
emits: [],
|
|
646
647
|
setup(e, t) {
|
|
647
648
|
const n = C(e.title || e.text), r = C(e.required), s = C(e.text);
|
|
648
649
|
return R(() => e.text, () => {
|
|
649
650
|
s.value = e.text;
|
|
650
|
-
}), R(() => e.required, (m,
|
|
651
|
-
m !==
|
|
651
|
+
}), R(() => e.required, (m, g) => {
|
|
652
|
+
m !== g && (r.value = m);
|
|
652
653
|
}), () => c("label", {
|
|
653
654
|
class: "col-form-label",
|
|
654
655
|
title: n.value
|
|
@@ -658,13 +659,13 @@ const An = {
|
|
|
658
659
|
class: "farris-label-text"
|
|
659
660
|
}, [s.value])]);
|
|
660
661
|
}
|
|
661
|
-
}),
|
|
662
|
-
["appearance",
|
|
662
|
+
}), Rn = /* @__PURE__ */ new Map([
|
|
663
|
+
["appearance", ye]
|
|
663
664
|
]);
|
|
664
|
-
function
|
|
665
|
+
function $n(e, t, n) {
|
|
665
666
|
return t;
|
|
666
667
|
}
|
|
667
|
-
const
|
|
668
|
+
const Gn = "https://json-schema.org/draft/2020-12/schema", Wn = "https://farris-design.gitee.io/input-group.schema.json", qn = "input-group", Hn = "A Farris Input Component", zn = "object", Un = {
|
|
668
669
|
id: {
|
|
669
670
|
description: "The unique identifier for a Input Group",
|
|
670
671
|
type: "string"
|
|
@@ -866,17 +867,17 @@ const $n = "https://json-schema.org/draft/2020-12/schema", Gn = "https://farris-
|
|
|
866
867
|
type: "string",
|
|
867
868
|
default: ""
|
|
868
869
|
}
|
|
869
|
-
},
|
|
870
|
+
}, Qn = [
|
|
870
871
|
"id",
|
|
871
872
|
"type"
|
|
872
|
-
],
|
|
873
|
-
$schema:
|
|
874
|
-
$id:
|
|
875
|
-
title:
|
|
876
|
-
description:
|
|
877
|
-
type:
|
|
878
|
-
properties:
|
|
879
|
-
required:
|
|
873
|
+
], _n = {
|
|
874
|
+
$schema: Gn,
|
|
875
|
+
$id: Wn,
|
|
876
|
+
title: qn,
|
|
877
|
+
description: Hn,
|
|
878
|
+
type: zn,
|
|
879
|
+
properties: Un,
|
|
880
|
+
required: Qn
|
|
880
881
|
}, be = {
|
|
881
882
|
/** 是否自动完成 */
|
|
882
883
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -944,9 +945,9 @@ const $n = "https://json-schema.org/draft/2020-12/schema", Gn = "https://farris-
|
|
|
944
945
|
*/
|
|
945
946
|
updateOn: { type: String, default: "blur" }
|
|
946
947
|
};
|
|
947
|
-
|
|
948
|
-
function
|
|
949
|
-
const s = C(e.disabled), m = C(!1),
|
|
948
|
+
ge(be, _n, Rn, $n);
|
|
949
|
+
function Xn(e, t, n, r) {
|
|
950
|
+
const s = C(e.disabled), m = C(!1), g = C("text"), B = C(e.showBorder), d = C(e.textAlign), o = C(e.updateOn), u = E(() => e.editable || !e.readonly), l = E(() => e.editable && !e.disabled && !e.readonly), a = E(() => !e.disabled && m.value), i = E(() => n.value === "" || n.value === null || n.value === void 0), p = E(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), f = E(() => e.readonly || !e.editable), F = E(() => e.enableTitle ? n.value : ""), O = E(() => ({
|
|
950
951
|
"form-control": !0,
|
|
951
952
|
"f-utils-fill": !0,
|
|
952
953
|
"text-left": d.value === "left",
|
|
@@ -1010,7 +1011,7 @@ function _n(e, t, n, r) {
|
|
|
1010
1011
|
editable: l,
|
|
1011
1012
|
hasFocused: a,
|
|
1012
1013
|
inputGroupClass: A,
|
|
1013
|
-
inputType:
|
|
1014
|
+
inputType: g,
|
|
1014
1015
|
isEmpty: i,
|
|
1015
1016
|
modelValue: n,
|
|
1016
1017
|
readonly: f,
|
|
@@ -1028,13 +1029,13 @@ function _n(e, t, n, r) {
|
|
|
1028
1029
|
inputGroupStyle: L
|
|
1029
1030
|
};
|
|
1030
1031
|
}
|
|
1031
|
-
function
|
|
1032
|
-
const r = C(!1), s = E(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: m, displayText:
|
|
1032
|
+
function Zn(e, t, n) {
|
|
1033
|
+
const r = C(!1), s = E(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: m, displayText: g, hasFocused: B, isEmpty: d } = n;
|
|
1033
1034
|
function o(f) {
|
|
1034
1035
|
r.value = f;
|
|
1035
1036
|
}
|
|
1036
|
-
R(
|
|
1037
|
-
B != null && B.value ? o(!!(
|
|
1037
|
+
R(g, () => {
|
|
1038
|
+
B != null && B.value ? o(!!(g != null && g.value)) : o(!1);
|
|
1038
1039
|
});
|
|
1039
1040
|
const u = E(() => ({
|
|
1040
1041
|
"input-group-text": !0,
|
|
@@ -1054,8 +1055,8 @@ function Xn(e, t, n) {
|
|
|
1054
1055
|
}
|
|
1055
1056
|
return { clearButtonClass: u, clearButtonStyle: l, hasShownClearButton: r, onClearValue: a, onMouseEnter: i, onMouseLeave: p, shouldShowClearButton: s };
|
|
1056
1057
|
}
|
|
1057
|
-
const
|
|
1058
|
-
function
|
|
1058
|
+
const Jn = ["moz", "ms", "webkit"];
|
|
1059
|
+
function Yn() {
|
|
1059
1060
|
let e = 0;
|
|
1060
1061
|
return (t) => {
|
|
1061
1062
|
const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - e)), s = setTimeout(() => {
|
|
@@ -1064,40 +1065,40 @@ function Jn() {
|
|
|
1064
1065
|
return e = n + r, s;
|
|
1065
1066
|
};
|
|
1066
1067
|
}
|
|
1067
|
-
function
|
|
1068
|
+
function Kn() {
|
|
1068
1069
|
if (typeof window > "u")
|
|
1069
1070
|
return () => 0;
|
|
1070
1071
|
if (window.requestAnimationFrame)
|
|
1071
1072
|
return window.requestAnimationFrame.bind(window);
|
|
1072
|
-
const e =
|
|
1073
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
1073
|
+
const e = Jn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
1074
|
+
return e ? window[`${e}RequestAnimationFrame`] : Yn();
|
|
1074
1075
|
}
|
|
1075
|
-
|
|
1076
|
-
function
|
|
1076
|
+
Kn();
|
|
1077
|
+
function eo(e, t) {
|
|
1077
1078
|
const n = C(e.groupText), r = E(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), s = E(() => e.enableClear || !!e.groupText);
|
|
1078
1079
|
return { appendedButtonClass: E(() => ({
|
|
1079
1080
|
"input-group-append": !0,
|
|
1080
1081
|
"append-force-show": r.value
|
|
1081
1082
|
})), appendedContent: n, shouldShowAppendedButton: s };
|
|
1082
1083
|
}
|
|
1083
|
-
function
|
|
1084
|
-
const { appendedContent: s } = r, m = C(e.enableViewPassword),
|
|
1084
|
+
function to(e, t, n, r) {
|
|
1085
|
+
const { appendedContent: s } = r, m = C(e.enableViewPassword), g = E(() => e.type === "password"), B = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', d = '<span class="f-icon f-icon-eye"></span>', o = C(!1);
|
|
1085
1086
|
R(() => [e.readonly, e.disabled], ([a, i]) => {
|
|
1086
|
-
|
|
1087
|
+
g.value && (n.value = a || i ? "password" : n.value, s.value = a || i ? d : s.value);
|
|
1087
1088
|
});
|
|
1088
1089
|
function u() {
|
|
1089
1090
|
return o.value = !o.value, n.value = o.value ? "text" : "password", s.value = o.value ? B : d, !1;
|
|
1090
1091
|
}
|
|
1091
1092
|
function l() {
|
|
1092
|
-
n.value =
|
|
1093
|
+
n.value = g.value ? "password" : "text", s.value = g.value ? m.value ? d : "" : s.value;
|
|
1093
1094
|
}
|
|
1094
|
-
return l(), { isPassword:
|
|
1095
|
+
return l(), { isPassword: g, onClickAppendedButton: u };
|
|
1095
1096
|
}
|
|
1096
|
-
function
|
|
1097
|
+
function no(e, t, n) {
|
|
1097
1098
|
const r = C(), {
|
|
1098
1099
|
onBlurTextBox: s,
|
|
1099
1100
|
onFocusTextBox: m,
|
|
1100
|
-
onInput:
|
|
1101
|
+
onInput: g,
|
|
1101
1102
|
onKeyDown: B,
|
|
1102
1103
|
textBoxValue: d
|
|
1103
1104
|
} = n, o = E(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), u = E(() => ({
|
|
@@ -1129,16 +1130,16 @@ function to(e, t, n) {
|
|
|
1129
1130
|
onBlur: s,
|
|
1130
1131
|
onChange: a,
|
|
1131
1132
|
onFocus: p,
|
|
1132
|
-
onInput:
|
|
1133
|
+
onInput: g,
|
|
1133
1134
|
onKeydown: B
|
|
1134
1135
|
}, null);
|
|
1135
1136
|
}
|
|
1136
|
-
function
|
|
1137
|
+
function oo(e, t, n) {
|
|
1137
1138
|
const {
|
|
1138
1139
|
canDownward: r,
|
|
1139
1140
|
canUpward: s,
|
|
1140
1141
|
onClickDownButton: m,
|
|
1141
|
-
onClickUpButton:
|
|
1142
|
+
onClickUpButton: g
|
|
1142
1143
|
} = n, B = E(() => ({
|
|
1143
1144
|
"input-group-append": !0,
|
|
1144
1145
|
"btn-group": !0,
|
|
@@ -1160,7 +1161,7 @@ function no(e, t, n) {
|
|
|
1160
1161
|
title: "upButton",
|
|
1161
1162
|
class: d.value,
|
|
1162
1163
|
style: o.value,
|
|
1163
|
-
onClick:
|
|
1164
|
+
onClick: g,
|
|
1164
1165
|
disabled: !s()
|
|
1165
1166
|
}, [c("span", {
|
|
1166
1167
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
@@ -1174,12 +1175,12 @@ function no(e, t, n) {
|
|
|
1174
1175
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1175
1176
|
}, null)])]);
|
|
1176
1177
|
}
|
|
1177
|
-
function
|
|
1178
|
-
const n = Ue(e, t), r = Qe(e, t, n), s = _e(e, t, r, n), m = Xe(e, t, r, n, s),
|
|
1178
|
+
function ro(e, t) {
|
|
1179
|
+
const n = Ue(e, t), r = Qe(e, t, n), s = _e(e, t, r, n), m = Xe(e, t, r, n, s), g = oo(e, t, s), {
|
|
1179
1180
|
displayValue: B,
|
|
1180
1181
|
modelValue: d,
|
|
1181
1182
|
getRealValue: o
|
|
1182
|
-
} = n, u =
|
|
1183
|
+
} = n, u = no(e, t, m), {
|
|
1183
1184
|
format: l
|
|
1184
1185
|
} = r, {
|
|
1185
1186
|
isFocus: a
|
|
@@ -1196,10 +1197,10 @@ function oo(e, t) {
|
|
|
1196
1197
|
B.value = l(d.value);
|
|
1197
1198
|
}), () => c("div", {
|
|
1198
1199
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1199
|
-
}, [u(), i.value &&
|
|
1200
|
+
}, [u(), i.value && g()]);
|
|
1200
1201
|
}
|
|
1201
|
-
function
|
|
1202
|
-
const s = C(), m = C(e.autocomplete),
|
|
1202
|
+
function ao(e, t, n, r) {
|
|
1203
|
+
const s = C(), m = C(e.autocomplete), g = C(e.enableTitle), {
|
|
1203
1204
|
isPassword: B
|
|
1204
1205
|
} = n, d = C(e.minLength), o = C(e.maxLength), u = C(e.tabIndex), {
|
|
1205
1206
|
disabled: l,
|
|
@@ -1231,7 +1232,7 @@ function ro(e, t, n, r) {
|
|
|
1231
1232
|
placeholder: P.value,
|
|
1232
1233
|
readonly: M == null ? void 0 : M.value,
|
|
1233
1234
|
tabindex: u.value,
|
|
1234
|
-
title:
|
|
1235
|
+
title: g.value && !B.value ? N.value : "",
|
|
1235
1236
|
type: i.value,
|
|
1236
1237
|
value: a == null ? void 0 : a.value,
|
|
1237
1238
|
onBlur: p,
|
|
@@ -1244,7 +1245,7 @@ function ro(e, t, n, r) {
|
|
|
1244
1245
|
onMousedown: I
|
|
1245
1246
|
}, null);
|
|
1246
1247
|
}
|
|
1247
|
-
function
|
|
1248
|
+
function io(e, t) {
|
|
1248
1249
|
const n = E(() => e.useExtendInfo && !!e.extendInfo), r = Ve({
|
|
1249
1250
|
content: e.extendInfo
|
|
1250
1251
|
});
|
|
@@ -1260,11 +1261,11 @@ function ao(e, t) {
|
|
|
1260
1261
|
class: "tips-arrow"
|
|
1261
1262
|
}, null)]), [[Re("tooltip"), r]]);
|
|
1262
1263
|
}
|
|
1263
|
-
function
|
|
1264
|
+
function lo(e, t, n, r, s) {
|
|
1264
1265
|
const {
|
|
1265
1266
|
appendedButtonClass: m,
|
|
1266
|
-
appendedContent:
|
|
1267
|
-
} = n, B = E(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), d = E(() =>
|
|
1267
|
+
appendedContent: g
|
|
1268
|
+
} = n, B = E(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), d = E(() => g.value && !t.slots.groupTextTemplate), o = E(() => !!t.slots.groupTextTemplate), {
|
|
1268
1269
|
clearButtonClass: u,
|
|
1269
1270
|
clearButtonStyle: l,
|
|
1270
1271
|
onClearValue: a,
|
|
@@ -1297,7 +1298,7 @@ function io(e, t, n, r, s) {
|
|
|
1297
1298
|
class: "input-group-text",
|
|
1298
1299
|
onMouseenter: (P) => f(P),
|
|
1299
1300
|
onMouseleave: (P) => F(P),
|
|
1300
|
-
innerHTML:
|
|
1301
|
+
innerHTML: g.value,
|
|
1301
1302
|
onClick: (P) => A(P)
|
|
1302
1303
|
}, null);
|
|
1303
1304
|
}
|
|
@@ -1312,21 +1313,21 @@ function io(e, t, n, r, s) {
|
|
|
1312
1313
|
class: m.value
|
|
1313
1314
|
}, [i.value && p(), M && M()]);
|
|
1314
1315
|
}
|
|
1315
|
-
const
|
|
1316
|
+
const so = /* @__PURE__ */ z({
|
|
1316
1317
|
name: "FInputGroup",
|
|
1317
1318
|
props: be,
|
|
1318
1319
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
1319
1320
|
setup(e, t) {
|
|
1320
|
-
const n = C(e.modelValue), r = C(e.modelValue), s =
|
|
1321
|
+
const n = C(e.modelValue), r = C(e.modelValue), s = Xn(e, t, n, r), {
|
|
1321
1322
|
inputGroupClass: m,
|
|
1322
|
-
inputType:
|
|
1323
|
+
inputType: g,
|
|
1323
1324
|
inputGroupStyle: B
|
|
1324
|
-
} = s, d =
|
|
1325
|
+
} = s, d = eo(e), {
|
|
1325
1326
|
shouldShowAppendedButton: o
|
|
1326
|
-
} = d, u =
|
|
1327
|
+
} = d, u = Zn(e, t, s), {
|
|
1327
1328
|
onMouseEnter: l,
|
|
1328
1329
|
onMouseLeave: a
|
|
1329
|
-
} = u, i =
|
|
1330
|
+
} = u, i = to(e, t, g, d), p = ro(e, t), f = ao(e, t, i, s), F = lo(e, t, d, u, i), O = io(e, t), A = E(() => e.type === "number");
|
|
1330
1331
|
R(() => [e.value], ([I]) => {
|
|
1331
1332
|
n.value = I, r.value = I;
|
|
1332
1333
|
}), R(() => [e.modelValue], ([I]) => {
|
|
@@ -1343,19 +1344,19 @@ const lo = /* @__PURE__ */ z({
|
|
|
1343
1344
|
}, [A.value ? p() : c(Z, null, [O(), f(), o.value && F()])])]);
|
|
1344
1345
|
return () => L();
|
|
1345
1346
|
}
|
|
1346
|
-
}),
|
|
1347
|
+
}), y = {}, v = {}, b = {}, h = {};
|
|
1347
1348
|
let le = !1;
|
|
1348
|
-
function so() {
|
|
1349
|
-
le || (le = !0, Je.register(g, v, b, h), Ze.register(g, v, b, h), Ye.register(g, v, b, h), Ke.register(g, v, b, h), et.register(g, v, b, h), tt.register(g, v, b, h), nt.register(g, v, b, h), ot.register(g, v, b, h), rt.register(g, v, b, h), at.register(g, v, b, h), lt.register(g, v, b, h), it.register(g, v, b, h), st.register(g, v, b, h), ut.register(g, v, b, h), ct.register(g, v, b, h), dt.register(g, v, b, h), pt.register(g, v, b, h), mt.register(g, v, b, h), ft.register(g, v, b, h), yt.register(g, v, b, h), gt.register(g, v, b, h), vt.register(g, v, b, h), ht.register(g, v, b, h), bt.register(g, v, b, h), Ct.register(g, v, b, h), Ft.register(g, v, b, h), St.register(g, v, b, h), Tt.register(g, v, b, h), ze.register(g, v, b, h), wt.register(g, v, b, h), Bt.register(g, v, b, h), Pt.register(g, v, b, h), xt.register(g, v, b, h), It.register(g, v, b, h), Et.register(g, v, b, h), kt.register(g, v, b, h), Lt.register(g, v, b, h), Dt.register(g, v, b, h), Ot.register(g, v, b, h), Mt.register(g, v, b, h), Yt.register(g, v, b), Nt.register(g, v, b, h), At.register(g, v, b, h), Vt.register(g, v, b, h), jt.register(g, v, b, h), Rt.register(g, v, b, h), $t.register(g, v, b, h), Gt.register(g, v, b, h), Wt.register(g, v, b, h), qt.register(g, v, b, h), Ht.register(g, v, b, h), zt.register(g, v, b, h), Ut.register(g, v, b, h), _t.register(g, v, b, h), Qt.register(g, v, b, h), Xt.register(g, v, b, h), Zt.register(g, v, b, h), Jt.register(g, v, b, h));
|
|
1350
|
-
}
|
|
1351
1349
|
function uo() {
|
|
1352
|
-
|
|
1350
|
+
le || (le = !0, Je.register(y, v, b, h), Ze.register(y, v, b, h), Ye.register(y, v, b, h), Ke.register(y, v, b, h), et.register(y, v, b, h), tt.register(y, v, b, h), nt.register(y, v, b, h), ot.register(y, v, b, h), rt.register(y, v, b, h), at.register(y, v, b, h), lt.register(y, v, b, h), it.register(y, v, b, h), st.register(y, v, b, h), ut.register(y, v, b, h), ct.register(y, v, b, h), dt.register(y, v, b, h), pt.register(y, v, b, h), mt.register(y, v, b, h), ft.register(y, v, b, h), gt.register(y, v, b, h), yt.register(y, v, b, h), vt.register(y, v, b, h), ht.register(y, v, b, h), bt.register(y, v, b, h), Ct.register(y, v, b, h), Ft.register(y, v, b, h), St.register(y, v, b, h), Tt.register(y, v, b, h), ze.register(y, v, b, h), wt.register(y, v, b, h), Bt.register(y, v, b, h), Pt.register(y, v, b, h), xt.register(y, v, b, h), It.register(y, v, b, h), Et.register(y, v, b, h), kt.register(y, v, b, h), Lt.register(y, v, b, h), Dt.register(y, v, b, h), Ot.register(y, v, b, h), Mt.register(y, v, b, h), Yt.register(y, v, b), Nt.register(y, v, b, h), At.register(y, v, b, h), Vt.register(y, v, b, h), jt.register(y, v, b, h), Rt.register(y, v, b, h), $t.register(y, v, b, h), Gt.register(y, v, b, h), Wt.register(y, v, b, h), qt.register(y, v, b, h), Ht.register(y, v, b, h), zt.register(y, v, b, h), Ut.register(y, v, b, h), _t.register(y, v, b, h), Qt.register(y, v, b, h), Xt.register(y, v, b, h), Zt.register(y, v, b, h), Jt.register(y, v, b, h), Kt.register(y, v, b, h));
|
|
1351
|
+
}
|
|
1352
|
+
function co() {
|
|
1353
|
+
uo();
|
|
1353
1354
|
function e(s, m) {
|
|
1354
|
-
const
|
|
1355
|
-
return
|
|
1355
|
+
const g = v[s];
|
|
1356
|
+
return g ? g(m) : {};
|
|
1356
1357
|
}
|
|
1357
1358
|
function t(s) {
|
|
1358
|
-
return
|
|
1359
|
+
return y[s] || so;
|
|
1359
1360
|
}
|
|
1360
1361
|
function n(s) {
|
|
1361
1362
|
switch (s) {
|
|
@@ -1421,26 +1422,26 @@ function uo() {
|
|
|
1421
1422
|
}
|
|
1422
1423
|
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: r };
|
|
1423
1424
|
}
|
|
1424
|
-
const
|
|
1425
|
+
const po = /* @__PURE__ */ z({
|
|
1425
1426
|
name: "FDynamicFormGroup",
|
|
1426
1427
|
props: ve,
|
|
1427
1428
|
emits: ["change", "update:modelValue"],
|
|
1428
1429
|
setup(e, t) {
|
|
1429
|
-
const n = C(e.id), r = C(e.customClass), s = C(e.editor), m = C(e.label),
|
|
1430
|
+
const n = C(e.id), r = C(e.customClass), s = C(e.editor), m = C(e.label), g = C(e.modelValue), B = C(e.readonly), d = C(e.required), o = C(e.showLabel), u = C(e.visible);
|
|
1430
1431
|
C(e.type);
|
|
1431
1432
|
const l = C(), {
|
|
1432
1433
|
resolveEditorProps: a,
|
|
1433
1434
|
resolveEditorType: i,
|
|
1434
1435
|
getChangeFunctionName: p,
|
|
1435
1436
|
getClearFunctionName: f
|
|
1436
|
-
} =
|
|
1437
|
+
} = co(), F = E(() => ({
|
|
1437
1438
|
"form-group": !0,
|
|
1438
1439
|
"farris-form-group": !0,
|
|
1439
1440
|
"common-group": !0,
|
|
1440
1441
|
"q-state-readonly": B.value
|
|
1441
1442
|
}));
|
|
1442
1443
|
function O(I, k) {
|
|
1443
|
-
|
|
1444
|
+
g.value = k !== void 0 ? k : I, t.emit("update:modelValue", g.value), t.emit("change", g.value);
|
|
1444
1445
|
}
|
|
1445
1446
|
function A() {
|
|
1446
1447
|
t.emit("update:modelValue", "");
|
|
@@ -1450,12 +1451,12 @@ const co = /* @__PURE__ */ z({
|
|
|
1450
1451
|
return M[P] = O, M[$] = A, () => c(k, $e({
|
|
1451
1452
|
ref: l
|
|
1452
1453
|
}, M, {
|
|
1453
|
-
modelValue:
|
|
1454
|
-
"onUpdate:modelValue": (N) =>
|
|
1454
|
+
modelValue: g.value,
|
|
1455
|
+
"onUpdate:modelValue": (N) => g.value = N
|
|
1455
1456
|
}), null);
|
|
1456
1457
|
});
|
|
1457
1458
|
return R([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([I, k, M, P, $, N, G, U, Q]) => {
|
|
1458
|
-
n.value = I, r.value = k, s.value = M, m.value = P,
|
|
1459
|
+
n.value = I, r.value = k, s.value = M, m.value = P, g.value = $, B.value = N, d.value = G, o.value = U, u.value = Q;
|
|
1459
1460
|
}), t.expose({
|
|
1460
1461
|
editorRef: l
|
|
1461
1462
|
}), () => u.value && c("div", {
|
|
@@ -1465,7 +1466,7 @@ const co = /* @__PURE__ */ z({
|
|
|
1465
1466
|
class: "farris-group-wrap"
|
|
1466
1467
|
}, [c("div", {
|
|
1467
1468
|
class: F.value
|
|
1468
|
-
}, [o.value && c(
|
|
1469
|
+
}, [o.value && c(jn, {
|
|
1469
1470
|
id: `${n.value}-lable`,
|
|
1470
1471
|
required: d.value,
|
|
1471
1472
|
text: m.value,
|
|
@@ -1474,13 +1475,13 @@ const co = /* @__PURE__ */ z({
|
|
|
1474
1475
|
class: "farris-input-wrap"
|
|
1475
1476
|
}, [L.value()])])])]);
|
|
1476
1477
|
}
|
|
1477
|
-
}),
|
|
1478
|
+
}), mo = /* @__PURE__ */ z({
|
|
1478
1479
|
name: "FPropertyPanelItem",
|
|
1479
|
-
props:
|
|
1480
|
+
props: xn,
|
|
1480
1481
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
1481
1482
|
setup(e, t) {
|
|
1482
1483
|
var o;
|
|
1483
|
-
const n = C((o = e.category) == null ? void 0 : o.categoryId), r = C(e.elementConfig.propertyID), s = C(e.elementConfig.propertyName), m = C(e.elementConfig.editor),
|
|
1484
|
+
const n = C((o = e.category) == null ? void 0 : o.categoryId), r = C(e.elementConfig.propertyID), s = C(e.elementConfig.propertyName), m = C(e.elementConfig.editor), g = C(e.elementConfig.propertyValue), B = E(() => {
|
|
1484
1485
|
const u = e.elementConfig.visible;
|
|
1485
1486
|
return {
|
|
1486
1487
|
"farris-group-wrap": !0,
|
|
@@ -1492,7 +1493,7 @@ const co = /* @__PURE__ */ z({
|
|
|
1492
1493
|
var u;
|
|
1493
1494
|
return (u = e.elementConfig) == null ? void 0 : u.propertyValue;
|
|
1494
1495
|
}, (u) => {
|
|
1495
|
-
|
|
1496
|
+
g.value = u;
|
|
1496
1497
|
});
|
|
1497
1498
|
function d(u) {
|
|
1498
1499
|
e.elementConfig.propertyValue = u;
|
|
@@ -1504,19 +1505,19 @@ const co = /* @__PURE__ */ z({
|
|
|
1504
1505
|
}
|
|
1505
1506
|
return () => c("div", {
|
|
1506
1507
|
class: B.value
|
|
1507
|
-
}, [c(
|
|
1508
|
+
}, [c(po, {
|
|
1508
1509
|
id: r.value,
|
|
1509
1510
|
customClass: `${n.value}-${r.value}`,
|
|
1510
1511
|
label: s.value,
|
|
1511
1512
|
editor: m.value,
|
|
1512
|
-
modelValue:
|
|
1513
|
+
modelValue: g.value,
|
|
1513
1514
|
onChange: d,
|
|
1514
1515
|
editorParams: e.elementConfig.editorParams
|
|
1515
1516
|
}, null)]);
|
|
1516
1517
|
}
|
|
1517
|
-
}),
|
|
1518
|
+
}), fo = /* @__PURE__ */ z({
|
|
1518
1519
|
name: "FPropertyPanelItemList",
|
|
1519
|
-
props:
|
|
1520
|
+
props: Pn,
|
|
1520
1521
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
1521
1522
|
setup(e, t) {
|
|
1522
1523
|
const n = C(e.category);
|
|
@@ -1546,7 +1547,7 @@ const co = /* @__PURE__ */ z({
|
|
|
1546
1547
|
onClick: (p) => s(p, i)
|
|
1547
1548
|
}, [c("span", null, null)])]);
|
|
1548
1549
|
}
|
|
1549
|
-
function
|
|
1550
|
+
function g(i) {
|
|
1550
1551
|
return c("div", {
|
|
1551
1552
|
class: "f-section-formgroup-legend"
|
|
1552
1553
|
}, [c("div", {
|
|
@@ -1577,7 +1578,7 @@ const co = /* @__PURE__ */ z({
|
|
|
1577
1578
|
function u(i) {
|
|
1578
1579
|
return c("div", {
|
|
1579
1580
|
class: "px-2 mb-2"
|
|
1580
|
-
}, [c(
|
|
1581
|
+
}, [c(mo, {
|
|
1581
1582
|
key: B(i),
|
|
1582
1583
|
elementConfig: i,
|
|
1583
1584
|
category: n.value,
|
|
@@ -1600,7 +1601,7 @@ const co = /* @__PURE__ */ z({
|
|
|
1600
1601
|
class: "panel-item-title"
|
|
1601
1602
|
}, [c("div", {
|
|
1602
1603
|
class: "form-group farris-form-group line-item"
|
|
1603
|
-
}, [
|
|
1604
|
+
}, [g(i), r(i), m(i)])])]), c("div", {
|
|
1604
1605
|
class: ["card-body", {
|
|
1605
1606
|
hidden: !i.isExpand
|
|
1606
1607
|
}]
|
|
@@ -1616,10 +1617,10 @@ const co = /* @__PURE__ */ z({
|
|
|
1616
1617
|
}
|
|
1617
1618
|
}), se = /* @__PURE__ */ z({
|
|
1618
1619
|
name: "FPropertyPanel",
|
|
1619
|
-
props:
|
|
1620
|
+
props: en,
|
|
1620
1621
|
emits: ["propertyChanged"],
|
|
1621
1622
|
setup(e, t) {
|
|
1622
|
-
const n = C(e.width), r = C(e.isWidePanel), s = C(e.enableSearch), m = C(e.mode),
|
|
1623
|
+
const n = C(e.width), r = C(e.isWidePanel), s = C(e.enableSearch), m = C(e.mode), g = C(e.isPersitOpenState), B = C(e.isShowPanel), d = C(), o = C(), u = C(e.showCloseBtn), l = C(e.selectedTabId), a = C(!0), i = C(e.isWhiteTheme);
|
|
1623
1624
|
let p = [], f = [];
|
|
1624
1625
|
const F = C(""), O = C(), A = C(), L = Ge("SchemaService");
|
|
1625
1626
|
let I = [], k = null, M = "";
|
|
@@ -1694,7 +1695,7 @@ const co = /* @__PURE__ */ z({
|
|
|
1694
1695
|
q(S);
|
|
1695
1696
|
}
|
|
1696
1697
|
function Ce() {
|
|
1697
|
-
|
|
1698
|
+
g.value || (a.value = !1), t.emit("closePropertyPanel");
|
|
1698
1699
|
}
|
|
1699
1700
|
function Y(w) {
|
|
1700
1701
|
F.value = "", j();
|
|
@@ -1835,7 +1836,7 @@ const co = /* @__PURE__ */ z({
|
|
|
1835
1836
|
}]
|
|
1836
1837
|
}, null), T.categoryName]), c("div", {
|
|
1837
1838
|
hidden: T.status === "closed"
|
|
1838
|
-
}, [c(
|
|
1839
|
+
}, [c(fo, {
|
|
1839
1840
|
category: T,
|
|
1840
1841
|
propertyData: o.value,
|
|
1841
1842
|
onTriggerRefreshPanel: Be,
|
|
@@ -1884,7 +1885,7 @@ const co = /* @__PURE__ */ z({
|
|
|
1884
1885
|
return H(() => {
|
|
1885
1886
|
q(F.value);
|
|
1886
1887
|
}), qe(() => {
|
|
1887
|
-
|
|
1888
|
+
g.value && (a.value = B.value), _(), q(F.value);
|
|
1888
1889
|
}), R(P, () => {
|
|
1889
1890
|
}), t.expose({
|
|
1890
1891
|
updatePropertyConfig: Se,
|
|
@@ -1907,16 +1908,16 @@ const co = /* @__PURE__ */ z({
|
|
|
1907
1908
|
}, [Oe(), we()]), Pe(), Ee()]), Me(), ke()])]);
|
|
1908
1909
|
}
|
|
1909
1910
|
});
|
|
1910
|
-
var
|
|
1911
|
-
const
|
|
1911
|
+
var go = /* @__PURE__ */ ((e) => (e.string = "string", e.boolean = "boolean", e.number = "number", e.select = "select", e.boolOrExp = "boolOrExp", e.editableSelect = "editableSelect", e.multiSelect = "multiSelect", e.date = "date", e.datetime = "datetime", e.modal = "modal", e.cascade = "cascade", e.custom = "custom", e.unity = "unity", e.events = "events", e.switch = "switch", e.multiLanguage = "multiLanguage", e))(go || {});
|
|
1912
|
+
const Br = {
|
|
1912
1913
|
install(e) {
|
|
1913
1914
|
e.component(se.name, se);
|
|
1914
1915
|
}
|
|
1915
1916
|
};
|
|
1916
1917
|
export {
|
|
1917
1918
|
se as FPropertyPanel,
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1919
|
+
go as PropertyType,
|
|
1920
|
+
Br as default,
|
|
1921
|
+
xn as propertyPanelItemProps,
|
|
1922
|
+
en as propertyPanelProps
|
|
1922
1923
|
};
|