@farris/ui-vue 1.3.0 → 1.3.1

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 (201) hide show
  1. package/components/accordion/index.esm.js +1 -1
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +472 -366
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +1 -1
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +472 -480
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +225 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +615 -517
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +325 -333
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +578 -472
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +49 -49
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/common/index.esm.js +832 -722
  20. package/components/common/index.umd.cjs +1 -1
  21. package/components/component/index.esm.js +303 -981
  22. package/components/component/index.umd.cjs +1 -1
  23. package/components/condition/index.esm.js +8 -8
  24. package/components/condition/index.umd.cjs +1 -1
  25. package/components/content-container/index.esm.js +335 -1002
  26. package/components/content-container/index.umd.cjs +1 -1
  27. package/components/data-grid/index.esm.js +4429 -4312
  28. package/components/data-grid/index.umd.cjs +1 -1
  29. package/components/data-view/index.esm.js +3037 -3020
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +2216 -2119
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.css +1 -1
  34. package/components/designer-canvas/index.esm.js +914 -883
  35. package/components/designer-canvas/index.umd.cjs +1 -1
  36. package/components/dropdown/index.esm.js +223 -231
  37. package/components/dropdown/index.umd.cjs +2 -2
  38. package/components/dynamic-form/index.esm.js +1691 -2187
  39. package/components/dynamic-form/index.umd.cjs +1 -1
  40. package/components/dynamic-resolver/index.esm.js +143 -136
  41. package/components/dynamic-resolver/index.umd.cjs +1 -1
  42. package/components/events-editor/index.esm.js +250 -258
  43. package/components/events-editor/index.umd.cjs +1 -1
  44. package/components/expression-editor/index.esm.js +1 -1
  45. package/components/expression-editor/index.umd.cjs +1 -1
  46. package/components/external-container/index.esm.js +2672 -3438
  47. package/components/external-container/index.umd.cjs +1 -1
  48. package/components/field-selector/index.esm.js +2965 -2970
  49. package/components/field-selector/index.umd.cjs +1 -1
  50. package/components/filter-bar/index.esm.js +1650 -1602
  51. package/components/filter-bar/index.umd.cjs +1 -1
  52. package/components/flow-canvas/index.css +1 -1
  53. package/components/flow-canvas/index.esm.js +684 -675
  54. package/components/flow-canvas/index.umd.cjs +1 -1
  55. package/components/image-cropper/index.esm.js +453 -461
  56. package/components/image-cropper/index.umd.cjs +1 -1
  57. package/components/input-group/index.esm.js +604 -507
  58. package/components/input-group/index.umd.cjs +1 -1
  59. package/components/layout/index.esm.js +402 -378
  60. package/components/layout/index.umd.cjs +1 -1
  61. package/components/list-nav/index.esm.js +348 -1019
  62. package/components/list-nav/index.umd.cjs +1 -1
  63. package/components/list-view/index.esm.js +1658 -1666
  64. package/components/list-view/index.umd.cjs +1 -1
  65. package/components/lookup/index.esm.js +5209 -5088
  66. package/components/lookup/index.umd.cjs +1 -1
  67. package/components/mapping-editor/index.esm.js +4329 -4213
  68. package/components/mapping-editor/index.umd.cjs +1 -1
  69. package/components/nav/index.esm.js +905 -1357
  70. package/components/nav/index.umd.cjs +3 -3
  71. package/components/number-range/index.esm.js +517 -420
  72. package/components/number-range/index.umd.cjs +1 -1
  73. package/components/number-spinner/index.esm.js +588 -491
  74. package/components/number-spinner/index.umd.cjs +1 -1
  75. package/components/order/index.esm.js +1376 -1965
  76. package/components/order/index.umd.cjs +1 -1
  77. package/components/page-footer/index.esm.js +1 -1
  78. package/components/page-footer/index.umd.cjs +1 -1
  79. package/components/page-header/index.esm.js +1073 -1905
  80. package/components/page-header/index.umd.cjs +1 -1
  81. package/components/pagination/index.esm.js +809 -1237
  82. package/components/pagination/index.umd.cjs +1 -1
  83. package/components/progress/index.esm.js +198 -206
  84. package/components/progress/index.umd.cjs +3 -3
  85. package/components/property-editor/index.esm.js +1297 -1200
  86. package/components/property-editor/index.umd.cjs +2 -2
  87. package/components/property-panel/index.esm.js +609 -507
  88. package/components/property-panel/index.umd.cjs +1 -1
  89. package/components/query-solution/index.esm.js +3391 -3758
  90. package/components/query-solution/index.umd.cjs +1 -1
  91. package/components/radio-button/index.esm.js +1 -1
  92. package/components/radio-button/index.umd.cjs +1 -1
  93. package/components/radio-group/index.esm.js +544 -447
  94. package/components/radio-group/index.umd.cjs +1 -1
  95. package/components/rate/index.esm.js +247 -255
  96. package/components/rate/index.umd.cjs +1 -1
  97. package/components/response-layout/index.esm.js +146 -154
  98. package/components/response-layout/index.umd.cjs +1 -1
  99. package/components/response-layout-editor/index.esm.js +700 -675
  100. package/components/response-layout-editor/index.umd.cjs +1 -1
  101. package/components/response-toolbar/index.esm.js +956 -1786
  102. package/components/response-toolbar/index.umd.cjs +1 -1
  103. package/components/schema-selector/index.esm.js +4963 -5617
  104. package/components/schema-selector/index.umd.cjs +2 -2
  105. package/components/search-box/index.esm.js +158 -161
  106. package/components/search-box/index.umd.cjs +1 -1
  107. package/components/section/index.esm.js +436 -1124
  108. package/components/section/index.umd.cjs +1 -1
  109. package/components/smoke-detector/index.esm.js +92 -100
  110. package/components/smoke-detector/index.umd.cjs +1 -1
  111. package/components/splitter/index.esm.js +571 -1210
  112. package/components/splitter/index.umd.cjs +1 -1
  113. package/components/splitter/style.js +2 -0
  114. package/components/step/index.esm.js +239 -247
  115. package/components/step/index.umd.cjs +1 -1
  116. package/components/switch/index.esm.js +445 -348
  117. package/components/switch/index.umd.cjs +1 -1
  118. package/components/tabs/index.esm.js +2278 -3031
  119. package/components/tabs/index.umd.cjs +1 -1
  120. package/components/tags/index.esm.js +311 -319
  121. package/components/tags/index.umd.cjs +1 -1
  122. package/components/text/index.esm.js +215 -223
  123. package/components/text/index.umd.cjs +1 -1
  124. package/components/textarea/index.esm.js +468 -371
  125. package/components/textarea/index.umd.cjs +1 -1
  126. package/components/time-picker/index.esm.js +1271 -1174
  127. package/components/time-picker/index.umd.cjs +1 -1
  128. package/components/transfer/index.esm.js +469 -477
  129. package/components/transfer/index.umd.cjs +1 -1
  130. package/components/tree-grid/index.esm.js +3060 -3065
  131. package/components/tree-grid/index.umd.cjs +1 -1
  132. package/components/tree-view/index.esm.js +2476 -2481
  133. package/components/tree-view/index.umd.cjs +1 -1
  134. package/components/uploader/index.esm.js +374 -382
  135. package/components/uploader/index.umd.cjs +2 -2
  136. package/components/verify-detail/index.esm.js +248 -256
  137. package/components/verify-detail/index.umd.cjs +1 -1
  138. package/components/video/index.esm.js +414 -1093
  139. package/components/video/index.umd.cjs +1 -1
  140. package/components/weather/index.esm.js +498 -506
  141. package/components/weather/index.umd.cjs +5 -5
  142. package/farris.all.esm.js +20216 -21844
  143. package/farris.all.umd.cjs +9 -9
  144. package/index.css +1 -1
  145. package/package.json +1 -1
  146. package/types/common/directive/area-response.d.ts +10 -0
  147. package/types/common/index.d.ts +8 -0
  148. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  149. package/types/common/utils/resolve-field.d.ts +2 -0
  150. package/types/common/utils/use-class.d.ts +7 -0
  151. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  152. package/types/condition/src/types.d.ts +2 -1
  153. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  154. package/types/data-grid/index.d.ts +8 -5
  155. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  156. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  157. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  158. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  159. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  160. package/types/data-view/composition/types.d.ts +7 -9
  161. package/types/designer-canvas/index.d.ts +2 -1
  162. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  163. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  164. package/types/designer-canvas/src/composition/types.d.ts +1 -2
  165. package/types/designer-canvas/src/types.d.ts +2 -1
  166. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  167. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  168. package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
  169. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  170. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  171. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  172. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  173. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  174. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  175. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  176. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  177. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  178. package/types/property-panel/index.d.ts +2 -1
  179. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  180. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  181. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  182. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  183. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  184. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  185. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  186. package/types/query-solution/src/solutions.d.ts +108 -509
  187. package/types/response-layout-editor/index.d.ts +3 -1
  188. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  189. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  190. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  191. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  192. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  193. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  194. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  195. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  196. package/types/tree-grid/index.d.ts +3 -3
  197. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  198. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  199. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  200. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  201. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
@@ -1,38 +1,37 @@
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";
1
+ var re = Object.defineProperty;
2
+ var ie = (e, n, t) => n in e ? re(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var M = (e, n, t) => ie(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import { ref as b, computed as g, watch as x, onMounted as N, nextTick as $, createVNode as E, reactive as se, withDirectives as ue, resolveDirective as ce, defineComponent as Z, Fragment as q, inject as H } from "vue";
5
+ import { isPlainObject as z, cloneDeep as J } from "lodash-es";
6
6
  import "bignumber.js";
7
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 = {};
11
- function q(e) {
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;
8
+ import { DgControl as X } from "../designer-canvas/index.esm.js";
9
+ const Q = {}, Y = {};
10
+ function j(e) {
11
+ const { properties: n, title: t, ignore: o } = e, a = o && Array.isArray(o), s = Object.keys(n).reduce((u, f) => ((!a || !o.find((i) => i == f)) && (u[f] = n[f].type === "object" && n[f].properties ? j(n[f]) : J(n[f].default)), u), {});
12
+ return t && (!a || !o.find((u) => u == "id")) && (s.id = `${t}-${Date.now()}`), s;
14
13
  }
15
- function $(e, n = {}, t) {
16
- const o = Y[e];
14
+ function _(e, n = {}, t) {
15
+ const o = Q[e];
17
16
  if (o) {
18
- let a = q(o);
19
- const l = K[e];
20
- return a = l ? l({ getSchemaByType: $ }, a, n, t) : a, a;
17
+ let a = j(o);
18
+ const s = Y[e];
19
+ return a = s ? s({ getSchemaByType: _ }, a, n, t) : a, a;
21
20
  }
22
21
  return null;
23
22
  }
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;
23
+ function ye(e, n) {
24
+ const t = j(n);
25
+ return Object.keys(e).reduce((o, a) => (o[a] && z(o[a]) && z(e[a]) ? Object.assign(o[a], e[a]) : o[a] = e[a], o), t), t;
27
26
  }
28
- function ve(e, n) {
27
+ function he(e, n) {
29
28
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
30
29
  if (n.has(a)) {
31
- const l = n.get(a);
32
- if (typeof l == "string")
33
- o[l] = e[a];
30
+ const s = n.get(a);
31
+ if (typeof s == "string")
32
+ o[s] = e[a];
34
33
  else {
35
- const u = l(a, e[a], e);
34
+ const u = s(a, e[a], e);
36
35
  Object.assign(o, u);
37
36
  }
38
37
  } else
@@ -40,65 +39,65 @@ function ve(e, n) {
40
39
  return o;
41
40
  }, {});
42
41
  }
43
- function he(e, n, t = /* @__PURE__ */ new Map()) {
44
- const o = ge(e, n);
45
- return ve(o, t);
42
+ function ge(e, n, t = /* @__PURE__ */ new Map()) {
43
+ const o = ye(e, n);
44
+ return he(o, t);
46
45
  }
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);
46
+ function ve(e = {}) {
47
+ function n(r, c, l, d) {
48
+ if (typeof l == "number")
49
+ return d[r].length === l;
50
+ if (typeof l == "object") {
51
+ const m = Object.keys(l)[0], p = l[m];
52
+ if (m === "not")
53
+ return Number(d[r].length) !== Number(p);
54
+ if (m === "moreThan")
55
+ return Number(d[r].length) >= Number(p);
56
+ if (m === "lessThan")
57
+ return Number(d[r].length) <= Number(p);
59
58
  }
60
59
  return !1;
61
60
  }
62
- function t(r, d, s, p) {
63
- return p[r] && p[r].propertyValue && String(p[r].propertyValue.value) === String(s);
61
+ function t(r, c, l, d) {
62
+ return d[r] && d[r].propertyValue && String(d[r].propertyValue.value) === String(l);
64
63
  }
65
64
  const o = /* @__PURE__ */ new Map([
66
65
  ["length", n],
67
66
  ["getProperty", t]
68
67
  ]);
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) => {
73
- if (p === "length")
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 };
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((d) => {
72
+ if (d === "length")
73
+ return { target: l, operator: "length", param: null, value: c[d] };
74
+ const m = d, p = c[d];
75
+ return { target: l, operator: "getProperty", param: m, value: p };
77
76
  }) : [];
78
77
  }
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;
78
+ function s(r) {
79
+ return Object.keys(r).reduce((l, d) => {
80
+ const m = a(d, r[d]);
81
+ return l.push(...m), l;
83
82
  }, []);
84
83
  }
85
- function u(r, d) {
84
+ function u(r, c) {
86
85
  if (o.has(r.operator)) {
87
- const s = o.get(r.operator);
88
- return s && s(r.target, r.param, r.value, d) || !1;
86
+ const l = o.get(r.operator);
87
+ return l && l(r.target, r.param, r.value, c) || !1;
89
88
  }
90
89
  return !1;
91
90
  }
92
- function c(r, d) {
93
- return l(r).reduce((y, f) => y && u(f, d), !0);
91
+ function f(r, c) {
92
+ return s(r).reduce((m, p) => m && u(p, c), !0);
94
93
  }
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));
97
- return p ? !T.includes(!1) : T.includes(!0);
94
+ function i(r, c) {
95
+ const l = Object.keys(r), d = l.includes("allOf"), m = l.includes("anyOf"), p = d || m, w = (p ? r[p ? d ? "allOf" : "anyOf" : "allOf"] : [r]).map((F) => f(F, c));
96
+ return d ? !w.includes(!1) : w.includes(!0);
98
97
  }
99
98
  return { parseValueSchema: i };
100
99
  }
101
- const m = {
100
+ const h = {
102
101
  button: { type: "button", name: "按钮", icon: "Button" },
103
102
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
104
103
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -137,24 +136,24 @@ const m = {
137
136
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
138
137
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
139
138
  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);
139
+ }, be = {}, Ce = {};
140
+ ve();
141
+ function we(e, n, t = /* @__PURE__ */ new Map(), o = (u, f, i) => f, a = {}, s = (u) => u) {
142
+ return Q[n.title] = n, Y[n.title] = o, be[n.title] = a, Ce[n.title] = s, (u = {}) => {
143
+ const f = ge(u, n, t), i = Object.keys(e).reduce((r, c) => (r[c] = e[c].default, r), {});
144
+ return Object.assign(i, f);
146
145
  };
147
146
  }
148
- function Te(e, n) {
147
+ function Be(e, n) {
149
148
  return { customClass: n.class, customStyle: n.style };
150
149
  }
151
- const ke = /* @__PURE__ */ new Map([
152
- ["appearance", Te]
150
+ const Me = /* @__PURE__ */ new Map([
151
+ ["appearance", Be]
153
152
  ]);
154
- function Me(e, n, t) {
153
+ function Te(e, n, t) {
155
154
  return n;
156
155
  }
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
+ const ke = "https://json-schema.org/draft/2020-12/schema", Se = "https://farris-design.gitee.io/input-group.schema.json", Ie = "input-group", Ee = "A Farris Input Component", Fe = "object", Ae = {
158
157
  id: {
159
158
  description: "The unique identifier for a Input Group",
160
159
  type: "string"
@@ -356,18 +355,18 @@ const Se = "https://json-schema.org/draft/2020-12/schema", xe = "https://farris-
356
355
  type: "string",
357
356
  default: ""
358
357
  }
359
- }, Le = [
358
+ }, Pe = [
360
359
  "id",
361
360
  "type"
362
- ], De = {
363
- $schema: Se,
364
- $id: xe,
365
- title: Ae,
361
+ ], xe = {
362
+ $schema: ke,
363
+ $id: Se,
364
+ title: Ie,
366
365
  description: Ee,
367
- type: Pe,
368
- properties: Fe,
369
- required: Le
370
- }, W = {
366
+ type: Fe,
367
+ properties: Ae,
368
+ required: Pe
369
+ }, U = {
371
370
  id: { Type: String, default: "" },
372
371
  /** 是否自动完成 */
373
372
  autocomplete: { Type: String, default: "off" },
@@ -434,118 +433,118 @@ const Se = "https://json-schema.org/draft/2020-12/schema", xe = "https://farris-
434
433
  * - input: 输入时更新
435
434
  */
436
435
  updateOn: { type: String, default: "blur" }
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(() => ({
436
+ }, K = we(U, xe, Me, Te);
437
+ function De(e, n, t, o) {
438
+ const a = b(e.disabled), s = b(!1), u = b("text"), f = b(e.showBorder), i = b(e.textAlign), r = b(e.updateOn), c = g(() => e.editable || !e.readonly), l = g(() => e.editable && !e.disabled && !e.readonly), d = g(() => !e.disabled && s.value), m = g(() => t.value === "" || t.value === null || t.value === void 0), p = g(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), y = g(() => e.readonly || !e.editable), B = g(() => e.enableTitle ? t.value : ""), w = g(() => ({
440
439
  "form-control": !0,
441
440
  "f-utils-fill": !0,
442
441
  "text-left": i.value === "left",
443
442
  "text-center": i.value === "center",
444
443
  "text-right": i.value === "right"
445
- })), A = g(() => {
444
+ })), T = g(() => {
446
445
  const v = {
447
446
  "f-cmp-inputgroup": !0,
448
447
  "input-group": !0,
449
448
  "f-state-disable": a.value,
450
- "f-state-editable": s.value,
451
- "f-state-readonly": C.value,
452
- "f-state-focus": p.value
449
+ "f-state-editable": l.value,
450
+ "f-state-readonly": y.value,
451
+ "f-state-focus": d.value
453
452
  };
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);
453
+ return (e.customClass || "").split(" ").reduce((W, le) => (W[le] = !0, W), v), v;
454
+ }), F = g(() => f.value ? "" : "border-width : 0 ");
455
+ function S(v, P = !0) {
456
+ t.value = v, o.value !== v && (o.value = v), P && n.emit("change", v), n.emit("update:modelValue", v), n.emit("update:value", v);
458
457
  }
459
- D(
458
+ x(
460
459
  () => e.modelValue,
461
- (v, F) => {
462
- v !== F && (t.value = v, o.value = v);
460
+ (v, P) => {
461
+ v !== P && (t.value = v, o.value = v);
463
462
  }
464
- ), D(() => e.disabled, (v, F) => {
465
- v !== F && (a.value = v);
463
+ ), x(() => e.disabled, (v, P) => {
464
+ v !== P && (a.value = v);
466
465
  });
467
- function I(v) {
468
- return l.value = !1, n.emit("blur", v), v.stopPropagation(), !1;
466
+ function C(v) {
467
+ return s.value = !1, n.emit("blur", v), v.stopPropagation(), !1;
469
468
  }
470
- function b(v) {
469
+ function I(v) {
471
470
  n.emit("click", v);
472
471
  }
473
- function w(v) {
474
- e.disabled || (c.value && (l.value = !0), d.value && n.emit("focus", v));
472
+ function k(v) {
473
+ e.disabled || (f.value && (s.value = !0), c.value && n.emit("focus", v));
475
474
  }
476
- function M(v) {
475
+ function A(v) {
477
476
  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
+ const P = v.target.value;
478
+ o.value = P, r.value === "change" && (n.emit("update:modelValue", P), n.emit("update:value", P));
480
479
  }
481
- function E(v) {
480
+ function D(v) {
482
481
  n.emit("keydown", v);
483
482
  }
484
- function V(v) {
483
+ function G(v) {
485
484
  n.emit("keyup", v);
486
485
  }
487
- function L(v) {
486
+ function oe(v) {
488
487
  v.target.tagName !== "INPUT" && v.preventDefault(), v.stopPropagation();
489
488
  }
490
- function G(v) {
489
+ function ae(v) {
491
490
  if (r.value === "blur") {
492
- const F = v.target.value;
493
- v.stopPropagation(), k(F);
491
+ const P = v.target.value;
492
+ v.stopPropagation(), S(P);
494
493
  }
495
494
  }
496
495
  return {
497
- changeTextBoxValue: k,
496
+ changeTextBoxValue: S,
498
497
  disabled: a,
499
498
  displayText: o,
500
- editable: s,
501
- hasFocused: p,
502
- inputGroupClass: A,
499
+ editable: l,
500
+ hasFocused: d,
501
+ inputGroupClass: T,
503
502
  inputType: u,
504
- isEmpty: y,
503
+ isEmpty: m,
505
504
  modelValue: t,
506
- readonly: C,
507
- onBlur: I,
508
- onClick: b,
509
- onFocus: w,
510
- onInput: M,
511
- onKeydown: E,
512
- onKeyup: V,
513
- onMousedown: L,
514
- onTextBoxValueChange: G,
515
- placeholder: f,
516
- textBoxClass: T,
517
- textBoxTitle: S,
518
- inputGroupStyle: P
505
+ readonly: y,
506
+ onBlur: C,
507
+ onClick: I,
508
+ onFocus: k,
509
+ onInput: A,
510
+ onKeydown: D,
511
+ onKeyup: G,
512
+ onMousedown: oe,
513
+ onTextBoxValueChange: ae,
514
+ placeholder: p,
515
+ textBoxClass: w,
516
+ textBoxTitle: B,
517
+ inputGroupStyle: F
519
518
  };
520
519
  }
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);
520
+ function Le(e, n, t, o) {
521
+ const a = b(e.disabled), s = b(!1), u = b("text"), f = b(e.showBorder), i = b(e.textAlign);
523
522
  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(() => ({
523
+ const r = g(() => e.editable && !e.disabled && !e.readonly), c = g(() => !e.disabled && s.value), l = g(() => t.value === "" || t.value === null || t.value === void 0), d = g(() => e.placeholder), m = g(() => e.readonly || !e.editable), p = g(() => e.enableTitle ? t.value : ""), y = g(() => ({
525
524
  "form-control": !0,
526
525
  // 'f-utils-fill': true,
527
526
  "text-left": i.value === "left",
528
527
  "text-center": i.value === "center",
529
528
  "text-right": i.value === "right"
530
- })), S = g(() => ({
529
+ })), B = g(() => ({
531
530
  "f-cmp-inputgroup": !0,
532
531
  "input-group": !0,
533
532
  "f-state-disable": !0,
534
533
  "f-state-editable": !1,
535
534
  "f-state-readonly": !0
536
535
  // 'f-state-focus': hasFocused.value
537
- })), T = g(() => c.value ? "" : "border-width : 0 ");
536
+ })), w = g(() => f.value ? "" : "border-width : 0 ");
538
537
  return {
539
538
  // changeTextBoxValue,
540
539
  disabled: a,
541
540
  displayText: o,
542
541
  editable: r,
543
- hasFocused: d,
544
- inputGroupClass: S,
542
+ hasFocused: c,
543
+ inputGroupClass: B,
545
544
  inputType: u,
546
- isEmpty: s,
545
+ isEmpty: l,
547
546
  modelValue: t,
548
- readonly: y,
547
+ readonly: m,
549
548
  // onBlur,
550
549
  // onClick,
551
550
  // onFocus,
@@ -554,40 +553,40 @@ function Ve(e, n, t, o) {
554
553
  // onKeyup,
555
554
  // onMousedown,
556
555
  // onTextBoxValueChange,
557
- placeholder: p,
558
- textBoxClass: C,
559
- textBoxTitle: f,
560
- inputGroupStyle: T
556
+ placeholder: d,
557
+ textBoxClass: y,
558
+ textBoxTitle: p,
559
+ inputGroupStyle: w
561
560
  };
562
561
  }
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;
565
- function r(C) {
566
- o.value = C;
562
+ function R(e, n, t) {
563
+ const o = b(!1), a = g(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: u, hasFocused: f, isEmpty: i } = t;
564
+ function r(y) {
565
+ o.value = y;
567
566
  }
568
- D(u, () => {
569
- c != null && c.value ? r(!!(u != null && u.value)) : r(!1);
567
+ x(u, () => {
568
+ f != null && f.value ? r(!!(u != null && u.value)) : r(!1);
570
569
  });
571
- const d = g(() => ({
570
+ const c = g(() => ({
572
571
  "input-group-text": !0,
573
572
  "input-group-clear": !0
574
- })), s = g(() => ({
573
+ })), l = g(() => ({
575
574
  width: "24px",
576
575
  display: o.value ? "flex" : "none"
577
576
  }));
578
- function p(C) {
579
- C.stopPropagation(), a.value && (l("", !0), r(!o.value), n.emit("clear"));
577
+ function d(y) {
578
+ y.stopPropagation(), a.value && (s("", !0), r(!o.value), n.emit("clear"));
580
579
  }
581
- function y(C) {
580
+ function m(y) {
582
581
  a.value && !i.value && r(!0);
583
582
  }
584
- function f(C) {
583
+ function p(y) {
585
584
  a.value && r(!1);
586
585
  }
587
- return { clearButtonClass: d, clearButtonStyle: s, hasShownClearButton: o, onClearValue: p, onMouseEnter: y, onMouseLeave: f, shouldShowClearButton: a };
586
+ return { clearButtonClass: c, clearButtonStyle: l, hasShownClearButton: o, onClearValue: d, onMouseEnter: m, onMouseLeave: p, shouldShowClearButton: a };
588
587
  }
589
- const Oe = ["moz", "ms", "webkit"];
590
- function Ne() {
588
+ const Ne = ["moz", "ms", "webkit"];
589
+ function Ve() {
591
590
  let e = 0;
592
591
  return (n) => {
593
592
  const t = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (t - e)), a = setTimeout(() => {
@@ -596,88 +595,88 @@ function Ne() {
596
595
  return e = t + o, a;
597
596
  };
598
597
  }
599
- function je() {
598
+ function Oe() {
600
599
  if (typeof window > "u")
601
600
  return () => 0;
602
601
  if (window.requestAnimationFrame)
603
602
  return window.requestAnimationFrame.bind(window);
604
- const e = Oe.filter((n) => `${n}RequestAnimationFrame` in window)[0];
605
- return e ? window[`${e}RequestAnimationFrame`] : Ne();
603
+ const e = Ne.filter((n) => `${n}RequestAnimationFrame` in window)[0];
604
+ return e ? window[`${e}RequestAnimationFrame`] : Ve();
606
605
  }
607
- je();
608
- const Ue = (e) => {
606
+ Oe();
607
+ const Ge = (e) => {
609
608
  const n = e;
610
609
  return n.install = function(t) {
611
610
  t.component(n.name, e);
612
611
  }, e;
613
612
  };
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);
613
+ function ee(e, n) {
614
+ const t = b(e.groupText), o = g(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = g(() => e.enableClear || !!e.groupText);
616
615
  return { appendedButtonClass: g(() => ({
617
616
  "input-group-append": !0,
618
617
  "append-force-show": o.value
619
618
  })), appendedContent: t, shouldShowAppendedButton: a };
620
619
  }
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);
620
+ function te(e, n, t, o) {
621
+ const { appendedContent: a } = o, s = b(e.enableViewPassword), u = g(() => e.type === "password"), f = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', i = '<span class="f-icon f-icon-eye"></span>', r = b(!1);
622
+ x(() => [e.readonly, e.disabled], ([d, m]) => {
623
+ u.value && (t.value = d || m ? "password" : t.value, a.value = d || m ? i : a.value);
625
624
  });
626
- function d() {
627
- return r.value = !r.value, t.value = r.value ? "text" : "password", a.value = r.value ? c : i, !1;
625
+ function c() {
626
+ return r.value = !r.value, t.value = r.value ? "text" : "password", a.value = r.value ? f : i, !1;
628
627
  }
629
- function s() {
630
- t.value = u.value ? "password" : "text", a.value = u.value ? l.value ? i : "" : a.value;
628
+ function l() {
629
+ t.value = u.value ? "password" : "text", a.value = u.value ? s.value ? i : "" : a.value;
631
630
  }
632
- return s(), { isPassword: u, onClickAppendedButton: d };
631
+ return l(), { isPassword: u, onClickAppendedButton: c };
633
632
  }
634
- function Ge(e, n, t) {
635
- const o = h(), {
633
+ function je(e, n, t) {
634
+ const o = b(), {
636
635
  onBlurTextBox: a,
637
- onFocusTextBox: l,
636
+ onFocusTextBox: s,
638
637
  onInput: u,
639
- onKeyDown: c,
638
+ onKeyDown: f,
640
639
  textBoxValue: i
641
- } = t, r = g(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = g(() => ({
640
+ } = t, r = g(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), c = g(() => ({
642
641
  "form-control": !0,
643
642
  "f-utils-fill": !0
644
- })), s = g(() => ({
643
+ })), l = g(() => ({
645
644
  "text-align": e.textAlign
646
645
  }));
647
- function p(C) {
648
- C.stopPropagation();
646
+ function d(y) {
647
+ y.stopPropagation();
649
648
  }
650
- function y() {
649
+ function m() {
651
650
  e.selectOnCreated, e.focusOnCreated;
652
651
  }
653
- async function f(C) {
654
- l(C), await z, y();
652
+ async function p(y) {
653
+ s(y), await $, m();
655
654
  }
656
655
  return N(async () => {
657
- await z, y();
658
- }), () => B("input", {
656
+ await $, m();
657
+ }), () => E("input", {
659
658
  ref: o,
660
- class: d.value,
661
- style: s.value,
659
+ class: c.value,
660
+ style: l.value,
662
661
  type: "text",
663
662
  value: i.value,
664
663
  disabled: e.disabled,
665
664
  readonly: e.readonly || !e.editable,
666
665
  placeholder: r.value,
667
666
  onBlur: a,
668
- onChange: p,
669
- onFocus: f,
667
+ onChange: d,
668
+ onFocus: p,
670
669
  onInput: u,
671
- onKeydown: c
670
+ onKeydown: f
672
671
  }, null);
673
672
  }
674
- function $e(e, n, t) {
673
+ function Ue(e, n, t) {
675
674
  const {
676
675
  canDownward: o,
677
676
  canUpward: a,
678
- onClickDownButton: l,
677
+ onClickDownButton: s,
679
678
  onClickUpButton: u
680
- } = t, c = g(() => ({
679
+ } = t, f = g(() => ({
681
680
  "input-group-append": !0,
682
681
  "btn-group": !0,
683
682
  "btn-group-number": !0
@@ -688,248 +687,248 @@ function $e(e, n, t) {
688
687
  })), r = g(() => ({
689
688
  cursor: a() ? "pointer" : "not-allowed",
690
689
  "margin-left": 0
691
- })), d = g(() => ({
690
+ })), c = g(() => ({
692
691
  cursor: o() ? "pointer" : "not-allowed",
693
692
  "margin-left": 0
694
693
  }));
695
- return () => B("div", {
696
- class: c.value
697
- }, [B("button", {
694
+ return () => E("div", {
695
+ class: f.value
696
+ }, [E("button", {
698
697
  title: "upButton",
699
698
  class: i.value,
700
699
  style: r.value,
701
700
  onClick: u,
702
701
  disabled: !a()
703
- }, [B("span", {
702
+ }, [E("span", {
704
703
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
705
- }, null)]), B("button", {
704
+ }, null)]), E("button", {
706
705
  title: "downButton",
707
706
  class: i.value,
708
- style: d.value,
709
- onClick: l,
707
+ style: c.value,
708
+ onClick: s,
710
709
  disabled: !o()
711
- }, [B("span", {
710
+ }, [E("span", {
712
711
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
713
712
  }, null)])]);
714
713
  }
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,
714
+ function We(e, n) {
715
+ const t = de(e, n), o = pe(e, n, t), a = fe(e, n, o, t), s = me(e, n, o, t, a), u = Ue(e, n, a), {
716
+ displayValue: f,
718
717
  modelValue: i,
719
718
  getRealValue: r
720
- } = t, d = Ge(e, n, l), {
721
- format: s
719
+ } = t, c = je(e, n, s), {
720
+ format: l
722
721
  } = o, {
723
- isFocus: p
724
- } = l, y = g(() => !e.disabled && !e.readonly);
722
+ isFocus: d
723
+ } = s, m = g(() => !e.disabled && !e.readonly);
725
724
  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);
735
- }), () => B("div", {
725
+ const p = r(e.modelValue);
726
+ f.value = l(p);
727
+ }), x(() => [e.value], ([p]) => {
728
+ const y = r(p);
729
+ i.value = y, f.value = l(y);
730
+ }), x(() => [e.modelValue], ([p]) => {
731
+ p !== i.value && (i.value = p, !d.value && (f.value = l(r(p))));
732
+ }), x(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
733
+ f.value = l(i.value);
734
+ }), () => E("div", {
736
735
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
737
- }, [d(), y.value && u()]);
736
+ }, [c(), m.value && u()]);
738
737
  }
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,
744
- displayText: p,
745
- inputType: y,
746
- onBlur: f,
747
- onFocus: C,
748
- onInput: S,
749
- onClick: T,
750
- onKeydown: A,
751
- onKeyup: P,
752
- onMousedown: k,
753
- onTextBoxValueChange: I,
754
- readonly: b,
755
- placeholder: w,
756
- textBoxClass: M,
757
- textBoxTitle: E
738
+ function $e(e, n, t, o) {
739
+ const a = b(), s = b(e.autocomplete), u = b(e.enableTitle), {
740
+ isPassword: f
741
+ } = t, i = b(e.minLength), r = b(e.maxLength), c = b(e.tabIndex), {
742
+ disabled: l,
743
+ displayText: d,
744
+ inputType: m,
745
+ onBlur: p,
746
+ onFocus: y,
747
+ onInput: B,
748
+ onClick: w,
749
+ onKeydown: T,
750
+ onKeyup: F,
751
+ onMousedown: S,
752
+ onTextBoxValueChange: C,
753
+ readonly: I,
754
+ placeholder: k,
755
+ textBoxClass: A,
756
+ textBoxTitle: D
758
757
  } = o;
759
758
  return N(() => {
760
759
  e.selectOnCreated, e.focusOnCreated;
761
- }), () => B("input", {
760
+ }), () => E("input", {
762
761
  ref: a,
763
762
  name: "input-group-value",
764
- autocomplete: l.value,
765
- class: M.value,
766
- disabled: s == null ? void 0 : s.value,
763
+ autocomplete: s.value,
764
+ class: A.value,
765
+ disabled: l == null ? void 0 : l.value,
767
766
  maxlength: r.value,
768
767
  minlength: i.value,
769
- placeholder: w.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,
774
- value: p == null ? void 0 : p.value,
775
- onBlur: f,
776
- onClick: T,
777
- onChange: I,
778
- onFocus: C,
779
- onInput: S,
780
- onKeydown: A,
781
- onKeyup: P,
782
- onMousedown: k
768
+ placeholder: k.value,
769
+ readonly: I == null ? void 0 : I.value,
770
+ tabindex: c.value,
771
+ title: u.value && !f.value ? D.value : "",
772
+ type: m.value,
773
+ value: d == null ? void 0 : d.value,
774
+ onBlur: p,
775
+ onClick: w,
776
+ onChange: C,
777
+ onFocus: y,
778
+ onInput: B,
779
+ onKeydown: T,
780
+ onKeyup: F,
781
+ onMousedown: S
783
782
  }, null);
784
783
  }
785
- function He(e, n) {
784
+ function qe(e, n) {
786
785
  const t = g(() => e.useExtendInfo && !!e.extendInfo), o = se({
787
786
  content: e.extendInfo
788
787
  });
789
788
  function a() {
790
789
  n.emit("updateExtendInfo");
791
790
  }
792
- return () => t.value && ue(B("span", {
791
+ return () => t.value && ue(E("span", {
793
792
  class: "input-group-before-tips",
794
793
  onMouseenter: a
795
- }, [B("i", {
794
+ }, [E("i", {
796
795
  class: "f-icon f-icon-info-circle"
797
- }, null), B("b", {
796
+ }, null), E("b", {
798
797
  class: "tips-arrow"
799
798
  }, null)]), [[ce("tooltip"), o]]);
800
799
  }
801
- function ae(e, n, t, o, a) {
800
+ function ne(e, n, t, o, a) {
802
801
  const {
803
- appendedButtonClass: l,
802
+ appendedButtonClass: s,
804
803
  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,
808
- onClearValue: p,
809
- shouldShowClearButton: y
804
+ } = t, f = g(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), i = g(() => u.value && !n.slots.groupTextTemplate), r = g(() => !!n.slots.groupTextTemplate), {
805
+ clearButtonClass: c,
806
+ clearButtonStyle: l,
807
+ onClearValue: d,
808
+ shouldShowClearButton: m
810
809
  } = o;
811
- function f() {
812
- return B("span", {
810
+ function p() {
811
+ return E("span", {
813
812
  id: "clearIcon",
814
- class: d.value,
815
- style: s.value,
816
- onClick: (w) => p(w)
817
- }, [B("i", {
813
+ class: c.value,
814
+ style: l.value,
815
+ onClick: (k) => d(k)
816
+ }, [E("i", {
818
817
  class: "f-icon modal_close"
819
818
  }, null)]);
820
819
  }
821
- function C(w) {
822
- n.emit("iconMouseEnter", w);
820
+ function y(k) {
821
+ n.emit("iconMouseEnter", k);
823
822
  }
824
- function S(w) {
825
- n.emit("iconMouseLeave", w);
823
+ function B(k) {
824
+ n.emit("iconMouseLeave", k);
826
825
  }
827
- function T(w) {
828
- c.value && n.emit("clickHandle", {
829
- originalEvent: w
830
- }), w.stopPropagation();
826
+ function w(k) {
827
+ f.value && n.emit("clickHandle", {
828
+ originalEvent: k
829
+ }), k.stopPropagation();
831
830
  }
832
- const A = e.type === "password" ? a.onClickAppendedButton : T;
833
- function P() {
834
- return B("span", {
831
+ const T = e.type === "password" ? a.onClickAppendedButton : w;
832
+ function F() {
833
+ return E("span", {
835
834
  class: "input-group-text",
836
- onMouseenter: (w) => C(w),
837
- onMouseleave: (w) => S(w),
835
+ onMouseenter: (k) => y(k),
836
+ onMouseleave: (k) => B(k),
838
837
  innerHTML: u.value,
839
- onClick: (w) => A(w)
838
+ onClick: (k) => T(k)
840
839
  }, null);
841
840
  }
842
- function k() {
841
+ function S() {
843
842
  return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
844
843
  }
845
- function I() {
846
- return i.value ? P : r.value ? k : "";
844
+ function C() {
845
+ return i.value ? F : r.value ? S : "";
847
846
  }
848
- const b = I();
849
- return () => B("div", {
850
- class: l.value
851
- }, [y.value && f(), b && b()]);
847
+ const I = C();
848
+ return () => E("div", {
849
+ class: s.value
850
+ }, [m.value && p(), I && I()]);
852
851
  }
853
- const j = /* @__PURE__ */ _({
852
+ const V = /* @__PURE__ */ Z({
854
853
  name: "FInputGroup",
855
- props: W,
854
+ props: U,
856
855
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
857
856
  setup(e, n) {
858
- const t = h(e.modelValue), o = h(e.modelValue), a = Ie(e, n, t, o), {
859
- inputGroupClass: l,
857
+ const t = b(e.modelValue), o = b(e.modelValue), a = De(e, n, t, o), {
858
+ inputGroupClass: s,
860
859
  inputType: u,
861
- inputGroupStyle: c
862
- } = a, i = ne(e), {
860
+ inputGroupStyle: f
861
+ } = a, i = ee(e), {
863
862
  shouldShowAppendedButton: r
864
- } = i, d = te(e, n, a), {
865
- onMouseEnter: s,
866
- onMouseLeave: p
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;
863
+ } = i, c = R(e, n, a), {
864
+ onMouseEnter: l,
865
+ onMouseLeave: d
866
+ } = c, m = te(e, n, u, i), p = We(e, n), y = $e(e, n, m, a), B = ne(e, n, i, c, m), w = qe(e, n), T = g(() => e.type === "number");
867
+ x(() => [e.value], ([S]) => {
868
+ t.value = S, o.value = S;
869
+ }), x(() => [e.modelValue], ([S]) => {
870
+ t.value = S, o.value = S;
872
871
  }), N(() => {
873
872
  e.value && (t.value = e.value, o.value = e.value);
874
873
  });
875
- const P = () => B(R, null, [B("div", {
874
+ const F = () => E(q, null, [E("div", {
876
875
  id: e.id,
877
- class: l.value,
878
- style: c.value,
879
- onMouseenter: s,
880
- onMouseleave: p
881
- }, [A.value ? f() : B(R, null, [T(), C(), r.value && S()])])]);
882
- return () => P();
876
+ class: s.value,
877
+ style: f.value,
878
+ onMouseenter: l,
879
+ onMouseleave: d
880
+ }, [T.value ? p() : E(q, null, [w(), y(), r.value && B()])])]);
881
+ return () => F();
883
882
  }
884
883
  });
885
- function ze(e, n) {
884
+ function He(e, n) {
886
885
  e.schema;
887
- const t = h(!0), o = h(!0);
888
- function a(s) {
886
+ const t = b(!0), o = b(!0);
887
+ function a(l) {
889
888
  return !1;
890
889
  }
891
- function l() {
890
+ function s() {
892
891
  return !1;
893
892
  }
894
893
  function u() {
895
894
  return !1;
896
895
  }
897
- function c() {
896
+ function f() {
898
897
  return !0;
899
898
  }
900
- function i(s) {
899
+ function i(l) {
901
900
  }
902
901
  function r() {
903
902
  }
904
- function d(s) {
903
+ function c(l) {
905
904
  return null;
906
905
  }
907
906
  return {
908
907
  canAccepts: a,
909
- checkCanDeleteComponent: l,
908
+ checkCanDeleteComponent: s,
910
909
  checkCanMoveComponent: u,
911
- hideNestedPaddingInDesginerView: c,
910
+ hideNestedPaddingInDesginerView: f,
912
911
  onAcceptMovedChildElement: i,
913
912
  resolveComponentContext: r,
914
913
  triggerBelongedComponentToMoveWhenMoved: t,
915
914
  triggerBelongedComponentToDeleteWhenDeleted: o,
916
- getPropsConfig: d
915
+ getPropsConfig: c
917
916
  };
918
917
  }
919
- class Re {
918
+ class ze {
920
919
  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", {
920
+ M(this, "componentId");
921
+ M(this, "viewModelId");
922
+ M(this, "eventsEditorUtils");
923
+ M(this, "formSchemaUtils");
924
+ M(this, "formMetadataConverter");
925
+ M(this, "designViewModelUtils");
926
+ M(this, "designViewModelField");
927
+ M(this, "controlCreatorUtils");
928
+ M(this, "designerHostService");
929
+ M(this, "schemaService", null);
930
+ M(this, "metadataService", null);
931
+ M(this, "propertyConfig", {
933
932
  type: "object",
934
933
  categories: {}
935
934
  });
@@ -971,7 +970,7 @@ class Re {
971
970
  type: "combo-list",
972
971
  textField: "name",
973
972
  valueField: "value",
974
- data: [{ value: n.type, name: m[n.type].name }]
973
+ data: [{ value: n.type, name: h[n.type].name }]
975
974
  }
976
975
  }
977
976
  }
@@ -1007,16 +1006,16 @@ class Re {
1007
1006
  const o = t && t.parent && t.parent.schema;
1008
1007
  if (!o)
1009
1008
  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);
1009
+ const a = o.contents.findIndex((u) => u.id === n), s = J(o.contents[a]);
1010
+ o.contents.splice(a, 1), o.contents.splice(a, 0, s);
1012
1011
  }
1013
1012
  }
1014
- const O = class O {
1013
+ const L = class L {
1015
1014
  /**
1016
1015
  * 根据绑定字段类型获取可用的输入类控件
1017
1016
  */
1018
1017
  static getEditorTypesByMDataType(n) {
1019
- const t = O.fieldControlTypeMapping[n];
1018
+ const t = L.fieldControlTypeMapping[n];
1020
1019
  return t || [{ key: "", value: "" }];
1021
1020
  }
1022
1021
  /**
@@ -1024,8 +1023,8 @@ const O = class O {
1024
1023
  */
1025
1024
  static getAllInputTypes() {
1026
1025
  const n = [];
1027
- for (let t in O.fieldControlTypeMapping)
1028
- O.fieldControlTypeMapping[t].forEach((o) => {
1026
+ for (let t in L.fieldControlTypeMapping)
1027
+ L.fieldControlTypeMapping[t].forEach((o) => {
1029
1028
  n.find((a) => a.key === o.key && a.value === o.value) || n.push({ key: o.key, value: o.value });
1030
1029
  });
1031
1030
  return n;
@@ -1034,68 +1033,175 @@ const O = class O {
1034
1033
  /**
1035
1034
  * <字段类型,可配置的控件类型列表>的映射
1036
1035
  */
1037
- x(O, "fieldControlTypeMapping", {
1036
+ M(L, "fieldControlTypeMapping", {
1038
1037
  String: [
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 }
1038
+ { key: h["input-group"].type, value: h["input-group"].name },
1039
+ { key: h.lookup.type, value: h.lookup.name },
1040
+ { key: h["date-picker"].type, value: h["date-picker"].name },
1041
+ { key: h["check-box"].type, value: h["check-box"].name },
1042
+ { key: h["check-group"].type, value: h["check-group"].name },
1043
+ { key: h["radio-group"].type, value: h["radio-group"].name },
1044
+ { key: h["combo-list"].type, value: h["combo-list"].name },
1045
+ { key: h.textarea.type, value: h.textarea.name }
1046
1046
  ],
1047
1047
  Text: [
1048
- { key: m.textarea.type, value: m.textarea.name },
1049
- { key: m.lookup.type, value: m.lookup.name }
1048
+ { key: h.textarea.type, value: h.textarea.name },
1049
+ { key: h.lookup.type, value: h.lookup.name }
1050
1050
  ],
1051
1051
  Decimal: [
1052
- { key: m["number-spinner"].type, value: m["number-spinner"].name }
1052
+ { key: h["number-spinner"].type, value: h["number-spinner"].name }
1053
1053
  ],
1054
1054
  Integer: [
1055
- { key: m["number-spinner"].type, value: m["number-spinner"].name }
1055
+ { key: h["number-spinner"].type, value: h["number-spinner"].name }
1056
1056
  ],
1057
1057
  Number: [
1058
- { key: m["number-spinner"].type, value: m["number-spinner"].name }
1058
+ { key: h["number-spinner"].type, value: h["number-spinner"].name }
1059
1059
  ],
1060
1060
  BigNumber: [
1061
- { key: m["number-spinner"].type, value: m["number-spinner"].name }
1061
+ { key: h["number-spinner"].type, value: h["number-spinner"].name }
1062
1062
  ],
1063
1063
  Date: [
1064
- { key: m["date-picker"].type, value: m["date-picker"].name }
1064
+ { key: h["date-picker"].type, value: h["date-picker"].name }
1065
1065
  ],
1066
1066
  DateTime: [
1067
- { key: m["date-picker"].type, value: m["date-picker"].name }
1067
+ { key: h["date-picker"].type, value: h["date-picker"].name }
1068
1068
  ],
1069
1069
  Boolean: [
1070
- { key: m.switch.type, value: m.switch.name },
1071
- { key: m["check-box"].type, value: m["check-box"].name }
1070
+ { key: h.switch.type, value: h.switch.name },
1071
+ { key: h["check-box"].type, value: h["check-box"].name }
1072
1072
  ],
1073
1073
  Enum: [
1074
- { key: m["combo-list"].type, value: m["combo-list"].name },
1075
- { key: m["radio-group"].type, value: m["radio-group"].name }
1074
+ { key: h["combo-list"].type, value: h["combo-list"].name },
1075
+ { key: h["radio-group"].type, value: h["radio-group"].name }
1076
1076
  ],
1077
1077
  Object: [
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 }
1078
+ { key: h.lookup.type, value: h.lookup.name },
1079
+ { key: h["combo-list"].type, value: h["combo-list"].name },
1080
+ { key: h["radio-group"].type, value: h["radio-group"].name }
1081
1081
  ]
1082
1082
  });
1083
- let U = O;
1084
- const Je = h(0);
1085
- class Xe extends Re {
1083
+ let O = L;
1084
+ const Xe = b(0);
1085
+ class Ze {
1086
+ constructor() {
1087
+ /** 控件标题 */
1088
+ M(this, "label", "");
1089
+ /** 控件id */
1090
+ M(this, "id", "");
1091
+ /** 每个控件占用的栅格数 */
1092
+ M(this, "columnInSM", 12);
1093
+ M(this, "columnInMD", 6);
1094
+ M(this, "columnInLG", 3);
1095
+ M(this, "columnInEL", 2);
1096
+ /** 每个控件占用的列数 */
1097
+ M(this, "displayWidthInSM", 1);
1098
+ M(this, "displayWidthInMD", 1);
1099
+ M(this, "displayWidthInLG", 1);
1100
+ M(this, "displayWidthInEL", 1);
1101
+ /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
1102
+ M(this, "displayColumnCountAtBreakPoint", "md");
1103
+ /** 控件所在行,传0即可-----编辑器内部使用 */
1104
+ M(this, "tagRow", 0);
1105
+ /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
1106
+ M(this, "showTopBorder", 0);
1107
+ /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
1108
+ M(this, "group", 1);
1109
+ /** 控件是否符合标准的class配置(设计器用的) */
1110
+ M(this, "isSupportedClass", !0);
1111
+ /** 控件所在分组id(设计器用的) */
1112
+ M(this, "fieldSetId", "");
1113
+ }
1114
+ }
1115
+ function Je(e) {
1116
+ let n, t;
1117
+ const o = /* @__PURE__ */ new Map();
1118
+ let a = [];
1119
+ function s(c, l) {
1120
+ const m = c.split(" ").filter((T) => T.startsWith("col-"));
1121
+ if (m.length === 0) {
1122
+ l.isSupportedClass = !1;
1123
+ return;
1124
+ }
1125
+ let p = m.find((T) => /^col-([1-9]|10|11|12)$/.test(T)), y = m.find((T) => /^col-md-([1-9]|10|11|12)$/.test(T)), B = m.find((T) => /^col-xl-([1-9]|10|11|12)$/.test(T)), w = m.find((T) => /^col-el-([1-9]|10|11|12)$/.test(T));
1126
+ p = p || "col-12", l.columnInSM = parseInt(p.replace("col-", ""), 10), l.displayWidthInSM = l.columnInSM / 12, l.displayWidthInSM !== 1 && (l.isSupportedClass = !1), y = y || "col-md-" + l.columnInSM, l.columnInMD = parseInt(y.replace("col-md-", ""), 10), l.displayWidthInMD = l.columnInMD / 6, [1, 2].includes(l.displayWidthInMD) || (l.isSupportedClass = !1), B = B || "col-xl-" + l.columnInMD, l.columnInLG = parseInt(B.replace("col-xl-", ""), 10), l.displayWidthInLG = l.columnInLG / 3, [1, 2, 3, 4].includes(l.displayWidthInLG) || (l.isSupportedClass = !1), w = w || "col-el-" + l.columnInLG, l.columnInEL = parseInt(w.replace("col-el-", ""), 10), l.displayWidthInEL = l.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(l.displayWidthInEL) || (l.isSupportedClass = !1);
1127
+ }
1128
+ function u(c, l, d, m = !1) {
1129
+ let p = !1;
1130
+ c.contents.forEach((y) => {
1131
+ if (y.type === "fieldset") {
1132
+ d += 1, u(y, l, d, !0), p = !0;
1133
+ return;
1134
+ }
1135
+ p && (d += 1, p = !1);
1136
+ const B = y.appearance && y.appearance.class, w = new Ze();
1137
+ B ? s(B, w) : w.isSupportedClass = !1, w.label = y.label || y.id, w.id = y.id, w.group = d, m && (w.fieldSetId = c.id), t === y.id && (n = d), o.set(y.id, y), l.push(w);
1138
+ });
1139
+ }
1140
+ function f(c) {
1141
+ const l = e.getComponentById(c);
1142
+ if (!l || !l.componentType || !l.componentType.startsWith("form"))
1143
+ return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
1144
+ const d = e.selectNode(l, (m) => m.type === X["response-form"].type);
1145
+ return !d || !d.contents || d.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: d };
1146
+ }
1147
+ function i(c, l) {
1148
+ l = l || c.id;
1149
+ const { result: d, message: m, formNode: p } = f(l);
1150
+ if (!d)
1151
+ return { result: d, message: m };
1152
+ t = c.id, a = [], o.clear();
1153
+ const y = p.contents[0].type === X.fieldset.type ? 0 : 1;
1154
+ u(p, a, y);
1155
+ const B = a.find((T) => !T.isSupportedClass);
1156
+ return {
1157
+ defaultState: {
1158
+ defaultGroupNumber: n || 1,
1159
+ model: B ? "customize" : "standard"
1160
+ },
1161
+ importData: a
1162
+ };
1163
+ }
1164
+ function r(c, l) {
1165
+ l = l;
1166
+ const { result: d, formNode: m } = f(l);
1167
+ if (!d)
1168
+ return "";
1169
+ const p = [];
1170
+ return c.forEach((y) => {
1171
+ var T;
1172
+ const B = o.get(y.id), w = B.appearance && B.appearance.class;
1173
+ if (w) {
1174
+ const S = w.split(" ").filter((G) => !G.startsWith("col-")), C = "col-" + y.columnInSM, I = "col-md-" + y.columnInMD, k = "col-xl-" + y.columnInLG, A = "col-el-" + y.columnInEL, D = [C, I, k, A].concat(S);
1175
+ B.appearance.class = D.join(" ");
1176
+ }
1177
+ if (y.fieldSetId) {
1178
+ const F = m.contents.find((C) => C.id === y.fieldSetId), S = p.find((C) => C.id === y.fieldSetId);
1179
+ S ? (T = S.contents) == null || T.push(B) : (p.push(F), F.contents = [B]);
1180
+ } else
1181
+ p.push(B);
1182
+ }), m.contents = p, m.id;
1183
+ }
1184
+ return {
1185
+ checkCanFindFormNode: f,
1186
+ checkCanOpenLayoutEditor: i,
1187
+ changeFormControlsByResponseLayoutConfig: r,
1188
+ getResonseFormLayoutConfig: u
1189
+ };
1190
+ }
1191
+ class Qe extends ze {
1086
1192
  constructor(t, o) {
1087
1193
  super(t, o);
1088
- x(this, "responseLayoutEditorFunction");
1089
- this.responseLayoutEditorFunction = ye(this.formSchemaUtils);
1194
+ M(this, "responseLayoutEditorFunction");
1195
+ this.responseLayoutEditorFunction = Je(this.formSchemaUtils);
1090
1196
  }
1091
1197
  getPropertyConfig(t, o) {
1092
1198
  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
1199
  }
1094
1200
  getBasicProperties(t, o) {
1095
- var c;
1201
+ var f;
1096
1202
  var a = this;
1097
1203
  this.setDesignViewModelField(t);
1098
- const l = this.formSchemaUtils.getFormMetadataBasicInfo(), u = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1204
+ const s = this.formSchemaUtils.getFormMetadataBasicInfo(), u = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1099
1205
  return {
1100
1206
  description: "Basic Information",
1101
1207
  title: "基本信息",
@@ -1117,7 +1223,7 @@ class Xe extends Re {
1117
1223
  textField: "value",
1118
1224
  valueField: "key",
1119
1225
  editable: !1,
1120
- data: a.designViewModelField ? U.getEditorTypesByMDataType((c = a.designViewModelField.type) == null ? void 0 : c.name) : U.getAllInputTypes()
1226
+ data: a.designViewModelField ? O.getEditorTypesByMDataType((f = a.designViewModelField.type) == null ? void 0 : f.name) : O.getAllInputTypes()
1121
1227
  }
1122
1228
  },
1123
1229
  label: {
@@ -1134,7 +1240,7 @@ class Xe extends Re {
1134
1240
  bindingType: { enable: !1 },
1135
1241
  editorParams: {
1136
1242
  propertyData: t,
1137
- formBasicInfo: l
1243
+ formBasicInfo: s
1138
1244
  },
1139
1245
  columns: [
1140
1246
  { field: "name", title: "字段名称" },
@@ -1192,14 +1298,14 @@ class Xe extends Re {
1192
1298
  }
1193
1299
  }
1194
1300
  },
1195
- setPropertyRelates(l, u) {
1196
- if (l)
1197
- switch (l && l.propertyID) {
1301
+ setPropertyRelates(s, u) {
1302
+ if (s)
1303
+ switch (s && s.propertyID) {
1198
1304
  case "responseLayout":
1199
- a.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, a.componentId || t.id), a.updateUnifiedLayoutAfterResponseLayoutChanged(a.componentId), a.updateElementByParentContainer(t.id, o), delete t.responseLayout;
1305
+ a.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(s.propertyValue, a.componentId || t.id), a.updateUnifiedLayoutAfterResponseLayoutChanged(a.componentId), a.updateElementByParentContainer(t.id, o), delete t.responseLayout;
1200
1306
  break;
1201
1307
  case "class":
1202
- a.updateUnifiedLayoutAfterControlChanged(l.propertyValue, t.id, this.componentId), a.updateElementByParentContainer(t.id, o);
1308
+ a.updateUnifiedLayoutAfterControlChanged(s.propertyValue, t.id, this.componentId), a.updateElementByParentContainer(t.id, o);
1203
1309
  break;
1204
1310
  }
1205
1311
  }
@@ -1214,20 +1320,20 @@ class Xe extends Re {
1214
1320
  * @param newControlType 新控件类型
1215
1321
  */
1216
1322
  changeControlType(t, o, a) {
1217
- var d, s, p, y;
1218
- const l = o.propertyValue, u = a && a.parent && a.parent.schema;
1323
+ var c, l, d, m;
1324
+ const s = o.propertyValue, u = a && a.parent && a.parent.schema;
1219
1325
  if (!u)
1220
1326
  return;
1221
- const c = u.contents.findIndex((f) => f.id === t.id), i = u.contents[c];
1327
+ const f = u.contents.findIndex((p) => p.id === t.id), i = u.contents[f];
1222
1328
  let r;
1223
1329
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1224
1330
  editor: {
1225
- $type: l
1331
+ $type: s
1226
1332
  },
1227
1333
  name: this.designViewModelField.name,
1228
1334
  require: this.designViewModelField.require,
1229
1335
  readonly: this.designViewModelField.readonly
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, {
1336
+ }, !1), r = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, s)), r || (r = this.controlCreatorUtils.createFormGroupWithoutField(s)), Object.assign(r, {
1231
1337
  id: i.id,
1232
1338
  appearance: i.appearance,
1233
1339
  size: i.size,
@@ -1236,16 +1342,16 @@ class Xe extends Re {
1236
1342
  visible: i.visible
1237
1343
  }), Object.assign(r.editor, {
1238
1344
  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++;
1345
+ placeholder: (c = i.editor) == null ? void 0 : c.placeholder,
1346
+ holdPlace: (l = i.editor) == null ? void 0 : l.holdPlace,
1347
+ readonly: (d = i.editor) == null ? void 0 : d.readonly,
1348
+ require: (m = i.editor) == null ? void 0 : m.require
1349
+ }), u.contents.splice(f, 1), u.contents.splice(f, 0, r), a.schema = Object.assign(i, r), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1350
+ (p) => p.classList.remove("dgComponentSelected")
1351
+ ), Xe.value++;
1246
1352
  }
1247
1353
  getComponentConfig(t, o = {}, a = {}) {
1248
- const l = Object.assign({
1354
+ const s = Object.assign({
1249
1355
  description: "编辑器",
1250
1356
  title: "编辑器",
1251
1357
  type: "input-group",
@@ -1272,7 +1378,7 @@ class Xe extends Re {
1272
1378
  type: "string"
1273
1379
  }
1274
1380
  }, a);
1275
- return { ...l, properties: { ...u } };
1381
+ return { ...s, properties: { ...u } };
1276
1382
  }
1277
1383
  /**
1278
1384
  * 修改某一输入控件的样式后更新Form的统一布局配置
@@ -1281,17 +1387,17 @@ class Xe extends Re {
1281
1387
  * @param componentId 控件所在组件id
1282
1388
  */
1283
1389
  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 = {
1390
+ const s = t.split(" ");
1391
+ let u = s.find((l) => /^col-([1-9]|10|11|12)$/.test(l)), f = s.find((l) => /^col-md-([1-9]|10|11|12)$/.test(l)), i = s.find((l) => /^col-xl-([1-9]|10|11|12)$/.test(l)), r = s.find((l) => /^col-el-([1-9]|10|11|12)$/.test(l));
1392
+ u = u || "col-12", f = f || "col-md-" + u.replace("col-", ""), i = i || "col-xl-" + f.replace("col-md-", ""), r = r || "col-el-" + i.replace("col-xl-", "");
1393
+ const c = {
1288
1394
  id: o,
1289
1395
  columnInSM: parseInt(u.replace("col-", ""), 10),
1290
- columnInMD: parseInt(c.replace("col-md-", ""), 10),
1396
+ columnInMD: parseInt(f.replace("col-md-", ""), 10),
1291
1397
  columnInLG: parseInt(i.replace("col-xl-", ""), 10),
1292
1398
  columnInEL: parseInt(r.replace("col-el-", ""), 10)
1293
1399
  };
1294
- this.updateUnifiedLayoutAfterResponseLayoutChanged(a, d);
1400
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(a, c);
1295
1401
  }
1296
1402
  /**
1297
1403
  * 修改控件布局配置后更新Form统一布局配置
@@ -1302,17 +1408,17 @@ class Xe extends Re {
1302
1408
  const { formNode: a } = this.responseLayoutEditorFunction.checkCanFindFormNode(t);
1303
1409
  if (!a || !a.unifiedLayout)
1304
1410
  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);
1411
+ const s = [];
1412
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(a, s, 1), o) {
1413
+ const p = s.find((y) => y.id === o.id);
1414
+ Object.assign(p || {}, o);
1309
1415
  }
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;
1416
+ const u = s.map((p) => p.columnInSM), f = s.map((p) => p.columnInMD), i = s.map((p) => p.columnInLG), r = s.map((p) => p.columnInEL), c = this.checkIsUniqueColumn(u) ? u[0] : null, l = this.checkIsUniqueColumn(f) ? f[0] : null, d = this.checkIsUniqueColumn(i) ? i[0] : null, m = this.checkIsUniqueColumn(r) ? r[0] : null;
1311
1417
  Object.assign(a.unifiedLayout, {
1312
- uniqueColClassInSM: d,
1313
- uniqueColClassInMD: s,
1314
- uniqueColClassInLG: p,
1315
- uniqueColClassInEL: y
1418
+ uniqueColClassInSM: c,
1419
+ uniqueColClassInMD: l,
1420
+ uniqueColClassInLG: d,
1421
+ uniqueColClassInEL: m
1316
1422
  });
1317
1423
  }
1318
1424
  /**
@@ -1323,7 +1429,7 @@ class Xe extends Re {
1323
1429
  return Array.from(o).length === 1;
1324
1430
  }
1325
1431
  }
1326
- class Ze extends Xe {
1432
+ class Ye extends Qe {
1327
1433
  constructor(n, t) {
1328
1434
  super(n, t);
1329
1435
  }
@@ -1333,35 +1439,35 @@ function _e(e, n) {
1333
1439
  canAccepts: t,
1334
1440
  checkCanDeleteComponent: o,
1335
1441
  checkCanMoveComponent: a,
1336
- hideNestedPaddingInDesginerView: l,
1442
+ hideNestedPaddingInDesginerView: s,
1337
1443
  onAcceptMovedChildElement: u,
1338
- resolveComponentContext: c,
1444
+ resolveComponentContext: f,
1339
1445
  triggerBelongedComponentToMoveWhenMoved: i,
1340
1446
  triggerBelongedComponentToDeleteWhenDeleted: r
1341
- } = ze(e), d = e.schema;
1342
- function s(p, y) {
1343
- return new Ze(p, n).getPropertyConfig(d, y);
1447
+ } = He(e), c = e.schema;
1448
+ function l(d, m) {
1449
+ return new Ye(d, n).getPropertyConfig(c, m);
1344
1450
  }
1345
1451
  return {
1346
1452
  canAccepts: t,
1347
1453
  checkCanDeleteComponent: o,
1348
1454
  checkCanMoveComponent: a,
1349
- hideNestedPaddingInDesginerView: l,
1455
+ hideNestedPaddingInDesginerView: s,
1350
1456
  onAcceptMovedChildElement: u,
1351
- resolveComponentContext: c,
1457
+ resolveComponentContext: f,
1352
1458
  triggerBelongedComponentToMoveWhenMoved: i,
1353
1459
  triggerBelongedComponentToDeleteWhenDeleted: r,
1354
- getPropsConfig: s
1460
+ getPropsConfig: l
1355
1461
  };
1356
1462
  }
1357
- function Qe(e, n, t) {
1358
- var I;
1463
+ function Ke(e, n, t) {
1464
+ var S;
1359
1465
  function o() {
1360
1466
  t != null && t.resolveComponentContext && t.resolveComponentContext();
1361
1467
  }
1362
1468
  o();
1363
- const a = t && t.getStyles && t.getStyles() || "", l = t && t.getDesignerClass && t.getDesignerClass() || "", u = h();
1364
- function c() {
1469
+ const a = t && t.getStyles && t.getStyles() || "", s = t && t.getDesignerClass && t.getDesignerClass() || "", u = b();
1470
+ function f() {
1365
1471
  return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1366
1472
  }
1367
1473
  function i() {
@@ -1370,123 +1476,114 @@ function Qe(e, n, t) {
1370
1476
  function r() {
1371
1477
  return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
1372
1478
  }
1373
- function d() {
1479
+ function c() {
1374
1480
  return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
1375
1481
  }
1376
- function s(b) {
1377
- if (!b || !b.value)
1482
+ function l(C) {
1483
+ if (!C || !C.value)
1378
1484
  return null;
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);
1382
- return M || null;
1485
+ if (C.value.schema && C.value.schema.type === "component")
1486
+ return C.value;
1487
+ const I = b(C == null ? void 0 : C.value.parent), k = l(I);
1488
+ return k || null;
1383
1489
  }
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);
1490
+ function d(C = n) {
1491
+ const { componentInstance: I, designerItemElementRef: k } = C;
1492
+ return !I || !I.value ? null : I.value.canMove ? k : d(C.parent);
1387
1493
  }
1388
- function y(b) {
1389
- return !!t && t.canAccepts(b);
1494
+ function m(C) {
1495
+ return !!t && t.canAccepts(C);
1390
1496
  }
1391
- function f() {
1497
+ function p() {
1392
1498
  return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
1393
1499
  }
1394
- function C() {
1395
- }
1396
- function S(b, w) {
1397
- w && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(w);
1500
+ function y() {
1398
1501
  }
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;
1502
+ function B(C, I) {
1503
+ I && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(I);
1405
1504
  }
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;
1505
+ function w(C, I) {
1506
+ const { componentType: k } = C;
1507
+ let A = _(k, C, I);
1508
+ t && t.onResolveNewComponentSchema && (A = t.onResolveNewComponentSchema(C, A));
1509
+ const D = k.toLowerCase().replace("-", "_");
1510
+ return A && !A.id && A.type === k && (A.id = `${D}_${Math.random().toString().slice(2, 6)}`), A;
1413
1511
  }
1414
- function P(b) {
1512
+ function T(C) {
1415
1513
  }
1416
- function k(...b) {
1514
+ function F(...C) {
1417
1515
  if (t && t.getPropsConfig)
1418
- return t.getPropsConfig(...b);
1516
+ return t.getPropsConfig(...C);
1419
1517
  }
1420
1518
  return u.value = {
1421
- canMove: c(),
1519
+ canMove: f(),
1422
1520
  canSelectParent: i(),
1423
1521
  canDelete: r(),
1424
- canNested: !d(),
1522
+ canNested: !c(),
1425
1523
  contents: n == null ? void 0 : n.schema.contents,
1426
1524
  elementRef: e,
1427
- parent: (I = n == null ? void 0 : n.parent) == null ? void 0 : I.componentInstance,
1525
+ parent: (S = n == null ? void 0 : n.parent) == null ? void 0 : S.componentInstance,
1428
1526
  schema: n == null ? void 0 : n.schema,
1429
1527
  styles: a,
1430
- designerClass: l,
1431
- canAccepts: y,
1432
- getBelongedComponentInstance: s,
1433
- getDraggableDesignItemElement: p,
1434
- getDraggingDisplayText: f,
1435
- getPropConfig: k,
1436
- getDragScopeElement: C,
1437
- onAcceptMovedChildElement: S,
1438
- onAcceptNewChildElement: A,
1439
- onChildElementMovedOut: P,
1440
- addNewChildComponentSchema: T,
1528
+ designerClass: s,
1529
+ canAccepts: m,
1530
+ getBelongedComponentInstance: l,
1531
+ getDraggableDesignItemElement: d,
1532
+ getDraggingDisplayText: p,
1533
+ getPropConfig: F,
1534
+ getDragScopeElement: y,
1535
+ onAcceptMovedChildElement: B,
1536
+ onChildElementMovedOut: T,
1537
+ addNewChildComponentSchema: w,
1441
1538
  updateDragAndDropRules: o,
1442
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || h(!1),
1443
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || h(!1)
1539
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || b(!1),
1540
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
1444
1541
  }, u;
1445
1542
  }
1446
- const Ye = /* @__PURE__ */ _({
1543
+ const Re = /* @__PURE__ */ Z({
1447
1544
  name: "FInputGroupDesign",
1448
- props: W,
1545
+ props: U,
1449
1546
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
1450
1547
  setup(e, n) {
1451
- const t = h(e.modelValue), o = h(e.modelValue), a = Ve(e, n, t, o), {
1452
- inputGroupClass: l,
1548
+ const t = b(e.modelValue), o = b(e.modelValue), a = Le(e, n, t, o), {
1549
+ inputGroupClass: s,
1453
1550
  inputType: u,
1454
- inputGroupStyle: c
1455
- } = a, i = ne(e), {
1551
+ inputGroupStyle: f
1552
+ } = a, i = ee(e), {
1456
1553
  shouldShowAppendedButton: r
1457
- } = i, d = te(e, n, a), {
1458
- onMouseEnter: s,
1459
- onMouseLeave: p
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);
1554
+ } = i, c = R(e, n, a), {
1555
+ onMouseEnter: l,
1556
+ onMouseLeave: d
1557
+ } = c, m = te(e, n, u, i), p = b(), y = H("designer-host-service"), B = H("design-item-context"), w = _e(B, y), T = Ke(p, B, w);
1461
1558
  N(() => {
1462
- f.value.componentInstance = A;
1463
- }), n.expose(A.value);
1464
- const P = ae(e, n, i, d, y), k = h();
1465
- return () => B("div", {
1559
+ p.value.componentInstance = T;
1560
+ }), n.expose(T.value);
1561
+ const F = ne(e, n, i, c, m), S = b();
1562
+ return () => E("div", {
1466
1563
  id: "inputGroup",
1467
- ref: f,
1468
- class: l.value,
1469
- style: c.value,
1470
- onMouseenter: s,
1471
- onMouseleave: p
1472
- }, [B("input", {
1473
- ref: k,
1564
+ ref: p,
1565
+ class: s.value,
1566
+ style: f.value,
1567
+ onMouseenter: l,
1568
+ onMouseleave: d
1569
+ }, [E("input", {
1570
+ ref: S,
1474
1571
  class: "form-control",
1475
1572
  readonly: !0,
1476
1573
  placeholder: e.placeholder
1477
- }, null), r.value && P()]);
1574
+ }, null), r.value && F()]);
1478
1575
  }
1479
1576
  });
1480
- j.register = (e, n, t, o) => {
1481
- e["input-group"] = j, n["input-group"] = ee;
1577
+ V.register = (e, n, t, o) => {
1578
+ e["input-group"] = V, n["input-group"] = K;
1482
1579
  };
1483
- j.registerDesigner = (e, n, t) => {
1484
- e["input-group"] = Ye, n["input-group"] = ee;
1580
+ V.registerDesigner = (e, n, t) => {
1581
+ e["input-group"] = Re, n["input-group"] = K;
1485
1582
  };
1486
- const it = Ue(j);
1583
+ const rt = Ge(V);
1487
1584
  export {
1488
- j as FInputGroup,
1489
- it as default,
1490
- W as inputGroupProps,
1491
- ee as propsResolver
1585
+ V as FInputGroup,
1586
+ rt as default,
1587
+ U as inputGroupProps,
1588
+ K as propsResolver
1492
1589
  };