@farris/ui-vue 1.2.6 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/components/accordion/index.esm.js +150 -142
  2. package/components/avatar/index.esm.js +393 -457
  3. package/components/border-editor/index.esm.js +4 -4
  4. package/components/button/index.esm.js +1 -1
  5. package/components/button-edit/index.esm.js +353 -444
  6. package/components/button-group/index.esm.js +5 -5
  7. package/components/calendar/index.esm.js +176 -176
  8. package/components/capsule/index.esm.js +93 -93
  9. package/components/checkbox/index.esm.js +491 -554
  10. package/components/color-picker/index.esm.js +1 -1
  11. package/components/combo-list/index.esm.js +479 -513
  12. package/components/combo-tree/index.esm.js +8 -8
  13. package/components/component/index.esm.js +89 -89
  14. package/components/condition/index.esm.js +857 -743
  15. package/components/content-container/index.esm.js +61 -61
  16. package/components/data-grid/index.esm.js +4883 -5182
  17. package/components/data-view/index.esm.js +3072 -2949
  18. package/components/date-picker/index.esm.js +2626 -2689
  19. package/components/dependent-base/style.js +1 -0
  20. package/components/dependent-fluid/style.js +1 -0
  21. package/components/dependent-icon/style.js +1 -0
  22. package/components/dependent-input/style.js +1 -0
  23. package/components/dependent-table/style.js +1 -0
  24. package/components/designer-canvas/index.esm.js +478 -475
  25. package/components/designer-outline/index.esm.js +173 -131
  26. package/components/discussion-editor/index.esm.js +1 -1
  27. package/components/dropdown/index.esm.js +73 -73
  28. package/components/dynamic-form/index.esm.js +940 -998
  29. package/components/dynamic-resolver/index.esm.js +67 -35
  30. package/components/dynamic-view/index.esm.js +307 -293
  31. package/components/enum-editor/index.esm.js +3 -3
  32. package/components/events-editor/index.esm.js +178 -178
  33. package/components/expression-editor/index.esm.js +105 -105
  34. package/components/external-container/index.esm.js +1747 -1627
  35. package/components/field-selector/index.css +1 -1
  36. package/components/field-selector/index.esm.js +5877 -6176
  37. package/components/filter-bar/index.css +1 -1
  38. package/components/filter-bar/index.esm.js +1454 -1524
  39. package/components/flow-canvas/index.esm.js +678 -675
  40. package/components/image-cropper/index.esm.js +266 -266
  41. package/components/input-group/index.esm.js +659 -722
  42. package/components/layout/index.esm.js +148 -148
  43. package/components/list-nav/index.esm.js +109 -109
  44. package/components/list-view/index.esm.js +1643 -1524
  45. package/components/lookup/index.css +1 -1
  46. package/components/lookup/index.esm.js +6502 -6770
  47. package/components/mapping-editor/index.esm.js +5639 -5939
  48. package/components/message-box/index.esm.js +1 -1
  49. package/components/modal/index.esm.js +1 -1
  50. package/components/nav/index.esm.js +86 -86
  51. package/components/number-range/index.esm.js +1120 -0
  52. package/components/number-range/package.json +8 -0
  53. package/components/number-range/style.js +6 -0
  54. package/components/number-spinner/index.esm.js +1146 -0
  55. package/components/number-spinner/package.json +8 -0
  56. package/components/number-spinner/style.js +4 -0
  57. package/components/order/index.esm.js +1098 -1130
  58. package/components/page-footer/index.esm.js +106 -106
  59. package/components/page-header/index.esm.js +1088 -1317
  60. package/components/pagination/index.esm.js +252 -252
  61. package/components/progress/index.esm.js +37 -37
  62. package/components/property-editor/index.esm.js +1479 -1513
  63. package/components/property-panel/index.css +1 -1
  64. package/components/property-panel/index.esm.js +706 -778
  65. package/components/query-solution/index.css +1 -0
  66. package/components/query-solution/index.esm.js +6935 -0
  67. package/components/query-solution/package.json +8 -0
  68. package/components/query-solution/style.js +2 -0
  69. package/components/radio-button/index.esm.js +64 -64
  70. package/components/radio-group/index.esm.js +453 -516
  71. package/components/rate/index.esm.js +92 -92
  72. package/components/response-layout/index.esm.js +33 -33
  73. package/components/response-layout-editor/index.esm.js +555 -526
  74. package/components/response-toolbar/index.esm.js +1009 -1247
  75. package/components/schema-selector/index.esm.js +3261 -3373
  76. package/components/search-box/index.esm.js +143 -143
  77. package/components/section/index.esm.js +209 -209
  78. package/components/smoke-detector/index.esm.js +22 -22
  79. package/components/spacing-editor/index.esm.js +2 -2
  80. package/components/splitter/index.esm.js +1097 -394
  81. package/components/step/index.esm.js +153 -153
  82. package/components/switch/index.esm.js +441 -504
  83. package/components/tabs/index.esm.js +1849 -2039
  84. package/components/tags/index.esm.js +215 -215
  85. package/components/text/index.esm.js +53 -53
  86. package/components/textarea/index.esm.js +445 -493
  87. package/components/time-picker/index.esm.js +1350 -1414
  88. package/components/transfer/index.esm.js +146 -144
  89. package/components/tree-grid/index.css +1 -1
  90. package/components/tree-grid/index.esm.js +5948 -6237
  91. package/components/tree-view/index.esm.js +2381 -2255
  92. package/components/uploader/index.esm.js +1 -1
  93. package/components/verify-detail/index.esm.js +232 -232
  94. package/components/video/index.esm.js +136 -136
  95. package/components/weather/index.esm.js +2 -2
  96. package/farris.all.esm.js +27221 -26804
  97. package/farris.all.umd.cjs +9 -9
  98. package/index.css +1 -1
  99. package/package.json +1 -1
  100. package/types/checkbox/index.d.ts +1 -0
  101. package/types/combo-list/src/components/list-container.component.d.ts +6 -0
  102. package/types/combo-list/src/components/list-container.props.d.ts +9 -1
  103. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  104. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  105. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  106. package/types/data-view/composition/types.d.ts +1 -1
  107. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  108. package/types/designer-canvas/src/types.d.ts +1 -1
  109. package/types/dynamic-form/index.d.ts +1 -0
  110. package/types/dynamic-form/src/types.d.ts +1 -1
  111. package/types/dynamic-resolver/index.d.ts +1 -0
  112. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  113. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  114. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
  115. package/types/lookup/src/property-config/lookup.property-config.d.ts +4 -3
  116. package/types/modal/src/modal.props.d.ts +1 -4
  117. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -28
  118. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -5
  119. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  120. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  121. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  122. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  123. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  124. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  125. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
  126. package/components/accordion/index.umd.cjs +0 -1
  127. package/components/avatar/index.umd.cjs +0 -1
  128. package/components/border-editor/index.umd.cjs +0 -1
  129. package/components/button/index.umd.cjs +0 -1
  130. package/components/button-edit/index.umd.cjs +0 -1
  131. package/components/button-group/index.umd.cjs +0 -1
  132. package/components/calculator/index.umd.cjs +0 -1
  133. package/components/calendar/index.umd.cjs +0 -1
  134. package/components/capsule/index.umd.cjs +0 -1
  135. package/components/checkbox/index.umd.cjs +0 -1
  136. package/components/color-picker/index.umd.cjs +0 -3
  137. package/components/combo-list/index.umd.cjs +0 -1
  138. package/components/combo-tree/index.umd.cjs +0 -1
  139. package/components/common/index.umd.cjs +0 -1
  140. package/components/component/index.umd.cjs +0 -1
  141. package/components/condition/index.umd.cjs +0 -1
  142. package/components/content-container/index.umd.cjs +0 -1
  143. package/components/data-grid/index.umd.cjs +0 -1
  144. package/components/data-view/index.umd.cjs +0 -1
  145. package/components/date-picker/index.umd.cjs +0 -1
  146. package/components/designer-canvas/index.umd.cjs +0 -1
  147. package/components/designer-outline/index.umd.cjs +0 -1
  148. package/components/designer-toolbox/index.umd.cjs +0 -1
  149. package/components/discussion-editor/index.umd.cjs +0 -3
  150. package/components/discussion-list/index.umd.cjs +0 -1
  151. package/components/drawer/index.umd.cjs +0 -1
  152. package/components/dropdown/index.umd.cjs +0 -2
  153. package/components/dynamic-form/index.umd.cjs +0 -1
  154. package/components/dynamic-resolver/index.umd.cjs +0 -1
  155. package/components/dynamic-view/index.umd.cjs +0 -1
  156. package/components/enum-editor/index.umd.cjs +0 -1
  157. package/components/events-editor/index.umd.cjs +0 -1
  158. package/components/expression-editor/index.umd.cjs +0 -1
  159. package/components/external-container/index.umd.cjs +0 -1
  160. package/components/field-selector/index.umd.cjs +0 -1
  161. package/components/filter-bar/index.umd.cjs +0 -1
  162. package/components/flow-canvas/index.umd.cjs +0 -1
  163. package/components/image-cropper/index.umd.cjs +0 -1
  164. package/components/input-group/index.umd.cjs +0 -1
  165. package/components/layout/index.umd.cjs +0 -1
  166. package/components/list-nav/index.umd.cjs +0 -1
  167. package/components/list-view/index.umd.cjs +0 -1
  168. package/components/loading/index.umd.cjs +0 -8
  169. package/components/locale/index.umd.cjs +0 -1
  170. package/components/lookup/index.umd.cjs +0 -1
  171. package/components/mapping-editor/index.umd.cjs +0 -1
  172. package/components/message-box/index.umd.cjs +0 -1
  173. package/components/modal/index.umd.cjs +0 -1
  174. package/components/nav/index.umd.cjs +0 -3
  175. package/components/notify/index.umd.cjs +0 -1
  176. package/components/order/index.umd.cjs +0 -1
  177. package/components/page-footer/index.umd.cjs +0 -1
  178. package/components/page-header/index.umd.cjs +0 -1
  179. package/components/pagination/index.umd.cjs +0 -1
  180. package/components/popover/index.umd.cjs +0 -1
  181. package/components/progress/index.umd.cjs +0 -3
  182. package/components/property-editor/index.umd.cjs +0 -3
  183. package/components/property-panel/index.umd.cjs +0 -1
  184. package/components/radio-button/index.umd.cjs +0 -1
  185. package/components/radio-group/index.umd.cjs +0 -1
  186. package/components/rate/index.umd.cjs +0 -1
  187. package/components/response-layout/index.umd.cjs +0 -1
  188. package/components/response-layout-editor/index.umd.cjs +0 -1
  189. package/components/response-toolbar/index.umd.cjs +0 -1
  190. package/components/schema-selector/index.umd.cjs +0 -8
  191. package/components/search-box/index.umd.cjs +0 -1
  192. package/components/section/index.umd.cjs +0 -1
  193. package/components/smoke-detector/index.umd.cjs +0 -1
  194. package/components/spacing-editor/index.umd.cjs +0 -1
  195. package/components/splitter/index.umd.cjs +0 -1
  196. package/components/step/index.umd.cjs +0 -1
  197. package/components/switch/index.umd.cjs +0 -1
  198. package/components/tabs/index.umd.cjs +0 -1
  199. package/components/tags/index.umd.cjs +0 -1
  200. package/components/text/index.umd.cjs +0 -1
  201. package/components/textarea/index.umd.cjs +0 -1
  202. package/components/time-picker/index.umd.cjs +0 -1
  203. package/components/tooltip/index.umd.cjs +0 -1
  204. package/components/transfer/index.umd.cjs +0 -1
  205. package/components/tree-grid/index.umd.cjs +0 -1
  206. package/components/tree-view/index.umd.cjs +0 -1
  207. package/components/uploader/index.umd.cjs +0 -2
  208. package/components/verify-detail/index.umd.cjs +0 -1
  209. package/components/video/index.umd.cjs +0 -1
  210. package/components/weather/index.umd.cjs +0 -16
@@ -1,166 +1,166 @@
1
- var Ae = Object.defineProperty;
2
- var De = (e, t, n) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var I = (e, t, n) => De(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as G, ref as f, computed as P, createVNode as A, nextTick as te, inject as W, onMounted as U, watch as $, createTextVNode as Ee, reactive as Ve, withDirectives as Oe, resolveDirective as Le, Fragment as le, mergeProps as _ } from "vue";
5
- import { cloneDeep as Ne } from "lodash-es";
1
+ var Ee = Object.defineProperty;
2
+ var Ve = (e, t, n) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var L = (e, t, n) => Ve(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { defineComponent as q, ref as m, computed as k, createVNode as A, nextTick as oe, inject as z, onMounted as U, watch as I, createTextVNode as Oe, reactive as $e, withDirectives as Ne, resolveDirective as Le, Fragment as ue, mergeProps as Z } from "vue";
5
+ import { cloneDeep as Ie } from "lodash-es";
6
6
  import "bignumber.js";
7
- import Ie, { useNumber as $e, useFormat as Re, useSpinner as Ge, useTextBox as qe } from "@farris/ui-vue/components/number-spinner";
8
- import Ue from "@farris/ui-vue/components/accordion";
9
- import He from "@farris/ui-vue/components/avatar";
10
- import We from "@farris/ui-vue/components/button-edit";
11
- import ze from "@farris/ui-vue/components/button-group";
12
- import Qe from "@farris/ui-vue/components/calendar";
13
- import _e from "@farris/ui-vue/components/capsule";
14
- import Ze from "@farris/ui-vue/components/checkbox";
15
- import Xe from "@farris/ui-vue/components/combo-list";
16
- import Ye from "@farris/ui-vue/components/combo-tree";
17
- import Ke from "@farris/ui-vue/components/component";
18
- import Je from "@farris/ui-vue/components/color-picker";
19
- import et from "@farris/ui-vue/components/content-container";
20
- import tt from "@farris/ui-vue/components/date-picker";
21
- import nt from "@farris/ui-vue/components/data-grid";
22
- import ot from "@farris/ui-vue/components/dropdown";
23
- import rt from "@farris/ui-vue/components/dynamic-form";
24
- import at from "@farris/ui-vue/components/events-editor";
25
- import it from "@farris/ui-vue/components/filter-bar";
26
- import st from "@farris/ui-vue/components/field-selector";
27
- import lt from "@farris/ui-vue/components/image-cropper";
28
- import ct from "@farris/ui-vue/components/input-group";
29
- import ut from "@farris/ui-vue/components/layout";
30
- import pt from "@farris/ui-vue/components/list-nav";
31
- import dt from "@farris/ui-vue/components/list-view";
32
- import mt from "@farris/ui-vue/components/lookup";
33
- import ft from "@farris/ui-vue/components/mapping-editor";
34
- import yt from "@farris/ui-vue/components/nav";
35
- import gt from "@farris/ui-vue/components/number-range";
36
- import bt from "@farris/ui-vue/components/order";
37
- import ht from "@farris/ui-vue/components/page-header";
38
- import vt from "@farris/ui-vue/components/page-footer";
39
- import Ct from "@farris/ui-vue/components/pagination";
40
- import Tt from "@farris/ui-vue/components/progress";
41
- import Ft from "@farris/ui-vue/components/query-solution";
42
- import wt from "@farris/ui-vue/components/radio-group";
43
- import Bt from "@farris/ui-vue/components/rate";
44
- import St from "@farris/ui-vue/components/response-toolbar";
45
- import Pt from "@farris/ui-vue/components/response-layout";
46
- import kt from "@farris/ui-vue/components/response-layout-editor";
47
- import xt from "@farris/ui-vue/components/search-box";
48
- import Mt from "@farris/ui-vue/components/section";
49
- import jt from "@farris/ui-vue/components/smoke-detector";
50
- import At from "@farris/ui-vue/components/splitter";
51
- import Dt from "@farris/ui-vue/components/step";
52
- import Et from "@farris/ui-vue/components/switch";
53
- import Vt from "@farris/ui-vue/components/tabs";
54
- import Ot from "@farris/ui-vue/components/tags";
55
- import Lt from "@farris/ui-vue/components/text";
56
- import Nt from "@farris/ui-vue/components/time-picker";
57
- import It from "@farris/ui-vue/components/transfer";
58
- import $t from "@farris/ui-vue/components/tree-view";
59
- import Rt from "@farris/ui-vue/components/uploader";
60
- import Gt from "@farris/ui-vue/components/verify-detail";
61
- import qt from "@farris/ui-vue/components/weather";
62
- import Ut from "@farris/ui-vue/components/video";
63
- import Ht from "@farris/ui-vue/components/textarea";
64
- import Wt from "@farris/ui-vue/components/schema-selector";
65
- import "@farris/ui-vue/components/external-container";
66
- const de = {}, me = {};
67
- function ne(e) {
68
- const { properties: t, title: n } = e, r = Object.keys(t).reduce((o, i) => (o[i] = t[i].type === "object" && t[i].properties ? ne(t[i]) : Ne(t[i].default), o), {});
7
+ import Ge, { useNumber as qe, useFormat as Re, useSpinner as Ue, useTextBox as We } from "../number-spinner/index.esm.js";
8
+ import He from "../accordion/index.esm.js";
9
+ import ze from "../avatar/index.esm.js";
10
+ import _e from "../button-edit/index.esm.js";
11
+ import Je from "../button-group/index.esm.js";
12
+ import Qe from "../calendar/index.esm.js";
13
+ import Ze from "../capsule/index.esm.js";
14
+ import Xe from "../checkbox/index.esm.js";
15
+ import Ye from "../combo-list/index.esm.js";
16
+ import Ke from "../combo-tree/index.esm.js";
17
+ import et from "../component/index.esm.js";
18
+ import tt from "../color-picker/index.esm.js";
19
+ import nt from "../content-container/index.esm.js";
20
+ import ot from "../date-picker/index.esm.js";
21
+ import rt from "../data-grid/index.esm.js";
22
+ import at from "../dropdown/index.esm.js";
23
+ import it from "../dynamic-form/index.esm.js";
24
+ import st from "../events-editor/index.esm.js";
25
+ import lt from "../filter-bar/index.esm.js";
26
+ import ct from "../field-selector/index.esm.js";
27
+ import ut from "../image-cropper/index.esm.js";
28
+ import pt from "../input-group/index.esm.js";
29
+ import dt from "../layout/index.esm.js";
30
+ import ft from "../list-nav/index.esm.js";
31
+ import mt from "../list-view/index.esm.js";
32
+ import yt from "../lookup/index.esm.js";
33
+ import gt from "../mapping-editor/index.esm.js";
34
+ import bt from "../nav/index.esm.js";
35
+ import ht from "../number-range/index.esm.js";
36
+ import vt from "../order/index.esm.js";
37
+ import Ct from "../page-header/index.esm.js";
38
+ import wt from "../page-footer/index.esm.js";
39
+ import Tt from "../pagination/index.esm.js";
40
+ import Ft from "../progress/index.esm.js";
41
+ import Bt from "../query-solution/index.esm.js";
42
+ import kt from "../radio-group/index.esm.js";
43
+ import jt from "../rate/index.esm.js";
44
+ import Pt from "../response-toolbar/index.esm.js";
45
+ import xt from "../response-layout/index.esm.js";
46
+ import St from "../response-layout-editor/index.esm.js";
47
+ import Mt from "../search-box/index.esm.js";
48
+ import At from "../section/index.esm.js";
49
+ import Dt from "../smoke-detector/index.esm.js";
50
+ import Et from "../splitter/index.esm.js";
51
+ import Vt from "../step/index.esm.js";
52
+ import Ot from "../switch/index.esm.js";
53
+ import $t from "../tabs/index.esm.js";
54
+ import Nt from "../tags/index.esm.js";
55
+ import Lt from "../text/index.esm.js";
56
+ import It from "../time-picker/index.esm.js";
57
+ import Gt from "../transfer/index.esm.js";
58
+ import qt from "../tree-view/index.esm.js";
59
+ import Rt from "../uploader/index.esm.js";
60
+ import Ut from "../verify-detail/index.esm.js";
61
+ import Wt from "../weather/index.esm.js";
62
+ import Ht from "../video/index.esm.js";
63
+ import zt from "../textarea/index.esm.js";
64
+ import _t from "../schema-selector/index.esm.js";
65
+ import Jt from "../tree-grid/index.esm.js";
66
+ import "../external-container/index.esm.js";
67
+ import { getSchemaByType as pe } from "../dynamic-resolver/index.esm.js";
68
+ const ye = {}, ge = {};
69
+ function re(e) {
70
+ const { properties: t, title: n } = e, r = Object.keys(t).reduce((o, s) => (o[s] = t[s].type === "object" && t[s].properties ? re(t[s]) : Ie(t[s].default), o), {});
69
71
  return r.id = `${n}-${Date.now()}`, r;
70
72
  }
71
- function z(e, t = {}) {
72
- const n = de[e];
73
+ function _(e, t = {}) {
74
+ const n = ye[e];
73
75
  if (n) {
74
- let r = ne(n);
75
- const o = me[e];
76
- return r = o ? o({ getSchemaByType: z }, r, t) : r, r;
76
+ let r = re(n);
77
+ const o = ge[e];
78
+ return r = o ? o({ getSchemaByType: _ }, r, t) : r, r;
77
79
  }
78
80
  return null;
79
81
  }
80
- function zt(e, t) {
81
- const n = ne(t);
82
- return Object.keys(e).reduce((r, o) => (r[o] = e[o], r), n), n;
83
- }
84
82
  function Qt(e, t) {
83
+ const n = re(t);
84
+ return Object.keys(e).reduce((r, o) => (r[o] && typeof r[o] == "object" ? Object.assign(r[o], e[o]) : r[o] = e[o], r), n), n;
85
+ }
86
+ function Zt(e, t) {
85
87
  return Object.keys(e).filter((r) => e[r] != null).reduce((r, o) => {
86
88
  if (t.has(o)) {
87
- const i = t.get(o);
88
- if (typeof i == "string")
89
- r[i] = e[o];
89
+ const s = t.get(o);
90
+ if (typeof s == "string")
91
+ r[s] = e[o];
90
92
  else {
91
- const l = i(o, e[o], e);
92
- Object.assign(r, l);
93
+ const i = s(o, e[o], e);
94
+ Object.assign(r, i);
93
95
  }
94
96
  } else
95
97
  r[o] = e[o];
96
98
  return r;
97
99
  }, {});
98
100
  }
99
- function _t(e, t, n = /* @__PURE__ */ new Map()) {
100
- const r = zt(e, t);
101
- return Qt(r, n);
101
+ function Xt(e, t, n = /* @__PURE__ */ new Map()) {
102
+ const r = Qt(e, t);
103
+ return Zt(r, n);
102
104
  }
103
- function Zt(e = {}) {
104
- function t(a, u, c, y) {
105
+ function Yt(e = {}) {
106
+ function t(a, d, c, y) {
105
107
  if (typeof c == "number")
106
108
  return y[a].length === c;
107
109
  if (typeof c == "object") {
108
- const F = Object.keys(c)[0], s = c[F];
109
- if (F === "not")
110
- return Number(y[a].length) !== Number(s);
111
- if (F === "moreThan")
112
- return Number(y[a].length) >= Number(s);
113
- if (F === "lessThan")
114
- return Number(y[a].length) <= Number(s);
110
+ const w = Object.keys(c)[0], l = c[w];
111
+ if (w === "not")
112
+ return Number(y[a].length) !== Number(l);
113
+ if (w === "moreThan")
114
+ return Number(y[a].length) >= Number(l);
115
+ if (w === "lessThan")
116
+ return Number(y[a].length) <= Number(l);
115
117
  }
116
118
  return !1;
117
119
  }
118
- function n(a, u, c, y) {
120
+ function n(a, d, c, y) {
119
121
  return y[a] && y[a].propertyValue && String(y[a].propertyValue.value) === String(c);
120
122
  }
121
123
  const r = /* @__PURE__ */ new Map([
122
124
  ["length", t],
123
125
  ["getProperty", n]
124
126
  ]);
125
- Object.keys(e).reduce((a, u) => (a.set(u, e[u]), a), r);
126
- function o(a, u) {
127
+ Object.keys(e).reduce((a, d) => (a.set(d, e[d]), a), r);
128
+ function o(a, d) {
127
129
  const c = a;
128
- return typeof u == "number" ? [{ target: c, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: c, operator: "getProperty", param: a, value: !!u }] : typeof u == "object" ? Object.keys(u).map((y) => {
130
+ return typeof d == "number" ? [{ target: c, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: c, operator: "getProperty", param: a, value: !!d }] : typeof d == "object" ? Object.keys(d).map((y) => {
129
131
  if (y === "length")
130
- return { target: c, operator: "length", param: null, value: u[y] };
131
- const F = y, s = u[y];
132
- return { target: c, operator: "getProperty", param: F, value: s };
132
+ return { target: c, operator: "length", param: null, value: d[y] };
133
+ const w = y, l = d[y];
134
+ return { target: c, operator: "getProperty", param: w, value: l };
133
135
  }) : [];
134
136
  }
135
- function i(a) {
137
+ function s(a) {
136
138
  return Object.keys(a).reduce((c, y) => {
137
- const F = o(y, a[y]);
138
- return c.push(...F), c;
139
+ const w = o(y, a[y]);
140
+ return c.push(...w), c;
139
141
  }, []);
140
142
  }
141
- function l(a, u) {
143
+ function i(a, d) {
142
144
  if (r.has(a.operator)) {
143
145
  const c = r.get(a.operator);
144
- return c && c(a.target, a.param, a.value, u) || !1;
146
+ return c && c(a.target, a.param, a.value, d) || !1;
145
147
  }
146
148
  return !1;
147
149
  }
148
- function d(a, u) {
149
- return i(a).reduce((F, s) => F && l(s, u), !0);
150
+ function u(a, d) {
151
+ return s(a).reduce((w, l) => w && i(l, d), !0);
150
152
  }
151
- function m(a, u) {
152
- const c = Object.keys(a), y = c.includes("allOf"), F = c.includes("anyOf"), s = y || F, w = (s ? a[s ? y ? "allOf" : "anyOf" : "allOf"] : [a]).map((j) => d(j, u));
153
- return y ? !w.includes(!1) : w.includes(!0);
153
+ function p(a, d) {
154
+ const c = Object.keys(a), y = c.includes("allOf"), w = c.includes("anyOf"), l = y || w, T = (l ? a[l ? y ? "allOf" : "anyOf" : "allOf"] : [a]).map((M) => u(M, d));
155
+ return y ? !T.includes(!1) : T.includes(!0);
154
156
  }
155
- return { parseValueSchema: m };
157
+ return { parseValueSchema: p };
156
158
  }
157
- const T = {
158
- Button: { type: "Button", name: "按钮", icon: "Button" },
159
- ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
159
+ const j = {
160
+ button: { type: "button", name: "按钮", icon: "Button" },
160
161
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
161
- "response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
162
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
162
163
  "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
163
- DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
164
164
  "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
165
165
  textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
166
166
  lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
@@ -171,112 +171,41 @@ const T = {
171
171
  "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
172
172
  "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
173
173
  "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
174
- /** 暂时没用 */
175
- FlexLayout: { type: "FlexLayout", name: "弹性布局" },
176
- /** 暂时没用 */
177
- FlowLayout: { type: "FlowLayout", name: "流布局" },
178
- ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
179
- ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
174
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
175
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
176
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
180
177
  "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
181
- TreeGridField: { type: "TreeGridField", name: "树表格列" },
182
- FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
183
- Form: { type: "Form", name: "卡片面板", icon: "Form" },
184
- QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
178
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
185
179
  "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
186
180
  "data-grid-column": { type: "data-grid-column", name: "表格列" },
187
- Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
188
- Module: { type: "Module", name: "模块", icon: "Module" },
181
+ module: { type: "Module", name: "模块", icon: "Module" },
189
182
  component: { type: "component", name: "组件", icon: "Component" },
190
- ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
191
- Image: { type: "Image", name: "图像", icon: "Image" },
192
- ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
193
- HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
194
- ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
195
- RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
196
183
  tabs: { type: "tabs", name: "标签页", icon: "Tab" },
197
184
  "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
198
185
  "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
199
- Tag: { type: "Tag", name: "Tag", icon: "Tag" },
200
- Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
201
- HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
202
- ListView: { type: "ListView", name: "列表", icon: "ListView" },
203
- RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
204
- TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
205
- TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
186
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
206
187
  section: { type: "section", name: "分组面板", icon: "Section" },
207
- SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
208
- SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
209
- QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
210
- FormHeader: { type: "FormHeader", name: "翻页" },
211
- Splitter: { type: "Splitter", name: "分栏面板", icon: "Splitter" },
212
- SplitterPane: { type: "SplitterPane", name: "分栏面板项", dependentParentControl: "Splitter" },
213
- WizardDetail: { type: "WizardDetail", name: "向导详情页" },
214
- WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
215
- Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
216
- MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
217
- Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
218
- avatar: { type: "avatar", name: "头像", icon: "Avatar" },
219
- ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
220
- ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
221
- NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
222
- Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
223
- LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
224
- ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
225
- FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
226
- FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
227
- ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
228
- MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
229
- MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
230
- Footer: { type: "Footer", name: "页脚" },
231
- DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
232
- DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
233
- NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
234
- Tags: { type: "Tags", name: "标记组", icon: "Tags" },
235
- Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
188
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
189
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
190
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
191
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
192
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
193
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
236
194
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
237
- ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
238
- ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
239
- PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
240
- Table: { type: "Table", name: "表格", icon: "DataGrid" },
241
- LoopContainer: { type: "LoopContainer", name: "循环容器", icon: "ContentContainer" },
242
- FileUploadPreview: { type: "FileUploadPreview", name: "附件上传预览", icon: "FileUpload" },
243
- DynamicArea: { type: "DynamicArea", name: "动态区域", icon: "ContentContainer" },
244
- DynamicAreaItem: { type: "DynamicAreaItem", name: "动态区域项", icon: "ContentContainer" },
245
- TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
246
- HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
247
- ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
248
- HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
249
- ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
250
- OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
251
- AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
252
- EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
253
- OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
254
- CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
255
- ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
256
- AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
257
- /** 查询类 start */
258
- Charts: { type: "Charts", name: "图表", icon: "Charts" },
259
- QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
260
- SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
261
- QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
262
- QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
263
- /** 查询类 end */
264
- /** 审批类 start */
265
- ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
266
- ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
267
- /** 审批类 end */
268
- }, fe = {}, Xt = {};
269
- Zt();
270
- function Z(e, t, n = /* @__PURE__ */ new Map(), r = (l, d, m) => d, o = {}, i = (l) => l) {
271
- return de[t.title] = t, me[t.title] = r, fe[t.title] = o, Xt[t.title] = i, (l = {}) => {
272
- const d = _t(l, t, n), m = Object.keys(e).reduce((a, u) => (a[u] = e[u].default, a), {});
273
- return Object.assign(m, d);
195
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
196
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
197
+ }, be = {}, Kt = {};
198
+ Yt();
199
+ function X(e, t, n = /* @__PURE__ */ new Map(), r = (i, u, p) => u, o = {}, s = (i) => i) {
200
+ return ye[t.title] = t, ge[t.title] = r, be[t.title] = o, Kt[t.title] = s, (i = {}) => {
201
+ const u = Xt(i, t, n), p = Object.keys(e).reduce((a, d) => (a[d] = e[d].default, a), {});
202
+ return Object.assign(p, u);
274
203
  };
275
204
  }
276
- function ye(e, t) {
205
+ function he(e, t) {
277
206
  return { customClass: t.class, customStyle: t.style };
278
207
  }
279
- function Yt() {
208
+ function en() {
280
209
  function e(t) {
281
210
  return t.editor;
282
211
  }
@@ -284,25 +213,25 @@ function Yt() {
284
213
  resolve: e
285
214
  };
286
215
  }
287
- const oe = /* @__PURE__ */ new Map([
288
- ["appearance", ye]
216
+ const ae = /* @__PURE__ */ new Map([
217
+ ["appearance", he]
289
218
  ]);
290
- function Kt(e, t, n, r) {
219
+ function tn(e, t, n, r) {
291
220
  const o = e.getSchemaByType("section");
292
221
  return o.id = `${r}-section`, o.appearance = { class: "f-section-form f-section-in-main" }, o.mainTitle = "标题", o.contents = [t], o;
293
222
  }
294
- function Jt(e, t, n, r) {
223
+ function nn(e, t, n, r) {
295
224
  const o = e.getSchemaByType("component");
296
225
  return o.id = `${r}-component`, o.componentType = "form-col-1", o.appearance = {
297
226
  class: "f-struct-form f-struct-wrapper"
298
227
  }, o.contents = [t], o;
299
228
  }
300
- function en(e, t, n) {
229
+ function on(e, t, n) {
301
230
  t.appearance = { class: "f-form-layout farris-form farris-form-controls-inline" };
302
- const r = Kt(e, t, n, t.id);
303
- return Jt(e, r, n, t.id);
231
+ const r = tn(e, t, n, t.id);
232
+ return nn(e, r, n, t.id);
304
233
  }
305
- const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-design.gitee.io/response-form.schema.json", on = "response-form", rn = "A Farris Data Collection Component", an = "object", sn = {
234
+ const rn = "https://json-schema.org/draft/2020-12/schema", an = "https://farris-design.gitee.io/response-form.schema.json", sn = "response-form", ln = "A Farris Data Collection Component", cn = "object", un = {
306
235
  id: {
307
236
  description: "The unique identifier for a form group",
308
237
  type: "string"
@@ -330,18 +259,18 @@ const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-
330
259
  type: "array",
331
260
  default: []
332
261
  }
333
- }, ln = [
262
+ }, pn = [
334
263
  "id",
335
264
  "type"
336
- ], cn = {
337
- $schema: tn,
338
- $id: nn,
339
- title: on,
340
- description: rn,
341
- type: an,
342
- properties: sn,
343
- required: ln
344
- }, un = "response-form", pn = "A Farris Component", dn = "object", mn = {
265
+ ], dn = {
266
+ $schema: rn,
267
+ $id: an,
268
+ title: sn,
269
+ description: ln,
270
+ type: cn,
271
+ properties: un,
272
+ required: pn
273
+ }, fn = "response-form", mn = "A Farris Component", yn = "object", gn = {
345
274
  basic: {
346
275
  description: "Basic Infomation",
347
276
  title: "基本信息",
@@ -363,30 +292,30 @@ const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-
363
292
  }
364
293
  }
365
294
  }
366
- }, fn = {
367
- title: un,
368
- description: pn,
369
- type: dn,
370
- categories: mn
371
- }, ge = {
295
+ }, bn = {
296
+ title: fn,
297
+ description: mn,
298
+ type: yn,
299
+ categories: gn
300
+ }, ve = {
372
301
  customClass: { type: String, default: "" }
373
- }, ce = Z(ge, cn, oe, en, fn), K = /* @__PURE__ */ G({
302
+ }, de = X(ve, dn, ae, on, bn), ee = /* @__PURE__ */ q({
374
303
  name: "FResponseForm",
375
- props: ge,
304
+ props: ve,
376
305
  emits: [],
377
306
  setup(e, t) {
378
- const n = f(), r = P(() => {
379
- const o = e.customClass.split(" "), i = {
307
+ const n = m(), r = k(() => {
308
+ const o = e.customClass.split(" "), s = {
380
309
  "drag-container": !0
381
310
  };
382
- return o.reduce((l, d) => (l[d] = !0, l), i), i;
311
+ return o.reduce((i, u) => (i[u] = !0, i), s), s;
383
312
  });
384
313
  return () => A("div", {
385
314
  ref: n,
386
315
  class: r.value
387
316
  }, [t.slots.default && t.slots.default()]);
388
317
  }
389
- }), yn = "https://json-schema.org/draft/2020-12/schema", gn = "https://farris-design.gitee.io/form-group.schema.json", bn = "form-group", hn = "A Farris Input Component", vn = "object", Cn = {
318
+ }), hn = "https://json-schema.org/draft/2020-12/schema", vn = "https://farris-design.gitee.io/form-group.schema.json", Cn = "form-group", wn = "A Farris Input Component", Tn = "object", Fn = {
390
319
  id: {
391
320
  description: "The unique identifier for a form group",
392
321
  type: "string"
@@ -427,18 +356,18 @@ const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-
427
356
  description: "",
428
357
  type: "number"
429
358
  }
430
- }, Tn = [
359
+ }, Bn = [
431
360
  "id",
432
361
  "type"
433
- ], be = {
434
- $schema: yn,
435
- $id: gn,
436
- title: bn,
437
- description: hn,
438
- type: vn,
439
- properties: Cn,
440
- required: Tn
441
- }, Q = {
362
+ ], Ce = {
363
+ $schema: hn,
364
+ $id: vn,
365
+ title: Cn,
366
+ description: wn,
367
+ type: Tn,
368
+ properties: Fn,
369
+ required: Bn
370
+ }, J = {
442
371
  id: { type: String, default: "" },
443
372
  customClass: { type: String, default: "" },
444
373
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
@@ -451,113 +380,113 @@ const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-
451
380
  required: { type: Boolean, default: !1 },
452
381
  showLabel: { type: Boolean, default: !0 },
453
382
  type: { type: String, default: "input-group" }
454
- }, ue = Z(
455
- Q,
456
- be,
457
- oe,
383
+ }, fe = X(
384
+ J,
385
+ Ce,
386
+ ae,
458
387
  void 0
459
- ), Fn = Yt();
460
- function re(e, t, n) {
461
- var L;
388
+ ), kn = en();
389
+ function ie(e, t, n) {
390
+ var $;
462
391
  function r() {
463
392
  n != null && n.resolveComponentContext && n.resolveComponentContext();
464
393
  }
465
394
  r();
466
- const o = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", l = f();
467
- function d() {
395
+ const o = n && n.getStyles && n.getStyles() || "", s = n && n.getDesignerClass && n.getDesignerClass() || "", i = m();
396
+ function u() {
468
397
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
469
398
  }
470
- function m() {
399
+ function p() {
471
400
  return !1;
472
401
  }
473
402
  function a() {
474
403
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
475
404
  }
476
- function u() {
405
+ function d() {
477
406
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
478
407
  }
479
- function c(S) {
480
- if (!S || !S.value)
408
+ function c(B) {
409
+ if (!B || !B.value)
481
410
  return null;
482
- if (S.value.schema && S.value.schema.type === "component")
483
- return S.value;
484
- const x = f(S == null ? void 0 : S.value.parent), B = c(x);
485
- return B || null;
411
+ if (B.value.schema && B.value.schema.type === "component")
412
+ return B.value;
413
+ const x = m(B == null ? void 0 : B.value.parent), F = c(x);
414
+ return F || null;
486
415
  }
487
- function y(S = t) {
488
- const { componentInstance: x, designerItemElementRef: B } = S;
489
- return !x || !x.value ? null : x.value.canMove ? B : y(S.parent);
416
+ function y(B = t) {
417
+ const { componentInstance: x, designerItemElementRef: F } = B;
418
+ return !x || !x.value ? null : x.value.canMove ? F : y(B.parent);
490
419
  }
491
- function F(S) {
492
- return !!n && n.canAccepts(S);
420
+ function w(B) {
421
+ return !!n && n.canAccepts(B);
493
422
  }
494
- function s() {
423
+ function l() {
495
424
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
496
425
  }
497
- function p() {
426
+ function f() {
498
427
  }
499
- function g(S, x) {
428
+ function g(B, x) {
500
429
  x && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(x);
501
430
  }
502
- function w(S) {
503
- const { componentType: x } = S;
504
- let B = z(x, S);
505
- n && n.onResolveNewComponentSchema && (B = n.onResolveNewComponentSchema(S, B));
431
+ function T(B) {
432
+ const { componentType: x } = B;
433
+ let F = _(x, B);
434
+ n && n.onResolveNewComponentSchema && (F = n.onResolveNewComponentSchema(B, F));
506
435
  const E = x.toLowerCase().replace("-", "_");
507
- return B && !B.id && B.type === x && (B.id = `${E}_${Math.random().toString().slice(2, 6)}`), B;
436
+ return F && !F.id && F.type === x && (F.id = `${E}_${Math.random().toString().slice(2, 6)}`), F;
508
437
  }
509
- function D(S, x) {
510
- const B = String(S.getAttribute("data-controltype")), E = S.getAttribute("data-feature"), N = E ? JSON.parse(E) : {};
511
- N.parentComponentInstance = l.value;
512
- let O = z(B, N);
513
- n && n.onAcceptNewChildElement && (O = n.onAcceptNewChildElement(S, x, O));
514
- const R = B.toLowerCase().replace("-", "_");
515
- return O && !O.id && O.type === B && (O.id = `${R}_${Math.random().toString().slice(2, 6)}`), O;
438
+ function D(B, x) {
439
+ const F = String(B.getAttribute("data-controltype")), E = B.getAttribute("data-feature"), N = E ? JSON.parse(E) : {};
440
+ N.parentComponentInstance = i.value;
441
+ let O = _(F, N);
442
+ n && n.onAcceptNewChildElement && (O = n.onAcceptNewChildElement(B, x, O));
443
+ const G = F.toLowerCase().replace("-", "_");
444
+ return O && !O.id && O.type === F && (O.id = `${G}_${Math.random().toString().slice(2, 6)}`), O;
516
445
  }
517
- function j(S) {
446
+ function M(B) {
518
447
  }
519
- function M(...S) {
448
+ function S(...B) {
520
449
  if (n && n.getPropsConfig)
521
- return n.getPropsConfig(...S);
450
+ return n.getPropsConfig(...B);
522
451
  }
523
- return l.value = {
524
- canMove: d(),
525
- canSelectParent: m(),
452
+ return i.value = {
453
+ canMove: u(),
454
+ canSelectParent: p(),
526
455
  canDelete: a(),
527
- canNested: !u(),
456
+ canNested: !d(),
528
457
  contents: t == null ? void 0 : t.schema.contents,
529
458
  elementRef: e,
530
- parent: (L = t == null ? void 0 : t.parent) == null ? void 0 : L.componentInstance,
459
+ parent: ($ = t == null ? void 0 : t.parent) == null ? void 0 : $.componentInstance,
531
460
  schema: t == null ? void 0 : t.schema,
532
461
  styles: o,
533
- designerClass: i,
534
- canAccepts: F,
462
+ designerClass: s,
463
+ canAccepts: w,
535
464
  getBelongedComponentInstance: c,
536
465
  getDraggableDesignItemElement: y,
537
- getDraggingDisplayText: s,
538
- getPropConfig: M,
539
- getDragScopeElement: p,
466
+ getDraggingDisplayText: l,
467
+ getPropConfig: S,
468
+ getDragScopeElement: f,
540
469
  onAcceptMovedChildElement: g,
541
470
  onAcceptNewChildElement: D,
542
- onChildElementMovedOut: j,
543
- addNewChildComponentSchema: w,
471
+ onChildElementMovedOut: M,
472
+ addNewChildComponentSchema: T,
544
473
  updateDragAndDropRules: r,
545
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || f(!1),
546
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || f(!1)
547
- }, l;
474
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || m(!1),
475
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || m(!1)
476
+ }, i;
548
477
  }
549
- function wn() {
478
+ function jn() {
550
479
  function e(t) {
551
- var o, i;
480
+ var o, s;
552
481
  if (!t)
553
482
  return !1;
554
483
  const n = ((o = t.targetContainer) == null ? void 0 : o.componentInstance) && t.targetContainer.componentInstance.value;
555
484
  if (!n)
556
485
  return !1;
557
- const r = (i = n.schema.appearance) == null ? void 0 : i.class;
486
+ const r = (s = n.schema.appearance) == null ? void 0 : s.class;
558
487
  if (t.controlCategory === "input" || t.controlType === "form-group") {
559
- const l = n.schema.type, d = (l === "response-form" || l === "content-container") && r && r.includes("farris-form");
560
- if (n.schema.type !== "response-layout-item" && !d)
488
+ const i = n.schema.type, u = (i === "response-form" || i === "content-container") && r && r.includes("farris-form");
489
+ if (n.schema.type !== "response-layout-item" && !u)
561
490
  return !1;
562
491
  }
563
492
  return t.controlType !== "field-set";
@@ -566,7 +495,7 @@ function wn() {
566
495
  basalDragulaRuleForContainer: e
567
496
  };
568
497
  }
569
- const Bn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-design.gitee.io/dragging-rules.schema.json", Pn = "Dragging Rules", kn = "The rules of designer canvas", xn = "object", Mn = {
498
+ const Pn = "https://json-schema.org/draft/2020-12/schema", xn = "https://farris-design.gitee.io/dragging-rules.schema.json", Sn = "Dragging Rules", Mn = "The rules of designer canvas", An = "object", Dn = {
570
499
  "f-page": {
571
500
  description: "The root class of page designed by farris.",
572
501
  type: "object",
@@ -1130,39 +1059,39 @@ const Bn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
1130
1059
  description: "",
1131
1060
  type: "object"
1132
1061
  }
1133
- }, jn = [], An = {
1134
- $schema: Bn,
1135
- $id: Sn,
1136
- title: Pn,
1137
- description: kn,
1138
- type: xn,
1139
- properties: Mn,
1140
- required: jn
1141
- }, J = /* @__PURE__ */ new Map();
1142
- function Dn() {
1143
- function e(s, p, g, w) {
1062
+ }, En = [], Vn = {
1063
+ $schema: Pn,
1064
+ $id: xn,
1065
+ title: Sn,
1066
+ description: Mn,
1067
+ type: An,
1068
+ properties: Dn,
1069
+ required: En
1070
+ }, te = /* @__PURE__ */ new Map();
1071
+ function On() {
1072
+ function e(l, f, g, T) {
1144
1073
  var D;
1145
1074
  if (typeof g == "number")
1146
- return ((D = w[s]) == null ? void 0 : D.length) === g;
1075
+ return ((D = T[l]) == null ? void 0 : D.length) === g;
1147
1076
  if (typeof g == "object") {
1148
- const j = Object.keys(g)[0], M = g[j];
1149
- if (j === "not")
1150
- return Number(w[s].length) !== Number(M);
1151
- if (j === "moreThan")
1152
- return Number(w[s].length) >= Number(M);
1153
- if (j === "lessThan")
1154
- return Number(w[s].length) <= Number(M);
1077
+ const M = Object.keys(g)[0], S = g[M];
1078
+ if (M === "not")
1079
+ return Number(T[l].length) !== Number(S);
1080
+ if (M === "moreThan")
1081
+ return Number(T[l].length) >= Number(S);
1082
+ if (M === "lessThan")
1083
+ return Number(T[l].length) <= Number(S);
1155
1084
  }
1156
1085
  return !1;
1157
1086
  }
1158
- function t(s, p, g, w) {
1159
- return typeof g == "boolean" ? w.childrenClassList.includes(p) === !!g : !1;
1087
+ function t(l, f, g, T) {
1088
+ return typeof g == "boolean" ? T.childrenClassList.includes(f) === !!g : !1;
1160
1089
  }
1161
- function n(s, p, g, w) {
1162
- return typeof g == "boolean" ? w.parentClassList.includes(p) === !!g : !1;
1090
+ function n(l, f, g, T) {
1091
+ return typeof g == "boolean" ? T.parentClassList.includes(f) === !!g : !1;
1163
1092
  }
1164
- function r(s, p, g, w) {
1165
- return typeof g == "boolean" ? w.parentClassList.includes(p) === !!g : !1;
1093
+ function r(l, f, g, T) {
1094
+ return typeof g == "boolean" ? T.parentClassList.includes(f) === !!g : !1;
1166
1095
  }
1167
1096
  const o = /* @__PURE__ */ new Map([
1168
1097
  ["length", e],
@@ -1170,121 +1099,121 @@ function Dn() {
1170
1099
  ["hasSibling", r],
1171
1100
  ["hasParent", n]
1172
1101
  ]);
1173
- function i(s, p) {
1174
- const g = s;
1175
- return typeof p == "number" ? [{ target: g, operator: "length", param: null, value: Number(p) }] : typeof p == "object" ? Object.keys(p).map((w) => {
1176
- if (w === "length")
1177
- return { target: g, operator: "length", param: null, value: p[w] };
1178
- const D = w, j = p[w];
1179
- return { target: g, operator: s === "children" ? "hasChildren" : s === "parent" ? "hasParent" : "hasSibling", param: D, value: j };
1102
+ function s(l, f) {
1103
+ const g = l;
1104
+ return typeof f == "number" ? [{ target: g, operator: "length", param: null, value: Number(f) }] : typeof f == "object" ? Object.keys(f).map((T) => {
1105
+ if (T === "length")
1106
+ return { target: g, operator: "length", param: null, value: f[T] };
1107
+ const D = T, M = f[T];
1108
+ return { target: g, operator: l === "children" ? "hasChildren" : l === "parent" ? "hasParent" : "hasSibling", param: D, value: M };
1180
1109
  }) : [];
1181
1110
  }
1182
- function l(s, p) {
1183
- if (o.has(s.operator)) {
1184
- const g = o.get(s.operator);
1185
- return g && g(s.target, s.param, s.value, p) || !1;
1111
+ function i(l, f) {
1112
+ if (o.has(l.operator)) {
1113
+ const g = o.get(l.operator);
1114
+ return g && g(l.target, l.param, l.value, f) || !1;
1186
1115
  }
1187
1116
  return !1;
1188
1117
  }
1189
- function d(s, p) {
1190
- return Object.keys(s).reduce((j, M) => {
1191
- const L = i(M, s[M]);
1192
- return j.push(...L), j;
1193
- }, []).reduce((j, M) => j && l(M, p), !0);
1118
+ function u(l, f) {
1119
+ return Object.keys(l).reduce((M, S) => {
1120
+ const $ = s(S, l[S]);
1121
+ return M.push(...$), M;
1122
+ }, []).reduce((M, S) => M && i(S, f), !0);
1194
1123
  }
1195
- function m(s, p) {
1196
- const g = Object.keys(s), w = g.includes("allOf"), D = g.includes("anyOf"), j = w || D, S = (j ? s[j ? w ? "allOf" : "anyOf" : "allOf"] : [s]).map((B) => d(B, p));
1197
- return w ? !S.includes(!1) : S.includes(!0);
1124
+ function p(l, f) {
1125
+ const g = Object.keys(l), T = g.includes("allOf"), D = g.includes("anyOf"), M = T || D, B = (M ? l[M ? T ? "allOf" : "anyOf" : "allOf"] : [l]).map((F) => u(F, f));
1126
+ return T ? !B.includes(!1) : B.includes(!0);
1198
1127
  }
1199
- function a(s, p) {
1200
- const g = s.const;
1201
- return g ? typeof g == "boolean" ? g : typeof g == "object" ? m(g, p) : !1 : !1;
1128
+ function a(l, f) {
1129
+ const g = l.const;
1130
+ return g ? typeof g == "boolean" ? g : typeof g == "object" ? p(g, f) : !1 : !1;
1202
1131
  }
1203
- function u(s) {
1204
- return (p) => {
1132
+ function d(l) {
1133
+ return (f) => {
1205
1134
  const g = { canAccept: !0, fixed: !1, hidePadding: !1 };
1206
- return s && s.properties && Object.keys(s.properties).reduce((w, D) => {
1207
- const j = s.properties[D];
1208
- return w[D] = a(j, p), w;
1135
+ return l && l.properties && Object.keys(l.properties).reduce((T, D) => {
1136
+ const M = l.properties[D];
1137
+ return T[D] = a(M, f), T;
1209
1138
  }, g), g;
1210
1139
  };
1211
1140
  }
1212
- function c(s, p, g) {
1213
- if (p.type === "object" && p.properties) {
1214
- const { rules: w, contents: D } = p.properties;
1215
- g.set(s, u(w)), D && Object.keys(D.properties).forEach(
1216
- (j) => c(j, D.properties[j], g)
1141
+ function c(l, f, g) {
1142
+ if (f.type === "object" && f.properties) {
1143
+ const { rules: T, contents: D } = f.properties;
1144
+ g.set(l, d(T)), D && Object.keys(D.properties).forEach(
1145
+ (M) => c(M, D.properties[M], g)
1217
1146
  );
1218
1147
  }
1219
1148
  }
1220
1149
  function y() {
1221
- const { properties: s } = An;
1222
- Object.keys(s).forEach((p) => {
1223
- c(p, s[p], J);
1150
+ const { properties: l } = Vn;
1151
+ Object.keys(l).forEach((f) => {
1152
+ c(f, l[f], te);
1224
1153
  });
1225
1154
  }
1226
- function F(s, p) {
1155
+ function w(l, f) {
1227
1156
  const g = { canAccept: !0, fixed: !1, hidePadding: !0 };
1228
- return J.has(s) ? J.get(s)(p) : g;
1157
+ return te.has(l) ? te.get(l)(f) : g;
1229
1158
  }
1230
- return y(), { getRuleValue: F };
1159
+ return y(), { getRuleValue: w };
1231
1160
  }
1232
- function En(e, t) {
1161
+ function $n(e, t) {
1233
1162
  var x;
1234
- const n = e.schema, r = (x = e.parent) == null ? void 0 : x.schema, o = Dn(), i = f(!1), l = f(!1);
1235
- let d = !0, m = !1, a, u = !1;
1236
- function c(B) {
1237
- return a && a.componentClassList && a.componentClassList.includes("f-form-layout") && a.componentClassList.includes("farris-form") ? B.sourceType === "control" && B.controlCategory === "input" || B.sourceType === "move" && B.controlType === "form-group" : !0;
1238
- }
1239
- function y(B) {
1240
- return !(!wn().basalDragulaRuleForContainer(B) || !d || !c(B));
1241
- }
1242
- function F() {
1243
- i.value = !1, l.value = !1;
1244
- const B = n, E = B.appearance && B.appearance.class || "", N = E.split(" "), O = B.contents || [], R = O.length ? O[0] : null, k = R && R.appearance ? R.appearance.class : "", V = k ? k.split(" ") : [], q = O.length ? O.reduce((ie, Y) => {
1245
- const se = Y && Y.appearance ? Y.appearance.class : "", je = se ? se.split(" ") : [];
1246
- return ie.push(...je), ie;
1247
- }, []) : [], H = r, X = H && H.appearance && H.appearance.class || "", Pe = X ? X.split(" ") : [];
1163
+ const n = e.schema, r = (x = e.parent) == null ? void 0 : x.schema, o = On(), s = m(!1), i = m(!1);
1164
+ let u = !0, p = !1, a, d = !1;
1165
+ function c(F) {
1166
+ return a && a.componentClassList && a.componentClassList.includes("f-form-layout") && a.componentClassList.includes("farris-form") ? F.sourceType === "control" && F.controlCategory === "input" || F.sourceType === "move" && F.controlType === "form-group" : !0;
1167
+ }
1168
+ function y(F) {
1169
+ return !(!jn().basalDragulaRuleForContainer(F) || !u || !c(F));
1170
+ }
1171
+ function w() {
1172
+ s.value = !1, i.value = !1;
1173
+ const F = n, E = F.appearance && F.appearance.class || "", N = E.split(" "), O = F.contents || [], G = O.length ? O[0] : null, P = G && G.appearance ? G.appearance.class : "", V = P ? P.split(" ") : [], R = O.length ? O.reduce((le, K) => {
1174
+ const ce = K && K.appearance ? K.appearance.class : "", De = ce ? ce.split(" ") : [];
1175
+ return le.push(...De), le;
1176
+ }, []) : [], W = r, Y = W && W.appearance && W.appearance.class || "", xe = Y ? Y.split(" ") : [];
1248
1177
  a = {
1249
1178
  componentClass: E,
1250
1179
  componentClassList: N,
1251
1180
  childContents: O,
1252
- firstChildContent: R,
1253
- firstChildClass: k,
1181
+ firstChildContent: G,
1182
+ firstChildClass: P,
1254
1183
  firstChildClassList: V,
1255
- parent: H,
1256
- parentClass: X,
1257
- parentClassList: Pe,
1184
+ parent: W,
1185
+ parentClass: Y,
1186
+ parentClassList: xe,
1258
1187
  children: O,
1259
- childrenClassList: q
1188
+ childrenClassList: R
1260
1189
  };
1261
- const { canAccept: ke, fixed: xe, hidePadding: Me } = o.getRuleValue(N[0], a);
1262
- return d = ke, m = Me, u = xe, !0;
1190
+ const { canAccept: Se, fixed: Me, hidePadding: Ae } = o.getRuleValue(N[0], a);
1191
+ return u = Se, p = Ae, d = Me, !0;
1263
1192
  }
1264
- function s(B) {
1265
- te();
1193
+ function l(F) {
1194
+ oe();
1266
1195
  }
1267
- function p() {
1196
+ function f() {
1268
1197
  return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1269
1198
  }
1270
- function g(B, E) {
1199
+ function g(F, E) {
1271
1200
  const N = n;
1272
1201
  if ((N.appearance && N.appearance.class || "").split(" ").includes("f-form-layout")) {
1273
- const { label: k } = B, V = z("form-group");
1274
- return V.editor = E, V.label = k, w(V), delete V.editor.id, delete V.editor.binding, delete V.editor.appearance, delete V.editor.visible, V;
1202
+ const { label: P } = F, V = _("form-group");
1203
+ return V.editor = E, V.label = P, T(V), delete V.editor.id, delete V.editor.binding, delete V.editor.appearance, delete V.editor.visible, V;
1275
1204
  }
1276
1205
  return E;
1277
1206
  }
1278
- function w(B) {
1207
+ function T(F) {
1279
1208
  const E = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
1280
1209
  if (E && E.schema && E.schema.componentType) {
1281
1210
  const N = E.schema.componentType, O = D(N);
1282
- B.appearance || (B.appearance = {}), B.appearance.class = O;
1211
+ F.appearance || (F.appearance = {}), F.appearance.class = O;
1283
1212
  }
1284
1213
  }
1285
- function D(B) {
1214
+ function D(F) {
1286
1215
  let E = "";
1287
- switch (B) {
1216
+ switch (F) {
1288
1217
  case "form-col-1": {
1289
1218
  E = "col-12 col-md-12 col-xl-12 col-el-12";
1290
1219
  break;
@@ -1316,92 +1245,92 @@ function En(e, t) {
1316
1245
  }
1317
1246
  return E;
1318
1247
  }
1319
- function j(B, E, N) {
1248
+ function M(F, E, N) {
1320
1249
  const O = n;
1321
1250
  if ((O.appearance && O.appearance.class || "").split(" ").includes("f-form-layout")) {
1322
- const V = String(B.innerText), q = z("form-group");
1323
- return q.editor = N, q.label = V, q;
1251
+ const V = String(F.innerText), R = _("form-group");
1252
+ return R.editor = N, R.label = V, R;
1324
1253
  }
1325
1254
  return N;
1326
1255
  }
1327
- function M() {
1328
- return !u;
1256
+ function S() {
1257
+ return !d;
1329
1258
  }
1330
- function L() {
1331
- return !u;
1259
+ function $() {
1260
+ return !d;
1332
1261
  }
1333
- function S() {
1334
- return m;
1262
+ function B() {
1263
+ return p;
1335
1264
  }
1336
1265
  return {
1337
1266
  canAccepts: y,
1338
- checkCanDeleteComponent: L,
1339
- checkCanMoveComponent: M,
1340
- getStyles: p,
1341
- hideNestedPaddingInDesginerView: S,
1342
- onAcceptNewChildElement: j,
1343
- onAcceptMovedChildElement: s,
1344
- resolveComponentContext: F,
1267
+ checkCanDeleteComponent: $,
1268
+ checkCanMoveComponent: S,
1269
+ getStyles: f,
1270
+ hideNestedPaddingInDesginerView: B,
1271
+ onAcceptNewChildElement: M,
1272
+ onAcceptMovedChildElement: l,
1273
+ resolveComponentContext: w,
1345
1274
  onResolveNewComponentSchema: g,
1346
- triggerBelongedComponentToMoveWhenMoved: i,
1347
- triggerBelongedComponentToDeleteWhenDeleted: l
1275
+ triggerBelongedComponentToMoveWhenMoved: s,
1276
+ triggerBelongedComponentToDeleteWhenDeleted: i
1348
1277
  };
1349
1278
  }
1350
- const Vn = /* @__PURE__ */ G({
1279
+ const Nn = /* @__PURE__ */ q({
1351
1280
  name: "FResponseFormDesign",
1352
- props: Q,
1281
+ props: J,
1353
1282
  emits: [],
1354
1283
  setup(e, t) {
1355
- const n = f(), r = W("design-item-context");
1356
- W("designer-host-service");
1357
- const o = En(r), i = re(n, r, o);
1284
+ const n = m(), r = z("design-item-context");
1285
+ z("designer-host-service");
1286
+ const o = $n(r), s = ie(n, r, o);
1358
1287
  U(() => {
1359
- n.value.componentInstance = i;
1360
- }), t.expose(i.value);
1361
- const l = P(() => {
1362
- const d = e.customClass.split(" "), m = {
1288
+ n.value.componentInstance = s;
1289
+ }), t.expose(s.value);
1290
+ const i = k(() => {
1291
+ const u = e.customClass.split(" "), p = {
1363
1292
  "drag-container": !0
1364
1293
  };
1365
- return d.reduce((a, u) => (a[u] = !0, a), m), m;
1294
+ return u.reduce((a, d) => (a[d] = !0, a), p), p;
1366
1295
  });
1367
1296
  return () => A("div", {
1368
1297
  ref: n,
1369
- class: l.value,
1298
+ class: i.value,
1370
1299
  "data-dragref": `${r.schema.id}-container`,
1371
1300
  "data-associate": `${r.schema.id}-component`
1372
1301
  }, [t.slots.default && t.slots.default()]);
1373
1302
  }
1374
- }), On = {
1303
+ }), Ln = {
1375
1304
  id: { type: String },
1376
1305
  required: { type: Boolean, default: !1 },
1377
1306
  text: { type: String, default: "" },
1378
1307
  title: { type: String }
1379
- }, he = /* @__PURE__ */ G({
1308
+ }, we = /* @__PURE__ */ q({
1380
1309
  name: "FDynamicFormLabel",
1381
- props: On,
1310
+ props: Ln,
1382
1311
  emits: [],
1383
1312
  setup(e, t) {
1384
- const n = f(e.title || e.text), r = f(e.required), o = f(e.text);
1385
- return $(() => e.text, () => {
1313
+ const n = m(e.title || e.text), r = m(e.required), o = m(e.text);
1314
+ return I(() => e.text, () => {
1386
1315
  o.value = e.text;
1387
- }), $(() => e.required, (i, l) => {
1388
- i !== l && (r.value = i);
1316
+ }), I(() => e.required, (s, i) => {
1317
+ s !== i && (r.value = s);
1389
1318
  }), () => A("label", {
1390
1319
  class: "col-form-label",
1391
1320
  title: n.value
1392
1321
  }, [r.value && A("span", {
1393
1322
  class: "farris-label-info text-danger"
1394
- }, [Ee("*")]), A("span", {
1323
+ }, [Oe("*")]), A("span", {
1395
1324
  class: "farris-label-text"
1396
1325
  }, [o.value])]);
1397
1326
  }
1398
- }), Ln = /* @__PURE__ */ new Map([
1399
- ["appearance", ye]
1327
+ }), In = /* @__PURE__ */ new Map([
1328
+ ["appearance", he]
1400
1329
  ]);
1401
- function Nn(e, t, n) {
1330
+ function Gn(e, t, n) {
1402
1331
  return t;
1403
1332
  }
1404
- const In = "https://json-schema.org/draft/2020-12/schema", $n = "https://farris-design.gitee.io/input-group.schema.json", Rn = "input-group", Gn = "A Farris Input Component", qn = "object", Un = {
1333
+ const qn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", Un = "input-group", Wn = "A Farris Input Component", Hn = "object", zn = {
1405
1334
  id: {
1406
1335
  description: "The unique identifier for a Input Group",
1407
1336
  type: "string"
@@ -1603,18 +1532,18 @@ const In = "https://json-schema.org/draft/2020-12/schema", $n = "https://farris-
1603
1532
  type: "string",
1604
1533
  default: ""
1605
1534
  }
1606
- }, Hn = [
1535
+ }, _n = [
1607
1536
  "id",
1608
1537
  "type"
1609
- ], Wn = {
1610
- $schema: In,
1611
- $id: $n,
1612
- title: Rn,
1613
- description: Gn,
1614
- type: qn,
1615
- properties: Un,
1616
- required: Hn
1617
- }, ae = {
1538
+ ], Jn = {
1539
+ $schema: qn,
1540
+ $id: Rn,
1541
+ title: Un,
1542
+ description: Wn,
1543
+ type: Hn,
1544
+ properties: zn,
1545
+ required: _n
1546
+ }, se = {
1618
1547
  /** 是否自动完成 */
1619
1548
  autocomplete: { Type: String, default: "off" },
1620
1549
  /** 自定义CLASS */
@@ -1681,118 +1610,118 @@ const In = "https://json-schema.org/draft/2020-12/schema", $n = "https://farris-
1681
1610
  */
1682
1611
  updateOn: { type: String, default: "blur" }
1683
1612
  };
1684
- Z(ae, Wn, Ln, Nn);
1685
- function zn(e, t, n, r) {
1686
- const o = f(e.disabled), i = f(!1), l = f("text"), d = f(e.showBorder), m = f(e.textAlign), a = f(e.updateOn), u = P(() => e.editable || !e.readonly), c = P(() => e.editable && !e.disabled && !e.readonly), y = P(() => !e.disabled && i.value), F = P(() => n.value === "" || n.value === null || n.value === void 0), s = P(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), p = P(() => e.readonly || !e.editable), g = P(() => e.enableTitle ? n.value : ""), w = P(() => ({
1613
+ X(se, Jn, In, Gn);
1614
+ function Qn(e, t, n, r) {
1615
+ const o = m(e.disabled), s = m(!1), i = m("text"), u = m(e.showBorder), p = m(e.textAlign), a = m(e.updateOn), d = k(() => e.editable || !e.readonly), c = k(() => e.editable && !e.disabled && !e.readonly), y = k(() => !e.disabled && s.value), w = k(() => n.value === "" || n.value === null || n.value === void 0), l = k(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), f = k(() => e.readonly || !e.editable), g = k(() => e.enableTitle ? n.value : ""), T = k(() => ({
1687
1616
  "form-control": !0,
1688
1617
  "f-utils-fill": !0,
1689
- "text-left": m.value === "left",
1690
- "text-center": m.value === "center",
1691
- "text-right": m.value === "right"
1692
- })), D = P(() => {
1693
- const k = {
1618
+ "text-left": p.value === "left",
1619
+ "text-center": p.value === "center",
1620
+ "text-right": p.value === "right"
1621
+ })), D = k(() => {
1622
+ const P = {
1694
1623
  "f-cmp-inputgroup": !0,
1695
1624
  "input-group": !0,
1696
1625
  "f-state-disable": o.value,
1697
1626
  "f-state-editable": c.value,
1698
- "f-state-readonly": p.value,
1627
+ "f-state-readonly": f.value,
1699
1628
  "f-state-focus": y.value
1700
1629
  };
1701
- return (e.customClass || "").split(" ").reduce((q, H) => (q[H] = !0, q), k), k;
1702
- }), j = P(() => d.value ? "" : "border-width : 0 ");
1703
- function M(k, V = !0) {
1704
- n.value = k, r.value !== k && (r.value = k), V && t.emit("change", k), t.emit("update:modelValue", k), t.emit("update:value", k);
1630
+ return (e.customClass || "").split(" ").reduce((R, W) => (R[W] = !0, R), P), P;
1631
+ }), M = k(() => u.value ? "" : "border-width : 0 ");
1632
+ function S(P, V = !0) {
1633
+ n.value = P, r.value !== P && (r.value = P), V && t.emit("change", P), t.emit("update:modelValue", P), t.emit("update:value", P);
1705
1634
  }
1706
- $(
1635
+ I(
1707
1636
  () => e.modelValue,
1708
- (k, V) => {
1709
- k !== V && (n.value = k, r.value = k);
1637
+ (P, V) => {
1638
+ P !== V && (n.value = P, r.value = P);
1710
1639
  }
1711
- ), $(() => e.disabled, (k, V) => {
1712
- k !== V && (o.value = k);
1640
+ ), I(() => e.disabled, (P, V) => {
1641
+ P !== V && (o.value = P);
1713
1642
  });
1714
- function L(k) {
1715
- return i.value = !1, t.emit("blur", k), k.stopPropagation(), !1;
1643
+ function $(P) {
1644
+ return s.value = !1, t.emit("blur", P), P.stopPropagation(), !1;
1716
1645
  }
1717
- function S(k) {
1718
- t.emit("click", k);
1646
+ function B(P) {
1647
+ t.emit("click", P);
1719
1648
  }
1720
- function x(k) {
1721
- e.disabled || (d.value && (i.value = !0), u.value && t.emit("focus", k));
1649
+ function x(P) {
1650
+ e.disabled || (u.value && (s.value = !0), d.value && t.emit("focus", P));
1722
1651
  }
1723
- function B(k) {
1724
- t.emit("input", k.target.value);
1725
- const V = k.target.value;
1652
+ function F(P) {
1653
+ t.emit("input", P.target.value);
1654
+ const V = P.target.value;
1726
1655
  r.value = V, a.value === "input" && (t.emit("update:modelValue", V), t.emit("update:value", V));
1727
1656
  }
1728
- function E(k) {
1729
- t.emit("keydown", k);
1657
+ function E(P) {
1658
+ t.emit("keydown", P);
1730
1659
  }
1731
- function N(k) {
1732
- t.emit("keyup", k);
1660
+ function N(P) {
1661
+ t.emit("keyup", P);
1733
1662
  }
1734
- function O(k) {
1735
- k.target.tagName !== "INPUT" && k.preventDefault(), k.stopPropagation();
1663
+ function O(P) {
1664
+ P.target.tagName !== "INPUT" && P.preventDefault(), P.stopPropagation();
1736
1665
  }
1737
- function R(k) {
1666
+ function G(P) {
1738
1667
  if (a.value === "blur") {
1739
- const V = k.target.value;
1740
- k.stopPropagation(), M(V);
1668
+ const V = P.target.value;
1669
+ P.stopPropagation(), S(V);
1741
1670
  }
1742
1671
  }
1743
1672
  return {
1744
- changeTextBoxValue: M,
1673
+ changeTextBoxValue: S,
1745
1674
  disabled: o,
1746
1675
  displayText: r,
1747
1676
  editable: c,
1748
1677
  hasFocused: y,
1749
1678
  inputGroupClass: D,
1750
- inputType: l,
1751
- isEmpty: F,
1679
+ inputType: i,
1680
+ isEmpty: w,
1752
1681
  modelValue: n,
1753
- readonly: p,
1754
- onBlur: L,
1755
- onClick: S,
1682
+ readonly: f,
1683
+ onBlur: $,
1684
+ onClick: B,
1756
1685
  onFocus: x,
1757
- onInput: B,
1686
+ onInput: F,
1758
1687
  onKeydown: E,
1759
1688
  onKeyup: N,
1760
1689
  onMousedown: O,
1761
- onTextBoxValueChange: R,
1762
- placeholder: s,
1763
- textBoxClass: w,
1690
+ onTextBoxValueChange: G,
1691
+ placeholder: l,
1692
+ textBoxClass: T,
1764
1693
  textBoxTitle: g,
1765
- inputGroupStyle: j
1694
+ inputGroupStyle: M
1766
1695
  };
1767
1696
  }
1768
- function Qn(e, t, n, r) {
1769
- const o = f(e.disabled), i = f(!1), l = f("text"), d = f(e.showBorder), m = f(e.textAlign);
1770
- P(() => e.editable || !e.readonly);
1771
- const a = P(() => e.editable && !e.disabled && !e.readonly), u = P(() => !e.disabled && i.value), c = P(() => n.value === "" || n.value === null || n.value === void 0), y = P(() => e.placeholder), F = P(() => e.readonly || !e.editable), s = P(() => e.enableTitle ? n.value : ""), p = P(() => ({
1697
+ function Zn(e, t, n, r) {
1698
+ const o = m(e.disabled), s = m(!1), i = m("text"), u = m(e.showBorder), p = m(e.textAlign);
1699
+ k(() => e.editable || !e.readonly);
1700
+ const a = k(() => e.editable && !e.disabled && !e.readonly), d = k(() => !e.disabled && s.value), c = k(() => n.value === "" || n.value === null || n.value === void 0), y = k(() => e.placeholder), w = k(() => e.readonly || !e.editable), l = k(() => e.enableTitle ? n.value : ""), f = k(() => ({
1772
1701
  "form-control": !0,
1773
1702
  // 'f-utils-fill': true,
1774
- "text-left": m.value === "left",
1775
- "text-center": m.value === "center",
1776
- "text-right": m.value === "right"
1777
- })), g = P(() => ({
1703
+ "text-left": p.value === "left",
1704
+ "text-center": p.value === "center",
1705
+ "text-right": p.value === "right"
1706
+ })), g = k(() => ({
1778
1707
  "f-cmp-inputgroup": !0,
1779
1708
  "input-group": !0,
1780
1709
  "f-state-disable": !0,
1781
1710
  "f-state-editable": !1,
1782
1711
  "f-state-readonly": !0
1783
1712
  // 'f-state-focus': hasFocused.value
1784
- })), w = P(() => d.value ? "" : "border-width : 0 ");
1713
+ })), T = k(() => u.value ? "" : "border-width : 0 ");
1785
1714
  return {
1786
1715
  // changeTextBoxValue,
1787
1716
  disabled: o,
1788
1717
  displayText: r,
1789
1718
  editable: a,
1790
- hasFocused: u,
1719
+ hasFocused: d,
1791
1720
  inputGroupClass: g,
1792
- inputType: l,
1721
+ inputType: i,
1793
1722
  isEmpty: c,
1794
1723
  modelValue: n,
1795
- readonly: F,
1724
+ readonly: w,
1796
1725
  // onBlur,
1797
1726
  // onClick,
1798
1727
  // onFocus,
@@ -1802,39 +1731,39 @@ function Qn(e, t, n, r) {
1802
1731
  // onMousedown,
1803
1732
  // onTextBoxValueChange,
1804
1733
  placeholder: y,
1805
- textBoxClass: p,
1806
- textBoxTitle: s,
1807
- inputGroupStyle: w
1734
+ textBoxClass: f,
1735
+ textBoxTitle: l,
1736
+ inputGroupStyle: T
1808
1737
  };
1809
1738
  }
1810
- function ve(e, t, n) {
1811
- const r = f(!1), o = P(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: i, displayText: l, hasFocused: d, isEmpty: m } = n;
1812
- function a(p) {
1813
- r.value = p;
1739
+ function Te(e, t, n) {
1740
+ const r = m(!1), o = k(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: i, hasFocused: u, isEmpty: p } = n;
1741
+ function a(f) {
1742
+ r.value = f;
1814
1743
  }
1815
- $(l, () => {
1816
- d != null && d.value ? a(!!(l != null && l.value)) : a(!1);
1744
+ I(i, () => {
1745
+ u != null && u.value ? a(!!(i != null && i.value)) : a(!1);
1817
1746
  });
1818
- const u = P(() => ({
1747
+ const d = k(() => ({
1819
1748
  "input-group-text": !0,
1820
1749
  "input-group-clear": !0
1821
- })), c = P(() => ({
1750
+ })), c = k(() => ({
1822
1751
  width: "24px",
1823
1752
  display: r.value ? "flex" : "none"
1824
1753
  }));
1825
- function y(p) {
1826
- p.stopPropagation(), o.value && (i("", !0), a(!r.value), t.emit("clear"));
1754
+ function y(f) {
1755
+ f.stopPropagation(), o.value && (s("", !0), a(!r.value), t.emit("clear"));
1827
1756
  }
1828
- function F(p) {
1829
- o.value && !m.value && a(!0);
1757
+ function w(f) {
1758
+ o.value && !p.value && a(!0);
1830
1759
  }
1831
- function s(p) {
1760
+ function l(f) {
1832
1761
  o.value && a(!1);
1833
1762
  }
1834
- return { clearButtonClass: u, clearButtonStyle: c, hasShownClearButton: r, onClearValue: y, onMouseEnter: F, onMouseLeave: s, shouldShowClearButton: o };
1763
+ return { clearButtonClass: d, clearButtonStyle: c, hasShownClearButton: r, onClearValue: y, onMouseEnter: w, onMouseLeave: l, shouldShowClearButton: o };
1835
1764
  }
1836
- const _n = ["moz", "ms", "webkit"];
1837
- function Zn() {
1765
+ const Xn = ["moz", "ms", "webkit"];
1766
+ function Yn() {
1838
1767
  let e = 0;
1839
1768
  return (t) => {
1840
1769
  const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - e)), o = setTimeout(() => {
@@ -1843,158 +1772,158 @@ function Zn() {
1843
1772
  return e = n + r, o;
1844
1773
  };
1845
1774
  }
1846
- function Xn() {
1775
+ function Kn() {
1847
1776
  if (typeof window > "u")
1848
1777
  return () => 0;
1849
1778
  if (window.requestAnimationFrame)
1850
1779
  return window.requestAnimationFrame.bind(window);
1851
- const e = _n.filter((t) => `${t}RequestAnimationFrame` in window)[0];
1852
- return e ? window[`${e}RequestAnimationFrame`] : Zn();
1780
+ const e = Xn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
1781
+ return e ? window[`${e}RequestAnimationFrame`] : Yn();
1853
1782
  }
1854
- Xn();
1855
- function Ce(e, t) {
1856
- const n = f(e.groupText), r = P(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), o = P(() => e.enableClear || !!e.groupText);
1857
- return { appendedButtonClass: P(() => ({
1783
+ Kn();
1784
+ function Fe(e, t) {
1785
+ const n = m(e.groupText), r = k(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), o = k(() => e.enableClear || !!e.groupText);
1786
+ return { appendedButtonClass: k(() => ({
1858
1787
  "input-group-append": !0,
1859
1788
  "append-force-show": r.value
1860
1789
  })), appendedContent: n, shouldShowAppendedButton: o };
1861
1790
  }
1862
- function Te(e, t, n, r) {
1863
- const { appendedContent: o } = r, i = f(e.enableViewPassword), l = P(() => e.type === "password"), d = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', m = '<span class="f-icon f-icon-eye"></span>', a = f(!1);
1864
- $(() => [e.readonly, e.disabled], ([y, F]) => {
1865
- l.value && (n.value = y || F ? "password" : n.value, o.value = y || F ? m : o.value);
1791
+ function Be(e, t, n, r) {
1792
+ const { appendedContent: o } = r, s = m(e.enableViewPassword), i = k(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', p = '<span class="f-icon f-icon-eye"></span>', a = m(!1);
1793
+ I(() => [e.readonly, e.disabled], ([y, w]) => {
1794
+ i.value && (n.value = y || w ? "password" : n.value, o.value = y || w ? p : o.value);
1866
1795
  });
1867
- function u() {
1868
- return a.value = !a.value, n.value = a.value ? "text" : "password", o.value = a.value ? d : m, !1;
1796
+ function d() {
1797
+ return a.value = !a.value, n.value = a.value ? "text" : "password", o.value = a.value ? u : p, !1;
1869
1798
  }
1870
1799
  function c() {
1871
- n.value = l.value ? "password" : "text", o.value = l.value ? i.value ? m : "" : o.value;
1800
+ n.value = i.value ? "password" : "text", o.value = i.value ? s.value ? p : "" : o.value;
1872
1801
  }
1873
- return c(), { isPassword: l, onClickAppendedButton: u };
1802
+ return c(), { isPassword: i, onClickAppendedButton: d };
1874
1803
  }
1875
- function Yn(e, t, n) {
1876
- const r = f(), {
1804
+ function eo(e, t, n) {
1805
+ const r = m(), {
1877
1806
  onBlurTextBox: o,
1878
- onFocusTextBox: i,
1879
- onInput: l,
1880
- onKeyDown: d,
1881
- textBoxValue: m
1882
- } = n, a = P(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), u = P(() => ({
1807
+ onFocusTextBox: s,
1808
+ onInput: i,
1809
+ onKeyDown: u,
1810
+ textBoxValue: p
1811
+ } = n, a = k(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = k(() => ({
1883
1812
  "form-control": !0,
1884
1813
  "f-utils-fill": !0
1885
- })), c = P(() => ({
1814
+ })), c = k(() => ({
1886
1815
  "text-align": e.textAlign
1887
1816
  }));
1888
- function y(p) {
1889
- p.stopPropagation();
1817
+ function y(f) {
1818
+ f.stopPropagation();
1890
1819
  }
1891
- function F() {
1820
+ function w() {
1892
1821
  e.selectOnCreated, e.focusOnCreated;
1893
1822
  }
1894
- async function s(p) {
1895
- i(p), await te, F();
1823
+ async function l(f) {
1824
+ s(f), await oe, w();
1896
1825
  }
1897
1826
  return U(async () => {
1898
- await te, F();
1827
+ await oe, w();
1899
1828
  }), () => A("input", {
1900
1829
  ref: r,
1901
- class: u.value,
1830
+ class: d.value,
1902
1831
  style: c.value,
1903
1832
  type: "text",
1904
- value: m.value,
1833
+ value: p.value,
1905
1834
  disabled: e.disabled,
1906
1835
  readonly: e.readonly || !e.editable,
1907
1836
  placeholder: a.value,
1908
1837
  onBlur: o,
1909
1838
  onChange: y,
1910
- onFocus: s,
1911
- onInput: l,
1912
- onKeydown: d
1839
+ onFocus: l,
1840
+ onInput: i,
1841
+ onKeydown: u
1913
1842
  }, null);
1914
1843
  }
1915
- function Kn(e, t, n) {
1844
+ function to(e, t, n) {
1916
1845
  const {
1917
1846
  canDownward: r,
1918
1847
  canUpward: o,
1919
- onClickDownButton: i,
1920
- onClickUpButton: l
1921
- } = n, d = P(() => ({
1848
+ onClickDownButton: s,
1849
+ onClickUpButton: i
1850
+ } = n, u = k(() => ({
1922
1851
  "input-group-append": !0,
1923
1852
  "btn-group": !0,
1924
1853
  "btn-group-number": !0
1925
- })), m = P(() => ({
1854
+ })), p = k(() => ({
1926
1855
  btn: !0,
1927
1856
  "btn-secondary": !0,
1928
1857
  "btn-number-flag": !0
1929
- })), a = P(() => ({
1858
+ })), a = k(() => ({
1930
1859
  cursor: o() ? "pointer" : "not-allowed",
1931
1860
  "margin-left": 0
1932
- })), u = P(() => ({
1861
+ })), d = k(() => ({
1933
1862
  cursor: r() ? "pointer" : "not-allowed",
1934
1863
  "margin-left": 0
1935
1864
  }));
1936
1865
  return () => A("div", {
1937
- class: d.value
1866
+ class: u.value
1938
1867
  }, [A("button", {
1939
1868
  title: "upButton",
1940
- class: m.value,
1869
+ class: p.value,
1941
1870
  style: a.value,
1942
- onClick: l,
1871
+ onClick: i,
1943
1872
  disabled: !o()
1944
1873
  }, [A("span", {
1945
1874
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
1946
1875
  }, null)]), A("button", {
1947
1876
  title: "downButton",
1948
- class: m.value,
1949
- style: u.value,
1950
- onClick: i,
1877
+ class: p.value,
1878
+ style: d.value,
1879
+ onClick: s,
1951
1880
  disabled: !r()
1952
1881
  }, [A("span", {
1953
1882
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1954
1883
  }, null)])]);
1955
1884
  }
1956
- function Jn(e, t) {
1957
- const n = $e(e, t), r = Re(e, t, n), o = Ge(e, t, r, n), i = qe(e, t, r, n, o), l = Kn(e, t, o), {
1958
- displayValue: d,
1959
- modelValue: m,
1885
+ function no(e, t) {
1886
+ const n = qe(e, t), r = Re(e, t, n), o = Ue(e, t, r, n), s = We(e, t, r, n, o), i = to(e, t, o), {
1887
+ displayValue: u,
1888
+ modelValue: p,
1960
1889
  getRealValue: a
1961
- } = n, u = Yn(e, t, i), {
1890
+ } = n, d = eo(e, t, s), {
1962
1891
  format: c
1963
1892
  } = r, {
1964
1893
  isFocus: y
1965
- } = i, F = P(() => !e.disabled && !e.readonly);
1894
+ } = s, w = k(() => !e.disabled && !e.readonly);
1966
1895
  return U(() => {
1967
- const s = a(e.modelValue);
1968
- d.value = c(s);
1969
- }), $(() => [e.value], ([s]) => {
1970
- const p = a(s);
1971
- m.value = p, d.value = c(p);
1972
- }), $(() => [e.modelValue], ([s]) => {
1973
- s !== m.value && (m.value = s, !y.value && (d.value = c(a(s))));
1974
- }), $(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1975
- d.value = c(m.value);
1896
+ const l = a(e.modelValue);
1897
+ u.value = c(l);
1898
+ }), I(() => [e.value], ([l]) => {
1899
+ const f = a(l);
1900
+ p.value = f, u.value = c(f);
1901
+ }), I(() => [e.modelValue], ([l]) => {
1902
+ l !== p.value && (p.value = l, !y.value && (u.value = c(a(l))));
1903
+ }), I(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1904
+ u.value = c(p.value);
1976
1905
  }), () => A("div", {
1977
1906
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
1978
- }, [u(), F.value && l()]);
1907
+ }, [d(), w.value && i()]);
1979
1908
  }
1980
- function eo(e, t, n, r) {
1981
- const o = f(), i = f(e.autocomplete), l = f(e.enableTitle), {
1982
- isPassword: d
1983
- } = n, m = f(e.minLength), a = f(e.maxLength), u = f(e.tabIndex), {
1909
+ function oo(e, t, n, r) {
1910
+ const o = m(), s = m(e.autocomplete), i = m(e.enableTitle), {
1911
+ isPassword: u
1912
+ } = n, p = m(e.minLength), a = m(e.maxLength), d = m(e.tabIndex), {
1984
1913
  disabled: c,
1985
1914
  displayText: y,
1986
- inputType: F,
1987
- onBlur: s,
1988
- onFocus: p,
1915
+ inputType: w,
1916
+ onBlur: l,
1917
+ onFocus: f,
1989
1918
  onInput: g,
1990
- onClick: w,
1919
+ onClick: T,
1991
1920
  onKeydown: D,
1992
- onKeyup: j,
1993
- onMousedown: M,
1994
- onTextBoxValueChange: L,
1995
- readonly: S,
1921
+ onKeyup: M,
1922
+ onMousedown: S,
1923
+ onTextBoxValueChange: $,
1924
+ readonly: B,
1996
1925
  placeholder: x,
1997
- textBoxClass: B,
1926
+ textBoxClass: F,
1998
1927
  textBoxTitle: E
1999
1928
  } = r;
2000
1929
  return U(() => {
@@ -2002,35 +1931,35 @@ function eo(e, t, n, r) {
2002
1931
  }), () => A("input", {
2003
1932
  ref: o,
2004
1933
  name: "input-group-value",
2005
- autocomplete: i.value,
2006
- class: B.value,
1934
+ autocomplete: s.value,
1935
+ class: F.value,
2007
1936
  disabled: c == null ? void 0 : c.value,
2008
1937
  maxlength: a.value,
2009
- minlength: m.value,
1938
+ minlength: p.value,
2010
1939
  placeholder: x.value,
2011
- readonly: S == null ? void 0 : S.value,
2012
- tabindex: u.value,
2013
- title: l.value && !d.value ? E.value : "",
2014
- type: F.value,
1940
+ readonly: B == null ? void 0 : B.value,
1941
+ tabindex: d.value,
1942
+ title: i.value && !u.value ? E.value : "",
1943
+ type: w.value,
2015
1944
  value: y == null ? void 0 : y.value,
2016
- onBlur: s,
2017
- onClick: w,
2018
- onChange: L,
2019
- onFocus: p,
1945
+ onBlur: l,
1946
+ onClick: T,
1947
+ onChange: $,
1948
+ onFocus: f,
2020
1949
  onInput: g,
2021
1950
  onKeydown: D,
2022
- onKeyup: j,
2023
- onMousedown: M
1951
+ onKeyup: M,
1952
+ onMousedown: S
2024
1953
  }, null);
2025
1954
  }
2026
- function to(e, t) {
2027
- const n = P(() => e.useExtendInfo && !!e.extendInfo), r = Ve({
1955
+ function ro(e, t) {
1956
+ const n = k(() => e.useExtendInfo && !!e.extendInfo), r = $e({
2028
1957
  content: e.extendInfo
2029
1958
  });
2030
1959
  function o() {
2031
1960
  t.emit("updateExtendInfo");
2032
1961
  }
2033
- return () => n.value && Oe(A("span", {
1962
+ return () => n.value && Ne(A("span", {
2034
1963
  class: "input-group-before-tips",
2035
1964
  onMouseenter: o
2036
1965
  }, [A("i", {
@@ -2039,102 +1968,102 @@ function to(e, t) {
2039
1968
  class: "tips-arrow"
2040
1969
  }, null)]), [[Le("tooltip"), r]]);
2041
1970
  }
2042
- function Fe(e, t, n, r, o) {
1971
+ function ke(e, t, n, r, o) {
2043
1972
  const {
2044
- appendedButtonClass: i,
2045
- appendedContent: l
2046
- } = n, d = P(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), m = P(() => l.value && !t.slots.groupTextTemplate), a = P(() => !!t.slots.groupTextTemplate), {
2047
- clearButtonClass: u,
1973
+ appendedButtonClass: s,
1974
+ appendedContent: i
1975
+ } = n, u = k(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), p = k(() => i.value && !t.slots.groupTextTemplate), a = k(() => !!t.slots.groupTextTemplate), {
1976
+ clearButtonClass: d,
2048
1977
  clearButtonStyle: c,
2049
1978
  onClearValue: y,
2050
- shouldShowClearButton: F
1979
+ shouldShowClearButton: w
2051
1980
  } = r;
2052
- function s() {
1981
+ function l() {
2053
1982
  return A("span", {
2054
1983
  id: "clearIcon",
2055
- class: u.value,
1984
+ class: d.value,
2056
1985
  style: c.value,
2057
1986
  onClick: (x) => y(x)
2058
1987
  }, [A("i", {
2059
1988
  class: "f-icon modal_close"
2060
1989
  }, null)]);
2061
1990
  }
2062
- function p(x) {
1991
+ function f(x) {
2063
1992
  t.emit("iconMouseEnter", x);
2064
1993
  }
2065
1994
  function g(x) {
2066
1995
  t.emit("iconMouseLeave", x);
2067
1996
  }
2068
- function w(x) {
2069
- d.value && t.emit("clickHandle", {
1997
+ function T(x) {
1998
+ u.value && t.emit("clickHandle", {
2070
1999
  originalEvent: x
2071
2000
  }), x.stopPropagation();
2072
2001
  }
2073
- const D = e.type === "password" ? o.onClickAppendedButton : w;
2074
- function j() {
2002
+ const D = e.type === "password" ? o.onClickAppendedButton : T;
2003
+ function M() {
2075
2004
  return A("span", {
2076
2005
  class: "input-group-text",
2077
- onMouseenter: (x) => p(x),
2006
+ onMouseenter: (x) => f(x),
2078
2007
  onMouseleave: (x) => g(x),
2079
- innerHTML: l.value,
2008
+ innerHTML: i.value,
2080
2009
  onClick: (x) => D(x)
2081
2010
  }, null);
2082
2011
  }
2083
- function M() {
2012
+ function S() {
2084
2013
  return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
2085
2014
  }
2086
- function L() {
2087
- return m.value ? j : a.value ? M : "";
2015
+ function $() {
2016
+ return p.value ? M : a.value ? S : "";
2088
2017
  }
2089
- const S = L();
2018
+ const B = $();
2090
2019
  return () => A("div", {
2091
- class: i.value
2092
- }, [F.value && s(), S && S()]);
2020
+ class: s.value
2021
+ }, [w.value && l(), B && B()]);
2093
2022
  }
2094
- const no = /* @__PURE__ */ G({
2023
+ const ao = /* @__PURE__ */ q({
2095
2024
  name: "FInputGroup",
2096
- props: ae,
2025
+ props: se,
2097
2026
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
2098
2027
  setup(e, t) {
2099
- const n = f(e.modelValue), r = f(e.modelValue), o = zn(e, t, n, r), {
2100
- inputGroupClass: i,
2101
- inputType: l,
2102
- inputGroupStyle: d
2103
- } = o, m = Ce(e), {
2028
+ const n = m(e.modelValue), r = m(e.modelValue), o = Qn(e, t, n, r), {
2029
+ inputGroupClass: s,
2030
+ inputType: i,
2031
+ inputGroupStyle: u
2032
+ } = o, p = Fe(e), {
2104
2033
  shouldShowAppendedButton: a
2105
- } = m, u = ve(e, t, o), {
2034
+ } = p, d = Te(e, t, o), {
2106
2035
  onMouseEnter: c,
2107
2036
  onMouseLeave: y
2108
- } = u, F = Te(e, t, l, m), s = Jn(e, t), p = eo(e, t, F, o), g = Fe(e, t, m, u, F), w = to(e, t), D = P(() => e.type === "number");
2109
- $(() => [e.value], ([M]) => {
2110
- n.value = M, r.value = M;
2111
- }), $(() => [e.modelValue], ([M]) => {
2112
- n.value = M, r.value = M;
2037
+ } = d, w = Be(e, t, i, p), l = no(e, t), f = oo(e, t, w, o), g = ke(e, t, p, d, w), T = ro(e, t), D = k(() => e.type === "number");
2038
+ I(() => [e.value], ([S]) => {
2039
+ n.value = S, r.value = S;
2040
+ }), I(() => [e.modelValue], ([S]) => {
2041
+ n.value = S, r.value = S;
2113
2042
  }), U(() => {
2114
2043
  e.value && (n.value = e.value, r.value = e.value);
2115
2044
  });
2116
- const j = () => A(le, null, [A("div", {
2045
+ const M = () => A(ue, null, [A("div", {
2117
2046
  id: "inputGroup",
2118
- class: i.value,
2119
- style: d.value,
2047
+ class: s.value,
2048
+ style: u.value,
2120
2049
  onMouseenter: c,
2121
2050
  onMouseleave: y
2122
- }, [D.value ? s() : A(le, null, [w(), p(), a.value && g()])])]);
2123
- return () => j();
2051
+ }, [D.value ? l() : A(ue, null, [T(), f(), a.value && g()])])]);
2052
+ return () => M();
2124
2053
  }
2125
2054
  }), b = {}, h = {}, v = {}, C = {};
2126
- let pe = !1;
2127
- function oo() {
2128
- pe || (pe = !0, He.register(b, h, v, C), Ue.register(b, h, v, C), We.register(b, h, v, C), ze.register(b, h, v, C), Qe.register(b, h, v, C), _e.register(b, h, v, C), Ze.register(b, h, v, C), Xe.register(b, h, v, C), Ye.register(b, h, v, C), Ke.register(b, h, v, C), et.register(b, h, v, C), Je.register(b, h, v, C), tt.register(b, h, v, C), nt.register(b, h, v, C), ot.register(b, h, v, C), rt.register(b, h, v, C), at.register(b, h, v, C), it.register(b, h, v, C), st.register(b, h, v, C), lt.register(b, h, v, C), ct.register(b, h, v, C), ut.register(b, h, v, C), dt.register(b, h, v, C), pt.register(b, h, v, C), mt.register(b, h, v, C), ft.register(b, h, v, C), yt.register(b, h, v, C), gt.register(b, h, v, C), Ie.register(b, h, v, C), bt.register(b, h, v, C), ht.register(b, h, v, C), vt.register(b, h, v, C), Ct.register(b, h, v, C), Tt.register(b, h, v, C), Ft.register(b, h, v, C), wt.register(b, h, v, C), Bt.register(b, h, v, C), Pt.register(b, h, v, C), kt.register(b, h, v, C), St.register(b, h, v, C), Wt.register(b, h, v), xt.register(b, h, v, C), Mt.register(b, h, v, C), jt.register(b, h, v, C), At.register(b, h, v, C), Dt.register(b, h, v, C), Et.register(b, h, v, C), Vt.register(b, h, v, C), Ot.register(b, h, v, C), Lt.register(b, h, v, C), Nt.register(b, h, v, C), It.register(b, h, v, C), $t.register(b, h, v, C), Gt.register(b, h, v, C), Rt.register(b, h, v, C), qt.register(b, h, v, C), Ut.register(b, h, v, C), Ht.register(b, h, v, C));
2055
+ let me = !1;
2056
+ function io() {
2057
+ me || (me = !0, ze.register(b, h, v, C), He.register(b, h, v, C), _e.register(b, h, v, C), Je.register(b, h, v, C), Qe.register(b, h, v, C), Ze.register(b, h, v, C), Xe.register(b, h, v, C), Ye.register(b, h, v, C), Ke.register(b, h, v, C), et.register(b, h, v, C), nt.register(b, h, v, C), tt.register(b, h, v, C), ot.register(b, h, v, C), rt.register(b, h, v, C), at.register(b, h, v, C), it.register(b, h, v, C), st.register(b, h, v, C), lt.register(b, h, v, C), ct.register(b, h, v, C), ut.register(b, h, v, C), pt.register(b, h, v, C), dt.register(b, h, v, C), mt.register(b, h, v, C), ft.register(b, h, v, C), yt.register(b, h, v, C), gt.register(b, h, v, C), bt.register(b, h, v, C), ht.register(b, h, v, C), Ge.register(b, h, v, C), vt.register(b, h, v, C), Ct.register(b, h, v, C), wt.register(b, h, v, C), Tt.register(b, h, v, C), Ft.register(b, h, v, C), Bt.register(b, h, v, C), kt.register(b, h, v, C), jt.register(b, h, v, C), xt.register(b, h, v, C), St.register(b, h, v, C), Pt.register(b, h, v, C), _t.register(b, h, v), Mt.register(b, h, v, C), At.register(b, h, v, C), Dt.register(b, h, v, C), Et.register(b, h, v, C), Vt.register(b, h, v, C), Ot.register(b, h, v, C), $t.register(b, h, v, C), Nt.register(b, h, v, C), Lt.register(b, h, v, C), It.register(b, h, v, C), Gt.register(b, h, v, C), qt.register(b, h, v, C), Ut.register(b, h, v, C), Rt.register(b, h, v, C), Wt.register(b, h, v, C), Ht.register(b, h, v, C), zt.register(b, h, v, C), Jt.register(b, h, v, C));
2129
2058
  }
2130
- function we() {
2131
- oo();
2132
- function e(o, i) {
2133
- const l = h[o];
2134
- return l ? l(i) : {};
2059
+ function je() {
2060
+ io();
2061
+ function e(o, s) {
2062
+ const i = h[o];
2063
+ return i ? i(s) : {};
2135
2064
  }
2136
2065
  function t(o) {
2137
- return b[o] || no;
2066
+ return b[o] || ao;
2138
2067
  }
2139
2068
  function n(o) {
2140
2069
  switch (o) {
@@ -2189,209 +2118,274 @@ function we() {
2189
2118
  return "onSchemaSelected";
2190
2119
  case "mapping-editor":
2191
2120
  return "onMappingFieldsChanged";
2121
+ case "textarea":
2122
+ return "onValueChange";
2192
2123
  }
2193
2124
  }
2194
2125
  function r(o) {
2195
2126
  switch (o) {
2196
2127
  case "combo-list":
2197
2128
  case "input-group":
2129
+ case "textarea":
2198
2130
  return "onClear";
2199
2131
  }
2200
2132
  }
2201
2133
  return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: r };
2202
2134
  }
2203
- const ee = /* @__PURE__ */ G({
2135
+ const ne = /* @__PURE__ */ q({
2204
2136
  name: "FDynamicFormGroup",
2205
- props: Q,
2137
+ props: J,
2206
2138
  emits: ["change", "update:modelValue"],
2207
2139
  setup(e, t) {
2208
- const n = f(e.id), r = f(e.customClass), o = f(e.editor), i = f(e.label), l = f(e.modelValue), d = f(e.readonly), m = f(e.required), a = f(e.showLabel), u = f(e.visible);
2209
- f(e.type);
2210
- const c = f(), {
2140
+ const n = m(e.id), r = m(e.customClass), o = m(e.editor), s = m(e.label), i = m(e.modelValue), u = m(e.readonly), p = m(e.required), a = m(e.showLabel), d = m(e.visible);
2141
+ m(e.type);
2142
+ const c = m(), {
2211
2143
  resolveEditorProps: y,
2212
- resolveEditorType: F,
2213
- getChangeFunctionName: s,
2214
- getClearFunctionName: p
2215
- } = we(), g = P(() => ({
2144
+ resolveEditorType: w,
2145
+ getChangeFunctionName: l,
2146
+ getClearFunctionName: f
2147
+ } = je(), g = k(() => ({
2216
2148
  "form-group": !0,
2217
2149
  "farris-form-group": !0,
2218
2150
  "common-group": !0,
2219
- "q-state-readonly": d.value
2151
+ "q-state-readonly": u.value
2220
2152
  }));
2221
- function w(M, L) {
2222
- l.value = L !== void 0 ? L : M, t.emit("update:modelValue", l.value), t.emit("change", l.value);
2153
+ function T(S, $) {
2154
+ i.value = $ !== void 0 ? $ : S, t.emit("update:modelValue", i.value), t.emit("change", i.value);
2223
2155
  }
2224
2156
  function D() {
2225
2157
  t.emit("update:modelValue", "");
2226
2158
  }
2227
- const j = P(() => {
2228
- const M = o.value.type || "input-group", L = F(M), S = y(M, o.value), x = s(M), B = p(o.value.type);
2229
- return S[x] = w, S[B] = D, () => A(L, _({
2159
+ const M = k(() => {
2160
+ const S = o.value.type || "input-group", $ = w(S), B = y(S, o.value), x = l(S), F = f(o.value.type);
2161
+ return B[x] = T, B[F] = D, () => A($, Z({
2230
2162
  ref: c
2231
- }, S, {
2232
- modelValue: l.value,
2233
- "onUpdate:modelValue": (E) => l.value = E
2163
+ }, B, {
2164
+ modelValue: i.value,
2165
+ "onUpdate:modelValue": (E) => i.value = E
2234
2166
  }), null);
2235
2167
  });
2236
- return $([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([M, L, S, x, B, E, N, O, R]) => {
2237
- n.value = M, r.value = L, o.value = S, i.value = x, l.value = B, d.value = E, m.value = N, a.value = O, u.value = R;
2168
+ return I([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([S, $, B, x, F, E, N, O, G]) => {
2169
+ n.value = S, r.value = $, o.value = B, s.value = x, i.value = F, u.value = E, p.value = N, a.value = O, d.value = G;
2238
2170
  }), t.expose({
2239
2171
  editorRef: c
2240
- }), () => u.value && A("div", {
2172
+ }), () => d.value && A("div", {
2241
2173
  id: `${n.value}-input-group`,
2242
2174
  class: r.value
2243
2175
  }, [A("div", {
2244
2176
  class: "farris-group-wrap"
2245
2177
  }, [A("div", {
2246
2178
  class: g.value
2247
- }, [a.value && A(he, {
2179
+ }, [a.value && A(we, {
2248
2180
  id: `${n.value}-lable`,
2249
- required: m.value,
2250
- text: i.value,
2251
- title: i.value
2181
+ required: p.value,
2182
+ text: s.value,
2183
+ title: s.value
2252
2184
  }, null), A("div", {
2253
2185
  class: "farris-input-wrap"
2254
- }, [j.value()])])])]);
2186
+ }, [M.value()])])])]);
2255
2187
  }
2256
- }), ro = {}, ao = {};
2257
- function io(e, t) {
2188
+ }), so = {}, lo = {};
2189
+ function co(e, t) {
2258
2190
  e.schema;
2259
- const n = f(!0), r = f(!0);
2191
+ const n = m(!0), r = m(!0);
2260
2192
  function o(c) {
2261
2193
  return !1;
2262
2194
  }
2263
- function i() {
2195
+ function s() {
2264
2196
  return !1;
2265
2197
  }
2266
- function l() {
2198
+ function i() {
2267
2199
  return !1;
2268
2200
  }
2269
- function d() {
2201
+ function u() {
2270
2202
  return !0;
2271
2203
  }
2272
- function m(c) {
2204
+ function p(c) {
2273
2205
  }
2274
2206
  function a() {
2275
2207
  }
2276
- function u(c) {
2208
+ function d(c) {
2277
2209
  return null;
2278
2210
  }
2279
2211
  return {
2280
2212
  canAccepts: o,
2281
- checkCanDeleteComponent: i,
2282
- checkCanMoveComponent: l,
2283
- hideNestedPaddingInDesginerView: d,
2284
- onAcceptMovedChildElement: m,
2213
+ checkCanDeleteComponent: s,
2214
+ checkCanMoveComponent: i,
2215
+ hideNestedPaddingInDesginerView: u,
2216
+ onAcceptMovedChildElement: p,
2285
2217
  resolveComponentContext: a,
2286
2218
  triggerBelongedComponentToMoveWhenMoved: n,
2287
2219
  triggerBelongedComponentToDeleteWhenDeleted: r,
2288
- getPropsConfig: u
2220
+ getPropsConfig: d
2289
2221
  };
2290
2222
  }
2291
- class Be {
2223
+ class uo {
2224
+ constructor(t, n) {
2225
+ L(this, "componentId");
2226
+ L(this, "viewModelId");
2227
+ L(this, "eventsEditorUtils");
2228
+ L(this, "formSchemaUtils");
2229
+ L(this, "formMetadataConverter");
2230
+ L(this, "designViewModelUtils");
2231
+ L(this, "designViewModelField");
2232
+ L(this, "controlCreatorUtils");
2233
+ L(this, "designerHostService");
2234
+ L(this, "schemaService", null);
2235
+ L(this, "metadataService", null);
2236
+ L(this, "propertyConfig", {
2237
+ type: "object",
2238
+ categories: {}
2239
+ });
2240
+ var r;
2241
+ this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
2242
+ }
2243
+ getTableInfo() {
2244
+ var t;
2245
+ return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
2246
+ }
2247
+ setDesignViewModelField(t) {
2248
+ const n = t.binding && t.binding.type === "Form" && t.binding.field;
2249
+ if (n) {
2250
+ if (!this.designViewModelField) {
2251
+ const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
2252
+ this.designViewModelField = r.fields.find((o) => o.id === n);
2253
+ }
2254
+ t.updateOn = this.designViewModelField.updateOn;
2255
+ }
2256
+ }
2257
+ changeFieldEditorType(t, n) {
2258
+ }
2259
+ getBasicPropConfig(t) {
2260
+ return {
2261
+ description: "Basic Information",
2262
+ title: "基本信息",
2263
+ properties: {
2264
+ id: {
2265
+ description: "组件标识",
2266
+ title: "标识",
2267
+ type: "string",
2268
+ readonly: !0
2269
+ },
2270
+ type: {
2271
+ description: "组件类型",
2272
+ title: "控件类型",
2273
+ type: "select",
2274
+ editor: {
2275
+ type: "combo-list",
2276
+ textField: "name",
2277
+ valueField: "value",
2278
+ data: [{ value: t.type, name: j[t.type].name }]
2279
+ }
2280
+ }
2281
+ }
2282
+ };
2283
+ }
2284
+ getAppearanceConfig(t = null) {
2285
+ return {
2286
+ title: "样式",
2287
+ description: "Appearance",
2288
+ properties: {
2289
+ class: {
2290
+ title: "class样式",
2291
+ type: "string",
2292
+ description: "组件的CSS样式",
2293
+ $converter: "/converter/appearance.converter"
2294
+ },
2295
+ style: {
2296
+ title: "style样式",
2297
+ type: "string",
2298
+ description: "组件的样式",
2299
+ $converter: "/converter/appearance.converter"
2300
+ }
2301
+ }
2302
+ };
2303
+ }
2304
+ }
2305
+ const H = class H {
2306
+ /**
2307
+ * 根据绑定字段类型获取可用的输入类控件
2308
+ */
2292
2309
  static getEditorTypesByMDataType(t) {
2293
- const n = this.fieldControlTypeMapping[t];
2310
+ const n = H.fieldControlTypeMapping[t];
2294
2311
  return n || [{ key: "", value: "" }];
2295
2312
  }
2296
- }
2313
+ /**
2314
+ * 获取所有输入类控件
2315
+ */
2316
+ static getAllInputTypes() {
2317
+ const t = [];
2318
+ for (let n in H.fieldControlTypeMapping)
2319
+ H.fieldControlTypeMapping[n].forEach((r) => {
2320
+ t.find((o) => o.key === r.key && o.value === r.value) || t.push({ key: r.key, value: r.value });
2321
+ });
2322
+ return t;
2323
+ }
2324
+ };
2297
2325
  /**
2298
2326
  * <字段类型,可配置的控件类型列表>的映射
2299
2327
  */
2300
- I(Be, "fieldControlTypeMapping", {
2328
+ L(H, "fieldControlTypeMapping", {
2301
2329
  String: [
2302
- { key: T["input-group"].type, value: T["input-group"].name },
2303
- { key: T.lookup.type, value: T.lookup.name },
2304
- { key: T.Image.type, value: T.Image.name },
2305
- { key: T["date-picker"].type, value: T["date-picker"].name },
2306
- { key: T["check-box"].type, value: T["check-box"].name },
2307
- { key: T["radio-group"].type, value: T["radio-group"].name },
2308
- { key: T["combo-list"].type, value: T["combo-list"].name },
2309
- { key: T.textarea.type, value: T.textarea.name }
2310
- // { key: DgControl.Tags.type, value: DgControl.Tags.name },
2330
+ { key: j["input-group"].type, value: j["input-group"].name },
2331
+ { key: j.lookup.type, value: j.lookup.name },
2332
+ { key: j["date-picker"].type, value: j["date-picker"].name },
2333
+ { key: j["check-box"].type, value: j["check-box"].name },
2334
+ { key: j["radio-group"].type, value: j["radio-group"].name },
2335
+ { key: j["combo-list"].type, value: j["combo-list"].name },
2336
+ { key: j.textarea.type, value: j.textarea.name }
2311
2337
  ],
2312
2338
  Text: [
2313
- { key: T.textarea.type, value: T.textarea.name },
2314
- { key: T.avatar.type, value: T.avatar.name },
2315
- { key: T.lookup.type, value: T.lookup.name }
2339
+ { key: j.textarea.type, value: j.textarea.name },
2340
+ { key: j.lookup.type, value: j.lookup.name }
2316
2341
  ],
2317
2342
  Decimal: [
2318
- { key: T["number-spinner"].type, value: T["number-spinner"].name }
2343
+ { key: j["number-spinner"].type, value: j["number-spinner"].name }
2319
2344
  ],
2320
2345
  Integer: [
2321
- { key: T["number-spinner"].type, value: T["number-spinner"].name }
2346
+ { key: j["number-spinner"].type, value: j["number-spinner"].name }
2322
2347
  ],
2323
2348
  Number: [
2324
- { key: T["number-spinner"].type, value: T["number-spinner"].name }
2349
+ { key: j["number-spinner"].type, value: j["number-spinner"].name }
2325
2350
  ],
2326
2351
  BigNumber: [
2327
- { key: T["number-spinner"].type, value: T["number-spinner"].name }
2352
+ { key: j["number-spinner"].type, value: j["number-spinner"].name }
2328
2353
  ],
2329
2354
  Date: [
2330
- { key: T["date-picker"].type, value: T["date-picker"].name }
2355
+ { key: j["date-picker"].type, value: j["date-picker"].name }
2331
2356
  ],
2332
2357
  DateTime: [
2333
- { key: T["date-picker"].type, value: T["date-picker"].name }
2358
+ { key: j["date-picker"].type, value: j["date-picker"].name }
2334
2359
  ],
2335
2360
  Boolean: [
2336
- { key: T.switch.type, value: T.switch.name },
2337
- { key: T["check-box"].type, value: T["check-box"].name }
2361
+ { key: j.switch.type, value: j.switch.name },
2362
+ { key: j["check-box"].type, value: j["check-box"].name }
2338
2363
  ],
2339
2364
  Enum: [
2340
- { key: T["combo-list"].type, value: T["combo-list"].name },
2341
- { key: T["radio-group"].type, value: T["radio-group"].name }
2365
+ { key: j["combo-list"].type, value: j["combo-list"].name },
2366
+ { key: j["radio-group"].type, value: j["radio-group"].name }
2342
2367
  ],
2343
2368
  Object: [
2344
- { key: T.lookup.type, value: T.lookup.name },
2345
- { key: T["combo-list"].type, value: T["combo-list"].name },
2346
- { key: T["radio-group"].type, value: T["radio-group"].name }
2347
- ],
2348
- EmployeeSelector: [
2349
- { key: T.EmployeeSelector.type, value: T.EmployeeSelector.name }
2350
- ],
2351
- AdminOrganizationSelector: [
2352
- { key: T.AdminOrganizationSelector.type, value: T.AdminOrganizationSelector.name }
2369
+ { key: j.lookup.type, value: j.lookup.name },
2370
+ { key: j["combo-list"].type, value: j["combo-list"].name },
2371
+ { key: j["radio-group"].type, value: j["radio-group"].name }
2353
2372
  ]
2354
2373
  });
2355
- class so {
2374
+ let Q = H;
2375
+ const po = m(0);
2376
+ class fo extends uo {
2356
2377
  constructor(t, n) {
2357
- I(this, "componentId");
2358
- I(this, "viewModelId");
2359
- I(this, "eventsEditorUtils");
2360
- I(this, "formSchemaUtils");
2361
- I(this, "formMetadataConverter");
2362
- I(this, "designViewModelUtils");
2363
- I(this, "designViewModelField");
2364
- I(this, "controlCreatorUtils");
2365
- I(this, "designerHostService");
2366
- I(this, "schemaService", null);
2367
- I(this, "metadataService", null);
2368
- I(this, "propertyConfig", {
2369
- type: "object",
2370
- categories: {}
2371
- });
2372
- var r;
2373
- this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
2374
- }
2375
- getTableInfo() {
2376
- var t;
2377
- return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
2378
- }
2379
- setDesignViewModelField(t) {
2380
- const n = t.binding && t.binding.type === "Form" && t.binding.field;
2381
- if (n) {
2382
- if (!this.designViewModelField) {
2383
- const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
2384
- this.designViewModelField = r.fields.find((o) => o.id === n);
2385
- }
2386
- t.updateOn = this.designViewModelField.updateOn;
2387
- }
2378
+ super(t, n);
2388
2379
  }
2389
- changeFieldEditorType(t, n) {
2380
+ getPropertyConfig(t, n) {
2381
+ 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;
2390
2382
  }
2391
- getBasicPropConfig(t) {
2392
- var r, o;
2393
- var n = this;
2394
- return this.setDesignViewModelField(t), {
2383
+ getBasicProperties(t, n) {
2384
+ var i;
2385
+ var r = this;
2386
+ this.setDesignViewModelField(t);
2387
+ const o = this.formSchemaUtils.getFormMetadataBasicInfo(), s = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
2388
+ return {
2395
2389
  description: "Basic Information",
2396
2390
  title: "基本信息",
2397
2391
  properties: {
@@ -2411,63 +2405,48 @@ class so {
2411
2405
  type: "combo-list",
2412
2406
  textField: "value",
2413
2407
  valueField: "key",
2414
- data: Be.getEditorTypesByMDataType(((o = (r = n.designViewModelField) == null ? void 0 : r.type) == null ? void 0 : o.name) || ""),
2415
- editable: !1
2408
+ editable: !1,
2409
+ data: r.designViewModelField ? Q.getEditorTypesByMDataType((i = r.designViewModelField.type) == null ? void 0 : i.name) : Q.getAllInputTypes()
2416
2410
  }
2417
2411
  },
2418
2412
  label: {
2419
2413
  title: "标签",
2420
2414
  type: "string",
2421
2415
  $converter: "/converter/form-group-label.converter"
2416
+ },
2417
+ binding: {
2418
+ description: "绑定的表单字段",
2419
+ title: "绑定",
2420
+ $converter: "/converter/field-selector.converter",
2421
+ editor: {
2422
+ type: "field-selector",
2423
+ bindingType: { enable: !1 },
2424
+ editorParams: {
2425
+ propertyData: t,
2426
+ formBasicInfo: o
2427
+ },
2428
+ columns: [
2429
+ { field: "name", title: "字段名称" },
2430
+ { field: "bindingField", title: "绑定字段" },
2431
+ { field: "fieldType", title: "字段类型" }
2432
+ ],
2433
+ textField: "bindingField",
2434
+ data: s
2435
+ }
2422
2436
  }
2423
2437
  },
2424
- setPropertyRelates(i, l) {
2425
- if (i)
2426
- switch (i && i.propertyID) {
2438
+ setPropertyRelates(u, p) {
2439
+ if (u)
2440
+ switch (u && u.propertyID) {
2427
2441
  case "type": {
2428
- n.changeControlType(t, i);
2442
+ r.changeControlType(t, u, n);
2429
2443
  break;
2430
2444
  }
2431
2445
  }
2432
2446
  }
2433
2447
  };
2434
2448
  }
2435
- /**
2436
- * 卡片控件:切换控件类型后事件
2437
- * @param propertyData 控件DOM属性
2438
- * @param newControlType 新控件类型
2439
- */
2440
- changeControlType(t, n) {
2441
- var a, u, c, y, F;
2442
- const r = n.propertyValue, o = this.formSchemaUtils.getComponentById(this.componentId);
2443
- let i = this.getControlParentContainer(t.id, o);
2444
- if (!i)
2445
- return;
2446
- const l = i.contents.findIndex((s) => s.id === t.id), d = i.contents[l];
2447
- let m;
2448
- this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
2449
- editor: {
2450
- $type: r
2451
- },
2452
- name: this.designViewModelField.name,
2453
- require: this.designViewModelField.require,
2454
- readonly: this.designViewModelField.readonly
2455
- }, !1), m = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, r)), Object.assign(m, {
2456
- id: d.id,
2457
- appearance: d.appearance,
2458
- size: d.size,
2459
- label: d.label
2460
- }), Object.assign(m.editor, {
2461
- isTextArea: m.isTextArea && d.isTextArea,
2462
- type: r || "",
2463
- placeHolder: (a = d.editor) == null ? void 0 : a.placeHolder,
2464
- holdPlace: (u = d.editor) == null ? void 0 : u.holdPlace,
2465
- readonly: (c = d.editor) == null ? void 0 : c.readonly,
2466
- require: (y = d.editor) == null ? void 0 : y.require,
2467
- visible: (F = d.editor) == null ? void 0 : F.visible
2468
- }), i.contents.splice(l, 1, m);
2469
- }
2470
- getAppearanceConfig(t = null) {
2449
+ getAppearanceProperties(t) {
2471
2450
  return {
2472
2451
  title: "样式",
2473
2452
  description: "Appearance",
@@ -2497,82 +2476,44 @@ class so {
2497
2476
  }
2498
2477
  };
2499
2478
  }
2500
- /**
2501
- * 获取控件:以contents为节点进行定位
2502
- * @param controlId 控件ID
2503
- * @param domJson 容器
2504
- */
2505
- getControlParentContainer(t, n) {
2506
- let r;
2507
- if (!n || !n.contents || n.contents.length === 0)
2508
- return null;
2509
- for (const o of n.contents) {
2510
- if (o.id === t)
2511
- return r = n, n;
2512
- if (r = this.getControlParentContainer(t, o), r)
2513
- return r;
2514
- }
2515
- }
2516
- getBindingFieldEditorOptions(t) {
2517
- const n = this.formSchemaUtils.getFormMetadataBasicInfo();
2518
- return {
2519
- type: "field-selector",
2520
- bindingType: { enable: !1 },
2521
- editorParams: {
2522
- propertyData: t,
2523
- formBasicInfo: n
2524
- },
2525
- columns: [
2526
- { field: "name", title: "字段名称" },
2527
- { field: "bindingField", title: "绑定字段" },
2528
- { field: "fieldType", title: "字段类型" }
2529
- ],
2530
- beforeOpenDialog: (r) => {
2531
- const o = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
2532
- r.instance.loadData(o);
2533
- },
2534
- textField: "bindingField"
2535
- };
2536
- }
2537
- }
2538
- class lo extends so {
2539
- constructor(t, n) {
2540
- super(t, n);
2541
- }
2542
- getBasicProperties(t) {
2543
- let n = this.getBasicPropConfig(t);
2544
- return n.properties.binding = this.getFieldSelectorOptions(t), n;
2545
- }
2546
- getAppearanceProperties(t) {
2547
- return this.getAppearanceConfig(t);
2548
- }
2549
2479
  getEditorProperties(t) {
2550
2480
  return this.getComponentConfig(t);
2551
2481
  }
2552
- getPropertyConfig(t) {
2553
- return this.propertyConfig.categories.basic = this.getBasicProperties(t), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
2554
- }
2555
- getFieldSelectorOptions(t) {
2556
- const n = this.formSchemaUtils.getFormMetadataBasicInfo(), r = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
2557
- return {
2558
- description: "绑定的表单字段",
2559
- title: "绑定",
2560
- $converter: "/converter/field-selector.converter",
2482
+ /**
2483
+ * 卡片控件:切换控件类型后事件
2484
+ * @param propertyData 控件DOM属性
2485
+ * @param newControlType 新控件类型
2486
+ */
2487
+ changeControlType(t, n, r) {
2488
+ var a, d, c, y;
2489
+ const o = n.propertyValue, s = r && r.parent && r.parent.schema;
2490
+ if (!s)
2491
+ return;
2492
+ const i = s.contents.findIndex((w) => w.id === t.id), u = s.contents[i];
2493
+ let p;
2494
+ this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
2561
2495
  editor: {
2562
- type: "field-selector",
2563
- bindingType: { enable: !1 },
2564
- editorParams: {
2565
- propertyData: t,
2566
- formBasicInfo: n
2567
- },
2568
- columns: [
2569
- { field: "name", title: "字段名称" },
2570
- { field: "bindingField", title: "绑定字段" },
2571
- { field: "fieldType", title: "字段类型" }
2572
- ],
2573
- data: r
2574
- }
2575
- };
2496
+ $type: o
2497
+ },
2498
+ name: this.designViewModelField.name,
2499
+ require: this.designViewModelField.require,
2500
+ readonly: this.designViewModelField.readonly
2501
+ }, !1), p = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, o)), p || (p = pe("form-group") || {}, p.editor = pe(o) || {}, delete p.editor.id, delete p.editor.binding, delete p.editor.appearance), Object.assign(p, {
2502
+ id: u.id,
2503
+ appearance: u.appearance,
2504
+ size: u.size,
2505
+ label: u.label,
2506
+ binding: u.binding,
2507
+ visible: u.visible
2508
+ }), Object.assign(p.editor, {
2509
+ isTextArea: p.isTextArea && u.isTextArea,
2510
+ placeholder: (a = u.editor) == null ? void 0 : a.placeholder,
2511
+ holdPlace: (d = u.editor) == null ? void 0 : d.holdPlace,
2512
+ readonly: (c = u.editor) == null ? void 0 : c.readonly,
2513
+ require: (y = u.editor) == null ? void 0 : y.require
2514
+ }), s.contents.splice(i, 1), s.contents.splice(i, 0, p), r.schema = Object.assign(u, p), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
2515
+ (w) => w.classList.remove("dgComponentSelected")
2516
+ ), po.value++;
2576
2517
  }
2577
2518
  getComponentConfig(t, n = {}, r = {}) {
2578
2519
  const o = Object.assign({
@@ -2580,7 +2521,7 @@ class lo extends so {
2580
2521
  title: "组件信息",
2581
2522
  type: "input-group",
2582
2523
  $converter: "/converter/property-editor.converter"
2583
- }, n), i = Object.assign({
2524
+ }, n), s = Object.assign({
2584
2525
  readonly: {
2585
2526
  description: "",
2586
2527
  title: "只读",
@@ -2602,113 +2543,113 @@ class lo extends so {
2602
2543
  type: "string"
2603
2544
  }
2604
2545
  }, r);
2605
- return { ...o, properties: { ...i } };
2546
+ return { ...o, properties: { ...s } };
2606
2547
  }
2607
2548
  }
2608
- class co extends lo {
2549
+ class mo extends fo {
2609
2550
  constructor(t, n) {
2610
2551
  super(t, n);
2611
2552
  }
2612
2553
  }
2613
- function uo(e, t) {
2554
+ function yo(e, t) {
2614
2555
  const {
2615
2556
  canAccepts: n,
2616
2557
  checkCanDeleteComponent: r,
2617
2558
  checkCanMoveComponent: o,
2618
- hideNestedPaddingInDesginerView: i,
2619
- onAcceptMovedChildElement: l,
2620
- resolveComponentContext: d,
2621
- triggerBelongedComponentToMoveWhenMoved: m,
2559
+ hideNestedPaddingInDesginerView: s,
2560
+ onAcceptMovedChildElement: i,
2561
+ resolveComponentContext: u,
2562
+ triggerBelongedComponentToMoveWhenMoved: p,
2622
2563
  triggerBelongedComponentToDeleteWhenDeleted: a
2623
- } = io(e), u = e.schema;
2624
- function c(y) {
2625
- return new co(y, t).getPropertyConfig(u);
2564
+ } = co(e), d = e.schema;
2565
+ function c(y, w) {
2566
+ return new mo(y, t).getPropertyConfig(d, w);
2626
2567
  }
2627
2568
  return {
2628
2569
  canAccepts: n,
2629
2570
  checkCanDeleteComponent: r,
2630
2571
  checkCanMoveComponent: o,
2631
- hideNestedPaddingInDesginerView: i,
2632
- onAcceptMovedChildElement: l,
2633
- resolveComponentContext: d,
2634
- triggerBelongedComponentToMoveWhenMoved: m,
2572
+ hideNestedPaddingInDesginerView: s,
2573
+ onAcceptMovedChildElement: i,
2574
+ resolveComponentContext: u,
2575
+ triggerBelongedComponentToMoveWhenMoved: p,
2635
2576
  triggerBelongedComponentToDeleteWhenDeleted: a,
2636
2577
  getPropsConfig: c
2637
2578
  };
2638
2579
  }
2639
- const po = /* @__PURE__ */ G({
2580
+ const go = /* @__PURE__ */ q({
2640
2581
  name: "FInputGroupDesign",
2641
- props: ae,
2582
+ props: se,
2642
2583
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
2643
2584
  setup(e, t) {
2644
- const n = f(e.modelValue), r = f(e.modelValue), o = Qn(e, t, n, r), {
2645
- inputGroupClass: i,
2646
- inputType: l,
2647
- inputGroupStyle: d
2648
- } = o, m = Ce(e), {
2585
+ const n = m(e.modelValue), r = m(e.modelValue), o = Zn(e, t, n, r), {
2586
+ inputGroupClass: s,
2587
+ inputType: i,
2588
+ inputGroupStyle: u
2589
+ } = o, p = Fe(e), {
2649
2590
  shouldShowAppendedButton: a
2650
- } = m, u = ve(e, t, o), {
2591
+ } = p, d = Te(e, t, o), {
2651
2592
  onMouseEnter: c,
2652
2593
  onMouseLeave: y
2653
- } = u, F = Te(e, t, l, m), s = f(), p = W("designer-host-service"), g = W("design-item-context"), w = uo(g, p), D = re(s, g, w);
2594
+ } = d, w = Be(e, t, i, p), l = m(), f = z("designer-host-service"), g = z("design-item-context"), T = yo(g, f), D = ie(l, g, T);
2654
2595
  U(() => {
2655
- s.value.componentInstance = D;
2596
+ l.value.componentInstance = D;
2656
2597
  }), t.expose(D.value);
2657
- const j = Fe(e, t, m, u, F), M = f();
2598
+ const M = ke(e, t, p, d, w), S = m();
2658
2599
  return () => A("div", {
2659
2600
  id: "inputGroup",
2660
- ref: s,
2661
- class: i.value,
2662
- style: d.value,
2601
+ ref: l,
2602
+ class: s.value,
2603
+ style: u.value,
2663
2604
  onMouseenter: c,
2664
2605
  onMouseleave: y
2665
2606
  }, [A("input", {
2666
- ref: M,
2607
+ ref: S,
2667
2608
  class: "form-control",
2668
2609
  readonly: !0,
2669
2610
  placeholder: e.placeholder
2670
- }, null), a.value && j()]);
2611
+ }, null), a.value && M()]);
2671
2612
  }
2672
2613
  });
2673
- function mo() {
2614
+ function bo() {
2674
2615
  function e(n, r) {
2675
- const o = ao[n];
2616
+ const o = lo[n];
2676
2617
  return o ? o(r) : {};
2677
2618
  }
2678
2619
  function t(n) {
2679
- return ro[n] || po;
2620
+ return so[n] || go;
2680
2621
  }
2681
2622
  return { resolveEditorProps: e, resolveEditorType: t };
2682
2623
  }
2683
- const fo = /* @__PURE__ */ G({
2624
+ const ho = /* @__PURE__ */ q({
2684
2625
  name: "FDynamicFormGroupDesign",
2685
- props: Q,
2626
+ props: J,
2686
2627
  emits: ["change", "update:modelValue"],
2687
2628
  setup(e, t) {
2688
- const n = f(e.id), r = f(e.customClass), o = f(e.editor), i = f(e.label), l = f(e.modelValue), d = f(!0), m = f(e.required), a = f(e.showLabel);
2689
- f(e.type);
2690
- const u = f(), {
2629
+ const n = m(e.id), r = m(e.customClass), o = m(e.editor), s = m(e.label), i = m(e.modelValue), u = m(!0), p = m(e.required), a = m(e.showLabel);
2630
+ m(e.type);
2631
+ const d = m(), {
2691
2632
  resolveEditorProps: c,
2692
2633
  resolveEditorType: y
2693
- } = mo(), F = P(() => ({
2634
+ } = bo(), w = k(() => ({
2694
2635
  "form-group": !0,
2695
2636
  "farris-form-group": !0,
2696
2637
  "common-group": !0,
2697
- "q-state-readonly": d.value,
2638
+ "q-state-readonly": u.value,
2698
2639
  "form-group-in-canvas": !0
2699
- })), s = P(() => {
2700
- const p = o.value.type || "input-group", g = y(p), w = c(p, o.value);
2701
- return () => A(g, _({
2702
- ref: u
2703
- }, w, {
2704
- modelValue: l.value,
2705
- "onUpdate:modelValue": (D) => l.value = D
2640
+ })), l = k(() => {
2641
+ const f = o.value.type || "input-group", g = y(f), T = c(f, o.value);
2642
+ return () => A(g, Z({
2643
+ ref: d
2644
+ }, T, {
2645
+ modelValue: i.value,
2646
+ "onUpdate:modelValue": (D) => i.value = D
2706
2647
  }), null);
2707
2648
  });
2708
- return $([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel], ([p, g, w, D, j, M, L, S]) => {
2709
- n.value = p, r.value = g, o.value = w, i.value = D, l.value = j, d.value = M, m.value = L, a.value = S;
2649
+ return I([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel], ([f, g, T, D, M, S, $, B]) => {
2650
+ n.value = f, r.value = g, o.value = T, s.value = D, i.value = M, u.value = S, p.value = $, a.value = B;
2710
2651
  }), t.expose({
2711
- editorRef: u
2652
+ editorRef: d
2712
2653
  }), () => A("div", {
2713
2654
  id: `${n.value}-input-group`,
2714
2655
  class: r.value,
@@ -2716,33 +2657,33 @@ const fo = /* @__PURE__ */ G({
2716
2657
  }, [A("div", {
2717
2658
  class: "farris-group-wrap"
2718
2659
  }, [A("div", {
2719
- class: F.value
2720
- }, [a.value && A(he, {
2660
+ class: w.value
2661
+ }, [a.value && A(we, {
2721
2662
  id: `${n.value}-lable`,
2722
- required: m.value,
2723
- text: i.value,
2724
- title: i.value
2663
+ required: p.value,
2664
+ text: s.value,
2665
+ title: s.value
2725
2666
  }, null), A("div", {
2726
2667
  class: "farris-input-wrap"
2727
- }, [s.value()])])])]);
2668
+ }, [l.value()])])])]);
2728
2669
  }
2729
- }), yo = /* @__PURE__ */ G({
2670
+ }), vo = /* @__PURE__ */ q({
2730
2671
  name: "FFormGroupDesign",
2731
- props: Q,
2672
+ props: J,
2732
2673
  emits: [],
2733
2674
  setup(e, t) {
2734
- const n = f(), r = W("design-item-context"), o = re(n, r);
2675
+ const n = m(), r = z("design-item-context"), o = ie(n, r);
2735
2676
  return o.value.canNested = !1, o.value.canMove = !0, o.value.canDelete = !0, U(() => {
2736
- n.value.componentInstance = o, o.value.getPropConfig = (...i) => {
2737
- var d, m, a;
2738
- let l = fe[e.editor.type];
2739
- return l && Object.keys(l).length === 0 && ((d = n.value) != null && d.editorRef) && ((a = (m = n.value) == null ? void 0 : m.editorRef) != null && a.getPropConfig) && (l = n.value.editorRef.getPropConfig(...i)), l;
2677
+ n.value.componentInstance = o, o.value.getPropConfig = (...s) => {
2678
+ var u, p, a;
2679
+ let i = be[e.editor.type];
2680
+ return i && Object.keys(i).length === 0 && ((u = n.value) != null && u.editorRef) && ((a = (p = n.value) == null ? void 0 : p.editorRef) != null && a.getPropConfig) && (i = n.value.editorRef.getPropConfig(...s, o.value)), i;
2740
2681
  };
2741
- }), t.expose(o.value), () => A(fo, _(e, {
2682
+ }), t.expose(o.value), () => A(ho, Z(e, {
2742
2683
  ref: n
2743
2684
  }), null);
2744
2685
  }
2745
- }), Se = {
2686
+ }), Pe = {
2746
2687
  id: { type: String, default: "" },
2747
2688
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
2748
2689
  editor: { type: Object, default: {} },
@@ -2756,55 +2697,56 @@ const fo = /* @__PURE__ */ G({
2756
2697
  * 作为内嵌编辑器被创建后默认选中文本
2757
2698
  */
2758
2699
  selectOnCreated: { type: Boolean, default: !1 }
2759
- }, go = Z(
2760
- Se,
2761
- be,
2762
- oe,
2700
+ }, Co = X(
2701
+ Pe,
2702
+ Ce,
2703
+ ae,
2763
2704
  void 0
2764
- ), bo = /* @__PURE__ */ G({
2705
+ ), wo = /* @__PURE__ */ q({
2765
2706
  name: "FDynamicFormInput",
2766
- props: Se,
2707
+ props: Pe,
2767
2708
  emits: ["change", "update:modelValue"],
2768
2709
  setup(e, t) {
2769
- const n = f(e.id), r = f(e.editor), o = f(e.modelValue), {
2770
- resolveEditorProps: i,
2771
- resolveEditorType: l,
2772
- getChangeFunctionName: d
2773
- } = we();
2774
- function m(u, c) {
2775
- o.value = c !== void 0 ? c : u, t.emit("update:modelValue", o.value), t.emit("change", o.value);
2710
+ const n = m(e.id), r = m(e.editor), o = m(e.modelValue), {
2711
+ resolveEditorProps: s,
2712
+ resolveEditorType: i,
2713
+ getChangeFunctionName: u
2714
+ } = je();
2715
+ function p(d, c) {
2716
+ o.value = c !== void 0 ? c : d, t.emit("update:modelValue", o.value), t.emit("change", o.value);
2776
2717
  }
2777
- const a = P(() => {
2778
- const u = l(r.value.type), c = i(r.value.type, r.value);
2718
+ const a = k(() => {
2719
+ const d = i(r.value.type), c = s(r.value.type, r.value);
2779
2720
  c.focusOnCreated = e.focusOnCreated, c.selectOnCreated = e.selectOnCreated;
2780
- const y = d(r.value.type);
2781
- return c[y] = m, () => A(u, _(c, {
2721
+ const y = u(r.value.type);
2722
+ return c[y] = p, () => A(d, Z(c, {
2782
2723
  modelValue: o.value,
2783
- "onUpdate:modelValue": (F) => o.value = F
2724
+ "onUpdate:modelValue": (w) => o.value = w
2784
2725
  }), null);
2785
2726
  });
2786
- return $([() => e.id, () => e.editor, () => e.modelValue], ([u, c, y]) => {
2787
- n.value = u, r.value = c, o.value = y;
2727
+ return I([() => e.id, () => e.editor, () => e.modelValue], ([d, c, y]) => {
2728
+ n.value = d, r.value = c, o.value = y;
2788
2729
  }), () => a.value();
2789
2730
  }
2790
- }), kr = {
2731
+ }), Er = {
2791
2732
  install(e) {
2792
- e.component(K.name, K).component(ee.name, ee);
2733
+ e.component(ee.name, ee).component(ne.name, ne);
2793
2734
  },
2794
2735
  register(e, t, n, r) {
2795
- e["form-group"] = ee, t["form-group"] = ue, e["response-form"] = K, t["response-form"] = ce, e["form-input"] = bo, t["form-input"] = go, r["form-group"] = { editorResolver: Fn };
2736
+ e["form-group"] = ne, t["form-group"] = fe, e["response-form"] = ee, t["response-form"] = de, e["form-input"] = wo, t["form-input"] = Co, r["form-group"] = { editorResolver: kn };
2796
2737
  },
2797
2738
  registerDesigner(e, t, n) {
2798
- e["form-group"] = yo, t["form-group"] = ue, e["response-form"] = Vn, t["response-form"] = ce;
2739
+ e["form-group"] = vo, t["form-group"] = fe, e["response-form"] = Nn, t["response-form"] = de;
2799
2740
  }
2800
2741
  };
2801
2742
  export {
2802
- ee as FDynamicFormGroup,
2803
- K as FResponseForm,
2804
- kr as default,
2805
- Q as dynamicFormGroupProps,
2806
- Fn as editorResolver,
2807
- ue as formGroupPropsResolver,
2808
- ce as formPropsResolver,
2809
- ge as responseFormProps
2743
+ ne as FDynamicFormGroup,
2744
+ ee as FResponseForm,
2745
+ Er as default,
2746
+ J as dynamicFormGroupProps,
2747
+ kn as editorResolver,
2748
+ fe as formGroupPropsResolver,
2749
+ de as formPropsResolver,
2750
+ ve as responseFormProps,
2751
+ $n as useDesignerRules
2810
2752
  };