@farris/ui-vue 1.2.7 → 1.2.9

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 (246) hide show
  1. package/components/accordion/index.esm.js +136 -136
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +418 -456
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/border-editor/index.esm.js +4 -4
  6. package/components/border-editor/index.umd.cjs +1 -1
  7. package/components/button/index.esm.js +1 -1
  8. package/components/button/index.umd.cjs +1 -1
  9. package/components/button-edit/index.esm.js +363 -436
  10. package/components/button-edit/index.umd.cjs +1 -1
  11. package/components/button-group/index.esm.js +5 -5
  12. package/components/button-group/index.umd.cjs +1 -1
  13. package/components/calendar/index.esm.js +417 -417
  14. package/components/calendar/index.umd.cjs +1 -1
  15. package/components/capsule/index.esm.js +176 -176
  16. package/components/capsule/index.umd.cjs +1 -1
  17. package/components/checkbox/index.esm.js +557 -594
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/color-picker/index.esm.js +119 -119
  20. package/components/color-picker/index.umd.cjs +2 -2
  21. package/components/combo-list/index.esm.js +502 -535
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-tree/index.esm.js +69 -69
  24. package/components/combo-tree/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +387 -275
  26. package/components/component/index.umd.cjs +1 -1
  27. package/components/condition/index.esm.js +1219 -983
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/content-container/index.esm.js +292 -219
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/data-grid/index.css +1 -1
  32. package/components/data-grid/index.esm.js +5718 -5546
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3291 -2930
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2650 -2682
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/dependent-base/style.js +1 -0
  39. package/components/dependent-fluid/style.js +1 -0
  40. package/components/dependent-icon/style.js +1 -0
  41. package/components/dependent-input/style.js +1 -0
  42. package/components/dependent-table/style.js +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +945 -932
  45. package/components/designer-canvas/index.umd.cjs +1 -1
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +175 -133
  48. package/components/designer-outline/index.umd.cjs +1 -1
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -1
  51. package/components/discussion-editor/index.esm.js +1 -1
  52. package/components/discussion-editor/index.umd.cjs +1 -1
  53. package/components/dropdown/index.esm.js +246 -246
  54. package/components/dropdown/index.umd.cjs +2 -2
  55. package/components/dynamic-form/index.esm.js +1319 -1172
  56. package/components/dynamic-form/index.umd.cjs +1 -1
  57. package/components/dynamic-resolver/index.esm.js +119 -82
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-view/index.esm.js +258 -249
  60. package/components/dynamic-view/index.umd.cjs +1 -1
  61. package/components/enum-editor/index.esm.js +3 -3
  62. package/components/enum-editor/index.umd.cjs +1 -1
  63. package/components/events-editor/index.esm.js +569 -514
  64. package/components/events-editor/index.umd.cjs +1 -1
  65. package/components/expression-editor/index.esm.js +104 -104
  66. package/components/expression-editor/index.umd.cjs +1 -1
  67. package/components/external-container/index.css +1 -1
  68. package/components/external-container/index.esm.js +3122 -2686
  69. package/components/external-container/index.umd.cjs +1 -1
  70. package/components/field-selector/index.css +1 -1
  71. package/components/field-selector/index.esm.js +6780 -6608
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/filter-bar/index.css +1 -1
  74. package/components/filter-bar/index.esm.js +1466 -1523
  75. package/components/filter-bar/index.umd.cjs +1 -1
  76. package/components/flow-canvas/index.css +1 -1
  77. package/components/flow-canvas/index.esm.js +1048 -1035
  78. package/components/flow-canvas/index.umd.cjs +1 -1
  79. package/components/image-cropper/index.esm.js +422 -422
  80. package/components/image-cropper/index.umd.cjs +1 -1
  81. package/components/input-group/index.esm.js +674 -716
  82. package/components/input-group/index.umd.cjs +1 -1
  83. package/components/layout/index.esm.js +291 -291
  84. package/components/layout/index.umd.cjs +1 -1
  85. package/components/list-nav/index.esm.js +303 -230
  86. package/components/list-nav/index.umd.cjs +1 -1
  87. package/components/list-view/index.css +1 -1
  88. package/components/list-view/index.esm.js +2486 -2130
  89. package/components/list-view/index.umd.cjs +1 -1
  90. package/components/lookup/index.css +1 -1
  91. package/components/lookup/index.esm.js +7474 -7272
  92. package/components/lookup/index.umd.cjs +1 -1
  93. package/components/mapping-editor/index.css +1 -1
  94. package/components/mapping-editor/index.esm.js +6139 -5949
  95. package/components/mapping-editor/index.umd.cjs +1 -1
  96. package/components/message-box/index.esm.js +1 -1
  97. package/components/message-box/index.umd.cjs +1 -1
  98. package/components/modal/index.esm.js +1 -1
  99. package/components/modal/index.umd.cjs +1 -1
  100. package/components/nav/index.esm.js +432 -371
  101. package/components/nav/index.umd.cjs +3 -3
  102. package/components/number-range/index.esm.js +1124 -0
  103. package/components/number-range/index.umd.cjs +1 -0
  104. package/components/number-range/package.json +8 -0
  105. package/components/number-range/style.js +6 -0
  106. package/components/number-spinner/index.esm.js +1155 -0
  107. package/components/number-spinner/index.umd.cjs +1 -0
  108. package/components/number-spinner/package.json +8 -0
  109. package/components/number-spinner/style.js +4 -0
  110. package/components/order/index.css +1 -1
  111. package/components/order/index.esm.js +1215 -1178
  112. package/components/order/index.umd.cjs +1 -1
  113. package/components/page-footer/index.esm.js +147 -147
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +1240 -1346
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +489 -428
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/progress/index.esm.js +220 -220
  120. package/components/progress/index.umd.cjs +3 -3
  121. package/components/property-editor/index.esm.js +1512 -1540
  122. package/components/property-editor/index.umd.cjs +3 -3
  123. package/components/property-panel/index.css +1 -1
  124. package/components/property-panel/index.esm.js +749 -815
  125. package/components/property-panel/index.umd.cjs +1 -1
  126. package/components/query-solution/index.css +1 -0
  127. package/components/query-solution/index.esm.js +7074 -0
  128. package/components/query-solution/index.umd.cjs +1 -0
  129. package/components/query-solution/package.json +8 -0
  130. package/components/query-solution/style.js +2 -0
  131. package/components/radio-button/index.esm.js +86 -86
  132. package/components/radio-button/index.umd.cjs +1 -1
  133. package/components/radio-group/index.esm.js +442 -479
  134. package/components/radio-group/index.umd.cjs +1 -1
  135. package/components/rate/index.esm.js +213 -208
  136. package/components/rate/index.umd.cjs +1 -1
  137. package/components/response-layout/index.esm.js +116 -116
  138. package/components/response-layout/index.umd.cjs +1 -1
  139. package/components/response-layout-editor/index.esm.js +943 -918
  140. package/components/response-layout-editor/index.umd.cjs +1 -1
  141. package/components/response-toolbar/index.esm.js +1174 -1295
  142. package/components/response-toolbar/index.umd.cjs +1 -1
  143. package/components/schema-selector/index.css +1 -1
  144. package/components/schema-selector/index.esm.js +5383 -5171
  145. package/components/schema-selector/index.umd.cjs +2 -2
  146. package/components/search-box/index.esm.js +201 -201
  147. package/components/search-box/index.umd.cjs +1 -1
  148. package/components/section/index.esm.js +684 -542
  149. package/components/section/index.umd.cjs +1 -1
  150. package/components/smoke-detector/index.esm.js +121 -121
  151. package/components/smoke-detector/index.umd.cjs +1 -1
  152. package/components/spacing-editor/index.esm.js +2 -2
  153. package/components/spacing-editor/index.umd.cjs +1 -1
  154. package/components/splitter/index.esm.js +1158 -382
  155. package/components/splitter/index.umd.cjs +1 -1
  156. package/components/step/index.esm.js +232 -232
  157. package/components/step/index.umd.cjs +1 -1
  158. package/components/switch/index.esm.js +451 -487
  159. package/components/switch/index.umd.cjs +1 -1
  160. package/components/tabs/index.esm.js +2078 -2168
  161. package/components/tabs/index.umd.cjs +1 -1
  162. package/components/tags/index.esm.js +318 -320
  163. package/components/tags/index.umd.cjs +1 -1
  164. package/components/text/index.esm.js +192 -192
  165. package/components/text/index.umd.cjs +1 -1
  166. package/components/textarea/index.esm.js +471 -497
  167. package/components/textarea/index.umd.cjs +1 -1
  168. package/components/time-picker/index.esm.js +1421 -1441
  169. package/components/time-picker/index.umd.cjs +1 -1
  170. package/components/transfer/index.css +1 -1
  171. package/components/transfer/index.esm.js +430 -421
  172. package/components/transfer/index.umd.cjs +1 -1
  173. package/components/tree-grid/index.css +1 -1
  174. package/components/tree-grid/index.esm.js +6806 -6624
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-view/index.esm.js +2793 -2433
  177. package/components/tree-view/index.umd.cjs +1 -1
  178. package/components/uploader/index.esm.js +165 -165
  179. package/components/uploader/index.umd.cjs +2 -2
  180. package/components/verify-detail/index.esm.js +255 -255
  181. package/components/verify-detail/index.umd.cjs +1 -1
  182. package/components/video/index.esm.js +413 -334
  183. package/components/video/index.umd.cjs +1 -1
  184. package/components/weather/index.esm.js +902 -902
  185. package/components/weather/index.umd.cjs +4 -4
  186. package/farris.all.esm.js +54155 -52847
  187. package/farris.all.umd.cjs +9 -9
  188. package/index.css +1 -1
  189. package/package.json +1 -1
  190. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  191. package/types/checkbox/index.d.ts +1 -0
  192. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  193. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  194. package/types/common/entity/entity-schema.d.ts +258 -0
  195. package/types/component/src/component-ref.props.d.ts +4 -0
  196. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  197. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  198. package/types/data-grid/index.d.ts +5 -2
  199. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  200. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  201. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  202. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  203. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  204. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  205. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  206. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  207. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  208. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  209. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  210. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  211. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  212. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  213. package/types/data-view/composition/types.d.ts +19 -7
  214. package/types/data-view/composition/use-edit.d.ts +2 -1
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  216. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  217. package/types/designer-canvas/src/types.d.ts +3 -3
  218. package/types/dynamic-form/index.d.ts +3 -1
  219. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  220. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  221. package/types/dynamic-form/src/types.d.ts +1 -1
  222. package/types/dynamic-resolver/index.d.ts +1 -0
  223. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  224. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  225. package/types/dynamic-resolver/src/types.d.ts +3 -2
  226. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  227. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  228. package/types/modal/src/modal.props.d.ts +1 -4
  229. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  230. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  231. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  232. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  233. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  234. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  235. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  236. package/types/tabs/src/composition/types.d.ts +2 -2
  237. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  238. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  239. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  240. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  241. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  242. package/types/tags/index.d.ts +36 -5
  243. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  244. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  245. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  246. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
@@ -1,70 +1,71 @@
1
- var ve = Object.defineProperty;
2
- var ye = (e, t, n) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var w = (e, t, n) => ye(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as I, computed as P, watch as W, defineComponent as Z, onBeforeUnmount as be, createVNode as F, createTextVNode as _, onMounted as J, nextTick as te, reactive as Ce, withDirectives as Fe, resolveDirective as we, Fragment as ne, mergeProps as Te } from "vue";
5
- import xe, { FDynamicFormGroup as ke } from "@farris/ui-vue/components/dynamic-form";
6
- import { cloneDeep as Q } from "lodash-es";
7
- import K from "@farris/ui-vue/components/combo-list";
1
+ var Te = Object.defineProperty;
2
+ var ke = (t, e, n) => e in t ? Te(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var y = (t, e, n) => ke(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { ref as I, computed as O, watch as W, defineComponent as X, onBeforeUnmount as we, createVNode as k, createTextVNode as Y, onMounted as _, nextTick as re, reactive as xe, withDirectives as Fe, resolveDirective as Be, Fragment as ae, mergeProps as Ie } from "vue";
5
+ import Se, { FDynamicFormGroup as Ve } from "../dynamic-form/index.esm.js";
6
+ import { cloneDeep as J } from "lodash-es";
7
+ import te from "../combo-list/index.esm.js";
8
8
  import "bignumber.js";
9
- import Be, { useNumber as Ie, useFormat as Se, useSpinner as Ve, useTextBox as Ee } from "@farris/ui-vue/components/number-spinner";
10
- import Me from "@farris/ui-vue/components/accordion";
11
- import Pe from "@farris/ui-vue/components/avatar";
12
- import Oe from "@farris/ui-vue/components/button-edit";
13
- import je from "@farris/ui-vue/components/button-group";
14
- import Le from "@farris/ui-vue/components/calendar";
15
- import Ae from "@farris/ui-vue/components/capsule";
16
- import Ne from "@farris/ui-vue/components/checkbox";
17
- import $e from "@farris/ui-vue/components/combo-tree";
18
- import Ge from "@farris/ui-vue/components/component";
19
- import Re from "@farris/ui-vue/components/color-picker";
20
- import qe from "@farris/ui-vue/components/content-container";
21
- import De from "@farris/ui-vue/components/date-picker";
22
- import We from "@farris/ui-vue/components/data-grid";
23
- import ze from "@farris/ui-vue/components/dropdown";
24
- import Ue from "@farris/ui-vue/components/events-editor";
25
- import He from "@farris/ui-vue/components/filter-bar";
26
- import Qe from "@farris/ui-vue/components/field-selector";
27
- import Ze from "@farris/ui-vue/components/image-cropper";
28
- import _e from "@farris/ui-vue/components/input-group";
29
- import Je from "@farris/ui-vue/components/layout";
30
- import Xe from "@farris/ui-vue/components/list-nav";
31
- import Ye from "@farris/ui-vue/components/list-view";
32
- import Ke from "@farris/ui-vue/components/lookup";
33
- import et from "@farris/ui-vue/components/mapping-editor";
34
- import tt from "@farris/ui-vue/components/nav";
35
- import nt from "@farris/ui-vue/components/number-range";
36
- import ot from "@farris/ui-vue/components/order";
37
- import rt from "@farris/ui-vue/components/page-header";
38
- import it from "@farris/ui-vue/components/page-footer";
39
- import at from "@farris/ui-vue/components/pagination";
40
- import lt from "@farris/ui-vue/components/progress";
41
- import st from "@farris/ui-vue/components/query-solution";
42
- import ut from "@farris/ui-vue/components/radio-group";
43
- import ct from "@farris/ui-vue/components/rate";
44
- import dt from "@farris/ui-vue/components/response-toolbar";
45
- import pt from "@farris/ui-vue/components/response-layout";
46
- import ft from "@farris/ui-vue/components/response-layout-editor";
47
- import mt from "@farris/ui-vue/components/search-box";
48
- import gt from "@farris/ui-vue/components/section";
49
- import ht from "@farris/ui-vue/components/smoke-detector";
50
- import vt from "@farris/ui-vue/components/splitter";
51
- import yt from "@farris/ui-vue/components/step";
52
- import bt from "@farris/ui-vue/components/switch";
53
- import Ct from "@farris/ui-vue/components/tabs";
54
- import Ft from "@farris/ui-vue/components/tags";
55
- import wt from "@farris/ui-vue/components/text";
56
- import Tt from "@farris/ui-vue/components/time-picker";
57
- import xt from "@farris/ui-vue/components/transfer";
58
- import kt from "@farris/ui-vue/components/tree-view";
59
- import Bt from "@farris/ui-vue/components/uploader";
60
- import It from "@farris/ui-vue/components/verify-detail";
61
- import St from "@farris/ui-vue/components/weather";
62
- import Vt from "@farris/ui-vue/components/video";
63
- import Et from "@farris/ui-vue/components/textarea";
64
- import Mt from "@farris/ui-vue/components/schema-selector";
65
- import Pt from "@farris/ui-vue/components/tree-grid";
66
- import "@farris/ui-vue/components/external-container";
67
- const ae = {
9
+ import Ee, { useNumber as Me, useFormat as Ne, useSpinner as Oe, useTextBox as Pe } from "../number-spinner/index.esm.js";
10
+ import je from "../accordion/index.esm.js";
11
+ import Le from "../avatar/index.esm.js";
12
+ import Re from "../button-edit/index.esm.js";
13
+ import Ae from "../button-group/index.esm.js";
14
+ import $e from "../calendar/index.esm.js";
15
+ import Ge from "../capsule/index.esm.js";
16
+ import qe from "../checkbox/index.esm.js";
17
+ import De from "../combo-tree/index.esm.js";
18
+ import Ue from "../component/index.esm.js";
19
+ import We from "../color-picker/index.esm.js";
20
+ import He from "../content-container/index.esm.js";
21
+ import ze from "../date-picker/index.esm.js";
22
+ import Qe from "../data-grid/index.esm.js";
23
+ import Ze from "../dropdown/index.esm.js";
24
+ import Je from "../events-editor/index.esm.js";
25
+ import Xe from "../filter-bar/index.esm.js";
26
+ import Ye from "../field-selector/index.esm.js";
27
+ import _e from "../image-cropper/index.esm.js";
28
+ import Ke from "../input-group/index.esm.js";
29
+ import et from "../layout/index.esm.js";
30
+ import tt from "../list-nav/index.esm.js";
31
+ import nt from "../list-view/index.esm.js";
32
+ import ot from "../lookup/index.esm.js";
33
+ import rt from "../mapping-editor/index.esm.js";
34
+ import at from "../nav/index.esm.js";
35
+ import it from "../number-range/index.esm.js";
36
+ import st from "../order/index.esm.js";
37
+ import lt from "../page-header/index.esm.js";
38
+ import ut from "../page-footer/index.esm.js";
39
+ import ct from "../pagination/index.esm.js";
40
+ import dt from "../progress/index.esm.js";
41
+ import pt from "../query-solution/index.esm.js";
42
+ import mt from "../radio-group/index.esm.js";
43
+ import ft from "../rate/index.esm.js";
44
+ import gt from "../response-toolbar/index.esm.js";
45
+ import ht from "../response-layout/index.esm.js";
46
+ import vt from "../response-layout-editor/index.esm.js";
47
+ import yt from "../search-box/index.esm.js";
48
+ import bt from "../section/index.esm.js";
49
+ import Ct from "../smoke-detector/index.esm.js";
50
+ import Tt from "../splitter/index.esm.js";
51
+ import kt from "../step/index.esm.js";
52
+ import wt from "../switch/index.esm.js";
53
+ import xt from "../tabs/index.esm.js";
54
+ import Ft from "../tags/index.esm.js";
55
+ import Bt from "../text/index.esm.js";
56
+ import It from "../time-picker/index.esm.js";
57
+ import St from "../transfer/index.esm.js";
58
+ import Vt from "../tree-view/index.esm.js";
59
+ import Et from "../uploader/index.esm.js";
60
+ import Mt from "../verify-detail/index.esm.js";
61
+ import Nt from "../weather/index.esm.js";
62
+ import Ot from "../video/index.esm.js";
63
+ import Pt from "../textarea/index.esm.js";
64
+ import jt from "../schema-selector/index.esm.js";
65
+ import Lt from "../tree-grid/index.esm.js";
66
+ import "../external-container/index.esm.js";
67
+ import "../dynamic-resolver/index.esm.js";
68
+ const ce = {
68
69
  conditions: { type: Array, default: [] },
69
70
  fields: { type: Array, default: [] },
70
71
  key: { type: String, default: "" },
@@ -73,18 +74,18 @@ const ae = {
73
74
  */
74
75
  isControlInline: { type: Boolean, default: !0 }
75
76
  };
76
- class Ot {
77
- constructor(t = { value: [] }) {
78
- w(this, "editorType", "check-box");
79
- w(this, "value");
80
- w(this, "valueType", "boolean");
81
- this.value = t.value;
77
+ class Rt {
78
+ constructor(e = { value: [] }) {
79
+ y(this, "editorType", "check-box");
80
+ y(this, "value");
81
+ y(this, "valueType", "boolean");
82
+ this.value = e.value;
82
83
  }
83
84
  clear() {
84
85
  this.value = [];
85
86
  }
86
- setValue(t) {
87
- this.value = t;
87
+ setValue(e) {
88
+ this.value = e;
88
89
  }
89
90
  getValue() {
90
91
  return this.value;
@@ -93,49 +94,49 @@ class Ot {
93
94
  return this.value.length === 0;
94
95
  }
95
96
  }
96
- class jt {
97
- constructor(t = { textValue: "", value: "", valueField: "" }) {
98
- w(this, "editorType", "combo-lookup");
99
- w(this, "textValue");
100
- w(this, "value");
101
- w(this, "valueField");
102
- w(this, "valueType", "text");
103
- this.textValue = t.textValue, this.value = t.value, this.valueField = t.valueField;
97
+ class At {
98
+ constructor(e = { textValue: "", value: "", valueField: "" }) {
99
+ y(this, "editorType", "combo-lookup");
100
+ y(this, "textValue");
101
+ y(this, "value");
102
+ y(this, "valueField");
103
+ y(this, "valueType", "text");
104
+ this.textValue = e.textValue, this.value = e.value, this.valueField = e.valueField;
104
105
  }
105
106
  clear() {
106
107
  this.value = "", this.valueField = "", this.textValue = "";
107
108
  }
108
- getPropValue(t, n) {
109
+ getPropValue(e, n) {
109
110
  if (n.length > 1) {
110
111
  const o = n.shift();
111
- return t[o] ? this.getPropValue(t[o], n) : null;
112
+ return e[o] ? this.getPropValue(e[o], n) : null;
112
113
  }
113
- return t[n[0]];
114
+ return e[n[0]];
114
115
  }
115
- getTextValue(t) {
116
- const n = t.split("."), o = this.value.split(",").map((r) => this.getPropValue(r, Q(n)));
116
+ getTextValue(e) {
117
+ const n = e.split("."), o = this.value.split(",").map((r) => this.getPropValue(r, J(n)));
117
118
  return o && o.length ? o.join(",") : "";
118
119
  }
119
120
  getValue() {
120
- const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, Q(t)));
121
+ const e = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, J(e)));
121
122
  return n && n.length ? n.join(",") : "";
122
123
  }
123
- setValue(t) {
124
+ setValue(e) {
124
125
  throw new Error("Method not implemented.");
125
126
  }
126
127
  isEmpty() {
127
128
  return !this.valueField;
128
129
  }
129
130
  }
130
- class Lt {
131
- constructor(t = { value: "" }) {
132
- w(this, "editorType", "date-picker");
133
- w(this, "value");
134
- w(this, "valueType", "datetime");
135
- this.value = t.value;
131
+ class $t {
132
+ constructor(e = { value: "" }) {
133
+ y(this, "editorType", "date-picker");
134
+ y(this, "value");
135
+ y(this, "valueType", "datetime");
136
+ this.value = e.value;
136
137
  }
137
- setValue(t) {
138
- this.value = t.formatted;
138
+ setValue(e) {
139
+ this.value = e.formatted;
139
140
  }
140
141
  getValue() {
141
142
  return this.value;
@@ -147,13 +148,13 @@ class Lt {
147
148
  this.value = void 0;
148
149
  }
149
150
  }
150
- class oe {
151
- constructor(t = { begin: "", end: "" }) {
152
- w(this, "editorType", "date-range");
153
- w(this, "begin", "");
154
- w(this, "end", "");
155
- w(this, "valueType", "datetime");
156
- this.begin = t.begin, this.end = t.end;
151
+ class ie {
152
+ constructor(e = { begin: "", end: "" }) {
153
+ y(this, "editorType", "date-range");
154
+ y(this, "begin", "");
155
+ y(this, "end", "");
156
+ y(this, "valueType", "datetime");
157
+ this.begin = e.begin, this.end = e.end;
157
158
  }
158
159
  clear() {
159
160
  this.begin = "", this.end = "";
@@ -161,19 +162,19 @@ class oe {
161
162
  getValue() {
162
163
  return !this.begin || !this.end ? "" : `${this.begin}~${this.end}`;
163
164
  }
164
- setValue(t) {
165
- t.dataRange ? (this.begin = t.dataRange.split(t.delimiter)[0], this.end = t.dataRange.split(t.delimiter)[1]) : this.clear();
165
+ setValue(e) {
166
+ e.dataRange ? (this.begin = e.dataRange.split(e.delimiter)[0], this.end = e.dataRange.split(e.delimiter)[1]) : this.clear();
166
167
  }
167
168
  isEmpty() {
168
169
  return !this.begin || !this.end;
169
170
  }
170
171
  }
171
- class At {
172
- constructor(t = { value: "" }) {
173
- w(this, "editorType", "datetime-picker");
174
- w(this, "value");
175
- w(this, "valueType", "datetime");
176
- this.value = t.value;
172
+ class Gt {
173
+ constructor(e = { value: "" }) {
174
+ y(this, "editorType", "datetime-picker");
175
+ y(this, "value");
176
+ y(this, "valueType", "datetime");
177
+ this.value = e.value;
177
178
  }
178
179
  clear() {
179
180
  this.value = void 0;
@@ -181,22 +182,22 @@ class At {
181
182
  getValue() {
182
183
  return this.value;
183
184
  }
184
- setValue(t) {
185
- this.value = t.formatted;
185
+ setValue(e) {
186
+ this.value = e.formatted;
186
187
  }
187
188
  isEmpty() {
188
189
  return !this.value;
189
190
  }
190
191
  }
191
- class Nt {
192
+ class qt {
192
193
  // 旧结构无,新结构为选中的value值,多选是以,分割的字符串
193
- constructor(t = { value: "", dispalyText: "" }) {
194
- w(this, "editorType", "combo-list");
195
- w(this, "value");
194
+ constructor(e = { value: "", dispalyText: "" }) {
195
+ y(this, "editorType", "combo-list");
196
+ y(this, "value");
196
197
  // 旧结构{Type: '', Content: {value: string, name: string}} 新结构Array[{value: string, name: string}]
197
- w(this, "valueType", "enum");
198
- w(this, "displayText");
199
- this.displayText = t.dispalyText, this.value = t.value;
198
+ y(this, "valueType", "enum");
199
+ y(this, "displayText");
200
+ this.displayText = e.dispalyText, this.value = e.value;
200
201
  }
201
202
  clear() {
202
203
  this.value = "", this.displayText = "";
@@ -204,97 +205,97 @@ class Nt {
204
205
  getValue() {
205
206
  return this.displayText;
206
207
  }
207
- setValue(t) {
208
- this.displayText = t.dispalyText, this.value = t.value;
208
+ setValue(e) {
209
+ this.displayText = e.dispalyText, this.value = e.value;
209
210
  }
210
211
  isEmpty() {
211
212
  return !this.displayText;
212
213
  }
213
214
  }
214
- class $t {
215
- constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
216
- w(this, "editorType", "input-group");
215
+ class Dt {
216
+ constructor(e = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
217
+ y(this, "editorType", "input-group");
217
218
  // 通过弹窗返回的若干个值对象构成的数组
218
- w(this, "value");
219
- w(this, "valueType", "text");
219
+ y(this, "value");
220
+ y(this, "valueType", "text");
220
221
  // 控件内显示的值
221
- w(this, "displayText");
222
+ y(this, "displayText");
222
223
  // 弹窗模式下,取列表中哪个字段的值映射到当前字段
223
- w(this, "valueField");
224
+ y(this, "valueField");
224
225
  // 是否是手动输入的值
225
- w(this, "isInputText");
226
- this.value = t.value, this.displayText = t.displayText, this.valueField = t.displayField, this.isInputText = t.isInputText;
226
+ y(this, "isInputText");
227
+ this.value = e.value, this.displayText = e.displayText, this.valueField = e.displayField, this.isInputText = e.isInputText;
227
228
  }
228
229
  clear() {
229
230
  this.value = [], this.displayText = "", this.valueField = "";
230
231
  }
231
- getPropValue(t, n) {
232
+ getPropValue(e, n) {
232
233
  if (n.length > 1) {
233
234
  const o = n.shift();
234
- return t[o] ? this.getPropValue(t[o], n) : "";
235
+ return e[o] ? this.getPropValue(e[o], n) : "";
235
236
  }
236
- return t[n[0]];
237
+ return e[n[0]];
237
238
  }
238
- getTextValue(t) {
239
- const n = t.split("."), o = this.value.map((r) => this.getPropValue(r, Q(n)));
239
+ getTextValue(e) {
240
+ const n = e.split("."), o = this.value.map((r) => this.getPropValue(r, J(n)));
240
241
  return o && o.length ? o.join(",") : "";
241
242
  }
242
243
  getValue() {
243
- const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, Q(t)));
244
+ const e = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, J(e)));
244
245
  return n && n.length ? n.join(",") : "";
245
246
  }
246
- setValue(t) {
247
+ setValue(e) {
247
248
  throw new Error("Method not implemented.");
248
249
  }
249
250
  isEmpty() {
250
251
  return !this.displayText;
251
252
  }
252
253
  }
253
- class Gt {
254
- constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
255
- w(this, "editorType", "lookup");
256
- w(this, "textValue");
257
- w(this, "value");
258
- w(this, "valueField");
259
- w(this, "valueType", "text");
254
+ class Ut {
255
+ constructor(e = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
256
+ y(this, "editorType", "lookup");
257
+ y(this, "textValue");
258
+ y(this, "value");
259
+ y(this, "valueField");
260
+ y(this, "valueType", "text");
260
261
  // 帮助的值是否为手动输入的任意值,对应帮助的任意输入属性nosearch
261
- w(this, "isInputText");
262
- this.value = t.value, this.valueField = t.valueField, this.textValue = t.textValue, this.isInputText = t.isInputText;
262
+ y(this, "isInputText");
263
+ this.value = e.value, this.valueField = e.valueField, this.textValue = e.textValue, this.isInputText = e.isInputText;
263
264
  }
264
265
  clear() {
265
266
  this.value = [], this.valueField = "", this.textValue = "";
266
267
  }
267
- getPropValue(t, n) {
268
+ getPropValue(e, n) {
268
269
  if (n.length > 1) {
269
270
  const o = n.shift();
270
- return t[o] ? this.getPropValue(t[o], n) : null;
271
+ return e[o] ? this.getPropValue(e[o], n) : null;
271
272
  }
272
- return t[n[0]];
273
+ return e[n[0]];
273
274
  }
274
- getTextValue(t) {
275
- const n = t.split("."), o = this.value.map((r) => this.getPropValue(r, n));
275
+ getTextValue(e) {
276
+ const n = e.split("."), o = this.value.map((r) => this.getPropValue(r, n));
276
277
  return o && o.length ? o.join(",") : "";
277
278
  }
278
279
  getValue() {
279
- const t = this.valueField.split("."), n = this.value.map((o) => this.getPropValue(o, t));
280
+ const e = this.valueField.split("."), n = this.value.map((o) => this.getPropValue(o, e));
280
281
  return n && n.length ? n.join(",") : "";
281
282
  }
282
- setValue(t) {
283
+ setValue(e) {
283
284
  throw new Error("Method not implemented.");
284
285
  }
285
286
  isEmpty() {
286
287
  return !this.value.length;
287
288
  }
288
289
  }
289
- class Rt {
290
- constructor(t = { value: "" }) {
291
- w(this, "editorType", "month-picker");
292
- w(this, "value");
293
- w(this, "valueType", "datetime");
294
- this.value = t.value;
290
+ class Wt {
291
+ constructor(e = { value: "" }) {
292
+ y(this, "editorType", "month-picker");
293
+ y(this, "value");
294
+ y(this, "valueType", "datetime");
295
+ this.value = e.value;
295
296
  }
296
- setValue(t) {
297
- this.value = t.formatted;
297
+ setValue(e) {
298
+ this.value = e.formatted;
298
299
  }
299
300
  getValue() {
300
301
  return this.value;
@@ -306,13 +307,13 @@ class Rt {
306
307
  return !this.value;
307
308
  }
308
309
  }
309
- class qt {
310
- constructor(t = { begin: "", end: "" }) {
311
- w(this, "editorType", "month-range");
312
- w(this, "begin");
313
- w(this, "end");
314
- w(this, "valueType", "datetime");
315
- this.begin = t.begin, this.end = t.end;
310
+ class Ht {
311
+ constructor(e = { begin: "", end: "" }) {
312
+ y(this, "editorType", "month-range");
313
+ y(this, "begin");
314
+ y(this, "end");
315
+ y(this, "valueType", "datetime");
316
+ this.begin = e.begin, this.end = e.end;
316
317
  }
317
318
  clear() {
318
319
  this.begin = "", this.end = "";
@@ -320,20 +321,20 @@ class qt {
320
321
  getValue() {
321
322
  return !this.begin || !this.end ? "" : `${this.begin}~${this.end}`;
322
323
  }
323
- setValue(t) {
324
- t.dataRange ? (this.begin = t.dataRange.split(t.delimiter)[0], this.end = t.dataRange.split(t.delimiter)[1]) : this.clear();
324
+ setValue(e) {
325
+ e.dataRange ? (this.begin = e.dataRange.split(e.delimiter)[0], this.end = e.dataRange.split(e.delimiter)[1]) : this.clear();
325
326
  }
326
327
  isEmpty() {
327
328
  return !this.begin || !this.end;
328
329
  }
329
330
  }
330
- class Dt {
331
- constructor(t = { begin: null, end: null }) {
332
- w(this, "editorType", "number-range");
333
- w(this, "begin");
334
- w(this, "end");
335
- w(this, "valueType", "number");
336
- this.begin = t.begin == null ? null : parseFloat(t.begin), this.end = t.end == null ? null : parseFloat(t.end);
331
+ class zt {
332
+ constructor(e = { begin: null, end: null }) {
333
+ y(this, "editorType", "number-range");
334
+ y(this, "begin");
335
+ y(this, "end");
336
+ y(this, "valueType", "number");
337
+ this.begin = e.begin == null ? null : parseFloat(e.begin), this.end = e.end == null ? null : parseFloat(e.end);
337
338
  }
338
339
  clear() {
339
340
  this.begin = null, this.end = null;
@@ -344,19 +345,19 @@ class Dt {
344
345
  end: this.end
345
346
  };
346
347
  }
347
- setValue(t) {
348
- this.begin = t.begin == null ? null : parseFloat(t.begin), this.end = t.end == null ? null : parseFloat(t.end);
348
+ setValue(e) {
349
+ this.begin = e.begin == null ? null : parseFloat(e.begin), this.end = e.end == null ? null : parseFloat(e.end);
349
350
  }
350
351
  isEmpty() {
351
352
  return this.begin == null && this.end == null;
352
353
  }
353
354
  }
354
- class Wt {
355
- constructor(t = { value: "" }) {
356
- w(this, "editorType", "number-spinner");
357
- w(this, "value");
358
- w(this, "valueType", "number");
359
- this.value = t.value == null ? null : parseFloat(t.value);
355
+ class Qt {
356
+ constructor(e = { value: "" }) {
357
+ y(this, "editorType", "number-spinner");
358
+ y(this, "value");
359
+ y(this, "valueType", "number");
360
+ this.value = e.value == null ? null : parseFloat(e.value);
360
361
  }
361
362
  clear() {
362
363
  this.value = void 0;
@@ -364,19 +365,19 @@ class Wt {
364
365
  getValue() {
365
366
  return this.value;
366
367
  }
367
- setValue(t) {
368
- this.value = isNaN(parseFloat(t)) ? null : t;
368
+ setValue(e) {
369
+ this.value = isNaN(parseFloat(e)) ? null : e;
369
370
  }
370
371
  isEmpty() {
371
372
  return this.value == null;
372
373
  }
373
374
  }
374
- class zt {
375
- constructor(t = { value: null }) {
376
- w(this, "editorType", "radio-group");
377
- w(this, "value");
378
- w(this, "valueType", "enum");
379
- this.value = t.value;
375
+ class Zt {
376
+ constructor(e = { value: null }) {
377
+ y(this, "editorType", "radio-group");
378
+ y(this, "value");
379
+ y(this, "valueType", "enum");
380
+ this.value = e.value;
380
381
  }
381
382
  clear() {
382
383
  this.value = void 0;
@@ -384,19 +385,19 @@ class zt {
384
385
  getValue() {
385
386
  return this.value;
386
387
  }
387
- setValue(t) {
388
- this.value = t;
388
+ setValue(e) {
389
+ this.value = e;
389
390
  }
390
391
  isEmpty() {
391
392
  return !this.value;
392
393
  }
393
394
  }
394
- class le {
395
- constructor(t = { value: "" }) {
396
- w(this, "editorType", "text");
397
- w(this, "value");
398
- w(this, "valueType", "text");
399
- this.value = t.value;
395
+ class de {
396
+ constructor(e = { value: "" }) {
397
+ y(this, "editorType", "text");
398
+ y(this, "value");
399
+ y(this, "valueType", "text");
400
+ this.value = e.value;
400
401
  }
401
402
  clear() {
402
403
  this.value = void 0;
@@ -404,271 +405,432 @@ class le {
404
405
  getValue() {
405
406
  return this.value;
406
407
  }
407
- setValue(t) {
408
- this.value = t;
408
+ setValue(e) {
409
+ this.value = e;
409
410
  }
410
411
  isEmpty() {
411
412
  return !this.value;
412
413
  }
413
414
  }
414
- function se() {
415
- function e(t, n) {
416
- switch (t) {
415
+ function pe() {
416
+ function t(e, n) {
417
+ switch (e) {
417
418
  case "check-box":
418
- return new Ot(n);
419
+ return new Rt(n);
419
420
  case "combo-list":
420
- return new Nt(n);
421
+ return new qt(n);
421
422
  case "combo-lookup":
422
- return new jt(n);
423
+ return new At(n);
423
424
  case "input-group":
424
- return new $t(n);
425
+ return new Dt(n);
425
426
  case "date-picker":
426
- return new Lt(n);
427
+ return new $t(n);
427
428
  case "date-range":
428
- return new oe(n);
429
+ return new ie(n);
429
430
  case "datetime-picker":
430
- return new At(n);
431
+ return new Gt(n);
431
432
  case "datetime-range":
432
- return new oe(n);
433
+ return new ie(n);
433
434
  case "lookup":
434
- return new Gt(n);
435
+ return new Ut(n);
435
436
  case "month-picker":
436
- return new Rt(n);
437
+ return new Wt(n);
437
438
  case "month-range":
438
- return new qt(n);
439
+ return new Ht(n);
439
440
  case "number-range":
440
- return new Dt(n);
441
+ return new zt(n);
441
442
  case "number-spinner":
442
- return new Wt(n);
443
+ return new Qt(n);
443
444
  case "radio-group":
444
- return new zt(n);
445
+ return new Zt(n);
445
446
  default:
446
- return new le(n);
447
+ return new de(n);
447
448
  }
448
449
  }
449
- return { createConditionValue: e };
450
+ return { createConditionValue: t };
450
451
  }
451
- function ue(e, t) {
452
- const n = I(e.fields), o = I([]), r = /* @__PURE__ */ new Map(), { createConditionValue: p } = se();
453
- function d(l) {
454
- switch (l.editor ? l.editor.type : "input-group") {
452
+ function me(t, e) {
453
+ const n = I(t.fields), o = I([]), r = /* @__PURE__ */ new Map(), { createConditionValue: c } = pe();
454
+ function l(s) {
455
+ switch (s.editor ? s.editor.type : "input-group") {
455
456
  case "date-range":
456
- l.editor.type = "date-picker";
457
+ s.editor.type = "date-picker";
457
458
  break;
458
459
  case "datetime-range":
459
- l.editor.type = "datetime-picker";
460
+ s.editor.type = "datetime-picker";
460
461
  break;
461
462
  case "number-range":
462
- l.editor.type = "number-spinner";
463
+ s.editor.type = "number-spinner";
463
464
  break;
464
465
  }
465
- return l.editor;
466
+ return s.editor;
466
467
  }
467
- function b(l) {
468
- return l.map((c) => Object.assign({}, c)).map((c) => (c.editor = d(c), c));
468
+ function m(s) {
469
+ return s.map((p) => Object.assign({}, p)).map((p) => (p.editor = l(p), p));
469
470
  }
470
- function k(l = !0) {
471
- n.value.reduce((u, c) => (l || (c.editor = d(c)), u.set(c.labelCode, c), u), r);
471
+ function w(s = !0) {
472
+ n.value.reduce((d, p) => (s || (p.editor = l(p)), d.set(p.labelCode, p), d), r);
472
473
  }
473
- function s(l) {
474
- return l.forEach((u) => {
475
- if (u && typeof u.valueConfig == "object") {
476
- const c = r.get(u.fieldCode);
477
- u.value = p(c.editor.type, u.valueConfig.content);
474
+ function u(s) {
475
+ return s.forEach((d) => {
476
+ if (d && typeof d.valueConfig == "object") {
477
+ const p = r.get(d.fieldCode);
478
+ d.value = c(p.editor.type, d.valueConfig.content);
478
479
  }
479
- }), l;
480
+ }), s;
480
481
  }
481
- return { convertToSingleControl: b, fields: n, fieldMap: r, fieldConditions: o, loadFieldConfigs: k, initialConditionValue: s };
482
+ return { convertToSingleControl: m, fields: n, fieldMap: r, fieldConditions: o, loadFieldConfigs: w, initialConditionValue: u };
482
483
  }
483
- function Ut(e, t, n) {
484
- const o = I(null), r = I(n), p = I(0), d = P(() => s(p.value));
485
- function b() {
486
- r.value && (o.value = new ResizeObserver(k((l) => {
487
- const u = l[0];
488
- p.value = u.contentRect.width;
484
+ function Jt(t, e, n) {
485
+ const o = I(null), r = I(n), c = I(0), l = O(() => u(c.value));
486
+ function m() {
487
+ r.value && (o.value = new ResizeObserver(w((s) => {
488
+ const d = s[0];
489
+ c.value = d.contentRect.width;
489
490
  })), o.value.observe(r.value));
490
491
  }
491
- function k(l, u) {
492
- let c = null;
492
+ function w(s, d) {
493
+ let p = null;
493
494
  return function() {
494
495
  const V = arguments;
495
- c || (c = setTimeout(() => {
496
- c = null;
497
- }, 500), l(...V));
496
+ p || (p = setTimeout(() => {
497
+ p = null;
498
+ }, 500), s(...V));
498
499
  };
499
500
  }
500
- function s(l) {
501
- let c = "col-12";
502
- return l > 250 * 6 ? c = "col-2" : l > 250 * 4 ? c = "col-3" : l > 250 * 3 ? c = "col-4" : l > 250 * 2 && (c = "col-6"), c;
501
+ function u(s) {
502
+ let p = "col-12";
503
+ return s > 250 * 6 ? p = "col-2" : s > 250 * 4 ? p = "col-3" : s > 250 * 3 ? p = "col-4" : s > 250 * 2 && (p = "col-6"), p;
503
504
  }
504
- return W([n], ([l]) => {
505
- r.value = l, b();
505
+ return W([n], ([s]) => {
506
+ r.value = s, m();
506
507
  }), {
507
- conditionClass: d,
508
+ conditionClass: l,
508
509
  resizeObserver: o
509
510
  };
510
511
  }
511
- const re = /* @__PURE__ */ Z({
512
+ const se = /* @__PURE__ */ X({
512
513
  name: "FConditionFields",
513
- props: ae,
514
+ props: ce,
514
515
  emits: ["valueChange", "blur", "focus", "click", "input"],
515
- setup(e, t) {
516
- const n = I(), o = I(e.key), r = I(e.isControlInline), p = I(e.conditions), d = ue(e), {
517
- initialConditionValue: b,
518
- fieldMap: k,
519
- loadFieldConfigs: s
520
- } = d, l = Ut(e, t, n), {
521
- conditionClass: u,
522
- resizeObserver: c
523
- } = l;
524
- s(!0), b(p.value), be(() => {
525
- var T;
526
- (T = c.value) == null || T.unobserve(n.value);
527
- }), W(() => e.conditions, () => {
528
- p.value = e.conditions;
516
+ setup(t, e) {
517
+ const n = I(), o = I(t.key), r = I(t.isControlInline), c = I(t.conditions), l = me(t), {
518
+ initialConditionValue: m,
519
+ fieldMap: w,
520
+ loadFieldConfigs: u
521
+ } = l, s = Jt(t, e, n), {
522
+ conditionClass: d,
523
+ resizeObserver: p
524
+ } = s;
525
+ u(!0), m(c.value), we(() => {
526
+ var x;
527
+ (x = p.value) == null || x.unobserve(n.value);
528
+ }), W(() => t.conditions, () => {
529
+ c.value = t.conditions;
529
530
  });
530
- const V = P(() => ({
531
+ const V = O(() => ({
531
532
  // row: true,
532
533
  "f-utils-flex-row-wrap": !0,
533
534
  "farris-form": !0,
534
535
  "farris-form-controls-inline": r.value
535
- })), E = P(() => u.value);
536
- function O(T, x) {
537
- t.emit("valueChange", T, x);
536
+ })), M = O(() => d.value);
537
+ function P(x, F) {
538
+ e.emit("valueChange", x, F);
538
539
  }
539
- function q() {
540
- return p.value.map((T) => {
541
- var x;
542
- return F(ke, {
543
- customClass: E.value,
544
- label: T.fieldName,
545
- editor: (x = k.get(T.fieldCode)) == null ? void 0 : x.editor,
546
- modelValue: T.value.value,
547
- "onUpdate:modelValue": (M) => T.value.value = M,
548
- onChange: (M) => {
549
- O(M, T);
540
+ function D() {
541
+ return c.value.map((x) => {
542
+ var F;
543
+ return k(Ve, {
544
+ customClass: M.value,
545
+ label: x.fieldName,
546
+ editor: (F = w.get(x.fieldCode)) == null ? void 0 : F.editor,
547
+ modelValue: x.value.value,
548
+ "onUpdate:modelValue": (N) => x.value.value = N,
549
+ onChange: (N) => {
550
+ P(N, x);
550
551
  }
551
552
  }, null);
552
553
  });
553
554
  }
554
- return () => F("div", {
555
+ return () => k("div", {
555
556
  class: V.value,
556
557
  key: o.value,
557
558
  ref: n
558
- }, [q()]);
559
+ }, [D()]);
559
560
  }
560
- }), Ht = {}, Qt = {};
561
- function ce(e) {
562
- const { properties: t, title: n } = e, o = Object.keys(t).reduce((r, p) => (r[p] = t[p].type === "object" && t[p].properties ? ce(t[p]) : Q(t[p].default), r), {});
563
- return o.id = `${n}-${Date.now()}`, o;
561
+ }), Xt = {}, Yt = {};
562
+ function fe(t) {
563
+ const { properties: e, title: n, ignore: o } = t, r = o && Array.isArray(o), c = Object.keys(e).reduce((l, m) => ((!r || !o.find((w) => w == m)) && (l[m] = e[m].type === "object" && e[m].properties ? fe(e[m]) : J(e[m].default)), l), {});
564
+ return (!r || !o.find((l) => l == "id")) && (c.id = `${n}-${Date.now()}`), c;
564
565
  }
565
- function Zt(e, t) {
566
- const n = ce(t);
567
- return Object.keys(e).reduce((o, r) => (o[r] = e[r], o), n), n;
566
+ function _t(t, e) {
567
+ const n = fe(e);
568
+ return Object.keys(t).reduce((o, r) => (o[r] && typeof o[r] == "object" ? Object.assign(o[r], t[r]) : o[r] = t[r], o), n), n;
568
569
  }
569
- function _t(e, t) {
570
- return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
571
- if (t.has(r)) {
572
- const p = t.get(r);
573
- if (typeof p == "string")
574
- o[p] = e[r];
570
+ function Kt(t, e) {
571
+ return Object.keys(t).filter((o) => t[o] != null).reduce((o, r) => {
572
+ if (e.has(r)) {
573
+ const c = e.get(r);
574
+ if (typeof c == "string")
575
+ o[c] = t[r];
575
576
  else {
576
- const d = p(r, e[r], e);
577
- Object.assign(o, d);
577
+ const l = c(r, t[r], t);
578
+ Object.assign(o, l);
578
579
  }
579
580
  } else
580
- o[r] = e[r];
581
+ o[r] = t[r];
581
582
  return o;
582
583
  }, {});
583
584
  }
584
- function Jt(e, t, n = /* @__PURE__ */ new Map()) {
585
- const o = Zt(e, t);
586
- return _t(o, n);
585
+ function en(t, e, n = /* @__PURE__ */ new Map()) {
586
+ const o = _t(t, e);
587
+ return Kt(o, n);
587
588
  }
588
- function Xt(e = {}) {
589
- function t(s, l, u, c) {
590
- if (typeof u == "number")
591
- return c[s].length === u;
592
- if (typeof u == "object") {
593
- const V = Object.keys(u)[0], E = u[V];
589
+ function tn(t = {}) {
590
+ function e(u, s, d, p) {
591
+ if (typeof d == "number")
592
+ return p[u].length === d;
593
+ if (typeof d == "object") {
594
+ const V = Object.keys(d)[0], M = d[V];
594
595
  if (V === "not")
595
- return Number(c[s].length) !== Number(E);
596
+ return Number(p[u].length) !== Number(M);
596
597
  if (V === "moreThan")
597
- return Number(c[s].length) >= Number(E);
598
+ return Number(p[u].length) >= Number(M);
598
599
  if (V === "lessThan")
599
- return Number(c[s].length) <= Number(E);
600
+ return Number(p[u].length) <= Number(M);
600
601
  }
601
602
  return !1;
602
603
  }
603
- function n(s, l, u, c) {
604
- return c[s] && c[s].propertyValue && String(c[s].propertyValue.value) === String(u);
604
+ function n(u, s, d, p) {
605
+ return p[u] && p[u].propertyValue && String(p[u].propertyValue.value) === String(d);
605
606
  }
606
607
  const o = /* @__PURE__ */ new Map([
607
- ["length", t],
608
+ ["length", e],
608
609
  ["getProperty", n]
609
610
  ]);
610
- Object.keys(e).reduce((s, l) => (s.set(l, e[l]), s), o);
611
- function r(s, l) {
612
- const u = s;
613
- return typeof l == "number" ? [{ target: u, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: u, operator: "getProperty", param: s, value: !!l }] : typeof l == "object" ? Object.keys(l).map((c) => {
614
- if (c === "length")
615
- return { target: u, operator: "length", param: null, value: l[c] };
616
- const V = c, E = l[c];
617
- return { target: u, operator: "getProperty", param: V, value: E };
611
+ Object.keys(t).reduce((u, s) => (u.set(s, t[s]), u), o);
612
+ function r(u, s) {
613
+ const d = u;
614
+ return typeof s == "number" ? [{ target: d, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: d, operator: "getProperty", param: u, value: !!s }] : typeof s == "object" ? Object.keys(s).map((p) => {
615
+ if (p === "length")
616
+ return { target: d, operator: "length", param: null, value: s[p] };
617
+ const V = p, M = s[p];
618
+ return { target: d, operator: "getProperty", param: V, value: M };
618
619
  }) : [];
619
620
  }
620
- function p(s) {
621
- return Object.keys(s).reduce((u, c) => {
622
- const V = r(c, s[c]);
623
- return u.push(...V), u;
621
+ function c(u) {
622
+ return Object.keys(u).reduce((d, p) => {
623
+ const V = r(p, u[p]);
624
+ return d.push(...V), d;
624
625
  }, []);
625
626
  }
626
- function d(s, l) {
627
- if (o.has(s.operator)) {
628
- const u = o.get(s.operator);
629
- return u && u(s.target, s.param, s.value, l) || !1;
627
+ function l(u, s) {
628
+ if (o.has(u.operator)) {
629
+ const d = o.get(u.operator);
630
+ return d && d(u.target, u.param, u.value, s) || !1;
630
631
  }
631
632
  return !1;
632
633
  }
633
- function b(s, l) {
634
- return p(s).reduce((V, E) => V && d(E, l), !0);
634
+ function m(u, s) {
635
+ return c(u).reduce((V, M) => V && l(M, s), !0);
635
636
  }
636
- function k(s, l) {
637
- const u = Object.keys(s), c = u.includes("allOf"), V = u.includes("anyOf"), E = c || V, T = (E ? s[E ? c ? "allOf" : "anyOf" : "allOf"] : [s]).map((M) => b(M, l));
638
- return c ? !T.includes(!1) : T.includes(!0);
637
+ function w(u, s) {
638
+ const d = Object.keys(u), p = d.includes("allOf"), V = d.includes("anyOf"), M = p || V, x = (M ? u[M ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((N) => m(N, s));
639
+ return p ? !x.includes(!1) : x.includes(!0);
639
640
  }
640
- return { parseValueSchema: k };
641
+ return { parseValueSchema: w };
641
642
  }
642
- const Yt = {}, Kt = {};
643
- Xt();
644
- function X(e, t, n = /* @__PURE__ */ new Map(), o = (d, b, k) => b, r = {}, p = (d) => d) {
645
- return Ht[t.title] = t, Qt[t.title] = o, Yt[t.title] = r, Kt[t.title] = p, (d = {}) => {
646
- const b = Jt(d, t, n), k = Object.keys(e).reduce((s, l) => (s[l] = e[l].default, s), {});
647
- return Object.assign(k, b);
643
+ const E = {
644
+ button: { type: "button", name: "按钮", icon: "Button" },
645
+ "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
646
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
647
+ "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
648
+ "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
649
+ textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
650
+ lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
651
+ "number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
652
+ "date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
653
+ switch: { type: "switch", name: "开关", icon: "SwitchField" },
654
+ "radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
655
+ "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
656
+ "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
657
+ "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
658
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
659
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
660
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
661
+ "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
662
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
663
+ "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
664
+ "data-grid-column": { type: "data-grid-column", name: "表格列" },
665
+ module: { type: "Module", name: "模块", icon: "Module" },
666
+ component: { type: "component", name: "组件", icon: "Component" },
667
+ tabs: { type: "tabs", name: "标签页", icon: "Tab" },
668
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
669
+ "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
670
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
671
+ section: { type: "section", name: "分组面板", icon: "Section" },
672
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
673
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
674
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
675
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
676
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
677
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
678
+ "page-header": { type: "page-header", name: "页头", icon: "Header" },
679
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
680
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
681
+ }, nn = {}, on = {};
682
+ tn();
683
+ function K(t, e, n = /* @__PURE__ */ new Map(), o = (l, m, w) => m, r = {}, c = (l) => l) {
684
+ return Xt[e.title] = e, Yt[e.title] = o, nn[e.title] = r, on[e.title] = c, (l = {}) => {
685
+ const m = en(l, e, n), w = Object.keys(t).reduce((u, s) => (u[s] = t[s].default, u), {});
686
+ return Object.assign(w, m);
648
687
  };
649
688
  }
650
- function de(e, t) {
651
- return { customClass: t.class, customStyle: t.style };
689
+ function ge(t, e) {
690
+ return { customClass: e.class, customStyle: e.style };
652
691
  }
653
- const ee = /* @__PURE__ */ new Map([
654
- ["appearance", de]
692
+ const oe = /* @__PURE__ */ new Map([
693
+ ["appearance", ge]
655
694
  ]);
656
- function en(e, t, n, o) {
657
- const r = e.getSchemaByType("section");
658
- return r.id = `${o}-section`, r.appearance = { class: "f-section-form f-section-in-main" }, r.mainTitle = "标题", r.contents = [t], r;
659
- }
660
- function tn(e, t, n, o) {
661
- const r = e.getSchemaByType("component");
662
- return r.id = `${o}-component`, r.componentType = "form-col-1", r.appearance = {
663
- class: "f-struct-form f-struct-wrapper"
664
- }, r.contents = [t], r;
695
+ var ne = /* @__PURE__ */ ((t) => (t.String = "String", t.DateTime = "DateTime", t.Date = "Date", t.Enum = "Enum", t.Boolean = "Boolean", t.Number = "Number", t.Text = "Text", t.BigNumber = "BigNumber", t))(ne || {});
696
+ const rn = "root-viewmodel";
697
+ class an {
698
+ constructor(e, n) {
699
+ y(this, "formSchemaUtils");
700
+ y(this, "controlCreatorUtils");
701
+ y(this, "designViewModelUtils");
702
+ this.resolver = e, this.designerHostService = n, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.controlCreatorUtils = this.designerHostService.controlCreatorUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils;
703
+ }
704
+ createComponent(e) {
705
+ const n = this.createComponentRefNode(e), o = this.createComponentNode(e), r = this.createViewModeNode(e), c = this.formSchemaUtils.getFormSchema();
706
+ return c.module.viewmodels.push(r), c.module.components.push(o), this.designViewModelUtils.assembleDesignViewModel(), n;
707
+ }
708
+ createComponentRefNode(e) {
709
+ const n = this.resolver.getSchemaByType("component-ref");
710
+ return Object.assign(n, {
711
+ id: `${e.componentId}-component-ref`,
712
+ component: `${e.componentId}-component`
713
+ }), n;
714
+ }
715
+ createComponentNode(e) {
716
+ const n = this.resolver.getSchemaByType("component"), o = this.createFormComponentContents(e);
717
+ return Object.assign(n, {
718
+ id: `${e.componentId}-component`,
719
+ viewModel: `${e.componentId}-component-viewmodel`,
720
+ componentType: e.componentType,
721
+ appearance: {
722
+ class: this.getFormComponentClass()
723
+ },
724
+ formColumns: e.formColumns,
725
+ contents: o
726
+ }), n;
727
+ }
728
+ /**
729
+ * 获取卡片组件层级的class样式
730
+ */
731
+ getFormComponentClass() {
732
+ return this.formSchemaUtils.getFormSchema().module.templateId === "double-list-in-tab-template" ? "f-struct-wrapper f-utils-fill-flex-column" : "f-struct-wrapper";
733
+ }
734
+ createFormComponentContents(e) {
735
+ const n = this.resolver.getSchemaByType("section");
736
+ Object.assign(n, {
737
+ id: e.componentId + "-form-section",
738
+ appearance: {
739
+ class: "f-section-form f-section-in-mainsubcard"
740
+ },
741
+ mainTitle: e.componentName
742
+ });
743
+ const o = this.resolver.getSchemaByType("response-form"), r = [];
744
+ Object.assign(o, {
745
+ id: e.componentId + "-form",
746
+ appearance: {
747
+ class: "f-form-layout farris-form farris-form-controls-inline"
748
+ },
749
+ contents: r
750
+ }), n.contents = [o];
751
+ const { selectedFields: c } = e;
752
+ return c == null || c.forEach((m) => {
753
+ const w = J(m), u = this.resolveControlClassByFormColumns(e), s = this.controlCreatorUtils.setFormFieldProperty(w, "", u);
754
+ s && r.push(s);
755
+ }), this.formSchemaUtils.getFormSchema().module.templateId === "double-list-in-tab-template" && (n.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", n.fill = !0), [n];
756
+ }
757
+ resolveControlClassByFormColumns(e) {
758
+ let n = "";
759
+ switch (e.formColumns) {
760
+ case 1: {
761
+ n = "col-12 col-md-12 col-xl-12 col-el-12";
762
+ break;
763
+ }
764
+ case 2: {
765
+ n = "col-12 col-md-6 col-xl-6 col-el-6";
766
+ break;
767
+ }
768
+ case 3: {
769
+ n = "col-12 col-md-6 col-xl-4 col-el-4";
770
+ break;
771
+ }
772
+ case 4: {
773
+ n = "col-12 col-md-6 col-xl-3 col-el-2";
774
+ break;
775
+ }
776
+ }
777
+ return n;
778
+ }
779
+ /**
780
+ * 添加viewModel节点
781
+ */
782
+ createViewModeNode(e) {
783
+ return {
784
+ id: `${e.componentId}-component-viewmodel`,
785
+ code: `${e.componentId}-component-viewmodel`,
786
+ name: e.componentName,
787
+ bindTo: e.bindTo,
788
+ parent: rn,
789
+ fields: this.assembleViewModelFields(e),
790
+ commands: [],
791
+ states: [],
792
+ enableValidation: !0,
793
+ pagination: {
794
+ enable: !1
795
+ }
796
+ };
797
+ }
798
+ /**
799
+ * 组装viewModel fields 节点
800
+ */
801
+ assembleViewModelFields(e) {
802
+ const n = [], { selectedFields: o } = e;
803
+ return o == null || o.forEach((r) => {
804
+ let c = "blur";
805
+ const l = r.type.name;
806
+ (l === ne.Enum || l === ne.Boolean) && (c = "change"), n.push({
807
+ type: "Form",
808
+ id: r.id,
809
+ fieldName: r.bindingField,
810
+ groupId: null,
811
+ groupName: null,
812
+ updateOn: c,
813
+ fieldSchema: {}
814
+ });
815
+ }), n;
816
+ }
665
817
  }
666
- function nn(e, t, n) {
667
- t.appearance = { class: "f-form-layout farris-form farris-form-controls-inline" };
668
- const o = en(e, t, n, t.id);
669
- return tn(e, o, n, t.id);
818
+ function sn(t, e, n, o) {
819
+ const r = n.parentComponentInstance;
820
+ if (r) {
821
+ const l = {
822
+ componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
823
+ componentName: "标题",
824
+ componentType: "form",
825
+ formColumns: 4,
826
+ parentContainerId: r.schema.id,
827
+ bindTo: "/"
828
+ };
829
+ return new an(t, o).createComponent(l);
830
+ } else
831
+ return e;
670
832
  }
671
- const on = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-design.gitee.io/response-form.schema.json", an = "response-form", ln = "A Farris Data Collection Component", sn = "object", un = {
833
+ const ln = "https://json-schema.org/draft/2020-12/schema", un = "https://farris-design.gitee.io/response-form.schema.json", cn = "response-form", dn = "A Farris Data Collection Component", pn = "object", mn = {
672
834
  id: {
673
835
  description: "The unique identifier for a form group",
674
836
  type: "string"
@@ -696,18 +858,18 @@ const on = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-
696
858
  type: "array",
697
859
  default: []
698
860
  }
699
- }, cn = [
861
+ }, fn = [
700
862
  "id",
701
863
  "type"
702
- ], dn = {
703
- $schema: on,
704
- $id: rn,
705
- title: an,
706
- description: ln,
707
- type: sn,
708
- properties: un,
709
- required: cn
710
- }, pn = "response-form", fn = "A Farris Component", mn = "object", gn = {
864
+ ], gn = {
865
+ $schema: ln,
866
+ $id: un,
867
+ title: cn,
868
+ description: dn,
869
+ type: pn,
870
+ properties: mn,
871
+ required: fn
872
+ }, hn = "response-form", vn = "A Farris Component", yn = "object", bn = {
711
873
  basic: {
712
874
  description: "Basic Infomation",
713
875
  title: "基本信息",
@@ -729,16 +891,16 @@ const on = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-
729
891
  }
730
892
  }
731
893
  }
732
- }, hn = {
733
- title: pn,
734
- description: fn,
735
- type: mn,
736
- categories: gn
737
- }, vn = {
894
+ }, Cn = {
895
+ title: hn,
896
+ description: vn,
897
+ type: yn,
898
+ categories: bn
899
+ }, Tn = {
738
900
  customClass: { type: String, default: "" }
739
901
  };
740
- X(vn, dn, ee, nn, hn);
741
- const yn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-design.gitee.io/form-group.schema.json", Cn = "form-group", Fn = "A Farris Input Component", wn = "object", Tn = {
902
+ K(Tn, gn, oe, sn, Cn);
903
+ const kn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-design.gitee.io/form-group.schema.json", xn = "form-group", Fn = "A Farris Input Component", Bn = "object", In = {
742
904
  id: {
743
905
  description: "The unique identifier for a form group",
744
906
  type: "string"
@@ -779,18 +941,18 @@ const yn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
779
941
  description: "",
780
942
  type: "number"
781
943
  }
782
- }, xn = [
944
+ }, Sn = [
783
945
  "id",
784
946
  "type"
785
- ], pe = {
786
- $schema: yn,
787
- $id: bn,
788
- title: Cn,
947
+ ], he = {
948
+ $schema: kn,
949
+ $id: wn,
950
+ title: xn,
789
951
  description: Fn,
790
- type: wn,
791
- properties: Tn,
792
- required: xn
793
- }, fe = {
952
+ type: Bn,
953
+ properties: In,
954
+ required: Sn
955
+ }, ve = {
794
956
  id: { type: String, default: "" },
795
957
  customClass: { type: String, default: "" },
796
958
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
@@ -804,43 +966,43 @@ const yn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
804
966
  showLabel: { type: Boolean, default: !0 },
805
967
  type: { type: String, default: "input-group" }
806
968
  };
807
- X(
808
- fe,
809
- pe,
810
- ee,
969
+ K(
970
+ ve,
971
+ he,
972
+ oe,
811
973
  void 0
812
974
  );
813
- const kn = {
975
+ const Vn = {
814
976
  id: { type: String },
815
977
  required: { type: Boolean, default: !1 },
816
978
  text: { type: String, default: "" },
817
979
  title: { type: String }
818
- }, Bn = /* @__PURE__ */ Z({
980
+ }, En = /* @__PURE__ */ X({
819
981
  name: "FDynamicFormLabel",
820
- props: kn,
982
+ props: Vn,
821
983
  emits: [],
822
- setup(e, t) {
823
- const n = I(e.title || e.text), o = I(e.required), r = I(e.text);
824
- return W(() => e.text, () => {
825
- r.value = e.text;
826
- }), W(() => e.required, (p, d) => {
827
- p !== d && (o.value = p);
828
- }), () => F("label", {
984
+ setup(t, e) {
985
+ const n = I(t.title || t.text), o = I(t.required), r = I(t.text);
986
+ return W(() => t.text, () => {
987
+ r.value = t.text;
988
+ }), W(() => t.required, (c, l) => {
989
+ c !== l && (o.value = c);
990
+ }), () => k("label", {
829
991
  class: "col-form-label",
830
992
  title: n.value
831
- }, [o.value && F("span", {
993
+ }, [o.value && k("span", {
832
994
  class: "farris-label-info text-danger"
833
- }, [_("*")]), F("span", {
995
+ }, [Y("*")]), k("span", {
834
996
  class: "farris-label-text"
835
997
  }, [r.value])]);
836
998
  }
837
- }), In = /* @__PURE__ */ new Map([
838
- ["appearance", de]
999
+ }), Mn = /* @__PURE__ */ new Map([
1000
+ ["appearance", ge]
839
1001
  ]);
840
- function Sn(e, t, n) {
841
- return t;
1002
+ function Nn(t, e, n) {
1003
+ return e;
842
1004
  }
843
- const Vn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-design.gitee.io/input-group.schema.json", Mn = "input-group", Pn = "A Farris Input Component", On = "object", jn = {
1005
+ const On = "https://json-schema.org/draft/2020-12/schema", Pn = "https://farris-design.gitee.io/input-group.schema.json", jn = "input-group", Ln = "A Farris Input Component", Rn = "object", An = {
844
1006
  id: {
845
1007
  description: "The unique identifier for a Input Group",
846
1008
  type: "string"
@@ -1042,18 +1204,18 @@ const Vn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-
1042
1204
  type: "string",
1043
1205
  default: ""
1044
1206
  }
1045
- }, Ln = [
1207
+ }, $n = [
1046
1208
  "id",
1047
1209
  "type"
1048
- ], An = {
1049
- $schema: Vn,
1050
- $id: En,
1051
- title: Mn,
1052
- description: Pn,
1053
- type: On,
1054
- properties: jn,
1055
- required: Ln
1056
- }, me = {
1210
+ ], Gn = {
1211
+ $schema: On,
1212
+ $id: Pn,
1213
+ title: jn,
1214
+ description: Ln,
1215
+ type: Rn,
1216
+ properties: An,
1217
+ required: $n
1218
+ }, ye = {
1057
1219
  /** 是否自动完成 */
1058
1220
  autocomplete: { Type: String, default: "off" },
1059
1221
  /** 自定义CLASS */
@@ -1120,418 +1282,418 @@ const Vn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-
1120
1282
  */
1121
1283
  updateOn: { type: String, default: "blur" }
1122
1284
  };
1123
- X(me, An, In, Sn);
1124
- function Nn(e, t, n, o) {
1125
- const r = I(e.disabled), p = I(!1), d = I("text"), b = I(e.showBorder), k = I(e.textAlign), s = I(e.updateOn), l = P(() => e.editable || !e.readonly), u = P(() => e.editable && !e.disabled && !e.readonly), c = P(() => !e.disabled && p.value), V = P(() => n.value === "" || n.value === null || n.value === void 0), E = P(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), O = P(() => e.readonly || !e.editable), q = P(() => e.enableTitle ? n.value : ""), T = P(() => ({
1285
+ K(ye, Gn, Mn, Nn);
1286
+ function qn(t, e, n, o) {
1287
+ const r = I(t.disabled), c = I(!1), l = I("text"), m = I(t.showBorder), w = I(t.textAlign), u = I(t.updateOn), s = O(() => t.editable || !t.readonly), d = O(() => t.editable && !t.disabled && !t.readonly), p = O(() => !t.disabled && c.value), V = O(() => n.value === "" || n.value === null || n.value === void 0), M = O(() => (t.disabled || t.readonly) && !t.forcePlaceholder ? "" : t.placeholder), P = O(() => t.readonly || !t.editable), D = O(() => t.enableTitle ? n.value : ""), x = O(() => ({
1126
1288
  "form-control": !0,
1127
1289
  "f-utils-fill": !0,
1128
- "text-left": k.value === "left",
1129
- "text-center": k.value === "center",
1130
- "text-right": k.value === "right"
1131
- })), x = P(() => {
1132
- const a = {
1290
+ "text-left": w.value === "left",
1291
+ "text-center": w.value === "center",
1292
+ "text-right": w.value === "right"
1293
+ })), F = O(() => {
1294
+ const i = {
1133
1295
  "f-cmp-inputgroup": !0,
1134
1296
  "input-group": !0,
1135
1297
  "f-state-disable": r.value,
1136
- "f-state-editable": u.value,
1137
- "f-state-readonly": O.value,
1138
- "f-state-focus": c.value
1298
+ "f-state-editable": d.value,
1299
+ "f-state-readonly": P.value,
1300
+ "f-state-focus": p.value
1139
1301
  };
1140
- return (e.customClass || "").split(" ").reduce((S, D) => (S[D] = !0, S), a), a;
1141
- }), M = P(() => b.value ? "" : "border-width : 0 ");
1142
- function j(a, C = !0) {
1143
- n.value = a, o.value !== a && (o.value = a), C && t.emit("change", a), t.emit("update:modelValue", a), t.emit("update:value", a);
1302
+ return (t.customClass || "").split(" ").reduce((S, U) => (S[U] = !0, S), i), i;
1303
+ }), N = O(() => m.value ? "" : "border-width : 0 ");
1304
+ function j(i, T = !0) {
1305
+ n.value = i, o.value !== i && (o.value = i), T && e.emit("change", i), e.emit("update:modelValue", i), e.emit("update:value", i);
1144
1306
  }
1145
1307
  W(
1146
- () => e.modelValue,
1147
- (a, C) => {
1148
- a !== C && (n.value = a, o.value = a);
1308
+ () => t.modelValue,
1309
+ (i, T) => {
1310
+ i !== T && (n.value = i, o.value = i);
1149
1311
  }
1150
- ), W(() => e.disabled, (a, C) => {
1151
- a !== C && (r.value = a);
1312
+ ), W(() => t.disabled, (i, T) => {
1313
+ i !== T && (r.value = i);
1152
1314
  });
1153
- function $(a) {
1154
- return p.value = !1, t.emit("blur", a), a.stopPropagation(), !1;
1315
+ function $(i) {
1316
+ return c.value = !1, e.emit("blur", i), i.stopPropagation(), !1;
1155
1317
  }
1156
- function G(a) {
1157
- t.emit("click", a);
1318
+ function G(i) {
1319
+ e.emit("click", i);
1158
1320
  }
1159
- function A(a) {
1160
- e.disabled || (b.value && (p.value = !0), l.value && t.emit("focus", a));
1321
+ function R(i) {
1322
+ t.disabled || (m.value && (c.value = !0), s.value && e.emit("focus", i));
1161
1323
  }
1162
- function z(a) {
1163
- t.emit("input", a.target.value);
1164
- const C = a.target.value;
1165
- o.value = C, s.value === "input" && (t.emit("update:modelValue", C), t.emit("update:value", C));
1324
+ function H(i) {
1325
+ e.emit("input", i.target.value);
1326
+ const T = i.target.value;
1327
+ o.value = T, u.value === "input" && (e.emit("update:modelValue", T), e.emit("update:value", T));
1166
1328
  }
1167
- function i(a) {
1168
- t.emit("keydown", a);
1329
+ function a(i) {
1330
+ e.emit("keydown", i);
1169
1331
  }
1170
- function m(a) {
1171
- t.emit("keyup", a);
1332
+ function g(i) {
1333
+ e.emit("keyup", i);
1172
1334
  }
1173
- function f(a) {
1174
- a.target.tagName !== "INPUT" && a.preventDefault(), a.stopPropagation();
1335
+ function f(i) {
1336
+ i.target.tagName !== "INPUT" && i.preventDefault(), i.stopPropagation();
1175
1337
  }
1176
- function B(a) {
1177
- if (s.value === "blur") {
1178
- const C = a.target.value;
1179
- a.stopPropagation(), j(C);
1338
+ function B(i) {
1339
+ if (u.value === "blur") {
1340
+ const T = i.target.value;
1341
+ i.stopPropagation(), j(T);
1180
1342
  }
1181
1343
  }
1182
1344
  return {
1183
1345
  changeTextBoxValue: j,
1184
1346
  disabled: r,
1185
1347
  displayText: o,
1186
- editable: u,
1187
- hasFocused: c,
1188
- inputGroupClass: x,
1189
- inputType: d,
1348
+ editable: d,
1349
+ hasFocused: p,
1350
+ inputGroupClass: F,
1351
+ inputType: l,
1190
1352
  isEmpty: V,
1191
1353
  modelValue: n,
1192
- readonly: O,
1354
+ readonly: P,
1193
1355
  onBlur: $,
1194
1356
  onClick: G,
1195
- onFocus: A,
1196
- onInput: z,
1197
- onKeydown: i,
1198
- onKeyup: m,
1357
+ onFocus: R,
1358
+ onInput: H,
1359
+ onKeydown: a,
1360
+ onKeyup: g,
1199
1361
  onMousedown: f,
1200
1362
  onTextBoxValueChange: B,
1201
- placeholder: E,
1202
- textBoxClass: T,
1203
- textBoxTitle: q,
1204
- inputGroupStyle: M
1363
+ placeholder: M,
1364
+ textBoxClass: x,
1365
+ textBoxTitle: D,
1366
+ inputGroupStyle: N
1205
1367
  };
1206
1368
  }
1207
- function $n(e, t, n) {
1208
- const o = I(!1), r = P(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: p, displayText: d, hasFocused: b, isEmpty: k } = n;
1209
- function s(O) {
1210
- o.value = O;
1369
+ function Dn(t, e, n) {
1370
+ const o = I(!1), r = O(() => t.enableClear && !t.readonly && !t.disabled), { changeTextBoxValue: c, displayText: l, hasFocused: m, isEmpty: w } = n;
1371
+ function u(P) {
1372
+ o.value = P;
1211
1373
  }
1212
- W(d, () => {
1213
- b != null && b.value ? s(!!(d != null && d.value)) : s(!1);
1374
+ W(l, () => {
1375
+ m != null && m.value ? u(!!(l != null && l.value)) : u(!1);
1214
1376
  });
1215
- const l = P(() => ({
1377
+ const s = O(() => ({
1216
1378
  "input-group-text": !0,
1217
1379
  "input-group-clear": !0
1218
- })), u = P(() => ({
1380
+ })), d = O(() => ({
1219
1381
  width: "24px",
1220
1382
  display: o.value ? "flex" : "none"
1221
1383
  }));
1222
- function c(O) {
1223
- O.stopPropagation(), r.value && (p("", !0), s(!o.value), t.emit("clear"));
1384
+ function p(P) {
1385
+ P.stopPropagation(), r.value && (c("", !0), u(!o.value), e.emit("clear"));
1224
1386
  }
1225
- function V(O) {
1226
- r.value && !k.value && s(!0);
1387
+ function V(P) {
1388
+ r.value && !w.value && u(!0);
1227
1389
  }
1228
- function E(O) {
1229
- r.value && s(!1);
1390
+ function M(P) {
1391
+ r.value && u(!1);
1230
1392
  }
1231
- return { clearButtonClass: l, clearButtonStyle: u, hasShownClearButton: o, onClearValue: c, onMouseEnter: V, onMouseLeave: E, shouldShowClearButton: r };
1393
+ return { clearButtonClass: s, clearButtonStyle: d, hasShownClearButton: o, onClearValue: p, onMouseEnter: V, onMouseLeave: M, shouldShowClearButton: r };
1232
1394
  }
1233
- const Gn = ["moz", "ms", "webkit"];
1234
- function Rn() {
1235
- let e = 0;
1236
- return (t) => {
1237
- const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), r = setTimeout(() => {
1238
- t(n + o);
1395
+ const Un = ["moz", "ms", "webkit"];
1396
+ function Wn() {
1397
+ let t = 0;
1398
+ return (e) => {
1399
+ const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), r = setTimeout(() => {
1400
+ e(n + o);
1239
1401
  }, o);
1240
- return e = n + o, r;
1402
+ return t = n + o, r;
1241
1403
  };
1242
1404
  }
1243
- function qn() {
1405
+ function Hn() {
1244
1406
  if (typeof window > "u")
1245
1407
  return () => 0;
1246
1408
  if (window.requestAnimationFrame)
1247
1409
  return window.requestAnimationFrame.bind(window);
1248
- const e = Gn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
1249
- return e ? window[`${e}RequestAnimationFrame`] : Rn();
1410
+ const t = Un.filter((e) => `${e}RequestAnimationFrame` in window)[0];
1411
+ return t ? window[`${t}RequestAnimationFrame`] : Wn();
1250
1412
  }
1251
- qn();
1252
- function Dn(e, t) {
1253
- const n = I(e.groupText), o = P(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = P(() => e.enableClear || !!e.groupText);
1254
- return { appendedButtonClass: P(() => ({
1413
+ Hn();
1414
+ function zn(t, e) {
1415
+ const n = I(t.groupText), o = O(() => t.showButtonWhenDisabled && (t.readonly || t.disabled)), r = O(() => t.enableClear || !!t.groupText);
1416
+ return { appendedButtonClass: O(() => ({
1255
1417
  "input-group-append": !0,
1256
1418
  "append-force-show": o.value
1257
1419
  })), appendedContent: n, shouldShowAppendedButton: r };
1258
1420
  }
1259
- function Wn(e, t, n, o) {
1260
- const { appendedContent: r } = o, p = I(e.enableViewPassword), d = P(() => e.type === "password"), b = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', k = '<span class="f-icon f-icon-eye"></span>', s = I(!1);
1261
- W(() => [e.readonly, e.disabled], ([c, V]) => {
1262
- d.value && (n.value = c || V ? "password" : n.value, r.value = c || V ? k : r.value);
1421
+ function Qn(t, e, n, o) {
1422
+ const { appendedContent: r } = o, c = I(t.enableViewPassword), l = O(() => t.type === "password"), m = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', w = '<span class="f-icon f-icon-eye"></span>', u = I(!1);
1423
+ W(() => [t.readonly, t.disabled], ([p, V]) => {
1424
+ l.value && (n.value = p || V ? "password" : n.value, r.value = p || V ? w : r.value);
1263
1425
  });
1264
- function l() {
1265
- return s.value = !s.value, n.value = s.value ? "text" : "password", r.value = s.value ? b : k, !1;
1426
+ function s() {
1427
+ return u.value = !u.value, n.value = u.value ? "text" : "password", r.value = u.value ? m : w, !1;
1266
1428
  }
1267
- function u() {
1268
- n.value = d.value ? "password" : "text", r.value = d.value ? p.value ? k : "" : r.value;
1429
+ function d() {
1430
+ n.value = l.value ? "password" : "text", r.value = l.value ? c.value ? w : "" : r.value;
1269
1431
  }
1270
- return u(), { isPassword: d, onClickAppendedButton: l };
1432
+ return d(), { isPassword: l, onClickAppendedButton: s };
1271
1433
  }
1272
- function zn(e, t, n) {
1434
+ function Zn(t, e, n) {
1273
1435
  const o = I(), {
1274
1436
  onBlurTextBox: r,
1275
- onFocusTextBox: p,
1276
- onInput: d,
1277
- onKeyDown: b,
1278
- textBoxValue: k
1279
- } = n, s = P(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), l = P(() => ({
1437
+ onFocusTextBox: c,
1438
+ onInput: l,
1439
+ onKeyDown: m,
1440
+ textBoxValue: w
1441
+ } = n, u = O(() => t.disabled || t.readonly || !t.editable ? "" : t.placeholder), s = O(() => ({
1280
1442
  "form-control": !0,
1281
1443
  "f-utils-fill": !0
1282
- })), u = P(() => ({
1283
- "text-align": e.textAlign
1444
+ })), d = O(() => ({
1445
+ "text-align": t.textAlign
1284
1446
  }));
1285
- function c(O) {
1286
- O.stopPropagation();
1447
+ function p(P) {
1448
+ P.stopPropagation();
1287
1449
  }
1288
1450
  function V() {
1289
- e.selectOnCreated, e.focusOnCreated;
1451
+ t.selectOnCreated, t.focusOnCreated;
1290
1452
  }
1291
- async function E(O) {
1292
- p(O), await te, V();
1453
+ async function M(P) {
1454
+ c(P), await re, V();
1293
1455
  }
1294
- return J(async () => {
1295
- await te, V();
1296
- }), () => F("input", {
1456
+ return _(async () => {
1457
+ await re, V();
1458
+ }), () => k("input", {
1297
1459
  ref: o,
1298
- class: l.value,
1299
- style: u.value,
1460
+ class: s.value,
1461
+ style: d.value,
1300
1462
  type: "text",
1301
- value: k.value,
1302
- disabled: e.disabled,
1303
- readonly: e.readonly || !e.editable,
1304
- placeholder: s.value,
1463
+ value: w.value,
1464
+ disabled: t.disabled,
1465
+ readonly: t.readonly || !t.editable,
1466
+ placeholder: u.value,
1305
1467
  onBlur: r,
1306
- onChange: c,
1307
- onFocus: E,
1308
- onInput: d,
1309
- onKeydown: b
1468
+ onChange: p,
1469
+ onFocus: M,
1470
+ onInput: l,
1471
+ onKeydown: m
1310
1472
  }, null);
1311
1473
  }
1312
- function Un(e, t, n) {
1474
+ function Jn(t, e, n) {
1313
1475
  const {
1314
1476
  canDownward: o,
1315
1477
  canUpward: r,
1316
- onClickDownButton: p,
1317
- onClickUpButton: d
1318
- } = n, b = P(() => ({
1478
+ onClickDownButton: c,
1479
+ onClickUpButton: l
1480
+ } = n, m = O(() => ({
1319
1481
  "input-group-append": !0,
1320
1482
  "btn-group": !0,
1321
1483
  "btn-group-number": !0
1322
- })), k = P(() => ({
1484
+ })), w = O(() => ({
1323
1485
  btn: !0,
1324
1486
  "btn-secondary": !0,
1325
1487
  "btn-number-flag": !0
1326
- })), s = P(() => ({
1488
+ })), u = O(() => ({
1327
1489
  cursor: r() ? "pointer" : "not-allowed",
1328
1490
  "margin-left": 0
1329
- })), l = P(() => ({
1491
+ })), s = O(() => ({
1330
1492
  cursor: o() ? "pointer" : "not-allowed",
1331
1493
  "margin-left": 0
1332
1494
  }));
1333
- return () => F("div", {
1334
- class: b.value
1335
- }, [F("button", {
1495
+ return () => k("div", {
1496
+ class: m.value
1497
+ }, [k("button", {
1336
1498
  title: "upButton",
1337
- class: k.value,
1338
- style: s.value,
1339
- onClick: d,
1499
+ class: w.value,
1500
+ style: u.value,
1501
+ onClick: l,
1340
1502
  disabled: !r()
1341
- }, [F("span", {
1503
+ }, [k("span", {
1342
1504
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
1343
- }, null)]), F("button", {
1505
+ }, null)]), k("button", {
1344
1506
  title: "downButton",
1345
- class: k.value,
1346
- style: l.value,
1347
- onClick: p,
1507
+ class: w.value,
1508
+ style: s.value,
1509
+ onClick: c,
1348
1510
  disabled: !o()
1349
- }, [F("span", {
1511
+ }, [k("span", {
1350
1512
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1351
1513
  }, null)])]);
1352
1514
  }
1353
- function Hn(e, t) {
1354
- const n = Ie(e, t), o = Se(e, t, n), r = Ve(e, t, o, n), p = Ee(e, t, o, n, r), d = Un(e, t, r), {
1355
- displayValue: b,
1356
- modelValue: k,
1357
- getRealValue: s
1358
- } = n, l = zn(e, t, p), {
1359
- format: u
1515
+ function Xn(t, e) {
1516
+ const n = Me(t, e), o = Ne(t, e, n), r = Oe(t, e, o, n), c = Pe(t, e, o, n, r), l = Jn(t, e, r), {
1517
+ displayValue: m,
1518
+ modelValue: w,
1519
+ getRealValue: u
1520
+ } = n, s = Zn(t, e, c), {
1521
+ format: d
1360
1522
  } = o, {
1361
- isFocus: c
1362
- } = p, V = P(() => !e.disabled && !e.readonly);
1363
- return J(() => {
1364
- const E = s(e.modelValue);
1365
- b.value = u(E);
1366
- }), W(() => [e.value], ([E]) => {
1367
- const O = s(E);
1368
- k.value = O, b.value = u(O);
1369
- }), W(() => [e.modelValue], ([E]) => {
1370
- E !== k.value && (k.value = E, !c.value && (b.value = u(s(E))));
1371
- }), W(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1372
- b.value = u(k.value);
1373
- }), () => F("div", {
1523
+ isFocus: p
1524
+ } = c, V = O(() => !t.disabled && !t.readonly);
1525
+ return _(() => {
1526
+ const M = u(t.modelValue);
1527
+ m.value = d(M);
1528
+ }), W(() => [t.value], ([M]) => {
1529
+ const P = u(M);
1530
+ w.value = P, m.value = d(P);
1531
+ }), W(() => [t.modelValue], ([M]) => {
1532
+ M !== w.value && (w.value = M, !p.value && (m.value = d(u(M))));
1533
+ }), W(() => [t.precision, t.useThousands, t.prefix, t.suffix, t.showZero], () => {
1534
+ m.value = d(w.value);
1535
+ }), () => k("div", {
1374
1536
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
1375
- }, [l(), V.value && d()]);
1537
+ }, [s(), V.value && l()]);
1376
1538
  }
1377
- function Qn(e, t, n, o) {
1378
- const r = I(), p = I(e.autocomplete), d = I(e.enableTitle), {
1379
- isPassword: b
1380
- } = n, k = I(e.minLength), s = I(e.maxLength), l = I(e.tabIndex), {
1381
- disabled: u,
1382
- displayText: c,
1539
+ function Yn(t, e, n, o) {
1540
+ const r = I(), c = I(t.autocomplete), l = I(t.enableTitle), {
1541
+ isPassword: m
1542
+ } = n, w = I(t.minLength), u = I(t.maxLength), s = I(t.tabIndex), {
1543
+ disabled: d,
1544
+ displayText: p,
1383
1545
  inputType: V,
1384
- onBlur: E,
1385
- onFocus: O,
1386
- onInput: q,
1387
- onClick: T,
1388
- onKeydown: x,
1389
- onKeyup: M,
1546
+ onBlur: M,
1547
+ onFocus: P,
1548
+ onInput: D,
1549
+ onClick: x,
1550
+ onKeydown: F,
1551
+ onKeyup: N,
1390
1552
  onMousedown: j,
1391
1553
  onTextBoxValueChange: $,
1392
1554
  readonly: G,
1393
- placeholder: A,
1394
- textBoxClass: z,
1395
- textBoxTitle: i
1555
+ placeholder: R,
1556
+ textBoxClass: H,
1557
+ textBoxTitle: a
1396
1558
  } = o;
1397
- return J(() => {
1398
- e.selectOnCreated, e.focusOnCreated;
1399
- }), () => F("input", {
1559
+ return _(() => {
1560
+ t.selectOnCreated, t.focusOnCreated;
1561
+ }), () => k("input", {
1400
1562
  ref: r,
1401
1563
  name: "input-group-value",
1402
- autocomplete: p.value,
1403
- class: z.value,
1404
- disabled: u == null ? void 0 : u.value,
1405
- maxlength: s.value,
1406
- minlength: k.value,
1407
- placeholder: A.value,
1564
+ autocomplete: c.value,
1565
+ class: H.value,
1566
+ disabled: d == null ? void 0 : d.value,
1567
+ maxlength: u.value,
1568
+ minlength: w.value,
1569
+ placeholder: R.value,
1408
1570
  readonly: G == null ? void 0 : G.value,
1409
- tabindex: l.value,
1410
- title: d.value && !b.value ? i.value : "",
1571
+ tabindex: s.value,
1572
+ title: l.value && !m.value ? a.value : "",
1411
1573
  type: V.value,
1412
- value: c == null ? void 0 : c.value,
1413
- onBlur: E,
1414
- onClick: T,
1574
+ value: p == null ? void 0 : p.value,
1575
+ onBlur: M,
1576
+ onClick: x,
1415
1577
  onChange: $,
1416
- onFocus: O,
1417
- onInput: q,
1418
- onKeydown: x,
1419
- onKeyup: M,
1578
+ onFocus: P,
1579
+ onInput: D,
1580
+ onKeydown: F,
1581
+ onKeyup: N,
1420
1582
  onMousedown: j
1421
1583
  }, null);
1422
1584
  }
1423
- function Zn(e, t) {
1424
- const n = P(() => e.useExtendInfo && !!e.extendInfo), o = Ce({
1425
- content: e.extendInfo
1585
+ function _n(t, e) {
1586
+ const n = O(() => t.useExtendInfo && !!t.extendInfo), o = xe({
1587
+ content: t.extendInfo
1426
1588
  });
1427
1589
  function r() {
1428
- t.emit("updateExtendInfo");
1590
+ e.emit("updateExtendInfo");
1429
1591
  }
1430
- return () => n.value && Fe(F("span", {
1592
+ return () => n.value && Fe(k("span", {
1431
1593
  class: "input-group-before-tips",
1432
1594
  onMouseenter: r
1433
- }, [F("i", {
1595
+ }, [k("i", {
1434
1596
  class: "f-icon f-icon-info-circle"
1435
- }, null), F("b", {
1597
+ }, null), k("b", {
1436
1598
  class: "tips-arrow"
1437
- }, null)]), [[we("tooltip"), o]]);
1599
+ }, null)]), [[Be("tooltip"), o]]);
1438
1600
  }
1439
- function _n(e, t, n, o, r) {
1601
+ function Kn(t, e, n, o, r) {
1440
1602
  const {
1441
- appendedButtonClass: p,
1442
- appendedContent: d
1443
- } = n, b = P(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), k = P(() => d.value && !t.slots.groupTextTemplate), s = P(() => !!t.slots.groupTextTemplate), {
1444
- clearButtonClass: l,
1445
- clearButtonStyle: u,
1446
- onClearValue: c,
1603
+ appendedButtonClass: c,
1604
+ appendedContent: l
1605
+ } = n, m = O(() => t.showButtonWhenDisabled && (!t.editable || !t.readonly) && !t.disabled), w = O(() => l.value && !e.slots.groupTextTemplate), u = O(() => !!e.slots.groupTextTemplate), {
1606
+ clearButtonClass: s,
1607
+ clearButtonStyle: d,
1608
+ onClearValue: p,
1447
1609
  shouldShowClearButton: V
1448
1610
  } = o;
1449
- function E() {
1450
- return F("span", {
1611
+ function M() {
1612
+ return k("span", {
1451
1613
  id: "clearIcon",
1452
- class: l.value,
1453
- style: u.value,
1454
- onClick: (A) => c(A)
1455
- }, [F("i", {
1614
+ class: s.value,
1615
+ style: d.value,
1616
+ onClick: (R) => p(R)
1617
+ }, [k("i", {
1456
1618
  class: "f-icon modal_close"
1457
1619
  }, null)]);
1458
1620
  }
1459
- function O(A) {
1460
- t.emit("iconMouseEnter", A);
1621
+ function P(R) {
1622
+ e.emit("iconMouseEnter", R);
1461
1623
  }
1462
- function q(A) {
1463
- t.emit("iconMouseLeave", A);
1624
+ function D(R) {
1625
+ e.emit("iconMouseLeave", R);
1464
1626
  }
1465
- function T(A) {
1466
- b.value && t.emit("clickHandle", {
1467
- originalEvent: A
1468
- }), A.stopPropagation();
1627
+ function x(R) {
1628
+ m.value && e.emit("clickHandle", {
1629
+ originalEvent: R
1630
+ }), R.stopPropagation();
1469
1631
  }
1470
- const x = e.type === "password" ? r.onClickAppendedButton : T;
1471
- function M() {
1472
- return F("span", {
1632
+ const F = t.type === "password" ? r.onClickAppendedButton : x;
1633
+ function N() {
1634
+ return k("span", {
1473
1635
  class: "input-group-text",
1474
- onMouseenter: (A) => O(A),
1475
- onMouseleave: (A) => q(A),
1476
- innerHTML: d.value,
1477
- onClick: (A) => x(A)
1636
+ onMouseenter: (R) => P(R),
1637
+ onMouseleave: (R) => D(R),
1638
+ innerHTML: l.value,
1639
+ onClick: (R) => F(R)
1478
1640
  }, null);
1479
1641
  }
1480
1642
  function j() {
1481
- return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
1643
+ return e.slots.groupTextTemplate && e.slots.groupTextTemplate();
1482
1644
  }
1483
1645
  function $() {
1484
- return k.value ? M : s.value ? j : "";
1646
+ return w.value ? N : u.value ? j : "";
1485
1647
  }
1486
1648
  const G = $();
1487
- return () => F("div", {
1488
- class: p.value
1489
- }, [V.value && E(), G && G()]);
1649
+ return () => k("div", {
1650
+ class: c.value
1651
+ }, [V.value && M(), G && G()]);
1490
1652
  }
1491
- const Jn = /* @__PURE__ */ Z({
1653
+ const eo = /* @__PURE__ */ X({
1492
1654
  name: "FInputGroup",
1493
- props: me,
1655
+ props: ye,
1494
1656
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
1495
- setup(e, t) {
1496
- const n = I(e.modelValue), o = I(e.modelValue), r = Nn(e, t, n, o), {
1497
- inputGroupClass: p,
1498
- inputType: d,
1499
- inputGroupStyle: b
1500
- } = r, k = Dn(e), {
1501
- shouldShowAppendedButton: s
1502
- } = k, l = $n(e, t, r), {
1503
- onMouseEnter: u,
1504
- onMouseLeave: c
1505
- } = l, V = Wn(e, t, d, k), E = Hn(e, t), O = Qn(e, t, V, r), q = _n(e, t, k, l, V), T = Zn(e, t), x = P(() => e.type === "number");
1506
- W(() => [e.value], ([j]) => {
1657
+ setup(t, e) {
1658
+ const n = I(t.modelValue), o = I(t.modelValue), r = qn(t, e, n, o), {
1659
+ inputGroupClass: c,
1660
+ inputType: l,
1661
+ inputGroupStyle: m
1662
+ } = r, w = zn(t), {
1663
+ shouldShowAppendedButton: u
1664
+ } = w, s = Dn(t, e, r), {
1665
+ onMouseEnter: d,
1666
+ onMouseLeave: p
1667
+ } = s, V = Qn(t, e, l, w), M = Xn(t, e), P = Yn(t, e, V, r), D = Kn(t, e, w, s, V), x = _n(t, e), F = O(() => t.type === "number");
1668
+ W(() => [t.value], ([j]) => {
1507
1669
  n.value = j, o.value = j;
1508
- }), W(() => [e.modelValue], ([j]) => {
1670
+ }), W(() => [t.modelValue], ([j]) => {
1509
1671
  n.value = j, o.value = j;
1510
- }), J(() => {
1511
- e.value && (n.value = e.value, o.value = e.value);
1672
+ }), _(() => {
1673
+ t.value && (n.value = t.value, o.value = t.value);
1512
1674
  });
1513
- const M = () => F(ne, null, [F("div", {
1675
+ const N = () => k(ae, null, [k("div", {
1514
1676
  id: "inputGroup",
1515
- class: p.value,
1516
- style: b.value,
1517
- onMouseenter: u,
1518
- onMouseleave: c
1519
- }, [x.value ? E() : F(ne, null, [T(), O(), s.value && q()])])]);
1520
- return () => M();
1521
- }
1522
- }), g = {}, h = {}, v = {}, y = {};
1523
- let ie = !1;
1524
- function Xn() {
1525
- ie || (ie = !0, Pe.register(g, h, v, y), Me.register(g, h, v, y), Oe.register(g, h, v, y), je.register(g, h, v, y), Le.register(g, h, v, y), Ae.register(g, h, v, y), Ne.register(g, h, v, y), K.register(g, h, v, y), $e.register(g, h, v, y), Ge.register(g, h, v, y), qe.register(g, h, v, y), Re.register(g, h, v, y), De.register(g, h, v, y), We.register(g, h, v, y), ze.register(g, h, v, y), xe.register(g, h, v, y), Ue.register(g, h, v, y), He.register(g, h, v, y), Qe.register(g, h, v, y), Ze.register(g, h, v, y), _e.register(g, h, v, y), Je.register(g, h, v, y), Ye.register(g, h, v, y), Xe.register(g, h, v, y), Ke.register(g, h, v, y), et.register(g, h, v, y), tt.register(g, h, v, y), nt.register(g, h, v, y), Be.register(g, h, v, y), ot.register(g, h, v, y), rt.register(g, h, v, y), it.register(g, h, v, y), at.register(g, h, v, y), lt.register(g, h, v, y), st.register(g, h, v, y), ut.register(g, h, v, y), ct.register(g, h, v, y), pt.register(g, h, v, y), ft.register(g, h, v, y), dt.register(g, h, v, y), Mt.register(g, h, v), mt.register(g, h, v, y), gt.register(g, h, v, y), ht.register(g, h, v, y), vt.register(g, h, v, y), yt.register(g, h, v, y), bt.register(g, h, v, y), Ct.register(g, h, v, y), Ft.register(g, h, v, y), wt.register(g, h, v, y), Tt.register(g, h, v, y), xt.register(g, h, v, y), kt.register(g, h, v, y), It.register(g, h, v, y), Bt.register(g, h, v, y), St.register(g, h, v, y), Vt.register(g, h, v, y), Et.register(g, h, v, y), Pt.register(g, h, v, y));
1677
+ class: c.value,
1678
+ style: m.value,
1679
+ onMouseenter: d,
1680
+ onMouseleave: p
1681
+ }, [F.value ? M() : k(ae, null, [x(), P(), u.value && D()])])]);
1682
+ return () => N();
1683
+ }
1684
+ }), h = {}, v = {}, b = {}, C = {};
1685
+ let le = !1;
1686
+ function to() {
1687
+ le || (le = !0, Le.register(h, v, b, C), je.register(h, v, b, C), Re.register(h, v, b, C), Ae.register(h, v, b, C), $e.register(h, v, b, C), Ge.register(h, v, b, C), qe.register(h, v, b, C), te.register(h, v, b, C), De.register(h, v, b, C), Ue.register(h, v, b, C), He.register(h, v, b, C), We.register(h, v, b, C), ze.register(h, v, b, C), Qe.register(h, v, b, C), Ze.register(h, v, b, C), Se.register(h, v, b, C), Je.register(h, v, b, C), Xe.register(h, v, b, C), Ye.register(h, v, b, C), _e.register(h, v, b, C), Ke.register(h, v, b, C), et.register(h, v, b, C), nt.register(h, v, b, C), tt.register(h, v, b, C), ot.register(h, v, b, C), rt.register(h, v, b, C), at.register(h, v, b, C), it.register(h, v, b, C), Ee.register(h, v, b, C), st.register(h, v, b, C), lt.register(h, v, b, C), ut.register(h, v, b, C), ct.register(h, v, b, C), dt.register(h, v, b, C), pt.register(h, v, b, C), mt.register(h, v, b, C), ft.register(h, v, b, C), ht.register(h, v, b, C), vt.register(h, v, b, C), gt.register(h, v, b, C), jt.register(h, v, b), yt.register(h, v, b, C), bt.register(h, v, b, C), Ct.register(h, v, b, C), Tt.register(h, v, b, C), kt.register(h, v, b, C), wt.register(h, v, b, C), xt.register(h, v, b, C), Ft.register(h, v, b, C), Bt.register(h, v, b, C), It.register(h, v, b, C), St.register(h, v, b, C), Vt.register(h, v, b, C), Mt.register(h, v, b, C), Et.register(h, v, b, C), Nt.register(h, v, b, C), Ot.register(h, v, b, C), Pt.register(h, v, b, C), Lt.register(h, v, b, C));
1526
1688
  }
1527
- function Yn() {
1528
- Xn();
1529
- function e(r, p) {
1530
- const d = h[r];
1531
- return d ? d(p) : {};
1689
+ function no() {
1690
+ to();
1691
+ function t(r, c) {
1692
+ const l = v[r];
1693
+ return l ? l(c) : {};
1532
1694
  }
1533
- function t(r) {
1534
- return g[r] || Jn;
1695
+ function e(r) {
1696
+ return h[r] || eo;
1535
1697
  }
1536
1698
  function n(r) {
1537
1699
  switch (r) {
@@ -1586,71 +1748,145 @@ function Yn() {
1586
1748
  return "onSchemaSelected";
1587
1749
  case "mapping-editor":
1588
1750
  return "onMappingFieldsChanged";
1751
+ case "textarea":
1752
+ return "onValueChange";
1589
1753
  }
1590
1754
  }
1591
1755
  function o(r) {
1592
1756
  switch (r) {
1593
1757
  case "combo-list":
1594
1758
  case "input-group":
1759
+ case "textarea":
1595
1760
  return "onClear";
1596
1761
  }
1597
1762
  }
1598
- return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
1763
+ return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
1599
1764
  }
1600
- const Kn = /* @__PURE__ */ Z({
1765
+ const oo = /* @__PURE__ */ X({
1601
1766
  name: "FDynamicFormGroup",
1602
- props: fe,
1767
+ props: ve,
1603
1768
  emits: ["change", "update:modelValue"],
1604
- setup(e, t) {
1605
- const n = I(e.id), o = I(e.customClass), r = I(e.editor), p = I(e.label), d = I(e.modelValue), b = I(e.readonly), k = I(e.required), s = I(e.showLabel), l = I(e.visible);
1606
- I(e.type);
1607
- const u = I(), {
1608
- resolveEditorProps: c,
1769
+ setup(t, e) {
1770
+ const n = I(t.id), o = I(t.customClass), r = I(t.editor), c = I(t.label), l = I(t.modelValue), m = I(t.readonly), w = I(t.required), u = I(t.showLabel), s = I(t.visible);
1771
+ I(t.type);
1772
+ const d = I(), {
1773
+ resolveEditorProps: p,
1609
1774
  resolveEditorType: V,
1610
- getChangeFunctionName: E,
1611
- getClearFunctionName: O
1612
- } = Yn(), q = P(() => ({
1775
+ getChangeFunctionName: M,
1776
+ getClearFunctionName: P
1777
+ } = no(), D = O(() => ({
1613
1778
  "form-group": !0,
1614
1779
  "farris-form-group": !0,
1615
1780
  "common-group": !0,
1616
- "q-state-readonly": b.value
1781
+ "q-state-readonly": m.value
1617
1782
  }));
1618
- function T(j, $) {
1619
- d.value = $ !== void 0 ? $ : j, t.emit("update:modelValue", d.value), t.emit("change", d.value);
1783
+ function x(j, $) {
1784
+ l.value = $ !== void 0 ? $ : j, e.emit("update:modelValue", l.value), e.emit("change", l.value);
1620
1785
  }
1621
- function x() {
1622
- t.emit("update:modelValue", "");
1786
+ function F() {
1787
+ e.emit("update:modelValue", "");
1623
1788
  }
1624
- const M = P(() => {
1625
- const j = r.value.type || "input-group", $ = V(j), G = c(j, r.value), A = E(j), z = O(r.value.type);
1626
- return G[A] = T, G[z] = x, () => F($, Te({
1627
- ref: u
1789
+ const N = O(() => {
1790
+ const j = r.value.type || "input-group", $ = V(j), G = p(j, r.value), R = M(j), H = P(r.value.type);
1791
+ return G[R] = x, G[H] = F, () => k($, Ie({
1792
+ ref: d
1628
1793
  }, G, {
1629
- modelValue: d.value,
1630
- "onUpdate:modelValue": (i) => d.value = i
1794
+ modelValue: l.value,
1795
+ "onUpdate:modelValue": (a) => l.value = a
1631
1796
  }), null);
1632
1797
  });
1633
- return W([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([j, $, G, A, z, i, m, f, B]) => {
1634
- n.value = j, o.value = $, r.value = G, p.value = A, d.value = z, b.value = i, k.value = m, s.value = f, l.value = B;
1635
- }), t.expose({
1636
- editorRef: u
1637
- }), () => l.value && F("div", {
1798
+ return W([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible], ([j, $, G, R, H, a, g, f, B]) => {
1799
+ n.value = j, o.value = $, r.value = G, c.value = R, l.value = H, m.value = a, w.value = g, u.value = f, s.value = B;
1800
+ }), e.expose({
1801
+ editorRef: d
1802
+ }), () => s.value && k("div", {
1638
1803
  id: `${n.value}-input-group`,
1639
1804
  class: o.value
1640
- }, [F("div", {
1805
+ }, [k("div", {
1641
1806
  class: "farris-group-wrap"
1642
- }, [F("div", {
1643
- class: q.value
1644
- }, [s.value && F(Bn, {
1807
+ }, [k("div", {
1808
+ class: D.value
1809
+ }, [u.value && k(En, {
1645
1810
  id: `${n.value}-lable`,
1646
- required: k.value,
1647
- text: p.value,
1648
- title: p.value
1649
- }, null), F("div", {
1811
+ required: w.value,
1812
+ text: c.value,
1813
+ title: c.value
1814
+ }, null), k("div", {
1650
1815
  class: "farris-input-wrap"
1651
- }, [M.value()])])])]);
1816
+ }, [N.value()])])])]);
1652
1817
  }
1653
- }), eo = {
1818
+ }), Z = class Z {
1819
+ /**
1820
+ * 根据绑定字段类型获取可用的输入类控件
1821
+ */
1822
+ static getEditorTypesByMDataType(e) {
1823
+ const n = Z.fieldControlTypeMapping[e];
1824
+ return n || [{ key: "", value: "" }];
1825
+ }
1826
+ /**
1827
+ * 获取所有输入类控件
1828
+ */
1829
+ static getAllInputTypes() {
1830
+ const e = [];
1831
+ for (let n in Z.fieldControlTypeMapping)
1832
+ Z.fieldControlTypeMapping[n].forEach((o) => {
1833
+ e.find((r) => r.key === o.key && r.value === o.value) || e.push({ key: o.key, value: o.value });
1834
+ });
1835
+ return e;
1836
+ }
1837
+ };
1838
+ /**
1839
+ * <字段类型,可配置的控件类型列表>的映射
1840
+ */
1841
+ y(Z, "fieldControlTypeMapping", {
1842
+ String: [
1843
+ { key: E["input-group"].type, value: E["input-group"].name },
1844
+ { key: E.lookup.type, value: E.lookup.name },
1845
+ { key: E["date-picker"].type, value: E["date-picker"].name },
1846
+ { key: E["check-box"].type, value: E["check-box"].name },
1847
+ { key: E["radio-group"].type, value: E["radio-group"].name },
1848
+ { key: E["combo-list"].type, value: E["combo-list"].name },
1849
+ { key: E.textarea.type, value: E.textarea.name }
1850
+ ],
1851
+ Text: [
1852
+ { key: E.textarea.type, value: E.textarea.name },
1853
+ { key: E.lookup.type, value: E.lookup.name }
1854
+ ],
1855
+ Decimal: [
1856
+ { key: E["number-spinner"].type, value: E["number-spinner"].name }
1857
+ ],
1858
+ Integer: [
1859
+ { key: E["number-spinner"].type, value: E["number-spinner"].name }
1860
+ ],
1861
+ Number: [
1862
+ { key: E["number-spinner"].type, value: E["number-spinner"].name }
1863
+ ],
1864
+ BigNumber: [
1865
+ { key: E["number-spinner"].type, value: E["number-spinner"].name }
1866
+ ],
1867
+ Date: [
1868
+ { key: E["date-picker"].type, value: E["date-picker"].name }
1869
+ ],
1870
+ DateTime: [
1871
+ { key: E["date-picker"].type, value: E["date-picker"].name }
1872
+ ],
1873
+ Boolean: [
1874
+ { key: E.switch.type, value: E.switch.name },
1875
+ { key: E["check-box"].type, value: E["check-box"].name }
1876
+ ],
1877
+ Enum: [
1878
+ { key: E["combo-list"].type, value: E["combo-list"].name },
1879
+ { key: E["radio-group"].type, value: E["radio-group"].name }
1880
+ ],
1881
+ Object: [
1882
+ { key: E.lookup.type, value: E.lookup.name },
1883
+ { key: E["combo-list"].type, value: E["combo-list"].name },
1884
+ { key: E["radio-group"].type, value: E["radio-group"].name }
1885
+ ]
1886
+ });
1887
+ let ue = Z;
1888
+ I(0);
1889
+ const ro = {
1654
1890
  id: { type: String, default: "" },
1655
1891
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
1656
1892
  editor: { type: Object, default: {} },
@@ -1665,14 +1901,14 @@ const Kn = /* @__PURE__ */ Z({
1665
1901
  */
1666
1902
  selectOnCreated: { type: Boolean, default: !1 }
1667
1903
  };
1668
- X(
1669
- eo,
1670
- pe,
1671
- ee,
1904
+ K(
1905
+ ro,
1906
+ he,
1907
+ oe,
1672
1908
  void 0
1673
1909
  );
1674
- var to = /* @__PURE__ */ ((e) => (e[e.IntType = 0] = "IntType", e[e.StringType = 1] = "StringType", e[e.BoolType = 2] = "BoolType", e))(to || {}), ge = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(ge || {}), he = /* @__PURE__ */ ((e) => (e.Equal = "0", e.NotEqual = "1", e.Greater = "2", e.GreaterOrEqual = "3", e.Less = "4", e.LessOrEqual = "5", e.Like = "6", e.LikeStartWith = "7", e.LikeEndWith = "8", e))(he || {});
1675
- const no = [
1910
+ var ao = /* @__PURE__ */ ((t) => (t[t.IntType = 0] = "IntType", t[t.StringType = 1] = "StringType", t[t.BoolType = 2] = "BoolType", t))(ao || {}), be = /* @__PURE__ */ ((t) => (t[t.Value = 0] = "Value", t[t.SmartHelp = 1] = "SmartHelp", t[t.Enum = 2] = "Enum", t[t.Express = 3] = "Express", t))(be || {}), Ce = /* @__PURE__ */ ((t) => (t.Equal = "0", t.NotEqual = "1", t.Greater = "2", t.GreaterOrEqual = "3", t.Less = "4", t.LessOrEqual = "5", t.Like = "6", t.LikeStartWith = "7", t.LikeEndWith = "8", t))(Ce || {});
1911
+ const io = [
1676
1912
  {
1677
1913
  value: "0",
1678
1914
  name: "等于"
@@ -1709,7 +1945,7 @@ const no = [
1709
1945
  value: "8",
1710
1946
  name: "结束是"
1711
1947
  }
1712
- ], oo = {
1948
+ ], so = {
1713
1949
  "button-edit": ["0", "1", " 6", "7", "8"],
1714
1950
  "check-box": ["0"],
1715
1951
  "combo-list": ["0", "1"],
@@ -1729,395 +1965,395 @@ const no = [
1729
1965
  "radio-group": ["0"],
1730
1966
  text: ["0", "1", " 6", "7", "8"]
1731
1967
  };
1732
- function ro(e, t, n) {
1968
+ function lo(t, e, n) {
1733
1969
  const { fieldMap: o } = n;
1734
- function r(p) {
1735
- const d = o.get(p.fieldCode);
1736
- if (!d)
1970
+ function r(c) {
1971
+ const l = o.get(c.fieldCode);
1972
+ if (!l)
1737
1973
  return [];
1738
- const b = d.editor.type, k = new Set(oo[b]);
1739
- return no.filter((l) => k.has(l.value));
1974
+ const m = l.editor.type, w = new Set(so[m]);
1975
+ return io.filter((s) => w.has(s.value));
1740
1976
  }
1741
1977
  return { getCompareOperators: r };
1742
1978
  }
1743
- function io() {
1744
- const e = I({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
1979
+ function uo() {
1980
+ const t = I({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
1745
1981
  let o = 0;
1746
1982
  function r() {
1747
1983
  return {
1748
1984
  id: "",
1749
1985
  fieldCode: "",
1750
1986
  fieldName: "",
1751
- compareType: he.Equal,
1752
- valueType: ge.Value,
1753
- value: new le(),
1987
+ compareType: Ce.Equal,
1988
+ valueType: be.Value,
1989
+ value: new de(),
1754
1990
  relation: 0,
1755
1991
  conditionId: Date.now()
1756
1992
  };
1757
1993
  }
1758
- function p(i, m) {
1759
- return { relation: i, items: [], children: [], path: [], groupId: ++o, level: m };
1994
+ function c(a, g) {
1995
+ return { relation: a, items: [], children: [], path: [], groupId: ++o, level: g };
1760
1996
  }
1761
- function d() {
1762
- const i = Object.assign({}, e.value);
1763
- n.forEach((m, f) => {
1764
- m.groupId === i.groupId && n.set(f, i);
1765
- }), t.forEach((m, f) => {
1766
- m.groupId === i.groupId && t.set(f, i);
1767
- }), e.value = i;
1768
- }
1769
- function b(i) {
1770
- const m = /* @__PURE__ */ new Map();
1997
+ function l() {
1998
+ const a = Object.assign({}, t.value);
1999
+ n.forEach((g, f) => {
2000
+ g.groupId === a.groupId && n.set(f, a);
2001
+ }), e.forEach((g, f) => {
2002
+ g.groupId === a.groupId && e.set(f, a);
2003
+ }), t.value = a;
2004
+ }
2005
+ function m(a) {
2006
+ const g = /* @__PURE__ */ new Map();
1771
2007
  let f = 0;
1772
- return i.forEach((B, a) => {
1773
- var C, S;
1774
- if (f += ((C = B.lBracket) == null ? void 0 : C.length) || 0, m.set(a, f), f -= ((S = B.rBracket) == null ? void 0 : S.length) || 0, f < 0)
2008
+ return a.forEach((B, i) => {
2009
+ var T, S;
2010
+ if (f += ((T = B.lBracket) == null ? void 0 : T.length) || 0, g.set(i, f), f -= ((S = B.rBracket) == null ? void 0 : S.length) || 0, f < 0)
1775
2011
  throw new Error("The right bracket is out of range.");
1776
- }), m;
2012
+ }), g;
1777
2013
  }
1778
- function k(i, m, f, B, a) {
1779
- for (let C = 0; C < m; C++) {
1780
- const S = i + (C + 1), D = p(a, S);
1781
- f.children.push(D), n.set(D.groupId, f), f = f.children[f.children.length - 1], B.push(f);
2014
+ function w(a, g, f, B, i) {
2015
+ for (let T = 0; T < g; T++) {
2016
+ const S = a + (T + 1), U = c(i, S);
2017
+ f.children.push(U), n.set(U.groupId, f), f = f.children[f.children.length - 1], B.push(f);
1782
2018
  }
1783
2019
  return f;
1784
2020
  }
1785
- function s(i, m, f, B, a) {
1786
- for (let R = m; R <= 0; R++)
2021
+ function u(a, g, f, B, i) {
2022
+ for (let q = g; q <= 0; q++)
1787
2023
  B.pop();
1788
- const C = B[B.length - 1];
1789
- if (!C)
2024
+ const T = B[B.length - 1];
2025
+ if (!T)
1790
2026
  throw new Error("The group path is out of range");
1791
- const S = i + m, D = p(a, S);
1792
- return C.children.push(D), n.set(D.groupId, C), f = C.children[C.children.length - 1], B.push(f), f;
2027
+ const S = a + g, U = c(i, S);
2028
+ return T.children.push(U), n.set(U.groupId, T), f = T.children[T.children.length - 1], B.push(f), f;
1793
2029
  }
1794
- function l(i, m, f, B) {
2030
+ function s(a, g, f, B) {
1795
2031
  f.pop();
1796
- const a = f[f.length - 1], C = p(B, i);
1797
- return a.children.push(C), n.set(C.groupId, a), m = a.children[a.children.length - 1], f.push(m), m;
2032
+ const i = f[f.length - 1], T = c(B, a);
2033
+ return i.children.push(T), n.set(T.groupId, i), g = i.children[i.children.length - 1], f.push(g), g;
1798
2034
  }
1799
- function u(i, m, f, B, a, C) {
1800
- let S = i[i.length - 1];
2035
+ function d(a, g, f, B, i, T) {
2036
+ let S = a[a.length - 1];
1801
2037
  if (!S)
1802
2038
  throw new Error("The group path is out of range");
1803
- const D = m.get(B) || 0, R = m.get(f) || 0;
2039
+ const U = g.get(B) || 0, q = g.get(f) || 0;
1804
2040
  if (f < 0 || f === B)
1805
- return i[i.length - 1];
1806
- const N = D - R, L = a && a.relation !== void 0 ? a.relation : 1;
1807
- return S = N > 0 ? k(R, N, S, i, L) : S, S = N < 0 ? s(R, N, S, i, L) : S, S = N === 0 && R > 0 && D > 0 && a && C && !!a.rBracket && !!C.lBracket ? l(R, S, i, L) : S, S;
2041
+ return a[a.length - 1];
2042
+ const A = U - q, L = i && i.relation !== void 0 ? i.relation : 1;
2043
+ return S = A > 0 ? w(q, A, S, a, L) : S, S = A < 0 ? u(q, A, S, a, L) : S, S = A === 0 && q > 0 && U > 0 && i && T && !!i.rBracket && !!T.lBracket ? s(q, S, a, L) : S, S;
1808
2044
  }
1809
- function c(i) {
1810
- const f = { relation: i.length && i[0].relation !== void 0 ? i[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, B = [f], a = b(i);
1811
- return i.forEach((C, S) => {
1812
- const D = S - 1, R = i[D], N = u(B, a, D, S, R, C);
1813
- N.items.push(C), t.set(C.conditionId, N);
1814
- }), e.value = f, f;
2045
+ function p(a) {
2046
+ const f = { relation: a.length && a[0].relation !== void 0 ? a[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, B = [f], i = m(a);
2047
+ return a.forEach((T, S) => {
2048
+ const U = S - 1, q = a[U], A = d(B, i, U, S, q, T);
2049
+ A.items.push(T), e.set(T.conditionId, A);
2050
+ }), t.value = f, f;
1815
2051
  }
1816
2052
  function V() {
1817
- const i = r();
1818
- t.set(i.conditionId, e.value), e.value.items.push(i);
2053
+ const a = r();
2054
+ e.set(a.conditionId, t.value), t.value.items.push(a);
1819
2055
  }
1820
- function E(i) {
1821
- if (!i)
2056
+ function M(a) {
2057
+ if (!a)
1822
2058
  return;
1823
- const m = t.get(i.conditionId);
1824
- if (m) {
1825
- const f = m.items.findIndex((a) => a.conditionId === i.conditionId) + 1, B = r();
1826
- t.set(B.conditionId, m), m.items.splice(f, 0, B), d();
2059
+ const g = e.get(a.conditionId);
2060
+ if (g) {
2061
+ const f = g.items.findIndex((i) => i.conditionId === a.conditionId) + 1, B = r();
2062
+ e.set(B.conditionId, g), g.items.splice(f, 0, B), l();
1827
2063
  }
1828
2064
  }
1829
- function O(i) {
1830
- const m = t.get(i.conditionId);
1831
- m && (m.items = m.items.filter((f) => f.conditionId !== i.conditionId), t.delete(i.conditionId), z(), d());
2065
+ function P(a) {
2066
+ const g = e.get(a.conditionId);
2067
+ g && (g.items = g.items.filter((f) => f.conditionId !== a.conditionId), e.delete(a.conditionId), H(), l());
1832
2068
  }
1833
- function q(i, m, f, B) {
1834
- i.reduce((a, C) => {
1835
- const S = C.conditionId !== void 0, D = C.groupId !== void 0;
2069
+ function D(a, g, f, B) {
2070
+ a.reduce((i, T) => {
2071
+ const S = T.conditionId !== void 0, U = T.groupId !== void 0;
1836
2072
  if (S) {
1837
- const R = C;
1838
- f.push(R), a.items.set(R.conditionId, R);
2073
+ const q = T;
2074
+ f.push(q), i.items.set(q.conditionId, q);
1839
2075
  }
1840
- if (D) {
1841
- const R = C;
1842
- B.push(R), a.groups.set(R.groupId, R);
2076
+ if (U) {
2077
+ const q = T;
2078
+ B.push(q), i.groups.set(q.groupId, q);
1843
2079
  }
1844
- return a;
1845
- }, m);
2080
+ return i;
2081
+ }, g);
1846
2082
  }
1847
- function T(i, m, f, B, a) {
1848
- i && (i.items = m.length ? i.items.filter((C) => !f.has(C.conditionId)) : i.items, i.children = B.length ? i.children.filter((C) => !a.has(C.groupId)) : i.children);
2083
+ function x(a, g, f, B, i) {
2084
+ a && (a.items = g.length ? a.items.filter((T) => !f.has(T.conditionId)) : a.items, a.children = B.length ? a.children.filter((T) => !i.has(T.groupId)) : a.children);
1849
2085
  }
1850
- function x(i, m, f) {
1851
- m.forEach((B) => {
1852
- i.items.push(B), t.set(B.conditionId, i);
2086
+ function F(a, g, f) {
2087
+ g.forEach((B) => {
2088
+ a.items.push(B), e.set(B.conditionId, a);
1853
2089
  }), f.forEach((B) => {
1854
- i.children.push(B), n.set(B.groupId, i);
2090
+ a.children.push(B), n.set(B.groupId, a);
1855
2091
  });
1856
2092
  }
1857
- function M(i) {
1858
- const m = i[0], f = m.conditionId !== void 0 ? t.get(m.conditionId) : n.get(m.groupId), B = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, a = [], C = [];
2093
+ function N(a) {
2094
+ const g = a[0], f = g.conditionId !== void 0 ? e.get(g.conditionId) : n.get(g.groupId), B = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, i = [], T = [];
1859
2095
  if (f) {
1860
- q(i, B, a, C), T(f, a, B.items, C, B.groups);
1861
- const S = p(f.relation, f.level + 1);
1862
- x(S, a, C), f.children.push(S), n.set(S.groupId, f), d();
2096
+ D(a, B, i, T), x(f, i, B.items, T, B.groups);
2097
+ const S = c(f.relation, f.level + 1);
2098
+ F(S, i, T), f.children.push(S), n.set(S.groupId, f), l();
1863
2099
  }
1864
2100
  }
1865
- function j(i) {
1866
- const m = [...i.items], f = [...i.children], B = n.get(i.groupId);
1867
- B && (B.children = B.children.filter((a) => a.groupId !== i.groupId), n.delete(i.groupId), m.forEach((a) => {
1868
- B.items.push(a), t.set(a.conditionId, B);
1869
- }), f.forEach((a) => {
1870
- B.children.push(a), n.set(a.groupId, B);
1871
- }), d());
2101
+ function j(a) {
2102
+ const g = [...a.items], f = [...a.children], B = n.get(a.groupId);
2103
+ B && (B.children = B.children.filter((i) => i.groupId !== a.groupId), n.delete(a.groupId), g.forEach((i) => {
2104
+ B.items.push(i), e.set(i.conditionId, B);
2105
+ }), f.forEach((i) => {
2106
+ B.children.push(i), n.set(i.groupId, B);
2107
+ }), l());
1872
2108
  }
1873
- function $(i) {
1874
- i.relation = i.relation === 1 ? 2 : 1, d();
2109
+ function $(a) {
2110
+ a.relation = a.relation === 1 ? 2 : 1, l();
1875
2111
  }
1876
2112
  let G;
1877
- function A(i) {
1878
- const { relation: m } = i;
1879
- return (i.children && i.children.length ? i.children.map((B, a, C) => {
2113
+ function R(a) {
2114
+ const { relation: g } = a;
2115
+ return (a.children && a.children.length ? a.children.map((B, i, T) => {
1880
2116
  const S = G(B);
1881
- return S[0].lBracket = (S[0].lBracket || "") + "(", S[S.length - 1].rBracket = (S[S.length - 1].rBracket || "") + ")", S[S.length - 1].relation = a < C.length - 1 ? m : 0, S;
2117
+ return S[0].lBracket = (S[0].lBracket || "") + "(", S[S.length - 1].rBracket = (S[S.length - 1].rBracket || "") + ")", S[S.length - 1].relation = i < T.length - 1 ? g : 0, S;
1882
2118
  }) : []).flat();
1883
2119
  }
1884
- G = (i = e.value) => {
1885
- const { relation: m } = i, f = i.items.map((a, C, S) => (a.lBracket = C === 0 ? "(" : "", a.rBracket = C === S.length - 1 ? ")" : "", a.relation = C < S.length - 1 ? m || 1 : 0, a)), B = A(i);
2120
+ G = (a = t.value) => {
2121
+ const { relation: g } = a, f = a.items.map((i, T, S) => (i.lBracket = T === 0 ? "(" : "", i.rBracket = T === S.length - 1 ? ")" : "", i.relation = T < S.length - 1 ? g || 1 : 0, i)), B = R(a);
1886
2122
  return [...f, ...B];
1887
2123
  };
1888
- function z(i) {
1889
- const m = i || e.value;
1890
- if (m.children.length && m.children.forEach((f) => {
1891
- z(f);
1892
- }), m.level === 0 && !m.items.length && m.children.length === 1) {
1893
- const f = m.children[0];
1894
- e.value.relation = f.relation, j(f);
1895
- } else m.items.length === 0 && m.children.length <= 1 && j(m);
2124
+ function H(a) {
2125
+ const g = a || t.value;
2126
+ if (g.children.length && g.children.forEach((f) => {
2127
+ H(f);
2128
+ }), g.level === 0 && !g.items.length && g.children.length === 1) {
2129
+ const f = g.children[0];
2130
+ t.value.relation = f.relation, j(f);
2131
+ } else g.items.length === 0 && g.children.length <= 1 && j(g);
1896
2132
  }
1897
2133
  return {
1898
2134
  addCondition: V,
1899
2135
  changeGroupRelation: $,
1900
- conditionGroupMap: t,
2136
+ conditionGroupMap: e,
1901
2137
  getConditions: G,
1902
- group: M,
2138
+ group: N,
1903
2139
  groupParentMap: n,
1904
- insertConditionTo: E,
1905
- loadConditionGroup: c,
1906
- refresh: d,
1907
- removeCondition: O,
1908
- rootGroup: e,
2140
+ insertConditionTo: M,
2141
+ loadConditionGroup: p,
2142
+ refresh: l,
2143
+ removeCondition: P,
2144
+ rootGroup: t,
1909
2145
  unGroup: j
1910
2146
  };
1911
2147
  }
1912
- function ao(e, t, n) {
1913
- const o = I(/* @__PURE__ */ new Set()), r = I(/* @__PURE__ */ new Set()), { conditionGroupMap: p, groupParentMap: d } = n;
1914
- let b, k;
1915
- function s(T) {
1916
- let x = b.level <= T.level ? b : T, M = b.level > T.level ? b : T;
2148
+ function co(t, e, n) {
2149
+ const o = I(/* @__PURE__ */ new Set()), r = I(/* @__PURE__ */ new Set()), { conditionGroupMap: c, groupParentMap: l } = n;
2150
+ let m, w;
2151
+ function u(x) {
2152
+ let F = m.level <= x.level ? m : x, N = m.level > x.level ? m : x;
1917
2153
  const j = [];
1918
- for (; M && x && M !== x; )
1919
- M.level > x.level ? (j.push(M), M = d.get(M.groupId)) : M.level === x.level && (x = d.get(x.groupId), x && j.unshift(x));
2154
+ for (; N && F && N !== F; )
2155
+ N.level > F.level ? (j.push(N), N = l.get(N.groupId)) : N.level === F.level && (F = l.get(F.groupId), F && j.unshift(F));
1920
2156
  return j;
1921
2157
  }
1922
- function l(T) {
1923
- r.value.add(T.groupId), T.items.forEach((x) => o.value.add(x.conditionId)), T.children.forEach((x) => l(x));
2158
+ function s(x) {
2159
+ r.value.add(x.groupId), x.items.forEach((F) => o.value.add(F.conditionId)), x.children.forEach((F) => s(F));
1924
2160
  }
1925
- function u(T) {
1926
- const { conditionId: x } = T;
1927
- o.value.add(x), b = o.value.size === 0 ? p.get(x) : b;
1928
- const M = p.get(T.conditionId);
1929
- s(M).forEach(($) => l($));
2161
+ function d(x) {
2162
+ const { conditionId: F } = x;
2163
+ o.value.add(F), m = o.value.size === 0 ? c.get(F) : m;
2164
+ const N = c.get(x.conditionId);
2165
+ u(N).forEach(($) => s($));
1930
2166
  }
1931
- const c = P(() => o.value.size === 0 && r.value.size === 1), V = function(T) {
1932
- r.value.delete(T.groupId), T.items.forEach((M) => k(M)), T.children.forEach((M) => !c.value && V(M));
1933
- const x = d.get(T.groupId);
1934
- x && r.value.has(x.groupId) && V(x);
2167
+ const p = O(() => o.value.size === 0 && r.value.size === 1), V = function(x) {
2168
+ r.value.delete(x.groupId), x.items.forEach((N) => w(N)), x.children.forEach((N) => !p.value && V(N));
2169
+ const F = l.get(x.groupId);
2170
+ F && r.value.has(F.groupId) && V(F);
1935
2171
  };
1936
- k = function(T) {
1937
- const { conditionId: x } = T;
1938
- if (o.value.has(x) && o.value.delete(x), r.value.size > 0) {
1939
- const M = p.get(x);
1940
- M && r.value.has(M.groupId) && V(M);
2172
+ w = function(x) {
2173
+ const { conditionId: F } = x;
2174
+ if (o.value.has(F) && o.value.delete(F), r.value.size > 0) {
2175
+ const N = c.get(F);
2176
+ N && r.value.has(N.groupId) && V(N);
1941
2177
  }
1942
2178
  };
1943
- function E(T) {
1944
- const { conditionId: x } = T;
1945
- o.value.size === 0 && (b = p.get(x)), o.value.has(x) ? k(T) : u(T);
2179
+ function M(x) {
2180
+ const { conditionId: F } = x;
2181
+ o.value.size === 0 && (m = c.get(F)), o.value.has(F) ? w(x) : d(x);
1946
2182
  }
1947
- function O() {
1948
- const T = [];
1949
- return b && (b.items.filter((x) => o.value.has(x.conditionId)).forEach((x) => T.push(x)), b.children.filter((x) => r.value.has(x.groupId)).forEach((x) => T.push(x))), T;
2183
+ function P() {
2184
+ const x = [];
2185
+ return m && (m.items.filter((F) => o.value.has(F.conditionId)).forEach((F) => x.push(F)), m.children.filter((F) => r.value.has(F.groupId)).forEach((F) => x.push(F))), x;
1950
2186
  }
1951
- function q() {
2187
+ function D() {
1952
2188
  o.value.clear(), r.value.clear();
1953
2189
  }
1954
- return { clear: q, getSelectedGroupItem: O, selectedItems: o, toggleSelect: E };
2190
+ return { clear: D, getSelectedGroupItem: P, selectedItems: o, toggleSelect: M };
1955
2191
  }
1956
- const Y = /* @__PURE__ */ Z({
2192
+ const ee = /* @__PURE__ */ X({
1957
2193
  name: "FConditionList",
1958
- props: ae,
2194
+ props: ce,
1959
2195
  emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
1960
- setup(e, t) {
1961
- const n = I(e.key), o = I(e.conditions), r = ue(e), {
1962
- convertToSingleControl: p,
1963
- fields: d,
1964
- fieldMap: b,
1965
- loadFieldConfigs: k
1966
- } = r, s = io(), {
1967
- addCondition: l,
1968
- changeGroupRelation: u,
1969
- getConditions: c,
2196
+ setup(t, e) {
2197
+ const n = I(t.key), o = I(t.conditions), r = me(t), {
2198
+ convertToSingleControl: c,
2199
+ fields: l,
2200
+ fieldMap: m,
2201
+ loadFieldConfigs: w
2202
+ } = r, u = uo(), {
2203
+ addCondition: s,
2204
+ changeGroupRelation: d,
2205
+ getConditions: p,
1970
2206
  group: V,
1971
- insertConditionTo: E,
1972
- loadConditionGroup: O,
1973
- refresh: q,
1974
- removeCondition: T,
1975
- rootGroup: x,
1976
- unGroup: M
1977
- } = s, {
2207
+ insertConditionTo: M,
2208
+ loadConditionGroup: P,
2209
+ refresh: D,
2210
+ removeCondition: x,
2211
+ rootGroup: F,
2212
+ unGroup: N
2213
+ } = u, {
1978
2214
  createConditionValue: j
1979
- } = se(), $ = ao(e, t, s), {
2215
+ } = pe(), $ = co(t, e, u), {
1980
2216
  selectedItems: G,
1981
- toggleSelect: A
2217
+ toggleSelect: R
1982
2218
  } = $, {
1983
- getCompareOperators: z
1984
- } = ro(e, t, r);
1985
- k(!1), d.value = p(d.value), O(o.value);
1986
- function i(N) {
1987
- var H;
1988
- const L = ((H = b.get(N.fieldCode)) == null ? void 0 : H.editor) || {
2219
+ getCompareOperators: H
2220
+ } = lo(t, e, r);
2221
+ w(!1), l.value = c(l.value), P(o.value);
2222
+ function a(A) {
2223
+ var Q;
2224
+ const L = ((Q = m.get(A.fieldCode)) == null ? void 0 : Q.editor) || {
1989
2225
  type: "text"
1990
2226
  };
1991
- N.value = j(L.type, void 0), t.emit("labelCodeChange", N);
2227
+ A.value = j(L.type, void 0), e.emit("labelCodeChange", A);
1992
2228
  }
1993
- function m(N, L) {
1994
- t.emit("compareTypeChange", L);
2229
+ function g(A, L) {
2230
+ e.emit("compareTypeChange", L);
1995
2231
  }
1996
2232
  function f() {
1997
2233
  }
1998
- t.expose({
1999
- getConditions: c
2234
+ e.expose({
2235
+ getConditions: p
2000
2236
  });
2001
- function B(N, L) {
2002
- t.emit("valueChange", N, L);
2237
+ function B(A, L) {
2238
+ e.emit("valueChange", A, L);
2003
2239
  }
2004
- function a(N) {
2005
- return N.items.map((L) => {
2006
- var H;
2007
- return F("div", {
2240
+ function i(A) {
2241
+ return A.items.map((L) => {
2242
+ var Q;
2243
+ return k("div", {
2008
2244
  class: "condition-list-item",
2009
2245
  key: L.conditionId
2010
- }, [F("div", {
2246
+ }, [k("div", {
2011
2247
  class: "condition-list-item-type mr-3"
2012
- }, [F(K, {
2248
+ }, [k(te, {
2013
2249
  "value-field": "labelCode",
2014
2250
  "text-field": "name",
2015
2251
  "id-field": "id",
2016
- data: d.value,
2252
+ data: l.value,
2017
2253
  modelValue: L.fieldCode,
2018
- "onUpdate:modelValue": (U) => L.fieldCode = U,
2019
- onChange: (U) => i(L)
2020
- }, null)]), F("div", {
2254
+ "onUpdate:modelValue": (z) => L.fieldCode = z,
2255
+ onChange: (z) => a(L)
2256
+ }, null)]), k("div", {
2021
2257
  class: "condition-list-item-compare mr-3"
2022
- }, [F(K, {
2258
+ }, [k(te, {
2023
2259
  "value-field": "value",
2024
2260
  "text-field": "name",
2025
2261
  "id-field": "id",
2026
- data: z(L),
2262
+ data: H(L),
2027
2263
  modelValue: L.compareType,
2028
- "onUpdate:modelValue": (U) => L.compareType = U,
2029
- onChange: (U) => m(U, L)
2030
- }, null)]), F("div", {
2264
+ "onUpdate:modelValue": (z) => L.compareType = z,
2265
+ onChange: (z) => g(z, L)
2266
+ }, null)]), k("div", {
2031
2267
  class: "condition-list-item-control mr-3"
2032
- }, [F(Kn, {
2033
- editor: (H = b.get(L.fieldCode)) == null ? void 0 : H.editor,
2268
+ }, [k(oo, {
2269
+ editor: (Q = m.get(L.fieldCode)) == null ? void 0 : Q.editor,
2034
2270
  showLabel: !1,
2035
2271
  modelValue: L.value.value,
2036
- "onUpdate:modelValue": (U) => L.value.value = U,
2037
- onChange: (U) => {
2038
- B(U, L);
2272
+ "onUpdate:modelValue": (z) => L.value.value = z,
2273
+ onChange: (z) => {
2274
+ B(z, L);
2039
2275
  }
2040
- }, null)]), F("div", {
2276
+ }, null)]), k("div", {
2041
2277
  class: "condition-list-item-extend"
2042
- }, [F("span", {
2278
+ }, [k("span", {
2043
2279
  class: "f-icon f-icon-plus-sm mr-2",
2044
- onClick: () => E(L)
2045
- }, null), F("span", {
2280
+ onClick: () => M(L)
2281
+ }, null), k("span", {
2046
2282
  class: "f-icon f-icon-minus-sm",
2047
- onClick: () => T(L)
2048
- }, null)]), F("div", {
2283
+ onClick: () => x(L)
2284
+ }, null)]), k("div", {
2049
2285
  class: "custom-control custom-checkbox"
2050
- }, [F("input", {
2286
+ }, [k("input", {
2051
2287
  title: "selection",
2052
2288
  class: "custom-control-input",
2053
2289
  type: "checkbox",
2054
2290
  checked: G.value.has(L.conditionId)
2055
- }, null), F("label", {
2291
+ }, null), k("label", {
2056
2292
  class: "custom-control-label",
2057
- onClick: () => A(L)
2293
+ onClick: () => R(L)
2058
2294
  }, null)])]);
2059
2295
  });
2060
2296
  }
2061
- function C(N) {
2062
- return F("div", {
2297
+ function T(A) {
2298
+ return k("div", {
2063
2299
  class: "condition-list-relation"
2064
- }, [F("span", {
2300
+ }, [k("span", {
2065
2301
  class: "condition-list-relation-close f-icon-filter-cancel btn-link",
2066
- onClick: () => M(N)
2067
- }, null), F("span", {
2302
+ onClick: () => N(A)
2303
+ }, null), k("span", {
2068
2304
  class: "condition-list-relation-text btn-link",
2069
- onClick: () => u(N)
2070
- }, [N.relation === 1 ? "与" : "或"])]);
2305
+ onClick: () => d(A)
2306
+ }, [A.relation === 1 ? "与" : "或"])]);
2071
2307
  }
2072
- function S(N) {
2073
- return F("div", {
2308
+ function S(A) {
2309
+ return k("div", {
2074
2310
  class: "condition-list-content"
2075
- }, [F("div", {
2311
+ }, [k("div", {
2076
2312
  class: "condition-list-content-group"
2077
- }, [a(N), N.children && N.children.map((L) => S(L))]), C(N)]);
2313
+ }, [i(A), A.children && A.children.map((L) => S(L))]), T(A)]);
2078
2314
  }
2079
- function D() {
2315
+ function U() {
2080
2316
  V($.getSelectedGroupItem()), $.clear();
2081
2317
  }
2082
- function R() {
2083
- return F("div", {
2318
+ function q() {
2319
+ return k("div", {
2084
2320
  class: "condition-list-bottom"
2085
- }, [F("div", {
2321
+ }, [k("div", {
2086
2322
  class: "add-condition-btn mb-1 mr-3",
2087
- onClick: l
2088
- }, [F("span", {
2323
+ onClick: s
2324
+ }, [k("span", {
2089
2325
  class: "f-icon f-icon-filter-add"
2090
- }, null), F("span", {
2326
+ }, null), k("span", {
2091
2327
  class: "ml-1"
2092
- }, [_("添加条件")])]), F("div", {
2328
+ }, [Y("添加条件")])]), k("div", {
2093
2329
  class: "add-condition-btn mb-1",
2094
- onClick: D
2095
- }, [F("span", {
2330
+ onClick: U
2331
+ }, [k("span", {
2096
2332
  class: "f-icon f-icon-filter-grouping"
2097
- }, null), F("span", {
2333
+ }, null), k("span", {
2098
2334
  class: "ml-1"
2099
- }, [_("生成条件组")])]), F("div", {
2335
+ }, [Y("生成条件组")])]), k("div", {
2100
2336
  class: "condition-list-reset add-condition-btn",
2101
2337
  onClick: f
2102
- }, [_("重置")])]);
2338
+ }, [Y("重置")])]);
2103
2339
  }
2104
- return () => F("div", {
2340
+ return () => k("div", {
2105
2341
  class: "condition-list",
2106
2342
  key: n.value
2107
- }, [F("div", {
2343
+ }, [k("div", {
2108
2344
  class: "condition-list-body"
2109
- }, [S(x.value)]), R()]);
2345
+ }, [S(F.value)]), q()]);
2110
2346
  }
2111
2347
  });
2112
- Y.install = (e) => {
2113
- e.component(re.name, re).component(Y.name, Y);
2348
+ ee.install = (t) => {
2349
+ t.component(se.name, se).component(ee.name, ee);
2114
2350
  };
2115
2351
  export {
2116
- to as EnumType,
2117
- re as FConditionFields,
2118
- Y as FConditionList,
2119
- ge as ValueType,
2120
- ae as conditionProps,
2121
- Y as default,
2122
- io as useCondition
2352
+ ao as EnumType,
2353
+ se as FConditionFields,
2354
+ ee as FConditionList,
2355
+ be as ValueType,
2356
+ ce as conditionProps,
2357
+ ee as default,
2358
+ uo as useCondition
2123
2359
  };