@farris/ui-vue 1.8.5-beta.3 → 1.8.5-beta.4
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/batch-editor/index.esm.js +6850 -6840
- package/components/batch-editor/index.umd.cjs +20 -20
- package/components/button/index.esm.js +6852 -6842
- package/components/button/index.umd.cjs +20 -20
- package/components/button-edit/index.esm.js +140 -140
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +46 -45
- package/components/button-group/index.umd.cjs +1 -1
- package/components/common/index.esm.js +16 -12
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +411 -411
- package/components/component/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +6500 -6487
- package/components/data-view/index.umd.cjs +21 -21
- package/components/designer-canvas/index.esm.js +269 -269
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +458 -458
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +386 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1100 -1100
- package/components/flow-canvas/index.umd.cjs +7 -7
- package/components/mapping-editor/index.esm.js +243 -243
- package/components/mapping-editor/index.umd.cjs +2 -2
- package/components/message-box/index.esm.js +82 -82
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +76 -76
- package/components/modal/index.umd.cjs +1 -1
- package/components/order/index.esm.js +139 -138
- package/components/order/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +891 -891
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +151 -149
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +947 -941
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/section/index.esm.js +121 -121
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +539 -539
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +448 -442
- package/components/tabs/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +97 -97
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +6483 -6470
- package/designer/data-grid/index.umd.cjs +21 -21
- package/designer/farris-designer.all.esm.js +1891 -1885
- package/designer/farris-designer.all.umd.cjs +14 -14
- package/designer/radio-group/index.esm.js +183 -183
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +558 -556
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +416 -416
- package/designer/tabs/index.umd.cjs +2 -2
- package/farris.all.esm.js +9133 -9119
- package/farris.all.umd.cjs +35 -35
- package/package.json +1 -1
- package/types/common/index.d.ts +1 -0
- package/types/common/utils/attrs.d.ts +26 -0
- package/types/modal/src/composition/type.d.ts +2 -0
- package/types/tabs/src/composition/types.d.ts +2 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ref as L, computed as k, createVNode as w, defineComponent as
|
|
2
|
-
import { getCustomClass as $, getCustomStyle as _, withInstall as
|
|
1
|
+
import { ref as L, computed as k, createVNode as w, mergeProps as J, defineComponent as pe, watch as be, onMounted as ve } from "vue";
|
|
2
|
+
import { extractDataAttrs as Q, getCustomClass as $, getCustomStyle as _, withInstall as ge } from "../common/index.esm.js";
|
|
3
3
|
import { isPlainObject as W, cloneDeep as U } from "lodash-es";
|
|
4
|
-
import { resolveAppearance as
|
|
4
|
+
import { resolveAppearance as ye } from "../dynamic-resolver/index.esm.js";
|
|
5
5
|
import { DgControl as G } from "../designer-canvas/index.esm.js";
|
|
6
|
-
import
|
|
6
|
+
import Ce from "../response-toolbar/index.esm.js";
|
|
7
7
|
import { LocaleService as Z } from "../locale/index.esm.js";
|
|
8
|
-
import { commonToolbarItemDesignProps as
|
|
9
|
-
function
|
|
8
|
+
import { commonToolbarItemDesignProps as Se } from "../../designer/response-toolbar/index.esm.js";
|
|
9
|
+
function X(e, t) {
|
|
10
10
|
let n;
|
|
11
11
|
function r(o) {
|
|
12
12
|
const { properties: l, title: m, ignore: u } = o, a = u && Array.isArray(u), c = Object.keys(l).reduce((d, S) => ((!a || !u.find((x) => x === S)) && (d[S] = l[S].type === "object" && l[S].properties ? r(l[S]) : U(l[S].default)), d), {});
|
|
@@ -83,8 +83,8 @@ function J(e, t) {
|
|
|
83
83
|
}
|
|
84
84
|
return { getSchemaByType: f, resolveSchemaWithDefaultValue: s, resolveSchemaToProps: y, mappingSchemaToProps: F, setDesignerContext: v };
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
function
|
|
86
|
+
const Y = {}, K = {}, { resolveSchemaWithDefaultValue: Te, resolveSchemaToProps: Fe, mappingSchemaToProps: he } = X(Y, K);
|
|
87
|
+
function we(e = {}) {
|
|
88
88
|
function t(s, v, o, l) {
|
|
89
89
|
if (typeof o == "number")
|
|
90
90
|
return l[s].length === o;
|
|
@@ -138,19 +138,19 @@ function Fe(e = {}) {
|
|
|
138
138
|
}
|
|
139
139
|
return { parseValueSchema: y };
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const xe = {
|
|
142
142
|
convertTo: (e, t, n, r) => {
|
|
143
143
|
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
144
144
|
},
|
|
145
145
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
146
|
-
},
|
|
146
|
+
}, Pe = {
|
|
147
147
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
148
|
-
},
|
|
148
|
+
}, Oe = {
|
|
149
149
|
convertTo: (e, t, n, r) => {
|
|
150
150
|
e.editor && (e.editor[t] = n);
|
|
151
151
|
},
|
|
152
152
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
153
|
-
},
|
|
153
|
+
}, ke = {
|
|
154
154
|
button: { type: "button", name: "按钮" },
|
|
155
155
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
156
156
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -216,18 +216,18 @@ const he = {
|
|
|
216
216
|
step: { type: "step", name: "步骤条", icon: "step" },
|
|
217
217
|
"dynamic-form": { type: "dynamic-form", name: "动态表单" },
|
|
218
218
|
"field-search-box": { type: "field-search-box", name: "智能搜索框" }
|
|
219
|
-
},
|
|
219
|
+
}, Re = {
|
|
220
220
|
convertFrom: (e, t, n) => {
|
|
221
221
|
var i;
|
|
222
222
|
const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
223
|
-
return ((i =
|
|
223
|
+
return ((i = ke[r]) == null ? void 0 : i.name) || r;
|
|
224
224
|
}
|
|
225
|
-
},
|
|
225
|
+
}, Me = {
|
|
226
226
|
convertTo: (e, t, n, r) => {
|
|
227
227
|
e[t] = e[t];
|
|
228
228
|
},
|
|
229
229
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
230
|
-
},
|
|
230
|
+
}, je = {
|
|
231
231
|
convertTo: (e, t, n, r) => {
|
|
232
232
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
|
|
233
233
|
[t]: n
|
|
@@ -258,7 +258,7 @@ const he = {
|
|
|
258
258
|
}
|
|
259
259
|
return "none";
|
|
260
260
|
}
|
|
261
|
-
},
|
|
261
|
+
}, Ee = {
|
|
262
262
|
convertTo: (e, t, n, r) => {
|
|
263
263
|
e.command ? e.command[t] = n : e.command = {
|
|
264
264
|
[t]: n
|
|
@@ -311,7 +311,7 @@ const he = {
|
|
|
311
311
|
}
|
|
312
312
|
return "";
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, Ne = {
|
|
315
315
|
convertTo: (e, t, n, r) => {
|
|
316
316
|
if (e.column || (e.column = {}), t === "fitMode") {
|
|
317
317
|
n && n !== "none" ? (e.column.fitColumns = !0, e.column.fitMode = n) : (e.column.fitColumns = !1, e.column.fitMode = "average");
|
|
@@ -332,7 +332,7 @@ const he = {
|
|
|
332
332
|
}
|
|
333
333
|
return t === "fitMode" ? "none" : "";
|
|
334
334
|
}
|
|
335
|
-
},
|
|
335
|
+
}, De = {
|
|
336
336
|
convertTo: (e, t, n, r) => {
|
|
337
337
|
e.summary ? e.summary[t] = n : e.summary = {
|
|
338
338
|
[t]: n
|
|
@@ -345,7 +345,7 @@ const he = {
|
|
|
345
345
|
var r, i;
|
|
346
346
|
return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((r = e.summary) == null ? void 0 : r[t]) || "bottom" : t === "customRender" ? ((i = e.summary) == null ? void 0 : i[t]) || "" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
|
|
347
347
|
}
|
|
348
|
-
},
|
|
348
|
+
}, ze = {
|
|
349
349
|
convertTo: (e, t, n, r) => {
|
|
350
350
|
e.group ? e.group[t] = n : e.group = {
|
|
351
351
|
[t]: n
|
|
@@ -368,7 +368,7 @@ const he = {
|
|
|
368
368
|
return e.group.groupFields;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
},
|
|
371
|
+
}, Ae = {
|
|
372
372
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
373
373
|
convertTo: (e, t, n) => {
|
|
374
374
|
if (n && n.length > 0) {
|
|
@@ -376,7 +376,7 @@ const he = {
|
|
|
376
376
|
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;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
-
},
|
|
379
|
+
}, Le = {
|
|
380
380
|
convertTo: (e, t, n, r) => {
|
|
381
381
|
if (e.pagination || (e.pagination = {}), t === "sizeLimits")
|
|
382
382
|
if (n == null)
|
|
@@ -394,12 +394,12 @@ const he = {
|
|
|
394
394
|
var r;
|
|
395
395
|
return e.pagination ? t === "sizeLimits" ? ((r = e.pagination.sizeLimits) == null ? void 0 : r.join(",")) ?? "" : e.pagination[t] : e[t];
|
|
396
396
|
}
|
|
397
|
-
},
|
|
397
|
+
}, He = {
|
|
398
398
|
convertTo: (e, t, n, r) => {
|
|
399
399
|
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
|
|
400
400
|
},
|
|
401
401
|
convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
402
|
-
},
|
|
402
|
+
}, Be = {
|
|
403
403
|
convertTo: (e, t, n, r) => {
|
|
404
404
|
e.selection || (e.selection = {}), e.selection[t] = n;
|
|
405
405
|
},
|
|
@@ -410,7 +410,7 @@ const he = {
|
|
|
410
410
|
return t === "showCheckbox" && r == null && e.selection.multiSelect === !0 ? !0 : r;
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
|
-
function
|
|
413
|
+
function Ie(e) {
|
|
414
414
|
const { formSchemaUtils: t, formStateMachineUtils: n } = e;
|
|
415
415
|
function r(y, s = "") {
|
|
416
416
|
return {
|
|
@@ -438,8 +438,8 @@ function He(e) {
|
|
|
438
438
|
}
|
|
439
439
|
return { getVariables: f, getControlName: p, getStateMachines: F };
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
const { getVariables: i, getControlName: f, getStateMachines: p } =
|
|
441
|
+
function $e(e, t, n, r) {
|
|
442
|
+
const { getVariables: i, getControlName: f, getStateMachines: p } = Ie(e);
|
|
443
443
|
return (F, y = [], s = {}, v = {}, o) => {
|
|
444
444
|
const l = y && y.length > 0 ? y : ["Const", "Variable", "StateMachine", "Expression"], m = {
|
|
445
445
|
type: "property-editor",
|
|
@@ -474,24 +474,24 @@ function Be(e, t, n, r) {
|
|
|
474
474
|
}), m;
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
|
-
const
|
|
477
|
+
const Ve = {
|
|
478
478
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
479
|
-
},
|
|
479
|
+
}, qe = {
|
|
480
480
|
convertFrom: (e, t) => e[t] || "",
|
|
481
481
|
convertTo: (e, t, n) => {
|
|
482
482
|
e[t] = n;
|
|
483
483
|
}
|
|
484
|
-
},
|
|
484
|
+
}, _e = {
|
|
485
485
|
convertTo: (e, t, n, r) => {
|
|
486
486
|
e.size || (e.size = {}), e.size[t] = n;
|
|
487
487
|
},
|
|
488
488
|
convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
|
|
489
|
-
},
|
|
489
|
+
}, We = {
|
|
490
490
|
convertFrom: (e, t, n) => {
|
|
491
491
|
var r, i;
|
|
492
492
|
return (r = e.formatter) != null && r.data && t === "formatterEnumData" && !e.formatterEnumData ? (i = e.formatter) == null ? void 0 : i.data : e.formatterEnumData;
|
|
493
493
|
}
|
|
494
|
-
},
|
|
494
|
+
}, Ue = {
|
|
495
495
|
convertTo: (e, t, n, r) => {
|
|
496
496
|
e.sort || (e.sort = {}), e.sort[t] = n;
|
|
497
497
|
},
|
|
@@ -502,7 +502,7 @@ const Ie = {
|
|
|
502
502
|
if (t === "multiSort")
|
|
503
503
|
return !!((i = e.sort) != null && i.multiSort);
|
|
504
504
|
}
|
|
505
|
-
},
|
|
505
|
+
}, Ge = {
|
|
506
506
|
convertTo: (e, t, n, r) => {
|
|
507
507
|
e.filter || (e.filter = {}), e.filter[t] = n, t === "enable" && (e.enableFilter = !1);
|
|
508
508
|
},
|
|
@@ -510,7 +510,7 @@ const Ie = {
|
|
|
510
510
|
var r, i, f, p;
|
|
511
511
|
return t === "mode" ? ((r = e.filter) == null ? void 0 : r.mode) || "server" : t === "filterStyle" ? ((i = e.filter) == null ? void 0 : i.filterStyle) || "filter-column" : t === "enable" ? ((f = e.filter) == null ? void 0 : f.enable) !== void 0 ? !!e.filter.enable : !!e.enableFilter : ((p = e.filter) == null ? void 0 : p[t]) || void 0;
|
|
512
512
|
}
|
|
513
|
-
},
|
|
513
|
+
}, Ze = {
|
|
514
514
|
convertTo: (e, t, n, r) => {
|
|
515
515
|
e.rowOption ? e.rowOption[t] = n : e.rowOption = {
|
|
516
516
|
[t]: n
|
|
@@ -527,7 +527,7 @@ const Ie = {
|
|
|
527
527
|
}
|
|
528
528
|
return "";
|
|
529
529
|
}
|
|
530
|
-
},
|
|
530
|
+
}, Je = {
|
|
531
531
|
convertTo: (e, t, n, r) => {
|
|
532
532
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = n, t === "columnTemplateType" && n === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
|
|
533
533
|
<span class="f-pretend-link f-cursor-pointer"
|
|
@@ -539,7 +539,7 @@ const Ie = {
|
|
|
539
539
|
</span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
|
|
540
540
|
},
|
|
541
541
|
convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
542
|
-
},
|
|
542
|
+
}, Qe = {
|
|
543
543
|
convertTo: (e, t, n, r) => {
|
|
544
544
|
e.hierarchy || (e.hierarchy = {
|
|
545
545
|
cascadeOption: {}
|
|
@@ -549,7 +549,7 @@ const Ie = {
|
|
|
549
549
|
var r, i;
|
|
550
550
|
return !!((i = (r = e.hierarchy) == null ? void 0 : r.cascadeOption) != null && i[t]);
|
|
551
551
|
}
|
|
552
|
-
},
|
|
552
|
+
}, Xe = {
|
|
553
553
|
/**
|
|
554
554
|
* 从 schema.uploadOptions 读取子属性值,供属性面板展示
|
|
555
555
|
*/
|
|
@@ -561,32 +561,32 @@ const Ie = {
|
|
|
561
561
|
e.uploadOptions || (e.uploadOptions = {}), e.uploadOptions[t] = n;
|
|
562
562
|
}
|
|
563
563
|
};
|
|
564
|
-
function
|
|
564
|
+
function ee(e, t, n, r) {
|
|
565
565
|
const i = /* @__PURE__ */ new Map([
|
|
566
|
-
["/converter/appearance.converter",
|
|
567
|
-
["/converter/buttons.converter",
|
|
568
|
-
["/converter/property-editor.converter",
|
|
569
|
-
["/converter/items-count.converter",
|
|
570
|
-
["/converter/type.converter",
|
|
571
|
-
["/converter/change-editor.converter",
|
|
572
|
-
["/converter/change-formatter.converter",
|
|
573
|
-
["/converter/column-command.converter",
|
|
574
|
-
["/converter/column-option.converter",
|
|
575
|
-
["/converter/summary.converter",
|
|
576
|
-
["/converter/group.converter",
|
|
577
|
-
["/converter/form-group-label.converter",
|
|
578
|
-
["/converter/field-selector.converter",
|
|
579
|
-
["/converter/pagination.converter",
|
|
580
|
-
["/converter/row-number.converter",
|
|
581
|
-
["/converter/grid-selection.converter",
|
|
582
|
-
["/converter/size.converter",
|
|
583
|
-
["/converter/change-formatter-enum.converter",
|
|
584
|
-
["/converter/grid-sort.converter",
|
|
585
|
-
["/converter/grid-filter.converter",
|
|
586
|
-
["/converter/row-option.converter",
|
|
587
|
-
["/converter/change-formatter-type.converter",
|
|
588
|
-
["/converter/upload-options.converter",
|
|
589
|
-
["/converter/tree-auto-check.converter",
|
|
566
|
+
["/converter/appearance.converter", xe],
|
|
567
|
+
["/converter/buttons.converter", Pe],
|
|
568
|
+
["/converter/property-editor.converter", Oe],
|
|
569
|
+
["/converter/items-count.converter", Ve],
|
|
570
|
+
["/converter/type.converter", Re],
|
|
571
|
+
["/converter/change-editor.converter", Me],
|
|
572
|
+
["/converter/change-formatter.converter", je],
|
|
573
|
+
["/converter/column-command.converter", Ee],
|
|
574
|
+
["/converter/column-option.converter", Ne],
|
|
575
|
+
["/converter/summary.converter", De],
|
|
576
|
+
["/converter/group.converter", ze],
|
|
577
|
+
["/converter/form-group-label.converter", qe],
|
|
578
|
+
["/converter/field-selector.converter", Ae],
|
|
579
|
+
["/converter/pagination.converter", Le],
|
|
580
|
+
["/converter/row-number.converter", He],
|
|
581
|
+
["/converter/grid-selection.converter", Be],
|
|
582
|
+
["/converter/size.converter", _e],
|
|
583
|
+
["/converter/change-formatter-enum.converter", We],
|
|
584
|
+
["/converter/grid-sort.converter", Ue],
|
|
585
|
+
["/converter/grid-filter.converter", Ge],
|
|
586
|
+
["/converter/row-option.converter", Ze],
|
|
587
|
+
["/converter/change-formatter-type.converter", Je],
|
|
588
|
+
["/converter/upload-options.converter", Xe],
|
|
589
|
+
["/converter/tree-auto-check.converter", Qe]
|
|
590
590
|
]), f = /* @__PURE__ */ new Map([
|
|
591
591
|
["string", { type: "input-group", enableClear: !1 }],
|
|
592
592
|
["boolean", {
|
|
@@ -612,7 +612,7 @@ function Y(e, t, n, r) {
|
|
|
612
612
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
613
613
|
["events-editor", { type: "events-editor", hide: !0 }],
|
|
614
614
|
["multiLanguage", { type: "language-textbox" }]
|
|
615
|
-
]), p =
|
|
615
|
+
]), p = we();
|
|
616
616
|
function F(a, c) {
|
|
617
617
|
return () => p.parseValueSchema(a, c);
|
|
618
618
|
}
|
|
@@ -632,7 +632,7 @@ function Y(e, t, n, r) {
|
|
|
632
632
|
D.readonly = D.readonly === void 0 ? H() : D.readonly;
|
|
633
633
|
const B = T.type === "cascade" ? o(T.properties, c, d, S, x, P, R) : [], I = !0;
|
|
634
634
|
let N = v(T, R);
|
|
635
|
-
const
|
|
635
|
+
const ce = k({
|
|
636
636
|
get() {
|
|
637
637
|
if (A.value) {
|
|
638
638
|
if (["class", "style"].find((V) => V === M) && !N && (N = i.get("/converter/appearance.converter") || null), N && N.convertFrom) {
|
|
@@ -647,7 +647,7 @@ function Y(e, t, n, r) {
|
|
|
647
647
|
set(z) {
|
|
648
648
|
A.value += 1, N && N.convertTo ? (N.convertTo(S, h, z, x, P), N.convertTo(d, h, z, x, P)) : (S[h] = z, d[h] = z);
|
|
649
649
|
}
|
|
650
|
-
}), { refreshPanelAfterChanged:
|
|
650
|
+
}), { refreshPanelAfterChanged: ue, description: de, isExpand: fe, parentPropertyID: me } = T, q = { propertyID: M, propertyName: b, propertyType: C, propertyValue: ce, editor: D, visible: j, readonly: H, cascadeConfig: B, hideCascadeTitle: I, refreshPanelAfterChanged: ue, description: de, isExpand: fe, parentPropertyID: me };
|
|
651
651
|
return c[M] = q, q;
|
|
652
652
|
});
|
|
653
653
|
}
|
|
@@ -681,7 +681,7 @@ function Y(e, t, n, r) {
|
|
|
681
681
|
if (O && (d != null && d.getDesignerHostService)) {
|
|
682
682
|
const b = d.getDesignerHostService();
|
|
683
683
|
if (b != null && b.formSchemaUtils) {
|
|
684
|
-
const C = b.formSchemaUtils.getViewModelIdByComponentId(S) || "", g =
|
|
684
|
+
const C = b.formSchemaUtils.getViewModelIdByComponentId(S) || "", g = $e(
|
|
685
685
|
b,
|
|
686
686
|
C,
|
|
687
687
|
S,
|
|
@@ -729,19 +729,19 @@ function Y(e, t, n, r) {
|
|
|
729
729
|
propertyConverterMap: i
|
|
730
730
|
};
|
|
731
731
|
}
|
|
732
|
-
const
|
|
733
|
-
|
|
734
|
-
const
|
|
735
|
-
|
|
736
|
-
function
|
|
737
|
-
return
|
|
732
|
+
const te = {}, ne = {};
|
|
733
|
+
ee(te, ne, Te);
|
|
734
|
+
const re = {}, oe = {}, { resolveSchemaWithDefaultValue: Ye } = X(re, oe), ie = {}, ae = {}, Ke = {};
|
|
735
|
+
ee(ie, ae, Ye, Ke);
|
|
736
|
+
function et(e, t, n = /* @__PURE__ */ new Map(), r = (p, F, y, s) => F, i = {}, f = (p) => p) {
|
|
737
|
+
return Y[t.title] = t, K[t.title] = r, te[t.title] = i, ne[t.title] = f, re[t.title] = t, oe[t.title] = r, ie[t.title] = i, ae[t.title] = f, (p = {}, F = !0) => {
|
|
738
738
|
if (!F)
|
|
739
|
-
return
|
|
740
|
-
const y =
|
|
739
|
+
return he(p, n);
|
|
740
|
+
const y = Fe(p, t, n), s = Object.keys(e).reduce((v, o) => (v[o] = e[o].default, v), {});
|
|
741
741
|
return Object.assign(s, y);
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function tt(e, t) {
|
|
745
745
|
if (!e || e.length < 1)
|
|
746
746
|
return null;
|
|
747
747
|
for (const n of e) {
|
|
@@ -755,23 +755,23 @@ function Ke(e, t) {
|
|
|
755
755
|
}
|
|
756
756
|
return null;
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function nt() {
|
|
759
759
|
function e(t, n) {
|
|
760
760
|
var F;
|
|
761
761
|
const r = (F = t.toolbar) == null ? void 0 : F.buttons;
|
|
762
762
|
if (!r || r.length < 1)
|
|
763
763
|
return null;
|
|
764
|
-
const [i, f] = n.payloads, p =
|
|
764
|
+
const [i, f] = n.payloads, p = tt(r, f);
|
|
765
765
|
return p ? p.onClick || p.click : null;
|
|
766
766
|
}
|
|
767
767
|
return {
|
|
768
768
|
resolve: e
|
|
769
769
|
};
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function rt(e, t, n) {
|
|
772
772
|
return t ? { enableAccordion: t } : { enableAccordion: "" };
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function ot(e, t) {
|
|
775
775
|
var r, i;
|
|
776
776
|
const n = {
|
|
777
777
|
buttons: t.buttons,
|
|
@@ -780,20 +780,20 @@ function nt(e, t) {
|
|
|
780
780
|
};
|
|
781
781
|
return (r = t.appearance) != null && r.class && (n.buttonsClass = (i = t.appearance) == null ? void 0 : i.class), n;
|
|
782
782
|
}
|
|
783
|
-
const
|
|
784
|
-
["appearance",
|
|
783
|
+
const it = /* @__PURE__ */ new Map([
|
|
784
|
+
["appearance", ye],
|
|
785
785
|
["expanded", "expandStatus"],
|
|
786
|
-
["enableAccordion",
|
|
787
|
-
["toolbar",
|
|
786
|
+
["enableAccordion", rt],
|
|
787
|
+
["toolbar", ot]
|
|
788
788
|
]);
|
|
789
|
-
function
|
|
789
|
+
function at(e, t) {
|
|
790
790
|
var f, p;
|
|
791
791
|
if (!(t != null && t.schema))
|
|
792
792
|
return;
|
|
793
793
|
const n = ((p = (f = t.schema) == null ? void 0 : f.appearance) == null ? void 0 : p.class) || "", r = t.elementRef, i = window.getComputedStyle(r);
|
|
794
794
|
i && i.display === "flex" && !n.includes("f-page-child-fill") && (e.appearance.class += " d-block");
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function lt(e, t) {
|
|
797
797
|
var y;
|
|
798
798
|
const n = Math.random().toString().slice(2, 6), r = t.parentComponentInstance, i = e.getSchemaByType("section");
|
|
799
799
|
Object.assign(i, {
|
|
@@ -820,12 +820,12 @@ function it(e, t) {
|
|
|
820
820
|
case G["content-container"].type:
|
|
821
821
|
p.isLikeCardContainer && F.includes("f-struct-like-card-child-fill") && (f.appearance.class += " f-struct-wrapper-child", i.fill = !0);
|
|
822
822
|
}
|
|
823
|
-
return
|
|
823
|
+
return at(f, r), f;
|
|
824
824
|
}
|
|
825
|
-
function
|
|
826
|
-
return n.parentComponentInstance ?
|
|
825
|
+
function st(e, t, n) {
|
|
826
|
+
return n.parentComponentInstance ? lt(e, n) : t;
|
|
827
827
|
}
|
|
828
|
-
const
|
|
828
|
+
const ct = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-design.gitee.io/section.schema.json", dt = "section", ft = "A Farris Container Component", mt = "object", pt = {
|
|
829
829
|
id: {
|
|
830
830
|
description: "The unique identifier for a Section",
|
|
831
831
|
type: "string"
|
|
@@ -1030,19 +1030,19 @@ const lt = "https://json-schema.org/draft/2020-12/schema", st = "https://farris-
|
|
|
1030
1030
|
type: "string",
|
|
1031
1031
|
default: "btn-secondary"
|
|
1032
1032
|
}
|
|
1033
|
-
},
|
|
1033
|
+
}, bt = [
|
|
1034
1034
|
"id",
|
|
1035
1035
|
"type",
|
|
1036
1036
|
"contents"
|
|
1037
|
-
],
|
|
1038
|
-
$schema:
|
|
1039
|
-
$id:
|
|
1040
|
-
title:
|
|
1041
|
-
description:
|
|
1042
|
-
type:
|
|
1043
|
-
properties:
|
|
1044
|
-
required:
|
|
1045
|
-
},
|
|
1037
|
+
], vt = {
|
|
1038
|
+
$schema: ct,
|
|
1039
|
+
$id: ut,
|
|
1040
|
+
title: dt,
|
|
1041
|
+
description: ft,
|
|
1042
|
+
type: mt,
|
|
1043
|
+
properties: pt,
|
|
1044
|
+
required: bt
|
|
1045
|
+
}, le = {
|
|
1046
1046
|
/**
|
|
1047
1047
|
* 设置内容区域样式
|
|
1048
1048
|
*/
|
|
@@ -1170,8 +1170,8 @@ const lt = "https://json-schema.org/draft/2020-12/schema", st = "https://farris-
|
|
|
1170
1170
|
// toolbarPosition: { type: String, default: '' },
|
|
1171
1171
|
// toolbarButtons: { type: Array<object>, default: [] },
|
|
1172
1172
|
// toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
|
|
1173
|
-
},
|
|
1174
|
-
function
|
|
1173
|
+
}, kt = et(le, vt, it, st), Rt = nt();
|
|
1174
|
+
function gt(e, t, n) {
|
|
1175
1175
|
let r;
|
|
1176
1176
|
function i(y = 1) {
|
|
1177
1177
|
const s = [
|
|
@@ -1207,19 +1207,19 @@ function bt(e, t, n) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
return { onClickMaxMinIcon: F };
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function se(e, t) {
|
|
1211
1211
|
const n = L(e.buttons), r = k(() => e.buttonPosition === "inHead" ? "right" : "left"), i = k(() => "f-section-toolbar col-6" + (e.buttonPosition === "inHead" ? " f-toolbar f-section-header--toolbar" : " f-section-content--toolbar") + (e.buttonsClass ? " " + e.buttonsClass : "")), f = k(() => e.buttons && e.buttons.length > 0 && e.buttonPosition === "inHead");
|
|
1212
1212
|
function p(s, v) {
|
|
1213
1213
|
t.emit("click", s, v);
|
|
1214
1214
|
}
|
|
1215
1215
|
function F() {
|
|
1216
|
-
return f.value && w(
|
|
1216
|
+
return f.value && w(Ce, J(Q(t.attrs), {
|
|
1217
1217
|
customClass: i.value,
|
|
1218
1218
|
items: n.value,
|
|
1219
1219
|
onClick: p,
|
|
1220
1220
|
alignment: r.value,
|
|
1221
1221
|
visible: e.buttonsVisible
|
|
1222
|
-
}, null);
|
|
1222
|
+
}), null);
|
|
1223
1223
|
}
|
|
1224
1224
|
function y() {
|
|
1225
1225
|
return w("div", {
|
|
@@ -1231,13 +1231,13 @@ function ae(e, t) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
return () => e.toolbarRenderFunction ? y() : F();
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function yt(e, t, n, r, i, f) {
|
|
1235
1235
|
const p = {
|
|
1236
1236
|
collapseLabel: Z.getRealPropertyValue(e.collapseLabel, "收起", "section.collapseLabel"),
|
|
1237
1237
|
expandLabel: Z.getRealPropertyValue(e.expandLabel, "展开", "section.expandLabel")
|
|
1238
|
-
}, F = k(() => e.buttonPosition), y =
|
|
1238
|
+
}, F = k(() => e.buttonPosition), y = se(e, t), {
|
|
1239
1239
|
onClickMaxMinIcon: s
|
|
1240
|
-
} =
|
|
1240
|
+
} = gt(r, i, f), v = k(() => e.enableMaximize), o = k(() => e.enableAccordion !== ""), l = k(() => $({
|
|
1241
1241
|
"f-section-header": !0
|
|
1242
1242
|
}, e.headerClass));
|
|
1243
1243
|
function m(P) {
|
|
@@ -1300,12 +1300,12 @@ function vt(e, t, n, r, i, f) {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
return () => e.showHeader && x();
|
|
1302
1302
|
}
|
|
1303
|
-
const
|
|
1303
|
+
const Ct = /* @__PURE__ */ pe({
|
|
1304
1304
|
name: "FSection",
|
|
1305
|
-
props:
|
|
1305
|
+
props: le,
|
|
1306
1306
|
emits: ["click"],
|
|
1307
1307
|
setup(e, t) {
|
|
1308
|
-
const n = L(), r = L(), i = L(e.customClass), f = k(() => e.enableAccordion), p = L(e.expandStatus), F = k(() => e.buttonPosition), y = L(!1), s =
|
|
1308
|
+
const n = L(), r = L(), i = L(e.customClass), f = k(() => e.enableAccordion), p = L(e.expandStatus), F = k(() => e.buttonPosition), y = L(!1), s = yt(e, t, p, n, r, y), v = se(e, t), o = k(() => {
|
|
1309
1309
|
const S = {
|
|
1310
1310
|
"f-section": !0,
|
|
1311
1311
|
"f-section-accordion": f.value === "default",
|
|
@@ -1348,22 +1348,22 @@ const gt = /* @__PURE__ */ fe({
|
|
|
1348
1348
|
style: c.value
|
|
1349
1349
|
}, [e.footerRenderFunction()]) : null;
|
|
1350
1350
|
}
|
|
1351
|
-
return
|
|
1351
|
+
return be(() => e.expandStatus, (S, x) => {
|
|
1352
1352
|
S !== x && (p.value = S);
|
|
1353
|
-
}),
|
|
1353
|
+
}), ve(() => {
|
|
1354
1354
|
n.value && n.value && (r.value = n.value.parentElement);
|
|
1355
|
-
}), () => e.visible ? w("div", {
|
|
1355
|
+
}), () => e.visible ? w("div", J(Q(t.attrs), {
|
|
1356
1356
|
class: o.value,
|
|
1357
1357
|
ref: n,
|
|
1358
1358
|
style: e.customStyle
|
|
1359
|
-
}, [s(), u(), a(), d()]) : null;
|
|
1359
|
+
}), [s(), u(), a(), d()]) : null;
|
|
1360
1360
|
}
|
|
1361
|
-
}),
|
|
1361
|
+
}), Mt = Object.assign({}, Se), jt = ge(Ct);
|
|
1362
1362
|
export {
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1363
|
+
Ct as Section,
|
|
1364
|
+
jt as default,
|
|
1365
|
+
Rt as eventHandlerResolver,
|
|
1366
|
+
kt as propsResolver,
|
|
1367
|
+
le as sectionProps,
|
|
1368
|
+
Mt as sectionToolbarItemProps
|
|
1369
1369
|
};
|