@farris/ui-vue 1.2.7 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/components/accordion/index.esm.js +136 -136
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +418 -456
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/border-editor/index.esm.js +4 -4
  6. package/components/border-editor/index.umd.cjs +1 -1
  7. package/components/button/index.esm.js +1 -1
  8. package/components/button/index.umd.cjs +1 -1
  9. package/components/button-edit/index.esm.js +363 -436
  10. package/components/button-edit/index.umd.cjs +1 -1
  11. package/components/button-group/index.esm.js +5 -5
  12. package/components/button-group/index.umd.cjs +1 -1
  13. package/components/calendar/index.esm.js +417 -417
  14. package/components/calendar/index.umd.cjs +1 -1
  15. package/components/capsule/index.esm.js +176 -176
  16. package/components/capsule/index.umd.cjs +1 -1
  17. package/components/checkbox/index.esm.js +557 -594
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/color-picker/index.esm.js +119 -119
  20. package/components/color-picker/index.umd.cjs +2 -2
  21. package/components/combo-list/index.esm.js +502 -535
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-tree/index.esm.js +69 -69
  24. package/components/combo-tree/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +387 -275
  26. package/components/component/index.umd.cjs +1 -1
  27. package/components/condition/index.esm.js +1219 -983
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/content-container/index.esm.js +292 -219
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/data-grid/index.css +1 -1
  32. package/components/data-grid/index.esm.js +5718 -5546
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3291 -2930
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2650 -2682
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/dependent-base/style.js +1 -0
  39. package/components/dependent-fluid/style.js +1 -0
  40. package/components/dependent-icon/style.js +1 -0
  41. package/components/dependent-input/style.js +1 -0
  42. package/components/dependent-table/style.js +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +945 -932
  45. package/components/designer-canvas/index.umd.cjs +1 -1
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +175 -133
  48. package/components/designer-outline/index.umd.cjs +1 -1
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -1
  51. package/components/discussion-editor/index.esm.js +1 -1
  52. package/components/discussion-editor/index.umd.cjs +1 -1
  53. package/components/dropdown/index.esm.js +246 -246
  54. package/components/dropdown/index.umd.cjs +2 -2
  55. package/components/dynamic-form/index.esm.js +1319 -1172
  56. package/components/dynamic-form/index.umd.cjs +1 -1
  57. package/components/dynamic-resolver/index.esm.js +119 -82
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-view/index.esm.js +258 -249
  60. package/components/dynamic-view/index.umd.cjs +1 -1
  61. package/components/enum-editor/index.esm.js +3 -3
  62. package/components/enum-editor/index.umd.cjs +1 -1
  63. package/components/events-editor/index.esm.js +569 -514
  64. package/components/events-editor/index.umd.cjs +1 -1
  65. package/components/expression-editor/index.esm.js +104 -104
  66. package/components/expression-editor/index.umd.cjs +1 -1
  67. package/components/external-container/index.css +1 -1
  68. package/components/external-container/index.esm.js +3122 -2686
  69. package/components/external-container/index.umd.cjs +1 -1
  70. package/components/field-selector/index.css +1 -1
  71. package/components/field-selector/index.esm.js +6780 -6608
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/filter-bar/index.css +1 -1
  74. package/components/filter-bar/index.esm.js +1466 -1523
  75. package/components/filter-bar/index.umd.cjs +1 -1
  76. package/components/flow-canvas/index.css +1 -1
  77. package/components/flow-canvas/index.esm.js +1048 -1035
  78. package/components/flow-canvas/index.umd.cjs +1 -1
  79. package/components/image-cropper/index.esm.js +422 -422
  80. package/components/image-cropper/index.umd.cjs +1 -1
  81. package/components/input-group/index.esm.js +674 -716
  82. package/components/input-group/index.umd.cjs +1 -1
  83. package/components/layout/index.esm.js +291 -291
  84. package/components/layout/index.umd.cjs +1 -1
  85. package/components/list-nav/index.esm.js +303 -230
  86. package/components/list-nav/index.umd.cjs +1 -1
  87. package/components/list-view/index.css +1 -1
  88. package/components/list-view/index.esm.js +2486 -2130
  89. package/components/list-view/index.umd.cjs +1 -1
  90. package/components/lookup/index.css +1 -1
  91. package/components/lookup/index.esm.js +7474 -7272
  92. package/components/lookup/index.umd.cjs +1 -1
  93. package/components/mapping-editor/index.css +1 -1
  94. package/components/mapping-editor/index.esm.js +6139 -5949
  95. package/components/mapping-editor/index.umd.cjs +1 -1
  96. package/components/message-box/index.esm.js +1 -1
  97. package/components/message-box/index.umd.cjs +1 -1
  98. package/components/modal/index.esm.js +1 -1
  99. package/components/modal/index.umd.cjs +1 -1
  100. package/components/nav/index.esm.js +432 -371
  101. package/components/nav/index.umd.cjs +3 -3
  102. package/components/number-range/index.esm.js +1124 -0
  103. package/components/number-range/index.umd.cjs +1 -0
  104. package/components/number-range/package.json +8 -0
  105. package/components/number-range/style.js +6 -0
  106. package/components/number-spinner/index.esm.js +1155 -0
  107. package/components/number-spinner/index.umd.cjs +1 -0
  108. package/components/number-spinner/package.json +8 -0
  109. package/components/number-spinner/style.js +4 -0
  110. package/components/order/index.css +1 -1
  111. package/components/order/index.esm.js +1215 -1178
  112. package/components/order/index.umd.cjs +1 -1
  113. package/components/page-footer/index.esm.js +147 -147
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +1240 -1346
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +489 -428
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/progress/index.esm.js +220 -220
  120. package/components/progress/index.umd.cjs +3 -3
  121. package/components/property-editor/index.esm.js +1512 -1540
  122. package/components/property-editor/index.umd.cjs +3 -3
  123. package/components/property-panel/index.css +1 -1
  124. package/components/property-panel/index.esm.js +749 -815
  125. package/components/property-panel/index.umd.cjs +1 -1
  126. package/components/query-solution/index.css +1 -0
  127. package/components/query-solution/index.esm.js +7074 -0
  128. package/components/query-solution/index.umd.cjs +1 -0
  129. package/components/query-solution/package.json +8 -0
  130. package/components/query-solution/style.js +2 -0
  131. package/components/radio-button/index.esm.js +86 -86
  132. package/components/radio-button/index.umd.cjs +1 -1
  133. package/components/radio-group/index.esm.js +442 -479
  134. package/components/radio-group/index.umd.cjs +1 -1
  135. package/components/rate/index.esm.js +213 -208
  136. package/components/rate/index.umd.cjs +1 -1
  137. package/components/response-layout/index.esm.js +116 -116
  138. package/components/response-layout/index.umd.cjs +1 -1
  139. package/components/response-layout-editor/index.esm.js +943 -918
  140. package/components/response-layout-editor/index.umd.cjs +1 -1
  141. package/components/response-toolbar/index.esm.js +1174 -1295
  142. package/components/response-toolbar/index.umd.cjs +1 -1
  143. package/components/schema-selector/index.css +1 -1
  144. package/components/schema-selector/index.esm.js +5383 -5171
  145. package/components/schema-selector/index.umd.cjs +2 -2
  146. package/components/search-box/index.esm.js +201 -201
  147. package/components/search-box/index.umd.cjs +1 -1
  148. package/components/section/index.esm.js +684 -542
  149. package/components/section/index.umd.cjs +1 -1
  150. package/components/smoke-detector/index.esm.js +121 -121
  151. package/components/smoke-detector/index.umd.cjs +1 -1
  152. package/components/spacing-editor/index.esm.js +2 -2
  153. package/components/spacing-editor/index.umd.cjs +1 -1
  154. package/components/splitter/index.esm.js +1158 -382
  155. package/components/splitter/index.umd.cjs +1 -1
  156. package/components/step/index.esm.js +232 -232
  157. package/components/step/index.umd.cjs +1 -1
  158. package/components/switch/index.esm.js +451 -487
  159. package/components/switch/index.umd.cjs +1 -1
  160. package/components/tabs/index.esm.js +2078 -2168
  161. package/components/tabs/index.umd.cjs +1 -1
  162. package/components/tags/index.esm.js +318 -320
  163. package/components/tags/index.umd.cjs +1 -1
  164. package/components/text/index.esm.js +192 -192
  165. package/components/text/index.umd.cjs +1 -1
  166. package/components/textarea/index.esm.js +471 -497
  167. package/components/textarea/index.umd.cjs +1 -1
  168. package/components/time-picker/index.esm.js +1421 -1441
  169. package/components/time-picker/index.umd.cjs +1 -1
  170. package/components/transfer/index.css +1 -1
  171. package/components/transfer/index.esm.js +430 -421
  172. package/components/transfer/index.umd.cjs +1 -1
  173. package/components/tree-grid/index.css +1 -1
  174. package/components/tree-grid/index.esm.js +6806 -6624
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-view/index.esm.js +2793 -2433
  177. package/components/tree-view/index.umd.cjs +1 -1
  178. package/components/uploader/index.esm.js +165 -165
  179. package/components/uploader/index.umd.cjs +2 -2
  180. package/components/verify-detail/index.esm.js +255 -255
  181. package/components/verify-detail/index.umd.cjs +1 -1
  182. package/components/video/index.esm.js +413 -334
  183. package/components/video/index.umd.cjs +1 -1
  184. package/components/weather/index.esm.js +902 -902
  185. package/components/weather/index.umd.cjs +4 -4
  186. package/farris.all.esm.js +54155 -52847
  187. package/farris.all.umd.cjs +9 -9
  188. package/index.css +1 -1
  189. package/package.json +1 -1
  190. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  191. package/types/checkbox/index.d.ts +1 -0
  192. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  193. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  194. package/types/common/entity/entity-schema.d.ts +258 -0
  195. package/types/component/src/component-ref.props.d.ts +4 -0
  196. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  197. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  198. package/types/data-grid/index.d.ts +5 -2
  199. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  200. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  201. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  202. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  203. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  204. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  205. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  206. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  207. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  208. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  209. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  210. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  211. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  212. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  213. package/types/data-view/composition/types.d.ts +19 -7
  214. package/types/data-view/composition/use-edit.d.ts +2 -1
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  216. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  217. package/types/designer-canvas/src/types.d.ts +3 -3
  218. package/types/dynamic-form/index.d.ts +3 -1
  219. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  220. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  221. package/types/dynamic-form/src/types.d.ts +1 -1
  222. package/types/dynamic-resolver/index.d.ts +1 -0
  223. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  224. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  225. package/types/dynamic-resolver/src/types.d.ts +3 -2
  226. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  227. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  228. package/types/modal/src/modal.props.d.ts +1 -4
  229. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  230. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  231. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  232. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  233. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  234. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  235. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  236. package/types/tabs/src/composition/types.d.ts +2 -2
  237. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  238. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  239. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  240. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  241. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  242. package/types/tags/index.d.ts +36 -5
  243. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  244. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  245. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  246. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
@@ -1,189 +1,192 @@
1
- var it = Object.defineProperty;
2
- var rt = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var V = (e, t, n) => rt(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as m, computed as B, createVNode as i, createTextVNode as Y, defineComponent as z, watch as H, inject as de, onMounted as K, nextTick as oe, reactive as st, withDirectives as pe, resolveDirective as ut, Fragment as J, mergeProps as Pe, getCurrentInstance as ct, onBeforeMount as dt, withModifiers as pt, vModelText as ft, Teleport as mt, createApp as vt, onUnmounted as yt, vShow as gt } from "vue";
5
- import { cloneDeep as Q } from "lodash-es";
1
+ var rt = Object.defineProperty;
2
+ var it = (e, t, n) => t in e ? rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var V = (e, t, n) => it(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { ref as f, computed as k, createVNode as i, createTextVNode as Y, defineComponent as U, watch as W, inject as fe, onMounted as Q, nextTick as oe, reactive as st, withDirectives as me, resolveDirective as ut, Fragment as K, mergeProps as Ie, onBeforeMount as ct, withModifiers as dt, vModelText as pt, Teleport as ft, createApp as mt, onUnmounted as vt, vShow as yt } from "vue";
5
+ import { cloneDeep as X } from "lodash-es";
6
6
  import "bignumber.js";
7
- import ht, { useNumber as bt, useFormat as Ct, useSpinner as Tt, useTextBox as St } from "@farris/ui-vue/components/number-spinner";
8
- import Ft from "@farris/ui-vue/components/accordion";
9
- import wt from "@farris/ui-vue/components/avatar";
10
- import xt from "@farris/ui-vue/components/button-edit";
11
- import Bt from "@farris/ui-vue/components/button-group";
12
- import kt from "@farris/ui-vue/components/calendar";
13
- import Pt from "@farris/ui-vue/components/capsule";
14
- import It, { FCheckBox as fe } from "@farris/ui-vue/components/checkbox";
15
- import Vt from "@farris/ui-vue/components/combo-list";
16
- import Mt from "@farris/ui-vue/components/combo-tree";
17
- import Et from "@farris/ui-vue/components/component";
18
- import $t from "@farris/ui-vue/components/color-picker";
19
- import Ot from "@farris/ui-vue/components/content-container";
20
- import Dt from "@farris/ui-vue/components/date-picker";
21
- import Rt from "@farris/ui-vue/components/data-grid";
22
- import jt from "@farris/ui-vue/components/dropdown";
23
- import Lt from "@farris/ui-vue/components/dynamic-form";
24
- import At from "@farris/ui-vue/components/events-editor";
25
- import Nt from "@farris/ui-vue/components/filter-bar";
26
- import qt from "@farris/ui-vue/components/field-selector";
27
- import Gt from "@farris/ui-vue/components/image-cropper";
28
- import Ht from "@farris/ui-vue/components/input-group";
29
- import Wt from "@farris/ui-vue/components/layout";
30
- import _t from "@farris/ui-vue/components/list-nav";
31
- import zt from "@farris/ui-vue/components/list-view";
32
- import Ut from "@farris/ui-vue/components/lookup";
33
- import Qt from "@farris/ui-vue/components/mapping-editor";
34
- import Kt from "@farris/ui-vue/components/nav";
35
- import Xt from "@farris/ui-vue/components/number-range";
36
- import Jt from "@farris/ui-vue/components/order";
37
- import Zt from "@farris/ui-vue/components/page-header";
38
- import Yt from "@farris/ui-vue/components/page-footer";
39
- import en from "@farris/ui-vue/components/pagination";
40
- import tn from "@farris/ui-vue/components/progress";
41
- import nn from "@farris/ui-vue/components/query-solution";
42
- import on from "@farris/ui-vue/components/radio-group";
43
- import an from "@farris/ui-vue/components/rate";
44
- import ln from "@farris/ui-vue/components/response-toolbar";
45
- import rn from "@farris/ui-vue/components/response-layout";
46
- import sn from "@farris/ui-vue/components/response-layout-editor";
47
- import un from "@farris/ui-vue/components/search-box";
48
- import cn from "@farris/ui-vue/components/section";
49
- import dn from "@farris/ui-vue/components/smoke-detector";
50
- import pn from "@farris/ui-vue/components/splitter";
51
- import fn from "@farris/ui-vue/components/step";
52
- import mn from "@farris/ui-vue/components/switch";
53
- import vn from "@farris/ui-vue/components/tabs";
54
- import Ie from "@farris/ui-vue/components/tags";
55
- import yn from "@farris/ui-vue/components/text";
56
- import gn from "@farris/ui-vue/components/time-picker";
57
- import hn from "@farris/ui-vue/components/transfer";
58
- import bn from "@farris/ui-vue/components/tree-view";
59
- import Cn from "@farris/ui-vue/components/uploader";
60
- import Tn from "@farris/ui-vue/components/verify-detail";
61
- import Sn from "@farris/ui-vue/components/weather";
62
- import Fn from "@farris/ui-vue/components/video";
63
- import wn from "@farris/ui-vue/components/textarea";
64
- import xn from "@farris/ui-vue/components/schema-selector";
65
- import Bn from "@farris/ui-vue/components/tree-grid";
66
- import { useIdentify as kn, useHierarchy as Pn, useGroupData as In, usePagination as Vn, useDataView as Mn, useSelection as En, useEdit as $n, useVisualDataBound as On, useVisualDataCell as Dn, useVisualDataRow as Rn, useVisualGroupRow as jn, useVisualSummaryRow as Ln, useVisualData as An } from "@farris/ui-vue/components/data-view";
67
- import { resolveAppearance as Nn } from "@farris/ui-vue/components/dynamic-resolver";
68
- import qn from "@farris/ui-vue/components/popover";
69
- const me = {}, Ve = {};
70
- function ve(e) {
71
- const { properties: t, title: n } = e, o = Object.keys(t).reduce((a, s) => (a[s] = t[s].type === "object" && t[s].properties ? ve(t[s]) : Q(t[s].default), a), {});
72
- return o.id = `${n}-${Date.now()}`, o;
7
+ import gt, { useNumber as ht, useFormat as bt, useSpinner as Ct, useTextBox as wt } from "../number-spinner/index.esm.js";
8
+ import Tt from "../accordion/index.esm.js";
9
+ import Ft from "../avatar/index.esm.js";
10
+ import St from "../button-edit/index.esm.js";
11
+ import xt from "../button-group/index.esm.js";
12
+ import kt from "../calendar/index.esm.js";
13
+ import Bt from "../capsule/index.esm.js";
14
+ import Pt, { FCheckBox as ve } from "../checkbox/index.esm.js";
15
+ import It from "../combo-list/index.esm.js";
16
+ import Vt from "../combo-tree/index.esm.js";
17
+ import $t from "../component/index.esm.js";
18
+ import Et from "../color-picker/index.esm.js";
19
+ import Mt from "../content-container/index.esm.js";
20
+ import Ot from "../date-picker/index.esm.js";
21
+ import jt from "../data-grid/index.esm.js";
22
+ import At from "../dropdown/index.esm.js";
23
+ import Dt from "../dynamic-form/index.esm.js";
24
+ import Rt from "../events-editor/index.esm.js";
25
+ import Lt from "../filter-bar/index.esm.js";
26
+ import Nt from "../field-selector/index.esm.js";
27
+ import qt from "../image-cropper/index.esm.js";
28
+ import Gt from "../input-group/index.esm.js";
29
+ import Wt from "../layout/index.esm.js";
30
+ import Ht from "../list-nav/index.esm.js";
31
+ import _t from "../list-view/index.esm.js";
32
+ import Ut from "../lookup/index.esm.js";
33
+ import zt from "../mapping-editor/index.esm.js";
34
+ import Xt from "../nav/index.esm.js";
35
+ import Qt from "../number-range/index.esm.js";
36
+ import Jt from "../order/index.esm.js";
37
+ import Kt from "../page-header/index.esm.js";
38
+ import Zt from "../page-footer/index.esm.js";
39
+ import Yt from "../pagination/index.esm.js";
40
+ import en from "../progress/index.esm.js";
41
+ import tn from "../query-solution/index.esm.js";
42
+ import nn from "../radio-group/index.esm.js";
43
+ import on from "../rate/index.esm.js";
44
+ import ln from "../response-toolbar/index.esm.js";
45
+ import an from "../response-layout/index.esm.js";
46
+ import rn from "../response-layout-editor/index.esm.js";
47
+ import sn from "../search-box/index.esm.js";
48
+ import un from "../section/index.esm.js";
49
+ import cn from "../smoke-detector/index.esm.js";
50
+ import dn from "../splitter/index.esm.js";
51
+ import pn from "../step/index.esm.js";
52
+ import fn from "../switch/index.esm.js";
53
+ import mn from "../tabs/index.esm.js";
54
+ import Ve from "../tags/index.esm.js";
55
+ import vn from "../text/index.esm.js";
56
+ import yn from "../time-picker/index.esm.js";
57
+ import gn from "../transfer/index.esm.js";
58
+ import hn from "../tree-view/index.esm.js";
59
+ import bn from "../uploader/index.esm.js";
60
+ import Cn from "../verify-detail/index.esm.js";
61
+ import wn from "../weather/index.esm.js";
62
+ import Tn from "../video/index.esm.js";
63
+ import Fn from "../textarea/index.esm.js";
64
+ import Sn from "../schema-selector/index.esm.js";
65
+ import xn from "../tree-grid/index.esm.js";
66
+ import { useIdentify as kn, useHierarchy as Bn, useGroupData as Pn, usePagination as In, useDataView as Vn, useSelection as $n, useEdit as En, useVisualDataBound as Mn, useVisualDataCell as On, useVisualDataRow as jn, useVisualGroupRow as An, useVisualSummaryRow as Dn, useVisualData as Rn } from "../data-view/index.esm.js";
67
+ import { resolveAppearance as Ln } from "../dynamic-resolver/index.esm.js";
68
+ import Nn from "../popover/index.esm.js";
69
+ const le = {}, $e = {};
70
+ function ye(e) {
71
+ const { properties: t, title: n, ignore: o } = e, l = o && Array.isArray(o), s = Object.keys(t).reduce((d, m) => ((!l || !o.find((u) => u == m)) && (d[m] = t[m].type === "object" && t[m].properties ? ye(t[m]) : X(t[m].default)), d), {});
72
+ return (!l || !o.find((d) => d == "id")) && (s.id = `${n}-${Date.now()}`), s;
73
73
  }
74
- function se(e, t = {}) {
75
- const n = me[e];
76
- if (n) {
77
- let o = ve(n);
78
- const a = Ve[e];
79
- return o = a ? a({ getSchemaByType: se }, o, t) : o, o;
74
+ function ue(e, t = {}, n) {
75
+ const o = le[e];
76
+ if (o) {
77
+ let l = ye(o);
78
+ const s = $e[e];
79
+ return l = s ? s({ getSchemaByType: ue }, l, t, n) : l, l;
80
80
  }
81
81
  return null;
82
82
  }
83
- function Me(e, t) {
84
- const n = ve(t);
85
- return Object.keys(e).reduce((o, a) => (o[a] = e[a], o), n), n;
83
+ function ce(e, t) {
84
+ const n = ye(t);
85
+ return Object.keys(e).reduce((o, l) => (o[l] && typeof o[l] == "object" ? Object.assign(o[l], e[l]) : o[l] = e[l], o), n), n;
86
86
  }
87
- function Gn(e, t) {
88
- return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
89
- if (t.has(a)) {
90
- const s = t.get(a);
87
+ function qn(e, t) {
88
+ return Object.keys(e).filter((o) => e[o] != null).reduce((o, l) => {
89
+ if (t.has(l)) {
90
+ const s = t.get(l);
91
91
  if (typeof s == "string")
92
- o[s] = e[a];
92
+ o[s] = e[l];
93
93
  else {
94
- const f = s(a, e[a], e);
95
- Object.assign(o, f);
94
+ const d = s(l, e[l], e);
95
+ Object.assign(o, d);
96
96
  }
97
97
  } else
98
- o[a] = e[a];
98
+ o[l] = e[l];
99
99
  return o;
100
100
  }, {});
101
101
  }
102
- function Hn(e, t, n = /* @__PURE__ */ new Map()) {
103
- const o = Me(e, t);
104
- return Gn(o, n);
102
+ function Gn(e, t, n = /* @__PURE__ */ new Map()) {
103
+ const o = ce(e, t);
104
+ return qn(o, n);
105
105
  }
106
106
  function Ee(e) {
107
+ var n;
107
108
  const t = e.type;
108
109
  if (t) {
109
- const n = me[t];
110
- return Me(e, n);
110
+ const o = le[t], l = ce(e, o), s = ((n = e.editor) == null ? void 0 : n.type) || "";
111
+ if (s) {
112
+ const d = le[s], m = ce(e.editor, d);
113
+ l.editor = m;
114
+ }
115
+ return l;
111
116
  }
112
117
  return e;
113
118
  }
114
119
  function Wn(e = {}) {
115
- function t(r, v, l, d) {
116
- if (typeof l == "number")
117
- return d[r].length === l;
118
- if (typeof l == "object") {
119
- const c = Object.keys(l)[0], p = l[c];
120
+ function t(r, g, a, v) {
121
+ if (typeof a == "number")
122
+ return v[r].length === a;
123
+ if (typeof a == "object") {
124
+ const c = Object.keys(a)[0], p = a[c];
120
125
  if (c === "not")
121
- return Number(d[r].length) !== Number(p);
126
+ return Number(v[r].length) !== Number(p);
122
127
  if (c === "moreThan")
123
- return Number(d[r].length) >= Number(p);
128
+ return Number(v[r].length) >= Number(p);
124
129
  if (c === "lessThan")
125
- return Number(d[r].length) <= Number(p);
130
+ return Number(v[r].length) <= Number(p);
126
131
  }
127
132
  return !1;
128
133
  }
129
- function n(r, v, l, d) {
130
- return d[r] && d[r].propertyValue && String(d[r].propertyValue.value) === String(l);
134
+ function n(r, g, a, v) {
135
+ return v[r] && v[r].propertyValue && String(v[r].propertyValue.value) === String(a);
131
136
  }
132
137
  const o = /* @__PURE__ */ new Map([
133
138
  ["length", t],
134
139
  ["getProperty", n]
135
140
  ]);
136
- Object.keys(e).reduce((r, v) => (r.set(v, e[v]), r), o);
137
- function a(r, v) {
138
- const l = r;
139
- return typeof v == "number" ? [{ target: l, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: l, operator: "getProperty", param: r, value: !!v }] : typeof v == "object" ? Object.keys(v).map((d) => {
140
- if (d === "length")
141
- return { target: l, operator: "length", param: null, value: v[d] };
142
- const c = d, p = v[d];
143
- return { target: l, operator: "getProperty", param: c, value: p };
141
+ Object.keys(e).reduce((r, g) => (r.set(g, e[g]), r), o);
142
+ function l(r, g) {
143
+ const a = r;
144
+ return typeof g == "number" ? [{ target: a, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: a, operator: "getProperty", param: r, value: !!g }] : typeof g == "object" ? Object.keys(g).map((v) => {
145
+ if (v === "length")
146
+ return { target: a, operator: "length", param: null, value: g[v] };
147
+ const c = v, p = g[v];
148
+ return { target: a, operator: "getProperty", param: c, value: p };
144
149
  }) : [];
145
150
  }
146
151
  function s(r) {
147
- return Object.keys(r).reduce((l, d) => {
148
- const c = a(d, r[d]);
149
- return l.push(...c), l;
152
+ return Object.keys(r).reduce((a, v) => {
153
+ const c = l(v, r[v]);
154
+ return a.push(...c), a;
150
155
  }, []);
151
156
  }
152
- function f(r, v) {
157
+ function d(r, g) {
153
158
  if (o.has(r.operator)) {
154
- const l = o.get(r.operator);
155
- return l && l(r.target, r.param, r.value, v) || !1;
159
+ const a = o.get(r.operator);
160
+ return a && a(r.target, r.param, r.value, g) || !1;
156
161
  }
157
162
  return !1;
158
163
  }
159
- function g(r, v) {
160
- return s(r).reduce((c, p) => c && f(p, v), !0);
164
+ function m(r, g) {
165
+ return s(r).reduce((c, p) => c && d(p, g), !0);
161
166
  }
162
- function u(r, v) {
163
- const l = Object.keys(r), d = l.includes("allOf"), c = l.includes("anyOf"), p = d || c, P = (p ? r[p ? d ? "allOf" : "anyOf" : "allOf"] : [r]).map((C) => g(C, v));
164
- return d ? !P.includes(!1) : P.includes(!0);
167
+ function u(r, g) {
168
+ const a = Object.keys(r), v = a.includes("allOf"), c = a.includes("anyOf"), p = v || c, P = (p ? r[p ? v ? "allOf" : "anyOf" : "allOf"] : [r]).map((C) => m(C, g));
169
+ return v ? !P.includes(!1) : P.includes(!0);
165
170
  }
166
171
  return { parseValueSchema: u };
167
172
  }
168
- const _n = {
173
+ const Hn = {
169
174
  convertTo: (e, t, n, o) => {
170
175
  e.appearance && (e.appearance[t] = n);
171
176
  },
172
177
  convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
173
- }, zn = {
178
+ }, _n = {
174
179
  convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
175
180
  }, Un = {
176
181
  convertTo: (e, t, n, o) => {
177
182
  e.editor && (e.editor[t] = n);
178
183
  },
179
184
  convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
180
- }, Qn = {
181
- Button: { type: "Button", name: "按钮", icon: "Button" },
182
- ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
185
+ }, zn = {
186
+ button: { type: "button", name: "按钮", icon: "Button" },
183
187
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
184
- "response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
188
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
185
189
  "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
186
- DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
187
190
  "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
188
191
  textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
189
192
  lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
@@ -194,107 +197,36 @@ const _n = {
194
197
  "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
195
198
  "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
196
199
  "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
197
- /** 暂时没用 */
198
- FlexLayout: { type: "FlexLayout", name: "弹性布局" },
199
- /** 暂时没用 */
200
- FlowLayout: { type: "FlowLayout", name: "流布局" },
201
- ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
202
- ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
200
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
201
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
202
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
203
203
  "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
204
- TreeGridField: { type: "TreeGridField", name: "树表格列" },
205
- FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
206
- Form: { type: "Form", name: "卡片面板", icon: "Form" },
207
- QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
204
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
208
205
  "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
209
206
  "data-grid-column": { type: "data-grid-column", name: "表格列" },
210
- Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
211
- Module: { type: "Module", name: "模块", icon: "Module" },
207
+ module: { type: "Module", name: "模块", icon: "Module" },
212
208
  component: { type: "component", name: "组件", icon: "Component" },
213
- ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
214
- Image: { type: "Image", name: "图像", icon: "Image" },
215
- ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
216
- HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
217
- ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
218
- RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
219
209
  tabs: { type: "tabs", name: "标签页", icon: "Tab" },
220
210
  "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
221
211
  "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
222
- Tag: { type: "Tag", name: "Tag", icon: "Tag" },
223
- Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
224
- HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
225
- ListView: { type: "ListView", name: "列表", icon: "ListView" },
226
- RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
227
- TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
228
- TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
212
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
229
213
  section: { type: "section", name: "分组面板", icon: "Section" },
230
- SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
231
- SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
232
- QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
233
- FormHeader: { type: "FormHeader", name: "翻页" },
234
- Splitter: { type: "Splitter", name: "分栏面板", icon: "Splitter" },
235
- SplitterPane: { type: "SplitterPane", name: "分栏面板项", dependentParentControl: "Splitter" },
236
- WizardDetail: { type: "WizardDetail", name: "向导详情页" },
237
- WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
238
- Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
239
- MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
240
- Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
241
- avatar: { type: "avatar", name: "头像", icon: "Avatar" },
242
- ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
243
- ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
244
- NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
245
- Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
246
- LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
247
- ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
248
- FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
249
- FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
250
- ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
251
- MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
252
- MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
253
- Footer: { type: "Footer", name: "页脚" },
254
- DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
255
- DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
256
- NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
257
- Tags: { type: "Tags", name: "标记组", icon: "Tags" },
258
- Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
214
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
215
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
216
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
217
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
218
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
219
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
259
220
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
260
- ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
261
- ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
262
- PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
263
- Table: { type: "Table", name: "表格", icon: "DataGrid" },
264
- LoopContainer: { type: "LoopContainer", name: "循环容器", icon: "ContentContainer" },
265
- FileUploadPreview: { type: "FileUploadPreview", name: "附件上传预览", icon: "FileUpload" },
266
- DynamicArea: { type: "DynamicArea", name: "动态区域", icon: "ContentContainer" },
267
- DynamicAreaItem: { type: "DynamicAreaItem", name: "动态区域项", icon: "ContentContainer" },
268
- TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
269
- HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
270
- ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
271
- HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
272
- ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
273
- OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
274
- AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
275
- EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
276
- OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
277
- CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
278
- ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
279
- AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
280
- /** 查询类 start */
281
- Charts: { type: "Charts", name: "图表", icon: "Charts" },
282
- QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
283
- SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
284
- QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
285
- QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
286
- /** 查询类 end */
287
- /** 审批类 start */
288
- ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
289
- ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
290
- /** 审批类 end */
291
- }, Kn = {
221
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
222
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
223
+ }, Xn = {
292
224
  convertFrom: (e, t, n) => {
293
- var a;
225
+ var l;
294
226
  const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
295
- return ((a = Qn[o]) == null ? void 0 : a.name) || o;
227
+ return ((l = zn[o]) == null ? void 0 : l.name) || o;
296
228
  }
297
- }, Xn = {
229
+ }, Qn = {
298
230
  convertTo: (e, t, n, o) => {
299
231
  e[t] = e[t];
300
232
  },
@@ -307,13 +239,13 @@ const _n = {
307
239
  e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
308
240
  }
309
241
  }
310
- }, Zn = {
242
+ }, Kn = {
311
243
  convertTo: (e, t, n, o) => {
312
- typeof e.pagination == "boolean" && (e.pagination = {}), e.pagination && (e.pagination[t] = n);
244
+ e.pagination || (e.pagination = {}), e.pagination[t] = n;
313
245
  },
314
246
  convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
315
247
  };
316
- class Yn {
248
+ class Zn {
317
249
  constructor() {
318
250
  /** 控件标题 */
319
251
  V(this, "label", "");
@@ -343,41 +275,41 @@ class Yn {
343
275
  V(this, "fieldSetId", "");
344
276
  }
345
277
  }
346
- function eo() {
278
+ function Yn() {
347
279
  let e, t;
348
280
  const n = /* @__PURE__ */ new Map();
349
281
  let o = [];
350
- function a(u, r) {
351
- const l = u.split(" ").filter((h) => h.startsWith("col-"));
352
- if (l.length === 0) {
282
+ function l(u, r) {
283
+ const a = u.split(" ").filter((h) => h.startsWith("col-"));
284
+ if (a.length === 0) {
353
285
  r.isSupportedClass = !1;
354
286
  return;
355
287
  }
356
- let d = l.find((h) => /^col-([1-9]|10|11|12)$/.test(h)), c = l.find((h) => /^col-md-([1-9]|10|11|12)$/.test(h)), p = l.find((h) => /^col-xl-([1-9]|10|11|12)$/.test(h)), y = l.find((h) => /^col-el-([1-9]|10|11|12)$/.test(h));
357
- d = d || "col-12", r.columnInSM = parseInt(d.replace("col-", ""), 10), r.displayWidthInSM = r.columnInSM / 12, r.displayWidthInSM !== 1 && (r.isSupportedClass = !1), c = c || "col-md-" + r.columnInSM, r.columnInMD = parseInt(c.replace("col-md-", ""), 10), r.displayWidthInMD = r.columnInMD / 6, [1, 2].includes(r.displayWidthInMD) || (r.isSupportedClass = !1), p = p || "col-xl-" + r.columnInMD, r.columnInLG = parseInt(p.replace("col-xl-", ""), 10), r.displayWidthInLG = r.columnInLG / 3, [1, 2, 3, 4].includes(r.displayWidthInLG) || (r.isSupportedClass = !1), y = y || "col-el-" + r.columnInLG, r.columnInEL = parseInt(y.replace("col-el-", ""), 10), r.displayWidthInEL = r.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(r.displayWidthInEL) || (r.isSupportedClass = !1);
288
+ let v = a.find((h) => /^col-([1-9]|10|11|12)$/.test(h)), c = a.find((h) => /^col-md-([1-9]|10|11|12)$/.test(h)), p = a.find((h) => /^col-xl-([1-9]|10|11|12)$/.test(h)), y = a.find((h) => /^col-el-([1-9]|10|11|12)$/.test(h));
289
+ v = v || "col-12", r.columnInSM = parseInt(v.replace("col-", ""), 10), r.displayWidthInSM = r.columnInSM / 12, r.displayWidthInSM !== 1 && (r.isSupportedClass = !1), c = c || "col-md-" + r.columnInSM, r.columnInMD = parseInt(c.replace("col-md-", ""), 10), r.displayWidthInMD = r.columnInMD / 6, [1, 2].includes(r.displayWidthInMD) || (r.isSupportedClass = !1), p = p || "col-xl-" + r.columnInMD, r.columnInLG = parseInt(p.replace("col-xl-", ""), 10), r.displayWidthInLG = r.columnInLG / 3, [1, 2, 3, 4].includes(r.displayWidthInLG) || (r.isSupportedClass = !1), y = y || "col-el-" + r.columnInLG, r.columnInEL = parseInt(y.replace("col-el-", ""), 10), r.displayWidthInEL = r.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(r.displayWidthInEL) || (r.isSupportedClass = !1);
358
290
  }
359
- function s(u, r, v, l = !1) {
360
- let d = !1;
291
+ function s(u, r, g, a = !1) {
292
+ let v = !1;
361
293
  u.contents.forEach((c) => {
362
294
  if (c.type === "FieldSet") {
363
- v += 1, s(c, r, v, !0), d = !0;
295
+ g += 1, s(c, r, g, !0), v = !0;
364
296
  return;
365
297
  }
366
- d && (v += 1, d = !1);
367
- const p = c.appearance && c.appearance.class, y = new Yn();
368
- p ? a(p, y) : y.isSupportedClass = !1, y.label = c.label || c.id, y.id = c.id, y.group = v, l && (y.fieldSetId = u.id), t === c.id && (e = v), n.set(c.id, c), r.push(y);
298
+ v && (g += 1, v = !1);
299
+ const p = c.appearance && c.appearance.class, y = new Zn();
300
+ p ? l(p, y) : y.isSupportedClass = !1, y.label = c.label || c.id, y.id = c.id, y.group = g, a && (y.fieldSetId = u.id), t === c.id && (e = g), n.set(c.id, c), r.push(y);
369
301
  });
370
302
  }
371
- function f(u, r, v, l) {
372
- l = l || u.id;
373
- const d = v.closest(l, "content-container");
374
- if (!d)
303
+ function d(u, r, g, a) {
304
+ a = a || u.id;
305
+ const v = g.closest(a, "content-container");
306
+ if (!v)
375
307
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
376
- if (!d || !d.contents || d.contents.length === 0)
308
+ if (!v || !v.contents || v.contents.length === 0)
377
309
  return { result: !1, message: "Form区域内没有控件,请先添加控件" };
378
310
  t = u.id, o = [], n.clear();
379
- const c = d.contents[0].type === "FieldSet" ? 0 : 1;
380
- s(d, o, c);
311
+ const c = v.contents[0].type === "FieldSet" ? 0 : 1;
312
+ s(v, o, c);
381
313
  const p = o.find((h) => !h.isSupportedClass);
382
314
  return {
383
315
  defaultState: {
@@ -387,53 +319,53 @@ function eo() {
387
319
  importData: o
388
320
  };
389
321
  }
390
- function g(u, r, v, l, d) {
391
- d = d || u.id;
392
- const c = l.closest(d, "response-form");
322
+ function m(u, r, g, a, v) {
323
+ v = v || u.id;
324
+ const c = a.closest(v, "response-form");
393
325
  if (!c)
394
326
  return;
395
327
  const p = [];
396
- return v.forEach((y) => {
328
+ return g.forEach((y) => {
397
329
  var I;
398
330
  const h = n.get(y.id), P = h.appearance && h.appearance.class;
399
331
  if (P) {
400
- const T = P.split(" ").filter((R) => !R.startsWith("col-")), S = "col-" + y.columnInSM, w = "col-md-" + y.columnInMD, F = "col-xl-" + y.columnInLG, x = "col-el-" + y.columnInEL, b = [S, w, F, x].concat(T);
332
+ const w = P.split(" ").filter((A) => !A.startsWith("col-")), T = "col-" + y.columnInSM, F = "col-md-" + y.columnInMD, S = "col-xl-" + y.columnInLG, x = "col-el-" + y.columnInEL, b = [T, F, S, x].concat(w);
401
333
  h.appearance.class = b.join(" ");
402
334
  }
403
335
  if (y.fieldSetId) {
404
- const C = c.contents.find((S) => S.id === y.fieldSetId), T = p.find((S) => S.id === y.fieldSetId);
405
- T ? (I = T.contents) == null || I.push(h) : (p.push(C), C.contents = [h]);
336
+ const C = c.contents.find((T) => T.id === y.fieldSetId), w = p.find((T) => T.id === y.fieldSetId);
337
+ w ? (I = w.contents) == null || I.push(h) : (p.push(C), C.contents = [h]);
406
338
  } else
407
339
  p.push(h);
408
340
  }), c.contents = p, c.id;
409
341
  }
410
342
  return {
411
- convertFrom: f,
412
- convertTo: g
343
+ convertFrom: d,
344
+ convertTo: m
413
345
  };
414
346
  }
415
- const Ce = eo(), to = {
416
- convertTo: (e, t, n, o, a) => Ce.convertTo(e, t, n, o, a),
417
- convertFrom: (e, t, n, o) => Ce.convertFrom(e, t, n, o)
418
- }, no = {
347
+ const we = Yn(), eo = {
348
+ convertTo: (e, t, n, o, l) => we.convertTo(e, t, n, o, l),
349
+ convertFrom: (e, t, n, o) => we.convertFrom(e, t, n, o)
350
+ }, to = {
419
351
  convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
420
- }, oo = {
352
+ }, no = {
421
353
  convertFrom: (e, t) => e[t] || "",
422
354
  convertTo: (e, t, n) => {
423
355
  e[t] = n;
424
356
  }
425
- }, ye = {}, ue = /* @__PURE__ */ new Map([
426
- ["/converter/appearance.converter", _n],
427
- ["/converter/buttons.converter", zn],
357
+ }, ge = {}, de = /* @__PURE__ */ new Map([
358
+ ["/converter/appearance.converter", Hn],
359
+ ["/converter/buttons.converter", _n],
428
360
  ["/converter/property-editor.converter", Un],
429
- ["/converter/response-form-layout.converter", to],
430
- ["/converter/items-count.converter", no],
431
- ["/converter/type.converter", Kn],
432
- ["/converter/change-editor.converter", Xn],
433
- ["/converter/form-group-label.converter", oo],
361
+ ["/converter/response-form-layout.converter", eo],
362
+ ["/converter/items-count.converter", to],
363
+ ["/converter/type.converter", Xn],
364
+ ["/converter/change-editor.converter", Qn],
365
+ ["/converter/form-group-label.converter", no],
434
366
  ["/converter/field-selector.converter", Jn],
435
- ["/converter/pagination.converter", Zn]
436
- ]), ao = {}, lo = /* @__PURE__ */ new Map([
367
+ ["/converter/pagination.converter", Kn]
368
+ ]), oo = {}, lo = /* @__PURE__ */ new Map([
437
369
  ["string", { type: "input-group", enableClear: !1 }],
438
370
  ["boolean", {
439
371
  type: "combo-list",
@@ -455,89 +387,87 @@ const Ce = eo(), to = {
455
387
  ["array", { type: "button-edit" }],
456
388
  ["number", { type: "number-spinner" }],
457
389
  ["events-editor", { type: "events-editor", hide: !0 }]
458
- ]), io = Wn();
459
- function $e(e, t) {
460
- return () => io.parseValueSchema(e, t);
390
+ ]), ao = Wn();
391
+ function Me(e, t) {
392
+ return () => ao.parseValueSchema(e, t);
461
393
  }
462
394
  function ro(e, t, n) {
463
- return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : $e(t.visible, n) : () => !0;
395
+ return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : Me(t.visible, n) : () => !0;
464
396
  }
465
- function so(e, t, n) {
466
- return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : $e(t.readonly, n) : () => !1;
397
+ function io(e, t, n) {
398
+ return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : Me(t.readonly, n) : () => !1;
467
399
  }
468
- function uo(e, t) {
400
+ function so(e, t) {
469
401
  const n = e.$converter || t;
470
- return typeof n == "string" && n && ue.has(n) ? ue.get(n) || null : n || null;
402
+ return typeof n == "string" && n && de.has(n) ? de.get(n) || null : n || null;
471
403
  }
472
- function ge(e, t, n, o, a, s = "", f = "") {
404
+ function he(e, t, n, o, l, s = "", d = "") {
473
405
  return Object.keys(e).map((u) => {
474
- const r = m(1), v = u, l = e[u], d = Object.keys(l), c = l.title, p = l.type, y = lo.get(p) || { type: "input-group", enableClear: !1 }, h = l.editor ? Object.assign({}, y, l.editor) : y, P = ro(d, l, t), I = so(d, l, t), C = l.type === "cascade" ? ge(l.properties, t, n, o, a, s, f) : [], T = !0;
475
- let S = uo(l, f);
476
- const w = B({
406
+ const r = f(1), g = u, a = e[u], v = Object.keys(a), c = a.title, p = a.type, y = lo.get(p) || { type: "input-group", enableClear: !1 }, h = a.editor ? Object.assign({}, y, a.editor) : y, P = ro(v, a, t), I = io(v, a, t), C = a.type === "cascade" ? he(a.properties, t, n, o, l, s, d) : [], w = !0;
407
+ let T = so(a, d);
408
+ const F = k({
477
409
  get() {
478
410
  if (r.value) {
479
- if (["class", "style"].find((R) => R == v) && !S && (S = ue.get("/converter/appearance.converter") || null), S && S.convertFrom)
480
- return S.convertFrom(n, u, a, s);
411
+ if (["class", "style"].find((A) => A == g) && !T && (T = de.get("/converter/appearance.converter") || null), T && T.convertFrom)
412
+ return T.convertFrom(n, u, l, s);
481
413
  const b = n[u];
482
- return typeof b == "string" && b == "" ? l.defaultValue || "" : b;
414
+ return typeof b == "string" && b == "" ? a.defaultValue || "" : b;
483
415
  }
484
416
  return null;
485
417
  },
486
418
  set(b) {
487
- r.value += 1, S && S.convertTo ? (S.convertTo(o, u, b, a, s), S.convertTo(n, u, b, a, s)) : (o[u] = b, n[u] = b);
419
+ r.value += 1, T && T.convertTo ? (T.convertTo(o, u, b, l, s), T.convertTo(n, u, b, l, s)) : (o[u] = b, n[u] = b);
488
420
  }
489
- }), F = l.refreshPanelAfterChanged, x = { propertyID: v, propertyName: c, propertyType: p, propertyValue: w, editor: h, visible: P, readonly: I, cascadeConfig: C, hideCascadeTitle: T, refreshPanelAfterChanged: F };
490
- return t[v] = x, x;
421
+ }), S = a.refreshPanelAfterChanged, x = { propertyID: g, propertyName: c, propertyType: p, propertyValue: F, editor: h, visible: P, readonly: I, cascadeConfig: C, hideCascadeTitle: w, refreshPanelAfterChanged: S };
422
+ return t[g] = x, x;
491
423
  });
492
424
  }
493
- function co(e, t, n, o, a = "") {
494
- const s = t.$ref.schema, f = t.$ref.converter, g = n[s], u = g.type, r = Ee(g), v = {}, l = ye[u];
495
- if (l && l.categories) {
496
- const d = l.categories[e], c = d == null ? void 0 : d.title;
497
- f && Object.keys(d.properties).forEach((h) => {
498
- d.properties[h].$converter = f;
425
+ function uo(e, t, n, o, l = "") {
426
+ const s = t.$ref.schema, d = t.$ref.converter, m = n[s], u = m.type, r = Ee(m), g = {}, a = ge[u];
427
+ if (a && a.categories) {
428
+ const v = a.categories[e], c = v == null ? void 0 : v.title;
429
+ d && Object.keys(v.properties).forEach((h) => {
430
+ v.properties[h].$converter = d;
499
431
  });
500
- const p = (d == null ? void 0 : d.properties) || {}, y = ge(p, v, r, g, o, a);
432
+ const p = (v == null ? void 0 : v.properties) || {}, y = he(p, g, r, m, o, l);
501
433
  return { categoryId: e, categoryName: c, properties: y };
502
434
  }
503
435
  return { categoryId: e, categoryName: "", properties: [] };
504
436
  }
505
- function ie(e, t, n, o, a) {
506
- var r;
437
+ function ie(e, t, n, o, l) {
507
438
  let s = e.type;
508
- const f = Ee(e), g = {};
509
- ((r = e.editor) == null ? void 0 : r.type) === "lookup" && (s = "lookup"), s === "lookup" && n.elementRef.editorRef && (n = n.elementRef.editorRef);
510
- let u = a || ye[s];
439
+ const d = Ee(e), m = {};
440
+ let u = l || ge[s];
511
441
  if (Object.keys(u).length === 0 && n && n.getPropConfig && (u = n.getPropConfig(o)), u && u.categories) {
512
- const v = [];
513
- return Object.keys(u.categories).map((l) => {
514
- const d = u.categories[l];
515
- if (d.$ref) {
516
- v.push(co(l, d, e, t, o));
442
+ const r = [];
443
+ return Object.keys(u.categories).map((g) => {
444
+ const a = u.categories[g];
445
+ if (a.$ref) {
446
+ r.push(uo(g, a, e, t, o));
517
447
  return;
518
448
  }
519
- const c = d == null ? void 0 : d.title, p = d == null ? void 0 : d.tabId, y = d == null ? void 0 : d.tabName, h = d == null ? void 0 : d.hide, P = d == null ? void 0 : d.hideTitle, I = ge(d.properties || {}, g, f, e, t, o, d.$converter), C = d.setPropertyRelates;
520
- v.push({ categoryId: l, categoryName: c, tabId: p, tabName: y, hide: h, properties: I, hideTitle: P, setPropertyRelates: C });
521
- }), v;
449
+ const v = a == null ? void 0 : a.title, c = a == null ? void 0 : a.tabId, p = a == null ? void 0 : a.tabName, y = a == null ? void 0 : a.hide, h = a == null ? void 0 : a.hideTitle, P = he(a.properties || {}, m, d, e, t, o, a.$converter), I = a.setPropertyRelates;
450
+ r.push({ categoryId: g, categoryName: v, tabId: c, tabName: p, hide: y, properties: P, hideTitle: h, setPropertyRelates: I });
451
+ }), r;
522
452
  }
523
453
  return [];
524
454
  }
525
- function Z(e, t, n = /* @__PURE__ */ new Map(), o = (f, g, u) => g, a = {}, s = (f) => f) {
526
- return me[t.title] = t, Ve[t.title] = o, ye[t.title] = a, ao[t.title] = s, (f = {}) => {
527
- const g = Hn(f, t, n), u = Object.keys(e).reduce((r, v) => (r[v] = e[v].default, r), {});
528
- return Object.assign(u, g);
455
+ function Z(e, t, n = /* @__PURE__ */ new Map(), o = (d, m, u) => m, l = {}, s = (d) => d) {
456
+ return le[t.title] = t, $e[t.title] = o, ge[t.title] = l, oo[t.title] = s, (d = {}) => {
457
+ const m = Gn(d, t, n), u = Object.keys(e).reduce((r, g) => (r[g] = e[g].default, r), {});
458
+ return Object.assign(u, m);
529
459
  };
530
460
  }
531
461
  function ee(e, t) {
532
462
  return { customClass: t.class, customStyle: t.style };
533
463
  }
534
- const po = /* @__PURE__ */ new Map([
464
+ const co = /* @__PURE__ */ new Map([
535
465
  ["appearance", ee]
536
466
  ]);
537
- function fo(e, t, n) {
467
+ function po(e, t, n) {
538
468
  return t;
539
469
  }
540
- const mo = "https://json-schema.org/draft/2020-12/schema", vo = "https://farris-design.gitee.io/filter-bar.schema.json", yo = "filter-bar", go = "A Farris Component", ho = "object", bo = {
470
+ const fo = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-design.gitee.io/filter-bar.schema.json", vo = "filter-bar", yo = "A Farris Component", go = "object", ho = {
541
471
  id: {
542
472
  description: "The unique identifier for filter-bar",
543
473
  type: "string"
@@ -599,18 +529,18 @@ const mo = "https://json-schema.org/draft/2020-12/schema", vo = "https://farris-
599
529
  type: "boolean",
600
530
  default: !0
601
531
  }
602
- }, Co = [
532
+ }, bo = [
603
533
  "id",
604
534
  "type"
605
- ], To = {
606
- $schema: mo,
607
- $id: vo,
608
- title: yo,
609
- description: go,
610
- type: ho,
611
- properties: bo,
612
- required: Co
613
- }, So = "filter-bar", Fo = "A Farris Component", wo = "object", xo = {
535
+ ], Co = {
536
+ $schema: fo,
537
+ $id: mo,
538
+ title: vo,
539
+ description: yo,
540
+ type: go,
541
+ properties: ho,
542
+ required: bo
543
+ }, wo = "filter-bar", To = "A Farris Component", Fo = "object", So = {
614
544
  basic: {
615
545
  description: "Basic Infomation",
616
546
  title: "基本信息",
@@ -802,12 +732,12 @@ const mo = "https://json-schema.org/draft/2020-12/schema", vo = "https://farris-
802
732
  }
803
733
  }
804
734
  }
805
- }, Bo = {
806
- title: So,
807
- description: Fo,
808
- type: wo,
809
- categories: xo
810
- }, he = {
735
+ }, xo = {
736
+ title: wo,
737
+ description: To,
738
+ type: Fo,
739
+ categories: So
740
+ }, be = {
811
741
  /** 被绑定数据 */
812
742
  data: {
813
743
  type: Array,
@@ -834,7 +764,7 @@ const mo = "https://json-schema.org/draft/2020-12/schema", vo = "https://farris-
834
764
  resetText: { type: String, default: "清空已选" },
835
765
  /** 是否显示重置 */
836
766
  showReset: { type: Boolean, default: !1 }
837
- }, Te = Z(he, To, po, fo, Bo);
767
+ }, Te = Z(be, Co, co, po, xo);
838
768
  class ko {
839
769
  constructor(t = { value: [] }) {
840
770
  V(this, "editorType", "check-box");
@@ -855,7 +785,7 @@ class ko {
855
785
  return this.value.length === 0;
856
786
  }
857
787
  }
858
- class Po {
788
+ class Bo {
859
789
  constructor(t = { textValue: "", value: "", valueField: "" }) {
860
790
  V(this, "editorType", "combo-lookup");
861
791
  V(this, "textValue");
@@ -875,11 +805,11 @@ class Po {
875
805
  return t[n[0]];
876
806
  }
877
807
  getTextValue(t) {
878
- const n = t.split("."), o = this.value.split(",").map((a) => this.getPropValue(a, Q(n)));
808
+ const n = t.split("."), o = this.value.split(",").map((l) => this.getPropValue(l, X(n)));
879
809
  return o && o.length ? o.join(",") : "";
880
810
  }
881
811
  getValue() {
882
- const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, Q(t)));
812
+ const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, X(t)));
883
813
  return n && n.length ? n.join(",") : "";
884
814
  }
885
815
  setValue(t) {
@@ -889,7 +819,7 @@ class Po {
889
819
  return !this.valueField;
890
820
  }
891
821
  }
892
- class Io {
822
+ class Po {
893
823
  constructor(t = { value: "" }) {
894
824
  V(this, "editorType", "date-picker");
895
825
  V(this, "value");
@@ -909,7 +839,7 @@ class Io {
909
839
  this.value = void 0;
910
840
  }
911
841
  }
912
- class Se {
842
+ class Fe {
913
843
  constructor(t = { begin: "", end: "" }) {
914
844
  V(this, "editorType", "date-range");
915
845
  V(this, "begin", "");
@@ -930,7 +860,7 @@ class Se {
930
860
  return !this.begin || !this.end;
931
861
  }
932
862
  }
933
- class Vo {
863
+ class Io {
934
864
  constructor(t = { value: "" }) {
935
865
  V(this, "editorType", "datetime-picker");
936
866
  V(this, "value");
@@ -950,7 +880,7 @@ class Vo {
950
880
  return !this.value;
951
881
  }
952
882
  }
953
- class Mo {
883
+ class Vo {
954
884
  // 旧结构无,新结构为选中的value值,多选是以,分割的字符串
955
885
  constructor(t = { value: "", dispalyText: "" }) {
956
886
  V(this, "editorType", "combo-list");
@@ -973,7 +903,7 @@ class Mo {
973
903
  return !this.displayText;
974
904
  }
975
905
  }
976
- class Eo {
906
+ class $o {
977
907
  constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
978
908
  V(this, "editorType", "input-group");
979
909
  // 通过弹窗返回的若干个值对象构成的数组
@@ -998,11 +928,11 @@ class Eo {
998
928
  return t[n[0]];
999
929
  }
1000
930
  getTextValue(t) {
1001
- const n = t.split("."), o = this.value.map((a) => this.getPropValue(a, Q(n)));
931
+ const n = t.split("."), o = this.value.map((l) => this.getPropValue(l, X(n)));
1002
932
  return o && o.length ? o.join(",") : "";
1003
933
  }
1004
934
  getValue() {
1005
- const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, Q(t)));
935
+ const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, X(t)));
1006
936
  return n && n.length ? n.join(",") : "";
1007
937
  }
1008
938
  setValue(t) {
@@ -1012,7 +942,7 @@ class Eo {
1012
942
  return !this.displayText;
1013
943
  }
1014
944
  }
1015
- class $o {
945
+ class Eo {
1016
946
  constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
1017
947
  V(this, "editorType", "lookup");
1018
948
  V(this, "textValue");
@@ -1034,7 +964,7 @@ class $o {
1034
964
  return t[n[0]];
1035
965
  }
1036
966
  getTextValue(t) {
1037
- const n = t.split("."), o = this.value.map((a) => this.getPropValue(a, n));
967
+ const n = t.split("."), o = this.value.map((l) => this.getPropValue(l, n));
1038
968
  return o && o.length ? o.join(",") : "";
1039
969
  }
1040
970
  getValue() {
@@ -1048,7 +978,7 @@ class $o {
1048
978
  return !this.value.length;
1049
979
  }
1050
980
  }
1051
- class Oo {
981
+ class Mo {
1052
982
  constructor(t = { value: "" }) {
1053
983
  V(this, "editorType", "month-picker");
1054
984
  V(this, "value");
@@ -1068,7 +998,7 @@ class Oo {
1068
998
  return !this.value;
1069
999
  }
1070
1000
  }
1071
- class Do {
1001
+ class Oo {
1072
1002
  constructor(t = { begin: "", end: "" }) {
1073
1003
  V(this, "editorType", "month-range");
1074
1004
  V(this, "begin");
@@ -1089,7 +1019,7 @@ class Do {
1089
1019
  return !this.begin || !this.end;
1090
1020
  }
1091
1021
  }
1092
- class Ro {
1022
+ class jo {
1093
1023
  constructor(t = { begin: null, end: null }) {
1094
1024
  V(this, "editorType", "number-range");
1095
1025
  V(this, "begin");
@@ -1113,7 +1043,7 @@ class Ro {
1113
1043
  return this.begin == null && this.end == null;
1114
1044
  }
1115
1045
  }
1116
- class jo {
1046
+ class Ao {
1117
1047
  constructor(t = { value: "" }) {
1118
1048
  V(this, "editorType", "number-spinner");
1119
1049
  V(this, "value");
@@ -1133,7 +1063,7 @@ class jo {
1133
1063
  return this.value == null;
1134
1064
  }
1135
1065
  }
1136
- class Lo {
1066
+ class Do {
1137
1067
  constructor(t = { value: null }) {
1138
1068
  V(this, "editorType", "radio-group");
1139
1069
  V(this, "value");
@@ -1153,7 +1083,7 @@ class Lo {
1153
1083
  return !this.value;
1154
1084
  }
1155
1085
  }
1156
- class Ao {
1086
+ class Ro {
1157
1087
  constructor(t = { value: "" }) {
1158
1088
  V(this, "editorType", "text");
1159
1089
  V(this, "value");
@@ -1173,87 +1103,87 @@ class Ao {
1173
1103
  return !this.value;
1174
1104
  }
1175
1105
  }
1176
- function No() {
1106
+ function Lo() {
1177
1107
  function e(t, n) {
1178
1108
  switch (t) {
1179
1109
  case "check-box":
1180
1110
  return new ko(n);
1181
1111
  case "combo-list":
1182
- return new Mo(n);
1112
+ return new Vo(n);
1183
1113
  case "combo-lookup":
1184
- return new Po(n);
1114
+ return new Bo(n);
1185
1115
  case "input-group":
1186
- return new Eo(n);
1116
+ return new $o(n);
1187
1117
  case "date-picker":
1188
- return new Io(n);
1118
+ return new Po(n);
1189
1119
  case "date-range":
1190
- return new Se(n);
1120
+ return new Fe(n);
1191
1121
  case "datetime-picker":
1192
- return new Vo(n);
1122
+ return new Io(n);
1193
1123
  case "datetime-range":
1194
- return new Se(n);
1124
+ return new Fe(n);
1195
1125
  case "lookup":
1196
- return new $o(n);
1126
+ return new Eo(n);
1197
1127
  case "month-picker":
1198
- return new Oo(n);
1128
+ return new Mo(n);
1199
1129
  case "month-range":
1200
- return new Do(n);
1130
+ return new Oo(n);
1201
1131
  case "number-range":
1202
- return new Ro(n);
1203
- case "number-spinner":
1204
1132
  return new jo(n);
1133
+ case "number-spinner":
1134
+ return new Ao(n);
1205
1135
  case "radio-group":
1206
- return new Lo(n);
1136
+ return new Do(n);
1207
1137
  default:
1208
- return new Ao(n);
1138
+ return new Ro(n);
1209
1139
  }
1210
1140
  }
1211
1141
  return { createConditionValue: e };
1212
1142
  }
1213
1143
  function Oe(e, t) {
1214
- const n = m([]), o = m([]), a = m([]), s = m(""), f = m(!1), g = m(e.mode), u = /* @__PURE__ */ new Map(), r = No();
1215
- function v(C) {
1216
- return !f.value && g.value === "display-only" && !!C.hasValue && !!C.displayText;
1144
+ const n = f([]), o = f([]), l = f([]), s = f(""), d = f(!1), m = f(e.mode), u = /* @__PURE__ */ new Map(), r = Lo();
1145
+ function g(C) {
1146
+ return !d.value && m.value === "display-only" && !!C.hasValue && !!C.displayText;
1217
1147
  }
1218
- function l(C) {
1219
- o.value = C, o.value.reduce((T, S) => (T.set(S.labelCode, S), T), u);
1148
+ function a(C) {
1149
+ o.value = C, o.value.reduce((w, T) => (w.set(T.labelCode, T), w), u);
1220
1150
  }
1221
- function d(C) {
1222
- n.value = C.map((T, S) => {
1223
- var w;
1224
- if (typeof T.value == "string") {
1225
- const F = ((w = u.get(T.fieldCode)) == null ? void 0 : w.editor.type) || "text";
1226
- T.value = r.createConditionValue(F, { value: T.value });
1151
+ function v(C) {
1152
+ n.value = C.map((w, T) => {
1153
+ var F;
1154
+ if (typeof w.value == "string") {
1155
+ const S = ((F = u.get(w.fieldCode)) == null ? void 0 : F.editor.type) || "text";
1156
+ w.value = r.createConditionValue(S, { value: w.value });
1227
1157
  }
1228
- return T.conditionId = S, T;
1158
+ return w.conditionId = T, w;
1229
1159
  });
1230
1160
  }
1231
1161
  function c() {
1232
- const C = o.value.map((T) => ({
1233
- id: T.id,
1234
- fieldCode: T.code,
1235
- fieldName: T.name,
1236
- editor: T.editor
1162
+ const C = o.value.map((w) => ({
1163
+ id: w.id,
1164
+ fieldCode: w.code,
1165
+ fieldName: w.name,
1166
+ editor: w.editor
1237
1167
  }));
1238
- return n.value.reduce((T, S, w) => {
1239
- const F = T.find((x) => x.fieldCode === S.fieldCode);
1240
- return F && (F.displayText = S.value.getValue(), F.hasValue = !0), T;
1168
+ return n.value.reduce((w, T, F) => {
1169
+ const S = w.find((x) => x.fieldCode === T.fieldCode);
1170
+ return S && (S.displayText = T.value.getValue(), S.hasValue = !0), w;
1241
1171
  }, C), C;
1242
1172
  }
1243
- function p(C, T) {
1244
- l(e.fields), d(e.data), a.value = c();
1173
+ function p(C, w) {
1174
+ a(e.fields), v(e.data), l.value = c();
1245
1175
  }
1246
1176
  function y(C) {
1247
- a.value = a.value.filter((T) => T.id !== C.id), n.value = n.value.filter((T) => T.fieldCode !== C.fieldCode), o.value = o.value.filter((T) => T.id !== C.id), t.emit("Remove", C.fieldCode);
1177
+ l.value = l.value.filter((w) => w.id !== C.id), n.value = n.value.filter((w) => w.fieldCode !== C.fieldCode), o.value = o.value.filter((w) => w.id !== C.id), t.emit("Remove", C.fieldCode);
1248
1178
  }
1249
1179
  function h(C) {
1250
- C.displayText = "", C.hasValue = !1, n.value = n.value.filter((T) => T.fieldCode !== C.fieldCode), t.emit("Clear", C.fieldCode);
1180
+ C.displayText = "", C.hasValue = !1, n.value = n.value.filter((w) => w.fieldCode !== C.fieldCode), t.emit("Clear", C.fieldCode);
1251
1181
  }
1252
1182
  function P() {
1253
- a.value = [], n.value = [], o.value = [], t.emit("Reset");
1183
+ l.value = [], n.value = [], o.value = [], t.emit("Reset");
1254
1184
  }
1255
1185
  function I() {
1256
- a.value.forEach((C) => {
1186
+ l.value.forEach((C) => {
1257
1187
  C.displayText = "", C.hasValue = !1;
1258
1188
  }), n.value = [], t.emit("Reset");
1259
1189
  }
@@ -1262,14 +1192,14 @@ function Oe(e, t) {
1262
1192
  clearFilterItem: h,
1263
1193
  currentFilterId: s,
1264
1194
  filterFields: o,
1265
- filterItems: a,
1195
+ filterItems: l,
1266
1196
  loadFilterItems: p,
1267
1197
  removeFilterItem: y,
1268
1198
  reset: I,
1269
- shouldShowClearButtonInFilterItem: v
1199
+ shouldShowClearButtonInFilterItem: g
1270
1200
  };
1271
1201
  }
1272
- function De(e, t) {
1202
+ function je(e, t) {
1273
1203
  function n() {
1274
1204
  }
1275
1205
  return () => i("div", {
@@ -1277,25 +1207,25 @@ function De(e, t) {
1277
1207
  onClick: (o) => void 0
1278
1208
  }, [Y("...")]);
1279
1209
  }
1280
- function Re(e, t, n) {
1210
+ function Ae(e, t, n) {
1281
1211
  const {
1282
1212
  clearFilterItem: o,
1283
- currentFilterId: a,
1213
+ currentFilterId: l,
1284
1214
  filterItems: s,
1285
- removeFilterItem: f,
1286
- shouldShowClearButtonInFilterItem: g
1287
- } = n, u = m(!1), r = function(c, p) {
1215
+ removeFilterItem: d,
1216
+ shouldShowClearButtonInFilterItem: m
1217
+ } = n, u = f(!1), r = function(c, p) {
1288
1218
  return {
1289
1219
  "f-filter-item": !0,
1290
1220
  "f-filter-item-actived": c.hasValue,
1291
1221
  "f-filter-item-last": p === s.value.length - 1,
1292
- "f-filter-item-edit": c.id === a.value
1222
+ "f-filter-item-edit": c.id === l.value
1293
1223
  };
1294
- }, v = B(() => !u.value && e.mode === "editable");
1295
- function l(c, p) {
1296
- e.mode === "display-only" ? f(p) : o(p);
1224
+ }, g = k(() => !u.value && e.mode === "editable");
1225
+ function a(c, p) {
1226
+ e.mode === "display-only" ? d(p) : o(p);
1297
1227
  }
1298
- function d(c, p, y) {
1228
+ function v(c, p, y) {
1299
1229
  }
1300
1230
  return (c, p) => i("div", {
1301
1231
  id: c.id,
@@ -1311,63 +1241,63 @@ function Re(e, t, n) {
1311
1241
  class: "f-filter-item-tip"
1312
1242
  }, [Y(":")]), c.hasValue && c.displayText && i("span", {
1313
1243
  class: "f-filter-item-content"
1314
- }, [c.displayText]), v.value && i("span", {
1244
+ }, [c.displayText]), g.value && i("span", {
1315
1245
  class: "f-filter-item-arrow f-icon f-icon-arrow-chevron-down"
1316
- }, null)]), g(c) && i("span", {
1246
+ }, null)]), m(c) && i("span", {
1317
1247
  class: "f-filter-item-clear",
1318
- onClick: (y) => l(y, c)
1248
+ onClick: (y) => a(y, c)
1319
1249
  }, [i("span", {
1320
1250
  class: "f-icon f-icon-close-circle"
1321
1251
  }, null)])]);
1322
1252
  }
1323
- function je(e, t, n) {
1324
- const o = m([]), a = m(!1), s = m(""), f = m(e.resetText), g = m(e.showReset), {
1253
+ function De(e, t, n) {
1254
+ const o = f([]), l = f(!1), s = f(""), d = f(e.resetText), m = f(e.showReset), {
1325
1255
  clearAll: u,
1326
1256
  reset: r
1327
- } = n, v = B(() => a.value && o.value && o.value.length > 0), l = B(() => g.value);
1328
- function d(p) {
1257
+ } = n, g = k(() => l.value && o.value && o.value.length > 0), a = k(() => m.value);
1258
+ function v(p) {
1329
1259
  }
1330
1260
  function c(p) {
1331
1261
  e.mode === "display-only" ? u() : r();
1332
1262
  }
1333
1263
  return () => i("div", {
1334
1264
  class: "f-filter-toolbars"
1335
- }, [v.value && i("button", {
1265
+ }, [g.value && i("button", {
1336
1266
  class: "btn btn-link",
1337
1267
  onClick: (p) => void 0
1338
- }, [s.value]), l.value && i("button", {
1268
+ }, [s.value]), a.value && i("button", {
1339
1269
  class: "btn btn-link",
1340
1270
  onClick: (p) => c()
1341
- }, [f.value])]);
1271
+ }, [d.value])]);
1342
1272
  }
1343
- const re = /* @__PURE__ */ z({
1273
+ const se = /* @__PURE__ */ U({
1344
1274
  name: "FFilterBar",
1345
- props: he,
1275
+ props: be,
1346
1276
  emits: ["Clear", "Remove", "Reset"],
1347
1277
  setup(e, t) {
1348
- const n = m(!1), o = m(!1), a = m(!1), s = m(!1), f = Oe(e, t), {
1349
- filterFields: g,
1278
+ const n = f(!1), o = f(!1), l = f(!1), s = f(!1), d = Oe(e, t), {
1279
+ filterFields: m,
1350
1280
  filterItems: u,
1351
1281
  loadFilterItems: r
1352
- } = f, v = B(() => ({
1353
- display: g.value && g.value.length ? "" : "none"
1282
+ } = d, g = k(() => ({
1283
+ display: m.value && m.value.length ? "" : "none"
1354
1284
  }));
1355
- H([() => e.data, () => e.fields], ([T, S]) => {
1356
- r(S, T);
1285
+ W([() => e.data, () => e.fields], ([w, T]) => {
1286
+ r(T, w);
1357
1287
  });
1358
- const l = B(() => o.value && n.value), d = B(() => ({
1288
+ const a = k(() => o.value && n.value), v = k(() => ({
1359
1289
  "f-filter-list": !0,
1360
- "f-filter-list-extend": l.value
1361
- })), c = B(() => u.value.length > 0), p = Re(e, t, f);
1290
+ "f-filter-list-extend": a.value
1291
+ })), c = k(() => u.value.length > 0), p = Ae(e, t, d);
1362
1292
  function y() {
1363
1293
  return i("div", {
1364
- class: d.value
1365
- }, [u.value.map((T, S) => p(T, S))]);
1294
+ class: v.value
1295
+ }, [u.value.map((w, T) => p(w, T))]);
1366
1296
  }
1367
- const h = B(() => a.value && !o.value && s.value), P = De(), I = B(() => !o.value), C = je(e, t, f);
1297
+ const h = k(() => l.value && !o.value && s.value), P = je(), I = k(() => !o.value), C = De(e, t, d);
1368
1298
  return () => i("div", {
1369
1299
  class: "f-filter-wrapper",
1370
- style: v.value
1300
+ style: g.value
1371
1301
  }, [i("div", {
1372
1302
  class: "f-filter-wrapper-inner f-utils-fill"
1373
1303
  }, [i("div", {
@@ -1377,12 +1307,12 @@ const re = /* @__PURE__ */ z({
1377
1307
  }, [c.value && y(), h.value && P(), I.value && C()])])])]);
1378
1308
  }
1379
1309
  });
1380
- function qo(e, t, n) {
1381
- var S;
1310
+ function No(e, t, n) {
1311
+ var T;
1382
1312
  function o() {
1383
1313
  }
1384
- const a = "", s = "", f = m();
1385
- function g() {
1314
+ const l = "", s = "", d = f();
1315
+ function m() {
1386
1316
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
1387
1317
  }
1388
1318
  function u() {
@@ -1391,22 +1321,22 @@ function qo(e, t, n) {
1391
1321
  function r() {
1392
1322
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
1393
1323
  }
1394
- function v() {
1324
+ function g() {
1395
1325
  return (t == null ? void 0 : t.schema.componentType) === "frame";
1396
1326
  }
1397
- function l(w) {
1398
- if (!w || !w.value)
1327
+ function a(F) {
1328
+ if (!F || !F.value)
1399
1329
  return null;
1400
- if (w.value.schema && w.value.schema.type === "component")
1401
- return w.value;
1402
- const F = m(w == null ? void 0 : w.value.parent), x = l(F);
1330
+ if (F.value.schema && F.value.schema.type === "component")
1331
+ return F.value;
1332
+ const S = f(F == null ? void 0 : F.value.parent), x = a(S);
1403
1333
  return x || null;
1404
1334
  }
1405
- function d(w = t) {
1406
- const { componentInstance: F, designerItemElementRef: x } = w;
1407
- return !F || !F.value ? null : F.value.canMove ? x : d(w.parent);
1335
+ function v(F = t) {
1336
+ const { componentInstance: S, designerItemElementRef: x } = F;
1337
+ return !S || !S.value ? null : S.value.canMove ? x : v(F.parent);
1408
1338
  }
1409
- function c(w) {
1339
+ function c(F) {
1410
1340
  return !!n;
1411
1341
  }
1412
1342
  function p() {
@@ -1414,102 +1344,102 @@ function qo(e, t, n) {
1414
1344
  }
1415
1345
  function y() {
1416
1346
  }
1417
- function h(w, F) {
1347
+ function h(F, S) {
1418
1348
  }
1419
- function P(w) {
1420
- const { componentType: F } = w;
1421
- let x = se(F, w);
1422
- const b = F.toLowerCase().replace("-", "_");
1423
- return x && !x.id && x.type === F && (x.id = `${b}_${Math.random().toString().slice(2, 6)}`), x;
1349
+ function P(F, S) {
1350
+ const { componentType: x } = F;
1351
+ let b = ue(x, F, S);
1352
+ const A = x.toLowerCase().replace("-", "_");
1353
+ return b && !b.id && b.type === x && (b.id = `${A}_${Math.random().toString().slice(2, 6)}`), b;
1424
1354
  }
1425
- function I(w, F) {
1426
- const x = String(w.getAttribute("data-controltype")), b = w.getAttribute("data-feature"), R = b ? JSON.parse(b) : {};
1427
- R.parentComponentInstance = f.value;
1428
- let M = se(x, R);
1355
+ function I(F, S) {
1356
+ const x = String(F.getAttribute("data-controltype")), b = F.getAttribute("data-feature"), A = b ? JSON.parse(b) : {};
1357
+ A.parentComponentInstance = d.value;
1358
+ let $ = ue(x, A);
1429
1359
  const N = x.toLowerCase().replace("-", "_");
1430
- return M && !M.id && M.type === x && (M.id = `${N}_${Math.random().toString().slice(2, 6)}`), M;
1360
+ return $ && !$.id && $.type === x && ($.id = `${N}_${Math.random().toString().slice(2, 6)}`), $;
1431
1361
  }
1432
- function C(w) {
1362
+ function C(F) {
1433
1363
  }
1434
- function T(...w) {
1364
+ function w(...F) {
1435
1365
  }
1436
- return f.value = {
1437
- canMove: g(),
1366
+ return d.value = {
1367
+ canMove: m(),
1438
1368
  canSelectParent: u(),
1439
1369
  canDelete: r(),
1440
- canNested: !v(),
1370
+ canNested: !g(),
1441
1371
  contents: t == null ? void 0 : t.schema.contents,
1442
1372
  elementRef: e,
1443
- parent: (S = t == null ? void 0 : t.parent) == null ? void 0 : S.componentInstance,
1373
+ parent: (T = t == null ? void 0 : t.parent) == null ? void 0 : T.componentInstance,
1444
1374
  schema: t == null ? void 0 : t.schema,
1445
- styles: a,
1375
+ styles: l,
1446
1376
  designerClass: s,
1447
1377
  canAccepts: c,
1448
- getBelongedComponentInstance: l,
1449
- getDraggableDesignItemElement: d,
1378
+ getBelongedComponentInstance: a,
1379
+ getDraggableDesignItemElement: v,
1450
1380
  getDraggingDisplayText: p,
1451
- getPropConfig: T,
1381
+ getPropConfig: w,
1452
1382
  getDragScopeElement: y,
1453
1383
  onAcceptMovedChildElement: h,
1454
1384
  onAcceptNewChildElement: I,
1455
1385
  onChildElementMovedOut: C,
1456
1386
  addNewChildComponentSchema: P,
1457
1387
  updateDragAndDropRules: o,
1458
- triggerBelongedComponentToMoveWhenMoved: m(!1),
1459
- triggerBelongedComponentToDeleteWhenDeleted: m(!1)
1460
- }, f;
1388
+ triggerBelongedComponentToMoveWhenMoved: f(!1),
1389
+ triggerBelongedComponentToDeleteWhenDeleted: f(!1)
1390
+ }, d;
1461
1391
  }
1462
- const Go = /* @__PURE__ */ z({
1392
+ const qo = /* @__PURE__ */ U({
1463
1393
  name: "FFilterBarDesign",
1464
- props: he,
1394
+ props: be,
1465
1395
  emits: ["Clear", "Remove", "Reset"],
1466
1396
  setup(e, t) {
1467
- const n = m(!1), o = m(!1), a = m(!1), s = m(!1), f = Oe(e, t), {
1468
- filterFields: g,
1397
+ const n = f(!1), o = f(!1), l = f(!1), s = f(!1), d = Oe(e, t), {
1398
+ filterFields: m,
1469
1399
  filterItems: u,
1470
1400
  loadFilterItems: r
1471
- } = f, v = B(() => ({
1472
- display: g.value && g.value.length ? "" : "none"
1473
- })), l = m(), d = de("design-item-context"), c = qo(l, d);
1474
- K(() => {
1475
- l.value.componentInstance = c;
1476
- }), t.expose(c.value), H([() => e.data, () => e.fields], ([F, x]) => {
1477
- r(x, F);
1401
+ } = d, g = k(() => ({
1402
+ display: m.value && m.value.length ? "" : "none"
1403
+ })), a = f(), v = fe("design-item-context"), c = No(a, v);
1404
+ Q(() => {
1405
+ a.value.componentInstance = c;
1406
+ }), t.expose(c.value), W([() => e.data, () => e.fields], ([S, x]) => {
1407
+ r(x, S);
1478
1408
  });
1479
- const p = B(() => o.value && n.value), y = B(() => ({
1409
+ const p = k(() => o.value && n.value), y = k(() => ({
1480
1410
  "f-filter-list": !0,
1481
1411
  "f-filter-list-extend": p.value
1482
- })), h = B(() => u.value.length > 0), P = Re(e, t, f);
1412
+ })), h = k(() => u.value.length > 0), P = Ae(e, t, d);
1483
1413
  function I() {
1484
1414
  return i("div", {
1485
1415
  class: y.value
1486
- }, [u.value.map((F, x) => P(F, x))]);
1416
+ }, [u.value.map((S, x) => P(S, x))]);
1487
1417
  }
1488
- const C = B(() => a.value && !o.value && s.value), T = De(), S = B(() => !o.value), w = je(e, t, f);
1418
+ const C = k(() => l.value && !o.value && s.value), w = je(), T = k(() => !o.value), F = De(e, t, d);
1489
1419
  return () => i("div", {
1490
- ref: l,
1420
+ ref: a,
1491
1421
  class: "f-filter-wrapper",
1492
- style: v.value
1422
+ style: g.value
1493
1423
  }, [i("div", {
1494
1424
  class: "f-filter-wrapper-inner f-utils-fill"
1495
1425
  }, [i("div", {
1496
1426
  class: "f-filter-main f-utils-fill"
1497
1427
  }, [i("div", {
1498
1428
  class: "f-filter-list-wrapper"
1499
- }, [h.value && I(), C.value && T(), S.value && w()])])])]);
1429
+ }, [h.value && I(), C.value && w(), T.value && F()])])])]);
1500
1430
  }
1501
- }), Ho = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-design.gitee.io/query-solution-config.schema.json", _o = "query-solution-config", zo = "A Farris Container Component", Uo = {
1431
+ }), Go = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-design.gitee.io/query-solution-config.schema.json", Ho = "query-solution-config", _o = "A Farris Container Component", Uo = {
1502
1432
  fields: {
1503
1433
  description: "The unique identifier for a query solution",
1504
1434
  type: "array"
1505
1435
  }
1506
- }, Qo = {
1507
- $schema: Ho,
1436
+ }, zo = {
1437
+ $schema: Go,
1508
1438
  $id: Wo,
1509
- title: _o,
1510
- description: zo,
1439
+ title: Ho,
1440
+ description: _o,
1511
1441
  properties: Uo
1512
- }, Ko = "query-solution-config", Xo = "A Farris Component", Jo = "object", Zo = {
1442
+ }, Xo = "query-solution-config", Qo = "A Farris Component", Jo = "object", Ko = {
1513
1443
  basic: {
1514
1444
  description: "Basic Infomation",
1515
1445
  title: "基本信息",
@@ -1593,25 +1523,25 @@ const Go = /* @__PURE__ */ z({
1593
1523
  title: "控件",
1594
1524
  properties: {}
1595
1525
  }
1596
- }, ce = {
1597
- title: Ko,
1598
- description: Xo,
1526
+ }, pe = {
1527
+ title: Xo,
1528
+ description: Qo,
1599
1529
  type: Jo,
1600
- categories: Zo
1601
- }, Yo = /* @__PURE__ */ new Map([
1530
+ categories: Ko
1531
+ }, Zo = /* @__PURE__ */ new Map([
1602
1532
  ["appearance", ee]
1603
1533
  // ['preset', resolvePreset]
1604
1534
  ]);
1605
- function ea(e, t, n) {
1535
+ function Yo(e, t, n) {
1606
1536
  return t;
1607
1537
  }
1608
- const Le = {
1538
+ const Re = {
1609
1539
  fields: { type: Array, default: [] },
1610
1540
  modelValue: { type: Array, default: [] },
1611
1541
  source: { type: String, default: "query-solution" }
1612
1542
  };
1613
- Z(Le, Qo, Yo, ea, ce);
1614
- const ta = {
1543
+ Z(Re, zo, Zo, Yo, pe);
1544
+ const el = {
1615
1545
  width: { type: String, default: "300px" },
1616
1546
  height: { type: Number, default: 10 },
1617
1547
  isWidePanel: { type: Boolean, default: !1 },
@@ -1639,7 +1569,7 @@ const ta = {
1639
1569
  schema: { type: Object, default: {} },
1640
1570
  /** 属性变更后事件 */
1641
1571
  propertyChanged: { type: Function }
1642
- }, na = {
1572
+ }, tl = {
1643
1573
  /** 某一分类下的属性配置 */
1644
1574
  // as PropType<ElementPropertyConfig>
1645
1575
  category: { type: Object, default: {} },
@@ -1648,12 +1578,12 @@ const ta = {
1648
1578
  propertyData: { type: Object, default: {} },
1649
1579
  valueChanged: { type: Function },
1650
1580
  triggerRefreshPanel: { type: Function }
1651
- }, oa = {
1581
+ }, nl = {
1652
1582
  elementConfig: { type: Object, default: {} },
1653
1583
  category: { type: Object, default: {} }
1654
- }, aa = /* @__PURE__ */ new Map([
1584
+ }, ol = /* @__PURE__ */ new Map([
1655
1585
  ["appearance", ee]
1656
- ]), la = "https://json-schema.org/draft/2020-12/schema", ia = "https://farris-design.gitee.io/form-group.schema.json", ra = "form-group", sa = "A Farris Input Component", ua = "object", ca = {
1586
+ ]), ll = "https://json-schema.org/draft/2020-12/schema", al = "https://farris-design.gitee.io/form-group.schema.json", rl = "form-group", il = "A Farris Input Component", sl = "object", ul = {
1657
1587
  id: {
1658
1588
  description: "The unique identifier for a form group",
1659
1589
  type: "string"
@@ -1694,18 +1624,18 @@ const ta = {
1694
1624
  description: "",
1695
1625
  type: "number"
1696
1626
  }
1697
- }, da = [
1627
+ }, cl = [
1698
1628
  "id",
1699
1629
  "type"
1700
- ], pa = {
1701
- $schema: la,
1702
- $id: ia,
1703
- title: ra,
1704
- description: sa,
1705
- type: ua,
1706
- properties: ca,
1707
- required: da
1708
- }, Ae = {
1630
+ ], dl = {
1631
+ $schema: ll,
1632
+ $id: al,
1633
+ title: rl,
1634
+ description: il,
1635
+ type: sl,
1636
+ properties: ul,
1637
+ required: cl
1638
+ }, Le = {
1709
1639
  id: { type: String, default: "" },
1710
1640
  customClass: { type: String, default: "" },
1711
1641
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
@@ -1720,26 +1650,26 @@ const ta = {
1720
1650
  type: { type: String, default: "input-group" }
1721
1651
  };
1722
1652
  Z(
1723
- Ae,
1724
- pa,
1725
- aa,
1653
+ Le,
1654
+ dl,
1655
+ ol,
1726
1656
  void 0
1727
1657
  );
1728
- const fa = {
1658
+ const pl = {
1729
1659
  id: { type: String },
1730
1660
  required: { type: Boolean, default: !1 },
1731
1661
  text: { type: String, default: "" },
1732
1662
  title: { type: String }
1733
- }, ma = /* @__PURE__ */ z({
1663
+ }, fl = /* @__PURE__ */ U({
1734
1664
  name: "FDynamicFormLabel",
1735
- props: fa,
1665
+ props: pl,
1736
1666
  emits: [],
1737
1667
  setup(e, t) {
1738
- const n = m(e.title || e.text), o = m(e.required), a = m(e.text);
1739
- return H(() => e.text, () => {
1740
- a.value = e.text;
1741
- }), H(() => e.required, (s, f) => {
1742
- s !== f && (o.value = s);
1668
+ const n = f(e.title || e.text), o = f(e.required), l = f(e.text);
1669
+ return W(() => e.text, () => {
1670
+ l.value = e.text;
1671
+ }), W(() => e.required, (s, d) => {
1672
+ s !== d && (o.value = s);
1743
1673
  }), () => i("label", {
1744
1674
  class: "col-form-label",
1745
1675
  title: n.value
@@ -1747,15 +1677,15 @@ const fa = {
1747
1677
  class: "farris-label-info text-danger"
1748
1678
  }, [Y("*")]), i("span", {
1749
1679
  class: "farris-label-text"
1750
- }, [a.value])]);
1680
+ }, [l.value])]);
1751
1681
  }
1752
- }), va = /* @__PURE__ */ new Map([
1682
+ }), ml = /* @__PURE__ */ new Map([
1753
1683
  ["appearance", ee]
1754
1684
  ]);
1755
- function ya(e, t, n) {
1685
+ function vl(e, t, n) {
1756
1686
  return t;
1757
1687
  }
1758
- const ga = "https://json-schema.org/draft/2020-12/schema", ha = "https://farris-design.gitee.io/input-group.schema.json", ba = "input-group", Ca = "A Farris Input Component", Ta = "object", Sa = {
1688
+ const yl = "https://json-schema.org/draft/2020-12/schema", gl = "https://farris-design.gitee.io/input-group.schema.json", hl = "input-group", bl = "A Farris Input Component", Cl = "object", wl = {
1759
1689
  id: {
1760
1690
  description: "The unique identifier for a Input Group",
1761
1691
  type: "string"
@@ -1957,17 +1887,17 @@ const ga = "https://json-schema.org/draft/2020-12/schema", ha = "https://farris-
1957
1887
  type: "string",
1958
1888
  default: ""
1959
1889
  }
1960
- }, Fa = [
1890
+ }, Tl = [
1961
1891
  "id",
1962
1892
  "type"
1963
- ], wa = {
1964
- $schema: ga,
1965
- $id: ha,
1966
- title: ba,
1967
- description: Ca,
1968
- type: Ta,
1969
- properties: Sa,
1970
- required: Fa
1893
+ ], Fl = {
1894
+ $schema: yl,
1895
+ $id: gl,
1896
+ title: hl,
1897
+ description: bl,
1898
+ type: Cl,
1899
+ properties: wl,
1900
+ required: Tl
1971
1901
  }, Ne = {
1972
1902
  /** 是否自动完成 */
1973
1903
  autocomplete: { Type: String, default: "off" },
@@ -2035,83 +1965,83 @@ const ga = "https://json-schema.org/draft/2020-12/schema", ha = "https://farris-
2035
1965
  */
2036
1966
  updateOn: { type: String, default: "blur" }
2037
1967
  };
2038
- Z(Ne, wa, va, ya);
2039
- function xa(e, t, n, o) {
2040
- const a = m(e.disabled), s = m(!1), f = m("text"), g = m(e.showBorder), u = m(e.textAlign), r = m(e.updateOn), v = B(() => e.editable || !e.readonly), l = B(() => e.editable && !e.disabled && !e.readonly), d = B(() => !e.disabled && s.value), c = B(() => n.value === "" || n.value === null || n.value === void 0), p = B(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), y = B(() => e.readonly || !e.editable), h = B(() => e.enableTitle ? n.value : ""), P = B(() => ({
1968
+ Z(Ne, Fl, ml, vl);
1969
+ function Sl(e, t, n, o) {
1970
+ const l = f(e.disabled), s = f(!1), d = f("text"), m = f(e.showBorder), u = f(e.textAlign), r = f(e.updateOn), g = k(() => e.editable || !e.readonly), a = k(() => e.editable && !e.disabled && !e.readonly), v = k(() => !e.disabled && s.value), c = k(() => n.value === "" || n.value === null || n.value === void 0), p = k(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), y = k(() => e.readonly || !e.editable), h = k(() => e.enableTitle ? n.value : ""), P = k(() => ({
2041
1971
  "form-control": !0,
2042
1972
  "f-utils-fill": !0,
2043
1973
  "text-left": u.value === "left",
2044
1974
  "text-center": u.value === "center",
2045
1975
  "text-right": u.value === "right"
2046
- })), I = B(() => {
2047
- const k = {
1976
+ })), I = k(() => {
1977
+ const B = {
2048
1978
  "f-cmp-inputgroup": !0,
2049
1979
  "input-group": !0,
2050
- "f-state-disable": a.value,
2051
- "f-state-editable": l.value,
1980
+ "f-state-disable": l.value,
1981
+ "f-state-editable": a.value,
2052
1982
  "f-state-readonly": y.value,
2053
- "f-state-focus": d.value
1983
+ "f-state-focus": v.value
2054
1984
  };
2055
- return (e.customClass || "").split(" ").reduce((_, G) => (_[G] = !0, _), k), k;
2056
- }), C = B(() => g.value ? "" : "border-width : 0 ");
2057
- function T(k, q = !0) {
2058
- n.value = k, o.value !== k && (o.value = k), q && t.emit("change", k), t.emit("update:modelValue", k), t.emit("update:value", k);
1985
+ return (e.customClass || "").split(" ").reduce((_, G) => (_[G] = !0, _), B), B;
1986
+ }), C = k(() => m.value ? "" : "border-width : 0 ");
1987
+ function w(B, q = !0) {
1988
+ n.value = B, o.value !== B && (o.value = B), q && t.emit("change", B), t.emit("update:modelValue", B), t.emit("update:value", B);
2059
1989
  }
2060
- H(
1990
+ W(
2061
1991
  () => e.modelValue,
2062
- (k, q) => {
2063
- k !== q && (n.value = k, o.value = k);
1992
+ (B, q) => {
1993
+ B !== q && (n.value = B, o.value = B);
2064
1994
  }
2065
- ), H(() => e.disabled, (k, q) => {
2066
- k !== q && (a.value = k);
1995
+ ), W(() => e.disabled, (B, q) => {
1996
+ B !== q && (l.value = B);
2067
1997
  });
2068
- function S(k) {
2069
- return s.value = !1, t.emit("blur", k), k.stopPropagation(), !1;
1998
+ function T(B) {
1999
+ return s.value = !1, t.emit("blur", B), B.stopPropagation(), !1;
2070
2000
  }
2071
- function w(k) {
2072
- t.emit("click", k);
2001
+ function F(B) {
2002
+ t.emit("click", B);
2073
2003
  }
2074
- function F(k) {
2075
- e.disabled || (g.value && (s.value = !0), v.value && t.emit("focus", k));
2004
+ function S(B) {
2005
+ e.disabled || (m.value && (s.value = !0), g.value && t.emit("focus", B));
2076
2006
  }
2077
- function x(k) {
2078
- t.emit("input", k.target.value);
2079
- const q = k.target.value;
2007
+ function x(B) {
2008
+ t.emit("input", B.target.value);
2009
+ const q = B.target.value;
2080
2010
  o.value = q, r.value === "input" && (t.emit("update:modelValue", q), t.emit("update:value", q));
2081
2011
  }
2082
- function b(k) {
2083
- t.emit("keydown", k);
2012
+ function b(B) {
2013
+ t.emit("keydown", B);
2084
2014
  }
2085
- function R(k) {
2086
- t.emit("keyup", k);
2015
+ function A(B) {
2016
+ t.emit("keyup", B);
2087
2017
  }
2088
- function M(k) {
2089
- k.target.tagName !== "INPUT" && k.preventDefault(), k.stopPropagation();
2018
+ function $(B) {
2019
+ B.target.tagName !== "INPUT" && B.preventDefault(), B.stopPropagation();
2090
2020
  }
2091
- function N(k) {
2021
+ function N(B) {
2092
2022
  if (r.value === "blur") {
2093
- const q = k.target.value;
2094
- k.stopPropagation(), T(q);
2023
+ const q = B.target.value;
2024
+ B.stopPropagation(), w(q);
2095
2025
  }
2096
2026
  }
2097
2027
  return {
2098
- changeTextBoxValue: T,
2099
- disabled: a,
2028
+ changeTextBoxValue: w,
2029
+ disabled: l,
2100
2030
  displayText: o,
2101
- editable: l,
2102
- hasFocused: d,
2031
+ editable: a,
2032
+ hasFocused: v,
2103
2033
  inputGroupClass: I,
2104
- inputType: f,
2034
+ inputType: d,
2105
2035
  isEmpty: c,
2106
2036
  modelValue: n,
2107
2037
  readonly: y,
2108
- onBlur: S,
2109
- onClick: w,
2110
- onFocus: F,
2038
+ onBlur: T,
2039
+ onClick: F,
2040
+ onFocus: S,
2111
2041
  onInput: x,
2112
2042
  onKeydown: b,
2113
- onKeyup: R,
2114
- onMousedown: M,
2043
+ onKeyup: A,
2044
+ onMousedown: $,
2115
2045
  onTextBoxValueChange: N,
2116
2046
  placeholder: p,
2117
2047
  textBoxClass: P,
@@ -2119,85 +2049,85 @@ function xa(e, t, n, o) {
2119
2049
  inputGroupStyle: C
2120
2050
  };
2121
2051
  }
2122
- function Ba(e, t, n) {
2123
- const o = m(!1), a = B(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: f, hasFocused: g, isEmpty: u } = n;
2052
+ function xl(e, t, n) {
2053
+ const o = f(!1), l = k(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: d, hasFocused: m, isEmpty: u } = n;
2124
2054
  function r(y) {
2125
2055
  o.value = y;
2126
2056
  }
2127
- H(f, () => {
2128
- g != null && g.value ? r(!!(f != null && f.value)) : r(!1);
2057
+ W(d, () => {
2058
+ m != null && m.value ? r(!!(d != null && d.value)) : r(!1);
2129
2059
  });
2130
- const v = B(() => ({
2060
+ const g = k(() => ({
2131
2061
  "input-group-text": !0,
2132
2062
  "input-group-clear": !0
2133
- })), l = B(() => ({
2063
+ })), a = k(() => ({
2134
2064
  width: "24px",
2135
2065
  display: o.value ? "flex" : "none"
2136
2066
  }));
2137
- function d(y) {
2138
- y.stopPropagation(), a.value && (s("", !0), r(!o.value), t.emit("clear"));
2067
+ function v(y) {
2068
+ y.stopPropagation(), l.value && (s("", !0), r(!o.value), t.emit("clear"));
2139
2069
  }
2140
2070
  function c(y) {
2141
- a.value && !u.value && r(!0);
2071
+ l.value && !u.value && r(!0);
2142
2072
  }
2143
2073
  function p(y) {
2144
- a.value && r(!1);
2074
+ l.value && r(!1);
2145
2075
  }
2146
- return { clearButtonClass: v, clearButtonStyle: l, hasShownClearButton: o, onClearValue: d, onMouseEnter: c, onMouseLeave: p, shouldShowClearButton: a };
2076
+ return { clearButtonClass: g, clearButtonStyle: a, hasShownClearButton: o, onClearValue: v, onMouseEnter: c, onMouseLeave: p, shouldShowClearButton: l };
2147
2077
  }
2148
- const ka = ["moz", "ms", "webkit"];
2149
- function Pa() {
2078
+ const kl = ["moz", "ms", "webkit"];
2079
+ function Bl() {
2150
2080
  let e = 0;
2151
2081
  return (t) => {
2152
- const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
2082
+ const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), l = setTimeout(() => {
2153
2083
  t(n + o);
2154
2084
  }, o);
2155
- return e = n + o, a;
2085
+ return e = n + o, l;
2156
2086
  };
2157
2087
  }
2158
- function Ia() {
2088
+ function Pl() {
2159
2089
  if (typeof window > "u")
2160
2090
  return () => 0;
2161
2091
  if (window.requestAnimationFrame)
2162
2092
  return window.requestAnimationFrame.bind(window);
2163
- const e = ka.filter((t) => `${t}RequestAnimationFrame` in window)[0];
2164
- return e ? window[`${e}RequestAnimationFrame`] : Pa();
2093
+ const e = kl.filter((t) => `${t}RequestAnimationFrame` in window)[0];
2094
+ return e ? window[`${e}RequestAnimationFrame`] : Bl();
2165
2095
  }
2166
- Ia();
2167
- function Va(e, t) {
2168
- const n = m(e.groupText), o = B(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = B(() => e.enableClear || !!e.groupText);
2169
- return { appendedButtonClass: B(() => ({
2096
+ Pl();
2097
+ function Il(e, t) {
2098
+ const n = f(e.groupText), o = k(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), l = k(() => e.enableClear || !!e.groupText);
2099
+ return { appendedButtonClass: k(() => ({
2170
2100
  "input-group-append": !0,
2171
2101
  "append-force-show": o.value
2172
- })), appendedContent: n, shouldShowAppendedButton: a };
2102
+ })), appendedContent: n, shouldShowAppendedButton: l };
2173
2103
  }
2174
- function Ma(e, t, n, o) {
2175
- const { appendedContent: a } = o, s = m(e.enableViewPassword), f = B(() => e.type === "password"), g = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', r = m(!1);
2176
- H(() => [e.readonly, e.disabled], ([d, c]) => {
2177
- f.value && (n.value = d || c ? "password" : n.value, a.value = d || c ? u : a.value);
2104
+ function Vl(e, t, n, o) {
2105
+ const { appendedContent: l } = o, s = f(e.enableViewPassword), d = k(() => e.type === "password"), m = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', r = f(!1);
2106
+ W(() => [e.readonly, e.disabled], ([v, c]) => {
2107
+ d.value && (n.value = v || c ? "password" : n.value, l.value = v || c ? u : l.value);
2178
2108
  });
2179
- function v() {
2180
- return r.value = !r.value, n.value = r.value ? "text" : "password", a.value = r.value ? g : u, !1;
2109
+ function g() {
2110
+ return r.value = !r.value, n.value = r.value ? "text" : "password", l.value = r.value ? m : u, !1;
2181
2111
  }
2182
- function l() {
2183
- n.value = f.value ? "password" : "text", a.value = f.value ? s.value ? u : "" : a.value;
2112
+ function a() {
2113
+ n.value = d.value ? "password" : "text", l.value = d.value ? s.value ? u : "" : l.value;
2184
2114
  }
2185
- return l(), { isPassword: f, onClickAppendedButton: v };
2115
+ return a(), { isPassword: d, onClickAppendedButton: g };
2186
2116
  }
2187
- function Ea(e, t, n) {
2188
- const o = m(), {
2189
- onBlurTextBox: a,
2117
+ function $l(e, t, n) {
2118
+ const o = f(), {
2119
+ onBlurTextBox: l,
2190
2120
  onFocusTextBox: s,
2191
- onInput: f,
2192
- onKeyDown: g,
2121
+ onInput: d,
2122
+ onKeyDown: m,
2193
2123
  textBoxValue: u
2194
- } = n, r = B(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), v = B(() => ({
2124
+ } = n, r = k(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), g = k(() => ({
2195
2125
  "form-control": !0,
2196
2126
  "f-utils-fill": !0
2197
- })), l = B(() => ({
2127
+ })), a = k(() => ({
2198
2128
  "text-align": e.textAlign
2199
2129
  }));
2200
- function d(y) {
2130
+ function v(y) {
2201
2131
  y.stopPropagation();
2202
2132
  }
2203
2133
  function c() {
@@ -2206,95 +2136,95 @@ function Ea(e, t, n) {
2206
2136
  async function p(y) {
2207
2137
  s(y), await oe, c();
2208
2138
  }
2209
- return K(async () => {
2139
+ return Q(async () => {
2210
2140
  await oe, c();
2211
2141
  }), () => i("input", {
2212
2142
  ref: o,
2213
- class: v.value,
2214
- style: l.value,
2143
+ class: g.value,
2144
+ style: a.value,
2215
2145
  type: "text",
2216
2146
  value: u.value,
2217
2147
  disabled: e.disabled,
2218
2148
  readonly: e.readonly || !e.editable,
2219
2149
  placeholder: r.value,
2220
- onBlur: a,
2221
- onChange: d,
2150
+ onBlur: l,
2151
+ onChange: v,
2222
2152
  onFocus: p,
2223
- onInput: f,
2224
- onKeydown: g
2153
+ onInput: d,
2154
+ onKeydown: m
2225
2155
  }, null);
2226
2156
  }
2227
- function $a(e, t, n) {
2157
+ function El(e, t, n) {
2228
2158
  const {
2229
2159
  canDownward: o,
2230
- canUpward: a,
2160
+ canUpward: l,
2231
2161
  onClickDownButton: s,
2232
- onClickUpButton: f
2233
- } = n, g = B(() => ({
2162
+ onClickUpButton: d
2163
+ } = n, m = k(() => ({
2234
2164
  "input-group-append": !0,
2235
2165
  "btn-group": !0,
2236
2166
  "btn-group-number": !0
2237
- })), u = B(() => ({
2167
+ })), u = k(() => ({
2238
2168
  btn: !0,
2239
2169
  "btn-secondary": !0,
2240
2170
  "btn-number-flag": !0
2241
- })), r = B(() => ({
2242
- cursor: a() ? "pointer" : "not-allowed",
2171
+ })), r = k(() => ({
2172
+ cursor: l() ? "pointer" : "not-allowed",
2243
2173
  "margin-left": 0
2244
- })), v = B(() => ({
2174
+ })), g = k(() => ({
2245
2175
  cursor: o() ? "pointer" : "not-allowed",
2246
2176
  "margin-left": 0
2247
2177
  }));
2248
2178
  return () => i("div", {
2249
- class: g.value
2179
+ class: m.value
2250
2180
  }, [i("button", {
2251
2181
  title: "upButton",
2252
2182
  class: u.value,
2253
2183
  style: r.value,
2254
- onClick: f,
2255
- disabled: !a()
2184
+ onClick: d,
2185
+ disabled: !l()
2256
2186
  }, [i("span", {
2257
2187
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
2258
2188
  }, null)]), i("button", {
2259
2189
  title: "downButton",
2260
2190
  class: u.value,
2261
- style: v.value,
2191
+ style: g.value,
2262
2192
  onClick: s,
2263
2193
  disabled: !o()
2264
2194
  }, [i("span", {
2265
2195
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
2266
2196
  }, null)])]);
2267
2197
  }
2268
- function Oa(e, t) {
2269
- const n = bt(e, t), o = Ct(e, t, n), a = Tt(e, t, o, n), s = St(e, t, o, n, a), f = $a(e, t, a), {
2270
- displayValue: g,
2198
+ function Ml(e, t) {
2199
+ const n = ht(e, t), o = bt(e, t, n), l = Ct(e, t, o, n), s = wt(e, t, o, n, l), d = El(e, t, l), {
2200
+ displayValue: m,
2271
2201
  modelValue: u,
2272
2202
  getRealValue: r
2273
- } = n, v = Ea(e, t, s), {
2274
- format: l
2203
+ } = n, g = $l(e, t, s), {
2204
+ format: a
2275
2205
  } = o, {
2276
- isFocus: d
2277
- } = s, c = B(() => !e.disabled && !e.readonly);
2278
- return K(() => {
2206
+ isFocus: v
2207
+ } = s, c = k(() => !e.disabled && !e.readonly);
2208
+ return Q(() => {
2279
2209
  const p = r(e.modelValue);
2280
- g.value = l(p);
2281
- }), H(() => [e.value], ([p]) => {
2210
+ m.value = a(p);
2211
+ }), W(() => [e.value], ([p]) => {
2282
2212
  const y = r(p);
2283
- u.value = y, g.value = l(y);
2284
- }), H(() => [e.modelValue], ([p]) => {
2285
- p !== u.value && (u.value = p, !d.value && (g.value = l(r(p))));
2286
- }), H(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
2287
- g.value = l(u.value);
2213
+ u.value = y, m.value = a(y);
2214
+ }), W(() => [e.modelValue], ([p]) => {
2215
+ p !== u.value && (u.value = p, !v.value && (m.value = a(r(p))));
2216
+ }), W(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
2217
+ m.value = a(u.value);
2288
2218
  }), () => i("div", {
2289
2219
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
2290
- }, [v(), c.value && f()]);
2220
+ }, [g(), c.value && d()]);
2291
2221
  }
2292
- function Da(e, t, n, o) {
2293
- const a = m(), s = m(e.autocomplete), f = m(e.enableTitle), {
2294
- isPassword: g
2295
- } = n, u = m(e.minLength), r = m(e.maxLength), v = m(e.tabIndex), {
2296
- disabled: l,
2297
- displayText: d,
2222
+ function Ol(e, t, n, o) {
2223
+ const l = f(), s = f(e.autocomplete), d = f(e.enableTitle), {
2224
+ isPassword: m
2225
+ } = n, u = f(e.minLength), r = f(e.maxLength), g = f(e.tabIndex), {
2226
+ disabled: a,
2227
+ displayText: v,
2298
2228
  inputType: c,
2299
2229
  onBlur: p,
2300
2230
  onFocus: y,
@@ -2302,154 +2232,154 @@ function Da(e, t, n, o) {
2302
2232
  onClick: P,
2303
2233
  onKeydown: I,
2304
2234
  onKeyup: C,
2305
- onMousedown: T,
2306
- onTextBoxValueChange: S,
2307
- readonly: w,
2308
- placeholder: F,
2235
+ onMousedown: w,
2236
+ onTextBoxValueChange: T,
2237
+ readonly: F,
2238
+ placeholder: S,
2309
2239
  textBoxClass: x,
2310
2240
  textBoxTitle: b
2311
2241
  } = o;
2312
- return K(() => {
2242
+ return Q(() => {
2313
2243
  e.selectOnCreated, e.focusOnCreated;
2314
2244
  }), () => i("input", {
2315
- ref: a,
2245
+ ref: l,
2316
2246
  name: "input-group-value",
2317
2247
  autocomplete: s.value,
2318
2248
  class: x.value,
2319
- disabled: l == null ? void 0 : l.value,
2249
+ disabled: a == null ? void 0 : a.value,
2320
2250
  maxlength: r.value,
2321
2251
  minlength: u.value,
2322
- placeholder: F.value,
2323
- readonly: w == null ? void 0 : w.value,
2324
- tabindex: v.value,
2325
- title: f.value && !g.value ? b.value : "",
2252
+ placeholder: S.value,
2253
+ readonly: F == null ? void 0 : F.value,
2254
+ tabindex: g.value,
2255
+ title: d.value && !m.value ? b.value : "",
2326
2256
  type: c.value,
2327
- value: d == null ? void 0 : d.value,
2257
+ value: v == null ? void 0 : v.value,
2328
2258
  onBlur: p,
2329
2259
  onClick: P,
2330
- onChange: S,
2260
+ onChange: T,
2331
2261
  onFocus: y,
2332
2262
  onInput: h,
2333
2263
  onKeydown: I,
2334
2264
  onKeyup: C,
2335
- onMousedown: T
2265
+ onMousedown: w
2336
2266
  }, null);
2337
2267
  }
2338
- function Ra(e, t) {
2339
- const n = B(() => e.useExtendInfo && !!e.extendInfo), o = st({
2268
+ function jl(e, t) {
2269
+ const n = k(() => e.useExtendInfo && !!e.extendInfo), o = st({
2340
2270
  content: e.extendInfo
2341
2271
  });
2342
- function a() {
2272
+ function l() {
2343
2273
  t.emit("updateExtendInfo");
2344
2274
  }
2345
- return () => n.value && pe(i("span", {
2275
+ return () => n.value && me(i("span", {
2346
2276
  class: "input-group-before-tips",
2347
- onMouseenter: a
2277
+ onMouseenter: l
2348
2278
  }, [i("i", {
2349
2279
  class: "f-icon f-icon-info-circle"
2350
2280
  }, null), i("b", {
2351
2281
  class: "tips-arrow"
2352
2282
  }, null)]), [[ut("tooltip"), o]]);
2353
2283
  }
2354
- function ja(e, t, n, o, a) {
2284
+ function Al(e, t, n, o, l) {
2355
2285
  const {
2356
2286
  appendedButtonClass: s,
2357
- appendedContent: f
2358
- } = n, g = B(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = B(() => f.value && !t.slots.groupTextTemplate), r = B(() => !!t.slots.groupTextTemplate), {
2359
- clearButtonClass: v,
2360
- clearButtonStyle: l,
2361
- onClearValue: d,
2287
+ appendedContent: d
2288
+ } = n, m = k(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = k(() => d.value && !t.slots.groupTextTemplate), r = k(() => !!t.slots.groupTextTemplate), {
2289
+ clearButtonClass: g,
2290
+ clearButtonStyle: a,
2291
+ onClearValue: v,
2362
2292
  shouldShowClearButton: c
2363
2293
  } = o;
2364
2294
  function p() {
2365
2295
  return i("span", {
2366
2296
  id: "clearIcon",
2367
- class: v.value,
2368
- style: l.value,
2369
- onClick: (F) => d(F)
2297
+ class: g.value,
2298
+ style: a.value,
2299
+ onClick: (S) => v(S)
2370
2300
  }, [i("i", {
2371
2301
  class: "f-icon modal_close"
2372
2302
  }, null)]);
2373
2303
  }
2374
- function y(F) {
2375
- t.emit("iconMouseEnter", F);
2304
+ function y(S) {
2305
+ t.emit("iconMouseEnter", S);
2376
2306
  }
2377
- function h(F) {
2378
- t.emit("iconMouseLeave", F);
2307
+ function h(S) {
2308
+ t.emit("iconMouseLeave", S);
2379
2309
  }
2380
- function P(F) {
2381
- g.value && t.emit("clickHandle", {
2382
- originalEvent: F
2383
- }), F.stopPropagation();
2310
+ function P(S) {
2311
+ m.value && t.emit("clickHandle", {
2312
+ originalEvent: S
2313
+ }), S.stopPropagation();
2384
2314
  }
2385
- const I = e.type === "password" ? a.onClickAppendedButton : P;
2315
+ const I = e.type === "password" ? l.onClickAppendedButton : P;
2386
2316
  function C() {
2387
2317
  return i("span", {
2388
2318
  class: "input-group-text",
2389
- onMouseenter: (F) => y(F),
2390
- onMouseleave: (F) => h(F),
2391
- innerHTML: f.value,
2392
- onClick: (F) => I(F)
2319
+ onMouseenter: (S) => y(S),
2320
+ onMouseleave: (S) => h(S),
2321
+ innerHTML: d.value,
2322
+ onClick: (S) => I(S)
2393
2323
  }, null);
2394
2324
  }
2395
- function T() {
2325
+ function w() {
2396
2326
  return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
2397
2327
  }
2398
- function S() {
2399
- return u.value ? C : r.value ? T : "";
2328
+ function T() {
2329
+ return u.value ? C : r.value ? w : "";
2400
2330
  }
2401
- const w = S();
2331
+ const F = T();
2402
2332
  return () => i("div", {
2403
2333
  class: s.value
2404
- }, [c.value && p(), w && w()]);
2334
+ }, [c.value && p(), F && F()]);
2405
2335
  }
2406
- const La = /* @__PURE__ */ z({
2336
+ const Dl = /* @__PURE__ */ U({
2407
2337
  name: "FInputGroup",
2408
2338
  props: Ne,
2409
2339
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
2410
2340
  setup(e, t) {
2411
- const n = m(e.modelValue), o = m(e.modelValue), a = xa(e, t, n, o), {
2341
+ const n = f(e.modelValue), o = f(e.modelValue), l = Sl(e, t, n, o), {
2412
2342
  inputGroupClass: s,
2413
- inputType: f,
2414
- inputGroupStyle: g
2415
- } = a, u = Va(e), {
2343
+ inputType: d,
2344
+ inputGroupStyle: m
2345
+ } = l, u = Il(e), {
2416
2346
  shouldShowAppendedButton: r
2417
- } = u, v = Ba(e, t, a), {
2418
- onMouseEnter: l,
2419
- onMouseLeave: d
2420
- } = v, c = Ma(e, t, f, u), p = Oa(e, t), y = Da(e, t, c, a), h = ja(e, t, u, v, c), P = Ra(e, t), I = B(() => e.type === "number");
2421
- H(() => [e.value], ([T]) => {
2422
- n.value = T, o.value = T;
2423
- }), H(() => [e.modelValue], ([T]) => {
2424
- n.value = T, o.value = T;
2425
- }), K(() => {
2347
+ } = u, g = xl(e, t, l), {
2348
+ onMouseEnter: a,
2349
+ onMouseLeave: v
2350
+ } = g, c = Vl(e, t, d, u), p = Ml(e, t), y = Ol(e, t, c, l), h = Al(e, t, u, g, c), P = jl(e, t), I = k(() => e.type === "number");
2351
+ W(() => [e.value], ([w]) => {
2352
+ n.value = w, o.value = w;
2353
+ }), W(() => [e.modelValue], ([w]) => {
2354
+ n.value = w, o.value = w;
2355
+ }), Q(() => {
2426
2356
  e.value && (n.value = e.value, o.value = e.value);
2427
2357
  });
2428
- const C = () => i(J, null, [i("div", {
2358
+ const C = () => i(K, null, [i("div", {
2429
2359
  id: "inputGroup",
2430
2360
  class: s.value,
2431
- style: g.value,
2432
- onMouseenter: l,
2433
- onMouseleave: d
2434
- }, [I.value ? p() : i(J, null, [P(), y(), r.value && h()])])]);
2361
+ style: m.value,
2362
+ onMouseenter: a,
2363
+ onMouseleave: v
2364
+ }, [I.value ? p() : i(K, null, [P(), y(), r.value && h()])])]);
2435
2365
  return () => C();
2436
2366
  }
2437
- }), E = {}, $ = {}, O = {}, D = {};
2438
- let Fe = !1;
2439
- function Aa() {
2440
- Fe || (Fe = !0, wt.register(E, $, O, D), Ft.register(E, $, O, D), xt.register(E, $, O, D), Bt.register(E, $, O, D), kt.register(E, $, O, D), Pt.register(E, $, O, D), It.register(E, $, O, D), Vt.register(E, $, O, D), Mt.register(E, $, O, D), Et.register(E, $, O, D), Ot.register(E, $, O, D), $t.register(E, $, O, D), Dt.register(E, $, O, D), Rt.register(E, $, O, D), jt.register(E, $, O, D), Lt.register(E, $, O, D), At.register(E, $, O, D), Nt.register(E, $, O, D), qt.register(E, $, O, D), Gt.register(E, $, O, D), Ht.register(E, $, O, D), Wt.register(E, $, O, D), zt.register(E, $, O, D), _t.register(E, $, O, D), Ut.register(E, $, O, D), Qt.register(E, $, O, D), Kt.register(E, $, O, D), Xt.register(E, $, O, D), ht.register(E, $, O, D), Jt.register(E, $, O, D), Zt.register(E, $, O, D), Yt.register(E, $, O, D), en.register(E, $, O, D), tn.register(E, $, O, D), nn.register(E, $, O, D), on.register(E, $, O, D), an.register(E, $, O, D), rn.register(E, $, O, D), sn.register(E, $, O, D), ln.register(E, $, O, D), xn.register(E, $, O), un.register(E, $, O, D), cn.register(E, $, O, D), dn.register(E, $, O, D), pn.register(E, $, O, D), fn.register(E, $, O, D), mn.register(E, $, O, D), vn.register(E, $, O, D), Ie.register(E, $, O, D), yn.register(E, $, O, D), gn.register(E, $, O, D), hn.register(E, $, O, D), bn.register(E, $, O, D), Tn.register(E, $, O, D), Cn.register(E, $, O, D), Sn.register(E, $, O, D), Fn.register(E, $, O, D), wn.register(E, $, O, D), Bn.register(E, $, O, D));
2367
+ }), E = {}, M = {}, O = {}, j = {};
2368
+ let Se = !1;
2369
+ function Rl() {
2370
+ Se || (Se = !0, Ft.register(E, M, O, j), Tt.register(E, M, O, j), St.register(E, M, O, j), xt.register(E, M, O, j), kt.register(E, M, O, j), Bt.register(E, M, O, j), Pt.register(E, M, O, j), It.register(E, M, O, j), Vt.register(E, M, O, j), $t.register(E, M, O, j), Mt.register(E, M, O, j), Et.register(E, M, O, j), Ot.register(E, M, O, j), jt.register(E, M, O, j), At.register(E, M, O, j), Dt.register(E, M, O, j), Rt.register(E, M, O, j), Lt.register(E, M, O, j), Nt.register(E, M, O, j), qt.register(E, M, O, j), Gt.register(E, M, O, j), Wt.register(E, M, O, j), _t.register(E, M, O, j), Ht.register(E, M, O, j), Ut.register(E, M, O, j), zt.register(E, M, O, j), Xt.register(E, M, O, j), Qt.register(E, M, O, j), gt.register(E, M, O, j), Jt.register(E, M, O, j), Kt.register(E, M, O, j), Zt.register(E, M, O, j), Yt.register(E, M, O, j), en.register(E, M, O, j), tn.register(E, M, O, j), nn.register(E, M, O, j), on.register(E, M, O, j), an.register(E, M, O, j), rn.register(E, M, O, j), ln.register(E, M, O, j), Sn.register(E, M, O), sn.register(E, M, O, j), un.register(E, M, O, j), cn.register(E, M, O, j), dn.register(E, M, O, j), pn.register(E, M, O, j), fn.register(E, M, O, j), mn.register(E, M, O, j), Ve.register(E, M, O, j), vn.register(E, M, O, j), yn.register(E, M, O, j), gn.register(E, M, O, j), hn.register(E, M, O, j), Cn.register(E, M, O, j), bn.register(E, M, O, j), wn.register(E, M, O, j), Tn.register(E, M, O, j), Fn.register(E, M, O, j), xn.register(E, M, O, j));
2441
2371
  }
2442
- function Na() {
2443
- Aa();
2444
- function e(a, s) {
2445
- const f = $[a];
2446
- return f ? f(s) : {};
2372
+ function Ll() {
2373
+ Rl();
2374
+ function e(l, s) {
2375
+ const d = M[l];
2376
+ return d ? d(s) : {};
2447
2377
  }
2448
- function t(a) {
2449
- return E[a] || La;
2378
+ function t(l) {
2379
+ return E[l] || Dl;
2450
2380
  }
2451
- function n(a) {
2452
- switch (a) {
2381
+ function n(l) {
2382
+ switch (l) {
2453
2383
  case "check-box":
2454
2384
  return "onChangeValue";
2455
2385
  case "switch":
@@ -2501,62 +2431,65 @@ function Na() {
2501
2431
  return "onSchemaSelected";
2502
2432
  case "mapping-editor":
2503
2433
  return "onMappingFieldsChanged";
2434
+ case "textarea":
2435
+ return "onValueChange";
2504
2436
  }
2505
2437
  }
2506
- function o(a) {
2507
- switch (a) {
2438
+ function o(l) {
2439
+ switch (l) {
2508
2440
  case "combo-list":
2509
2441
  case "input-group":
2442
+ case "textarea":
2510
2443
  return "onClear";
2511
2444
  }
2512
2445
  }
2513
2446
  return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
2514
2447
  }
2515
- const qa = /* @__PURE__ */ z({
2448
+ const Nl = /* @__PURE__ */ U({
2516
2449
  name: "FDynamicFormGroup",
2517
- props: Ae,
2450
+ props: Le,
2518
2451
  emits: ["change", "update:modelValue"],
2519
2452
  setup(e, t) {
2520
- const n = m(e.id), o = m(e.customClass), a = m(e.editor), s = m(e.label), f = m(e.modelValue), g = m(e.readonly), u = m(e.required), r = m(e.showLabel), v = m(e.visible);
2521
- m(e.type);
2522
- const l = m(), {
2523
- resolveEditorProps: d,
2453
+ const n = f(e.id), o = f(e.customClass), l = f(e.editor), s = f(e.label), d = f(e.modelValue), m = f(e.readonly), u = f(e.required), r = f(e.showLabel), g = f(e.visible);
2454
+ f(e.type);
2455
+ const a = f(), {
2456
+ resolveEditorProps: v,
2524
2457
  resolveEditorType: c,
2525
2458
  getChangeFunctionName: p,
2526
2459
  getClearFunctionName: y
2527
- } = Na(), h = B(() => ({
2460
+ } = Ll(), h = k(() => ({
2528
2461
  "form-group": !0,
2529
2462
  "farris-form-group": !0,
2530
2463
  "common-group": !0,
2531
- "q-state-readonly": g.value
2464
+ "q-state-readonly": m.value
2532
2465
  }));
2533
- function P(T, S) {
2534
- f.value = S !== void 0 ? S : T, t.emit("update:modelValue", f.value), t.emit("change", f.value);
2466
+ function P(w, T) {
2467
+ d.value = T !== void 0 ? T : w, t.emit("update:modelValue", d.value), t.emit("change", d.value);
2535
2468
  }
2536
2469
  function I() {
2537
2470
  t.emit("update:modelValue", "");
2538
2471
  }
2539
- const C = B(() => {
2540
- const T = a.value.type || "input-group", S = c(T), w = d(T, a.value), F = p(T), x = y(a.value.type);
2541
- return w[F] = P, w[x] = I, () => i(S, Pe({
2542
- ref: l
2543
- }, w, {
2544
- modelValue: f.value,
2545
- "onUpdate:modelValue": (b) => f.value = b
2472
+ const C = k(() => {
2473
+ const w = l.value.type || "input-group", T = c(w), F = v(w, l.value), S = p(w), x = y(l.value.type);
2474
+ return F[S] = P, F[x] = I, () => i(T, Ie({
2475
+ ref: a
2476
+ }, F, {
2477
+ modelValue: d.value,
2478
+ "onUpdate:modelValue": (b) => d.value = b
2546
2479
  }), null);
2547
2480
  });
2548
- return H([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([T, S, w, F, x, b, R, M, N]) => {
2549
- n.value = T, o.value = S, a.value = w, s.value = F, f.value = x, g.value = b, u.value = R, r.value = M, v.value = N;
2481
+ return W([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([w, T, F, S, x, b, A, $, N]) => {
2482
+ n.value = w, o.value = T, l.value = F, s.value = S, d.value = x, m.value = b, u.value = A, r.value = $, g.value = N;
2550
2483
  }), t.expose({
2551
- editorRef: l
2552
- }), () => v.value && i("div", {
2484
+ editorRef: a
2485
+ }), () => g.value && i("div", {
2553
2486
  id: `${n.value}-input-group`,
2554
2487
  class: o.value
2555
2488
  }, [i("div", {
2556
2489
  class: "farris-group-wrap"
2557
2490
  }, [i("div", {
2558
2491
  class: h.value
2559
- }, [r.value && i(ma, {
2492
+ }, [r.value && i(fl, {
2560
2493
  id: `${n.value}-lable`,
2561
2494
  required: u.value,
2562
2495
  text: s.value,
@@ -2565,52 +2498,54 @@ const qa = /* @__PURE__ */ z({
2565
2498
  class: "farris-input-wrap"
2566
2499
  }, [C.value()])])])]);
2567
2500
  }
2568
- }), Ga = /* @__PURE__ */ z({
2501
+ }), ql = /* @__PURE__ */ U({
2569
2502
  name: "FPropertyPanelItem",
2570
- props: oa,
2503
+ props: nl,
2571
2504
  emits: ["propertyChange", "triggerRefreshPanel"],
2572
2505
  setup(e, t) {
2573
- var r;
2574
- const n = m((r = e.category) == null ? void 0 : r.categoryId), o = m(e.elementConfig.propertyID), a = m(e.elementConfig.propertyName), s = m(e.elementConfig.editor), f = m(e.elementConfig.propertyValue), g = B(() => {
2575
- const v = e.elementConfig.visible;
2506
+ var u;
2507
+ const n = f((u = e.category) == null ? void 0 : u.categoryId), o = f(e.elementConfig.propertyID), l = f(e.elementConfig.propertyName);
2508
+ f(e.elementConfig.editor);
2509
+ const s = f(e.elementConfig.propertyValue), d = k(() => {
2510
+ const r = e.elementConfig.visible;
2576
2511
  return {
2577
2512
  "farris-group-wrap": !0,
2578
2513
  "property-item": !0,
2579
- "d-none": !(typeof v == "boolean" ? v : v == null ? !0 : v())
2514
+ "d-none": !(typeof r == "boolean" ? r : r == null ? !0 : r())
2580
2515
  };
2581
2516
  });
2582
- H(() => {
2583
- var v;
2584
- return (v = e.elementConfig) == null ? void 0 : v.propertyValue;
2585
- }, (v) => {
2586
- f.value = v;
2517
+ W(() => {
2518
+ var r;
2519
+ return (r = e.elementConfig) == null ? void 0 : r.propertyValue;
2520
+ }, (r) => {
2521
+ s.value = r;
2587
2522
  });
2588
- function u(v) {
2589
- e.elementConfig.propertyValue = v;
2590
- const l = {
2523
+ function m(r) {
2524
+ e.elementConfig.propertyValue = r;
2525
+ const g = {
2591
2526
  propertyID: e.elementConfig.propertyID,
2592
- propertyValue: v
2527
+ propertyValue: r
2593
2528
  };
2594
- t.emit("propertyChange", l), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
2529
+ t.emit("propertyChange", g), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
2595
2530
  }
2596
2531
  return () => i("div", {
2597
- class: g.value
2598
- }, [i(qa, {
2532
+ class: d.value
2533
+ }, [i(Nl, {
2599
2534
  id: o.value,
2600
2535
  customClass: `${n.value}-${o.value}`,
2601
- label: a.value,
2602
- editor: s.value,
2603
- modelValue: f.value,
2604
- onChange: u,
2536
+ label: l.value,
2537
+ editor: e.elementConfig.editor,
2538
+ modelValue: s.value,
2539
+ onChange: m,
2605
2540
  editorParams: e.elementConfig.editorParams
2606
2541
  }, null)]);
2607
2542
  }
2608
- }), Ha = /* @__PURE__ */ z({
2543
+ }), Gl = /* @__PURE__ */ U({
2609
2544
  name: "FPropertyPanelItemList",
2610
- props: na,
2545
+ props: tl,
2611
2546
  emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
2612
2547
  setup(e, t) {
2613
- const n = m(e.category);
2548
+ const n = f(e.category);
2614
2549
  function o(c) {
2615
2550
  if (!c.hideCascadeTitle)
2616
2551
  return i("div", {
@@ -2623,7 +2558,7 @@ const qa = /* @__PURE__ */ z({
2623
2558
  readonly: !0
2624
2559
  }, null)]);
2625
2560
  }
2626
- function a(c, p) {
2561
+ function l(c, p) {
2627
2562
  p.isExpand = !p.isExpand;
2628
2563
  }
2629
2564
  function s(c) {
@@ -2634,10 +2569,10 @@ const qa = /* @__PURE__ */ z({
2634
2569
  class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
2635
2570
  "f-state-expand": c.isExpand
2636
2571
  }],
2637
- onClick: (p) => a(p, c)
2572
+ onClick: (p) => l(p, c)
2638
2573
  }, [i("span", null, null)])]);
2639
2574
  }
2640
- function f(c) {
2575
+ function d(c) {
2641
2576
  return i("div", {
2642
2577
  class: "f-section-formgroup-legend"
2643
2578
  }, [i("div", {
@@ -2654,7 +2589,7 @@ const qa = /* @__PURE__ */ z({
2654
2589
  class: "farris-label-text"
2655
2590
  }, [c.propertyName])])])]);
2656
2591
  }
2657
- function g(c) {
2592
+ function m(c) {
2658
2593
  return `${e.categoryKey}_${c.propertyID}`;
2659
2594
  }
2660
2595
  function u(c) {
@@ -2665,18 +2600,18 @@ const qa = /* @__PURE__ */ z({
2665
2600
  function r() {
2666
2601
  t.emit("triggerRefreshPanel");
2667
2602
  }
2668
- function v(c) {
2603
+ function g(c) {
2669
2604
  return i("div", {
2670
2605
  class: "px-2 mb-2"
2671
- }, [i(Ga, {
2672
- key: g(c),
2606
+ }, [i(ql, {
2607
+ key: m(c),
2673
2608
  elementConfig: c,
2674
2609
  category: n.value,
2675
2610
  onPropertyChange: u,
2676
2611
  onTriggerRefreshPanel: r
2677
2612
  }, null)]);
2678
2613
  }
2679
- function l(c) {
2614
+ function a(c) {
2680
2615
  var p;
2681
2616
  return i("div", {
2682
2617
  class: "propertyCascadeItem farris-panel px-2 mb-2"
@@ -2686,165 +2621,163 @@ const qa = /* @__PURE__ */ z({
2686
2621
  }]
2687
2622
  }, [i("div", {
2688
2623
  class: "card-header",
2689
- onClick: (y) => a(y, c)
2624
+ onClick: (y) => l(y, c)
2690
2625
  }, [i("div", {
2691
2626
  class: "panel-item-title"
2692
2627
  }, [i("div", {
2693
2628
  class: "form-group farris-form-group line-item"
2694
- }, [f(c), o(c), s(c)])])]), i("div", {
2629
+ }, [d(c), o(c), s(c)])])]), i("div", {
2695
2630
  class: ["card-body", {
2696
2631
  hidden: !c.isExpand
2697
2632
  }]
2698
- }, [(p = c.cascadeConfig) == null ? void 0 : p.map((y) => v(y))])])]);
2633
+ }, [(p = c.cascadeConfig) == null ? void 0 : p.map((y) => g(y))])])]);
2699
2634
  }
2700
- H(() => e.category, () => {
2635
+ W(() => e.category, () => {
2701
2636
  n.value = e.category;
2702
2637
  });
2703
- function d(c) {
2704
- return c.propertyType === "cascade" ? l : v;
2638
+ function v(c) {
2639
+ return c.propertyType === "cascade" ? a : g;
2705
2640
  }
2706
- return () => i(J, null, [n.value.properties.map((c) => d(c)(c))]);
2641
+ return () => i(K, null, [n.value.properties.map((c) => v(c)(c))]);
2707
2642
  }
2708
- }), Wa = /* @__PURE__ */ z({
2643
+ }), Wl = /* @__PURE__ */ U({
2709
2644
  name: "FPropertyPanel",
2710
- props: ta,
2645
+ props: el,
2711
2646
  emits: ["propertyChanged"],
2712
2647
  setup(e, t) {
2713
- const n = m(e.width), o = m(e.isWidePanel), a = m(e.enableSearch), s = m(e.mode), f = m(e.isPersitOpenState), g = m(e.isShowPanel), u = m(), r = m(), v = m(e.showCloseBtn), l = m(e.selectedTabId), d = m(!0), c = m(e.isWhiteTheme);
2648
+ const n = f(e.width), o = f(e.isWidePanel), l = f(e.enableSearch), s = f(e.mode), d = f(e.isPersitOpenState), m = f(e.isShowPanel), u = f(), r = f(), g = f(e.showCloseBtn), a = f(e.selectedTabId), v = f(!0), c = f(e.isWhiteTheme);
2714
2649
  let p = [], y = [];
2715
- const h = m(""), P = m(), I = m(), C = de("SchemaService");
2716
- let T = [], S = null, w = "";
2717
- const F = m(), {
2718
- proxy: x
2719
- } = ct();
2650
+ const h = f(""), P = f(), I = f(), C = fe("SchemaService");
2651
+ let w = [], T = null, F = "";
2652
+ const S = f(), x = f(0);
2720
2653
  function b() {
2721
- y = [], F.value && F.value.categoryList && Array.isArray(F.value.categoryList) && F.value.categoryList.length > 0 && F.value.categoryList.forEach((j) => {
2722
- if (j.properties.forEach((L) => L.categoryId = j.categoryId), j.properties && Array.isArray(j.properties) && j.properties.length > 0) {
2723
- const L = j.properties.map((W) => (W.category = j, W));
2724
- y = y.concat(L);
2654
+ y = [], S.value && S.value.categoryList && Array.isArray(S.value.categoryList) && S.value.categoryList.length > 0 && S.value.categoryList.forEach((R) => {
2655
+ if (R.properties.forEach((D) => D.categoryId = R.categoryId), R.properties && Array.isArray(R.properties) && R.properties.length > 0) {
2656
+ const D = R.properties.map((H) => (H.category = R, H));
2657
+ y = y.concat(D);
2725
2658
  }
2726
2659
  });
2727
2660
  }
2728
- function R(A) {
2729
- let j = A.offsetTop, L = A.offsetParent;
2730
- for (; L !== null; )
2731
- j += L.offsetTop, L = L.offsetParent;
2732
- return j;
2661
+ function A(L) {
2662
+ let R = L.offsetTop, D = L.offsetParent;
2663
+ for (; D !== null; )
2664
+ R += D.offsetTop, D = D.offsetParent;
2665
+ return R;
2733
2666
  }
2734
- function M(A, j) {
2735
- A && j && Object.keys(j).length > 0 && Object.keys(j).forEach((L) => {
2736
- var X;
2737
- const W = j[L];
2738
- (X = A.style) == null || X.setProperty(L, W);
2667
+ function $(L, R) {
2668
+ L && R && Object.keys(R).length > 0 && Object.keys(R).forEach((D) => {
2669
+ var J;
2670
+ const H = R[D];
2671
+ (J = L.style) == null || J.setProperty(D, H);
2739
2672
  });
2740
2673
  }
2741
2674
  function N() {
2742
- return y.filter((j) => j.visible ? !!(j.propertyID && j.propertyID.startsWith(h.value) || j.propertyName && (j.propertyName.startsWith(h.value) || j.propertyName.includes(h.value))) : !1);
2675
+ return y.filter((R) => R.visible ? !!(R.propertyID && R.propertyID.startsWith(h.value) || R.propertyName && (R.propertyName.startsWith(h.value) || R.propertyName.includes(h.value))) : !1);
2743
2676
  }
2744
- function k(A, j, L) {
2745
- if (A === 0) {
2746
- const W = R(j), le = R(L) - W - 5;
2747
- j == null || j.scroll({
2748
- top: le,
2677
+ function B(L, R, D) {
2678
+ if (L === 0) {
2679
+ const H = A(R), re = A(D) - H - 5;
2680
+ R == null || R.scroll({
2681
+ top: re,
2749
2682
  behavior: "smooth"
2750
2683
  });
2751
2684
  }
2752
2685
  }
2753
- function q(A) {
2754
- T && T.length > 0 && (T.forEach((L) => {
2755
- L.style.cssText = "";
2756
- }), T = []), h.value = A || h.value;
2757
- const j = document.querySelector(".panel-body");
2686
+ function q(L) {
2687
+ w && w.length > 0 && (w.forEach((D) => {
2688
+ D.style.cssText = "";
2689
+ }), w = []), h.value = L || h.value;
2690
+ const R = document.querySelector(".panel-body");
2758
2691
  if (!h.value)
2759
- P.value && j && (j.scrollTop = 0);
2692
+ P.value && R && (R.scrollTop = 0);
2760
2693
  else if (b(), y && y.length > 0) {
2761
- const L = N();
2762
- L && L.length > 0 && (L[0].category.status === "closed" && (L[0].category.status = "open"), setTimeout(() => {
2763
- L.forEach((W, X) => {
2764
- const le = W.propertyType === "cascade" ? `.${W.categoryId}-${W.propertyID} div.col-form-label` : `.property-item .${W.categoryId}-${W.propertyID} label.col-form-label`, ne = document.querySelector(le);
2765
- ne && (k(X, j, ne), M(ne, {
2694
+ const D = N();
2695
+ D && D.length > 0 && (D[0].category.status === "closed" && (D[0].category.status = "open"), setTimeout(() => {
2696
+ D.forEach((H, J) => {
2697
+ const re = H.propertyType === "cascade" ? `.${H.categoryId}-${H.propertyID} div.col-form-label` : `.property-item .${H.categoryId}-${H.propertyID} label.col-form-label`, ne = document.querySelector(re);
2698
+ ne && (B(J, R, ne), $(ne, {
2766
2699
  color: "#5B89FE"
2767
- }), T.push(ne));
2700
+ }), w.push(ne));
2768
2701
  });
2769
2702
  }, 50));
2770
2703
  }
2771
2704
  }
2772
- function _(A) {
2773
- q(A);
2705
+ function _(L) {
2706
+ q(L);
2774
2707
  }
2775
- function G(A) {
2708
+ function G(L) {
2776
2709
  const {
2777
- value: j
2778
- } = A.target;
2779
- A.key === "Enter" && _(j);
2710
+ value: R
2711
+ } = L.target;
2712
+ L.key === "Enter" && _(R);
2780
2713
  }
2781
- function U(A) {
2714
+ function z(L) {
2782
2715
  const {
2783
- value: j
2784
- } = A.target;
2785
- _(j);
2716
+ value: R
2717
+ } = L.target;
2718
+ _(R);
2786
2719
  }
2787
2720
  function _e() {
2788
- f.value || (d.value = !1), t.emit("closePropertyPanel");
2721
+ d.value || (v.value = !1), t.emit("closePropertyPanel");
2789
2722
  }
2790
- function ae(A) {
2723
+ function ae(L) {
2791
2724
  h.value = "", q();
2792
2725
  }
2793
- function ze(A) {
2794
- !A.status || A.status === "open" ? A.status = "closed" : A.status = "open";
2726
+ function Ue(L) {
2727
+ !L.status || L.status === "open" ? L.status = "closed" : L.status = "open";
2795
2728
  }
2796
2729
  function te() {
2797
- var A, j;
2730
+ var L, R;
2798
2731
  if (p = [], !u.value || u.value.length === 0) {
2799
2732
  p = [{
2800
2733
  tabId: "default",
2801
2734
  tabName: "属性",
2802
2735
  categoryList: []
2803
- }], F.value = null;
2736
+ }], S.value = null;
2804
2737
  return;
2805
2738
  }
2806
- if ((A = u == null ? void 0 : u.value) == null || A.forEach((L) => {
2807
- if (L.tabId) {
2808
- const W = p.find((X) => X.tabId === L.tabId);
2809
- W ? (W.categoryList.push(L), W.hide && (W.hide = L.hide || L.properties.length === 0)) : p.push({
2810
- tabId: L.tabId,
2811
- tabName: L.tabName,
2812
- categoryList: [L],
2813
- hide: L.hide || L.properties.length === 0
2739
+ if ((L = u == null ? void 0 : u.value) == null || L.forEach((D) => {
2740
+ if (D.tabId) {
2741
+ const H = p.find((J) => J.tabId === D.tabId);
2742
+ H ? (H.categoryList.push(D), H.hide && (H.hide = D.hide || D.properties.length === 0)) : p.push({
2743
+ tabId: D.tabId,
2744
+ tabName: D.tabName,
2745
+ categoryList: [D],
2746
+ hide: D.hide || D.properties.length === 0
2814
2747
  });
2815
2748
  } else {
2816
- const W = p.find((X) => X.tabId === "default");
2817
- W ? W.categoryList.push(L) : p.push({
2749
+ const H = p.find((J) => J.tabId === "default");
2750
+ H ? H.categoryList.push(D) : p.push({
2818
2751
  tabId: "default",
2819
2752
  tabName: "属性",
2820
- categoryList: [L]
2753
+ categoryList: [D]
2821
2754
  });
2822
2755
  }
2823
- }), l.value) {
2824
- let L = p == null ? void 0 : p.find((W) => W.tabId === l.value && !W.hide);
2825
- F.value = L || p[0];
2756
+ }), a.value) {
2757
+ let D = p == null ? void 0 : p.find((H) => H.tabId === a.value && !H.hide);
2758
+ S.value = D || p[0];
2826
2759
  } else
2827
- F.value = p[0];
2828
- l.value = (j = F.value) == null ? void 0 : j.tabId;
2760
+ S.value = p[0];
2761
+ a.value = (R = S.value) == null ? void 0 : R.tabId;
2829
2762
  }
2830
- H(() => [e.schema, e.isShowPanel], () => {
2831
- r.value = e.schema, u.value = ie(r.value, C, S, w), te(), ae(h.value), x.$forceUpdate();
2832
- }), K(() => {
2763
+ W(() => [e.schema, e.isShowPanel], () => {
2764
+ r.value = e.schema, !e.schema || !e.schema.type ? u.value = [] : u.value = ie(r.value, C, T, F), te(), ae(h.value), x.value++;
2765
+ }), Q(() => {
2833
2766
  te();
2834
2767
  });
2835
- function Ue(A, j) {
2836
- (!r.value || j) && (r.value = j || e.schema), u.value = ie(r.value, C, S, w, A), te(), ae(h.value);
2768
+ function ze(L, R) {
2769
+ (!r.value || R) && (r.value = R || e.schema), u.value = ie(r.value, C, T, F, L), te(), ae(h.value);
2837
2770
  }
2838
- function Qe(A, j) {
2839
- S = A, w = j;
2771
+ function Xe(L, R) {
2772
+ T = L, F = R;
2840
2773
  }
2841
- function be() {
2774
+ function Ce() {
2842
2775
  s.value = s.value === "panel" ? "sidebar" : "panel", s.value === "panel" ? (setTimeout(() => {
2843
2776
  _();
2844
2777
  }, 100), n.value = "300px") : n.value = "41px";
2845
2778
  }
2846
- function Ke() {
2847
- if (v.value)
2779
+ function Qe() {
2780
+ if (g.value)
2848
2781
  return i("div", {
2849
2782
  class: "title-actions"
2850
2783
  }, [i("div", {
@@ -2861,12 +2794,12 @@ const qa = /* @__PURE__ */ z({
2861
2794
  class: "f-icon f-icon-close"
2862
2795
  }, null)])])])])]);
2863
2796
  }
2864
- function Xe() {
2865
- u.value = ie(r.value, C, S, w), te();
2866
- }
2867
2797
  function Je() {
2868
- var A;
2869
- if (a.value && ((A = F.value) == null ? void 0 : A.tabId) !== "commands")
2798
+ u.value = ie(r.value, C, T, F), te();
2799
+ }
2800
+ function Ke() {
2801
+ var L;
2802
+ if (l.value && ((L = S.value) == null ? void 0 : L.tabId) !== "commands")
2870
2803
  return i("div", {
2871
2804
  class: "search"
2872
2805
  }, [i("div", {
@@ -2876,7 +2809,7 @@ const qa = /* @__PURE__ */ z({
2876
2809
  type: "text",
2877
2810
  placeholder: "输入属性名称或编号快速定位",
2878
2811
  autocomplete: "off",
2879
- onKeyup: (j) => G(j),
2812
+ onKeyup: (R) => G(R),
2880
2813
  value: h.value
2881
2814
  }, null), i("div", {
2882
2815
  class: "input-group-append",
@@ -2886,25 +2819,25 @@ const qa = /* @__PURE__ */ z({
2886
2819
  style: [{
2887
2820
  display: h.value && h.value.length > 0 ? "" : "none"
2888
2821
  }],
2889
- onClick: (j) => ae()
2822
+ onClick: (R) => ae()
2890
2823
  }, [i("i", {
2891
2824
  class: "f-icon modal_close"
2892
2825
  }, null)]), i("span", {
2893
2826
  class: "input-group-text input-group-clear",
2894
- onClick: (j) => U(j)
2827
+ onClick: (R) => z(R)
2895
2828
  }, [i("i", {
2896
2829
  class: "f-icon f-icon-search"
2897
2830
  }, null)])])])]);
2898
2831
  }
2899
- function Ze(A) {
2900
- return `${e.propertyName}_${A.categoryId}`;
2832
+ function Ze(L) {
2833
+ return `${e.propertyName}_${L.categoryId}`;
2901
2834
  }
2902
- function Ye(A) {
2903
- t.emit("propertyChanged", A);
2835
+ function Ye(L) {
2836
+ t.emit("propertyChanged", L);
2904
2837
  }
2905
2838
  function et() {
2906
- var A, j;
2907
- if (F.value)
2839
+ var L, R;
2840
+ if (S.value)
2908
2841
  return i("div", {
2909
2842
  class: "panel-body",
2910
2843
  ref: I
@@ -2912,24 +2845,25 @@ const qa = /* @__PURE__ */ z({
2912
2845
  class: ["property-grid", {
2913
2846
  "wide-panel": o.value
2914
2847
  }]
2915
- }, [(j = (A = F.value) == null ? void 0 : A.categoryList) == null ? void 0 : j.map((L) => i("li", {
2916
- key: Ze(L),
2917
- "data-category-id": L == null ? void 0 : L.categoryId
2918
- }, [!L.hide && !L.hideTitle && i("span", {
2848
+ }, [(R = (L = S.value) == null ? void 0 : L.categoryList) == null ? void 0 : R.map((D) => i("li", {
2849
+ key: Ze(D),
2850
+ "data-category-id": D == null ? void 0 : D.categoryId
2851
+ }, [!D.hide && !D.hideTitle && i("span", {
2919
2852
  class: "group-label",
2920
- onClick: () => ze(L)
2853
+ onClick: () => Ue(D)
2921
2854
  }, [i("span", {
2922
2855
  class: ["f-icon mr-2", {
2923
- "f-legend-show": L.status === "closed"
2856
+ "f-legend-show": D.status === "closed"
2924
2857
  }, {
2925
- "f-legend-collapse": L.status === "open" || L.status === void 0
2858
+ "f-legend-collapse": D.status === "open" || D.status === void 0
2926
2859
  }]
2927
- }, null), L.categoryName]), i("div", {
2928
- hidden: L.status === "closed"
2929
- }, [i(Ha, {
2930
- category: L,
2860
+ }, null), D.categoryName]), i("div", {
2861
+ hidden: D.status === "closed"
2862
+ }, [i(Gl, {
2863
+ key: `${D == null ? void 0 : D.categoryId}-${x.value}`,
2864
+ category: D,
2931
2865
  propertyData: r.value,
2932
- onTriggerRefreshPanel: Xe,
2866
+ onTriggerRefreshPanel: Je,
2933
2867
  onValueChanged: Ye
2934
2868
  }, null)])]))])]);
2935
2869
  }
@@ -2937,14 +2871,14 @@ const qa = /* @__PURE__ */ z({
2937
2871
  if (s.value === "sidebar")
2938
2872
  return i("div", {
2939
2873
  class: "side-panel h-100",
2940
- onClick: be
2874
+ onClick: Ce
2941
2875
  }, [i("i", {
2942
2876
  class: "f-icon f-icon-engineering w-100 icon"
2943
2877
  }, null), i("span", null, [Y("属性")])]);
2944
2878
  }
2945
2879
  function nt() {
2946
2880
  return {
2947
- display: d.value ? "block" : "none",
2881
+ display: v.value ? "block" : "none",
2948
2882
  width: n.value
2949
2883
  };
2950
2884
  }
@@ -2956,31 +2890,31 @@ const qa = /* @__PURE__ */ z({
2956
2890
  style: [{
2957
2891
  transform: s.value === "sidebar" ? "none" : "rotate(180deg)"
2958
2892
  }],
2959
- onClick: be
2893
+ onClick: Ce
2960
2894
  }, null)]);
2961
2895
  }
2962
- function at(A) {
2963
- F.value = A, l.value = F.value.tabId, h.value = "";
2896
+ function lt(L) {
2897
+ S.value = L, a.value = S.value.tabId, h.value = "";
2964
2898
  }
2965
- function lt() {
2966
- return p.map((A) => i("div", {
2899
+ function at() {
2900
+ return p.map((L) => i("div", {
2967
2901
  class: ["title-label", {
2968
- active: F.value && F.value.tabId === A.tabId
2902
+ active: S.value && S.value.tabId === L.tabId
2969
2903
  }, {
2970
- hidden: A.hide
2904
+ hidden: L.hide
2971
2905
  }],
2972
- onClick: () => at(A)
2973
- }, [i("span", null, [A.tabName])]));
2906
+ onClick: () => lt(L)
2907
+ }, [i("span", null, [L.tabName])]));
2974
2908
  }
2975
- return K(() => {
2909
+ return Q(() => {
2976
2910
  _(h.value);
2977
- }), dt(() => {
2978
- f.value && (d.value = g.value), te(), _(h.value);
2979
- }), H(F, () => {
2911
+ }), ct(() => {
2912
+ d.value && (v.value = m.value), te(), _(h.value);
2913
+ }), W(S, () => {
2980
2914
  }), t.expose({
2981
- updatePropertyConfig: Ue,
2982
- updateDesignerItem: Qe
2983
- }), () => i(J, null, [i("div", {
2915
+ updatePropertyConfig: ze,
2916
+ updateDesignerItem: Xe
2917
+ }), () => i(K, null, [i("div", {
2984
2918
  ref: P,
2985
2919
  class: ["property-panel", {
2986
2920
  "white-theme": c.value
@@ -2991,13 +2925,13 @@ const qa = /* @__PURE__ */ z({
2991
2925
  hidden: s.value !== "panel"
2992
2926
  }, [i("div", {
2993
2927
  class: ["title d-flex", {
2994
- "p-right": v.value
2928
+ "p-right": g.value
2995
2929
  }, {
2996
2930
  only: p.length === 1
2997
2931
  }]
2998
- }, [lt(), Ke()]), Je(), et()]), ot(), tt()])]);
2932
+ }, [at(), Qe()]), Ke(), et()]), ot(), tt()])]);
2999
2933
  }
3000
- }), _a = {
2934
+ }), Hl = {
3001
2935
  className: {
3002
2936
  description: "样式",
3003
2937
  title: "样式",
@@ -3008,7 +2942,7 @@ const qa = /* @__PURE__ */ z({
3008
2942
  title: "是否必填",
3009
2943
  type: "boolean"
3010
2944
  }
3011
- }, za = {
2945
+ }, _l = {
3012
2946
  className: {
3013
2947
  description: "样式",
3014
2948
  title: "样式",
@@ -3034,7 +2968,7 @@ const qa = /* @__PURE__ */ z({
3034
2968
  title: "最小值",
3035
2969
  type: "number"
3036
2970
  }
3037
- }, Ua = {
2971
+ }, Ul = {
3038
2972
  className: {
3039
2973
  description: "样式",
3040
2974
  title: "样式",
@@ -3082,7 +3016,7 @@ const qa = /* @__PURE__ */ z({
3082
3016
  title: "枚举项",
3083
3017
  type: "string"
3084
3018
  }
3085
- }, Qa = {
3019
+ }, zl = {
3086
3020
  className: {
3087
3021
  description: "样式",
3088
3022
  title: "样式",
@@ -3138,7 +3072,7 @@ const qa = /* @__PURE__ */ z({
3138
3072
  title: "面板宽度",
3139
3073
  type: "number"
3140
3074
  }
3141
- }, Ka = {
3075
+ }, Xl = {
3142
3076
  className: {
3143
3077
  description: "样式",
3144
3078
  title: "样式",
@@ -3159,7 +3093,7 @@ const qa = /* @__PURE__ */ z({
3159
3093
  title: "显示格式",
3160
3094
  type: "string"
3161
3095
  }
3162
- }, Xa = {
3096
+ }, Ql = {
3163
3097
  className: {
3164
3098
  description: "样式",
3165
3099
  title: "样式",
@@ -3180,7 +3114,7 @@ const qa = /* @__PURE__ */ z({
3180
3114
  title: "显示格式",
3181
3115
  type: "string"
3182
3116
  }
3183
- }, Ja = {
3117
+ }, Jl = {
3184
3118
  className: {
3185
3119
  description: "样式",
3186
3120
  title: "样式",
@@ -3201,8 +3135,8 @@ const qa = /* @__PURE__ */ z({
3201
3135
  title: "是否显示标签",
3202
3136
  type: "boolean"
3203
3137
  }
3204
- }, we = {
3205
- text: _a,
3138
+ }, xe = {
3139
+ text: Hl,
3206
3140
  "single-number": {
3207
3141
  className: {
3208
3142
  description: "样式",
@@ -3230,9 +3164,9 @@ const qa = /* @__PURE__ */ z({
3230
3164
  type: "number"
3231
3165
  }
3232
3166
  },
3233
- number: za,
3234
- dropdown: Ua,
3235
- help: Qa,
3167
+ number: _l,
3168
+ dropdown: Ul,
3169
+ help: zl,
3236
3170
  "combolist-help": {
3237
3171
  className: {
3238
3172
  description: "样式",
@@ -3320,7 +3254,7 @@ const qa = /* @__PURE__ */ z({
3320
3254
  type: "boolean"
3321
3255
  }
3322
3256
  },
3323
- date: Ka,
3257
+ date: Xl,
3324
3258
  "single-date": {
3325
3259
  className: {
3326
3260
  description: "样式",
@@ -3387,7 +3321,7 @@ const qa = /* @__PURE__ */ z({
3387
3321
  type: "string"
3388
3322
  }
3389
3323
  },
3390
- month: Xa,
3324
+ month: Ql,
3391
3325
  "single-year": {
3392
3326
  className: {
3393
3327
  description: "样式",
@@ -3410,7 +3344,7 @@ const qa = /* @__PURE__ */ z({
3410
3344
  type: "string"
3411
3345
  }
3412
3346
  },
3413
- radio: Ja,
3347
+ radio: Jl,
3414
3348
  "input-group": {
3415
3349
  className: {
3416
3350
  description: "样式",
@@ -3424,16 +3358,16 @@ const qa = /* @__PURE__ */ z({
3424
3358
  }
3425
3359
  }
3426
3360
  };
3427
- function Za(e, t, n, o) {
3428
- const a = m(), s = m("query-solution-config"), f = m({}), g = m(), u = m(null);
3429
- H(n, (p) => {
3361
+ function Kl(e, t, n, o) {
3362
+ const l = f(), s = f("query-solution-config"), d = f({}), m = f(), u = f(null);
3363
+ W(n, (p) => {
3430
3364
  if (p && p.controlType) {
3431
3365
  const y = {
3432
- ...ce
3366
+ ...pe
3433
3367
  }, {
3434
3368
  controlType: h
3435
3369
  } = p;
3436
- y.categories.control.properties = we[h], u.value = o.value[p.id], a.value.updatePropertyConfig(y, u.value);
3370
+ y.categories.control.properties = xe[h], u.value = o.value[p.id], l.value.updatePropertyConfig(y, u.value);
3437
3371
  }
3438
3372
  });
3439
3373
  function r(p) {
@@ -3445,7 +3379,7 @@ function Za(e, t, n, o) {
3445
3379
  controlType: p.controlType
3446
3380
  };
3447
3381
  }
3448
- function v(p) {
3382
+ function g(p) {
3449
3383
  const y = {
3450
3384
  className: "",
3451
3385
  require: !1
@@ -3523,7 +3457,7 @@ function Za(e, t, n, o) {
3523
3457
  ...h
3524
3458
  };
3525
3459
  }
3526
- function l(p) {
3460
+ function a(p) {
3527
3461
  const y = {
3528
3462
  className: "",
3529
3463
  require: !1,
@@ -3602,47 +3536,47 @@ function Za(e, t, n, o) {
3602
3536
  ...h
3603
3537
  };
3604
3538
  }
3605
- function d(p) {
3606
- return e.source === "query-solution" ? v(p) : l(p);
3539
+ function v(p) {
3540
+ return e.source === "query-solution" ? g(p) : a(p);
3607
3541
  }
3608
- H(() => {
3542
+ W(() => {
3609
3543
  var p;
3610
3544
  return (p = u.value) == null ? void 0 : p.controlType;
3611
3545
  }, (p) => {
3612
3546
  const y = r(n.value);
3613
3547
  y.controlType = p, u.value = {
3614
3548
  ...y,
3615
- ...d(p)
3549
+ ...v(p)
3616
3550
  }, o.value[n.value.id] = u.value;
3617
3551
  const h = {
3618
- ...ce
3552
+ ...pe
3619
3553
  };
3620
- h.categories.control.properties = we[p], a.value.updatePropertyConfig(h, u.value);
3554
+ h.categories.control.properties = xe[p], l.value.updatePropertyConfig(h, u.value);
3621
3555
  });
3622
3556
  function c() {
3623
- return i(J, null, [i(Wa, {
3624
- propertyConfig: g.value,
3625
- ref: a,
3557
+ return i(K, null, [i(Wl, {
3558
+ propertyConfig: m.value,
3559
+ ref: l,
3626
3560
  propertyName: s.value,
3627
- schema: f.value
3561
+ schema: d.value
3628
3562
  }, {
3629
3563
  default: () => [Y(" ")]
3630
3564
  })]);
3631
3565
  }
3632
3566
  return {
3633
3567
  renderPanel: c,
3634
- PropertyPanelInstance: a,
3635
- getExtendSchemaProerty: d,
3568
+ PropertyPanelInstance: l,
3569
+ getExtendSchemaProerty: v,
3636
3570
  getBasicSchemaProerty: r
3637
3571
  };
3638
3572
  }
3639
- const Ya = /* @__PURE__ */ new Map([
3573
+ const Zl = /* @__PURE__ */ new Map([
3640
3574
  ["appearance", ee]
3641
3575
  ]);
3642
- function el(e, t, n) {
3576
+ function Yl(e, t, n) {
3643
3577
  return t;
3644
3578
  }
3645
- const tl = "transfer", nl = "A Farris Component", ol = "object", al = {
3579
+ const ea = "transfer", ta = "A Farris Component", na = "object", oa = {
3646
3580
  basic: {
3647
3581
  description: "Basic Infomation",
3648
3582
  title: "基本信息",
@@ -3664,12 +3598,12 @@ const tl = "transfer", nl = "A Farris Component", ol = "object", al = {
3664
3598
  }
3665
3599
  }
3666
3600
  }
3667
- }, ll = {
3668
- title: tl,
3669
- description: nl,
3670
- type: ol,
3671
- categories: al
3672
- }, il = "https://json-schema.org/draft/2020-12/schema", rl = "https://farris-design.gitee.io/transfer.schema.json", sl = "transfer", ul = "A Farris Component", cl = "object", dl = {
3601
+ }, la = {
3602
+ title: ea,
3603
+ description: ta,
3604
+ type: na,
3605
+ categories: oa
3606
+ }, aa = "https://json-schema.org/draft/2020-12/schema", ra = "https://farris-design.gitee.io/transfer.schema.json", ia = "transfer", sa = "A Farris Component", ua = "object", ca = {
3673
3607
  id: {
3674
3608
  description: "The unique identifier for transfer",
3675
3609
  type: "string"
@@ -3731,17 +3665,17 @@ const tl = "transfer", nl = "A Farris Component", ol = "object", al = {
3731
3665
  type: "boolean",
3732
3666
  default: !0
3733
3667
  }
3734
- }, pl = [
3668
+ }, da = [
3735
3669
  "id",
3736
3670
  "type"
3737
- ], fl = {
3738
- $schema: il,
3739
- $id: rl,
3740
- title: sl,
3741
- description: ul,
3742
- type: cl,
3743
- properties: dl,
3744
- required: pl
3671
+ ], pa = {
3672
+ $schema: aa,
3673
+ $id: ra,
3674
+ title: ia,
3675
+ description: sa,
3676
+ type: ua,
3677
+ properties: ca,
3678
+ required: da
3745
3679
  }, qe = {
3746
3680
  dataSource: {
3747
3681
  type: Array,
@@ -3755,14 +3689,14 @@ const tl = "transfer", nl = "A Farris Component", ol = "object", al = {
3755
3689
  selections: { type: Array, default: [] },
3756
3690
  selectionValues: { type: Array, default: [] }
3757
3691
  };
3758
- Z(qe, fl, Ya, el, ll);
3759
- const ml = /* @__PURE__ */ new Map([
3692
+ Z(qe, pa, Zl, Yl, la);
3693
+ const fa = /* @__PURE__ */ new Map([
3760
3694
  ["appearance", ee]
3761
3695
  ]);
3762
- function vl(e, t, n) {
3696
+ function ma(e, t, n) {
3763
3697
  return t;
3764
3698
  }
3765
- const yl = "https://json-schema.org/draft/2020-12/schema", gl = "https://farris-design.gitee.io/list-view.schema.json", hl = "list-view", bl = "A Farris Component", Cl = "object", Tl = {
3699
+ const va = "https://json-schema.org/draft/2020-12/schema", ya = "https://farris-design.gitee.io/list-view.schema.json", ga = "list-view", ha = "A Farris Component", ba = "object", Ca = {
3766
3700
  id: {
3767
3701
  description: "The unique identifier for list-view",
3768
3702
  type: "string"
@@ -3824,18 +3758,18 @@ const yl = "https://json-schema.org/draft/2020-12/schema", gl = "https://farris-
3824
3758
  type: "boolean",
3825
3759
  default: !0
3826
3760
  }
3827
- }, Sl = [
3761
+ }, wa = [
3828
3762
  "id",
3829
3763
  "type"
3830
- ], Fl = {
3831
- $schema: yl,
3832
- $id: gl,
3833
- title: hl,
3834
- description: bl,
3835
- type: Cl,
3836
- properties: Tl,
3837
- required: Sl
3838
- }, wl = "list-view", xl = "A Farris Component", Bl = "object", kl = {
3764
+ ], Ta = {
3765
+ $schema: va,
3766
+ $id: ya,
3767
+ title: ga,
3768
+ description: ha,
3769
+ type: ba,
3770
+ properties: Ca,
3771
+ required: wa
3772
+ }, Fa = "list-view", Sa = "A Farris Component", xa = "object", ka = {
3839
3773
  basic: {
3840
3774
  description: "Basic Infomation",
3841
3775
  title: "基本信息",
@@ -3857,11 +3791,11 @@ const yl = "https://json-schema.org/draft/2020-12/schema", gl = "https://farris-
3857
3791
  }
3858
3792
  }
3859
3793
  }
3860
- }, Pl = {
3861
- title: wl,
3862
- description: xl,
3863
- type: Bl,
3864
- categories: kl
3794
+ }, Ba = {
3795
+ title: Fa,
3796
+ description: Sa,
3797
+ type: xa,
3798
+ categories: ka
3865
3799
  }, Ge = {
3866
3800
  /** 列集合 */
3867
3801
  columns: {
@@ -3904,88 +3838,91 @@ const yl = "https://json-schema.org/draft/2020-12/schema", gl = "https://farris-
3904
3838
  // 搜索启用高亮
3905
3839
  enableHighlightSearch: { type: Boolean, default: !0 }
3906
3840
  };
3907
- Z(Ge, Fl, ml, vl, Pl);
3908
- function Il(e, t) {
3841
+ Z(Ge, Ta, fa, ma, Ba);
3842
+ function Pa(e, t) {
3909
3843
  function n(s) {
3910
- const f = [];
3911
- let g = s.nextNode();
3912
- for (; g; )
3913
- f.push(g), g = s.nextNode();
3914
- return f;
3915
- }
3916
- function o(s, f) {
3917
- const g = document.createTreeWalker(s, NodeFilter.SHOW_TEXT);
3918
- return n(g).map((l) => ({ textNode: l, text: (l.textContent || "").toLocaleLowerCase() })).map(({ textNode: l, text: d }) => {
3844
+ const d = [];
3845
+ let m = s.nextNode();
3846
+ for (; m; )
3847
+ d.push(m), m = s.nextNode();
3848
+ return d;
3849
+ }
3850
+ function o(s, d) {
3851
+ const m = document.createTreeWalker(s, NodeFilter.SHOW_TEXT);
3852
+ return n(m).map((a) => ({ textNode: a, text: (a.textContent || "").toLocaleLowerCase() })).map(({ textNode: a, text: v }) => {
3919
3853
  const c = [];
3920
3854
  let p = 0;
3921
- for (; p < d.length; ) {
3922
- const y = d.indexOf(f, p);
3855
+ for (; p < v.length; ) {
3856
+ const y = v.indexOf(d, p);
3923
3857
  if (y === -1)
3924
3858
  break;
3925
- c.push(y), p = y + f.length;
3859
+ c.push(y), p = y + d.length;
3926
3860
  }
3927
3861
  return c.map((y) => {
3928
3862
  const h = new Range();
3929
- return h.setStart(l, y), h.setEnd(l, y + f.length), h;
3863
+ return h.setStart(a, y), h.setEnd(a, y + d.length), h;
3930
3864
  });
3931
3865
  }).flat();
3932
3866
  }
3933
- function a(s) {
3867
+ function l(s) {
3934
3868
  if (!CSS.highlights || (CSS.highlights.clear(), !s || !t))
3935
3869
  return;
3936
- const f = o(t.value, s.toLocaleLowerCase()), g = new Highlight(...f);
3937
- CSS.highlights.set("search-result", g);
3870
+ const d = o(t.value, s.toLocaleLowerCase()), m = new Highlight(...d);
3871
+ CSS.highlights.set("search-result", m);
3938
3872
  }
3939
- return { search: a };
3873
+ return { search: l };
3940
3874
  }
3941
- function xe(e, t, n, o, a, s, f, g, u, r) {
3942
- const v = m(e.size), l = m(e.textField), d = m(e.titleField), c = m(e.multiSelect), p = m(e.disableField), {
3875
+ function ke(e, t, n, o, l, s, d, m, u, r) {
3876
+ const g = f(e.size), a = f(e.textField), v = f(e.titleField), c = f(e.disableField), p = k(() => {
3877
+ var x, b;
3878
+ return ((x = e.selection) == null ? void 0 : x.multiSelect) && ((b = e.selection) == null ? void 0 : b.showCheckbox);
3879
+ }), {
3943
3880
  onMouseenterItem: y,
3944
3881
  onMouseoverItem: h,
3945
3882
  onMouseoutItem: P
3946
3883
  } = s, {
3947
3884
  getKey: I,
3948
3885
  listViewItemClass: C,
3949
- onCheckItem: T,
3950
- onClickItem: S
3951
- } = f, w = B(() => ({
3952
- margin: v.value === "small" ? "0.25rem 0" : "10px 0"
3886
+ onCheckItem: w,
3887
+ onClickItem: T
3888
+ } = d, F = k(() => ({
3889
+ margin: g.value === "small" ? "0.25rem 0" : "10px 0"
3953
3890
  }));
3954
- function F(x, b, R) {
3955
- return x.checked = g.findIndexInSelectedItems(x) > -1, i("li", {
3891
+ function S(x, b, A) {
3892
+ return x.checked = m.findIndexInSelectedItems(x) > -1, i("li", {
3956
3893
  class: C(x, b),
3957
3894
  id: I(x, b),
3958
3895
  key: I(x, b),
3959
- onClick: (M) => S(M, x, b),
3960
- onMouseenter: (M) => y(M, x, b),
3961
- onMouseover: (M) => h(M, x, b),
3962
- onMouseout: (M) => P(M, x, b)
3963
- }, [c.value && i("div", {
3896
+ onClick: ($) => T($, x, b),
3897
+ onMouseenter: ($) => y($, x, b),
3898
+ onMouseover: ($) => h($, x, b),
3899
+ onMouseout: ($) => P($, x, b)
3900
+ }, [p.value && i("div", {
3964
3901
  class: "f-list-select",
3965
- onClick: (M) => M.stopPropagation()
3966
- }, [i(fe, {
3902
+ onClick: ($) => $.stopPropagation()
3903
+ }, [i(ve, {
3967
3904
  id: "list-" + I(x, b),
3968
3905
  customClass: "listview-checkbox",
3969
- disabled: x[p.value],
3906
+ disabled: x[c.value],
3970
3907
  checked: x.checked,
3971
- "onUpdate:checked": (M) => x.checked = M,
3972
- onChange: (M) => {
3973
- T(x, b, !M.checked);
3908
+ "onUpdate:checked": ($) => x.checked = $,
3909
+ onChange: ($) => {
3910
+ w(x, b, !$.checked);
3974
3911
  }
3975
3912
  }, null)]), i("div", {
3976
3913
  class: "f-list-content"
3977
3914
  }, [i("div", {
3978
- style: w.value,
3979
- title: x.raw[d.value] || x.raw[l.value]
3980
- }, [x.raw[l.value]])])]);
3915
+ style: F.value,
3916
+ title: x.raw[v.value] || x.raw[a.value]
3917
+ }, [x.raw[a.value]])])]);
3981
3918
  }
3982
3919
  return {
3983
- renderItem: F
3920
+ renderItem: S
3984
3921
  };
3985
3922
  }
3986
- function Vl(e, t, n, o, a, s, f, g, u, r) {
3987
- const v = m(e.multiSelect), l = m(e.disableField), {
3988
- onMouseenterItem: d,
3923
+ function Ia(e, t, n, o, l, s, d, m, u, r) {
3924
+ const g = f(e.multiSelect), a = f(e.disableField), {
3925
+ onMouseenterItem: v,
3989
3926
  onMouseoverItem: c,
3990
3927
  onMouseoutItem: p
3991
3928
  } = s, {
@@ -3993,46 +3930,46 @@ function Vl(e, t, n, o, a, s, f, g, u, r) {
3993
3930
  listViewItemClass: h,
3994
3931
  onCheckItem: P,
3995
3932
  onClickItem: I
3996
- } = f;
3997
- function C(S, w, F) {
3998
- return t.slots.content ? i(J, null, [t.slots.content && t.slots.content({
3999
- item: S.raw,
4000
- index: w,
4001
- selectedItem: F
3933
+ } = d;
3934
+ function C(T, F, S) {
3935
+ return t.slots.content ? i(K, null, [t.slots.content && t.slots.content({
3936
+ item: T.raw,
3937
+ index: F,
3938
+ selectedItem: S
4002
3939
  })]) : i("div", {
4003
3940
  style: "margin: 10px 0;"
4004
- }, [S.raw.name]);
3941
+ }, [T.raw.name]);
4005
3942
  }
4006
- function T(S, w, F) {
3943
+ function w(T, F, S) {
4007
3944
  return i("li", {
4008
- class: h(S, w),
4009
- id: y(S, w),
4010
- key: y(S, w),
4011
- onClick: (x) => I(x, S, w),
4012
- onMouseenter: (x) => d(x, S, w),
4013
- onMouseover: (x) => c(x, S, w),
4014
- onMouseout: (x) => p(x, S, w)
4015
- }, [v.value && i("div", {
3945
+ class: h(T, F),
3946
+ id: y(T, F),
3947
+ key: y(T, F),
3948
+ onClick: (x) => I(x, T, F),
3949
+ onMouseenter: (x) => v(x, T, F),
3950
+ onMouseover: (x) => c(x, T, F),
3951
+ onMouseout: (x) => p(x, T, F)
3952
+ }, [g.value && i("div", {
4016
3953
  class: "f-list-select",
4017
3954
  onClick: (x) => x.stopPropagation()
4018
- }, [i(fe, {
4019
- id: "list-" + y(S, w),
3955
+ }, [i(ve, {
3956
+ id: "list-" + y(T, F),
4020
3957
  customClass: "listview-checkbox",
4021
- disabled: S[l.value] || !S.checked,
4022
- checked: S.checked,
4023
- "onUpdate:checked": (x) => S.checked = x,
4024
- onChange: (x) => P(S, w, !x.checked)
3958
+ disabled: T[a.value] || !T.checked,
3959
+ checked: T.checked,
3960
+ "onUpdate:checked": (x) => T.checked = x,
3961
+ onChange: (x) => P(T, F, !x.checked)
4025
3962
  }, null)]), i("div", {
4026
3963
  class: "f-list-content"
4027
- }, [C(S, w, F)])]);
3964
+ }, [C(T, F, S)])]);
4028
3965
  }
4029
3966
  return {
4030
- renderItem: T
3967
+ renderItem: w
4031
3968
  };
4032
3969
  }
4033
- function Ml(e, t, n, o, a, s, f, g, u, r) {
4034
- const v = m(e.multiSelect), l = m(e.disableField), {
4035
- onMouseenterItem: d,
3970
+ function Va(e, t, n, o, l, s, d, m, u, r) {
3971
+ const g = f(e.multiSelect), a = f(e.disableField), {
3972
+ onMouseenterItem: v,
4036
3973
  onMouseoverItem: c,
4037
3974
  onMouseoutItem: p
4038
3975
  } = s, {
@@ -4040,54 +3977,54 @@ function Ml(e, t, n, o, a, s, f, g, u, r) {
4040
3977
  listViewItemClass: h,
4041
3978
  onCheckItem: P,
4042
3979
  onClickItem: I
4043
- } = f, {
3980
+ } = d, {
4044
3981
  dragstart: C,
4045
- dragenter: T,
4046
- dragover: S,
4047
- dragend: w
3982
+ dragenter: w,
3983
+ dragover: T,
3984
+ dragend: F
4048
3985
  } = o, {
4049
- removeItem: F
4050
- } = u, x = B(() => ({
4051
- margin: v.value ? "10px 0" : "10px 0px 10px 14px"
3986
+ removeItem: S
3987
+ } = u, x = k(() => ({
3988
+ margin: g.value ? "10px 0" : "10px 0px 10px 14px"
4052
3989
  }));
4053
- function b(k) {
3990
+ function b(B) {
4054
3991
  return i("div", {
4055
3992
  style: x.value
4056
- }, [k.raw.name]);
3993
+ }, [B.raw.name]);
4057
3994
  }
4058
- function R() {
3995
+ function A() {
4059
3996
  return t.slots.itemContent ? t.slots.itemContent : b;
4060
3997
  }
4061
- const M = R();
4062
- function N(k, q, _) {
3998
+ const $ = A();
3999
+ function N(B, q, _) {
4063
4000
  return i("li", {
4064
- class: h(k, q),
4065
- id: y(k, q),
4066
- key: y(k, q),
4067
- onClick: (G) => I(G, k, q),
4068
- onMouseenter: (G) => d(G, k, q),
4069
- onMouseover: (G) => c(G, k, q),
4070
- onMouseout: (G) => p(G, k, q),
4001
+ class: h(B, q),
4002
+ id: y(B, q),
4003
+ key: y(B, q),
4004
+ onClick: (G) => I(G, B, q),
4005
+ onMouseenter: (G) => v(G, B, q),
4006
+ onMouseover: (G) => c(G, B, q),
4007
+ onMouseout: (G) => p(G, B, q),
4071
4008
  draggable: "true",
4072
- onDragstart: (G) => C(G, k, q),
4073
- onDragenter: (G) => T(G, q),
4074
- onDragend: (G) => w(G, k),
4075
- onDragover: (G) => S(G, q)
4076
- }, [v.value && i("div", {
4009
+ onDragstart: (G) => C(G, B, q),
4010
+ onDragenter: (G) => w(G, q),
4011
+ onDragend: (G) => F(G, B),
4012
+ onDragover: (G) => T(G, q)
4013
+ }, [g.value && i("div", {
4077
4014
  class: "f-list-select",
4078
4015
  onClick: (G) => G.stopPropagation()
4079
- }, [i(fe, {
4080
- id: "list-" + y(k, q),
4016
+ }, [i(ve, {
4017
+ id: "list-" + y(B, q),
4081
4018
  customClass: "listview-checkbox",
4082
- disabled: k[l.value] || !k.checked,
4083
- checked: k.checked,
4084
- "onUpdate:checked": (G) => k.checked = G,
4085
- onChange: (G) => P(k, q, !G.checked)
4019
+ disabled: B[a.value] || !B.checked,
4020
+ checked: B.checked,
4021
+ "onUpdate:checked": (G) => B.checked = G,
4022
+ onChange: (G) => P(B, q, !G.checked)
4086
4023
  }, null)]), i("div", {
4087
4024
  class: "f-list-content"
4088
- }, [M(k)]), i("div", {
4025
+ }, [$(B)]), i("div", {
4089
4026
  class: "f-list-remove",
4090
- onClick: (G) => F(q)
4027
+ onClick: (G) => S(q)
4091
4028
  }, [i("div", {
4092
4029
  class: "f-list-remove-icon"
4093
4030
  }, [i("i", {
@@ -4102,15 +4039,15 @@ function Ml(e, t, n, o, a, s, f, g, u, r) {
4102
4039
  renderItem: N
4103
4040
  };
4104
4041
  }
4105
- function El(e, t, n, o, a, s, f, g, u, r) {
4042
+ function $a(e, t, n, o, l, s, d, m, u, r) {
4106
4043
  var y;
4107
- const v = m(((y = e.group) == null ? void 0 : y.groupFields) || []), {
4108
- collpaseGroupIconClass: l
4109
- } = a, {
4110
- toggleGroupRow: d
4044
+ const g = f(((y = e.group) == null ? void 0 : y.groupFields) || []), {
4045
+ collpaseGroupIconClass: a
4046
+ } = l, {
4047
+ toggleGroupRow: v
4111
4048
  } = r;
4112
4049
  function c(h, P) {
4113
- P.collapse = !P.collapse, n.value = d(P.collapse ? "collapse" : "expand", P, n.value);
4050
+ P.collapse = !P.collapse, n.value = v(P.collapse ? "collapse" : "expand", P, n.value);
4114
4051
  }
4115
4052
  function p(h, P, I) {
4116
4053
  return h.layer > -1 && i("div", {
@@ -4119,27 +4056,27 @@ function El(e, t, n, o, a, s, f, g, u, r) {
4119
4056
  }, [i("div", {
4120
4057
  class: "fv-grid-group-row-icon"
4121
4058
  }, [i("span", {
4122
- class: l(h)
4059
+ class: a(h)
4123
4060
  }, null)]), i("div", {
4124
4061
  class: "f-navlookup-recommandLabel"
4125
- }, [h.raw[v.value[h.layer]]])]);
4062
+ }, [h.raw[g.value[h.layer]]])]);
4126
4063
  }
4127
4064
  return {
4128
4065
  renderItem: p
4129
4066
  };
4130
4067
  }
4131
- function $l() {
4132
- const e = m(-1), t = m(""), n = m(-1), o = m(!1);
4133
- function a(r, v, l) {
4134
- n.value = l;
4068
+ function Ea() {
4069
+ const e = f(-1), t = f(""), n = f(-1), o = f(!1);
4070
+ function l(r, g, a) {
4071
+ n.value = a;
4135
4072
  }
4136
- function s(r, v, l) {
4137
- o.value || (n.value = l);
4073
+ function s(r, g, a) {
4074
+ o.value || (n.value = a);
4138
4075
  }
4139
- function f(r, v, l) {
4076
+ function d(r, g, a) {
4140
4077
  n.value = -1;
4141
4078
  }
4142
- function g() {
4079
+ function m() {
4143
4080
  o.value = !0;
4144
4081
  }
4145
4082
  function u() {
@@ -4149,125 +4086,131 @@ function $l() {
4149
4086
  activeIndex: e,
4150
4087
  focusedItemId: t,
4151
4088
  hoverIndex: n,
4152
- onMouseenterItem: a,
4089
+ onMouseenterItem: l,
4153
4090
  onMouseoverItem: s,
4154
- onMouseoutItem: f,
4091
+ onMouseoutItem: d,
4155
4092
  resumeHover: u,
4156
- suspendHover: g
4093
+ suspendHover: m
4157
4094
  };
4158
4095
  }
4159
- function Ol(e, t, n, o) {
4160
- const a = m(e.idField), { dataView: s } = n, f = m(-1), g = m(!1), { activeIndex: u, focusedItemId: r, hoverIndex: v, resumeHover: l, suspendHover: d } = o;
4096
+ function Ma(e, t, n, o) {
4097
+ const l = f(e.idField), { dataView: s } = n, d = f(-1), m = f(!1), { activeIndex: u, focusedItemId: r, hoverIndex: g, resumeHover: a, suspendHover: v } = o;
4161
4098
  function c(P, I, C) {
4162
- P.stopPropagation(), d(), I && setTimeout(() => {
4163
- f.value = C, g.value = !0, I.moving = !0;
4099
+ P.stopPropagation(), v(), I && setTimeout(() => {
4100
+ d.value = C, m.value = !0, I.moving = !0;
4164
4101
  });
4165
4102
  }
4166
4103
  function p(P, I) {
4167
- if (P.preventDefault(), f.value !== I) {
4168
- const C = s.value[f.value], T = s.value;
4169
- T.splice(f.value, 1), T.splice(I, 0, C), f.value = I;
4104
+ if (P.preventDefault(), d.value !== I) {
4105
+ const C = s.value[d.value], w = s.value;
4106
+ w.splice(d.value, 1), w.splice(I, 0, C), d.value = I;
4170
4107
  }
4171
4108
  }
4172
4109
  function y(P, I) {
4173
4110
  P.preventDefault(), P.dataTransfer && (P.dataTransfer.dropEffect = "move");
4174
4111
  }
4175
4112
  function h(P, I) {
4176
- I && (I.moving = !1), s.value.forEach((C, T) => {
4177
- C.__fv_index__ = T;
4178
- }), g.value = !1, l(), v.value = I.raw.__fv_index__, u.value = I.raw.__fv_index__, r.value = I.raw[a.value], t.emit("change", s.value), t.emit("activeChange", I);
4113
+ I && (I.moving = !1), s.value.forEach((C, w) => {
4114
+ C.__fv_index__ = w;
4115
+ }), m.value = !1, a(), g.value = I.raw.__fv_index__, u.value = I.raw.__fv_index__, r.value = I.raw[l.value], t.emit("change", s.value), t.emit("activeChange", I);
4179
4116
  }
4180
4117
  return {
4181
4118
  dragstart: c,
4182
4119
  dragenter: p,
4183
4120
  dragover: y,
4184
4121
  dragend: h,
4185
- isDragging: g
4122
+ isDragging: m
4186
4123
  };
4187
4124
  }
4188
- function Dl(e, t, n) {
4125
+ function Oa(e, t, n) {
4189
4126
  const { dataView: o } = n;
4190
- function a(s) {
4127
+ function l(s) {
4191
4128
  if (s > -1 && s < o.value.length) {
4192
- const f = o.value.splice(s, 1);
4193
- t.emit("removeItem", f[0]);
4129
+ const d = o.value.splice(s, 1);
4130
+ t.emit("removeItem", d[0]);
4194
4131
  }
4195
4132
  }
4196
- return { removeItem: a };
4133
+ return { removeItem: l };
4197
4134
  }
4198
- function Rl(e, t, n, o, a, s) {
4199
- const f = m(e.idField), g = m(e.disableField), u = m(e.draggable), r = m(e.itemClass), v = m(e.selection.multiSelect ?? !1), l = m(e.selection.multiSelectMode);
4200
- m(!0);
4201
- const { isDragging: d } = o, { activeIndex: c, focusedItemId: p, hoverIndex: y } = a, { clearSelection: h, getSelectedItems: P, toggleSelectItem: I } = s, C = m(P());
4202
- function T(M, N) {
4203
- const k = {
4135
+ function ja(e, t, n, o, l, s) {
4136
+ const d = f(e.idField), m = f(e.disableField), u = f(e.draggable), r = f(e.itemClass), g = f(e.selection.multiSelect ?? !1), a = f(e.selection.multiSelectMode), { isDragging: v } = o, { activeIndex: c, focusedItemId: p, hoverIndex: y } = l, { clearSelection: h, getSelectedItems: P, toggleSelectItem: I } = s, C = f(P());
4137
+ function w($, N) {
4138
+ const B = {
4139
+ "f-listview-item": !0,
4204
4140
  "f-list-view-group-item": !0,
4205
4141
  "f-list-view-draggable-item": u.value,
4206
- "f-un-click": !M.checked,
4207
- "f-un-select": !!M.raw[g.value],
4208
- "f-listview-active": M.raw.__fv_index__ === c.value,
4209
- "f-listview-hover": !d.value && N === y.value,
4210
- moving: !!M.moving
4142
+ "f-un-click": !$.checked,
4143
+ "f-un-select": !!$.raw[m.value],
4144
+ // 'f-listview-active': item.raw.__fv_index__ === activeIndex.value,
4145
+ // 多选
4146
+ "f-listview-active": C.value.findIndex(
4147
+ (_) => _[d.value] === $.raw[d.value]
4148
+ ) > -1,
4149
+ "f-listview-item-active": C.value.findIndex(
4150
+ (_) => _[d.value] === $.raw[d.value]
4151
+ ) > -1,
4152
+ "f-listview-hover": !v.value && N === y.value,
4153
+ moving: !!$.moving
4211
4154
  };
4212
- return r.value.split(" ").reduce((_, G) => (_[G] = !0, _), k), k;
4155
+ return r.value.split(" ").reduce((_, G) => (_[G] = !0, _), B), B;
4213
4156
  }
4214
- function S(M, N) {
4215
- return M.raw[f.value] || "";
4157
+ function T($, N) {
4158
+ return $.raw[d.value] || "";
4216
4159
  }
4217
- const w = B(() => !v.value);
4218
- function F(M, N, k) {
4219
- M.checked = k, !M.raw[g.value] && (w.value && (p.value = M.raw[f.value]), I(M));
4160
+ const F = k(() => !g.value);
4161
+ function S($, N, B) {
4162
+ $.checked = B, !$.raw[m.value] && (F.value && (p.value = $.raw[d.value]), I($));
4220
4163
  }
4221
- const x = B(() => v.value && l.value === "OnCheckClearByClick"), b = B(() => !v.value || v.value && (l.value === "OnCheckAndClick" || l.value === "OnClick"));
4222
- function R(M, N, k) {
4223
- if (N.raw[g.value]) {
4224
- M.preventDefault(), M.stopPropagation();
4164
+ const x = k(() => g.value && a.value === "OnCheckClearByClick"), b = k(() => !g.value || g.value && (a.value === "OnCheckAndClick" || a.value === "OnClick"));
4165
+ function A($, N, B) {
4166
+ if (N.raw[m.value]) {
4167
+ $.preventDefault(), $.stopPropagation();
4225
4168
  return;
4226
4169
  }
4227
- p.value = N.raw[f.value], c.value = k, x.value && h(n.value), b.value && (I(N), C.value = P()), t.emit("clickItem", { data: C.value, index: k }), t.emit("activeChange", C.value);
4170
+ p.value = N.raw[d.value], c.value = B, x.value && h(n.value), b.value && (I(N), C.value = P()), t.emit("clickItem", { data: C.value, index: B }), t.emit("activeChange", C.value);
4228
4171
  }
4229
4172
  return {
4230
- getKey: S,
4231
- listViewItemClass: T,
4232
- onCheckItem: F,
4233
- onClickItem: R
4173
+ getKey: T,
4174
+ listViewItemClass: w,
4175
+ onCheckItem: S,
4176
+ onClickItem: A
4234
4177
  };
4235
4178
  }
4236
- function jl(e, t, n, o, a, s, f) {
4237
- const g = m(e.view), u = m(e.view === "CardView"), r = m({}), v = m("暂无数据"), l = $l(), d = Ol(e, t, o, l), c = Dl(e, t, o), p = Rl(e, t, n, d, l, s), y = B(() => ({
4179
+ function Aa(e, t, n, o, l, s, d) {
4180
+ const m = f(e.view), u = f(e.view === "CardView"), r = f({}), g = f("暂无数据"), a = Ea(), v = Ma(e, t, o, a), c = Oa(e, t, o), p = ja(e, t, n, v, a, s), y = k(() => ({
4238
4181
  "f-list-view-group": !0,
4239
4182
  "d-flex": u.value,
4240
4183
  "flex-wrap": u.value
4241
- })), h = B(() => !!n.value && n.value.length > 0), P = B(() => n.value.length === 0), I = B(() => P.value && !t.slots.empty);
4184
+ })), h = k(() => !!n.value && n.value.length > 0), P = k(() => n.value.length === 0), I = k(() => P.value && !t.slots.empty);
4242
4185
  function C() {
4243
- return g.value === "SingleView" ? xe : g.value === "DraggableView" ? Ml : (g.value === "ContentView" || g.value === "CardView") && t.slots.content ? Vl : xe;
4186
+ return m.value === "SingleView" ? ke : m.value === "DraggableView" ? Va : (m.value === "ContentView" || m.value === "CardView") && t.slots.content ? Ia : ke;
4244
4187
  }
4245
- const T = C(), {
4246
- renderItem: S
4247
- } = T(e, t, n, d, a, l, p, s, c, f), {
4248
- renderItem: w
4249
- } = El(e, t, n, d, a, l, p, s, c, f), F = [S, w];
4188
+ const w = C(), {
4189
+ renderItem: T
4190
+ } = w(e, t, n, v, l, a, p, s, c, d), {
4191
+ renderItem: F
4192
+ } = $a(e, t, n, v, l, a, p, s, c, d), S = [T, F];
4250
4193
  function x() {
4251
- return n.value.filter((M) => M.visible !== !1).map((M, N) => F[M.type](M, N, r));
4194
+ return n.value.filter(($) => $.visible !== !1).map(($, N) => S[$.type]($, N, r));
4252
4195
  }
4253
4196
  function b() {
4254
4197
  return i("div", {
4255
4198
  class: "f-list-view-emptydata"
4256
4199
  }, [i("p", {
4257
4200
  class: "f-empty-title"
4258
- }, [v.value])]);
4201
+ }, [g.value])]);
4259
4202
  }
4260
- function R() {
4203
+ function A() {
4261
4204
  return i("ul", {
4262
4205
  class: y.value,
4263
4206
  style: "list-style: none;"
4264
4207
  }, [h.value && x(), I.value && b(), t.slots.empty && t.slots.empty()]);
4265
4208
  }
4266
4209
  return {
4267
- renderListArea: R
4210
+ renderListArea: A
4268
4211
  };
4269
4212
  }
4270
- function Ll(e, t, n) {
4213
+ function Da(e, t, n) {
4271
4214
  function o() {
4272
4215
  return t.slots.header && i("div", {
4273
4216
  class: "f-list-view-header"
@@ -4278,26 +4221,26 @@ function Ll(e, t, n) {
4278
4221
  };
4279
4222
  }
4280
4223
  function Be(e, t, n) {
4281
- const o = m(e.headerClass), a = m(e.placeholder), s = m(""), f = B(() => !s.value), g = B(() => !!s.value);
4282
- function u(d) {
4224
+ const o = f(e.headerClass), l = f(e.placeholder), s = f(""), d = k(() => !s.value), m = k(() => !!s.value);
4225
+ function u(v) {
4283
4226
  s.value = "";
4284
4227
  }
4285
- H(s, (d) => {
4286
- e.enableHighlightSearch && n.search(d), t.emit("afterSearch", d);
4228
+ W(s, (v) => {
4229
+ e.enableHighlightSearch && n.search(v), t.emit("afterSearch", v);
4287
4230
  });
4288
- const r = B(() => {
4289
- const d = {
4231
+ const r = k(() => {
4232
+ const v = {
4290
4233
  "form-group": !0,
4291
4234
  "farris-form-group": !0
4292
4235
  };
4293
- return o.value && o.value.split(" ").reduce((p, y) => (p[y] = !0, p), d), d;
4236
+ return o.value && o.value.split(" ").reduce((p, y) => (p[y] = !0, p), v), v;
4294
4237
  });
4295
- function v(d) {
4238
+ function g(v) {
4296
4239
  }
4297
- function l() {
4240
+ function a() {
4298
4241
  return i("div", {
4299
4242
  class: "f-list-view-header",
4300
- onClick: pt(() => v, ["prevent", "stop"])
4243
+ onClick: dt(() => g, ["prevent", "stop"])
4301
4244
  }, [i("div", {
4302
4245
  class: r.value
4303
4246
  }, [i("div", {
@@ -4306,66 +4249,66 @@ function Be(e, t, n) {
4306
4249
  class: "f-cmp-inputgroup"
4307
4250
  }, [i("div", {
4308
4251
  class: "input-group f-state-editable"
4309
- }, [pe(i("input", {
4252
+ }, [me(i("input", {
4310
4253
  class: "form-control f-utils-fill text-left",
4311
- "onUpdate:modelValue": (d) => s.value = d,
4254
+ "onUpdate:modelValue": (v) => s.value = v,
4312
4255
  name: "input-group-value",
4313
4256
  type: "text",
4314
- placeholder: a.value,
4257
+ placeholder: l.value,
4315
4258
  autocomplete: "off"
4316
- }, null), [[ft, s.value]]), i("div", {
4259
+ }, null), [[pt, s.value]]), i("div", {
4317
4260
  class: "input-group-append"
4318
- }, [g.value && i("span", {
4261
+ }, [m.value && i("span", {
4319
4262
  class: "input-group-text input-group-clear",
4320
- onClick: (d) => u()
4263
+ onClick: (v) => u()
4321
4264
  }, [i("i", {
4322
4265
  class: "f-icon f-icon-close-circle"
4323
- }, null)]), f.value && i("span", {
4266
+ }, null)]), d.value && i("span", {
4324
4267
  class: "input-group-text"
4325
4268
  }, [i("span", {
4326
4269
  class: "f-icon f-icon-search"
4327
4270
  }, null)])])])])])])]);
4328
4271
  }
4329
4272
  return {
4330
- renderHeader: l
4273
+ renderHeader: a
4331
4274
  };
4332
4275
  }
4333
- const ke = /* @__PURE__ */ z({
4276
+ const Pe = /* @__PURE__ */ U({
4334
4277
  name: "FListView",
4335
4278
  props: Ge,
4336
4279
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
4337
4280
  setup(e, t) {
4338
- const n = m(), o = m(!0), a = m(!1), s = m([]), f = 0, g = m(e.columns), u = kn(e), r = Pn(e), v = In(e, u), l = Vn(e), d = Mn(e, /* @__PURE__ */ new Map(), r, u, l), c = En(e, d, u, s, t), p = Il(e, n), y = B(() => d.dataView.value.length), h = $n(e, u), P = On(), I = Dn(e, {}, P), C = Rn(e, h, r, u, P, I), T = jn(e, u, I, C), S = Ln(e, u, I, C), w = An(e, g, d, y, f, C, T, S), {
4339
- getVisualData: F
4340
- } = w;
4341
- s.value = F(0, y.value + f - 1);
4342
- const x = B(() => {
4343
- const U = {
4281
+ const n = f(), o = f(!0), l = f(!1), s = f([]), d = 0, m = f(e.columns), u = kn(e), r = Bn(e), g = Pn(e, u), a = In(e), v = Vn(e, /* @__PURE__ */ new Map(), r, u, a), c = $n(e, v, u, s, t), p = Pa(e, n), y = k(() => v.dataView.value.length), h = En(e, t, u), P = Mn(), I = On(e, {}, P), C = jn(e, h, r, u, P, I), w = An(e, u, I, C), T = Dn(e, u, I, C), F = Rn(e, m, v, y, d, C, w, T), {
4282
+ getVisualData: S
4283
+ } = F;
4284
+ s.value = S(0, y.value + d - 1);
4285
+ const x = k(() => {
4286
+ const z = {
4344
4287
  "f-list-view": !0,
4345
4288
  "f-list-view-multiple": e.multiSelect
4346
4289
  };
4347
- return e.size !== "default" && (U[`${e.size}-item`] = !0), U;
4348
- }), b = B(() => !!t.slots.footer || o.value);
4349
- function R() {
4350
- return e.header === "SearchBar" ? Be : e.header === "ContentHeader" ? Ll : Be;
4290
+ return e.size !== "default" && (z[`${e.size}-item`] = !0), z;
4291
+ }), b = k(() => !!t.slots.footer || o.value);
4292
+ function A() {
4293
+ return e.header === "SearchBar" ? Be : e.header === "ContentHeader" ? Da : Be;
4351
4294
  }
4352
- const M = R(), {
4295
+ const $ = A(), {
4353
4296
  renderHeader: N
4354
- } = M(e, t, p), {
4355
- renderListArea: k
4356
- } = jl(e, t, s, d, v, c, w);
4357
- function q(U) {
4358
- p.search(U);
4297
+ } = $(e, t, p), {
4298
+ renderListArea: B
4299
+ } = Aa(e, t, s, v, g, c, F);
4300
+ function q(z) {
4301
+ p.search(z);
4359
4302
  }
4360
- function _(U) {
4361
- U && (d.load(U), s.value = F(0, y.value + f - 1));
4303
+ function _(z) {
4304
+ z && (v.load(z), s.value = S(0, y.value + d - 1));
4362
4305
  }
4363
4306
  t.expose({
4364
4307
  search: q,
4365
4308
  updateDataSource: _
4366
4309
  });
4367
- function G(U) {
4368
- e.multiSelect && (U.preventDefault(), U.stopPropagation());
4310
+ function G(z) {
4311
+ e.multiSelect && (z.preventDefault(), z.stopPropagation());
4369
4312
  }
4370
4313
  return () => i("div", {
4371
4314
  class: x.value,
@@ -4374,39 +4317,39 @@ const ke = /* @__PURE__ */ z({
4374
4317
  ref: n,
4375
4318
  class: "f-list-view-content",
4376
4319
  onMouseover: () => {
4377
- a.value = !0;
4320
+ l.value = !0;
4378
4321
  },
4379
4322
  onMouseleave: () => {
4380
- a.value = !1;
4323
+ l.value = !1;
4381
4324
  }
4382
- }, [k()]), b.value && i("div", {
4325
+ }, [B()]), b.value && i("div", {
4383
4326
  class: "f-list-view-footer"
4384
4327
  }, [t.slots.footer && t.slots.footer()])]);
4385
4328
  }
4386
- }), Al = /* @__PURE__ */ z({
4329
+ }), Ra = /* @__PURE__ */ U({
4387
4330
  name: "FTransfer",
4388
4331
  props: qe,
4389
4332
  emits: ["change", "activeChange"],
4390
4333
  setup(e, t) {
4391
- const n = m(e.identifyField), o = m("已选:"), a = m("项数据"), s = m(e.displayType), f = m(!1), g = m(e.dataSource), u = m(e.selections || []), r = B(() => u.value.map((b) => b[n.value])), v = /* @__PURE__ */ new Map(), l = m();
4392
- function d() {
4393
- const b = /* @__PURE__ */ new Map(), R = e.selectionValues || [];
4394
- R.length && R.reduce((N, k) => (N.set(k, !0), N), b);
4395
- const M = e.selections || [];
4396
- M.length && (b.clear(), M.reduce((N, k) => (N.set(k[n.value], !0), N), b)), u.value.length || (u.value = g.value.filter((N) => b.has(N[n.value])).map((N) => Object.assign({}, N))), g.value.forEach((N) => {
4397
- const k = N[n.value], q = b.has(k);
4398
- N.checked = q, q && v.set(k, N);
4334
+ const n = f(e.identifyField), o = f("已选:"), l = f("项数据"), s = f(e.displayType), d = f(!1), m = f(e.dataSource), u = f(e.selections || []), r = k(() => u.value.map((b) => b[n.value])), g = /* @__PURE__ */ new Map(), a = f();
4335
+ function v() {
4336
+ const b = /* @__PURE__ */ new Map(), A = e.selectionValues || [];
4337
+ A.length && A.reduce((N, B) => (N.set(B, !0), N), b);
4338
+ const $ = e.selections || [];
4339
+ $.length && (b.clear(), $.reduce((N, B) => (N.set(B[n.value], !0), N), b)), u.value.length || (u.value = m.value.filter((N) => b.has(N[n.value])).map((N) => Object.assign({}, N))), m.value.forEach((N) => {
4340
+ const B = N[n.value], q = b.has(B);
4341
+ N.checked = q, q && g.set(B, N);
4399
4342
  });
4400
4343
  }
4401
- d();
4402
- const c = B(() => s.value === "List"), p = B(() => s.value === "Tree");
4344
+ v();
4345
+ const c = k(() => s.value === "List"), p = k(() => s.value === "Tree");
4403
4346
  function y(b) {
4404
- u.value = b.map((R) => Object.assign({}, R)), t.emit("change", u.value);
4347
+ u.value = b.map((A) => Object.assign({}, A)), t.emit("change", u.value);
4405
4348
  }
4406
4349
  function h() {
4407
- return i(ke, {
4350
+ return i(Pe, {
4408
4351
  class: "f-utils-fill",
4409
- data: g.value,
4352
+ data: m.value,
4410
4353
  multiSelect: !0,
4411
4354
  selection: {
4412
4355
  enableSelectRow: !0,
@@ -4426,7 +4369,7 @@ const ke = /* @__PURE__ */ z({
4426
4369
  });
4427
4370
  }
4428
4371
  function P() {
4429
- return i(J, null, null);
4372
+ return i(K, null, null);
4430
4373
  }
4431
4374
  function I() {
4432
4375
  return i("div", {
@@ -4438,37 +4381,37 @@ const ke = /* @__PURE__ */ z({
4438
4381
  }, [c.value && h(), p.value && P()])])]);
4439
4382
  }
4440
4383
  function C(b) {
4441
- const R = b[n.value];
4442
- if (R !== null || R !== void 0) {
4443
- u.value = u.value.filter((N) => N[n.value] !== R);
4444
- const M = v.get(R);
4445
- M && (M.checked = !1, v.delete(R)), t.emit("change", u.value);
4384
+ const A = b[n.value];
4385
+ if (A !== null || A !== void 0) {
4386
+ u.value = u.value.filter((N) => N[n.value] !== A);
4387
+ const $ = g.get(A);
4388
+ $ && ($.checked = !1, g.delete(A)), t.emit("change", u.value);
4446
4389
  }
4447
4390
  }
4448
- H(u, (b) => {
4449
- l.value.updateDataSource(b);
4391
+ W(u, (b) => {
4392
+ a.value.updateDataSource(b);
4450
4393
  });
4451
- function T(b) {
4452
- const R = /* @__PURE__ */ new Map();
4453
- u.value.reduce((M, N) => (M.set(N[n.value], N), M), R), u.value = b.map((M) => R.get(M[n.value])), t.emit("change", u.value);
4394
+ function w(b) {
4395
+ const A = /* @__PURE__ */ new Map();
4396
+ u.value.reduce(($, N) => ($.set(N[n.value], N), $), A), u.value = b.map(($) => A.get($[n.value])), t.emit("change", u.value);
4454
4397
  }
4455
- function S(b) {
4398
+ function T(b) {
4456
4399
  t.emit("activeChange", b);
4457
4400
  }
4458
- function w() {
4459
- return i(ke, {
4460
- ref: l,
4401
+ function F() {
4402
+ return i(Pe, {
4403
+ ref: a,
4461
4404
  style: "flex:1",
4462
4405
  data: u.value,
4463
4406
  draggable: !0,
4464
4407
  view: "DraggableView",
4465
4408
  "keep-order": !0,
4466
- onChange: T,
4409
+ onChange: w,
4467
4410
  onRemoveItem: C,
4468
- onActiveChange: S
4411
+ onActiveChange: T
4469
4412
  }, null);
4470
4413
  }
4471
- function F() {
4414
+ function S() {
4472
4415
  return i("div", {
4473
4416
  class: "f-utils-fill selection-pane d-flex flex-column"
4474
4417
  }, [i("div", {
@@ -4481,21 +4424,21 @@ const ke = /* @__PURE__ */ z({
4481
4424
  class: "selection-count"
4482
4425
  }, [u.value && u.value.length]), i("span", {
4483
4426
  class: "selection-item-title"
4484
- }, [a.value])]), i("div", {
4427
+ }, [l.value])]), i("div", {
4485
4428
  class: "container columns-box f-utils-fill d-flex"
4486
- }, [w()])])]);
4429
+ }, [F()])])]);
4487
4430
  }
4488
- const x = B(() => ({
4431
+ const x = k(() => ({
4489
4432
  transfer: !0,
4490
4433
  row: !0,
4491
- "f-utils-fill": f.value
4434
+ "f-utils-fill": d.value
4492
4435
  }));
4493
4436
  return () => i("div", {
4494
4437
  class: x.value,
4495
4438
  style: "height:480px"
4496
- }, [I(), F()]);
4439
+ }, [I(), S()]);
4497
4440
  }
4498
- }), Nl = [
4441
+ }), La = [
4499
4442
  { id: "text", name: "文本", controlType: "text" },
4500
4443
  { id: "single-number", name: "数值", controlType: "single-number" },
4501
4444
  { id: "number", name: "数值区间", controlType: "number" },
@@ -4511,71 +4454,71 @@ const ke = /* @__PURE__ */ z({
4511
4454
  { id: "radio", name: "单选", controlType: "radio" },
4512
4455
  { id: "input-group", name: "富文本", controlType: "input-group" }
4513
4456
  ];
4514
- function ql(e, t, n, o, a) {
4515
- const s = m(!1), f = m(), g = m([]), u = m([]), r = m([]), {
4516
- getExtendSchemaProerty: v,
4517
- getBasicSchemaProerty: l
4518
- } = a;
4519
- function d(C) {
4457
+ function Na(e, t, n, o, l) {
4458
+ const s = f(!1), d = f(), m = f([]), u = f([]), r = f([]), {
4459
+ getExtendSchemaProerty: g,
4460
+ getBasicSchemaProerty: a
4461
+ } = l;
4462
+ function v(C) {
4520
4463
  n.value = C.length ? C[0] : null;
4521
4464
  }
4522
4465
  function c(C) {
4523
4466
  u.value = C;
4524
4467
  }
4525
4468
  function p() {
4526
- return Nl;
4469
+ return La;
4527
4470
  }
4528
4471
  function y() {
4529
4472
  r.value = p();
4530
- const C = {}, T = Q(e.modelValue) || [];
4531
- u.value = [], r.value.forEach((S) => {
4532
- const w = T.find((F) => F.id === S.id);
4533
- w ? (C[S.id] = {
4534
- id: w.id,
4535
- code: w.code,
4536
- labelCode: w.labelCode,
4537
- name: w.name,
4538
- controlType: w.editor.type,
4539
- ...w.editor
4540
- }, delete C[S.id].type, u.value.push(C[S.id])) : C[S.id] = {
4541
- ...l(S),
4542
- ...v(S.controlType)
4473
+ const C = {}, w = X(e.modelValue) || [];
4474
+ u.value = [], r.value.forEach((T) => {
4475
+ const F = w.find((S) => S.id === T.id);
4476
+ F ? (C[T.id] = {
4477
+ id: F.id,
4478
+ code: F.code,
4479
+ labelCode: F.labelCode,
4480
+ name: F.name,
4481
+ controlType: F.editor.type,
4482
+ ...F.editor
4483
+ }, delete C[T.id].type, u.value.push(C[T.id])) : C[T.id] = {
4484
+ ...a(T),
4485
+ ...g(T.controlType)
4543
4486
  };
4544
- }), o.value = C, s.value = !0, f.value = Q(C), g.value = Q(u.value);
4487
+ }), o.value = C, s.value = !0, d.value = X(C), m.value = X(u.value);
4545
4488
  }
4546
4489
  function h() {
4547
4490
  const C = [];
4548
- u.value.forEach((T) => {
4549
- const S = o.value[T.id];
4550
- if (S) {
4491
+ u.value.forEach((w) => {
4492
+ const T = o.value[w.id];
4493
+ if (T) {
4551
4494
  const {
4552
- id: w,
4553
- code: F,
4495
+ id: F,
4496
+ code: S,
4554
4497
  labelCode: x,
4555
4498
  name: b,
4556
- ...R
4557
- } = S;
4558
- R.type = R.controlType, delete R.controlType;
4559
- const M = {
4560
- id: w,
4561
- code: F,
4499
+ ...A
4500
+ } = T;
4501
+ A.type = A.controlType, delete A.controlType;
4502
+ const $ = {
4503
+ id: F,
4504
+ code: S,
4562
4505
  labelCode: x,
4563
4506
  name: b,
4564
- editor: R
4507
+ editor: A
4565
4508
  };
4566
- C.push(M);
4509
+ C.push($);
4567
4510
  }
4568
- }), t.emit("update:modelValue", C), g.value = Q(u.value);
4511
+ }), t.emit("update:modelValue", C), m.value = X(u.value);
4569
4512
  }
4570
4513
  function P() {
4571
- u.value = Q(g.value);
4514
+ u.value = X(m.value);
4572
4515
  }
4573
4516
  function I() {
4574
- return s.value ? i(Al, {
4517
+ return s.value ? i(Ra, {
4575
4518
  selections: u.value,
4576
4519
  "data-source": r.value,
4577
4520
  class: "query-solution-config-transfer",
4578
- onActiveChange: d,
4521
+ onActiveChange: v,
4579
4522
  onChange: c
4580
4523
  }, null) : null;
4581
4524
  }
@@ -4587,13 +4530,13 @@ function ql(e, t, n, o, a) {
4587
4530
  cancel: P
4588
4531
  };
4589
4532
  }
4590
- const Gl = /* @__PURE__ */ new Map([
4591
- ["appearance", Nn]
4533
+ const qa = /* @__PURE__ */ new Map([
4534
+ ["appearance", Ln]
4592
4535
  ]);
4593
- function Hl(e, t, n) {
4536
+ function Ga(e, t, n) {
4594
4537
  return t;
4595
4538
  }
4596
- const Wl = "https://json-schema.org/draft/2020-12/schema", _l = "https://farris-design.gitee.io/button-edit.schema.json", zl = "button-edit", Ul = "A Farris Input Component", Ql = "object", Kl = {
4539
+ const Wa = "https://json-schema.org/draft/2020-12/schema", Ha = "https://farris-design.gitee.io/button-edit.schema.json", _a = "button-edit", Ua = "A Farris Input Component", za = "object", Xa = {
4597
4540
  id: {
4598
4541
  description: "The unique identifier for a Input Group",
4599
4542
  type: "string"
@@ -4777,18 +4720,18 @@ const Wl = "https://json-schema.org/draft/2020-12/schema", _l = "https://farris-
4777
4720
  type: "string",
4778
4721
  default: ""
4779
4722
  }
4780
- }, Xl = [
4723
+ }, Qa = [
4781
4724
  "id",
4782
4725
  "type"
4783
- ], Jl = {
4784
- $schema: Wl,
4785
- $id: _l,
4786
- title: zl,
4787
- description: Ul,
4788
- type: Ql,
4789
- properties: Kl,
4790
- required: Xl
4791
- }, Zl = "buttonEdit", Yl = "A Farris Component", ei = "object", ti = {
4726
+ ], Ja = {
4727
+ $schema: Wa,
4728
+ $id: Ha,
4729
+ title: _a,
4730
+ description: Ua,
4731
+ type: za,
4732
+ properties: Xa,
4733
+ required: Qa
4734
+ }, Ka = "buttonEdit", Za = "A Farris Component", Ya = "object", er = {
4792
4735
  basic: {
4793
4736
  description: "Basic Infomation",
4794
4737
  title: "基本信息",
@@ -4870,12 +4813,12 @@ const Wl = "https://json-schema.org/draft/2020-12/schema", _l = "https://farris-
4870
4813
  }
4871
4814
  }
4872
4815
  }
4873
- }, ni = {
4874
- title: Zl,
4875
- description: Yl,
4876
- type: ei,
4877
- categories: ti
4878
- }, He = {
4816
+ }, tr = {
4817
+ title: Ka,
4818
+ description: Za,
4819
+ type: Ya,
4820
+ categories: er
4821
+ }, We = {
4879
4822
  /**
4880
4823
  * 组件标识
4881
4824
  */
@@ -4982,83 +4925,83 @@ const Wl = "https://json-schema.org/draft/2020-12/schema", _l = "https://farris-
4982
4925
  */
4983
4926
  beforeOpen: { type: Function, default: null }
4984
4927
  };
4985
- Z(He, Jl, Gl, Hl, ni);
4986
- const oi = {
4928
+ Z(We, Ja, qa, Ga, tr);
4929
+ const nr = {
4987
4930
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
4988
4931
  host: { type: Object },
4989
4932
  backgroundColor: { type: String, default: "" }
4990
- }, ai = /* @__PURE__ */ z({
4933
+ }, or = /* @__PURE__ */ U({
4991
4934
  name: "FOverlay",
4992
- props: oi,
4935
+ props: nr,
4993
4936
  emits: ["click"],
4994
4937
  setup(e, t) {
4995
- const n = m(e.popupContentPosition), o = m(e.host), a = B(() => ({
4938
+ const n = f(e.popupContentPosition), o = f(e.host), l = k(() => ({
4996
4939
  backgroundColor: e.backgroundColor || "",
4997
4940
  pointerEvents: "auto"
4998
4941
  }));
4999
- function s(g) {
5000
- t.emit("click"), g.preventDefault(), g.stopPropagation();
4942
+ function s(m) {
4943
+ t.emit("click"), m.preventDefault(), m.stopPropagation();
5001
4944
  }
5002
- B(() => {
5003
- const g = o.value;
5004
- if (g) {
5005
- const u = g.getBoundingClientRect(), {
4945
+ k(() => {
4946
+ const m = o.value;
4947
+ if (m) {
4948
+ const u = m.getBoundingClientRect(), {
5006
4949
  left: r,
5007
- top: v,
5008
- height: l
4950
+ top: g,
4951
+ height: a
5009
4952
  } = u;
5010
4953
  return {
5011
4954
  left: r,
5012
- top: v + l
4955
+ top: g + a
5013
4956
  };
5014
4957
  }
5015
4958
  return n.value;
5016
4959
  });
5017
- const f = B(() => ({
4960
+ const d = k(() => ({
5018
4961
  // position: 'relative',
5019
4962
  // left: `${position.value.left}px`,
5020
4963
  // top: `${position.value.top}px`
5021
4964
  }));
5022
- return () => i(mt, {
4965
+ return () => i(ft, {
5023
4966
  to: "body"
5024
4967
  }, {
5025
4968
  default: () => {
5026
- var g, u;
4969
+ var m, u;
5027
4970
  return [i("div", {
5028
4971
  class: "overlay-container",
5029
4972
  onClick: (r) => s(r),
5030
- style: a.value
4973
+ style: l.value
5031
4974
  }, [i("div", {
5032
- style: f.value
5033
- }, [(u = (g = t.slots).default) == null ? void 0 : u.call(g)])])];
4975
+ style: d.value
4976
+ }, [(u = (m = t.slots).default) == null ? void 0 : u.call(m)])])];
5034
4977
  }
5035
4978
  });
5036
4979
  }
5037
4980
  });
5038
- function li(e) {
4981
+ function lr(e) {
5039
4982
  if (e.content && e.content.render)
5040
4983
  return e.content.render;
5041
4984
  if (e.render && typeof e.render == "function")
5042
4985
  return e.render;
5043
4986
  }
5044
- function ii(e) {
4987
+ function ar(e) {
5045
4988
  const t = document.createElement("div");
5046
4989
  t.style.display = "contents";
5047
4990
  let n;
5048
4991
  const o = e.onClickCallback || (() => {
5049
- }), a = () => {
4992
+ }), l = () => {
5050
4993
  o(), n && n.unmount();
5051
4994
  };
5052
- return n = vt({
4995
+ return n = mt({
5053
4996
  setup() {
5054
- yt(() => {
4997
+ vt(() => {
5055
4998
  document.body.removeChild(t);
5056
4999
  });
5057
- const s = li(e);
5058
- return () => i(ai, {
5000
+ const s = lr(e);
5001
+ return () => i(or, {
5059
5002
  "popup-content-position": e.popupPosition,
5060
5003
  host: e.host,
5061
- onClick: a,
5004
+ onClick: l,
5062
5005
  backgroundColor: e.backgroundColor
5063
5006
  }, {
5064
5007
  default: () => [s && s()]
@@ -5066,47 +5009,47 @@ function ii(e) {
5066
5009
  }
5067
5010
  }), document.body.appendChild(t), n.mount(t), n;
5068
5011
  }
5069
- class ri {
5012
+ class rr {
5070
5013
  static show(t) {
5071
- return ii(t);
5014
+ return ar(t);
5072
5015
  }
5073
5016
  }
5074
- const si = Symbol("FModalService");
5075
- function We(e, t) {
5017
+ const ir = Symbol("FModalService");
5018
+ function He(e, t) {
5076
5019
  function n() {
5077
5020
  const o = e.beforeOpen || e.beforeClickButton || null;
5078
- let a = Promise.resolve(!0);
5021
+ let l = Promise.resolve(!0);
5079
5022
  if (o) {
5080
5023
  const s = o(t.value);
5081
5024
  if (typeof s > "u")
5082
- return a;
5083
- typeof s == "boolean" ? a = Promise.resolve(s) : a = s;
5025
+ return l;
5026
+ typeof s == "boolean" ? l = Promise.resolve(s) : l = s;
5084
5027
  }
5085
- return a;
5028
+ return l;
5086
5029
  }
5087
5030
  return { judgeCanOpen: n };
5088
5031
  }
5089
- function ui(e, t, n, o, a) {
5090
- const s = m(e.buttonBehavior), f = m(e.popupOnInput), g = B(() => ({
5032
+ function sr(e, t, n, o, l) {
5033
+ const s = f(e.buttonBehavior), d = f(e.popupOnInput), m = k(() => ({
5091
5034
  "input-group-append": !0,
5092
5035
  "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
5093
- })), { judgeCanOpen: u } = We(e, a), r = B(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), v = de(si, null), l = m();
5094
- async function d(y) {
5036
+ })), { judgeCanOpen: u } = He(e, l), r = k(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), g = fe(ir, null), a = f();
5037
+ async function v(y) {
5095
5038
  if (await u() && r.value) {
5096
5039
  const h = !!t.slots.default;
5097
5040
  if (s.value === "Modal") {
5098
- const P = e.modalOptions, I = v == null ? void 0 : v.open({
5041
+ const P = e.modalOptions, I = g == null ? void 0 : g.open({
5099
5042
  ...P,
5100
5043
  render: () => t.slots.default && t.slots.default()
5101
5044
  });
5102
- l.value = I == null ? void 0 : I.modalRef;
5045
+ a.value = I == null ? void 0 : I.modalRef;
5103
5046
  }
5104
- s.value === "Overlay" && ri.show({
5047
+ s.value === "Overlay" && rr.show({
5105
5048
  // host: buttonEditRef.value,
5106
5049
  host: document.body,
5107
5050
  backgroundColor: "rgba(0,0,0,.15)",
5108
5051
  render: () => t.slots.default && t.slots.default()
5109
- }), h && s.value === "Popup" && o.togglePopup(!0), h && f.value && o.hidePopup(), t.emit("clickButton", { origin: y, value: e.modelValue });
5052
+ }), h && s.value === "Popup" && o.togglePopup(!0), h && d.value && o.hidePopup(), t.emit("clickButton", { origin: y, value: e.modelValue });
5110
5053
  }
5111
5054
  }
5112
5055
  function c(y) {
@@ -5116,27 +5059,27 @@ function ui(e, t, n, o, a) {
5116
5059
  t.emit("mouseLeaveIcon", y);
5117
5060
  }
5118
5061
  return {
5119
- buttonGroupClass: g,
5120
- onClickButton: d,
5062
+ buttonGroupClass: m,
5063
+ onClickButton: v,
5121
5064
  onMouseEnterButton: c,
5122
5065
  onMouseLeaveButton: p,
5123
- modalRef: l
5066
+ modalRef: a
5124
5067
  };
5125
5068
  }
5126
- function ci(e, t, n, o, a, s) {
5127
- const f = m(!1), g = B(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: u } = s;
5069
+ function ur(e, t, n, o, l, s) {
5070
+ const d = f(!1), m = k(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: u } = s;
5128
5071
  function r(c) {
5129
- f.value = c;
5072
+ d.value = c;
5130
5073
  }
5131
- H(a, () => {
5132
- r(!!a.value);
5074
+ W(l, () => {
5075
+ r(!!l.value);
5133
5076
  });
5134
- function v(c) {
5077
+ function g(c) {
5135
5078
  const p = !e.readonly && !e.disable && e.editable, y = !e.editable;
5136
- c.stopPropagation(), (p || y) && (u("", !1), r(!f.value), t.emit("clear"));
5079
+ c.stopPropagation(), (p || y) && (u("", !1), r(!d.value), t.emit("clear"));
5137
5080
  }
5138
- function l(c) {
5139
- if (g.value) {
5081
+ function a(c) {
5082
+ if (m.value) {
5140
5083
  if (!n.value) {
5141
5084
  r(!1);
5142
5085
  return;
@@ -5144,73 +5087,73 @@ function ci(e, t, n, o, a, s) {
5144
5087
  !e.disable && !e.readonly && r(!0);
5145
5088
  }
5146
5089
  }
5147
- function d(c) {
5148
- g.value && r(!1);
5090
+ function v(c) {
5091
+ m.value && r(!1);
5149
5092
  }
5150
5093
  return {
5151
- enableClearButton: g,
5152
- showClearButton: f,
5153
- onClearValue: v,
5154
- onMouseEnterTextBox: l,
5155
- onMouseLeaveTextBox: d
5094
+ enableClearButton: m,
5095
+ showClearButton: d,
5096
+ onClearValue: g,
5097
+ onMouseEnterTextBox: a,
5098
+ onMouseLeaveTextBox: v
5156
5099
  };
5157
5100
  }
5158
- function di(e, t, n, o, a) {
5159
- const s = B(() => e.popupOnInput), f = B(() => e.popupOnFocus), { shouldPopupContent: g } = a, u = B(() => e.enableTitle ? n.value : ""), r = B(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = B(() => e.readonly || !e.editable), l = m(!1), d = B(() => !e.disable && l.value), c = B(() => ({
5101
+ function cr(e, t, n, o, l) {
5102
+ const s = k(() => e.popupOnInput), d = k(() => e.popupOnFocus), { shouldPopupContent: m } = l, u = k(() => e.enableTitle ? n.value : ""), r = k(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), g = k(() => e.readonly || !e.editable), a = f(!1), v = k(() => !e.disable && a.value), c = k(() => ({
5160
5103
  "text-left": e.textAlign === "left",
5161
5104
  "text-center": e.textAlign === "center",
5162
5105
  "text-right": e.textAlign === "right",
5163
5106
  "form-control": !0,
5164
5107
  "f-utils-fill": !0
5165
- })), p = B(() => ({
5108
+ })), p = k(() => ({
5166
5109
  "input-group": !0,
5167
5110
  "f-state-disable": e.disable,
5168
5111
  "f-state-editable": e.editable && !e.disable && !e.readonly,
5169
5112
  "f-state-readonly": e.readonly && !e.disable,
5170
- "f-state-focus": d.value
5113
+ "f-state-focus": v.value
5171
5114
  }));
5172
- function y(b, R = !0) {
5173
- n.value !== b && (n.value = b, R && t.emit("change", b), t.emit("update:modelValue", b));
5115
+ function y(b, A = !0) {
5116
+ n.value !== b && (n.value = b, A && t.emit("change", b), t.emit("update:modelValue", b));
5174
5117
  }
5175
5118
  function h(b) {
5176
- g.value = !1, y(b, !0);
5119
+ m.value = !1, y(b, !0);
5177
5120
  }
5178
- H(
5121
+ W(
5179
5122
  () => e.modelValue,
5180
5123
  (b) => {
5181
5124
  n.value = b;
5182
5125
  }
5183
5126
  );
5184
5127
  function P(b) {
5185
- l.value = !1, t.emit("blur", b), b.stopPropagation();
5128
+ a.value = !1, t.emit("blur", b), b.stopPropagation();
5186
5129
  }
5187
5130
  function I(b) {
5188
5131
  t.emit("click", b);
5189
5132
  }
5190
5133
  function C(b) {
5191
- e.disable || (l.value = !0, v.value || (t.emit("focus", b), f.value && !g.value && a.popup()));
5134
+ e.disable || (a.value = !0, g.value || (t.emit("focus", b), d.value && !m.value && l.popup()));
5192
5135
  }
5193
- function T(b) {
5136
+ function w(b) {
5194
5137
  t.emit("input", b.target.value);
5195
- const R = b.target.value;
5196
- o.value = R, n.value !== R && y(R, !0), s.value && !g.value && a.popup();
5138
+ const A = b.target.value;
5139
+ o.value = A, n.value !== A && y(A, !0), s.value && !m.value && l.popup();
5197
5140
  }
5198
- function S(b) {
5141
+ function T(b) {
5199
5142
  b.target.tagName !== "INPUT" && b.preventDefault(), b.stopPropagation();
5200
5143
  }
5201
- function w(b) {
5144
+ function F(b) {
5202
5145
  t.emit("keydown", b);
5203
5146
  }
5204
- function F(b) {
5205
- b.key === "Enter" && (s.value || f.value) && a.hidePopup(), t.emit("keyup", b);
5147
+ function S(b) {
5148
+ b.key === "Enter" && (s.value || d.value) && l.hidePopup(), t.emit("keyup", b);
5206
5149
  }
5207
5150
  function x(b) {
5208
- const R = b.target.value;
5209
- b.stopPropagation(), y(R);
5151
+ const A = b.target.value;
5152
+ b.stopPropagation(), y(A);
5210
5153
  }
5211
5154
  return {
5212
- hasFocusedTextBox: d,
5213
- isTextBoxReadonly: v,
5155
+ hasFocusedTextBox: v,
5156
+ isTextBoxReadonly: g,
5214
5157
  textBoxClass: c,
5215
5158
  textBoxPlaceholder: r,
5216
5159
  textBoxTitle: u,
@@ -5220,54 +5163,54 @@ function di(e, t, n, o, a) {
5220
5163
  onBlurTextBox: P,
5221
5164
  onClickTextBox: I,
5222
5165
  onFocusTextBox: C,
5223
- onInput: T,
5224
- onKeyDownTextBox: w,
5225
- onKeyUpTextBox: F,
5226
- onMouseDownTextBox: S,
5166
+ onInput: w,
5167
+ onKeyDownTextBox: F,
5168
+ onKeyUpTextBox: S,
5169
+ onMouseDownTextBox: T,
5227
5170
  onTextBoxValueChange: x
5228
5171
  };
5229
5172
  }
5230
- function pi(e, t, n, o) {
5231
- const a = m(), s = m(!1), { judgeCanOpen: f } = We(e, o);
5232
- function g() {
5233
- const l = a.value;
5234
- l && l.show(n.value);
5173
+ function dr(e, t, n, o) {
5174
+ const l = f(), s = f(!1), { judgeCanOpen: d } = He(e, o);
5175
+ function m() {
5176
+ const a = l.value;
5177
+ a && a.show(n.value);
5235
5178
  }
5236
- async function u(l = !1) {
5179
+ async function u(a = !1) {
5237
5180
  if (!!t.slots.default) {
5238
- if (!l && !s.value && !await f())
5181
+ if (!a && !s.value && !await d())
5239
5182
  return;
5240
- s.value = !s.value, await oe(), g();
5183
+ s.value = !s.value, await oe(), m();
5241
5184
  }
5242
5185
  }
5243
- async function r(l = !1) {
5186
+ async function r(a = !1) {
5244
5187
  if (!!t.slots.default) {
5245
- if (!l && !await f())
5188
+ if (!a && !await d())
5246
5189
  return;
5247
- s.value = !0, await oe(), g();
5190
+ s.value = !0, await oe(), m();
5248
5191
  }
5249
5192
  }
5250
- function v() {
5193
+ function g() {
5251
5194
  s.value = !1;
5252
5195
  }
5253
- return { hidePopup: v, popup: r, shouldPopupContent: s, togglePopup: u, popoverRef: a };
5196
+ return { hidePopup: g, popup: r, shouldPopupContent: s, togglePopup: u, popoverRef: l };
5254
5197
  }
5255
- function fi(e, t, n) {
5256
- const o = m(), {
5257
- isTextBoxReadonly: a,
5198
+ function pr(e, t, n) {
5199
+ const o = f(), {
5200
+ isTextBoxReadonly: l,
5258
5201
  textBoxClass: s,
5259
- textBoxPlaceholder: f,
5260
- textBoxTitle: g,
5202
+ textBoxPlaceholder: d,
5203
+ textBoxTitle: m,
5261
5204
  onBlurTextBox: u,
5262
5205
  onClickTextBox: r,
5263
- onFocusTextBox: v,
5264
- onInput: l,
5265
- onKeyDownTextBox: d,
5206
+ onFocusTextBox: g,
5207
+ onInput: a,
5208
+ onKeyDownTextBox: v,
5266
5209
  onKeyUpTextBox: c,
5267
5210
  onMouseDownTextBox: p,
5268
5211
  onTextBoxValueChange: y
5269
5212
  } = n;
5270
- return K(() => {
5213
+ return Q(() => {
5271
5214
  var h, P;
5272
5215
  e.selectOnCreated && ((h = o.value) == null || h.select()), e.focusOnCreated && ((P = o.value) == null || P.focus());
5273
5216
  }), () => i("input", {
@@ -5278,83 +5221,83 @@ function fi(e, t, n) {
5278
5221
  disabled: e.disable,
5279
5222
  maxlength: e.maxLength,
5280
5223
  minlength: e.minLength,
5281
- placeholder: f.value,
5282
- readonly: a.value,
5224
+ placeholder: d.value,
5225
+ readonly: l.value,
5283
5226
  tabindex: e.tabIndex,
5284
- title: g.value,
5227
+ title: m.value,
5285
5228
  type: e.inputType,
5286
5229
  value: t.value,
5287
5230
  onBlur: u,
5288
5231
  onChange: y,
5289
5232
  onClick: r,
5290
- onFocus: v,
5291
- onInput: l,
5292
- onKeydown: d,
5233
+ onFocus: g,
5234
+ onInput: a,
5235
+ onKeydown: v,
5293
5236
  onKeyup: c,
5294
5237
  onMousedown: p
5295
5238
  }, null);
5296
5239
  }
5297
- function mi(e, t, n) {
5298
- const o = m(e.separator), {
5299
- changeTextBoxValue: a
5300
- } = n, s = B(() => t.value ? t.value.split(o.value).map((g) => ({
5301
- name: g,
5240
+ function fr(e, t, n) {
5241
+ const o = f(e.separator), {
5242
+ changeTextBoxValue: l
5243
+ } = n, s = k(() => t.value ? t.value.split(o.value).map((m) => ({
5244
+ name: m,
5302
5245
  selectable: !0
5303
5246
  })) : []);
5304
- function f(g) {
5305
- a(g.map((u) => u.name).join(o.value), !0);
5247
+ function d(m) {
5248
+ l(m.map((u) => u.name).join(o.value), !0);
5306
5249
  }
5307
- return () => i(Ie, {
5250
+ return () => i(Ve, {
5308
5251
  id: `${e.id}-tag-editor`,
5309
5252
  class: "form-control",
5310
5253
  data: s.value,
5311
5254
  showClose: !0,
5312
5255
  showInput: !0,
5313
- onChange: f
5256
+ onChange: d
5314
5257
  }, null);
5315
5258
  }
5316
- function vi(e, t, n, o) {
5259
+ function mr(e, t, n, o) {
5317
5260
  const {
5318
- buttonGroupClass: a,
5261
+ buttonGroupClass: l,
5319
5262
  onClickButton: s,
5320
- onMouseEnterButton: f,
5321
- onMouseLeaveButton: g
5263
+ onMouseEnterButton: d,
5264
+ onMouseLeaveButton: m
5322
5265
  } = n, {
5323
5266
  enableClearButton: u,
5324
5267
  showClearButton: r,
5325
- onClearValue: v
5326
- } = o, l = m();
5268
+ onClearValue: g
5269
+ } = o, a = f();
5327
5270
  return {
5328
5271
  renderButtonGroup: () => i("div", {
5329
5272
  id: `${e.id}-button-group`,
5330
- class: a.value
5331
- }, [u.value && pe(i("span", {
5273
+ class: l.value
5274
+ }, [u.value && me(i("span", {
5332
5275
  class: "input-group-text input-group-clear",
5333
- onClick: v
5276
+ onClick: g
5334
5277
  }, [i("i", {
5335
5278
  class: "f-icon modal_close"
5336
- }, null)]), [[gt, r.value]]), t.slots.buttonContent ? i("span", {
5279
+ }, null)]), [[yt, r.value]]), t.slots.buttonContent ? i("span", {
5337
5280
  class: "input-group-text input-group-append-button",
5338
5281
  onClick: s,
5339
- onMouseenter: f,
5340
- onMouseleave: g
5282
+ onMouseenter: d,
5283
+ onMouseleave: m
5341
5284
  }, [t.slots.buttonContent()]) : e.buttonContent ? i("span", {
5342
5285
  class: "input-group-text input-group-append-button",
5343
5286
  innerHTML: e.buttonContent,
5344
- ref: l,
5287
+ ref: a,
5345
5288
  onClick: s,
5346
- onMouseenter: f,
5347
- onMouseleave: g
5289
+ onMouseenter: d,
5290
+ onMouseleave: m
5348
5291
  }, null) : null]),
5349
- buttonHandleElement: l
5292
+ buttonHandleElement: a
5350
5293
  };
5351
5294
  }
5352
- function yi(e, t, n) {
5353
- const o = m(e.popupMinWidth), {
5354
- hidePopup: a,
5295
+ function vr(e, t, n) {
5296
+ const o = f(e.popupMinWidth), {
5297
+ hidePopup: l,
5355
5298
  popoverRef: s
5356
5299
  } = n;
5357
- return () => i(qn, {
5300
+ return () => i(Nn, {
5358
5301
  id: `${e.id}-popover`,
5359
5302
  ref: s,
5360
5303
  visible: !0,
@@ -5365,67 +5308,67 @@ function yi(e, t, n) {
5365
5308
  "right-boundary": e.popupRightBoundary,
5366
5309
  minWidth: o.value,
5367
5310
  offsetX: e.popupOffsetX,
5368
- onHidden: a
5311
+ onHidden: l
5369
5312
  }, {
5370
5313
  default: () => {
5371
- var f, g;
5372
- return [(g = (f = t.slots).default) == null ? void 0 : g.call(f)];
5314
+ var d, m;
5315
+ return [(m = (d = t.slots).default) == null ? void 0 : m.call(d)];
5373
5316
  }
5374
5317
  });
5375
5318
  }
5376
- const gi = /* @__PURE__ */ z({
5319
+ const yr = /* @__PURE__ */ U({
5377
5320
  name: "FButtonEdit",
5378
- props: He,
5321
+ props: We,
5379
5322
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
5380
5323
  setup(e, t) {
5381
- const n = m(), o = m(e.customClass), a = m(e.modelValue), s = pi(e, t, n, a), {
5382
- shouldPopupContent: f,
5383
- hidePopup: g,
5324
+ const n = f(), o = f(e.customClass), l = f(e.modelValue), s = dr(e, t, n, l), {
5325
+ shouldPopupContent: d,
5326
+ hidePopup: m,
5384
5327
  togglePopup: u
5385
- } = s, r = ui(e, t, n, s, a), v = m(""), l = di(e, t, a, v, s), {
5386
- hasFocusedTextBox: d,
5328
+ } = s, r = sr(e, t, n, s, l), g = f(""), a = cr(e, t, l, g, s), {
5329
+ hasFocusedTextBox: v,
5387
5330
  commitValue: c,
5388
5331
  inputGroupClass: p
5389
- } = l, y = ci(e, t, a, d, v, l), {
5332
+ } = a, y = ur(e, t, l, v, g, a), {
5390
5333
  onMouseEnterTextBox: h,
5391
5334
  onMouseLeaveTextBox: P
5392
- } = y, I = B(() => {
5335
+ } = y, I = k(() => {
5393
5336
  const b = {
5394
5337
  "f-button-edit": !0,
5395
5338
  "f-cmp-inputgroup": !0,
5396
5339
  "f-button-edit-nowrap": !e.wrapText
5397
5340
  };
5398
- return o.value && o.value.split(" ").reduce((R, M) => (R[M] = !0, R), b), b;
5341
+ return o.value && o.value.split(" ").reduce((A, $) => (A[$] = !0, A), b), b;
5399
5342
  });
5400
5343
  function C() {
5401
- return e.multiSelect && e.inputType === "tag" ? mi(e, a, l) : fi(e, a, l);
5344
+ return e.multiSelect && e.inputType === "tag" ? fr(e, l, a) : pr(e, l, a);
5402
5345
  }
5403
- let T = C();
5404
- H([() => e.multiSelect, () => e.inputType], () => {
5405
- T = C();
5346
+ let w = C();
5347
+ W([() => e.multiSelect, () => e.inputType], () => {
5348
+ w = C();
5406
5349
  });
5407
5350
  const {
5408
- renderButtonGroup: S,
5409
- buttonHandleElement: w
5410
- } = vi(e, t, r, y), F = yi(e, t, s), x = {
5351
+ renderButtonGroup: T,
5352
+ buttonHandleElement: F
5353
+ } = mr(e, t, r, y), S = vr(e, t, s), x = {
5411
5354
  commitValue: c,
5412
5355
  elementRef: n,
5413
- hidePopup: g,
5414
- shouldPopupContent: f,
5356
+ hidePopup: m,
5357
+ shouldPopupContent: d,
5415
5358
  togglePopup: u,
5416
5359
  openDialog: () => {
5417
- w.value && e.buttonBehavior === "Modal" && w.value.click();
5360
+ F.value && e.buttonBehavior === "Modal" && F.value.click();
5418
5361
  },
5419
5362
  getModal: () => {
5420
5363
  var b;
5421
5364
  return e.buttonBehavior === "Modal" ? (b = r.modalRef.value) == null ? void 0 : b.value : null;
5422
5365
  }
5423
5366
  };
5424
- return K(() => {
5367
+ return Q(() => {
5425
5368
  n.value.componentInstance = x, window.onresize = () => {
5426
5369
  document.body.click();
5427
5370
  };
5428
- }), t.expose(x), () => i(J, null, [i("div", Pe(t.attrs, {
5371
+ }), t.expose(x), () => i(K, null, [i("div", Ie(t.attrs, {
5429
5372
  ref: n,
5430
5373
  class: I.value,
5431
5374
  id: e.id
@@ -5434,22 +5377,22 @@ const gi = /* @__PURE__ */ z({
5434
5377
  class: p.value,
5435
5378
  onMouseenter: h,
5436
5379
  onMouseleave: P
5437
- }, [T(), S()])]), f.value && F()]);
5380
+ }, [w(), T()])]), d.value && S()]);
5438
5381
  }
5439
- }), hi = /* @__PURE__ */ z({
5382
+ }), gr = /* @__PURE__ */ U({
5440
5383
  name: "FQuerySolutionConfig",
5441
- props: Le,
5384
+ props: Re,
5442
5385
  emits: ["update:modelValue"],
5443
5386
  setup(e, t) {
5444
- const n = m(null), o = B(() => "共" + e.modelValue.length + "项"), a = m(), s = Za(e, t, n, a), {
5445
- renderPanel: f
5387
+ const n = f(null), o = k(() => "共" + e.modelValue.length + "项"), l = f(), s = Kl(e, t, n, l), {
5388
+ renderPanel: d
5446
5389
  } = s, {
5447
- renderTransfer: g,
5390
+ renderTransfer: m,
5448
5391
  initData: u,
5449
5392
  confirm: r,
5450
- cancel: v,
5451
- selectPanels: l
5452
- } = ql(e, t, n, a, s), d = {
5393
+ cancel: g,
5394
+ selectPanels: a
5395
+ } = Na(e, t, n, l, s), v = {
5453
5396
  fitContent: !1,
5454
5397
  width: 900,
5455
5398
  height: 600,
@@ -5461,17 +5404,17 @@ const gi = /* @__PURE__ */ z({
5461
5404
  r();
5462
5405
  }
5463
5406
  function p() {
5464
- v();
5407
+ g();
5465
5408
  }
5466
5409
  function y() {
5467
- return i(J, null, [g(), f()]);
5410
+ return i(K, null, [m(), d()]);
5468
5411
  }
5469
- return K(() => {
5412
+ return Q(() => {
5470
5413
  u();
5471
- }), () => i(gi, {
5414
+ }), () => i(yr, {
5472
5415
  id: e.id,
5473
5416
  "button-behavior": "Modal",
5474
- "modal-options": d,
5417
+ "modal-options": v,
5475
5418
  modelValue: o.value,
5476
5419
  "onUpdate:modelValue": (h) => o.value = h
5477
5420
  }, {
@@ -5480,18 +5423,18 @@ const gi = /* @__PURE__ */ z({
5480
5423
  }, [y()])]
5481
5424
  });
5482
5425
  }
5483
- }), bi = "https://json-schema.org/draft/2020-12/schema", Ci = "https://farris-design.gitee.io/filter-bar-config.schema.json", Ti = "filter-bar-config", Si = "A Farris Container Component", Fi = {
5426
+ }), hr = "https://json-schema.org/draft/2020-12/schema", br = "https://farris-design.gitee.io/filter-bar-config.schema.json", Cr = "filter-bar-config", wr = "A Farris Container Component", Tr = {
5484
5427
  fields: {
5485
5428
  description: "The unique identifier for a query solution",
5486
5429
  type: "array"
5487
5430
  }
5488
- }, wi = {
5489
- $schema: bi,
5490
- $id: Ci,
5491
- title: Ti,
5492
- description: Si,
5493
- properties: Fi
5494
- }, xi = "filter-bar-config", Bi = "A Farris Component", ki = "object", Pi = {
5431
+ }, Fr = {
5432
+ $schema: hr,
5433
+ $id: br,
5434
+ title: Cr,
5435
+ description: wr,
5436
+ properties: Tr
5437
+ }, Sr = "filter-bar-config", xr = "A Farris Component", kr = "object", Br = {
5495
5438
  basic: {
5496
5439
  description: "Basic Infomation",
5497
5440
  title: "基本信息",
@@ -5575,35 +5518,35 @@ const gi = /* @__PURE__ */ z({
5575
5518
  title: "控件",
5576
5519
  properties: {}
5577
5520
  }
5578
- }, Ii = {
5579
- title: xi,
5580
- description: Bi,
5581
- type: ki,
5582
- categories: Pi
5583
- }, Vi = /* @__PURE__ */ new Map([
5521
+ }, Pr = {
5522
+ title: Sr,
5523
+ description: xr,
5524
+ type: kr,
5525
+ categories: Br
5526
+ }, Ir = /* @__PURE__ */ new Map([
5584
5527
  ["appearance", ee]
5585
5528
  // ['preset', resolvePreset]
5586
5529
  ]);
5587
- function Mi(e, t, n) {
5530
+ function Vr(e, t, n) {
5588
5531
  return t;
5589
5532
  }
5590
- const Ei = {
5533
+ const $r = {
5591
5534
  fields: { type: Array, default: [] },
5592
5535
  modelValue: { type: Array, default: [] }
5593
- }, $i = Z(Ei, wi, Vi, Mi, Ii), zr = {
5536
+ }, Er = Z($r, Fr, Ir, Vr, Pr), _i = {
5594
5537
  install(e) {
5595
- e.component(re.name, re);
5538
+ e.component(se.name, se);
5596
5539
  },
5597
5540
  register(e, t, n, o) {
5598
- e["filter-bar"] = re, t["filter-bar"] = Te, e["filter-bar-config"] = hi, t["filter-bar-config"] = $i;
5541
+ e["filter-bar"] = se, t["filter-bar"] = Te, e["filter-bar-config"] = gr, t["filter-bar-config"] = Er;
5599
5542
  },
5600
5543
  registerDesigner(e, t, n) {
5601
- e["filter-bar"] = Go, t["filter-bar"] = Te;
5544
+ e["filter-bar"] = qo, t["filter-bar"] = Te;
5602
5545
  }
5603
5546
  };
5604
5547
  export {
5605
- re as FFilterBar,
5606
- zr as default,
5607
- he as filterBarProps,
5548
+ se as FFilterBar,
5549
+ _i as default,
5550
+ be as filterBarProps,
5608
5551
  Te as propsResolver
5609
5552
  };