@farris/ui-vue 1.2.7 → 1.2.8

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