@farris/ui-vue 1.2.7 → 1.2.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 (206) hide show
  1. package/components/accordion/index.esm.js +79 -79
  2. package/components/avatar/index.esm.js +393 -440
  3. package/components/border-editor/index.esm.js +4 -4
  4. package/components/button/index.esm.js +1 -1
  5. package/components/button-edit/index.esm.js +353 -444
  6. package/components/button-group/index.esm.js +5 -5
  7. package/components/calendar/index.esm.js +176 -176
  8. package/components/capsule/index.esm.js +93 -93
  9. package/components/checkbox/index.esm.js +496 -542
  10. package/components/color-picker/index.esm.js +1 -1
  11. package/components/combo-list/index.esm.js +437 -483
  12. package/components/combo-tree/index.esm.js +8 -8
  13. package/components/component/index.esm.js +89 -89
  14. package/components/condition/index.esm.js +839 -726
  15. package/components/content-container/index.esm.js +61 -61
  16. package/components/data-grid/index.esm.js +4702 -4972
  17. package/components/data-view/index.esm.js +2999 -2875
  18. package/components/date-picker/index.esm.js +2626 -2672
  19. package/components/dependent-base/style.js +1 -0
  20. package/components/dependent-fluid/style.js +1 -0
  21. package/components/dependent-icon/style.js +1 -0
  22. package/components/dependent-input/style.js +1 -0
  23. package/components/dependent-table/style.js +1 -0
  24. package/components/designer-canvas/index.esm.js +478 -475
  25. package/components/designer-outline/index.esm.js +173 -131
  26. package/components/discussion-editor/index.esm.js +1 -1
  27. package/components/dropdown/index.esm.js +73 -73
  28. package/components/dynamic-form/index.esm.js +934 -976
  29. package/components/dynamic-resolver/index.esm.js +67 -35
  30. package/components/dynamic-view/index.esm.js +258 -249
  31. package/components/enum-editor/index.esm.js +3 -3
  32. package/components/events-editor/index.esm.js +178 -178
  33. package/components/expression-editor/index.esm.js +105 -105
  34. package/components/external-container/index.esm.js +1892 -1775
  35. package/components/field-selector/index.css +1 -1
  36. package/components/field-selector/index.esm.js +5245 -5514
  37. package/components/filter-bar/index.css +1 -1
  38. package/components/filter-bar/index.esm.js +1483 -1556
  39. package/components/flow-canvas/index.esm.js +678 -675
  40. package/components/image-cropper/index.esm.js +266 -266
  41. package/components/input-group/index.esm.js +668 -714
  42. package/components/layout/index.esm.js +148 -148
  43. package/components/list-nav/index.esm.js +109 -109
  44. package/components/list-view/index.esm.js +1679 -1563
  45. package/components/lookup/index.css +1 -1
  46. package/components/lookup/index.esm.js +6596 -6865
  47. package/components/mapping-editor/index.esm.js +5592 -5862
  48. package/components/message-box/index.esm.js +1 -1
  49. package/components/modal/index.esm.js +1 -1
  50. package/components/nav/index.esm.js +86 -86
  51. package/components/number-range/index.esm.js +1120 -0
  52. package/components/number-range/package.json +8 -0
  53. package/components/number-range/style.js +6 -0
  54. package/components/number-spinner/index.esm.js +1146 -0
  55. package/components/number-spinner/package.json +8 -0
  56. package/components/number-spinner/style.js +4 -0
  57. package/components/order/index.esm.js +988 -1034
  58. package/components/page-footer/index.esm.js +106 -106
  59. package/components/page-header/index.esm.js +1088 -1296
  60. package/components/pagination/index.esm.js +252 -252
  61. package/components/progress/index.esm.js +37 -37
  62. package/components/property-editor/index.esm.js +1416 -1462
  63. package/components/property-panel/index.css +1 -1
  64. package/components/property-panel/index.esm.js +757 -830
  65. package/components/query-solution/index.css +1 -0
  66. package/components/query-solution/index.esm.js +6935 -0
  67. package/components/query-solution/package.json +8 -0
  68. package/components/query-solution/style.js +2 -0
  69. package/components/radio-button/index.esm.js +64 -64
  70. package/components/radio-group/index.esm.js +452 -498
  71. package/components/rate/index.esm.js +92 -92
  72. package/components/response-layout/index.esm.js +33 -33
  73. package/components/response-layout-editor/index.esm.js +117 -117
  74. package/components/response-toolbar/index.esm.js +1021 -1238
  75. package/components/schema-selector/index.esm.js +3215 -3308
  76. package/components/search-box/index.esm.js +143 -143
  77. package/components/section/index.esm.js +209 -209
  78. package/components/smoke-detector/index.esm.js +22 -22
  79. package/components/spacing-editor/index.esm.js +2 -2
  80. package/components/splitter/index.esm.js +1097 -394
  81. package/components/step/index.esm.js +153 -153
  82. package/components/switch/index.esm.js +442 -488
  83. package/components/tabs/index.esm.js +1835 -2004
  84. package/components/tags/index.esm.js +215 -215
  85. package/components/text/index.esm.js +53 -53
  86. package/components/textarea/index.esm.js +451 -482
  87. package/components/time-picker/index.esm.js +1345 -1392
  88. package/components/transfer/index.esm.js +135 -135
  89. package/components/tree-grid/index.css +1 -1
  90. package/components/tree-grid/index.esm.js +5761 -6020
  91. package/components/tree-view/index.esm.js +2380 -2253
  92. package/components/uploader/index.esm.js +1 -1
  93. package/components/verify-detail/index.esm.js +232 -232
  94. package/components/video/index.esm.js +136 -136
  95. package/components/weather/index.esm.js +2 -2
  96. package/farris.all.esm.js +31630 -31224
  97. package/farris.all.umd.cjs +9 -9
  98. package/index.css +1 -1
  99. package/package.json +1 -1
  100. package/types/checkbox/index.d.ts +1 -0
  101. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  102. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  103. package/types/data-view/composition/types.d.ts +1 -1
  104. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  105. package/types/designer-canvas/src/types.d.ts +1 -1
  106. package/types/dynamic-form/index.d.ts +1 -0
  107. package/types/dynamic-form/src/types.d.ts +1 -1
  108. package/types/dynamic-resolver/index.d.ts +1 -0
  109. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  110. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  111. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  112. package/types/modal/src/modal.props.d.ts +1 -4
  113. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  114. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  115. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  116. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  117. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  118. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  119. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  120. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  121. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
  122. package/components/accordion/index.umd.cjs +0 -1
  123. package/components/avatar/index.umd.cjs +0 -1
  124. package/components/border-editor/index.umd.cjs +0 -1
  125. package/components/button/index.umd.cjs +0 -1
  126. package/components/button-edit/index.umd.cjs +0 -1
  127. package/components/button-group/index.umd.cjs +0 -1
  128. package/components/calculator/index.umd.cjs +0 -1
  129. package/components/calendar/index.umd.cjs +0 -1
  130. package/components/capsule/index.umd.cjs +0 -1
  131. package/components/checkbox/index.umd.cjs +0 -1
  132. package/components/color-picker/index.umd.cjs +0 -3
  133. package/components/combo-list/index.umd.cjs +0 -1
  134. package/components/combo-tree/index.umd.cjs +0 -1
  135. package/components/common/index.umd.cjs +0 -1
  136. package/components/component/index.umd.cjs +0 -1
  137. package/components/condition/index.umd.cjs +0 -1
  138. package/components/content-container/index.umd.cjs +0 -1
  139. package/components/data-grid/index.umd.cjs +0 -1
  140. package/components/data-view/index.umd.cjs +0 -1
  141. package/components/date-picker/index.umd.cjs +0 -1
  142. package/components/designer-canvas/index.umd.cjs +0 -1
  143. package/components/designer-outline/index.umd.cjs +0 -1
  144. package/components/designer-toolbox/index.umd.cjs +0 -1
  145. package/components/discussion-editor/index.umd.cjs +0 -3
  146. package/components/discussion-list/index.umd.cjs +0 -1
  147. package/components/drawer/index.umd.cjs +0 -1
  148. package/components/dropdown/index.umd.cjs +0 -2
  149. package/components/dynamic-form/index.umd.cjs +0 -1
  150. package/components/dynamic-resolver/index.umd.cjs +0 -1
  151. package/components/dynamic-view/index.umd.cjs +0 -1
  152. package/components/enum-editor/index.umd.cjs +0 -1
  153. package/components/events-editor/index.umd.cjs +0 -1
  154. package/components/expression-editor/index.umd.cjs +0 -1
  155. package/components/external-container/index.umd.cjs +0 -1
  156. package/components/field-selector/index.umd.cjs +0 -1
  157. package/components/filter-bar/index.umd.cjs +0 -1
  158. package/components/flow-canvas/index.umd.cjs +0 -1
  159. package/components/image-cropper/index.umd.cjs +0 -1
  160. package/components/input-group/index.umd.cjs +0 -1
  161. package/components/layout/index.umd.cjs +0 -1
  162. package/components/list-nav/index.umd.cjs +0 -1
  163. package/components/list-view/index.umd.cjs +0 -1
  164. package/components/loading/index.umd.cjs +0 -8
  165. package/components/locale/index.umd.cjs +0 -1
  166. package/components/lookup/index.umd.cjs +0 -1
  167. package/components/mapping-editor/index.umd.cjs +0 -1
  168. package/components/message-box/index.umd.cjs +0 -1
  169. package/components/modal/index.umd.cjs +0 -1
  170. package/components/nav/index.umd.cjs +0 -3
  171. package/components/notify/index.umd.cjs +0 -1
  172. package/components/order/index.umd.cjs +0 -1
  173. package/components/page-footer/index.umd.cjs +0 -1
  174. package/components/page-header/index.umd.cjs +0 -1
  175. package/components/pagination/index.umd.cjs +0 -1
  176. package/components/popover/index.umd.cjs +0 -1
  177. package/components/progress/index.umd.cjs +0 -3
  178. package/components/property-editor/index.umd.cjs +0 -3
  179. package/components/property-panel/index.umd.cjs +0 -1
  180. package/components/radio-button/index.umd.cjs +0 -1
  181. package/components/radio-group/index.umd.cjs +0 -1
  182. package/components/rate/index.umd.cjs +0 -1
  183. package/components/response-layout/index.umd.cjs +0 -1
  184. package/components/response-layout-editor/index.umd.cjs +0 -1
  185. package/components/response-toolbar/index.umd.cjs +0 -1
  186. package/components/schema-selector/index.umd.cjs +0 -8
  187. package/components/search-box/index.umd.cjs +0 -1
  188. package/components/section/index.umd.cjs +0 -1
  189. package/components/smoke-detector/index.umd.cjs +0 -1
  190. package/components/spacing-editor/index.umd.cjs +0 -1
  191. package/components/splitter/index.umd.cjs +0 -1
  192. package/components/step/index.umd.cjs +0 -1
  193. package/components/switch/index.umd.cjs +0 -1
  194. package/components/tabs/index.umd.cjs +0 -1
  195. package/components/tags/index.umd.cjs +0 -1
  196. package/components/text/index.umd.cjs +0 -1
  197. package/components/textarea/index.umd.cjs +0 -1
  198. package/components/time-picker/index.umd.cjs +0 -1
  199. package/components/tooltip/index.umd.cjs +0 -1
  200. package/components/transfer/index.umd.cjs +0 -1
  201. package/components/tree-grid/index.umd.cjs +0 -1
  202. package/components/tree-view/index.umd.cjs +0 -1
  203. package/components/uploader/index.umd.cjs +0 -2
  204. package/components/verify-detail/index.umd.cjs +0 -1
  205. package/components/video/index.umd.cjs +0 -1
  206. package/components/weather/index.umd.cjs +0 -16
@@ -1,105 +1,105 @@
1
- import { defineComponent as j, ref as h, computed as D, watch as S, createVNode as v, Fragment as X, inject as U, onMounted as W, resolveComponent as x } from "vue";
2
- import J from "@farris/ui-vue/components/button-edit";
1
+ import { defineComponent as E, ref as h, computed as j, watch as B, createVNode as v, Fragment as X, inject as U, onMounted as W, resolveComponent as x } from "vue";
2
+ import J from "../button-edit/index.esm.js";
3
3
  import { cloneDeep as z } from "lodash-es";
4
- import G from "@farris/ui-vue/components/list-view";
5
- import Q from "@farris/ui-vue/components/loading";
4
+ import G from "../list-view/index.esm.js";
5
+ import Q from "../loading/index.esm.js";
6
6
  const T = {}, A = {};
7
7
  function M(t) {
8
- const { properties: e, title: c } = t, r = Object.keys(e).reduce((u, p) => (u[p] = e[p].type === "object" && e[p].properties ? M(e[p]) : z(e[p].default), u), {});
9
- return r.id = `${c}-${Date.now()}`, r;
8
+ const { properties: e, title: c } = t, o = Object.keys(e).reduce((l, p) => (l[p] = e[p].type === "object" && e[p].properties ? M(e[p]) : z(e[p].default), l), {});
9
+ return o.id = `${c}-${Date.now()}`, o;
10
10
  }
11
- function E(t, e = {}) {
11
+ function D(t, e = {}) {
12
12
  const c = T[t];
13
13
  if (c) {
14
- let r = M(c);
15
- const u = A[t];
16
- return r = u ? u({ getSchemaByType: E }, r, e) : r, r;
14
+ let o = M(c);
15
+ const l = A[t];
16
+ return o = l ? l({ getSchemaByType: D }, o, e) : o, o;
17
17
  }
18
18
  return null;
19
19
  }
20
20
  function Y(t, e) {
21
21
  const c = M(e);
22
- return Object.keys(t).reduce((r, u) => (r[u] = t[u], r), c), c;
22
+ return Object.keys(t).reduce((o, l) => (o[l] && typeof o[l] == "object" ? Object.assign(o[l], t[l]) : o[l] = t[l], o), c), c;
23
23
  }
24
24
  function Z(t, e) {
25
- return Object.keys(t).filter((r) => t[r] != null).reduce((r, u) => {
26
- if (e.has(u)) {
27
- const p = e.get(u);
25
+ return Object.keys(t).filter((o) => t[o] != null).reduce((o, l) => {
26
+ if (e.has(l)) {
27
+ const p = e.get(l);
28
28
  if (typeof p == "string")
29
- r[p] = t[u];
29
+ o[p] = t[l];
30
30
  else {
31
- const m = p(u, t[u], t);
32
- Object.assign(r, m);
31
+ const m = p(l, t[l], t);
32
+ Object.assign(o, m);
33
33
  }
34
34
  } else
35
- r[u] = t[u];
36
- return r;
35
+ o[l] = t[l];
36
+ return o;
37
37
  }, {});
38
38
  }
39
39
  function K(t, e, c = /* @__PURE__ */ new Map()) {
40
- const r = Y(t, e);
41
- return Z(r, c);
40
+ const o = Y(t, e);
41
+ return Z(o, c);
42
42
  }
43
43
  function I(t = {}) {
44
- function e(o, n, l, i) {
45
- if (typeof l == "number")
46
- return i[o].length === l;
47
- if (typeof l == "object") {
48
- const a = Object.keys(l)[0], s = l[a];
49
- if (a === "not")
50
- return Number(i[o].length) !== Number(s);
51
- if (a === "moreThan")
52
- return Number(i[o].length) >= Number(s);
53
- if (a === "lessThan")
54
- return Number(i[o].length) <= Number(s);
44
+ function e(a, n, u, i) {
45
+ if (typeof u == "number")
46
+ return i[a].length === u;
47
+ if (typeof u == "object") {
48
+ const r = Object.keys(u)[0], s = u[r];
49
+ if (r === "not")
50
+ return Number(i[a].length) !== Number(s);
51
+ if (r === "moreThan")
52
+ return Number(i[a].length) >= Number(s);
53
+ if (r === "lessThan")
54
+ return Number(i[a].length) <= Number(s);
55
55
  }
56
56
  return !1;
57
57
  }
58
- function c(o, n, l, i) {
59
- return i[o] && i[o].propertyValue && String(i[o].propertyValue.value) === String(l);
58
+ function c(a, n, u, i) {
59
+ return i[a] && i[a].propertyValue && String(i[a].propertyValue.value) === String(u);
60
60
  }
61
- const r = /* @__PURE__ */ new Map([
61
+ const o = /* @__PURE__ */ new Map([
62
62
  ["length", e],
63
63
  ["getProperty", c]
64
64
  ]);
65
- Object.keys(t).reduce((o, n) => (o.set(n, t[n]), o), r);
66
- function u(o, n) {
67
- const l = o;
68
- return typeof n == "number" ? [{ target: l, operator: "length", param: null, value: Number(n) }] : typeof n == "boolean" ? [{ target: l, operator: "getProperty", param: o, value: !!n }] : typeof n == "object" ? Object.keys(n).map((i) => {
65
+ Object.keys(t).reduce((a, n) => (a.set(n, t[n]), a), o);
66
+ function l(a, n) {
67
+ const u = a;
68
+ return typeof n == "number" ? [{ target: u, operator: "length", param: null, value: Number(n) }] : typeof n == "boolean" ? [{ target: u, operator: "getProperty", param: a, value: !!n }] : typeof n == "object" ? Object.keys(n).map((i) => {
69
69
  if (i === "length")
70
- return { target: l, operator: "length", param: null, value: n[i] };
71
- const a = i, s = n[i];
72
- return { target: l, operator: "getProperty", param: a, value: s };
70
+ return { target: u, operator: "length", param: null, value: n[i] };
71
+ const r = i, s = n[i];
72
+ return { target: u, operator: "getProperty", param: r, value: s };
73
73
  }) : [];
74
74
  }
75
- function p(o) {
76
- return Object.keys(o).reduce((l, i) => {
77
- const a = u(i, o[i]);
78
- return l.push(...a), l;
75
+ function p(a) {
76
+ return Object.keys(a).reduce((u, i) => {
77
+ const r = l(i, a[i]);
78
+ return u.push(...r), u;
79
79
  }, []);
80
80
  }
81
- function m(o, n) {
82
- if (r.has(o.operator)) {
83
- const l = r.get(o.operator);
84
- return l && l(o.target, o.param, o.value, n) || !1;
81
+ function m(a, n) {
82
+ if (o.has(a.operator)) {
83
+ const u = o.get(a.operator);
84
+ return u && u(a.target, a.param, a.value, n) || !1;
85
85
  }
86
86
  return !1;
87
87
  }
88
- function d(o, n) {
89
- return p(o).reduce((a, s) => a && m(s, n), !0);
88
+ function d(a, n) {
89
+ return p(a).reduce((r, s) => r && m(s, n), !0);
90
90
  }
91
- function y(o, n) {
92
- const l = Object.keys(o), i = l.includes("allOf"), a = l.includes("anyOf"), s = i || a, F = (s ? o[s ? i ? "allOf" : "anyOf" : "allOf"] : [o]).map((O) => d(O, n));
91
+ function g(a, n) {
92
+ const u = Object.keys(a), i = u.includes("allOf"), r = u.includes("anyOf"), s = i || r, F = (s ? a[s ? i ? "allOf" : "anyOf" : "allOf"] : [a]).map((w) => d(w, n));
93
93
  return i ? !F.includes(!1) : F.includes(!0);
94
94
  }
95
- return { parseValueSchema: y };
95
+ return { parseValueSchema: g };
96
96
  }
97
97
  const ee = {}, te = {};
98
98
  I();
99
- function ne(t, e, c = /* @__PURE__ */ new Map(), r = (m, d, y) => d, u = {}, p = (m) => m) {
100
- return T[e.title] = e, A[e.title] = r, ee[e.title] = u, te[e.title] = p, (m = {}) => {
101
- const d = K(m, e, c), y = Object.keys(t).reduce((o, n) => (o[n] = t[n].default, o), {});
102
- return Object.assign(y, d);
99
+ function ne(t, e, c = /* @__PURE__ */ new Map(), o = (m, d, g) => d, l = {}, p = (m) => m) {
100
+ return T[e.title] = e, A[e.title] = o, ee[e.title] = l, te[e.title] = p, (m = {}) => {
101
+ const d = K(m, e, c), g = Object.keys(t).reduce((a, n) => (a[n] = t[n].default, a), {});
102
+ return Object.assign(g, d);
103
103
  };
104
104
  }
105
105
  function oe(t, e) {
@@ -184,7 +184,7 @@ const ae = /* @__PURE__ */ new Map([
184
184
  function de(t, e, c) {
185
185
  return e;
186
186
  }
187
- const he = "search-box", me = "A Farris Component", ye = "object", ge = {
187
+ const he = "search-box", me = "A Farris Component", ge = "object", ye = {
188
188
  basic: {
189
189
  description: "Basic Infomation",
190
190
  title: "基本信息",
@@ -209,8 +209,8 @@ const he = "search-box", me = "A Farris Component", ye = "object", ge = {
209
209
  }, be = {
210
210
  title: he,
211
211
  description: me,
212
- type: ye,
213
- categories: ge
212
+ type: ge,
213
+ categories: ye
214
214
  }, P = {
215
215
  /**
216
216
  * 自定义图标
@@ -281,54 +281,54 @@ const he = "search-box", me = "A Farris Component", ye = "object", ge = {
281
281
  */
282
282
  maxHeight: { default: 350, type: Number },
283
283
  loading: { default: !1, type: Boolean }
284
- }, L = /* @__PURE__ */ j({
284
+ }, L = /* @__PURE__ */ E({
285
285
  name: "FSearchBoxContainer",
286
286
  props: ve,
287
287
  emits: ["confirmResult", "searchedValue"],
288
288
  setup(t, e) {
289
- const c = h(t.data), r = h(), {
290
- slots: u
291
- } = e, p = D(() => ({
289
+ const c = h(t.data), o = h(), {
290
+ slots: l
291
+ } = e, p = j(() => ({
292
292
  "search-box-container": !0,
293
293
  "f-utils-overflow-xhya": !0,
294
294
  "position-relative": !0
295
295
  }));
296
296
  function m(n) {
297
- var l;
298
- (l = r.value) == null || l.search(n);
297
+ var u;
298
+ (u = o.value) == null || u.search(n);
299
299
  }
300
300
  function d(n) {
301
301
  n.length && (e.emit("confirmResult", n[0].name), e.emit("searchedValue", n));
302
302
  }
303
- function y(n) {
304
- return u.default ? v(X, null, [u.default(n)]) : v("span", null, [n.item[t.textField]]);
303
+ function g(n) {
304
+ return l.default ? v(X, null, [l.default(n)]) : v("span", null, [n.item[t.textField]]);
305
305
  }
306
- const o = D(() => {
306
+ const a = j(() => {
307
307
  const n = {};
308
308
  return n.padding = "8px", t.maxHeight !== void 0 && t.maxHeight > 0 && (n.maxHeight = `${t.maxHeight}px`), n;
309
309
  });
310
- return S(() => t.loading, (n) => {
310
+ return B(() => t.loading, (n) => {
311
311
  console.log("loading状态改变" + n);
312
- }), S(() => t.data, (n) => {
313
- n !== c.value && (c.value = n), r.value.updateDataSource(n);
312
+ }), B(() => t.data, (n) => {
313
+ n !== c.value && (c.value = n), o.value.updateDataSource(n);
314
314
  }), e.expose({
315
315
  search: m
316
316
  }), () => {
317
317
  const n = {
318
- content: y
318
+ content: g
319
319
  };
320
320
  return v("div", {
321
321
  class: p.value,
322
- style: o.value
322
+ style: a.value
323
323
  }, [v(Q, {
324
324
  ref: "loadingInstance",
325
325
  isActive: t.loading
326
326
  }, null), v(G, {
327
- ref: r,
327
+ ref: o,
328
328
  itemClass: "dropdown-item",
329
329
  data: c.value,
330
330
  view: "ContentView",
331
- onClickItem: (l) => d(l.data),
331
+ onClickItem: (u) => d(u.data),
332
332
  idField: t.idField,
333
333
  textField: t.textField,
334
334
  titleField: t.textField,
@@ -336,32 +336,32 @@ const he = "search-box", me = "A Farris Component", ye = "object", ge = {
336
336
  }, n)]);
337
337
  };
338
338
  }
339
- }), V = /* @__PURE__ */ j({
339
+ }), V = /* @__PURE__ */ E({
340
340
  name: "FSearchBox",
341
341
  props: P,
342
342
  emits: ["update:modelValue", "change", "selectedValue", "clickButton"],
343
343
  setup(t, e) {
344
344
  h(t.data);
345
- const c = h(), r = h(), u = h(t.placeholder), p = '<i class="f-icon f-icon-clockwise f-icon-spin"></i>', m = D(() => t.loading ? p : t.buttonContent);
345
+ const c = h(), o = h(), l = h(t.placeholder), p = '<i class="f-icon f-icon-clockwise f-icon-spin"></i>', m = j(() => t.loading ? p : t.buttonContent);
346
346
  h(t.editable);
347
347
  const d = h(t.modelValue);
348
- S(d, (a) => {
348
+ B(d, (r) => {
349
349
  var s;
350
- (s = r.value) == null || s.search(a), e.emit("update:modelValue", a);
351
- }), S(() => t.modelValue, (a) => {
352
- d.value = a;
350
+ (s = o.value) == null || s.search(r), e.emit("update:modelValue", r);
351
+ }), B(() => t.modelValue, (r) => {
352
+ d.value = r;
353
353
  });
354
- function y(a) {
355
- c.value.commitValue(a);
354
+ function g(r) {
355
+ c.value.commitValue(r);
356
356
  }
357
- function o(a) {
358
- e.emit("change", a);
357
+ function a(r) {
358
+ e.emit("change", r);
359
359
  }
360
- function n(a) {
361
- e.emit("selectedValue", a);
360
+ function n(r) {
361
+ e.emit("selectedValue", r);
362
362
  }
363
- function l(a) {
364
- e.emit("clickButton", a);
363
+ function u(r) {
364
+ e.emit("clickButton", r);
365
365
  }
366
366
  function i() {
367
367
  c.value.togglePopup();
@@ -369,16 +369,16 @@ const he = "search-box", me = "A Farris Component", ye = "object", ge = {
369
369
  return e.expose({
370
370
  togglePopup: i
371
371
  }), () => {
372
- const a = {
372
+ const r = {
373
373
  default: e.slots.default
374
374
  };
375
375
  return v(J, {
376
376
  ref: c,
377
377
  "button-content": m.value,
378
378
  "custom-class": t.customClass,
379
- placeholder: u.value,
380
- onChange: (s) => o(s),
381
- onClickButton: (s) => l(s),
379
+ placeholder: l.value,
380
+ onChange: (s) => a(s),
381
+ onClickButton: (s) => u(s),
382
382
  disable: t.disable,
383
383
  "enable-clear": !0,
384
384
  "button-behavior": "Execute",
@@ -391,13 +391,13 @@ const he = "search-box", me = "A Farris Component", ye = "object", ge = {
391
391
  "popup-on-focus": t.showDropdown
392
392
  }, {
393
393
  default: () => [t.showDropdown && v(L, {
394
- ref: r,
394
+ ref: o,
395
395
  data: t.data,
396
- onConfirmResult: y,
396
+ onConfirmResult: g,
397
397
  onSearchedValue: (s) => n(s),
398
398
  loading: t.loading,
399
399
  maxHeight: t.maxHeight
400
- }, a)],
400
+ }, r)],
401
401
  ...e.slots
402
402
  });
403
403
  };
@@ -405,117 +405,117 @@ const he = "search-box", me = "A Farris Component", ye = "object", ge = {
405
405
  });
406
406
  function Ve(t, e, c) {
407
407
  var k;
408
- function r() {
408
+ function o() {
409
409
  }
410
- const u = "", p = "", m = h();
410
+ const l = "", p = "", m = h();
411
411
  function d() {
412
412
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
413
413
  }
414
- function y() {
414
+ function g() {
415
415
  return !1;
416
416
  }
417
- function o() {
417
+ function a() {
418
418
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
419
419
  }
420
420
  function n() {
421
421
  return (e == null ? void 0 : e.schema.componentType) === "frame";
422
422
  }
423
- function l(f) {
423
+ function u(f) {
424
424
  if (!f || !f.value)
425
425
  return null;
426
426
  if (f.value.schema && f.value.schema.type === "component")
427
427
  return f.value;
428
- const b = h(f == null ? void 0 : f.value.parent), g = l(b);
429
- return g || null;
428
+ const b = h(f == null ? void 0 : f.value.parent), y = u(b);
429
+ return y || null;
430
430
  }
431
431
  function i(f = e) {
432
- const { componentInstance: b, designerItemElementRef: g } = f;
433
- return !b || !b.value ? null : b.value.canMove ? g : i(f.parent);
432
+ const { componentInstance: b, designerItemElementRef: y } = f;
433
+ return !b || !b.value ? null : b.value.canMove ? y : i(f.parent);
434
434
  }
435
- function a(f) {
435
+ function r(f) {
436
436
  return !!c;
437
437
  }
438
438
  function s() {
439
439
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
440
440
  }
441
- function w() {
441
+ function O() {
442
442
  }
443
443
  function C(f, b) {
444
444
  }
445
445
  function F(f) {
446
446
  const { componentType: b } = f;
447
- let g = E(b, f);
447
+ let y = D(b, f);
448
448
  const R = b.toLowerCase().replace("-", "_");
449
- return g && !g.id && g.type === b && (g.id = `${R}_${Math.random().toString().slice(2, 6)}`), g;
449
+ return y && !y.id && y.type === b && (y.id = `${R}_${Math.random().toString().slice(2, 6)}`), y;
450
450
  }
451
451
  function N(f, b) {
452
- const g = String(f.getAttribute("data-controltype")), R = f.getAttribute("data-feature"), $ = R ? JSON.parse(R) : {};
452
+ const y = String(f.getAttribute("data-controltype")), R = f.getAttribute("data-feature"), $ = R ? JSON.parse(R) : {};
453
453
  $.parentComponentInstance = m.value;
454
- let B = E(g, $);
455
- const _ = g.toLowerCase().replace("-", "_");
456
- return B && !B.id && B.type === g && (B.id = `${_}_${Math.random().toString().slice(2, 6)}`), B;
454
+ let S = D(y, $);
455
+ const _ = y.toLowerCase().replace("-", "_");
456
+ return S && !S.id && S.type === y && (S.id = `${_}_${Math.random().toString().slice(2, 6)}`), S;
457
457
  }
458
- function O(f) {
458
+ function w(f) {
459
459
  }
460
460
  function q(...f) {
461
461
  }
462
462
  return m.value = {
463
463
  canMove: d(),
464
- canSelectParent: y(),
465
- canDelete: o(),
464
+ canSelectParent: g(),
465
+ canDelete: a(),
466
466
  canNested: !n(),
467
467
  contents: e == null ? void 0 : e.schema.contents,
468
468
  elementRef: t,
469
469
  parent: (k = e == null ? void 0 : e.parent) == null ? void 0 : k.componentInstance,
470
470
  schema: e == null ? void 0 : e.schema,
471
- styles: u,
471
+ styles: l,
472
472
  designerClass: p,
473
- canAccepts: a,
474
- getBelongedComponentInstance: l,
473
+ canAccepts: r,
474
+ getBelongedComponentInstance: u,
475
475
  getDraggableDesignItemElement: i,
476
476
  getDraggingDisplayText: s,
477
477
  getPropConfig: q,
478
- getDragScopeElement: w,
478
+ getDragScopeElement: O,
479
479
  onAcceptMovedChildElement: C,
480
480
  onAcceptNewChildElement: N,
481
- onChildElementMovedOut: O,
481
+ onChildElementMovedOut: w,
482
482
  addNewChildComponentSchema: F,
483
- updateDragAndDropRules: r,
483
+ updateDragAndDropRules: o,
484
484
  triggerBelongedComponentToMoveWhenMoved: h(!1),
485
485
  triggerBelongedComponentToDeleteWhenDeleted: h(!1)
486
486
  }, m;
487
487
  }
488
- const Se = /* @__PURE__ */ j({
488
+ const Be = /* @__PURE__ */ E({
489
489
  name: "FSearchBoxDesign",
490
490
  props: P,
491
491
  emits: ["update:modelValue", "change"],
492
492
  setup(t, e) {
493
- const c = h(t.data), r = h(), u = h(), p = h("请输入关键词"), m = h('<i class="f-icon f-icon-search"></i>'), d = h(t.modelValue), y = h(), o = U("design-item-context"), n = Ve(y, o);
493
+ const c = h(t.data), o = h(), l = h(), p = h("请输入关键词"), m = h('<i class="f-icon f-icon-search"></i>'), d = h(t.modelValue), g = h(), a = U("design-item-context"), n = Ve(g, a);
494
494
  W(() => {
495
- y.value.componentInstance = n;
496
- }), e.expose(n.value), S(d, (a) => {
495
+ g.value.componentInstance = n;
496
+ }), e.expose(n.value), B(d, (r) => {
497
497
  var s;
498
- (s = u.value) == null || s.search(a), e.emit("update:modelValue", a);
499
- }), S(() => t.modelValue, (a) => {
500
- d.value = a;
498
+ (s = l.value) == null || s.search(r), e.emit("update:modelValue", r);
499
+ }), B(() => t.modelValue, (r) => {
500
+ d.value = r;
501
501
  });
502
- function l(a) {
503
- r.value.commitValue(a);
502
+ function u(r) {
503
+ o.value.commitValue(r);
504
504
  }
505
- function i(a) {
506
- e.emit("change", a);
505
+ function i(r) {
506
+ e.emit("change", r);
507
507
  }
508
508
  return () => v("div", {
509
- ref: y
509
+ ref: g
510
510
  }, [v(x("f-button-edit"), {
511
- ref: r,
511
+ ref: o,
512
512
  "button-content": m.value,
513
513
  placeholder: p.value,
514
514
  onChange: i,
515
515
  "enable-clear": !0,
516
516
  "button-behavior": "Execute",
517
517
  modelValue: d.value,
518
- "onUpdate:modelValue": (a) => d.value = a,
518
+ "onUpdate:modelValue": (r) => d.value = r,
519
519
  "popup-host": t.popupHost,
520
520
  "popup-right-boundary": t.popupRightBoundary,
521
521
  "popup-offset-x": t.popupOffsetX,
@@ -523,9 +523,9 @@ const Se = /* @__PURE__ */ j({
523
523
  "popup-on-focus": !0
524
524
  }, {
525
525
  default: () => [v(L, {
526
- ref: u,
526
+ ref: l,
527
527
  data: c.value,
528
- onConfirmResult: l
528
+ onConfirmResult: u
529
529
  }, null)]
530
530
  })]);
531
531
  }
@@ -533,11 +533,11 @@ const Se = /* @__PURE__ */ j({
533
533
  V.install = (t) => {
534
534
  t.component(V.name, V);
535
535
  };
536
- V.register = (t, e, c, r) => {
536
+ V.register = (t, e, c, o) => {
537
537
  t["search-box"] = V, e["search-box"] = H;
538
538
  };
539
539
  V.registerDesigner = (t, e, c) => {
540
- t["search-box"] = Se, e["search-box"] = H;
540
+ t["search-box"] = Be, e["search-box"] = H;
541
541
  };
542
542
  export {
543
543
  V as FSearchBox,