@farris/ui-vue 1.6.5-beta.1 → 1.6.5-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/components/accordion/index.esm.js +190 -187
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/accordion/package.json +1 -1
  4. package/components/avatar/package.json +1 -1
  5. package/components/binding-selector/package.json +1 -1
  6. package/components/border-editor/package.json +1 -1
  7. package/components/button/package.json +1 -1
  8. package/components/button-edit/index.esm.js +745 -753
  9. package/components/button-edit/index.umd.cjs +1 -1
  10. package/components/button-edit/package.json +1 -1
  11. package/components/button-group/package.json +1 -1
  12. package/components/calculator/package.json +1 -1
  13. package/components/calendar/package.json +1 -1
  14. package/components/capsule/package.json +1 -1
  15. package/components/checkbox/package.json +1 -1
  16. package/components/checkbox-group/package.json +1 -1
  17. package/components/code-editor/package.json +1 -1
  18. package/components/collection-property-editor/package.json +1 -1
  19. package/components/color-picker/package.json +1 -1
  20. package/components/combo-list/package.json +1 -1
  21. package/components/combo-tree/package.json +1 -1
  22. package/components/common/package.json +1 -1
  23. package/components/component/package.json +1 -1
  24. package/components/condition/package.json +1 -1
  25. package/components/content-container/package.json +1 -1
  26. package/components/data-grid/package.json +1 -1
  27. package/components/data-view/package.json +1 -1
  28. package/components/date-picker/package.json +1 -1
  29. package/components/designer-canvas/package.json +1 -1
  30. package/components/designer-outline/package.json +1 -1
  31. package/components/designer-toolbox/package.json +1 -1
  32. package/components/discussion-editor/package.json +1 -1
  33. package/components/discussion-list/package.json +1 -1
  34. package/components/drawer/package.json +1 -1
  35. package/components/dropdown/package.json +1 -1
  36. package/components/dynamic-form/package.json +1 -1
  37. package/components/dynamic-resolver/package.json +1 -1
  38. package/components/dynamic-view/package.json +1 -1
  39. package/components/enum-editor/package.json +1 -1
  40. package/components/event-parameter/package.json +1 -1
  41. package/components/events-editor/package.json +1 -1
  42. package/components/expression-editor/index.esm.js +1279 -1287
  43. package/components/expression-editor/index.umd.cjs +2 -2
  44. package/components/expression-editor/package.json +1 -1
  45. package/components/external-container/package.json +1 -1
  46. package/components/field-selector/package.json +1 -1
  47. package/components/fieldset/package.json +1 -1
  48. package/components/filter-bar/index.esm.js +703 -711
  49. package/components/filter-bar/index.umd.cjs +1 -1
  50. package/components/filter-bar/package.json +1 -1
  51. package/components/filter-condition-editor/index.esm.js +1140 -1148
  52. package/components/filter-condition-editor/index.umd.cjs +2 -2
  53. package/components/filter-condition-editor/package.json +1 -1
  54. package/components/flow-canvas/package.json +1 -1
  55. package/components/html-template/package.json +1 -1
  56. package/components/image-cropper/package.json +1 -1
  57. package/components/input-group/package.json +1 -1
  58. package/components/json-editor/package.json +1 -1
  59. package/components/language-textbox/package.json +1 -1
  60. package/components/layout/package.json +1 -1
  61. package/components/list-nav/package.json +1 -1
  62. package/components/list-view/package.json +1 -1
  63. package/components/loading/package.json +1 -1
  64. package/components/locale/package.json +1 -1
  65. package/components/lookup/package.json +1 -1
  66. package/components/mapping-editor/index.esm.js +967 -975
  67. package/components/mapping-editor/index.umd.cjs +1 -1
  68. package/components/mapping-editor/package.json +1 -1
  69. package/components/menu-lookup/package.json +1 -1
  70. package/components/message-box/package.json +1 -1
  71. package/components/modal/package.json +1 -1
  72. package/components/nav/package.json +1 -1
  73. package/components/notify/package.json +1 -1
  74. package/components/number-range/package.json +1 -1
  75. package/components/number-spinner/package.json +1 -1
  76. package/components/order/package.json +1 -1
  77. package/components/page-footer/package.json +1 -1
  78. package/components/page-header/package.json +1 -1
  79. package/components/pagination/package.json +1 -1
  80. package/components/popover/package.json +1 -1
  81. package/components/progress/package.json +1 -1
  82. package/components/property-editor/package.json +1 -1
  83. package/components/property-panel/package.json +1 -1
  84. package/components/query-solution/index.esm.js +1193 -1201
  85. package/components/query-solution/index.umd.cjs +4 -4
  86. package/components/query-solution/package.json +1 -1
  87. package/components/radio/package.json +1 -1
  88. package/components/radio-button/package.json +1 -1
  89. package/components/radio-group/package.json +1 -1
  90. package/components/rate/package.json +1 -1
  91. package/components/response-layout/package.json +1 -1
  92. package/components/response-layout-editor/package.json +1 -1
  93. package/components/response-toolbar/package.json +1 -1
  94. package/components/schema-selector/index.esm.js +1095 -1103
  95. package/components/schema-selector/index.umd.cjs +6 -6
  96. package/components/schema-selector/package.json +1 -1
  97. package/components/search-box/package.json +1 -1
  98. package/components/section/package.json +1 -1
  99. package/components/smoke-detector/package.json +1 -1
  100. package/components/sort-condition-editor/index.esm.js +1185 -1193
  101. package/components/sort-condition-editor/index.umd.cjs +2 -2
  102. package/components/sort-condition-editor/package.json +1 -1
  103. package/components/spacing-editor/package.json +1 -1
  104. package/components/splitter/package.json +1 -1
  105. package/components/step/package.json +1 -1
  106. package/components/switch/package.json +1 -1
  107. package/components/tabs/package.json +1 -1
  108. package/components/tags/package.json +1 -1
  109. package/components/text/package.json +1 -1
  110. package/components/textarea/package.json +1 -1
  111. package/components/time-picker/index.esm.js +895 -903
  112. package/components/time-picker/index.umd.cjs +1 -1
  113. package/components/time-picker/package.json +1 -1
  114. package/components/tooltip/package.json +1 -1
  115. package/components/transfer/package.json +1 -1
  116. package/components/tree-grid/package.json +1 -1
  117. package/components/tree-view/package.json +1 -1
  118. package/components/uploader/package.json +1 -1
  119. package/components/verify-detail/package.json +1 -1
  120. package/components/video/package.json +1 -1
  121. package/components/weather/package.json +1 -1
  122. package/designer/data-grid/index.esm.js +1447 -1455
  123. package/designer/data-grid/index.umd.cjs +4 -4
  124. package/designer/farris-designer.all.esm.js +1789 -1797
  125. package/designer/farris-designer.all.umd.cjs +9 -9
  126. package/designer/radio-group/index.esm.js +1032 -1040
  127. package/designer/radio-group/index.umd.cjs +1 -1
  128. package/farris.all.esm.js +2242 -2246
  129. package/farris.all.umd.cjs +15 -15
  130. package/package.json +1 -1
  131. package/types/components.d.ts +4 -3
  132. package/types/message-box/index.d.ts +6 -6
  133. package/types/message-box/src/message-box.component.d.ts +3 -3
@@ -5,145 +5,145 @@ import { getCustomClass as X } from "../common/index.esm.js";
5
5
  import { useDesignerComponent as he } from "../designer-canvas/index.esm.js";
6
6
  function Y(e, t) {
7
7
  let n;
8
- function r(s) {
9
- const { properties: a, title: c, ignore: i } = s, o = i && Array.isArray(i), l = Object.keys(a).reduce((m, g) => ((!o || !i.find((T) => T === g)) && (m[g] = a[g].type === "object" && a[g].properties ? r(a[g]) : U(a[g].default)), m), {});
10
- if (c && (!o || !i.find((m) => m === "id"))) {
11
- const m = c.toLowerCase().replace(/-/g, "_");
12
- l.id = `${m}_${Math.random().toString().slice(2, 6)}`;
8
+ function o(s) {
9
+ const { properties: a, title: d, ignore: r } = s, i = r && Array.isArray(r), c = Object.keys(a).reduce((m, g) => ((!i || !r.find((T) => T === g)) && (m[g] = a[g].type === "object" && a[g].properties ? o(a[g]) : U(a[g].default)), m), {});
10
+ if (d && (!i || !r.find((m) => m === "id"))) {
11
+ const m = d.toLowerCase().replace(/-/g, "_");
12
+ c.id = `${m}_${Math.random().toString().slice(2, 6)}`;
13
13
  }
14
- return l;
14
+ return c;
15
15
  }
16
16
  function p(s) {
17
- const { properties: a, title: c, required: i } = s;
18
- if (i && Array.isArray(i)) {
19
- const o = i.reduce((l, m) => (l[m] = a[m].type === "object" && a[m].properties ? r(a[m]) : U(a[m].default), l), {});
20
- if (c && i.find((l) => l === "id")) {
21
- const l = c.toLowerCase().replace(/-/g, "_");
22
- o.id = `${l}_${Math.random().toString().slice(2, 6)}`;
17
+ const { properties: a, title: d, required: r } = s;
18
+ if (r && Array.isArray(r)) {
19
+ const i = r.reduce((c, m) => (c[m] = a[m].type === "object" && a[m].properties ? o(a[m]) : U(a[m].default), c), {});
20
+ if (d && r.find((c) => c === "id")) {
21
+ const c = d.toLowerCase().replace(/-/g, "_");
22
+ i.id = `${c}_${Math.random().toString().slice(2, 6)}`;
23
23
  }
24
- return o;
24
+ return i;
25
25
  }
26
26
  return {
27
- type: c
27
+ type: d
28
28
  };
29
29
  }
30
- function v(s, a = {}, c) {
31
- const i = e[s];
32
- if (i) {
33
- let o = p(i);
34
- const l = t[s];
35
- return o = l ? l({ getSchemaByType: v }, o, a, c) : o, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(o), o;
30
+ function v(s, a = {}, d) {
31
+ const r = e[s];
32
+ if (r) {
33
+ let i = p(r);
34
+ const c = t[s];
35
+ return i = c ? c({ getSchemaByType: v }, i, a, d) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
36
36
  }
37
37
  return null;
38
38
  }
39
39
  function b(s, a) {
40
- const c = r(a);
41
- return Object.keys(c).reduce((i, o) => (Object.prototype.hasOwnProperty.call(s, o) && (i[o] && W(i[o]) && W(s[o] || !s[o]) ? Object.assign(i[o], s[o] || {}) : i[o] = s[o]), i), c), c;
40
+ const d = o(a);
41
+ return Object.keys(d).reduce((r, i) => (Object.prototype.hasOwnProperty.call(s, i) && (r[i] && W(r[i]) && W(s[i] || !s[i]) ? Object.assign(r[i], s[i] || {}) : r[i] = s[i]), r), d), d;
42
42
  }
43
43
  function C(s, a) {
44
- return Object.keys(s).filter((i) => s[i] != null).reduce((i, o) => {
45
- if (a.has(o)) {
46
- const l = a.get(o);
47
- if (typeof l == "string")
48
- i[l] = s[o];
44
+ return Object.keys(s).filter((r) => s[r] != null).reduce((r, i) => {
45
+ if (a.has(i)) {
46
+ const c = a.get(i);
47
+ if (typeof c == "string")
48
+ r[c] = s[i];
49
49
  else {
50
- const m = l(o, s[o], s);
51
- Object.assign(i, m);
50
+ const m = c(i, s[i], s);
51
+ Object.assign(r, m);
52
52
  }
53
53
  } else
54
- i[o] = s[o];
55
- return i;
54
+ r[i] = s[i];
55
+ return r;
56
56
  }, {});
57
57
  }
58
- function S(s, a, c = /* @__PURE__ */ new Map()) {
59
- const i = b(s, a);
60
- return C(i, c);
58
+ function S(s, a, d = /* @__PURE__ */ new Map()) {
59
+ const r = b(s, a);
60
+ return C(r, d);
61
61
  }
62
- function u(s) {
63
- var c;
62
+ function l(s) {
63
+ var d;
64
64
  const a = s.type;
65
65
  if (a) {
66
- const i = e[a];
67
- if (!i)
66
+ const r = e[a];
67
+ if (!r)
68
68
  return s;
69
- const o = b(s, i), l = ((c = s.editor) == null ? void 0 : c.type) || "";
70
- if (l) {
71
- const m = e[l], g = b(s.editor, m);
72
- o.editor = g;
69
+ const i = b(s, r), c = ((d = s.editor) == null ? void 0 : d.type) || "";
70
+ if (c) {
71
+ const m = e[c], g = b(s.editor, m);
72
+ i.editor = g;
73
73
  }
74
- return o;
74
+ return i;
75
75
  }
76
76
  return s;
77
77
  }
78
78
  function f(s) {
79
79
  n = s;
80
80
  }
81
- return { getSchemaByType: v, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: S, mappingSchemaToProps: C, setDesignerContext: f };
81
+ return { getSchemaByType: v, resolveSchemaWithDefaultValue: l, resolveSchemaToProps: S, mappingSchemaToProps: C, setDesignerContext: f };
82
82
  }
83
83
  const Z = {}, V = {}, { getSchemaByType: Tt, resolveSchemaWithDefaultValue: Ce, resolveSchemaToProps: Se, mappingSchemaToProps: Fe, setDesignerContext: wt } = Y(Z, V);
84
84
  function Te(e = {}) {
85
- function t(u, f, s, a) {
85
+ function t(l, f, s, a) {
86
86
  if (typeof s == "number")
87
- return a[u].length === s;
87
+ return a[l].length === s;
88
88
  if (typeof s == "object") {
89
- const c = Object.keys(s)[0], i = s[c];
90
- if (c === "not")
91
- return Number(a[u].length) !== Number(i);
92
- if (c === "moreThan")
93
- return Number(a[u].length) >= Number(i);
94
- if (c === "lessThan")
95
- return Number(a[u].length) <= Number(i);
89
+ const d = Object.keys(s)[0], r = s[d];
90
+ if (d === "not")
91
+ return Number(a[l].length) !== Number(r);
92
+ if (d === "moreThan")
93
+ return Number(a[l].length) >= Number(r);
94
+ if (d === "lessThan")
95
+ return Number(a[l].length) <= Number(r);
96
96
  }
97
97
  return !1;
98
98
  }
99
- function n(u, f, s, a) {
100
- return a[u] && a[u].propertyValue && String(a[u].propertyValue.value) === String(s);
99
+ function n(l, f, s, a) {
100
+ return a[l] && a[l].propertyValue && String(a[l].propertyValue.value) === String(s);
101
101
  }
102
- const r = /* @__PURE__ */ new Map([
102
+ const o = /* @__PURE__ */ new Map([
103
103
  ["length", t],
104
104
  ["getProperty", n]
105
105
  ]);
106
- Object.keys(e).reduce((u, f) => (u.set(f, e[f]), u), r);
107
- function p(u, f) {
108
- const s = u;
109
- return typeof f == "number" ? [{ target: s, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: s, operator: "getProperty", param: u, value: !!f }] : typeof f == "object" ? Object.keys(f).map((a) => {
106
+ Object.keys(e).reduce((l, f) => (l.set(f, e[f]), l), o);
107
+ function p(l, f) {
108
+ const s = l;
109
+ return typeof f == "number" ? [{ target: s, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: s, operator: "getProperty", param: l, value: !!f }] : typeof f == "object" ? Object.keys(f).map((a) => {
110
110
  if (a === "length")
111
111
  return { target: s, operator: "length", param: null, value: f[a] };
112
- const c = a, i = f[a];
113
- return { target: s, operator: "getProperty", param: c, value: i };
112
+ const d = a, r = f[a];
113
+ return { target: s, operator: "getProperty", param: d, value: r };
114
114
  }) : [];
115
115
  }
116
- function v(u) {
117
- return Object.keys(u).reduce((s, a) => {
118
- const c = p(a, u[a]);
119
- return s.push(...c), s;
116
+ function v(l) {
117
+ return Object.keys(l).reduce((s, a) => {
118
+ const d = p(a, l[a]);
119
+ return s.push(...d), s;
120
120
  }, []);
121
121
  }
122
- function b(u, f) {
123
- if (r.has(u.operator)) {
124
- const s = r.get(u.operator);
125
- return s && s(u.target, u.param, u.value, f) || !1;
122
+ function b(l, f) {
123
+ if (o.has(l.operator)) {
124
+ const s = o.get(l.operator);
125
+ return s && s(l.target, l.param, l.value, f) || !1;
126
126
  }
127
127
  return !1;
128
128
  }
129
- function C(u, f) {
130
- return v(u).reduce((c, i) => c && b(i, f), !0);
129
+ function C(l, f) {
130
+ return v(l).reduce((d, r) => d && b(r, f), !0);
131
131
  }
132
- function S(u, f) {
133
- const s = Object.keys(u), a = s.includes("allOf"), c = s.includes("anyOf"), i = a || c, m = (i ? u[i ? a ? "allOf" : "anyOf" : "allOf"] : [u]).map((T) => C(T, f));
132
+ function S(l, f) {
133
+ const s = Object.keys(l), a = s.includes("allOf"), d = s.includes("anyOf"), r = a || d, m = (r ? l[r ? a ? "allOf" : "anyOf" : "allOf"] : [l]).map((T) => C(T, f));
134
134
  return a ? !m.includes(!1) : m.includes(!0);
135
135
  }
136
136
  return { parseValueSchema: S };
137
137
  }
138
138
  const we = {
139
- convertTo: (e, t, n, r) => {
139
+ convertTo: (e, t, n, o) => {
140
140
  e.appearance || (e.appearance = {}), e.appearance[t] = n;
141
141
  },
142
142
  convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
143
143
  }, $e = {
144
144
  convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
145
145
  }, Pe = {
146
- convertTo: (e, t, n, r) => {
146
+ convertTo: (e, t, n, o) => {
147
147
  e.editor && (e.editor[t] = n);
148
148
  },
149
149
  convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
@@ -197,16 +197,16 @@ const we = {
197
197
  }, xe = {
198
198
  convertFrom: (e, t, n) => {
199
199
  var p;
200
- const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
201
- return ((p = Oe[r]) == null ? void 0 : p.name) || r;
200
+ const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
201
+ return ((p = Oe[o]) == null ? void 0 : p.name) || o;
202
202
  }
203
203
  }, je = {
204
- convertTo: (e, t, n, r) => {
204
+ convertTo: (e, t, n, o) => {
205
205
  e[t] = e[t];
206
206
  },
207
207
  convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
208
208
  }, Me = {
209
- convertTo: (e, t, n, r) => {
209
+ convertTo: (e, t, n, o) => {
210
210
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
211
211
  [t]: n
212
212
  });
@@ -237,7 +237,7 @@ const we = {
237
237
  return "none";
238
238
  }
239
239
  }, De = {
240
- convertTo: (e, t, n, r) => {
240
+ convertTo: (e, t, n, o) => {
241
241
  e.command ? e.command[t] = n : e.command = {
242
242
  [t]: n
243
243
  }, t === "enable" && n && (e.command.commands || (e.command.commands = [
@@ -255,7 +255,7 @@ const we = {
255
255
  },
256
256
  convertFrom: (e, t, n) => e.command && t === "enable" ? e.command.enable : ""
257
257
  }, Ee = {
258
- convertTo: (e, t, n, r) => {
258
+ convertTo: (e, t, n, o) => {
259
259
  e.column ? e.column[t] = n : e.column = {
260
260
  [t]: n
261
261
  }, t === "fitColumns" && n && (e.column.fitMode || (e.column.fitMode = "average"));
@@ -270,7 +270,7 @@ const we = {
270
270
  return "";
271
271
  }
272
272
  }, Ne = {
273
- convertTo: (e, t, n, r) => {
273
+ convertTo: (e, t, n, o) => {
274
274
  e.summary ? e.summary[t] = n : e.summary = {
275
275
  [t]: n
276
276
  }, t === "enable" && n && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
@@ -280,7 +280,7 @@ const we = {
280
280
  },
281
281
  convertFrom: (e, t, n) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
282
282
  }, ke = {
283
- convertTo: (e, t, n, r) => {
283
+ convertTo: (e, t, n, o) => {
284
284
  e.group ? e.group[t] = n : e.group = {
285
285
  [t]: n
286
286
  }, t === "enable" && n && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
@@ -301,22 +301,22 @@ const we = {
301
301
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
302
302
  convertTo: (e, t, n) => {
303
303
  if (n && n.length > 0) {
304
- const r = n[0];
305
- 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;
304
+ const o = n[0];
305
+ e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
306
306
  }
307
307
  }
308
308
  }, He = {
309
- convertTo: (e, t, n, r) => {
309
+ convertTo: (e, t, n, o) => {
310
310
  e.pagination || (e.pagination = {}), e.pagination[t] = n;
311
311
  },
312
312
  convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
313
313
  }, Re = {
314
- convertTo: (e, t, n, r) => {
314
+ convertTo: (e, t, n, o) => {
315
315
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
316
316
  },
317
317
  convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
318
318
  }, Be = {
319
- convertTo: (e, t, n, r) => {
319
+ convertTo: (e, t, n, o) => {
320
320
  e.selection || (e.selection = {}), e.selection[t] = n;
321
321
  },
322
322
  convertFrom: (e, t, n) => e.selection ? e.selection[t] : e[t]
@@ -328,37 +328,37 @@ const we = {
328
328
  e[t] = n;
329
329
  }
330
330
  }, ze = {
331
- convertTo: (e, t, n, r) => {
331
+ convertTo: (e, t, n, o) => {
332
332
  e.size || (e.size = {}), e.size[t] = n;
333
333
  },
334
334
  convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
335
335
  }, Le = {
336
336
  convertFrom: (e, t, n) => {
337
- var r, p;
338
- return (r = e.formatter) != null && r.data && t === "formatterEnumData" && !e.formatterEnumData ? (p = e.formatter) == null ? void 0 : p.data : e.formatterEnumData;
337
+ var o, p;
338
+ return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (p = e.formatter) == null ? void 0 : p.data : e.formatterEnumData;
339
339
  }
340
340
  }, _e = {
341
- convertTo: (e, t, n, r) => {
341
+ convertTo: (e, t, n, o) => {
342
342
  e.sort || (e.sort = {}), e.sort[t] = n;
343
343
  },
344
344
  convertFrom: (e, t, n) => {
345
- var r, p;
345
+ var o, p;
346
346
  if (t === "mode")
347
- return ((r = e.sort) == null ? void 0 : r.mode) || "client";
347
+ return ((o = e.sort) == null ? void 0 : o.mode) || "client";
348
348
  if (t === "multiSort")
349
349
  return !!((p = e.sort) != null && p.multiSort);
350
350
  }
351
351
  }, Ge = {
352
- convertTo: (e, t, n, r) => {
352
+ convertTo: (e, t, n, o) => {
353
353
  e.filter || (e.filter = {}), e.filter[t] = n;
354
354
  },
355
355
  convertFrom: (e, t, n) => {
356
- var r;
356
+ var o;
357
357
  if (t === "mode")
358
- return ((r = e.filter) == null ? void 0 : r.mode) || "client";
358
+ return ((o = e.filter) == null ? void 0 : o.mode) || "client";
359
359
  }
360
360
  }, Ue = {
361
- convertTo: (e, t, n, r) => {
361
+ convertTo: (e, t, n, o) => {
362
362
  e.rowOption ? e.rowOption[t] = n : e.rowOption = {
363
363
  [t]: n
364
364
  };
@@ -374,7 +374,7 @@ const we = {
374
374
  }
375
375
  };
376
376
  function K(e, t, n) {
377
- const r = /* @__PURE__ */ new Map([
377
+ const o = /* @__PURE__ */ new Map([
378
378
  ["/converter/appearance.converter", we],
379
379
  ["/converter/buttons.converter", $e],
380
380
  ["/converter/property-editor.converter", Pe],
@@ -421,94 +421,94 @@ function K(e, t, n) {
421
421
  ["number", { type: "number-spinner", placeholder: "" }],
422
422
  ["events-editor", { type: "events-editor", hide: !0 }]
423
423
  ]), v = Te();
424
- function b(i, o) {
425
- return () => v.parseValueSchema(i, o);
424
+ function b(r, i) {
425
+ return () => v.parseValueSchema(r, i);
426
426
  }
427
- function C(i, o, l) {
428
- return i.includes("visible") && o.visible !== void 0 ? typeof o.visible == "boolean" ? () => !!o.visible : o.visible === void 0 ? !0 : b(o.visible, l) : () => !0;
427
+ function C(r, i, c) {
428
+ return r.includes("visible") && i.visible !== void 0 ? typeof i.visible == "boolean" ? () => !!i.visible : i.visible === void 0 ? !0 : b(i.visible, c) : () => !0;
429
429
  }
430
- function S(i, o, l) {
431
- return i.includes("readonly") && o.readonly !== void 0 ? typeof o.readonly == "boolean" ? () => !!o.readonly : b(o.readonly, l) : () => !1;
430
+ function S(r, i, c) {
431
+ return r.includes("readonly") && i.readonly !== void 0 ? typeof i.readonly == "boolean" ? () => !!i.readonly : b(i.readonly, c) : () => !1;
432
432
  }
433
- function u(i, o) {
434
- const l = i.$converter || o;
435
- return typeof l == "string" && l && r.has(l) ? r.get(l) || null : l || null;
433
+ function l(r, i) {
434
+ const c = r.$converter || i;
435
+ return typeof c == "string" && c && o.has(c) ? o.get(c) || null : c || null;
436
436
  }
437
- function f(i, o, l, m, g, T = "", P = "") {
438
- return Object.keys(i).map((h) => {
439
- const O = E(1), x = h, d = i[h], w = Object.keys(d), H = d.title, N = d.type, k = p.get(N) || { type: "input-group", enableClear: !1 }, D = d.editor ? Object.assign({}, k, d.editor) : Object.assign({}, k), I = C(w, d, o), R = S(w, d, o);
437
+ function f(r, i, c, m, g, T = "", P = "") {
438
+ return Object.keys(r).map((h) => {
439
+ const O = E(1), x = h, u = r[h], w = Object.keys(u), H = u.title, N = u.type, k = p.get(N) || { type: "input-group", enableClear: !1 }, D = u.editor ? Object.assign({}, k, u.editor) : Object.assign({}, k), I = C(w, u, i), R = S(w, u, i);
440
440
  D.readonly = D.readonly === void 0 ? R() : D.readonly;
441
- const q = d.type === "cascade" ? f(d.properties, o, l, m, g, T, P) : [], le = !0;
442
- let j = u(d, P);
441
+ const q = u.type === "cascade" ? f(u.properties, i, c, m, g, T, P) : [], le = !0;
442
+ let j = l(u, P);
443
443
  const ue = F({
444
444
  get() {
445
445
  if (O.value) {
446
- if (["class", "style"].find((ve) => ve === x) && !j && (j = r.get("/converter/appearance.converter") || null), j && j.convertFrom)
447
- return j.convertFrom(l, h, g, T);
448
- const M = l[h];
449
- return Object.prototype.hasOwnProperty.call(d, "defaultValue") && (M === void 0 || typeof M == "string" && M === "") ? d.type === "boolean" ? d.defaultValue : d.defaultValue || "" : M;
446
+ if (["class", "style"].find((ve) => ve === x) && !j && (j = o.get("/converter/appearance.converter") || null), j && j.convertFrom)
447
+ return j.convertFrom(c, h, g, T);
448
+ const M = c[h];
449
+ return Object.prototype.hasOwnProperty.call(u, "defaultValue") && (M === void 0 || typeof M == "string" && M === "") ? u.type === "boolean" ? u.defaultValue : u.defaultValue || "" : M;
450
450
  }
451
451
  return null;
452
452
  },
453
453
  set(M) {
454
- O.value += 1, j && j.convertTo ? (j.convertTo(m, h, M, g, T), j.convertTo(l, h, M, g, T)) : (m[h] = M, l[h] = M);
454
+ O.value += 1, j && j.convertTo ? (j.convertTo(m, h, M, g, T), j.convertTo(c, h, M, g, T)) : (m[h] = M, c[h] = M);
455
455
  }
456
- }), { refreshPanelAfterChanged: de, description: fe, isExpand: me, parentPropertyID: pe } = d, G = { propertyID: x, propertyName: H, propertyType: N, propertyValue: ue, editor: D, visible: I, readonly: R, cascadeConfig: q, hideCascadeTitle: le, refreshPanelAfterChanged: de, description: fe, isExpand: me, parentPropertyID: pe };
457
- return o[x] = G, G;
456
+ }), { refreshPanelAfterChanged: de, description: fe, isExpand: me, parentPropertyID: pe } = u, G = { propertyID: x, propertyName: H, propertyType: N, propertyValue: ue, editor: D, visible: I, readonly: R, cascadeConfig: q, hideCascadeTitle: le, refreshPanelAfterChanged: de, description: fe, isExpand: me, parentPropertyID: pe };
457
+ return i[x] = G, G;
458
458
  });
459
459
  }
460
- function s(i, o, l = {}) {
461
- const m = {}, g = e[i];
460
+ function s(r, i, c = {}) {
461
+ const m = {}, g = e[r];
462
462
  return g && g.categories ? Object.keys(g.categories).map((P) => {
463
- const $ = g.categories[P], h = $ == null ? void 0 : $.title, O = f($.properties || {}, m, {}, l, o);
463
+ const $ = g.categories[P], h = $ == null ? void 0 : $.title, O = f($.properties || {}, m, {}, c, i);
464
464
  return { categoryId: P, categoryName: h, properties: O };
465
465
  }) : [];
466
466
  }
467
- function a(i, o, l, m, g = "") {
468
- const T = o.$ref.schema, P = o.$ref.converter, $ = l[T], h = $.type, O = n($), x = {}, d = e[h];
469
- if (d && d.categories) {
470
- const w = d.categories[i], H = w == null ? void 0 : w.title;
467
+ function a(r, i, c, m, g = "") {
468
+ const T = i.$ref.schema, P = i.$ref.converter, $ = c[T], h = $.type, O = n($), x = {}, u = e[h];
469
+ if (u && u.categories) {
470
+ const w = u.categories[r], H = w == null ? void 0 : w.title;
471
471
  P && Object.keys(w.properties).forEach((D) => {
472
472
  w.properties[D].$converter = P;
473
473
  });
474
474
  const N = (w == null ? void 0 : w.properties) || {}, k = f(N, x, O, $, m, g);
475
- return { categoryId: i, categoryName: H, properties: k };
475
+ return { categoryId: r, categoryName: H, properties: k };
476
476
  }
477
- return { categoryId: i, categoryName: "", properties: [] };
477
+ return { categoryId: r, categoryName: "", properties: [] };
478
478
  }
479
- function c(i, o, l, m, g) {
480
- const T = i.type, P = n(i), $ = {};
479
+ function d(r, i, c, m, g) {
480
+ const T = r.type, P = n(r), $ = {};
481
481
  let h = g || e[T];
482
- if (h && Object.keys(h).length === 0 && l && l.getPropConfig && (h = l.getPropConfig(m)), h && h.categories) {
482
+ if (h && Object.keys(h).length === 0 && c && c.getPropConfig && (h = c.getPropConfig(m)), h && h.categories) {
483
483
  const O = [];
484
484
  return Object.keys(h.categories).map((x) => {
485
- const d = h.categories[x];
486
- if (d.$ref) {
487
- O.push(a(x, d, i, o, m));
485
+ const u = h.categories[x];
486
+ if (u.$ref) {
487
+ O.push(a(x, u, r, i, m));
488
488
  return;
489
489
  }
490
- const w = d == null ? void 0 : d.title, H = d == null ? void 0 : d.tabId, N = d == null ? void 0 : d.tabName, k = d == null ? void 0 : d.hide, D = d == null ? void 0 : d.hideTitle, I = f(d.properties || {}, $, P, i, o, m, d.$converter), { setPropertyRelates: R } = d, q = d == null ? void 0 : d.parentPropertyID;
490
+ const w = u == null ? void 0 : u.title, H = u == null ? void 0 : u.tabId, N = u == null ? void 0 : u.tabName, k = u == null ? void 0 : u.hide, D = u == null ? void 0 : u.hideTitle, I = f(u.properties || {}, $, P, r, i, m, u.$converter), { setPropertyRelates: R } = u, q = u == null ? void 0 : u.parentPropertyID;
491
491
  O.push({ categoryId: x, categoryName: w, tabId: H, tabName: N, hide: k, properties: I, hideTitle: D, setPropertyRelates: R, parentPropertyID: q });
492
492
  }), O;
493
493
  }
494
494
  return [];
495
495
  }
496
496
  return {
497
- getPropertyConfigBySchema: c,
497
+ getPropertyConfigBySchema: d,
498
498
  getPropertyConfigByType: s,
499
- propertyConverterMap: r
499
+ propertyConverterMap: o
500
500
  };
501
501
  }
502
502
  const ee = {}, te = {};
503
503
  K(ee, te, Ce);
504
504
  const ne = {}, re = {}, { getSchemaByType: $t, resolveSchemaWithDefaultValue: We, resolveSchemaToProps: Pt, mappingSchemaToProps: Ot, setDesignerContext: xt } = Y(ne, re), oe = {}, ie = {};
505
505
  K(oe, ie, We);
506
- function Je(e, t, n = /* @__PURE__ */ new Map(), r = (b, C, S, u) => C, p = {}, v = (b) => b) {
507
- return Z[t.title] = t, V[t.title] = r, ee[t.title] = p, te[t.title] = v, ne[t.title] = t, re[t.title] = r, oe[t.title] = p, ie[t.title] = v, (b = {}, C = !0) => {
506
+ function Je(e, t, n = /* @__PURE__ */ new Map(), o = (b, C, S, l) => C, p = {}, v = (b) => b) {
507
+ return Z[t.title] = t, V[t.title] = o, ee[t.title] = p, te[t.title] = v, ne[t.title] = t, re[t.title] = o, oe[t.title] = p, ie[t.title] = v, (b = {}, C = !0) => {
508
508
  if (!C)
509
509
  return Fe(b, n);
510
- const S = Se(b, t, n), u = Object.keys(e).reduce((f, s) => (f[s] = e[s].default, f), {});
511
- return Object.assign(u, S);
510
+ const S = Se(b, t, n), l = Object.keys(e).reduce((f, s) => (f[s] = e[s].default, f), {});
511
+ return Object.assign(l, S);
512
512
  };
513
513
  }
514
514
  const se = /* @__PURE__ */ new Map([
@@ -634,12 +634,12 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
634
634
  ge("accordionContext", {
635
635
  parentProps: e
636
636
  });
637
- const r = F(() => X({
637
+ const o = F(() => X({
638
638
  "farris-panel": !0,
639
639
  accordion: !0
640
640
  }, e.customClass));
641
641
  return () => y("div", {
642
- class: r.value,
642
+ class: o.value,
643
643
  style: n.value
644
644
  }, [t.slots.default && t.slots.default()]);
645
645
  }
@@ -696,6 +696,7 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
696
696
  active: { type: Boolean, default: !1 },
697
697
  customClass: { type: String, default: "" },
698
698
  disabled: { type: Boolean, default: !1 },
699
+ enableFold: { type: Boolean, default: !0 },
699
700
  height: { type: Number },
700
701
  iconUri: { type: String, default: "" },
701
702
  maxHeight: { type: Number },
@@ -706,62 +707,64 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
706
707
  props: _,
707
708
  emits: ["ClickHeader"],
708
709
  setup(e, t) {
709
- const n = E(), r = J("accordionContext"), p = E(e.title), v = E(e.active);
710
- function b() {
711
- var c;
712
- e.disabled || !((c = r == null ? void 0 : r.parentProps) != null && c.enableFold) || (v.value = !v.value);
710
+ const n = E(), o = J("accordionContext"), p = E(e.title), v = E(e.active), b = F(() => {
711
+ var r;
712
+ return !!((r = o == null ? void 0 : o.parentProps) != null && r.enableFold) && e.enableFold;
713
+ });
714
+ function C() {
715
+ e.disabled || !b.value || (v.value = !v.value);
713
716
  }
714
- function C(c) {
715
- t.emit("ClickHeader"), b();
717
+ function S(r) {
718
+ t.emit("ClickHeader"), C();
716
719
  }
717
- const S = F(() => {
718
- const c = {
720
+ const l = F(() => {
721
+ const r = {
719
722
  card: !0,
720
723
  "farris-panel-item": !0,
721
724
  "f-state-disabled": e.disabled,
722
725
  "f-state-selected": v.value
723
726
  };
724
- return X(c, e.customClass);
725
- }), u = F(() => !0), f = F(() => ({
727
+ return X(r, e.customClass);
728
+ }), f = F(() => !0), s = F(() => ({
726
729
  "f-icon": !0,
727
730
  "f-accordion-collapse": !v.value,
728
731
  "f-accordion-expand": v.value
729
732
  }));
730
- function s() {
733
+ function a() {
731
734
  return n.value ? n.value.getBoundingClientRect().height : 0;
732
735
  }
733
- const a = F(() => {
734
- const c = e.maxHeight ? {
736
+ const d = F(() => {
737
+ const r = e.maxHeight ? {
735
738
  transition: "maxHeight 0.36s ease 0s",
736
739
  "max-height": v.value ? `${e.maxHeight}px` : 0
737
740
  } : {
738
741
  transition: "height 0.36s ease 0s",
739
- height: v.value ? `${s()}px` : 0
742
+ height: v.value ? `${a()}px` : 0
740
743
  };
741
- return v.value || (c.overflow = "hidden"), c;
744
+ return v.value || (r.overflow = "hidden"), r;
742
745
  });
743
746
  return Q(() => {
744
- var c;
745
- (c = r == null ? void 0 : r.parentProps) != null && c.expanded && (v.value = !0);
747
+ var r;
748
+ (r = o == null ? void 0 : o.parentProps) != null && r.expanded && (v.value = !0);
746
749
  }), () => y("div", {
747
- class: S.value
750
+ class: l.value
748
751
  }, [y("div", {
749
752
  class: "card-header",
750
- onClick: C
753
+ onClick: S
751
754
  }, [y("div", {
752
755
  class: "panel-item-title"
753
756
  }, [e.iconUri && y("img", {
754
757
  class: "panel-item-title-image",
755
758
  src: e.iconUri,
756
759
  title: "title-icon"
757
- }, null), u.value && y("span", null, [p.value]), t.slots.head && t.slots.head(), y("i", {
758
- class: f.value
760
+ }, null), f.value && y("span", null, [p.value]), t.slots.head && t.slots.head(), b.value && y("i", {
761
+ class: s.value
759
762
  }, null)]), y("div", {
760
763
  class: "panel-item-tool"
761
764
  }, [t.slots.toolbar && t.slots.toolbar()]), y("div", {
762
765
  class: "panel-item-clear"
763
766
  }, null)]), y("div", {
764
- style: a.value
767
+ style: d.value
765
768
  }, [y("div", {
766
769
  class: "card-body",
767
770
  ref: n
@@ -775,18 +778,18 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
775
778
  const n = F(() => ({
776
779
  height: e.height ? `${e.height}px` : "",
777
780
  width: e.width ? `${e.width}px` : ""
778
- })), r = F(() => {
781
+ })), o = F(() => {
779
782
  const C = e.customClass.split(" "), S = {
780
783
  "farris-panel": !0,
781
784
  accordion: !0
782
785
  };
783
- return C.reduce((u, f) => (u[f] = !0, u), S), S;
786
+ return C.reduce((l, f) => (l[f] = !0, l), S), S;
784
787
  }), p = E(), v = J("design-item-context"), b = he(p, v);
785
788
  return Q(() => {
786
789
  p.value.componentInstance = b;
787
790
  }), t.expose(b.value), () => y("div", {
788
791
  ref: p,
789
- class: r.value,
792
+ class: o.value,
790
793
  style: n.value
791
794
  }, [t.slots.default && t.slots.default()]);
792
795
  }
@@ -795,45 +798,45 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
795
798
  props: _,
796
799
  emits: [],
797
800
  setup(e, t) {
798
- const n = E(e.title), r = E(!1), p = E(!1);
801
+ const n = E(e.title), o = E(!1), p = E(!1);
799
802
  function v() {
800
- r.value = !r.value;
803
+ o.value = !o.value;
801
804
  }
802
- function b(o) {
805
+ function b(i) {
803
806
  v();
804
807
  }
805
808
  const C = F(() => ({
806
809
  "f-state-disabled": p.value,
807
810
  card: !0,
808
811
  "farris-panel-item": !0,
809
- "f-state-selected": r.value
810
- })), S = F(() => !0), u = F(() => !1), f = F(() => ({
812
+ "f-state-selected": o.value
813
+ })), S = F(() => !0), l = F(() => !1), f = F(() => ({
811
814
  "f-icon": !0,
812
- "f-accordion-collapse": !r.value,
813
- "f-accordion-expand": r.value
815
+ "f-accordion-collapse": !o.value,
816
+ "f-accordion-expand": o.value
814
817
  })), s = F(() => {
815
- const o = e.maxHeight ? {
818
+ const i = e.maxHeight ? {
816
819
  transition: "maxHeight 0.36s ease 0s",
817
- "max-height": r.value ? `${e.maxHeight}px` : 0
820
+ "max-height": o.value ? `${e.maxHeight}px` : 0
818
821
  } : {
819
822
  transition: "height 0.36s ease 0s",
820
- height: r.value ? `${e.height}px` : 0
823
+ height: o.value ? `${e.height}px` : 0
821
824
  };
822
- return r.value || (o.overflow = "hidden"), o;
825
+ return o.value || (i.overflow = "hidden"), i;
823
826
  });
824
827
  function a() {
825
828
  return !0;
826
829
  }
827
- function c() {
830
+ function d() {
828
831
  return !1;
829
832
  }
830
- function i() {
833
+ function r() {
831
834
  return !0;
832
835
  }
833
836
  return t.expose({
834
837
  canMove: a(),
835
- canSelectParent: c(),
836
- canDelete: i(),
838
+ canSelectParent: d(),
839
+ canDelete: r(),
837
840
  canNested: !0
838
841
  }), () => y("div", {
839
842
  class: C.value
@@ -842,7 +845,7 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
842
845
  onClick: b
843
846
  }, [y("div", {
844
847
  class: "panel-item-title"
845
- }, [S.value && y("span", null, [n.value]), u.value && t.slots.head && t.slots.head(), y("span", {
848
+ }, [S.value && y("span", null, [n.value]), l.value && t.slots.head && t.slots.head(), y("span", {
846
849
  class: f.value
847
850
  }, null)]), y("div", {
848
851
  class: "panel-item-tool"
@@ -858,7 +861,7 @@ const rt = "accordion", ot = "A Farris Component", it = "object", st = {
858
861
  A.install = (e) => {
859
862
  e.component(A.name, A), e.component(z.name, z);
860
863
  };
861
- A.register = (e, t, n, r) => {
864
+ A.register = (e, t, n, o) => {
862
865
  e.accordion = A, e["accordion-item"] = z, t.accordion = ae, t["accordion-item"] = ce;
863
866
  };
864
867
  A.registerDesigner = (e, t, n) => {