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