@farris/ui-vue 1.2.9 → 1.3.1

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 (287) hide show
  1. package/components/accordion/index.esm.js +64 -64
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +521 -336
  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 +99 -97
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +496 -504
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +251 -259
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +696 -519
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +368 -376
  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 +1141 -340
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +116 -116
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +986 -798
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +463 -998
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2233 -1057
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +335 -1002
  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 +6193 -4702
  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 +4562 -3294
  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 +3420 -2623
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-canvas/index.css +1 -1
  40. package/components/designer-canvas/index.esm.js +914 -883
  41. package/components/designer-canvas/index.umd.cjs +1 -1
  42. package/components/designer-outline/index.esm.js +14 -13
  43. package/components/designer-outline/index.umd.cjs +1 -1
  44. package/components/dropdown/index.esm.js +204 -212
  45. package/components/dropdown/index.umd.cjs +2 -2
  46. package/components/dynamic-form/index.css +1 -0
  47. package/components/dynamic-form/index.esm.js +2795 -1835
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +180 -130
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +303 -290
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/events-editor/index.esm.js +328 -336
  54. package/components/events-editor/index.umd.cjs +1 -1
  55. package/components/expression-editor/index.esm.js +65 -65
  56. package/components/expression-editor/index.umd.cjs +1 -1
  57. package/components/external-container/index.css +1 -1
  58. package/components/external-container/index.esm.js +3349 -3626
  59. package/components/external-container/index.umd.cjs +1 -1
  60. package/components/field-selector/index.css +1 -1
  61. package/components/field-selector/index.esm.js +5344 -8588
  62. package/components/field-selector/index.umd.cjs +1 -1
  63. package/components/filter-bar/index.css +1 -1
  64. package/components/filter-bar/index.esm.js +2179 -2227
  65. package/components/filter-bar/index.umd.cjs +1 -1
  66. package/components/flow-canvas/index.css +1 -1
  67. package/components/flow-canvas/index.esm.js +684 -675
  68. package/components/flow-canvas/index.umd.cjs +1 -1
  69. package/components/image-cropper/index.esm.js +482 -490
  70. package/components/image-cropper/index.umd.cjs +1 -1
  71. package/components/input-group/index.esm.js +746 -569
  72. package/components/input-group/index.umd.cjs +1 -1
  73. package/components/layout/index.esm.js +409 -385
  74. package/components/layout/index.umd.cjs +1 -1
  75. package/components/list-nav/index.esm.js +348 -1019
  76. package/components/list-nav/index.umd.cjs +1 -1
  77. package/components/list-view/index.css +1 -1
  78. package/components/list-view/index.esm.js +3606 -2388
  79. package/components/list-view/index.umd.cjs +1 -1
  80. package/components/lookup/index.css +1 -1
  81. package/components/lookup/index.esm.js +10871 -8970
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.css +1 -1
  84. package/components/mapping-editor/index.esm.js +6019 -5631
  85. package/components/mapping-editor/index.umd.cjs +1 -1
  86. package/components/message-box/index.css +1 -1
  87. package/components/message-box/index.esm.js +511 -471
  88. package/components/message-box/index.umd.cjs +1 -1
  89. package/components/modal/index.css +1 -1
  90. package/components/modal/index.esm.js +438 -398
  91. package/components/modal/index.umd.cjs +1 -1
  92. package/components/nav/index.esm.js +912 -1281
  93. package/components/nav/index.umd.cjs +3 -3
  94. package/components/notify/index.esm.js +59 -53
  95. package/components/notify/index.umd.cjs +1 -1
  96. package/components/number-range/index.esm.js +660 -484
  97. package/components/number-range/index.umd.cjs +1 -1
  98. package/components/number-spinner/index.esm.js +682 -506
  99. package/components/number-spinner/index.umd.cjs +1 -1
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1848 -1658
  102. package/components/order/index.umd.cjs +1 -1
  103. package/components/page-footer/index.esm.js +100 -100
  104. package/components/page-footer/index.umd.cjs +1 -1
  105. package/components/page-header/index.esm.js +1120 -1923
  106. package/components/page-header/index.umd.cjs +1 -1
  107. package/components/pagination/index.esm.js +875 -1214
  108. package/components/pagination/index.umd.cjs +1 -1
  109. package/components/popover/index.esm.js +71 -70
  110. package/components/popover/index.umd.cjs +1 -1
  111. package/components/progress/index.esm.js +229 -237
  112. package/components/progress/index.umd.cjs +3 -3
  113. package/components/property-editor/index.css +1 -1
  114. package/components/property-editor/index.esm.js +2314 -1521
  115. package/components/property-editor/index.umd.cjs +3 -3
  116. package/components/property-panel/index.esm.js +867 -868
  117. package/components/property-panel/index.umd.cjs +1 -1
  118. package/components/query-solution/index.css +1 -1
  119. package/components/query-solution/index.esm.js +4332 -3623
  120. package/components/query-solution/index.umd.cjs +1 -1
  121. package/components/radio-button/index.esm.js +72 -72
  122. package/components/radio-button/index.umd.cjs +1 -1
  123. package/components/radio-group/index.esm.js +613 -437
  124. package/components/radio-group/index.umd.cjs +1 -1
  125. package/components/rate/index.esm.js +255 -263
  126. package/components/rate/index.umd.cjs +1 -1
  127. package/components/response-layout/index.esm.js +144 -152
  128. package/components/response-layout/index.umd.cjs +1 -1
  129. package/components/response-layout-editor/index.css +1 -1
  130. package/components/response-layout-editor/index.esm.js +1101 -1038
  131. package/components/response-layout-editor/index.umd.cjs +1 -1
  132. package/components/response-toolbar/index.esm.js +935 -1750
  133. package/components/response-toolbar/index.umd.cjs +1 -1
  134. package/components/schema-selector/index.css +1 -1
  135. package/components/schema-selector/index.esm.js +5264 -5677
  136. package/components/schema-selector/index.umd.cjs +2 -2
  137. package/components/search-box/index.esm.js +151 -154
  138. package/components/search-box/index.umd.cjs +1 -1
  139. package/components/section/index.esm.js +438 -1125
  140. package/components/section/index.umd.cjs +1 -1
  141. package/components/smoke-detector/index.esm.js +93 -101
  142. package/components/smoke-detector/index.umd.cjs +1 -1
  143. package/components/splitter/index.esm.js +563 -1202
  144. package/components/splitter/index.umd.cjs +1 -1
  145. package/components/splitter/style.js +2 -0
  146. package/components/step/index.esm.js +248 -256
  147. package/components/step/index.umd.cjs +1 -1
  148. package/components/switch/index.esm.js +549 -373
  149. package/components/switch/index.umd.cjs +1 -1
  150. package/components/tabs/index.css +1 -1
  151. package/components/tabs/index.esm.js +2436 -3110
  152. package/components/tabs/index.umd.cjs +1 -1
  153. package/components/tags/index.esm.js +328 -336
  154. package/components/tags/index.umd.cjs +1 -1
  155. package/components/text/index.esm.js +339 -347
  156. package/components/text/index.umd.cjs +1 -1
  157. package/components/textarea/index.esm.js +554 -378
  158. package/components/textarea/index.umd.cjs +1 -1
  159. package/components/time-picker/index.css +1 -1
  160. package/components/time-picker/index.esm.js +1322 -1144
  161. package/components/time-picker/index.umd.cjs +1 -1
  162. package/components/transfer/index.css +1 -1
  163. package/components/transfer/index.esm.js +537 -543
  164. package/components/transfer/index.umd.cjs +1 -1
  165. package/components/tree-grid/index.css +1 -1
  166. package/components/tree-grid/index.esm.js +5113 -9426
  167. package/components/tree-grid/index.umd.cjs +1 -1
  168. package/components/tree-view/index.css +1 -0
  169. package/components/tree-view/index.esm.js +3900 -2677
  170. package/components/tree-view/index.umd.cjs +1 -1
  171. package/components/uploader/index.esm.js +568 -570
  172. package/components/uploader/index.umd.cjs +2 -2
  173. package/components/verify-detail/index.esm.js +266 -274
  174. package/components/verify-detail/index.umd.cjs +1 -1
  175. package/components/video/index.esm.js +553 -1052
  176. package/components/video/index.umd.cjs +1 -1
  177. package/components/weather/index.esm.js +558 -566
  178. package/components/weather/index.umd.cjs +5 -5
  179. package/farris.all.esm.js +22009 -22688
  180. package/farris.all.umd.cjs +9 -9
  181. package/index.css +1 -1
  182. package/package.json +1 -1
  183. package/types/capsule/src/capsule.props.d.ts +2 -2
  184. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  185. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  186. package/types/common/directive/area-response.d.ts +10 -0
  187. package/types/common/index.d.ts +9 -0
  188. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  189. package/types/common/types.d.ts +1 -1
  190. package/types/common/utils/encrypt.d.ts +2 -0
  191. package/types/common/utils/resolve-field.d.ts +2 -0
  192. package/types/common/utils/use-class.d.ts +7 -0
  193. package/types/component/src/component.props.d.ts +7 -0
  194. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  195. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  196. package/types/components.d.ts +1 -0
  197. package/types/condition/src/types.d.ts +2 -1
  198. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  199. package/types/data-grid/index.d.ts +11 -5
  200. package/types/data-grid/src/data-grid.component.d.ts +4 -2
  201. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  202. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  203. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  204. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  205. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  206. package/types/data-view/composition/types.d.ts +19 -4
  207. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  208. package/types/designer-canvas/index.d.ts +2 -1
  209. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  210. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  211. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  212. package/types/designer-canvas/src/composition/types.d.ts +2 -3
  213. package/types/designer-canvas/src/types.d.ts +2 -1
  214. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  215. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  216. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  217. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  218. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +1 -1
  219. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  220. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  221. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  222. package/types/dynamic-form/src/types.d.ts +12 -1
  223. package/types/dynamic-resolver/index.d.ts +1 -0
  224. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  225. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  226. package/types/dynamic-resolver/src/types.d.ts +9 -0
  227. package/types/dynamic-view/index.d.ts +1 -0
  228. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  229. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  230. package/types/index.d.ts +2 -0
  231. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  232. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  233. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  234. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  235. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  236. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  237. package/types/lookup/src/composition/types.d.ts +8 -0
  238. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  239. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  240. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  241. package/types/lookup/src/composition/use-http.d.ts +9 -5
  242. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  243. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  244. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  245. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  246. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  247. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  248. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  249. package/types/modal/src/modal.component.d.ts +3 -0
  250. package/types/modal/src/modal.props.d.ts +4 -0
  251. package/types/page-header/src/page-header.props.d.ts +1 -0
  252. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  253. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  254. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  255. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  256. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  257. package/types/property-panel/index.d.ts +2 -1
  258. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  259. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  260. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  261. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  262. package/types/{data-grid/src/designer/use-group-column.d.ts → query-solution/src/designer/query-solution-config/composition/use-property.d.ts} +4 -5
  263. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  264. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  265. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  266. package/types/query-solution/src/solutions.d.ts +108 -509
  267. package/types/response-layout-editor/index.d.ts +3 -1
  268. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  269. package/types/response-layout-editor/src/type.d.ts +21 -0
  270. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  271. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  272. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  273. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  274. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  275. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  276. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  277. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  278. package/types/tabs/src/tabs.props.d.ts +1 -0
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  282. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  283. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  284. package/types/modal/src/composition/use-esc.d.ts +0 -1
  285. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
  286. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  287. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,71 +1,72 @@
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 "../designer-canvas/index.esm.js";
8
9
  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";
10
+ import gt, { useNumber as yt, useFormat as bt, useSpinner as Ct, useTextBox as wt } from "../number-spinner/index.esm.js";
11
+ import xt from "../accordion/index.esm.js";
12
+ import Tt from "../avatar/index.esm.js";
13
+ import kt from "../button-edit/index.esm.js";
14
+ import Bt from "../button-group/index.esm.js";
15
+ import Ft from "../calendar/index.esm.js";
16
+ import St from "../capsule/index.esm.js";
17
+ import Mt from "../checkbox/index.esm.js";
18
+ import Et from "../combo-tree/index.esm.js";
19
+ import It from "../component/index.esm.js";
20
+ import Vt from "../color-picker/index.esm.js";
21
+ import Rt from "../content-container/index.esm.js";
22
+ import Ot from "../date-picker/index.esm.js";
23
+ import jt from "../data-grid/index.esm.js";
24
+ import Lt from "../dropdown/index.esm.js";
25
+ import Pt from "../events-editor/index.esm.js";
26
+ import Nt from "../filter-bar/index.esm.js";
27
+ import zt from "../field-selector/index.esm.js";
28
+ import $t from "../image-cropper/index.esm.js";
29
+ import At from "../input-group/index.esm.js";
30
+ import Ht from "../layout/index.esm.js";
31
+ import Dt from "../list-nav/index.esm.js";
32
+ import Gt from "../list-view/index.esm.js";
33
+ import qt from "../lookup/index.esm.js";
34
+ import Ut from "../mapping-editor/index.esm.js";
35
+ import Wt from "../nav/index.esm.js";
36
+ import Xt from "../number-range/index.esm.js";
37
+ import Yt from "../order/index.esm.js";
38
+ import Jt from "../page-header/index.esm.js";
39
+ import Qt from "../page-footer/index.esm.js";
40
+ import Zt from "../pagination/index.esm.js";
41
+ import Kt from "../progress/index.esm.js";
42
+ import _t from "../query-solution/index.esm.js";
43
+ import en from "../radio-group/index.esm.js";
44
+ import tn from "../rate/index.esm.js";
45
+ import nn from "../response-toolbar/index.esm.js";
46
+ import on from "../response-layout/index.esm.js";
47
+ import an from "../response-layout-editor/index.esm.js";
48
+ import ln from "../search-box/index.esm.js";
49
+ import sn from "../section/index.esm.js";
50
+ import rn from "../smoke-detector/index.esm.js";
51
+ import un from "../splitter/index.esm.js";
52
+ import cn from "../step/index.esm.js";
53
+ import dn from "../switch/index.esm.js";
54
+ import pn from "../tabs/index.esm.js";
55
+ import mn from "../tags/index.esm.js";
56
+ import fn from "../text/index.esm.js";
57
+ import vn from "../time-picker/index.esm.js";
58
+ import hn from "../transfer/index.esm.js";
59
+ import gn from "../tree-view/index.esm.js";
60
+ import yn from "../uploader/index.esm.js";
61
+ import bn from "../verify-detail/index.esm.js";
62
+ import Cn from "../weather/index.esm.js";
63
+ import wn from "../video/index.esm.js";
64
+ import xn from "../textarea/index.esm.js";
65
+ import Tn from "../schema-selector/index.esm.js";
66
+ import kn from "../tree-grid/index.esm.js";
66
67
  import "../external-container/index.esm.js";
67
- import "../dynamic-resolver/index.esm.js";
68
- const ce = {
68
+ import { createPropsResolver as Bn } from "../dynamic-resolver/index.esm.js";
69
+ const Me = {
69
70
  conditions: { type: Array, default: [] },
70
71
  fields: { type: Array, default: [] },
71
72
  key: { type: String, default: "" },
@@ -74,11 +75,11 @@ const ce = {
74
75
  */
75
76
  isControlInline: { type: Boolean, default: !0 }
76
77
  };
77
- class Rt {
78
+ class Fn {
78
79
  constructor(e = { value: [] }) {
79
- y(this, "editorType", "check-box");
80
- y(this, "value");
81
- y(this, "valueType", "boolean");
80
+ S(this, "editorType", "check-box");
81
+ S(this, "value");
82
+ S(this, "valueType", "boolean");
82
83
  this.value = e.value;
83
84
  }
84
85
  clear() {
@@ -94,13 +95,13 @@ class Rt {
94
95
  return this.value.length === 0;
95
96
  }
96
97
  }
97
- class At {
98
+ class Sn {
98
99
  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");
100
+ S(this, "editorType", "combo-lookup");
101
+ S(this, "textValue");
102
+ S(this, "value");
103
+ S(this, "valueField");
104
+ S(this, "valueType", "text");
104
105
  this.textValue = e.textValue, this.value = e.value, this.valueField = e.valueField;
105
106
  }
106
107
  clear() {
@@ -114,11 +115,11 @@ class At {
114
115
  return e[n[0]];
115
116
  }
116
117
  getTextValue(e) {
117
- const n = e.split("."), o = this.value.split(",").map((r) => this.getPropValue(r, J(n)));
118
+ const n = e.split("."), o = this.value.split(",").map((a) => this.getPropValue(a, ne(n)));
118
119
  return o && o.length ? o.join(",") : "";
119
120
  }
120
121
  getValue() {
121
- const e = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, J(e)));
122
+ const e = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, ne(e)));
122
123
  return n && n.length ? n.join(",") : "";
123
124
  }
124
125
  setValue(e) {
@@ -128,11 +129,11 @@ class At {
128
129
  return !this.valueField;
129
130
  }
130
131
  }
131
- class $t {
132
+ class Mn {
132
133
  constructor(e = { value: "" }) {
133
- y(this, "editorType", "date-picker");
134
- y(this, "value");
135
- y(this, "valueType", "datetime");
134
+ S(this, "editorType", "date-picker");
135
+ S(this, "value");
136
+ S(this, "valueType", "datetime");
136
137
  this.value = e.value;
137
138
  }
138
139
  setValue(e) {
@@ -148,12 +149,12 @@ class $t {
148
149
  this.value = void 0;
149
150
  }
150
151
  }
151
- class ie {
152
+ class Te {
152
153
  constructor(e = { begin: "", end: "" }) {
153
- y(this, "editorType", "date-range");
154
- y(this, "begin", "");
155
- y(this, "end", "");
156
- y(this, "valueType", "datetime");
154
+ S(this, "editorType", "date-range");
155
+ S(this, "begin", "");
156
+ S(this, "end", "");
157
+ S(this, "valueType", "datetime");
157
158
  this.begin = e.begin, this.end = e.end;
158
159
  }
159
160
  clear() {
@@ -169,11 +170,11 @@ class ie {
169
170
  return !this.begin || !this.end;
170
171
  }
171
172
  }
172
- class Gt {
173
+ class En {
173
174
  constructor(e = { value: "" }) {
174
- y(this, "editorType", "datetime-picker");
175
- y(this, "value");
176
- y(this, "valueType", "datetime");
175
+ S(this, "editorType", "datetime-picker");
176
+ S(this, "value");
177
+ S(this, "valueType", "datetime");
177
178
  this.value = e.value;
178
179
  }
179
180
  clear() {
@@ -189,14 +190,14 @@ class Gt {
189
190
  return !this.value;
190
191
  }
191
192
  }
192
- class qt {
193
+ class In {
193
194
  // 旧结构无,新结构为选中的value值,多选是以,分割的字符串
194
195
  constructor(e = { value: "", dispalyText: "" }) {
195
- y(this, "editorType", "combo-list");
196
- y(this, "value");
196
+ S(this, "editorType", "combo-list");
197
+ S(this, "value");
197
198
  // 旧结构{Type: '', Content: {value: string, name: string}} 新结构Array[{value: string, name: string}]
198
- y(this, "valueType", "enum");
199
- y(this, "displayText");
199
+ S(this, "valueType", "enum");
200
+ S(this, "displayText");
200
201
  this.displayText = e.dispalyText, this.value = e.value;
201
202
  }
202
203
  clear() {
@@ -212,18 +213,18 @@ class qt {
212
213
  return !this.displayText;
213
214
  }
214
215
  }
215
- class Dt {
216
+ class Vn {
216
217
  constructor(e = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
217
- y(this, "editorType", "input-group");
218
+ S(this, "editorType", "input-group");
218
219
  // 通过弹窗返回的若干个值对象构成的数组
219
- y(this, "value");
220
- y(this, "valueType", "text");
220
+ S(this, "value");
221
+ S(this, "valueType", "text");
221
222
  // 控件内显示的值
222
- y(this, "displayText");
223
+ S(this, "displayText");
223
224
  // 弹窗模式下,取列表中哪个字段的值映射到当前字段
224
- y(this, "valueField");
225
+ S(this, "valueField");
225
226
  // 是否是手动输入的值
226
- y(this, "isInputText");
227
+ S(this, "isInputText");
227
228
  this.value = e.value, this.displayText = e.displayText, this.valueField = e.displayField, this.isInputText = e.isInputText;
228
229
  }
229
230
  clear() {
@@ -237,11 +238,11 @@ class Dt {
237
238
  return e[n[0]];
238
239
  }
239
240
  getTextValue(e) {
240
- const n = e.split("."), o = this.value.map((r) => this.getPropValue(r, J(n)));
241
+ const n = e.split("."), o = this.value.map((a) => this.getPropValue(a, ne(n)));
241
242
  return o && o.length ? o.join(",") : "";
242
243
  }
243
244
  getValue() {
244
- const e = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, J(e)));
245
+ const e = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, ne(e)));
245
246
  return n && n.length ? n.join(",") : "";
246
247
  }
247
248
  setValue(e) {
@@ -251,15 +252,15 @@ class Dt {
251
252
  return !this.displayText;
252
253
  }
253
254
  }
254
- class Ut {
255
+ class Rn {
255
256
  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");
257
+ S(this, "editorType", "lookup");
258
+ S(this, "textValue");
259
+ S(this, "value");
260
+ S(this, "valueField");
261
+ S(this, "valueType", "text");
261
262
  // 帮助的值是否为手动输入的任意值,对应帮助的任意输入属性nosearch
262
- y(this, "isInputText");
263
+ S(this, "isInputText");
263
264
  this.value = e.value, this.valueField = e.valueField, this.textValue = e.textValue, this.isInputText = e.isInputText;
264
265
  }
265
266
  clear() {
@@ -273,7 +274,7 @@ class Ut {
273
274
  return e[n[0]];
274
275
  }
275
276
  getTextValue(e) {
276
- const n = e.split("."), o = this.value.map((r) => this.getPropValue(r, n));
277
+ const n = e.split("."), o = this.value.map((a) => this.getPropValue(a, n));
277
278
  return o && o.length ? o.join(",") : "";
278
279
  }
279
280
  getValue() {
@@ -287,11 +288,11 @@ class Ut {
287
288
  return !this.value.length;
288
289
  }
289
290
  }
290
- class Wt {
291
+ class On {
291
292
  constructor(e = { value: "" }) {
292
- y(this, "editorType", "month-picker");
293
- y(this, "value");
294
- y(this, "valueType", "datetime");
293
+ S(this, "editorType", "month-picker");
294
+ S(this, "value");
295
+ S(this, "valueType", "datetime");
295
296
  this.value = e.value;
296
297
  }
297
298
  setValue(e) {
@@ -307,12 +308,12 @@ class Wt {
307
308
  return !this.value;
308
309
  }
309
310
  }
310
- class Ht {
311
+ class jn {
311
312
  constructor(e = { begin: "", end: "" }) {
312
- y(this, "editorType", "month-range");
313
- y(this, "begin");
314
- y(this, "end");
315
- y(this, "valueType", "datetime");
313
+ S(this, "editorType", "month-range");
314
+ S(this, "begin");
315
+ S(this, "end");
316
+ S(this, "valueType", "datetime");
316
317
  this.begin = e.begin, this.end = e.end;
317
318
  }
318
319
  clear() {
@@ -328,12 +329,12 @@ class Ht {
328
329
  return !this.begin || !this.end;
329
330
  }
330
331
  }
331
- class zt {
332
+ class Ln {
332
333
  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");
334
+ S(this, "editorType", "number-range");
335
+ S(this, "begin");
336
+ S(this, "end");
337
+ S(this, "valueType", "number");
337
338
  this.begin = e.begin == null ? null : parseFloat(e.begin), this.end = e.end == null ? null : parseFloat(e.end);
338
339
  }
339
340
  clear() {
@@ -352,11 +353,11 @@ class zt {
352
353
  return this.begin == null && this.end == null;
353
354
  }
354
355
  }
355
- class Qt {
356
+ class Pn {
356
357
  constructor(e = { value: "" }) {
357
- y(this, "editorType", "number-spinner");
358
- y(this, "value");
359
- y(this, "valueType", "number");
358
+ S(this, "editorType", "number-spinner");
359
+ S(this, "value");
360
+ S(this, "valueType", "number");
360
361
  this.value = e.value == null ? null : parseFloat(e.value);
361
362
  }
362
363
  clear() {
@@ -372,11 +373,11 @@ class Qt {
372
373
  return this.value == null;
373
374
  }
374
375
  }
375
- class Zt {
376
+ class Nn {
376
377
  constructor(e = { value: null }) {
377
- y(this, "editorType", "radio-group");
378
- y(this, "value");
379
- y(this, "valueType", "enum");
378
+ S(this, "editorType", "radio-group");
379
+ S(this, "value");
380
+ S(this, "valueType", "enum");
380
381
  this.value = e.value;
381
382
  }
382
383
  clear() {
@@ -392,11 +393,11 @@ class Zt {
392
393
  return !this.value;
393
394
  }
394
395
  }
395
- class de {
396
+ class Ee {
396
397
  constructor(e = { value: "" }) {
397
- y(this, "editorType", "text");
398
- y(this, "value");
399
- y(this, "valueType", "text");
398
+ S(this, "editorType", "text");
399
+ S(this, "value");
400
+ S(this, "valueType", "text");
400
401
  this.value = e.value;
401
402
  }
402
403
  clear() {
@@ -412,235 +413,235 @@ class de {
412
413
  return !this.value;
413
414
  }
414
415
  }
415
- function pe() {
416
+ function Ie() {
416
417
  function t(e, n) {
417
418
  switch (e) {
418
419
  case "check-box":
419
- return new Rt(n);
420
+ return new Fn(n);
420
421
  case "combo-list":
421
- return new qt(n);
422
+ return new In(n);
422
423
  case "combo-lookup":
423
- return new At(n);
424
+ return new Sn(n);
424
425
  case "input-group":
425
- return new Dt(n);
426
+ return new Vn(n);
426
427
  case "date-picker":
427
- return new $t(n);
428
+ return new Mn(n);
428
429
  case "date-range":
429
- return new ie(n);
430
+ return new Te(n);
430
431
  case "datetime-picker":
431
- return new Gt(n);
432
+ return new En(n);
432
433
  case "datetime-range":
433
- return new ie(n);
434
+ return new Te(n);
434
435
  case "lookup":
435
- return new Ut(n);
436
+ return new Rn(n);
436
437
  case "month-picker":
437
- return new Wt(n);
438
+ return new On(n);
438
439
  case "month-range":
439
- return new Ht(n);
440
+ return new jn(n);
440
441
  case "number-range":
441
- return new zt(n);
442
+ return new Ln(n);
442
443
  case "number-spinner":
443
- return new Qt(n);
444
+ return new Pn(n);
444
445
  case "radio-group":
445
- return new Zt(n);
446
+ return new Nn(n);
446
447
  default:
447
- return new de(n);
448
+ return new Ee(n);
448
449
  }
449
450
  }
450
451
  return { createConditionValue: t };
451
452
  }
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") {
453
+ function Ve(t, e) {
454
+ const n = i(t.fields), o = i([]), a = /* @__PURE__ */ new Map(), { createConditionValue: r } = Ie();
455
+ function s(c) {
456
+ switch (c.editor ? c.editor.type : "input-group") {
456
457
  case "date-range":
457
- s.editor.type = "date-picker";
458
+ c.editor.type = "date-picker";
458
459
  break;
459
460
  case "datetime-range":
460
- s.editor.type = "datetime-picker";
461
+ c.editor.type = "datetime-picker";
461
462
  break;
462
463
  case "number-range":
463
- s.editor.type = "number-spinner";
464
+ c.editor.type = "number-spinner";
464
465
  break;
465
466
  }
466
- return s.editor;
467
+ return c.editor;
467
468
  }
468
- function m(s) {
469
- return s.map((p) => Object.assign({}, p)).map((p) => (p.editor = l(p), p));
469
+ function u(c) {
470
+ return c.map((v) => Object.assign({}, v)).map((v) => (v.editor = s(v), v));
470
471
  }
471
- function w(s = !0) {
472
- n.value.reduce((d, p) => (s || (p.editor = l(p)), d.set(p.labelCode, p), d), r);
472
+ function p(c = !0) {
473
+ n.value.reduce((m, v) => (c || (v.editor = s(v)), m.set(v.labelCode, v), m), a);
473
474
  }
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);
475
+ function l(c) {
476
+ return c.forEach((m) => {
477
+ if (m && typeof m.valueConfig == "object") {
478
+ const v = a.get(m.fieldCode);
479
+ m.value = r(v.editor.type, m.valueConfig.content);
479
480
  }
480
- }), s;
481
+ }), c;
481
482
  }
482
- return { convertToSingleControl: m, fields: n, fieldMap: r, fieldConditions: o, loadFieldConfigs: w, initialConditionValue: u };
483
+ return { convertToSingleControl: u, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: p, initialConditionValue: l };
483
484
  }
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;
485
+ function zn(t, e, n) {
486
+ const o = i(null), a = i(n), r = i(0), s = B(() => l(r.value));
487
+ function u() {
488
+ a.value && (o.value = new ResizeObserver(p((c) => {
489
+ const m = c[0];
490
+ r.value = m.contentRect.width;
491
+ })), o.value.observe(a.value));
492
+ }
493
+ function p(c, m) {
494
+ let v = null;
494
495
  return function() {
495
- const V = arguments;
496
- p || (p = setTimeout(() => {
497
- p = null;
498
- }, 500), s(...V));
496
+ const k = arguments;
497
+ v || (v = setTimeout(() => {
498
+ v = null;
499
+ }, 500), c(...k));
499
500
  };
500
501
  }
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;
502
+ function l(c) {
503
+ let v = "col-12";
504
+ 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
505
  }
505
- return W([n], ([s]) => {
506
- r.value = s, m();
506
+ return J([n], ([c]) => {
507
+ a.value = c, u();
507
508
  }), {
508
- conditionClass: l,
509
+ conditionClass: s,
509
510
  resizeObserver: o
510
511
  };
511
512
  }
512
- const se = /* @__PURE__ */ X({
513
+ const ke = /* @__PURE__ */ ee({
513
514
  name: "FConditionFields",
514
- props: ce,
515
+ props: Me,
515
516
  emits: ["valueChange", "blur", "focus", "click", "input"],
516
517
  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;
518
+ const n = i(), o = i(t.key), a = i(t.isControlInline), r = i(t.conditions), s = Ve(t), {
519
+ initialConditionValue: u,
520
+ fieldMap: p,
521
+ loadFieldConfigs: l
522
+ } = s, c = zn(t, e, n), {
523
+ conditionClass: m,
524
+ resizeObserver: v
525
+ } = c;
526
+ l(!0), u(r.value), st(() => {
527
+ var h;
528
+ (h = v.value) == null || h.unobserve(n.value);
529
+ }), J(() => t.conditions, () => {
530
+ r.value = t.conditions;
530
531
  });
531
- const V = O(() => ({
532
+ const k = B(() => ({
532
533
  // row: true,
533
534
  "f-utils-flex-row-wrap": !0,
534
535
  "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);
536
+ "farris-form-controls-inline": a.value
537
+ })), E = B(() => m.value);
538
+ function N(h, b) {
539
+ e.emit("valueChange", h, b);
539
540
  }
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);
541
+ function $() {
542
+ return r.value.map((h) => {
543
+ var b;
544
+ return d(ht, {
545
+ customClass: E.value,
546
+ label: h.fieldName,
547
+ editor: (b = p.get(h.fieldCode)) == null ? void 0 : b.editor,
548
+ modelValue: h.value.value,
549
+ "onUpdate:modelValue": (P) => h.value.value = P,
550
+ onChange: (P) => {
551
+ N(P, h);
551
552
  }
552
553
  }, null);
553
554
  });
554
555
  }
555
- return () => k("div", {
556
- class: V.value,
556
+ return () => d("div", {
557
+ class: k.value,
557
558
  key: o.value,
558
559
  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];
560
+ }, [$()]);
561
+ }
562
+ }), $n = {}, An = {};
563
+ function Re(t) {
564
+ 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), {});
565
+ return n && (!a || !o.find((s) => s == "id")) && (r.id = `${n}-${Date.now()}`), r;
566
+ }
567
+ function Hn(t, e) {
568
+ const n = Re(e);
569
+ 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;
570
+ }
571
+ function Dn(t, e) {
572
+ return Object.keys(t).filter((o) => t[o] != null).reduce((o, a) => {
573
+ if (e.has(a)) {
574
+ const r = e.get(a);
575
+ if (typeof r == "string")
576
+ o[r] = t[a];
576
577
  else {
577
- const l = c(r, t[r], t);
578
- Object.assign(o, l);
578
+ const s = r(a, t[a], t);
579
+ Object.assign(o, s);
579
580
  }
580
581
  } else
581
- o[r] = t[r];
582
+ o[a] = t[a];
582
583
  return o;
583
584
  }, {});
584
585
  }
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);
586
+ function Gn(t, e, n = /* @__PURE__ */ new Map()) {
587
+ const o = Hn(t, e);
588
+ return Dn(o, n);
589
+ }
590
+ function qn(t = {}) {
591
+ function e(l, c, m, v) {
592
+ if (typeof m == "number")
593
+ return v[l].length === m;
594
+ if (typeof m == "object") {
595
+ const k = Object.keys(m)[0], E = m[k];
596
+ if (k === "not")
597
+ return Number(v[l].length) !== Number(E);
598
+ if (k === "moreThan")
599
+ return Number(v[l].length) >= Number(E);
600
+ if (k === "lessThan")
601
+ return Number(v[l].length) <= Number(E);
601
602
  }
602
603
  return !1;
603
604
  }
604
- function n(u, s, d, p) {
605
- return p[u] && p[u].propertyValue && String(p[u].propertyValue.value) === String(d);
605
+ function n(l, c, m, v) {
606
+ return v[l] && v[l].propertyValue && String(v[l].propertyValue.value) === String(m);
606
607
  }
607
608
  const o = /* @__PURE__ */ new Map([
608
609
  ["length", e],
609
610
  ["getProperty", n]
610
611
  ]);
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 };
612
+ Object.keys(t).reduce((l, c) => (l.set(c, t[c]), l), o);
613
+ function a(l, c) {
614
+ const m = l;
615
+ 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) => {
616
+ if (v === "length")
617
+ return { target: m, operator: "length", param: null, value: c[v] };
618
+ const k = v, E = c[v];
619
+ return { target: m, operator: "getProperty", param: k, value: E };
619
620
  }) : [];
620
621
  }
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;
622
+ function r(l) {
623
+ return Object.keys(l).reduce((m, v) => {
624
+ const k = a(v, l[v]);
625
+ return m.push(...k), m;
625
626
  }, []);
626
627
  }
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;
628
+ function s(l, c) {
629
+ if (o.has(l.operator)) {
630
+ const m = o.get(l.operator);
631
+ return m && m(l.target, l.param, l.value, c) || !1;
631
632
  }
632
633
  return !1;
633
634
  }
634
- function m(u, s) {
635
- return c(u).reduce((V, M) => V && l(M, s), !0);
635
+ function u(l, c) {
636
+ return r(l).reduce((k, E) => k && s(E, c), !0);
636
637
  }
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);
638
+ function p(l, c) {
639
+ 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));
640
+ return v ? !h.includes(!1) : h.includes(!0);
640
641
  }
641
- return { parseValueSchema: w };
642
+ return { parseValueSchema: p };
642
643
  }
643
- const E = {
644
+ const A = {
644
645
  button: { type: "button", name: "按钮", icon: "Button" },
645
646
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
646
647
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -677,33 +678,34 @@ const E = {
677
678
  uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
678
679
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
679
680
  "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);
681
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
682
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
683
+ }, Un = {}, Wn = {};
684
+ qn();
685
+ function ce(t, e, n = /* @__PURE__ */ new Map(), o = (s, u, p) => u, a = {}, r = (s) => s) {
686
+ return $n[e.title] = e, An[e.title] = o, Un[e.title] = a, Wn[e.title] = r, (s = {}) => {
687
+ const u = Gn(s, e, n), p = Object.keys(t).reduce((l, c) => (l[c] = t[c].default, l), {});
688
+ return Object.assign(p, u);
687
689
  };
688
690
  }
689
- function ge(t, e) {
691
+ function Oe(t, e) {
690
692
  return { customClass: e.class, customStyle: e.style };
691
693
  }
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 {
694
+ const be = /* @__PURE__ */ new Map([
695
+ ["appearance", Oe]
696
+ ]), Xn = /* @__PURE__ */ new Map([]);
697
+ 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 || {});
698
+ const Yn = "root-viewmodel";
699
+ class Jn {
698
700
  constructor(e, n) {
699
- y(this, "formSchemaUtils");
700
- y(this, "controlCreatorUtils");
701
- y(this, "designViewModelUtils");
701
+ S(this, "formSchemaUtils");
702
+ S(this, "controlCreatorUtils");
703
+ S(this, "designViewModelUtils");
702
704
  this.resolver = e, this.designerHostService = n, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.controlCreatorUtils = this.designerHostService.controlCreatorUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils;
703
705
  }
704
706
  createComponent(e) {
705
- const n = this.createComponentRefNode(e), o = this.createComponentNode(e), r = this.createViewModeNode(e), c = this.formSchemaUtils.getFormSchema();
706
- return c.module.viewmodels.push(r), c.module.components.push(o), this.designViewModelUtils.assembleDesignViewModel(), n;
707
+ const n = this.createComponentRefNode(e), o = this.createComponentNode(e), a = this.createViewModeNode(e), r = this.formSchemaUtils.getFormSchema();
708
+ return r.module.viewmodels.push(a), r.module.components.push(o), this.designViewModelUtils.assembleDesignViewModel(), n;
707
709
  }
708
710
  createComponentRefNode(e) {
709
711
  const n = this.resolver.getSchemaByType("component-ref");
@@ -740,25 +742,25 @@ class an {
740
742
  },
741
743
  mainTitle: e.componentName
742
744
  });
743
- const o = this.resolver.getSchemaByType("response-form"), r = [];
745
+ const o = this.resolver.getSchemaByType("response-form"), a = [];
744
746
  Object.assign(o, {
745
747
  id: e.componentId + "-form",
746
748
  appearance: {
747
749
  class: "f-form-layout farris-form farris-form-controls-inline"
748
750
  },
749
- contents: r
751
+ contents: a
750
752
  }), 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);
753
+ const { selectedFields: r } = e;
754
+ return r == null || r.forEach((u) => {
755
+ const p = ne(u), l = this.resolveControlClassByFormColumns(e), c = this.controlCreatorUtils.setFormFieldProperty(p, "", l);
756
+ c && a.push(c);
755
757
  }), 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
758
  }
757
759
  resolveControlClassByFormColumns(e) {
758
760
  let n = "";
759
761
  switch (e.formColumns) {
760
762
  case 1: {
761
- n = "col-12 col-md-12 col-xl-12 col-el-12";
763
+ n = "col-12";
762
764
  break;
763
765
  }
764
766
  case 2: {
@@ -785,7 +787,7 @@ class an {
785
787
  code: `${e.componentId}-component-viewmodel`,
786
788
  name: e.componentName,
787
789
  bindTo: e.bindTo,
788
- parent: rn,
790
+ parent: Yn,
789
791
  fields: this.assembleViewModelFields(e),
790
792
  commands: [],
791
793
  states: [],
@@ -800,37 +802,41 @@ class an {
800
802
  */
801
803
  assembleViewModelFields(e) {
802
804
  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({
805
+ return o == null || o.forEach((a) => {
806
+ let r = "blur";
807
+ const s = a.type.name;
808
+ (s === ge.Enum || s === ge.Boolean) && (r = "change"), n.push({
807
809
  type: "Form",
808
- id: r.id,
809
- fieldName: r.bindingField,
810
+ id: a.id,
811
+ fieldName: a.bindingField,
810
812
  groupId: null,
811
813
  groupName: null,
812
- updateOn: c,
814
+ updateOn: r,
813
815
  fieldSchema: {}
814
816
  });
815
817
  }), n;
816
818
  }
817
819
  }
818
- function sn(t, e, n, o) {
819
- const r = n.parentComponentInstance;
820
- if (r) {
821
- const l = {
820
+ function Qn(t, e, n, o) {
821
+ var r;
822
+ const a = n.parentComponentInstance;
823
+ if (a) {
824
+ const s = (r = a.schema) == null ? void 0 : r.type, p = {
822
825
  componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
823
826
  componentName: "标题",
824
827
  componentType: "form",
825
- formColumns: 4,
826
- parentContainerId: r.schema.id,
828
+ formColumns: s === "splitter-pane" ? 1 : 4,
829
+ parentContainerId: a.schema.id,
827
830
  bindTo: "/"
828
831
  };
829
- return new an(t, o).createComponent(l);
832
+ return new Jn(t, o).createComponent(p);
830
833
  } else
831
834
  return e;
832
835
  }
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 = {
836
+ function Zn(t, e, n) {
837
+ return e;
838
+ }
839
+ 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
840
  id: {
835
841
  description: "The unique identifier for a form group",
836
842
  type: "string"
@@ -858,49 +864,22 @@ const ln = "https://json-schema.org/draft/2020-12/schema", un = "https://farris-
858
864
  type: "array",
859
865
  default: []
860
866
  }
861
- }, fn = [
867
+ }, ao = [
862
868
  "id",
863
869
  "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 = {
870
+ ], lo = {
871
+ $schema: Kn,
872
+ $id: _n,
873
+ title: eo,
874
+ description: to,
875
+ type: no,
876
+ properties: oo,
877
+ required: ao
878
+ }, so = {
900
879
  customClass: { type: String, default: "" }
901
880
  };
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 = {
881
+ ce(so, lo, be, Qn);
882
+ 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
883
  id: {
905
884
  description: "The unique identifier for a form group",
906
885
  type: "string"
@@ -941,18 +920,18 @@ const kn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-
941
920
  description: "",
942
921
  type: "number"
943
922
  }
944
- }, Sn = [
923
+ }, fo = [
945
924
  "id",
946
925
  "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 = {
926
+ ], je = {
927
+ $schema: ro,
928
+ $id: io,
929
+ title: uo,
930
+ description: co,
931
+ type: po,
932
+ properties: mo,
933
+ required: fo
934
+ }, Le = {
956
935
  id: { type: String, default: "" },
957
936
  customClass: { type: String, default: "" },
958
937
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
@@ -966,43 +945,43 @@ const kn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-
966
945
  showLabel: { type: Boolean, default: !0 },
967
946
  type: { type: String, default: "input-group" }
968
947
  };
969
- K(
970
- ve,
971
- he,
972
- oe,
948
+ ce(
949
+ Le,
950
+ je,
951
+ be,
973
952
  void 0
974
953
  );
975
- const Vn = {
954
+ const vo = {
976
955
  id: { type: String },
977
956
  required: { type: Boolean, default: !1 },
978
957
  text: { type: String, default: "" },
979
958
  title: { type: String }
980
- }, En = /* @__PURE__ */ X({
959
+ }, ho = /* @__PURE__ */ ee({
981
960
  name: "FDynamicFormLabel",
982
- props: Vn,
961
+ props: vo,
983
962
  emits: [],
984
963
  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", {
964
+ const n = i(t.title || t.text), o = i(t.required), a = i(t.text);
965
+ return J(() => t.text, () => {
966
+ a.value = t.text;
967
+ }), J(() => t.required, (r, s) => {
968
+ r !== s && (o.value = r);
969
+ }), () => a.value && d("label", {
991
970
  class: "col-form-label",
992
971
  title: n.value
993
- }, [o.value && k("span", {
972
+ }, [o.value && d("span", {
994
973
  class: "farris-label-info text-danger"
995
- }, [Y("*")]), k("span", {
974
+ }, [le("*")]), d("span", {
996
975
  class: "farris-label-text"
997
- }, [r.value])]);
976
+ }, [a.value])]);
998
977
  }
999
- }), Mn = /* @__PURE__ */ new Map([
1000
- ["appearance", ge]
978
+ }), go = /* @__PURE__ */ new Map([
979
+ ["appearance", Oe]
1001
980
  ]);
1002
- function Nn(t, e, n) {
981
+ function yo(t, e, n) {
1003
982
  return e;
1004
983
  }
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 = {
984
+ 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
985
  id: {
1007
986
  description: "The unique identifier for a Input Group",
1008
987
  type: "string"
@@ -1204,18 +1183,19 @@ const On = "https://json-schema.org/draft/2020-12/schema", Pn = "https://farris-
1204
1183
  type: "string",
1205
1184
  default: ""
1206
1185
  }
1207
- }, $n = [
1186
+ }, Bo = [
1208
1187
  "id",
1209
1188
  "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 = {
1189
+ ], Fo = {
1190
+ $schema: bo,
1191
+ $id: Co,
1192
+ title: wo,
1193
+ description: xo,
1194
+ type: To,
1195
+ properties: ko,
1196
+ required: Bo
1197
+ }, Pe = {
1198
+ id: { Type: String, default: "" },
1219
1199
  /** 是否自动完成 */
1220
1200
  autocomplete: { Type: String, default: "off" },
1221
1201
  /** 自定义CLASS */
@@ -1282,421 +1262,421 @@ const On = "https://json-schema.org/draft/2020-12/schema", Pn = "https://farris-
1282
1262
  */
1283
1263
  updateOn: { type: String, default: "blur" }
1284
1264
  };
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(() => ({
1265
+ ce(Pe, Fo, go, yo);
1266
+ function So(t, e, n, o) {
1267
+ 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
1268
  "form-control": !0,
1289
1269
  "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 = {
1270
+ "text-left": p.value === "left",
1271
+ "text-center": p.value === "center",
1272
+ "text-right": p.value === "right"
1273
+ })), b = B(() => {
1274
+ const g = {
1295
1275
  "f-cmp-inputgroup": !0,
1296
1276
  "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
1277
+ "f-state-disable": a.value,
1278
+ "f-state-editable": m.value,
1279
+ "f-state-readonly": N.value,
1280
+ "f-state-focus": v.value
1301
1281
  };
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);
1282
+ return (t.customClass || "").split(" ").reduce((z, Y) => (z[Y] = !0, z), g), g;
1283
+ }), P = B(() => u.value ? "" : "border-width : 0 ");
1284
+ function D(g, M = !0) {
1285
+ 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
1286
  }
1307
- W(
1287
+ J(
1308
1288
  () => t.modelValue,
1309
- (i, T) => {
1310
- i !== T && (n.value = i, o.value = i);
1289
+ (g, M) => {
1290
+ g !== M && (n.value = g, o.value = g);
1311
1291
  }
1312
- ), W(() => t.disabled, (i, T) => {
1313
- i !== T && (r.value = i);
1292
+ ), J(() => t.disabled, (g, M) => {
1293
+ g !== M && (a.value = g);
1314
1294
  });
1315
- function $(i) {
1316
- return c.value = !1, e.emit("blur", i), i.stopPropagation(), !1;
1295
+ function W(g) {
1296
+ return r.value = !1, e.emit("blur", g), g.stopPropagation(), !1;
1317
1297
  }
1318
- function G(i) {
1319
- e.emit("click", i);
1298
+ function q(g) {
1299
+ e.emit("click", g);
1320
1300
  }
1321
- function R(i) {
1322
- t.disabled || (m.value && (c.value = !0), s.value && e.emit("focus", i));
1301
+ function T(g) {
1302
+ t.disabled || (u.value && (r.value = !0), c.value && e.emit("focus", g));
1323
1303
  }
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));
1304
+ function H(g) {
1305
+ e.emit("input", g.target.value);
1306
+ const M = g.target.value;
1307
+ o.value = M, l.value === "change" && (e.emit("update:modelValue", M), e.emit("update:value", M));
1328
1308
  }
1329
- function a(i) {
1330
- e.emit("keydown", i);
1309
+ function f(g) {
1310
+ e.emit("keydown", g);
1331
1311
  }
1332
- function g(i) {
1333
- e.emit("keyup", i);
1312
+ function w(g) {
1313
+ e.emit("keyup", g);
1334
1314
  }
1335
- function f(i) {
1336
- i.target.tagName !== "INPUT" && i.preventDefault(), i.stopPropagation();
1315
+ function x(g) {
1316
+ g.target.tagName !== "INPUT" && g.preventDefault(), g.stopPropagation();
1337
1317
  }
1338
- function B(i) {
1339
- if (u.value === "blur") {
1340
- const T = i.target.value;
1341
- i.stopPropagation(), j(T);
1318
+ function R(g) {
1319
+ if (l.value === "blur") {
1320
+ const M = g.target.value;
1321
+ g.stopPropagation(), D(M);
1342
1322
  }
1343
1323
  }
1344
1324
  return {
1345
- changeTextBoxValue: j,
1346
- disabled: r,
1325
+ changeTextBoxValue: D,
1326
+ disabled: a,
1347
1327
  displayText: o,
1348
- editable: d,
1349
- hasFocused: p,
1350
- inputGroupClass: F,
1351
- inputType: l,
1352
- isEmpty: V,
1328
+ editable: m,
1329
+ hasFocused: v,
1330
+ inputGroupClass: b,
1331
+ inputType: s,
1332
+ isEmpty: k,
1353
1333
  modelValue: n,
1354
- readonly: P,
1355
- onBlur: $,
1356
- onClick: G,
1357
- onFocus: R,
1334
+ readonly: N,
1335
+ onBlur: W,
1336
+ onClick: q,
1337
+ onFocus: T,
1358
1338
  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
1339
+ onKeydown: f,
1340
+ onKeyup: w,
1341
+ onMousedown: x,
1342
+ onTextBoxValueChange: R,
1343
+ placeholder: E,
1344
+ textBoxClass: h,
1345
+ textBoxTitle: $,
1346
+ inputGroupStyle: P
1367
1347
  };
1368
1348
  }
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;
1349
+ function Mo(t, e, n) {
1350
+ const o = i(!1), a = B(() => t.enableClear && !t.readonly && !t.disabled), { changeTextBoxValue: r, displayText: s, hasFocused: u, isEmpty: p } = n;
1351
+ function l(N) {
1352
+ o.value = N;
1373
1353
  }
1374
- W(l, () => {
1375
- m != null && m.value ? u(!!(l != null && l.value)) : u(!1);
1354
+ J(s, () => {
1355
+ u != null && u.value ? l(!!(s != null && s.value)) : l(!1);
1376
1356
  });
1377
- const s = O(() => ({
1357
+ const c = B(() => ({
1378
1358
  "input-group-text": !0,
1379
1359
  "input-group-clear": !0
1380
- })), d = O(() => ({
1360
+ })), m = B(() => ({
1381
1361
  width: "24px",
1382
1362
  display: o.value ? "flex" : "none"
1383
1363
  }));
1384
- function p(P) {
1385
- P.stopPropagation(), r.value && (c("", !0), u(!o.value), e.emit("clear"));
1364
+ function v(N) {
1365
+ N.stopPropagation(), a.value && (r("", !0), l(!o.value), e.emit("clear"));
1386
1366
  }
1387
- function V(P) {
1388
- r.value && !w.value && u(!0);
1367
+ function k(N) {
1368
+ a.value && !p.value && l(!0);
1389
1369
  }
1390
- function M(P) {
1391
- r.value && u(!1);
1370
+ function E(N) {
1371
+ a.value && l(!1);
1392
1372
  }
1393
- return { clearButtonClass: s, clearButtonStyle: d, hasShownClearButton: o, onClearValue: p, onMouseEnter: V, onMouseLeave: M, shouldShowClearButton: r };
1373
+ return { clearButtonClass: c, clearButtonStyle: m, hasShownClearButton: o, onClearValue: v, onMouseEnter: k, onMouseLeave: E, shouldShowClearButton: a };
1394
1374
  }
1395
- const Un = ["moz", "ms", "webkit"];
1396
- function Wn() {
1375
+ const Eo = ["moz", "ms", "webkit"];
1376
+ function Io() {
1397
1377
  let t = 0;
1398
1378
  return (e) => {
1399
- const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), r = setTimeout(() => {
1379
+ const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), a = setTimeout(() => {
1400
1380
  e(n + o);
1401
1381
  }, o);
1402
- return t = n + o, r;
1382
+ return t = n + o, a;
1403
1383
  };
1404
1384
  }
1405
- function Hn() {
1385
+ function Vo() {
1406
1386
  if (typeof window > "u")
1407
1387
  return () => 0;
1408
1388
  if (window.requestAnimationFrame)
1409
1389
  return window.requestAnimationFrame.bind(window);
1410
- const t = Un.filter((e) => `${e}RequestAnimationFrame` in window)[0];
1411
- return t ? window[`${t}RequestAnimationFrame`] : Wn();
1390
+ const t = Eo.filter((e) => `${e}RequestAnimationFrame` in window)[0];
1391
+ return t ? window[`${t}RequestAnimationFrame`] : Io();
1412
1392
  }
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(() => ({
1393
+ Vo();
1394
+ function Ro(t, e) {
1395
+ const n = i(t.groupText), o = B(() => t.showButtonWhenDisabled && (t.readonly || t.disabled)), a = B(() => t.enableClear || !!t.groupText);
1396
+ return { appendedButtonClass: B(() => ({
1417
1397
  "input-group-append": !0,
1418
1398
  "append-force-show": o.value
1419
- })), appendedContent: n, shouldShowAppendedButton: r };
1399
+ })), appendedContent: n, shouldShowAppendedButton: a };
1420
1400
  }
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);
1401
+ function Oo(t, e, n, o) {
1402
+ 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);
1403
+ J(() => [t.readonly, t.disabled], ([v, k]) => {
1404
+ s.value && (n.value = v || k ? "password" : n.value, a.value = v || k ? p : a.value);
1425
1405
  });
1426
- function s() {
1427
- return u.value = !u.value, n.value = u.value ? "text" : "password", r.value = u.value ? m : w, !1;
1406
+ function c() {
1407
+ return l.value = !l.value, n.value = l.value ? "text" : "password", a.value = l.value ? u : p, !1;
1428
1408
  }
1429
- function d() {
1430
- n.value = l.value ? "password" : "text", r.value = l.value ? c.value ? w : "" : r.value;
1409
+ function m() {
1410
+ n.value = s.value ? "password" : "text", a.value = s.value ? r.value ? p : "" : a.value;
1431
1411
  }
1432
- return d(), { isPassword: l, onClickAppendedButton: s };
1412
+ return m(), { isPassword: s, onClickAppendedButton: c };
1433
1413
  }
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(() => ({
1414
+ function jo(t, e, n) {
1415
+ const o = i(), {
1416
+ onBlurTextBox: a,
1417
+ onFocusTextBox: r,
1418
+ onInput: s,
1419
+ onKeyDown: u,
1420
+ textBoxValue: p
1421
+ } = n, l = B(() => t.disabled || t.readonly || !t.editable ? "" : t.placeholder), c = B(() => ({
1442
1422
  "form-control": !0,
1443
1423
  "f-utils-fill": !0
1444
- })), d = O(() => ({
1424
+ })), m = B(() => ({
1445
1425
  "text-align": t.textAlign
1446
1426
  }));
1447
- function p(P) {
1448
- P.stopPropagation();
1427
+ function v(N) {
1428
+ N.stopPropagation();
1449
1429
  }
1450
- function V() {
1430
+ function k() {
1451
1431
  t.selectOnCreated, t.focusOnCreated;
1452
1432
  }
1453
- async function M(P) {
1454
- c(P), await re, V();
1433
+ async function E(N) {
1434
+ r(N), await ve, k();
1455
1435
  }
1456
- return _(async () => {
1457
- await re, V();
1458
- }), () => k("input", {
1436
+ return oe(async () => {
1437
+ await ve, k();
1438
+ }), () => d("input", {
1459
1439
  ref: o,
1460
- class: s.value,
1461
- style: d.value,
1440
+ class: c.value,
1441
+ style: m.value,
1462
1442
  type: "text",
1463
- value: w.value,
1443
+ value: p.value,
1464
1444
  disabled: t.disabled,
1465
1445
  readonly: t.readonly || !t.editable,
1466
- placeholder: u.value,
1467
- onBlur: r,
1468
- onChange: p,
1469
- onFocus: M,
1470
- onInput: l,
1471
- onKeydown: m
1446
+ placeholder: l.value,
1447
+ onBlur: a,
1448
+ onChange: v,
1449
+ onFocus: E,
1450
+ onInput: s,
1451
+ onKeydown: u
1472
1452
  }, null);
1473
1453
  }
1474
- function Jn(t, e, n) {
1454
+ function Lo(t, e, n) {
1475
1455
  const {
1476
1456
  canDownward: o,
1477
- canUpward: r,
1478
- onClickDownButton: c,
1479
- onClickUpButton: l
1480
- } = n, m = O(() => ({
1457
+ canUpward: a,
1458
+ onClickDownButton: r,
1459
+ onClickUpButton: s
1460
+ } = n, u = B(() => ({
1481
1461
  "input-group-append": !0,
1482
1462
  "btn-group": !0,
1483
1463
  "btn-group-number": !0
1484
- })), w = O(() => ({
1464
+ })), p = B(() => ({
1485
1465
  btn: !0,
1486
1466
  "btn-secondary": !0,
1487
1467
  "btn-number-flag": !0
1488
- })), u = O(() => ({
1489
- cursor: r() ? "pointer" : "not-allowed",
1468
+ })), l = B(() => ({
1469
+ cursor: a() ? "pointer" : "not-allowed",
1490
1470
  "margin-left": 0
1491
- })), s = O(() => ({
1471
+ })), c = B(() => ({
1492
1472
  cursor: o() ? "pointer" : "not-allowed",
1493
1473
  "margin-left": 0
1494
1474
  }));
1495
- return () => k("div", {
1496
- class: m.value
1497
- }, [k("button", {
1475
+ return () => d("div", {
1476
+ class: u.value
1477
+ }, [d("button", {
1498
1478
  title: "upButton",
1499
- class: w.value,
1500
- style: u.value,
1501
- onClick: l,
1502
- disabled: !r()
1503
- }, [k("span", {
1479
+ class: p.value,
1480
+ style: l.value,
1481
+ onClick: s,
1482
+ disabled: !a()
1483
+ }, [d("span", {
1504
1484
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
1505
- }, null)]), k("button", {
1485
+ }, null)]), d("button", {
1506
1486
  title: "downButton",
1507
- class: w.value,
1508
- style: s.value,
1509
- onClick: c,
1487
+ class: p.value,
1488
+ style: c.value,
1489
+ onClick: r,
1510
1490
  disabled: !o()
1511
- }, [k("span", {
1491
+ }, [d("span", {
1512
1492
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1513
1493
  }, null)])]);
1514
1494
  }
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
1495
+ function Po(t, e) {
1496
+ 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), {
1497
+ displayValue: u,
1498
+ modelValue: p,
1499
+ getRealValue: l
1500
+ } = n, c = jo(t, e, r), {
1501
+ format: m
1522
1502
  } = 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", {
1503
+ isFocus: v
1504
+ } = r, k = B(() => !t.disabled && !t.readonly);
1505
+ return oe(() => {
1506
+ const E = l(t.modelValue);
1507
+ u.value = m(E);
1508
+ }), J(() => [t.value], ([E]) => {
1509
+ const N = l(E);
1510
+ p.value = N, u.value = m(N);
1511
+ }), J(() => [t.modelValue], ([E]) => {
1512
+ E !== p.value && (p.value = E, !v.value && (u.value = m(l(E))));
1513
+ }), J(() => [t.precision, t.useThousands, t.prefix, t.suffix, t.showZero], () => {
1514
+ u.value = m(p.value);
1515
+ }), () => d("div", {
1536
1516
  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,
1517
+ }, [c(), k.value && s()]);
1518
+ }
1519
+ function No(t, e, n, o) {
1520
+ const a = i(), r = i(t.autocomplete), s = i(t.enableTitle), {
1521
+ isPassword: u
1522
+ } = n, p = i(t.minLength), l = i(t.maxLength), c = i(t.tabIndex), {
1523
+ disabled: m,
1524
+ displayText: v,
1525
+ inputType: k,
1526
+ onBlur: E,
1527
+ onFocus: N,
1528
+ onInput: $,
1529
+ onClick: h,
1530
+ onKeydown: b,
1531
+ onKeyup: P,
1532
+ onMousedown: D,
1533
+ onTextBoxValueChange: W,
1534
+ readonly: q,
1535
+ placeholder: T,
1556
1536
  textBoxClass: H,
1557
- textBoxTitle: a
1537
+ textBoxTitle: f
1558
1538
  } = o;
1559
- return _(() => {
1539
+ return oe(() => {
1560
1540
  t.selectOnCreated, t.focusOnCreated;
1561
- }), () => k("input", {
1562
- ref: r,
1541
+ }), () => d("input", {
1542
+ ref: a,
1563
1543
  name: "input-group-value",
1564
- autocomplete: c.value,
1544
+ autocomplete: r.value,
1565
1545
  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
1546
+ disabled: m == null ? void 0 : m.value,
1547
+ maxlength: l.value,
1548
+ minlength: p.value,
1549
+ placeholder: T.value,
1550
+ readonly: q == null ? void 0 : q.value,
1551
+ tabindex: c.value,
1552
+ title: s.value && !u.value ? f.value : "",
1553
+ type: k.value,
1554
+ value: v == null ? void 0 : v.value,
1555
+ onBlur: E,
1556
+ onClick: h,
1557
+ onChange: W,
1558
+ onFocus: N,
1559
+ onInput: $,
1560
+ onKeydown: b,
1561
+ onKeyup: P,
1562
+ onMousedown: D
1583
1563
  }, null);
1584
1564
  }
1585
- function _n(t, e) {
1586
- const n = O(() => t.useExtendInfo && !!t.extendInfo), o = xe({
1565
+ function zo(t, e) {
1566
+ const n = B(() => t.useExtendInfo && !!t.extendInfo), o = Z({
1587
1567
  content: t.extendInfo
1588
1568
  });
1589
- function r() {
1569
+ function a() {
1590
1570
  e.emit("updateExtendInfo");
1591
1571
  }
1592
- return () => n.value && Fe(k("span", {
1572
+ return () => n.value && rt(d("span", {
1593
1573
  class: "input-group-before-tips",
1594
- onMouseenter: r
1595
- }, [k("i", {
1574
+ onMouseenter: a
1575
+ }, [d("i", {
1596
1576
  class: "f-icon f-icon-info-circle"
1597
- }, null), k("b", {
1577
+ }, null), d("b", {
1598
1578
  class: "tips-arrow"
1599
- }, null)]), [[Be("tooltip"), o]]);
1579
+ }, null)]), [[it("tooltip"), o]]);
1600
1580
  }
1601
- function Kn(t, e, n, o, r) {
1581
+ function $o(t, e, n, o, a) {
1602
1582
  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
1583
+ appendedButtonClass: r,
1584
+ appendedContent: s
1585
+ } = n, u = B(() => t.showButtonWhenDisabled && (!t.editable || !t.readonly) && !t.disabled), p = B(() => s.value && !e.slots.groupTextTemplate), l = B(() => !!e.slots.groupTextTemplate), {
1586
+ clearButtonClass: c,
1587
+ clearButtonStyle: m,
1588
+ onClearValue: v,
1589
+ shouldShowClearButton: k
1610
1590
  } = o;
1611
- function M() {
1612
- return k("span", {
1591
+ function E() {
1592
+ return d("span", {
1613
1593
  id: "clearIcon",
1614
- class: s.value,
1615
- style: d.value,
1616
- onClick: (R) => p(R)
1617
- }, [k("i", {
1594
+ class: c.value,
1595
+ style: m.value,
1596
+ onClick: (T) => v(T)
1597
+ }, [d("i", {
1618
1598
  class: "f-icon modal_close"
1619
1599
  }, null)]);
1620
1600
  }
1621
- function P(R) {
1622
- e.emit("iconMouseEnter", R);
1601
+ function N(T) {
1602
+ e.emit("iconMouseEnter", T);
1623
1603
  }
1624
- function D(R) {
1625
- e.emit("iconMouseLeave", R);
1604
+ function $(T) {
1605
+ e.emit("iconMouseLeave", T);
1626
1606
  }
1627
- function x(R) {
1628
- m.value && e.emit("clickHandle", {
1629
- originalEvent: R
1630
- }), R.stopPropagation();
1607
+ function h(T) {
1608
+ u.value && e.emit("clickHandle", {
1609
+ originalEvent: T
1610
+ }), T.stopPropagation();
1631
1611
  }
1632
- const F = t.type === "password" ? r.onClickAppendedButton : x;
1633
- function N() {
1634
- return k("span", {
1612
+ const b = t.type === "password" ? a.onClickAppendedButton : h;
1613
+ function P() {
1614
+ return d("span", {
1635
1615
  class: "input-group-text",
1636
- onMouseenter: (R) => P(R),
1637
- onMouseleave: (R) => D(R),
1638
- innerHTML: l.value,
1639
- onClick: (R) => F(R)
1616
+ onMouseenter: (T) => N(T),
1617
+ onMouseleave: (T) => $(T),
1618
+ innerHTML: s.value,
1619
+ onClick: (T) => b(T)
1640
1620
  }, null);
1641
1621
  }
1642
- function j() {
1622
+ function D() {
1643
1623
  return e.slots.groupTextTemplate && e.slots.groupTextTemplate();
1644
1624
  }
1645
- function $() {
1646
- return w.value ? N : u.value ? j : "";
1625
+ function W() {
1626
+ return p.value ? P : l.value ? D : "";
1647
1627
  }
1648
- const G = $();
1649
- return () => k("div", {
1650
- class: c.value
1651
- }, [V.value && M(), G && G()]);
1628
+ const q = W();
1629
+ return () => d("div", {
1630
+ class: r.value
1631
+ }, [k.value && E(), q && q()]);
1652
1632
  }
1653
- const eo = /* @__PURE__ */ X({
1633
+ const Ao = /* @__PURE__ */ ee({
1654
1634
  name: "FInputGroup",
1655
- props: ye,
1635
+ props: Pe,
1656
1636
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
1657
1637
  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
- }), _(() => {
1638
+ const n = i(t.modelValue), o = i(t.modelValue), a = So(t, e, n, o), {
1639
+ inputGroupClass: r,
1640
+ inputType: s,
1641
+ inputGroupStyle: u
1642
+ } = a, p = Ro(t), {
1643
+ shouldShowAppendedButton: l
1644
+ } = p, c = Mo(t, e, a), {
1645
+ onMouseEnter: m,
1646
+ onMouseLeave: v
1647
+ } = 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");
1648
+ J(() => [t.value], ([D]) => {
1649
+ n.value = D, o.value = D;
1650
+ }), J(() => [t.modelValue], ([D]) => {
1651
+ n.value = D, o.value = D;
1652
+ }), oe(() => {
1673
1653
  t.value && (n.value = t.value, o.value = t.value);
1674
1654
  });
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) {
1655
+ const P = () => d(se, null, [d("div", {
1656
+ id: t.id,
1657
+ class: r.value,
1658
+ style: u.value,
1659
+ onMouseenter: m,
1660
+ onMouseleave: v
1661
+ }, [b.value ? E() : d(se, null, [h(), N(), l.value && $()])])]);
1662
+ return () => P();
1663
+ }
1664
+ }), I = {}, V = {}, O = {}, L = {};
1665
+ let Be = !1;
1666
+ function Ho() {
1667
+ 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));
1668
+ }
1669
+ function Do() {
1670
+ Ho();
1671
+ function t(a, r) {
1672
+ const s = V[a];
1673
+ return s ? s(r) : {};
1674
+ }
1675
+ function e(a) {
1676
+ return I[a] || Ao;
1677
+ }
1678
+ function n(a) {
1679
+ switch (a) {
1700
1680
  case "check-box":
1701
1681
  return "onChangeValue";
1702
1682
  case "switch":
@@ -1727,7 +1707,7 @@ function no() {
1727
1707
  case "input-group":
1728
1708
  return "onChange";
1729
1709
  case "lookup":
1730
- return "";
1710
+ return "onUpdate:modelValue";
1731
1711
  case "number-range":
1732
1712
  return "onValueChange";
1733
1713
  case "number-spinner":
@@ -1742,6 +1722,8 @@ function no() {
1742
1722
  return "onSavedCommandListChanged";
1743
1723
  case "grid-field-editor":
1744
1724
  return "onChange";
1725
+ case "response-form-layout-setting":
1726
+ return "onChange";
1745
1727
  case "field-selector":
1746
1728
  return "onFieldSelected";
1747
1729
  case "schema-selector":
@@ -1752,8 +1734,8 @@ function no() {
1752
1734
  return "onValueChange";
1753
1735
  }
1754
1736
  }
1755
- function o(r) {
1756
- switch (r) {
1737
+ function o(a) {
1738
+ switch (a) {
1757
1739
  case "combo-list":
1758
1740
  case "input-group":
1759
1741
  case "textarea":
@@ -1762,65 +1744,65 @@ function no() {
1762
1744
  }
1763
1745
  return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
1764
1746
  }
1765
- const oo = /* @__PURE__ */ X({
1747
+ const Go = /* @__PURE__ */ ee({
1766
1748
  name: "FDynamicFormGroup",
1767
- props: ve,
1749
+ props: Le,
1768
1750
  emits: ["change", "update:modelValue"],
1769
1751
  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(() => ({
1752
+ 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);
1753
+ i(t.type);
1754
+ const m = i(), {
1755
+ resolveEditorProps: v,
1756
+ resolveEditorType: k,
1757
+ getChangeFunctionName: E,
1758
+ getClearFunctionName: N
1759
+ } = Do(), $ = B(() => ({
1778
1760
  "form-group": !0,
1779
1761
  "farris-form-group": !0,
1780
1762
  "common-group": !0,
1781
- "q-state-readonly": m.value
1763
+ "q-state-readonly": u.value
1782
1764
  }));
1783
- function x(j, $) {
1784
- l.value = $ !== void 0 ? $ : j, e.emit("update:modelValue", l.value), e.emit("change", l.value);
1765
+ function h(D, W) {
1766
+ s.value = W !== void 0 ? W : D, e.emit("update:modelValue", s.value), e.emit("change", s.value);
1785
1767
  }
1786
- function F() {
1768
+ function b() {
1787
1769
  e.emit("update:modelValue", "");
1788
1770
  }
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
1771
+ const P = B(() => {
1772
+ const D = a.value.type || "input-group", W = k(D), q = v(D, a.value), T = E(D), H = N(a.value.type);
1773
+ return q[T] = h, q[H] = b, (q.id == null || q.id === "") && (q.id = n.value), () => d(W, ye({
1774
+ ref: m
1775
+ }, q, {
1776
+ modelValue: s.value,
1777
+ "onUpdate:modelValue": (f) => s.value = f
1796
1778
  }), null);
1797
1779
  });
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;
1780
+ 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]) => {
1781
+ 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
1782
  }), e.expose({
1801
- editorRef: d
1802
- }), () => s.value && k("div", {
1783
+ editorRef: m
1784
+ }), () => c.value && d("div", {
1803
1785
  id: `${n.value}-input-group`,
1804
1786
  class: o.value
1805
- }, [k("div", {
1787
+ }, [d("div", {
1806
1788
  class: "farris-group-wrap"
1807
- }, [k("div", {
1808
- class: D.value
1809
- }, [u.value && k(En, {
1789
+ }, [d("div", {
1790
+ class: $.value
1791
+ }, [l.value && d(ho, {
1810
1792
  id: `${n.value}-lable`,
1811
- required: w.value,
1812
- text: c.value,
1813
- title: c.value
1814
- }, null), k("div", {
1793
+ required: p.value,
1794
+ text: r.value,
1795
+ title: r.value
1796
+ }, null), d("div", {
1815
1797
  class: "farris-input-wrap"
1816
- }, [N.value()])])])]);
1798
+ }, [P.value()])])])]);
1817
1799
  }
1818
- }), Z = class Z {
1800
+ }), te = class te {
1819
1801
  /**
1820
1802
  * 根据绑定字段类型获取可用的输入类控件
1821
1803
  */
1822
1804
  static getEditorTypesByMDataType(e) {
1823
- const n = Z.fieldControlTypeMapping[e];
1805
+ const n = te.fieldControlTypeMapping[e];
1824
1806
  return n || [{ key: "", value: "" }];
1825
1807
  }
1826
1808
  /**
@@ -1828,9 +1810,9 @@ const oo = /* @__PURE__ */ X({
1828
1810
  */
1829
1811
  static getAllInputTypes() {
1830
1812
  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 });
1813
+ for (let n in te.fieldControlTypeMapping)
1814
+ te.fieldControlTypeMapping[n].forEach((o) => {
1815
+ e.find((a) => a.key === o.key && a.value === o.value) || e.push({ key: o.key, value: o.value });
1834
1816
  });
1835
1817
  return e;
1836
1818
  }
@@ -1838,55 +1820,56 @@ const oo = /* @__PURE__ */ X({
1838
1820
  /**
1839
1821
  * <字段类型,可配置的控件类型列表>的映射
1840
1822
  */
1841
- y(Z, "fieldControlTypeMapping", {
1823
+ S(te, "fieldControlTypeMapping", {
1842
1824
  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 }
1825
+ { key: A["input-group"].type, value: A["input-group"].name },
1826
+ { key: A.lookup.type, value: A.lookup.name },
1827
+ { key: A["date-picker"].type, value: A["date-picker"].name },
1828
+ { key: A["check-box"].type, value: A["check-box"].name },
1829
+ { key: A["check-group"].type, value: A["check-group"].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
  };