@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.
Files changed (61) hide show
  1. package/components/batch-editor/index.esm.js +6850 -6840
  2. package/components/batch-editor/index.umd.cjs +20 -20
  3. package/components/button/index.esm.js +6852 -6842
  4. package/components/button/index.umd.cjs +20 -20
  5. package/components/button-edit/index.esm.js +140 -140
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/button-group/index.esm.js +46 -45
  8. package/components/button-group/index.umd.cjs +1 -1
  9. package/components/common/index.esm.js +16 -12
  10. package/components/common/index.umd.cjs +1 -1
  11. package/components/component/index.esm.js +411 -411
  12. package/components/component/index.umd.cjs +2 -2
  13. package/components/data-view/index.esm.js +6500 -6487
  14. package/components/data-view/index.umd.cjs +21 -21
  15. package/components/designer-canvas/index.esm.js +269 -269
  16. package/components/designer-canvas/index.umd.cjs +1 -1
  17. package/components/expression-editor/index.esm.js +458 -458
  18. package/components/expression-editor/index.umd.cjs +2 -2
  19. package/components/filter-condition-editor/index.esm.js +386 -386
  20. package/components/filter-condition-editor/index.umd.cjs +1 -1
  21. package/components/flow-canvas/index.esm.js +1100 -1100
  22. package/components/flow-canvas/index.umd.cjs +7 -7
  23. package/components/mapping-editor/index.esm.js +243 -243
  24. package/components/mapping-editor/index.umd.cjs +2 -2
  25. package/components/message-box/index.esm.js +82 -82
  26. package/components/message-box/index.umd.cjs +1 -1
  27. package/components/modal/index.esm.js +76 -76
  28. package/components/modal/index.umd.cjs +1 -1
  29. package/components/order/index.esm.js +139 -138
  30. package/components/order/index.umd.cjs +1 -1
  31. package/components/query-solution/index.esm.js +891 -891
  32. package/components/query-solution/index.umd.cjs +1 -1
  33. package/components/response-toolbar/index.esm.js +151 -149
  34. package/components/response-toolbar/index.umd.cjs +1 -1
  35. package/components/schema-selector/index.esm.js +947 -941
  36. package/components/schema-selector/index.umd.cjs +6 -6
  37. package/components/section/index.esm.js +121 -121
  38. package/components/section/index.umd.cjs +2 -2
  39. package/components/sort-condition-editor/index.esm.js +539 -539
  40. package/components/sort-condition-editor/index.umd.cjs +1 -1
  41. package/components/tabs/index.esm.js +448 -442
  42. package/components/tabs/index.umd.cjs +1 -1
  43. package/designer/button-edit/index.esm.js +97 -97
  44. package/designer/button-edit/index.umd.cjs +1 -1
  45. package/designer/data-grid/index.esm.js +6483 -6470
  46. package/designer/data-grid/index.umd.cjs +21 -21
  47. package/designer/farris-designer.all.esm.js +1891 -1885
  48. package/designer/farris-designer.all.umd.cjs +14 -14
  49. package/designer/radio-group/index.esm.js +183 -183
  50. package/designer/radio-group/index.umd.cjs +2 -2
  51. package/designer/response-toolbar/index.esm.js +558 -556
  52. package/designer/response-toolbar/index.umd.cjs +1 -1
  53. package/designer/tabs/index.esm.js +416 -416
  54. package/designer/tabs/index.umd.cjs +2 -2
  55. package/farris.all.esm.js +9133 -9119
  56. package/farris.all.umd.cjs +35 -35
  57. package/package.json +1 -1
  58. package/types/common/index.d.ts +1 -0
  59. package/types/common/utils/attrs.d.ts +26 -0
  60. package/types/modal/src/composition/type.d.ts +2 -0
  61. 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 fe, watch as me, onMounted as pe } from "vue";
2
- import { getCustomClass as $, getCustomStyle as _, withInstall as be } from "../common/index.esm.js";
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 ve } from "../dynamic-resolver/index.esm.js";
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 ge from "../response-toolbar/index.esm.js";
6
+ import Ce from "../response-toolbar/index.esm.js";
7
7
  import { LocaleService as Z } from "../locale/index.esm.js";
8
- import { commonToolbarItemDesignProps as ye } from "../../designer/response-toolbar/index.esm.js";
9
- function J(e, t) {
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 Q = {}, X = {}, { resolveSchemaWithDefaultValue: Ce, resolveSchemaToProps: Se, mappingSchemaToProps: Te } = J(Q, X);
87
- function Fe(e = {}) {
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 he = {
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
- }, we = {
146
+ }, Pe = {
147
147
  convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
148
- }, xe = {
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
- }, Pe = {
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
- }, Oe = {
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 = Pe[r]) == null ? void 0 : i.name) || r;
223
+ return ((i = ke[r]) == null ? void 0 : i.name) || r;
224
224
  }
225
- }, ke = {
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
- }, Re = {
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
- }, Me = {
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
- }, je = {
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
- }, Ee = {
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
- }, Ne = {
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
- }, De = {
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
- }, ze = {
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
- }, Ae = {
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
- }, Le = {
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 He(e) {
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 Be(e, t, n, r) {
442
- const { getVariables: i, getControlName: f, getStateMachines: p } = He(e);
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 Ie = {
477
+ const Ve = {
478
478
  convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
479
- }, $e = {
479
+ }, qe = {
480
480
  convertFrom: (e, t) => e[t] || "",
481
481
  convertTo: (e, t, n) => {
482
482
  e[t] = n;
483
483
  }
484
- }, Ve = {
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
- }, qe = {
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
- }, _e = {
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
- }, We = {
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
- }, Ue = {
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
- }, Ge = {
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
- }, Ze = {
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
- }, Je = {
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 Y(e, t, n, r) {
564
+ function ee(e, t, n, r) {
565
565
  const i = /* @__PURE__ */ new Map([
566
- ["/converter/appearance.converter", he],
567
- ["/converter/buttons.converter", we],
568
- ["/converter/property-editor.converter", xe],
569
- ["/converter/items-count.converter", Ie],
570
- ["/converter/type.converter", Oe],
571
- ["/converter/change-editor.converter", ke],
572
- ["/converter/change-formatter.converter", Re],
573
- ["/converter/column-command.converter", Me],
574
- ["/converter/column-option.converter", je],
575
- ["/converter/summary.converter", Ee],
576
- ["/converter/group.converter", Ne],
577
- ["/converter/form-group-label.converter", $e],
578
- ["/converter/field-selector.converter", De],
579
- ["/converter/pagination.converter", ze],
580
- ["/converter/row-number.converter", Ae],
581
- ["/converter/grid-selection.converter", Le],
582
- ["/converter/size.converter", Ve],
583
- ["/converter/change-formatter-enum.converter", qe],
584
- ["/converter/grid-sort.converter", _e],
585
- ["/converter/grid-filter.converter", We],
586
- ["/converter/row-option.converter", Ue],
587
- ["/converter/change-formatter-type.converter", Ge],
588
- ["/converter/upload-options.converter", Je],
589
- ["/converter/tree-auto-check.converter", Ze]
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 = Fe();
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 le = k({
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: se, description: ce, isExpand: ue, parentPropertyID: de } = T, q = { propertyID: M, propertyName: b, propertyType: C, propertyValue: le, editor: D, visible: j, readonly: H, cascadeConfig: B, hideCascadeTitle: I, refreshPanelAfterChanged: se, description: ce, isExpand: ue, parentPropertyID: de };
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 = Be(
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 K = {}, ee = {};
733
- Y(K, ee, Ce);
734
- const te = {}, ne = {}, { resolveSchemaWithDefaultValue: Qe } = J(te, ne), re = {}, oe = {}, Xe = {};
735
- Y(re, oe, Qe, Xe);
736
- function Ye(e, t, n = /* @__PURE__ */ new Map(), r = (p, F, y, s) => F, i = {}, f = (p) => p) {
737
- return Q[t.title] = t, X[t.title] = r, K[t.title] = i, ee[t.title] = f, te[t.title] = t, ne[t.title] = r, re[t.title] = i, oe[t.title] = f, (p = {}, F = !0) => {
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 Te(p, n);
740
- const y = Se(p, t, n), s = Object.keys(e).reduce((v, o) => (v[o] = e[o].default, v), {});
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 Ke(e, t) {
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 et() {
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 = Ke(r, f);
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 tt(e, t, n) {
771
+ function rt(e, t, n) {
772
772
  return t ? { enableAccordion: t } : { enableAccordion: "" };
773
773
  }
774
- function nt(e, t) {
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 rt = /* @__PURE__ */ new Map([
784
- ["appearance", ve],
783
+ const it = /* @__PURE__ */ new Map([
784
+ ["appearance", ye],
785
785
  ["expanded", "expandStatus"],
786
- ["enableAccordion", tt],
787
- ["toolbar", nt]
786
+ ["enableAccordion", rt],
787
+ ["toolbar", ot]
788
788
  ]);
789
- function ot(e, t) {
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 it(e, t) {
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 ot(f, r), f;
823
+ return at(f, r), f;
824
824
  }
825
- function at(e, t, n) {
826
- return n.parentComponentInstance ? it(e, n) : t;
825
+ function st(e, t, n) {
826
+ return n.parentComponentInstance ? lt(e, n) : t;
827
827
  }
828
- const lt = "https://json-schema.org/draft/2020-12/schema", st = "https://farris-design.gitee.io/section.schema.json", ct = "section", ut = "A Farris Container Component", dt = "object", ft = {
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
- }, mt = [
1033
+ }, bt = [
1034
1034
  "id",
1035
1035
  "type",
1036
1036
  "contents"
1037
- ], pt = {
1038
- $schema: lt,
1039
- $id: st,
1040
- title: ct,
1041
- description: ut,
1042
- type: dt,
1043
- properties: ft,
1044
- required: mt
1045
- }, ie = {
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
- }, Pt = Ye(ie, pt, rt, at), Ot = et();
1174
- function bt(e, t, n) {
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 ae(e, t) {
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(ge, {
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 vt(e, t, n, r, i, f) {
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 = ae(e, t), {
1238
+ }, F = k(() => e.buttonPosition), y = se(e, t), {
1239
1239
  onClickMaxMinIcon: s
1240
- } = bt(r, i, f), v = k(() => e.enableMaximize), o = k(() => e.enableAccordion !== ""), l = k(() => $({
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 gt = /* @__PURE__ */ fe({
1303
+ const Ct = /* @__PURE__ */ pe({
1304
1304
  name: "FSection",
1305
- props: ie,
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 = vt(e, t, p, n, r, y), v = ae(e, t), o = k(() => {
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 me(() => e.expandStatus, (S, x) => {
1351
+ return be(() => e.expandStatus, (S, x) => {
1352
1352
  S !== x && (p.value = S);
1353
- }), pe(() => {
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
- }), kt = Object.assign({}, ye), Rt = be(gt);
1361
+ }), Mt = Object.assign({}, Se), jt = ge(Ct);
1362
1362
  export {
1363
- gt as Section,
1364
- Rt as default,
1365
- Ot as eventHandlerResolver,
1366
- Pt as propsResolver,
1367
- ie as sectionProps,
1368
- kt as sectionToolbarItemProps
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
  };