@farris/ui-vue 1.2.6 → 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 (210) hide show
  1. package/components/accordion/index.esm.js +150 -142
  2. package/components/avatar/index.esm.js +393 -457
  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 +491 -554
  10. package/components/color-picker/index.esm.js +1 -1
  11. package/components/combo-list/index.esm.js +479 -513
  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 +857 -743
  15. package/components/content-container/index.esm.js +61 -61
  16. package/components/data-grid/index.esm.js +4883 -5182
  17. package/components/data-view/index.esm.js +3072 -2949
  18. package/components/date-picker/index.esm.js +2626 -2689
  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 +940 -998
  29. package/components/dynamic-resolver/index.esm.js +67 -35
  30. package/components/dynamic-view/index.esm.js +307 -293
  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 +1747 -1627
  35. package/components/field-selector/index.css +1 -1
  36. package/components/field-selector/index.esm.js +5877 -6176
  37. package/components/filter-bar/index.css +1 -1
  38. package/components/filter-bar/index.esm.js +1454 -1524
  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 +659 -722
  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 +1643 -1524
  45. package/components/lookup/index.css +1 -1
  46. package/components/lookup/index.esm.js +6502 -6770
  47. package/components/mapping-editor/index.esm.js +5639 -5939
  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 +1098 -1130
  58. package/components/page-footer/index.esm.js +106 -106
  59. package/components/page-header/index.esm.js +1088 -1317
  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 +1479 -1513
  63. package/components/property-panel/index.css +1 -1
  64. package/components/property-panel/index.esm.js +706 -778
  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 +453 -516
  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 +555 -526
  74. package/components/response-toolbar/index.esm.js +1009 -1247
  75. package/components/schema-selector/index.esm.js +3261 -3373
  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 +441 -504
  83. package/components/tabs/index.esm.js +1849 -2039
  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 +445 -493
  87. package/components/time-picker/index.esm.js +1350 -1414
  88. package/components/transfer/index.esm.js +146 -144
  89. package/components/tree-grid/index.css +1 -1
  90. package/components/tree-grid/index.esm.js +5948 -6237
  91. package/components/tree-view/index.esm.js +2381 -2255
  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 +27221 -26804
  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/combo-list/src/components/list-container.component.d.ts +6 -0
  102. package/types/combo-list/src/components/list-container.props.d.ts +9 -1
  103. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  104. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  105. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  106. package/types/data-view/composition/types.d.ts +1 -1
  107. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  108. package/types/designer-canvas/src/types.d.ts +1 -1
  109. package/types/dynamic-form/index.d.ts +1 -0
  110. package/types/dynamic-form/src/types.d.ts +1 -1
  111. package/types/dynamic-resolver/index.d.ts +1 -0
  112. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  113. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  114. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
  115. package/types/lookup/src/property-config/lookup.property-config.d.ts +4 -3
  116. package/types/modal/src/modal.props.d.ts +1 -4
  117. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -28
  118. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -5
  119. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  120. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  121. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  122. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  123. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  124. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  125. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
  126. package/components/accordion/index.umd.cjs +0 -1
  127. package/components/avatar/index.umd.cjs +0 -1
  128. package/components/border-editor/index.umd.cjs +0 -1
  129. package/components/button/index.umd.cjs +0 -1
  130. package/components/button-edit/index.umd.cjs +0 -1
  131. package/components/button-group/index.umd.cjs +0 -1
  132. package/components/calculator/index.umd.cjs +0 -1
  133. package/components/calendar/index.umd.cjs +0 -1
  134. package/components/capsule/index.umd.cjs +0 -1
  135. package/components/checkbox/index.umd.cjs +0 -1
  136. package/components/color-picker/index.umd.cjs +0 -3
  137. package/components/combo-list/index.umd.cjs +0 -1
  138. package/components/combo-tree/index.umd.cjs +0 -1
  139. package/components/common/index.umd.cjs +0 -1
  140. package/components/component/index.umd.cjs +0 -1
  141. package/components/condition/index.umd.cjs +0 -1
  142. package/components/content-container/index.umd.cjs +0 -1
  143. package/components/data-grid/index.umd.cjs +0 -1
  144. package/components/data-view/index.umd.cjs +0 -1
  145. package/components/date-picker/index.umd.cjs +0 -1
  146. package/components/designer-canvas/index.umd.cjs +0 -1
  147. package/components/designer-outline/index.umd.cjs +0 -1
  148. package/components/designer-toolbox/index.umd.cjs +0 -1
  149. package/components/discussion-editor/index.umd.cjs +0 -3
  150. package/components/discussion-list/index.umd.cjs +0 -1
  151. package/components/drawer/index.umd.cjs +0 -1
  152. package/components/dropdown/index.umd.cjs +0 -2
  153. package/components/dynamic-form/index.umd.cjs +0 -1
  154. package/components/dynamic-resolver/index.umd.cjs +0 -1
  155. package/components/dynamic-view/index.umd.cjs +0 -1
  156. package/components/enum-editor/index.umd.cjs +0 -1
  157. package/components/events-editor/index.umd.cjs +0 -1
  158. package/components/expression-editor/index.umd.cjs +0 -1
  159. package/components/external-container/index.umd.cjs +0 -1
  160. package/components/field-selector/index.umd.cjs +0 -1
  161. package/components/filter-bar/index.umd.cjs +0 -1
  162. package/components/flow-canvas/index.umd.cjs +0 -1
  163. package/components/image-cropper/index.umd.cjs +0 -1
  164. package/components/input-group/index.umd.cjs +0 -1
  165. package/components/layout/index.umd.cjs +0 -1
  166. package/components/list-nav/index.umd.cjs +0 -1
  167. package/components/list-view/index.umd.cjs +0 -1
  168. package/components/loading/index.umd.cjs +0 -8
  169. package/components/locale/index.umd.cjs +0 -1
  170. package/components/lookup/index.umd.cjs +0 -1
  171. package/components/mapping-editor/index.umd.cjs +0 -1
  172. package/components/message-box/index.umd.cjs +0 -1
  173. package/components/modal/index.umd.cjs +0 -1
  174. package/components/nav/index.umd.cjs +0 -3
  175. package/components/notify/index.umd.cjs +0 -1
  176. package/components/order/index.umd.cjs +0 -1
  177. package/components/page-footer/index.umd.cjs +0 -1
  178. package/components/page-header/index.umd.cjs +0 -1
  179. package/components/pagination/index.umd.cjs +0 -1
  180. package/components/popover/index.umd.cjs +0 -1
  181. package/components/progress/index.umd.cjs +0 -3
  182. package/components/property-editor/index.umd.cjs +0 -3
  183. package/components/property-panel/index.umd.cjs +0 -1
  184. package/components/radio-button/index.umd.cjs +0 -1
  185. package/components/radio-group/index.umd.cjs +0 -1
  186. package/components/rate/index.umd.cjs +0 -1
  187. package/components/response-layout/index.umd.cjs +0 -1
  188. package/components/response-layout-editor/index.umd.cjs +0 -1
  189. package/components/response-toolbar/index.umd.cjs +0 -1
  190. package/components/schema-selector/index.umd.cjs +0 -8
  191. package/components/search-box/index.umd.cjs +0 -1
  192. package/components/section/index.umd.cjs +0 -1
  193. package/components/smoke-detector/index.umd.cjs +0 -1
  194. package/components/spacing-editor/index.umd.cjs +0 -1
  195. package/components/splitter/index.umd.cjs +0 -1
  196. package/components/step/index.umd.cjs +0 -1
  197. package/components/switch/index.umd.cjs +0 -1
  198. package/components/tabs/index.umd.cjs +0 -1
  199. package/components/tags/index.umd.cjs +0 -1
  200. package/components/text/index.umd.cjs +0 -1
  201. package/components/textarea/index.umd.cjs +0 -1
  202. package/components/time-picker/index.umd.cjs +0 -1
  203. package/components/tooltip/index.umd.cjs +0 -1
  204. package/components/transfer/index.umd.cjs +0 -1
  205. package/components/tree-grid/index.umd.cjs +0 -1
  206. package/components/tree-view/index.umd.cjs +0 -1
  207. package/components/uploader/index.umd.cjs +0 -2
  208. package/components/verify-detail/index.umd.cjs +0 -1
  209. package/components/video/index.umd.cjs +0 -1
  210. package/components/weather/index.umd.cjs +0 -16
@@ -1,100 +1,99 @@
1
- var j = Object.defineProperty;
2
- var H = (e, t, n) => t in e ? j(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var C = (e, t, n) => H(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as I, ref as f, watch as x, computed as B, createVNode as M, inject as D, onMounted as z } from "vue";
5
- import { cloneDeep as $ } from "lodash-es";
6
- import G from "@farris/ui-vue/components/list-view";
7
- import L from "@farris/ui-vue/components/button-edit";
8
- import { useDesignerComponent as W } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-component";
9
- const Q = {}, q = {};
10
- function O(e) {
11
- const { properties: t, title: n } = e, o = Object.keys(t).reduce((r, d) => (r[d] = t[d].type === "object" && t[d].properties ? O(t[d]) : $(t[d].default), r), {});
12
- return o.id = `${n}-${Date.now()}`, o;
13
- }
14
- function X(e, t) {
15
- const n = O(t);
16
- return Object.keys(e).reduce((o, r) => (o[r] = e[r], o), n), n;
1
+ var H = Object.defineProperty;
2
+ var q = (e, t, n) => t in e ? H(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var v = (e, t, n) => q(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { defineComponent as O, ref as g, watch as w, computed as B, createVNode as M, inject as E, onMounted as G } from "vue";
5
+ import { cloneDeep as W } from "lodash-es";
6
+ import z from "../list-view/index.esm.js";
7
+ import A from "../button-edit/index.esm.js";
8
+ import { getSchemaByType as j } from "../dynamic-resolver/index.esm.js";
9
+ import { useDesignerComponent as J } from "../designer-canvas/index.esm.js";
10
+ const Q = {}, X = {};
11
+ function L(e) {
12
+ const { properties: t, title: n } = e, i = Object.keys(t).reduce((l, u) => (l[u] = t[u].type === "object" && t[u].properties ? L(t[u]) : W(t[u].default), l), {});
13
+ return i.id = `${n}-${Date.now()}`, i;
17
14
  }
18
15
  function Y(e, t) {
19
- return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
20
- if (t.has(r)) {
21
- const d = t.get(r);
22
- if (typeof d == "string")
23
- o[d] = e[r];
16
+ const n = L(t);
17
+ return Object.keys(e).reduce((i, l) => (i[l] && typeof i[l] == "object" ? Object.assign(i[l], e[l]) : i[l] = e[l], i), n), n;
18
+ }
19
+ function Z(e, t) {
20
+ return Object.keys(e).filter((i) => e[i] != null).reduce((i, l) => {
21
+ if (t.has(l)) {
22
+ const u = t.get(l);
23
+ if (typeof u == "string")
24
+ i[u] = e[l];
24
25
  else {
25
- const p = d(r, e[r], e);
26
- Object.assign(o, p);
26
+ const y = u(l, e[l], e);
27
+ Object.assign(i, y);
27
28
  }
28
29
  } else
29
- o[r] = e[r];
30
- return o;
30
+ i[l] = e[l];
31
+ return i;
31
32
  }, {});
32
33
  }
33
- function Z(e, t, n = /* @__PURE__ */ new Map()) {
34
- const o = X(e, t);
35
- return Y(o, n);
34
+ function _(e, t, n = /* @__PURE__ */ new Map()) {
35
+ const i = Y(e, t);
36
+ return Z(i, n);
36
37
  }
37
- function _(e = {}) {
38
- function t(c, s, i, a) {
39
- if (typeof i == "number")
40
- return a[c].length === i;
41
- if (typeof i == "object") {
42
- const u = Object.keys(i)[0], y = i[u];
43
- if (u === "not")
44
- return Number(a[c].length) !== Number(y);
45
- if (u === "moreThan")
46
- return Number(a[c].length) >= Number(y);
47
- if (u === "lessThan")
48
- return Number(a[c].length) <= Number(y);
38
+ function K(e = {}) {
39
+ function t(s, d, o, a) {
40
+ if (typeof o == "number")
41
+ return a[s].length === o;
42
+ if (typeof o == "object") {
43
+ const r = Object.keys(o)[0], f = o[r];
44
+ if (r === "not")
45
+ return Number(a[s].length) !== Number(f);
46
+ if (r === "moreThan")
47
+ return Number(a[s].length) >= Number(f);
48
+ if (r === "lessThan")
49
+ return Number(a[s].length) <= Number(f);
49
50
  }
50
51
  return !1;
51
52
  }
52
- function n(c, s, i, a) {
53
- return a[c] && a[c].propertyValue && String(a[c].propertyValue.value) === String(i);
53
+ function n(s, d, o, a) {
54
+ return a[s] && a[s].propertyValue && String(a[s].propertyValue.value) === String(o);
54
55
  }
55
- const o = /* @__PURE__ */ new Map([
56
+ const i = /* @__PURE__ */ new Map([
56
57
  ["length", t],
57
58
  ["getProperty", n]
58
59
  ]);
59
- Object.keys(e).reduce((c, s) => (c.set(s, e[s]), c), o);
60
- function r(c, s) {
61
- const i = c;
62
- return typeof s == "number" ? [{ target: i, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: i, operator: "getProperty", param: c, value: !!s }] : typeof s == "object" ? Object.keys(s).map((a) => {
60
+ Object.keys(e).reduce((s, d) => (s.set(d, e[d]), s), i);
61
+ function l(s, d) {
62
+ const o = s;
63
+ return typeof d == "number" ? [{ target: o, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: o, operator: "getProperty", param: s, value: !!d }] : typeof d == "object" ? Object.keys(d).map((a) => {
63
64
  if (a === "length")
64
- return { target: i, operator: "length", param: null, value: s[a] };
65
- const u = a, y = s[a];
66
- return { target: i, operator: "getProperty", param: u, value: y };
65
+ return { target: o, operator: "length", param: null, value: d[a] };
66
+ const r = a, f = d[a];
67
+ return { target: o, operator: "getProperty", param: r, value: f };
67
68
  }) : [];
68
69
  }
69
- function d(c) {
70
- return Object.keys(c).reduce((i, a) => {
71
- const u = r(a, c[a]);
72
- return i.push(...u), i;
70
+ function u(s) {
71
+ return Object.keys(s).reduce((o, a) => {
72
+ const r = l(a, s[a]);
73
+ return o.push(...r), o;
73
74
  }, []);
74
75
  }
75
- function p(c, s) {
76
- if (o.has(c.operator)) {
77
- const i = o.get(c.operator);
78
- return i && i(c.target, c.param, c.value, s) || !1;
76
+ function y(s, d) {
77
+ if (i.has(s.operator)) {
78
+ const o = i.get(s.operator);
79
+ return o && o(s.target, s.param, s.value, d) || !1;
79
80
  }
80
81
  return !1;
81
82
  }
82
- function m(c, s) {
83
- return d(c).reduce((u, y) => u && p(y, s), !0);
83
+ function p(s, d) {
84
+ return u(s).reduce((r, f) => r && y(f, d), !0);
84
85
  }
85
- function g(c, s) {
86
- const i = Object.keys(c), a = i.includes("allOf"), u = i.includes("anyOf"), y = a || u, h = (y ? c[y ? a ? "allOf" : "anyOf" : "allOf"] : [c]).map((T) => m(T, s));
86
+ function m(s, d) {
87
+ const o = Object.keys(s), a = o.includes("allOf"), r = o.includes("anyOf"), f = a || r, h = (f ? s[f ? a ? "allOf" : "anyOf" : "allOf"] : [s]).map((F) => p(F, d));
87
88
  return a ? !h.includes(!1) : h.includes(!0);
88
89
  }
89
- return { parseValueSchema: g };
90
+ return { parseValueSchema: m };
90
91
  }
91
- const l = {
92
- Button: { type: "Button", name: "按钮", icon: "Button" },
93
- ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
92
+ const c = {
93
+ button: { type: "button", name: "按钮", icon: "Button" },
94
94
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
95
- "response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
95
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
96
96
  "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
97
- DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
98
97
  "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
99
98
  textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
100
99
  lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
@@ -105,114 +104,43 @@ const l = {
105
104
  "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
106
105
  "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
107
106
  "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
108
- /** 暂时没用 */
109
- FlexLayout: { type: "FlexLayout", name: "弹性布局" },
110
- /** 暂时没用 */
111
- FlowLayout: { type: "FlowLayout", name: "流布局" },
112
- ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
113
- ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
107
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
108
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
109
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
114
110
  "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
115
- TreeGridField: { type: "TreeGridField", name: "树表格列" },
116
- FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
117
- Form: { type: "Form", name: "卡片面板", icon: "Form" },
118
- QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
111
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
119
112
  "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
120
113
  "data-grid-column": { type: "data-grid-column", name: "表格列" },
121
- Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
122
- Module: { type: "Module", name: "模块", icon: "Module" },
114
+ module: { type: "Module", name: "模块", icon: "Module" },
123
115
  component: { type: "component", name: "组件", icon: "Component" },
124
- ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
125
- Image: { type: "Image", name: "图像", icon: "Image" },
126
- ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
127
- HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
128
- ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
129
- RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
130
116
  tabs: { type: "tabs", name: "标签页", icon: "Tab" },
131
117
  "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
132
118
  "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
133
- Tag: { type: "Tag", name: "Tag", icon: "Tag" },
134
- Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
135
- HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
136
- ListView: { type: "ListView", name: "列表", icon: "ListView" },
137
- RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
138
- TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
139
- TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
119
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
140
120
  section: { type: "section", name: "分组面板", icon: "Section" },
141
- SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
142
- SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
143
- QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
144
- FormHeader: { type: "FormHeader", name: "翻页" },
145
- Splitter: { type: "Splitter", name: "分栏面板", icon: "Splitter" },
146
- SplitterPane: { type: "SplitterPane", name: "分栏面板项", dependentParentControl: "Splitter" },
147
- WizardDetail: { type: "WizardDetail", name: "向导详情页" },
148
- WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
149
- Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
150
- MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
151
- Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
152
- avatar: { type: "avatar", name: "头像", icon: "Avatar" },
153
- ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
154
- ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
155
- NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
156
- Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
157
- LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
158
- ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
159
- FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
160
- FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
161
- ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
162
- MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
163
- MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
164
- Footer: { type: "Footer", name: "页脚" },
165
- DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
166
- DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
167
- NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
168
- Tags: { type: "Tags", name: "标记组", icon: "Tags" },
169
- Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
121
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
122
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
123
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
124
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
125
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
126
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
170
127
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
171
- ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
172
- ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
173
- PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
174
- Table: { type: "Table", name: "表格", icon: "DataGrid" },
175
- LoopContainer: { type: "LoopContainer", name: "循环容器", icon: "ContentContainer" },
176
- FileUploadPreview: { type: "FileUploadPreview", name: "附件上传预览", icon: "FileUpload" },
177
- DynamicArea: { type: "DynamicArea", name: "动态区域", icon: "ContentContainer" },
178
- DynamicAreaItem: { type: "DynamicAreaItem", name: "动态区域项", icon: "ContentContainer" },
179
- TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
180
- HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
181
- ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
182
- HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
183
- ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
184
- OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
185
- AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
186
- EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
187
- OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
188
- CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
189
- ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
190
- AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
191
- /** 查询类 start */
192
- Charts: { type: "Charts", name: "图表", icon: "Charts" },
193
- QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
194
- SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
195
- QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
196
- QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
197
- /** 查询类 end */
198
- /** 审批类 start */
199
- ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
200
- ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
201
- /** 审批类 end */
202
- }, J = {}, K = {};
203
- _();
204
- function ee(e, t, n = /* @__PURE__ */ new Map(), o = (p, m, g) => m, r = {}, d = (p) => p) {
205
- return Q[t.title] = t, q[t.title] = o, J[t.title] = r, K[t.title] = d, (p = {}) => {
206
- const m = Z(p, t, n), g = Object.keys(e).reduce((c, s) => (c[s] = e[s].default, c), {});
207
- return Object.assign(g, m);
128
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
129
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
130
+ }, ee = {}, te = {};
131
+ K();
132
+ function ne(e, t, n = /* @__PURE__ */ new Map(), i = (y, p, m) => p, l = {}, u = (y) => y) {
133
+ return Q[t.title] = t, X[t.title] = i, ee[t.title] = l, te[t.title] = u, (y = {}) => {
134
+ const p = _(y, t, n), m = Object.keys(e).reduce((s, d) => (s[d] = e[d].default, s), {});
135
+ return Object.assign(m, p);
208
136
  };
209
137
  }
210
- function te(e, t) {
138
+ function ie(e, t) {
211
139
  return { customClass: t.class, customStyle: t.style };
212
140
  }
213
- const ne = /* @__PURE__ */ new Map([
214
- ["appearance", te]
215
- ]), oe = "https://json-schema.org/draft/2020-12/schema", ie = "https://farris-design.gitee.io/combo-list.schema.json", ae = "combo-list", le = "A Farris Input Component", re = "object", ce = {
141
+ const oe = /* @__PURE__ */ new Map([
142
+ ["appearance", ie]
143
+ ]), ae = "https://json-schema.org/draft/2020-12/schema", le = "https://farris-design.gitee.io/combo-list.schema.json", re = "combo-list", se = "A Farris Input Component", ce = "object", de = {
216
144
  id: {
217
145
  description: "The unique identifier for a combo list",
218
146
  type: "string"
@@ -323,23 +251,23 @@ const ne = /* @__PURE__ */ new Map([
323
251
  type: "sting",
324
252
  default: ""
325
253
  }
326
- }, se = [
254
+ }, ue = [
327
255
  "id",
328
256
  "type"
329
- ], de = {
330
- $schema: oe,
331
- $id: ie,
332
- title: ae,
333
- description: le,
334
- type: re,
335
- properties: ce,
336
- required: se
257
+ ], pe = {
258
+ $schema: ae,
259
+ $id: le,
260
+ title: re,
261
+ description: se,
262
+ type: ce,
263
+ properties: de,
264
+ required: ue
337
265
  };
338
- function ue(e, t, n) {
266
+ function me(e, t, n) {
339
267
  return t;
340
268
  }
341
- var pe = /* @__PURE__ */ ((e) => (e.Text = "text", e.Tag = "tag", e))(pe || {}), me = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.auto = "auto", e))(me || {});
342
- const P = {
269
+ var ye = /* @__PURE__ */ ((e) => (e.Text = "text", e.Tag = "tag", e))(ye || {}), fe = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.auto = "auto", e))(fe || {});
270
+ const D = {
343
271
  /**
344
272
  * 组件标识
345
273
  */
@@ -498,8 +426,14 @@ const P = {
498
426
  /**
499
427
  * 打开前
500
428
  */
501
- beforeOpen: { type: Function, default: null }
502
- }, E = ee(P, de, ne, ue), ye = {
429
+ beforeOpen: { type: Function, default: null },
430
+ searchOption: {
431
+ type: Object,
432
+ default: !1
433
+ },
434
+ // 搜索启用高亮
435
+ enableHighlightSearch: { type: Boolean, default: !0 }
436
+ }, R = ne(D, pe, oe, me), ge = {
503
437
  dataSource: { type: Array, default: [] },
504
438
  enableSearch: { type: Boolean, default: !1 },
505
439
  idField: { type: String, default: "id" },
@@ -513,309 +447,394 @@ const P = {
513
447
  valueField: { type: String, default: "id" },
514
448
  /** 值变化事件 */
515
449
  onSelectionChange: { type: Function, default: () => {
516
- } }
517
- }, ge = /* @__PURE__ */ I({
450
+ } },
451
+ searchOption: {
452
+ type: Object,
453
+ default: !1
454
+ },
455
+ // 搜索启用高亮
456
+ enableHighlightSearch: { type: Boolean, default: !0 }
457
+ }, he = /* @__PURE__ */ O({
518
458
  name: "FComboListContainer",
519
- props: ye,
459
+ props: ge,
520
460
  emits: ["selectionChange"],
521
461
  setup(e, t) {
522
- const n = f(e.dataSource), o = f([]), r = f(e.separator), d = f(e.width), p = f(e.maxHeight), m = f(String(e.selectedValues).split(r.value));
523
- x(e.dataSource, () => {
524
- n.value = e.dataSource;
462
+ const n = g(), i = g(e.dataSource), l = g([]), u = g(e.separator), y = g(e.width), p = g(e.maxHeight), m = g(String(e.selectedValues).split(u.value));
463
+ w(e.dataSource, () => {
464
+ i.value = e.dataSource;
525
465
  });
526
- const g = B(() => e.enableSearch ? "SearchBar" : "ContentHeader"), c = B(() => {
527
- const i = {};
528
- return d.value !== void 0 && (i.width = `${d.value}px`), p.value !== void 0 && p.value > 0 && (i.maxHeight = `${p.value}px`), i;
466
+ const s = B(() => e.enableSearch ? "SearchBar" : "ContentHeader"), d = B(() => {
467
+ const r = {};
468
+ return y.value !== void 0 && (r.width = `${y.value}px`), p.value !== void 0 && p.value > 0 && (r.maxHeight = `${p.value}px`), r;
529
469
  });
530
- function s(i) {
531
- o.value = i.map((a) => Object.assign({}, a)), m.value = i.map((a) => a[e.idField]), t.emit("selectionChange", o.value);
470
+ function o(r) {
471
+ l.value = r.map((f) => Object.assign({}, f)), m.value = r.map((f) => f[e.idField]), t.emit("selectionChange", l.value);
472
+ }
473
+ function a(r) {
474
+ if (e.enableHighlightSearch)
475
+ return;
476
+ let f = [];
477
+ typeof e.searchOption == "function" ? f = i.value.filter((C) => e.searchOption(r, C)) : f = i.value.filter((C) => C[e.valueField].indexOf(r) > -1 || C[e.textField].indexOf(r) > -1), n.value.updateDataSource(f);
532
478
  }
533
- return x([() => e.selectedValues], ([i]) => {
534
- m.value = i.split(r.value);
479
+ return w([() => e.selectedValues], ([r]) => {
480
+ m.value = r.split(u.value);
535
481
  }), () => M("div", {
536
482
  class: "f-combo-list-container pl-3",
537
- style: c.value
538
- }, [M(G, {
483
+ style: d.value
484
+ }, [M(z, {
485
+ ref: n,
539
486
  size: "small",
540
487
  itemClass: "f-combo-list-item",
541
- header: g.value,
488
+ header: s.value,
542
489
  headerClass: "f-combo-list-search-box",
543
- data: n.value,
490
+ data: i.value,
544
491
  idField: e.idField,
545
492
  textField: e.textField,
546
493
  titleField: e.titleField,
547
494
  multiSelect: e.multiSelect,
548
- multiSelectMode: "OnCheckAndClick",
495
+ selection: {
496
+ enableSelectRow: !0,
497
+ multiSelect: !0,
498
+ multiSelectMode: "OnCheckAndClick",
499
+ showCheckbox: !0,
500
+ showSelectAll: !1,
501
+ showSelection: !0
502
+ },
503
+ enableHighlightSearch: e.enableHighlightSearch,
549
504
  selectionValues: m.value,
550
- onSelectionChange: s
505
+ onSelectionChange: o,
506
+ onAfterSearch: a
551
507
  }, null)]);
552
508
  }
553
509
  });
554
- function fe(e) {
555
- const t = f(""), n = f(e.modelValue), o = f(e.data || []), r = f(e.editable);
556
- function d(i) {
557
- const a = String(i).split(e.separator).map((y) => [y, !0]), u = new Map(a);
558
- return o.value.filter((y) => u.has(String(y[e.valueField])));
510
+ function be(e) {
511
+ const t = g(""), n = g(e.modelValue), i = g(e.data || []), l = g(e.editable);
512
+ function u(o) {
513
+ const a = String(o).split(e.separator).map((f) => [f, !0]), r = new Map(a);
514
+ return i.value.filter((f) => r.has(String(f[e.valueField])));
559
515
  }
560
- function p(i) {
561
- const a = d(i).map((u) => u[e.textField]).join(e.separator);
562
- t.value = r.value ? a || i : a;
516
+ function y(o) {
517
+ const a = u(o).map((r) => r[e.textField]).join(e.separator);
518
+ t.value = l.value ? a || o : a;
563
519
  }
564
- function m(i) {
565
- const a = i.split(e.separator).map((y) => [y, !0]), u = new Map(a);
566
- return o.value.filter((y) => u.has(y[e.textField]));
520
+ function p(o) {
521
+ const a = o.split(e.separator).map((f) => [f, !0]), r = new Map(a);
522
+ return i.value.filter((f) => r.has(f[e.textField]));
567
523
  }
568
- function g(i) {
524
+ function m(o) {
569
525
  const a = {};
570
- return a[e.idField] = i, a[e.textField] = i, [a];
526
+ return a[e.idField] = o, a[e.textField] = o, [a];
571
527
  }
572
- function c(i) {
573
- let a = m(i);
574
- const u = a && a.length > 0;
575
- return r.value && !u && (a = g(i)), a;
528
+ function s(o) {
529
+ let a = p(o);
530
+ const r = a && a.length > 0;
531
+ return l.value && !r && (a = m(o)), a;
576
532
  }
577
- function s() {
578
- const { url: i, method: a = "GET", headers: u = {}, body: y = null } = e.remote, S = a.toLowerCase() == "get" ? { method: a, headers: u } : { method: a, headers: u, body: y };
579
- let F = !1;
580
- fetch(i, S).then((h) => {
581
- var T, w;
533
+ function d() {
534
+ const { url: o, method: a = "GET", headers: r = {}, body: f = null } = e.remote, C = a.toLowerCase() == "get" ? { method: a, headers: r } : { method: a, headers: r, body: f };
535
+ let x = !1;
536
+ fetch(o, C).then((h) => {
537
+ var F, T;
582
538
  if (h.status === 200)
583
- return F = !!((w = (T = h.headers) == null ? void 0 : T.get("content-type")) != null && w.includes("application/json")), F ? h.text() : h.json();
539
+ return x = !!((T = (F = h.headers) == null ? void 0 : F.get("content-type")) != null && T.includes("application/json")), x ? h.text() : h.json();
584
540
  throw new Error(h.statusText);
585
541
  }).then((h) => {
586
- o.value = F ? JSON.parse(h) : h;
542
+ i.value = x ? JSON.parse(h) : h;
587
543
  }).catch((h) => {
588
544
  console.error(h);
589
545
  });
590
546
  }
591
- return e.remote && s(), x(() => e.data, () => {
592
- o.value = e.data;
593
- }), x([o], ([i]) => {
547
+ return e.remote && d(), w(() => e.data, () => {
548
+ i.value = e.data;
549
+ }), w([i], ([o]) => {
594
550
  if (e.modelValue) {
595
- const a = i.find((u) => u[e.valueField] === e.modelValue);
551
+ const a = o.find((r) => r[e.valueField] === e.modelValue);
596
552
  a && (t.value = a[e.textField]);
597
553
  }
598
- }), x(() => e.modelValue, (i) => {
599
- n.value = i, p(i);
600
- }), p(e.modelValue), { dataSource: o, displayText: t, editable: r, modelValue: n, getItemsByDisplayText: m, getItemsByValue: d, getSelectedItemsByDisplayText: c };
554
+ }), w(() => e.modelValue, (o) => {
555
+ n.value = o, y(o);
556
+ }), y(e.modelValue), { dataSource: i, displayText: t, editable: l, modelValue: n, getItemsByDisplayText: p, getItemsByValue: u, getSelectedItemsByDisplayText: s };
601
557
  }
602
- const k = /* @__PURE__ */ I({
558
+ const V = /* @__PURE__ */ O({
603
559
  name: "FComboList",
604
- props: P,
560
+ props: D,
605
561
  emits: ["clear", "update:modelValue", "change", "input"],
606
562
  setup(e, t) {
607
- const n = f(), o = f(e.disabled), r = f(e.enableClear), d = f(e.enableSearch), p = f(e.readonly), {
608
- dataSource: m,
609
- displayText: g,
610
- editable: c,
611
- modelValue: s,
612
- getSelectedItemsByDisplayText: i
613
- } = fe(e), a = B(() => e.multiSelect), u = B(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
614
- function y() {
563
+ const n = g(), i = g(e.disabled), l = g(e.enableClear), u = g(e.enableSearch), y = g(e.readonly), {
564
+ dataSource: p,
565
+ displayText: m,
566
+ editable: s,
567
+ modelValue: d,
568
+ getSelectedItemsByDisplayText: o
569
+ } = be(e), a = B(() => e.multiSelect), r = B(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
570
+ function f() {
615
571
  !a.value && n.value && n.value.hidePopup();
616
572
  }
617
- function S(b) {
618
- g.value = b.map((v) => v[e.textField]).join(e.separator), b.length === 1 ? s.value = b[0][e.valueField] : s.value = b.map((v) => v[e.valueField]).join(e.separator), t.emit("update:modelValue", s.value), t.emit("change", b, s.value), y();
573
+ function C(b) {
574
+ m.value = b.map((S) => S[e.textField]).join(e.separator), b.length === 1 ? d.value = b[0][e.valueField] : d.value = b.map((S) => S[e.valueField]).join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", b, d.value), f();
619
575
  }
620
- function F() {
621
- p.value || n.value.togglePopup();
576
+ function x() {
577
+ y.value || n.value.togglePopup();
622
578
  }
623
579
  function h(b) {
624
- s.value = "", t.emit("update:modelValue", ""), t.emit("clear");
580
+ d.value = "", t.emit("update:modelValue", ""), t.emit("clear");
625
581
  }
626
- function V(b) {
627
- const v = i(b);
628
- S(v);
582
+ function P(b) {
583
+ const S = o(b);
584
+ C(S);
629
585
  }
630
- function T() {
631
- return g.value;
586
+ function F() {
587
+ return m.value;
632
588
  }
633
- function w(b) {
589
+ function T(b) {
634
590
  t.emit("input", b);
635
591
  }
636
592
  return t.expose({
637
- getDisplayText: T
638
- }), x([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([b, v, R, U, N]) => {
639
- o.value = b, c.value = v, r.value = R, d.value = U, p.value = N;
640
- }), () => M(L, {
593
+ getDisplayText: F
594
+ }), w([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([b, S, N, U, $]) => {
595
+ i.value = b, s.value = S, l.value = N, u.value = U, y.value = $;
596
+ }), () => M(A, {
641
597
  ref: n,
642
598
  id: e.id,
643
- disable: o.value,
644
- readonly: p.value,
599
+ disable: i.value,
600
+ readonly: y.value,
645
601
  forcePlaceholder: e.forcePlaceholder,
646
- editable: c.value,
602
+ editable: s.value,
647
603
  buttonContent: e.dropDownIcon,
648
604
  placeholder: e.placeholder,
649
- enableClear: r.value,
605
+ enableClear: l.value,
650
606
  maxLength: e.maxLength,
651
607
  tabIndex: e.tabIndex,
652
608
  enableTitle: e.enableTitle,
653
609
  multiSelect: e.multiSelect,
654
610
  inputType: e.multiSelect ? e.viewType : "text",
655
- modelValue: g.value,
656
- "onUpdate:modelValue": (b) => g.value = b,
611
+ modelValue: m.value,
612
+ "onUpdate:modelValue": (b) => m.value = b,
657
613
  focusOnCreated: e.focusOnCreated,
658
614
  selectOnCreated: e.selectOnCreated,
659
615
  onClear: h,
660
- onClick: F,
661
- onChange: V,
662
- onInput: w,
616
+ onClick: x,
617
+ onChange: P,
618
+ onInput: T,
663
619
  beforeOpen: e.beforeOpen
664
620
  }, {
665
- default: () => [M(ge, {
621
+ default: () => [M(he, {
666
622
  idField: e.idField,
667
623
  valueField: e.valueField,
668
624
  textField: e.textField,
669
625
  titleField: e.titleField,
670
- dataSource: m.value,
671
- selectedValues: s.value,
626
+ dataSource: p.value,
627
+ selectedValues: d.value,
672
628
  multiSelect: e.multiSelect,
673
- enableSearch: d.value,
629
+ enableSearch: u.value,
674
630
  maxHeight: e.maxHeight,
675
- width: e.fitEditor ? u.value : void 0,
676
- onSelectionChange: S
631
+ enableHighlightSearch: e.enableHighlightSearch,
632
+ width: e.fitEditor ? r.value : void 0,
633
+ onSelectionChange: C
677
634
  }, null)]
678
635
  });
679
636
  }
680
637
  });
681
- function he(e, t) {
638
+ function ve(e, t) {
682
639
  e.schema;
683
- const n = f(!0), o = f(!0);
684
- function r(i) {
640
+ const n = g(!0), i = g(!0);
641
+ function l(o) {
685
642
  return !1;
686
643
  }
687
- function d() {
644
+ function u() {
688
645
  return !1;
689
646
  }
690
- function p() {
647
+ function y() {
691
648
  return !1;
692
649
  }
693
- function m() {
650
+ function p() {
694
651
  return !0;
695
652
  }
696
- function g(i) {
653
+ function m(o) {
697
654
  }
698
- function c() {
655
+ function s() {
699
656
  }
700
- function s(i) {
657
+ function d(o) {
701
658
  return null;
702
659
  }
703
660
  return {
704
- canAccepts: r,
705
- checkCanDeleteComponent: d,
706
- checkCanMoveComponent: p,
707
- hideNestedPaddingInDesginerView: m,
708
- onAcceptMovedChildElement: g,
709
- resolveComponentContext: c,
661
+ canAccepts: l,
662
+ checkCanDeleteComponent: u,
663
+ checkCanMoveComponent: y,
664
+ hideNestedPaddingInDesginerView: p,
665
+ onAcceptMovedChildElement: m,
666
+ resolveComponentContext: s,
710
667
  triggerBelongedComponentToMoveWhenMoved: n,
711
- triggerBelongedComponentToDeleteWhenDeleted: o,
712
- getPropsConfig: s
668
+ triggerBelongedComponentToDeleteWhenDeleted: i,
669
+ getPropsConfig: d
713
670
  };
714
671
  }
715
- class A {
672
+ class Ce {
673
+ constructor(t, n) {
674
+ v(this, "componentId");
675
+ v(this, "viewModelId");
676
+ v(this, "eventsEditorUtils");
677
+ v(this, "formSchemaUtils");
678
+ v(this, "formMetadataConverter");
679
+ v(this, "designViewModelUtils");
680
+ v(this, "designViewModelField");
681
+ v(this, "controlCreatorUtils");
682
+ v(this, "designerHostService");
683
+ v(this, "schemaService", null);
684
+ v(this, "metadataService", null);
685
+ v(this, "propertyConfig", {
686
+ type: "object",
687
+ categories: {}
688
+ });
689
+ var i;
690
+ this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((i = this.formSchemaUtils) == null ? void 0 : i.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
691
+ }
692
+ getTableInfo() {
693
+ var t;
694
+ return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
695
+ }
696
+ setDesignViewModelField(t) {
697
+ const n = t.binding && t.binding.type === "Form" && t.binding.field;
698
+ if (n) {
699
+ if (!this.designViewModelField) {
700
+ const i = this.designViewModelUtils.getDgViewModel(this.viewModelId);
701
+ this.designViewModelField = i.fields.find((l) => l.id === n);
702
+ }
703
+ t.updateOn = this.designViewModelField.updateOn;
704
+ }
705
+ }
706
+ changeFieldEditorType(t, n) {
707
+ }
708
+ getBasicPropConfig(t) {
709
+ return {
710
+ description: "Basic Information",
711
+ title: "基本信息",
712
+ properties: {
713
+ id: {
714
+ description: "组件标识",
715
+ title: "标识",
716
+ type: "string",
717
+ readonly: !0
718
+ },
719
+ type: {
720
+ description: "组件类型",
721
+ title: "控件类型",
722
+ type: "select",
723
+ editor: {
724
+ type: "combo-list",
725
+ textField: "name",
726
+ valueField: "value",
727
+ data: [{ value: t.type, name: c[t.type].name }]
728
+ }
729
+ }
730
+ }
731
+ };
732
+ }
733
+ getAppearanceConfig(t = null) {
734
+ return {
735
+ title: "样式",
736
+ description: "Appearance",
737
+ properties: {
738
+ class: {
739
+ title: "class样式",
740
+ type: "string",
741
+ description: "组件的CSS样式",
742
+ $converter: "/converter/appearance.converter"
743
+ },
744
+ style: {
745
+ title: "style样式",
746
+ type: "string",
747
+ description: "组件的样式",
748
+ $converter: "/converter/appearance.converter"
749
+ }
750
+ }
751
+ };
752
+ }
753
+ }
754
+ const k = class k {
755
+ /**
756
+ * 根据绑定字段类型获取可用的输入类控件
757
+ */
716
758
  static getEditorTypesByMDataType(t) {
717
- const n = this.fieldControlTypeMapping[t];
759
+ const n = k.fieldControlTypeMapping[t];
718
760
  return n || [{ key: "", value: "" }];
719
761
  }
720
- }
762
+ /**
763
+ * 获取所有输入类控件
764
+ */
765
+ static getAllInputTypes() {
766
+ const t = [];
767
+ for (let n in k.fieldControlTypeMapping)
768
+ k.fieldControlTypeMapping[n].forEach((i) => {
769
+ t.find((l) => l.key === i.key && l.value === i.value) || t.push({ key: i.key, value: i.value });
770
+ });
771
+ return t;
772
+ }
773
+ };
721
774
  /**
722
775
  * <字段类型,可配置的控件类型列表>的映射
723
776
  */
724
- C(A, "fieldControlTypeMapping", {
777
+ v(k, "fieldControlTypeMapping", {
725
778
  String: [
726
- { key: l["input-group"].type, value: l["input-group"].name },
727
- { key: l.lookup.type, value: l.lookup.name },
728
- { key: l.Image.type, value: l.Image.name },
729
- { key: l["date-picker"].type, value: l["date-picker"].name },
730
- { key: l["check-box"].type, value: l["check-box"].name },
731
- { key: l["radio-group"].type, value: l["radio-group"].name },
732
- { key: l["combo-list"].type, value: l["combo-list"].name },
733
- { key: l.textarea.type, value: l.textarea.name }
734
- // { key: DgControl.Tags.type, value: DgControl.Tags.name },
779
+ { key: c["input-group"].type, value: c["input-group"].name },
780
+ { key: c.lookup.type, value: c.lookup.name },
781
+ { key: c["date-picker"].type, value: c["date-picker"].name },
782
+ { key: c["check-box"].type, value: c["check-box"].name },
783
+ { key: c["radio-group"].type, value: c["radio-group"].name },
784
+ { key: c["combo-list"].type, value: c["combo-list"].name },
785
+ { key: c.textarea.type, value: c.textarea.name }
735
786
  ],
736
787
  Text: [
737
- { key: l.textarea.type, value: l.textarea.name },
738
- { key: l.avatar.type, value: l.avatar.name },
739
- { key: l.lookup.type, value: l.lookup.name }
788
+ { key: c.textarea.type, value: c.textarea.name },
789
+ { key: c.lookup.type, value: c.lookup.name }
740
790
  ],
741
791
  Decimal: [
742
- { key: l["number-spinner"].type, value: l["number-spinner"].name }
792
+ { key: c["number-spinner"].type, value: c["number-spinner"].name }
743
793
  ],
744
794
  Integer: [
745
- { key: l["number-spinner"].type, value: l["number-spinner"].name }
795
+ { key: c["number-spinner"].type, value: c["number-spinner"].name }
746
796
  ],
747
797
  Number: [
748
- { key: l["number-spinner"].type, value: l["number-spinner"].name }
798
+ { key: c["number-spinner"].type, value: c["number-spinner"].name }
749
799
  ],
750
800
  BigNumber: [
751
- { key: l["number-spinner"].type, value: l["number-spinner"].name }
801
+ { key: c["number-spinner"].type, value: c["number-spinner"].name }
752
802
  ],
753
803
  Date: [
754
- { key: l["date-picker"].type, value: l["date-picker"].name }
804
+ { key: c["date-picker"].type, value: c["date-picker"].name }
755
805
  ],
756
806
  DateTime: [
757
- { key: l["date-picker"].type, value: l["date-picker"].name }
807
+ { key: c["date-picker"].type, value: c["date-picker"].name }
758
808
  ],
759
809
  Boolean: [
760
- { key: l.switch.type, value: l.switch.name },
761
- { key: l["check-box"].type, value: l["check-box"].name }
810
+ { key: c.switch.type, value: c.switch.name },
811
+ { key: c["check-box"].type, value: c["check-box"].name }
762
812
  ],
763
813
  Enum: [
764
- { key: l["combo-list"].type, value: l["combo-list"].name },
765
- { key: l["radio-group"].type, value: l["radio-group"].name }
814
+ { key: c["combo-list"].type, value: c["combo-list"].name },
815
+ { key: c["radio-group"].type, value: c["radio-group"].name }
766
816
  ],
767
817
  Object: [
768
- { key: l.lookup.type, value: l.lookup.name },
769
- { key: l["combo-list"].type, value: l["combo-list"].name },
770
- { key: l["radio-group"].type, value: l["radio-group"].name }
771
- ],
772
- EmployeeSelector: [
773
- { key: l.EmployeeSelector.type, value: l.EmployeeSelector.name }
774
- ],
775
- AdminOrganizationSelector: [
776
- { key: l.AdminOrganizationSelector.type, value: l.AdminOrganizationSelector.name }
818
+ { key: c.lookup.type, value: c.lookup.name },
819
+ { key: c["combo-list"].type, value: c["combo-list"].name },
820
+ { key: c["radio-group"].type, value: c["radio-group"].name }
777
821
  ]
778
822
  });
779
- class be {
823
+ let I = k;
824
+ const Se = g(0);
825
+ class xe extends Ce {
780
826
  constructor(t, n) {
781
- C(this, "componentId");
782
- C(this, "viewModelId");
783
- C(this, "eventsEditorUtils");
784
- C(this, "formSchemaUtils");
785
- C(this, "formMetadataConverter");
786
- C(this, "designViewModelUtils");
787
- C(this, "designViewModelField");
788
- C(this, "controlCreatorUtils");
789
- C(this, "designerHostService");
790
- C(this, "schemaService", null);
791
- C(this, "metadataService", null);
792
- C(this, "propertyConfig", {
793
- type: "object",
794
- categories: {}
795
- });
796
- var o;
797
- this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
798
- }
799
- getTableInfo() {
800
- var t;
801
- return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
802
- }
803
- setDesignViewModelField(t) {
804
- const n = t.binding && t.binding.type === "Form" && t.binding.field;
805
- if (n) {
806
- if (!this.designViewModelField) {
807
- const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
808
- this.designViewModelField = o.fields.find((r) => r.id === n);
809
- }
810
- t.updateOn = this.designViewModelField.updateOn;
811
- }
827
+ super(t, n);
812
828
  }
813
- changeFieldEditorType(t, n) {
829
+ getPropertyConfig(t, n) {
830
+ return this.propertyConfig.categories.basic = this.getBasicProperties(t, n), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
814
831
  }
815
- getBasicPropConfig(t) {
816
- var o, r;
817
- var n = this;
818
- return this.setDesignViewModelField(t), {
832
+ getBasicProperties(t, n) {
833
+ var y;
834
+ var i = this;
835
+ this.setDesignViewModelField(t);
836
+ const l = this.formSchemaUtils.getFormMetadataBasicInfo(), u = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
837
+ return {
819
838
  description: "Basic Information",
820
839
  title: "基本信息",
821
840
  properties: {
@@ -835,63 +854,48 @@ class be {
835
854
  type: "combo-list",
836
855
  textField: "value",
837
856
  valueField: "key",
838
- data: A.getEditorTypesByMDataType(((r = (o = n.designViewModelField) == null ? void 0 : o.type) == null ? void 0 : r.name) || ""),
839
- editable: !1
857
+ editable: !1,
858
+ data: i.designViewModelField ? I.getEditorTypesByMDataType((y = i.designViewModelField.type) == null ? void 0 : y.name) : I.getAllInputTypes()
840
859
  }
841
860
  },
842
861
  label: {
843
862
  title: "标签",
844
863
  type: "string",
845
864
  $converter: "/converter/form-group-label.converter"
865
+ },
866
+ binding: {
867
+ description: "绑定的表单字段",
868
+ title: "绑定",
869
+ $converter: "/converter/field-selector.converter",
870
+ editor: {
871
+ type: "field-selector",
872
+ bindingType: { enable: !1 },
873
+ editorParams: {
874
+ propertyData: t,
875
+ formBasicInfo: l
876
+ },
877
+ columns: [
878
+ { field: "name", title: "字段名称" },
879
+ { field: "bindingField", title: "绑定字段" },
880
+ { field: "fieldType", title: "字段类型" }
881
+ ],
882
+ textField: "bindingField",
883
+ data: u
884
+ }
846
885
  }
847
886
  },
848
- setPropertyRelates(d, p) {
849
- if (d)
850
- switch (d && d.propertyID) {
887
+ setPropertyRelates(p, m) {
888
+ if (p)
889
+ switch (p && p.propertyID) {
851
890
  case "type": {
852
- n.changeControlType(t, d);
891
+ i.changeControlType(t, p, n);
853
892
  break;
854
893
  }
855
894
  }
856
895
  }
857
896
  };
858
897
  }
859
- /**
860
- * 卡片控件:切换控件类型后事件
861
- * @param propertyData 控件DOM属性
862
- * @param newControlType 新控件类型
863
- */
864
- changeControlType(t, n) {
865
- var c, s, i, a, u;
866
- const o = n.propertyValue, r = this.formSchemaUtils.getComponentById(this.componentId);
867
- let d = this.getControlParentContainer(t.id, r);
868
- if (!d)
869
- return;
870
- const p = d.contents.findIndex((y) => y.id === t.id), m = d.contents[p];
871
- let g;
872
- this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
873
- editor: {
874
- $type: o
875
- },
876
- name: this.designViewModelField.name,
877
- require: this.designViewModelField.require,
878
- readonly: this.designViewModelField.readonly
879
- }, !1), g = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(g, {
880
- id: m.id,
881
- appearance: m.appearance,
882
- size: m.size,
883
- label: m.label
884
- }), Object.assign(g.editor, {
885
- isTextArea: g.isTextArea && m.isTextArea,
886
- type: o || "",
887
- placeHolder: (c = m.editor) == null ? void 0 : c.placeHolder,
888
- holdPlace: (s = m.editor) == null ? void 0 : s.holdPlace,
889
- readonly: (i = m.editor) == null ? void 0 : i.readonly,
890
- require: (a = m.editor) == null ? void 0 : a.require,
891
- visible: (u = m.editor) == null ? void 0 : u.visible
892
- }), d.contents.splice(p, 1, g);
893
- }
894
- getAppearanceConfig(t = null) {
898
+ getAppearanceProperties(t) {
895
899
  return {
896
900
  title: "样式",
897
901
  description: "Appearance",
@@ -921,90 +925,52 @@ class be {
921
925
  }
922
926
  };
923
927
  }
924
- /**
925
- * 获取控件:以contents为节点进行定位
926
- * @param controlId 控件ID
927
- * @param domJson 容器
928
- */
929
- getControlParentContainer(t, n) {
930
- let o;
931
- if (!n || !n.contents || n.contents.length === 0)
932
- return null;
933
- for (const r of n.contents) {
934
- if (r.id === t)
935
- return o = n, n;
936
- if (o = this.getControlParentContainer(t, r), o)
937
- return o;
938
- }
939
- }
940
- getBindingFieldEditorOptions(t) {
941
- const n = this.formSchemaUtils.getFormMetadataBasicInfo();
942
- return {
943
- type: "field-selector",
944
- bindingType: { enable: !1 },
945
- editorParams: {
946
- propertyData: t,
947
- formBasicInfo: n
948
- },
949
- columns: [
950
- { field: "name", title: "字段名称" },
951
- { field: "bindingField", title: "绑定字段" },
952
- { field: "fieldType", title: "字段类型" }
953
- ],
954
- beforeOpenDialog: (o) => {
955
- const r = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
956
- o.instance.loadData(r);
957
- },
958
- textField: "bindingField"
959
- };
960
- }
961
- }
962
- class Ce extends be {
963
- constructor(t, n) {
964
- super(t, n);
965
- }
966
- getBasicProperties(t) {
967
- let n = this.getBasicPropConfig(t);
968
- return n.properties.binding = this.getFieldSelectorOptions(t), n;
969
- }
970
- getAppearanceProperties(t) {
971
- return this.getAppearanceConfig(t);
972
- }
973
928
  getEditorProperties(t) {
974
929
  return this.getComponentConfig(t);
975
930
  }
976
- getPropertyConfig(t) {
977
- return this.propertyConfig.categories.basic = this.getBasicProperties(t), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
978
- }
979
- getFieldSelectorOptions(t) {
980
- const n = this.formSchemaUtils.getFormMetadataBasicInfo(), o = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
981
- return {
982
- description: "绑定的表单字段",
983
- title: "绑定",
984
- $converter: "/converter/field-selector.converter",
931
+ /**
932
+ * 卡片控件:切换控件类型后事件
933
+ * @param propertyData 控件DOM属性
934
+ * @param newControlType 新控件类型
935
+ */
936
+ changeControlType(t, n, i) {
937
+ var s, d, o, a;
938
+ const l = n.propertyValue, u = i && i.parent && i.parent.schema;
939
+ if (!u)
940
+ return;
941
+ const y = u.contents.findIndex((r) => r.id === t.id), p = u.contents[y];
942
+ let m;
943
+ this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
985
944
  editor: {
986
- type: "field-selector",
987
- bindingType: { enable: !1 },
988
- editorParams: {
989
- propertyData: t,
990
- formBasicInfo: n
991
- },
992
- columns: [
993
- { field: "name", title: "字段名称" },
994
- { field: "bindingField", title: "绑定字段" },
995
- { field: "fieldType", title: "字段类型" }
996
- ],
997
- data: o
998
- }
999
- };
945
+ $type: l
946
+ },
947
+ name: this.designViewModelField.name,
948
+ require: this.designViewModelField.require,
949
+ readonly: this.designViewModelField.readonly
950
+ }, !1), m = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l)), m || (m = j("form-group") || {}, m.editor = j(l) || {}, delete m.editor.id, delete m.editor.binding, delete m.editor.appearance), Object.assign(m, {
951
+ id: p.id,
952
+ appearance: p.appearance,
953
+ size: p.size,
954
+ label: p.label,
955
+ binding: p.binding,
956
+ visible: p.visible
957
+ }), Object.assign(m.editor, {
958
+ isTextArea: m.isTextArea && p.isTextArea,
959
+ placeholder: (s = p.editor) == null ? void 0 : s.placeholder,
960
+ holdPlace: (d = p.editor) == null ? void 0 : d.holdPlace,
961
+ readonly: (o = p.editor) == null ? void 0 : o.readonly,
962
+ require: (a = p.editor) == null ? void 0 : a.require
963
+ }), u.contents.splice(y, 1), u.contents.splice(y, 0, m), i.schema = Object.assign(p, m), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
964
+ (r) => r.classList.remove("dgComponentSelected")
965
+ ), Se.value++;
1000
966
  }
1001
- getComponentConfig(t, n = {}, o = {}) {
1002
- const r = Object.assign({
967
+ getComponentConfig(t, n = {}, i = {}) {
968
+ const l = Object.assign({
1003
969
  description: "组件信息",
1004
970
  title: "组件信息",
1005
971
  type: "input-group",
1006
972
  $converter: "/converter/property-editor.converter"
1007
- }, n), d = Object.assign({
973
+ }, n), u = Object.assign({
1008
974
  readonly: {
1009
975
  description: "",
1010
976
  title: "只读",
@@ -1025,11 +991,11 @@ class Ce extends be {
1025
991
  title: "提示文本",
1026
992
  type: "string"
1027
993
  }
1028
- }, o);
1029
- return { ...r, properties: { ...d } };
994
+ }, i);
995
+ return { ...l, properties: { ...u } };
1030
996
  }
1031
997
  }
1032
- class ve extends Ce {
998
+ class Fe extends xe {
1033
999
  constructor(t, n) {
1034
1000
  super(t, n);
1035
1001
  }
@@ -1053,41 +1019,41 @@ class ve extends Ce {
1053
1019
  });
1054
1020
  }
1055
1021
  }
1056
- function Se(e, t) {
1022
+ function ke(e, t) {
1057
1023
  const {
1058
1024
  canAccepts: n,
1059
- checkCanDeleteComponent: o,
1060
- checkCanMoveComponent: r,
1061
- hideNestedPaddingInDesginerView: d,
1062
- onAcceptMovedChildElement: p,
1063
- resolveComponentContext: m,
1064
- triggerBelongedComponentToMoveWhenMoved: g,
1065
- triggerBelongedComponentToDeleteWhenDeleted: c
1066
- } = he(e), s = e.schema;
1067
- function i(a) {
1068
- return new ve(a, t).getPropertyConfig(s);
1025
+ checkCanDeleteComponent: i,
1026
+ checkCanMoveComponent: l,
1027
+ hideNestedPaddingInDesginerView: u,
1028
+ onAcceptMovedChildElement: y,
1029
+ resolveComponentContext: p,
1030
+ triggerBelongedComponentToMoveWhenMoved: m,
1031
+ triggerBelongedComponentToDeleteWhenDeleted: s
1032
+ } = ve(e), d = e.schema;
1033
+ function o(a, r) {
1034
+ return new Fe(a, t).getPropertyConfig(d, r);
1069
1035
  }
1070
1036
  return {
1071
1037
  canAccepts: n,
1072
- checkCanDeleteComponent: o,
1073
- checkCanMoveComponent: r,
1074
- hideNestedPaddingInDesginerView: d,
1075
- onAcceptMovedChildElement: p,
1076
- resolveComponentContext: m,
1077
- triggerBelongedComponentToMoveWhenMoved: g,
1078
- triggerBelongedComponentToDeleteWhenDeleted: c,
1079
- getPropsConfig: i
1038
+ checkCanDeleteComponent: i,
1039
+ checkCanMoveComponent: l,
1040
+ hideNestedPaddingInDesginerView: u,
1041
+ onAcceptMovedChildElement: y,
1042
+ resolveComponentContext: p,
1043
+ triggerBelongedComponentToMoveWhenMoved: m,
1044
+ triggerBelongedComponentToDeleteWhenDeleted: s,
1045
+ getPropsConfig: o
1080
1046
  };
1081
1047
  }
1082
- const Fe = /* @__PURE__ */ I({
1048
+ const we = /* @__PURE__ */ O({
1083
1049
  name: "FComboListDesign",
1084
- props: P,
1050
+ props: D,
1085
1051
  emits: ["clear", "update:modelValue", "change"],
1086
1052
  setup(e, t) {
1087
- const n = f(), o = D("designer-host-service"), r = D("design-item-context"), d = Se(r, o), p = W(n, r, d);
1088
- return z(() => {
1089
- n.value.componentInstance = p;
1090
- }), t.expose(p.value), () => M(L, {
1053
+ const n = g(), i = E("designer-host-service"), l = E("design-item-context"), u = ke(l, i), y = J(n, l, u);
1054
+ return G(() => {
1055
+ n.value.componentInstance = y;
1056
+ }), t.expose(y.value), () => M(A, {
1091
1057
  ref: n,
1092
1058
  id: e.id,
1093
1059
  disable: e.disabled,
@@ -1104,24 +1070,24 @@ const Fe = /* @__PURE__ */ I({
1104
1070
  inputType: e.multiSelect ? "tag" : "text"
1105
1071
  }, null);
1106
1072
  }
1107
- }), Te = (e) => {
1073
+ }), Me = (e) => {
1108
1074
  const t = e;
1109
1075
  return t.install = function(n) {
1110
1076
  n.component(t.name, e);
1111
1077
  }, e;
1112
1078
  };
1113
- k.register = (e, t, n, o) => {
1114
- e["combo-list"] = k, t["combo-list"] = E;
1079
+ V.register = (e, t, n, i) => {
1080
+ e["combo-list"] = V, t["combo-list"] = R;
1115
1081
  };
1116
- k.registerDesigner = (e, t, n) => {
1117
- e["combo-list"] = Fe, t["combo-list"] = E;
1082
+ V.registerDesigner = (e, t, n) => {
1083
+ e["combo-list"] = we, t["combo-list"] = R;
1118
1084
  };
1119
- const Ie = Te(k);
1085
+ const Ee = Me(V);
1120
1086
  export {
1121
- k as FComboList,
1122
- me as Placement,
1123
- pe as ViewType,
1124
- P as comboListProps,
1125
- Ie as default,
1126
- E as propsResolver
1087
+ V as FComboList,
1088
+ fe as Placement,
1089
+ ye as ViewType,
1090
+ D as comboListProps,
1091
+ Ee as default,
1092
+ R as propsResolver
1127
1093
  };