@farris/ui-vue 1.2.9 → 1.3.0

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 (236) hide show
  1. package/components/accordion/index.esm.js +63 -63
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +402 -323
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +98 -96
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +66 -66
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +118 -118
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +539 -460
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +135 -135
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1007 -312
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +97 -97
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +778 -700
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +472 -329
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2231 -1055
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +79 -79
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6408 -5034
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4762 -3511
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3442 -2742
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-outline/index.esm.js +14 -13
  40. package/components/designer-outline/index.umd.cjs +1 -1
  41. package/components/dropdown/index.esm.js +73 -73
  42. package/components/dropdown/index.umd.cjs +2 -2
  43. package/components/dynamic-form/index.css +1 -0
  44. package/components/dynamic-form/index.esm.js +2597 -1141
  45. package/components/dynamic-form/index.umd.cjs +1 -1
  46. package/components/dynamic-resolver/index.esm.js +114 -71
  47. package/components/dynamic-resolver/index.umd.cjs +1 -1
  48. package/components/dynamic-view/index.esm.js +303 -290
  49. package/components/dynamic-view/index.umd.cjs +1 -1
  50. package/components/events-editor/index.esm.js +171 -171
  51. package/components/events-editor/index.umd.cjs +1 -1
  52. package/components/expression-editor/index.esm.js +65 -65
  53. package/components/expression-editor/index.umd.cjs +1 -1
  54. package/components/external-container/index.css +1 -1
  55. package/components/external-container/index.esm.js +3075 -2586
  56. package/components/external-container/index.umd.cjs +1 -1
  57. package/components/field-selector/index.css +1 -1
  58. package/components/field-selector/index.esm.js +5272 -8511
  59. package/components/field-selector/index.umd.cjs +1 -1
  60. package/components/filter-bar/index.css +1 -1
  61. package/components/filter-bar/index.esm.js +1726 -1822
  62. package/components/filter-bar/index.umd.cjs +1 -1
  63. package/components/image-cropper/index.esm.js +126 -126
  64. package/components/image-cropper/index.umd.cjs +1 -1
  65. package/components/input-group/index.esm.js +620 -540
  66. package/components/input-group/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +88 -88
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +71 -71
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.css +1 -1
  72. package/components/list-view/index.esm.js +3582 -2356
  73. package/components/list-view/index.umd.cjs +1 -1
  74. package/components/lookup/index.css +1 -1
  75. package/components/lookup/index.esm.js +10752 -8972
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.css +1 -1
  78. package/components/mapping-editor/index.esm.js +5601 -5329
  79. package/components/mapping-editor/index.umd.cjs +1 -1
  80. package/components/message-box/index.css +1 -1
  81. package/components/message-box/index.esm.js +511 -471
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.css +1 -1
  84. package/components/modal/index.esm.js +438 -398
  85. package/components/modal/index.umd.cjs +1 -1
  86. package/components/nav/index.esm.js +535 -452
  87. package/components/nav/index.umd.cjs +2 -2
  88. package/components/notify/index.esm.js +59 -53
  89. package/components/notify/index.umd.cjs +1 -1
  90. package/components/number-range/index.esm.js +556 -477
  91. package/components/number-range/index.umd.cjs +1 -1
  92. package/components/number-spinner/index.esm.js +504 -425
  93. package/components/number-spinner/index.umd.cjs +1 -1
  94. package/components/order/index.css +1 -1
  95. package/components/order/index.esm.js +1833 -1054
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +100 -100
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +899 -870
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +576 -487
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/popover/index.esm.js +71 -70
  104. package/components/popover/index.umd.cjs +1 -1
  105. package/components/progress/index.esm.js +73 -73
  106. package/components/progress/index.umd.cjs +2 -2
  107. package/components/property-editor/index.css +1 -1
  108. package/components/property-editor/index.esm.js +1916 -1220
  109. package/components/property-editor/index.umd.cjs +3 -3
  110. package/components/property-panel/index.esm.js +783 -886
  111. package/components/property-panel/index.umd.cjs +1 -1
  112. package/components/query-solution/index.css +1 -1
  113. package/components/query-solution/index.esm.js +3632 -2556
  114. package/components/query-solution/index.umd.cjs +1 -1
  115. package/components/radio-button/index.esm.js +72 -72
  116. package/components/radio-button/index.umd.cjs +1 -1
  117. package/components/radio-group/index.esm.js +484 -405
  118. package/components/radio-group/index.umd.cjs +1 -1
  119. package/components/rate/index.esm.js +152 -152
  120. package/components/rate/index.umd.cjs +1 -1
  121. package/components/response-layout/index.esm.js +73 -73
  122. package/components/response-layout/index.umd.cjs +1 -1
  123. package/components/response-layout-editor/index.css +1 -1
  124. package/components/response-layout-editor/index.esm.js +1081 -1043
  125. package/components/response-layout-editor/index.umd.cjs +1 -1
  126. package/components/response-toolbar/index.esm.js +753 -738
  127. package/components/response-toolbar/index.umd.cjs +1 -1
  128. package/components/schema-selector/index.css +1 -1
  129. package/components/schema-selector/index.esm.js +4418 -4177
  130. package/components/schema-selector/index.umd.cjs +2 -2
  131. package/components/search-box/index.esm.js +119 -119
  132. package/components/search-box/index.umd.cjs +1 -1
  133. package/components/section/index.esm.js +92 -91
  134. package/components/section/index.umd.cjs +1 -1
  135. package/components/smoke-detector/index.esm.js +59 -59
  136. package/components/smoke-detector/index.umd.cjs +1 -1
  137. package/components/splitter/index.esm.js +103 -103
  138. package/components/splitter/index.umd.cjs +1 -1
  139. package/components/step/index.esm.js +85 -85
  140. package/components/step/index.umd.cjs +1 -1
  141. package/components/switch/index.esm.js +457 -378
  142. package/components/switch/index.umd.cjs +1 -1
  143. package/components/tabs/index.css +1 -1
  144. package/components/tabs/index.esm.js +1696 -1617
  145. package/components/tabs/index.umd.cjs +1 -1
  146. package/components/tags/index.esm.js +53 -53
  147. package/components/tags/index.umd.cjs +1 -1
  148. package/components/text/index.esm.js +268 -268
  149. package/components/text/index.umd.cjs +1 -1
  150. package/components/textarea/index.esm.js +420 -341
  151. package/components/textarea/index.umd.cjs +1 -1
  152. package/components/time-picker/index.css +1 -1
  153. package/components/time-picker/index.esm.js +1062 -981
  154. package/components/time-picker/index.umd.cjs +1 -1
  155. package/components/transfer/index.css +1 -1
  156. package/components/transfer/index.esm.js +381 -379
  157. package/components/transfer/index.umd.cjs +1 -1
  158. package/components/tree-grid/index.css +1 -1
  159. package/components/tree-grid/index.esm.js +5252 -9560
  160. package/components/tree-grid/index.umd.cjs +1 -1
  161. package/components/tree-view/index.css +1 -0
  162. package/components/tree-view/index.esm.js +3920 -2692
  163. package/components/tree-view/index.umd.cjs +1 -1
  164. package/components/uploader/index.esm.js +373 -367
  165. package/components/uploader/index.umd.cjs +2 -2
  166. package/components/verify-detail/index.esm.js +92 -92
  167. package/components/verify-detail/index.umd.cjs +1 -1
  168. package/components/video/index.esm.js +597 -417
  169. package/components/video/index.umd.cjs +1 -1
  170. package/components/weather/index.esm.js +251 -251
  171. package/components/weather/index.umd.cjs +4 -4
  172. package/farris.all.esm.js +17125 -16176
  173. package/farris.all.umd.cjs +8 -8
  174. package/index.css +1 -1
  175. package/package.json +1 -1
  176. package/types/capsule/src/capsule.props.d.ts +2 -2
  177. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  178. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  179. package/types/common/index.d.ts +1 -0
  180. package/types/common/types.d.ts +1 -1
  181. package/types/common/utils/encrypt.d.ts +2 -0
  182. package/types/component/src/component.props.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +1 -1
  184. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  185. package/types/components.d.ts +1 -0
  186. package/types/data-grid/index.d.ts +5 -2
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  189. package/types/data-view/composition/types.d.ts +18 -1
  190. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  191. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  193. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  194. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  195. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  196. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  197. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  198. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  199. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  200. package/types/dynamic-form/src/types.d.ts +12 -1
  201. package/types/dynamic-resolver/index.d.ts +1 -0
  202. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  203. package/types/dynamic-resolver/src/types.d.ts +9 -0
  204. package/types/dynamic-view/index.d.ts +1 -0
  205. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  206. package/types/index.d.ts +2 -0
  207. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  208. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  209. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  210. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  211. package/types/lookup/src/composition/types.d.ts +8 -0
  212. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  213. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  214. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  215. package/types/lookup/src/composition/use-http.d.ts +9 -5
  216. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  217. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  218. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  219. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  220. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  221. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  222. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  223. package/types/modal/src/modal.component.d.ts +3 -0
  224. package/types/modal/src/modal.props.d.ts +4 -0
  225. package/types/page-header/src/page-header.props.d.ts +1 -0
  226. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  227. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  228. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  229. package/types/response-layout-editor/src/type.d.ts +21 -0
  230. package/types/tabs/src/tabs.props.d.ts +1 -0
  231. package/types/tree-grid/index.d.ts +8 -2
  232. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  233. package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
  234. package/types/modal/src/composition/use-esc.d.ts +0 -1
  235. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  236. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,103 +1,104 @@
1
- var ae = Object.defineProperty;
2
- var re = (e, t, n) => t in e ? ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var A = (e, t, n) => re(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as b, computed as y, watch as V, onMounted as G, nextTick as z, createVNode as B, reactive as ie, withDirectives as le, resolveDirective as ue, defineComponent as Q, Fragment as J, inject as Z } from "vue";
5
- import { cloneDeep as se } from "lodash-es";
1
+ var ie = Object.defineProperty;
2
+ var le = (e, n, t) => n in e ? ie(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var x = (e, n, t) => le(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import { ref as h, computed as g, watch as D, onMounted as N, nextTick as z, createVNode as B, reactive as se, withDirectives as ue, resolveDirective as ce, defineComponent as _, Fragment as R, inject as J } from "vue";
5
+ import { isPlainObject as X, cloneDeep as Q } from "lodash-es";
6
6
  import "bignumber.js";
7
- import { useNumber as ce, useFormat as de, useSpinner as pe, useTextBox as fe } from "../number-spinner/index.esm.js";
8
- import { getSchemaByType as _ } from "../dynamic-resolver/index.esm.js";
9
- const X = {}, Y = {};
7
+ import { useNumber as de, useFormat as pe, useSpinner as fe, useTextBox as me } from "../number-spinner/index.esm.js";
8
+ import { getSchemaByType as Z } from "../dynamic-resolver/index.esm.js";
9
+ import { useResponseLayoutEditorSetting as ye } from "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
10
+ const Y = {}, K = {};
10
11
  function q(e) {
11
- const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), d = Object.keys(t).reduce((s, i) => ((!a || !o.find((u) => u == i)) && (s[i] = t[i].type === "object" && t[i].properties ? q(t[i]) : se(t[i].default)), s), {});
12
- return (!a || !o.find((s) => s == "id")) && (d.id = `${n}-${Date.now()}`), d;
12
+ const { properties: n, title: t, ignore: o } = e, a = o && Array.isArray(o), l = Object.keys(n).reduce((u, c) => ((!a || !o.find((i) => i == c)) && (u[c] = n[c].type === "object" && n[c].properties ? q(n[c]) : Q(n[c].default)), u), {});
13
+ return (!a || !o.find((u) => u == "id")) && (l.id = `${t}-${Date.now()}`), l;
13
14
  }
14
- function I(e, t = {}, n) {
15
- const o = X[e];
15
+ function $(e, n = {}, t) {
16
+ const o = Y[e];
16
17
  if (o) {
17
18
  let a = q(o);
18
- const d = Y[e];
19
- return a = d ? d({ getSchemaByType: I }, a, t, n) : a, a;
19
+ const l = K[e];
20
+ return a = l ? l({ getSchemaByType: $ }, a, n, t) : a, a;
20
21
  }
21
22
  return null;
22
23
  }
23
- function me(e, t) {
24
- const n = q(t);
25
- return Object.keys(e).reduce((o, a) => (o[a] && typeof o[a] == "object" ? Object.assign(o[a], e[a]) : o[a] = e[a], o), n), n;
24
+ function ge(e, n) {
25
+ const t = q(n);
26
+ return Object.keys(e).reduce((o, a) => (o[a] && X(o[a]) && X(e[a]) ? Object.assign(o[a], e[a]) : o[a] = e[a], o), t), t;
26
27
  }
27
- function ye(e, t) {
28
+ function ve(e, n) {
28
29
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
29
- if (t.has(a)) {
30
- const d = t.get(a);
31
- if (typeof d == "string")
32
- o[d] = e[a];
30
+ if (n.has(a)) {
31
+ const l = n.get(a);
32
+ if (typeof l == "string")
33
+ o[l] = e[a];
33
34
  else {
34
- const s = d(a, e[a], e);
35
- Object.assign(o, s);
35
+ const u = l(a, e[a], e);
36
+ Object.assign(o, u);
36
37
  }
37
38
  } else
38
39
  o[a] = e[a];
39
40
  return o;
40
41
  }, {});
41
42
  }
42
- function ve(e, t, n = /* @__PURE__ */ new Map()) {
43
- const o = me(e, t);
44
- return ye(o, n);
43
+ function he(e, n, t = /* @__PURE__ */ new Map()) {
44
+ const o = ge(e, n);
45
+ return ve(o, t);
45
46
  }
46
- function ge(e = {}) {
47
- function t(r, c, l, p) {
48
- if (typeof l == "number")
49
- return p[r].length === l;
50
- if (typeof l == "object") {
51
- const m = Object.keys(l)[0], v = l[m];
52
- if (m === "not")
53
- return Number(p[r].length) !== Number(v);
54
- if (m === "moreThan")
55
- return Number(p[r].length) >= Number(v);
56
- if (m === "lessThan")
57
- return Number(p[r].length) <= Number(v);
47
+ function be(e = {}) {
48
+ function n(r, d, s, p) {
49
+ if (typeof s == "number")
50
+ return p[r].length === s;
51
+ if (typeof s == "object") {
52
+ const y = Object.keys(s)[0], f = s[y];
53
+ if (y === "not")
54
+ return Number(p[r].length) !== Number(f);
55
+ if (y === "moreThan")
56
+ return Number(p[r].length) >= Number(f);
57
+ if (y === "lessThan")
58
+ return Number(p[r].length) <= Number(f);
58
59
  }
59
60
  return !1;
60
61
  }
61
- function n(r, c, l, p) {
62
- return p[r] && p[r].propertyValue && String(p[r].propertyValue.value) === String(l);
62
+ function t(r, d, s, p) {
63
+ return p[r] && p[r].propertyValue && String(p[r].propertyValue.value) === String(s);
63
64
  }
64
65
  const o = /* @__PURE__ */ new Map([
65
- ["length", t],
66
- ["getProperty", n]
66
+ ["length", n],
67
+ ["getProperty", t]
67
68
  ]);
68
- Object.keys(e).reduce((r, c) => (r.set(c, e[c]), r), o);
69
- function a(r, c) {
70
- const l = r;
71
- return typeof c == "number" ? [{ target: l, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: l, operator: "getProperty", param: r, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
69
+ Object.keys(e).reduce((r, d) => (r.set(d, e[d]), r), o);
70
+ function a(r, d) {
71
+ const s = r;
72
+ return typeof d == "number" ? [{ target: s, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: s, operator: "getProperty", param: r, value: !!d }] : typeof d == "object" ? Object.keys(d).map((p) => {
72
73
  if (p === "length")
73
- return { target: l, operator: "length", param: null, value: c[p] };
74
- const m = p, v = c[p];
75
- return { target: l, operator: "getProperty", param: m, value: v };
74
+ return { target: s, operator: "length", param: null, value: d[p] };
75
+ const y = p, f = d[p];
76
+ return { target: s, operator: "getProperty", param: y, value: f };
76
77
  }) : [];
77
78
  }
78
- function d(r) {
79
- return Object.keys(r).reduce((l, p) => {
80
- const m = a(p, r[p]);
81
- return l.push(...m), l;
79
+ function l(r) {
80
+ return Object.keys(r).reduce((s, p) => {
81
+ const y = a(p, r[p]);
82
+ return s.push(...y), s;
82
83
  }, []);
83
84
  }
84
- function s(r, c) {
85
+ function u(r, d) {
85
86
  if (o.has(r.operator)) {
86
- const l = o.get(r.operator);
87
- return l && l(r.target, r.param, r.value, c) || !1;
87
+ const s = o.get(r.operator);
88
+ return s && s(r.target, r.param, r.value, d) || !1;
88
89
  }
89
90
  return !1;
90
91
  }
91
- function i(r, c) {
92
- return d(r).reduce((m, v) => m && s(v, c), !0);
92
+ function c(r, d) {
93
+ return l(r).reduce((y, f) => y && u(f, d), !0);
93
94
  }
94
- function u(r, c) {
95
- const l = Object.keys(r), p = l.includes("allOf"), m = l.includes("anyOf"), v = p || m, T = (v ? r[v ? p ? "allOf" : "anyOf" : "allOf"] : [r]).map((E) => i(E, c));
95
+ function i(r, d) {
96
+ const s = Object.keys(r), p = s.includes("allOf"), y = s.includes("anyOf"), f = p || y, T = (f ? r[f ? p ? "allOf" : "anyOf" : "allOf"] : [r]).map((P) => c(P, d));
96
97
  return p ? !T.includes(!1) : T.includes(!0);
97
98
  }
98
- return { parseValueSchema: u };
99
+ return { parseValueSchema: i };
99
100
  }
100
- const f = {
101
+ const m = {
101
102
  button: { type: "button", name: "按钮", icon: "Button" },
102
103
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
103
104
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -134,25 +135,26 @@ const f = {
134
135
  uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
135
136
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
136
137
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
137
- "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
138
- }, be = {}, he = {};
139
- ge();
140
- function Ce(e, t, n = /* @__PURE__ */ new Map(), o = (s, i, u) => i, a = {}, d = (s) => s) {
141
- return X[t.title] = t, Y[t.title] = o, be[t.title] = a, he[t.title] = d, (s = {}) => {
142
- const i = ve(s, t, n), u = Object.keys(e).reduce((r, c) => (r[c] = e[c].default, r), {});
143
- return Object.assign(u, i);
138
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
139
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
140
+ }, Ce = {}, we = {};
141
+ be();
142
+ function Be(e, n, t = /* @__PURE__ */ new Map(), o = (u, c, i) => c, a = {}, l = (u) => u) {
143
+ return Y[n.title] = n, K[n.title] = o, Ce[n.title] = a, we[n.title] = l, (u = {}) => {
144
+ const c = he(u, n, t), i = Object.keys(e).reduce((r, d) => (r[d] = e[d].default, r), {});
145
+ return Object.assign(i, c);
144
146
  };
145
147
  }
146
- function we(e, t) {
147
- return { customClass: t.class, customStyle: t.style };
148
+ function Te(e, n) {
149
+ return { customClass: n.class, customStyle: n.style };
148
150
  }
149
- const Be = /* @__PURE__ */ new Map([
150
- ["appearance", we]
151
+ const ke = /* @__PURE__ */ new Map([
152
+ ["appearance", Te]
151
153
  ]);
152
- function Te(e, t, n) {
153
- return t;
154
+ function Me(e, n, t) {
155
+ return n;
154
156
  }
155
- const ke = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-design.gitee.io/input-group.schema.json", xe = "input-group", Se = "A Farris Input Component", Pe = "object", Ae = {
157
+ const Se = "https://json-schema.org/draft/2020-12/schema", xe = "https://farris-design.gitee.io/input-group.schema.json", Ae = "input-group", Ee = "A Farris Input Component", Pe = "object", Fe = {
156
158
  id: {
157
159
  description: "The unique identifier for a Input Group",
158
160
  type: "string"
@@ -354,18 +356,19 @@ const ke = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-
354
356
  type: "string",
355
357
  default: ""
356
358
  }
357
- }, Ee = [
359
+ }, Le = [
358
360
  "id",
359
361
  "type"
360
- ], Fe = {
361
- $schema: ke,
362
- $id: Me,
363
- title: xe,
364
- description: Se,
362
+ ], De = {
363
+ $schema: Se,
364
+ $id: xe,
365
+ title: Ae,
366
+ description: Ee,
365
367
  type: Pe,
366
- properties: Ae,
367
- required: Ee
368
+ properties: Fe,
369
+ required: Le
368
370
  }, W = {
371
+ id: { Type: String, default: "" },
369
372
  /** 是否自动完成 */
370
373
  autocomplete: { Type: String, default: "off" },
371
374
  /** 自定义CLASS */
@@ -431,118 +434,118 @@ const ke = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-
431
434
  * - input: 输入时更新
432
435
  */
433
436
  updateOn: { type: String, default: "blur" }
434
- }, R = Ce(W, Fe, Be, Te);
435
- function De(e, t, n, o) {
436
- const a = b(e.disabled), d = b(!1), s = b("text"), i = b(e.showBorder), u = b(e.textAlign), r = b(e.updateOn), c = y(() => e.editable || !e.readonly), l = y(() => e.editable && !e.disabled && !e.readonly), p = y(() => !e.disabled && d.value), m = y(() => n.value === "" || n.value === null || n.value === void 0), v = y(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), C = y(() => e.readonly || !e.editable), x = y(() => e.enableTitle ? n.value : ""), T = y(() => ({
437
+ }, ee = Be(W, De, ke, Me);
438
+ function Ie(e, n, t, o) {
439
+ const a = h(e.disabled), l = h(!1), u = h("text"), c = h(e.showBorder), i = h(e.textAlign), r = h(e.updateOn), d = g(() => e.editable || !e.readonly), s = g(() => e.editable && !e.disabled && !e.readonly), p = g(() => !e.disabled && l.value), y = g(() => t.value === "" || t.value === null || t.value === void 0), f = g(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), C = g(() => e.readonly || !e.editable), S = g(() => e.enableTitle ? t.value : ""), T = g(() => ({
437
440
  "form-control": !0,
438
441
  "f-utils-fill": !0,
439
- "text-left": u.value === "left",
440
- "text-center": u.value === "center",
441
- "text-right": u.value === "right"
442
- })), S = y(() => {
443
- const g = {
442
+ "text-left": i.value === "left",
443
+ "text-center": i.value === "center",
444
+ "text-right": i.value === "right"
445
+ })), A = g(() => {
446
+ const v = {
444
447
  "f-cmp-inputgroup": !0,
445
448
  "input-group": !0,
446
449
  "f-state-disable": a.value,
447
- "f-state-editable": l.value,
450
+ "f-state-editable": s.value,
448
451
  "f-state-readonly": C.value,
449
452
  "f-state-focus": p.value
450
453
  };
451
- return (e.customClass || "").split(" ").reduce((H, oe) => (H[oe] = !0, H), g), g;
452
- }), E = y(() => i.value ? "" : "border-width : 0 ");
453
- function k(g, F = !0) {
454
- n.value = g, o.value !== g && (o.value = g), F && t.emit("change", g), t.emit("update:modelValue", g), t.emit("update:value", g);
454
+ return (e.customClass || "").split(" ").reduce((H, re) => (H[re] = !0, H), v), v;
455
+ }), P = g(() => c.value ? "" : "border-width : 0 ");
456
+ function k(v, F = !0) {
457
+ t.value = v, o.value !== v && (o.value = v), F && n.emit("change", v), n.emit("update:modelValue", v), n.emit("update:value", v);
455
458
  }
456
- V(
459
+ D(
457
460
  () => e.modelValue,
458
- (g, F) => {
459
- g !== F && (n.value = g, o.value = g);
461
+ (v, F) => {
462
+ v !== F && (t.value = v, o.value = v);
460
463
  }
461
- ), V(() => e.disabled, (g, F) => {
462
- g !== F && (a.value = g);
464
+ ), D(() => e.disabled, (v, F) => {
465
+ v !== F && (a.value = v);
463
466
  });
464
- function O(g) {
465
- return d.value = !1, t.emit("blur", g), g.stopPropagation(), !1;
467
+ function I(v) {
468
+ return l.value = !1, n.emit("blur", v), v.stopPropagation(), !1;
466
469
  }
467
- function h(g) {
468
- t.emit("click", g);
470
+ function b(v) {
471
+ n.emit("click", v);
469
472
  }
470
- function w(g) {
471
- e.disabled || (i.value && (d.value = !0), c.value && t.emit("focus", g));
473
+ function w(v) {
474
+ e.disabled || (c.value && (l.value = !0), d.value && n.emit("focus", v));
472
475
  }
473
- function M(g) {
474
- t.emit("input", g.target.value);
475
- const F = g.target.value;
476
- o.value = F, r.value === "input" && (t.emit("update:modelValue", F), t.emit("update:value", F));
476
+ function M(v) {
477
+ n.emit("input", v.target.value);
478
+ const F = v.target.value;
479
+ o.value = F, r.value === "change" && (n.emit("update:modelValue", F), n.emit("update:value", F));
477
480
  }
478
- function P(g) {
479
- t.emit("keydown", g);
481
+ function E(v) {
482
+ n.emit("keydown", v);
480
483
  }
481
- function N(g) {
482
- t.emit("keyup", g);
484
+ function V(v) {
485
+ n.emit("keyup", v);
483
486
  }
484
- function D(g) {
485
- g.target.tagName !== "INPUT" && g.preventDefault(), g.stopPropagation();
487
+ function L(v) {
488
+ v.target.tagName !== "INPUT" && v.preventDefault(), v.stopPropagation();
486
489
  }
487
- function U(g) {
490
+ function G(v) {
488
491
  if (r.value === "blur") {
489
- const F = g.target.value;
490
- g.stopPropagation(), k(F);
492
+ const F = v.target.value;
493
+ v.stopPropagation(), k(F);
491
494
  }
492
495
  }
493
496
  return {
494
497
  changeTextBoxValue: k,
495
498
  disabled: a,
496
499
  displayText: o,
497
- editable: l,
500
+ editable: s,
498
501
  hasFocused: p,
499
- inputGroupClass: S,
500
- inputType: s,
501
- isEmpty: m,
502
- modelValue: n,
502
+ inputGroupClass: A,
503
+ inputType: u,
504
+ isEmpty: y,
505
+ modelValue: t,
503
506
  readonly: C,
504
- onBlur: O,
505
- onClick: h,
507
+ onBlur: I,
508
+ onClick: b,
506
509
  onFocus: w,
507
510
  onInput: M,
508
- onKeydown: P,
509
- onKeyup: N,
510
- onMousedown: D,
511
- onTextBoxValueChange: U,
512
- placeholder: v,
511
+ onKeydown: E,
512
+ onKeyup: V,
513
+ onMousedown: L,
514
+ onTextBoxValueChange: G,
515
+ placeholder: f,
513
516
  textBoxClass: T,
514
- textBoxTitle: x,
515
- inputGroupStyle: E
517
+ textBoxTitle: S,
518
+ inputGroupStyle: P
516
519
  };
517
520
  }
518
- function Ve(e, t, n, o) {
519
- const a = b(e.disabled), d = b(!1), s = b("text"), i = b(e.showBorder), u = b(e.textAlign);
520
- y(() => e.editable || !e.readonly);
521
- const r = y(() => e.editable && !e.disabled && !e.readonly), c = y(() => !e.disabled && d.value), l = y(() => n.value === "" || n.value === null || n.value === void 0), p = y(() => e.placeholder), m = y(() => e.readonly || !e.editable), v = y(() => e.enableTitle ? n.value : ""), C = y(() => ({
521
+ function Ve(e, n, t, o) {
522
+ const a = h(e.disabled), l = h(!1), u = h("text"), c = h(e.showBorder), i = h(e.textAlign);
523
+ g(() => e.editable || !e.readonly);
524
+ const r = g(() => e.editable && !e.disabled && !e.readonly), d = g(() => !e.disabled && l.value), s = g(() => t.value === "" || t.value === null || t.value === void 0), p = g(() => e.placeholder), y = g(() => e.readonly || !e.editable), f = g(() => e.enableTitle ? t.value : ""), C = g(() => ({
522
525
  "form-control": !0,
523
526
  // 'f-utils-fill': true,
524
- "text-left": u.value === "left",
525
- "text-center": u.value === "center",
526
- "text-right": u.value === "right"
527
- })), x = y(() => ({
527
+ "text-left": i.value === "left",
528
+ "text-center": i.value === "center",
529
+ "text-right": i.value === "right"
530
+ })), S = g(() => ({
528
531
  "f-cmp-inputgroup": !0,
529
532
  "input-group": !0,
530
533
  "f-state-disable": !0,
531
534
  "f-state-editable": !1,
532
535
  "f-state-readonly": !0
533
536
  // 'f-state-focus': hasFocused.value
534
- })), T = y(() => i.value ? "" : "border-width : 0 ");
537
+ })), T = g(() => c.value ? "" : "border-width : 0 ");
535
538
  return {
536
539
  // changeTextBoxValue,
537
540
  disabled: a,
538
541
  displayText: o,
539
542
  editable: r,
540
- hasFocused: c,
541
- inputGroupClass: x,
542
- inputType: s,
543
- isEmpty: l,
544
- modelValue: n,
545
- readonly: m,
543
+ hasFocused: d,
544
+ inputGroupClass: S,
545
+ inputType: u,
546
+ isEmpty: s,
547
+ modelValue: t,
548
+ readonly: y,
546
549
  // onBlur,
547
550
  // onClick,
548
551
  // onFocus,
@@ -553,44 +556,44 @@ function Ve(e, t, n, o) {
553
556
  // onTextBoxValueChange,
554
557
  placeholder: p,
555
558
  textBoxClass: C,
556
- textBoxTitle: v,
559
+ textBoxTitle: f,
557
560
  inputGroupStyle: T
558
561
  };
559
562
  }
560
- function K(e, t, n) {
561
- const o = b(!1), a = y(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: d, displayText: s, hasFocused: i, isEmpty: u } = n;
563
+ function te(e, n, t) {
564
+ const o = h(!1), a = g(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: l, displayText: u, hasFocused: c, isEmpty: i } = t;
562
565
  function r(C) {
563
566
  o.value = C;
564
567
  }
565
- V(s, () => {
566
- i != null && i.value ? r(!!(s != null && s.value)) : r(!1);
568
+ D(u, () => {
569
+ c != null && c.value ? r(!!(u != null && u.value)) : r(!1);
567
570
  });
568
- const c = y(() => ({
571
+ const d = g(() => ({
569
572
  "input-group-text": !0,
570
573
  "input-group-clear": !0
571
- })), l = y(() => ({
574
+ })), s = g(() => ({
572
575
  width: "24px",
573
576
  display: o.value ? "flex" : "none"
574
577
  }));
575
578
  function p(C) {
576
- C.stopPropagation(), a.value && (d("", !0), r(!o.value), t.emit("clear"));
579
+ C.stopPropagation(), a.value && (l("", !0), r(!o.value), n.emit("clear"));
577
580
  }
578
- function m(C) {
579
- a.value && !u.value && r(!0);
581
+ function y(C) {
582
+ a.value && !i.value && r(!0);
580
583
  }
581
- function v(C) {
584
+ function f(C) {
582
585
  a.value && r(!1);
583
586
  }
584
- return { clearButtonClass: c, clearButtonStyle: l, hasShownClearButton: o, onClearValue: p, onMouseEnter: m, onMouseLeave: v, shouldShowClearButton: a };
587
+ return { clearButtonClass: d, clearButtonStyle: s, hasShownClearButton: o, onClearValue: p, onMouseEnter: y, onMouseLeave: f, shouldShowClearButton: a };
585
588
  }
586
589
  const Oe = ["moz", "ms", "webkit"];
587
590
  function Ne() {
588
591
  let e = 0;
589
- return (t) => {
590
- const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
591
- t(n + o);
592
+ return (n) => {
593
+ const t = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (t - e)), a = setTimeout(() => {
594
+ n(t + o);
592
595
  }, o);
593
- return e = n + o, a;
596
+ return e = t + o, a;
594
597
  };
595
598
  }
596
599
  function je() {
@@ -598,358 +601,358 @@ function je() {
598
601
  return () => 0;
599
602
  if (window.requestAnimationFrame)
600
603
  return window.requestAnimationFrame.bind(window);
601
- const e = Oe.filter((t) => `${t}RequestAnimationFrame` in window)[0];
604
+ const e = Oe.filter((n) => `${n}RequestAnimationFrame` in window)[0];
602
605
  return e ? window[`${e}RequestAnimationFrame`] : Ne();
603
606
  }
604
607
  je();
605
- const Ge = (e) => {
606
- const t = e;
607
- return t.install = function(n) {
608
- n.component(t.name, e);
608
+ const Ue = (e) => {
609
+ const n = e;
610
+ return n.install = function(t) {
611
+ t.component(n.name, e);
609
612
  }, e;
610
613
  };
611
- function ee(e, t) {
612
- const n = b(e.groupText), o = y(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = y(() => e.enableClear || !!e.groupText);
613
- return { appendedButtonClass: y(() => ({
614
+ function ne(e, n) {
615
+ const t = h(e.groupText), o = g(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = g(() => e.enableClear || !!e.groupText);
616
+ return { appendedButtonClass: g(() => ({
614
617
  "input-group-append": !0,
615
618
  "append-force-show": o.value
616
- })), appendedContent: n, shouldShowAppendedButton: a };
619
+ })), appendedContent: t, shouldShowAppendedButton: a };
617
620
  }
618
- function te(e, t, n, o) {
619
- const { appendedContent: a } = o, d = b(e.enableViewPassword), s = y(() => e.type === "password"), i = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', r = b(!1);
620
- V(() => [e.readonly, e.disabled], ([p, m]) => {
621
- s.value && (n.value = p || m ? "password" : n.value, a.value = p || m ? u : a.value);
621
+ function oe(e, n, t, o) {
622
+ const { appendedContent: a } = o, l = h(e.enableViewPassword), u = g(() => e.type === "password"), c = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', i = '<span class="f-icon f-icon-eye"></span>', r = h(!1);
623
+ D(() => [e.readonly, e.disabled], ([p, y]) => {
624
+ u.value && (t.value = p || y ? "password" : t.value, a.value = p || y ? i : a.value);
622
625
  });
623
- function c() {
624
- return r.value = !r.value, n.value = r.value ? "text" : "password", a.value = r.value ? i : u, !1;
626
+ function d() {
627
+ return r.value = !r.value, t.value = r.value ? "text" : "password", a.value = r.value ? c : i, !1;
625
628
  }
626
- function l() {
627
- n.value = s.value ? "password" : "text", a.value = s.value ? d.value ? u : "" : a.value;
629
+ function s() {
630
+ t.value = u.value ? "password" : "text", a.value = u.value ? l.value ? i : "" : a.value;
628
631
  }
629
- return l(), { isPassword: s, onClickAppendedButton: c };
632
+ return s(), { isPassword: u, onClickAppendedButton: d };
630
633
  }
631
- function Le(e, t, n) {
632
- const o = b(), {
634
+ function Ge(e, n, t) {
635
+ const o = h(), {
633
636
  onBlurTextBox: a,
634
- onFocusTextBox: d,
635
- onInput: s,
636
- onKeyDown: i,
637
- textBoxValue: u
638
- } = n, r = y(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), c = y(() => ({
637
+ onFocusTextBox: l,
638
+ onInput: u,
639
+ onKeyDown: c,
640
+ textBoxValue: i
641
+ } = t, r = g(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = g(() => ({
639
642
  "form-control": !0,
640
643
  "f-utils-fill": !0
641
- })), l = y(() => ({
644
+ })), s = g(() => ({
642
645
  "text-align": e.textAlign
643
646
  }));
644
647
  function p(C) {
645
648
  C.stopPropagation();
646
649
  }
647
- function m() {
650
+ function y() {
648
651
  e.selectOnCreated, e.focusOnCreated;
649
652
  }
650
- async function v(C) {
651
- d(C), await z, m();
653
+ async function f(C) {
654
+ l(C), await z, y();
652
655
  }
653
- return G(async () => {
654
- await z, m();
656
+ return N(async () => {
657
+ await z, y();
655
658
  }), () => B("input", {
656
659
  ref: o,
657
- class: c.value,
658
- style: l.value,
660
+ class: d.value,
661
+ style: s.value,
659
662
  type: "text",
660
- value: u.value,
663
+ value: i.value,
661
664
  disabled: e.disabled,
662
665
  readonly: e.readonly || !e.editable,
663
666
  placeholder: r.value,
664
667
  onBlur: a,
665
668
  onChange: p,
666
- onFocus: v,
667
- onInput: s,
668
- onKeydown: i
669
+ onFocus: f,
670
+ onInput: u,
671
+ onKeydown: c
669
672
  }, null);
670
673
  }
671
- function $e(e, t, n) {
674
+ function $e(e, n, t) {
672
675
  const {
673
676
  canDownward: o,
674
677
  canUpward: a,
675
- onClickDownButton: d,
676
- onClickUpButton: s
677
- } = n, i = y(() => ({
678
+ onClickDownButton: l,
679
+ onClickUpButton: u
680
+ } = t, c = g(() => ({
678
681
  "input-group-append": !0,
679
682
  "btn-group": !0,
680
683
  "btn-group-number": !0
681
- })), u = y(() => ({
684
+ })), i = g(() => ({
682
685
  btn: !0,
683
686
  "btn-secondary": !0,
684
687
  "btn-number-flag": !0
685
- })), r = y(() => ({
688
+ })), r = g(() => ({
686
689
  cursor: a() ? "pointer" : "not-allowed",
687
690
  "margin-left": 0
688
- })), c = y(() => ({
691
+ })), d = g(() => ({
689
692
  cursor: o() ? "pointer" : "not-allowed",
690
693
  "margin-left": 0
691
694
  }));
692
695
  return () => B("div", {
693
- class: i.value
696
+ class: c.value
694
697
  }, [B("button", {
695
698
  title: "upButton",
696
- class: u.value,
699
+ class: i.value,
697
700
  style: r.value,
698
- onClick: s,
701
+ onClick: u,
699
702
  disabled: !a()
700
703
  }, [B("span", {
701
704
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
702
705
  }, null)]), B("button", {
703
706
  title: "downButton",
704
- class: u.value,
705
- style: c.value,
706
- onClick: d,
707
+ class: i.value,
708
+ style: d.value,
709
+ onClick: l,
707
710
  disabled: !o()
708
711
  }, [B("span", {
709
712
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
710
713
  }, null)])]);
711
714
  }
712
- function Ue(e, t) {
713
- const n = ce(e, t), o = de(e, t, n), a = pe(e, t, o, n), d = fe(e, t, o, n, a), s = $e(e, t, a), {
714
- displayValue: i,
715
- modelValue: u,
715
+ function qe(e, n) {
716
+ const t = de(e, n), o = pe(e, n, t), a = fe(e, n, o, t), l = me(e, n, o, t, a), u = $e(e, n, a), {
717
+ displayValue: c,
718
+ modelValue: i,
716
719
  getRealValue: r
717
- } = n, c = Le(e, t, d), {
718
- format: l
720
+ } = t, d = Ge(e, n, l), {
721
+ format: s
719
722
  } = o, {
720
723
  isFocus: p
721
- } = d, m = y(() => !e.disabled && !e.readonly);
722
- return G(() => {
723
- const v = r(e.modelValue);
724
- i.value = l(v);
725
- }), V(() => [e.value], ([v]) => {
726
- const C = r(v);
727
- u.value = C, i.value = l(C);
728
- }), V(() => [e.modelValue], ([v]) => {
729
- v !== u.value && (u.value = v, !p.value && (i.value = l(r(v))));
730
- }), V(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
731
- i.value = l(u.value);
724
+ } = l, y = g(() => !e.disabled && !e.readonly);
725
+ return N(() => {
726
+ const f = r(e.modelValue);
727
+ c.value = s(f);
728
+ }), D(() => [e.value], ([f]) => {
729
+ const C = r(f);
730
+ i.value = C, c.value = s(C);
731
+ }), D(() => [e.modelValue], ([f]) => {
732
+ f !== i.value && (i.value = f, !p.value && (c.value = s(r(f))));
733
+ }), D(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
734
+ c.value = s(i.value);
732
735
  }), () => B("div", {
733
736
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
734
- }, [c(), m.value && s()]);
737
+ }, [d(), y.value && u()]);
735
738
  }
736
- function Ie(e, t, n, o) {
737
- const a = b(), d = b(e.autocomplete), s = b(e.enableTitle), {
738
- isPassword: i
739
- } = n, u = b(e.minLength), r = b(e.maxLength), c = b(e.tabIndex), {
740
- disabled: l,
739
+ function We(e, n, t, o) {
740
+ const a = h(), l = h(e.autocomplete), u = h(e.enableTitle), {
741
+ isPassword: c
742
+ } = t, i = h(e.minLength), r = h(e.maxLength), d = h(e.tabIndex), {
743
+ disabled: s,
741
744
  displayText: p,
742
- inputType: m,
743
- onBlur: v,
745
+ inputType: y,
746
+ onBlur: f,
744
747
  onFocus: C,
745
- onInput: x,
748
+ onInput: S,
746
749
  onClick: T,
747
- onKeydown: S,
748
- onKeyup: E,
750
+ onKeydown: A,
751
+ onKeyup: P,
749
752
  onMousedown: k,
750
- onTextBoxValueChange: O,
751
- readonly: h,
753
+ onTextBoxValueChange: I,
754
+ readonly: b,
752
755
  placeholder: w,
753
756
  textBoxClass: M,
754
- textBoxTitle: P
757
+ textBoxTitle: E
755
758
  } = o;
756
- return G(() => {
759
+ return N(() => {
757
760
  e.selectOnCreated, e.focusOnCreated;
758
761
  }), () => B("input", {
759
762
  ref: a,
760
763
  name: "input-group-value",
761
- autocomplete: d.value,
764
+ autocomplete: l.value,
762
765
  class: M.value,
763
- disabled: l == null ? void 0 : l.value,
766
+ disabled: s == null ? void 0 : s.value,
764
767
  maxlength: r.value,
765
- minlength: u.value,
768
+ minlength: i.value,
766
769
  placeholder: w.value,
767
- readonly: h == null ? void 0 : h.value,
768
- tabindex: c.value,
769
- title: s.value && !i.value ? P.value : "",
770
- type: m.value,
770
+ readonly: b == null ? void 0 : b.value,
771
+ tabindex: d.value,
772
+ title: u.value && !c.value ? E.value : "",
773
+ type: y.value,
771
774
  value: p == null ? void 0 : p.value,
772
- onBlur: v,
775
+ onBlur: f,
773
776
  onClick: T,
774
- onChange: O,
777
+ onChange: I,
775
778
  onFocus: C,
776
- onInput: x,
777
- onKeydown: S,
778
- onKeyup: E,
779
+ onInput: S,
780
+ onKeydown: A,
781
+ onKeyup: P,
779
782
  onMousedown: k
780
783
  }, null);
781
784
  }
782
- function qe(e, t) {
783
- const n = y(() => e.useExtendInfo && !!e.extendInfo), o = ie({
785
+ function He(e, n) {
786
+ const t = g(() => e.useExtendInfo && !!e.extendInfo), o = se({
784
787
  content: e.extendInfo
785
788
  });
786
789
  function a() {
787
- t.emit("updateExtendInfo");
790
+ n.emit("updateExtendInfo");
788
791
  }
789
- return () => n.value && le(B("span", {
792
+ return () => t.value && ue(B("span", {
790
793
  class: "input-group-before-tips",
791
794
  onMouseenter: a
792
795
  }, [B("i", {
793
796
  class: "f-icon f-icon-info-circle"
794
797
  }, null), B("b", {
795
798
  class: "tips-arrow"
796
- }, null)]), [[ue("tooltip"), o]]);
799
+ }, null)]), [[ce("tooltip"), o]]);
797
800
  }
798
- function ne(e, t, n, o, a) {
801
+ function ae(e, n, t, o, a) {
799
802
  const {
800
- appendedButtonClass: d,
801
- appendedContent: s
802
- } = n, i = y(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = y(() => s.value && !t.slots.groupTextTemplate), r = y(() => !!t.slots.groupTextTemplate), {
803
- clearButtonClass: c,
804
- clearButtonStyle: l,
803
+ appendedButtonClass: l,
804
+ appendedContent: u
805
+ } = t, c = g(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), i = g(() => u.value && !n.slots.groupTextTemplate), r = g(() => !!n.slots.groupTextTemplate), {
806
+ clearButtonClass: d,
807
+ clearButtonStyle: s,
805
808
  onClearValue: p,
806
- shouldShowClearButton: m
809
+ shouldShowClearButton: y
807
810
  } = o;
808
- function v() {
811
+ function f() {
809
812
  return B("span", {
810
813
  id: "clearIcon",
811
- class: c.value,
812
- style: l.value,
814
+ class: d.value,
815
+ style: s.value,
813
816
  onClick: (w) => p(w)
814
817
  }, [B("i", {
815
818
  class: "f-icon modal_close"
816
819
  }, null)]);
817
820
  }
818
821
  function C(w) {
819
- t.emit("iconMouseEnter", w);
822
+ n.emit("iconMouseEnter", w);
820
823
  }
821
- function x(w) {
822
- t.emit("iconMouseLeave", w);
824
+ function S(w) {
825
+ n.emit("iconMouseLeave", w);
823
826
  }
824
827
  function T(w) {
825
- i.value && t.emit("clickHandle", {
828
+ c.value && n.emit("clickHandle", {
826
829
  originalEvent: w
827
830
  }), w.stopPropagation();
828
831
  }
829
- const S = e.type === "password" ? a.onClickAppendedButton : T;
830
- function E() {
832
+ const A = e.type === "password" ? a.onClickAppendedButton : T;
833
+ function P() {
831
834
  return B("span", {
832
835
  class: "input-group-text",
833
836
  onMouseenter: (w) => C(w),
834
- onMouseleave: (w) => x(w),
835
- innerHTML: s.value,
836
- onClick: (w) => S(w)
837
+ onMouseleave: (w) => S(w),
838
+ innerHTML: u.value,
839
+ onClick: (w) => A(w)
837
840
  }, null);
838
841
  }
839
842
  function k() {
840
- return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
843
+ return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
841
844
  }
842
- function O() {
843
- return u.value ? E : r.value ? k : "";
845
+ function I() {
846
+ return i.value ? P : r.value ? k : "";
844
847
  }
845
- const h = O();
848
+ const b = I();
846
849
  return () => B("div", {
847
- class: d.value
848
- }, [m.value && v(), h && h()]);
850
+ class: l.value
851
+ }, [y.value && f(), b && b()]);
849
852
  }
850
- const L = /* @__PURE__ */ Q({
853
+ const j = /* @__PURE__ */ _({
851
854
  name: "FInputGroup",
852
855
  props: W,
853
856
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
854
- setup(e, t) {
855
- const n = b(e.modelValue), o = b(e.modelValue), a = De(e, t, n, o), {
856
- inputGroupClass: d,
857
- inputType: s,
858
- inputGroupStyle: i
859
- } = a, u = ee(e), {
857
+ setup(e, n) {
858
+ const t = h(e.modelValue), o = h(e.modelValue), a = Ie(e, n, t, o), {
859
+ inputGroupClass: l,
860
+ inputType: u,
861
+ inputGroupStyle: c
862
+ } = a, i = ne(e), {
860
863
  shouldShowAppendedButton: r
861
- } = u, c = K(e, t, a), {
862
- onMouseEnter: l,
864
+ } = i, d = te(e, n, a), {
865
+ onMouseEnter: s,
863
866
  onMouseLeave: p
864
- } = c, m = te(e, t, s, u), v = Ue(e, t), C = Ie(e, t, m, a), x = ne(e, t, u, c, m), T = qe(e, t), S = y(() => e.type === "number");
865
- V(() => [e.value], ([k]) => {
866
- n.value = k, o.value = k;
867
- }), V(() => [e.modelValue], ([k]) => {
868
- n.value = k, o.value = k;
869
- }), G(() => {
870
- e.value && (n.value = e.value, o.value = e.value);
867
+ } = d, y = oe(e, n, u, i), f = qe(e, n), C = We(e, n, y, a), S = ae(e, n, i, d, y), T = He(e, n), A = g(() => e.type === "number");
868
+ D(() => [e.value], ([k]) => {
869
+ t.value = k, o.value = k;
870
+ }), D(() => [e.modelValue], ([k]) => {
871
+ t.value = k, o.value = k;
872
+ }), N(() => {
873
+ e.value && (t.value = e.value, o.value = e.value);
871
874
  });
872
- const E = () => B(J, null, [B("div", {
873
- id: "inputGroup",
874
- class: d.value,
875
- style: i.value,
876
- onMouseenter: l,
875
+ const P = () => B(R, null, [B("div", {
876
+ id: e.id,
877
+ class: l.value,
878
+ style: c.value,
879
+ onMouseenter: s,
877
880
  onMouseleave: p
878
- }, [S.value ? v() : B(J, null, [T(), C(), r.value && x()])])]);
879
- return () => E();
881
+ }, [A.value ? f() : B(R, null, [T(), C(), r.value && S()])])]);
882
+ return () => P();
880
883
  }
881
884
  });
882
- function We(e, t) {
885
+ function ze(e, n) {
883
886
  e.schema;
884
- const n = b(!0), o = b(!0);
885
- function a(l) {
887
+ const t = h(!0), o = h(!0);
888
+ function a(s) {
886
889
  return !1;
887
890
  }
888
- function d() {
891
+ function l() {
889
892
  return !1;
890
893
  }
891
- function s() {
894
+ function u() {
892
895
  return !1;
893
896
  }
894
- function i() {
897
+ function c() {
895
898
  return !0;
896
899
  }
897
- function u(l) {
900
+ function i(s) {
898
901
  }
899
902
  function r() {
900
903
  }
901
- function c(l) {
904
+ function d(s) {
902
905
  return null;
903
906
  }
904
907
  return {
905
908
  canAccepts: a,
906
- checkCanDeleteComponent: d,
907
- checkCanMoveComponent: s,
908
- hideNestedPaddingInDesginerView: i,
909
- onAcceptMovedChildElement: u,
909
+ checkCanDeleteComponent: l,
910
+ checkCanMoveComponent: u,
911
+ hideNestedPaddingInDesginerView: c,
912
+ onAcceptMovedChildElement: i,
910
913
  resolveComponentContext: r,
911
- triggerBelongedComponentToMoveWhenMoved: n,
914
+ triggerBelongedComponentToMoveWhenMoved: t,
912
915
  triggerBelongedComponentToDeleteWhenDeleted: o,
913
- getPropsConfig: c
916
+ getPropsConfig: d
914
917
  };
915
918
  }
916
- class He {
917
- constructor(t, n) {
918
- A(this, "componentId");
919
- A(this, "viewModelId");
920
- A(this, "eventsEditorUtils");
921
- A(this, "formSchemaUtils");
922
- A(this, "formMetadataConverter");
923
- A(this, "designViewModelUtils");
924
- A(this, "designViewModelField");
925
- A(this, "controlCreatorUtils");
926
- A(this, "designerHostService");
927
- A(this, "schemaService", null);
928
- A(this, "metadataService", null);
929
- A(this, "propertyConfig", {
919
+ class Re {
920
+ constructor(n, t) {
921
+ x(this, "componentId");
922
+ x(this, "viewModelId");
923
+ x(this, "eventsEditorUtils");
924
+ x(this, "formSchemaUtils");
925
+ x(this, "formMetadataConverter");
926
+ x(this, "designViewModelUtils");
927
+ x(this, "designViewModelField");
928
+ x(this, "controlCreatorUtils");
929
+ x(this, "designerHostService");
930
+ x(this, "schemaService", null);
931
+ x(this, "metadataService", null);
932
+ x(this, "propertyConfig", {
930
933
  type: "object",
931
934
  categories: {}
932
935
  });
933
936
  var o;
934
- 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;
937
+ this.componentId = n, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
935
938
  }
936
939
  getTableInfo() {
937
- var t;
938
- return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
940
+ var n;
941
+ return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
939
942
  }
940
- setDesignViewModelField(t) {
941
- const n = t.binding && t.binding.type === "Form" && t.binding.field;
942
- if (n) {
943
+ setDesignViewModelField(n) {
944
+ const t = n.binding && n.binding.type === "Form" && n.binding.field;
945
+ if (t) {
943
946
  if (!this.designViewModelField) {
944
947
  const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
945
- this.designViewModelField = o.fields.find((a) => a.id === n);
948
+ this.designViewModelField = o.fields.find((a) => a.id === t);
946
949
  }
947
- t.updateOn = this.designViewModelField.updateOn;
950
+ n.updateOn = this.designViewModelField.updateOn;
948
951
  }
949
952
  }
950
- changeFieldEditorType(t, n) {
953
+ changeFieldEditorType(n, t) {
951
954
  }
952
- getBasicPropConfig(t) {
955
+ getBasicPropConfig(n) {
953
956
  return {
954
957
  description: "Basic Information",
955
958
  title: "基本信息",
@@ -968,13 +971,13 @@ class He {
968
971
  type: "combo-list",
969
972
  textField: "name",
970
973
  valueField: "value",
971
- data: [{ value: t.type, name: f[t.type].name }]
974
+ data: [{ value: n.type, name: m[n.type].name }]
972
975
  }
973
976
  }
974
977
  }
975
978
  };
976
979
  }
977
- getAppearanceConfig(t = null) {
980
+ getAppearanceConfig(n = null) {
978
981
  return {
979
982
  title: "样式",
980
983
  description: "Appearance",
@@ -994,90 +997,105 @@ class He {
994
997
  }
995
998
  };
996
999
  }
1000
+ /**
1001
+ *
1002
+ * @param propertyId
1003
+ * @param componentInstance
1004
+ * @returns
1005
+ */
1006
+ updateElementByParentContainer(n, t) {
1007
+ const o = t && t.parent && t.parent.schema;
1008
+ if (!o)
1009
+ return;
1010
+ const a = o.contents.findIndex((u) => u.id === n), l = Q(o.contents[a]);
1011
+ o.contents.splice(a, 1), o.contents.splice(a, 0, l);
1012
+ }
997
1013
  }
998
- const j = class j {
1014
+ const O = class O {
999
1015
  /**
1000
1016
  * 根据绑定字段类型获取可用的输入类控件
1001
1017
  */
1002
- static getEditorTypesByMDataType(t) {
1003
- const n = j.fieldControlTypeMapping[t];
1004
- return n || [{ key: "", value: "" }];
1018
+ static getEditorTypesByMDataType(n) {
1019
+ const t = O.fieldControlTypeMapping[n];
1020
+ return t || [{ key: "", value: "" }];
1005
1021
  }
1006
1022
  /**
1007
1023
  * 获取所有输入类控件
1008
1024
  */
1009
1025
  static getAllInputTypes() {
1010
- const t = [];
1011
- for (let n in j.fieldControlTypeMapping)
1012
- j.fieldControlTypeMapping[n].forEach((o) => {
1013
- t.find((a) => a.key === o.key && a.value === o.value) || t.push({ key: o.key, value: o.value });
1026
+ const n = [];
1027
+ for (let t in O.fieldControlTypeMapping)
1028
+ O.fieldControlTypeMapping[t].forEach((o) => {
1029
+ n.find((a) => a.key === o.key && a.value === o.value) || n.push({ key: o.key, value: o.value });
1014
1030
  });
1015
- return t;
1031
+ return n;
1016
1032
  }
1017
1033
  };
1018
1034
  /**
1019
1035
  * <字段类型,可配置的控件类型列表>的映射
1020
1036
  */
1021
- A(j, "fieldControlTypeMapping", {
1037
+ x(O, "fieldControlTypeMapping", {
1022
1038
  String: [
1023
- { key: f["input-group"].type, value: f["input-group"].name },
1024
- { key: f.lookup.type, value: f.lookup.name },
1025
- { key: f["date-picker"].type, value: f["date-picker"].name },
1026
- { key: f["check-box"].type, value: f["check-box"].name },
1027
- { key: f["radio-group"].type, value: f["radio-group"].name },
1028
- { key: f["combo-list"].type, value: f["combo-list"].name },
1029
- { key: f.textarea.type, value: f.textarea.name }
1039
+ { key: m["input-group"].type, value: m["input-group"].name },
1040
+ { key: m.lookup.type, value: m.lookup.name },
1041
+ { key: m["date-picker"].type, value: m["date-picker"].name },
1042
+ { key: m["check-box"].type, value: m["check-box"].name },
1043
+ { key: m["radio-group"].type, value: m["radio-group"].name },
1044
+ { key: m["combo-list"].type, value: m["combo-list"].name },
1045
+ { key: m.textarea.type, value: m.textarea.name }
1030
1046
  ],
1031
1047
  Text: [
1032
- { key: f.textarea.type, value: f.textarea.name },
1033
- { key: f.lookup.type, value: f.lookup.name }
1048
+ { key: m.textarea.type, value: m.textarea.name },
1049
+ { key: m.lookup.type, value: m.lookup.name }
1034
1050
  ],
1035
1051
  Decimal: [
1036
- { key: f["number-spinner"].type, value: f["number-spinner"].name }
1052
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
1037
1053
  ],
1038
1054
  Integer: [
1039
- { key: f["number-spinner"].type, value: f["number-spinner"].name }
1055
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
1040
1056
  ],
1041
1057
  Number: [
1042
- { key: f["number-spinner"].type, value: f["number-spinner"].name }
1058
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
1043
1059
  ],
1044
1060
  BigNumber: [
1045
- { key: f["number-spinner"].type, value: f["number-spinner"].name }
1061
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
1046
1062
  ],
1047
1063
  Date: [
1048
- { key: f["date-picker"].type, value: f["date-picker"].name }
1064
+ { key: m["date-picker"].type, value: m["date-picker"].name }
1049
1065
  ],
1050
1066
  DateTime: [
1051
- { key: f["date-picker"].type, value: f["date-picker"].name }
1067
+ { key: m["date-picker"].type, value: m["date-picker"].name }
1052
1068
  ],
1053
1069
  Boolean: [
1054
- { key: f.switch.type, value: f.switch.name },
1055
- { key: f["check-box"].type, value: f["check-box"].name }
1070
+ { key: m.switch.type, value: m.switch.name },
1071
+ { key: m["check-box"].type, value: m["check-box"].name }
1056
1072
  ],
1057
1073
  Enum: [
1058
- { key: f["combo-list"].type, value: f["combo-list"].name },
1059
- { key: f["radio-group"].type, value: f["radio-group"].name }
1074
+ { key: m["combo-list"].type, value: m["combo-list"].name },
1075
+ { key: m["radio-group"].type, value: m["radio-group"].name }
1060
1076
  ],
1061
1077
  Object: [
1062
- { key: f.lookup.type, value: f.lookup.name },
1063
- { key: f["combo-list"].type, value: f["combo-list"].name },
1064
- { key: f["radio-group"].type, value: f["radio-group"].name }
1078
+ { key: m.lookup.type, value: m.lookup.name },
1079
+ { key: m["combo-list"].type, value: m["combo-list"].name },
1080
+ { key: m["radio-group"].type, value: m["radio-group"].name }
1065
1081
  ]
1066
1082
  });
1067
- let $ = j;
1068
- const ze = b(0);
1069
- class Je extends He {
1070
- constructor(t, n) {
1071
- super(t, n);
1072
- }
1073
- getPropertyConfig(t, n) {
1074
- 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;
1075
- }
1076
- getBasicProperties(t, n) {
1077
- var s;
1078
- var o = this;
1083
+ let U = O;
1084
+ const Je = h(0);
1085
+ class Xe extends Re {
1086
+ constructor(t, o) {
1087
+ super(t, o);
1088
+ x(this, "responseLayoutEditorFunction");
1089
+ this.responseLayoutEditorFunction = ye(this.formSchemaUtils);
1090
+ }
1091
+ getPropertyConfig(t, o) {
1092
+ return this.propertyConfig.categories.basic = this.getBasicProperties(t, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t, o), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
1093
+ }
1094
+ getBasicProperties(t, o) {
1095
+ var c;
1096
+ var a = this;
1079
1097
  this.setDesignViewModelField(t);
1080
- const a = this.formSchemaUtils.getFormMetadataBasicInfo(), d = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1098
+ const l = this.formSchemaUtils.getFormMetadataBasicInfo(), u = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1081
1099
  return {
1082
1100
  description: "Basic Information",
1083
1101
  title: "基本信息",
@@ -1099,7 +1117,7 @@ class Je extends He {
1099
1117
  textField: "value",
1100
1118
  valueField: "key",
1101
1119
  editable: !1,
1102
- data: o.designViewModelField ? $.getEditorTypesByMDataType((s = o.designViewModelField.type) == null ? void 0 : s.name) : $.getAllInputTypes()
1120
+ data: a.designViewModelField ? U.getEditorTypesByMDataType((c = a.designViewModelField.type) == null ? void 0 : c.name) : U.getAllInputTypes()
1103
1121
  }
1104
1122
  },
1105
1123
  label: {
@@ -1116,7 +1134,7 @@ class Je extends He {
1116
1134
  bindingType: { enable: !1 },
1117
1135
  editorParams: {
1118
1136
  propertyData: t,
1119
- formBasicInfo: a
1137
+ formBasicInfo: l
1120
1138
  },
1121
1139
  columns: [
1122
1140
  { field: "name", title: "字段名称" },
@@ -1124,15 +1142,15 @@ class Je extends He {
1124
1142
  { field: "fieldType", title: "字段类型" }
1125
1143
  ],
1126
1144
  textField: "bindingField",
1127
- data: d
1145
+ data: u
1128
1146
  }
1129
1147
  }
1130
1148
  },
1131
- setPropertyRelates(i, u) {
1149
+ setPropertyRelates(i, r) {
1132
1150
  if (i)
1133
1151
  switch (i && i.propertyID) {
1134
1152
  case "type": {
1135
- o.changeControlType(t, i, n);
1153
+ a.changeControlType(t, i, o);
1136
1154
  break;
1137
1155
  }
1138
1156
  case "label": {
@@ -1143,7 +1161,8 @@ class Je extends He {
1143
1161
  }
1144
1162
  };
1145
1163
  }
1146
- getAppearanceProperties(t) {
1164
+ getAppearanceProperties(t, o) {
1165
+ var a = this;
1147
1166
  return {
1148
1167
  title: "样式",
1149
1168
  description: "Appearance",
@@ -1164,12 +1183,25 @@ class Je extends He {
1164
1183
  description: "响应式列宽",
1165
1184
  title: "响应式列宽",
1166
1185
  type: "boolean",
1167
- visible: !1,
1186
+ visible: !0,
1187
+ // 这个属性,标记当属性变更得时候触发重新更新属性
1188
+ refreshPanelAfterChanged: !0,
1168
1189
  editor: {
1169
- type: "response-layout-editor-setting"
1170
- },
1171
- $converter: "/converter/response-form-layout.converter"
1190
+ type: "response-layout-editor-setting",
1191
+ initialState: a.responseLayoutEditorFunction.checkCanOpenLayoutEditor(t, a.componentId)
1192
+ }
1172
1193
  }
1194
+ },
1195
+ setPropertyRelates(l, u) {
1196
+ if (l)
1197
+ switch (l && l.propertyID) {
1198
+ case "responseLayout":
1199
+ a.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, a.componentId || t.id), a.updateUnifiedLayoutAfterResponseLayoutChanged(a.componentId), a.updateElementByParentContainer(t.id, o), delete t.responseLayout;
1200
+ break;
1201
+ case "class":
1202
+ a.updateUnifiedLayoutAfterControlChanged(l.propertyValue, t.id, this.componentId), a.updateElementByParentContainer(t.id, o);
1203
+ break;
1204
+ }
1173
1205
  }
1174
1206
  };
1175
1207
  }
@@ -1181,44 +1213,44 @@ class Je extends He {
1181
1213
  * @param propertyData 控件DOM属性
1182
1214
  * @param newControlType 新控件类型
1183
1215
  */
1184
- changeControlType(t, n, o) {
1185
- var r, c, l, p;
1186
- const a = n.propertyValue, d = o && o.parent && o.parent.schema;
1187
- if (!d)
1216
+ changeControlType(t, o, a) {
1217
+ var d, s, p, y;
1218
+ const l = o.propertyValue, u = a && a.parent && a.parent.schema;
1219
+ if (!u)
1188
1220
  return;
1189
- const s = d.contents.findIndex((m) => m.id === t.id), i = d.contents[s];
1190
- let u;
1221
+ const c = u.contents.findIndex((f) => f.id === t.id), i = u.contents[c];
1222
+ let r;
1191
1223
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1192
1224
  editor: {
1193
- $type: a
1225
+ $type: l
1194
1226
  },
1195
1227
  name: this.designViewModelField.name,
1196
1228
  require: this.designViewModelField.require,
1197
1229
  readonly: this.designViewModelField.readonly
1198
- }, !1), u = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), u || (u = _("form-group") || {}, u.editor = _(a) || {}, delete u.editor.id, delete u.editor.binding, delete u.editor.appearance), Object.assign(u, {
1230
+ }, !1), r = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l)), r || (r = Z("form-group") || {}, r.editor = Z(l) || {}, delete r.editor.id, delete r.editor.binding, delete r.editor.appearance), Object.assign(r, {
1199
1231
  id: i.id,
1200
1232
  appearance: i.appearance,
1201
1233
  size: i.size,
1202
1234
  label: i.label,
1203
1235
  binding: i.binding,
1204
1236
  visible: i.visible
1205
- }), Object.assign(u.editor, {
1206
- isTextArea: u.isTextArea && i.isTextArea,
1207
- placeholder: (r = i.editor) == null ? void 0 : r.placeholder,
1208
- holdPlace: (c = i.editor) == null ? void 0 : c.holdPlace,
1209
- readonly: (l = i.editor) == null ? void 0 : l.readonly,
1210
- require: (p = i.editor) == null ? void 0 : p.require
1211
- }), d.contents.splice(s, 1), d.contents.splice(s, 0, u), o.schema = Object.assign(i, u), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1212
- (m) => m.classList.remove("dgComponentSelected")
1213
- ), ze.value++;
1214
- }
1215
- getComponentConfig(t, n = {}, o = {}) {
1216
- const a = Object.assign({
1237
+ }), Object.assign(r.editor, {
1238
+ isTextArea: r.isTextArea && i.isTextArea,
1239
+ placeholder: (d = i.editor) == null ? void 0 : d.placeholder,
1240
+ holdPlace: (s = i.editor) == null ? void 0 : s.holdPlace,
1241
+ readonly: (p = i.editor) == null ? void 0 : p.readonly,
1242
+ require: (y = i.editor) == null ? void 0 : y.require
1243
+ }), u.contents.splice(c, 1), u.contents.splice(c, 0, r), a.schema = Object.assign(i, r), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1244
+ (f) => f.classList.remove("dgComponentSelected")
1245
+ ), Je.value++;
1246
+ }
1247
+ getComponentConfig(t, o = {}, a = {}) {
1248
+ const l = Object.assign({
1217
1249
  description: "编辑器",
1218
1250
  title: "编辑器",
1219
1251
  type: "input-group",
1220
1252
  $converter: "/converter/property-editor.converter"
1221
- }, n), d = Object.assign({
1253
+ }, o), u = Object.assign({
1222
1254
  readonly: {
1223
1255
  description: "",
1224
1256
  title: "只读",
@@ -1239,174 +1271,222 @@ class Je extends He {
1239
1271
  title: "提示文本",
1240
1272
  type: "string"
1241
1273
  }
1242
- }, o);
1243
- return { ...a, properties: { ...d } };
1274
+ }, a);
1275
+ return { ...l, properties: { ...u } };
1276
+ }
1277
+ /**
1278
+ * 修改某一输入控件的样式后更新Form的统一布局配置
1279
+ * @param controlClass 控件样式
1280
+ * @param controlId 控件Id
1281
+ * @param componentId 控件所在组件id
1282
+ */
1283
+ updateUnifiedLayoutAfterControlChanged(t, o, a) {
1284
+ const l = t.split(" ");
1285
+ let u = l.find((s) => /^col-([1-9]|10|11|12)$/.test(s)), c = l.find((s) => /^col-md-([1-9]|10|11|12)$/.test(s)), i = l.find((s) => /^col-xl-([1-9]|10|11|12)$/.test(s)), r = l.find((s) => /^col-el-([1-9]|10|11|12)$/.test(s));
1286
+ u = u || "col-12", c = c || "col-md-" + u.replace("col-", ""), i = i || "col-xl-" + c.replace("col-md-", ""), r = r || "col-el-" + i.replace("col-xl-", "");
1287
+ const d = {
1288
+ id: o,
1289
+ columnInSM: parseInt(u.replace("col-", ""), 10),
1290
+ columnInMD: parseInt(c.replace("col-md-", ""), 10),
1291
+ columnInLG: parseInt(i.replace("col-xl-", ""), 10),
1292
+ columnInEL: parseInt(r.replace("col-el-", ""), 10)
1293
+ };
1294
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(a, d);
1295
+ }
1296
+ /**
1297
+ * 修改控件布局配置后更新Form统一布局配置
1298
+ * @param componentId 组件Id
1299
+ * @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
1300
+ */
1301
+ updateUnifiedLayoutAfterResponseLayoutChanged(t, o) {
1302
+ const { formNode: a } = this.responseLayoutEditorFunction.checkCanFindFormNode(t);
1303
+ if (!a || !a.unifiedLayout)
1304
+ return;
1305
+ const l = [];
1306
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(a, l, 1), o) {
1307
+ const f = l.find((C) => C.id === o.id);
1308
+ Object.assign(f || {}, o);
1309
+ }
1310
+ const u = l.map((f) => f.columnInSM), c = l.map((f) => f.columnInMD), i = l.map((f) => f.columnInLG), r = l.map((f) => f.columnInEL), d = this.checkIsUniqueColumn(u) ? u[0] : null, s = this.checkIsUniqueColumn(c) ? c[0] : null, p = this.checkIsUniqueColumn(i) ? i[0] : null, y = this.checkIsUniqueColumn(r) ? r[0] : null;
1311
+ Object.assign(a.unifiedLayout, {
1312
+ uniqueColClassInSM: d,
1313
+ uniqueColClassInMD: s,
1314
+ uniqueColClassInLG: p,
1315
+ uniqueColClassInEL: y
1316
+ });
1317
+ }
1318
+ /**
1319
+ * 校验宽度样式值是否一致
1320
+ */
1321
+ checkIsUniqueColumn(t) {
1322
+ const o = new Set(t);
1323
+ return Array.from(o).length === 1;
1244
1324
  }
1245
1325
  }
1246
- class Ze extends Je {
1247
- constructor(t, n) {
1248
- super(t, n);
1326
+ class Ze extends Xe {
1327
+ constructor(n, t) {
1328
+ super(n, t);
1249
1329
  }
1250
1330
  }
1251
- function _e(e, t) {
1331
+ function _e(e, n) {
1252
1332
  const {
1253
- canAccepts: n,
1333
+ canAccepts: t,
1254
1334
  checkCanDeleteComponent: o,
1255
1335
  checkCanMoveComponent: a,
1256
- hideNestedPaddingInDesginerView: d,
1257
- onAcceptMovedChildElement: s,
1258
- resolveComponentContext: i,
1259
- triggerBelongedComponentToMoveWhenMoved: u,
1336
+ hideNestedPaddingInDesginerView: l,
1337
+ onAcceptMovedChildElement: u,
1338
+ resolveComponentContext: c,
1339
+ triggerBelongedComponentToMoveWhenMoved: i,
1260
1340
  triggerBelongedComponentToDeleteWhenDeleted: r
1261
- } = We(e), c = e.schema;
1262
- function l(p, m) {
1263
- return new Ze(p, t).getPropertyConfig(c, m);
1341
+ } = ze(e), d = e.schema;
1342
+ function s(p, y) {
1343
+ return new Ze(p, n).getPropertyConfig(d, y);
1264
1344
  }
1265
1345
  return {
1266
- canAccepts: n,
1346
+ canAccepts: t,
1267
1347
  checkCanDeleteComponent: o,
1268
1348
  checkCanMoveComponent: a,
1269
- hideNestedPaddingInDesginerView: d,
1270
- onAcceptMovedChildElement: s,
1271
- resolveComponentContext: i,
1272
- triggerBelongedComponentToMoveWhenMoved: u,
1349
+ hideNestedPaddingInDesginerView: l,
1350
+ onAcceptMovedChildElement: u,
1351
+ resolveComponentContext: c,
1352
+ triggerBelongedComponentToMoveWhenMoved: i,
1273
1353
  triggerBelongedComponentToDeleteWhenDeleted: r,
1274
- getPropsConfig: l
1354
+ getPropsConfig: s
1275
1355
  };
1276
1356
  }
1277
- function Qe(e, t, n) {
1278
- var O;
1357
+ function Qe(e, n, t) {
1358
+ var I;
1279
1359
  function o() {
1280
- n != null && n.resolveComponentContext && n.resolveComponentContext();
1360
+ t != null && t.resolveComponentContext && t.resolveComponentContext();
1281
1361
  }
1282
1362
  o();
1283
- const a = n && n.getStyles && n.getStyles() || "", d = n && n.getDesignerClass && n.getDesignerClass() || "", s = b();
1284
- function i() {
1285
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
1363
+ const a = t && t.getStyles && t.getStyles() || "", l = t && t.getDesignerClass && t.getDesignerClass() || "", u = h();
1364
+ function c() {
1365
+ return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1286
1366
  }
1287
- function u() {
1367
+ function i() {
1288
1368
  return !1;
1289
1369
  }
1290
1370
  function r() {
1291
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
1371
+ return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
1292
1372
  }
1293
- function c() {
1294
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
1373
+ function d() {
1374
+ return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
1295
1375
  }
1296
- function l(h) {
1297
- if (!h || !h.value)
1376
+ function s(b) {
1377
+ if (!b || !b.value)
1298
1378
  return null;
1299
- if (h.value.schema && h.value.schema.type === "component")
1300
- return h.value;
1301
- const w = b(h == null ? void 0 : h.value.parent), M = l(w);
1379
+ if (b.value.schema && b.value.schema.type === "component")
1380
+ return b.value;
1381
+ const w = h(b == null ? void 0 : b.value.parent), M = s(w);
1302
1382
  return M || null;
1303
1383
  }
1304
- function p(h = t) {
1305
- const { componentInstance: w, designerItemElementRef: M } = h;
1306
- return !w || !w.value ? null : w.value.canMove ? M : p(h.parent);
1384
+ function p(b = n) {
1385
+ const { componentInstance: w, designerItemElementRef: M } = b;
1386
+ return !w || !w.value ? null : w.value.canMove ? M : p(b.parent);
1307
1387
  }
1308
- function m(h) {
1309
- return !!n && n.canAccepts(h);
1388
+ function y(b) {
1389
+ return !!t && t.canAccepts(b);
1310
1390
  }
1311
- function v() {
1312
- return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
1391
+ function f() {
1392
+ return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
1313
1393
  }
1314
1394
  function C() {
1315
1395
  }
1316
- function x(h, w) {
1317
- w && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(w);
1318
- }
1319
- function T(h, w) {
1320
- const { componentType: M } = h;
1321
- let P = I(M, h, w);
1322
- n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(h, P));
1323
- const N = M.toLowerCase().replace("-", "_");
1324
- return P && !P.id && P.type === M && (P.id = `${N}_${Math.random().toString().slice(2, 6)}`), P;
1325
- }
1326
- function S(h, w) {
1327
- const M = String(h.getAttribute("data-controltype")), P = h.getAttribute("data-feature"), N = P ? JSON.parse(P) : {};
1328
- N.parentComponentInstance = s.value;
1329
- let D = I(M, N);
1330
- n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(h, w, D));
1331
- const U = M.toLowerCase().replace("-", "_");
1332
- return D && !D.id && D.type === M && (D.id = `${U}_${Math.random().toString().slice(2, 6)}`), D;
1333
- }
1334
- function E(h) {
1335
- }
1336
- function k(...h) {
1337
- if (n && n.getPropsConfig)
1338
- return n.getPropsConfig(...h);
1339
- }
1340
- return s.value = {
1341
- canMove: i(),
1342
- canSelectParent: u(),
1396
+ function S(b, w) {
1397
+ w && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(w);
1398
+ }
1399
+ function T(b, w) {
1400
+ const { componentType: M } = b;
1401
+ let E = $(M, b, w);
1402
+ t && t.onResolveNewComponentSchema && (E = t.onResolveNewComponentSchema(b, E));
1403
+ const V = M.toLowerCase().replace("-", "_");
1404
+ return E && !E.id && E.type === M && (E.id = `${V}_${Math.random().toString().slice(2, 6)}`), E;
1405
+ }
1406
+ function A(b, w) {
1407
+ const M = String(b.getAttribute("data-controltype")), E = b.getAttribute("data-feature"), V = E ? JSON.parse(E) : {};
1408
+ V.parentComponentInstance = u.value;
1409
+ let L = $(M, V);
1410
+ t && t.onAcceptNewChildElement && (L = t.onAcceptNewChildElement(b, w, L));
1411
+ const G = M.toLowerCase().replace("-", "_");
1412
+ return L && !L.id && L.type === M && (L.id = `${G}_${Math.random().toString().slice(2, 6)}`), L;
1413
+ }
1414
+ function P(b) {
1415
+ }
1416
+ function k(...b) {
1417
+ if (t && t.getPropsConfig)
1418
+ return t.getPropsConfig(...b);
1419
+ }
1420
+ return u.value = {
1421
+ canMove: c(),
1422
+ canSelectParent: i(),
1343
1423
  canDelete: r(),
1344
- canNested: !c(),
1345
- contents: t == null ? void 0 : t.schema.contents,
1424
+ canNested: !d(),
1425
+ contents: n == null ? void 0 : n.schema.contents,
1346
1426
  elementRef: e,
1347
- parent: (O = t == null ? void 0 : t.parent) == null ? void 0 : O.componentInstance,
1348
- schema: t == null ? void 0 : t.schema,
1427
+ parent: (I = n == null ? void 0 : n.parent) == null ? void 0 : I.componentInstance,
1428
+ schema: n == null ? void 0 : n.schema,
1349
1429
  styles: a,
1350
- designerClass: d,
1351
- canAccepts: m,
1352
- getBelongedComponentInstance: l,
1430
+ designerClass: l,
1431
+ canAccepts: y,
1432
+ getBelongedComponentInstance: s,
1353
1433
  getDraggableDesignItemElement: p,
1354
- getDraggingDisplayText: v,
1434
+ getDraggingDisplayText: f,
1355
1435
  getPropConfig: k,
1356
1436
  getDragScopeElement: C,
1357
- onAcceptMovedChildElement: x,
1358
- onAcceptNewChildElement: S,
1359
- onChildElementMovedOut: E,
1437
+ onAcceptMovedChildElement: S,
1438
+ onAcceptNewChildElement: A,
1439
+ onChildElementMovedOut: P,
1360
1440
  addNewChildComponentSchema: T,
1361
1441
  updateDragAndDropRules: o,
1362
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || b(!1),
1363
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
1364
- }, s;
1442
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || h(!1),
1443
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || h(!1)
1444
+ }, u;
1365
1445
  }
1366
- const Xe = /* @__PURE__ */ Q({
1446
+ const Ye = /* @__PURE__ */ _({
1367
1447
  name: "FInputGroupDesign",
1368
1448
  props: W,
1369
1449
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
1370
- setup(e, t) {
1371
- const n = b(e.modelValue), o = b(e.modelValue), a = Ve(e, t, n, o), {
1372
- inputGroupClass: d,
1373
- inputType: s,
1374
- inputGroupStyle: i
1375
- } = a, u = ee(e), {
1450
+ setup(e, n) {
1451
+ const t = h(e.modelValue), o = h(e.modelValue), a = Ve(e, n, t, o), {
1452
+ inputGroupClass: l,
1453
+ inputType: u,
1454
+ inputGroupStyle: c
1455
+ } = a, i = ne(e), {
1376
1456
  shouldShowAppendedButton: r
1377
- } = u, c = K(e, t, a), {
1378
- onMouseEnter: l,
1457
+ } = i, d = te(e, n, a), {
1458
+ onMouseEnter: s,
1379
1459
  onMouseLeave: p
1380
- } = c, m = te(e, t, s, u), v = b(), C = Z("designer-host-service"), x = Z("design-item-context"), T = _e(x, C), S = Qe(v, x, T);
1381
- G(() => {
1382
- v.value.componentInstance = S;
1383
- }), t.expose(S.value);
1384
- const E = ne(e, t, u, c, m), k = b();
1460
+ } = d, y = oe(e, n, u, i), f = h(), C = J("designer-host-service"), S = J("design-item-context"), T = _e(S, C), A = Qe(f, S, T);
1461
+ N(() => {
1462
+ f.value.componentInstance = A;
1463
+ }), n.expose(A.value);
1464
+ const P = ae(e, n, i, d, y), k = h();
1385
1465
  return () => B("div", {
1386
1466
  id: "inputGroup",
1387
- ref: v,
1388
- class: d.value,
1389
- style: i.value,
1390
- onMouseenter: l,
1467
+ ref: f,
1468
+ class: l.value,
1469
+ style: c.value,
1470
+ onMouseenter: s,
1391
1471
  onMouseleave: p
1392
1472
  }, [B("input", {
1393
1473
  ref: k,
1394
1474
  class: "form-control",
1395
1475
  readonly: !0,
1396
1476
  placeholder: e.placeholder
1397
- }, null), r.value && E()]);
1477
+ }, null), r.value && P()]);
1398
1478
  }
1399
1479
  });
1400
- L.register = (e, t, n, o) => {
1401
- e["input-group"] = L, t["input-group"] = R;
1480
+ j.register = (e, n, t, o) => {
1481
+ e["input-group"] = j, n["input-group"] = ee;
1402
1482
  };
1403
- L.registerDesigner = (e, t, n) => {
1404
- e["input-group"] = Xe, t["input-group"] = R;
1483
+ j.registerDesigner = (e, n, t) => {
1484
+ e["input-group"] = Ye, n["input-group"] = ee;
1405
1485
  };
1406
- const ot = Ge(L);
1486
+ const it = Ue(j);
1407
1487
  export {
1408
- L as FInputGroup,
1409
- ot as default,
1488
+ j as FInputGroup,
1489
+ it as default,
1410
1490
  W as inputGroupProps,
1411
- R as propsResolver
1491
+ ee as propsResolver
1412
1492
  };