@farris/ui-vue 1.7.0-beta.3 → 1.7.0-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 (99) hide show
  1. package/components/avatar/index.esm.js +10 -1
  2. package/components/avatar/index.umd.cjs +1 -1
  3. package/components/calendar/index.esm.js +178 -176
  4. package/components/calendar/index.umd.cjs +2 -2
  5. package/components/collection-property-editor/index.esm.js +48 -46
  6. package/components/collection-property-editor/index.umd.cjs +2 -2
  7. package/components/combo-list/index.esm.js +319 -300
  8. package/components/combo-list/index.umd.cjs +1 -1
  9. package/components/comment/index.esm.js +2287 -1161
  10. package/components/comment/index.umd.cjs +7 -7
  11. package/components/component/index.esm.js +3 -1
  12. package/components/component/index.umd.cjs +2 -2
  13. package/components/condition/index.esm.js +926 -901
  14. package/components/condition/index.umd.cjs +2 -2
  15. package/components/data-view/index.esm.js +898 -899
  16. package/components/data-view/index.umd.cjs +1 -1
  17. package/components/drawer/index.esm.js +3 -1
  18. package/components/drawer/index.umd.cjs +2 -2
  19. package/components/dynamic-form/index.esm.js +239 -221
  20. package/components/dynamic-form/index.umd.cjs +1 -1
  21. package/components/dynamic-resolver/index.esm.js +11 -9
  22. package/components/dynamic-resolver/index.umd.cjs +2 -2
  23. package/components/expression-editor/index.esm.js +1299 -1279
  24. package/components/expression-editor/index.umd.cjs +4 -4
  25. package/components/filter-bar/index.esm.js +731 -678
  26. package/components/filter-bar/index.umd.cjs +2 -2
  27. package/components/filter-condition-editor/index.esm.js +1792 -1772
  28. package/components/filter-condition-editor/index.umd.cjs +4 -4
  29. package/components/image/index.esm.js +246 -240
  30. package/components/image/index.umd.cjs +2 -2
  31. package/components/language-textbox/index.esm.js +9 -7
  32. package/components/language-textbox/index.umd.cjs +2 -2
  33. package/components/list-view/index.esm.js +1 -1
  34. package/components/list-view/index.umd.cjs +1 -1
  35. package/components/locale/index.esm.js +2009 -886
  36. package/components/locale/index.umd.cjs +6 -6
  37. package/components/number-range/index.esm.js +190 -181
  38. package/components/number-range/index.umd.cjs +1 -1
  39. package/components/order/index.esm.js +734 -714
  40. package/components/order/index.umd.cjs +5 -5
  41. package/components/property-panel/index.esm.js +60 -49
  42. package/components/property-panel/index.umd.cjs +3 -3
  43. package/components/query-solution/index.esm.js +2461 -2500
  44. package/components/query-solution/index.umd.cjs +6 -6
  45. package/components/radio-group/index.esm.js +30 -30
  46. package/components/radio-group/index.umd.cjs +1 -1
  47. package/components/schema-selector/index.esm.js +238 -238
  48. package/components/schema-selector/index.umd.cjs +4 -4
  49. package/components/section/index.esm.js +217 -302
  50. package/components/section/index.umd.cjs +2 -2
  51. package/components/sort-condition-editor/index.esm.js +1793 -1773
  52. package/components/sort-condition-editor/index.umd.cjs +4 -4
  53. package/components/transfer/index.esm.js +155 -155
  54. package/components/transfer/index.umd.cjs +3 -3
  55. package/designer/data-grid/index.esm.js +895 -867
  56. package/designer/data-grid/index.umd.cjs +5 -5
  57. package/designer/data-view/index.esm.js +145 -144
  58. package/designer/data-view/index.umd.cjs +2 -2
  59. package/designer/drawer/index.esm.js +73 -71
  60. package/designer/drawer/index.umd.cjs +2 -2
  61. package/designer/dynamic-form/index.esm.js +87 -65
  62. package/designer/dynamic-form/index.umd.cjs +2 -2
  63. package/designer/farris-designer.all.esm.js +14 -3
  64. package/designer/farris-designer.all.umd.cjs +3 -3
  65. package/designer/input-group/index.esm.js +34 -14
  66. package/designer/input-group/index.umd.cjs +1 -1
  67. package/designer/list-view/index.esm.js +1 -1
  68. package/designer/list-view/index.umd.cjs +1 -1
  69. package/designer/radio-group/index.esm.js +15 -2
  70. package/designer/radio-group/index.umd.cjs +1 -1
  71. package/designer/section/index.esm.js +129 -119
  72. package/designer/section/index.umd.cjs +1 -1
  73. package/designer/time-picker/index.esm.js +140 -131
  74. package/designer/time-picker/index.umd.cjs +1 -1
  75. package/farris.all.esm.js +13578 -12394
  76. package/farris.all.umd.cjs +26 -26
  77. package/index.css +1 -1
  78. package/locales/data-grid/ui/en.json +2 -1
  79. package/locales/data-grid/ui/zh-CHS.json +2 -1
  80. package/locales/data-grid/ui/zh-CHT.json +2 -1
  81. package/locales/designer/en.json +12 -10
  82. package/locales/designer/zh-CHS.json +19 -17
  83. package/locales/designer/zh-CHT.json +19 -17
  84. package/locales/ui/en.json +4 -2
  85. package/locales/ui/zh-CHS.json +11 -9
  86. package/locales/ui/zh-CHT.json +11 -9
  87. package/package.json +1 -1
  88. package/package.zip +0 -0
  89. package/types/combo-list/src/composition/types.d.ts +1 -0
  90. package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +1 -1
  91. package/types/condition/src/composition/use-field-config.d.ts +1 -1
  92. package/types/condition/src/condition.props.d.ts +1 -1
  93. package/types/data-view/designer/property-config/use-command-option.d.ts +12 -0
  94. package/types/image/src/property-config/image.property-config.d.ts +5 -5
  95. package/types/locale/src/lib/locale.service.d.ts +2 -2
  96. package/types/property-panel/src/composition/entity/input-base-property.d.ts +7 -0
  97. package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +0 -20
  98. package/types/section/src/designer/section.design.props.d.ts +17 -0
  99. package/types/section/src/section.props.d.ts +0 -25
@@ -1,12 +1,12 @@
1
- import U, { sectionToolbarItemProps as V, sectionProps as N } from "../../components/section/index.esm.js";
2
- import { getCustomClass as R, withInstall as O } from "../../components/common/index.esm.js";
3
- import _, { schemaResolver as K, FResponseToolbarDesign as Z } from "../response-toolbar/index.esm.js";
4
- import { createPropsResolver as D, resolveAppearance as J, createSectionEventHandlerResolver as Q, getSchemaByType as W } from "../../components/dynamic-resolver/index.esm.js";
5
- import { responseToolbarProps as X } from "../../components/response-toolbar/index.esm.js";
6
- import { DgControl as A, canvasChanged as Y, UseTemplateDragAndDropRules as ee, useDragulaCommonRule as te, FDesignerInnerItem as ne, setPositionOfSelectedComponentBtnGroup as oe, useDesignerComponent as ie } from "../../components/designer-canvas/index.esm.js";
7
- import { computed as g, ref as P, createVNode as p, nextTick as se, defineComponent as re, inject as L, onMounted as ae } from "vue";
8
- import { BaseControlProperty as le } from "../../components/property-panel/index.esm.js";
9
- const ce = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-design.gitee.io/section-toolbar-item.schema.json", ue = "section-toolbar-item", pe = "A Farris Toolbar Item Component", fe = "object", me = {
1
+ import O, { sectionToolbarItemProps as _, sectionProps as z } from "../../components/section/index.esm.js";
2
+ import { getCustomClass as H, withInstall as K } from "../../components/common/index.esm.js";
3
+ import Z, { schemaResolver as J, FResponseToolbarDesign as Q } from "../response-toolbar/index.esm.js";
4
+ import { createPropsResolver as k, resolveAppearance as W, createSectionEventHandlerResolver as X, getSchemaByType as Y } from "../../components/dynamic-resolver/index.esm.js";
5
+ import { responseToolbarProps as ee } from "../../components/response-toolbar/index.esm.js";
6
+ import { DgControl as A, canvasChanged as te, UseTemplateDragAndDropRules as ne, useDragulaCommonRule as oe, FDesignerInnerItem as ie, setPositionOfSelectedComponentBtnGroup as se, useDesignerComponent as re } from "../../components/designer-canvas/index.esm.js";
7
+ import { computed as g, ref as P, createVNode as p, nextTick as ae, defineComponent as le, inject as N, onMounted as ce } from "vue";
8
+ import { BaseControlProperty as de } from "../../components/property-panel/index.esm.js";
9
+ const ue = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/section-toolbar-item.schema.json", fe = "section-toolbar-item", me = "A Farris Toolbar Item Component", he = "object", be = {
10
10
  id: {
11
11
  description: "The unique identifier for a Response Toolbar",
12
12
  type: "string"
@@ -74,26 +74,26 @@ const ce = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
74
74
  type: "boolean",
75
75
  default: !1
76
76
  }
77
- }, he = [
77
+ }, ye = [
78
78
  "id",
79
79
  "type",
80
80
  "text"
81
- ], be = {
81
+ ], ge = {
82
82
  onClick: "点击事件"
83
- }, ye = {
84
- $schema: ce,
85
- $id: de,
86
- title: ue,
87
- description: pe,
88
- type: fe,
89
- properties: me,
90
- required: he,
91
- events: be
92
- }, ge = D(V, ye);
93
- function ve(t, e, n) {
83
+ }, ve = {
84
+ $schema: ue,
85
+ $id: pe,
86
+ title: fe,
87
+ description: me,
88
+ type: he,
89
+ properties: be,
90
+ required: ye,
91
+ events: ge
92
+ }, Ce = k(_, ve);
93
+ function Te(t, e, n) {
94
94
  return e ? { enableAccordion: n.accordionMode } : { enableAccordion: "" };
95
95
  }
96
- function Ce(t, e) {
96
+ function Se(t, e) {
97
97
  var n;
98
98
  return {
99
99
  buttons: e.buttons,
@@ -102,20 +102,20 @@ function Ce(t, e) {
102
102
  buttonsVisible: e.visible
103
103
  };
104
104
  }
105
- const z = /* @__PURE__ */ new Map([
106
- ["appearance", J],
105
+ const j = /* @__PURE__ */ new Map([
106
+ ["appearance", W],
107
107
  ["expanded", "expandStatus"],
108
- ["enableAccordion", ve],
109
- ["toolbar", Ce]
108
+ ["enableAccordion", Te],
109
+ ["toolbar", Se]
110
110
  ]);
111
- function Te(t, e) {
111
+ function we(t, e) {
112
112
  var l, d;
113
113
  if (!(e != null && e.schema))
114
114
  return;
115
115
  const n = ((d = (l = e.schema) == null ? void 0 : l.appearance) == null ? void 0 : d.class) || "", a = e.elementRef, r = window.getComputedStyle(a);
116
116
  r && r.display === "flex" && !n.includes("f-page-child-fill") && (t.appearance.class += " d-block");
117
117
  }
118
- function we(t, e) {
118
+ function xe(t, e) {
119
119
  var f;
120
120
  const n = Math.random().toString().slice(2, 6), a = e.parentComponentInstance, r = t.getSchemaByType("section");
121
121
  Object.assign(r, {
@@ -133,21 +133,21 @@ function we(t, e) {
133
133
  },
134
134
  contents: [r]
135
135
  });
136
- const d = a.schema, w = ((f = d.appearance) == null ? void 0 : f.class) || "";
136
+ const d = a.schema, S = ((f = d.appearance) == null ? void 0 : f.class) || "";
137
137
  switch (d && d.type) {
138
138
  case A["splitter-pane"].type: {
139
- r.appearance.class = "f-section-in-main", w.includes("f-page-child-fill") && (l.appearance.class += " f-struct-wrapper-child", r.fill = !0);
139
+ r.appearance.class = "f-section-in-main", S.includes("f-page-child-fill") && (l.appearance.class += " f-struct-wrapper-child", r.fill = !0);
140
140
  break;
141
141
  }
142
142
  case A["content-container"].type:
143
- d.isLikeCardContainer && w.includes("f-struct-like-card-child-fill") && (l.appearance.class += " f-struct-wrapper-child", r.fill = !0), Te(l, a);
143
+ d.isLikeCardContainer && S.includes("f-struct-like-card-child-fill") && (l.appearance.class += " f-struct-wrapper-child", r.fill = !0), we(l, a);
144
144
  }
145
145
  return l;
146
146
  }
147
- function xe(t, e, n) {
148
- return n.parentComponentInstance ? we(t, n) : e;
147
+ function q(t, e, n) {
148
+ return n.parentComponentInstance ? xe(t, n) : e;
149
149
  }
150
- const Se = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-design.gitee.io/section.schema.json", Pe = "section", $e = "A Farris Container Component", Ae = "object", Ie = {
150
+ const Me = "https://json-schema.org/draft/2020-12/schema", Pe = "https://farris-design.gitee.io/section.schema.json", $e = "section", Ae = "A Farris Container Component", Re = "object", He = {
151
151
  id: {
152
152
  description: "The unique identifier for a Section",
153
153
  type: "string"
@@ -327,19 +327,19 @@ const Se = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-
327
327
  type: "function",
328
328
  default: null
329
329
  }
330
- }, Re = [
330
+ }, Ie = [
331
331
  "id",
332
332
  "type",
333
333
  "contents"
334
- ], Fe = {
335
- $schema: Se,
336
- $id: Me,
337
- title: Pe,
338
- description: $e,
339
- type: Ae,
340
- properties: Ie,
341
- required: Re
342
- }, ke = "https://json-schema.org/draft/2020-12/schema", He = "https://farris-design.gitee.io/section-toolbar.schema.json", De = "section-toolbar", je = "A Farris Toolbar Component", Be = "object", Ee = {
334
+ ], G = {
335
+ $schema: Me,
336
+ $id: Pe,
337
+ title: $e,
338
+ description: Ae,
339
+ type: Re,
340
+ properties: He,
341
+ required: Ie
342
+ }, Fe = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-design.gitee.io/section-toolbar.schema.json", De = "section-toolbar", je = "A Farris Toolbar Component", Be = "object", Ee = {
343
343
  id: {
344
344
  description: "The unique identifier for a Section Toolbar",
345
345
  type: "string"
@@ -385,21 +385,31 @@ const Se = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-
385
385
  ], Ne = {
386
386
  onClick: "点击事件"
387
387
  }, ze = {
388
- $schema: ke,
389
- $id: He,
388
+ $schema: Fe,
389
+ $id: ke,
390
390
  title: De,
391
391
  description: je,
392
392
  type: Be,
393
393
  properties: Ee,
394
394
  required: Le,
395
395
  events: Ne
396
- }, q = D(N, Fe, z, xe), qe = Q(), Ge = Object.assign({}, N, { componentId: { type: String, default: "" } }), Ue = D(
397
- X,
398
- ze,
396
+ }, qe = k(z, G, j, q), Ge = X(), U = Object.assign(
397
+ {},
399
398
  z,
400
- K
401
- );
402
- class Ve extends le {
399
+ {
400
+ componentId: { type: String, default: "" },
401
+ headerTitleHtml: { type: String, default: "" },
402
+ headerHtml: { type: String, default: "" },
403
+ headerContentHtml: { type: String, default: "" },
404
+ toolbarHtml: { type: String, default: "" }
405
+ }
406
+ ), Ue = k(
407
+ ee,
408
+ ze,
409
+ j,
410
+ J
411
+ ), Ve = k(U, G, j, q);
412
+ class Oe extends de {
403
413
  constructor(e, n) {
404
414
  super(e, n);
405
415
  }
@@ -508,7 +518,7 @@ class Ve extends le {
508
518
  }
509
519
  case "showHeader": {
510
520
  const r = document.getElementsByClassName("dgComponentFocused");
511
- Array.from(r).forEach((l) => l.classList.remove("dgComponentFocused")), Y.value++;
521
+ Array.from(r).forEach((l) => l.classList.remove("dgComponentFocused")), te.value++;
512
522
  break;
513
523
  }
514
524
  }
@@ -578,10 +588,10 @@ class Ve extends le {
578
588
  };
579
589
  }
580
590
  }
581
- function Oe(t, e) {
582
- const n = new ee(), a = t.schema;
591
+ function _e(t, e) {
592
+ const n = new ne(), a = t.schema;
583
593
  function r(o) {
584
- return new Ve(o, e).getPropertyConfig(a);
594
+ return new Oe(o, e).getPropertyConfig(a);
585
595
  }
586
596
  function l(o) {
587
597
  var u;
@@ -592,47 +602,47 @@ function Oe(t, e) {
592
602
  var u, m;
593
603
  const c = (e == null ? void 0 : e.schemaService).getTreeGridUdtFields(o);
594
604
  if (c) {
595
- const C = c.find((I) => I.key === i), T = C && C.field;
605
+ const C = c.find((R) => R.key === i), T = C && C.field;
596
606
  if ((m = (u = T == null ? void 0 : T.type) == null ? void 0 : u.name) != null && m.includes("PathHierarchyInfo"))
597
607
  return !0;
598
608
  }
599
609
  }
600
- function w(o) {
601
- var I;
610
+ function S(o) {
611
+ var R;
602
612
  if (!e)
603
613
  return !1;
604
- const i = (I = a.appearance) == null ? void 0 : I.class, { sourceType: s } = o, { formSchemaUtils: c } = e;
614
+ const i = (R = a.appearance) == null ? void 0 : R.class, { sourceType: s } = o, { formSchemaUtils: c } = e;
605
615
  if (!(i && i.includes("f-section-grid")))
606
616
  return !1;
607
617
  const m = c.getViewModelIdByComponentId(t.componentInstance.value.belongedComponentId), C = c.getViewModelById(m);
608
618
  if (C && C.bindTo !== "/")
609
619
  return !1;
610
- const T = c.selectNode(a, (j) => j.type === "tree-grid");
620
+ const T = c.selectNode(a, (B) => B.type === "tree-grid");
611
621
  if (T && !d(m, T.udtField))
612
622
  return !1;
613
623
  if (s === "move")
614
624
  return !0;
615
625
  if (s === "control") {
616
- if (a.contents && a.contents.find((H) => {
617
- var F, E;
618
- return H.type === A["content-container"].type && ((E = (F = H.appearance) == null ? void 0 : F.class) == null ? void 0 : E.includes("f-filter-container"));
626
+ if (a.contents && a.contents.find((D) => {
627
+ var I, L;
628
+ return D.type === A["content-container"].type && ((L = (I = D.appearance) == null ? void 0 : I.class) == null ? void 0 : L.includes("f-filter-container"));
619
629
  }))
620
630
  return !1;
621
- const B = c.getComponentById("root-component");
622
- if (B && c.selectNode(B, (F) => F.type === A["query-solution"].type))
631
+ const E = c.getComponentById("root-component");
632
+ if (E && c.selectNode(E, (I) => I.type === A["query-solution"].type))
623
633
  return !1;
624
634
  }
625
635
  return !0;
626
636
  }
627
637
  function f(o) {
628
638
  if (l(o))
629
- return w(o);
630
- if (!te().basalDragulaRuleForContainer(o, e))
639
+ return S(o);
640
+ if (!oe().basalDragulaRuleForContainer(o, e))
631
641
  return !1;
632
642
  const { canAccept: s } = n.getTemplateRule(t, e);
633
643
  return s;
634
644
  }
635
- function S() {
645
+ function x() {
636
646
  const { canDelete: o } = n.getTemplateRule(t, e);
637
647
  return o;
638
648
  }
@@ -648,7 +658,7 @@ function Oe(t, e) {
648
658
  o && (o.stopPropagation(), o.preventDefault());
649
659
  const { schema: i } = t;
650
660
  (!i.toolbar || !i.toolbar.buttons) && (i.toolbar = { id: `${i.id}_toolbar`, type: "section-toolbar", buttons: [] });
651
- const s = W("section-toolbar-item");
661
+ const s = Y("section-toolbar-item");
652
662
  s.id = `section_toolbar_item_${Math.random().toString().slice(2, 6)}`, i.toolbar.buttons.push(s);
653
663
  }
654
664
  function v() {
@@ -665,7 +675,7 @@ function Oe(t, e) {
665
675
  onClick: (m) => b(m)
666
676
  }];
667
677
  }
668
- function x() {
678
+ function w() {
669
679
  var c, u;
670
680
  if (!e)
671
681
  return;
@@ -677,14 +687,14 @@ function Oe(t, e) {
677
687
  return;
678
688
  const s = (m) => {
679
689
  m.forEach((C) => {
680
- const T = o.findIndex((I) => I.target === C.id);
690
+ const T = o.findIndex((R) => R.target === C.id);
681
691
  T > -1 && o.splice(T, 1), C.children && C.children.length && s(C.children);
682
692
  });
683
693
  };
684
694
  s(i.toolbar.buttons);
685
695
  }
686
696
  function $() {
687
- x();
697
+ w();
688
698
  }
689
699
  function M() {
690
700
  var o, i;
@@ -709,7 +719,7 @@ function Oe(t, e) {
709
719
  }
710
720
  return {
711
721
  canAccepts: f,
712
- checkCanDeleteComponent: S,
722
+ checkCanDeleteComponent: x,
713
723
  checkCanMoveComponent: y,
714
724
  hideNestedPaddingInDesginerView: h,
715
725
  getPropsConfig: r,
@@ -718,10 +728,10 @@ function Oe(t, e) {
718
728
  setComponentBasicInfoMap: M
719
729
  };
720
730
  }
721
- function _e(t, e, n) {
731
+ function Ke(t, e, n) {
722
732
  let a;
723
733
  function r(f = 1) {
724
- const S = [
734
+ const x = [
725
735
  "body>.f-datagrid-settings-simple-host",
726
736
  "body>div",
727
737
  "body>farris-dialog>.farris-modal.show",
@@ -731,9 +741,9 @@ function _e(t, e, n) {
731
741
  "body>.popover.show",
732
742
  "body>filter-row-panel>.f-datagrid-filter-panel",
733
743
  "body>.f-section-maximize"
734
- ], y = Array.from(document.body.querySelectorAll(S.join(","))).filter((b) => b).map((b) => {
735
- const { display: v, zIndex: x } = window.getComputedStyle(b);
736
- return v === "none" ? 0 : parseInt(x, 10);
744
+ ], y = Array.from(document.body.querySelectorAll(x.join(","))).filter((b) => b).map((b) => {
745
+ const { display: v, zIndex: w } = window.getComputedStyle(b);
746
+ return v === "none" ? 0 : parseInt(w, 10);
737
747
  }).filter((b) => b);
738
748
  let h = Math.max(...y);
739
749
  return h < 1040 && (h = 1040), h + f;
@@ -749,30 +759,30 @@ function _e(t, e, n) {
749
759
  a
750
760
  ) : e.value.appendChild(t.value), t.value.style.zIndex = null;
751
761
  }
752
- function w() {
762
+ function S() {
753
763
  !t || !e.value || (n.value = !n.value, n.value ? l() : d());
754
764
  }
755
- return { onClickMaxMinIcon: w };
765
+ return { onClickMaxMinIcon: S };
756
766
  }
757
- function G(t, e) {
767
+ function V(t, e) {
758
768
  var h;
759
769
  const n = g(() => "f-section-toolbar col-6" + (t.buttonPosition === "inHead" ? " f-toolbar f-section-header--toolbar" : " f-section-content--toolbar") + (t.buttonsClass ? " " + t.buttonsClass : "")), a = P(t.buttons), r = P(e.schema.toolbar);
760
770
  r.value && !r.value.type && (r.value.type = "section-toolbar");
761
- const l = t.componentId, d = `${l}-toolbar`, w = g(() => t.buttonPosition === "inHead" ? "right" : "left");
762
- function f(b, v, x, $) {
771
+ const l = t.componentId, d = `${l}-toolbar`, S = g(() => t.buttonPosition === "inHead" ? "right" : "left");
772
+ function f(b, v, w, $) {
763
773
  var M;
764
- (M = e.setupContext) == null || M.emit("selectionChange", b, v, x, $);
774
+ (M = e.setupContext) == null || M.emit("selectionChange", b, v, w, $);
765
775
  }
766
- function S() {
776
+ function x() {
767
777
  var b, v;
768
778
  return (v = (b = r.value) == null ? void 0 : b.buttons) != null && v.length ? p("div", {
769
779
  class: n.value
770
780
  }, [p("div", {
771
781
  class: "w-100",
772
782
  style: "flex:1"
773
- }, [p(ne, {
783
+ }, [p(ie, {
774
784
  modelValue: r.value,
775
- "onUpdate:modelValue": (x) => r.value = x,
785
+ "onUpdate:modelValue": (w) => r.value = w,
776
786
  class: "w-100 position-relative",
777
787
  canAdd: !1,
778
788
  childType: "section-toolbar-item",
@@ -782,10 +792,10 @@ function G(t, e) {
782
792
  onSelectionChange: f,
783
793
  componentId: l
784
794
  }, {
785
- default: () => [p(_, {
795
+ default: () => [p(Z, {
786
796
  customClass: "d-block text-right",
787
797
  items: a.value,
788
- alignment: w.value,
798
+ alignment: S.value,
789
799
  componentId: l
790
800
  }, null)]
791
801
  })])]) : null;
@@ -799,20 +809,20 @@ function G(t, e) {
799
809
  innerHTML: t.toolbarHtml.trim()
800
810
  }, null)]);
801
811
  }
802
- return (h = t.toolbarHtml) != null && h.trim() ? y() : S();
812
+ return (h = t.toolbarHtml) != null && h.trim() ? y() : x();
803
813
  }
804
- function Ke(t, e, n, a, r, l, d) {
805
- const w = g(() => t.buttonPosition), {
814
+ function Ze(t, e, n, a, r, l, d) {
815
+ const S = g(() => t.buttonPosition), {
806
816
  onClickMaxMinIcon: f
807
- } = _e(a, r, l), S = g(() => t.enableMaximize), y = g(() => t.enableAccordion !== ""), h = g(() => {
817
+ } = Ke(a, r, l), x = g(() => t.enableMaximize), y = g(() => t.enableAccordion !== ""), h = g(() => {
808
818
  let s = {
809
819
  "f-section-header": !0
810
820
  };
811
- return e.slots.header && (s = R(s, t.headerClass)), s;
821
+ return e.slots.header && (s = H(s, t.headerClass)), s;
812
822
  });
813
823
  function b(s) {
814
- s.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value, se(() => {
815
- oe(d.designerItemElementRef.value);
824
+ s.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value, ae(() => {
825
+ se(d.designerItemElementRef.value);
816
826
  }));
817
827
  }
818
828
  function v() {
@@ -828,7 +838,7 @@ function Ke(t, e, n, a, r, l, d) {
828
838
  }));
829
839
  return p("div", {
830
840
  class: "f-max-accordion"
831
- }, [S.value ? p("span", {
841
+ }, [x.value ? p("span", {
832
842
  class: c.value,
833
843
  onClick: f
834
844
  }, null) : "", y.value ? p("button", {
@@ -836,7 +846,7 @@ function Ke(t, e, n, a, r, l, d) {
836
846
  onClick: b
837
847
  }, [p("span", null, [n.value ? t.collapseLabel : t.expandLabel])]) : ""]);
838
848
  }
839
- function x() {
849
+ function w() {
840
850
  return p("div", {
841
851
  class: "f-title"
842
852
  }, [p("h4", {
@@ -844,7 +854,7 @@ function Ke(t, e, n, a, r, l, d) {
844
854
  }, [t.mainTitle]), t.subTitle && p("span", null, [t.subTitle])]);
845
855
  }
846
856
  function $() {
847
- const s = g(() => R({
857
+ const s = g(() => H({
848
858
  "f-content": !0
849
859
  }, t.headerContentClass));
850
860
  return e.slots.headerContent ? p("div", {
@@ -857,12 +867,12 @@ function Ke(t, e, n, a, r, l, d) {
857
867
  function M() {
858
868
  return e.slots.headerTitle ? e.slots.headerTitle() : t.headerTitleHtml ? p("div", {
859
869
  innerHTML: t.headerTitleHtml
860
- }, null) : x();
870
+ }, null) : w();
861
871
  }
862
872
  function o() {
863
873
  return p("div", {
864
874
  class: h.value
865
- }, [M(), $(), w.value === "inHead" && G(t, d), (S.value || y.value) && v()]);
875
+ }, [M(), $(), S.value === "inHead" && V(t, d), (x.value || y.value) && v()]);
866
876
  }
867
877
  function i() {
868
878
  return e.slots.header ? p("div", {
@@ -874,16 +884,16 @@ function Ke(t, e, n, a, r, l, d) {
874
884
  }
875
885
  return () => t.showHeader && i();
876
886
  }
877
- const k = /* @__PURE__ */ re({
887
+ const F = /* @__PURE__ */ le({
878
888
  name: "FSectionDesign",
879
- props: Ge,
889
+ props: U,
880
890
  emits: [],
881
891
  setup(t, e) {
882
- const n = P(), a = P(), r = P(), l = L("designer-host-service"), d = L("design-item-context"), w = Oe(d, l), f = ie(n, d, w);
883
- f.value.styles = "display: inherit;", ae(() => {
892
+ const n = P(), a = P(), r = P(), l = N("designer-host-service"), d = N("design-item-context"), S = _e(d, l), f = re(n, d, S);
893
+ f.value.styles = "display: inherit;", ce(() => {
884
894
  n.value.componentInstance = f;
885
895
  }), e.expose(f.value);
886
- const S = P(t.customClass), y = g(() => t.enableAccordion), h = P(!0), b = g(() => t.buttonPosition), v = P(!1), x = Ke(t, e, h, a, r, v, d), $ = g(() => {
896
+ const x = P(t.customClass), y = g(() => t.enableAccordion), h = P(!0), b = g(() => t.buttonPosition), v = P(!1), w = Ze(t, e, h, a, r, v, d), $ = g(() => {
887
897
  const u = {
888
898
  "f-section": !0,
889
899
  "f-section-accordion": y.value === "default",
@@ -894,13 +904,13 @@ const k = /* @__PURE__ */ re({
894
904
  "f-utils-fill": !0,
895
905
  "p-0": !0
896
906
  };
897
- return R(u, S.value);
898
- }), M = g(() => R({
907
+ return H(u, x.value);
908
+ }), M = g(() => H({
899
909
  "f-section-content": !0,
900
910
  "drag-container": !0
901
911
  }, t.contentClass)), o = g(() => ({
902
912
  visibility: (y.value === "default" || y.value === "custom") && !h.value ? "hidden" : "visible"
903
- })), i = g(() => R({
913
+ })), i = g(() => H({
904
914
  "f-section-extend": !0
905
915
  }, i.value));
906
916
  function s() {
@@ -914,22 +924,22 @@ const k = /* @__PURE__ */ re({
914
924
  ref: n,
915
925
  "data-dragref": `${d.schema.id}-container`,
916
926
  style: o.value
917
- }, [b.value === "inContent" && G(t, d), e.slots.default && e.slots.default()]);
927
+ }, [b.value === "inContent" && V(t, d), e.slots.default && e.slots.default()]);
918
928
  }
919
929
  return () => p("div", {
920
930
  class: $.value,
921
931
  ref: a,
922
932
  style: t.customStyle
923
- }, [x(), s(), c()]);
933
+ }, [w(), s(), c()]);
924
934
  }
925
935
  });
926
- k.register = (t, e, n, a) => {
927
- t.section = U, e.section = q, a.section = { eventHandlerResolver: qe };
936
+ F.register = (t, e, n, a) => {
937
+ t.section = O, e.section = qe, a.section = { eventHandlerResolver: Ge };
928
938
  };
929
- k.registerDesigner = (t, e, n) => {
930
- t.section = k, e.section = q, e["section-toolbar-item"] = ge, t["section-toolbar"] = Z, e["section-toolbar"] = Ue;
939
+ F.registerDesigner = (t, e, n) => {
940
+ t.section = F, e.section = Ve, e["section-toolbar-item"] = Ce, t["section-toolbar"] = Q, e["section-toolbar"] = Ue;
931
941
  };
932
- const nt = O(k);
942
+ const ot = K(F);
933
943
  export {
934
- nt as default
944
+ ot as default
935
945
  };
@@ -1 +1 @@
1
- (function(h,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("../../components/section/index.umd.js"),require("../../components/common/index.umd.js"),require("../response-toolbar/index.umd.js"),require("../../components/dynamic-resolver/index.umd.js"),require("../../components/response-toolbar/index.umd.js"),require("../../components/designer-canvas/index.umd.js"),require("vue"),require("../../components/property-panel/index.umd.js")):typeof define=="function"&&define.amd?define(["../../components/section/index.umd.js","../../components/common/index.umd.js","../response-toolbar/index.umd.js","../../components/dynamic-resolver/index.umd.js","../../components/response-toolbar/index.umd.js","../../components/designer-canvas/index.umd.js","vue","../../components/property-panel/index.umd.js"],w):(h=typeof globalThis<"u"?globalThis:h||self,h.section=w(h.Section,h.common,h.FResponseToolbarDesign,h.dynamicResolver,h.responseToolbar,h.designerCanvas,h.Vue,h.propertyPanel))})(this,function(h,w,V,N,L,C,n,z){"use strict";const G={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/section-toolbar-item.schema.json",title:"section-toolbar-item",description:"A Farris Toolbar Item Component",type:"object",properties:{id:{description:"The unique identifier for a Response Toolbar",type:"string"},type:{description:"The type string of Response Toolbar",type:"string",default:"section-toolbar-item"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},text:{description:"按钮",type:"string",default:"按钮"},icon:{description:"图标",type:"string",default:""},disabled:{description:"禁用",type:"boolean",default:!1},visible:{description:"是否可见",type:"boolean",default:!0},onClick:{description:"点击事件",type:"string",default:""},tipsEnable:{description:"",type:"boolean",default:!1},tipsText:{description:"",type:"string",default:""},dropdownClass:{description:"处于下拉菜单时的样式",type:"string",default:""},split:{description:"",type:"boolean",default:!1}},required:["id","type","text"],events:{onClick:"点击事件"}},U=N.createPropsResolver(h.sectionToolbarItemProps,G);function _(t,e,o){return e?{enableAccordion:o.accordionMode}:{enableAccordion:""}}function O(t,e){var o;return{buttons:e.buttons,buttonPosition:e.position,buttonsClass:(o=e.appearance)==null?void 0:o.class,buttonsVisible:e.visible}}const H=new Map([["appearance",N.resolveAppearance],["expanded","expandStatus"],["enableAccordion",_],["toolbar",O]]);function K(t,e){var d,p;if(!(e!=null&&e.schema))return;const o=((p=(d=e.schema)==null?void 0:d.appearance)==null?void 0:p.class)||"",l=e.elementRef,a=window.getComputedStyle(l);a&&a.display==="flex"&&!o.includes("f-page-child-fill")&&(t.appearance.class+=" d-block")}function Z(t,e){var f;const o=Math.random().toString().slice(2,6),l=e.parentComponentInstance,a=t.getSchemaByType("section");Object.assign(a,{id:`section-${o}`,appearance:{class:"f-section-in-mainsubcard"},mainTitle:e.mainTitle||a.mainTitle||"标题"});const d=t.getSchemaByType("content-container");Object.assign(d,{id:`container-${o}`,appearance:{class:"f-struct-wrapper"},contents:[a]});const p=l.schema,x=((f=p.appearance)==null?void 0:f.class)||"";switch(p&&p.type){case C.DgControl["splitter-pane"].type:{a.appearance.class="f-section-in-main",x.includes("f-page-child-fill")&&(d.appearance.class+=" f-struct-wrapper-child",a.fill=!0);break}case C.DgControl["content-container"].type:p.isLikeCardContainer&&x.includes("f-struct-like-card-child-fill")&&(d.appearance.class+=" f-struct-wrapper-child",a.fill=!0),K(d,l)}return d}function J(t,e,o){return o.parentComponentInstance?Z(t,o):e}const Q={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/section.schema.json",title:"section",description:"A Farris Container Component",type:"object",properties:{id:{description:"The unique identifier for a Section",type:"string"},type:{description:"The type string of Section component",type:"string",default:"section"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},contentClass:{description:"",type:"string",default:""},contents:{description:"",type:"array",default:[]},enableAccordion:{description:"",type:"string",default:""},accordionMode:{description:"",type:"string",default:"default"},enableMaximize:{description:"",type:"boolean",default:!1},expanded:{description:"",type:"boolean",default:!0},fill:{description:"",type:"boolean",default:!1},headerClass:{description:"",type:"string",default:""},size:{description:"",type:"object",properties:{width:{type:"number"},height:{type:"number"}},default:null},showHeader:{description:"",type:"string",default:!0},mainTitle:{description:"",type:"string",default:""},subTitle:{description:"",type:"string",default:""},headerContentClass:{description:"",type:"string",default:""},extendClass:{description:"",type:"string",default:""},visible:{description:"",type:"boolean",default:!0},expandStatus:{description:"",type:"boolean",default:!0},toolbar:{description:"",type:"object",properties:{type:{type:"string",default:"section-toolbar"},position:{type:"string",default:"inHead"},buttons:{type:"array",default:[]},appearance:{description:"",type:"object",properties:{class:{type:"string",default:""}}}},default:null},headerTitleHtml:{description:"",type:"string",default:""},headerTitleRenderFunction:{description:"",type:"function",default:null},headerHtml:{description:"",type:"string",default:""},headerRenderFunction:{description:"",type:"function",default:null},headerContentHtml:{description:"",type:"string",default:""},headerContentRenderFunction:{description:"",type:"function",default:null},toolbarHtml:{description:"",type:"string",default:""},toolbarRenderFunction:{description:"",type:"function",default:null}},required:["id","type","contents"]},W={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/section-toolbar.schema.json",title:"section-toolbar",description:"A Farris Toolbar Component",type:"object",properties:{id:{description:"The unique identifier for a Section Toolbar",type:"string"},type:{description:"The type string of Section Toolbar",type:"string",default:"section-toolbar"},appearance:{description:"",type:"object",properties:{class:{type:"string",default:""}}},alignment:{description:"The alignment of Section Toolbar Button.",type:"string",default:"right"},buttons:{description:"The items of Section Toolbar.",type:"array",default:[]},buttonSize:{type:"string",default:""},visible:{description:"",type:"boolean",default:!0}},required:["id","type","buttons"],events:{onClick:"点击事件"}},F=N.createPropsResolver(h.sectionProps,Q,H,J),X=N.createSectionEventHandlerResolver(),Y=Object.assign({},h.sectionProps,{componentId:{type:String,default:""}}),ee=N.createPropsResolver(L.responseToolbarProps,W,H,V.schemaResolver);class te extends z.BaseControlProperty{constructor(e,o){super(e,o)}getPropertyConfig(e){const o=this.getBasicPropConfig(e),l=this.getAppearanceProperties(e),a=this.getBehaviorConfig(e,""),d=this.getExtendConfig(e),p=this.getHeaderTemplateConfig(e);return this.propertyConfig.categories={basic:o,appearance:l,behavior:a,headerTemplate:p,extend:d},this.propertyConfig}getAppearanceProperties(e){return{title:"外观",description:"Appearance",properties:{class:{description:"组件的CSS样式",title:"class样式"},style:{description:"组件的内容样式",title:"style样式"},fill:{title:"填充内容区域",type:"boolean",description:""},showHeader:{title:"显示标题栏区域",type:"boolean",description:"",refreshPanelAfterChanged:!0},mainTitle:{title:"主标题",type:"string",description:"",visible:{showHeader:!0}},subTitle:{title:"副标题",type:"string",description:"",visible:{showHeader:!0}},enableAccordion:{title:"面板收折",type:"enum",description:"是否启用分组面板的收折特性",editor:{type:"combo-list",textField:"value",valueField:"key",idField:"key",editable:!1,data:[{key:"",value:"不启用"},{key:"default",value:"启用默认收折"}]},refreshPanelAfterChanged:!0},expandStatus:{title:"默认状态",type:"boolean",description:"默认面板是展开还是收起",editor:{type:"combo-list",textField:"name",valueField:"value",data:[{name:"展开",value:!0},{name:"收起",value:!1}],enableClear:!1},visible:e.enableAccordion==="default"}},setPropertyRelates(o,l){if(o)switch(o&&o.propertyID){case"mainTitle":{o.needRefreshControlTree=!0;break}case"showHeader":{const a=document.getElementsByClassName("dgComponentFocused");Array.from(a).forEach(d=>d.classList.remove("dgComponentFocused")),C.canvasChanged.value++;break}}}}}getExtendConfig(e){return{title:"扩展",description:"",properties:{contentClass:{title:"内容区域class",type:"string",description:"指定内容区域class样式"}}}}getHeaderTemplateConfig(e){return{title:"标题栏模板配置",description:"",hide:e.showHeader===!1,properties:{headerHtml:{title:"标题栏模板",type:"string",description:"设置标题栏HTML模板,会影响收折、最大化这些展示,其他自定义模版指定失效。",refreshPanelAfterChanged:!0,editor:{type:"code-editor",language:"html"}},headerTitleHtml:{title:"标题模板",type:"string",description:"设置头部HTML模板,会影响收折、最大化这些展示,其他自定义模版指定失效。",refreshPanelAfterChanged:!0,editor:{type:"code-editor",language:"html"}},headerContentHtml:{title:"内容模板",type:"string",description:"为跟在标题后面的内容,指定HTML模板",refreshPanelAfterChanged:!0,editor:{type:"code-editor",language:"html"}},toolbarHtml:{title:"工具栏模板",type:"string",description:"为工具栏区域指定HTML模板",refreshPanelAfterChanged:!0,editor:{type:"code-editor",language:"html"}}}}}}function ne(t,e){const o=new C.UseTemplateDragAndDropRules,l=t.schema;function a(i){return new te(i,e).getPropertyConfig(l)}function d(i){var u;const{componentType:r,sourceType:s,sourceElement:c}=i;return!!(s==="control"&&r===C.DgControl["filter-bar"].type||s==="move"&&r===C.DgControl["content-container"].type&&((u=c==null?void 0:c.className)!=null&&u.includes("f-filter-container")))}function p(i,r){var u,m;const c=(e==null?void 0:e.schemaService).getTreeGridUdtFields(i);if(c){const v=c.find(j=>j.key===r),$=v&&v.field;if((m=(u=$==null?void 0:$.type)==null?void 0:u.name)!=null&&m.includes("PathHierarchyInfo"))return!0}}function x(i){var j;if(!e)return!1;const r=(j=l.appearance)==null?void 0:j.class,{sourceType:s}=i,{formSchemaUtils:c}=e;if(!(r&&r.includes("f-section-grid")))return!1;const m=c.getViewModelIdByComponentId(t.componentInstance.value.belongedComponentId),v=c.getViewModelById(m);if(v&&v.bindTo!=="/")return!1;const $=c.selectNode(l,q=>q.type==="tree-grid");if($&&!p(m,$.udtField))return!1;if(s==="move")return!0;if(s==="control"){if(l.contents&&l.contents.find(D=>{var k,E;return D.type===C.DgControl["content-container"].type&&((E=(k=D.appearance)==null?void 0:k.class)==null?void 0:E.includes("f-filter-container"))}))return!1;const B=c.getComponentById("root-component");if(B&&c.selectNode(B,k=>k.type===C.DgControl["query-solution"].type))return!1}return!0}function f(i){if(d(i))return x(i);if(!C.useDragulaCommonRule().basalDragulaRuleForContainer(i,e))return!1;const{canAccept:s}=o.getTemplateRule(t,e);return s}function M(){const{canDelete:i}=o.getTemplateRule(t,e);return i}function g(){const{canMove:i}=o.getTemplateRule(t,e);return i}function y(){const{canMove:i,canDelete:r}=o.getTemplateRule(t,e);return!i&&!r}function b(i){i&&(i.stopPropagation(),i.preventDefault());const{schema:r}=t;(!r.toolbar||!r.toolbar.buttons)&&(r.toolbar={id:`${r.id}_toolbar`,type:"section-toolbar",buttons:[]});const s=N.getSchemaByType("section-toolbar-item");s.id=`section_toolbar_item_${Math.random().toString().slice(2,6)}`,r.toolbar.buttons.push(s)}function T(){var u;const{schema:i}=t,r=e==null?void 0:e.formSchemaUtils;if(i.showHeader===!1||!r)return;const s=r.selectNode(i,m=>m.type===C.DgControl["response-form"].type),c=((u=i.toolbar)==null?void 0:u.buttons)||[];if(!s&&c.length===0)return[{id:"appendToolbar",title:"新增按钮",icon:"f-icon f-icon-plus-circle text-white",onClick:m=>b(m)}]}function P(){var c,u;if(!e)return;const i=e.formSchemaUtils.getExpressions();if(!i||!i.length)return;const{schema:r}=t;if(!((u=(c=r.toolbar)==null?void 0:c.buttons)!=null&&u.length))return;const s=m=>{m.forEach(v=>{const $=i.findIndex(j=>j.target===v.id);$>-1&&i.splice($,1),v.children&&v.children.length&&s(v.children)})};s(r.toolbar.buttons)}function A(){P()}function S(){var i,r;if(t&&e){const{formSchemaUtils:s}=e,c=s.getControlBasicInfoMap(),{schema:u}=t;c.set(u.id,{componentTitle:u.mainTitle,parentPathName:u.mainTitle}),(r=(i=u.toolbar)==null?void 0:i.buttons)!=null&&r.length&&u.toolbar.buttons.map(m=>{var v;c.set(m.id,{componentTitle:m.text,parentPathName:`${u.mainTitle} > ${m.text}`}),(v=m.children)!=null&&v.length&&m.children.map($=>{c.set($.id,{componentTitle:$.text,parentPathName:`${u.mainTitle} > ${$.text}`})})})}}return{canAccepts:f,checkCanDeleteComponent:M,checkCanMoveComponent:g,hideNestedPaddingInDesginerView:y,getPropsConfig:a,getCustomButtons:T,onRemoveComponent:A,setComponentBasicInfoMap:S}}function oe(t,e,o){let l;function a(f=1){const M=["body>.f-datagrid-settings-simple-host","body>div","body>farris-dialog>.farris-modal.show","body>.farris-modal.show","body>farris-filter-panel>.f-filter-panel-wrapper","body .f-sidebar-show>.f-sidebar-main","body>.popover.show","body>filter-row-panel>.f-datagrid-filter-panel","body>.f-section-maximize"],g=Array.from(document.body.querySelectorAll(M.join(","))).filter(b=>b).map(b=>{const{display:T,zIndex:P}=window.getComputedStyle(b);return T==="none"?0:parseInt(P,10)}).filter(b=>b);let y=Math.max(...g);return y<1040&&(y=1040),y+f}function d(){l=t.value.nextElementSibling;const f=document&&document.querySelector("body");f&&(f.appendChild(t.value),t.value.style.zIndex=a())}function p(){l?e.value.insertBefore(t.value,l):e.value.appendChild(t.value),t.value.style.zIndex=null}function x(){!t||!e.value||(o.value=!o.value,o.value?d():p())}return{onClickMaxMinIcon:x}}function R(t,e){var y;const o=n.computed(()=>"f-section-toolbar col-6"+(t.buttonPosition==="inHead"?" f-toolbar f-section-header--toolbar":" f-section-content--toolbar")+(t.buttonsClass?" "+t.buttonsClass:"")),l=n.ref(t.buttons),a=n.ref(e.schema.toolbar);a.value&&!a.value.type&&(a.value.type="section-toolbar");const d=t.componentId,p=`${d}-toolbar`,x=n.computed(()=>t.buttonPosition==="inHead"?"right":"left");function f(b,T,P,A){var S;(S=e.setupContext)==null||S.emit("selectionChange",b,T,P,A)}function M(){var b,T;return(T=(b=a.value)==null?void 0:b.buttons)!=null&&T.length?n.createVNode("div",{class:o.value},[n.createVNode("div",{class:"w-100",style:"flex:1"},[n.createVNode(C.FDesignerInnerItem,{modelValue:a.value,"onUpdate:modelValue":P=>a.value=P,class:"w-100 position-relative",canAdd:!1,childType:"section-toolbar-item",childLabel:"按钮",contentKey:"buttons",id:p,onSelectionChange:f,componentId:d},{default:()=>[n.createVNode(V,{customClass:"d-block text-right",items:l.value,alignment:x.value,componentId:d},null)]})])]):null}function g(){return n.createVNode("div",{class:o.value},[n.createVNode("div",{class:"w-100",style:"flex:1",innerHTML:t.toolbarHtml.trim()},null)])}return(y=t.toolbarHtml)!=null&&y.trim()?g():M()}function ie(t,e,o,l,a,d,p){const x=n.computed(()=>t.buttonPosition),{onClickMaxMinIcon:f}=oe(l,a,d),M=n.computed(()=>t.enableMaximize),g=n.computed(()=>t.enableAccordion!==""),y=n.computed(()=>{let s={"f-section-header":!0};return e.slots.header&&(s=w.getCustomClass(s,t.headerClass)),s});function b(s){s.stopPropagation(),t.enableAccordion!==""&&(o.value=!o.value,n.nextTick(()=>{C.setPositionOfSelectedComponentBtnGroup(p.designerItemElementRef.value)}))}function T(){const s=n.computed(()=>({btn:!0,"f-btn-collapse-expand":!0,"f-btn-mx":!0,"f-state-expand":o.value})),c=n.computed(()=>({"f-icon":!0,"f-icon-maximize":!d.value,"f-icon-minimize":d.value}));return n.createVNode("div",{class:"f-max-accordion"},[M.value?n.createVNode("span",{class:c.value,onClick:f},null):"",g.value?n.createVNode("button",{class:s.value,onClick:b},[n.createVNode("span",null,[o.value?t.collapseLabel:t.expandLabel])]):""])}function P(){return n.createVNode("div",{class:"f-title"},[n.createVNode("h4",{class:"f-title-text"},[t.mainTitle]),t.subTitle&&n.createVNode("span",null,[t.subTitle])])}function A(){const s=n.computed(()=>{const c={"f-content":!0};return w.getCustomClass(c,t.headerContentClass)});return e.slots.headerContent?n.createVNode("div",{class:s.value},[e.slots.headerContent()]):t.headerContentHtml?n.createVNode("div",{class:s.value,innerHTML:t.headerContentHtml},null):null}function S(){return e.slots.headerTitle?e.slots.headerTitle():t.headerTitleHtml?n.createVNode("div",{innerHTML:t.headerTitleHtml},null):P()}function i(){return n.createVNode("div",{class:y.value},[S(),A(),x.value==="inHead"&&R(t,p),(M.value||g.value)&&T()])}function r(){return e.slots.header?n.createVNode("div",{class:y.value},[e.slots.header()]):t.headerHtml?n.createVNode("div",{class:y.value,innerHTML:t.headerHtml},null):i()}return()=>t.showHeader&&r()}const I=n.defineComponent({name:"FSectionDesign",props:Y,emits:[],setup(t,e){const o=n.ref(),l=n.ref(),a=n.ref(),d=n.inject("designer-host-service"),p=n.inject("design-item-context"),x=ne(p,d),f=C.useDesignerComponent(o,p,x);f.value.styles="display: inherit;",n.onMounted(()=>{o.value.componentInstance=f}),e.expose(f.value);const M=n.ref(t.customClass),g=n.computed(()=>t.enableAccordion),y=n.ref(!0),b=n.computed(()=>t.buttonPosition),T=n.ref(!1),P=ie(t,e,y,l,a,T,p),A=n.computed(()=>{const u={"f-section":!0,"f-section-accordion":g.value==="default","f-state-collapse":(g.value==="default"||g.value==="custom")&&!y.value,"f-section-custom-accordion":g.value==="custom","f-section-fill":t.fill,"f-section-maximize":T.value,"f-utils-fill":!0,"p-0":!0};return w.getCustomClass(u,M.value)}),S=n.computed(()=>{const u={"f-section-content":!0,"drag-container":!0};return w.getCustomClass(u,t.contentClass)}),i=n.computed(()=>({visibility:(g.value==="default"||g.value==="custom")&&!y.value?"hidden":"visible"})),r=n.computed(()=>{const u={"f-section-extend":!0};return w.getCustomClass(u,r.value)});function s(){return e.slots.extend&&n.createVNode("div",{class:r.value},[e.slots.extend()])}function c(){return n.createVNode("div",{class:S.value,ref:o,"data-dragref":`${p.schema.id}-container`,style:i.value},[b.value==="inContent"&&R(t,p),e.slots.default&&e.slots.default()])}return()=>n.createVNode("div",{class:A.value,ref:l,style:t.customStyle},[P(),s(),c()])}});return I.register=(t,e,o,l)=>{t.section=h,e.section=F,l.section={eventHandlerResolver:X}},I.registerDesigner=(t,e,o)=>{t.section=I,e.section=F,e["section-toolbar-item"]=U,t["section-toolbar"]=V.FResponseToolbarDesign,e["section-toolbar"]=ee},w.withInstall(I)});
1
+ (function(h,S){typeof exports=="object"&&typeof module<"u"?module.exports=S(require("../../components/section/index.umd.js"),require("../../components/common/index.umd.js"),require("../response-toolbar/index.umd.js"),require("../../components/dynamic-resolver/index.umd.js"),require("../../components/response-toolbar/index.umd.js"),require("../../components/designer-canvas/index.umd.js"),require("vue"),require("../../components/property-panel/index.umd.js")):typeof define=="function"&&define.amd?define(["../../components/section/index.umd.js","../../components/common/index.umd.js","../response-toolbar/index.umd.js","../../components/dynamic-resolver/index.umd.js","../../components/response-toolbar/index.umd.js","../../components/designer-canvas/index.umd.js","vue","../../components/property-panel/index.umd.js"],S):(h=typeof globalThis<"u"?globalThis:h||self,h.section=S(h.Section,h.common,h.FResponseToolbarDesign,h.dynamicResolver,h.responseToolbar,h.designerCanvas,h.Vue,h.propertyPanel))})(this,function(h,S,k,A,G,C,n,U){"use strict";const _={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/section-toolbar-item.schema.json",title:"section-toolbar-item",description:"A Farris Toolbar Item Component",type:"object",properties:{id:{description:"The unique identifier for a Response Toolbar",type:"string"},type:{description:"The type string of Response Toolbar",type:"string",default:"section-toolbar-item"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},text:{description:"按钮",type:"string",default:"按钮"},icon:{description:"图标",type:"string",default:""},disabled:{description:"禁用",type:"boolean",default:!1},visible:{description:"是否可见",type:"boolean",default:!0},onClick:{description:"点击事件",type:"string",default:""},tipsEnable:{description:"",type:"boolean",default:!1},tipsText:{description:"",type:"string",default:""},dropdownClass:{description:"处于下拉菜单时的样式",type:"string",default:""},split:{description:"",type:"boolean",default:!1}},required:["id","type","text"],events:{onClick:"点击事件"}},O=A.createPropsResolver(h.sectionToolbarItemProps,_);function K(t,e,o){return e?{enableAccordion:o.accordionMode}:{enableAccordion:""}}function Z(t,e){var o;return{buttons:e.buttons,buttonPosition:e.position,buttonsClass:(o=e.appearance)==null?void 0:o.class,buttonsVisible:e.visible}}const D=new Map([["appearance",A.resolveAppearance],["expanded","expandStatus"],["enableAccordion",K],["toolbar",Z]]);function J(t,e){var d,p;if(!(e!=null&&e.schema))return;const o=((p=(d=e.schema)==null?void 0:d.appearance)==null?void 0:p.class)||"",l=e.elementRef,a=window.getComputedStyle(l);a&&a.display==="flex"&&!o.includes("f-page-child-fill")&&(t.appearance.class+=" d-block")}function Q(t,e){var f;const o=Math.random().toString().slice(2,6),l=e.parentComponentInstance,a=t.getSchemaByType("section");Object.assign(a,{id:`section-${o}`,appearance:{class:"f-section-in-mainsubcard"},mainTitle:e.mainTitle||a.mainTitle||"标题"});const d=t.getSchemaByType("content-container");Object.assign(d,{id:`container-${o}`,appearance:{class:"f-struct-wrapper"},contents:[a]});const p=l.schema,x=((f=p.appearance)==null?void 0:f.class)||"";switch(p&&p.type){case C.DgControl["splitter-pane"].type:{a.appearance.class="f-section-in-main",x.includes("f-page-child-fill")&&(d.appearance.class+=" f-struct-wrapper-child",a.fill=!0);break}case C.DgControl["content-container"].type:p.isLikeCardContainer&&x.includes("f-struct-like-card-child-fill")&&(d.appearance.class+=" f-struct-wrapper-child",a.fill=!0),J(d,l)}return d}function F(t,e,o){return o.parentComponentInstance?Q(t,o):e}const R={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/section.schema.json",title:"section",description:"A Farris Container Component",type:"object",properties:{id:{description:"The unique identifier for a Section",type:"string"},type:{description:"The type string of Section component",type:"string",default:"section"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},contentClass:{description:"",type:"string",default:""},contents:{description:"",type:"array",default:[]},enableAccordion:{description:"",type:"string",default:""},accordionMode:{description:"",type:"string",default:"default"},enableMaximize:{description:"",type:"boolean",default:!1},expanded:{description:"",type:"boolean",default:!0},fill:{description:"",type:"boolean",default:!1},headerClass:{description:"",type:"string",default:""},size:{description:"",type:"object",properties:{width:{type:"number"},height:{type:"number"}},default:null},showHeader:{description:"",type:"string",default:!0},mainTitle:{description:"",type:"string",default:""},subTitle:{description:"",type:"string",default:""},headerContentClass:{description:"",type:"string",default:""},extendClass:{description:"",type:"string",default:""},visible:{description:"",type:"boolean",default:!0},expandStatus:{description:"",type:"boolean",default:!0},toolbar:{description:"",type:"object",properties:{type:{type:"string",default:"section-toolbar"},position:{type:"string",default:"inHead"},buttons:{type:"array",default:[]},appearance:{description:"",type:"object",properties:{class:{type:"string",default:""}}}},default:null},headerTitleHtml:{description:"",type:"string",default:""},headerTitleRenderFunction:{description:"",type:"function",default:null},headerHtml:{description:"",type:"string",default:""},headerRenderFunction:{description:"",type:"function",default:null},headerContentHtml:{description:"",type:"string",default:""},headerContentRenderFunction:{description:"",type:"function",default:null},toolbarHtml:{description:"",type:"string",default:""},toolbarRenderFunction:{description:"",type:"function",default:null}},required:["id","type","contents"]},W={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/section-toolbar.schema.json",title:"section-toolbar",description:"A Farris Toolbar Component",type:"object",properties:{id:{description:"The unique identifier for a Section Toolbar",type:"string"},type:{description:"The type string of Section Toolbar",type:"string",default:"section-toolbar"},appearance:{description:"",type:"object",properties:{class:{type:"string",default:""}}},alignment:{description:"The alignment of Section Toolbar Button.",type:"string",default:"right"},buttons:{description:"The items of Section Toolbar.",type:"array",default:[]},buttonSize:{type:"string",default:""},visible:{description:"",type:"boolean",default:!0}},required:["id","type","buttons"],events:{onClick:"点击事件"}},X=A.createPropsResolver(h.sectionProps,R,D,F),Y=A.createSectionEventHandlerResolver(),q=Object.assign({},h.sectionProps,{componentId:{type:String,default:""},headerTitleHtml:{type:String,default:""},headerHtml:{type:String,default:""},headerContentHtml:{type:String,default:""},toolbarHtml:{type:String,default:""}}),ee=A.createPropsResolver(G.responseToolbarProps,W,D,k.schemaResolver),te=A.createPropsResolver(q,R,D,F);class ne extends U.BaseControlProperty{constructor(e,o){super(e,o)}getPropertyConfig(e){const o=this.getBasicPropConfig(e),l=this.getAppearanceProperties(e),a=this.getBehaviorConfig(e,""),d=this.getExtendConfig(e),p=this.getHeaderTemplateConfig(e);return this.propertyConfig.categories={basic:o,appearance:l,behavior:a,headerTemplate:p,extend:d},this.propertyConfig}getAppearanceProperties(e){return{title:"外观",description:"Appearance",properties:{class:{description:"组件的CSS样式",title:"class样式"},style:{description:"组件的内容样式",title:"style样式"},fill:{title:"填充内容区域",type:"boolean",description:""},showHeader:{title:"显示标题栏区域",type:"boolean",description:"",refreshPanelAfterChanged:!0},mainTitle:{title:"主标题",type:"string",description:"",visible:{showHeader:!0}},subTitle:{title:"副标题",type:"string",description:"",visible:{showHeader:!0}},enableAccordion:{title:"面板收折",type:"enum",description:"是否启用分组面板的收折特性",editor:{type:"combo-list",textField:"value",valueField:"key",idField:"key",editable:!1,data:[{key:"",value:"不启用"},{key:"default",value:"启用默认收折"}]},refreshPanelAfterChanged:!0},expandStatus:{title:"默认状态",type:"boolean",description:"默认面板是展开还是收起",editor:{type:"combo-list",textField:"name",valueField:"value",data:[{name:"展开",value:!0},{name:"收起",value:!1}],enableClear:!1},visible:e.enableAccordion==="default"}},setPropertyRelates(o,l){if(o)switch(o&&o.propertyID){case"mainTitle":{o.needRefreshControlTree=!0;break}case"showHeader":{const a=document.getElementsByClassName("dgComponentFocused");Array.from(a).forEach(d=>d.classList.remove("dgComponentFocused")),C.canvasChanged.value++;break}}}}}getExtendConfig(e){return{title:"扩展",description:"",properties:{contentClass:{title:"内容区域class",type:"string",description:"指定内容区域class样式"}}}}getHeaderTemplateConfig(e){return{title:"标题栏模板配置",description:"",hide:e.showHeader===!1,properties:{headerHtml:{title:"标题栏模板",type:"string",description:"设置标题栏HTML模板,会影响收折、最大化这些展示,其他自定义模版指定失效。",refreshPanelAfterChanged:!0,editor:{type:"code-editor",language:"html"}},headerTitleHtml:{title:"标题模板",type:"string",description:"设置头部HTML模板,会影响收折、最大化这些展示,其他自定义模版指定失效。",refreshPanelAfterChanged:!0,editor:{type:"code-editor",language:"html"}},headerContentHtml:{title:"内容模板",type:"string",description:"为跟在标题后面的内容,指定HTML模板",refreshPanelAfterChanged:!0,editor:{type:"code-editor",language:"html"}},toolbarHtml:{title:"工具栏模板",type:"string",description:"为工具栏区域指定HTML模板",refreshPanelAfterChanged:!0,editor:{type:"code-editor",language:"html"}}}}}}function oe(t,e){const o=new C.UseTemplateDragAndDropRules,l=t.schema;function a(i){return new ne(i,e).getPropertyConfig(l)}function d(i){var u;const{componentType:r,sourceType:s,sourceElement:c}=i;return!!(s==="control"&&r===C.DgControl["filter-bar"].type||s==="move"&&r===C.DgControl["content-container"].type&&((u=c==null?void 0:c.className)!=null&&u.includes("f-filter-container")))}function p(i,r){var u,m;const c=(e==null?void 0:e.schemaService).getTreeGridUdtFields(i);if(c){const v=c.find(j=>j.key===r),$=v&&v.field;if((m=(u=$==null?void 0:$.type)==null?void 0:u.name)!=null&&m.includes("PathHierarchyInfo"))return!0}}function x(i){var j;if(!e)return!1;const r=(j=l.appearance)==null?void 0:j.class,{sourceType:s}=i,{formSchemaUtils:c}=e;if(!(r&&r.includes("f-section-grid")))return!1;const m=c.getViewModelIdByComponentId(t.componentInstance.value.belongedComponentId),v=c.getViewModelById(m);if(v&&v.bindTo!=="/")return!1;const $=c.selectNode(l,E=>E.type==="tree-grid");if($&&!p(m,$.udtField))return!1;if(s==="move")return!0;if(s==="control"){if(l.contents&&l.contents.find(V=>{var I,z;return V.type===C.DgControl["content-container"].type&&((z=(I=V.appearance)==null?void 0:I.class)==null?void 0:z.includes("f-filter-container"))}))return!1;const L=c.getComponentById("root-component");if(L&&c.selectNode(L,I=>I.type===C.DgControl["query-solution"].type))return!1}return!0}function f(i){if(d(i))return x(i);if(!C.useDragulaCommonRule().basalDragulaRuleForContainer(i,e))return!1;const{canAccept:s}=o.getTemplateRule(t,e);return s}function w(){const{canDelete:i}=o.getTemplateRule(t,e);return i}function g(){const{canMove:i}=o.getTemplateRule(t,e);return i}function y(){const{canMove:i,canDelete:r}=o.getTemplateRule(t,e);return!i&&!r}function b(i){i&&(i.stopPropagation(),i.preventDefault());const{schema:r}=t;(!r.toolbar||!r.toolbar.buttons)&&(r.toolbar={id:`${r.id}_toolbar`,type:"section-toolbar",buttons:[]});const s=A.getSchemaByType("section-toolbar-item");s.id=`section_toolbar_item_${Math.random().toString().slice(2,6)}`,r.toolbar.buttons.push(s)}function T(){var u;const{schema:i}=t,r=e==null?void 0:e.formSchemaUtils;if(i.showHeader===!1||!r)return;const s=r.selectNode(i,m=>m.type===C.DgControl["response-form"].type),c=((u=i.toolbar)==null?void 0:u.buttons)||[];if(!s&&c.length===0)return[{id:"appendToolbar",title:"新增按钮",icon:"f-icon f-icon-plus-circle text-white",onClick:m=>b(m)}]}function P(){var c,u;if(!e)return;const i=e.formSchemaUtils.getExpressions();if(!i||!i.length)return;const{schema:r}=t;if(!((u=(c=r.toolbar)==null?void 0:c.buttons)!=null&&u.length))return;const s=m=>{m.forEach(v=>{const $=i.findIndex(j=>j.target===v.id);$>-1&&i.splice($,1),v.children&&v.children.length&&s(v.children)})};s(r.toolbar.buttons)}function N(){P()}function M(){var i,r;if(t&&e){const{formSchemaUtils:s}=e,c=s.getControlBasicInfoMap(),{schema:u}=t;c.set(u.id,{componentTitle:u.mainTitle,parentPathName:u.mainTitle}),(r=(i=u.toolbar)==null?void 0:i.buttons)!=null&&r.length&&u.toolbar.buttons.map(m=>{var v;c.set(m.id,{componentTitle:m.text,parentPathName:`${u.mainTitle} > ${m.text}`}),(v=m.children)!=null&&v.length&&m.children.map($=>{c.set($.id,{componentTitle:$.text,parentPathName:`${u.mainTitle} > ${$.text}`})})})}}return{canAccepts:f,checkCanDeleteComponent:w,checkCanMoveComponent:g,hideNestedPaddingInDesginerView:y,getPropsConfig:a,getCustomButtons:T,onRemoveComponent:N,setComponentBasicInfoMap:M}}function ie(t,e,o){let l;function a(f=1){const w=["body>.f-datagrid-settings-simple-host","body>div","body>farris-dialog>.farris-modal.show","body>.farris-modal.show","body>farris-filter-panel>.f-filter-panel-wrapper","body .f-sidebar-show>.f-sidebar-main","body>.popover.show","body>filter-row-panel>.f-datagrid-filter-panel","body>.f-section-maximize"],g=Array.from(document.body.querySelectorAll(w.join(","))).filter(b=>b).map(b=>{const{display:T,zIndex:P}=window.getComputedStyle(b);return T==="none"?0:parseInt(P,10)}).filter(b=>b);let y=Math.max(...g);return y<1040&&(y=1040),y+f}function d(){l=t.value.nextElementSibling;const f=document&&document.querySelector("body");f&&(f.appendChild(t.value),t.value.style.zIndex=a())}function p(){l?e.value.insertBefore(t.value,l):e.value.appendChild(t.value),t.value.style.zIndex=null}function x(){!t||!e.value||(o.value=!o.value,o.value?d():p())}return{onClickMaxMinIcon:x}}function B(t,e){var y;const o=n.computed(()=>"f-section-toolbar col-6"+(t.buttonPosition==="inHead"?" f-toolbar f-section-header--toolbar":" f-section-content--toolbar")+(t.buttonsClass?" "+t.buttonsClass:"")),l=n.ref(t.buttons),a=n.ref(e.schema.toolbar);a.value&&!a.value.type&&(a.value.type="section-toolbar");const d=t.componentId,p=`${d}-toolbar`,x=n.computed(()=>t.buttonPosition==="inHead"?"right":"left");function f(b,T,P,N){var M;(M=e.setupContext)==null||M.emit("selectionChange",b,T,P,N)}function w(){var b,T;return(T=(b=a.value)==null?void 0:b.buttons)!=null&&T.length?n.createVNode("div",{class:o.value},[n.createVNode("div",{class:"w-100",style:"flex:1"},[n.createVNode(C.FDesignerInnerItem,{modelValue:a.value,"onUpdate:modelValue":P=>a.value=P,class:"w-100 position-relative",canAdd:!1,childType:"section-toolbar-item",childLabel:"按钮",contentKey:"buttons",id:p,onSelectionChange:f,componentId:d},{default:()=>[n.createVNode(k,{customClass:"d-block text-right",items:l.value,alignment:x.value,componentId:d},null)]})])]):null}function g(){return n.createVNode("div",{class:o.value},[n.createVNode("div",{class:"w-100",style:"flex:1",innerHTML:t.toolbarHtml.trim()},null)])}return(y=t.toolbarHtml)!=null&&y.trim()?g():w()}function re(t,e,o,l,a,d,p){const x=n.computed(()=>t.buttonPosition),{onClickMaxMinIcon:f}=ie(l,a,d),w=n.computed(()=>t.enableMaximize),g=n.computed(()=>t.enableAccordion!==""),y=n.computed(()=>{let s={"f-section-header":!0};return e.slots.header&&(s=S.getCustomClass(s,t.headerClass)),s});function b(s){s.stopPropagation(),t.enableAccordion!==""&&(o.value=!o.value,n.nextTick(()=>{C.setPositionOfSelectedComponentBtnGroup(p.designerItemElementRef.value)}))}function T(){const s=n.computed(()=>({btn:!0,"f-btn-collapse-expand":!0,"f-btn-mx":!0,"f-state-expand":o.value})),c=n.computed(()=>({"f-icon":!0,"f-icon-maximize":!d.value,"f-icon-minimize":d.value}));return n.createVNode("div",{class:"f-max-accordion"},[w.value?n.createVNode("span",{class:c.value,onClick:f},null):"",g.value?n.createVNode("button",{class:s.value,onClick:b},[n.createVNode("span",null,[o.value?t.collapseLabel:t.expandLabel])]):""])}function P(){return n.createVNode("div",{class:"f-title"},[n.createVNode("h4",{class:"f-title-text"},[t.mainTitle]),t.subTitle&&n.createVNode("span",null,[t.subTitle])])}function N(){const s=n.computed(()=>{const c={"f-content":!0};return S.getCustomClass(c,t.headerContentClass)});return e.slots.headerContent?n.createVNode("div",{class:s.value},[e.slots.headerContent()]):t.headerContentHtml?n.createVNode("div",{class:s.value,innerHTML:t.headerContentHtml},null):null}function M(){return e.slots.headerTitle?e.slots.headerTitle():t.headerTitleHtml?n.createVNode("div",{innerHTML:t.headerTitleHtml},null):P()}function i(){return n.createVNode("div",{class:y.value},[M(),N(),x.value==="inHead"&&B(t,p),(w.value||g.value)&&T()])}function r(){return e.slots.header?n.createVNode("div",{class:y.value},[e.slots.header()]):t.headerHtml?n.createVNode("div",{class:y.value,innerHTML:t.headerHtml},null):i()}return()=>t.showHeader&&r()}const H=n.defineComponent({name:"FSectionDesign",props:q,emits:[],setup(t,e){const o=n.ref(),l=n.ref(),a=n.ref(),d=n.inject("designer-host-service"),p=n.inject("design-item-context"),x=oe(p,d),f=C.useDesignerComponent(o,p,x);f.value.styles="display: inherit;",n.onMounted(()=>{o.value.componentInstance=f}),e.expose(f.value);const w=n.ref(t.customClass),g=n.computed(()=>t.enableAccordion),y=n.ref(!0),b=n.computed(()=>t.buttonPosition),T=n.ref(!1),P=re(t,e,y,l,a,T,p),N=n.computed(()=>{const u={"f-section":!0,"f-section-accordion":g.value==="default","f-state-collapse":(g.value==="default"||g.value==="custom")&&!y.value,"f-section-custom-accordion":g.value==="custom","f-section-fill":t.fill,"f-section-maximize":T.value,"f-utils-fill":!0,"p-0":!0};return S.getCustomClass(u,w.value)}),M=n.computed(()=>{const u={"f-section-content":!0,"drag-container":!0};return S.getCustomClass(u,t.contentClass)}),i=n.computed(()=>({visibility:(g.value==="default"||g.value==="custom")&&!y.value?"hidden":"visible"})),r=n.computed(()=>{const u={"f-section-extend":!0};return S.getCustomClass(u,r.value)});function s(){return e.slots.extend&&n.createVNode("div",{class:r.value},[e.slots.extend()])}function c(){return n.createVNode("div",{class:M.value,ref:o,"data-dragref":`${p.schema.id}-container`,style:i.value},[b.value==="inContent"&&B(t,p),e.slots.default&&e.slots.default()])}return()=>n.createVNode("div",{class:N.value,ref:l,style:t.customStyle},[P(),s(),c()])}});return H.register=(t,e,o,l)=>{t.section=h,e.section=X,l.section={eventHandlerResolver:Y}},H.registerDesigner=(t,e,o)=>{t.section=H,e.section=te,e["section-toolbar-item"]=O,t["section-toolbar"]=k.FResponseToolbarDesign,e["section-toolbar"]=ee},S.withInstall(H)});