@farris/ui-vue 1.7.2-beta.1 → 1.7.2-beta.2
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/avatar/index.esm.js +155 -148
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +226 -224
- package/components/calendar/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +225 -223
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +76 -71
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +169 -167
- package/components/comment/index.umd.cjs +6 -6
- package/components/component/index.esm.js +3691 -3043
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +2015 -1352
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +407 -430
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3082 -3196
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3364 -2713
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +66 -64
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1176 -524
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +182 -180
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +531 -455
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +2352 -1700
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +8 -3
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-bar/index.esm.js +422 -413
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +8 -3
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/image/index.esm.js +363 -354
- package/components/image/index.umd.cjs +2 -2
- package/components/language-textbox/index.esm.js +189 -187
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-view/index.esm.js +388 -389
- package/components/list-view/index.umd.cjs +5 -5
- package/components/mapping-editor/index.esm.js +1465 -1488
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +180 -173
- package/components/number-range/index.umd.cjs +1 -1
- package/components/order/index.esm.js +815 -811
- package/components/order/index.umd.cjs +5 -5
- package/components/property-panel/index.esm.js +429 -420
- package/components/property-panel/index.umd.cjs +3 -3
- package/components/query-solution/index.esm.js +4746 -4085
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/schema-selector/index.esm.js +1401 -1402
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/section/index.esm.js +102 -100
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +8 -3
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +537 -538
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +280 -283
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +200 -202
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +533 -519
- package/components/uploader/index.umd.cjs +2 -2
- package/designer/data-grid/index.esm.js +3806 -3905
- package/designer/data-grid/index.umd.cjs +9 -9
- package/designer/drawer/index.esm.js +188 -186
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +1562 -1073
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +9793 -8613
- package/designer/farris-designer.all.umd.cjs +8 -8
- package/designer/list-view/index.esm.js +564 -564
- package/designer/list-view/index.umd.cjs +6 -6
- package/designer/radio-group/index.esm.js +236 -229
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +178 -171
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +3154 -2508
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +193 -186
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +444 -447
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +60126 -59649
- package/farris.all.umd.cjs +30 -30
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/components.d.ts +1 -1
- package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
- package/types/data-grid/index.d.ts +2 -5
- package/types/data-grid/src/data-grid.component.d.ts +1 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/appearance/use-cell-position.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +0 -4
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +2 -2
- package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +2 -3
- package/types/data-view/composition/visualization/use-visual-data-row.d.ts +1 -2
- package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
- package/types/dynamic-form/designer.d.ts +0 -1
- package/types/dynamic-form/index.d.ts +4 -3
- package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
- package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
- package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
- package/types/dynamic-form/src/response-form.props.d.ts +13 -1
- package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -0
- package/types/dynamic-resolver/src/types.d.ts +1 -0
- package/types/dynamic-view/index.d.ts +43 -3
- package/types/dynamic-view/src/components/maps.d.ts +6 -6
- package/types/dynamic-view/src/composition/index.d.ts +5 -0
- package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
- package/types/language-textbox/index.d.ts +3 -3
- package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
- package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/tree-grid/src/components/data/data-area.component.d.ts +2 -2
- package/types/tree-grid/src/tree-grid.props.d.ts +0 -1
- package/types/tree-view/src/components/data/tree-area.component.d.ts +1 -1
- package/types/tree-view/src/tree-view.props.d.ts +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { getCustomClass as
|
|
3
|
-
import { isPlainObject as q, cloneDeep as
|
|
1
|
+
import { ref as R, computed as x, createVNode as F, defineComponent as ue, watch as de, onMounted as fe } from "vue";
|
|
2
|
+
import { getCustomClass as H, withInstall as me } from "../common/index.esm.js";
|
|
3
|
+
import { isPlainObject as q, cloneDeep as W } from "lodash-es";
|
|
4
4
|
import { resolveAppearance as pe } from "../dynamic-resolver/index.esm.js";
|
|
5
|
-
import { DgControl as
|
|
5
|
+
import { DgControl as _ } from "../designer-canvas/index.esm.js";
|
|
6
6
|
import ve from "../response-toolbar/index.esm.js";
|
|
7
|
-
import { LocaleService as
|
|
7
|
+
import { LocaleService as G } from "../locale/index.esm.js";
|
|
8
8
|
function Z(e, t) {
|
|
9
9
|
let n;
|
|
10
10
|
function r(i) {
|
|
11
|
-
const { properties: l, title: m, ignore: o } = i, a = o && Array.isArray(o), s = Object.keys(l).reduce((v, g) => ((!a || !o.find((k) => k === g)) && (v[g] = l[g].type === "object" && l[g].properties ? r(l[g]) :
|
|
11
|
+
const { properties: l, title: m, ignore: o } = i, a = o && Array.isArray(o), s = Object.keys(l).reduce((v, g) => ((!a || !o.find((k) => k === g)) && (v[g] = l[g].type === "object" && l[g].properties ? r(l[g]) : W(l[g].default)), v), {});
|
|
12
12
|
if (m && (!a || !o.find((v) => v === "id"))) {
|
|
13
13
|
const v = m.toLowerCase().replace(/-/g, "_");
|
|
14
14
|
s.id = `${v}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -18,7 +18,7 @@ function Z(e, t) {
|
|
|
18
18
|
function c(i) {
|
|
19
19
|
const { properties: l, title: m, required: o } = i;
|
|
20
20
|
if (o && Array.isArray(o)) {
|
|
21
|
-
const a = o.reduce((s, v) => (s[v] = l[v].type === "object" && l[v].properties ? r(l[v]) :
|
|
21
|
+
const a = o.reduce((s, v) => (s[v] = l[v].type === "object" && l[v].properties ? r(l[v]) : W(l[v].default), s), {});
|
|
22
22
|
if (m && o.find((s) => s === "id")) {
|
|
23
23
|
const s = m.toLowerCase().replace(/-/g, "_");
|
|
24
24
|
a.id = `${s}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -149,7 +149,7 @@ const Se = {
|
|
|
149
149
|
e.editor && (e.editor[t] = n);
|
|
150
150
|
},
|
|
151
151
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
152
|
-
},
|
|
152
|
+
}, Fe = {
|
|
153
153
|
button: { type: "button", name: "按钮" },
|
|
154
154
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
155
155
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -203,14 +203,19 @@ const Se = {
|
|
|
203
203
|
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
204
204
|
comment: { type: "comment", name: "评论区" },
|
|
205
205
|
"rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
|
|
206
|
-
calendar: { type: "calendar", name: "日历", icon: "date-picker" }
|
|
207
|
-
|
|
206
|
+
calendar: { type: "calendar", name: "日历", icon: "date-picker" },
|
|
207
|
+
wizard: { type: "wizard", name: "向导", icon: "wizard" },
|
|
208
|
+
"wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
|
|
209
|
+
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
|
|
210
|
+
step: { type: "step", name: "步骤条", icon: "step" },
|
|
211
|
+
"dynamic-form": { type: "dynamic-form", name: "动态表单" }
|
|
212
|
+
}, we = {
|
|
208
213
|
convertFrom: (e, t, n) => {
|
|
209
214
|
var c;
|
|
210
215
|
const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
211
|
-
return ((c =
|
|
216
|
+
return ((c = Fe[r]) == null ? void 0 : c.name) || r;
|
|
212
217
|
}
|
|
213
|
-
},
|
|
218
|
+
}, xe = {
|
|
214
219
|
convertTo: (e, t, n, r) => {
|
|
215
220
|
e[t] = e[t];
|
|
216
221
|
},
|
|
@@ -243,6 +248,8 @@ const Se = {
|
|
|
243
248
|
return e.formatter.customFormat;
|
|
244
249
|
if (t === "type")
|
|
245
250
|
return e.formatter.type || "none";
|
|
251
|
+
if (t === "customFormat")
|
|
252
|
+
return e.formmater.customFormat;
|
|
246
253
|
}
|
|
247
254
|
return "none";
|
|
248
255
|
}
|
|
@@ -264,29 +271,17 @@ const Se = {
|
|
|
264
271
|
]), t === "enableType" && n === "custom" && (e.command.enable = !0, e.command.commands = [
|
|
265
272
|
{
|
|
266
273
|
value: "add",
|
|
267
|
-
text:
|
|
268
|
-
en: "add",
|
|
269
|
-
"zh-CHS": "增加",
|
|
270
|
-
"zh-CHT": "增加"
|
|
271
|
-
},
|
|
274
|
+
text: "增加",
|
|
272
275
|
type: "link"
|
|
273
276
|
},
|
|
274
277
|
{
|
|
275
278
|
value: "edit",
|
|
276
|
-
text:
|
|
277
|
-
en: "edit",
|
|
278
|
-
"zh-CHS": "编辑",
|
|
279
|
-
"zh-CHT": "編輯"
|
|
280
|
-
},
|
|
279
|
+
text: "编辑",
|
|
281
280
|
type: "danger"
|
|
282
281
|
},
|
|
283
282
|
{
|
|
284
283
|
value: "remove",
|
|
285
|
-
text:
|
|
286
|
-
en: "remove",
|
|
287
|
-
"zh-CHS": "删除",
|
|
288
|
-
"zh-CHT": "刪除"
|
|
289
|
-
},
|
|
284
|
+
text: "删除",
|
|
290
285
|
type: "remove"
|
|
291
286
|
}
|
|
292
287
|
]), t === "enableType" && n === "unable" && (e.command.enable = !1);
|
|
@@ -304,6 +299,8 @@ const Se = {
|
|
|
304
299
|
return e.command.formatter;
|
|
305
300
|
if (t === "count")
|
|
306
301
|
return e.command.count;
|
|
302
|
+
if (t === "columnWidth")
|
|
303
|
+
return e.command.columnWidth || 150;
|
|
307
304
|
}
|
|
308
305
|
return "";
|
|
309
306
|
}
|
|
@@ -331,7 +328,10 @@ const Se = {
|
|
|
331
328
|
groupFields: []
|
|
332
329
|
});
|
|
333
330
|
},
|
|
334
|
-
convertFrom: (e, t, n) =>
|
|
331
|
+
convertFrom: (e, t, n) => {
|
|
332
|
+
var r;
|
|
333
|
+
return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((r = e.summary) == null ? void 0 : r[t]) || "bottom" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
|
|
334
|
+
}
|
|
335
335
|
}, Ee = {
|
|
336
336
|
convertTo: (e, t, n, r) => {
|
|
337
337
|
e.group ? e.group[t] = n : e.group = {
|
|
@@ -350,7 +350,7 @@ const Se = {
|
|
|
350
350
|
return e.group.showSummary;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
},
|
|
353
|
+
}, je = {
|
|
354
354
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
355
355
|
convertTo: (e, t, n) => {
|
|
356
356
|
if (n && n.length > 0) {
|
|
@@ -358,17 +358,17 @@ const Se = {
|
|
|
358
358
|
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;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
},
|
|
361
|
+
}, Re = {
|
|
362
362
|
convertTo: (e, t, n, r) => {
|
|
363
|
-
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
363
|
+
e.pagination || (e.pagination = {}), t === "sizeLimits" ? e.pagination.sizeLimits = n.split(",") : e.pagination[t] = n;
|
|
364
364
|
},
|
|
365
|
-
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
366
|
-
},
|
|
365
|
+
convertFrom: (e, t, n) => e.pagination ? t === "sizeLimits" ? e.pagination.sizeLimits.join(",") : e.pagination[t] : e[t]
|
|
366
|
+
}, ze = {
|
|
367
367
|
convertTo: (e, t, n, r) => {
|
|
368
368
|
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
|
|
369
369
|
},
|
|
370
370
|
convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
371
|
-
},
|
|
371
|
+
}, De = {
|
|
372
372
|
convertTo: (e, t, n, r) => {
|
|
373
373
|
e.selection || (e.selection = {}), e.selection[t] = n;
|
|
374
374
|
},
|
|
@@ -378,12 +378,12 @@ const Se = {
|
|
|
378
378
|
}
|
|
379
379
|
}, Ae = {
|
|
380
380
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
381
|
-
},
|
|
381
|
+
}, Le = {
|
|
382
382
|
convertFrom: (e, t) => e[t] || "",
|
|
383
383
|
convertTo: (e, t, n) => {
|
|
384
384
|
e[t] = n;
|
|
385
385
|
}
|
|
386
|
-
},
|
|
386
|
+
}, Ne = {
|
|
387
387
|
convertTo: (e, t, n, r) => {
|
|
388
388
|
e.size || (e.size = {}), e.size[t] = n;
|
|
389
389
|
},
|
|
@@ -404,7 +404,7 @@ const Se = {
|
|
|
404
404
|
if (t === "multiSort")
|
|
405
405
|
return !!((c = e.sort) != null && c.multiSort);
|
|
406
406
|
}
|
|
407
|
-
},
|
|
407
|
+
}, He = {
|
|
408
408
|
convertTo: (e, t, n, r) => {
|
|
409
409
|
e.filter || (e.filter = {}), e.filter[t] = n;
|
|
410
410
|
},
|
|
@@ -425,6 +425,8 @@ const Se = {
|
|
|
425
425
|
return e.rowOption.customRowStyle;
|
|
426
426
|
if (t === "customCellStyle")
|
|
427
427
|
return e.rowOption.customCellStyle;
|
|
428
|
+
if (t === "height")
|
|
429
|
+
return e.rowOption.height;
|
|
428
430
|
}
|
|
429
431
|
return "";
|
|
430
432
|
}
|
|
@@ -447,22 +449,22 @@ function U(e, t, n) {
|
|
|
447
449
|
["/converter/buttons.converter", Te],
|
|
448
450
|
["/converter/property-editor.converter", he],
|
|
449
451
|
["/converter/items-count.converter", Ae],
|
|
450
|
-
["/converter/type.converter",
|
|
451
|
-
["/converter/change-editor.converter",
|
|
452
|
+
["/converter/type.converter", we],
|
|
453
|
+
["/converter/change-editor.converter", xe],
|
|
452
454
|
["/converter/change-formatter.converter", ke],
|
|
453
455
|
["/converter/column-command.converter", Pe],
|
|
454
456
|
["/converter/column-option.converter", Oe],
|
|
455
457
|
["/converter/summary.converter", Me],
|
|
456
458
|
["/converter/group.converter", Ee],
|
|
457
|
-
["/converter/form-group-label.converter",
|
|
458
|
-
["/converter/field-selector.converter",
|
|
459
|
-
["/converter/pagination.converter",
|
|
460
|
-
["/converter/row-number.converter",
|
|
461
|
-
["/converter/grid-selection.converter",
|
|
462
|
-
["/converter/size.converter",
|
|
459
|
+
["/converter/form-group-label.converter", Le],
|
|
460
|
+
["/converter/field-selector.converter", je],
|
|
461
|
+
["/converter/pagination.converter", Re],
|
|
462
|
+
["/converter/row-number.converter", ze],
|
|
463
|
+
["/converter/grid-selection.converter", De],
|
|
464
|
+
["/converter/size.converter", Ne],
|
|
463
465
|
["/converter/change-formatter-enum.converter", Be],
|
|
464
466
|
["/converter/grid-sort.converter", $e],
|
|
465
|
-
["/converter/grid-filter.converter",
|
|
467
|
+
["/converter/grid-filter.converter", He],
|
|
466
468
|
["/converter/row-option.converter", Ie],
|
|
467
469
|
["/converter/change-formatter-type.converter", qe]
|
|
468
470
|
]), c = /* @__PURE__ */ new Map([
|
|
@@ -505,11 +507,11 @@ function U(e, t, n) {
|
|
|
505
507
|
}
|
|
506
508
|
function f(o, a, s, v, g, k = "", h = "") {
|
|
507
509
|
return Object.keys(o).map((C) => {
|
|
508
|
-
const P =
|
|
509
|
-
|
|
510
|
+
const P = R(1), O = C, T = o[C], b = Object.keys(T), A = T.title, z = T.type, D = c.get(z) || { type: "input-group", enableClear: !1 }, j = T.editor ? Object.assign({}, D, T.editor) : Object.assign({}, D), N = y(b, T, a), L = S(b, T, a);
|
|
511
|
+
j.readonly = j.readonly === void 0 ? L() : j.readonly;
|
|
510
512
|
const B = T.type === "cascade" ? f(T.properties, a, s, v, g, k, h) : [], $ = !0;
|
|
511
513
|
let M = u(T, h);
|
|
512
|
-
const oe =
|
|
514
|
+
const oe = x({
|
|
513
515
|
get() {
|
|
514
516
|
if (P.value) {
|
|
515
517
|
if (["class", "style"].find((ce) => ce === O) && !M && (M = r.get("/converter/appearance.converter") || null), M && M.convertFrom)
|
|
@@ -522,31 +524,31 @@ function U(e, t, n) {
|
|
|
522
524
|
set(E) {
|
|
523
525
|
P.value += 1, M && M.convertTo ? (M.convertTo(v, C, E, g, k), M.convertTo(s, C, E, g, k)) : (v[C] = E, s[C] = E);
|
|
524
526
|
}
|
|
525
|
-
}), { refreshPanelAfterChanged: ie, description: ae, isExpand: le, parentPropertyID: se } = T, I = { propertyID: O, propertyName: A, propertyType:
|
|
527
|
+
}), { refreshPanelAfterChanged: ie, description: ae, isExpand: le, parentPropertyID: se } = T, I = { propertyID: O, propertyName: A, propertyType: z, propertyValue: oe, editor: j, visible: N, readonly: L, cascadeConfig: B, hideCascadeTitle: $, refreshPanelAfterChanged: ie, description: ae, isExpand: le, parentPropertyID: se };
|
|
526
528
|
return a[O] = I, I;
|
|
527
529
|
});
|
|
528
530
|
}
|
|
529
531
|
function i(o, a, s = {}) {
|
|
530
532
|
const v = {}, g = e[o];
|
|
531
533
|
return g && g.categories ? Object.keys(g.categories).map((h) => {
|
|
532
|
-
const
|
|
534
|
+
const w = g.categories[h], C = w == null ? void 0 : w.title, P = f(w.properties || {}, v, {}, s, a);
|
|
533
535
|
return { categoryId: h, categoryName: C, properties: P };
|
|
534
536
|
}) : [];
|
|
535
537
|
}
|
|
536
538
|
function l(o, a, s, v, g = "") {
|
|
537
|
-
const k = a.$ref.schema, h = a.$ref.converter,
|
|
539
|
+
const k = a.$ref.schema, h = a.$ref.converter, w = s[k], C = w.type, P = n(w), O = {}, T = e[C];
|
|
538
540
|
if (T && T.categories) {
|
|
539
541
|
const b = T.categories[o], A = b == null ? void 0 : b.title;
|
|
540
|
-
h && Object.keys(b.properties).forEach((
|
|
541
|
-
b.properties[
|
|
542
|
+
h && Object.keys(b.properties).forEach((j) => {
|
|
543
|
+
b.properties[j].$converter = h;
|
|
542
544
|
});
|
|
543
|
-
const
|
|
544
|
-
return { categoryId: o, categoryName: A, properties:
|
|
545
|
+
const z = (b == null ? void 0 : b.properties) || {}, D = f(z, O, P, w, v, g);
|
|
546
|
+
return { categoryId: o, categoryName: A, properties: D };
|
|
545
547
|
}
|
|
546
548
|
return { categoryId: o, categoryName: "", properties: [] };
|
|
547
549
|
}
|
|
548
550
|
function m(o, a, s, v, g) {
|
|
549
|
-
const k = o.type, h = n(o),
|
|
551
|
+
const k = o.type, h = n(o), w = {};
|
|
550
552
|
let C = g || e[k];
|
|
551
553
|
if (!(C && Object.keys(C).length > 0) && s && s.getPropConfig && (C = s.getPropConfig(v)), C && C.categories) {
|
|
552
554
|
const O = [];
|
|
@@ -556,8 +558,8 @@ function U(e, t, n) {
|
|
|
556
558
|
O.push(l(T, b, o, a, v));
|
|
557
559
|
return;
|
|
558
560
|
}
|
|
559
|
-
const A = b == null ? void 0 : b.title,
|
|
560
|
-
O.push({ categoryId: T, categoryName: A, tabId:
|
|
561
|
+
const A = b == null ? void 0 : b.title, z = b == null ? void 0 : b.tabId, D = b == null ? void 0 : b.tabName, j = b == null ? void 0 : b.hide, N = b == null ? void 0 : b.hideTitle, L = f(b.properties || {}, w, h, o, a, v, b.$converter), { setPropertyRelates: B } = b, $ = b == null ? void 0 : b.parentPropertyID;
|
|
562
|
+
O.push({ categoryId: T, categoryName: A, tabId: z, tabName: D, hide: j, properties: L, hideTitle: N, setPropertyRelates: B, parentPropertyID: $ });
|
|
561
563
|
}), O;
|
|
562
564
|
}
|
|
563
565
|
return [];
|
|
@@ -570,9 +572,9 @@ function U(e, t, n) {
|
|
|
570
572
|
}
|
|
571
573
|
const X = {}, Y = {};
|
|
572
574
|
U(X, Y, be);
|
|
573
|
-
const V = {}, K = {}, { resolveSchemaWithDefaultValue:
|
|
574
|
-
U(ee, te,
|
|
575
|
-
function
|
|
575
|
+
const V = {}, K = {}, { resolveSchemaWithDefaultValue: We } = Z(V, K), ee = {}, te = {};
|
|
576
|
+
U(ee, te, We);
|
|
577
|
+
function _e(e, t, n = /* @__PURE__ */ new Map(), r = (d, y, S, u) => y, c = {}, p = (d) => d) {
|
|
576
578
|
return J[t.title] = t, Q[t.title] = r, X[t.title] = c, Y[t.title] = p, V[t.title] = t, K[t.title] = r, ee[t.title] = c, te[t.title] = p, (d = {}, y = !0) => {
|
|
577
579
|
if (!y)
|
|
578
580
|
return ye(d, n);
|
|
@@ -580,7 +582,7 @@ function Ge(e, t, n = /* @__PURE__ */ new Map(), r = (d, y, S, u) => y, c = {},
|
|
|
580
582
|
return Object.assign(u, S);
|
|
581
583
|
};
|
|
582
584
|
}
|
|
583
|
-
function
|
|
585
|
+
function Ge(e, t) {
|
|
584
586
|
if (!e || e.length < 1)
|
|
585
587
|
return null;
|
|
586
588
|
for (const n of e) {
|
|
@@ -600,7 +602,7 @@ function Ze() {
|
|
|
600
602
|
const r = (y = t.toolbar) == null ? void 0 : y.buttons;
|
|
601
603
|
if (!r || r.length < 1)
|
|
602
604
|
return null;
|
|
603
|
-
const [c, p] = n.payloads, d =
|
|
605
|
+
const [c, p] = n.payloads, d = Ge(r, p);
|
|
604
606
|
return d ? d.onClick || d.click : null;
|
|
605
607
|
}
|
|
606
608
|
return {
|
|
@@ -652,11 +654,11 @@ function Ye(e, t) {
|
|
|
652
654
|
});
|
|
653
655
|
const d = r.schema, y = ((S = d.appearance) == null ? void 0 : S.class) || "";
|
|
654
656
|
switch (d && d.type) {
|
|
655
|
-
case
|
|
657
|
+
case _["splitter-pane"].type: {
|
|
656
658
|
c.appearance.class = "f-section-in-main", y.includes("f-page-child-fill") && (p.appearance.class += " f-struct-wrapper-child", c.fill = !0);
|
|
657
659
|
break;
|
|
658
660
|
}
|
|
659
|
-
case
|
|
661
|
+
case _["content-container"].type:
|
|
660
662
|
d.isLikeCardContainer && y.includes("f-struct-like-card-child-fill") && (p.appearance.class += " f-struct-wrapper-child", c.fill = !0);
|
|
661
663
|
}
|
|
662
664
|
return Xe(p, r), p;
|
|
@@ -915,7 +917,7 @@ const Ke = "https://json-schema.org/draft/2020-12/schema", et = "https://farris-
|
|
|
915
917
|
// toolbarPosition: { type: String, default: '' },
|
|
916
918
|
// toolbarButtons: { type: Array<object>, default: [] },
|
|
917
919
|
// toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
|
|
918
|
-
}, gt =
|
|
920
|
+
}, gt = _e(ne, at, Ue, Ve), yt = Ze();
|
|
919
921
|
function lt(e, t, n) {
|
|
920
922
|
let r;
|
|
921
923
|
function c(S = 1) {
|
|
@@ -953,12 +955,12 @@ function lt(e, t, n) {
|
|
|
953
955
|
return { onClickMaxMinIcon: y };
|
|
954
956
|
}
|
|
955
957
|
function re(e, t) {
|
|
956
|
-
const n =
|
|
958
|
+
const n = R(e.buttons), r = x(() => e.buttonPosition === "inHead" ? "right" : "left"), c = x(() => "f-section-toolbar col-6" + (e.buttonPosition === "inHead" ? " f-toolbar f-section-header--toolbar" : " f-section-content--toolbar") + (e.buttonsClass ? " " + e.buttonsClass : "")), p = x(() => e.buttons && e.buttons.length > 0 && e.buttonPosition === "inHead");
|
|
957
959
|
function d(u, f) {
|
|
958
960
|
t.emit("click", u, f);
|
|
959
961
|
}
|
|
960
962
|
function y() {
|
|
961
|
-
return p.value &&
|
|
963
|
+
return p.value && F(ve, {
|
|
962
964
|
customClass: c.value,
|
|
963
965
|
items: n.value,
|
|
964
966
|
onClick: d,
|
|
@@ -967,9 +969,9 @@ function re(e, t) {
|
|
|
967
969
|
}, null);
|
|
968
970
|
}
|
|
969
971
|
function S() {
|
|
970
|
-
return
|
|
972
|
+
return F("div", {
|
|
971
973
|
class: c.value
|
|
972
|
-
}, [
|
|
974
|
+
}, [F("div", {
|
|
973
975
|
class: "w-100",
|
|
974
976
|
style: "flex:1"
|
|
975
977
|
}, [e.toolbarRenderFunction()])]);
|
|
@@ -978,11 +980,11 @@ function re(e, t) {
|
|
|
978
980
|
}
|
|
979
981
|
function st(e, t, n, r, c, p) {
|
|
980
982
|
const d = {
|
|
981
|
-
collapseLabel:
|
|
982
|
-
expandLabel:
|
|
983
|
-
}, y =
|
|
983
|
+
collapseLabel: G.getRealPropertyValue(e.collapseLabel, "收起", "section.collapseLabel"),
|
|
984
|
+
expandLabel: G.getRealPropertyValue(e.expandLabel, "展开", "section.expandLabel")
|
|
985
|
+
}, y = x(() => e.buttonPosition), S = re(e, t), {
|
|
984
986
|
onClickMaxMinIcon: u
|
|
985
|
-
} = lt(r, c, p), f =
|
|
987
|
+
} = lt(r, c, p), f = x(() => e.enableMaximize), i = x(() => e.enableAccordion !== ""), l = x(() => {
|
|
986
988
|
const h = {
|
|
987
989
|
"f-section-header": !0
|
|
988
990
|
};
|
|
@@ -992,43 +994,43 @@ function st(e, t, n, r, c, p) {
|
|
|
992
994
|
h.stopPropagation(), e.enableAccordion !== "" && (n.value = !n.value);
|
|
993
995
|
}
|
|
994
996
|
function o() {
|
|
995
|
-
const h =
|
|
997
|
+
const h = x(() => ({
|
|
996
998
|
btn: !0,
|
|
997
999
|
"f-btn-collapse-expand": !0,
|
|
998
1000
|
"f-btn-mx": !0,
|
|
999
1001
|
"f-state-expand": n.value
|
|
1000
|
-
})),
|
|
1002
|
+
})), w = x(() => ({
|
|
1001
1003
|
"f-icon": !0,
|
|
1002
1004
|
"f-icon-maximize": !p.value,
|
|
1003
1005
|
"f-icon-minimize": p.value
|
|
1004
1006
|
}));
|
|
1005
|
-
return
|
|
1007
|
+
return F("div", {
|
|
1006
1008
|
class: "f-max-accordion"
|
|
1007
|
-
}, [f.value ?
|
|
1008
|
-
class:
|
|
1009
|
+
}, [f.value ? F("span", {
|
|
1010
|
+
class: w.value,
|
|
1009
1011
|
onClick: u
|
|
1010
|
-
}, null) : "", i.value ?
|
|
1012
|
+
}, null) : "", i.value ? F("button", {
|
|
1011
1013
|
class: h.value,
|
|
1012
1014
|
onClick: m
|
|
1013
|
-
}, [
|
|
1015
|
+
}, [F("span", null, [n.value ? d.collapseLabel : d.expandLabel])]) : ""]);
|
|
1014
1016
|
}
|
|
1015
1017
|
function a() {
|
|
1016
|
-
return
|
|
1018
|
+
return F("div", {
|
|
1017
1019
|
class: "f-title"
|
|
1018
|
-
}, [
|
|
1020
|
+
}, [F("h4", {
|
|
1019
1021
|
class: "f-title-text"
|
|
1020
|
-
}, [e.mainTitle]), e.subTitle &&
|
|
1022
|
+
}, [e.mainTitle]), e.subTitle && F("span", null, [e.subTitle])]);
|
|
1021
1023
|
}
|
|
1022
1024
|
function s() {
|
|
1023
|
-
const h =
|
|
1024
|
-
const
|
|
1025
|
+
const h = x(() => {
|
|
1026
|
+
const w = {
|
|
1025
1027
|
"f-content": !0
|
|
1026
1028
|
};
|
|
1027
|
-
return e.headerContentClass && e.headerContentClass.split(" ").reduce((P, O) => (P[O] = !0, P),
|
|
1029
|
+
return e.headerContentClass && e.headerContentClass.split(" ").reduce((P, O) => (P[O] = !0, P), w), w;
|
|
1028
1030
|
});
|
|
1029
|
-
return t.slots.headerContent ?
|
|
1031
|
+
return t.slots.headerContent ? F("div", {
|
|
1030
1032
|
class: h.value
|
|
1031
|
-
}, [t.slots.headerContent()]) : e.headerContentRenderFunction ?
|
|
1033
|
+
}, [t.slots.headerContent()]) : e.headerContentRenderFunction ? F("div", {
|
|
1032
1034
|
class: h.value
|
|
1033
1035
|
}, [e.headerContentRenderFunction()]) : null;
|
|
1034
1036
|
}
|
|
@@ -1036,14 +1038,14 @@ function st(e, t, n, r, c, p) {
|
|
|
1036
1038
|
return t.slots.headerTitle ? t.slots.headerTitle() : e.headerTitleRenderFunction ? e.headerTitleRenderFunction() : a();
|
|
1037
1039
|
}
|
|
1038
1040
|
function g() {
|
|
1039
|
-
return
|
|
1041
|
+
return F("div", {
|
|
1040
1042
|
class: l.value
|
|
1041
1043
|
}, [v(), s(), y.value === "inHead" && S(), (f.value || i.value) && o()]);
|
|
1042
1044
|
}
|
|
1043
1045
|
function k() {
|
|
1044
|
-
return t.slots.header ?
|
|
1046
|
+
return t.slots.header ? F("div", {
|
|
1045
1047
|
class: l.value
|
|
1046
|
-
}, [t.slots.header()]) : e.headerRenderFunction ?
|
|
1048
|
+
}, [t.slots.header()]) : e.headerRenderFunction ? F("div", {
|
|
1047
1049
|
class: l.value
|
|
1048
1050
|
}, [e.headerRenderFunction()]) : g();
|
|
1049
1051
|
}
|
|
@@ -1054,7 +1056,7 @@ const ct = /* @__PURE__ */ ue({
|
|
|
1054
1056
|
props: ne,
|
|
1055
1057
|
emits: ["click"],
|
|
1056
1058
|
setup(e, t) {
|
|
1057
|
-
const n =
|
|
1059
|
+
const n = R(), r = R(), c = R(e.customClass), p = x(() => e.enableAccordion), d = R(e.expandStatus), y = x(() => e.buttonPosition), S = R(!1), u = st(e, t, d, n, r, S), f = re(e, t), i = x(() => {
|
|
1058
1060
|
const s = {
|
|
1059
1061
|
"f-section": !0,
|
|
1060
1062
|
"f-section-accordion": p.value === "default",
|
|
@@ -1063,19 +1065,19 @@ const ct = /* @__PURE__ */ ue({
|
|
|
1063
1065
|
"f-section-fill": e.fill,
|
|
1064
1066
|
"f-section-maximize": S.value
|
|
1065
1067
|
};
|
|
1066
|
-
return
|
|
1067
|
-
}), l =
|
|
1068
|
+
return H(s, c.value);
|
|
1069
|
+
}), l = x(() => H({
|
|
1068
1070
|
"f-section-content": !0
|
|
1069
|
-
}, e.contentClass)), m =
|
|
1071
|
+
}, e.contentClass)), m = x(() => H({
|
|
1070
1072
|
"f-section-extend": !0
|
|
1071
1073
|
}, e.extendClass));
|
|
1072
1074
|
function o() {
|
|
1073
|
-
return t.slots.extend &&
|
|
1075
|
+
return t.slots.extend && F("div", {
|
|
1074
1076
|
class: m.value
|
|
1075
1077
|
}, [t.slots.extend()]);
|
|
1076
1078
|
}
|
|
1077
1079
|
function a() {
|
|
1078
|
-
return
|
|
1080
|
+
return F("div", {
|
|
1079
1081
|
class: l.value
|
|
1080
1082
|
}, [y.value === "inContent" && f(), t.slots.default && t.slots.default()]);
|
|
1081
1083
|
}
|
|
@@ -1083,7 +1085,7 @@ const ct = /* @__PURE__ */ ue({
|
|
|
1083
1085
|
s !== v && (d.value = s);
|
|
1084
1086
|
}), fe(() => {
|
|
1085
1087
|
n.value && n.value && (r.value = n.value.parentElement);
|
|
1086
|
-
}), () => e.visible ?
|
|
1088
|
+
}), () => e.visible ? F("div", {
|
|
1087
1089
|
class: i.value,
|
|
1088
1090
|
ref: n,
|
|
1089
1091
|
style: e.customStyle
|