@farris/ui-vue 1.6.5-beta.7 → 1.6.5-beta.8

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 (194) hide show
  1. package/components/accordion/index.esm.js +65 -65
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +28 -29
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +521 -517
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +134 -134
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +192 -192
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/code-editor/index.esm.js +8 -8
  12. package/components/code-editor/index.umd.cjs +3 -3
  13. package/components/collection-property-editor/index.esm.js +72 -72
  14. package/components/collection-property-editor/index.umd.cjs +1 -1
  15. package/components/color-picker/index.esm.js +291 -289
  16. package/components/color-picker/index.umd.cjs +1 -1
  17. package/components/combo-list/index.esm.js +163 -157
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +113 -112
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +3 -1
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +10 -10
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.esm.js +1122 -1121
  26. package/components/condition/index.umd.cjs +1 -1
  27. package/components/content-container/index.esm.js +190 -190
  28. package/components/content-container/index.umd.cjs +1 -1
  29. package/components/data-view/index.esm.js +2693 -2693
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +1604 -1601
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.esm.js +1082 -1079
  34. package/components/designer-canvas/index.umd.cjs +1 -1
  35. package/components/discussion-editor/index.esm.js +973 -1040
  36. package/components/discussion-editor/index.umd.cjs +6 -6
  37. package/components/dropdown/index.esm.js +335 -330
  38. package/components/dropdown/index.umd.cjs +2 -2
  39. package/components/dynamic-form/index.esm.js +8 -8
  40. package/components/dynamic-form/index.umd.cjs +1 -1
  41. package/components/dynamic-resolver/index.esm.js +6 -6
  42. package/components/dynamic-resolver/index.umd.cjs +1 -1
  43. package/components/dynamic-view/index.esm.js +344 -344
  44. package/components/dynamic-view/index.umd.cjs +1 -1
  45. package/components/events-editor/index.esm.js +8 -8
  46. package/components/events-editor/index.umd.cjs +3 -3
  47. package/components/expression-editor/index.esm.js +1470 -1460
  48. package/components/expression-editor/index.umd.cjs +3 -3
  49. package/components/fieldset/index.esm.js +55 -55
  50. package/components/fieldset/index.umd.cjs +1 -1
  51. package/components/filter-bar/index.esm.js +853 -843
  52. package/components/filter-bar/index.umd.cjs +1 -1
  53. package/components/filter-condition-editor/index.esm.js +922 -911
  54. package/components/filter-condition-editor/index.umd.cjs +3 -3
  55. package/components/flow-canvas/index.esm.js +12 -12
  56. package/components/flow-canvas/index.umd.cjs +1 -1
  57. package/components/html-template/index.esm.js +164 -164
  58. package/components/html-template/index.umd.cjs +1 -1
  59. package/components/image-cropper/index.esm.js +198 -198
  60. package/components/image-cropper/index.umd.cjs +1 -1
  61. package/components/json-editor/index.esm.js +64 -64
  62. package/components/json-editor/index.umd.cjs +1 -1
  63. package/components/language-textbox/index.esm.js +140 -140
  64. package/components/language-textbox/index.umd.cjs +1 -1
  65. package/components/layout/index.esm.js +111 -111
  66. package/components/layout/index.umd.cjs +1 -1
  67. package/components/list-nav/index.esm.js +90 -90
  68. package/components/list-nav/index.umd.cjs +1 -1
  69. package/components/list-view/index.esm.js +104 -108
  70. package/components/list-view/index.umd.cjs +3 -3
  71. package/components/locale/index.esm.js +833 -901
  72. package/components/locale/index.umd.cjs +6 -6
  73. package/components/lookup/index.esm.js +1352 -1351
  74. package/components/lookup/index.umd.cjs +1 -1
  75. package/components/mapping-editor/index.esm.js +1311 -1307
  76. package/components/mapping-editor/index.umd.cjs +1 -1
  77. package/components/menu-lookup/index.esm.js +1059 -1127
  78. package/components/menu-lookup/index.umd.cjs +6 -6
  79. package/components/message-box/index.esm.js +7 -7
  80. package/components/message-box/index.umd.cjs +1 -1
  81. package/components/modal/index.esm.js +9 -9
  82. package/components/modal/index.umd.cjs +1 -1
  83. package/components/nav/index.esm.js +106 -106
  84. package/components/nav/index.umd.cjs +1 -1
  85. package/components/number-range/index.esm.js +326 -326
  86. package/components/number-range/index.umd.cjs +1 -1
  87. package/components/number-spinner/index.esm.js +168 -167
  88. package/components/number-spinner/index.umd.cjs +1 -1
  89. package/components/order/index.esm.js +739 -737
  90. package/components/order/index.umd.cjs +4 -4
  91. package/components/page-footer/index.esm.js +94 -94
  92. package/components/page-footer/index.umd.cjs +1 -1
  93. package/components/page-header/index.esm.js +942 -939
  94. package/components/page-header/index.umd.cjs +1 -1
  95. package/components/pagination/index.esm.js +82 -82
  96. package/components/pagination/index.umd.cjs +1 -1
  97. package/components/popover/index.esm.js +1 -1
  98. package/components/popover/index.umd.cjs +1 -1
  99. package/components/progress/index.esm.js +113 -113
  100. package/components/progress/index.umd.cjs +2 -2
  101. package/components/property-editor/index.esm.js +151 -150
  102. package/components/property-editor/index.umd.cjs +1 -1
  103. package/components/property-panel/index.esm.js +565 -565
  104. package/components/property-panel/index.umd.cjs +2 -2
  105. package/components/query-solution/index.esm.js +4142 -4190
  106. package/components/query-solution/index.umd.cjs +6 -6
  107. package/components/radio-button/index.esm.js +182 -182
  108. package/components/radio-button/index.umd.cjs +1 -1
  109. package/components/rate/index.esm.js +106 -106
  110. package/components/rate/index.umd.cjs +1 -1
  111. package/components/response-layout/index.esm.js +409 -409
  112. package/components/response-layout/index.umd.cjs +1 -1
  113. package/components/response-layout-editor/index.esm.js +1488 -1478
  114. package/components/response-layout-editor/index.umd.cjs +1 -1
  115. package/components/response-toolbar/index.esm.js +779 -776
  116. package/components/response-toolbar/index.umd.cjs +1 -1
  117. package/components/schema-selector/index.esm.js +1765 -1762
  118. package/components/schema-selector/index.umd.cjs +5 -5
  119. package/components/search-box/index.esm.js +114 -114
  120. package/components/search-box/index.umd.cjs +1 -1
  121. package/components/section/index.esm.js +1184 -1181
  122. package/components/section/index.umd.cjs +1 -1
  123. package/components/smoke-detector/index.esm.js +163 -163
  124. package/components/smoke-detector/index.umd.cjs +1 -1
  125. package/components/sort-condition-editor/index.esm.js +927 -916
  126. package/components/sort-condition-editor/index.umd.cjs +3 -3
  127. package/components/splitter/index.esm.js +3 -3
  128. package/components/splitter/index.umd.cjs +1 -1
  129. package/components/step/index.esm.js +133 -133
  130. package/components/step/index.umd.cjs +1 -1
  131. package/components/switch/index.esm.js +76 -72
  132. package/components/switch/index.umd.cjs +1 -1
  133. package/components/tabs/index.esm.js +1527 -1524
  134. package/components/tabs/index.umd.cjs +2 -2
  135. package/components/tags/index.esm.js +93 -93
  136. package/components/tags/index.umd.cjs +1 -1
  137. package/components/text/index.esm.js +138 -138
  138. package/components/text/index.umd.cjs +1 -1
  139. package/components/textarea/index.esm.js +361 -361
  140. package/components/textarea/index.umd.cjs +2 -2
  141. package/components/tooltip/index.esm.js +173 -171
  142. package/components/tooltip/index.umd.cjs +1 -1
  143. package/components/transfer/index.esm.js +130 -134
  144. package/components/transfer/index.umd.cjs +4 -4
  145. package/components/tree-grid/index.esm.js +25 -25
  146. package/components/tree-grid/index.umd.cjs +1 -1
  147. package/components/tree-view/index.esm.js +1746 -1743
  148. package/components/tree-view/index.umd.cjs +1 -1
  149. package/components/uploader/index.esm.js +170 -170
  150. package/components/uploader/index.umd.cjs +2 -2
  151. package/components/verify-detail/index.esm.js +196 -196
  152. package/components/verify-detail/index.umd.cjs +1 -1
  153. package/components/video/index.esm.js +8 -8
  154. package/components/video/index.umd.cjs +1 -1
  155. package/components/weather/index.esm.js +9 -9
  156. package/components/weather/index.umd.cjs +2 -2
  157. package/farris.all.esm.js +16987 -17002
  158. package/farris.all.umd.cjs +27 -27
  159. package/package.json +1 -1
  160. package/types/lookup/src/composition/use-dialog.d.ts +2 -0
  161. package/types/lookup/src/composition/use-input-change.d.ts +1 -0
  162. package/components/time-picker/index.css +0 -1
  163. package/components/time-picker/index.esm.js +0 -9793
  164. package/components/time-picker/index.umd.cjs +0 -1
  165. package/components/time-picker/package.json +0 -8
  166. package/components/time-picker/style.js +0 -6
  167. package/designer/button-edit/index.css +0 -1
  168. package/designer/button-edit/index.esm.js +0 -4856
  169. package/designer/button-edit/index.umd.cjs +0 -1
  170. package/designer/checkbox/index.esm.js +0 -250
  171. package/designer/checkbox/index.umd.cjs +0 -1
  172. package/designer/checkbox-group/index.esm.js +0 -377
  173. package/designer/checkbox-group/index.umd.cjs +0 -1
  174. package/designer/data-grid/index.css +0 -1
  175. package/designer/data-grid/index.esm.js +0 -15413
  176. package/designer/data-grid/index.umd.cjs +0 -23
  177. package/designer/data-view/index.esm.js +0 -854
  178. package/designer/data-view/index.umd.cjs +0 -38
  179. package/designer/drawer/index.css +0 -1
  180. package/designer/drawer/index.esm.js +0 -525
  181. package/designer/drawer/index.umd.cjs +0 -1
  182. package/designer/farris-designer.all.esm.js +0 -22320
  183. package/designer/farris-designer.all.umd.cjs +0 -34
  184. package/designer/index.css +0 -1
  185. package/designer/input-group/index.esm.js +0 -1098
  186. package/designer/input-group/index.umd.cjs +0 -1
  187. package/designer/list-view/index.css +0 -1
  188. package/designer/list-view/index.esm.js +0 -4675
  189. package/designer/list-view/index.umd.cjs +0 -40
  190. package/designer/radio-group/index.css +0 -1
  191. package/designer/radio-group/index.esm.js +0 -6980
  192. package/designer/radio-group/index.umd.cjs +0 -1
  193. package/designer/tree-grid/index.esm.js +0 -1099
  194. package/designer/tree-grid/index.umd.cjs +0 -1
@@ -1,72 +1,72 @@
1
- import { ref as G, computed as ue, defineComponent as W, watch as le, createVNode as R, Fragment as H } from "vue";
2
- import { isPlainObject as z, cloneDeep as _ } from "lodash-es";
1
+ import { ref as G, computed as le, defineComponent as W, watch as ue, createVNode as k, Fragment as H } from "vue";
2
+ import { cloneDeep as z, isPlainObject as _ } from "lodash-es";
3
3
  import { withInstall as fe } from "../common/index.esm.js";
4
4
  function V(e, t) {
5
5
  let r;
6
- function a(i) {
7
- const { properties: s, title: d, ignore: n } = i, o = n && Array.isArray(n), c = Object.keys(s).reduce((p, m) => ((!o || !n.find((S) => S === m)) && (p[m] = s[m].type === "object" && s[m].properties ? a(s[m]) : _(s[m].default)), p), {});
8
- if (d && (!o || !n.find((p) => p === "id"))) {
9
- const p = d.toLowerCase().replace(/-/g, "_");
10
- c.id = `${p}_${Math.random().toString().slice(2, 6)}`;
6
+ function s(i) {
7
+ const { properties: a, title: p, ignore: n } = i, o = n && Array.isArray(n), c = Object.keys(a).reduce((d, m) => ((!o || !n.find((C) => C === m)) && (d[m] = a[m].type === "object" && a[m].properties ? s(a[m]) : z(a[m].default)), d), {});
8
+ if (p && (!o || !n.find((d) => d === "id"))) {
9
+ const d = p.toLowerCase().replace(/-/g, "_");
10
+ c.id = `${d}_${Math.random().toString().slice(2, 6)}`;
11
11
  }
12
12
  return c;
13
13
  }
14
14
  function v(i) {
15
- const { properties: s, title: d, required: n } = i;
15
+ const { properties: a, title: p, required: n } = i;
16
16
  if (n && Array.isArray(n)) {
17
- const o = n.reduce((c, p) => (c[p] = s[p].type === "object" && s[p].properties ? a(s[p]) : _(s[p].default), c), {});
18
- if (d && n.find((c) => c === "id")) {
19
- const c = d.toLowerCase().replace(/-/g, "_");
17
+ const o = n.reduce((c, d) => (c[d] = a[d].type === "object" && a[d].properties ? s(a[d]) : z(a[d].default), c), {});
18
+ if (p && n.find((c) => c === "id")) {
19
+ const c = p.toLowerCase().replace(/-/g, "_");
20
20
  o.id = `${c}_${Math.random().toString().slice(2, 6)}`;
21
21
  }
22
22
  return o;
23
23
  }
24
24
  return {
25
- type: d
25
+ type: p
26
26
  };
27
27
  }
28
- function g(i, s = {}, d) {
28
+ function g(i, a = {}, p) {
29
29
  const n = e[i];
30
30
  if (n) {
31
31
  let o = v(n);
32
32
  const c = t[i];
33
- return o = c ? c({ getSchemaByType: g }, o, s, d) : o, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(o), o;
33
+ return o = c ? c({ getSchemaByType: g }, o, a, p) : o, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(o), o;
34
34
  }
35
35
  return null;
36
36
  }
37
- function y(i, s) {
38
- const d = a(s);
39
- return Object.keys(d).reduce((n, o) => (Object.prototype.hasOwnProperty.call(i, o) && (n[o] && z(n[o]) && z(i[o] || !i[o]) ? Object.assign(n[o], i[o] || {}) : n[o] = i[o]), n), d), d;
37
+ function y(i, a) {
38
+ const p = s(a);
39
+ return Object.keys(p).reduce((n, o) => (Object.prototype.hasOwnProperty.call(i, o) && (n[o] && _(n[o]) && _(i[o] || !i[o]) ? Object.assign(n[o], i[o] || {}) : n[o] = i[o]), n), p), p;
40
40
  }
41
- function F(i, s) {
41
+ function S(i, a) {
42
42
  return Object.keys(i).filter((n) => i[n] != null).reduce((n, o) => {
43
- if (s.has(o)) {
44
- const c = s.get(o);
43
+ if (a.has(o)) {
44
+ const c = a.get(o);
45
45
  if (typeof c == "string")
46
46
  n[c] = i[o];
47
47
  else {
48
- const p = c(o, i[o], i);
49
- Object.assign(n, p);
48
+ const d = c(o, i[o], i);
49
+ Object.assign(n, d);
50
50
  }
51
51
  } else
52
52
  n[o] = i[o];
53
53
  return n;
54
54
  }, {});
55
55
  }
56
- function x(i, s, d = /* @__PURE__ */ new Map()) {
57
- const n = y(i, s);
58
- return F(n, d);
56
+ function x(i, a, p = /* @__PURE__ */ new Map()) {
57
+ const n = y(i, a);
58
+ return S(n, p);
59
59
  }
60
- function l(i) {
61
- var d;
62
- const s = i.type;
63
- if (s) {
64
- const n = e[s];
60
+ function u(i) {
61
+ var p;
62
+ const a = i.type;
63
+ if (a) {
64
+ const n = e[a];
65
65
  if (!n)
66
66
  return i;
67
- const o = y(i, n), c = ((d = i.editor) == null ? void 0 : d.type) || "";
67
+ const o = y(i, n), c = ((p = i.editor) == null ? void 0 : p.type) || "";
68
68
  if (c) {
69
- const p = e[c], m = y(i.editor, p);
69
+ const d = e[c], m = y(i.editor, d);
70
70
  o.editor = m;
71
71
  }
72
72
  return o;
@@ -76,76 +76,76 @@ function V(e, t) {
76
76
  function f(i) {
77
77
  r = i;
78
78
  }
79
- return { getSchemaByType: g, resolveSchemaWithDefaultValue: l, resolveSchemaToProps: x, mappingSchemaToProps: F, setDesignerContext: f };
79
+ return { getSchemaByType: g, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: x, mappingSchemaToProps: S, setDesignerContext: f };
80
80
  }
81
- const I = {}, J = {}, { resolveSchemaWithDefaultValue: de, resolveSchemaToProps: pe, mappingSchemaToProps: me } = V(I, J);
81
+ const I = {}, J = {}, { getSchemaByType: st, resolveSchemaWithDefaultValue: pe, resolveSchemaToProps: de, mappingSchemaToProps: me, setDesignerContext: at } = V(I, J);
82
82
  function ve(e = {}) {
83
- function t(l, f, i, s) {
83
+ function t(u, f, i, a) {
84
84
  if (typeof i == "number")
85
- return s[l].length === i;
85
+ return a[u].length === i;
86
86
  if (typeof i == "object") {
87
- const d = Object.keys(i)[0], n = i[d];
88
- if (d === "not")
89
- return Number(s[l].length) !== Number(n);
90
- if (d === "moreThan")
91
- return Number(s[l].length) >= Number(n);
92
- if (d === "lessThan")
93
- return Number(s[l].length) <= Number(n);
87
+ const p = Object.keys(i)[0], n = i[p];
88
+ if (p === "not")
89
+ return Number(a[u].length) !== Number(n);
90
+ if (p === "moreThan")
91
+ return Number(a[u].length) >= Number(n);
92
+ if (p === "lessThan")
93
+ return Number(a[u].length) <= Number(n);
94
94
  }
95
95
  return !1;
96
96
  }
97
- function r(l, f, i, s) {
98
- return s[l] && s[l].propertyValue && String(s[l].propertyValue.value) === String(i);
97
+ function r(u, f, i, a) {
98
+ return a[u] && a[u].propertyValue && String(a[u].propertyValue.value) === String(i);
99
99
  }
100
- const a = /* @__PURE__ */ new Map([
100
+ const s = /* @__PURE__ */ new Map([
101
101
  ["length", t],
102
102
  ["getProperty", r]
103
103
  ]);
104
- Object.keys(e).reduce((l, f) => (l.set(f, e[f]), l), a);
105
- function v(l, f) {
106
- const i = l;
107
- return typeof f == "number" ? [{ target: i, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: i, operator: "getProperty", param: l, value: !!f }] : typeof f == "object" ? Object.keys(f).map((s) => {
108
- if (s === "length")
109
- return { target: i, operator: "length", param: null, value: f[s] };
110
- const d = s, n = f[s];
111
- return { target: i, operator: "getProperty", param: d, value: n };
104
+ Object.keys(e).reduce((u, f) => (u.set(f, e[f]), u), s);
105
+ function v(u, f) {
106
+ const i = u;
107
+ 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((a) => {
108
+ if (a === "length")
109
+ return { target: i, operator: "length", param: null, value: f[a] };
110
+ const p = a, n = f[a];
111
+ return { target: i, operator: "getProperty", param: p, value: n };
112
112
  }) : [];
113
113
  }
114
- function g(l) {
115
- return Object.keys(l).reduce((i, s) => {
116
- const d = v(s, l[s]);
117
- return i.push(...d), i;
114
+ function g(u) {
115
+ return Object.keys(u).reduce((i, a) => {
116
+ const p = v(a, u[a]);
117
+ return i.push(...p), i;
118
118
  }, []);
119
119
  }
120
- function y(l, f) {
121
- if (a.has(l.operator)) {
122
- const i = a.get(l.operator);
123
- return i && i(l.target, l.param, l.value, f) || !1;
120
+ function y(u, f) {
121
+ if (s.has(u.operator)) {
122
+ const i = s.get(u.operator);
123
+ return i && i(u.target, u.param, u.value, f) || !1;
124
124
  }
125
125
  return !1;
126
126
  }
127
- function F(l, f) {
128
- return g(l).reduce((d, n) => d && y(n, f), !0);
127
+ function S(u, f) {
128
+ return g(u).reduce((p, n) => p && y(n, f), !0);
129
129
  }
130
- function x(l, f) {
131
- const i = Object.keys(l), s = i.includes("allOf"), d = i.includes("anyOf"), n = s || d, p = (n ? l[n ? s ? "allOf" : "anyOf" : "allOf"] : [l]).map((S) => F(S, f));
132
- return s ? !p.includes(!1) : p.includes(!0);
130
+ function x(u, f) {
131
+ const i = Object.keys(u), a = i.includes("allOf"), p = i.includes("anyOf"), n = a || p, d = (n ? u[n ? a ? "allOf" : "anyOf" : "allOf"] : [u]).map((C) => S(C, f));
132
+ return a ? !d.includes(!1) : d.includes(!0);
133
133
  }
134
134
  return { parseValueSchema: x };
135
135
  }
136
136
  const ge = {
137
- convertTo: (e, t, r, a) => {
137
+ convertTo: (e, t, r, s) => {
138
138
  e.appearance || (e.appearance = {}), e.appearance[t] = r;
139
139
  },
140
140
  convertFrom: (e, t, r) => e.appearance ? e.appearance[t] : e[t]
141
141
  }, be = {
142
142
  convertFrom: (e, t, r) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
143
143
  }, ye = {
144
- convertTo: (e, t, r, a) => {
144
+ convertTo: (e, t, r, s) => {
145
145
  e.editor && (e.editor[t] = r);
146
146
  },
147
147
  convertFrom: (e, t, r) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
148
- }, Fe = {
148
+ }, Se = {
149
149
  button: { type: "button", name: "按钮" },
150
150
  "response-toolbar": { type: "response-toolbar", name: "工具栏" },
151
151
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
@@ -192,19 +192,19 @@ const ge = {
192
192
  "list-view": { type: "list-view", name: "列表" },
193
193
  "filter-bar": { type: "filter-bar", name: "筛选条" },
194
194
  "language-textbox": { type: "language-textbox", name: "多语输入框" }
195
- }, Se = {
195
+ }, Ce = {
196
196
  convertFrom: (e, t, r) => {
197
197
  var v;
198
- const a = e.editor && e.editor[t] ? e.editor[t] : e[t];
199
- return ((v = Fe[a]) == null ? void 0 : v.name) || a;
198
+ const s = e.editor && e.editor[t] ? e.editor[t] : e[t];
199
+ return ((v = Se[s]) == null ? void 0 : v.name) || s;
200
200
  }
201
- }, Ce = {
202
- convertTo: (e, t, r, a) => {
201
+ }, Te = {
202
+ convertTo: (e, t, r, s) => {
203
203
  e[t] = e[t];
204
204
  },
205
205
  convertFrom: (e, t, r) => e.editor ? r.getRealEditorType(e.editor.type) : ""
206
- }, Te = {
207
- convertTo: (e, t, r, a) => {
206
+ }, Fe = {
207
+ convertTo: (e, t, r, s) => {
208
208
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = r : e.formatter = {
209
209
  [t]: r
210
210
  });
@@ -235,7 +235,7 @@ const ge = {
235
235
  return "none";
236
236
  }
237
237
  }, xe = {
238
- convertTo: (e, t, r, a) => {
238
+ convertTo: (e, t, r, s) => {
239
239
  e.command ? e.command[t] = r : e.command = {
240
240
  [t]: r
241
241
  }, t === "enable" && r && (e.command.commands || (e.command.commands = [
@@ -253,7 +253,7 @@ const ge = {
253
253
  },
254
254
  convertFrom: (e, t, r) => e.command && t === "enable" ? e.command.enable : ""
255
255
  }, we = {
256
- convertTo: (e, t, r, a) => {
256
+ convertTo: (e, t, r, s) => {
257
257
  e.column ? e.column[t] = r : e.column = {
258
258
  [t]: r
259
259
  }, t === "fitColumns" && r && (e.column.fitMode || (e.column.fitMode = "average"));
@@ -268,7 +268,7 @@ const ge = {
268
268
  return "";
269
269
  }
270
270
  }, Oe = {
271
- convertTo: (e, t, r, a) => {
271
+ convertTo: (e, t, r, s) => {
272
272
  e.summary ? e.summary[t] = r : e.summary = {
273
273
  [t]: r
274
274
  }, t === "enable" && r && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
@@ -278,7 +278,7 @@ const ge = {
278
278
  },
279
279
  convertFrom: (e, t, r) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
280
280
  }, Pe = {
281
- convertTo: (e, t, r, a) => {
281
+ convertTo: (e, t, r, s) => {
282
282
  e.group ? e.group[t] = r : e.group = {
283
283
  [t]: r
284
284
  }, t === "enable" && r && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
@@ -295,71 +295,71 @@ const ge = {
295
295
  return e.group.showSummary;
296
296
  }
297
297
  }
298
- }, Ee = {
298
+ }, De = {
299
299
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
300
300
  convertTo: (e, t, r) => {
301
301
  if (r && r.length > 0) {
302
- const a = r[0];
303
- e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = a.bindingField, e.binding.field = a.id, e.binding.fullPath = a.path, e.path = a.bindingPath;
302
+ const s = r[0];
303
+ e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = s.bindingField, e.binding.field = s.id, e.binding.fullPath = s.path, e.path = s.bindingPath;
304
304
  }
305
305
  }
306
- }, De = {
307
- convertTo: (e, t, r, a) => {
306
+ }, Ee = {
307
+ convertTo: (e, t, r, s) => {
308
308
  e.pagination || (e.pagination = {}), e.pagination[t] = r;
309
309
  },
310
310
  convertFrom: (e, t, r) => e.pagination ? e.pagination[t] : e[t]
311
- }, je = {
312
- convertTo: (e, t, r, a) => {
311
+ }, $e = {
312
+ convertTo: (e, t, r, s) => {
313
313
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = r;
314
314
  },
315
315
  convertFrom: (e, t, r) => e.rowNumber ? e.rowNumber[t] : e[t]
316
- }, ke = {
317
- convertTo: (e, t, r, a) => {
316
+ }, je = {
317
+ convertTo: (e, t, r, s) => {
318
318
  e.selection || (e.selection = {}), e.selection[t] = r;
319
319
  },
320
320
  convertFrom: (e, t, r) => {
321
- var a, v;
322
- return t === "showCheckbox" ? (a = e.selection) != null && a.multiSelect ? !0 : (v = e.selection) == null ? void 0 : v.showCheckbox : e.selection ? e.selection[t] : e[t];
321
+ var s, v;
322
+ return t === "showCheckbox" ? (s = e.selection) != null && s.multiSelect ? !0 : (v = e.selection) == null ? void 0 : v.showCheckbox : e.selection ? e.selection[t] : e[t];
323
323
  }
324
- }, Ne = {
324
+ }, he = {
325
325
  convertFrom: (e, t, r) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
326
- }, Re = {
326
+ }, ke = {
327
327
  convertFrom: (e, t) => e[t] || "",
328
328
  convertTo: (e, t, r) => {
329
329
  e[t] = r;
330
330
  }
331
- }, $e = {
332
- convertTo: (e, t, r, a) => {
331
+ }, Ne = {
332
+ convertTo: (e, t, r, s) => {
333
333
  e.size || (e.size = {}), e.size[t] = r;
334
334
  },
335
335
  convertFrom: (e, t, r) => e.size ? e.size[t] : e[t]
336
- }, Me = {
336
+ }, Re = {
337
337
  convertFrom: (e, t, r) => {
338
- var a, v;
339
- return (a = e.formatter) != null && a.data && t === "formatterEnumData" && !e.formatterEnumData ? (v = e.formatter) == null ? void 0 : v.data : e.formatterEnumData;
338
+ var s, v;
339
+ return (s = e.formatter) != null && s.data && t === "formatterEnumData" && !e.formatterEnumData ? (v = e.formatter) == null ? void 0 : v.data : e.formatterEnumData;
340
340
  }
341
- }, he = {
342
- convertTo: (e, t, r, a) => {
341
+ }, Me = {
342
+ convertTo: (e, t, r, s) => {
343
343
  e.sort || (e.sort = {}), e.sort[t] = r;
344
344
  },
345
345
  convertFrom: (e, t, r) => {
346
- var a, v;
346
+ var s, v;
347
347
  if (t === "mode")
348
- return ((a = e.sort) == null ? void 0 : a.mode) || "client";
348
+ return ((s = e.sort) == null ? void 0 : s.mode) || "client";
349
349
  if (t === "multiSort")
350
350
  return !!((v = e.sort) != null && v.multiSort);
351
351
  }
352
352
  }, Be = {
353
- convertTo: (e, t, r, a) => {
353
+ convertTo: (e, t, r, s) => {
354
354
  e.filter || (e.filter = {}), e.filter[t] = r;
355
355
  },
356
356
  convertFrom: (e, t, r) => {
357
- var a;
357
+ var s;
358
358
  if (t === "mode")
359
- return ((a = e.filter) == null ? void 0 : a.mode) || "client";
359
+ return ((s = e.filter) == null ? void 0 : s.mode) || "client";
360
360
  }
361
361
  }, Ae = {
362
- convertTo: (e, t, r, a) => {
362
+ convertTo: (e, t, r, s) => {
363
363
  e.rowOption ? e.rowOption[t] = r : e.rowOption = {
364
364
  [t]: r
365
365
  };
@@ -375,26 +375,26 @@ const ge = {
375
375
  }
376
376
  };
377
377
  function Q(e, t, r) {
378
- const a = /* @__PURE__ */ new Map([
378
+ const s = /* @__PURE__ */ new Map([
379
379
  ["/converter/appearance.converter", ge],
380
380
  ["/converter/buttons.converter", be],
381
381
  ["/converter/property-editor.converter", ye],
382
- ["/converter/items-count.converter", Ne],
383
- ["/converter/type.converter", Se],
384
- ["/converter/change-editor.converter", Ce],
385
- ["/converter/change-formatter.converter", Te],
382
+ ["/converter/items-count.converter", he],
383
+ ["/converter/type.converter", Ce],
384
+ ["/converter/change-editor.converter", Te],
385
+ ["/converter/change-formatter.converter", Fe],
386
386
  ["/converter/column-command.converter", xe],
387
387
  ["/converter/column-option.converter", we],
388
388
  ["/converter/summary.converter", Oe],
389
389
  ["/converter/group.converter", Pe],
390
- ["/converter/form-group-label.converter", Re],
391
- ["/converter/field-selector.converter", Ee],
392
- ["/converter/pagination.converter", De],
393
- ["/converter/row-number.converter", je],
394
- ["/converter/grid-selection.converter", ke],
395
- ["/converter/size.converter", $e],
396
- ["/converter/change-formatter-enum.converter", Me],
397
- ["/converter/grid-sort.converter", he],
390
+ ["/converter/form-group-label.converter", ke],
391
+ ["/converter/field-selector.converter", De],
392
+ ["/converter/pagination.converter", Ee],
393
+ ["/converter/row-number.converter", $e],
394
+ ["/converter/grid-selection.converter", je],
395
+ ["/converter/size.converter", Ne],
396
+ ["/converter/change-formatter-enum.converter", Re],
397
+ ["/converter/grid-sort.converter", Me],
398
398
  ["/converter/grid-filter.converter", Be],
399
399
  ["/converter/row-option.converter", Ae]
400
400
  ]), v = /* @__PURE__ */ new Map([
@@ -425,91 +425,91 @@ function Q(e, t, r) {
425
425
  function y(n, o) {
426
426
  return () => g.parseValueSchema(n, o);
427
427
  }
428
- function F(n, o, c) {
428
+ function S(n, o, c) {
429
429
  return n.includes("visible") && o.visible !== void 0 ? typeof o.visible == "boolean" ? () => !!o.visible : o.visible === void 0 ? !0 : y(o.visible, c) : () => !0;
430
430
  }
431
431
  function x(n, o, c) {
432
432
  return n.includes("readonly") && o.readonly !== void 0 ? typeof o.readonly == "boolean" ? () => !!o.readonly : y(o.readonly, c) : () => !1;
433
433
  }
434
- function l(n, o) {
434
+ function u(n, o) {
435
435
  const c = n.$converter || o;
436
- return typeof c == "string" && c && a.has(c) ? a.get(c) || null : c || null;
436
+ return typeof c == "string" && c && s.has(c) ? s.get(c) || null : c || null;
437
437
  }
438
- function f(n, o, c, p, m, S = "", w = "") {
438
+ function f(n, o, c, d, m, C = "", w = "") {
439
439
  return Object.keys(n).map((b) => {
440
- const O = G(1), P = b, u = n[b], C = Object.keys(u), $ = u.title, k = u.type, N = v.get(k) || { type: "input-group", enableClear: !1 }, j = u.editor ? Object.assign({}, N, u.editor) : Object.assign({}, N), B = F(C, u, o), M = x(C, u, o);
441
- j.readonly = j.readonly === void 0 ? M() : j.readonly;
442
- const A = u.type === "cascade" ? f(u.properties, o, c, p, m, S, w) : [], re = !0;
443
- let E = l(u, w);
444
- const ne = ue({
440
+ const O = G(1), P = b, l = n[b], T = Object.keys(l), N = l.title, j = l.type, h = v.get(j) || { type: "input-group", enableClear: !1 }, $ = l.editor ? Object.assign({}, h, l.editor) : Object.assign({}, h), B = S(T, l, o), R = x(T, l, o);
441
+ $.readonly = $.readonly === void 0 ? R() : $.readonly;
442
+ const A = l.type === "cascade" ? f(l.properties, o, c, d, m, C, w) : [], re = !0;
443
+ let D = u(l, w);
444
+ const ne = le({
445
445
  get() {
446
446
  if (O.value) {
447
- if (["class", "style"].find((ce) => ce === P) && !E && (E = a.get("/converter/appearance.converter") || null), E && E.convertFrom)
448
- return E.convertFrom(c, b, m, S);
449
- const D = c[b];
450
- return Object.prototype.hasOwnProperty.call(u, "defaultValue") && (D === void 0 || typeof D == "string" && D === "") ? u.type === "boolean" ? u.defaultValue : u.defaultValue || "" : D;
447
+ if (["class", "style"].find((ce) => ce === P) && !D && (D = s.get("/converter/appearance.converter") || null), D && D.convertFrom)
448
+ return D.convertFrom(c, b, m, C);
449
+ const E = c[b];
450
+ return Object.prototype.hasOwnProperty.call(l, "defaultValue") && (E === void 0 || typeof E == "string" && E === "") ? l.type === "boolean" ? l.defaultValue : l.defaultValue || "" : E;
451
451
  }
452
452
  return null;
453
453
  },
454
- set(D) {
455
- O.value += 1, E && E.convertTo ? (E.convertTo(p, b, D, m, S), E.convertTo(c, b, D, m, S)) : (p[b] = D, c[b] = D);
454
+ set(E) {
455
+ O.value += 1, D && D.convertTo ? (D.convertTo(d, b, E, m, C), D.convertTo(c, b, E, m, C)) : (d[b] = E, c[b] = E);
456
456
  }
457
- }), { refreshPanelAfterChanged: oe, description: ie, isExpand: ae, parentPropertyID: se } = u, L = { propertyID: P, propertyName: $, propertyType: k, propertyValue: ne, editor: j, visible: B, readonly: M, cascadeConfig: A, hideCascadeTitle: re, refreshPanelAfterChanged: oe, description: ie, isExpand: ae, parentPropertyID: se };
457
+ }), { refreshPanelAfterChanged: oe, description: ie, isExpand: se, parentPropertyID: ae } = l, L = { propertyID: P, propertyName: N, propertyType: j, propertyValue: ne, editor: $, visible: B, readonly: R, cascadeConfig: A, hideCascadeTitle: re, refreshPanelAfterChanged: oe, description: ie, isExpand: se, parentPropertyID: ae };
458
458
  return o[P] = L, L;
459
459
  });
460
460
  }
461
461
  function i(n, o, c = {}) {
462
- const p = {}, m = e[n];
462
+ const d = {}, m = e[n];
463
463
  return m && m.categories ? Object.keys(m.categories).map((w) => {
464
- const T = m.categories[w], b = T == null ? void 0 : T.title, O = f(T.properties || {}, p, {}, c, o);
464
+ const F = m.categories[w], b = F == null ? void 0 : F.title, O = f(F.properties || {}, d, {}, c, o);
465
465
  return { categoryId: w, categoryName: b, properties: O };
466
466
  }) : [];
467
467
  }
468
- function s(n, o, c, p, m = "") {
469
- const S = o.$ref.schema, w = o.$ref.converter, T = c[S], b = T.type, O = r(T), P = {}, u = e[b];
470
- if (u && u.categories) {
471
- const C = u.categories[n], $ = C == null ? void 0 : C.title;
472
- w && Object.keys(C.properties).forEach((j) => {
473
- C.properties[j].$converter = w;
468
+ function a(n, o, c, d, m = "") {
469
+ const C = o.$ref.schema, w = o.$ref.converter, F = c[C], b = F.type, O = r(F), P = {}, l = e[b];
470
+ if (l && l.categories) {
471
+ const T = l.categories[n], N = T == null ? void 0 : T.title;
472
+ w && Object.keys(T.properties).forEach(($) => {
473
+ T.properties[$].$converter = w;
474
474
  });
475
- const k = (C == null ? void 0 : C.properties) || {}, N = f(k, P, O, T, p, m);
476
- return { categoryId: n, categoryName: $, properties: N };
475
+ const j = (T == null ? void 0 : T.properties) || {}, h = f(j, P, O, F, d, m);
476
+ return { categoryId: n, categoryName: N, properties: h };
477
477
  }
478
478
  return { categoryId: n, categoryName: "", properties: [] };
479
479
  }
480
- function d(n, o, c, p, m) {
481
- const S = n.type, w = r(n), T = {};
482
- let b = m || e[S];
483
- if (b && Object.keys(b).length === 0 && c && c.getPropConfig && (b = c.getPropConfig(p)), b && b.categories) {
480
+ function p(n, o, c, d, m) {
481
+ const C = n.type, w = r(n), F = {};
482
+ let b = m || e[C];
483
+ if (b && Object.keys(b).length === 0 && c && c.getPropConfig && (b = c.getPropConfig(d)), b && b.categories) {
484
484
  const O = [];
485
485
  return Object.keys(b.categories).map((P) => {
486
- const u = b.categories[P];
487
- if (u.$ref) {
488
- O.push(s(P, u, n, o, p));
486
+ const l = b.categories[P];
487
+ if (l.$ref) {
488
+ O.push(a(P, l, n, o, d));
489
489
  return;
490
490
  }
491
- const C = u == null ? void 0 : u.title, $ = u == null ? void 0 : u.tabId, k = u == null ? void 0 : u.tabName, N = u == null ? void 0 : u.hide, j = u == null ? void 0 : u.hideTitle, B = f(u.properties || {}, T, w, n, o, p, u.$converter), { setPropertyRelates: M } = u, A = u == null ? void 0 : u.parentPropertyID;
492
- O.push({ categoryId: P, categoryName: C, tabId: $, tabName: k, hide: N, properties: B, hideTitle: j, setPropertyRelates: M, parentPropertyID: A });
491
+ const T = l == null ? void 0 : l.title, N = l == null ? void 0 : l.tabId, j = l == null ? void 0 : l.tabName, h = l == null ? void 0 : l.hide, $ = l == null ? void 0 : l.hideTitle, B = f(l.properties || {}, F, w, n, o, d, l.$converter), { setPropertyRelates: R } = l, A = l == null ? void 0 : l.parentPropertyID;
492
+ O.push({ categoryId: P, categoryName: T, tabId: N, tabName: j, hide: h, properties: B, hideTitle: $, setPropertyRelates: R, parentPropertyID: A });
493
493
  }), O;
494
494
  }
495
495
  return [];
496
496
  }
497
497
  return {
498
- getPropertyConfigBySchema: d,
498
+ getPropertyConfigBySchema: p,
499
499
  getPropertyConfigByType: i,
500
- propertyConverterMap: a
500
+ propertyConverterMap: s
501
501
  };
502
502
  }
503
503
  const U = {}, X = {};
504
- Q(U, X, de);
505
- const Y = {}, Z = {}, { resolveSchemaWithDefaultValue: qe } = V(Y, Z), K = {}, ee = {};
504
+ Q(U, X, pe);
505
+ const Y = {}, Z = {}, { getSchemaByType: ct, resolveSchemaWithDefaultValue: qe, resolveSchemaToProps: lt, mappingSchemaToProps: ut, setDesignerContext: ft } = V(Y, Z), K = {}, ee = {};
506
506
  Q(K, ee, qe);
507
- function Le(e, t, r = /* @__PURE__ */ new Map(), a = (y, F, x, l) => F, v = {}, g = (y) => y) {
508
- return I[t.title] = t, J[t.title] = a, U[t.title] = v, X[t.title] = g, Y[t.title] = t, Z[t.title] = a, K[t.title] = v, ee[t.title] = g, (y = {}, F = !0) => {
509
- if (!F)
507
+ function Le(e, t, r = /* @__PURE__ */ new Map(), s = (y, S, x, u) => S, v = {}, g = (y) => y) {
508
+ return I[t.title] = t, J[t.title] = s, U[t.title] = v, X[t.title] = g, Y[t.title] = t, Z[t.title] = s, K[t.title] = v, ee[t.title] = g, (y = {}, S = !0) => {
509
+ if (!S)
510
510
  return me(y, r);
511
- const x = pe(y, t, r), l = Object.keys(e).reduce((f, i) => (f[i] = e[i].default, f), {});
512
- return Object.assign(l, x);
511
+ const x = de(y, t, r), u = Object.keys(e).reduce((f, i) => (f[i] = e[i].default, f), {});
512
+ return Object.assign(u, x);
513
513
  };
514
514
  }
515
515
  function ze(e, t) {
@@ -635,34 +635,34 @@ const We = "https://json-schema.org/draft/2020-12/schema", He = "https://farris-
635
635
  */
636
636
  onSelectedValueChanged: { type: Function, default: () => {
637
637
  } }
638
- }, te = Le(q, Xe, _e, Ge, tt), h = /* @__PURE__ */ W({
638
+ }, te = Le(q, Xe, _e, Ge, tt), M = /* @__PURE__ */ W({
639
639
  name: "FRadioButton",
640
640
  props: q,
641
641
  emits: ["selectedValueChanged"],
642
642
  setup(e, t) {
643
643
  const r = G(e.enumData);
644
- function a(g, y) {
644
+ function s(g, y) {
645
645
  if (g.currentTarget.classList.value = "btn btn-secondary active", g.currentTarget.tagName.toLowerCase() === "label") {
646
646
  const {
647
- currentTarget: F
648
- } = g, x = F.parentElement;
649
- Array.from(x.querySelectorAll("label")).filter((f) => f !== F).forEach((f) => f.classList.remove("active"));
647
+ currentTarget: S
648
+ } = g, x = S.parentElement;
649
+ Array.from(x.querySelectorAll("label")).filter((f) => f !== S).forEach((f) => f.classList.remove("active"));
650
650
  }
651
651
  t.emit("selectedValueChanged", y);
652
652
  }
653
653
  function v(g) {
654
654
  return `${g.text}${e.suffixValue}`;
655
655
  }
656
- return le(() => e.enumData, (g, y) => {
656
+ return ue(() => e.enumData, (g, y) => {
657
657
  g !== y && (r.value = e.enumData);
658
- }), () => R("div", {
658
+ }), () => k("div", {
659
659
  class: "f-radio-button"
660
- }, [R("div", {
660
+ }, [k("div", {
661
661
  class: ["farris-input-wrap"]
662
- }, [r.value.map((g, y) => R(H, null, [R("label", {
662
+ }, [r.value.map((g, y) => k(H, null, [k("label", {
663
663
  class: g.active ? "btn btn-secondary active" : "btn btn-secondary",
664
- onClick: (F) => a(F, g)
665
- }, [R("span", {
664
+ onClick: (S) => s(S, g)
665
+ }, [k("span", {
666
666
  class: "f-radio-button-text"
667
667
  }, [v(g)])])]))])]);
668
668
  }
@@ -671,19 +671,19 @@ const We = "https://json-schema.org/draft/2020-12/schema", He = "https://farris-
671
671
  props: q,
672
672
  emits: [""],
673
673
  setup(e, t) {
674
- return () => R(H, null, null);
674
+ return () => k(H, null, null);
675
675
  }
676
676
  });
677
- h.register = (e, t, r, a) => {
678
- e["radio-button"] = h, t["radio-button"] = te;
677
+ M.register = (e, t, r, s) => {
678
+ e["radio-button"] = M, t["radio-button"] = te;
679
679
  };
680
- h.registerDesigner = (e, t, r) => {
680
+ M.registerDesigner = (e, t, r) => {
681
681
  e["radio-button"] = rt, t["radio-button"] = te;
682
682
  };
683
- const at = fe(h);
683
+ const pt = fe(M);
684
684
  export {
685
- h as RadioButton,
686
- at as default,
685
+ M as RadioButton,
686
+ pt as default,
687
687
  te as propsResolver,
688
688
  q as radioButtonProps
689
689
  };