@farris/ui-vue 1.2.5 → 1.2.6

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 (253) hide show
  1. package/components/accordion/package.json +1 -1
  2. package/components/avatar/index.esm.js +124 -116
  3. package/components/avatar/index.umd.cjs +1 -1
  4. package/components/avatar/package.json +1 -1
  5. package/components/border-editor/package.json +1 -1
  6. package/components/button/package.json +1 -1
  7. package/components/button-edit/index.css +1 -0
  8. package/components/button-edit/package.json +1 -1
  9. package/components/button-group/package.json +1 -1
  10. package/components/calculator/package.json +1 -1
  11. package/components/calendar/package.json +1 -1
  12. package/components/capsule/package.json +1 -1
  13. package/components/checkbox/index.esm.js +219 -209
  14. package/components/checkbox/index.umd.cjs +1 -1
  15. package/components/checkbox/package.json +1 -1
  16. package/components/color-picker/package.json +1 -1
  17. package/components/combo-list/index.esm.js +36 -28
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-list/package.json +1 -1
  20. package/components/combo-tree/index.esm.js +340 -107
  21. package/components/combo-tree/index.umd.cjs +1 -1
  22. package/components/combo-tree/package.json +1 -1
  23. package/components/common/package.json +1 -1
  24. package/components/component/index.esm.js +36 -29
  25. package/components/component/index.umd.cjs +1 -1
  26. package/components/component/package.json +1 -1
  27. package/components/condition/index.esm.js +318 -316
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/condition/package.json +1 -1
  30. package/components/content-container/index.esm.js +9 -13
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/content-container/package.json +1 -1
  33. package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
  34. package/components/data-grid/index.esm.js +3771 -3622
  35. package/components/data-grid/index.umd.cjs +1 -1
  36. package/components/data-grid/package.json +1 -1
  37. package/components/data-view/index.esm.js +2408 -2405
  38. package/components/data-view/index.umd.cjs +1 -1
  39. package/components/data-view/package.json +1 -1
  40. package/components/date-picker/index.esm.js +250 -242
  41. package/components/date-picker/index.umd.cjs +1 -1
  42. package/components/date-picker/package.json +1 -1
  43. package/components/designer-canvas/index.esm.js +23 -20
  44. package/components/designer-canvas/index.umd.cjs +1 -1
  45. package/components/designer-canvas/package.json +1 -1
  46. package/components/designer-outline/package.json +1 -1
  47. package/components/designer-toolbox/package.json +1 -1
  48. package/components/discussion-editor/package.json +1 -1
  49. package/components/discussion-list/package.json +1 -1
  50. package/components/drawer/package.json +1 -1
  51. package/components/dropdown/index.esm.js +86 -86
  52. package/components/dropdown/index.umd.cjs +1 -1
  53. package/components/dropdown/package.json +1 -1
  54. package/components/dynamic-form/index.esm.js +575 -565
  55. package/components/dynamic-form/index.umd.cjs +1 -1
  56. package/components/dynamic-form/package.json +1 -1
  57. package/components/dynamic-resolver/index.esm.js +56 -47
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-resolver/package.json +1 -1
  60. package/components/dynamic-view/index.esm.js +281 -277
  61. package/components/dynamic-view/index.umd.cjs +1 -1
  62. package/components/dynamic-view/package.json +1 -1
  63. package/components/enum-editor/package.json +1 -1
  64. package/components/events-editor/package.json +1 -1
  65. package/components/expression-editor/package.json +1 -1
  66. package/components/external-container/index.css +1 -0
  67. package/components/external-container/index.esm.js +1795 -1783
  68. package/components/external-container/index.umd.cjs +1 -1
  69. package/components/external-container/package.json +1 -1
  70. package/components/field-selector/index.css +1 -0
  71. package/components/field-selector/index.esm.js +3914 -3769
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/field-selector/package.json +1 -1
  74. package/components/filter-bar/{style.css → index.css} +1 -1
  75. package/components/filter-bar/index.esm.js +475 -465
  76. package/components/filter-bar/index.umd.cjs +1 -1
  77. package/components/filter-bar/package.json +1 -1
  78. package/components/flow-canvas/index.esm.js +37 -34
  79. package/components/flow-canvas/index.umd.cjs +1 -1
  80. package/components/flow-canvas/package.json +1 -1
  81. package/components/image-cropper/package.json +1 -1
  82. package/components/input-group/index.esm.js +256 -248
  83. package/components/input-group/index.umd.cjs +1 -1
  84. package/components/input-group/package.json +1 -1
  85. package/components/layout/package.json +1 -1
  86. package/components/list-nav/package.json +1 -1
  87. package/components/list-view/index.esm.js +1445 -1446
  88. package/components/list-view/index.umd.cjs +1 -1
  89. package/components/list-view/package.json +1 -1
  90. package/components/loading/package.json +1 -1
  91. package/components/locale/package.json +1 -1
  92. package/components/lookup/index.css +1 -0
  93. package/components/lookup/index.esm.js +4347 -4145
  94. package/components/lookup/index.umd.cjs +1 -1
  95. package/components/lookup/package.json +1 -1
  96. package/components/mapping-editor/index.css +1 -0
  97. package/components/mapping-editor/index.esm.js +4657 -4475
  98. package/components/mapping-editor/index.umd.cjs +1 -1
  99. package/components/mapping-editor/package.json +1 -1
  100. package/components/message-box/index.css +1 -0
  101. package/components/message-box/index.esm.js +397 -386
  102. package/components/message-box/index.umd.cjs +1 -1
  103. package/components/message-box/package.json +1 -1
  104. package/components/modal/index.css +1 -0
  105. package/components/modal/index.esm.js +308 -297
  106. package/components/modal/index.umd.cjs +1 -1
  107. package/components/modal/package.json +1 -1
  108. package/components/nav/package.json +1 -1
  109. package/components/notify/package.json +1 -1
  110. package/components/order/index.esm.js +353 -345
  111. package/components/order/index.umd.cjs +1 -1
  112. package/components/order/package.json +1 -1
  113. package/components/page-footer/package.json +1 -1
  114. package/components/page-header/index.esm.js +917 -893
  115. package/components/page-header/index.umd.cjs +1 -1
  116. package/components/page-header/package.json +1 -1
  117. package/components/pagination/package.json +1 -1
  118. package/components/popover/package.json +1 -1
  119. package/components/progress/package.json +1 -1
  120. package/components/property-editor/index.esm.js +108 -101
  121. package/components/property-editor/index.umd.cjs +2 -2
  122. package/components/property-editor/package.json +1 -1
  123. package/components/property-panel/index.esm.js +394 -384
  124. package/components/property-panel/index.umd.cjs +1 -1
  125. package/components/property-panel/package.json +1 -1
  126. package/components/radio-button/package.json +1 -1
  127. package/components/radio-group/index.esm.js +72 -64
  128. package/components/radio-group/index.umd.cjs +1 -1
  129. package/components/radio-group/package.json +1 -1
  130. package/components/rate/package.json +1 -1
  131. package/components/response-layout/package.json +1 -1
  132. package/components/response-layout-editor/{style.css → index.css} +1 -1
  133. package/components/response-layout-editor/index.esm.js +404 -393
  134. package/components/response-layout-editor/index.umd.cjs +1 -1
  135. package/components/response-layout-editor/package.json +1 -1
  136. package/components/response-toolbar/index.esm.js +610 -592
  137. package/components/response-toolbar/index.umd.cjs +1 -1
  138. package/components/response-toolbar/package.json +1 -1
  139. package/components/schema-selector/index.css +1 -0
  140. package/components/schema-selector/index.esm.js +3654 -3408
  141. package/components/schema-selector/index.umd.cjs +8 -1
  142. package/components/schema-selector/package.json +1 -1
  143. package/components/search-box/package.json +1 -1
  144. package/components/section/index.esm.js +21 -14
  145. package/components/section/index.umd.cjs +1 -1
  146. package/components/section/package.json +1 -1
  147. package/components/smoke-detector/package.json +1 -1
  148. package/components/spacing-editor/package.json +1 -1
  149. package/components/splitter/package.json +1 -1
  150. package/components/step/package.json +1 -1
  151. package/components/switch/index.esm.js +79 -71
  152. package/components/switch/index.umd.cjs +1 -1
  153. package/components/switch/package.json +1 -1
  154. package/components/tabs/index.css +1 -0
  155. package/components/tabs/index.esm.js +1448 -1406
  156. package/components/tabs/index.umd.cjs +1 -1
  157. package/components/tabs/package.json +1 -1
  158. package/components/tags/package.json +1 -1
  159. package/components/text/package.json +1 -1
  160. package/components/textarea/index.esm.js +86 -78
  161. package/components/textarea/index.umd.cjs +1 -1
  162. package/components/textarea/package.json +1 -1
  163. package/components/time-picker/index.css +1 -0
  164. package/components/time-picker/index.esm.js +387 -379
  165. package/components/time-picker/index.umd.cjs +1 -1
  166. package/components/time-picker/package.json +1 -1
  167. package/components/tooltip/package.json +1 -1
  168. package/components/transfer/package.json +1 -1
  169. package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
  170. package/components/tree-grid/index.esm.js +3769 -3620
  171. package/components/tree-grid/index.umd.cjs +1 -1
  172. package/components/tree-grid/package.json +1 -1
  173. package/components/tree-view/index.esm.js +2041 -2038
  174. package/components/tree-view/index.umd.cjs +1 -1
  175. package/components/tree-view/package.json +1 -1
  176. package/components/uploader/package.json +1 -1
  177. package/components/verify-detail/package.json +1 -1
  178. package/components/video/package.json +1 -1
  179. package/components/weather/package.json +1 -1
  180. package/farris.all.esm.js +12423 -11981
  181. package/farris.all.umd.cjs +9 -9
  182. package/index.css +1 -0
  183. package/package.json +2 -2
  184. package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
  185. package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
  186. package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
  187. package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
  188. package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
  189. package/types/components.d.ts +1 -0
  190. package/types/data-grid/index.d.ts +5 -5
  191. package/types/data-grid/src/data-grid.component.d.ts +2 -2
  192. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  193. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
  194. package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
  195. package/types/designer-canvas/src/composition/types.d.ts +1 -0
  196. package/types/dynamic-form/src/types.d.ts +1 -1
  197. package/types/dynamic-resolver/index.d.ts +1 -0
  198. package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
  199. package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
  200. package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
  201. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +8 -0
  202. package/types/lookup/src/property-config/lookup.property-config.d.ts +29 -25
  203. package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
  204. package/types/modal/src/modal.component.d.ts +3 -3
  205. package/types/modal/src/modal.props.d.ts +3 -5
  206. package/types/page-header/src/page-header.props.d.ts +7 -0
  207. package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
  208. package/types/property-panel/src/composition/entity/base-property.d.ts +2 -0
  209. package/types/response-toolbar/index.d.ts +9 -3
  210. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
  211. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
  212. package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
  213. package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
  214. package/types/schema-selector/src/composition/types.d.ts +3 -1
  215. package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
  216. package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
  217. package/types/tabs/src/tabs.props.d.ts +8 -0
  218. package/components/button-edit/style.css +0 -1
  219. package/components/external-container/style.css +0 -1
  220. package/components/field-selector/style.css +0 -1
  221. package/components/lookup/style.css +0 -1
  222. package/components/mapping-editor/style.css +0 -1
  223. package/components/message-box/style.css +0 -1
  224. package/components/modal/style.css +0 -1
  225. package/components/schema-selector/style.css +0 -1
  226. package/components/tabs/style.css +0 -1
  227. package/components/time-picker/style.css +0 -1
  228. package/style.css +0 -1
  229. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
  230. /package/components/border-editor/{style.css → index.css} +0 -0
  231. /package/components/checkbox/{style.css → index.css} +0 -0
  232. /package/components/date-picker/{style.css → index.css} +0 -0
  233. /package/components/designer-canvas/{style.css → index.css} +0 -0
  234. /package/components/designer-outline/{style.css → index.css} +0 -0
  235. /package/components/designer-toolbox/{style.css → index.css} +0 -0
  236. /package/components/discussion-editor/{style.css → index.css} +0 -0
  237. /package/components/discussion-list/{style.css → index.css} +0 -0
  238. /package/components/drawer/{style.css → index.css} +0 -0
  239. /package/components/events-editor/{style.css → index.css} +0 -0
  240. /package/components/flow-canvas/{style.css → index.css} +0 -0
  241. /package/components/list-view/{style.css → index.css} +0 -0
  242. /package/components/order/{style.css → index.css} +0 -0
  243. /package/components/property-editor/{style.css → index.css} +0 -0
  244. /package/components/property-panel/{style.css → index.css} +0 -0
  245. /package/components/radio-button/{style.css → index.css} +0 -0
  246. /package/components/radio-group/{style.css → index.css} +0 -0
  247. /package/components/smoke-detector/{style.css → index.css} +0 -0
  248. /package/components/spacing-editor/{style.css → index.css} +0 -0
  249. /package/components/splitter/{style.css → index.css} +0 -0
  250. /package/components/switch/{style.css → index.css} +0 -0
  251. /package/components/transfer/{style.css → index.css} +0 -0
  252. /package/components/uploader/{style.css → index.css} +0 -0
  253. /package/components/weather/{style.css → index.css} +0 -0
@@ -1,13 +1,13 @@
1
1
  var ne = Object.defineProperty;
2
2
  var oe = (e, t, n) => t in e ? ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var A = (e, t, n) => oe(e, typeof t != "symbol" ? t + "" : t, n);
3
+ var x = (e, t, n) => oe(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { ref as b, computed as g, watch as E, onMounted as L, nextTick as z, createVNode as B, reactive as ae, withDirectives as ie, resolveDirective as re, defineComponent as Q, Fragment as W, inject as q } from "vue";
5
5
  import { cloneDeep as le } from "lodash-es";
6
6
  import "bignumber.js";
7
7
  import { useNumber as ue, useFormat as se, useSpinner as ce, useTextBox as pe } from "@farris/ui-vue/components/number-spinner";
8
8
  const R = {}, _ = {};
9
9
  function U(e) {
10
- const { properties: t, title: n } = e, o = Object.keys(t).reduce((a, s) => (a[s] = t[s].type === "object" && t[s].properties ? U(t[s]) : le(t[s].default), a), {});
10
+ const { properties: t, title: n } = e, o = Object.keys(t).reduce((a, l) => (a[l] = t[l].type === "object" && t[l].properties ? U(t[l]) : le(t[l].default), a), {});
11
11
  return o.id = `${n}-${Date.now()}`, o;
12
12
  }
13
13
  function G(e, t = {}) {
@@ -26,12 +26,12 @@ function de(e, t) {
26
26
  function me(e, t) {
27
27
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
28
28
  if (t.has(a)) {
29
- const s = t.get(a);
30
- if (typeof s == "string")
31
- o[s] = e[a];
29
+ const l = t.get(a);
30
+ if (typeof l == "string")
31
+ o[l] = e[a];
32
32
  else {
33
- const m = s(a, e[a], e);
34
- Object.assign(o, m);
33
+ const d = l(a, e[a], e);
34
+ Object.assign(o, d);
35
35
  }
36
36
  } else
37
37
  o[a] = e[a];
@@ -43,65 +43,65 @@ function ye(e, t, n = /* @__PURE__ */ new Map()) {
43
43
  return me(o, n);
44
44
  }
45
45
  function fe(e = {}) {
46
- function t(i, l, r, u) {
46
+ function t(i, u, r, s) {
47
47
  if (typeof r == "number")
48
- return u[i].length === r;
48
+ return s[i].length === r;
49
49
  if (typeof r == "object") {
50
50
  const y = Object.keys(r)[0], f = r[y];
51
51
  if (y === "not")
52
- return Number(u[i].length) !== Number(f);
52
+ return Number(s[i].length) !== Number(f);
53
53
  if (y === "moreThan")
54
- return Number(u[i].length) >= Number(f);
54
+ return Number(s[i].length) >= Number(f);
55
55
  if (y === "lessThan")
56
- return Number(u[i].length) <= Number(f);
56
+ return Number(s[i].length) <= Number(f);
57
57
  }
58
58
  return !1;
59
59
  }
60
- function n(i, l, r, u) {
61
- return u[i] && u[i].propertyValue && String(u[i].propertyValue.value) === String(r);
60
+ function n(i, u, r, s) {
61
+ return s[i] && s[i].propertyValue && String(s[i].propertyValue.value) === String(r);
62
62
  }
63
63
  const o = /* @__PURE__ */ new Map([
64
64
  ["length", t],
65
65
  ["getProperty", n]
66
66
  ]);
67
- Object.keys(e).reduce((i, l) => (i.set(l, e[l]), i), o);
68
- function a(i, l) {
67
+ Object.keys(e).reduce((i, u) => (i.set(u, e[u]), i), o);
68
+ function a(i, u) {
69
69
  const r = i;
70
- return typeof l == "number" ? [{ target: r, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: r, operator: "getProperty", param: i, value: !!l }] : typeof l == "object" ? Object.keys(l).map((u) => {
71
- if (u === "length")
72
- return { target: r, operator: "length", param: null, value: l[u] };
73
- const y = u, f = l[u];
70
+ return typeof u == "number" ? [{ target: r, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: r, operator: "getProperty", param: i, value: !!u }] : typeof u == "object" ? Object.keys(u).map((s) => {
71
+ if (s === "length")
72
+ return { target: r, operator: "length", param: null, value: u[s] };
73
+ const y = s, f = u[s];
74
74
  return { target: r, operator: "getProperty", param: y, value: f };
75
75
  }) : [];
76
76
  }
77
- function s(i) {
78
- return Object.keys(i).reduce((r, u) => {
79
- const y = a(u, i[u]);
77
+ function l(i) {
78
+ return Object.keys(i).reduce((r, s) => {
79
+ const y = a(s, i[s]);
80
80
  return r.push(...y), r;
81
81
  }, []);
82
82
  }
83
- function m(i, l) {
83
+ function d(i, u) {
84
84
  if (o.has(i.operator)) {
85
85
  const r = o.get(i.operator);
86
- return r && r(i.target, i.param, i.value, l) || !1;
86
+ return r && r(i.target, i.param, i.value, u) || !1;
87
87
  }
88
88
  return !1;
89
89
  }
90
- function d(i, l) {
91
- return s(i).reduce((y, f) => y && m(f, l), !0);
90
+ function m(i, u) {
91
+ return l(i).reduce((y, f) => y && d(f, u), !0);
92
92
  }
93
- function c(i, l) {
94
- const r = Object.keys(i), u = r.includes("allOf"), y = r.includes("anyOf"), f = u || y, S = (f ? i[f ? u ? "allOf" : "anyOf" : "allOf"] : [i]).map((x) => d(x, l));
95
- return u ? !S.includes(!1) : S.includes(!0);
93
+ function c(i, u) {
94
+ const r = Object.keys(i), s = r.includes("allOf"), y = r.includes("anyOf"), f = s || y, S = (f ? i[f ? s ? "allOf" : "anyOf" : "allOf"] : [i]).map((P) => m(P, u));
95
+ return s ? !S.includes(!1) : S.includes(!0);
96
96
  }
97
97
  return { parseValueSchema: c };
98
98
  }
99
99
  const p = {
100
100
  Button: { type: "Button", name: "按钮", icon: "Button" },
101
101
  ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
102
- ToolBar: { type: "ToolBar", name: "工具栏", icon: "ButtonGroup" },
103
- ToolBarItem: { type: "ToolBarItem", name: "工具栏项", icon: "Button" },
104
- ContentContainer: { type: "ContentContainer", name: "容器", icon: "ContentContainer" },
102
+ "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
103
+ "response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
104
+ "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
105
105
  DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
106
106
  "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
107
107
  textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
@@ -128,15 +128,15 @@ const p = {
128
128
  "data-grid-column": { type: "data-grid-column", name: "表格列" },
129
129
  Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
130
130
  Module: { type: "Module", name: "模块", icon: "Module" },
131
- Component: { type: "Component", name: "组件", icon: "Component" },
131
+ component: { type: "component", name: "组件", icon: "Component" },
132
132
  ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
133
133
  Image: { type: "Image", name: "图像", icon: "Image" },
134
134
  ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
135
135
  HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
136
136
  ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
137
137
  RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
138
- Tab: { type: "Tab", name: "标签页", icon: "Tab" },
139
- TabPage: { type: "TabPage", name: "标签页项", dependentParentControl: "Tab" },
138
+ tabs: { type: "tabs", name: "标签页", icon: "Tab" },
139
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
140
140
  "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
141
141
  Tag: { type: "Tag", name: "Tag", icon: "Tag" },
142
142
  Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
@@ -145,7 +145,7 @@ const p = {
145
145
  RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
146
146
  TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
147
147
  TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
148
- Section: { type: "Section", name: "分组面板", icon: "Section" },
148
+ section: { type: "section", name: "分组面板", icon: "Section" },
149
149
  SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
150
150
  SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
151
151
  QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
@@ -175,7 +175,7 @@ const p = {
175
175
  NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
176
176
  Tags: { type: "Tags", name: "标记组", icon: "Tags" },
177
177
  Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
178
- Header: { type: "Header", name: "页头", icon: "Header" },
178
+ "page-header": { type: "page-header", name: "页头", icon: "Header" },
179
179
  ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
180
180
  ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
181
181
  PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
@@ -209,10 +209,10 @@ const p = {
209
209
  /** 审批类 end */
210
210
  }, ge = {}, ve = {};
211
211
  fe();
212
- function he(e, t, n = /* @__PURE__ */ new Map(), o = (m, d, c) => d, a = {}, s = (m) => m) {
213
- return R[t.title] = t, _[t.title] = o, ge[t.title] = a, ve[t.title] = s, (m = {}) => {
214
- const d = ye(m, t, n), c = Object.keys(e).reduce((i, l) => (i[l] = e[l].default, i), {});
215
- return Object.assign(c, d);
212
+ function he(e, t, n = /* @__PURE__ */ new Map(), o = (d, m, c) => m, a = {}, l = (d) => d) {
213
+ return R[t.title] = t, _[t.title] = o, ge[t.title] = a, ve[t.title] = l, (d = {}) => {
214
+ const m = ye(d, t, n), c = Object.keys(e).reduce((i, u) => (i[u] = e[u].default, i), {});
215
+ return Object.assign(c, m);
216
216
  };
217
217
  }
218
218
  function be(e, t) {
@@ -505,7 +505,7 @@ const we = "https://json-schema.org/draft/2020-12/schema", Be = "https://farris-
505
505
  updateOn: { type: String, default: "blur" }
506
506
  }, Z = he(H, Pe, Ce, Te);
507
507
  function Ae(e, t, n, o) {
508
- const a = b(e.disabled), s = b(!1), m = b("text"), d = b(e.showBorder), c = b(e.textAlign), i = b(e.updateOn), l = g(() => e.editable || !e.readonly), r = g(() => e.editable && !e.disabled && !e.readonly), u = g(() => !e.disabled && s.value), y = g(() => n.value === "" || n.value === null || n.value === void 0), f = g(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), T = g(() => e.readonly || !e.editable), k = g(() => e.enableTitle ? n.value : ""), S = g(() => ({
508
+ const a = b(e.disabled), l = b(!1), d = b("text"), m = b(e.showBorder), c = b(e.textAlign), i = b(e.updateOn), u = g(() => e.editable || !e.readonly), r = g(() => e.editable && !e.disabled && !e.readonly), s = g(() => !e.disabled && l.value), y = g(() => n.value === "" || n.value === null || n.value === void 0), f = g(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), T = g(() => e.readonly || !e.editable), k = g(() => e.enableTitle ? n.value : ""), S = g(() => ({
509
509
  "form-control": !0,
510
510
  "f-utils-fill": !0,
511
511
  "text-left": c.value === "left",
@@ -518,39 +518,39 @@ function Ae(e, t, n, o) {
518
518
  "f-state-disable": a.value,
519
519
  "f-state-editable": r.value,
520
520
  "f-state-readonly": T.value,
521
- "f-state-focus": u.value
521
+ "f-state-focus": s.value
522
522
  };
523
523
  return (e.customClass || "").split(" ").reduce(($, te) => ($[te] = !0, $), v), v;
524
- }), x = g(() => d.value ? "" : "border-width : 0 ");
525
- function M(v, P = !0) {
526
- n.value = v, o.value !== v && (o.value = v), P && t.emit("change", v), t.emit("update:modelValue", v), t.emit("update:value", v);
524
+ }), P = g(() => m.value ? "" : "border-width : 0 ");
525
+ function M(v, A = !0) {
526
+ n.value = v, o.value !== v && (o.value = v), A && t.emit("change", v), t.emit("update:modelValue", v), t.emit("update:value", v);
527
527
  }
528
528
  E(
529
529
  () => e.modelValue,
530
- (v, P) => {
531
- v !== P && (n.value = v, o.value = v);
530
+ (v, A) => {
531
+ v !== A && (n.value = v, o.value = v);
532
532
  }
533
- ), E(() => e.disabled, (v, P) => {
534
- v !== P && (a.value = v);
533
+ ), E(() => e.disabled, (v, A) => {
534
+ v !== A && (a.value = v);
535
535
  });
536
- function O(v) {
537
- return s.value = !1, t.emit("blur", v), v.stopPropagation(), !1;
536
+ function V(v) {
537
+ return l.value = !1, t.emit("blur", v), v.stopPropagation(), !1;
538
538
  }
539
539
  function h(v) {
540
540
  t.emit("click", v);
541
541
  }
542
542
  function C(v) {
543
- e.disabled || (d.value && (s.value = !0), l.value && t.emit("focus", v));
543
+ e.disabled || (m.value && (l.value = !0), u.value && t.emit("focus", v));
544
544
  }
545
545
  function w(v) {
546
546
  t.emit("input", v.target.value);
547
- const P = v.target.value;
548
- o.value = P, i.value === "input" && (t.emit("update:modelValue", P), t.emit("update:value", P));
547
+ const A = v.target.value;
548
+ o.value = A, i.value === "input" && (t.emit("update:modelValue", A), t.emit("update:value", A));
549
549
  }
550
- function V(v) {
550
+ function O(v) {
551
551
  t.emit("keydown", v);
552
552
  }
553
- function N(v) {
553
+ function I(v) {
554
554
  t.emit("keyup", v);
555
555
  }
556
556
  function D(v) {
@@ -558,8 +558,8 @@ function Ae(e, t, n, o) {
558
558
  }
559
559
  function j(v) {
560
560
  if (i.value === "blur") {
561
- const P = v.target.value;
562
- v.stopPropagation(), M(P);
561
+ const A = v.target.value;
562
+ v.stopPropagation(), M(A);
563
563
  }
564
564
  }
565
565
  return {
@@ -567,30 +567,30 @@ function Ae(e, t, n, o) {
567
567
  disabled: a,
568
568
  displayText: o,
569
569
  editable: r,
570
- hasFocused: u,
570
+ hasFocused: s,
571
571
  inputGroupClass: F,
572
- inputType: m,
572
+ inputType: d,
573
573
  isEmpty: y,
574
574
  modelValue: n,
575
575
  readonly: T,
576
- onBlur: O,
576
+ onBlur: V,
577
577
  onClick: h,
578
578
  onFocus: C,
579
579
  onInput: w,
580
- onKeydown: V,
581
- onKeyup: N,
580
+ onKeydown: O,
581
+ onKeyup: I,
582
582
  onMousedown: D,
583
583
  onTextBoxValueChange: j,
584
584
  placeholder: f,
585
585
  textBoxClass: S,
586
586
  textBoxTitle: k,
587
- inputGroupStyle: x
587
+ inputGroupStyle: P
588
588
  };
589
589
  }
590
590
  function De(e, t, n, o) {
591
- const a = b(e.disabled), s = b(!1), m = b("text"), d = b(e.showBorder), c = b(e.textAlign);
591
+ const a = b(e.disabled), l = b(!1), d = b("text"), m = b(e.showBorder), c = b(e.textAlign);
592
592
  g(() => e.editable || !e.readonly);
593
- const i = g(() => e.editable && !e.disabled && !e.readonly), l = g(() => !e.disabled && s.value), r = g(() => n.value === "" || n.value === null || n.value === void 0), u = g(() => e.placeholder), y = g(() => e.readonly || !e.editable), f = g(() => e.enableTitle ? n.value : ""), T = g(() => ({
593
+ const i = g(() => e.editable && !e.disabled && !e.readonly), u = g(() => !e.disabled && l.value), r = g(() => n.value === "" || n.value === null || n.value === void 0), s = g(() => e.placeholder), y = g(() => e.readonly || !e.editable), f = g(() => e.enableTitle ? n.value : ""), T = g(() => ({
594
594
  "form-control": !0,
595
595
  // 'f-utils-fill': true,
596
596
  "text-left": c.value === "left",
@@ -603,15 +603,15 @@ function De(e, t, n, o) {
603
603
  "f-state-editable": !1,
604
604
  "f-state-readonly": !0
605
605
  // 'f-state-focus': hasFocused.value
606
- })), S = g(() => d.value ? "" : "border-width : 0 ");
606
+ })), S = g(() => m.value ? "" : "border-width : 0 ");
607
607
  return {
608
608
  // changeTextBoxValue,
609
609
  disabled: a,
610
610
  displayText: o,
611
611
  editable: i,
612
- hasFocused: l,
612
+ hasFocused: u,
613
613
  inputGroupClass: k,
614
- inputType: m,
614
+ inputType: d,
615
615
  isEmpty: r,
616
616
  modelValue: n,
617
617
  readonly: y,
@@ -623,29 +623,29 @@ function De(e, t, n, o) {
623
623
  // onKeyup,
624
624
  // onMousedown,
625
625
  // onTextBoxValueChange,
626
- placeholder: u,
626
+ placeholder: s,
627
627
  textBoxClass: T,
628
628
  textBoxTitle: f,
629
629
  inputGroupStyle: S
630
630
  };
631
631
  }
632
632
  function X(e, t, n) {
633
- const o = b(!1), a = g(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: m, hasFocused: d, isEmpty: c } = n;
633
+ const o = b(!1), a = g(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: l, displayText: d, hasFocused: m, isEmpty: c } = n;
634
634
  function i(T) {
635
635
  o.value = T;
636
636
  }
637
- E(m, () => {
638
- d != null && d.value ? i(!!(m != null && m.value)) : i(!1);
637
+ E(d, () => {
638
+ m != null && m.value ? i(!!(d != null && d.value)) : i(!1);
639
639
  });
640
- const l = g(() => ({
640
+ const u = g(() => ({
641
641
  "input-group-text": !0,
642
642
  "input-group-clear": !0
643
643
  })), r = g(() => ({
644
644
  width: "24px",
645
645
  display: o.value ? "flex" : "none"
646
646
  }));
647
- function u(T) {
648
- T.stopPropagation(), a.value && (s("", !0), i(!o.value), t.emit("clear"));
647
+ function s(T) {
648
+ T.stopPropagation(), a.value && (l("", !0), i(!o.value), t.emit("clear"));
649
649
  }
650
650
  function y(T) {
651
651
  a.value && !c.value && i(!0);
@@ -653,10 +653,10 @@ function X(e, t, n) {
653
653
  function f(T) {
654
654
  a.value && i(!1);
655
655
  }
656
- return { clearButtonClass: l, clearButtonStyle: r, hasShownClearButton: o, onClearValue: u, onMouseEnter: y, onMouseLeave: f, shouldShowClearButton: a };
656
+ return { clearButtonClass: u, clearButtonStyle: r, hasShownClearButton: o, onClearValue: s, onMouseEnter: y, onMouseLeave: f, shouldShowClearButton: a };
657
657
  }
658
658
  const Ee = ["moz", "ms", "webkit"];
659
- function Oe() {
659
+ function Ve() {
660
660
  let e = 0;
661
661
  return (t) => {
662
662
  const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
@@ -665,15 +665,15 @@ function Oe() {
665
665
  return e = n + o, a;
666
666
  };
667
667
  }
668
- function Ve() {
668
+ function Oe() {
669
669
  if (typeof window > "u")
670
670
  return () => 0;
671
671
  if (window.requestAnimationFrame)
672
672
  return window.requestAnimationFrame.bind(window);
673
673
  const e = Ee.filter((t) => `${t}RequestAnimationFrame` in window)[0];
674
- return e ? window[`${e}RequestAnimationFrame`] : Oe();
674
+ return e ? window[`${e}RequestAnimationFrame`] : Ve();
675
675
  }
676
- Ve();
676
+ Oe();
677
677
  const Le = (e) => {
678
678
  const t = e;
679
679
  return t.install = function(n) {
@@ -688,45 +688,45 @@ function Y(e, t) {
688
688
  })), appendedContent: n, shouldShowAppendedButton: a };
689
689
  }
690
690
  function K(e, t, n, o) {
691
- const { appendedContent: a } = o, s = b(e.enableViewPassword), m = g(() => e.type === "password"), d = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', c = '<span class="f-icon f-icon-eye"></span>', i = b(!1);
692
- E(() => [e.readonly, e.disabled], ([u, y]) => {
693
- m.value && (n.value = u || y ? "password" : n.value, a.value = u || y ? c : a.value);
691
+ const { appendedContent: a } = o, l = b(e.enableViewPassword), d = g(() => e.type === "password"), m = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', c = '<span class="f-icon f-icon-eye"></span>', i = b(!1);
692
+ E(() => [e.readonly, e.disabled], ([s, y]) => {
693
+ d.value && (n.value = s || y ? "password" : n.value, a.value = s || y ? c : a.value);
694
694
  });
695
- function l() {
696
- return i.value = !i.value, n.value = i.value ? "text" : "password", a.value = i.value ? d : c, !1;
695
+ function u() {
696
+ return i.value = !i.value, n.value = i.value ? "text" : "password", a.value = i.value ? m : c, !1;
697
697
  }
698
698
  function r() {
699
- n.value = m.value ? "password" : "text", a.value = m.value ? s.value ? c : "" : a.value;
699
+ n.value = d.value ? "password" : "text", a.value = d.value ? l.value ? c : "" : a.value;
700
700
  }
701
- return r(), { isPassword: m, onClickAppendedButton: l };
701
+ return r(), { isPassword: d, onClickAppendedButton: u };
702
702
  }
703
- function Ne(e, t, n) {
703
+ function Ie(e, t, n) {
704
704
  const o = b(), {
705
705
  onBlurTextBox: a,
706
- onFocusTextBox: s,
707
- onInput: m,
708
- onKeyDown: d,
706
+ onFocusTextBox: l,
707
+ onInput: d,
708
+ onKeyDown: m,
709
709
  textBoxValue: c
710
- } = n, i = g(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), l = g(() => ({
710
+ } = n, i = g(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), u = g(() => ({
711
711
  "form-control": !0,
712
712
  "f-utils-fill": !0
713
713
  })), r = g(() => ({
714
714
  "text-align": e.textAlign
715
715
  }));
716
- function u(T) {
716
+ function s(T) {
717
717
  T.stopPropagation();
718
718
  }
719
719
  function y() {
720
720
  e.selectOnCreated, e.focusOnCreated;
721
721
  }
722
722
  async function f(T) {
723
- s(T), await z, y();
723
+ l(T), await z, y();
724
724
  }
725
725
  return L(async () => {
726
726
  await z, y();
727
727
  }), () => B("input", {
728
728
  ref: o,
729
- class: l.value,
729
+ class: u.value,
730
730
  style: r.value,
731
731
  type: "text",
732
732
  value: c.value,
@@ -734,19 +734,19 @@ function Ne(e, t, n) {
734
734
  readonly: e.readonly || !e.editable,
735
735
  placeholder: i.value,
736
736
  onBlur: a,
737
- onChange: u,
737
+ onChange: s,
738
738
  onFocus: f,
739
- onInput: m,
740
- onKeydown: d
739
+ onInput: d,
740
+ onKeydown: m
741
741
  }, null);
742
742
  }
743
- function Ie(e, t, n) {
743
+ function Ne(e, t, n) {
744
744
  const {
745
745
  canDownward: o,
746
746
  canUpward: a,
747
- onClickDownButton: s,
748
- onClickUpButton: m
749
- } = n, d = g(() => ({
747
+ onClickDownButton: l,
748
+ onClickUpButton: d
749
+ } = n, m = g(() => ({
750
750
  "input-group-append": !0,
751
751
  "btn-group": !0,
752
752
  "btn-group-number": !0
@@ -757,97 +757,97 @@ function Ie(e, t, n) {
757
757
  })), i = g(() => ({
758
758
  cursor: a() ? "pointer" : "not-allowed",
759
759
  "margin-left": 0
760
- })), l = g(() => ({
760
+ })), u = g(() => ({
761
761
  cursor: o() ? "pointer" : "not-allowed",
762
762
  "margin-left": 0
763
763
  }));
764
764
  return () => B("div", {
765
- class: d.value
765
+ class: m.value
766
766
  }, [B("button", {
767
767
  title: "upButton",
768
768
  class: c.value,
769
769
  style: i.value,
770
- onClick: m,
770
+ onClick: d,
771
771
  disabled: !a()
772
772
  }, [B("span", {
773
773
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
774
774
  }, null)]), B("button", {
775
775
  title: "downButton",
776
776
  class: c.value,
777
- style: l.value,
778
- onClick: s,
777
+ style: u.value,
778
+ onClick: l,
779
779
  disabled: !o()
780
780
  }, [B("span", {
781
781
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
782
782
  }, null)])]);
783
783
  }
784
784
  function je(e, t) {
785
- const n = ue(e, t), o = se(e, t, n), a = ce(e, t, o, n), s = pe(e, t, o, n, a), m = Ie(e, t, a), {
786
- displayValue: d,
785
+ const n = ue(e, t), o = se(e, t, n), a = ce(e, t, o, n), l = pe(e, t, o, n, a), d = Ne(e, t, a), {
786
+ displayValue: m,
787
787
  modelValue: c,
788
788
  getRealValue: i
789
- } = n, l = Ne(e, t, s), {
789
+ } = n, u = Ie(e, t, l), {
790
790
  format: r
791
791
  } = o, {
792
- isFocus: u
793
- } = s, y = g(() => !e.disabled && !e.readonly);
792
+ isFocus: s
793
+ } = l, y = g(() => !e.disabled && !e.readonly);
794
794
  return L(() => {
795
795
  const f = i(e.modelValue);
796
- d.value = r(f);
796
+ m.value = r(f);
797
797
  }), E(() => [e.value], ([f]) => {
798
798
  const T = i(f);
799
- c.value = T, d.value = r(T);
799
+ c.value = T, m.value = r(T);
800
800
  }), E(() => [e.modelValue], ([f]) => {
801
- f !== c.value && (c.value = f, !u.value && (d.value = r(i(f))));
801
+ f !== c.value && (c.value = f, !s.value && (m.value = r(i(f))));
802
802
  }), E(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
803
- d.value = r(c.value);
803
+ m.value = r(c.value);
804
804
  }), () => B("div", {
805
805
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
806
- }, [l(), y.value && m()]);
806
+ }, [u(), y.value && d()]);
807
807
  }
808
808
  function Ge(e, t, n, o) {
809
- const a = b(), s = b(e.autocomplete), m = b(e.enableTitle), {
810
- isPassword: d
811
- } = n, c = b(e.minLength), i = b(e.maxLength), l = b(e.tabIndex), {
809
+ const a = b(), l = b(e.autocomplete), d = b(e.enableTitle), {
810
+ isPassword: m
811
+ } = n, c = b(e.minLength), i = b(e.maxLength), u = b(e.tabIndex), {
812
812
  disabled: r,
813
- displayText: u,
813
+ displayText: s,
814
814
  inputType: y,
815
815
  onBlur: f,
816
816
  onFocus: T,
817
817
  onInput: k,
818
818
  onClick: S,
819
819
  onKeydown: F,
820
- onKeyup: x,
820
+ onKeyup: P,
821
821
  onMousedown: M,
822
- onTextBoxValueChange: O,
822
+ onTextBoxValueChange: V,
823
823
  readonly: h,
824
824
  placeholder: C,
825
825
  textBoxClass: w,
826
- textBoxTitle: V
826
+ textBoxTitle: O
827
827
  } = o;
828
828
  return L(() => {
829
829
  e.selectOnCreated, e.focusOnCreated;
830
830
  }), () => B("input", {
831
831
  ref: a,
832
832
  name: "input-group-value",
833
- autocomplete: s.value,
833
+ autocomplete: l.value,
834
834
  class: w.value,
835
835
  disabled: r == null ? void 0 : r.value,
836
836
  maxlength: i.value,
837
837
  minlength: c.value,
838
838
  placeholder: C.value,
839
839
  readonly: h == null ? void 0 : h.value,
840
- tabindex: l.value,
841
- title: m.value && !d.value ? V.value : "",
840
+ tabindex: u.value,
841
+ title: d.value && !m.value ? O.value : "",
842
842
  type: y.value,
843
- value: u == null ? void 0 : u.value,
843
+ value: s == null ? void 0 : s.value,
844
844
  onBlur: f,
845
845
  onClick: S,
846
- onChange: O,
846
+ onChange: V,
847
847
  onFocus: T,
848
848
  onInput: k,
849
849
  onKeydown: F,
850
- onKeyup: x,
850
+ onKeyup: P,
851
851
  onMousedown: M
852
852
  }, null);
853
853
  }
@@ -869,20 +869,20 @@ function Ue(e, t) {
869
869
  }
870
870
  function J(e, t, n, o, a) {
871
871
  const {
872
- appendedButtonClass: s,
873
- appendedContent: m
874
- } = n, d = g(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), c = g(() => m.value && !t.slots.groupTextTemplate), i = g(() => !!t.slots.groupTextTemplate), {
875
- clearButtonClass: l,
872
+ appendedButtonClass: l,
873
+ appendedContent: d
874
+ } = n, m = g(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), c = g(() => d.value && !t.slots.groupTextTemplate), i = g(() => !!t.slots.groupTextTemplate), {
875
+ clearButtonClass: u,
876
876
  clearButtonStyle: r,
877
- onClearValue: u,
877
+ onClearValue: s,
878
878
  shouldShowClearButton: y
879
879
  } = o;
880
880
  function f() {
881
881
  return B("span", {
882
882
  id: "clearIcon",
883
- class: l.value,
883
+ class: u.value,
884
884
  style: r.value,
885
- onClick: (C) => u(C)
885
+ onClick: (C) => s(C)
886
886
  }, [B("i", {
887
887
  class: "f-icon modal_close"
888
888
  }, null)]);
@@ -894,46 +894,46 @@ function J(e, t, n, o, a) {
894
894
  t.emit("iconMouseLeave", C);
895
895
  }
896
896
  function S(C) {
897
- d.value && t.emit("clickHandle", {
897
+ m.value && t.emit("clickHandle", {
898
898
  originalEvent: C
899
899
  }), C.stopPropagation();
900
900
  }
901
901
  const F = e.type === "password" ? a.onClickAppendedButton : S;
902
- function x() {
902
+ function P() {
903
903
  return B("span", {
904
904
  class: "input-group-text",
905
905
  onMouseenter: (C) => T(C),
906
906
  onMouseleave: (C) => k(C),
907
- innerHTML: m.value,
907
+ innerHTML: d.value,
908
908
  onClick: (C) => F(C)
909
909
  }, null);
910
910
  }
911
911
  function M() {
912
912
  return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
913
913
  }
914
- function O() {
915
- return c.value ? x : i.value ? M : "";
914
+ function V() {
915
+ return c.value ? P : i.value ? M : "";
916
916
  }
917
- const h = O();
917
+ const h = V();
918
918
  return () => B("div", {
919
- class: s.value
919
+ class: l.value
920
920
  }, [y.value && f(), h && h()]);
921
921
  }
922
- const I = /* @__PURE__ */ Q({
922
+ const N = /* @__PURE__ */ Q({
923
923
  name: "FInputGroup",
924
924
  props: H,
925
925
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
926
926
  setup(e, t) {
927
927
  const n = b(e.modelValue), o = b(e.modelValue), a = Ae(e, t, n, o), {
928
- inputGroupClass: s,
929
- inputType: m,
930
- inputGroupStyle: d
928
+ inputGroupClass: l,
929
+ inputType: d,
930
+ inputGroupStyle: m
931
931
  } = a, c = Y(e), {
932
932
  shouldShowAppendedButton: i
933
- } = c, l = X(e, t, a), {
933
+ } = c, u = X(e, t, a), {
934
934
  onMouseEnter: r,
935
- onMouseLeave: u
936
- } = l, y = K(e, t, m, c), f = je(e, t), T = Ge(e, t, y, a), k = J(e, t, c, l, y), S = Ue(e, t), F = g(() => e.type === "number");
935
+ onMouseLeave: s
936
+ } = u, y = K(e, t, d, c), f = je(e, t), T = Ge(e, t, y, a), k = J(e, t, c, u, y), S = Ue(e, t), F = g(() => e.type === "number");
937
937
  E(() => [e.value], ([M]) => {
938
938
  n.value = M, o.value = M;
939
939
  }), E(() => [e.modelValue], ([M]) => {
@@ -941,14 +941,14 @@ const I = /* @__PURE__ */ Q({
941
941
  }), L(() => {
942
942
  e.value && (n.value = e.value, o.value = e.value);
943
943
  });
944
- const x = () => B(W, null, [B("div", {
944
+ const P = () => B(W, null, [B("div", {
945
945
  id: "inputGroup",
946
- class: s.value,
947
- style: d.value,
946
+ class: l.value,
947
+ style: m.value,
948
948
  onMouseenter: r,
949
- onMouseleave: u
949
+ onMouseleave: s
950
950
  }, [F.value ? f() : B(W, null, [S(), T(), i.value && k()])])]);
951
- return () => x();
951
+ return () => P();
952
952
  }
953
953
  });
954
954
  function He(e, t) {
@@ -957,43 +957,44 @@ function He(e, t) {
957
957
  function a(r) {
958
958
  return !1;
959
959
  }
960
- function s() {
960
+ function l() {
961
961
  return !1;
962
962
  }
963
- function m() {
963
+ function d() {
964
964
  return !1;
965
965
  }
966
- function d() {
966
+ function m() {
967
967
  return !0;
968
968
  }
969
969
  function c(r) {
970
970
  }
971
971
  function i() {
972
972
  }
973
- function l(r) {
973
+ function u(r) {
974
974
  return null;
975
975
  }
976
976
  return {
977
977
  canAccepts: a,
978
- checkCanDeleteComponent: s,
979
- checkCanMoveComponent: m,
980
- hideNestedPaddingInDesginerView: d,
978
+ checkCanDeleteComponent: l,
979
+ checkCanMoveComponent: d,
980
+ hideNestedPaddingInDesginerView: m,
981
981
  onAcceptMovedChildElement: c,
982
982
  resolveComponentContext: i,
983
983
  triggerBelongedComponentToMoveWhenMoved: n,
984
984
  triggerBelongedComponentToDeleteWhenDeleted: o,
985
- getPropsConfig: l
985
+ getPropsConfig: u
986
986
  };
987
987
  }
988
988
  class ee {
989
989
  static getEditorTypesByMDataType(t) {
990
- return this.fieldControlTypeMapping[t];
990
+ const n = this.fieldControlTypeMapping[t];
991
+ return n || [{ key: "", value: "" }];
991
992
  }
992
993
  }
993
994
  /**
994
995
  * <字段类型,可配置的控件类型列表>的映射
995
996
  */
996
- A(ee, "fieldControlTypeMapping", {
997
+ x(ee, "fieldControlTypeMapping", {
997
998
  String: [
998
999
  { key: p["input-group"].type, value: p["input-group"].name },
999
1000
  { key: p.lookup.type, value: p.lookup.name },
@@ -1050,22 +1051,27 @@ A(ee, "fieldControlTypeMapping", {
1050
1051
  });
1051
1052
  class $e {
1052
1053
  constructor(t, n) {
1053
- A(this, "componentId");
1054
- A(this, "viewModelId");
1055
- A(this, "eventsEditorUtils");
1056
- A(this, "formSchemaUtils");
1057
- A(this, "formMetadataConverter");
1058
- A(this, "designViewModelUtils");
1059
- A(this, "designViewModelField");
1060
- A(this, "controlCreatorUtils");
1061
- A(this, "designerHostService");
1062
- A(this, "metadataService", null);
1063
- A(this, "propertyConfig", {
1054
+ x(this, "componentId");
1055
+ x(this, "viewModelId");
1056
+ x(this, "eventsEditorUtils");
1057
+ x(this, "formSchemaUtils");
1058
+ x(this, "formMetadataConverter");
1059
+ x(this, "designViewModelUtils");
1060
+ x(this, "designViewModelField");
1061
+ x(this, "controlCreatorUtils");
1062
+ x(this, "designerHostService");
1063
+ x(this, "schemaService", null);
1064
+ x(this, "metadataService", null);
1065
+ x(this, "propertyConfig", {
1064
1066
  type: "object",
1065
1067
  categories: {}
1066
1068
  });
1067
1069
  var o;
1068
- 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;
1070
+ 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;
1071
+ }
1072
+ getTableInfo() {
1073
+ var t;
1074
+ return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
1069
1075
  }
1070
1076
  setDesignViewModelField(t) {
1071
1077
  const n = t.binding && t.binding.type === "Form" && t.binding.field;
@@ -1080,6 +1086,7 @@ class $e {
1080
1086
  changeFieldEditorType(t, n) {
1081
1087
  }
1082
1088
  getBasicPropConfig(t) {
1089
+ var o, a;
1083
1090
  var n = this;
1084
1091
  return this.setDesignViewModelField(t), {
1085
1092
  description: "Basic Information",
@@ -1101,7 +1108,8 @@ class $e {
1101
1108
  type: "combo-list",
1102
1109
  textField: "value",
1103
1110
  valueField: "key",
1104
- data: ee.getEditorTypesByMDataType(n.designViewModelField.type.name)
1111
+ data: ee.getEditorTypesByMDataType(((a = (o = n.designViewModelField) == null ? void 0 : o.type) == null ? void 0 : a.name) || ""),
1112
+ editable: !1
1105
1113
  }
1106
1114
  },
1107
1115
  label: {
@@ -1110,11 +1118,11 @@ class $e {
1110
1118
  $converter: "/converter/form-group-label.converter"
1111
1119
  }
1112
1120
  },
1113
- setPropertyRelates(o, a) {
1114
- if (o)
1115
- switch (o && o.propertyID) {
1121
+ setPropertyRelates(l, d) {
1122
+ if (l)
1123
+ switch (l && l.propertyID) {
1116
1124
  case "type": {
1117
- n.changeControlType(t, o);
1125
+ n.changeControlType(t, l);
1118
1126
  break;
1119
1127
  }
1120
1128
  }
@@ -1127,12 +1135,12 @@ class $e {
1127
1135
  * @param newControlType 新控件类型
1128
1136
  */
1129
1137
  changeControlType(t, n) {
1130
- var i, l, r, u, y;
1138
+ var i, u, r, s, y;
1131
1139
  const o = n.propertyValue, a = this.formSchemaUtils.getComponentById(this.componentId);
1132
- let s = this.getControlParentContainer(t.id, a);
1133
- if (!s)
1140
+ let l = this.getControlParentContainer(t.id, a);
1141
+ if (!l)
1134
1142
  return;
1135
- const m = s.contents.findIndex((f) => f.id === t.id), d = s.contents[m];
1143
+ const d = l.contents.findIndex((f) => f.id === t.id), m = l.contents[d];
1136
1144
  let c;
1137
1145
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1138
1146
  editor: {
@@ -1142,19 +1150,19 @@ class $e {
1142
1150
  require: this.designViewModelField.require,
1143
1151
  readonly: this.designViewModelField.readonly
1144
1152
  }, !1), c = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(c, {
1145
- id: d.id,
1146
- appearance: d.appearance,
1147
- size: d.size,
1148
- label: d.label
1153
+ id: m.id,
1154
+ appearance: m.appearance,
1155
+ size: m.size,
1156
+ label: m.label
1149
1157
  }), Object.assign(c.editor, {
1150
- isTextArea: c.isTextArea && d.isTextArea,
1158
+ isTextArea: c.isTextArea && m.isTextArea,
1151
1159
  type: o || "",
1152
- placeHolder: (i = d.editor) == null ? void 0 : i.placeHolder,
1153
- holdPlace: (l = d.editor) == null ? void 0 : l.holdPlace,
1154
- readonly: (r = d.editor) == null ? void 0 : r.readonly,
1155
- require: (u = d.editor) == null ? void 0 : u.require,
1156
- visible: (y = d.editor) == null ? void 0 : y.visible
1157
- }), s.contents.splice(m, 1, c);
1160
+ placeHolder: (i = m.editor) == null ? void 0 : i.placeHolder,
1161
+ holdPlace: (u = m.editor) == null ? void 0 : u.holdPlace,
1162
+ readonly: (r = m.editor) == null ? void 0 : r.readonly,
1163
+ require: (s = m.editor) == null ? void 0 : s.require,
1164
+ visible: (y = m.editor) == null ? void 0 : y.visible
1165
+ }), l.contents.splice(d, 1, c);
1158
1166
  }
1159
1167
  getAppearanceConfig(t = null) {
1160
1168
  return {
@@ -1269,7 +1277,7 @@ class ze extends $e {
1269
1277
  title: "组件信息",
1270
1278
  type: "input-group",
1271
1279
  $converter: "/converter/property-editor.converter"
1272
- }, n), s = Object.assign({
1280
+ }, n), l = Object.assign({
1273
1281
  readonly: {
1274
1282
  description: "",
1275
1283
  title: "只读",
@@ -1291,7 +1299,7 @@ class ze extends $e {
1291
1299
  type: "string"
1292
1300
  }
1293
1301
  }, o);
1294
- return { ...a, properties: { ...s } };
1302
+ return { ...a, properties: { ...l } };
1295
1303
  }
1296
1304
  }
1297
1305
  class We extends ze {
@@ -1304,35 +1312,35 @@ function qe(e, t) {
1304
1312
  canAccepts: n,
1305
1313
  checkCanDeleteComponent: o,
1306
1314
  checkCanMoveComponent: a,
1307
- hideNestedPaddingInDesginerView: s,
1308
- onAcceptMovedChildElement: m,
1309
- resolveComponentContext: d,
1315
+ hideNestedPaddingInDesginerView: l,
1316
+ onAcceptMovedChildElement: d,
1317
+ resolveComponentContext: m,
1310
1318
  triggerBelongedComponentToMoveWhenMoved: c,
1311
1319
  triggerBelongedComponentToDeleteWhenDeleted: i
1312
- } = He(e), l = e.schema;
1313
- function r(u) {
1314
- return new We(u, t).getPropertyConfig(l);
1320
+ } = He(e), u = e.schema;
1321
+ function r(s) {
1322
+ return new We(s, t).getPropertyConfig(u);
1315
1323
  }
1316
1324
  return {
1317
1325
  canAccepts: n,
1318
1326
  checkCanDeleteComponent: o,
1319
1327
  checkCanMoveComponent: a,
1320
- hideNestedPaddingInDesginerView: s,
1321
- onAcceptMovedChildElement: m,
1322
- resolveComponentContext: d,
1328
+ hideNestedPaddingInDesginerView: l,
1329
+ onAcceptMovedChildElement: d,
1330
+ resolveComponentContext: m,
1323
1331
  triggerBelongedComponentToMoveWhenMoved: c,
1324
1332
  triggerBelongedComponentToDeleteWhenDeleted: i,
1325
1333
  getPropsConfig: r
1326
1334
  };
1327
1335
  }
1328
1336
  function Qe(e, t, n) {
1329
- var O;
1337
+ var V;
1330
1338
  function o() {
1331
1339
  n != null && n.resolveComponentContext && n.resolveComponentContext();
1332
1340
  }
1333
1341
  o();
1334
- const a = n && n.getStyles && n.getStyles() || "", s = n && n.getDesignerClass && n.getDesignerClass() || "", m = b();
1335
- function d() {
1342
+ const a = n && n.getStyles && n.getStyles() || "", l = n && n.getDesignerClass && n.getDesignerClass() || "", d = b();
1343
+ function m() {
1336
1344
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
1337
1345
  }
1338
1346
  function c() {
@@ -1341,7 +1349,7 @@ function Qe(e, t, n) {
1341
1349
  function i() {
1342
1350
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
1343
1351
  }
1344
- function l() {
1352
+ function u() {
1345
1353
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
1346
1354
  }
1347
1355
  function r(h) {
@@ -1352,9 +1360,9 @@ function Qe(e, t, n) {
1352
1360
  const C = b(h == null ? void 0 : h.value.parent), w = r(C);
1353
1361
  return w || null;
1354
1362
  }
1355
- function u(h = t) {
1363
+ function s(h = t) {
1356
1364
  const { componentInstance: C, designerItemElementRef: w } = h;
1357
- return !C || !C.value ? null : C.value.canMove ? w : u(h.parent);
1365
+ return !C || !C.value ? null : C.value.canMove ? w : s(h.parent);
1358
1366
  }
1359
1367
  function y(h) {
1360
1368
  return !!n && n.canAccepts(h);
@@ -1371,48 +1379,48 @@ function Qe(e, t, n) {
1371
1379
  const { componentType: C } = h;
1372
1380
  let w = G(C, h);
1373
1381
  n && n.onResolveNewComponentSchema && (w = n.onResolveNewComponentSchema(h, w));
1374
- const V = C.toLowerCase().replace("-", "_");
1375
- return w && !w.id && w.type === C && (w.id = `${V}_${Math.random().toString().slice(2, 6)}`), w;
1382
+ const O = C.toLowerCase().replace("-", "_");
1383
+ return w && !w.id && w.type === C && (w.id = `${O}_${Math.random().toString().slice(2, 6)}`), w;
1376
1384
  }
1377
1385
  function F(h, C) {
1378
- const w = String(h.getAttribute("data-controltype")), V = h.getAttribute("data-feature"), N = V ? JSON.parse(V) : {};
1379
- N.parentComponentInstance = m.value;
1380
- let D = G(w, N);
1386
+ const w = String(h.getAttribute("data-controltype")), O = h.getAttribute("data-feature"), I = O ? JSON.parse(O) : {};
1387
+ I.parentComponentInstance = d.value;
1388
+ let D = G(w, I);
1381
1389
  n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(h, C, D));
1382
1390
  const j = w.toLowerCase().replace("-", "_");
1383
1391
  return D && !D.id && D.type === w && (D.id = `${j}_${Math.random().toString().slice(2, 6)}`), D;
1384
1392
  }
1385
- function x(h) {
1393
+ function P(h) {
1386
1394
  }
1387
1395
  function M(...h) {
1388
1396
  if (n && n.getPropsConfig)
1389
1397
  return n.getPropsConfig(...h);
1390
1398
  }
1391
- return m.value = {
1392
- canMove: d(),
1399
+ return d.value = {
1400
+ canMove: m(),
1393
1401
  canSelectParent: c(),
1394
1402
  canDelete: i(),
1395
- canNested: !l(),
1403
+ canNested: !u(),
1396
1404
  contents: t == null ? void 0 : t.schema.contents,
1397
1405
  elementRef: e,
1398
- parent: (O = t == null ? void 0 : t.parent) == null ? void 0 : O.componentInstance,
1406
+ parent: (V = t == null ? void 0 : t.parent) == null ? void 0 : V.componentInstance,
1399
1407
  schema: t == null ? void 0 : t.schema,
1400
1408
  styles: a,
1401
- designerClass: s,
1409
+ designerClass: l,
1402
1410
  canAccepts: y,
1403
1411
  getBelongedComponentInstance: r,
1404
- getDraggableDesignItemElement: u,
1412
+ getDraggableDesignItemElement: s,
1405
1413
  getDraggingDisplayText: f,
1406
1414
  getPropConfig: M,
1407
1415
  getDragScopeElement: T,
1408
1416
  onAcceptMovedChildElement: k,
1409
1417
  onAcceptNewChildElement: F,
1410
- onChildElementMovedOut: x,
1418
+ onChildElementMovedOut: P,
1411
1419
  addNewChildComponentSchema: S,
1412
1420
  updateDragAndDropRules: o,
1413
1421
  triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || b(!1),
1414
1422
  triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
1415
- }, m;
1423
+ }, d;
1416
1424
  }
1417
1425
  const Re = /* @__PURE__ */ Q({
1418
1426
  name: "FInputGroupDesign",
@@ -1420,43 +1428,43 @@ const Re = /* @__PURE__ */ Q({
1420
1428
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
1421
1429
  setup(e, t) {
1422
1430
  const n = b(e.modelValue), o = b(e.modelValue), a = De(e, t, n, o), {
1423
- inputGroupClass: s,
1424
- inputType: m,
1425
- inputGroupStyle: d
1431
+ inputGroupClass: l,
1432
+ inputType: d,
1433
+ inputGroupStyle: m
1426
1434
  } = a, c = Y(e), {
1427
1435
  shouldShowAppendedButton: i
1428
- } = c, l = X(e, t, a), {
1436
+ } = c, u = X(e, t, a), {
1429
1437
  onMouseEnter: r,
1430
- onMouseLeave: u
1431
- } = l, y = K(e, t, m, c), f = b(), T = q("designer-host-service"), k = q("design-item-context"), S = qe(k, T), F = Qe(f, k, S);
1438
+ onMouseLeave: s
1439
+ } = u, y = K(e, t, d, c), f = b(), T = q("designer-host-service"), k = q("design-item-context"), S = qe(k, T), F = Qe(f, k, S);
1432
1440
  L(() => {
1433
1441
  f.value.componentInstance = F;
1434
1442
  }), t.expose(F.value);
1435
- const x = J(e, t, c, l, y), M = b();
1443
+ const P = J(e, t, c, u, y), M = b();
1436
1444
  return () => B("div", {
1437
1445
  id: "inputGroup",
1438
1446
  ref: f,
1439
- class: s.value,
1440
- style: d.value,
1447
+ class: l.value,
1448
+ style: m.value,
1441
1449
  onMouseenter: r,
1442
- onMouseleave: u
1450
+ onMouseleave: s
1443
1451
  }, [B("input", {
1444
1452
  ref: M,
1445
1453
  class: "form-control",
1446
1454
  readonly: !0,
1447
1455
  placeholder: e.placeholder
1448
- }, null), i.value && x()]);
1456
+ }, null), i.value && P()]);
1449
1457
  }
1450
1458
  });
1451
- I.register = (e, t, n, o) => {
1452
- e["input-group"] = I, t["input-group"] = Z;
1459
+ N.register = (e, t, n, o) => {
1460
+ e["input-group"] = N, t["input-group"] = Z;
1453
1461
  };
1454
- I.registerDesigner = (e, t, n) => {
1462
+ N.registerDesigner = (e, t, n) => {
1455
1463
  e["input-group"] = Re, t["input-group"] = Z;
1456
1464
  };
1457
- const Je = Le(I);
1465
+ const Je = Le(N);
1458
1466
  export {
1459
- I as FInputGroup,
1467
+ N as FInputGroup,
1460
1468
  Je as default,
1461
1469
  H as inputGroupProps,
1462
1470
  Z as propsResolver