@farris/ui-vue 1.2.9 → 1.3.0

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 (236) hide show
  1. package/components/accordion/index.esm.js +63 -63
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +402 -323
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +98 -96
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +66 -66
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +118 -118
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +539 -460
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +135 -135
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1007 -312
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +97 -97
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +778 -700
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +472 -329
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2231 -1055
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +79 -79
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6408 -5034
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4762 -3511
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3442 -2742
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-outline/index.esm.js +14 -13
  40. package/components/designer-outline/index.umd.cjs +1 -1
  41. package/components/dropdown/index.esm.js +73 -73
  42. package/components/dropdown/index.umd.cjs +2 -2
  43. package/components/dynamic-form/index.css +1 -0
  44. package/components/dynamic-form/index.esm.js +2597 -1141
  45. package/components/dynamic-form/index.umd.cjs +1 -1
  46. package/components/dynamic-resolver/index.esm.js +114 -71
  47. package/components/dynamic-resolver/index.umd.cjs +1 -1
  48. package/components/dynamic-view/index.esm.js +303 -290
  49. package/components/dynamic-view/index.umd.cjs +1 -1
  50. package/components/events-editor/index.esm.js +171 -171
  51. package/components/events-editor/index.umd.cjs +1 -1
  52. package/components/expression-editor/index.esm.js +65 -65
  53. package/components/expression-editor/index.umd.cjs +1 -1
  54. package/components/external-container/index.css +1 -1
  55. package/components/external-container/index.esm.js +3075 -2586
  56. package/components/external-container/index.umd.cjs +1 -1
  57. package/components/field-selector/index.css +1 -1
  58. package/components/field-selector/index.esm.js +5272 -8511
  59. package/components/field-selector/index.umd.cjs +1 -1
  60. package/components/filter-bar/index.css +1 -1
  61. package/components/filter-bar/index.esm.js +1726 -1822
  62. package/components/filter-bar/index.umd.cjs +1 -1
  63. package/components/image-cropper/index.esm.js +126 -126
  64. package/components/image-cropper/index.umd.cjs +1 -1
  65. package/components/input-group/index.esm.js +620 -540
  66. package/components/input-group/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +88 -88
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +71 -71
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.css +1 -1
  72. package/components/list-view/index.esm.js +3582 -2356
  73. package/components/list-view/index.umd.cjs +1 -1
  74. package/components/lookup/index.css +1 -1
  75. package/components/lookup/index.esm.js +10752 -8972
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.css +1 -1
  78. package/components/mapping-editor/index.esm.js +5601 -5329
  79. package/components/mapping-editor/index.umd.cjs +1 -1
  80. package/components/message-box/index.css +1 -1
  81. package/components/message-box/index.esm.js +511 -471
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.css +1 -1
  84. package/components/modal/index.esm.js +438 -398
  85. package/components/modal/index.umd.cjs +1 -1
  86. package/components/nav/index.esm.js +535 -452
  87. package/components/nav/index.umd.cjs +2 -2
  88. package/components/notify/index.esm.js +59 -53
  89. package/components/notify/index.umd.cjs +1 -1
  90. package/components/number-range/index.esm.js +556 -477
  91. package/components/number-range/index.umd.cjs +1 -1
  92. package/components/number-spinner/index.esm.js +504 -425
  93. package/components/number-spinner/index.umd.cjs +1 -1
  94. package/components/order/index.css +1 -1
  95. package/components/order/index.esm.js +1833 -1054
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +100 -100
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +899 -870
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +576 -487
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/popover/index.esm.js +71 -70
  104. package/components/popover/index.umd.cjs +1 -1
  105. package/components/progress/index.esm.js +73 -73
  106. package/components/progress/index.umd.cjs +2 -2
  107. package/components/property-editor/index.css +1 -1
  108. package/components/property-editor/index.esm.js +1916 -1220
  109. package/components/property-editor/index.umd.cjs +3 -3
  110. package/components/property-panel/index.esm.js +783 -886
  111. package/components/property-panel/index.umd.cjs +1 -1
  112. package/components/query-solution/index.css +1 -1
  113. package/components/query-solution/index.esm.js +3632 -2556
  114. package/components/query-solution/index.umd.cjs +1 -1
  115. package/components/radio-button/index.esm.js +72 -72
  116. package/components/radio-button/index.umd.cjs +1 -1
  117. package/components/radio-group/index.esm.js +484 -405
  118. package/components/radio-group/index.umd.cjs +1 -1
  119. package/components/rate/index.esm.js +152 -152
  120. package/components/rate/index.umd.cjs +1 -1
  121. package/components/response-layout/index.esm.js +73 -73
  122. package/components/response-layout/index.umd.cjs +1 -1
  123. package/components/response-layout-editor/index.css +1 -1
  124. package/components/response-layout-editor/index.esm.js +1081 -1043
  125. package/components/response-layout-editor/index.umd.cjs +1 -1
  126. package/components/response-toolbar/index.esm.js +753 -738
  127. package/components/response-toolbar/index.umd.cjs +1 -1
  128. package/components/schema-selector/index.css +1 -1
  129. package/components/schema-selector/index.esm.js +4418 -4177
  130. package/components/schema-selector/index.umd.cjs +2 -2
  131. package/components/search-box/index.esm.js +119 -119
  132. package/components/search-box/index.umd.cjs +1 -1
  133. package/components/section/index.esm.js +92 -91
  134. package/components/section/index.umd.cjs +1 -1
  135. package/components/smoke-detector/index.esm.js +59 -59
  136. package/components/smoke-detector/index.umd.cjs +1 -1
  137. package/components/splitter/index.esm.js +103 -103
  138. package/components/splitter/index.umd.cjs +1 -1
  139. package/components/step/index.esm.js +85 -85
  140. package/components/step/index.umd.cjs +1 -1
  141. package/components/switch/index.esm.js +457 -378
  142. package/components/switch/index.umd.cjs +1 -1
  143. package/components/tabs/index.css +1 -1
  144. package/components/tabs/index.esm.js +1696 -1617
  145. package/components/tabs/index.umd.cjs +1 -1
  146. package/components/tags/index.esm.js +53 -53
  147. package/components/tags/index.umd.cjs +1 -1
  148. package/components/text/index.esm.js +268 -268
  149. package/components/text/index.umd.cjs +1 -1
  150. package/components/textarea/index.esm.js +420 -341
  151. package/components/textarea/index.umd.cjs +1 -1
  152. package/components/time-picker/index.css +1 -1
  153. package/components/time-picker/index.esm.js +1062 -981
  154. package/components/time-picker/index.umd.cjs +1 -1
  155. package/components/transfer/index.css +1 -1
  156. package/components/transfer/index.esm.js +381 -379
  157. package/components/transfer/index.umd.cjs +1 -1
  158. package/components/tree-grid/index.css +1 -1
  159. package/components/tree-grid/index.esm.js +5252 -9560
  160. package/components/tree-grid/index.umd.cjs +1 -1
  161. package/components/tree-view/index.css +1 -0
  162. package/components/tree-view/index.esm.js +3920 -2692
  163. package/components/tree-view/index.umd.cjs +1 -1
  164. package/components/uploader/index.esm.js +373 -367
  165. package/components/uploader/index.umd.cjs +2 -2
  166. package/components/verify-detail/index.esm.js +92 -92
  167. package/components/verify-detail/index.umd.cjs +1 -1
  168. package/components/video/index.esm.js +597 -417
  169. package/components/video/index.umd.cjs +1 -1
  170. package/components/weather/index.esm.js +251 -251
  171. package/components/weather/index.umd.cjs +4 -4
  172. package/farris.all.esm.js +17125 -16176
  173. package/farris.all.umd.cjs +8 -8
  174. package/index.css +1 -1
  175. package/package.json +1 -1
  176. package/types/capsule/src/capsule.props.d.ts +2 -2
  177. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  178. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  179. package/types/common/index.d.ts +1 -0
  180. package/types/common/types.d.ts +1 -1
  181. package/types/common/utils/encrypt.d.ts +2 -0
  182. package/types/component/src/component.props.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +1 -1
  184. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  185. package/types/components.d.ts +1 -0
  186. package/types/data-grid/index.d.ts +5 -2
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  189. package/types/data-view/composition/types.d.ts +18 -1
  190. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  191. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  193. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  194. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  195. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  196. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  197. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  198. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  199. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  200. package/types/dynamic-form/src/types.d.ts +12 -1
  201. package/types/dynamic-resolver/index.d.ts +1 -0
  202. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  203. package/types/dynamic-resolver/src/types.d.ts +9 -0
  204. package/types/dynamic-view/index.d.ts +1 -0
  205. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  206. package/types/index.d.ts +2 -0
  207. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  208. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  209. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  210. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  211. package/types/lookup/src/composition/types.d.ts +8 -0
  212. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  213. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  214. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  215. package/types/lookup/src/composition/use-http.d.ts +9 -5
  216. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  217. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  218. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  219. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  220. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  221. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  222. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  223. package/types/modal/src/modal.component.d.ts +3 -0
  224. package/types/modal/src/modal.props.d.ts +4 -0
  225. package/types/page-header/src/page-header.props.d.ts +1 -0
  226. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  227. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  228. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  229. package/types/response-layout-editor/src/type.d.ts +21 -0
  230. package/types/tabs/src/tabs.props.d.ts +1 -0
  231. package/types/tree-grid/index.d.ts +8 -2
  232. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  233. package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
  234. package/types/modal/src/composition/use-esc.d.ts +0 -1
  235. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  236. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,71 +1,74 @@
1
- var Te = Object.defineProperty;
2
- var ke = (t, e, n) => e in t ? Te(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var y = (t, e, n) => ke(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { ref as I, computed as O, watch as W, defineComponent as X, onBeforeUnmount as we, createVNode as k, createTextVNode as Y, onMounted as _, nextTick as re, reactive as xe, withDirectives as Fe, resolveDirective as Be, Fragment as ae, mergeProps as Ie } from "vue";
5
- import Se, { FDynamicFormGroup as Ve } from "../dynamic-form/index.esm.js";
6
- import { cloneDeep as J } from "lodash-es";
7
- import te from "../combo-list/index.esm.js";
1
+ var at = Object.defineProperty;
2
+ var lt = (t, e, n) => e in t ? at(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var S = (t, e, n) => lt(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { ref as i, computed as B, watch as J, defineComponent as ee, onBeforeUnmount as st, createVNode as d, createTextVNode as le, onMounted as oe, nextTick as ve, reactive as Z, withDirectives as rt, resolveDirective as it, Fragment as se, mergeProps as ye, onUnmounted as Se, Teleport as ut, Transition as ct, shallowRef as dt, createApp as pt, render as me, h as mt, cloneVNode as ft } from "vue";
5
+ import vt, { FDynamicFormGroup as ht } from "../dynamic-form/index.esm.js";
6
+ import { cloneDeep as ne, isPlainObject as xe } from "lodash-es";
7
+ import he from "../combo-list/index.esm.js";
8
+ import "../property-panel/index.esm.js/src/composition/entity/base-property";
9
+ import "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
10
+ import "../designer-canvas/index.esm.js/src/composition/dg-control";
8
11
  import "bignumber.js";
9
- import Ee, { useNumber as Me, useFormat as Ne, useSpinner as Oe, useTextBox as Pe } from "../number-spinner/index.esm.js";
10
- import je from "../accordion/index.esm.js";
11
- import Le from "../avatar/index.esm.js";
12
- import Re from "../button-edit/index.esm.js";
13
- import Ae from "../button-group/index.esm.js";
14
- import $e from "../calendar/index.esm.js";
15
- import Ge from "../capsule/index.esm.js";
16
- import qe from "../checkbox/index.esm.js";
17
- import De from "../combo-tree/index.esm.js";
18
- import Ue from "../component/index.esm.js";
19
- import We from "../color-picker/index.esm.js";
20
- import He from "../content-container/index.esm.js";
21
- import ze from "../date-picker/index.esm.js";
22
- import Qe from "../data-grid/index.esm.js";
23
- import Ze from "../dropdown/index.esm.js";
24
- import Je from "../events-editor/index.esm.js";
25
- import Xe from "../filter-bar/index.esm.js";
26
- import Ye from "../field-selector/index.esm.js";
27
- import _e from "../image-cropper/index.esm.js";
28
- import Ke from "../input-group/index.esm.js";
29
- import et from "../layout/index.esm.js";
30
- import tt from "../list-nav/index.esm.js";
31
- import nt from "../list-view/index.esm.js";
32
- import ot from "../lookup/index.esm.js";
33
- import rt from "../mapping-editor/index.esm.js";
34
- import at from "../nav/index.esm.js";
35
- import it from "../number-range/index.esm.js";
36
- import st from "../order/index.esm.js";
37
- import lt from "../page-header/index.esm.js";
38
- import ut from "../page-footer/index.esm.js";
39
- import ct from "../pagination/index.esm.js";
40
- import dt from "../progress/index.esm.js";
41
- import pt from "../query-solution/index.esm.js";
42
- import mt from "../radio-group/index.esm.js";
43
- import ft from "../rate/index.esm.js";
44
- import gt from "../response-toolbar/index.esm.js";
45
- import ht from "../response-layout/index.esm.js";
46
- import vt from "../response-layout-editor/index.esm.js";
47
- import yt from "../search-box/index.esm.js";
48
- import bt from "../section/index.esm.js";
49
- import Ct from "../smoke-detector/index.esm.js";
50
- import Tt from "../splitter/index.esm.js";
51
- import kt from "../step/index.esm.js";
52
- import wt from "../switch/index.esm.js";
53
- import xt from "../tabs/index.esm.js";
54
- import Ft from "../tags/index.esm.js";
55
- import Bt from "../text/index.esm.js";
56
- import It from "../time-picker/index.esm.js";
57
- import St from "../transfer/index.esm.js";
58
- import Vt from "../tree-view/index.esm.js";
59
- import Et from "../uploader/index.esm.js";
60
- import Mt from "../verify-detail/index.esm.js";
61
- import Nt from "../weather/index.esm.js";
62
- import Ot from "../video/index.esm.js";
63
- import Pt from "../textarea/index.esm.js";
64
- import jt from "../schema-selector/index.esm.js";
65
- import Lt from "../tree-grid/index.esm.js";
12
+ import gt, { useNumber as yt, useFormat as bt, useSpinner as Ct, useTextBox as wt } from "../number-spinner/index.esm.js";
13
+ import xt from "../accordion/index.esm.js";
14
+ import Tt from "../avatar/index.esm.js";
15
+ import kt from "../button-edit/index.esm.js";
16
+ import Bt from "../button-group/index.esm.js";
17
+ import Ft from "../calendar/index.esm.js";
18
+ import St from "../capsule/index.esm.js";
19
+ import Mt from "../checkbox/index.esm.js";
20
+ import Et from "../combo-tree/index.esm.js";
21
+ import It from "../component/index.esm.js";
22
+ import Vt from "../color-picker/index.esm.js";
23
+ import Rt from "../content-container/index.esm.js";
24
+ import Ot from "../date-picker/index.esm.js";
25
+ import jt from "../data-grid/index.esm.js";
26
+ import Lt from "../dropdown/index.esm.js";
27
+ import Pt from "../events-editor/index.esm.js";
28
+ import Nt from "../filter-bar/index.esm.js";
29
+ import zt from "../field-selector/index.esm.js";
30
+ import $t from "../image-cropper/index.esm.js";
31
+ import At from "../input-group/index.esm.js";
32
+ import Ht from "../layout/index.esm.js";
33
+ import Dt from "../list-nav/index.esm.js";
34
+ import Gt from "../list-view/index.esm.js";
35
+ import qt from "../lookup/index.esm.js";
36
+ import Ut from "../mapping-editor/index.esm.js";
37
+ import Wt from "../nav/index.esm.js";
38
+ import Xt from "../number-range/index.esm.js";
39
+ import Yt from "../order/index.esm.js";
40
+ import Jt from "../page-header/index.esm.js";
41
+ import Qt from "../page-footer/index.esm.js";
42
+ import Zt from "../pagination/index.esm.js";
43
+ import Kt from "../progress/index.esm.js";
44
+ import _t from "../query-solution/index.esm.js";
45
+ import en from "../radio-group/index.esm.js";
46
+ import tn from "../rate/index.esm.js";
47
+ import nn from "../response-toolbar/index.esm.js";
48
+ import on from "../response-layout/index.esm.js";
49
+ import an from "../response-layout-editor/index.esm.js";
50
+ import ln from "../search-box/index.esm.js";
51
+ import sn from "../section/index.esm.js";
52
+ import rn from "../smoke-detector/index.esm.js";
53
+ import un from "../splitter/index.esm.js";
54
+ import cn from "../step/index.esm.js";
55
+ import dn from "../switch/index.esm.js";
56
+ import pn from "../tabs/index.esm.js";
57
+ import mn from "../tags/index.esm.js";
58
+ import fn from "../text/index.esm.js";
59
+ import vn from "../time-picker/index.esm.js";
60
+ import hn from "../transfer/index.esm.js";
61
+ import gn from "../tree-view/index.esm.js";
62
+ import yn from "../uploader/index.esm.js";
63
+ import bn from "../verify-detail/index.esm.js";
64
+ import Cn from "../weather/index.esm.js";
65
+ import wn from "../video/index.esm.js";
66
+ import xn from "../textarea/index.esm.js";
67
+ import Tn from "../schema-selector/index.esm.js";
68
+ import kn from "../tree-grid/index.esm.js";
66
69
  import "../external-container/index.esm.js";
67
- import "../dynamic-resolver/index.esm.js";
68
- const ce = {
70
+ import { createPropsResolver as Bn } from "../dynamic-resolver/index.esm.js";
71
+ const Me = {
69
72
  conditions: { type: Array, default: [] },
70
73
  fields: { type: Array, default: [] },
71
74
  key: { type: String, default: "" },
@@ -74,11 +77,11 @@ const ce = {
74
77
  */
75
78
  isControlInline: { type: Boolean, default: !0 }
76
79
  };
77
- class Rt {
80
+ class Fn {
78
81
  constructor(e = { value: [] }) {
79
- y(this, "editorType", "check-box");
80
- y(this, "value");
81
- y(this, "valueType", "boolean");
82
+ S(this, "editorType", "check-box");
83
+ S(this, "value");
84
+ S(this, "valueType", "boolean");
82
85
  this.value = e.value;
83
86
  }
84
87
  clear() {
@@ -94,13 +97,13 @@ class Rt {
94
97
  return this.value.length === 0;
95
98
  }
96
99
  }
97
- class At {
100
+ class Sn {
98
101
  constructor(e = { textValue: "", value: "", valueField: "" }) {
99
- y(this, "editorType", "combo-lookup");
100
- y(this, "textValue");
101
- y(this, "value");
102
- y(this, "valueField");
103
- y(this, "valueType", "text");
102
+ S(this, "editorType", "combo-lookup");
103
+ S(this, "textValue");
104
+ S(this, "value");
105
+ S(this, "valueField");
106
+ S(this, "valueType", "text");
104
107
  this.textValue = e.textValue, this.value = e.value, this.valueField = e.valueField;
105
108
  }
106
109
  clear() {
@@ -114,11 +117,11 @@ class At {
114
117
  return e[n[0]];
115
118
  }
116
119
  getTextValue(e) {
117
- const n = e.split("."), o = this.value.split(",").map((r) => this.getPropValue(r, J(n)));
120
+ const n = e.split("."), o = this.value.split(",").map((a) => this.getPropValue(a, ne(n)));
118
121
  return o && o.length ? o.join(",") : "";
119
122
  }
120
123
  getValue() {
121
- const e = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, J(e)));
124
+ const e = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, ne(e)));
122
125
  return n && n.length ? n.join(",") : "";
123
126
  }
124
127
  setValue(e) {
@@ -128,11 +131,11 @@ class At {
128
131
  return !this.valueField;
129
132
  }
130
133
  }
131
- class $t {
134
+ class Mn {
132
135
  constructor(e = { value: "" }) {
133
- y(this, "editorType", "date-picker");
134
- y(this, "value");
135
- y(this, "valueType", "datetime");
136
+ S(this, "editorType", "date-picker");
137
+ S(this, "value");
138
+ S(this, "valueType", "datetime");
136
139
  this.value = e.value;
137
140
  }
138
141
  setValue(e) {
@@ -148,12 +151,12 @@ class $t {
148
151
  this.value = void 0;
149
152
  }
150
153
  }
151
- class ie {
154
+ class Te {
152
155
  constructor(e = { begin: "", end: "" }) {
153
- y(this, "editorType", "date-range");
154
- y(this, "begin", "");
155
- y(this, "end", "");
156
- y(this, "valueType", "datetime");
156
+ S(this, "editorType", "date-range");
157
+ S(this, "begin", "");
158
+ S(this, "end", "");
159
+ S(this, "valueType", "datetime");
157
160
  this.begin = e.begin, this.end = e.end;
158
161
  }
159
162
  clear() {
@@ -169,11 +172,11 @@ class ie {
169
172
  return !this.begin || !this.end;
170
173
  }
171
174
  }
172
- class Gt {
175
+ class En {
173
176
  constructor(e = { value: "" }) {
174
- y(this, "editorType", "datetime-picker");
175
- y(this, "value");
176
- y(this, "valueType", "datetime");
177
+ S(this, "editorType", "datetime-picker");
178
+ S(this, "value");
179
+ S(this, "valueType", "datetime");
177
180
  this.value = e.value;
178
181
  }
179
182
  clear() {
@@ -189,14 +192,14 @@ class Gt {
189
192
  return !this.value;
190
193
  }
191
194
  }
192
- class qt {
195
+ class In {
193
196
  // 旧结构无,新结构为选中的value值,多选是以,分割的字符串
194
197
  constructor(e = { value: "", dispalyText: "" }) {
195
- y(this, "editorType", "combo-list");
196
- y(this, "value");
198
+ S(this, "editorType", "combo-list");
199
+ S(this, "value");
197
200
  // 旧结构{Type: '', Content: {value: string, name: string}} 新结构Array[{value: string, name: string}]
198
- y(this, "valueType", "enum");
199
- y(this, "displayText");
201
+ S(this, "valueType", "enum");
202
+ S(this, "displayText");
200
203
  this.displayText = e.dispalyText, this.value = e.value;
201
204
  }
202
205
  clear() {
@@ -212,18 +215,18 @@ class qt {
212
215
  return !this.displayText;
213
216
  }
214
217
  }
215
- class Dt {
218
+ class Vn {
216
219
  constructor(e = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
217
- y(this, "editorType", "input-group");
220
+ S(this, "editorType", "input-group");
218
221
  // 通过弹窗返回的若干个值对象构成的数组
219
- y(this, "value");
220
- y(this, "valueType", "text");
222
+ S(this, "value");
223
+ S(this, "valueType", "text");
221
224
  // 控件内显示的值
222
- y(this, "displayText");
225
+ S(this, "displayText");
223
226
  // 弹窗模式下,取列表中哪个字段的值映射到当前字段
224
- y(this, "valueField");
227
+ S(this, "valueField");
225
228
  // 是否是手动输入的值
226
- y(this, "isInputText");
229
+ S(this, "isInputText");
227
230
  this.value = e.value, this.displayText = e.displayText, this.valueField = e.displayField, this.isInputText = e.isInputText;
228
231
  }
229
232
  clear() {
@@ -237,11 +240,11 @@ class Dt {
237
240
  return e[n[0]];
238
241
  }
239
242
  getTextValue(e) {
240
- const n = e.split("."), o = this.value.map((r) => this.getPropValue(r, J(n)));
243
+ const n = e.split("."), o = this.value.map((a) => this.getPropValue(a, ne(n)));
241
244
  return o && o.length ? o.join(",") : "";
242
245
  }
243
246
  getValue() {
244
- const e = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, J(e)));
247
+ const e = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, ne(e)));
245
248
  return n && n.length ? n.join(",") : "";
246
249
  }
247
250
  setValue(e) {
@@ -251,15 +254,15 @@ class Dt {
251
254
  return !this.displayText;
252
255
  }
253
256
  }
254
- class Ut {
257
+ class Rn {
255
258
  constructor(e = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
256
- y(this, "editorType", "lookup");
257
- y(this, "textValue");
258
- y(this, "value");
259
- y(this, "valueField");
260
- y(this, "valueType", "text");
259
+ S(this, "editorType", "lookup");
260
+ S(this, "textValue");
261
+ S(this, "value");
262
+ S(this, "valueField");
263
+ S(this, "valueType", "text");
261
264
  // 帮助的值是否为手动输入的任意值,对应帮助的任意输入属性nosearch
262
- y(this, "isInputText");
265
+ S(this, "isInputText");
263
266
  this.value = e.value, this.valueField = e.valueField, this.textValue = e.textValue, this.isInputText = e.isInputText;
264
267
  }
265
268
  clear() {
@@ -273,7 +276,7 @@ class Ut {
273
276
  return e[n[0]];
274
277
  }
275
278
  getTextValue(e) {
276
- const n = e.split("."), o = this.value.map((r) => this.getPropValue(r, n));
279
+ const n = e.split("."), o = this.value.map((a) => this.getPropValue(a, n));
277
280
  return o && o.length ? o.join(",") : "";
278
281
  }
279
282
  getValue() {
@@ -287,11 +290,11 @@ class Ut {
287
290
  return !this.value.length;
288
291
  }
289
292
  }
290
- class Wt {
293
+ class On {
291
294
  constructor(e = { value: "" }) {
292
- y(this, "editorType", "month-picker");
293
- y(this, "value");
294
- y(this, "valueType", "datetime");
295
+ S(this, "editorType", "month-picker");
296
+ S(this, "value");
297
+ S(this, "valueType", "datetime");
295
298
  this.value = e.value;
296
299
  }
297
300
  setValue(e) {
@@ -307,12 +310,12 @@ class Wt {
307
310
  return !this.value;
308
311
  }
309
312
  }
310
- class Ht {
313
+ class jn {
311
314
  constructor(e = { begin: "", end: "" }) {
312
- y(this, "editorType", "month-range");
313
- y(this, "begin");
314
- y(this, "end");
315
- y(this, "valueType", "datetime");
315
+ S(this, "editorType", "month-range");
316
+ S(this, "begin");
317
+ S(this, "end");
318
+ S(this, "valueType", "datetime");
316
319
  this.begin = e.begin, this.end = e.end;
317
320
  }
318
321
  clear() {
@@ -328,12 +331,12 @@ class Ht {
328
331
  return !this.begin || !this.end;
329
332
  }
330
333
  }
331
- class zt {
334
+ class Ln {
332
335
  constructor(e = { begin: null, end: null }) {
333
- y(this, "editorType", "number-range");
334
- y(this, "begin");
335
- y(this, "end");
336
- y(this, "valueType", "number");
336
+ S(this, "editorType", "number-range");
337
+ S(this, "begin");
338
+ S(this, "end");
339
+ S(this, "valueType", "number");
337
340
  this.begin = e.begin == null ? null : parseFloat(e.begin), this.end = e.end == null ? null : parseFloat(e.end);
338
341
  }
339
342
  clear() {
@@ -352,11 +355,11 @@ class zt {
352
355
  return this.begin == null && this.end == null;
353
356
  }
354
357
  }
355
- class Qt {
358
+ class Pn {
356
359
  constructor(e = { value: "" }) {
357
- y(this, "editorType", "number-spinner");
358
- y(this, "value");
359
- y(this, "valueType", "number");
360
+ S(this, "editorType", "number-spinner");
361
+ S(this, "value");
362
+ S(this, "valueType", "number");
360
363
  this.value = e.value == null ? null : parseFloat(e.value);
361
364
  }
362
365
  clear() {
@@ -372,11 +375,11 @@ class Qt {
372
375
  return this.value == null;
373
376
  }
374
377
  }
375
- class Zt {
378
+ class Nn {
376
379
  constructor(e = { value: null }) {
377
- y(this, "editorType", "radio-group");
378
- y(this, "value");
379
- y(this, "valueType", "enum");
380
+ S(this, "editorType", "radio-group");
381
+ S(this, "value");
382
+ S(this, "valueType", "enum");
380
383
  this.value = e.value;
381
384
  }
382
385
  clear() {
@@ -392,11 +395,11 @@ class Zt {
392
395
  return !this.value;
393
396
  }
394
397
  }
395
- class de {
398
+ class Ee {
396
399
  constructor(e = { value: "" }) {
397
- y(this, "editorType", "text");
398
- y(this, "value");
399
- y(this, "valueType", "text");
400
+ S(this, "editorType", "text");
401
+ S(this, "value");
402
+ S(this, "valueType", "text");
400
403
  this.value = e.value;
401
404
  }
402
405
  clear() {
@@ -412,235 +415,235 @@ class de {
412
415
  return !this.value;
413
416
  }
414
417
  }
415
- function pe() {
418
+ function Ie() {
416
419
  function t(e, n) {
417
420
  switch (e) {
418
421
  case "check-box":
419
- return new Rt(n);
422
+ return new Fn(n);
420
423
  case "combo-list":
421
- return new qt(n);
424
+ return new In(n);
422
425
  case "combo-lookup":
423
- return new At(n);
426
+ return new Sn(n);
424
427
  case "input-group":
425
- return new Dt(n);
428
+ return new Vn(n);
426
429
  case "date-picker":
427
- return new $t(n);
430
+ return new Mn(n);
428
431
  case "date-range":
429
- return new ie(n);
432
+ return new Te(n);
430
433
  case "datetime-picker":
431
- return new Gt(n);
434
+ return new En(n);
432
435
  case "datetime-range":
433
- return new ie(n);
436
+ return new Te(n);
434
437
  case "lookup":
435
- return new Ut(n);
438
+ return new Rn(n);
436
439
  case "month-picker":
437
- return new Wt(n);
440
+ return new On(n);
438
441
  case "month-range":
439
- return new Ht(n);
442
+ return new jn(n);
440
443
  case "number-range":
441
- return new zt(n);
444
+ return new Ln(n);
442
445
  case "number-spinner":
443
- return new Qt(n);
446
+ return new Pn(n);
444
447
  case "radio-group":
445
- return new Zt(n);
448
+ return new Nn(n);
446
449
  default:
447
- return new de(n);
450
+ return new Ee(n);
448
451
  }
449
452
  }
450
453
  return { createConditionValue: t };
451
454
  }
452
- function me(t, e) {
453
- const n = I(t.fields), o = I([]), r = /* @__PURE__ */ new Map(), { createConditionValue: c } = pe();
454
- function l(s) {
455
- switch (s.editor ? s.editor.type : "input-group") {
455
+ function Ve(t, e) {
456
+ const n = i(t.fields), o = i([]), a = /* @__PURE__ */ new Map(), { createConditionValue: r } = Ie();
457
+ function s(c) {
458
+ switch (c.editor ? c.editor.type : "input-group") {
456
459
  case "date-range":
457
- s.editor.type = "date-picker";
460
+ c.editor.type = "date-picker";
458
461
  break;
459
462
  case "datetime-range":
460
- s.editor.type = "datetime-picker";
463
+ c.editor.type = "datetime-picker";
461
464
  break;
462
465
  case "number-range":
463
- s.editor.type = "number-spinner";
466
+ c.editor.type = "number-spinner";
464
467
  break;
465
468
  }
466
- return s.editor;
469
+ return c.editor;
467
470
  }
468
- function m(s) {
469
- return s.map((p) => Object.assign({}, p)).map((p) => (p.editor = l(p), p));
471
+ function u(c) {
472
+ return c.map((v) => Object.assign({}, v)).map((v) => (v.editor = s(v), v));
470
473
  }
471
- function w(s = !0) {
472
- n.value.reduce((d, p) => (s || (p.editor = l(p)), d.set(p.labelCode, p), d), r);
474
+ function p(c = !0) {
475
+ n.value.reduce((m, v) => (c || (v.editor = s(v)), m.set(v.labelCode, v), m), a);
473
476
  }
474
- function u(s) {
475
- return s.forEach((d) => {
476
- if (d && typeof d.valueConfig == "object") {
477
- const p = r.get(d.fieldCode);
478
- d.value = c(p.editor.type, d.valueConfig.content);
477
+ function l(c) {
478
+ return c.forEach((m) => {
479
+ if (m && typeof m.valueConfig == "object") {
480
+ const v = a.get(m.fieldCode);
481
+ m.value = r(v.editor.type, m.valueConfig.content);
479
482
  }
480
- }), s;
483
+ }), c;
481
484
  }
482
- return { convertToSingleControl: m, fields: n, fieldMap: r, fieldConditions: o, loadFieldConfigs: w, initialConditionValue: u };
485
+ return { convertToSingleControl: u, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: p, initialConditionValue: l };
483
486
  }
484
- function Jt(t, e, n) {
485
- const o = I(null), r = I(n), c = I(0), l = O(() => u(c.value));
486
- function m() {
487
- r.value && (o.value = new ResizeObserver(w((s) => {
488
- const d = s[0];
489
- c.value = d.contentRect.width;
490
- })), o.value.observe(r.value));
491
- }
492
- function w(s, d) {
493
- let p = null;
487
+ function zn(t, e, n) {
488
+ const o = i(null), a = i(n), r = i(0), s = B(() => l(r.value));
489
+ function u() {
490
+ a.value && (o.value = new ResizeObserver(p((c) => {
491
+ const m = c[0];
492
+ r.value = m.contentRect.width;
493
+ })), o.value.observe(a.value));
494
+ }
495
+ function p(c, m) {
496
+ let v = null;
494
497
  return function() {
495
- const V = arguments;
496
- p || (p = setTimeout(() => {
497
- p = null;
498
- }, 500), s(...V));
498
+ const k = arguments;
499
+ v || (v = setTimeout(() => {
500
+ v = null;
501
+ }, 500), c(...k));
499
502
  };
500
503
  }
501
- function u(s) {
502
- let p = "col-12";
503
- return s > 250 * 6 ? p = "col-2" : s > 250 * 4 ? p = "col-3" : s > 250 * 3 ? p = "col-4" : s > 250 * 2 && (p = "col-6"), p;
504
+ function l(c) {
505
+ let v = "col-12";
506
+ return c > 250 * 6 ? v = "col-2" : c > 250 * 4 ? v = "col-3" : c > 250 * 3 ? v = "col-4" : c > 250 * 2 && (v = "col-6"), v;
504
507
  }
505
- return W([n], ([s]) => {
506
- r.value = s, m();
508
+ return J([n], ([c]) => {
509
+ a.value = c, u();
507
510
  }), {
508
- conditionClass: l,
511
+ conditionClass: s,
509
512
  resizeObserver: o
510
513
  };
511
514
  }
512
- const se = /* @__PURE__ */ X({
515
+ const ke = /* @__PURE__ */ ee({
513
516
  name: "FConditionFields",
514
- props: ce,
517
+ props: Me,
515
518
  emits: ["valueChange", "blur", "focus", "click", "input"],
516
519
  setup(t, e) {
517
- const n = I(), o = I(t.key), r = I(t.isControlInline), c = I(t.conditions), l = me(t), {
518
- initialConditionValue: m,
519
- fieldMap: w,
520
- loadFieldConfigs: u
521
- } = l, s = Jt(t, e, n), {
522
- conditionClass: d,
523
- resizeObserver: p
524
- } = s;
525
- u(!0), m(c.value), we(() => {
526
- var x;
527
- (x = p.value) == null || x.unobserve(n.value);
528
- }), W(() => t.conditions, () => {
529
- c.value = t.conditions;
520
+ const n = i(), o = i(t.key), a = i(t.isControlInline), r = i(t.conditions), s = Ve(t), {
521
+ initialConditionValue: u,
522
+ fieldMap: p,
523
+ loadFieldConfigs: l
524
+ } = s, c = zn(t, e, n), {
525
+ conditionClass: m,
526
+ resizeObserver: v
527
+ } = c;
528
+ l(!0), u(r.value), st(() => {
529
+ var h;
530
+ (h = v.value) == null || h.unobserve(n.value);
531
+ }), J(() => t.conditions, () => {
532
+ r.value = t.conditions;
530
533
  });
531
- const V = O(() => ({
534
+ const k = B(() => ({
532
535
  // row: true,
533
536
  "f-utils-flex-row-wrap": !0,
534
537
  "farris-form": !0,
535
- "farris-form-controls-inline": r.value
536
- })), M = O(() => d.value);
537
- function P(x, F) {
538
- e.emit("valueChange", x, F);
538
+ "farris-form-controls-inline": a.value
539
+ })), E = B(() => m.value);
540
+ function N(h, b) {
541
+ e.emit("valueChange", h, b);
539
542
  }
540
- function D() {
541
- return c.value.map((x) => {
542
- var F;
543
- return k(Ve, {
544
- customClass: M.value,
545
- label: x.fieldName,
546
- editor: (F = w.get(x.fieldCode)) == null ? void 0 : F.editor,
547
- modelValue: x.value.value,
548
- "onUpdate:modelValue": (N) => x.value.value = N,
549
- onChange: (N) => {
550
- P(N, x);
543
+ function $() {
544
+ return r.value.map((h) => {
545
+ var b;
546
+ return d(ht, {
547
+ customClass: E.value,
548
+ label: h.fieldName,
549
+ editor: (b = p.get(h.fieldCode)) == null ? void 0 : b.editor,
550
+ modelValue: h.value.value,
551
+ "onUpdate:modelValue": (P) => h.value.value = P,
552
+ onChange: (P) => {
553
+ N(P, h);
551
554
  }
552
555
  }, null);
553
556
  });
554
557
  }
555
- return () => k("div", {
556
- class: V.value,
558
+ return () => d("div", {
559
+ class: k.value,
557
560
  key: o.value,
558
561
  ref: n
559
- }, [D()]);
560
- }
561
- }), Xt = {}, Yt = {};
562
- function fe(t) {
563
- const { properties: e, title: n, ignore: o } = t, r = o && Array.isArray(o), c = Object.keys(e).reduce((l, m) => ((!r || !o.find((w) => w == m)) && (l[m] = e[m].type === "object" && e[m].properties ? fe(e[m]) : J(e[m].default)), l), {});
564
- return (!r || !o.find((l) => l == "id")) && (c.id = `${n}-${Date.now()}`), c;
565
- }
566
- function _t(t, e) {
567
- const n = fe(e);
568
- return Object.keys(t).reduce((o, r) => (o[r] && typeof o[r] == "object" ? Object.assign(o[r], t[r]) : o[r] = t[r], o), n), n;
569
- }
570
- function Kt(t, e) {
571
- return Object.keys(t).filter((o) => t[o] != null).reduce((o, r) => {
572
- if (e.has(r)) {
573
- const c = e.get(r);
574
- if (typeof c == "string")
575
- o[c] = t[r];
562
+ }, [$()]);
563
+ }
564
+ }), $n = {}, An = {};
565
+ function Re(t) {
566
+ const { properties: e, title: n, ignore: o } = t, a = o && Array.isArray(o), r = Object.keys(e).reduce((s, u) => ((!a || !o.find((p) => p == u)) && (s[u] = e[u].type === "object" && e[u].properties ? Re(e[u]) : ne(e[u].default)), s), {});
567
+ return (!a || !o.find((s) => s == "id")) && (r.id = `${n}-${Date.now()}`), r;
568
+ }
569
+ function Hn(t, e) {
570
+ const n = Re(e);
571
+ return Object.keys(t).reduce((o, a) => (o[a] && xe(o[a]) && xe(t[a]) ? Object.assign(o[a], t[a]) : o[a] = t[a], o), n), n;
572
+ }
573
+ function Dn(t, e) {
574
+ return Object.keys(t).filter((o) => t[o] != null).reduce((o, a) => {
575
+ if (e.has(a)) {
576
+ const r = e.get(a);
577
+ if (typeof r == "string")
578
+ o[r] = t[a];
576
579
  else {
577
- const l = c(r, t[r], t);
578
- Object.assign(o, l);
580
+ const s = r(a, t[a], t);
581
+ Object.assign(o, s);
579
582
  }
580
583
  } else
581
- o[r] = t[r];
584
+ o[a] = t[a];
582
585
  return o;
583
586
  }, {});
584
587
  }
585
- function en(t, e, n = /* @__PURE__ */ new Map()) {
586
- const o = _t(t, e);
587
- return Kt(o, n);
588
- }
589
- function tn(t = {}) {
590
- function e(u, s, d, p) {
591
- if (typeof d == "number")
592
- return p[u].length === d;
593
- if (typeof d == "object") {
594
- const V = Object.keys(d)[0], M = d[V];
595
- if (V === "not")
596
- return Number(p[u].length) !== Number(M);
597
- if (V === "moreThan")
598
- return Number(p[u].length) >= Number(M);
599
- if (V === "lessThan")
600
- return Number(p[u].length) <= Number(M);
588
+ function Gn(t, e, n = /* @__PURE__ */ new Map()) {
589
+ const o = Hn(t, e);
590
+ return Dn(o, n);
591
+ }
592
+ function qn(t = {}) {
593
+ function e(l, c, m, v) {
594
+ if (typeof m == "number")
595
+ return v[l].length === m;
596
+ if (typeof m == "object") {
597
+ const k = Object.keys(m)[0], E = m[k];
598
+ if (k === "not")
599
+ return Number(v[l].length) !== Number(E);
600
+ if (k === "moreThan")
601
+ return Number(v[l].length) >= Number(E);
602
+ if (k === "lessThan")
603
+ return Number(v[l].length) <= Number(E);
601
604
  }
602
605
  return !1;
603
606
  }
604
- function n(u, s, d, p) {
605
- return p[u] && p[u].propertyValue && String(p[u].propertyValue.value) === String(d);
607
+ function n(l, c, m, v) {
608
+ return v[l] && v[l].propertyValue && String(v[l].propertyValue.value) === String(m);
606
609
  }
607
610
  const o = /* @__PURE__ */ new Map([
608
611
  ["length", e],
609
612
  ["getProperty", n]
610
613
  ]);
611
- Object.keys(t).reduce((u, s) => (u.set(s, t[s]), u), o);
612
- function r(u, s) {
613
- const d = u;
614
- return typeof s == "number" ? [{ target: d, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: d, operator: "getProperty", param: u, value: !!s }] : typeof s == "object" ? Object.keys(s).map((p) => {
615
- if (p === "length")
616
- return { target: d, operator: "length", param: null, value: s[p] };
617
- const V = p, M = s[p];
618
- return { target: d, operator: "getProperty", param: V, value: M };
614
+ Object.keys(t).reduce((l, c) => (l.set(c, t[c]), l), o);
615
+ function a(l, c) {
616
+ const m = l;
617
+ return typeof c == "number" ? [{ target: m, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: m, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((v) => {
618
+ if (v === "length")
619
+ return { target: m, operator: "length", param: null, value: c[v] };
620
+ const k = v, E = c[v];
621
+ return { target: m, operator: "getProperty", param: k, value: E };
619
622
  }) : [];
620
623
  }
621
- function c(u) {
622
- return Object.keys(u).reduce((d, p) => {
623
- const V = r(p, u[p]);
624
- return d.push(...V), d;
624
+ function r(l) {
625
+ return Object.keys(l).reduce((m, v) => {
626
+ const k = a(v, l[v]);
627
+ return m.push(...k), m;
625
628
  }, []);
626
629
  }
627
- function l(u, s) {
628
- if (o.has(u.operator)) {
629
- const d = o.get(u.operator);
630
- return d && d(u.target, u.param, u.value, s) || !1;
630
+ function s(l, c) {
631
+ if (o.has(l.operator)) {
632
+ const m = o.get(l.operator);
633
+ return m && m(l.target, l.param, l.value, c) || !1;
631
634
  }
632
635
  return !1;
633
636
  }
634
- function m(u, s) {
635
- return c(u).reduce((V, M) => V && l(M, s), !0);
637
+ function u(l, c) {
638
+ return r(l).reduce((k, E) => k && s(E, c), !0);
636
639
  }
637
- function w(u, s) {
638
- const d = Object.keys(u), p = d.includes("allOf"), V = d.includes("anyOf"), M = p || V, x = (M ? u[M ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((N) => m(N, s));
639
- return p ? !x.includes(!1) : x.includes(!0);
640
+ function p(l, c) {
641
+ const m = Object.keys(l), v = m.includes("allOf"), k = m.includes("anyOf"), E = v || k, h = (E ? l[E ? v ? "allOf" : "anyOf" : "allOf"] : [l]).map((P) => u(P, c));
642
+ return v ? !h.includes(!1) : h.includes(!0);
640
643
  }
641
- return { parseValueSchema: w };
644
+ return { parseValueSchema: p };
642
645
  }
643
- const E = {
646
+ const A = {
644
647
  button: { type: "button", name: "按钮", icon: "Button" },
645
648
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
646
649
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -677,33 +680,34 @@ const E = {
677
680
  uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
678
681
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
679
682
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
680
- "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
681
- }, nn = {}, on = {};
682
- tn();
683
- function K(t, e, n = /* @__PURE__ */ new Map(), o = (l, m, w) => m, r = {}, c = (l) => l) {
684
- return Xt[e.title] = e, Yt[e.title] = o, nn[e.title] = r, on[e.title] = c, (l = {}) => {
685
- const m = en(l, e, n), w = Object.keys(t).reduce((u, s) => (u[s] = t[s].default, u), {});
686
- return Object.assign(w, m);
683
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
684
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
685
+ }, Un = {}, Wn = {};
686
+ qn();
687
+ function ce(t, e, n = /* @__PURE__ */ new Map(), o = (s, u, p) => u, a = {}, r = (s) => s) {
688
+ return $n[e.title] = e, An[e.title] = o, Un[e.title] = a, Wn[e.title] = r, (s = {}) => {
689
+ const u = Gn(s, e, n), p = Object.keys(t).reduce((l, c) => (l[c] = t[c].default, l), {});
690
+ return Object.assign(p, u);
687
691
  };
688
692
  }
689
- function ge(t, e) {
693
+ function Oe(t, e) {
690
694
  return { customClass: e.class, customStyle: e.style };
691
695
  }
692
- const oe = /* @__PURE__ */ new Map([
693
- ["appearance", ge]
694
- ]);
695
- var ne = /* @__PURE__ */ ((t) => (t.String = "String", t.DateTime = "DateTime", t.Date = "Date", t.Enum = "Enum", t.Boolean = "Boolean", t.Number = "Number", t.Text = "Text", t.BigNumber = "BigNumber", t))(ne || {});
696
- const rn = "root-viewmodel";
697
- class an {
696
+ const be = /* @__PURE__ */ new Map([
697
+ ["appearance", Oe]
698
+ ]), Xn = /* @__PURE__ */ new Map([]);
699
+ var ge = /* @__PURE__ */ ((t) => (t.String = "String", t.DateTime = "DateTime", t.Date = "Date", t.Enum = "Enum", t.Boolean = "Boolean", t.Number = "Number", t.Text = "Text", t.BigNumber = "BigNumber", t))(ge || {});
700
+ const Yn = "root-viewmodel";
701
+ class Jn {
698
702
  constructor(e, n) {
699
- y(this, "formSchemaUtils");
700
- y(this, "controlCreatorUtils");
701
- y(this, "designViewModelUtils");
703
+ S(this, "formSchemaUtils");
704
+ S(this, "controlCreatorUtils");
705
+ S(this, "designViewModelUtils");
702
706
  this.resolver = e, this.designerHostService = n, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.controlCreatorUtils = this.designerHostService.controlCreatorUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils;
703
707
  }
704
708
  createComponent(e) {
705
- const n = this.createComponentRefNode(e), o = this.createComponentNode(e), r = this.createViewModeNode(e), c = this.formSchemaUtils.getFormSchema();
706
- return c.module.viewmodels.push(r), c.module.components.push(o), this.designViewModelUtils.assembleDesignViewModel(), n;
709
+ const n = this.createComponentRefNode(e), o = this.createComponentNode(e), a = this.createViewModeNode(e), r = this.formSchemaUtils.getFormSchema();
710
+ return r.module.viewmodels.push(a), r.module.components.push(o), this.designViewModelUtils.assembleDesignViewModel(), n;
707
711
  }
708
712
  createComponentRefNode(e) {
709
713
  const n = this.resolver.getSchemaByType("component-ref");
@@ -740,18 +744,18 @@ class an {
740
744
  },
741
745
  mainTitle: e.componentName
742
746
  });
743
- const o = this.resolver.getSchemaByType("response-form"), r = [];
747
+ const o = this.resolver.getSchemaByType("response-form"), a = [];
744
748
  Object.assign(o, {
745
749
  id: e.componentId + "-form",
746
750
  appearance: {
747
751
  class: "f-form-layout farris-form farris-form-controls-inline"
748
752
  },
749
- contents: r
753
+ contents: a
750
754
  }), n.contents = [o];
751
- const { selectedFields: c } = e;
752
- return c == null || c.forEach((m) => {
753
- const w = J(m), u = this.resolveControlClassByFormColumns(e), s = this.controlCreatorUtils.setFormFieldProperty(w, "", u);
754
- s && r.push(s);
755
+ const { selectedFields: r } = e;
756
+ return r == null || r.forEach((u) => {
757
+ const p = ne(u), l = this.resolveControlClassByFormColumns(e), c = this.controlCreatorUtils.setFormFieldProperty(p, "", l);
758
+ c && a.push(c);
755
759
  }), this.formSchemaUtils.getFormSchema().module.templateId === "double-list-in-tab-template" && (n.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", n.fill = !0), [n];
756
760
  }
757
761
  resolveControlClassByFormColumns(e) {
@@ -785,7 +789,7 @@ class an {
785
789
  code: `${e.componentId}-component-viewmodel`,
786
790
  name: e.componentName,
787
791
  bindTo: e.bindTo,
788
- parent: rn,
792
+ parent: Yn,
789
793
  fields: this.assembleViewModelFields(e),
790
794
  commands: [],
791
795
  states: [],
@@ -800,37 +804,40 @@ class an {
800
804
  */
801
805
  assembleViewModelFields(e) {
802
806
  const n = [], { selectedFields: o } = e;
803
- return o == null || o.forEach((r) => {
804
- let c = "blur";
805
- const l = r.type.name;
806
- (l === ne.Enum || l === ne.Boolean) && (c = "change"), n.push({
807
+ return o == null || o.forEach((a) => {
808
+ let r = "blur";
809
+ const s = a.type.name;
810
+ (s === ge.Enum || s === ge.Boolean) && (r = "change"), n.push({
807
811
  type: "Form",
808
- id: r.id,
809
- fieldName: r.bindingField,
812
+ id: a.id,
813
+ fieldName: a.bindingField,
810
814
  groupId: null,
811
815
  groupName: null,
812
- updateOn: c,
816
+ updateOn: r,
813
817
  fieldSchema: {}
814
818
  });
815
819
  }), n;
816
820
  }
817
821
  }
818
- function sn(t, e, n, o) {
819
- const r = n.parentComponentInstance;
820
- if (r) {
821
- const l = {
822
+ function Qn(t, e, n, o) {
823
+ const a = n.parentComponentInstance;
824
+ if (a) {
825
+ const s = {
822
826
  componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
823
827
  componentName: "标题",
824
828
  componentType: "form",
825
829
  formColumns: 4,
826
- parentContainerId: r.schema.id,
830
+ parentContainerId: a.schema.id,
827
831
  bindTo: "/"
828
832
  };
829
- return new an(t, o).createComponent(l);
833
+ return new Jn(t, o).createComponent(s);
830
834
  } else
831
835
  return e;
832
836
  }
833
- const ln = "https://json-schema.org/draft/2020-12/schema", un = "https://farris-design.gitee.io/response-form.schema.json", cn = "response-form", dn = "A Farris Data Collection Component", pn = "object", mn = {
837
+ function Zn(t, e, n) {
838
+ return e;
839
+ }
840
+ const Kn = "https://json-schema.org/draft/2020-12/schema", _n = "https://farris-design.gitee.io/response-form.schema.json", eo = "response-form", to = "A Farris Data Collection Component", no = "object", oo = {
834
841
  id: {
835
842
  description: "The unique identifier for a form group",
836
843
  type: "string"
@@ -858,49 +865,22 @@ const ln = "https://json-schema.org/draft/2020-12/schema", un = "https://farris-
858
865
  type: "array",
859
866
  default: []
860
867
  }
861
- }, fn = [
868
+ }, ao = [
862
869
  "id",
863
870
  "type"
864
- ], gn = {
865
- $schema: ln,
866
- $id: un,
867
- title: cn,
868
- description: dn,
869
- type: pn,
870
- properties: mn,
871
- required: fn
872
- }, hn = "response-form", vn = "A Farris Component", yn = "object", bn = {
873
- basic: {
874
- description: "Basic Infomation",
875
- title: "基本信息",
876
- properties: {
877
- id: {
878
- description: "组件标识",
879
- title: "标识",
880
- type: "string",
881
- readonly: !0
882
- },
883
- type: {
884
- description: "组件类型",
885
- title: "控件类型",
886
- type: "select",
887
- editor: {
888
- type: "waiting for modification",
889
- enum: []
890
- }
891
- }
892
- }
893
- }
894
- }, Cn = {
895
- title: hn,
896
- description: vn,
897
- type: yn,
898
- categories: bn
899
- }, Tn = {
871
+ ], lo = {
872
+ $schema: Kn,
873
+ $id: _n,
874
+ title: eo,
875
+ description: to,
876
+ type: no,
877
+ properties: oo,
878
+ required: ao
879
+ }, so = {
900
880
  customClass: { type: String, default: "" }
901
881
  };
902
- K(Tn, gn, oe, sn, Cn);
903
- const kn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-design.gitee.io/form-group.schema.json", xn = "form-group", Fn = "A Farris Input Component", Bn = "object", In = {
882
+ ce(so, lo, be, Qn);
883
+ const ro = "https://json-schema.org/draft/2020-12/schema", io = "https://farris-design.gitee.io/form-group.schema.json", uo = "form-group", co = "A Farris Input Component", po = "object", mo = {
904
884
  id: {
905
885
  description: "The unique identifier for a form group",
906
886
  type: "string"
@@ -941,18 +921,18 @@ const kn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-
941
921
  description: "",
942
922
  type: "number"
943
923
  }
944
- }, Sn = [
924
+ }, fo = [
945
925
  "id",
946
926
  "type"
947
- ], he = {
948
- $schema: kn,
949
- $id: wn,
950
- title: xn,
951
- description: Fn,
952
- type: Bn,
953
- properties: In,
954
- required: Sn
955
- }, ve = {
927
+ ], je = {
928
+ $schema: ro,
929
+ $id: io,
930
+ title: uo,
931
+ description: co,
932
+ type: po,
933
+ properties: mo,
934
+ required: fo
935
+ }, Le = {
956
936
  id: { type: String, default: "" },
957
937
  customClass: { type: String, default: "" },
958
938
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
@@ -966,43 +946,43 @@ const kn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-
966
946
  showLabel: { type: Boolean, default: !0 },
967
947
  type: { type: String, default: "input-group" }
968
948
  };
969
- K(
970
- ve,
971
- he,
972
- oe,
949
+ ce(
950
+ Le,
951
+ je,
952
+ be,
973
953
  void 0
974
954
  );
975
- const Vn = {
955
+ const vo = {
976
956
  id: { type: String },
977
957
  required: { type: Boolean, default: !1 },
978
958
  text: { type: String, default: "" },
979
959
  title: { type: String }
980
- }, En = /* @__PURE__ */ X({
960
+ }, ho = /* @__PURE__ */ ee({
981
961
  name: "FDynamicFormLabel",
982
- props: Vn,
962
+ props: vo,
983
963
  emits: [],
984
964
  setup(t, e) {
985
- const n = I(t.title || t.text), o = I(t.required), r = I(t.text);
986
- return W(() => t.text, () => {
987
- r.value = t.text;
988
- }), W(() => t.required, (c, l) => {
989
- c !== l && (o.value = c);
990
- }), () => k("label", {
965
+ const n = i(t.title || t.text), o = i(t.required), a = i(t.text);
966
+ return J(() => t.text, () => {
967
+ a.value = t.text;
968
+ }), J(() => t.required, (r, s) => {
969
+ r !== s && (o.value = r);
970
+ }), () => a.value && d("label", {
991
971
  class: "col-form-label",
992
972
  title: n.value
993
- }, [o.value && k("span", {
973
+ }, [o.value && d("span", {
994
974
  class: "farris-label-info text-danger"
995
- }, [Y("*")]), k("span", {
975
+ }, [le("*")]), d("span", {
996
976
  class: "farris-label-text"
997
- }, [r.value])]);
977
+ }, [a.value])]);
998
978
  }
999
- }), Mn = /* @__PURE__ */ new Map([
1000
- ["appearance", ge]
979
+ }), go = /* @__PURE__ */ new Map([
980
+ ["appearance", Oe]
1001
981
  ]);
1002
- function Nn(t, e, n) {
982
+ function yo(t, e, n) {
1003
983
  return e;
1004
984
  }
1005
- const On = "https://json-schema.org/draft/2020-12/schema", Pn = "https://farris-design.gitee.io/input-group.schema.json", jn = "input-group", Ln = "A Farris Input Component", Rn = "object", An = {
985
+ const bo = "https://json-schema.org/draft/2020-12/schema", Co = "https://farris-design.gitee.io/input-group.schema.json", wo = "input-group", xo = "A Farris Input Component", To = "object", ko = {
1006
986
  id: {
1007
987
  description: "The unique identifier for a Input Group",
1008
988
  type: "string"
@@ -1204,18 +1184,19 @@ const On = "https://json-schema.org/draft/2020-12/schema", Pn = "https://farris-
1204
1184
  type: "string",
1205
1185
  default: ""
1206
1186
  }
1207
- }, $n = [
1187
+ }, Bo = [
1208
1188
  "id",
1209
1189
  "type"
1210
- ], Gn = {
1211
- $schema: On,
1212
- $id: Pn,
1213
- title: jn,
1214
- description: Ln,
1215
- type: Rn,
1216
- properties: An,
1217
- required: $n
1218
- }, ye = {
1190
+ ], Fo = {
1191
+ $schema: bo,
1192
+ $id: Co,
1193
+ title: wo,
1194
+ description: xo,
1195
+ type: To,
1196
+ properties: ko,
1197
+ required: Bo
1198
+ }, Pe = {
1199
+ id: { Type: String, default: "" },
1219
1200
  /** 是否自动完成 */
1220
1201
  autocomplete: { Type: String, default: "off" },
1221
1202
  /** 自定义CLASS */
@@ -1282,421 +1263,421 @@ const On = "https://json-schema.org/draft/2020-12/schema", Pn = "https://farris-
1282
1263
  */
1283
1264
  updateOn: { type: String, default: "blur" }
1284
1265
  };
1285
- K(ye, Gn, Mn, Nn);
1286
- function qn(t, e, n, o) {
1287
- const r = I(t.disabled), c = I(!1), l = I("text"), m = I(t.showBorder), w = I(t.textAlign), u = I(t.updateOn), s = O(() => t.editable || !t.readonly), d = O(() => t.editable && !t.disabled && !t.readonly), p = O(() => !t.disabled && c.value), V = O(() => n.value === "" || n.value === null || n.value === void 0), M = O(() => (t.disabled || t.readonly) && !t.forcePlaceholder ? "" : t.placeholder), P = O(() => t.readonly || !t.editable), D = O(() => t.enableTitle ? n.value : ""), x = O(() => ({
1266
+ ce(Pe, Fo, go, yo);
1267
+ function So(t, e, n, o) {
1268
+ const a = i(t.disabled), r = i(!1), s = i("text"), u = i(t.showBorder), p = i(t.textAlign), l = i(t.updateOn), c = B(() => t.editable || !t.readonly), m = B(() => t.editable && !t.disabled && !t.readonly), v = B(() => !t.disabled && r.value), k = B(() => n.value === "" || n.value === null || n.value === void 0), E = B(() => (t.disabled || t.readonly) && !t.forcePlaceholder ? "" : t.placeholder), N = B(() => t.readonly || !t.editable), $ = B(() => t.enableTitle ? n.value : ""), h = B(() => ({
1288
1269
  "form-control": !0,
1289
1270
  "f-utils-fill": !0,
1290
- "text-left": w.value === "left",
1291
- "text-center": w.value === "center",
1292
- "text-right": w.value === "right"
1293
- })), F = O(() => {
1294
- const i = {
1271
+ "text-left": p.value === "left",
1272
+ "text-center": p.value === "center",
1273
+ "text-right": p.value === "right"
1274
+ })), b = B(() => {
1275
+ const g = {
1295
1276
  "f-cmp-inputgroup": !0,
1296
1277
  "input-group": !0,
1297
- "f-state-disable": r.value,
1298
- "f-state-editable": d.value,
1299
- "f-state-readonly": P.value,
1300
- "f-state-focus": p.value
1278
+ "f-state-disable": a.value,
1279
+ "f-state-editable": m.value,
1280
+ "f-state-readonly": N.value,
1281
+ "f-state-focus": v.value
1301
1282
  };
1302
- return (t.customClass || "").split(" ").reduce((S, U) => (S[U] = !0, S), i), i;
1303
- }), N = O(() => m.value ? "" : "border-width : 0 ");
1304
- function j(i, T = !0) {
1305
- n.value = i, o.value !== i && (o.value = i), T && e.emit("change", i), e.emit("update:modelValue", i), e.emit("update:value", i);
1283
+ return (t.customClass || "").split(" ").reduce((z, Y) => (z[Y] = !0, z), g), g;
1284
+ }), P = B(() => u.value ? "" : "border-width : 0 ");
1285
+ function D(g, M = !0) {
1286
+ n.value = g, o.value !== g && (o.value = g), M && e.emit("change", g), e.emit("update:modelValue", g), e.emit("update:value", g);
1306
1287
  }
1307
- W(
1288
+ J(
1308
1289
  () => t.modelValue,
1309
- (i, T) => {
1310
- i !== T && (n.value = i, o.value = i);
1290
+ (g, M) => {
1291
+ g !== M && (n.value = g, o.value = g);
1311
1292
  }
1312
- ), W(() => t.disabled, (i, T) => {
1313
- i !== T && (r.value = i);
1293
+ ), J(() => t.disabled, (g, M) => {
1294
+ g !== M && (a.value = g);
1314
1295
  });
1315
- function $(i) {
1316
- return c.value = !1, e.emit("blur", i), i.stopPropagation(), !1;
1296
+ function W(g) {
1297
+ return r.value = !1, e.emit("blur", g), g.stopPropagation(), !1;
1317
1298
  }
1318
- function G(i) {
1319
- e.emit("click", i);
1299
+ function q(g) {
1300
+ e.emit("click", g);
1320
1301
  }
1321
- function R(i) {
1322
- t.disabled || (m.value && (c.value = !0), s.value && e.emit("focus", i));
1302
+ function T(g) {
1303
+ t.disabled || (u.value && (r.value = !0), c.value && e.emit("focus", g));
1323
1304
  }
1324
- function H(i) {
1325
- e.emit("input", i.target.value);
1326
- const T = i.target.value;
1327
- o.value = T, u.value === "input" && (e.emit("update:modelValue", T), e.emit("update:value", T));
1305
+ function H(g) {
1306
+ e.emit("input", g.target.value);
1307
+ const M = g.target.value;
1308
+ o.value = M, l.value === "change" && (e.emit("update:modelValue", M), e.emit("update:value", M));
1328
1309
  }
1329
- function a(i) {
1330
- e.emit("keydown", i);
1310
+ function f(g) {
1311
+ e.emit("keydown", g);
1331
1312
  }
1332
- function g(i) {
1333
- e.emit("keyup", i);
1313
+ function w(g) {
1314
+ e.emit("keyup", g);
1334
1315
  }
1335
- function f(i) {
1336
- i.target.tagName !== "INPUT" && i.preventDefault(), i.stopPropagation();
1316
+ function x(g) {
1317
+ g.target.tagName !== "INPUT" && g.preventDefault(), g.stopPropagation();
1337
1318
  }
1338
- function B(i) {
1339
- if (u.value === "blur") {
1340
- const T = i.target.value;
1341
- i.stopPropagation(), j(T);
1319
+ function R(g) {
1320
+ if (l.value === "blur") {
1321
+ const M = g.target.value;
1322
+ g.stopPropagation(), D(M);
1342
1323
  }
1343
1324
  }
1344
1325
  return {
1345
- changeTextBoxValue: j,
1346
- disabled: r,
1326
+ changeTextBoxValue: D,
1327
+ disabled: a,
1347
1328
  displayText: o,
1348
- editable: d,
1349
- hasFocused: p,
1350
- inputGroupClass: F,
1351
- inputType: l,
1352
- isEmpty: V,
1329
+ editable: m,
1330
+ hasFocused: v,
1331
+ inputGroupClass: b,
1332
+ inputType: s,
1333
+ isEmpty: k,
1353
1334
  modelValue: n,
1354
- readonly: P,
1355
- onBlur: $,
1356
- onClick: G,
1357
- onFocus: R,
1335
+ readonly: N,
1336
+ onBlur: W,
1337
+ onClick: q,
1338
+ onFocus: T,
1358
1339
  onInput: H,
1359
- onKeydown: a,
1360
- onKeyup: g,
1361
- onMousedown: f,
1362
- onTextBoxValueChange: B,
1363
- placeholder: M,
1364
- textBoxClass: x,
1365
- textBoxTitle: D,
1366
- inputGroupStyle: N
1340
+ onKeydown: f,
1341
+ onKeyup: w,
1342
+ onMousedown: x,
1343
+ onTextBoxValueChange: R,
1344
+ placeholder: E,
1345
+ textBoxClass: h,
1346
+ textBoxTitle: $,
1347
+ inputGroupStyle: P
1367
1348
  };
1368
1349
  }
1369
- function Dn(t, e, n) {
1370
- const o = I(!1), r = O(() => t.enableClear && !t.readonly && !t.disabled), { changeTextBoxValue: c, displayText: l, hasFocused: m, isEmpty: w } = n;
1371
- function u(P) {
1372
- o.value = P;
1350
+ function Mo(t, e, n) {
1351
+ const o = i(!1), a = B(() => t.enableClear && !t.readonly && !t.disabled), { changeTextBoxValue: r, displayText: s, hasFocused: u, isEmpty: p } = n;
1352
+ function l(N) {
1353
+ o.value = N;
1373
1354
  }
1374
- W(l, () => {
1375
- m != null && m.value ? u(!!(l != null && l.value)) : u(!1);
1355
+ J(s, () => {
1356
+ u != null && u.value ? l(!!(s != null && s.value)) : l(!1);
1376
1357
  });
1377
- const s = O(() => ({
1358
+ const c = B(() => ({
1378
1359
  "input-group-text": !0,
1379
1360
  "input-group-clear": !0
1380
- })), d = O(() => ({
1361
+ })), m = B(() => ({
1381
1362
  width: "24px",
1382
1363
  display: o.value ? "flex" : "none"
1383
1364
  }));
1384
- function p(P) {
1385
- P.stopPropagation(), r.value && (c("", !0), u(!o.value), e.emit("clear"));
1365
+ function v(N) {
1366
+ N.stopPropagation(), a.value && (r("", !0), l(!o.value), e.emit("clear"));
1386
1367
  }
1387
- function V(P) {
1388
- r.value && !w.value && u(!0);
1368
+ function k(N) {
1369
+ a.value && !p.value && l(!0);
1389
1370
  }
1390
- function M(P) {
1391
- r.value && u(!1);
1371
+ function E(N) {
1372
+ a.value && l(!1);
1392
1373
  }
1393
- return { clearButtonClass: s, clearButtonStyle: d, hasShownClearButton: o, onClearValue: p, onMouseEnter: V, onMouseLeave: M, shouldShowClearButton: r };
1374
+ return { clearButtonClass: c, clearButtonStyle: m, hasShownClearButton: o, onClearValue: v, onMouseEnter: k, onMouseLeave: E, shouldShowClearButton: a };
1394
1375
  }
1395
- const Un = ["moz", "ms", "webkit"];
1396
- function Wn() {
1376
+ const Eo = ["moz", "ms", "webkit"];
1377
+ function Io() {
1397
1378
  let t = 0;
1398
1379
  return (e) => {
1399
- const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), r = setTimeout(() => {
1380
+ const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), a = setTimeout(() => {
1400
1381
  e(n + o);
1401
1382
  }, o);
1402
- return t = n + o, r;
1383
+ return t = n + o, a;
1403
1384
  };
1404
1385
  }
1405
- function Hn() {
1386
+ function Vo() {
1406
1387
  if (typeof window > "u")
1407
1388
  return () => 0;
1408
1389
  if (window.requestAnimationFrame)
1409
1390
  return window.requestAnimationFrame.bind(window);
1410
- const t = Un.filter((e) => `${e}RequestAnimationFrame` in window)[0];
1411
- return t ? window[`${t}RequestAnimationFrame`] : Wn();
1391
+ const t = Eo.filter((e) => `${e}RequestAnimationFrame` in window)[0];
1392
+ return t ? window[`${t}RequestAnimationFrame`] : Io();
1412
1393
  }
1413
- Hn();
1414
- function zn(t, e) {
1415
- const n = I(t.groupText), o = O(() => t.showButtonWhenDisabled && (t.readonly || t.disabled)), r = O(() => t.enableClear || !!t.groupText);
1416
- return { appendedButtonClass: O(() => ({
1394
+ Vo();
1395
+ function Ro(t, e) {
1396
+ const n = i(t.groupText), o = B(() => t.showButtonWhenDisabled && (t.readonly || t.disabled)), a = B(() => t.enableClear || !!t.groupText);
1397
+ return { appendedButtonClass: B(() => ({
1417
1398
  "input-group-append": !0,
1418
1399
  "append-force-show": o.value
1419
- })), appendedContent: n, shouldShowAppendedButton: r };
1400
+ })), appendedContent: n, shouldShowAppendedButton: a };
1420
1401
  }
1421
- function Qn(t, e, n, o) {
1422
- const { appendedContent: r } = o, c = I(t.enableViewPassword), l = O(() => t.type === "password"), m = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', w = '<span class="f-icon f-icon-eye"></span>', u = I(!1);
1423
- W(() => [t.readonly, t.disabled], ([p, V]) => {
1424
- l.value && (n.value = p || V ? "password" : n.value, r.value = p || V ? w : r.value);
1402
+ function Oo(t, e, n, o) {
1403
+ const { appendedContent: a } = o, r = i(t.enableViewPassword), s = B(() => t.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', p = '<span class="f-icon f-icon-eye"></span>', l = i(!1);
1404
+ J(() => [t.readonly, t.disabled], ([v, k]) => {
1405
+ s.value && (n.value = v || k ? "password" : n.value, a.value = v || k ? p : a.value);
1425
1406
  });
1426
- function s() {
1427
- return u.value = !u.value, n.value = u.value ? "text" : "password", r.value = u.value ? m : w, !1;
1407
+ function c() {
1408
+ return l.value = !l.value, n.value = l.value ? "text" : "password", a.value = l.value ? u : p, !1;
1428
1409
  }
1429
- function d() {
1430
- n.value = l.value ? "password" : "text", r.value = l.value ? c.value ? w : "" : r.value;
1410
+ function m() {
1411
+ n.value = s.value ? "password" : "text", a.value = s.value ? r.value ? p : "" : a.value;
1431
1412
  }
1432
- return d(), { isPassword: l, onClickAppendedButton: s };
1413
+ return m(), { isPassword: s, onClickAppendedButton: c };
1433
1414
  }
1434
- function Zn(t, e, n) {
1435
- const o = I(), {
1436
- onBlurTextBox: r,
1437
- onFocusTextBox: c,
1438
- onInput: l,
1439
- onKeyDown: m,
1440
- textBoxValue: w
1441
- } = n, u = O(() => t.disabled || t.readonly || !t.editable ? "" : t.placeholder), s = O(() => ({
1415
+ function jo(t, e, n) {
1416
+ const o = i(), {
1417
+ onBlurTextBox: a,
1418
+ onFocusTextBox: r,
1419
+ onInput: s,
1420
+ onKeyDown: u,
1421
+ textBoxValue: p
1422
+ } = n, l = B(() => t.disabled || t.readonly || !t.editable ? "" : t.placeholder), c = B(() => ({
1442
1423
  "form-control": !0,
1443
1424
  "f-utils-fill": !0
1444
- })), d = O(() => ({
1425
+ })), m = B(() => ({
1445
1426
  "text-align": t.textAlign
1446
1427
  }));
1447
- function p(P) {
1448
- P.stopPropagation();
1428
+ function v(N) {
1429
+ N.stopPropagation();
1449
1430
  }
1450
- function V() {
1431
+ function k() {
1451
1432
  t.selectOnCreated, t.focusOnCreated;
1452
1433
  }
1453
- async function M(P) {
1454
- c(P), await re, V();
1434
+ async function E(N) {
1435
+ r(N), await ve, k();
1455
1436
  }
1456
- return _(async () => {
1457
- await re, V();
1458
- }), () => k("input", {
1437
+ return oe(async () => {
1438
+ await ve, k();
1439
+ }), () => d("input", {
1459
1440
  ref: o,
1460
- class: s.value,
1461
- style: d.value,
1441
+ class: c.value,
1442
+ style: m.value,
1462
1443
  type: "text",
1463
- value: w.value,
1444
+ value: p.value,
1464
1445
  disabled: t.disabled,
1465
1446
  readonly: t.readonly || !t.editable,
1466
- placeholder: u.value,
1467
- onBlur: r,
1468
- onChange: p,
1469
- onFocus: M,
1470
- onInput: l,
1471
- onKeydown: m
1447
+ placeholder: l.value,
1448
+ onBlur: a,
1449
+ onChange: v,
1450
+ onFocus: E,
1451
+ onInput: s,
1452
+ onKeydown: u
1472
1453
  }, null);
1473
1454
  }
1474
- function Jn(t, e, n) {
1455
+ function Lo(t, e, n) {
1475
1456
  const {
1476
1457
  canDownward: o,
1477
- canUpward: r,
1478
- onClickDownButton: c,
1479
- onClickUpButton: l
1480
- } = n, m = O(() => ({
1458
+ canUpward: a,
1459
+ onClickDownButton: r,
1460
+ onClickUpButton: s
1461
+ } = n, u = B(() => ({
1481
1462
  "input-group-append": !0,
1482
1463
  "btn-group": !0,
1483
1464
  "btn-group-number": !0
1484
- })), w = O(() => ({
1465
+ })), p = B(() => ({
1485
1466
  btn: !0,
1486
1467
  "btn-secondary": !0,
1487
1468
  "btn-number-flag": !0
1488
- })), u = O(() => ({
1489
- cursor: r() ? "pointer" : "not-allowed",
1469
+ })), l = B(() => ({
1470
+ cursor: a() ? "pointer" : "not-allowed",
1490
1471
  "margin-left": 0
1491
- })), s = O(() => ({
1472
+ })), c = B(() => ({
1492
1473
  cursor: o() ? "pointer" : "not-allowed",
1493
1474
  "margin-left": 0
1494
1475
  }));
1495
- return () => k("div", {
1496
- class: m.value
1497
- }, [k("button", {
1476
+ return () => d("div", {
1477
+ class: u.value
1478
+ }, [d("button", {
1498
1479
  title: "upButton",
1499
- class: w.value,
1500
- style: u.value,
1501
- onClick: l,
1502
- disabled: !r()
1503
- }, [k("span", {
1480
+ class: p.value,
1481
+ style: l.value,
1482
+ onClick: s,
1483
+ disabled: !a()
1484
+ }, [d("span", {
1504
1485
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
1505
- }, null)]), k("button", {
1486
+ }, null)]), d("button", {
1506
1487
  title: "downButton",
1507
- class: w.value,
1508
- style: s.value,
1509
- onClick: c,
1488
+ class: p.value,
1489
+ style: c.value,
1490
+ onClick: r,
1510
1491
  disabled: !o()
1511
- }, [k("span", {
1492
+ }, [d("span", {
1512
1493
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1513
1494
  }, null)])]);
1514
1495
  }
1515
- function Xn(t, e) {
1516
- const n = Me(t, e), o = Ne(t, e, n), r = Oe(t, e, o, n), c = Pe(t, e, o, n, r), l = Jn(t, e, r), {
1517
- displayValue: m,
1518
- modelValue: w,
1519
- getRealValue: u
1520
- } = n, s = Zn(t, e, c), {
1521
- format: d
1496
+ function Po(t, e) {
1497
+ const n = yt(t, e), o = bt(t, e, n), a = Ct(t, e, o, n), r = wt(t, e, o, n, a), s = Lo(t, e, a), {
1498
+ displayValue: u,
1499
+ modelValue: p,
1500
+ getRealValue: l
1501
+ } = n, c = jo(t, e, r), {
1502
+ format: m
1522
1503
  } = o, {
1523
- isFocus: p
1524
- } = c, V = O(() => !t.disabled && !t.readonly);
1525
- return _(() => {
1526
- const M = u(t.modelValue);
1527
- m.value = d(M);
1528
- }), W(() => [t.value], ([M]) => {
1529
- const P = u(M);
1530
- w.value = P, m.value = d(P);
1531
- }), W(() => [t.modelValue], ([M]) => {
1532
- M !== w.value && (w.value = M, !p.value && (m.value = d(u(M))));
1533
- }), W(() => [t.precision, t.useThousands, t.prefix, t.suffix, t.showZero], () => {
1534
- m.value = d(w.value);
1535
- }), () => k("div", {
1504
+ isFocus: v
1505
+ } = r, k = B(() => !t.disabled && !t.readonly);
1506
+ return oe(() => {
1507
+ const E = l(t.modelValue);
1508
+ u.value = m(E);
1509
+ }), J(() => [t.value], ([E]) => {
1510
+ const N = l(E);
1511
+ p.value = N, u.value = m(N);
1512
+ }), J(() => [t.modelValue], ([E]) => {
1513
+ E !== p.value && (p.value = E, !v.value && (u.value = m(l(E))));
1514
+ }), J(() => [t.precision, t.useThousands, t.prefix, t.suffix, t.showZero], () => {
1515
+ u.value = m(p.value);
1516
+ }), () => d("div", {
1536
1517
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
1537
- }, [s(), V.value && l()]);
1538
- }
1539
- function Yn(t, e, n, o) {
1540
- const r = I(), c = I(t.autocomplete), l = I(t.enableTitle), {
1541
- isPassword: m
1542
- } = n, w = I(t.minLength), u = I(t.maxLength), s = I(t.tabIndex), {
1543
- disabled: d,
1544
- displayText: p,
1545
- inputType: V,
1546
- onBlur: M,
1547
- onFocus: P,
1548
- onInput: D,
1549
- onClick: x,
1550
- onKeydown: F,
1551
- onKeyup: N,
1552
- onMousedown: j,
1553
- onTextBoxValueChange: $,
1554
- readonly: G,
1555
- placeholder: R,
1518
+ }, [c(), k.value && s()]);
1519
+ }
1520
+ function No(t, e, n, o) {
1521
+ const a = i(), r = i(t.autocomplete), s = i(t.enableTitle), {
1522
+ isPassword: u
1523
+ } = n, p = i(t.minLength), l = i(t.maxLength), c = i(t.tabIndex), {
1524
+ disabled: m,
1525
+ displayText: v,
1526
+ inputType: k,
1527
+ onBlur: E,
1528
+ onFocus: N,
1529
+ onInput: $,
1530
+ onClick: h,
1531
+ onKeydown: b,
1532
+ onKeyup: P,
1533
+ onMousedown: D,
1534
+ onTextBoxValueChange: W,
1535
+ readonly: q,
1536
+ placeholder: T,
1556
1537
  textBoxClass: H,
1557
- textBoxTitle: a
1538
+ textBoxTitle: f
1558
1539
  } = o;
1559
- return _(() => {
1540
+ return oe(() => {
1560
1541
  t.selectOnCreated, t.focusOnCreated;
1561
- }), () => k("input", {
1562
- ref: r,
1542
+ }), () => d("input", {
1543
+ ref: a,
1563
1544
  name: "input-group-value",
1564
- autocomplete: c.value,
1545
+ autocomplete: r.value,
1565
1546
  class: H.value,
1566
- disabled: d == null ? void 0 : d.value,
1567
- maxlength: u.value,
1568
- minlength: w.value,
1569
- placeholder: R.value,
1570
- readonly: G == null ? void 0 : G.value,
1571
- tabindex: s.value,
1572
- title: l.value && !m.value ? a.value : "",
1573
- type: V.value,
1574
- value: p == null ? void 0 : p.value,
1575
- onBlur: M,
1576
- onClick: x,
1577
- onChange: $,
1578
- onFocus: P,
1579
- onInput: D,
1580
- onKeydown: F,
1581
- onKeyup: N,
1582
- onMousedown: j
1547
+ disabled: m == null ? void 0 : m.value,
1548
+ maxlength: l.value,
1549
+ minlength: p.value,
1550
+ placeholder: T.value,
1551
+ readonly: q == null ? void 0 : q.value,
1552
+ tabindex: c.value,
1553
+ title: s.value && !u.value ? f.value : "",
1554
+ type: k.value,
1555
+ value: v == null ? void 0 : v.value,
1556
+ onBlur: E,
1557
+ onClick: h,
1558
+ onChange: W,
1559
+ onFocus: N,
1560
+ onInput: $,
1561
+ onKeydown: b,
1562
+ onKeyup: P,
1563
+ onMousedown: D
1583
1564
  }, null);
1584
1565
  }
1585
- function _n(t, e) {
1586
- const n = O(() => t.useExtendInfo && !!t.extendInfo), o = xe({
1566
+ function zo(t, e) {
1567
+ const n = B(() => t.useExtendInfo && !!t.extendInfo), o = Z({
1587
1568
  content: t.extendInfo
1588
1569
  });
1589
- function r() {
1570
+ function a() {
1590
1571
  e.emit("updateExtendInfo");
1591
1572
  }
1592
- return () => n.value && Fe(k("span", {
1573
+ return () => n.value && rt(d("span", {
1593
1574
  class: "input-group-before-tips",
1594
- onMouseenter: r
1595
- }, [k("i", {
1575
+ onMouseenter: a
1576
+ }, [d("i", {
1596
1577
  class: "f-icon f-icon-info-circle"
1597
- }, null), k("b", {
1578
+ }, null), d("b", {
1598
1579
  class: "tips-arrow"
1599
- }, null)]), [[Be("tooltip"), o]]);
1580
+ }, null)]), [[it("tooltip"), o]]);
1600
1581
  }
1601
- function Kn(t, e, n, o, r) {
1582
+ function $o(t, e, n, o, a) {
1602
1583
  const {
1603
- appendedButtonClass: c,
1604
- appendedContent: l
1605
- } = n, m = O(() => t.showButtonWhenDisabled && (!t.editable || !t.readonly) && !t.disabled), w = O(() => l.value && !e.slots.groupTextTemplate), u = O(() => !!e.slots.groupTextTemplate), {
1606
- clearButtonClass: s,
1607
- clearButtonStyle: d,
1608
- onClearValue: p,
1609
- shouldShowClearButton: V
1584
+ appendedButtonClass: r,
1585
+ appendedContent: s
1586
+ } = n, u = B(() => t.showButtonWhenDisabled && (!t.editable || !t.readonly) && !t.disabled), p = B(() => s.value && !e.slots.groupTextTemplate), l = B(() => !!e.slots.groupTextTemplate), {
1587
+ clearButtonClass: c,
1588
+ clearButtonStyle: m,
1589
+ onClearValue: v,
1590
+ shouldShowClearButton: k
1610
1591
  } = o;
1611
- function M() {
1612
- return k("span", {
1592
+ function E() {
1593
+ return d("span", {
1613
1594
  id: "clearIcon",
1614
- class: s.value,
1615
- style: d.value,
1616
- onClick: (R) => p(R)
1617
- }, [k("i", {
1595
+ class: c.value,
1596
+ style: m.value,
1597
+ onClick: (T) => v(T)
1598
+ }, [d("i", {
1618
1599
  class: "f-icon modal_close"
1619
1600
  }, null)]);
1620
1601
  }
1621
- function P(R) {
1622
- e.emit("iconMouseEnter", R);
1602
+ function N(T) {
1603
+ e.emit("iconMouseEnter", T);
1623
1604
  }
1624
- function D(R) {
1625
- e.emit("iconMouseLeave", R);
1605
+ function $(T) {
1606
+ e.emit("iconMouseLeave", T);
1626
1607
  }
1627
- function x(R) {
1628
- m.value && e.emit("clickHandle", {
1629
- originalEvent: R
1630
- }), R.stopPropagation();
1608
+ function h(T) {
1609
+ u.value && e.emit("clickHandle", {
1610
+ originalEvent: T
1611
+ }), T.stopPropagation();
1631
1612
  }
1632
- const F = t.type === "password" ? r.onClickAppendedButton : x;
1633
- function N() {
1634
- return k("span", {
1613
+ const b = t.type === "password" ? a.onClickAppendedButton : h;
1614
+ function P() {
1615
+ return d("span", {
1635
1616
  class: "input-group-text",
1636
- onMouseenter: (R) => P(R),
1637
- onMouseleave: (R) => D(R),
1638
- innerHTML: l.value,
1639
- onClick: (R) => F(R)
1617
+ onMouseenter: (T) => N(T),
1618
+ onMouseleave: (T) => $(T),
1619
+ innerHTML: s.value,
1620
+ onClick: (T) => b(T)
1640
1621
  }, null);
1641
1622
  }
1642
- function j() {
1623
+ function D() {
1643
1624
  return e.slots.groupTextTemplate && e.slots.groupTextTemplate();
1644
1625
  }
1645
- function $() {
1646
- return w.value ? N : u.value ? j : "";
1626
+ function W() {
1627
+ return p.value ? P : l.value ? D : "";
1647
1628
  }
1648
- const G = $();
1649
- return () => k("div", {
1650
- class: c.value
1651
- }, [V.value && M(), G && G()]);
1629
+ const q = W();
1630
+ return () => d("div", {
1631
+ class: r.value
1632
+ }, [k.value && E(), q && q()]);
1652
1633
  }
1653
- const eo = /* @__PURE__ */ X({
1634
+ const Ao = /* @__PURE__ */ ee({
1654
1635
  name: "FInputGroup",
1655
- props: ye,
1636
+ props: Pe,
1656
1637
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
1657
1638
  setup(t, e) {
1658
- const n = I(t.modelValue), o = I(t.modelValue), r = qn(t, e, n, o), {
1659
- inputGroupClass: c,
1660
- inputType: l,
1661
- inputGroupStyle: m
1662
- } = r, w = zn(t), {
1663
- shouldShowAppendedButton: u
1664
- } = w, s = Dn(t, e, r), {
1665
- onMouseEnter: d,
1666
- onMouseLeave: p
1667
- } = s, V = Qn(t, e, l, w), M = Xn(t, e), P = Yn(t, e, V, r), D = Kn(t, e, w, s, V), x = _n(t, e), F = O(() => t.type === "number");
1668
- W(() => [t.value], ([j]) => {
1669
- n.value = j, o.value = j;
1670
- }), W(() => [t.modelValue], ([j]) => {
1671
- n.value = j, o.value = j;
1672
- }), _(() => {
1639
+ const n = i(t.modelValue), o = i(t.modelValue), a = So(t, e, n, o), {
1640
+ inputGroupClass: r,
1641
+ inputType: s,
1642
+ inputGroupStyle: u
1643
+ } = a, p = Ro(t), {
1644
+ shouldShowAppendedButton: l
1645
+ } = p, c = Mo(t, e, a), {
1646
+ onMouseEnter: m,
1647
+ onMouseLeave: v
1648
+ } = c, k = Oo(t, e, s, p), E = Po(t, e), N = No(t, e, k, a), $ = $o(t, e, p, c, k), h = zo(t, e), b = B(() => t.type === "number");
1649
+ J(() => [t.value], ([D]) => {
1650
+ n.value = D, o.value = D;
1651
+ }), J(() => [t.modelValue], ([D]) => {
1652
+ n.value = D, o.value = D;
1653
+ }), oe(() => {
1673
1654
  t.value && (n.value = t.value, o.value = t.value);
1674
1655
  });
1675
- const N = () => k(ae, null, [k("div", {
1676
- id: "inputGroup",
1677
- class: c.value,
1678
- style: m.value,
1679
- onMouseenter: d,
1680
- onMouseleave: p
1681
- }, [F.value ? M() : k(ae, null, [x(), P(), u.value && D()])])]);
1682
- return () => N();
1683
- }
1684
- }), h = {}, v = {}, b = {}, C = {};
1685
- let le = !1;
1686
- function to() {
1687
- le || (le = !0, Le.register(h, v, b, C), je.register(h, v, b, C), Re.register(h, v, b, C), Ae.register(h, v, b, C), $e.register(h, v, b, C), Ge.register(h, v, b, C), qe.register(h, v, b, C), te.register(h, v, b, C), De.register(h, v, b, C), Ue.register(h, v, b, C), He.register(h, v, b, C), We.register(h, v, b, C), ze.register(h, v, b, C), Qe.register(h, v, b, C), Ze.register(h, v, b, C), Se.register(h, v, b, C), Je.register(h, v, b, C), Xe.register(h, v, b, C), Ye.register(h, v, b, C), _e.register(h, v, b, C), Ke.register(h, v, b, C), et.register(h, v, b, C), nt.register(h, v, b, C), tt.register(h, v, b, C), ot.register(h, v, b, C), rt.register(h, v, b, C), at.register(h, v, b, C), it.register(h, v, b, C), Ee.register(h, v, b, C), st.register(h, v, b, C), lt.register(h, v, b, C), ut.register(h, v, b, C), ct.register(h, v, b, C), dt.register(h, v, b, C), pt.register(h, v, b, C), mt.register(h, v, b, C), ft.register(h, v, b, C), ht.register(h, v, b, C), vt.register(h, v, b, C), gt.register(h, v, b, C), jt.register(h, v, b), yt.register(h, v, b, C), bt.register(h, v, b, C), Ct.register(h, v, b, C), Tt.register(h, v, b, C), kt.register(h, v, b, C), wt.register(h, v, b, C), xt.register(h, v, b, C), Ft.register(h, v, b, C), Bt.register(h, v, b, C), It.register(h, v, b, C), St.register(h, v, b, C), Vt.register(h, v, b, C), Mt.register(h, v, b, C), Et.register(h, v, b, C), Nt.register(h, v, b, C), Ot.register(h, v, b, C), Pt.register(h, v, b, C), Lt.register(h, v, b, C));
1688
- }
1689
- function no() {
1690
- to();
1691
- function t(r, c) {
1692
- const l = v[r];
1693
- return l ? l(c) : {};
1694
- }
1695
- function e(r) {
1696
- return h[r] || eo;
1697
- }
1698
- function n(r) {
1699
- switch (r) {
1656
+ const P = () => d(se, null, [d("div", {
1657
+ id: t.id,
1658
+ class: r.value,
1659
+ style: u.value,
1660
+ onMouseenter: m,
1661
+ onMouseleave: v
1662
+ }, [b.value ? E() : d(se, null, [h(), N(), l.value && $()])])]);
1663
+ return () => P();
1664
+ }
1665
+ }), I = {}, V = {}, O = {}, L = {};
1666
+ let Be = !1;
1667
+ function Ho() {
1668
+ Be || (Be = !0, Tt.register(I, V, O, L), xt.register(I, V, O, L), kt.register(I, V, O, L), Bt.register(I, V, O, L), Ft.register(I, V, O, L), St.register(I, V, O, L), Mt.register(I, V, O, L), he.register(I, V, O, L), Et.register(I, V, O, L), It.register(I, V, O, L), Rt.register(I, V, O, L), Vt.register(I, V, O, L), Ot.register(I, V, O, L), jt.register(I, V, O, L), Lt.register(I, V, O, L), vt.register(I, V, O, L), Pt.register(I, V, O, L), Nt.register(I, V, O, L), zt.register(I, V, O, L), $t.register(I, V, O, L), At.register(I, V, O, L), Ht.register(I, V, O, L), Gt.register(I, V, O, L), Dt.register(I, V, O, L), qt.register(I, V, O, L), Ut.register(I, V, O, L), Wt.register(I, V, O, L), Xt.register(I, V, O, L), gt.register(I, V, O, L), Yt.register(I, V, O, L), Jt.register(I, V, O, L), Qt.register(I, V, O, L), Zt.register(I, V, O, L), Kt.register(I, V, O, L), _t.register(I, V, O, L), en.register(I, V, O, L), tn.register(I, V, O, L), on.register(I, V, O, L), an.register(I, V, O, L), nn.register(I, V, O, L), Tn.register(I, V, O), ln.register(I, V, O, L), sn.register(I, V, O, L), rn.register(I, V, O, L), un.register(I, V, O, L), cn.register(I, V, O, L), dn.register(I, V, O, L), pn.register(I, V, O, L), mn.register(I, V, O, L), fn.register(I, V, O, L), vn.register(I, V, O, L), hn.register(I, V, O, L), gn.register(I, V, O, L), bn.register(I, V, O, L), yn.register(I, V, O, L), Cn.register(I, V, O, L), wn.register(I, V, O, L), xn.register(I, V, O, L), kn.register(I, V, O, L));
1669
+ }
1670
+ function Do() {
1671
+ Ho();
1672
+ function t(a, r) {
1673
+ const s = V[a];
1674
+ return s ? s(r) : {};
1675
+ }
1676
+ function e(a) {
1677
+ return I[a] || Ao;
1678
+ }
1679
+ function n(a) {
1680
+ switch (a) {
1700
1681
  case "check-box":
1701
1682
  return "onChangeValue";
1702
1683
  case "switch":
@@ -1727,7 +1708,7 @@ function no() {
1727
1708
  case "input-group":
1728
1709
  return "onChange";
1729
1710
  case "lookup":
1730
- return "";
1711
+ return "onUpdate:modelValue";
1731
1712
  case "number-range":
1732
1713
  return "onValueChange";
1733
1714
  case "number-spinner":
@@ -1742,6 +1723,8 @@ function no() {
1742
1723
  return "onSavedCommandListChanged";
1743
1724
  case "grid-field-editor":
1744
1725
  return "onChange";
1726
+ case "response-form-layout-setting":
1727
+ return "onChange";
1745
1728
  case "field-selector":
1746
1729
  return "onFieldSelected";
1747
1730
  case "schema-selector":
@@ -1752,8 +1735,8 @@ function no() {
1752
1735
  return "onValueChange";
1753
1736
  }
1754
1737
  }
1755
- function o(r) {
1756
- switch (r) {
1738
+ function o(a) {
1739
+ switch (a) {
1757
1740
  case "combo-list":
1758
1741
  case "input-group":
1759
1742
  case "textarea":
@@ -1762,65 +1745,65 @@ function no() {
1762
1745
  }
1763
1746
  return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
1764
1747
  }
1765
- const oo = /* @__PURE__ */ X({
1748
+ const Go = /* @__PURE__ */ ee({
1766
1749
  name: "FDynamicFormGroup",
1767
- props: ve,
1750
+ props: Le,
1768
1751
  emits: ["change", "update:modelValue"],
1769
1752
  setup(t, e) {
1770
- const n = I(t.id), o = I(t.customClass), r = I(t.editor), c = I(t.label), l = I(t.modelValue), m = I(t.readonly), w = I(t.required), u = I(t.showLabel), s = I(t.visible);
1771
- I(t.type);
1772
- const d = I(), {
1773
- resolveEditorProps: p,
1774
- resolveEditorType: V,
1775
- getChangeFunctionName: M,
1776
- getClearFunctionName: P
1777
- } = no(), D = O(() => ({
1753
+ const n = i(t.id), o = i(t.customClass), a = i(t.editor), r = i(t.label), s = i(t.modelValue), u = i(t.readonly), p = i(t.required), l = i(t.showLabel), c = i(t.visible);
1754
+ i(t.type);
1755
+ const m = i(), {
1756
+ resolveEditorProps: v,
1757
+ resolveEditorType: k,
1758
+ getChangeFunctionName: E,
1759
+ getClearFunctionName: N
1760
+ } = Do(), $ = B(() => ({
1778
1761
  "form-group": !0,
1779
1762
  "farris-form-group": !0,
1780
1763
  "common-group": !0,
1781
- "q-state-readonly": m.value
1764
+ "q-state-readonly": u.value
1782
1765
  }));
1783
- function x(j, $) {
1784
- l.value = $ !== void 0 ? $ : j, e.emit("update:modelValue", l.value), e.emit("change", l.value);
1766
+ function h(D, W) {
1767
+ s.value = W !== void 0 ? W : D, e.emit("update:modelValue", s.value), e.emit("change", s.value);
1785
1768
  }
1786
- function F() {
1769
+ function b() {
1787
1770
  e.emit("update:modelValue", "");
1788
1771
  }
1789
- const N = O(() => {
1790
- const j = r.value.type || "input-group", $ = V(j), G = p(j, r.value), R = M(j), H = P(r.value.type);
1791
- return G[R] = x, G[H] = F, () => k($, Ie({
1792
- ref: d
1793
- }, G, {
1794
- modelValue: l.value,
1795
- "onUpdate:modelValue": (a) => l.value = a
1772
+ const P = B(() => {
1773
+ const D = a.value.type || "input-group", W = k(D), q = v(D, a.value), T = E(D), H = N(a.value.type);
1774
+ return q[T] = h, q[H] = b, (q.id == null || q.id === "") && (q.id = n.value), () => d(W, ye({
1775
+ ref: m
1776
+ }, q, {
1777
+ modelValue: s.value,
1778
+ "onUpdate:modelValue": (f) => s.value = f
1796
1779
  }), null);
1797
1780
  });
1798
- return W([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible], ([j, $, G, R, H, a, g, f, B]) => {
1799
- n.value = j, o.value = $, r.value = G, c.value = R, l.value = H, m.value = a, w.value = g, u.value = f, s.value = B;
1781
+ return J([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible], ([D, W, q, T, H, f, w, x, R]) => {
1782
+ n.value = D, o.value = W, a.value = q, r.value = T, s.value = H, u.value = f, p.value = w, l.value = x, c.value = R;
1800
1783
  }), e.expose({
1801
- editorRef: d
1802
- }), () => s.value && k("div", {
1784
+ editorRef: m
1785
+ }), () => c.value && d("div", {
1803
1786
  id: `${n.value}-input-group`,
1804
1787
  class: o.value
1805
- }, [k("div", {
1788
+ }, [d("div", {
1806
1789
  class: "farris-group-wrap"
1807
- }, [k("div", {
1808
- class: D.value
1809
- }, [u.value && k(En, {
1790
+ }, [d("div", {
1791
+ class: $.value
1792
+ }, [l.value && d(ho, {
1810
1793
  id: `${n.value}-lable`,
1811
- required: w.value,
1812
- text: c.value,
1813
- title: c.value
1814
- }, null), k("div", {
1794
+ required: p.value,
1795
+ text: r.value,
1796
+ title: r.value
1797
+ }, null), d("div", {
1815
1798
  class: "farris-input-wrap"
1816
- }, [N.value()])])])]);
1799
+ }, [P.value()])])])]);
1817
1800
  }
1818
- }), Z = class Z {
1801
+ }), te = class te {
1819
1802
  /**
1820
1803
  * 根据绑定字段类型获取可用的输入类控件
1821
1804
  */
1822
1805
  static getEditorTypesByMDataType(e) {
1823
- const n = Z.fieldControlTypeMapping[e];
1806
+ const n = te.fieldControlTypeMapping[e];
1824
1807
  return n || [{ key: "", value: "" }];
1825
1808
  }
1826
1809
  /**
@@ -1828,9 +1811,9 @@ const oo = /* @__PURE__ */ X({
1828
1811
  */
1829
1812
  static getAllInputTypes() {
1830
1813
  const e = [];
1831
- for (let n in Z.fieldControlTypeMapping)
1832
- Z.fieldControlTypeMapping[n].forEach((o) => {
1833
- e.find((r) => r.key === o.key && r.value === o.value) || e.push({ key: o.key, value: o.value });
1814
+ for (let n in te.fieldControlTypeMapping)
1815
+ te.fieldControlTypeMapping[n].forEach((o) => {
1816
+ e.find((a) => a.key === o.key && a.value === o.value) || e.push({ key: o.key, value: o.value });
1834
1817
  });
1835
1818
  return e;
1836
1819
  }
@@ -1838,55 +1821,55 @@ const oo = /* @__PURE__ */ X({
1838
1821
  /**
1839
1822
  * <字段类型,可配置的控件类型列表>的映射
1840
1823
  */
1841
- y(Z, "fieldControlTypeMapping", {
1824
+ S(te, "fieldControlTypeMapping", {
1842
1825
  String: [
1843
- { key: E["input-group"].type, value: E["input-group"].name },
1844
- { key: E.lookup.type, value: E.lookup.name },
1845
- { key: E["date-picker"].type, value: E["date-picker"].name },
1846
- { key: E["check-box"].type, value: E["check-box"].name },
1847
- { key: E["radio-group"].type, value: E["radio-group"].name },
1848
- { key: E["combo-list"].type, value: E["combo-list"].name },
1849
- { key: E.textarea.type, value: E.textarea.name }
1826
+ { key: A["input-group"].type, value: A["input-group"].name },
1827
+ { key: A.lookup.type, value: A.lookup.name },
1828
+ { key: A["date-picker"].type, value: A["date-picker"].name },
1829
+ { key: A["check-box"].type, value: A["check-box"].name },
1830
+ { key: A["radio-group"].type, value: A["radio-group"].name },
1831
+ { key: A["combo-list"].type, value: A["combo-list"].name },
1832
+ { key: A.textarea.type, value: A.textarea.name }
1850
1833
  ],
1851
1834
  Text: [
1852
- { key: E.textarea.type, value: E.textarea.name },
1853
- { key: E.lookup.type, value: E.lookup.name }
1835
+ { key: A.textarea.type, value: A.textarea.name },
1836
+ { key: A.lookup.type, value: A.lookup.name }
1854
1837
  ],
1855
1838
  Decimal: [
1856
- { key: E["number-spinner"].type, value: E["number-spinner"].name }
1839
+ { key: A["number-spinner"].type, value: A["number-spinner"].name }
1857
1840
  ],
1858
1841
  Integer: [
1859
- { key: E["number-spinner"].type, value: E["number-spinner"].name }
1842
+ { key: A["number-spinner"].type, value: A["number-spinner"].name }
1860
1843
  ],
1861
1844
  Number: [
1862
- { key: E["number-spinner"].type, value: E["number-spinner"].name }
1845
+ { key: A["number-spinner"].type, value: A["number-spinner"].name }
1863
1846
  ],
1864
1847
  BigNumber: [
1865
- { key: E["number-spinner"].type, value: E["number-spinner"].name }
1848
+ { key: A["number-spinner"].type, value: A["number-spinner"].name }
1866
1849
  ],
1867
1850
  Date: [
1868
- { key: E["date-picker"].type, value: E["date-picker"].name }
1851
+ { key: A["date-picker"].type, value: A["date-picker"].name }
1869
1852
  ],
1870
1853
  DateTime: [
1871
- { key: E["date-picker"].type, value: E["date-picker"].name }
1854
+ { key: A["date-picker"].type, value: A["date-picker"].name }
1872
1855
  ],
1873
1856
  Boolean: [
1874
- { key: E.switch.type, value: E.switch.name },
1875
- { key: E["check-box"].type, value: E["check-box"].name }
1857
+ { key: A.switch.type, value: A.switch.name },
1858
+ { key: A["check-box"].type, value: A["check-box"].name }
1876
1859
  ],
1877
1860
  Enum: [
1878
- { key: E["combo-list"].type, value: E["combo-list"].name },
1879
- { key: E["radio-group"].type, value: E["radio-group"].name }
1861
+ { key: A["combo-list"].type, value: A["combo-list"].name },
1862
+ { key: A["radio-group"].type, value: A["radio-group"].name }
1880
1863
  ],
1881
1864
  Object: [
1882
- { key: E.lookup.type, value: E.lookup.name },
1883
- { key: E["combo-list"].type, value: E["combo-list"].name },
1884
- { key: E["radio-group"].type, value: E["radio-group"].name }
1865
+ { key: A.lookup.type, value: A.lookup.name },
1866
+ { key: A["combo-list"].type, value: A["combo-list"].name },
1867
+ { key: A["radio-group"].type, value: A["radio-group"].name }
1885
1868
  ]
1886
1869
  });
1887
- let ue = Z;
1888
- I(0);
1889
- const ro = {
1870
+ let Fe = te;
1871
+ i(0);
1872
+ const qo = {
1890
1873
  id: { type: String, default: "" },
1891
1874
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
1892
1875
  editor: { type: Object, default: {} },
@@ -1901,14 +1884,1207 @@ const ro = {
1901
1884
  */
1902
1885
  selectOnCreated: { type: Boolean, default: !1 }
1903
1886
  };
1904
- K(
1905
- ro,
1906
- he,
1907
- oe,
1887
+ ce(
1888
+ qo,
1889
+ je,
1890
+ be,
1908
1891
  void 0
1909
1892
  );
1910
- var ao = /* @__PURE__ */ ((t) => (t[t.IntType = 0] = "IntType", t[t.StringType = 1] = "StringType", t[t.BoolType = 2] = "BoolType", t))(ao || {}), be = /* @__PURE__ */ ((t) => (t[t.Value = 0] = "Value", t[t.SmartHelp = 1] = "SmartHelp", t[t.Enum = 2] = "Enum", t[t.Express = 3] = "Express", t))(be || {}), Ce = /* @__PURE__ */ ((t) => (t.Equal = "0", t.NotEqual = "1", t.Greater = "2", t.GreaterOrEqual = "3", t.Less = "4", t.LessOrEqual = "5", t.Like = "6", t.LikeStartWith = "7", t.LikeEndWith = "8", t))(Ce || {});
1911
- const io = [
1893
+ const Uo = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-design.gitee.io/grid-field-editor.schema.json", Xo = "response-form-layout-setting", Yo = "A Farris Data Grid Component", Jo = "object", Qo = {
1894
+ id: {
1895
+ description: "The unique identifier for a Input Group",
1896
+ type: "string"
1897
+ },
1898
+ type: {
1899
+ description: "The type string of Input Group component",
1900
+ type: "string",
1901
+ default: "response-form-layout-setting"
1902
+ },
1903
+ viewModelId: {
1904
+ description: "",
1905
+ type: "string",
1906
+ default: ""
1907
+ },
1908
+ gridData: {
1909
+ description: "",
1910
+ type: "Object",
1911
+ default: null
1912
+ }
1913
+ }, Zo = [
1914
+ "id",
1915
+ "type"
1916
+ ], Ko = {
1917
+ $schema: Uo,
1918
+ $id: Wo,
1919
+ title: Xo,
1920
+ description: Yo,
1921
+ type: Jo,
1922
+ properties: Qo,
1923
+ required: Zo
1924
+ }, _o = {
1925
+ initialState: {
1926
+ type: Object,
1927
+ default: {
1928
+ uniqueColClassInSM: 12,
1929
+ uniqueColClassInMD: 6,
1930
+ uniqueColClassInLG: 3,
1931
+ uniqueColClassInEL: 2
1932
+ }
1933
+ }
1934
+ };
1935
+ Bn(_o, Ko, Xn, Zn);
1936
+ const ea = {
1937
+ width: { Type: Number, default: 400 },
1938
+ type: { Type: String, default: "info" },
1939
+ title: { Type: String, default: "" },
1940
+ detail: { Type: String, default: "" },
1941
+ okButtonText: { Type: String, default: "确定" },
1942
+ cancelButtonText: { Type: String, default: "取消" },
1943
+ exceptionInfo: { Type: Object, default: null },
1944
+ promptEditorType: { Type: String, default: "text-area" }
1945
+ };
1946
+ function Ce() {
1947
+ return new DOMException("The request is not allowed", "NotAllowedError");
1948
+ }
1949
+ async function ta(t) {
1950
+ if (!navigator.clipboard)
1951
+ throw Ce();
1952
+ return navigator.clipboard.writeText(t);
1953
+ }
1954
+ async function na(t) {
1955
+ const e = document.createElement("span");
1956
+ e.textContent = t, e.style.whiteSpace = "pre", e.style.webkitUserSelect = "auto", e.style.userSelect = "all", document.body.appendChild(e);
1957
+ const n = window.getSelection(), o = window.document.createRange();
1958
+ n == null || n.removeAllRanges(), o.selectNode(e), n == null || n.addRange(o);
1959
+ let a = !1;
1960
+ try {
1961
+ a = window.document.execCommand("copy");
1962
+ } finally {
1963
+ n == null || n.removeAllRanges(), window.document.body.removeChild(e);
1964
+ }
1965
+ if (!a) throw Ce();
1966
+ }
1967
+ async function oa(t) {
1968
+ try {
1969
+ await ta(t);
1970
+ } catch (e) {
1971
+ try {
1972
+ await na(t);
1973
+ } catch (n) {
1974
+ throw n || e || Ce();
1975
+ }
1976
+ }
1977
+ }
1978
+ function aa() {
1979
+ async function t(e) {
1980
+ await oa(e);
1981
+ }
1982
+ return { onCopy: t };
1983
+ }
1984
+ function la(t, e, n, o) {
1985
+ const a = i(14), r = i(140), s = i(""), u = i(o.value.length), p = B(() => o.value), l = B(() => ({
1986
+ "font-size": `${a.value}px`,
1987
+ height: "100%"
1988
+ }));
1989
+ function c(m) {
1990
+ if (m.currentTarget) {
1991
+ const v = m.currentTarget.value || "";
1992
+ u.value = v.length;
1993
+ }
1994
+ }
1995
+ return () => d(se, null, [d("textarea", {
1996
+ title: "promptMessage",
1997
+ name: "promptMessage",
1998
+ class: "form-control",
1999
+ style: l.value,
2000
+ rows: "4",
2001
+ maxlength: r.value,
2002
+ onInput: (m) => c(m)
2003
+ }, [p.value]), d("span", {
2004
+ class: "textarea-wordcount",
2005
+ title: s.value,
2006
+ style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
2007
+ }, [u.value + " / " + r.value])]);
2008
+ }
2009
+ function sa(t, e, n, o) {
2010
+ const a = la(t, e, n, o), r = /* @__PURE__ */ new Map([["text-area", a]]);
2011
+ function s(u) {
2012
+ return r.get(u) || null;
2013
+ }
2014
+ return { getEditorRender: s };
2015
+ }
2016
+ function ra() {
2017
+ const t = i(!1), e = i("复制成功");
2018
+ return {
2019
+ feedbackStyle: B(() => {
2020
+ const o = {
2021
+ position: "absolute",
2022
+ left: "50%",
2023
+ top: "50%",
2024
+ width: "100px",
2025
+ height: "40px",
2026
+ background: "#303C53",
2027
+ "line-height": "40px",
2028
+ "text-align": "center",
2029
+ "margin-left": "-30px",
2030
+ "margin-top": "-50px",
2031
+ "border-radius": "10px",
2032
+ "box-shadow": "0px 2px 8px 0px",
2033
+ color: "#fff",
2034
+ transition: "all .3s ease"
2035
+ };
2036
+ return o.opacity = t.value ? "0.8" : "0", o.display = t.value ? "" : "none", o;
2037
+ }),
2038
+ feedbackMessage: e,
2039
+ toShowFeedback: t
2040
+ };
2041
+ }
2042
+ function ia(t, e) {
2043
+ const n = e.getEditorRender(t.promptEditorType);
2044
+ return () => n && n();
2045
+ }
2046
+ function ua(t) {
2047
+ const e = i(3), n = i(480), o = B(() => !!t.value && !!t.value.date), a = B(() => `发生时间 : ${t.value && t.value.date || ""}`), r = B(() => !!t.value && !!t.value.detail), s = B(() => {
2048
+ const $ = `${n.value}px`;
2049
+ return {
2050
+ overflow: "hidden",
2051
+ "text-overflow": "ellipsis",
2052
+ display: "-webkit-box",
2053
+ "-webkit-box-orient": "vertical",
2054
+ "-webkit-line-clamp": e.value,
2055
+ "max-height": $
2056
+ };
2057
+ }), u = B(() => t.value && t.value.detail || ""), p = B(() => !0), l = i(!1), c = i("展开"), m = i("收起"), v = B(() => {
2058
+ const $ = {
2059
+ display: "block",
2060
+ color: "#2A87FF"
2061
+ };
2062
+ return $["text-align"] = l.value ? "" : "right", $;
2063
+ });
2064
+ function k($, h) {
2065
+ l.value = !l.value, e.value = l.value ? 20 : 3;
2066
+ }
2067
+ function E($) {
2068
+ return k();
2069
+ }
2070
+ function N($) {
2071
+ return k();
2072
+ }
2073
+ return () => d("div", {
2074
+ class: "toast-msg-detail"
2075
+ }, [o.value && d("div", null, [a.value]), r.value && d("div", {
2076
+ id: "exception_error_msg",
2077
+ ref: "exceptionMessageRef",
2078
+ style: s.value
2079
+ }, [le("详细信息 : "), d("span", {
2080
+ innerHTML: u.value
2081
+ }, null)]), p.value && d("span", {
2082
+ style: v.value
2083
+ }, [l.value && d("span", {
2084
+ onClick: E,
2085
+ style: "cursor: pointer;"
2086
+ }, [m.value]), !l.value && d("span", {
2087
+ onClick: N,
2088
+ style: "cursor: pointer;"
2089
+ }, [c.value])])]);
2090
+ }
2091
+ function ca(t) {
2092
+ return () => d("p", {
2093
+ class: "toast-msg-detail",
2094
+ innerHTML: t.value
2095
+ }, null);
2096
+ }
2097
+ function da(t, e, n, o) {
2098
+ const a = i(t.exceptionInfo), r = B(() => {
2099
+ const v = {
2100
+ "f-icon": !0
2101
+ }, k = `f-icon-${e.value}`;
2102
+ return v[k] = !0, v;
2103
+ }), s = B(() => n.value || a.value && a.value.message), u = B(() => o.value), p = B(() => !!o.value), l = B(() => !!a.value);
2104
+ function c() {
2105
+ return l.value ? ua(a) : p.value ? ca(u) : () => null;
2106
+ }
2107
+ const m = c();
2108
+ return () => d(se, null, [d("div", {
2109
+ class: "float-left modal-tips-iconwrap"
2110
+ }, [d("span", {
2111
+ class: r.value
2112
+ }, null)]), d("div", {
2113
+ class: "modal-tips-content"
2114
+ }, [d("p", {
2115
+ class: "toast-msg-title",
2116
+ innerHTML: s.value
2117
+ }, null), m()])]);
2118
+ }
2119
+ function pa(t, e, n) {
2120
+ const {
2121
+ onCopy: o
2122
+ } = e, {
2123
+ toShowFeedback: a
2124
+ } = n, r = i("复制成功"), s = i("复制详细信息"), u = i(t.exceptionInfo || {
2125
+ date: "",
2126
+ message: "",
2127
+ detail: ""
2128
+ }), p = B(() => u.value && u.value.detail || "");
2129
+ function l(c) {
2130
+ o(p.value).catch((m) => {
2131
+ r.value = "复制失败";
2132
+ }).finally(() => {
2133
+ a.value = !0, setTimeout(() => {
2134
+ a.value = !1;
2135
+ }, 700);
2136
+ });
2137
+ }
2138
+ return () => d("span", {
2139
+ style: "width: 100%;color: #2A87FF;padding-left: 37px;"
2140
+ }, [d("span", {
2141
+ onClick: l,
2142
+ style: "cursor: pointer;"
2143
+ }, [s.value])]);
2144
+ }
2145
+ function ma(t, e, n, o) {
2146
+ const a = i(t.type), r = i([]), s = i(t.exceptionInfo), u = i(t.okButtonText), p = i(t.cancelButtonText), l = i(!0), c = i(!0), m = B(() => !!(r.value && r.value.length)), v = B(() => s.value && s.value.date && s.value.message && s.value.detail), k = B(() => !(r.value && r.value.length) && (u.value || p.value)), E = B(() => c.value && u.value), N = B(() => l.value && p.value), $ = pa(t, n, o);
2147
+ function h(P) {
2148
+ a.value === "question" && e.emit("reject"), e.emit("close");
2149
+ }
2150
+ function b(P) {
2151
+ a.value === "question" && e.emit("accept"), e.emit("close");
2152
+ }
2153
+ return () => d("div", {
2154
+ class: "modal-footer"
2155
+ }, [v.value && $(), k.value && N.value && d("button", {
2156
+ type: "button",
2157
+ class: "btn btn-secondary btn-lg",
2158
+ onClick: h
2159
+ }, [p.value]), k.value && E.value && d("button", {
2160
+ type: "button",
2161
+ class: "btn btn-primary btn-lg",
2162
+ onClick: b
2163
+ }, [u.value]), m.value && r.value.length && r.value.map((P) => d("button", {
2164
+ type: "button",
2165
+ onClick: P.handle,
2166
+ class: P.class
2167
+ }, [P.iconClass && d("span", {
2168
+ class: P.iconClass
2169
+ }, null), P.text]))]);
2170
+ }
2171
+ const ue = /* @__PURE__ */ ee({
2172
+ name: "FMessageBox",
2173
+ props: ea,
2174
+ emits: ["accept", "reject", "close"],
2175
+ setup(t, e) {
2176
+ const n = i(t.type), o = i(t.title), a = i(t.detail), r = B(() => {
2177
+ const $ = {
2178
+ "modal-tips": !0,
2179
+ "d-flex": !0,
2180
+ "flex-row": !0
2181
+ }, h = `messager-type-${n.value}`;
2182
+ return $[h] = !0, $;
2183
+ }), s = B(() => {
2184
+ const $ = {};
2185
+ return n.value === "prompt" ? $.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && ($.padding = "0.5rem 1.5rem 1rem 1.5rem"), $;
2186
+ }), u = aa(), p = sa(t, n, o, a), l = ra(), {
2187
+ feedbackStyle: c,
2188
+ feedbackMessage: m
2189
+ } = l;
2190
+ function v() {
2191
+ return d("div", {
2192
+ style: c.value
2193
+ }, [m.value]);
2194
+ }
2195
+ function k() {
2196
+ switch (n.value) {
2197
+ case "prompt":
2198
+ return ia(t, p);
2199
+ default:
2200
+ return da(t, n, o, a);
2201
+ }
2202
+ }
2203
+ const E = k(), N = ma(t, e, u, l);
2204
+ return () => d("div", {
2205
+ class: "farris-messager"
2206
+ }, [d("section", {
2207
+ class: r.value,
2208
+ style: s.value
2209
+ }, [E()]), N(), v()]);
2210
+ }
2211
+ }), fa = {
2212
+ /**
2213
+ * 自定义类
2214
+ */
2215
+ class: { type: String, default: "" },
2216
+ /**
2217
+ * 模态框标题
2218
+ */
2219
+ title: { type: String, default: "" },
2220
+ /**
2221
+ * 模态框宽度
2222
+ */
2223
+ width: { type: Number, default: 500 },
2224
+ /**
2225
+ * 模态框高度
2226
+ */
2227
+ height: { type: Number, default: 320 },
2228
+ /**
2229
+ * 自定义按钮列表
2230
+ */
2231
+ buttons: {
2232
+ type: Array,
2233
+ default: []
2234
+ },
2235
+ /**
2236
+ * 是否展示模态框
2237
+ */
2238
+ modelValue: { type: Boolean, default: !1 },
2239
+ /**
2240
+ * 是否展示头部
2241
+ */
2242
+ showHeader: { type: Boolean, default: !0 },
2243
+ /**
2244
+ * 是否展示默认按钮
2245
+ */
2246
+ showButtons: { type: Boolean, default: !0 },
2247
+ /**
2248
+ * 是否启用自适应样式
2249
+ */
2250
+ fitContent: { type: Boolean, default: !0 },
2251
+ /**
2252
+ * 是否展示右上角按钮
2253
+ */
2254
+ showCloseButton: { type: Boolean, default: !0 },
2255
+ showMaxButton: { type: Boolean, default: !1 },
2256
+ minHeight: { type: Number },
2257
+ maxHeight: { type: Number },
2258
+ minWidth: { type: Number },
2259
+ maxWidth: { type: Number },
2260
+ containment: { type: Object, default: null },
2261
+ reiszeable: { type: Boolean, default: !1 },
2262
+ draggable: { type: Boolean, default: !1 },
2263
+ dragHandle: { type: Object, default: null },
2264
+ closedCallback: { type: Function, default: null },
2265
+ resizeHandle: { type: Function, default: null },
2266
+ render: { type: Function, default: null },
2267
+ acceptCallback: { type: Function, default: null },
2268
+ rejectCallback: { type: Function, default: null },
2269
+ enableEsc: { type: Boolean, default: !0 },
2270
+ enableEnter: { type: Boolean, default: !1 }
2271
+ };
2272
+ class Q {
2273
+ constructor(e, n) {
2274
+ this.x = e, this.y = n;
2275
+ }
2276
+ static getTransformInfo(e) {
2277
+ const o = window.getComputedStyle(e).getPropertyValue("transform").replace(/[^-\d,]/g, "").split(",");
2278
+ if (o.length >= 6) {
2279
+ const a = parseInt(o[4], 10), r = parseInt(o[5], 10);
2280
+ return { x: a, y: r };
2281
+ }
2282
+ return { x: 0, y: 0 };
2283
+ }
2284
+ static fromEvent(e, n = null) {
2285
+ if (this.isMouseEvent(e))
2286
+ return new Q(e.clientX, e.clientY);
2287
+ if (n === null || e.changedTouches.length === 1)
2288
+ return new Q(e.changedTouches[0].clientX, e.changedTouches[0].clientY);
2289
+ for (let o = 0; o < e.changedTouches.length; o++)
2290
+ if (e.changedTouches[o].target === n)
2291
+ return new Q(e.changedTouches[o].clientX, e.changedTouches[o].clientY);
2292
+ }
2293
+ static isMouseEvent(e) {
2294
+ return Object.prototype.toString.apply(e).indexOf("MouseEvent") === 8;
2295
+ }
2296
+ static isIPosition(e) {
2297
+ return !!e && "x" in e && "y" in e;
2298
+ }
2299
+ static getCurrent(e) {
2300
+ const n = new Q(0, 0);
2301
+ if (window) {
2302
+ const o = window.getComputedStyle(e);
2303
+ if (o) {
2304
+ const a = parseInt(o.getPropertyValue("left"), 10), r = parseInt(o.getPropertyValue("top"), 10);
2305
+ n.x = isNaN(a) ? 0 : a, n.y = isNaN(r) ? 0 : r;
2306
+ }
2307
+ return n;
2308
+ }
2309
+ return null;
2310
+ }
2311
+ static copy(e) {
2312
+ return new Q(0, 0).set(e);
2313
+ }
2314
+ get value() {
2315
+ return { x: this.x, y: this.y };
2316
+ }
2317
+ add(e) {
2318
+ return this.x += e.x, this.y += e.y, this;
2319
+ }
2320
+ subtract(e) {
2321
+ return this.x -= e.x, this.y -= e.y, this;
2322
+ }
2323
+ multiply(e) {
2324
+ this.x *= e, this.y *= e;
2325
+ }
2326
+ divide(e) {
2327
+ this.x /= e, this.y /= e;
2328
+ }
2329
+ reset() {
2330
+ return this.x = 0, this.y = 0, this;
2331
+ }
2332
+ set(e) {
2333
+ return this.x = e.x, this.y = e.y, this;
2334
+ }
2335
+ }
2336
+ class _ {
2337
+ constructor(e, n) {
2338
+ this.width = e, this.height = n;
2339
+ }
2340
+ static getCurrent(e) {
2341
+ const n = new _(0, 0);
2342
+ if (window) {
2343
+ const o = window.getComputedStyle(e);
2344
+ return o && (n.width = parseInt(o.getPropertyValue("width"), 10), n.height = parseInt(o.getPropertyValue("height"), 10)), n;
2345
+ }
2346
+ return null;
2347
+ }
2348
+ static copy(e) {
2349
+ return new _(0, 0).set(e);
2350
+ }
2351
+ set(e) {
2352
+ return this.width = e.width, this.height = e.height, this;
2353
+ }
2354
+ }
2355
+ function va(t, e) {
2356
+ const n = i(), o = i(), a = i(), r = i(), s = i(), u = i(), p = i(), l = i(), c = i(), m = i(), v = i(), k = i(), E = i(t.draggable), N = i(!1);
2357
+ function $() {
2358
+ const C = o.value || document.body, y = window.getComputedStyle(C);
2359
+ if (!y || !n.value)
2360
+ return;
2361
+ const j = Q.getTransformInfo(n.value), G = {};
2362
+ p.value && (G.deltaL = n.value.offsetLeft - p.value.x, G.deltaT = n.value.offsetTop - p.value.y);
2363
+ const U = y.getPropertyValue("position");
2364
+ G.width = C.clientWidth, G.height = C.clientHeight, G.pr = parseInt(y.getPropertyValue("padding-right"), 10), G.pb = parseInt(y.getPropertyValue("padding-bottom"), 10), G.position = y.getPropertyValue("position"), U === "static" && (C.style.position = "relative"), G.translateX = j.x, G.translateY = j.y, m.value = G;
2365
+ }
2366
+ function h(C) {
2367
+ if (n.value) {
2368
+ r.value = _.getCurrent(n.value), s.value = Q.getCurrent(n.value), u.value = r.value ? _.copy(r.value) : null, p.value = s.value ? Q.copy(s.value) : null, $();
2369
+ const y = C.target.getAttribute("type") || "";
2370
+ l.value = {
2371
+ n: !!y.match(/n/),
2372
+ s: !!y.match(/s/),
2373
+ w: !!y.match(/w/),
2374
+ e: !!y.match(/e/)
2375
+ };
2376
+ }
2377
+ }
2378
+ function b() {
2379
+ var C, y, j, G;
2380
+ if (n.value) {
2381
+ const U = n.value;
2382
+ l.value && ((l.value.n || l.value.s) && ((C = u.value) != null && C.height) && (U.style.height = u.value.height + "px"), (l.value.w || l.value.e) && ((y = u.value) != null && y.width) && (U.style.width = u.value.width + "px"), p.value && ((j = p.value) != null && j.x && (U.style.left = p.value.x + "px"), (G = p.value) != null && G.y && (U.style.top = p.value.y + "px")));
2383
+ }
2384
+ }
2385
+ function P() {
2386
+ const C = t.minHeight ? t.minHeight : 1, y = t.minWidth ? t.minWidth : 1;
2387
+ u.value && p.value && l.value && r.value && (u.value.height < C && (u.value.height = C, l.value.n && s.value && (p.value.y = s.value.y + (r.value.height - C))), u.value.width < y && (u.value.width = y, l.value.w && s.value && (p.value.x = s.value.x + (r.value.width - y))), t.maxHeight && u.value.height > t.maxHeight && (u.value.height = t.maxHeight, s.value && l.value.n && (p.value.y = s.value.y + (r.value.height - t.maxHeight))), t.maxWidth && u.value.width > t.maxWidth && (u.value.width = t.maxWidth, l.value.w && s.value && (p.value.x = s.value.x + (r.value.width - t.maxWidth))));
2388
+ }
2389
+ function D() {
2390
+ if (o.value) {
2391
+ const C = m.value;
2392
+ if (p.value && u.value && l.value && r.value) {
2393
+ const y = C.width - C.pr - C.deltaL - C.translateX - p.value.x, j = C.height - C.pb - C.deltaT - C.translateY - p.value.y;
2394
+ l.value.n && p.value.y + C.translateY < 0 && s.value && (p.value.y = -C.translateY, u.value.height = r.value.height + s.value.y + C.translateY), l.value.w && p.value.x + C.translateX < 0 && s.value && (p.value.x = -C.translateX, u.value.width = r.value.width + s.value.x + C.translateX), u.value.width > y && (u.value.width = y), u.value.height > j && (u.value.height = j);
2395
+ }
2396
+ }
2397
+ }
2398
+ function W(C) {
2399
+ if (!a.value || !r.value || !s.value || !l.value)
2400
+ return;
2401
+ C.subtract(a.value);
2402
+ const y = C.x, j = C.y;
2403
+ l.value.n ? (p.value.y = s.value.y + j, u.value.height = r.value.height - j) : l.value.s && (u.value.height = r.value.height + j), l.value.e ? u.value.width = r.value.width + y : l.value.w && (u.value.width = r.value.width - y, p.value.x = s.value.x + y), D(), P(), b();
2404
+ }
2405
+ function q(C) {
2406
+ if (!c.value)
2407
+ return;
2408
+ const y = Q.fromEvent(C);
2409
+ y && W(y);
2410
+ }
2411
+ function T() {
2412
+ if (n.value) {
2413
+ const {
2414
+ width: C,
2415
+ height: y,
2416
+ x: j,
2417
+ y: G
2418
+ } = n.value.getBoundingClientRect(), U = Q.getTransformInfo(n.value);
2419
+ return {
2420
+ size: {
2421
+ width: C,
2422
+ height: y
2423
+ },
2424
+ position: {
2425
+ x: j - U.x,
2426
+ y: G - U.y
2427
+ }
2428
+ };
2429
+ }
2430
+ return null;
2431
+ }
2432
+ function H(C) {
2433
+ if (n.value) {
2434
+ const y = T();
2435
+ v.value = y;
2436
+ }
2437
+ a.value = void 0, r.value = null, s.value = null, u.value = null, p.value = null, l.value = null, c.value = null, document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", H);
2438
+ }
2439
+ function f() {
2440
+ document.addEventListener("mousemove", q), document.addEventListener("mouseup", H);
2441
+ }
2442
+ function w(C) {
2443
+ C instanceof MouseEvent && C.button === 2 || E.value && (C.stopPropagation(), C.preventDefault(), a.value = Q.fromEvent(C), c.value = C.target, h(C), f());
2444
+ }
2445
+ function x(C) {
2446
+ return n.value = C, d(se, null, [d("div", {
2447
+ class: "fv-resizable-handle fv-resizable-n",
2448
+ type: "n",
2449
+ onMousedown: (y) => w(y)
2450
+ }, null), d("div", {
2451
+ class: "fv-resizable-handle fv-resizable-e",
2452
+ type: "e",
2453
+ onMousedown: (y) => w(y)
2454
+ }, null), d("div", {
2455
+ class: "fv-resizable-handle fv-resizable-s",
2456
+ type: "s",
2457
+ onMousedown: (y) => w(y)
2458
+ }, null), d("div", {
2459
+ class: "fv-resizable-handle fv-resizable-w",
2460
+ type: "w",
2461
+ onMousedown: (y) => w(y)
2462
+ }, null), d("div", {
2463
+ class: "fv-resizable-handle fv-resizable-ne",
2464
+ type: "ne",
2465
+ onMousedown: (y) => w(y)
2466
+ }, null), d("div", {
2467
+ class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
2468
+ type: "se",
2469
+ onMousedown: (y) => w(y)
2470
+ }, null), d("div", {
2471
+ class: "fv-resizable-handle fv-resizable-sw",
2472
+ type: "sw",
2473
+ onMousedown: (y) => w(y)
2474
+ }, null), d("div", {
2475
+ class: "fv-resizable-handle fv-resizable-nw",
2476
+ type: "nw",
2477
+ onMousedown: (y) => w(y)
2478
+ }, null)]);
2479
+ }
2480
+ function R(C = !0) {
2481
+ const y = o.value || document.body, j = _.getCurrent(y), G = n.value;
2482
+ C && (k.value = T(), k.value.transform = G.style.transform), j && G && (u.value = j, G.style.height = u.value.height - 14 + "px", G.style.width = u.value.width - 14 + "px", G.style.left = "7px", G.style.top = "7px", G.style.transform = "", v.value = {
2483
+ size: u.value,
2484
+ position: {
2485
+ x: 0,
2486
+ y: 0
2487
+ }
2488
+ }, E.value = !1, N.value = !0);
2489
+ }
2490
+ function g() {
2491
+ var C, y;
2492
+ if (k.value) {
2493
+ const j = {
2494
+ width: k.value.size.width || 0,
2495
+ height: k.value.size.height || 0
2496
+ }, G = {
2497
+ x: (window.innerWidth - j.width) / 2,
2498
+ y: (window.innerHeight - j.height) / 2
2499
+ };
2500
+ (C = u.value) == null || C.set(j), (y = p.value) == null || y.set(G);
2501
+ const U = n.value;
2502
+ U.style.height = j.height + "px", U.style.width = j.width + "px", U.style.left = `${G.x}px`, U.style.top = `${G.y}px`, U.style.transform = "", v.value = {
2503
+ size: j,
2504
+ position: G
2505
+ }, E.value = t.draggable, N.value = !1;
2506
+ }
2507
+ }
2508
+ function M() {
2509
+ if (n.value) {
2510
+ const C = _.getCurrent(n.value);
2511
+ if (C) {
2512
+ const {
2513
+ width: y,
2514
+ height: j
2515
+ } = C;
2516
+ n.value.style.left = `${(window.innerWidth - y) / 2}px`, n.value.style.top = `${(window.innerHeight - j) / 2}px`, n.value.style.transform = "";
2517
+ }
2518
+ }
2519
+ }
2520
+ function z() {
2521
+ const C = () => {
2522
+ N.value ? R(!1) : M();
2523
+ };
2524
+ return window.addEventListener("resize", C), () => {
2525
+ window.removeEventListener("resize", C);
2526
+ };
2527
+ }
2528
+ const Y = z();
2529
+ return {
2530
+ renderResizeBar: x,
2531
+ boundingElement: o,
2532
+ resizedEventParam: v,
2533
+ maximize: R,
2534
+ restore: g,
2535
+ allowDrag: E,
2536
+ isMaximized: N,
2537
+ unWindowResizeHandle: Y
2538
+ };
2539
+ }
2540
+ function ha(t, e, n) {
2541
+ const o = i(), a = i(t.draggable), r = i(t.lockAxis), s = i(), u = i(), p = i(!1), l = i(new Q(0, 0)), c = i(new Q(0, 0)), m = i(new Q(0, 0)), v = i(new Q(0, 0));
2542
+ J(() => n.value, (T) => {
2543
+ s.value.style.cursor = T ? "move" : "default";
2544
+ });
2545
+ function k(T, H) {
2546
+ if (H.tagName === "BUTTON")
2547
+ return !1;
2548
+ if (H === T)
2549
+ return !0;
2550
+ for (const f in H.children)
2551
+ if (H.children.hasOwnProperty(f) && k(T, H.children[f]))
2552
+ return !0;
2553
+ return !1;
2554
+ }
2555
+ function E() {
2556
+ var w, x;
2557
+ let T = m.value.x + c.value.x, H = m.value.y + c.value.y;
2558
+ r.value === "x" ? (T = ((w = l.value) == null ? void 0 : w.x) || 0, m.value.x = 0) : r.value === "y" && (H = ((x = l.value) == null ? void 0 : x.y) || 0, m.value.y = 0);
2559
+ const f = `translate3d(${Math.round(T)}px, ${Math.round(H)}px, 0px)`;
2560
+ o.value && (o.value.style.transform = f), v.value.x = T, v.value.y = H;
2561
+ }
2562
+ function N() {
2563
+ if (!u.value || !o.value)
2564
+ return null;
2565
+ const T = u.value.getBoundingClientRect(), H = o.value.getBoundingClientRect(), f = {
2566
+ top: T.top < H.top,
2567
+ right: T.right > H.right,
2568
+ bottom: T.bottom > H.bottom,
2569
+ left: T.left < H.left
2570
+ };
2571
+ return f.top || (m.value.y -= H.top - T.top), f.bottom || (m.value.y -= H.bottom - T.bottom), f.right || (m.value.x -= H.right - T.right), f.left || (m.value.x -= H.left - T.left), E(), f;
2572
+ }
2573
+ function $(T) {
2574
+ T && (l.value && T.subtract(l.value), m.value.set(T), E(), N());
2575
+ }
2576
+ function h(T) {
2577
+ p.value && a.value && (T.stopPropagation(), T.preventDefault(), $(Q.fromEvent(T, s.value)));
2578
+ }
2579
+ function b() {
2580
+ var T;
2581
+ p.value && (p.value = !1, c.value.add(m.value), m.value.reset(), (T = o.value) == null || T.classList.remove("ng-dragging"), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", b));
2582
+ }
2583
+ function P() {
2584
+ !p.value && s.value && (p.value = !0, s.value.classList.add("ng-dragging"), document.addEventListener("mousemove", h), document.addEventListener("mouseup", b));
2585
+ }
2586
+ function D() {
2587
+ if (o.value) {
2588
+ const T = Q.getTransformInfo(o.value);
2589
+ c.value.set(T);
2590
+ return;
2591
+ }
2592
+ c.value.reset();
2593
+ }
2594
+ function W(T) {
2595
+ if (!n.value || T instanceof MouseEvent && T.button === 2)
2596
+ return;
2597
+ const H = T.target || T.srcElement;
2598
+ s.value !== void 0 && H && !k(H, s.value) || a.value !== !1 && (document.body.click(), T.stopPropagation(), T.preventDefault(), l.value = Q.fromEvent(T, o.value), D(), P());
2599
+ }
2600
+ function q(T, H, f) {
2601
+ if (a.value && H) {
2602
+ if (T)
2603
+ s.value = T;
2604
+ else if (t.dragHandle) {
2605
+ if (t.dragHandle instanceof HTMLElement)
2606
+ s.value = t.dragHandle;
2607
+ else if (typeof t.dragHandle == "string") {
2608
+ const w = H.querySelector(t.dragHandle);
2609
+ w && (s.value = w);
2610
+ }
2611
+ }
2612
+ o.value = H, u.value = f, s.value.classList.add("ng-draggable"), s.value.addEventListener("mousedown", W);
2613
+ }
2614
+ }
2615
+ return {
2616
+ registerDraggle: q,
2617
+ resetTranslate: D
2618
+ };
2619
+ }
2620
+ function Ne(t, e) {
2621
+ if (t) {
2622
+ const n = (o) => {
2623
+ o.key.toLowerCase() === t.toLowerCase() && e({ event: o, key: t });
2624
+ };
2625
+ return document.addEventListener("keydown", n), () => {
2626
+ document.removeEventListener("keydown", n);
2627
+ };
2628
+ }
2629
+ }
2630
+ function ga(t, e) {
2631
+ const n = i(t.enableEsc);
2632
+ let o = null;
2633
+ return n.value ? (o = Ne("Escape", (a) => {
2634
+ e.emit("esc", { event: a.event, type: "esc" });
2635
+ }), {
2636
+ remove: o
2637
+ }) : null;
2638
+ }
2639
+ function ya(t, e) {
2640
+ const n = i(t.enableEnter);
2641
+ let o = null;
2642
+ return n.value ? (o = Ne("Enter", (a) => {
2643
+ e.emit("enter", { event: a.event, type: "enter" });
2644
+ }), {
2645
+ remove: o
2646
+ }) : null;
2647
+ }
2648
+ const ze = /* @__PURE__ */ ee({
2649
+ name: "FModal",
2650
+ props: fa,
2651
+ emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
2652
+ setup(t, e) {
2653
+ const n = i(t.width || 300), o = i(t.height || 200), a = i(t.modelValue), r = i(""), s = i(t.class), u = i(t.fitContent), p = i(t.showHeader), l = i(""), c = i(t.showCloseButton), m = i(t.showMaxButton), v = i(!1), k = i(""), E = i(""), N = i(""), $ = i(t.showButtons), h = i(t.title), b = i(t.reiszeable), P = i(t.containment || null), D = i();
2654
+ function W(F, X) {
2655
+ a.value = !1, e.emit("update:modelValue", !1), X != null && e.emit(X ? "accept" : "cancel"), e.emit("closed", F);
2656
+ }
2657
+ const q = [{
2658
+ name: "cancel",
2659
+ text: "取消",
2660
+ class: "btn btn-secondary",
2661
+ handle: (F) => {
2662
+ W(F, !1);
2663
+ }
2664
+ }, {
2665
+ name: "accept",
2666
+ text: "确定",
2667
+ class: "btn btn-primary",
2668
+ handle: (F) => {
2669
+ W(F, !0);
2670
+ }
2671
+ }], T = i(t.buttons && t.buttons.length ? t.buttons : q), H = B(() => !!l.value), f = B(() => !!$.value && !!T.value), w = i(), x = i(), R = i(!1), {
2672
+ renderResizeBar: g,
2673
+ maximize: M,
2674
+ restore: z,
2675
+ boundingElement: Y,
2676
+ resizedEventParam: C,
2677
+ allowDrag: y,
2678
+ unWindowResizeHandle: j
2679
+ } = va(t), {
2680
+ registerDraggle: G
2681
+ } = ha(t, e, y);
2682
+ J(() => t.title, (F, X) => {
2683
+ F !== X && (h.value = F);
2684
+ }), J(() => t.modelValue, (F, X) => {
2685
+ F !== X && (a.value = F);
2686
+ }), J(() => t.showHeader, (F, X) => {
2687
+ F !== X && (p.value = F);
2688
+ }), J(() => t.showButtons, (F, X) => {
2689
+ F !== X && ($.value = F);
2690
+ }), J(() => C.value, (F, X) => {
2691
+ const ae = F || {}, ie = X || {};
2692
+ JSON.stringify(ae) !== JSON.stringify(ie) && e.emit("resize", {
2693
+ newSize: F,
2694
+ oldSize: X
2695
+ });
2696
+ });
2697
+ function U() {
2698
+ const F = document.querySelectorAll(".farris-modal").length;
2699
+ (!F || F - 1 <= 0) && document.body.classList.remove("modal-open"), D.value && D.value.classList.remove("show");
2700
+ }
2701
+ const re = B(() => (a.value ? document.body.classList.add("modal-open") : U(), a.value)), De = B(() => {
2702
+ const F = {
2703
+ modal: !0,
2704
+ "farris-modal": !0,
2705
+ fade: !0
2706
+ };
2707
+ return F["f-modal-fitContent"] = !!u.value, F.show = !!re.value, F;
2708
+ }), Ge = B(() => {
2709
+ var ae;
2710
+ const F = {
2711
+ "modal-dialog": !0
2712
+ }, X = (ae = s.value) == null ? void 0 : ae.split(" ");
2713
+ return X == null || X.reduce((ie, ot) => (ie[ot] = !0, ie), F), F;
2714
+ }), qe = B(() => ({
2715
+ position: "absolute",
2716
+ top: `${(window.innerHeight - o.value) / 2}px`,
2717
+ left: `${(window.innerWidth - n.value) / 2}px`,
2718
+ width: `${n.value}px`,
2719
+ height: u.value ? "auto" : `${o.value}px`
2720
+ })), Ue = B(() => ({
2721
+ "modal-content": !0,
2722
+ "modal-content-has-header": p.value
2723
+ })), We = B(() => {
2724
+ const F = {
2725
+ display: p.value ? "" : "none"
2726
+ };
2727
+ return F["pointer-events"] = y.value ? "auto" : "none", F;
2728
+ }), Xe = B(() => ({
2729
+ "f-icon": !0,
2730
+ modal_maximize: !0,
2731
+ modalrevert: R.value
2732
+ })), Ye = B(() => ({
2733
+ "modal-body": !0,
2734
+ "f-utils-flex-column": k.value === "iframe"
2735
+ }));
2736
+ function Je() {
2737
+ return {};
2738
+ }
2739
+ const Qe = B(() => {
2740
+ const F = {
2741
+ textAlgin: N.value
2742
+ }, X = Je();
2743
+ return Object.assign(F, X);
2744
+ });
2745
+ function we(F) {
2746
+ if (F.stopPropagation(), R.value) {
2747
+ R.value = !1, z();
2748
+ return;
2749
+ }
2750
+ M(), R.value = !0;
2751
+ }
2752
+ async function Ze(F, X) {
2753
+ F.handle && await F.handle(X, F) && e.emit("closed", X);
2754
+ }
2755
+ function Ke(F) {
2756
+ F.width && (n.value = F.width), F.height && (o.value = F.height), F.buttons && (T.value = F.buttons), F.title && (h.value = F.title);
2757
+ }
2758
+ let de = null, pe = null;
2759
+ oe(() => {
2760
+ x.value && !P.value && (P.value = x.value.parentElement, Y.value = P.value, G(w.value, x.value, Y.value)), re.value && document.body.classList.add("modal-open"), de = ga(t, e), pe = ya(t, e);
2761
+ }), Se(() => {
2762
+ U(), j && j(), de && de.remove(), pe && pe.remove();
2763
+ }), e.expose({
2764
+ modalElementRef: x,
2765
+ updateModalOptions: Ke,
2766
+ close: W,
2767
+ maxDialog: we
2768
+ });
2769
+ function _e() {
2770
+ return d("ul", null, [v.value && d("li", {
2771
+ class: "f-btn-icon f-bare"
2772
+ }, [d("span", {
2773
+ class: "f-icon modal_minimize"
2774
+ }, null)]), m.value && d("li", {
2775
+ onClick: we,
2776
+ class: "f-btn-icon f-bare",
2777
+ style: "pointer-events: auto;"
2778
+ }, [d("span", {
2779
+ class: Xe.value
2780
+ }, null)]), c.value && d("li", {
2781
+ class: "f-btn-icon f-bare",
2782
+ onClick: (F) => W(F, !1),
2783
+ style: "pointer-events: auto;"
2784
+ }, [d("span", {
2785
+ class: "f-icon modal_close"
2786
+ }, null)])]);
2787
+ }
2788
+ function et() {
2789
+ return d("div", {
2790
+ class: "modal-footer",
2791
+ style: Qe.value
2792
+ }, [T.value && T.value.map((F) => d("button", {
2793
+ name: F.name,
2794
+ type: "button",
2795
+ class: F.class + (F.iconClass ? " btn-icontext" : ""),
2796
+ onClick: (X) => {
2797
+ Ze(F, X);
2798
+ }
2799
+ }, [!!F.iconClass && d("i", {
2800
+ class: F.iconClass
2801
+ }, null), F.text]))]);
2802
+ }
2803
+ function tt() {
2804
+ return d("div", {
2805
+ ref: w,
2806
+ class: "modal-header",
2807
+ style: We.value
2808
+ }, [d("div", {
2809
+ class: "modal-title"
2810
+ }, [H.value && d("span", {
2811
+ class: l.value,
2812
+ style: "margin-right: 8px"
2813
+ }, null), d("span", {
2814
+ class: "modal-title-label"
2815
+ }, [h.value])]), d("div", {
2816
+ class: "actions"
2817
+ }, [_e()])]);
2818
+ }
2819
+ function nt(F) {
2820
+ F.stopPropagation();
2821
+ }
2822
+ return () => d(ut, {
2823
+ to: "body"
2824
+ }, {
2825
+ default: () => [re.value && d(ct, {
2826
+ name: "fade",
2827
+ appear: !0
2828
+ }, {
2829
+ default: () => {
2830
+ var F, X;
2831
+ return [d("div", {
2832
+ class: De.value,
2833
+ style: "display: block",
2834
+ ref: D,
2835
+ onClick: nt
2836
+ }, [d("div", {
2837
+ id: r.value,
2838
+ class: Ge.value,
2839
+ style: qe.value,
2840
+ ref: x
2841
+ }, [d("div", {
2842
+ class: Ue.value
2843
+ }, [p.value && tt(), d("div", {
2844
+ class: Ye.value
2845
+ }, [(X = (F = e.slots).default) == null ? void 0 : X.call(F), k.value === "iframe" && d("iframe", {
2846
+ title: r.value,
2847
+ class: "f-utils-fill",
2848
+ width: "100%",
2849
+ frameborder: "0",
2850
+ src: E.value
2851
+ }, null)]), f.value && et()]), !u.value && b.value && x.value && g(x.value)])])];
2852
+ }
2853
+ })]
2854
+ });
2855
+ }
2856
+ });
2857
+ function $e(t) {
2858
+ if (t.content && t.content.render)
2859
+ return t.content.render;
2860
+ if (t.render && typeof t.render == "function")
2861
+ return t.render;
2862
+ }
2863
+ function ba(t) {
2864
+ const e = document.createElement("div");
2865
+ e.style.display = "contents";
2866
+ const n = pt({
2867
+ setup(o, a) {
2868
+ Se(() => {
2869
+ document.body.removeChild(e);
2870
+ });
2871
+ const r = i(), s = i(t.class || ""), u = i(!!t.showButtons), p = i(!!t.showHeader), l = i(t.showCloseButton == null ? !0 : t.showCloseButton), c = i(!0), m = i(t.title || ""), v = t.acceptCallback || (() => {
2872
+ }), k = t.rejectCallback || (() => {
2873
+ }), E = t.closedCallback || ((b) => {
2874
+ }), N = t.resizeHandle || ((b) => {
2875
+ }), $ = $e(t), h = (b) => {
2876
+ c.value = !1, n.unmount(), E(b);
2877
+ };
2878
+ return oe(() => {
2879
+ }), a.expose({
2880
+ modalRef: r
2881
+ }), () => d(ze, {
2882
+ ref: r,
2883
+ class: s.value,
2884
+ modelValue: c.value,
2885
+ "onUpdate:modelValue": (b) => c.value = b,
2886
+ title: m.value,
2887
+ width: t.width,
2888
+ height: t.height,
2889
+ buttons: t.buttons,
2890
+ "show-header": p.value,
2891
+ "show-buttons": u.value,
2892
+ "show-close-button": l.value,
2893
+ "show-max-button": !1,
2894
+ onAccept: v,
2895
+ onCancel: k,
2896
+ fitContent: t.fitContent == null ? !0 : t.fitContent,
2897
+ onClosed: h,
2898
+ onResize: N
2899
+ }, {
2900
+ default: () => [$ && $(n)]
2901
+ });
2902
+ }
2903
+ });
2904
+ return document.body.appendChild(e), n.mount(e), n;
2905
+ }
2906
+ class Ca {
2907
+ constructor(e) {
2908
+ S(this, "appContext", null);
2909
+ S(this, "modalRef", i());
2910
+ S(this, "activeModalIndex", i(0));
2911
+ S(this, "modalRefs", {});
2912
+ S(this, "isUseEscCloseModal", i(!1));
2913
+ S(this, "activeModalInstance", B(() => this.modalRefs[this.activeModalIndex.value]));
2914
+ this.appContext = e ? e._context : null;
2915
+ }
2916
+ getCurrentModal() {
2917
+ return this.activeModalInstance.value;
2918
+ }
2919
+ static show(e) {
2920
+ const n = Object.assign({
2921
+ title: "",
2922
+ showButtons: !0,
2923
+ showHeader: !0
2924
+ }, e);
2925
+ return ba(n);
2926
+ }
2927
+ open(e) {
2928
+ const n = document.createDocumentFragment();
2929
+ e.showMaxButton && e.fitContent && (e.showMaxButton = !1);
2930
+ const o = dt(Object.assign({
2931
+ title: "",
2932
+ showButtons: !0,
2933
+ showHeader: !0
2934
+ }, e)), a = i(!0), r = o.value.acceptCallback || (() => {
2935
+ }), s = o.value.rejectCallback || (() => {
2936
+ }), u = o.value.closedCallback || ((h, b) => {
2937
+ }), p = o.value.resizeHandle || ((h) => {
2938
+ });
2939
+ let l;
2940
+ const c = $e(o.value), m = (h) => {
2941
+ var P;
2942
+ a.value = !1;
2943
+ const b = (P = h == null ? void 0 : h.target) == null ? void 0 : P.classList.contains("modal_close");
2944
+ u(h, this.isUseEscCloseModal.value ? "esc" : b ? "icon" : "button");
2945
+ }, v = (h) => {
2946
+ m(h), l && ve(() => {
2947
+ if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], me(null, n), l = null, this.modalRef.value = null, this.modalRefs) {
2948
+ const b = Object.keys(this.modalRefs);
2949
+ b.length > 0 ? this.activeModalIndex.value = Math.max(...b) : this.activeModalIndex.value = 0;
2950
+ }
2951
+ this.isUseEscCloseModal.value = !1;
2952
+ });
2953
+ }, k = (h) => {
2954
+ var b;
2955
+ this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((b = this.activeModalInstance.value) == null || b.close(h == null ? void 0 : h.event));
2956
+ }, E = () => d(ze, ye({
2957
+ ref: this.modalRef,
2958
+ modelValue: a.value,
2959
+ "onUpdate:modelValue": (h) => a.value = h
2960
+ }, o.value, {
2961
+ onAccept: r,
2962
+ onCancel: s,
2963
+ onClosed: v,
2964
+ onResize: p,
2965
+ onEsc: k
2966
+ }), {
2967
+ default: () => [c && c()]
2968
+ });
2969
+ return l = ((h) => {
2970
+ const b = mt(E, h);
2971
+ return b.appContext = this.appContext, me(b, n), b;
2972
+ })({
2973
+ ...o.value
2974
+ // 'onUpdate:modelValue': onUpdateModelValue,
2975
+ }), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
2976
+ update: (h) => {
2977
+ o.value = {
2978
+ ...o.value,
2979
+ ...h
2980
+ }, l && me(ft(l, {
2981
+ ...o
2982
+ }), n);
2983
+ },
2984
+ destroy: v,
2985
+ modalRef: this.activeModalInstance
2986
+ };
2987
+ }
2988
+ }
2989
+ class K {
2990
+ static show(e) {
2991
+ let n = new Ca();
2992
+ const o = Z({
2993
+ ...e
2994
+ }), a = !1, r = o.type === "error" || o.type === "prompt", s = o.type === "error" ? "错误提示" : o.type === "prompt" && o.title || "", u = o.acceptCallback || (() => {
2995
+ }), p = o.rejectCallback || (() => {
2996
+ });
2997
+ let l = null;
2998
+ const c = () => {
2999
+ l && (l == null || l.destroy(), n = null);
3000
+ };
3001
+ l = n == null ? void 0 : n.open({
3002
+ class: "modal-message modal-message-type-info",
3003
+ title: s,
3004
+ showButtons: a,
3005
+ showHeader: r,
3006
+ width: o.width || 400,
3007
+ fitContent: !0,
3008
+ showMaxButton: !1,
3009
+ render: () => d(ue, ye(o, {
3010
+ onAccept: u,
3011
+ onReject: p,
3012
+ onClose: c
3013
+ }), null)
3014
+ });
3015
+ }
3016
+ static info(e, n) {
3017
+ const o = Z({
3018
+ type: "info",
3019
+ title: e,
3020
+ detail: n,
3021
+ okButtonText: "知道了",
3022
+ cancelButtonText: ""
3023
+ });
3024
+ K.show(o);
3025
+ }
3026
+ static warning(e, n) {
3027
+ const o = Z({
3028
+ type: "warning",
3029
+ title: e,
3030
+ detail: n,
3031
+ okButtonText: "知道了",
3032
+ cancelButtonText: ""
3033
+ });
3034
+ K.show(o);
3035
+ }
3036
+ static success(e, n) {
3037
+ const o = Z({
3038
+ type: "success",
3039
+ title: e,
3040
+ detail: n,
3041
+ okButtonText: "关闭",
3042
+ cancelButtonText: ""
3043
+ });
3044
+ K.show(o);
3045
+ }
3046
+ static error(e, n, o) {
3047
+ const a = Z({
3048
+ width: 500,
3049
+ type: "error",
3050
+ okButtonText: "关闭",
3051
+ cancelButtonText: "",
3052
+ exceptionInfo: {
3053
+ date: o,
3054
+ message: e,
3055
+ detail: n
3056
+ }
3057
+ });
3058
+ K.show(a);
3059
+ }
3060
+ static prompt(e, n) {
3061
+ const o = Z({
3062
+ type: "prompt",
3063
+ title: e,
3064
+ detail: n,
3065
+ okButtonText: "确定",
3066
+ cancelButtonText: "取消"
3067
+ });
3068
+ K.show(o);
3069
+ }
3070
+ static question(e, n, o, a) {
3071
+ const r = Z({
3072
+ type: "question",
3073
+ title: e,
3074
+ detail: n,
3075
+ okButtonText: "确定",
3076
+ cancelButtonText: "取消",
3077
+ acceptCallback: o,
3078
+ rejectCallback: a
3079
+ });
3080
+ K.show(r);
3081
+ }
3082
+ }
3083
+ ue.install = (t) => {
3084
+ t.component(ue.name, ue), t.provide("FMessageBoxService", K);
3085
+ };
3086
+ var wa = /* @__PURE__ */ ((t) => (t[t.IntType = 0] = "IntType", t[t.StringType = 1] = "StringType", t[t.BoolType = 2] = "BoolType", t))(wa || {}), Ae = /* @__PURE__ */ ((t) => (t[t.Value = 0] = "Value", t[t.SmartHelp = 1] = "SmartHelp", t[t.Enum = 2] = "Enum", t[t.Express = 3] = "Express", t))(Ae || {}), He = /* @__PURE__ */ ((t) => (t.Equal = "0", t.NotEqual = "1", t.Greater = "2", t.GreaterOrEqual = "3", t.Less = "4", t.LessOrEqual = "5", t.Like = "6", t.LikeStartWith = "7", t.LikeEndWith = "8", t))(He || {});
3087
+ const xa = [
1912
3088
  {
1913
3089
  value: "0",
1914
3090
  name: "等于"
@@ -1945,7 +3121,7 @@ const io = [
1945
3121
  value: "8",
1946
3122
  name: "结束是"
1947
3123
  }
1948
- ], so = {
3124
+ ], Ta = {
1949
3125
  "button-edit": ["0", "1", " 6", "7", "8"],
1950
3126
  "check-box": ["0"],
1951
3127
  "combo-list": ["0", "1"],
@@ -1965,395 +3141,395 @@ const io = [
1965
3141
  "radio-group": ["0"],
1966
3142
  text: ["0", "1", " 6", "7", "8"]
1967
3143
  };
1968
- function lo(t, e, n) {
3144
+ function ka(t, e, n) {
1969
3145
  const { fieldMap: o } = n;
1970
- function r(c) {
1971
- const l = o.get(c.fieldCode);
1972
- if (!l)
3146
+ function a(r) {
3147
+ const s = o.get(r.fieldCode);
3148
+ if (!s)
1973
3149
  return [];
1974
- const m = l.editor.type, w = new Set(so[m]);
1975
- return io.filter((s) => w.has(s.value));
3150
+ const u = s.editor.type, p = new Set(Ta[u]);
3151
+ return xa.filter((c) => p.has(c.value));
1976
3152
  }
1977
- return { getCompareOperators: r };
3153
+ return { getCompareOperators: a };
1978
3154
  }
1979
- function uo() {
1980
- const t = I({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
3155
+ function Ba() {
3156
+ const t = i({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
1981
3157
  let o = 0;
1982
- function r() {
3158
+ function a() {
1983
3159
  return {
1984
3160
  id: "",
1985
3161
  fieldCode: "",
1986
3162
  fieldName: "",
1987
- compareType: Ce.Equal,
1988
- valueType: be.Value,
1989
- value: new de(),
3163
+ compareType: He.Equal,
3164
+ valueType: Ae.Value,
3165
+ value: new Ee(),
1990
3166
  relation: 0,
1991
3167
  conditionId: Date.now()
1992
3168
  };
1993
3169
  }
1994
- function c(a, g) {
1995
- return { relation: a, items: [], children: [], path: [], groupId: ++o, level: g };
1996
- }
1997
- function l() {
1998
- const a = Object.assign({}, t.value);
1999
- n.forEach((g, f) => {
2000
- g.groupId === a.groupId && n.set(f, a);
2001
- }), e.forEach((g, f) => {
2002
- g.groupId === a.groupId && e.set(f, a);
2003
- }), t.value = a;
2004
- }
2005
- function m(a) {
2006
- const g = /* @__PURE__ */ new Map();
2007
- let f = 0;
2008
- return a.forEach((B, i) => {
2009
- var T, S;
2010
- if (f += ((T = B.lBracket) == null ? void 0 : T.length) || 0, g.set(i, f), f -= ((S = B.rBracket) == null ? void 0 : S.length) || 0, f < 0)
3170
+ function r(f, w) {
3171
+ return { relation: f, items: [], children: [], path: [], groupId: ++o, level: w };
3172
+ }
3173
+ function s() {
3174
+ const f = Object.assign({}, t.value);
3175
+ n.forEach((w, x) => {
3176
+ w.groupId === f.groupId && n.set(x, f);
3177
+ }), e.forEach((w, x) => {
3178
+ w.groupId === f.groupId && e.set(x, f);
3179
+ }), t.value = f;
3180
+ }
3181
+ function u(f) {
3182
+ const w = /* @__PURE__ */ new Map();
3183
+ let x = 0;
3184
+ return f.forEach((R, g) => {
3185
+ var M, z;
3186
+ if (x += ((M = R.lBracket) == null ? void 0 : M.length) || 0, w.set(g, x), x -= ((z = R.rBracket) == null ? void 0 : z.length) || 0, x < 0)
2011
3187
  throw new Error("The right bracket is out of range.");
2012
- }), g;
3188
+ }), w;
2013
3189
  }
2014
- function w(a, g, f, B, i) {
2015
- for (let T = 0; T < g; T++) {
2016
- const S = a + (T + 1), U = c(i, S);
2017
- f.children.push(U), n.set(U.groupId, f), f = f.children[f.children.length - 1], B.push(f);
3190
+ function p(f, w, x, R, g) {
3191
+ for (let M = 0; M < w; M++) {
3192
+ const z = f + (M + 1), Y = r(g, z);
3193
+ x.children.push(Y), n.set(Y.groupId, x), x = x.children[x.children.length - 1], R.push(x);
2018
3194
  }
2019
- return f;
3195
+ return x;
2020
3196
  }
2021
- function u(a, g, f, B, i) {
2022
- for (let q = g; q <= 0; q++)
2023
- B.pop();
2024
- const T = B[B.length - 1];
2025
- if (!T)
3197
+ function l(f, w, x, R, g) {
3198
+ for (let C = w; C <= 0; C++)
3199
+ R.pop();
3200
+ const M = R[R.length - 1];
3201
+ if (!M)
2026
3202
  throw new Error("The group path is out of range");
2027
- const S = a + g, U = c(i, S);
2028
- return T.children.push(U), n.set(U.groupId, T), f = T.children[T.children.length - 1], B.push(f), f;
3203
+ const z = f + w, Y = r(g, z);
3204
+ return M.children.push(Y), n.set(Y.groupId, M), x = M.children[M.children.length - 1], R.push(x), x;
2029
3205
  }
2030
- function s(a, g, f, B) {
2031
- f.pop();
2032
- const i = f[f.length - 1], T = c(B, a);
2033
- return i.children.push(T), n.set(T.groupId, i), g = i.children[i.children.length - 1], f.push(g), g;
3206
+ function c(f, w, x, R) {
3207
+ x.pop();
3208
+ const g = x[x.length - 1], M = r(R, f);
3209
+ return g.children.push(M), n.set(M.groupId, g), w = g.children[g.children.length - 1], x.push(w), w;
2034
3210
  }
2035
- function d(a, g, f, B, i, T) {
2036
- let S = a[a.length - 1];
2037
- if (!S)
3211
+ function m(f, w, x, R, g, M) {
3212
+ let z = f[f.length - 1];
3213
+ if (!z)
2038
3214
  throw new Error("The group path is out of range");
2039
- const U = g.get(B) || 0, q = g.get(f) || 0;
2040
- if (f < 0 || f === B)
2041
- return a[a.length - 1];
2042
- const A = U - q, L = i && i.relation !== void 0 ? i.relation : 1;
2043
- return S = A > 0 ? w(q, A, S, a, L) : S, S = A < 0 ? u(q, A, S, a, L) : S, S = A === 0 && q > 0 && U > 0 && i && T && !!i.rBracket && !!T.lBracket ? s(q, S, a, L) : S, S;
2044
- }
2045
- function p(a) {
2046
- const f = { relation: a.length && a[0].relation !== void 0 ? a[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, B = [f], i = m(a);
2047
- return a.forEach((T, S) => {
2048
- const U = S - 1, q = a[U], A = d(B, i, U, S, q, T);
2049
- A.items.push(T), e.set(T.conditionId, A);
2050
- }), t.value = f, f;
2051
- }
2052
- function V() {
2053
- const a = r();
2054
- e.set(a.conditionId, t.value), t.value.items.push(a);
2055
- }
2056
- function M(a) {
2057
- if (!a)
3215
+ const Y = w.get(R) || 0, C = w.get(x) || 0;
3216
+ if (x < 0 || x === R)
3217
+ return f[f.length - 1];
3218
+ const y = Y - C, j = g && g.relation !== void 0 ? g.relation : 1;
3219
+ return z = y > 0 ? p(C, y, z, f, j) : z, z = y < 0 ? l(C, y, z, f, j) : z, z = y === 0 && C > 0 && Y > 0 && g && M && !!g.rBracket && !!M.lBracket ? c(C, z, f, j) : z, z;
3220
+ }
3221
+ function v(f) {
3222
+ const x = { relation: f.length && f[0].relation !== void 0 ? f[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, R = [x], g = u(f);
3223
+ return f.forEach((M, z) => {
3224
+ const Y = z - 1, C = f[Y], y = m(R, g, Y, z, C, M);
3225
+ y.items.push(M), e.set(M.conditionId, y);
3226
+ }), t.value = x, x;
3227
+ }
3228
+ function k() {
3229
+ const f = a();
3230
+ e.set(f.conditionId, t.value), t.value.items.push(f);
3231
+ }
3232
+ function E(f) {
3233
+ if (!f)
2058
3234
  return;
2059
- const g = e.get(a.conditionId);
2060
- if (g) {
2061
- const f = g.items.findIndex((i) => i.conditionId === a.conditionId) + 1, B = r();
2062
- e.set(B.conditionId, g), g.items.splice(f, 0, B), l();
3235
+ const w = e.get(f.conditionId);
3236
+ if (w) {
3237
+ const x = w.items.findIndex((g) => g.conditionId === f.conditionId) + 1, R = a();
3238
+ e.set(R.conditionId, w), w.items.splice(x, 0, R), s();
2063
3239
  }
2064
3240
  }
2065
- function P(a) {
2066
- const g = e.get(a.conditionId);
2067
- g && (g.items = g.items.filter((f) => f.conditionId !== a.conditionId), e.delete(a.conditionId), H(), l());
3241
+ function N(f) {
3242
+ const w = e.get(f.conditionId);
3243
+ w && (w.items = w.items.filter((x) => x.conditionId !== f.conditionId), e.delete(f.conditionId), H(), s());
2068
3244
  }
2069
- function D(a, g, f, B) {
2070
- a.reduce((i, T) => {
2071
- const S = T.conditionId !== void 0, U = T.groupId !== void 0;
2072
- if (S) {
2073
- const q = T;
2074
- f.push(q), i.items.set(q.conditionId, q);
3245
+ function $(f, w, x, R) {
3246
+ f.reduce((g, M) => {
3247
+ const z = M.conditionId !== void 0, Y = M.groupId !== void 0;
3248
+ if (z) {
3249
+ const C = M;
3250
+ x.push(C), g.items.set(C.conditionId, C);
2075
3251
  }
2076
- if (U) {
2077
- const q = T;
2078
- B.push(q), i.groups.set(q.groupId, q);
3252
+ if (Y) {
3253
+ const C = M;
3254
+ R.push(C), g.groups.set(C.groupId, C);
2079
3255
  }
2080
- return i;
2081
- }, g);
3256
+ return g;
3257
+ }, w);
2082
3258
  }
2083
- function x(a, g, f, B, i) {
2084
- a && (a.items = g.length ? a.items.filter((T) => !f.has(T.conditionId)) : a.items, a.children = B.length ? a.children.filter((T) => !i.has(T.groupId)) : a.children);
3259
+ function h(f, w, x, R, g) {
3260
+ f && (f.items = w.length ? f.items.filter((M) => !x.has(M.conditionId)) : f.items, f.children = R.length ? f.children.filter((M) => !g.has(M.groupId)) : f.children);
2085
3261
  }
2086
- function F(a, g, f) {
2087
- g.forEach((B) => {
2088
- a.items.push(B), e.set(B.conditionId, a);
2089
- }), f.forEach((B) => {
2090
- a.children.push(B), n.set(B.groupId, a);
3262
+ function b(f, w, x) {
3263
+ w.forEach((R) => {
3264
+ f.items.push(R), e.set(R.conditionId, f);
3265
+ }), x.forEach((R) => {
3266
+ f.children.push(R), n.set(R.groupId, f);
2091
3267
  });
2092
3268
  }
2093
- function N(a) {
2094
- const g = a[0], f = g.conditionId !== void 0 ? e.get(g.conditionId) : n.get(g.groupId), B = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, i = [], T = [];
2095
- if (f) {
2096
- D(a, B, i, T), x(f, i, B.items, T, B.groups);
2097
- const S = c(f.relation, f.level + 1);
2098
- F(S, i, T), f.children.push(S), n.set(S.groupId, f), l();
3269
+ function P(f) {
3270
+ const w = f[0], x = w.conditionId !== void 0 ? e.get(w.conditionId) : n.get(w.groupId), R = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, g = [], M = [];
3271
+ if (x) {
3272
+ $(f, R, g, M), h(x, g, R.items, M, R.groups);
3273
+ const z = r(x.relation, x.level + 1);
3274
+ b(z, g, M), x.children.push(z), n.set(z.groupId, x), s();
2099
3275
  }
2100
3276
  }
2101
- function j(a) {
2102
- const g = [...a.items], f = [...a.children], B = n.get(a.groupId);
2103
- B && (B.children = B.children.filter((i) => i.groupId !== a.groupId), n.delete(a.groupId), g.forEach((i) => {
2104
- B.items.push(i), e.set(i.conditionId, B);
2105
- }), f.forEach((i) => {
2106
- B.children.push(i), n.set(i.groupId, B);
2107
- }), l());
2108
- }
2109
- function $(a) {
2110
- a.relation = a.relation === 1 ? 2 : 1, l();
2111
- }
2112
- let G;
2113
- function R(a) {
2114
- const { relation: g } = a;
2115
- return (a.children && a.children.length ? a.children.map((B, i, T) => {
2116
- const S = G(B);
2117
- return S[0].lBracket = (S[0].lBracket || "") + "(", S[S.length - 1].rBracket = (S[S.length - 1].rBracket || "") + ")", S[S.length - 1].relation = i < T.length - 1 ? g : 0, S;
3277
+ function D(f) {
3278
+ const w = [...f.items], x = [...f.children], R = n.get(f.groupId);
3279
+ R && (R.children = R.children.filter((g) => g.groupId !== f.groupId), n.delete(f.groupId), w.forEach((g) => {
3280
+ R.items.push(g), e.set(g.conditionId, R);
3281
+ }), x.forEach((g) => {
3282
+ R.children.push(g), n.set(g.groupId, R);
3283
+ }), s());
3284
+ }
3285
+ function W(f) {
3286
+ f.relation = f.relation === 1 ? 2 : 1, s();
3287
+ }
3288
+ let q;
3289
+ function T(f) {
3290
+ const { relation: w } = f;
3291
+ return (f.children && f.children.length ? f.children.map((R, g, M) => {
3292
+ const z = q(R);
3293
+ return z[0].lBracket = (z[0].lBracket || "") + "(", z[z.length - 1].rBracket = (z[z.length - 1].rBracket || "") + ")", z[z.length - 1].relation = g < M.length - 1 ? w : 0, z;
2118
3294
  }) : []).flat();
2119
3295
  }
2120
- G = (a = t.value) => {
2121
- const { relation: g } = a, f = a.items.map((i, T, S) => (i.lBracket = T === 0 ? "(" : "", i.rBracket = T === S.length - 1 ? ")" : "", i.relation = T < S.length - 1 ? g || 1 : 0, i)), B = R(a);
2122
- return [...f, ...B];
3296
+ q = (f = t.value) => {
3297
+ const { relation: w } = f, x = f.items.map((g, M, z) => (g.lBracket = M === 0 ? "(" : "", g.rBracket = M === z.length - 1 ? ")" : "", g.relation = M < z.length - 1 ? w || 1 : 0, g)), R = T(f);
3298
+ return [...x, ...R];
2123
3299
  };
2124
- function H(a) {
2125
- const g = a || t.value;
2126
- if (g.children.length && g.children.forEach((f) => {
2127
- H(f);
2128
- }), g.level === 0 && !g.items.length && g.children.length === 1) {
2129
- const f = g.children[0];
2130
- t.value.relation = f.relation, j(f);
2131
- } else g.items.length === 0 && g.children.length <= 1 && j(g);
3300
+ function H(f) {
3301
+ const w = f || t.value;
3302
+ if (w.children.length && w.children.forEach((x) => {
3303
+ H(x);
3304
+ }), w.level === 0 && !w.items.length && w.children.length === 1) {
3305
+ const x = w.children[0];
3306
+ t.value.relation = x.relation, D(x);
3307
+ } else w.items.length === 0 && w.children.length <= 1 && D(w);
2132
3308
  }
2133
3309
  return {
2134
- addCondition: V,
2135
- changeGroupRelation: $,
3310
+ addCondition: k,
3311
+ changeGroupRelation: W,
2136
3312
  conditionGroupMap: e,
2137
- getConditions: G,
2138
- group: N,
3313
+ getConditions: q,
3314
+ group: P,
2139
3315
  groupParentMap: n,
2140
- insertConditionTo: M,
2141
- loadConditionGroup: p,
2142
- refresh: l,
2143
- removeCondition: P,
3316
+ insertConditionTo: E,
3317
+ loadConditionGroup: v,
3318
+ refresh: s,
3319
+ removeCondition: N,
2144
3320
  rootGroup: t,
2145
- unGroup: j
3321
+ unGroup: D
2146
3322
  };
2147
3323
  }
2148
- function co(t, e, n) {
2149
- const o = I(/* @__PURE__ */ new Set()), r = I(/* @__PURE__ */ new Set()), { conditionGroupMap: c, groupParentMap: l } = n;
2150
- let m, w;
2151
- function u(x) {
2152
- let F = m.level <= x.level ? m : x, N = m.level > x.level ? m : x;
2153
- const j = [];
2154
- for (; N && F && N !== F; )
2155
- N.level > F.level ? (j.push(N), N = l.get(N.groupId)) : N.level === F.level && (F = l.get(F.groupId), F && j.unshift(F));
2156
- return j;
2157
- }
2158
- function s(x) {
2159
- r.value.add(x.groupId), x.items.forEach((F) => o.value.add(F.conditionId)), x.children.forEach((F) => s(F));
2160
- }
2161
- function d(x) {
2162
- const { conditionId: F } = x;
2163
- o.value.add(F), m = o.value.size === 0 ? c.get(F) : m;
2164
- const N = c.get(x.conditionId);
2165
- u(N).forEach(($) => s($));
2166
- }
2167
- const p = O(() => o.value.size === 0 && r.value.size === 1), V = function(x) {
2168
- r.value.delete(x.groupId), x.items.forEach((N) => w(N)), x.children.forEach((N) => !p.value && V(N));
2169
- const F = l.get(x.groupId);
2170
- F && r.value.has(F.groupId) && V(F);
3324
+ function Fa(t, e, n) {
3325
+ const o = i(/* @__PURE__ */ new Set()), a = i(/* @__PURE__ */ new Set()), { conditionGroupMap: r, groupParentMap: s } = n;
3326
+ let u, p;
3327
+ function l(h) {
3328
+ let b = u.level <= h.level ? u : h, P = u.level > h.level ? u : h;
3329
+ const D = [];
3330
+ for (; P && b && P !== b; )
3331
+ P.level > b.level ? (D.push(P), P = s.get(P.groupId)) : P.level === b.level && (b = s.get(b.groupId), b && D.unshift(b));
3332
+ return D;
3333
+ }
3334
+ function c(h) {
3335
+ a.value.add(h.groupId), h.items.forEach((b) => o.value.add(b.conditionId)), h.children.forEach((b) => c(b));
3336
+ }
3337
+ function m(h) {
3338
+ const { conditionId: b } = h;
3339
+ o.value.add(b), u = o.value.size === 0 ? r.get(b) : u;
3340
+ const P = r.get(h.conditionId);
3341
+ l(P).forEach((W) => c(W));
3342
+ }
3343
+ const v = B(() => o.value.size === 0 && a.value.size === 1), k = function(h) {
3344
+ a.value.delete(h.groupId), h.items.forEach((P) => p(P)), h.children.forEach((P) => !v.value && k(P));
3345
+ const b = s.get(h.groupId);
3346
+ b && a.value.has(b.groupId) && k(b);
2171
3347
  };
2172
- w = function(x) {
2173
- const { conditionId: F } = x;
2174
- if (o.value.has(F) && o.value.delete(F), r.value.size > 0) {
2175
- const N = c.get(F);
2176
- N && r.value.has(N.groupId) && V(N);
3348
+ p = function(h) {
3349
+ const { conditionId: b } = h;
3350
+ if (o.value.has(b) && o.value.delete(b), a.value.size > 0) {
3351
+ const P = r.get(b);
3352
+ P && a.value.has(P.groupId) && k(P);
2177
3353
  }
2178
3354
  };
2179
- function M(x) {
2180
- const { conditionId: F } = x;
2181
- o.value.size === 0 && (m = c.get(F)), o.value.has(F) ? w(x) : d(x);
3355
+ function E(h) {
3356
+ const { conditionId: b } = h;
3357
+ o.value.size === 0 && (u = r.get(b)), o.value.has(b) ? p(h) : m(h);
2182
3358
  }
2183
- function P() {
2184
- const x = [];
2185
- return m && (m.items.filter((F) => o.value.has(F.conditionId)).forEach((F) => x.push(F)), m.children.filter((F) => r.value.has(F.groupId)).forEach((F) => x.push(F))), x;
3359
+ function N() {
3360
+ const h = [];
3361
+ return u && (u.items.filter((b) => o.value.has(b.conditionId)).forEach((b) => h.push(b)), u.children.filter((b) => a.value.has(b.groupId)).forEach((b) => h.push(b))), h;
2186
3362
  }
2187
- function D() {
2188
- o.value.clear(), r.value.clear();
3363
+ function $() {
3364
+ o.value.clear(), a.value.clear();
2189
3365
  }
2190
- return { clear: D, getSelectedGroupItem: P, selectedItems: o, toggleSelect: M };
3366
+ return { clear: $, getSelectedGroupItem: N, selectedItems: o, toggleSelect: E };
2191
3367
  }
2192
- const ee = /* @__PURE__ */ X({
3368
+ const fe = /* @__PURE__ */ ee({
2193
3369
  name: "FConditionList",
2194
- props: ce,
3370
+ props: Me,
2195
3371
  emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
2196
3372
  setup(t, e) {
2197
- const n = I(t.key), o = I(t.conditions), r = me(t), {
2198
- convertToSingleControl: c,
2199
- fields: l,
2200
- fieldMap: m,
2201
- loadFieldConfigs: w
2202
- } = r, u = uo(), {
2203
- addCondition: s,
2204
- changeGroupRelation: d,
2205
- getConditions: p,
2206
- group: V,
2207
- insertConditionTo: M,
2208
- loadConditionGroup: P,
2209
- refresh: D,
2210
- removeCondition: x,
2211
- rootGroup: F,
2212
- unGroup: N
2213
- } = u, {
2214
- createConditionValue: j
2215
- } = pe(), $ = co(t, e, u), {
2216
- selectedItems: G,
2217
- toggleSelect: R
2218
- } = $, {
3373
+ const n = i(t.key), o = i(t.conditions), a = Ve(t), {
3374
+ convertToSingleControl: r,
3375
+ fields: s,
3376
+ fieldMap: u,
3377
+ loadFieldConfigs: p
3378
+ } = a, l = Ba(), {
3379
+ addCondition: c,
3380
+ changeGroupRelation: m,
3381
+ getConditions: v,
3382
+ group: k,
3383
+ insertConditionTo: E,
3384
+ loadConditionGroup: N,
3385
+ refresh: $,
3386
+ removeCondition: h,
3387
+ rootGroup: b,
3388
+ unGroup: P
3389
+ } = l, {
3390
+ createConditionValue: D
3391
+ } = Ie(), W = Fa(t, e, l), {
3392
+ selectedItems: q,
3393
+ toggleSelect: T
3394
+ } = W, {
2219
3395
  getCompareOperators: H
2220
- } = lo(t, e, r);
2221
- w(!1), l.value = c(l.value), P(o.value);
2222
- function a(A) {
2223
- var Q;
2224
- const L = ((Q = m.get(A.fieldCode)) == null ? void 0 : Q.editor) || {
3396
+ } = ka(t, e, a);
3397
+ p(!1), s.value = r(s.value), N(o.value);
3398
+ function f(y) {
3399
+ var G;
3400
+ const j = ((G = u.get(y.fieldCode)) == null ? void 0 : G.editor) || {
2225
3401
  type: "text"
2226
3402
  };
2227
- A.value = j(L.type, void 0), e.emit("labelCodeChange", A);
3403
+ y.value = D(j.type, void 0), e.emit("labelCodeChange", y);
2228
3404
  }
2229
- function g(A, L) {
2230
- e.emit("compareTypeChange", L);
3405
+ function w(y, j) {
3406
+ e.emit("compareTypeChange", j);
2231
3407
  }
2232
- function f() {
3408
+ function x() {
2233
3409
  }
2234
3410
  e.expose({
2235
- getConditions: p
3411
+ getConditions: v
2236
3412
  });
2237
- function B(A, L) {
2238
- e.emit("valueChange", A, L);
3413
+ function R(y, j) {
3414
+ e.emit("valueChange", y, j);
2239
3415
  }
2240
- function i(A) {
2241
- return A.items.map((L) => {
2242
- var Q;
2243
- return k("div", {
3416
+ function g(y) {
3417
+ return y.items.map((j) => {
3418
+ var G;
3419
+ return d("div", {
2244
3420
  class: "condition-list-item",
2245
- key: L.conditionId
2246
- }, [k("div", {
3421
+ key: j.conditionId
3422
+ }, [d("div", {
2247
3423
  class: "condition-list-item-type mr-3"
2248
- }, [k(te, {
3424
+ }, [d(he, {
2249
3425
  "value-field": "labelCode",
2250
3426
  "text-field": "name",
2251
3427
  "id-field": "id",
2252
- data: l.value,
2253
- modelValue: L.fieldCode,
2254
- "onUpdate:modelValue": (z) => L.fieldCode = z,
2255
- onChange: (z) => a(L)
2256
- }, null)]), k("div", {
3428
+ data: s.value,
3429
+ modelValue: j.fieldCode,
3430
+ "onUpdate:modelValue": (U) => j.fieldCode = U,
3431
+ onChange: (U) => f(j)
3432
+ }, null)]), d("div", {
2257
3433
  class: "condition-list-item-compare mr-3"
2258
- }, [k(te, {
3434
+ }, [d(he, {
2259
3435
  "value-field": "value",
2260
3436
  "text-field": "name",
2261
3437
  "id-field": "id",
2262
- data: H(L),
2263
- modelValue: L.compareType,
2264
- "onUpdate:modelValue": (z) => L.compareType = z,
2265
- onChange: (z) => g(z, L)
2266
- }, null)]), k("div", {
3438
+ data: H(j),
3439
+ modelValue: j.compareType,
3440
+ "onUpdate:modelValue": (U) => j.compareType = U,
3441
+ onChange: (U) => w(U, j)
3442
+ }, null)]), d("div", {
2267
3443
  class: "condition-list-item-control mr-3"
2268
- }, [k(oo, {
2269
- editor: (Q = m.get(L.fieldCode)) == null ? void 0 : Q.editor,
3444
+ }, [d(Go, {
3445
+ editor: (G = u.get(j.fieldCode)) == null ? void 0 : G.editor,
2270
3446
  showLabel: !1,
2271
- modelValue: L.value.value,
2272
- "onUpdate:modelValue": (z) => L.value.value = z,
2273
- onChange: (z) => {
2274
- B(z, L);
3447
+ modelValue: j.value.value,
3448
+ "onUpdate:modelValue": (U) => j.value.value = U,
3449
+ onChange: (U) => {
3450
+ R(U, j);
2275
3451
  }
2276
- }, null)]), k("div", {
3452
+ }, null)]), d("div", {
2277
3453
  class: "condition-list-item-extend"
2278
- }, [k("span", {
3454
+ }, [d("span", {
2279
3455
  class: "f-icon f-icon-plus-sm mr-2",
2280
- onClick: () => M(L)
2281
- }, null), k("span", {
3456
+ onClick: () => E(j)
3457
+ }, null), d("span", {
2282
3458
  class: "f-icon f-icon-minus-sm",
2283
- onClick: () => x(L)
2284
- }, null)]), k("div", {
3459
+ onClick: () => h(j)
3460
+ }, null)]), d("div", {
2285
3461
  class: "custom-control custom-checkbox"
2286
- }, [k("input", {
3462
+ }, [d("input", {
2287
3463
  title: "selection",
2288
3464
  class: "custom-control-input",
2289
3465
  type: "checkbox",
2290
- checked: G.value.has(L.conditionId)
2291
- }, null), k("label", {
3466
+ checked: q.value.has(j.conditionId)
3467
+ }, null), d("label", {
2292
3468
  class: "custom-control-label",
2293
- onClick: () => R(L)
3469
+ onClick: () => T(j)
2294
3470
  }, null)])]);
2295
3471
  });
2296
3472
  }
2297
- function T(A) {
2298
- return k("div", {
3473
+ function M(y) {
3474
+ return d("div", {
2299
3475
  class: "condition-list-relation"
2300
- }, [k("span", {
3476
+ }, [d("span", {
2301
3477
  class: "condition-list-relation-close f-icon-filter-cancel btn-link",
2302
- onClick: () => N(A)
2303
- }, null), k("span", {
3478
+ onClick: () => P(y)
3479
+ }, null), d("span", {
2304
3480
  class: "condition-list-relation-text btn-link",
2305
- onClick: () => d(A)
2306
- }, [A.relation === 1 ? "与" : "或"])]);
3481
+ onClick: () => m(y)
3482
+ }, [y.relation === 1 ? "与" : "或"])]);
2307
3483
  }
2308
- function S(A) {
2309
- return k("div", {
3484
+ function z(y) {
3485
+ return d("div", {
2310
3486
  class: "condition-list-content"
2311
- }, [k("div", {
3487
+ }, [d("div", {
2312
3488
  class: "condition-list-content-group"
2313
- }, [i(A), A.children && A.children.map((L) => S(L))]), T(A)]);
3489
+ }, [g(y), y.children && y.children.map((j) => z(j))]), M(y)]);
2314
3490
  }
2315
- function U() {
2316
- V($.getSelectedGroupItem()), $.clear();
3491
+ function Y() {
3492
+ k(W.getSelectedGroupItem()), W.clear();
2317
3493
  }
2318
- function q() {
2319
- return k("div", {
3494
+ function C() {
3495
+ return d("div", {
2320
3496
  class: "condition-list-bottom"
2321
- }, [k("div", {
3497
+ }, [d("div", {
2322
3498
  class: "add-condition-btn mb-1 mr-3",
2323
- onClick: s
2324
- }, [k("span", {
3499
+ onClick: c
3500
+ }, [d("span", {
2325
3501
  class: "f-icon f-icon-filter-add"
2326
- }, null), k("span", {
3502
+ }, null), d("span", {
2327
3503
  class: "ml-1"
2328
- }, [Y("添加条件")])]), k("div", {
3504
+ }, [le("添加条件")])]), d("div", {
2329
3505
  class: "add-condition-btn mb-1",
2330
- onClick: U
2331
- }, [k("span", {
3506
+ onClick: Y
3507
+ }, [d("span", {
2332
3508
  class: "f-icon f-icon-filter-grouping"
2333
- }, null), k("span", {
3509
+ }, null), d("span", {
2334
3510
  class: "ml-1"
2335
- }, [Y("生成条件组")])]), k("div", {
3511
+ }, [le("生成条件组")])]), d("div", {
2336
3512
  class: "condition-list-reset add-condition-btn",
2337
- onClick: f
2338
- }, [Y("重置")])]);
3513
+ onClick: x
3514
+ }, [le("重置")])]);
2339
3515
  }
2340
- return () => k("div", {
3516
+ return () => d("div", {
2341
3517
  class: "condition-list",
2342
3518
  key: n.value
2343
- }, [k("div", {
3519
+ }, [d("div", {
2344
3520
  class: "condition-list-body"
2345
- }, [S(F.value)]), q()]);
3521
+ }, [z(b.value)]), C()]);
2346
3522
  }
2347
3523
  });
2348
- ee.install = (t) => {
2349
- t.component(se.name, se).component(ee.name, ee);
3524
+ fe.install = (t) => {
3525
+ t.component(ke.name, ke).component(fe.name, fe);
2350
3526
  };
2351
3527
  export {
2352
- ao as EnumType,
2353
- se as FConditionFields,
2354
- ee as FConditionList,
2355
- be as ValueType,
2356
- ce as conditionProps,
2357
- ee as default,
2358
- uo as useCondition
3528
+ wa as EnumType,
3529
+ ke as FConditionFields,
3530
+ fe as FConditionList,
3531
+ Ae as ValueType,
3532
+ Me as conditionProps,
3533
+ fe as default,
3534
+ Ba as useCondition
2359
3535
  };