@farris/ui-vue 1.8.0-alpha.0 → 1.8.0-beta.1

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 (193) hide show
  1. package/components/avatar/index.esm.js +138 -1526
  2. package/components/avatar/index.umd.cjs +1 -6
  3. package/components/button/index.css +1 -1
  4. package/components/button/index.esm.js +15951 -15410
  5. package/components/button/index.umd.cjs +27 -27
  6. package/components/calendar/index.esm.js +269 -255
  7. package/components/calendar/index.umd.cjs +3 -3
  8. package/components/collection-property-editor/index.esm.js +243 -229
  9. package/components/collection-property-editor/index.umd.cjs +2 -2
  10. package/components/combo-list/index.esm.js +32 -32
  11. package/components/combo-list/index.umd.cjs +1 -1
  12. package/components/comment/index.esm.js +473 -456
  13. package/components/comment/index.umd.cjs +6 -6
  14. package/components/component/index.css +1 -1
  15. package/components/component/index.esm.js +2503 -2239
  16. package/components/component/index.umd.cjs +2 -2
  17. package/components/condition/index.esm.js +1064 -954
  18. package/components/condition/index.umd.cjs +2 -2
  19. package/components/data-grid/index.esm.js +1 -1
  20. package/components/data-grid/index.umd.cjs +1 -1
  21. package/components/designer-canvas/index.css +1 -1
  22. package/components/designer-canvas/index.esm.js +3894 -3058
  23. package/components/designer-canvas/index.umd.cjs +1 -1
  24. package/components/drawer/index.esm.js +91 -77
  25. package/components/drawer/index.umd.cjs +2 -2
  26. package/components/dynamic-form/index.esm.js +220 -215
  27. package/components/dynamic-form/index.umd.cjs +1 -1
  28. package/components/dynamic-resolver/index.esm.js +145 -131
  29. package/components/dynamic-resolver/index.umd.cjs +2 -2
  30. package/components/dynamic-view/index.esm.js +336 -329
  31. package/components/dynamic-view/index.umd.cjs +1 -1
  32. package/components/events-editor/index.esm.js +1611 -1536
  33. package/components/events-editor/index.umd.cjs +3 -3
  34. package/components/expression-editor/index.esm.js +219 -219
  35. package/components/expression-editor/index.umd.cjs +2 -2
  36. package/components/external-container/index.esm.js +179 -178
  37. package/components/external-container/index.umd.cjs +1 -1
  38. package/components/fieldset/index.esm.js +285 -221
  39. package/components/fieldset/index.umd.cjs +1 -1
  40. package/components/filter-bar/index.css +1 -0
  41. package/components/filter-bar/index.esm.js +1512 -1290
  42. package/components/filter-bar/index.umd.cjs +7 -7
  43. package/components/filter-condition-editor/index.esm.js +851 -831
  44. package/components/filter-condition-editor/index.umd.cjs +3 -3
  45. package/components/flow-canvas/index.esm.js +520 -501
  46. package/components/flow-canvas/index.umd.cjs +8 -8
  47. package/components/image/index.esm.js +101 -79
  48. package/components/image/index.umd.cjs +3 -3
  49. package/components/language-textbox/index.esm.js +330 -251
  50. package/components/language-textbox/index.umd.cjs +2 -2
  51. package/components/list-nav/index.esm.js +399 -313
  52. package/components/list-nav/index.umd.cjs +1 -1
  53. package/components/locale/index.esm.js +3 -0
  54. package/components/locale/index.umd.cjs +1 -1
  55. package/components/lookup/index.esm.js +997 -976
  56. package/components/lookup/index.umd.cjs +2 -2
  57. package/components/mapping-editor/index.esm.js +725 -705
  58. package/components/mapping-editor/index.umd.cjs +1 -1
  59. package/components/message-box/index.esm.js +542 -522
  60. package/components/message-box/index.umd.cjs +1 -1
  61. package/components/nav/index.esm.js +95 -308
  62. package/components/nav/index.umd.cjs +1 -1
  63. package/components/number-range/index.esm.js +115 -107
  64. package/components/number-range/index.umd.cjs +2 -2
  65. package/components/order/index.esm.js +56 -54
  66. package/components/order/index.umd.cjs +1 -1
  67. package/components/page-footer/index.esm.js +135 -123
  68. package/components/page-footer/index.umd.cjs +1 -1
  69. package/components/page-header/index.esm.js +266 -222
  70. package/components/page-header/index.umd.cjs +1 -1
  71. package/components/property-panel/index.esm.js +402 -375
  72. package/components/property-panel/index.umd.cjs +4 -4
  73. package/components/query-solution/index.esm.js +3171 -3061
  74. package/components/query-solution/index.umd.cjs +7 -7
  75. package/components/response-toolbar/index.esm.js +1 -1
  76. package/components/response-toolbar/index.umd.cjs +1 -1
  77. package/components/schema-selector/index.esm.js +1620 -1608
  78. package/components/schema-selector/index.umd.cjs +5 -5
  79. package/components/scroll-navbar/index.esm.js +150 -136
  80. package/components/scroll-navbar/index.umd.cjs +2 -2
  81. package/components/section/index.esm.js +323 -311
  82. package/components/section/index.umd.cjs +2 -2
  83. package/components/sort-condition-editor/index.esm.js +850 -830
  84. package/components/sort-condition-editor/index.umd.cjs +3 -3
  85. package/components/step/index.esm.js +991 -224
  86. package/components/step/index.umd.cjs +1 -1
  87. package/components/tabs/index.esm.js +356 -334
  88. package/components/tabs/index.umd.cjs +1 -1
  89. package/components/wizard/index.esm.js +159 -162
  90. package/components/wizard/index.umd.cjs +1 -1
  91. package/designer/avatar/index.esm.js +1721 -0
  92. package/designer/avatar/index.umd.cjs +6 -0
  93. package/designer/button-edit/index.esm.js +2 -1
  94. package/designer/button-edit/index.umd.cjs +1 -1
  95. package/designer/data-grid/index.esm.js +693 -659
  96. package/designer/data-grid/index.umd.cjs +6 -6
  97. package/designer/data-view/index.esm.js +90 -78
  98. package/designer/data-view/index.umd.cjs +2 -2
  99. package/designer/date-picker/index.esm.js +203 -203
  100. package/designer/date-picker/index.umd.cjs +1 -1
  101. package/designer/drawer/index.esm.js +181 -167
  102. package/designer/drawer/index.umd.cjs +2 -2
  103. package/designer/dynamic-form/index.esm.js +228 -206
  104. package/designer/dynamic-form/index.umd.cjs +2 -2
  105. package/designer/farris-designer.all.esm.js +10014 -9692
  106. package/designer/farris-designer.all.umd.cjs +18 -18
  107. package/designer/index.css +1 -1
  108. package/designer/input-group/index.esm.js +15 -15
  109. package/designer/input-group/index.umd.cjs +1 -1
  110. package/designer/nav/index.esm.js +1719 -0
  111. package/designer/nav/index.umd.cjs +6 -0
  112. package/designer/number-spinner/index.esm.js +8 -7
  113. package/designer/number-spinner/index.umd.cjs +1 -1
  114. package/designer/radio-group/index.esm.js +133 -125
  115. package/designer/radio-group/index.umd.cjs +2 -2
  116. package/designer/response-toolbar/index.esm.js +864 -863
  117. package/designer/response-toolbar/index.umd.cjs +1 -1
  118. package/designer/section/index.esm.js +245 -183
  119. package/designer/section/index.umd.cjs +1 -1
  120. package/designer/tabs/index.css +1 -1
  121. package/designer/tabs/index.esm.js +3667 -2810
  122. package/designer/tabs/index.umd.cjs +2 -2
  123. package/designer/time-picker/index.esm.js +26 -17
  124. package/designer/time-picker/index.umd.cjs +2 -2
  125. package/designer/tree-grid/index.esm.js +69 -37
  126. package/designer/tree-grid/index.umd.cjs +1 -1
  127. package/designer/wizard/index.esm.js +110 -110
  128. package/designer/wizard/index.umd.cjs +3 -3
  129. package/farris.all.esm.js +39993 -39089
  130. package/farris.all.umd.cjs +36 -36
  131. package/index.css +1 -1
  132. package/locales/filter-bar/ui/en.json +1 -0
  133. package/locales/filter-bar/ui/zh-CHS.json +1 -0
  134. package/locales/filter-bar/ui/zh-CHT.json +1 -0
  135. package/locales/ui/en.json +1 -0
  136. package/locales/ui/zh-CHS.json +1 -0
  137. package/locales/ui/zh-CHT.json +1 -0
  138. package/package.json +1 -1
  139. package/types/avatar/designer.d.ts +28 -0
  140. package/types/avatar/index.d.ts +0 -15
  141. package/types/avatar/src/composition/types.d.ts +3 -0
  142. package/types/avatar/src/composition/use-file.d.ts +19 -0
  143. package/types/avatar/src/composition/use-image.d.ts +1 -1
  144. package/types/avatar/src/designer/avatar.design.props.d.ts +24 -0
  145. package/types/avatar/src/property-config/avatar.property-config.d.ts +11 -13
  146. package/types/avatar/src/schema/schema-mapper.d.ts +2 -0
  147. package/types/components.d.ts +3 -0
  148. package/types/condition/index.d.ts +18 -6
  149. package/types/condition/src/condition-fields.component.d.ts +9 -3
  150. package/types/condition/src/condition-fields.design.component.d.ts +9 -3
  151. package/types/condition/src/condition-list.component.d.ts +9 -3
  152. package/types/condition/src/condition.props.d.ts +11 -0
  153. package/types/data-view/designer/property-config/use-appearance.d.ts +17 -10
  154. package/types/data-view/designer/property-config/use-pagination.d.ts +0 -6
  155. package/types/designer-canvas/src/composition/dg-control.d.ts +13 -0
  156. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -0
  157. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +4 -0
  158. package/types/dynamic-resolver/src/converter/tree-auto-check.converter.d.ts +3 -0
  159. package/types/dynamic-view/src/components/maps.d.ts +130 -4
  160. package/types/filter-bar/src/composition/types.d.ts +2 -0
  161. package/types/filter-bar/src/filter-bar.props.d.ts +0 -1
  162. package/types/filter-bar/src/locale/locale.d.ts +2 -1
  163. package/types/filter-bar/src/property-config/filter-bar.property-config.d.ts +0 -1
  164. package/types/language-textbox/index.d.ts +65 -2
  165. package/types/language-textbox/src/designer/language-textbox.design.component.d.ts +36 -0
  166. package/types/language-textbox/src/language-textbox.component.d.ts +38 -1
  167. package/types/language-textbox/src/language-textbox.props.d.ts +20 -0
  168. package/types/lookup/src/components/popup-container.component.d.ts +3 -3
  169. package/types/lookup/src/composition/use-compat.d.ts +28 -0
  170. package/types/lookup/src/composition/use-state.d.ts +1 -0
  171. package/types/message-box/src/message-box.service.d.ts +2 -1
  172. package/types/nav/designer.d.ts +28 -0
  173. package/types/nav/index.d.ts +24 -20
  174. package/types/nav/src/designer/nav.design.props.d.ts +29 -0
  175. package/types/nav/src/designer/use-design-rules.d.ts +3 -0
  176. package/types/nav/src/property-config/nav.property-config.d.ts +9 -0
  177. package/types/nav/src/schema/schema-mapper.d.ts +4 -0
  178. package/types/page-footer/src/designer/use-designer-rules.d.ts +2 -2
  179. package/types/page-header/src/designer/use-designer-rules.d.ts +2 -2
  180. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -0
  181. package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
  182. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -1
  183. package/types/section/src/designer/section.design.props.d.ts +4 -0
  184. package/types/section/src/property-config/section.property-config.d.ts +39 -0
  185. package/types/section/src/schema/toolbar-resolver.d.ts +0 -1
  186. package/types/step/src/designer/use-designer-rules.d.ts +3 -0
  187. package/types/step/src/designer/use-step-creator.d.ts +6 -0
  188. package/types/step/src/property-config/step.property-config.d.ts +15 -0
  189. package/types/step/src/schema/schema-resolver.d.ts +2 -1
  190. package/types/tabs/src/composition/types.d.ts +4 -0
  191. package/types/tabs/src/tabs.props.d.ts +6 -0
  192. package/types/tooltip/index.d.ts +3 -3
  193. package/types/tooltip/src/tooltip.component.d.ts +2 -2
@@ -1,155 +1,156 @@
1
- import { ref as j, computed as x, createVNode as F, defineComponent as ue, watch as de, onMounted as fe } from "vue";
2
- import { getCustomClass as $, withInstall as me } from "../common/index.esm.js";
1
+ import { ref as z, computed as x, createVNode as h, defineComponent as ue, watch as de, onMounted as fe } from "vue";
2
+ import { getCustomClass as H, withInstall as me } from "../common/index.esm.js";
3
3
  import { isPlainObject as q, cloneDeep as _ } from "lodash-es";
4
4
  import { resolveAppearance as pe } from "../dynamic-resolver/index.esm.js";
5
5
  import { DgControl as G } from "../designer-canvas/index.esm.js";
6
6
  import ve from "../response-toolbar/index.esm.js";
7
7
  import { LocaleService as W } from "../locale/index.esm.js";
8
+ import { commonToolbarItemDesignProps as be } from "../../designer/response-toolbar/index.esm.js";
8
9
  function Z(e, t) {
9
10
  let n;
10
11
  function r(i) {
11
- const { properties: l, title: m, ignore: o } = i, a = o && Array.isArray(o), s = Object.keys(l).reduce((v, g) => ((!a || !o.find((k) => k === g)) && (v[g] = l[g].type === "object" && l[g].properties ? r(l[g]) : _(l[g].default)), v), {});
12
- if (m && (!a || !o.find((v) => v === "id"))) {
13
- const v = m.toLowerCase().replace(/-/g, "_");
14
- s.id = `${v}_${Math.random().toString().slice(2, 6)}`;
12
+ const { properties: l, title: f, ignore: o } = i, a = o && Array.isArray(o), c = Object.keys(l).reduce((p, g) => ((!a || !o.find((w) => w === g)) && (p[g] = l[g].type === "object" && l[g].properties ? r(l[g]) : _(l[g].default)), p), {});
13
+ if (f && (!a || !o.find((p) => p === "id"))) {
14
+ const p = f.toLowerCase().replace(/-/g, "_");
15
+ c.id = `${p}_${Math.random().toString().slice(2, 6)}`;
15
16
  }
16
- return s;
17
+ return c;
17
18
  }
18
- function c(i) {
19
- const { properties: l, title: m, required: o } = i;
19
+ function s(i) {
20
+ const { properties: l, title: f, required: o } = i;
20
21
  if (o && Array.isArray(o)) {
21
- const a = o.reduce((s, v) => (s[v] = l[v].type === "object" && l[v].properties ? r(l[v]) : _(l[v].default), s), {});
22
- if (m && o.find((s) => s === "id")) {
23
- const s = m.toLowerCase().replace(/-/g, "_");
24
- a.id = `${s}_${Math.random().toString().slice(2, 6)}`;
22
+ const a = o.reduce((c, p) => (c[p] = l[p].type === "object" && l[p].properties ? r(l[p]) : _(l[p].default), c), {});
23
+ if (f && o.find((c) => c === "id")) {
24
+ const c = f.toLowerCase().replace(/-/g, "_");
25
+ a.id = `${c}_${Math.random().toString().slice(2, 6)}`;
25
26
  }
26
27
  return a;
27
28
  }
28
29
  return {
29
- type: m
30
+ type: f
30
31
  };
31
32
  }
32
- function p(i, l = {}, m) {
33
+ function b(i, l = {}, f) {
33
34
  const o = e[i];
34
35
  if (o) {
35
- let a = c(o);
36
- const s = t[i];
37
- return a = s ? s({ getSchemaByType: p }, a, l, m) : a, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(a), a;
36
+ let a = s(o);
37
+ const c = t[i];
38
+ return a = c ? c({ getSchemaByType: b }, a, l, f) : a, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(a), a;
38
39
  }
39
40
  return null;
40
41
  }
41
42
  function d(i, l) {
42
- const m = r(l);
43
- return Object.keys(m).reduce((o, a) => (Object.prototype.hasOwnProperty.call(i, a) && (o[a] && q(o[a]) && q(i[a] || !i[a]) ? Object.assign(o[a], i[a] || {}) : o[a] = i[a]), o), m), m;
43
+ const f = r(l);
44
+ return Object.keys(f).reduce((o, a) => (Object.prototype.hasOwnProperty.call(i, a) && (o[a] && q(o[a]) && q(i[a] || !i[a]) ? Object.assign(o[a], i[a] || {}) : o[a] = i[a]), o), f), f;
44
45
  }
45
46
  function y(i, l) {
46
47
  return Object.keys(i).filter((o) => i[o] != null).reduce((o, a) => {
47
48
  if (l.has(a)) {
48
- const s = l.get(a);
49
- if (typeof s == "string")
50
- o[s] = i[a];
49
+ const c = l.get(a);
50
+ if (typeof c == "string")
51
+ o[c] = i[a];
51
52
  else {
52
- const v = s(a, i[a], i);
53
- Object.assign(o, v);
53
+ const p = c(a, i[a], i);
54
+ Object.assign(o, p);
54
55
  }
55
56
  } else
56
57
  o[a] = i[a];
57
58
  return o;
58
59
  }, {});
59
60
  }
60
- function S(i, l, m = /* @__PURE__ */ new Map()) {
61
+ function C(i, l, f = /* @__PURE__ */ new Map()) {
61
62
  const o = d(i, l);
62
- return y(o, m);
63
+ return y(o, f);
63
64
  }
64
65
  function u(i) {
65
- var m;
66
+ var f;
66
67
  const l = i.type;
67
68
  if (l) {
68
69
  const o = e[l];
69
70
  if (!o)
70
71
  return i;
71
- const a = d(i, o), s = ((m = i.editor) == null ? void 0 : m.type) || "";
72
- if (s) {
73
- const v = e[s], g = d(i.editor, v);
72
+ const a = d(i, o), c = ((f = i.editor) == null ? void 0 : f.type) || "";
73
+ if (c) {
74
+ const p = e[c], g = d(i.editor, p);
74
75
  a.editor = g;
75
76
  }
76
77
  return a;
77
78
  }
78
79
  return i;
79
80
  }
80
- function f(i) {
81
+ function m(i) {
81
82
  n = i;
82
83
  }
83
- return { getSchemaByType: p, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: S, mappingSchemaToProps: y, setDesignerContext: f };
84
+ return { getSchemaByType: b, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: C, mappingSchemaToProps: y, setDesignerContext: m };
84
85
  }
85
- const J = {}, Q = {}, { resolveSchemaWithDefaultValue: be, resolveSchemaToProps: ge, mappingSchemaToProps: ye } = Z(J, Q);
86
- function Ce(e = {}) {
87
- function t(u, f, i, l) {
86
+ const J = {}, Q = {}, { resolveSchemaWithDefaultValue: ge, resolveSchemaToProps: ye, mappingSchemaToProps: Ce } = Z(J, Q);
87
+ function Se(e = {}) {
88
+ function t(u, m, i, l) {
88
89
  if (typeof i == "number")
89
90
  return l[u].length === i;
90
91
  if (typeof i == "object") {
91
- const m = Object.keys(i)[0], o = i[m];
92
- if (m === "not")
92
+ const f = Object.keys(i)[0], o = i[f];
93
+ if (f === "not")
93
94
  return Number(l[u].length) !== Number(o);
94
- if (m === "moreThan")
95
+ if (f === "moreThan")
95
96
  return Number(l[u].length) >= Number(o);
96
- if (m === "lessThan")
97
+ if (f === "lessThan")
97
98
  return Number(l[u].length) <= Number(o);
98
99
  }
99
100
  return !1;
100
101
  }
101
- function n(u, f, i, l) {
102
+ function n(u, m, i, l) {
102
103
  return l[u] && l[u].propertyValue && String(l[u].propertyValue.value) === String(i);
103
104
  }
104
105
  const r = /* @__PURE__ */ new Map([
105
106
  ["length", t],
106
107
  ["getProperty", n]
107
108
  ]);
108
- Object.keys(e).reduce((u, f) => (u.set(f, e[f]), u), r);
109
- function c(u, f) {
109
+ Object.keys(e).reduce((u, m) => (u.set(m, e[m]), u), r);
110
+ function s(u, m) {
110
111
  const i = u;
111
- return typeof f == "number" ? [{ target: i, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: i, operator: "getProperty", param: u, value: !!f }] : typeof f == "object" ? Object.keys(f).map((l) => {
112
+ return typeof m == "number" ? [{ target: i, operator: "length", param: null, value: Number(m) }] : typeof m == "boolean" ? [{ target: i, operator: "getProperty", param: u, value: !!m }] : typeof m == "object" ? Object.keys(m).map((l) => {
112
113
  if (l === "length")
113
- return { target: i, operator: "length", param: null, value: f[l] };
114
- const m = l, o = f[l];
115
- return { target: i, operator: "getProperty", param: m, value: o };
114
+ return { target: i, operator: "length", param: null, value: m[l] };
115
+ const f = l, o = m[l];
116
+ return { target: i, operator: "getProperty", param: f, value: o };
116
117
  }) : [];
117
118
  }
118
- function p(u) {
119
+ function b(u) {
119
120
  return Object.keys(u).reduce((i, l) => {
120
- const m = c(l, u[l]);
121
- return i.push(...m), i;
121
+ const f = s(l, u[l]);
122
+ return i.push(...f), i;
122
123
  }, []);
123
124
  }
124
- function d(u, f) {
125
+ function d(u, m) {
125
126
  if (r.has(u.operator)) {
126
127
  const i = r.get(u.operator);
127
- return i && i(u.target, u.param, u.value, f) || !1;
128
+ return i && i(u.target, u.param, u.value, m) || !1;
128
129
  }
129
130
  return !1;
130
131
  }
131
- function y(u, f) {
132
- return p(u).reduce((m, o) => m && d(o, f), !0);
132
+ function y(u, m) {
133
+ return b(u).reduce((f, o) => f && d(o, m), !0);
133
134
  }
134
- function S(u, f) {
135
- const i = Object.keys(u), l = i.includes("allOf"), m = i.includes("anyOf"), o = l || m, v = (o ? u[o ? l ? "allOf" : "anyOf" : "allOf"] : [u]).map((k) => y(k, f));
136
- return l ? !v.includes(!1) : v.includes(!0);
135
+ function C(u, m) {
136
+ const i = Object.keys(u), l = i.includes("allOf"), f = i.includes("anyOf"), o = l || f, p = (o ? u[o ? l ? "allOf" : "anyOf" : "allOf"] : [u]).map((w) => y(w, m));
137
+ return l ? !p.includes(!1) : p.includes(!0);
137
138
  }
138
- return { parseValueSchema: S };
139
+ return { parseValueSchema: C };
139
140
  }
140
- const Se = {
141
+ const Te = {
141
142
  convertTo: (e, t, n, r) => {
142
143
  e.appearance || (e.appearance = {}), e.appearance[t] = n;
143
144
  },
144
145
  convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
145
- }, Te = {
146
- convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
147
146
  }, he = {
147
+ convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
148
+ }, Fe = {
148
149
  convertTo: (e, t, n, r) => {
149
150
  e.editor && (e.editor[t] = n);
150
151
  },
151
152
  convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
152
- }, Fe = {
153
+ }, xe = {
153
154
  button: { type: "button", name: "按钮" },
154
155
  "response-toolbar": { type: "response-toolbar", name: "工具栏" },
155
156
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
@@ -195,10 +196,12 @@ const Se = {
195
196
  drawer: { type: "drawer", name: "抽屉" },
196
197
  "external-container": { type: "external-container", name: "外部容器", icon: "content-container" },
197
198
  "list-nav": { type: "list-nav", name: "列表导航" },
199
+ nav: { type: "nav", name: "标签类导航" },
198
200
  "list-view": { type: "list-view", name: "列表" },
199
201
  "filter-bar": { type: "filter-bar", name: "筛选条" },
200
202
  "language-textbox": { type: "language-textbox", name: "多语输入框" },
201
203
  image: { type: "image", name: "图像" },
204
+ avatar: { type: "avatar", name: "头像" },
202
205
  "discussion-editor": { type: "discussion-editor", name: "评论编辑区" },
203
206
  "discussion-list": { type: "discussion-list", name: "评论列表" },
204
207
  comment: { type: "comment", name: "评论区" },
@@ -206,19 +209,20 @@ const Se = {
206
209
  calendar: { type: "calendar", name: "日历", icon: "date-picker" },
207
210
  wizard: { type: "wizard", name: "向导", icon: "wizard" },
208
211
  "wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
209
- "wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" }
212
+ "wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
213
+ step: { type: "step", name: "步骤条", icon: "step" }
210
214
  }, we = {
211
215
  convertFrom: (e, t, n) => {
212
- var c;
216
+ var s;
213
217
  const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
214
- return ((c = Fe[r]) == null ? void 0 : c.name) || r;
218
+ return ((s = xe[r]) == null ? void 0 : s.name) || r;
215
219
  }
216
- }, xe = {
220
+ }, ke = {
217
221
  convertTo: (e, t, n, r) => {
218
222
  e[t] = e[t];
219
223
  },
220
224
  convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
221
- }, ke = {
225
+ }, Oe = {
222
226
  convertTo: (e, t, n, r) => {
223
227
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
224
228
  [t]: n
@@ -297,11 +301,11 @@ const Se = {
297
301
  ]), t === "enableType" && n === "unable" && (e.command.enable = !1);
298
302
  },
299
303
  convertFrom: (e, t, n) => {
300
- var r, c;
304
+ var r, s;
301
305
  if (e.command) {
302
306
  if (t === "enableType") {
303
- const p = (c = (r = e.command) == null ? void 0 : r.commands) == null ? void 0 : c.find((d) => d.command === "edit" && d.type === "primary");
304
- return e.command.enable ? p ? "default" : "custom" : "unable";
307
+ const b = (s = (r = e.command) == null ? void 0 : r.commands) == null ? void 0 : s.find((d) => d.command === "edit" && d.type === "primary");
308
+ return e.command.enable ? b ? "default" : "custom" : "unable";
305
309
  }
306
310
  if (t === "commands")
307
311
  return e.command.enableType === "custom" ? e.command.commands : [];
@@ -312,7 +316,7 @@ const Se = {
312
316
  }
313
317
  return "";
314
318
  }
315
- }, Oe = {
319
+ }, Me = {
316
320
  convertTo: (e, t, n, r) => {
317
321
  e.column ? e.column[t] = n : e.column = {
318
322
  [t]: n
@@ -327,7 +331,7 @@ const Se = {
327
331
  }
328
332
  return "";
329
333
  }
330
- }, Me = {
334
+ }, Re = {
331
335
  convertTo: (e, t, n, r) => {
332
336
  e.summary ? e.summary[t] = n : e.summary = {
333
337
  [t]: n
@@ -340,7 +344,7 @@ const Se = {
340
344
  var r;
341
345
  return t === "customSummaryStyle" ? e.summary.customSummaryStyle : t === "position" ? ((r = e.summary) == null ? void 0 : r[t]) || "bottom" : e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
342
346
  }
343
- }, ze = {
347
+ }, je = {
344
348
  convertTo: (e, t, n, r) => {
345
349
  e.group ? e.group[t] = n : e.group = {
346
350
  [t]: n
@@ -358,7 +362,7 @@ const Se = {
358
362
  return e.group.showSummary;
359
363
  }
360
364
  }
361
- }, Ee = {
365
+ }, ze = {
362
366
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
363
367
  convertTo: (e, t, n) => {
364
368
  if (n && n.length > 0) {
@@ -366,12 +370,12 @@ const Se = {
366
370
  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;
367
371
  }
368
372
  }
369
- }, je = {
373
+ }, Ee = {
370
374
  convertTo: (e, t, n, r) => {
371
375
  e.pagination || (e.pagination = {}), t === "sizeLimits" ? e.pagination.sizeLimits = n.split(",") : e.pagination[t] = n;
372
376
  },
373
377
  convertFrom: (e, t, n) => e.pagination ? t === "sizeLimits" ? e.pagination.sizeLimits.join(",") : e.pagination[t] : e[t]
374
- }, Re = {
378
+ }, Ae = {
375
379
  convertTo: (e, t, n, r) => {
376
380
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
377
381
  },
@@ -381,38 +385,38 @@ const Se = {
381
385
  e.selection || (e.selection = {}), e.selection[t] = n;
382
386
  },
383
387
  convertFrom: (e, t, n) => {
384
- var r, c;
385
- return t === "showCheckbox" ? (r = e.selection) != null && r.multiSelect ? !0 : (c = e.selection) == null ? void 0 : c.showCheckbox : e.selection ? e.selection[t] : e[t];
388
+ var r, s;
389
+ return t === "showCheckbox" ? (r = e.selection) != null && r.multiSelect ? !0 : (s = e.selection) == null ? void 0 : s.showCheckbox : e.selection ? e.selection[t] : e[t];
386
390
  }
387
391
  }, He = {
388
392
  convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
389
- }, Ae = {
393
+ }, Le = {
390
394
  convertFrom: (e, t) => e[t] || "",
391
395
  convertTo: (e, t, n) => {
392
396
  e[t] = n;
393
397
  }
394
- }, Le = {
398
+ }, Ne = {
395
399
  convertTo: (e, t, n, r) => {
396
400
  e.size || (e.size = {}), e.size[t] = n;
397
401
  },
398
402
  convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
399
- }, Ne = {
403
+ }, $e = {
400
404
  convertFrom: (e, t, n) => {
401
- var r, c;
402
- return (r = e.formatter) != null && r.data && t === "formatterEnumData" && !e.formatterEnumData ? (c = e.formatter) == null ? void 0 : c.data : e.formatterEnumData;
405
+ var r, s;
406
+ return (r = e.formatter) != null && r.data && t === "formatterEnumData" && !e.formatterEnumData ? (s = e.formatter) == null ? void 0 : s.data : e.formatterEnumData;
403
407
  }
404
408
  }, Be = {
405
409
  convertTo: (e, t, n, r) => {
406
410
  e.sort || (e.sort = {}), e.sort[t] = n;
407
411
  },
408
412
  convertFrom: (e, t, n) => {
409
- var r, c;
413
+ var r, s;
410
414
  if (t === "mode")
411
415
  return ((r = e.sort) == null ? void 0 : r.mode) || "client";
412
416
  if (t === "multiSort")
413
- return !!((c = e.sort) != null && c.multiSort);
417
+ return !!((s = e.sort) != null && s.multiSort);
414
418
  }
415
- }, $e = {
419
+ }, Ie = {
416
420
  convertTo: (e, t, n, r) => {
417
421
  e.filter || (e.filter = {}), e.filter[t] = n;
418
422
  },
@@ -421,7 +425,7 @@ const Se = {
421
425
  if (t === "mode")
422
426
  return ((r = e.filter) == null ? void 0 : r.mode) || "client";
423
427
  }
424
- }, Ie = {
428
+ }, qe = {
425
429
  convertTo: (e, t, n, r) => {
426
430
  e.rowOption ? e.rowOption[t] = n : e.rowOption = {
427
431
  [t]: n
@@ -438,7 +442,7 @@ const Se = {
438
442
  }
439
443
  return "";
440
444
  }
441
- }, qe = {
445
+ }, _e = {
442
446
  convertTo: (e, t, n, r) => {
443
447
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = n, t === "columnTemplateType" && n === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
444
448
  <span class="f-pretend-link f-cursor-pointer"
@@ -450,32 +454,43 @@ const Se = {
450
454
  </span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
451
455
  },
452
456
  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" : ""
457
+ }, Ge = {
458
+ convertTo: (e, t, n, r) => {
459
+ e.hierarchy || (e.hierarchy = {
460
+ cascadeOption: {}
461
+ }), e.hierarchy.cascadeOption || (e.hierarchy.cascadeOption = {}), e.hierarchy.cascadeOption[t] = n;
462
+ },
463
+ convertFrom: (e, t, n) => {
464
+ var r, s;
465
+ return !!((s = (r = e.hierarchy) == null ? void 0 : r.cascadeOption) != null && s[t]);
466
+ }
453
467
  };
454
468
  function U(e, t, n) {
455
469
  const r = /* @__PURE__ */ new Map([
456
- ["/converter/appearance.converter", Se],
457
- ["/converter/buttons.converter", Te],
458
- ["/converter/property-editor.converter", he],
470
+ ["/converter/appearance.converter", Te],
471
+ ["/converter/buttons.converter", he],
472
+ ["/converter/property-editor.converter", Fe],
459
473
  ["/converter/items-count.converter", He],
460
474
  ["/converter/type.converter", we],
461
- ["/converter/change-editor.converter", xe],
462
- ["/converter/change-formatter.converter", ke],
475
+ ["/converter/change-editor.converter", ke],
476
+ ["/converter/change-formatter.converter", Oe],
463
477
  ["/converter/column-command.converter", Pe],
464
- ["/converter/column-option.converter", Oe],
465
- ["/converter/summary.converter", Me],
466
- ["/converter/group.converter", ze],
467
- ["/converter/form-group-label.converter", Ae],
468
- ["/converter/field-selector.converter", Ee],
469
- ["/converter/pagination.converter", je],
470
- ["/converter/row-number.converter", Re],
478
+ ["/converter/column-option.converter", Me],
479
+ ["/converter/summary.converter", Re],
480
+ ["/converter/group.converter", je],
481
+ ["/converter/form-group-label.converter", Le],
482
+ ["/converter/field-selector.converter", ze],
483
+ ["/converter/pagination.converter", Ee],
484
+ ["/converter/row-number.converter", Ae],
471
485
  ["/converter/grid-selection.converter", De],
472
- ["/converter/size.converter", Le],
473
- ["/converter/change-formatter-enum.converter", Ne],
486
+ ["/converter/size.converter", Ne],
487
+ ["/converter/change-formatter-enum.converter", $e],
474
488
  ["/converter/grid-sort.converter", Be],
475
- ["/converter/grid-filter.converter", $e],
476
- ["/converter/row-option.converter", Ie],
477
- ["/converter/change-formatter-type.converter", qe]
478
- ]), c = /* @__PURE__ */ new Map([
489
+ ["/converter/grid-filter.converter", Ie],
490
+ ["/converter/row-option.converter", qe],
491
+ ["/converter/change-formatter-type.converter", _e],
492
+ ["/converter/tree-auto-check.converter", Ge]
493
+ ]), s = /* @__PURE__ */ new Map([
479
494
  ["string", { type: "input-group", enableClear: !1 }],
480
495
  ["boolean", {
481
496
  type: "combo-list",
@@ -499,182 +514,182 @@ function U(e, t, n) {
499
514
  ["array", { type: "button-edit" }],
500
515
  ["number", { type: "number-spinner", placeholder: "" }],
501
516
  ["events-editor", { type: "events-editor", hide: !0 }]
502
- ]), p = Ce();
517
+ ]), b = Se();
503
518
  function d(o, a) {
504
- return () => p.parseValueSchema(o, a);
519
+ return () => b.parseValueSchema(o, a);
505
520
  }
506
- function y(o, a, s) {
507
- return o.includes("visible") && a.visible !== void 0 ? typeof a.visible == "boolean" ? () => !!a.visible : a.visible === void 0 ? !0 : d(a.visible, s) : () => !0;
521
+ function y(o, a, c) {
522
+ return o.includes("visible") && a.visible !== void 0 ? typeof a.visible == "boolean" ? () => !!a.visible : a.visible === void 0 ? !0 : d(a.visible, c) : () => !0;
508
523
  }
509
- function S(o, a, s) {
510
- return o.includes("readonly") && a.readonly !== void 0 ? typeof a.readonly == "boolean" ? () => !!a.readonly : d(a.readonly, s) : () => !1;
524
+ function C(o, a, c) {
525
+ return o.includes("readonly") && a.readonly !== void 0 ? typeof a.readonly == "boolean" ? () => !!a.readonly : d(a.readonly, c) : () => !1;
511
526
  }
512
527
  function u(o, a) {
513
- const s = o.$converter || a;
514
- return typeof s == "string" && s && r.has(s) ? r.get(s) || null : s || null;
528
+ const c = o.$converter || a;
529
+ return typeof c == "string" && c && r.has(c) ? r.get(c) || null : c || null;
515
530
  }
516
- function f(o, a, s, v, g, k = "", h = "") {
517
- return Object.keys(o).map((C) => {
518
- const P = j(1), O = C, T = o[C], b = Object.keys(T), H = T.title, R = T.type, D = c.get(R) || { type: "input-group", enableClear: !1 }, E = T.editor ? Object.assign({}, D, T.editor) : Object.assign({}, D), L = y(b, T, a), A = S(b, T, a);
519
- E.readonly = E.readonly === void 0 ? A() : E.readonly;
520
- const N = T.type === "cascade" ? f(T.properties, a, s, v, g, k, h) : [], B = !0;
521
- let M = u(T, h);
531
+ function m(o, a, c, p, g, w = "", F = "") {
532
+ return Object.keys(o).map((T) => {
533
+ const j = z(1), O = T, S = o[T], v = Object.keys(S), D = S.title, E = S.type, A = s.get(E) || { type: "input-group", enableClear: !1 }, R = S.editor ? Object.assign({}, A, S.editor) : Object.assign({}, A), N = y(v, S, a), L = C(v, S, a);
534
+ R.readonly = R.readonly === void 0 ? L() : R.readonly;
535
+ const $ = S.type === "cascade" ? m(S.properties, a, c, p, g, w, F) : [], B = !0;
536
+ let P = u(S, F);
522
537
  const oe = x({
523
538
  get() {
524
- if (P.value) {
525
- if (["class", "style"].find((ce) => ce === O) && !M && (M = r.get("/converter/appearance.converter") || null), M && M.convertFrom)
526
- return M.convertFrom(s, C, g, k);
527
- const z = s[C];
528
- return Object.prototype.hasOwnProperty.call(T, "defaultValue") && (z === void 0 || typeof z == "string" && z === "") ? T.type === "boolean" ? T.defaultValue : T.defaultValue || "" : z;
539
+ if (j.value) {
540
+ if (["class", "style"].find((se) => se === O) && !P && (P = r.get("/converter/appearance.converter") || null), P && P.convertFrom)
541
+ return P.convertFrom(c, T, g, w);
542
+ const M = c[T];
543
+ return Object.prototype.hasOwnProperty.call(S, "defaultValue") && (M === void 0 || typeof M == "string" && M === "") ? S.type === "boolean" ? S.defaultValue : S.defaultValue || "" : M;
529
544
  }
530
545
  return null;
531
546
  },
532
- set(z) {
533
- P.value += 1, M && M.convertTo ? (M.convertTo(v, C, z, g, k), M.convertTo(s, C, z, g, k)) : (v[C] = z, s[C] = z);
547
+ set(M) {
548
+ j.value += 1, P && P.convertTo ? (P.convertTo(p, T, M, g, w), P.convertTo(c, T, M, g, w)) : (p[T] = M, c[T] = M);
534
549
  }
535
- }), { refreshPanelAfterChanged: ie, description: ae, isExpand: le, parentPropertyID: se } = T, I = { propertyID: O, propertyName: H, propertyType: R, propertyValue: oe, editor: E, visible: L, readonly: A, cascadeConfig: N, hideCascadeTitle: B, refreshPanelAfterChanged: ie, description: ae, isExpand: le, parentPropertyID: se };
550
+ }), { refreshPanelAfterChanged: ie, description: ae, isExpand: le, parentPropertyID: ce } = S, I = { propertyID: O, propertyName: D, propertyType: E, propertyValue: oe, editor: R, visible: N, readonly: L, cascadeConfig: $, hideCascadeTitle: B, refreshPanelAfterChanged: ie, description: ae, isExpand: le, parentPropertyID: ce };
536
551
  return a[O] = I, I;
537
552
  });
538
553
  }
539
- function i(o, a, s = {}) {
540
- const v = {}, g = e[o];
541
- return g && g.categories ? Object.keys(g.categories).map((h) => {
542
- const w = g.categories[h], C = w == null ? void 0 : w.title, P = f(w.properties || {}, v, {}, s, a);
543
- return { categoryId: h, categoryName: C, properties: P };
554
+ function i(o, a, c = {}) {
555
+ const p = {}, g = e[o];
556
+ return g && g.categories ? Object.keys(g.categories).map((F) => {
557
+ const k = g.categories[F], T = k == null ? void 0 : k.title, j = m(k.properties || {}, p, {}, c, a);
558
+ return { categoryId: F, categoryName: T, properties: j };
544
559
  }) : [];
545
560
  }
546
- function l(o, a, s, v, g = "") {
547
- const k = a.$ref.schema, h = a.$ref.converter, w = s[k], C = w.type, P = n(w), O = {}, T = e[C];
548
- if (T && T.categories) {
549
- const b = T.categories[o], H = b == null ? void 0 : b.title;
550
- h && Object.keys(b.properties).forEach((E) => {
551
- b.properties[E].$converter = h;
561
+ function l(o, a, c, p, g = "") {
562
+ const w = a.$ref.schema, F = a.$ref.converter, k = c[w], T = k.type, j = n(k), O = {}, S = e[T];
563
+ if (S && S.categories) {
564
+ const v = S.categories[o], D = v == null ? void 0 : v.title;
565
+ F && Object.keys(v.properties).forEach((R) => {
566
+ v.properties[R].$converter = F;
552
567
  });
553
- const R = (b == null ? void 0 : b.properties) || {}, D = f(R, O, P, w, v, g);
554
- return { categoryId: o, categoryName: H, properties: D };
568
+ const E = (v == null ? void 0 : v.properties) || {}, A = m(E, O, j, k, p, g);
569
+ return { categoryId: o, categoryName: D, properties: A };
555
570
  }
556
571
  return { categoryId: o, categoryName: "", properties: [] };
557
572
  }
558
- function m(o, a, s, v, g) {
559
- const k = o.type, h = n(o), w = {};
560
- let C = g || e[k];
561
- if (!(C && Object.keys(C).length > 0) && s && s.getPropConfig && (C = s.getPropConfig(v)), C && C.categories) {
573
+ function f(o, a, c, p, g) {
574
+ const w = o.type, F = n(o), k = {};
575
+ let T = g || e[w];
576
+ if (!(T && Object.keys(T).length > 0) && c && c.getPropConfig && (T = c.getPropConfig(p)), T && T.categories) {
562
577
  const O = [];
563
- return Object.keys(C.categories).map((T) => {
564
- const b = C.categories[T];
565
- if (b.$ref) {
566
- O.push(l(T, b, o, a, v));
578
+ return Object.keys(T.categories).map((S) => {
579
+ const v = T.categories[S];
580
+ if (v.$ref) {
581
+ O.push(l(S, v, o, a, p));
567
582
  return;
568
583
  }
569
- const H = b == null ? void 0 : b.title, R = b == null ? void 0 : b.tabId, D = b == null ? void 0 : b.tabName, E = b == null ? void 0 : b.hide, L = b == null ? void 0 : b.hideTitle, A = f(b.properties || {}, w, h, o, a, v, b.$converter), { setPropertyRelates: N } = b, B = b == null ? void 0 : b.parentPropertyID;
570
- O.push({ categoryId: T, categoryName: H, tabId: R, tabName: D, hide: E, properties: A, hideTitle: L, setPropertyRelates: N, parentPropertyID: B });
584
+ const D = v == null ? void 0 : v.title, E = v == null ? void 0 : v.tabId, A = v == null ? void 0 : v.tabName, R = v == null ? void 0 : v.hide, N = v == null ? void 0 : v.hideTitle, L = m(v.properties || {}, k, F, o, a, p, v.$converter), { setPropertyRelates: $ } = v, B = v == null ? void 0 : v.parentPropertyID;
585
+ O.push({ categoryId: S, categoryName: D, tabId: E, tabName: A, hide: R, properties: L, hideTitle: N, setPropertyRelates: $, parentPropertyID: B });
571
586
  }), O;
572
587
  }
573
588
  return [];
574
589
  }
575
590
  return {
576
- getPropertyConfigBySchema: m,
591
+ getPropertyConfigBySchema: f,
577
592
  getPropertyConfigByType: i,
578
593
  propertyConverterMap: r
579
594
  };
580
595
  }
581
596
  const X = {}, Y = {};
582
- U(X, Y, be);
583
- const V = {}, K = {}, { resolveSchemaWithDefaultValue: _e } = Z(V, K), ee = {}, te = {};
584
- U(ee, te, _e);
585
- function Ge(e, t, n = /* @__PURE__ */ new Map(), r = (d, y, S, u) => y, c = {}, p = (d) => d) {
586
- return J[t.title] = t, Q[t.title] = r, X[t.title] = c, Y[t.title] = p, V[t.title] = t, K[t.title] = r, ee[t.title] = c, te[t.title] = p, (d = {}, y = !0) => {
597
+ U(X, Y, ge);
598
+ const V = {}, K = {}, { resolveSchemaWithDefaultValue: We } = Z(V, K), ee = {}, te = {};
599
+ U(ee, te, We);
600
+ function Ze(e, t, n = /* @__PURE__ */ new Map(), r = (d, y, C, u) => y, s = {}, b = (d) => d) {
601
+ return J[t.title] = t, Q[t.title] = r, X[t.title] = s, Y[t.title] = b, V[t.title] = t, K[t.title] = r, ee[t.title] = s, te[t.title] = b, (d = {}, y = !0) => {
587
602
  if (!y)
588
- return ye(d, n);
589
- const S = ge(d, t, n), u = Object.keys(e).reduce((f, i) => (f[i] = e[i].default, f), {});
590
- return Object.assign(u, S);
603
+ return Ce(d, n);
604
+ const C = ye(d, t, n), u = Object.keys(e).reduce((m, i) => (m[i] = e[i].default, m), {});
605
+ return Object.assign(u, C);
591
606
  };
592
607
  }
593
- function We(e, t) {
608
+ function Je(e, t) {
594
609
  if (!e || e.length < 1)
595
610
  return null;
596
611
  for (const n of e) {
597
612
  if (n.id === t)
598
613
  return n;
599
614
  if (n.children) {
600
- const r = n.children.find((c) => c.id === t);
615
+ const r = n.children.find((s) => s.id === t);
601
616
  if (r)
602
617
  return r;
603
618
  }
604
619
  }
605
620
  return null;
606
621
  }
607
- function Ze() {
622
+ function Qe() {
608
623
  function e(t, n) {
609
624
  var y;
610
625
  const r = (y = t.toolbar) == null ? void 0 : y.buttons;
611
626
  if (!r || r.length < 1)
612
627
  return null;
613
- const [c, p] = n.payloads, d = We(r, p);
628
+ const [s, b] = n.payloads, d = Je(r, b);
614
629
  return d ? d.onClick || d.click : null;
615
630
  }
616
631
  return {
617
632
  resolve: e
618
633
  };
619
634
  }
620
- function Je(e, t, n) {
635
+ function Ue(e, t, n) {
621
636
  return t ? { enableAccordion: n.accordionMode } : { enableAccordion: "" };
622
637
  }
623
- function Qe(e, t) {
624
- var n;
625
- return {
638
+ function Xe(e, t) {
639
+ var r, s;
640
+ const n = {
626
641
  buttons: t.buttons,
627
642
  buttonPosition: t.position,
628
- buttonsClass: (n = t.appearance) == null ? void 0 : n.class,
629
643
  buttonsVisible: t.visible
630
644
  };
645
+ return (r = t.appearance) != null && r.class && (n.buttonsClass = (s = t.appearance) == null ? void 0 : s.class), n;
631
646
  }
632
- const Ue = /* @__PURE__ */ new Map([
647
+ const Ye = /* @__PURE__ */ new Map([
633
648
  ["appearance", pe],
634
649
  ["expanded", "expandStatus"],
635
- ["enableAccordion", Je],
636
- ["toolbar", Qe]
650
+ ["enableAccordion", Ue],
651
+ ["toolbar", Xe]
637
652
  ]);
638
- function Xe(e, t) {
639
- var p, d;
653
+ function Ve(e, t) {
654
+ var b, d;
640
655
  if (!(t != null && t.schema))
641
656
  return;
642
- const n = ((d = (p = t.schema) == null ? void 0 : p.appearance) == null ? void 0 : d.class) || "", r = t.elementRef, c = window.getComputedStyle(r);
643
- c && c.display === "flex" && !n.includes("f-page-child-fill") && (e.appearance.class += " d-block");
657
+ const n = ((d = (b = t.schema) == null ? void 0 : b.appearance) == null ? void 0 : d.class) || "", r = t.elementRef, s = window.getComputedStyle(r);
658
+ s && s.display === "flex" && !n.includes("f-page-child-fill") && (e.appearance.class += " d-block");
644
659
  }
645
- function Ye(e, t) {
646
- var S;
647
- const n = Math.random().toString().slice(2, 6), r = t.parentComponentInstance, c = e.getSchemaByType("section");
648
- Object.assign(c, {
660
+ function Ke(e, t) {
661
+ var C;
662
+ const n = Math.random().toString().slice(2, 6), r = t.parentComponentInstance, s = e.getSchemaByType("section");
663
+ Object.assign(s, {
649
664
  id: `section-${n}`,
650
665
  appearance: {
651
666
  class: "f-section-in-mainsubcard"
652
667
  },
653
- mainTitle: t.mainTitle || c.mainTitle || "标题"
668
+ mainTitle: t.mainTitle || s.mainTitle || "标题"
654
669
  });
655
- const p = e.getSchemaByType("content-container");
656
- Object.assign(p, {
670
+ const b = e.getSchemaByType("content-container");
671
+ Object.assign(b, {
657
672
  id: `container-${n}`,
658
673
  appearance: {
659
674
  class: "f-struct-wrapper"
660
675
  },
661
- contents: [c]
676
+ contents: [s]
662
677
  });
663
- const d = r.schema, y = ((S = d.appearance) == null ? void 0 : S.class) || "";
678
+ const d = r.schema, y = ((C = d.appearance) == null ? void 0 : C.class) || "";
664
679
  switch (d && d.type) {
665
680
  case G["splitter-pane"].type: {
666
- c.appearance.class = "f-section-in-main", y.includes("f-page-child-fill") && (p.appearance.class += " f-struct-wrapper-child", c.fill = !0);
681
+ s.appearance.class = "f-section-in-main", y.includes("f-page-child-fill") && (b.appearance.class += " f-struct-wrapper-child", s.fill = !0);
667
682
  break;
668
683
  }
669
684
  case G["content-container"].type:
670
- d.isLikeCardContainer && y.includes("f-struct-like-card-child-fill") && (p.appearance.class += " f-struct-wrapper-child", c.fill = !0);
685
+ d.isLikeCardContainer && y.includes("f-struct-like-card-child-fill") && (b.appearance.class += " f-struct-wrapper-child", s.fill = !0);
671
686
  }
672
- return Xe(p, r), p;
687
+ return Ve(b, r), b;
673
688
  }
674
- function Ve(e, t, n) {
675
- return n.parentComponentInstance ? Ye(e, n) : t;
689
+ function et(e, t, n) {
690
+ return n.parentComponentInstance ? Ke(e, n) : t;
676
691
  }
677
- const Ke = "https://json-schema.org/draft/2020-12/schema", et = "https://farris-design.gitee.io/section.schema.json", tt = "section", nt = "A Farris Container Component", rt = "object", ot = {
692
+ const tt = "https://json-schema.org/draft/2020-12/schema", nt = "https://farris-design.gitee.io/section.schema.json", rt = "section", ot = "A Farris Container Component", it = "object", at = {
678
693
  id: {
679
694
  description: "The unique identifier for a Section",
680
695
  type: "string"
@@ -770,7 +785,7 @@ const Ke = "https://json-schema.org/draft/2020-12/schema", et = "https://farris-
770
785
  type: "string",
771
786
  default: ""
772
787
  },
773
- extendClass: {
788
+ extendAreaClass: {
774
789
  description: "",
775
790
  type: "string",
776
791
  default: ""
@@ -853,19 +868,29 @@ const Ke = "https://json-schema.org/draft/2020-12/schema", et = "https://farris-
853
868
  description: "",
854
869
  type: "function",
855
870
  default: null
871
+ },
872
+ extendedAreaHtml: {
873
+ description: "",
874
+ type: "string",
875
+ default: ""
876
+ },
877
+ extendAreaRenderFunction: {
878
+ description: "",
879
+ type: "function",
880
+ default: null
856
881
  }
857
- }, it = [
882
+ }, lt = [
858
883
  "id",
859
884
  "type",
860
885
  "contents"
861
- ], at = {
862
- $schema: Ke,
863
- $id: et,
864
- title: tt,
865
- description: nt,
866
- type: rt,
867
- properties: ot,
868
- required: it
886
+ ], ct = {
887
+ $schema: tt,
888
+ $id: nt,
889
+ title: rt,
890
+ description: ot,
891
+ type: it,
892
+ properties: at,
893
+ required: lt
869
894
  }, ne = {
870
895
  /** 设置内容区域样式 */
871
896
  contentClass: { type: String, default: "" },
@@ -886,14 +911,16 @@ const Ke = "https://json-schema.org/draft/2020-12/schema", et = "https://farris-
886
911
  expandLabel: { type: String, default: "展开" },
887
912
  /** 收起文本 */
888
913
  collapseLabel: { type: String, default: "收起" },
889
- /** 头部区域的自定义样式。配置头部自定义模板后,此属性有效。 */
914
+ /** 头部区域的自定义样式 */
890
915
  headerClass: { type: String, default: "" },
916
+ /** 头部内容区域的自定义样式 */
917
+ headerContentClass: { type: String, default: "" },
891
918
  /** 设置是否启用最大化 */
892
919
  enableMaximize: { type: Boolean, default: !1 },
893
- /** 头部扩展区域的自定义样式。配置头部扩展区域模板后,此属性有效。 */
894
- headerContentClass: { type: String, default: "" },
895
920
  /** 扩展区域的自定义样式。配置扩展区域模板后,此属性有效。 */
896
- extendClass: { type: String, default: "" },
921
+ extendAreaClass: { type: String, default: "" },
922
+ /** 扩展区域的自定义模版。 */
923
+ extendAreaRenderFunction: { type: Function },
897
924
  /** 按钮组 */
898
925
  buttons: { type: Array, default: [] },
899
926
  /** 按钮组的位置,inHead:头部区域| inContent:内容区域 */
@@ -925,10 +952,10 @@ const Ke = "https://json-schema.org/draft/2020-12/schema", et = "https://farris-
925
952
  // toolbarPosition: { type: String, default: '' },
926
953
  // toolbarButtons: { type: Array<object>, default: [] },
927
954
  // toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
928
- }, gt = Ge(ne, at, Ue, Ve), yt = Ze();
929
- function lt(e, t, n) {
955
+ }, St = Ze(ne, ct, Ye, et), Tt = Qe();
956
+ function st(e, t, n) {
930
957
  let r;
931
- function c(S = 1) {
958
+ function s(C = 1) {
932
959
  const u = [
933
960
  "body>.f-datagrid-settings-simple-host",
934
961
  "body>div",
@@ -939,17 +966,17 @@ function lt(e, t, n) {
939
966
  "body>.popover.show",
940
967
  "body>filter-row-panel>.f-datagrid-filter-panel",
941
968
  "body>.f-section-maximize"
942
- ], f = Array.from(document.body.querySelectorAll(u.join(","))).filter((l) => l).map((l) => {
943
- const { display: m, zIndex: o } = window.getComputedStyle(l);
944
- return m === "none" ? 0 : parseInt(o, 10);
969
+ ], m = Array.from(document.body.querySelectorAll(u.join(","))).filter((l) => l).map((l) => {
970
+ const { display: f, zIndex: o } = window.getComputedStyle(l);
971
+ return f === "none" ? 0 : parseInt(o, 10);
945
972
  }).filter((l) => l);
946
- let i = Math.max(...f);
947
- return i < 1040 && (i = 1040), i + S;
973
+ let i = Math.max(...m);
974
+ return i < 1040 && (i = 1040), i + C;
948
975
  }
949
- function p() {
976
+ function b() {
950
977
  r = e.value.nextElementSibling;
951
- const S = document && document.querySelector("body");
952
- S && (S.appendChild(e.value), e.value.style.zIndex = c());
978
+ const C = document && document.querySelector("body");
979
+ C && (C.appendChild(e.value), e.value.style.zIndex = s());
953
980
  }
954
981
  function d() {
955
982
  r ? t.value.insertBefore(
@@ -958,169 +985,154 @@ function lt(e, t, n) {
958
985
  ) : t.value.appendChild(e.value), e.value.style.zIndex = null;
959
986
  }
960
987
  function y() {
961
- !e || !t.value || (n.value = !n.value, n.value ? p() : d());
988
+ !e || !t.value || (n.value = !n.value, n.value ? b() : d());
962
989
  }
963
990
  return { onClickMaxMinIcon: y };
964
991
  }
965
992
  function re(e, t) {
966
- const n = j(e.buttons), r = x(() => e.buttonPosition === "inHead" ? "right" : "left"), c = x(() => "f-section-toolbar col-6" + (e.buttonPosition === "inHead" ? " f-toolbar f-section-header--toolbar" : " f-section-content--toolbar") + (e.buttonsClass ? " " + e.buttonsClass : "")), p = x(() => e.buttons && e.buttons.length > 0 && e.buttonPosition === "inHead");
967
- function d(u, f) {
968
- t.emit("click", u, f);
993
+ const n = z(e.buttons), r = x(() => e.buttonPosition === "inHead" ? "right" : "left"), s = x(() => "f-section-toolbar col-6" + (e.buttonPosition === "inHead" ? " f-toolbar f-section-header--toolbar" : " f-section-content--toolbar") + (e.buttonsClass ? " " + e.buttonsClass : "")), b = x(() => e.buttons && e.buttons.length > 0 && e.buttonPosition === "inHead");
994
+ function d(u, m) {
995
+ t.emit("click", u, m);
969
996
  }
970
997
  function y() {
971
- return p.value && F(ve, {
972
- customClass: c.value,
998
+ return b.value && h(ve, {
999
+ customClass: s.value,
973
1000
  items: n.value,
974
1001
  onClick: d,
975
1002
  alignment: r.value,
976
1003
  visible: e.buttonsVisible
977
1004
  }, null);
978
1005
  }
979
- function S() {
980
- return F("div", {
981
- class: c.value
982
- }, [F("div", {
1006
+ function C() {
1007
+ return h("div", {
1008
+ class: s.value
1009
+ }, [h("div", {
983
1010
  class: "w-100",
984
1011
  style: "flex:1"
985
1012
  }, [e.toolbarRenderFunction()])]);
986
1013
  }
987
- return () => e.toolbarRenderFunction ? S() : y();
1014
+ return () => e.toolbarRenderFunction ? C() : y();
988
1015
  }
989
- function st(e, t, n, r, c, p) {
1016
+ function ut(e, t, n, r, s, b) {
990
1017
  const d = {
991
1018
  collapseLabel: W.getRealPropertyValue(e.collapseLabel, "收起", "section.collapseLabel"),
992
1019
  expandLabel: W.getRealPropertyValue(e.expandLabel, "展开", "section.expandLabel")
993
- }, y = x(() => e.buttonPosition), S = re(e, t), {
1020
+ }, y = x(() => e.buttonPosition), C = re(e, t), {
994
1021
  onClickMaxMinIcon: u
995
- } = lt(r, c, p), f = x(() => e.enableMaximize), i = x(() => e.enableAccordion !== ""), l = x(() => {
996
- const h = {
997
- "f-section-header": !0
998
- };
999
- return t.slots.header && e.headerClass.split(" ").reduce((C, P) => (C[P] = !0, C), h), h;
1000
- });
1001
- function m(h) {
1002
- h.stopPropagation(), e.enableAccordion !== "" && (n.value = !n.value);
1022
+ } = st(r, s, b), m = x(() => e.enableMaximize), i = x(() => e.enableAccordion !== ""), l = x(() => H({
1023
+ "f-section-header": !0
1024
+ }, e.headerClass));
1025
+ function f(F) {
1026
+ F.stopPropagation(), e.enableAccordion !== "" && (n.value = !n.value);
1003
1027
  }
1004
1028
  function o() {
1005
- const h = x(() => ({
1029
+ const F = x(() => ({
1006
1030
  btn: !0,
1007
1031
  "f-btn-collapse-expand": !0,
1008
1032
  "f-btn-mx": !0,
1009
1033
  "f-state-expand": n.value
1010
- })), w = x(() => ({
1034
+ })), k = x(() => ({
1011
1035
  "f-icon": !0,
1012
- "f-icon-maximize": !p.value,
1013
- "f-icon-minimize": p.value
1036
+ "f-icon-maximize": !b.value,
1037
+ "f-icon-minimize": b.value
1014
1038
  }));
1015
- return F("div", {
1039
+ return h("div", {
1016
1040
  class: "f-max-accordion"
1017
- }, [f.value ? F("span", {
1018
- class: w.value,
1041
+ }, [m.value ? h("span", {
1042
+ class: k.value,
1019
1043
  onClick: u
1020
- }, null) : "", i.value ? F("button", {
1021
- class: h.value,
1022
- onClick: m
1023
- }, [F("span", null, [n.value ? d.collapseLabel : d.expandLabel])]) : ""]);
1044
+ }, null) : "", i.value ? h("button", {
1045
+ class: F.value,
1046
+ onClick: f
1047
+ }, [h("span", null, [n.value ? d.collapseLabel : d.expandLabel])]) : ""]);
1024
1048
  }
1025
1049
  function a() {
1026
- return F("div", {
1050
+ return h("div", {
1027
1051
  class: "f-title"
1028
- }, [F("h4", {
1052
+ }, [h("h4", {
1029
1053
  class: "f-title-text"
1030
- }, [e.mainTitle]), e.subTitle && F("span", null, [e.subTitle])]);
1054
+ }, [e.mainTitle]), e.subTitle && h("span", null, [e.subTitle])]);
1031
1055
  }
1032
- function s() {
1033
- const h = x(() => {
1034
- const w = {
1035
- "f-content": !0
1036
- };
1037
- return e.headerContentClass && e.headerContentClass.split(" ").reduce((P, O) => (P[O] = !0, P), w), w;
1038
- });
1039
- return t.slots.headerContent ? F("div", {
1040
- class: h.value
1041
- }, [t.slots.headerContent()]) : e.headerContentRenderFunction ? F("div", {
1042
- class: h.value
1043
- }, [e.headerContentRenderFunction()]) : null;
1056
+ function c() {
1057
+ const F = x(() => H({
1058
+ "f-content": !0
1059
+ }, e.headerContentClass));
1060
+ return t.slots.headerContent ? h("div", {
1061
+ class: F.value
1062
+ }, [t.slots.headerContent()]) : e.headerContentRenderFunction ? h("div", {
1063
+ class: F.value
1064
+ }, [e.headerContentRenderFunction()]) : h("div", {
1065
+ class: F.value
1066
+ }, null);
1044
1067
  }
1045
- function v() {
1068
+ function p() {
1046
1069
  return t.slots.headerTitle ? t.slots.headerTitle() : e.headerTitleRenderFunction ? e.headerTitleRenderFunction() : a();
1047
1070
  }
1048
1071
  function g() {
1049
- return F("div", {
1072
+ return h("div", {
1050
1073
  class: l.value
1051
- }, [v(), s(), y.value === "inHead" && S(), (f.value || i.value) && o()]);
1074
+ }, [p(), c(), y.value === "inHead" && C(), (m.value || i.value) && o()]);
1052
1075
  }
1053
- function k() {
1054
- return t.slots.header ? F("div", {
1076
+ function w() {
1077
+ return t.slots.header ? h("div", {
1055
1078
  class: l.value
1056
- }, [t.slots.header()]) : e.headerRenderFunction ? F("div", {
1079
+ }, [t.slots.header()]) : e.headerRenderFunction ? h("div", {
1057
1080
  class: l.value
1058
1081
  }, [e.headerRenderFunction()]) : g();
1059
1082
  }
1060
- return () => e.showHeader && k();
1083
+ return () => e.showHeader && w();
1061
1084
  }
1062
- const ct = /* @__PURE__ */ ue({
1085
+ const dt = /* @__PURE__ */ ue({
1063
1086
  name: "FSection",
1064
1087
  props: ne,
1065
1088
  emits: ["click"],
1066
1089
  setup(e, t) {
1067
- const n = j(), r = j(), c = j(e.customClass), p = x(() => e.enableAccordion), d = j(e.expandStatus), y = x(() => e.buttonPosition), S = j(!1), u = st(e, t, d, n, r, S), f = re(e, t), i = x(() => {
1068
- const s = {
1090
+ const n = z(), r = z(), s = z(e.customClass), b = x(() => e.enableAccordion), d = z(e.expandStatus), y = x(() => e.buttonPosition), C = z(!1), u = ut(e, t, d, n, r, C), m = re(e, t), i = x(() => {
1091
+ const c = {
1069
1092
  "f-section": !0,
1070
- "f-section-accordion": p.value === "default",
1071
- "f-state-collapse": (p.value === "default" || p.value === "custom") && !d.value,
1072
- "f-section-custom-accordion": p.value === "custom",
1093
+ "f-section-accordion": b.value === "default",
1094
+ "f-state-collapse": b.value && !d.value,
1095
+ "f-section-custom-accordion": b.value === "custom",
1073
1096
  "f-section-fill": e.fill,
1074
- "f-section-maximize": S.value
1097
+ "f-section-maximize": C.value
1075
1098
  };
1076
- return $(s, c.value);
1077
- }), l = x(() => $({
1099
+ return H(c, s.value);
1100
+ }), l = x(() => H({
1078
1101
  "f-section-content": !0
1079
- }, e.contentClass)), m = x(() => $({
1102
+ }, e.contentClass)), f = x(() => H({
1080
1103
  "f-section-extend": !0
1081
- }, e.extendClass));
1104
+ }, e.extendAreaClass));
1082
1105
  function o() {
1083
- return t.slots.extend && F("div", {
1084
- class: m.value
1085
- }, [t.slots.extend()]);
1106
+ if (t.slots.extend)
1107
+ return h("div", {
1108
+ class: f.value
1109
+ }, [t.slots.extend()]);
1110
+ if (e.extendAreaRenderFunction)
1111
+ return h("div", {
1112
+ class: f.value
1113
+ }, [e.extendAreaRenderFunction()]);
1086
1114
  }
1087
1115
  function a() {
1088
- return F("div", {
1116
+ return h("div", {
1089
1117
  class: l.value
1090
- }, [y.value === "inContent" && f(), t.slots.default && t.slots.default()]);
1118
+ }, [y.value === "inContent" && m(), t.slots.default && t.slots.default()]);
1091
1119
  }
1092
- return de(() => e.expandStatus, (s, v) => {
1093
- s !== v && (d.value = s);
1120
+ return de(() => e.expandStatus, (c, p) => {
1121
+ c !== p && (d.value = c);
1094
1122
  }), fe(() => {
1095
1123
  n.value && n.value && (r.value = n.value.parentElement);
1096
- }), () => e.visible ? F("div", {
1124
+ }), () => e.visible ? h("div", {
1097
1125
  class: i.value,
1098
1126
  ref: n,
1099
1127
  style: e.customStyle
1100
1128
  }, [u(), o(), a()]) : null;
1101
1129
  }
1102
- }), Ct = {
1103
- id: { type: String, default: "" },
1104
- items: { type: Object, default: {} },
1105
- class: { type: String, default: "" },
1106
- text: { type: String, default: "" },
1107
- disabled: { type: Boolean, default: !1 },
1108
- icon: { type: String, default: "" },
1109
- componentId: { type: String, default: "" },
1110
- // 是否展开子级
1111
- expanded: { type: Boolean, default: !1 },
1112
- alignment: { Type: String, default: "right" },
1113
- split: { type: Boolean, default: !1 },
1114
- // 是否下拉
1115
- isDP: { type: Boolean, default: !1 },
1116
- // 是否下拉项
1117
- isDPItem: { type: Boolean, default: !1 }
1118
- }, St = me(ct);
1130
+ }), ht = Object.assign({}, be), Ft = me(dt);
1119
1131
  export {
1120
- ct as Section,
1121
- St as default,
1122
- yt as eventHandlerResolver,
1123
- gt as propsResolver,
1132
+ dt as Section,
1133
+ Ft as default,
1134
+ Tt as eventHandlerResolver,
1135
+ St as propsResolver,
1124
1136
  ne as sectionProps,
1125
- Ct as sectionToolbarItemProps
1137
+ ht as sectionToolbarItemProps
1126
1138
  };