@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,69 +1,69 @@
1
- var Ne = Object.defineProperty;
2
- var Ae = (e, t, n) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var V = (e, t, n) => Ae(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as C, computed as E, defineComponent as z, watch as R, createVNode as c, createTextVNode as ue, onMounted as H, nextTick as ae, reactive as Ve, withDirectives as je, resolveDirective as Re, Fragment as Z, mergeProps as $e, inject as Ge, getCurrentInstance as We, onBeforeMount as qe } from "vue";
5
- import { cloneDeep as He } from "lodash-es";
1
+ var De = Object.defineProperty;
2
+ var je = (e, t, n) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var A = (e, t, n) => je(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { ref as F, computed as E, defineComponent as U, watch as V, createVNode as c, createTextVNode as de, onMounted as H, nextTick as ie, reactive as Ae, withDirectives as $e, resolveDirective as Ve, Fragment as Z, mergeProps as Ge, inject as Re, onBeforeMount as We } from "vue";
5
+ import { cloneDeep as qe } from "lodash-es";
6
6
  import "bignumber.js";
7
- import ze, { useNumber as Ue, useFormat as Qe, useSpinner as _e, useTextBox as Xe } from "@farris/ui-vue/components/number-spinner";
8
- import Ze from "@farris/ui-vue/components/accordion";
9
- import Je from "@farris/ui-vue/components/avatar";
10
- import Ye from "@farris/ui-vue/components/button-edit";
11
- import Ke from "@farris/ui-vue/components/button-group";
12
- import et from "@farris/ui-vue/components/calendar";
13
- import tt from "@farris/ui-vue/components/capsule";
14
- import nt from "@farris/ui-vue/components/checkbox";
15
- import ot from "@farris/ui-vue/components/combo-list";
16
- import rt from "@farris/ui-vue/components/combo-tree";
17
- import at from "@farris/ui-vue/components/component";
18
- import it from "@farris/ui-vue/components/color-picker";
19
- import lt from "@farris/ui-vue/components/content-container";
20
- import st from "@farris/ui-vue/components/date-picker";
21
- import ut from "@farris/ui-vue/components/data-grid";
22
- import ct from "@farris/ui-vue/components/dropdown";
23
- import dt from "@farris/ui-vue/components/dynamic-form";
24
- import pt from "@farris/ui-vue/components/events-editor";
25
- import mt from "@farris/ui-vue/components/filter-bar";
26
- import ft from "@farris/ui-vue/components/field-selector";
27
- import gt from "@farris/ui-vue/components/image-cropper";
28
- import yt from "@farris/ui-vue/components/input-group";
29
- import vt from "@farris/ui-vue/components/layout";
30
- import bt from "@farris/ui-vue/components/list-nav";
31
- import ht from "@farris/ui-vue/components/list-view";
32
- import Ct from "@farris/ui-vue/components/lookup";
33
- import Ft from "@farris/ui-vue/components/mapping-editor";
34
- import St from "@farris/ui-vue/components/nav";
35
- import Tt from "@farris/ui-vue/components/number-range";
36
- import wt from "@farris/ui-vue/components/order";
37
- import Bt from "@farris/ui-vue/components/page-header";
38
- import Pt from "@farris/ui-vue/components/page-footer";
39
- import xt from "@farris/ui-vue/components/pagination";
40
- import It from "@farris/ui-vue/components/progress";
41
- import Et from "@farris/ui-vue/components/query-solution";
42
- import kt from "@farris/ui-vue/components/radio-group";
43
- import Lt from "@farris/ui-vue/components/rate";
44
- import Mt from "@farris/ui-vue/components/response-toolbar";
45
- import Dt from "@farris/ui-vue/components/response-layout";
46
- import Ot from "@farris/ui-vue/components/response-layout-editor";
47
- import Nt from "@farris/ui-vue/components/search-box";
48
- import At from "@farris/ui-vue/components/section";
49
- import Vt from "@farris/ui-vue/components/smoke-detector";
50
- import jt from "@farris/ui-vue/components/splitter";
51
- import Rt from "@farris/ui-vue/components/step";
52
- import $t from "@farris/ui-vue/components/switch";
53
- import Gt from "@farris/ui-vue/components/tabs";
54
- import Wt from "@farris/ui-vue/components/tags";
55
- import qt from "@farris/ui-vue/components/text";
56
- import Ht from "@farris/ui-vue/components/time-picker";
57
- import zt from "@farris/ui-vue/components/transfer";
58
- import Ut from "@farris/ui-vue/components/tree-view";
59
- import Qt from "@farris/ui-vue/components/uploader";
60
- import _t from "@farris/ui-vue/components/verify-detail";
61
- import Xt from "@farris/ui-vue/components/weather";
62
- import Zt from "@farris/ui-vue/components/video";
63
- import Jt from "@farris/ui-vue/components/textarea";
64
- import Yt from "@farris/ui-vue/components/schema-selector";
65
- import Kt from "@farris/ui-vue/components/tree-grid";
66
- const en = {
7
+ import He, { useNumber as Ue, useFormat as _e, useSpinner as ze, useTextBox as Xe } from "../number-spinner/index.esm.js";
8
+ import Qe from "../accordion/index.esm.js";
9
+ import Ze from "../avatar/index.esm.js";
10
+ import Je from "../button-edit/index.esm.js";
11
+ import Ye from "../button-group/index.esm.js";
12
+ import Ke from "../calendar/index.esm.js";
13
+ import et from "../capsule/index.esm.js";
14
+ import tt from "../checkbox/index.esm.js";
15
+ import nt from "../combo-list/index.esm.js";
16
+ import ot from "../combo-tree/index.esm.js";
17
+ import rt from "../component/index.esm.js";
18
+ import at from "../color-picker/index.esm.js";
19
+ import lt from "../content-container/index.esm.js";
20
+ import it from "../date-picker/index.esm.js";
21
+ import st from "../data-grid/index.esm.js";
22
+ import ut from "../dropdown/index.esm.js";
23
+ import ct from "../dynamic-form/index.esm.js";
24
+ import dt from "../events-editor/index.esm.js";
25
+ import pt from "../filter-bar/index.esm.js";
26
+ import ft from "../field-selector/index.esm.js";
27
+ import mt from "../image-cropper/index.esm.js";
28
+ import vt from "../input-group/index.esm.js";
29
+ import gt from "../layout/index.esm.js";
30
+ import yt from "../list-nav/index.esm.js";
31
+ import bt from "../list-view/index.esm.js";
32
+ import ht from "../lookup/index.esm.js";
33
+ import Ct from "../mapping-editor/index.esm.js";
34
+ import Ft from "../nav/index.esm.js";
35
+ import St from "../number-range/index.esm.js";
36
+ import Tt from "../order/index.esm.js";
37
+ import wt from "../page-header/index.esm.js";
38
+ import Pt from "../page-footer/index.esm.js";
39
+ import Bt from "../pagination/index.esm.js";
40
+ import xt from "../progress/index.esm.js";
41
+ import It from "../query-solution/index.esm.js";
42
+ import Et from "../radio-group/index.esm.js";
43
+ import kt from "../rate/index.esm.js";
44
+ import Ot from "../response-toolbar/index.esm.js";
45
+ import Mt from "../response-layout/index.esm.js";
46
+ import Nt from "../response-layout-editor/index.esm.js";
47
+ import Lt from "../search-box/index.esm.js";
48
+ import Dt from "../section/index.esm.js";
49
+ import jt from "../smoke-detector/index.esm.js";
50
+ import At from "../splitter/index.esm.js";
51
+ import $t from "../step/index.esm.js";
52
+ import Vt from "../switch/index.esm.js";
53
+ import Gt from "../tabs/index.esm.js";
54
+ import Rt from "../tags/index.esm.js";
55
+ import Wt from "../text/index.esm.js";
56
+ import qt from "../time-picker/index.esm.js";
57
+ import Ht from "../transfer/index.esm.js";
58
+ import Ut from "../tree-view/index.esm.js";
59
+ import _t from "../uploader/index.esm.js";
60
+ import zt from "../verify-detail/index.esm.js";
61
+ import Xt from "../weather/index.esm.js";
62
+ import Qt from "../video/index.esm.js";
63
+ import Zt from "../textarea/index.esm.js";
64
+ import Jt from "../schema-selector/index.esm.js";
65
+ import Yt from "../tree-grid/index.esm.js";
66
+ const Kt = {
67
67
  width: { type: String, default: "300px" },
68
68
  height: { type: Number, default: 10 },
69
69
  isWidePanel: { type: Boolean, default: !1 },
@@ -92,115 +92,118 @@ const en = {
92
92
  /** 属性变更后事件 */
93
93
  propertyChanged: { type: Function }
94
94
  };
95
- function tn(e = {}) {
96
- function t(o, u, l, a) {
97
- if (typeof l == "number")
98
- return a[o].length === l;
99
- if (typeof l == "object") {
100
- const i = Object.keys(l)[0], p = l[i];
95
+ function en(e = {}) {
96
+ function t(o, p, a, s) {
97
+ if (typeof a == "number")
98
+ return s[o].length === a;
99
+ if (typeof a == "object") {
100
+ const i = Object.keys(a)[0], d = a[i];
101
101
  if (i === "not")
102
- return Number(a[o].length) !== Number(p);
102
+ return Number(s[o].length) !== Number(d);
103
103
  if (i === "moreThan")
104
- return Number(a[o].length) >= Number(p);
104
+ return Number(s[o].length) >= Number(d);
105
105
  if (i === "lessThan")
106
- return Number(a[o].length) <= Number(p);
106
+ return Number(s[o].length) <= Number(d);
107
107
  }
108
108
  return !1;
109
109
  }
110
- function n(o, u, l, a) {
111
- return a[o] && a[o].propertyValue && String(a[o].propertyValue.value) === String(l);
110
+ function n(o, p, a, s) {
111
+ return s[o] && s[o].propertyValue && String(s[o].propertyValue.value) === String(a);
112
112
  }
113
113
  const r = /* @__PURE__ */ new Map([
114
114
  ["length", t],
115
115
  ["getProperty", n]
116
116
  ]);
117
- Object.keys(e).reduce((o, u) => (o.set(u, e[u]), o), r);
118
- function s(o, u) {
119
- const l = o;
120
- return typeof u == "number" ? [{ target: l, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: l, operator: "getProperty", param: o, value: !!u }] : typeof u == "object" ? Object.keys(u).map((a) => {
121
- if (a === "length")
122
- return { target: l, operator: "length", param: null, value: u[a] };
123
- const i = a, p = u[a];
124
- return { target: l, operator: "getProperty", param: i, value: p };
117
+ Object.keys(e).reduce((o, p) => (o.set(p, e[p]), o), r);
118
+ function l(o, p) {
119
+ const a = o;
120
+ return typeof p == "number" ? [{ target: a, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: a, operator: "getProperty", param: o, value: !!p }] : typeof p == "object" ? Object.keys(p).map((s) => {
121
+ if (s === "length")
122
+ return { target: a, operator: "length", param: null, value: p[s] };
123
+ const i = s, d = p[s];
124
+ return { target: a, operator: "getProperty", param: i, value: d };
125
125
  }) : [];
126
126
  }
127
127
  function m(o) {
128
- return Object.keys(o).reduce((l, a) => {
129
- const i = s(a, o[a]);
130
- return l.push(...i), l;
128
+ return Object.keys(o).reduce((a, s) => {
129
+ const i = l(s, o[s]);
130
+ return a.push(...i), a;
131
131
  }, []);
132
132
  }
133
- function g(o, u) {
133
+ function f(o, p) {
134
134
  if (r.has(o.operator)) {
135
- const l = r.get(o.operator);
136
- return l && l(o.target, o.param, o.value, u) || !1;
135
+ const a = r.get(o.operator);
136
+ return a && a(o.target, o.param, o.value, p) || !1;
137
137
  }
138
138
  return !1;
139
139
  }
140
- function B(o, u) {
141
- return m(o).reduce((i, p) => i && g(p, u), !0);
140
+ function C(o, p) {
141
+ return m(o).reduce((i, d) => i && f(d, p), !0);
142
142
  }
143
- function d(o, u) {
144
- const l = Object.keys(o), a = l.includes("allOf"), i = l.includes("anyOf"), p = a || i, O = (p ? o[p ? a ? "allOf" : "anyOf" : "allOf"] : [o]).map((L) => B(L, u));
145
- return a ? !O.includes(!1) : O.includes(!0);
143
+ function u(o, p) {
144
+ const a = Object.keys(o), s = a.includes("allOf"), i = a.includes("anyOf"), d = s || i, N = (d ? o[d ? s ? "allOf" : "anyOf" : "allOf"] : [o]).map((L) => C(L, p));
145
+ return s ? !N.includes(!1) : N.includes(!0);
146
146
  }
147
- return { parseValueSchema: d };
147
+ return { parseValueSchema: u };
148
148
  }
149
- const ce = {}, nn = {};
150
- function de(e) {
151
- const { properties: t, title: n } = e, r = Object.keys(t).reduce((s, m) => (s[m] = t[m].type === "object" && t[m].properties ? de(t[m]) : He(t[m].default), s), {});
152
- return r.id = `${n}-${Date.now()}`, r;
149
+ const te = {}, tn = {};
150
+ function pe(e) {
151
+ const { properties: t, title: n, ignore: r } = e, l = r && Array.isArray(r), m = Object.keys(t).reduce((f, C) => ((!l || !r.find((u) => u == C)) && (f[C] = t[C].type === "object" && t[C].properties ? pe(t[C]) : qe(t[C].default)), f), {});
152
+ return (!l || !r.find((f) => f == "id")) && (m.id = `${n}-${Date.now()}`), m;
153
153
  }
154
- function pe(e, t) {
155
- const n = de(t);
156
- return Object.keys(e).reduce((r, s) => (r[s] = e[s], r), n), n;
154
+ function ne(e, t) {
155
+ const n = pe(t);
156
+ return Object.keys(e).reduce((r, l) => (r[l] && typeof r[l] == "object" ? Object.assign(r[l], e[l]) : r[l] = e[l], r), n), n;
157
157
  }
158
- function on(e, t) {
159
- return Object.keys(e).filter((r) => e[r] != null).reduce((r, s) => {
160
- if (t.has(s)) {
161
- const m = t.get(s);
158
+ function nn(e, t) {
159
+ return Object.keys(e).filter((r) => e[r] != null).reduce((r, l) => {
160
+ if (t.has(l)) {
161
+ const m = t.get(l);
162
162
  if (typeof m == "string")
163
- r[m] = e[s];
163
+ r[m] = e[l];
164
164
  else {
165
- const g = m(s, e[s], e);
166
- Object.assign(r, g);
165
+ const f = m(l, e[l], e);
166
+ Object.assign(r, f);
167
167
  }
168
168
  } else
169
- r[s] = e[s];
169
+ r[l] = e[l];
170
170
  return r;
171
171
  }, {});
172
172
  }
173
- function rn(e, t, n = /* @__PURE__ */ new Map()) {
174
- const r = pe(e, t);
175
- return on(r, n);
173
+ function on(e, t, n = /* @__PURE__ */ new Map()) {
174
+ const r = ne(e, t);
175
+ return nn(r, n);
176
176
  }
177
- function me(e) {
177
+ function fe(e) {
178
+ var n;
178
179
  const t = e.type;
179
180
  if (t) {
180
- const n = ce[t];
181
- return pe(e, n);
181
+ const r = te[t], l = ne(e, r), m = ((n = e.editor) == null ? void 0 : n.type) || "";
182
+ if (m) {
183
+ const f = te[m], C = ne(e.editor, f);
184
+ l.editor = C;
185
+ }
186
+ return l;
182
187
  }
183
188
  return e;
184
189
  }
185
- const an = {
190
+ const rn = {
186
191
  convertTo: (e, t, n, r) => {
187
192
  e.appearance && (e.appearance[t] = n);
188
193
  },
189
194
  convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
190
- }, ln = {
195
+ }, an = {
191
196
  convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
192
- }, sn = {
197
+ }, ln = {
193
198
  convertTo: (e, t, n, r) => {
194
199
  e.editor && (e.editor[t] = n);
195
200
  },
196
201
  convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
197
- }, un = {
198
- Button: { type: "Button", name: "按钮", icon: "Button" },
199
- ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
202
+ }, sn = {
203
+ button: { type: "button", name: "按钮", icon: "Button" },
200
204
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
201
- "response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
205
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
202
206
  "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
203
- DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
204
207
  "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
205
208
  textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
206
209
  lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
@@ -211,112 +214,41 @@ const an = {
211
214
  "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
212
215
  "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
213
216
  "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
214
- /** 暂时没用 */
215
- FlexLayout: { type: "FlexLayout", name: "弹性布局" },
216
- /** 暂时没用 */
217
- FlowLayout: { type: "FlowLayout", name: "流布局" },
218
- ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
219
- ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
217
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
218
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
219
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
220
220
  "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
221
- TreeGridField: { type: "TreeGridField", name: "树表格列" },
222
- FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
223
- Form: { type: "Form", name: "卡片面板", icon: "Form" },
224
- QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
221
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
225
222
  "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
226
223
  "data-grid-column": { type: "data-grid-column", name: "表格列" },
227
- Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
228
- Module: { type: "Module", name: "模块", icon: "Module" },
224
+ module: { type: "Module", name: "模块", icon: "Module" },
229
225
  component: { type: "component", name: "组件", icon: "Component" },
230
- ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
231
- Image: { type: "Image", name: "图像", icon: "Image" },
232
- ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
233
- HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
234
- ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
235
- RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
236
226
  tabs: { type: "tabs", name: "标签页", icon: "Tab" },
237
227
  "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
238
228
  "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
239
- Tag: { type: "Tag", name: "Tag", icon: "Tag" },
240
- Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
241
- HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
242
- ListView: { type: "ListView", name: "列表", icon: "ListView" },
243
- RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
244
- TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
245
- TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
229
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
246
230
  section: { type: "section", name: "分组面板", icon: "Section" },
247
- SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
248
- SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
249
- QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
250
- FormHeader: { type: "FormHeader", name: "翻页" },
251
- Splitter: { type: "Splitter", name: "分栏面板", icon: "Splitter" },
252
- SplitterPane: { type: "SplitterPane", name: "分栏面板项", dependentParentControl: "Splitter" },
253
- WizardDetail: { type: "WizardDetail", name: "向导详情页" },
254
- WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
255
- Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
256
- MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
257
- Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
258
- avatar: { type: "avatar", name: "头像", icon: "Avatar" },
259
- ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
260
- ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
261
- NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
262
- Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
263
- LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
264
- ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
265
- FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
266
- FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
267
- ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
268
- MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
269
- MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
270
- Footer: { type: "Footer", name: "页脚" },
271
- DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
272
- DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
273
- NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
274
- Tags: { type: "Tags", name: "标记组", icon: "Tags" },
275
- Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
231
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
232
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
233
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
234
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
235
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
236
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
276
237
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
277
- ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
278
- ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
279
- PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
280
- Table: { type: "Table", name: "表格", icon: "DataGrid" },
281
- LoopContainer: { type: "LoopContainer", name: "循环容器", icon: "ContentContainer" },
282
- FileUploadPreview: { type: "FileUploadPreview", name: "附件上传预览", icon: "FileUpload" },
283
- DynamicArea: { type: "DynamicArea", name: "动态区域", icon: "ContentContainer" },
284
- DynamicAreaItem: { type: "DynamicAreaItem", name: "动态区域项", icon: "ContentContainer" },
285
- TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
286
- HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
287
- ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
288
- HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
289
- ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
290
- OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
291
- AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
292
- EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
293
- OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
294
- CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
295
- ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
296
- AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
297
- /** 查询类 start */
298
- Charts: { type: "Charts", name: "图表", icon: "Charts" },
299
- QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
300
- SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
301
- QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
302
- QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
303
- /** 查询类 end */
304
- /** 审批类 start */
305
- ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
306
- ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
307
- /** 审批类 end */
308
- }, cn = {
238
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
239
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
240
+ }, un = {
309
241
  convertFrom: (e, t, n) => {
310
- var s;
242
+ var l;
311
243
  const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
312
- return ((s = un[r]) == null ? void 0 : s.name) || r;
244
+ return ((l = sn[r]) == null ? void 0 : l.name) || r;
313
245
  }
314
- }, dn = {
246
+ }, cn = {
315
247
  convertTo: (e, t, n, r) => {
316
248
  e[t] = e[t];
317
249
  },
318
250
  convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
319
- }, pn = {
251
+ }, dn = {
320
252
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
321
253
  convertTo: (e, t, n) => {
322
254
  if (n && n.length > 0) {
@@ -324,133 +256,133 @@ const an = {
324
256
  e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = r.bindingField, e.binding.field = r.id, e.binding.fullPath = r.path, e.path = r.bindingPath;
325
257
  }
326
258
  }
327
- }, mn = {
259
+ }, pn = {
328
260
  convertTo: (e, t, n, r) => {
329
- typeof e.pagination == "boolean" && (e.pagination = {}), e.pagination && (e.pagination[t] = n);
261
+ e.pagination || (e.pagination = {}), e.pagination[t] = n;
330
262
  },
331
263
  convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
332
264
  };
333
265
  class fn {
334
266
  constructor() {
335
267
  /** 控件标题 */
336
- V(this, "label", "");
268
+ A(this, "label", "");
337
269
  /** 控件id */
338
- V(this, "id", "");
270
+ A(this, "id", "");
339
271
  /** 每个控件占用的栅格数 */
340
- V(this, "columnInSM", 12);
341
- V(this, "columnInMD", 6);
342
- V(this, "columnInLG", 3);
343
- V(this, "columnInEL", 2);
272
+ A(this, "columnInSM", 12);
273
+ A(this, "columnInMD", 6);
274
+ A(this, "columnInLG", 3);
275
+ A(this, "columnInEL", 2);
344
276
  /** 每个控件占用的列数 */
345
- V(this, "displayWidthInSM", 1);
346
- V(this, "displayWidthInMD", 1);
347
- V(this, "displayWidthInLG", 1);
348
- V(this, "displayWidthInEL", 1);
277
+ A(this, "displayWidthInSM", 1);
278
+ A(this, "displayWidthInMD", 1);
279
+ A(this, "displayWidthInLG", 1);
280
+ A(this, "displayWidthInEL", 1);
349
281
  /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
350
- V(this, "displayColumnCountAtBreakPoint", "md");
282
+ A(this, "displayColumnCountAtBreakPoint", "md");
351
283
  /** 控件所在行,传0即可-----编辑器内部使用 */
352
- V(this, "tagRow", 0);
284
+ A(this, "tagRow", 0);
353
285
  /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
354
- V(this, "showTopBorder", 0);
286
+ A(this, "showTopBorder", 0);
355
287
  /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
356
- V(this, "group", 1);
288
+ A(this, "group", 1);
357
289
  /** 控件是否符合标准的class配置(设计器用的) */
358
- V(this, "isSupportedClass", !0);
290
+ A(this, "isSupportedClass", !0);
359
291
  /** 控件所在分组id(设计器用的) */
360
- V(this, "fieldSetId", "");
292
+ A(this, "fieldSetId", "");
361
293
  }
362
294
  }
363
- function gn() {
295
+ function mn() {
364
296
  let e, t;
365
297
  const n = /* @__PURE__ */ new Map();
366
298
  let r = [];
367
- function s(d, o) {
368
- const l = d.split(" ").filter((F) => F.startsWith("col-"));
369
- if (l.length === 0) {
299
+ function l(u, o) {
300
+ const a = u.split(" ").filter((T) => T.startsWith("col-"));
301
+ if (a.length === 0) {
370
302
  o.isSupportedClass = !1;
371
303
  return;
372
304
  }
373
- let a = l.find((F) => /^col-([1-9]|10|11|12)$/.test(F)), i = l.find((F) => /^col-md-([1-9]|10|11|12)$/.test(F)), p = l.find((F) => /^col-xl-([1-9]|10|11|12)$/.test(F)), f = l.find((F) => /^col-el-([1-9]|10|11|12)$/.test(F));
374
- a = a || "col-12", o.columnInSM = parseInt(a.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), i = i || "col-md-" + o.columnInSM, o.columnInMD = parseInt(i.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), p = p || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(p.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), f = f || "col-el-" + o.columnInLG, o.columnInEL = parseInt(f.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
305
+ let s = a.find((T) => /^col-([1-9]|10|11|12)$/.test(T)), i = a.find((T) => /^col-md-([1-9]|10|11|12)$/.test(T)), d = a.find((T) => /^col-xl-([1-9]|10|11|12)$/.test(T)), v = a.find((T) => /^col-el-([1-9]|10|11|12)$/.test(T));
306
+ s = s || "col-12", o.columnInSM = parseInt(s.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), i = i || "col-md-" + o.columnInSM, o.columnInMD = parseInt(i.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), d = d || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(d.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), v = v || "col-el-" + o.columnInLG, o.columnInEL = parseInt(v.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
375
307
  }
376
- function m(d, o, u, l = !1) {
377
- let a = !1;
378
- d.contents.forEach((i) => {
308
+ function m(u, o, p, a = !1) {
309
+ let s = !1;
310
+ u.contents.forEach((i) => {
379
311
  if (i.type === "FieldSet") {
380
- u += 1, m(i, o, u, !0), a = !0;
312
+ p += 1, m(i, o, p, !0), s = !0;
381
313
  return;
382
314
  }
383
- a && (u += 1, a = !1);
384
- const p = i.appearance && i.appearance.class, f = new fn();
385
- p ? s(p, f) : f.isSupportedClass = !1, f.label = i.label || i.id, f.id = i.id, f.group = u, l && (f.fieldSetId = d.id), t === i.id && (e = u), n.set(i.id, i), o.push(f);
315
+ s && (p += 1, s = !1);
316
+ const d = i.appearance && i.appearance.class, v = new fn();
317
+ d ? l(d, v) : v.isSupportedClass = !1, v.label = i.label || i.id, v.id = i.id, v.group = p, a && (v.fieldSetId = u.id), t === i.id && (e = p), n.set(i.id, i), o.push(v);
386
318
  });
387
319
  }
388
- function g(d, o, u, l) {
389
- l = l || d.id;
390
- const a = u.closest(l, "content-container");
391
- if (!a)
320
+ function f(u, o, p, a) {
321
+ a = a || u.id;
322
+ const s = p.closest(a, "content-container");
323
+ if (!s)
392
324
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
393
- if (!a || !a.contents || a.contents.length === 0)
325
+ if (!s || !s.contents || s.contents.length === 0)
394
326
  return { result: !1, message: "Form区域内没有控件,请先添加控件" };
395
- t = d.id, r = [], n.clear();
396
- const i = a.contents[0].type === "FieldSet" ? 0 : 1;
397
- m(a, r, i);
398
- const p = r.find((F) => !F.isSupportedClass);
327
+ t = u.id, r = [], n.clear();
328
+ const i = s.contents[0].type === "FieldSet" ? 0 : 1;
329
+ m(s, r, i);
330
+ const d = r.find((T) => !T.isSupportedClass);
399
331
  return {
400
332
  defaultState: {
401
333
  defaultGroupNumber: e || 1,
402
- model: p ? "customize" : "standard"
334
+ model: d ? "customize" : "standard"
403
335
  },
404
336
  importData: r
405
337
  };
406
338
  }
407
- function B(d, o, u, l, a) {
408
- a = a || d.id;
409
- const i = l.closest(a, "response-form");
339
+ function C(u, o, p, a, s) {
340
+ s = s || u.id;
341
+ const i = a.closest(s, "response-form");
410
342
  if (!i)
411
343
  return;
412
- const p = [];
413
- return u.forEach((f) => {
414
- var A;
415
- const F = n.get(f.id), O = F.appearance && F.appearance.class;
416
- if (O) {
417
- const I = O.split(" ").filter((G) => !G.startsWith("col-")), k = "col-" + f.columnInSM, M = "col-md-" + f.columnInMD, P = "col-xl-" + f.columnInLG, $ = "col-el-" + f.columnInEL, N = [k, M, P, $].concat(I);
418
- F.appearance.class = N.join(" ");
344
+ const d = [];
345
+ return p.forEach((v) => {
346
+ var j;
347
+ const T = n.get(v.id), N = T.appearance && T.appearance.class;
348
+ if (N) {
349
+ const I = N.split(" ").filter((R) => !R.startsWith("col-")), k = "col-" + v.columnInSM, O = "col-md-" + v.columnInMD, B = "col-xl-" + v.columnInLG, G = "col-el-" + v.columnInEL, D = [k, O, B, G].concat(I);
350
+ T.appearance.class = D.join(" ");
419
351
  }
420
- if (f.fieldSetId) {
421
- const L = i.contents.find((k) => k.id === f.fieldSetId), I = p.find((k) => k.id === f.fieldSetId);
422
- I ? (A = I.contents) == null || A.push(F) : (p.push(L), L.contents = [F]);
352
+ if (v.fieldSetId) {
353
+ const L = i.contents.find((k) => k.id === v.fieldSetId), I = d.find((k) => k.id === v.fieldSetId);
354
+ I ? (j = I.contents) == null || j.push(T) : (d.push(L), L.contents = [T]);
423
355
  } else
424
- p.push(F);
425
- }), i.contents = p, i.id;
356
+ d.push(T);
357
+ }), i.contents = d, i.id;
426
358
  }
427
359
  return {
428
- convertFrom: g,
429
- convertTo: B
360
+ convertFrom: f,
361
+ convertTo: C
430
362
  };
431
363
  }
432
- const ie = gn(), yn = {
433
- convertTo: (e, t, n, r, s) => ie.convertTo(e, t, n, r, s),
434
- convertFrom: (e, t, n, r) => ie.convertFrom(e, t, n, r)
435
- }, vn = {
364
+ const se = mn(), vn = {
365
+ convertTo: (e, t, n, r, l) => se.convertTo(e, t, n, r, l),
366
+ convertFrom: (e, t, n, r) => se.convertFrom(e, t, n, r)
367
+ }, gn = {
436
368
  convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
437
- }, bn = {
369
+ }, yn = {
438
370
  convertFrom: (e, t) => e[t] || "",
439
371
  convertTo: (e, t, n) => {
440
372
  e[t] = n;
441
373
  }
442
- }, ne = {}, te = /* @__PURE__ */ new Map([
443
- ["/converter/appearance.converter", an],
444
- ["/converter/buttons.converter", ln],
445
- ["/converter/property-editor.converter", sn],
446
- ["/converter/response-form-layout.converter", yn],
447
- ["/converter/items-count.converter", vn],
448
- ["/converter/type.converter", cn],
449
- ["/converter/change-editor.converter", dn],
450
- ["/converter/form-group-label.converter", bn],
451
- ["/converter/field-selector.converter", pn],
452
- ["/converter/pagination.converter", mn]
453
- ]), hn = {}, Cn = /* @__PURE__ */ new Map([
374
+ }, re = {}, oe = /* @__PURE__ */ new Map([
375
+ ["/converter/appearance.converter", rn],
376
+ ["/converter/buttons.converter", an],
377
+ ["/converter/property-editor.converter", ln],
378
+ ["/converter/response-form-layout.converter", vn],
379
+ ["/converter/items-count.converter", gn],
380
+ ["/converter/type.converter", un],
381
+ ["/converter/change-editor.converter", cn],
382
+ ["/converter/form-group-label.converter", yn],
383
+ ["/converter/field-selector.converter", dn],
384
+ ["/converter/pagination.converter", pn]
385
+ ]), bn = {}, hn = /* @__PURE__ */ new Map([
454
386
  ["string", { type: "input-group", enableClear: !1 }],
455
387
  ["boolean", {
456
388
  type: "combo-list",
@@ -472,70 +404,68 @@ const ie = gn(), yn = {
472
404
  ["array", { type: "button-edit" }],
473
405
  ["number", { type: "number-spinner" }],
474
406
  ["events-editor", { type: "events-editor", hide: !0 }]
475
- ]), Fn = tn();
476
- function fe(e, t) {
477
- return () => Fn.parseValueSchema(e, t);
407
+ ]), Cn = en();
408
+ function me(e, t) {
409
+ return () => Cn.parseValueSchema(e, t);
478
410
  }
479
- function Sn(e, t, n) {
480
- return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : fe(t.visible, n) : () => !0;
411
+ function Fn(e, t, n) {
412
+ return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : me(t.visible, n) : () => !0;
481
413
  }
482
- function Tn(e, t, n) {
483
- return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : fe(t.readonly, n) : () => !1;
414
+ function Sn(e, t, n) {
415
+ return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : me(t.readonly, n) : () => !1;
484
416
  }
485
- function wn(e, t) {
417
+ function Tn(e, t) {
486
418
  const n = e.$converter || t;
487
- return typeof n == "string" && n && te.has(n) ? te.get(n) || null : n || null;
419
+ return typeof n == "string" && n && oe.has(n) ? oe.get(n) || null : n || null;
488
420
  }
489
- function oe(e, t, n, r, s, m = "", g = "") {
490
- return Object.keys(e).map((d) => {
491
- const o = C(1), u = d, l = e[d], a = Object.keys(l), i = l.title, p = l.type, f = Cn.get(p) || { type: "input-group", enableClear: !1 }, F = l.editor ? Object.assign({}, f, l.editor) : f, O = Sn(a, l, t), A = Tn(a, l, t), L = l.type === "cascade" ? oe(l.properties, t, n, r, s, m, g) : [], I = !0;
492
- let k = wn(l, g);
493
- const M = E({
421
+ function ae(e, t, n, r, l, m = "", f = "") {
422
+ return Object.keys(e).map((u) => {
423
+ const o = F(1), p = u, a = e[u], s = Object.keys(a), i = a.title, d = a.type, v = hn.get(d) || { type: "input-group", enableClear: !1 }, T = a.editor ? Object.assign({}, v, a.editor) : v, N = Fn(s, a, t), j = Sn(s, a, t), L = a.type === "cascade" ? ae(a.properties, t, n, r, l, m, f) : [], I = !0;
424
+ let k = Tn(a, f);
425
+ const O = E({
494
426
  get() {
495
427
  if (o.value) {
496
- if (["class", "style"].find((G) => G == u) && !k && (k = te.get("/converter/appearance.converter") || null), k && k.convertFrom)
497
- return k.convertFrom(n, d, s, m);
498
- const N = n[d];
499
- return typeof N == "string" && N == "" ? l.defaultValue || "" : N;
428
+ if (["class", "style"].find((R) => R == p) && !k && (k = oe.get("/converter/appearance.converter") || null), k && k.convertFrom)
429
+ return k.convertFrom(n, u, l, m);
430
+ const D = n[u];
431
+ return typeof D == "string" && D == "" ? a.defaultValue || "" : D;
500
432
  }
501
433
  return null;
502
434
  },
503
- set(N) {
504
- o.value += 1, k && k.convertTo ? (k.convertTo(r, d, N, s, m), k.convertTo(n, d, N, s, m)) : (r[d] = N, n[d] = N);
435
+ set(D) {
436
+ o.value += 1, k && k.convertTo ? (k.convertTo(r, u, D, l, m), k.convertTo(n, u, D, l, m)) : (r[u] = D, n[u] = D);
505
437
  }
506
- }), P = l.refreshPanelAfterChanged, $ = { propertyID: u, propertyName: i, propertyType: p, propertyValue: M, editor: F, visible: O, readonly: A, cascadeConfig: L, hideCascadeTitle: I, refreshPanelAfterChanged: P };
507
- return t[u] = $, $;
438
+ }), B = a.refreshPanelAfterChanged, G = { propertyID: p, propertyName: i, propertyType: d, propertyValue: O, editor: T, visible: N, readonly: j, cascadeConfig: L, hideCascadeTitle: I, refreshPanelAfterChanged: B };
439
+ return t[p] = G, G;
508
440
  });
509
441
  }
510
- function Bn(e, t, n, r, s = "") {
511
- const m = t.$ref.schema, g = t.$ref.converter, B = n[m], d = B.type, o = me(B), u = {}, l = ne[d];
512
- if (l && l.categories) {
513
- const a = l.categories[e], i = a == null ? void 0 : a.title;
514
- g && Object.keys(a.properties).forEach((F) => {
515
- a.properties[F].$converter = g;
442
+ function wn(e, t, n, r, l = "") {
443
+ const m = t.$ref.schema, f = t.$ref.converter, C = n[m], u = C.type, o = fe(C), p = {}, a = re[u];
444
+ if (a && a.categories) {
445
+ const s = a.categories[e], i = s == null ? void 0 : s.title;
446
+ f && Object.keys(s.properties).forEach((T) => {
447
+ s.properties[T].$converter = f;
516
448
  });
517
- const p = (a == null ? void 0 : a.properties) || {}, f = oe(p, u, o, B, r, s);
518
- return { categoryId: e, categoryName: i, properties: f };
449
+ const d = (s == null ? void 0 : s.properties) || {}, v = ae(d, p, o, C, r, l);
450
+ return { categoryId: e, categoryName: i, properties: v };
519
451
  }
520
452
  return { categoryId: e, categoryName: "", properties: [] };
521
453
  }
522
- function ee(e, t, n, r, s) {
523
- var o;
454
+ function ee(e, t, n, r, l) {
524
455
  let m = e.type;
525
- const g = me(e), B = {};
526
- ((o = e.editor) == null ? void 0 : o.type) === "lookup" && (m = "lookup"), m === "lookup" && n.elementRef.editorRef && (n = n.elementRef.editorRef);
527
- let d = s || ne[m];
528
- if (Object.keys(d).length === 0 && n && n.getPropConfig && (d = n.getPropConfig(r)), d && d.categories) {
529
- const u = [];
530
- return Object.keys(d.categories).map((l) => {
531
- const a = d.categories[l];
456
+ const f = fe(e), C = {};
457
+ let u = l || re[m];
458
+ if (Object.keys(u).length === 0 && n && n.getPropConfig && (u = n.getPropConfig(r)), u && u.categories) {
459
+ const o = [];
460
+ return Object.keys(u.categories).map((p) => {
461
+ const a = u.categories[p];
532
462
  if (a.$ref) {
533
- u.push(Bn(l, a, e, t, r));
463
+ o.push(wn(p, a, e, t, r));
534
464
  return;
535
465
  }
536
- const i = a == null ? void 0 : a.title, p = a == null ? void 0 : a.tabId, f = a == null ? void 0 : a.tabName, F = a == null ? void 0 : a.hide, O = a == null ? void 0 : a.hideTitle, A = oe(a.properties || {}, B, g, e, t, r, a.$converter), L = a.setPropertyRelates;
537
- u.push({ categoryId: l, categoryName: i, tabId: p, tabName: f, hide: F, properties: A, hideTitle: O, setPropertyRelates: L });
538
- }), u;
466
+ const s = a == null ? void 0 : a.title, i = a == null ? void 0 : a.tabId, d = a == null ? void 0 : a.tabName, v = a == null ? void 0 : a.hide, T = a == null ? void 0 : a.hideTitle, N = ae(a.properties || {}, C, f, e, t, r, a.$converter), j = a.setPropertyRelates;
467
+ o.push({ categoryId: p, categoryName: s, tabId: i, tabName: d, hide: v, properties: N, hideTitle: T, setPropertyRelates: j });
468
+ }), o;
539
469
  }
540
470
  return [];
541
471
  }
@@ -548,22 +478,22 @@ const Pn = {
548
478
  propertyData: { type: Object, default: {} },
549
479
  valueChanged: { type: Function },
550
480
  triggerRefreshPanel: { type: Function }
551
- }, xn = {
481
+ }, Bn = {
552
482
  elementConfig: { type: Object, default: {} },
553
483
  category: { type: Object, default: {} }
554
484
  };
555
- function ge(e, t, n = /* @__PURE__ */ new Map(), r = (g, B, d) => B, s = {}, m = (g) => g) {
556
- return ce[t.title] = t, nn[t.title] = r, ne[t.title] = s, hn[t.title] = m, (g = {}) => {
557
- const B = rn(g, t, n), d = Object.keys(e).reduce((o, u) => (o[u] = e[u].default, o), {});
558
- return Object.assign(d, B);
485
+ function ve(e, t, n = /* @__PURE__ */ new Map(), r = (f, C, u) => C, l = {}, m = (f) => f) {
486
+ return te[t.title] = t, tn[t.title] = r, re[t.title] = l, bn[t.title] = m, (f = {}) => {
487
+ const C = on(f, t, n), u = Object.keys(e).reduce((o, p) => (o[p] = e[p].default, o), {});
488
+ return Object.assign(u, C);
559
489
  };
560
490
  }
561
- function ye(e, t) {
491
+ function ge(e, t) {
562
492
  return { customClass: t.class, customStyle: t.style };
563
493
  }
564
- const In = /* @__PURE__ */ new Map([
565
- ["appearance", ye]
566
- ]), En = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-design.gitee.io/form-group.schema.json", Ln = "form-group", Mn = "A Farris Input Component", Dn = "object", On = {
494
+ const xn = /* @__PURE__ */ new Map([
495
+ ["appearance", ge]
496
+ ]), In = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-design.gitee.io/form-group.schema.json", kn = "form-group", On = "A Farris Input Component", Mn = "object", Nn = {
567
497
  id: {
568
498
  description: "The unique identifier for a form group",
569
499
  type: "string"
@@ -604,18 +534,18 @@ const In = /* @__PURE__ */ new Map([
604
534
  description: "",
605
535
  type: "number"
606
536
  }
607
- }, Nn = [
537
+ }, Ln = [
608
538
  "id",
609
539
  "type"
610
- ], An = {
611
- $schema: En,
612
- $id: kn,
613
- title: Ln,
614
- description: Mn,
615
- type: Dn,
616
- properties: On,
617
- required: Nn
618
- }, ve = {
540
+ ], Dn = {
541
+ $schema: In,
542
+ $id: En,
543
+ title: kn,
544
+ description: On,
545
+ type: Mn,
546
+ properties: Nn,
547
+ required: Ln
548
+ }, ye = {
619
549
  id: { type: String, default: "" },
620
550
  customClass: { type: String, default: "" },
621
551
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
@@ -629,43 +559,43 @@ const In = /* @__PURE__ */ new Map([
629
559
  showLabel: { type: Boolean, default: !0 },
630
560
  type: { type: String, default: "input-group" }
631
561
  };
632
- ge(
633
- ve,
634
- An,
635
- In,
562
+ ve(
563
+ ye,
564
+ Dn,
565
+ xn,
636
566
  void 0
637
567
  );
638
- const Vn = {
568
+ const jn = {
639
569
  id: { type: String },
640
570
  required: { type: Boolean, default: !1 },
641
571
  text: { type: String, default: "" },
642
572
  title: { type: String }
643
- }, jn = /* @__PURE__ */ z({
573
+ }, An = /* @__PURE__ */ U({
644
574
  name: "FDynamicFormLabel",
645
- props: Vn,
575
+ props: jn,
646
576
  emits: [],
647
577
  setup(e, t) {
648
- const n = C(e.title || e.text), r = C(e.required), s = C(e.text);
649
- return R(() => e.text, () => {
650
- s.value = e.text;
651
- }), R(() => e.required, (m, g) => {
652
- m !== g && (r.value = m);
578
+ const n = F(e.title || e.text), r = F(e.required), l = F(e.text);
579
+ return V(() => e.text, () => {
580
+ l.value = e.text;
581
+ }), V(() => e.required, (m, f) => {
582
+ m !== f && (r.value = m);
653
583
  }), () => c("label", {
654
584
  class: "col-form-label",
655
585
  title: n.value
656
586
  }, [r.value && c("span", {
657
587
  class: "farris-label-info text-danger"
658
- }, [ue("*")]), c("span", {
588
+ }, [de("*")]), c("span", {
659
589
  class: "farris-label-text"
660
- }, [s.value])]);
590
+ }, [l.value])]);
661
591
  }
662
- }), Rn = /* @__PURE__ */ new Map([
663
- ["appearance", ye]
592
+ }), $n = /* @__PURE__ */ new Map([
593
+ ["appearance", ge]
664
594
  ]);
665
- function $n(e, t, n) {
595
+ function Vn(e, t, n) {
666
596
  return t;
667
597
  }
668
- const Gn = "https://json-schema.org/draft/2020-12/schema", Wn = "https://farris-design.gitee.io/input-group.schema.json", qn = "input-group", Hn = "A Farris Input Component", zn = "object", Un = {
598
+ const Gn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", Wn = "input-group", qn = "A Farris Input Component", Hn = "object", Un = {
669
599
  id: {
670
600
  description: "The unique identifier for a Input Group",
671
601
  type: "string"
@@ -867,17 +797,17 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Wn = "https://farris-
867
797
  type: "string",
868
798
  default: ""
869
799
  }
870
- }, Qn = [
800
+ }, _n = [
871
801
  "id",
872
802
  "type"
873
- ], _n = {
803
+ ], zn = {
874
804
  $schema: Gn,
875
- $id: Wn,
876
- title: qn,
877
- description: Hn,
878
- type: zn,
805
+ $id: Rn,
806
+ title: Wn,
807
+ description: qn,
808
+ type: Hn,
879
809
  properties: Un,
880
- required: Qn
810
+ required: _n
881
811
  }, be = {
882
812
  /** 是否自动完成 */
883
813
  autocomplete: { Type: String, default: "off" },
@@ -945,392 +875,392 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Wn = "https://farris-
945
875
  */
946
876
  updateOn: { type: String, default: "blur" }
947
877
  };
948
- ge(be, _n, Rn, $n);
878
+ ve(be, zn, $n, Vn);
949
879
  function Xn(e, t, n, r) {
950
- const s = C(e.disabled), m = C(!1), g = C("text"), B = C(e.showBorder), d = C(e.textAlign), o = C(e.updateOn), u = E(() => e.editable || !e.readonly), l = E(() => e.editable && !e.disabled && !e.readonly), a = E(() => !e.disabled && m.value), i = E(() => n.value === "" || n.value === null || n.value === void 0), p = E(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), f = E(() => e.readonly || !e.editable), F = E(() => e.enableTitle ? n.value : ""), O = E(() => ({
880
+ const l = F(e.disabled), m = F(!1), f = F("text"), C = F(e.showBorder), u = F(e.textAlign), o = F(e.updateOn), p = E(() => e.editable || !e.readonly), a = E(() => e.editable && !e.disabled && !e.readonly), s = E(() => !e.disabled && m.value), i = E(() => n.value === "" || n.value === null || n.value === void 0), d = E(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = E(() => e.readonly || !e.editable), T = E(() => e.enableTitle ? n.value : ""), N = E(() => ({
951
881
  "form-control": !0,
952
882
  "f-utils-fill": !0,
953
- "text-left": d.value === "left",
954
- "text-center": d.value === "center",
955
- "text-right": d.value === "right"
956
- })), A = E(() => {
883
+ "text-left": u.value === "left",
884
+ "text-center": u.value === "center",
885
+ "text-right": u.value === "right"
886
+ })), j = E(() => {
957
887
  const x = {
958
888
  "f-cmp-inputgroup": !0,
959
889
  "input-group": !0,
960
- "f-state-disable": s.value,
961
- "f-state-editable": l.value,
962
- "f-state-readonly": f.value,
963
- "f-state-focus": a.value
890
+ "f-state-disable": l.value,
891
+ "f-state-editable": a.value,
892
+ "f-state-readonly": v.value,
893
+ "f-state-focus": s.value
964
894
  };
965
895
  return (e.customClass || "").split(" ").reduce((q, J) => (q[J] = !0, q), x), x;
966
- }), L = E(() => B.value ? "" : "border-width : 0 ");
967
- function I(x, j = !0) {
968
- n.value = x, r.value !== x && (r.value = x), j && t.emit("change", x), t.emit("update:modelValue", x), t.emit("update:value", x);
896
+ }), L = E(() => C.value ? "" : "border-width : 0 ");
897
+ function I(x, $ = !0) {
898
+ n.value = x, r.value !== x && (r.value = x), $ && t.emit("change", x), t.emit("update:modelValue", x), t.emit("update:value", x);
969
899
  }
970
- R(
900
+ V(
971
901
  () => e.modelValue,
972
- (x, j) => {
973
- x !== j && (n.value = x, r.value = x);
902
+ (x, $) => {
903
+ x !== $ && (n.value = x, r.value = x);
974
904
  }
975
- ), R(() => e.disabled, (x, j) => {
976
- x !== j && (s.value = x);
905
+ ), V(() => e.disabled, (x, $) => {
906
+ x !== $ && (l.value = x);
977
907
  });
978
908
  function k(x) {
979
909
  return m.value = !1, t.emit("blur", x), x.stopPropagation(), !1;
980
910
  }
981
- function M(x) {
911
+ function O(x) {
982
912
  t.emit("click", x);
983
913
  }
984
- function P(x) {
985
- e.disabled || (B.value && (m.value = !0), u.value && t.emit("focus", x));
914
+ function B(x) {
915
+ e.disabled || (C.value && (m.value = !0), p.value && t.emit("focus", x));
986
916
  }
987
- function $(x) {
917
+ function G(x) {
988
918
  t.emit("input", x.target.value);
989
- const j = x.target.value;
990
- r.value = j, o.value === "input" && (t.emit("update:modelValue", j), t.emit("update:value", j));
919
+ const $ = x.target.value;
920
+ r.value = $, o.value === "input" && (t.emit("update:modelValue", $), t.emit("update:value", $));
991
921
  }
992
- function N(x) {
922
+ function D(x) {
993
923
  t.emit("keydown", x);
994
924
  }
995
- function G(x) {
925
+ function R(x) {
996
926
  t.emit("keyup", x);
997
927
  }
998
- function U(x) {
928
+ function _(x) {
999
929
  x.target.tagName !== "INPUT" && x.preventDefault(), x.stopPropagation();
1000
930
  }
1001
- function Q(x) {
931
+ function z(x) {
1002
932
  if (o.value === "blur") {
1003
- const j = x.target.value;
1004
- x.stopPropagation(), I(j);
933
+ const $ = x.target.value;
934
+ x.stopPropagation(), I($);
1005
935
  }
1006
936
  }
1007
937
  return {
1008
938
  changeTextBoxValue: I,
1009
- disabled: s,
939
+ disabled: l,
1010
940
  displayText: r,
1011
- editable: l,
1012
- hasFocused: a,
1013
- inputGroupClass: A,
1014
- inputType: g,
941
+ editable: a,
942
+ hasFocused: s,
943
+ inputGroupClass: j,
944
+ inputType: f,
1015
945
  isEmpty: i,
1016
946
  modelValue: n,
1017
- readonly: f,
947
+ readonly: v,
1018
948
  onBlur: k,
1019
- onClick: M,
1020
- onFocus: P,
1021
- onInput: $,
1022
- onKeydown: N,
1023
- onKeyup: G,
1024
- onMousedown: U,
1025
- onTextBoxValueChange: Q,
1026
- placeholder: p,
1027
- textBoxClass: O,
1028
- textBoxTitle: F,
949
+ onClick: O,
950
+ onFocus: B,
951
+ onInput: G,
952
+ onKeydown: D,
953
+ onKeyup: R,
954
+ onMousedown: _,
955
+ onTextBoxValueChange: z,
956
+ placeholder: d,
957
+ textBoxClass: N,
958
+ textBoxTitle: T,
1029
959
  inputGroupStyle: L
1030
960
  };
1031
961
  }
1032
- function Zn(e, t, n) {
1033
- const r = C(!1), s = E(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: m, displayText: g, hasFocused: B, isEmpty: d } = n;
1034
- function o(f) {
1035
- r.value = f;
962
+ function Qn(e, t, n) {
963
+ const r = F(!1), l = E(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: m, displayText: f, hasFocused: C, isEmpty: u } = n;
964
+ function o(v) {
965
+ r.value = v;
1036
966
  }
1037
- R(g, () => {
1038
- B != null && B.value ? o(!!(g != null && g.value)) : o(!1);
967
+ V(f, () => {
968
+ C != null && C.value ? o(!!(f != null && f.value)) : o(!1);
1039
969
  });
1040
- const u = E(() => ({
970
+ const p = E(() => ({
1041
971
  "input-group-text": !0,
1042
972
  "input-group-clear": !0
1043
- })), l = E(() => ({
973
+ })), a = E(() => ({
1044
974
  width: "24px",
1045
975
  display: r.value ? "flex" : "none"
1046
976
  }));
1047
- function a(f) {
1048
- f.stopPropagation(), s.value && (m("", !0), o(!r.value), t.emit("clear"));
977
+ function s(v) {
978
+ v.stopPropagation(), l.value && (m("", !0), o(!r.value), t.emit("clear"));
1049
979
  }
1050
- function i(f) {
1051
- s.value && !d.value && o(!0);
980
+ function i(v) {
981
+ l.value && !u.value && o(!0);
1052
982
  }
1053
- function p(f) {
1054
- s.value && o(!1);
983
+ function d(v) {
984
+ l.value && o(!1);
1055
985
  }
1056
- return { clearButtonClass: u, clearButtonStyle: l, hasShownClearButton: r, onClearValue: a, onMouseEnter: i, onMouseLeave: p, shouldShowClearButton: s };
986
+ return { clearButtonClass: p, clearButtonStyle: a, hasShownClearButton: r, onClearValue: s, onMouseEnter: i, onMouseLeave: d, shouldShowClearButton: l };
1057
987
  }
1058
- const Jn = ["moz", "ms", "webkit"];
1059
- function Yn() {
988
+ const Zn = ["moz", "ms", "webkit"];
989
+ function Jn() {
1060
990
  let e = 0;
1061
991
  return (t) => {
1062
- const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - e)), s = setTimeout(() => {
992
+ const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - e)), l = setTimeout(() => {
1063
993
  t(n + r);
1064
994
  }, r);
1065
- return e = n + r, s;
995
+ return e = n + r, l;
1066
996
  };
1067
997
  }
1068
- function Kn() {
998
+ function Yn() {
1069
999
  if (typeof window > "u")
1070
1000
  return () => 0;
1071
1001
  if (window.requestAnimationFrame)
1072
1002
  return window.requestAnimationFrame.bind(window);
1073
- const e = Jn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
1074
- return e ? window[`${e}RequestAnimationFrame`] : Yn();
1003
+ const e = Zn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
1004
+ return e ? window[`${e}RequestAnimationFrame`] : Jn();
1075
1005
  }
1076
- Kn();
1077
- function eo(e, t) {
1078
- const n = C(e.groupText), r = E(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), s = E(() => e.enableClear || !!e.groupText);
1006
+ Yn();
1007
+ function Kn(e, t) {
1008
+ const n = F(e.groupText), r = E(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), l = E(() => e.enableClear || !!e.groupText);
1079
1009
  return { appendedButtonClass: E(() => ({
1080
1010
  "input-group-append": !0,
1081
1011
  "append-force-show": r.value
1082
- })), appendedContent: n, shouldShowAppendedButton: s };
1012
+ })), appendedContent: n, shouldShowAppendedButton: l };
1083
1013
  }
1084
- function to(e, t, n, r) {
1085
- const { appendedContent: s } = r, m = C(e.enableViewPassword), g = E(() => e.type === "password"), B = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', d = '<span class="f-icon f-icon-eye"></span>', o = C(!1);
1086
- R(() => [e.readonly, e.disabled], ([a, i]) => {
1087
- g.value && (n.value = a || i ? "password" : n.value, s.value = a || i ? d : s.value);
1014
+ function eo(e, t, n, r) {
1015
+ const { appendedContent: l } = r, m = F(e.enableViewPassword), f = E(() => e.type === "password"), C = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', o = F(!1);
1016
+ V(() => [e.readonly, e.disabled], ([s, i]) => {
1017
+ f.value && (n.value = s || i ? "password" : n.value, l.value = s || i ? u : l.value);
1088
1018
  });
1089
- function u() {
1090
- return o.value = !o.value, n.value = o.value ? "text" : "password", s.value = o.value ? B : d, !1;
1019
+ function p() {
1020
+ return o.value = !o.value, n.value = o.value ? "text" : "password", l.value = o.value ? C : u, !1;
1091
1021
  }
1092
- function l() {
1093
- n.value = g.value ? "password" : "text", s.value = g.value ? m.value ? d : "" : s.value;
1022
+ function a() {
1023
+ n.value = f.value ? "password" : "text", l.value = f.value ? m.value ? u : "" : l.value;
1094
1024
  }
1095
- return l(), { isPassword: g, onClickAppendedButton: u };
1025
+ return a(), { isPassword: f, onClickAppendedButton: p };
1096
1026
  }
1097
- function no(e, t, n) {
1098
- const r = C(), {
1099
- onBlurTextBox: s,
1027
+ function to(e, t, n) {
1028
+ const r = F(), {
1029
+ onBlurTextBox: l,
1100
1030
  onFocusTextBox: m,
1101
- onInput: g,
1102
- onKeyDown: B,
1103
- textBoxValue: d
1104
- } = n, o = E(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), u = E(() => ({
1031
+ onInput: f,
1032
+ onKeyDown: C,
1033
+ textBoxValue: u
1034
+ } = n, o = E(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), p = E(() => ({
1105
1035
  "form-control": !0,
1106
1036
  "f-utils-fill": !0
1107
- })), l = E(() => ({
1037
+ })), a = E(() => ({
1108
1038
  "text-align": e.textAlign
1109
1039
  }));
1110
- function a(f) {
1111
- f.stopPropagation();
1040
+ function s(v) {
1041
+ v.stopPropagation();
1112
1042
  }
1113
1043
  function i() {
1114
1044
  e.selectOnCreated, e.focusOnCreated;
1115
1045
  }
1116
- async function p(f) {
1117
- m(f), await ae, i();
1046
+ async function d(v) {
1047
+ m(v), await ie, i();
1118
1048
  }
1119
1049
  return H(async () => {
1120
- await ae, i();
1050
+ await ie, i();
1121
1051
  }), () => c("input", {
1122
1052
  ref: r,
1123
- class: u.value,
1124
- style: l.value,
1053
+ class: p.value,
1054
+ style: a.value,
1125
1055
  type: "text",
1126
- value: d.value,
1056
+ value: u.value,
1127
1057
  disabled: e.disabled,
1128
1058
  readonly: e.readonly || !e.editable,
1129
1059
  placeholder: o.value,
1130
- onBlur: s,
1131
- onChange: a,
1132
- onFocus: p,
1133
- onInput: g,
1134
- onKeydown: B
1060
+ onBlur: l,
1061
+ onChange: s,
1062
+ onFocus: d,
1063
+ onInput: f,
1064
+ onKeydown: C
1135
1065
  }, null);
1136
1066
  }
1137
- function oo(e, t, n) {
1067
+ function no(e, t, n) {
1138
1068
  const {
1139
1069
  canDownward: r,
1140
- canUpward: s,
1070
+ canUpward: l,
1141
1071
  onClickDownButton: m,
1142
- onClickUpButton: g
1143
- } = n, B = E(() => ({
1072
+ onClickUpButton: f
1073
+ } = n, C = E(() => ({
1144
1074
  "input-group-append": !0,
1145
1075
  "btn-group": !0,
1146
1076
  "btn-group-number": !0
1147
- })), d = E(() => ({
1077
+ })), u = E(() => ({
1148
1078
  btn: !0,
1149
1079
  "btn-secondary": !0,
1150
1080
  "btn-number-flag": !0
1151
1081
  })), o = E(() => ({
1152
- cursor: s() ? "pointer" : "not-allowed",
1082
+ cursor: l() ? "pointer" : "not-allowed",
1153
1083
  "margin-left": 0
1154
- })), u = E(() => ({
1084
+ })), p = E(() => ({
1155
1085
  cursor: r() ? "pointer" : "not-allowed",
1156
1086
  "margin-left": 0
1157
1087
  }));
1158
1088
  return () => c("div", {
1159
- class: B.value
1089
+ class: C.value
1160
1090
  }, [c("button", {
1161
1091
  title: "upButton",
1162
- class: d.value,
1092
+ class: u.value,
1163
1093
  style: o.value,
1164
- onClick: g,
1165
- disabled: !s()
1094
+ onClick: f,
1095
+ disabled: !l()
1166
1096
  }, [c("span", {
1167
1097
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
1168
1098
  }, null)]), c("button", {
1169
1099
  title: "downButton",
1170
- class: d.value,
1171
- style: u.value,
1100
+ class: u.value,
1101
+ style: p.value,
1172
1102
  onClick: m,
1173
1103
  disabled: !r()
1174
1104
  }, [c("span", {
1175
1105
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1176
1106
  }, null)])]);
1177
1107
  }
1178
- function ro(e, t) {
1179
- const n = Ue(e, t), r = Qe(e, t, n), s = _e(e, t, r, n), m = Xe(e, t, r, n, s), g = oo(e, t, s), {
1180
- displayValue: B,
1181
- modelValue: d,
1108
+ function oo(e, t) {
1109
+ const n = Ue(e, t), r = _e(e, t, n), l = ze(e, t, r, n), m = Xe(e, t, r, n, l), f = no(e, t, l), {
1110
+ displayValue: C,
1111
+ modelValue: u,
1182
1112
  getRealValue: o
1183
- } = n, u = no(e, t, m), {
1184
- format: l
1113
+ } = n, p = to(e, t, m), {
1114
+ format: a
1185
1115
  } = r, {
1186
- isFocus: a
1116
+ isFocus: s
1187
1117
  } = m, i = E(() => !e.disabled && !e.readonly);
1188
1118
  return H(() => {
1189
- const p = o(e.modelValue);
1190
- B.value = l(p);
1191
- }), R(() => [e.value], ([p]) => {
1192
- const f = o(p);
1193
- d.value = f, B.value = l(f);
1194
- }), R(() => [e.modelValue], ([p]) => {
1195
- p !== d.value && (d.value = p, !a.value && (B.value = l(o(p))));
1196
- }), R(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1197
- B.value = l(d.value);
1119
+ const d = o(e.modelValue);
1120
+ C.value = a(d);
1121
+ }), V(() => [e.value], ([d]) => {
1122
+ const v = o(d);
1123
+ u.value = v, C.value = a(v);
1124
+ }), V(() => [e.modelValue], ([d]) => {
1125
+ d !== u.value && (u.value = d, !s.value && (C.value = a(o(d))));
1126
+ }), V(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1127
+ C.value = a(u.value);
1198
1128
  }), () => c("div", {
1199
1129
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
1200
- }, [u(), i.value && g()]);
1130
+ }, [p(), i.value && f()]);
1201
1131
  }
1202
- function ao(e, t, n, r) {
1203
- const s = C(), m = C(e.autocomplete), g = C(e.enableTitle), {
1204
- isPassword: B
1205
- } = n, d = C(e.minLength), o = C(e.maxLength), u = C(e.tabIndex), {
1206
- disabled: l,
1207
- displayText: a,
1132
+ function ro(e, t, n, r) {
1133
+ const l = F(), m = F(e.autocomplete), f = F(e.enableTitle), {
1134
+ isPassword: C
1135
+ } = n, u = F(e.minLength), o = F(e.maxLength), p = F(e.tabIndex), {
1136
+ disabled: a,
1137
+ displayText: s,
1208
1138
  inputType: i,
1209
- onBlur: p,
1210
- onFocus: f,
1211
- onInput: F,
1212
- onClick: O,
1213
- onKeydown: A,
1139
+ onBlur: d,
1140
+ onFocus: v,
1141
+ onInput: T,
1142
+ onClick: N,
1143
+ onKeydown: j,
1214
1144
  onKeyup: L,
1215
1145
  onMousedown: I,
1216
1146
  onTextBoxValueChange: k,
1217
- readonly: M,
1218
- placeholder: P,
1219
- textBoxClass: $,
1220
- textBoxTitle: N
1147
+ readonly: O,
1148
+ placeholder: B,
1149
+ textBoxClass: G,
1150
+ textBoxTitle: D
1221
1151
  } = r;
1222
1152
  return H(() => {
1223
1153
  e.selectOnCreated, e.focusOnCreated;
1224
1154
  }), () => c("input", {
1225
- ref: s,
1155
+ ref: l,
1226
1156
  name: "input-group-value",
1227
1157
  autocomplete: m.value,
1228
- class: $.value,
1229
- disabled: l == null ? void 0 : l.value,
1158
+ class: G.value,
1159
+ disabled: a == null ? void 0 : a.value,
1230
1160
  maxlength: o.value,
1231
- minlength: d.value,
1232
- placeholder: P.value,
1233
- readonly: M == null ? void 0 : M.value,
1234
- tabindex: u.value,
1235
- title: g.value && !B.value ? N.value : "",
1161
+ minlength: u.value,
1162
+ placeholder: B.value,
1163
+ readonly: O == null ? void 0 : O.value,
1164
+ tabindex: p.value,
1165
+ title: f.value && !C.value ? D.value : "",
1236
1166
  type: i.value,
1237
- value: a == null ? void 0 : a.value,
1238
- onBlur: p,
1239
- onClick: O,
1167
+ value: s == null ? void 0 : s.value,
1168
+ onBlur: d,
1169
+ onClick: N,
1240
1170
  onChange: k,
1241
- onFocus: f,
1242
- onInput: F,
1243
- onKeydown: A,
1171
+ onFocus: v,
1172
+ onInput: T,
1173
+ onKeydown: j,
1244
1174
  onKeyup: L,
1245
1175
  onMousedown: I
1246
1176
  }, null);
1247
1177
  }
1248
- function io(e, t) {
1249
- const n = E(() => e.useExtendInfo && !!e.extendInfo), r = Ve({
1178
+ function ao(e, t) {
1179
+ const n = E(() => e.useExtendInfo && !!e.extendInfo), r = Ae({
1250
1180
  content: e.extendInfo
1251
1181
  });
1252
- function s() {
1182
+ function l() {
1253
1183
  t.emit("updateExtendInfo");
1254
1184
  }
1255
- return () => n.value && je(c("span", {
1185
+ return () => n.value && $e(c("span", {
1256
1186
  class: "input-group-before-tips",
1257
- onMouseenter: s
1187
+ onMouseenter: l
1258
1188
  }, [c("i", {
1259
1189
  class: "f-icon f-icon-info-circle"
1260
1190
  }, null), c("b", {
1261
1191
  class: "tips-arrow"
1262
- }, null)]), [[Re("tooltip"), r]]);
1192
+ }, null)]), [[Ve("tooltip"), r]]);
1263
1193
  }
1264
- function lo(e, t, n, r, s) {
1194
+ function lo(e, t, n, r, l) {
1265
1195
  const {
1266
1196
  appendedButtonClass: m,
1267
- appendedContent: g
1268
- } = n, B = E(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), d = E(() => g.value && !t.slots.groupTextTemplate), o = E(() => !!t.slots.groupTextTemplate), {
1269
- clearButtonClass: u,
1270
- clearButtonStyle: l,
1271
- onClearValue: a,
1197
+ appendedContent: f
1198
+ } = n, C = E(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = E(() => f.value && !t.slots.groupTextTemplate), o = E(() => !!t.slots.groupTextTemplate), {
1199
+ clearButtonClass: p,
1200
+ clearButtonStyle: a,
1201
+ onClearValue: s,
1272
1202
  shouldShowClearButton: i
1273
1203
  } = r;
1274
- function p() {
1204
+ function d() {
1275
1205
  return c("span", {
1276
1206
  id: "clearIcon",
1277
- class: u.value,
1278
- style: l.value,
1279
- onClick: (P) => a(P)
1207
+ class: p.value,
1208
+ style: a.value,
1209
+ onClick: (B) => s(B)
1280
1210
  }, [c("i", {
1281
1211
  class: "f-icon modal_close"
1282
1212
  }, null)]);
1283
1213
  }
1284
- function f(P) {
1285
- t.emit("iconMouseEnter", P);
1214
+ function v(B) {
1215
+ t.emit("iconMouseEnter", B);
1286
1216
  }
1287
- function F(P) {
1288
- t.emit("iconMouseLeave", P);
1217
+ function T(B) {
1218
+ t.emit("iconMouseLeave", B);
1289
1219
  }
1290
- function O(P) {
1291
- B.value && t.emit("clickHandle", {
1292
- originalEvent: P
1293
- }), P.stopPropagation();
1220
+ function N(B) {
1221
+ C.value && t.emit("clickHandle", {
1222
+ originalEvent: B
1223
+ }), B.stopPropagation();
1294
1224
  }
1295
- const A = e.type === "password" ? s.onClickAppendedButton : O;
1225
+ const j = e.type === "password" ? l.onClickAppendedButton : N;
1296
1226
  function L() {
1297
1227
  return c("span", {
1298
1228
  class: "input-group-text",
1299
- onMouseenter: (P) => f(P),
1300
- onMouseleave: (P) => F(P),
1301
- innerHTML: g.value,
1302
- onClick: (P) => A(P)
1229
+ onMouseenter: (B) => v(B),
1230
+ onMouseleave: (B) => T(B),
1231
+ innerHTML: f.value,
1232
+ onClick: (B) => j(B)
1303
1233
  }, null);
1304
1234
  }
1305
1235
  function I() {
1306
1236
  return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
1307
1237
  }
1308
1238
  function k() {
1309
- return d.value ? L : o.value ? I : "";
1239
+ return u.value ? L : o.value ? I : "";
1310
1240
  }
1311
- const M = k();
1241
+ const O = k();
1312
1242
  return () => c("div", {
1313
1243
  class: m.value
1314
- }, [i.value && p(), M && M()]);
1244
+ }, [i.value && d(), O && O()]);
1315
1245
  }
1316
- const so = /* @__PURE__ */ z({
1246
+ const io = /* @__PURE__ */ U({
1317
1247
  name: "FInputGroup",
1318
1248
  props: be,
1319
1249
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
1320
1250
  setup(e, t) {
1321
- const n = C(e.modelValue), r = C(e.modelValue), s = Xn(e, t, n, r), {
1251
+ const n = F(e.modelValue), r = F(e.modelValue), l = Xn(e, t, n, r), {
1322
1252
  inputGroupClass: m,
1323
- inputType: g,
1324
- inputGroupStyle: B
1325
- } = s, d = eo(e), {
1253
+ inputType: f,
1254
+ inputGroupStyle: C
1255
+ } = l, u = Kn(e), {
1326
1256
  shouldShowAppendedButton: o
1327
- } = d, u = Zn(e, t, s), {
1328
- onMouseEnter: l,
1329
- onMouseLeave: a
1330
- } = u, i = to(e, t, g, d), p = ro(e, t), f = ao(e, t, i, s), F = lo(e, t, d, u, i), O = io(e, t), A = E(() => e.type === "number");
1331
- R(() => [e.value], ([I]) => {
1257
+ } = u, p = Qn(e, t, l), {
1258
+ onMouseEnter: a,
1259
+ onMouseLeave: s
1260
+ } = p, i = eo(e, t, f, u), d = oo(e, t), v = ro(e, t, i, l), T = lo(e, t, u, p, i), N = ao(e, t), j = E(() => e.type === "number");
1261
+ V(() => [e.value], ([I]) => {
1332
1262
  n.value = I, r.value = I;
1333
- }), R(() => [e.modelValue], ([I]) => {
1263
+ }), V(() => [e.modelValue], ([I]) => {
1334
1264
  n.value = I, r.value = I;
1335
1265
  }), H(() => {
1336
1266
  e.value && (n.value = e.value, r.value = e.value);
@@ -1338,28 +1268,28 @@ const so = /* @__PURE__ */ z({
1338
1268
  const L = () => c(Z, null, [c("div", {
1339
1269
  id: "inputGroup",
1340
1270
  class: m.value,
1341
- style: B.value,
1342
- onMouseenter: l,
1343
- onMouseleave: a
1344
- }, [A.value ? p() : c(Z, null, [O(), f(), o.value && F()])])]);
1271
+ style: C.value,
1272
+ onMouseenter: a,
1273
+ onMouseleave: s
1274
+ }, [j.value ? d() : c(Z, null, [N(), v(), o.value && T()])])]);
1345
1275
  return () => L();
1346
1276
  }
1347
- }), y = {}, v = {}, b = {}, h = {};
1348
- let le = !1;
1349
- function uo() {
1350
- le || (le = !0, Je.register(y, v, b, h), Ze.register(y, v, b, h), Ye.register(y, v, b, h), Ke.register(y, v, b, h), et.register(y, v, b, h), tt.register(y, v, b, h), nt.register(y, v, b, h), ot.register(y, v, b, h), rt.register(y, v, b, h), at.register(y, v, b, h), lt.register(y, v, b, h), it.register(y, v, b, h), st.register(y, v, b, h), ut.register(y, v, b, h), ct.register(y, v, b, h), dt.register(y, v, b, h), pt.register(y, v, b, h), mt.register(y, v, b, h), ft.register(y, v, b, h), gt.register(y, v, b, h), yt.register(y, v, b, h), vt.register(y, v, b, h), ht.register(y, v, b, h), bt.register(y, v, b, h), Ct.register(y, v, b, h), Ft.register(y, v, b, h), St.register(y, v, b, h), Tt.register(y, v, b, h), ze.register(y, v, b, h), wt.register(y, v, b, h), Bt.register(y, v, b, h), Pt.register(y, v, b, h), xt.register(y, v, b, h), It.register(y, v, b, h), Et.register(y, v, b, h), kt.register(y, v, b, h), Lt.register(y, v, b, h), Dt.register(y, v, b, h), Ot.register(y, v, b, h), Mt.register(y, v, b, h), Yt.register(y, v, b), Nt.register(y, v, b, h), At.register(y, v, b, h), Vt.register(y, v, b, h), jt.register(y, v, b, h), Rt.register(y, v, b, h), $t.register(y, v, b, h), Gt.register(y, v, b, h), Wt.register(y, v, b, h), qt.register(y, v, b, h), Ht.register(y, v, b, h), zt.register(y, v, b, h), Ut.register(y, v, b, h), _t.register(y, v, b, h), Qt.register(y, v, b, h), Xt.register(y, v, b, h), Zt.register(y, v, b, h), Jt.register(y, v, b, h), Kt.register(y, v, b, h));
1277
+ }), g = {}, y = {}, b = {}, h = {};
1278
+ let ue = !1;
1279
+ function so() {
1280
+ ue || (ue = !0, Ze.register(g, y, b, h), Qe.register(g, y, b, h), Je.register(g, y, b, h), Ye.register(g, y, b, h), Ke.register(g, y, b, h), et.register(g, y, b, h), tt.register(g, y, b, h), nt.register(g, y, b, h), ot.register(g, y, b, h), rt.register(g, y, b, h), lt.register(g, y, b, h), at.register(g, y, b, h), it.register(g, y, b, h), st.register(g, y, b, h), ut.register(g, y, b, h), ct.register(g, y, b, h), dt.register(g, y, b, h), pt.register(g, y, b, h), ft.register(g, y, b, h), mt.register(g, y, b, h), vt.register(g, y, b, h), gt.register(g, y, b, h), bt.register(g, y, b, h), yt.register(g, y, b, h), ht.register(g, y, b, h), Ct.register(g, y, b, h), Ft.register(g, y, b, h), St.register(g, y, b, h), He.register(g, y, b, h), Tt.register(g, y, b, h), wt.register(g, y, b, h), Pt.register(g, y, b, h), Bt.register(g, y, b, h), xt.register(g, y, b, h), It.register(g, y, b, h), Et.register(g, y, b, h), kt.register(g, y, b, h), Mt.register(g, y, b, h), Nt.register(g, y, b, h), Ot.register(g, y, b, h), Jt.register(g, y, b), Lt.register(g, y, b, h), Dt.register(g, y, b, h), jt.register(g, y, b, h), At.register(g, y, b, h), $t.register(g, y, b, h), Vt.register(g, y, b, h), Gt.register(g, y, b, h), Rt.register(g, y, b, h), Wt.register(g, y, b, h), qt.register(g, y, b, h), Ht.register(g, y, b, h), Ut.register(g, y, b, h), zt.register(g, y, b, h), _t.register(g, y, b, h), Xt.register(g, y, b, h), Qt.register(g, y, b, h), Zt.register(g, y, b, h), Yt.register(g, y, b, h));
1351
1281
  }
1352
- function co() {
1353
- uo();
1354
- function e(s, m) {
1355
- const g = v[s];
1356
- return g ? g(m) : {};
1282
+ function uo() {
1283
+ so();
1284
+ function e(l, m) {
1285
+ const f = y[l];
1286
+ return f ? f(m) : {};
1357
1287
  }
1358
- function t(s) {
1359
- return y[s] || so;
1288
+ function t(l) {
1289
+ return g[l] || io;
1360
1290
  }
1361
- function n(s) {
1362
- switch (s) {
1291
+ function n(l) {
1292
+ switch (l) {
1363
1293
  case "check-box":
1364
1294
  return "onChangeValue";
1365
1295
  case "switch":
@@ -1411,116 +1341,121 @@ function co() {
1411
1341
  return "onSchemaSelected";
1412
1342
  case "mapping-editor":
1413
1343
  return "onMappingFieldsChanged";
1344
+ case "textarea":
1345
+ return "onValueChange";
1414
1346
  }
1415
1347
  }
1416
- function r(s) {
1417
- switch (s) {
1348
+ function r(l) {
1349
+ switch (l) {
1418
1350
  case "combo-list":
1419
1351
  case "input-group":
1352
+ case "textarea":
1420
1353
  return "onClear";
1421
1354
  }
1422
1355
  }
1423
1356
  return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: r };
1424
1357
  }
1425
- const po = /* @__PURE__ */ z({
1358
+ const co = /* @__PURE__ */ U({
1426
1359
  name: "FDynamicFormGroup",
1427
- props: ve,
1360
+ props: ye,
1428
1361
  emits: ["change", "update:modelValue"],
1429
1362
  setup(e, t) {
1430
- const n = C(e.id), r = C(e.customClass), s = C(e.editor), m = C(e.label), g = C(e.modelValue), B = C(e.readonly), d = C(e.required), o = C(e.showLabel), u = C(e.visible);
1431
- C(e.type);
1432
- const l = C(), {
1433
- resolveEditorProps: a,
1363
+ const n = F(e.id), r = F(e.customClass), l = F(e.editor), m = F(e.label), f = F(e.modelValue), C = F(e.readonly), u = F(e.required), o = F(e.showLabel), p = F(e.visible);
1364
+ F(e.type);
1365
+ const a = F(), {
1366
+ resolveEditorProps: s,
1434
1367
  resolveEditorType: i,
1435
- getChangeFunctionName: p,
1436
- getClearFunctionName: f
1437
- } = co(), F = E(() => ({
1368
+ getChangeFunctionName: d,
1369
+ getClearFunctionName: v
1370
+ } = uo(), T = E(() => ({
1438
1371
  "form-group": !0,
1439
1372
  "farris-form-group": !0,
1440
1373
  "common-group": !0,
1441
- "q-state-readonly": B.value
1374
+ "q-state-readonly": C.value
1442
1375
  }));
1443
- function O(I, k) {
1444
- g.value = k !== void 0 ? k : I, t.emit("update:modelValue", g.value), t.emit("change", g.value);
1376
+ function N(I, k) {
1377
+ f.value = k !== void 0 ? k : I, t.emit("update:modelValue", f.value), t.emit("change", f.value);
1445
1378
  }
1446
- function A() {
1379
+ function j() {
1447
1380
  t.emit("update:modelValue", "");
1448
1381
  }
1449
1382
  const L = E(() => {
1450
- const I = s.value.type || "input-group", k = i(I), M = a(I, s.value), P = p(I), $ = f(s.value.type);
1451
- return M[P] = O, M[$] = A, () => c(k, $e({
1452
- ref: l
1453
- }, M, {
1454
- modelValue: g.value,
1455
- "onUpdate:modelValue": (N) => g.value = N
1383
+ const I = l.value.type || "input-group", k = i(I), O = s(I, l.value), B = d(I), G = v(l.value.type);
1384
+ return O[B] = N, O[G] = j, () => c(k, Ge({
1385
+ ref: a
1386
+ }, O, {
1387
+ modelValue: f.value,
1388
+ "onUpdate:modelValue": (D) => f.value = D
1456
1389
  }), null);
1457
1390
  });
1458
- return R([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([I, k, M, P, $, N, G, U, Q]) => {
1459
- n.value = I, r.value = k, s.value = M, m.value = P, g.value = $, B.value = N, d.value = G, o.value = U, u.value = Q;
1391
+ return V([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([I, k, O, B, G, D, R, _, z]) => {
1392
+ n.value = I, r.value = k, l.value = O, m.value = B, f.value = G, C.value = D, u.value = R, o.value = _, p.value = z;
1460
1393
  }), t.expose({
1461
- editorRef: l
1462
- }), () => u.value && c("div", {
1394
+ editorRef: a
1395
+ }), () => p.value && c("div", {
1463
1396
  id: `${n.value}-input-group`,
1464
1397
  class: r.value
1465
1398
  }, [c("div", {
1466
1399
  class: "farris-group-wrap"
1467
1400
  }, [c("div", {
1468
- class: F.value
1469
- }, [o.value && c(jn, {
1401
+ class: T.value
1402
+ }, [o.value && c(An, {
1470
1403
  id: `${n.value}-lable`,
1471
- required: d.value,
1404
+ required: u.value,
1472
1405
  text: m.value,
1473
1406
  title: m.value
1474
1407
  }, null), c("div", {
1475
1408
  class: "farris-input-wrap"
1476
1409
  }, [L.value()])])])]);
1477
1410
  }
1478
- }), mo = /* @__PURE__ */ z({
1411
+ }), po = /* @__PURE__ */ U({
1479
1412
  name: "FPropertyPanelItem",
1480
- props: xn,
1413
+ props: Bn,
1481
1414
  emits: ["propertyChange", "triggerRefreshPanel"],
1482
1415
  setup(e, t) {
1483
- var o;
1484
- const n = C((o = e.category) == null ? void 0 : o.categoryId), r = C(e.elementConfig.propertyID), s = C(e.elementConfig.propertyName), m = C(e.elementConfig.editor), g = C(e.elementConfig.propertyValue), B = E(() => {
1485
- const u = e.elementConfig.visible;
1416
+ var u;
1417
+ const n = F((u = e.category) == null ? void 0 : u.categoryId), r = F(e.elementConfig.propertyID), l = F(e.elementConfig.propertyName);
1418
+ F(e.elementConfig.editor);
1419
+ const m = F(e.elementConfig.propertyValue), f = E(() => {
1420
+ const o = e.elementConfig.visible;
1486
1421
  return {
1487
1422
  "farris-group-wrap": !0,
1488
1423
  "property-item": !0,
1489
- "d-none": !(typeof u == "boolean" ? u : u == null ? !0 : u())
1424
+ "d-none": !(typeof o == "boolean" ? o : o == null ? !0 : o())
1490
1425
  };
1491
1426
  });
1492
- R(() => {
1493
- var u;
1494
- return (u = e.elementConfig) == null ? void 0 : u.propertyValue;
1495
- }, (u) => {
1496
- g.value = u;
1427
+ V(() => {
1428
+ var o;
1429
+ return (o = e.elementConfig) == null ? void 0 : o.propertyValue;
1430
+ }, (o) => {
1431
+ m.value = o;
1497
1432
  });
1498
- function d(u) {
1499
- e.elementConfig.propertyValue = u;
1500
- const l = {
1433
+ function C(o) {
1434
+ e.elementConfig.propertyValue = o;
1435
+ const p = {
1501
1436
  propertyID: e.elementConfig.propertyID,
1502
- propertyValue: u
1437
+ propertyValue: o
1503
1438
  };
1504
- t.emit("propertyChange", l), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
1439
+ t.emit("propertyChange", p), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
1505
1440
  }
1506
1441
  return () => c("div", {
1507
- class: B.value
1508
- }, [c(po, {
1442
+ class: f.value
1443
+ }, [c(co, {
1509
1444
  id: r.value,
1510
1445
  customClass: `${n.value}-${r.value}`,
1511
- label: s.value,
1512
- editor: m.value,
1513
- modelValue: g.value,
1514
- onChange: d,
1446
+ label: l.value,
1447
+ editor: e.elementConfig.editor,
1448
+ modelValue: m.value,
1449
+ onChange: C,
1515
1450
  editorParams: e.elementConfig.editorParams
1516
1451
  }, null)]);
1517
1452
  }
1518
- }), fo = /* @__PURE__ */ z({
1453
+ }), fo = /* @__PURE__ */ U({
1519
1454
  name: "FPropertyPanelItemList",
1520
1455
  props: Pn,
1521
1456
  emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
1522
1457
  setup(e, t) {
1523
- const n = C(e.category);
1458
+ const n = F(e.category);
1524
1459
  function r(i) {
1525
1460
  if (!i.hideCascadeTitle)
1526
1461
  return c("div", {
@@ -1533,8 +1468,8 @@ const po = /* @__PURE__ */ z({
1533
1468
  readonly: !0
1534
1469
  }, null)]);
1535
1470
  }
1536
- function s(i, p) {
1537
- p.isExpand = !p.isExpand;
1471
+ function l(i, d) {
1472
+ d.isExpand = !d.isExpand;
1538
1473
  }
1539
1474
  function m(i) {
1540
1475
  return c("div", {
@@ -1544,10 +1479,10 @@ const po = /* @__PURE__ */ z({
1544
1479
  class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
1545
1480
  "f-state-expand": i.isExpand
1546
1481
  }],
1547
- onClick: (p) => s(p, i)
1482
+ onClick: (d) => l(d, i)
1548
1483
  }, [c("span", null, null)])]);
1549
1484
  }
1550
- function g(i) {
1485
+ function f(i) {
1551
1486
  return c("div", {
1552
1487
  class: "f-section-formgroup-legend"
1553
1488
  }, [c("div", {
@@ -1564,10 +1499,10 @@ const po = /* @__PURE__ */ z({
1564
1499
  class: "farris-label-text"
1565
1500
  }, [i.propertyName])])])]);
1566
1501
  }
1567
- function B(i) {
1502
+ function C(i) {
1568
1503
  return `${e.categoryKey}_${i.propertyID}`;
1569
1504
  }
1570
- function d(i) {
1505
+ function u(i) {
1571
1506
  i.categoryId = n.value.categoryId, n.value.enableCascade && (i.propertyPath = n.value.parentPropertyID), n.value.setPropertyRelates && n.value.setPropertyRelates(i, e.propertyData), t.emit("valueChanged", {
1572
1507
  changeObject: i
1573
1508
  });
@@ -1575,19 +1510,19 @@ const po = /* @__PURE__ */ z({
1575
1510
  function o() {
1576
1511
  t.emit("triggerRefreshPanel");
1577
1512
  }
1578
- function u(i) {
1513
+ function p(i) {
1579
1514
  return c("div", {
1580
1515
  class: "px-2 mb-2"
1581
- }, [c(mo, {
1582
- key: B(i),
1516
+ }, [c(po, {
1517
+ key: C(i),
1583
1518
  elementConfig: i,
1584
1519
  category: n.value,
1585
- onPropertyChange: d,
1520
+ onPropertyChange: u,
1586
1521
  onTriggerRefreshPanel: o
1587
1522
  }, null)]);
1588
1523
  }
1589
- function l(i) {
1590
- var p;
1524
+ function a(i) {
1525
+ var d;
1591
1526
  return c("div", {
1592
1527
  class: "propertyCascadeItem farris-panel px-2 mb-2"
1593
1528
  }, [c("div", {
@@ -1596,165 +1531,163 @@ const po = /* @__PURE__ */ z({
1596
1531
  }]
1597
1532
  }, [c("div", {
1598
1533
  class: "card-header",
1599
- onClick: (f) => s(f, i)
1534
+ onClick: (v) => l(v, i)
1600
1535
  }, [c("div", {
1601
1536
  class: "panel-item-title"
1602
1537
  }, [c("div", {
1603
1538
  class: "form-group farris-form-group line-item"
1604
- }, [g(i), r(i), m(i)])])]), c("div", {
1539
+ }, [f(i), r(i), m(i)])])]), c("div", {
1605
1540
  class: ["card-body", {
1606
1541
  hidden: !i.isExpand
1607
1542
  }]
1608
- }, [(p = i.cascadeConfig) == null ? void 0 : p.map((f) => u(f))])])]);
1543
+ }, [(d = i.cascadeConfig) == null ? void 0 : d.map((v) => p(v))])])]);
1609
1544
  }
1610
- R(() => e.category, () => {
1545
+ V(() => e.category, () => {
1611
1546
  n.value = e.category;
1612
1547
  });
1613
- function a(i) {
1614
- return i.propertyType === "cascade" ? l : u;
1548
+ function s(i) {
1549
+ return i.propertyType === "cascade" ? a : p;
1615
1550
  }
1616
- return () => c(Z, null, [n.value.properties.map((i) => a(i)(i))]);
1551
+ return () => c(Z, null, [n.value.properties.map((i) => s(i)(i))]);
1617
1552
  }
1618
- }), se = /* @__PURE__ */ z({
1553
+ }), ce = /* @__PURE__ */ U({
1619
1554
  name: "FPropertyPanel",
1620
- props: en,
1555
+ props: Kt,
1621
1556
  emits: ["propertyChanged"],
1622
1557
  setup(e, t) {
1623
- const n = C(e.width), r = C(e.isWidePanel), s = C(e.enableSearch), m = C(e.mode), g = C(e.isPersitOpenState), B = C(e.isShowPanel), d = C(), o = C(), u = C(e.showCloseBtn), l = C(e.selectedTabId), a = C(!0), i = C(e.isWhiteTheme);
1624
- let p = [], f = [];
1625
- const F = C(""), O = C(), A = C(), L = Ge("SchemaService");
1626
- let I = [], k = null, M = "";
1627
- const P = C(), {
1628
- proxy: $
1629
- } = We();
1630
- function N() {
1631
- f = [], P.value && P.value.categoryList && Array.isArray(P.value.categoryList) && P.value.categoryList.length > 0 && P.value.categoryList.forEach((S) => {
1632
- if (S.properties.forEach((T) => T.categoryId = S.categoryId), S.properties && Array.isArray(S.properties) && S.properties.length > 0) {
1633
- const T = S.properties.map((D) => (D.category = S, D));
1634
- f = f.concat(T);
1558
+ const n = F(e.width), r = F(e.isWidePanel), l = F(e.enableSearch), m = F(e.mode), f = F(e.isPersitOpenState), C = F(e.isShowPanel), u = F(), o = F(), p = F(e.showCloseBtn), a = F(e.selectedTabId), s = F(!0), i = F(e.isWhiteTheme);
1559
+ let d = [], v = [];
1560
+ const T = F(""), N = F(), j = F(), L = Re("SchemaService");
1561
+ let I = [], k = null, O = "";
1562
+ const B = F(), G = F(0);
1563
+ function D() {
1564
+ v = [], B.value && B.value.categoryList && Array.isArray(B.value.categoryList) && B.value.categoryList.length > 0 && B.value.categoryList.forEach((w) => {
1565
+ if (w.properties.forEach((S) => S.categoryId = w.categoryId), w.properties && Array.isArray(w.properties) && w.properties.length > 0) {
1566
+ const S = w.properties.map((M) => (M.category = w, M));
1567
+ v = v.concat(S);
1635
1568
  }
1636
1569
  });
1637
1570
  }
1638
- function G(w) {
1639
- let S = w.offsetTop, T = w.offsetParent;
1640
- for (; T !== null; )
1641
- S += T.offsetTop, T = T.offsetParent;
1642
- return S;
1571
+ function R(P) {
1572
+ let w = P.offsetTop, S = P.offsetParent;
1573
+ for (; S !== null; )
1574
+ w += S.offsetTop, S = S.offsetParent;
1575
+ return w;
1643
1576
  }
1644
- function U(w, S) {
1645
- w && S && Object.keys(S).length > 0 && Object.keys(S).forEach((T) => {
1577
+ function _(P, w) {
1578
+ P && w && Object.keys(w).length > 0 && Object.keys(w).forEach((S) => {
1646
1579
  var W;
1647
- const D = S[T];
1648
- (W = w.style) == null || W.setProperty(T, D);
1580
+ const M = w[S];
1581
+ (W = P.style) == null || W.setProperty(S, M);
1649
1582
  });
1650
1583
  }
1651
- function Q() {
1652
- return f.filter((S) => S.visible ? !!(S.propertyID && S.propertyID.startsWith(F.value) || S.propertyName && (S.propertyName.startsWith(F.value) || S.propertyName.includes(F.value))) : !1);
1584
+ function z() {
1585
+ return v.filter((w) => w.visible ? !!(w.propertyID && w.propertyID.startsWith(T.value) || w.propertyName && (w.propertyName.startsWith(T.value) || w.propertyName.includes(T.value))) : !1);
1653
1586
  }
1654
- function x(w, S, T) {
1655
- if (w === 0) {
1656
- const D = G(S), K = G(T) - D - 5;
1657
- S == null || S.scroll({
1587
+ function x(P, w, S) {
1588
+ if (P === 0) {
1589
+ const M = R(w), K = R(S) - M - 5;
1590
+ w == null || w.scroll({
1658
1591
  top: K,
1659
1592
  behavior: "smooth"
1660
1593
  });
1661
1594
  }
1662
1595
  }
1663
- function j(w) {
1664
- I && I.length > 0 && (I.forEach((T) => {
1665
- T.style.cssText = "";
1666
- }), I = []), F.value = w || F.value;
1667
- const S = document.querySelector(".panel-body");
1668
- if (!F.value)
1669
- O.value && S && (S.scrollTop = 0);
1670
- else if (N(), f && f.length > 0) {
1671
- const T = Q();
1672
- T && T.length > 0 && (T[0].category.status === "closed" && (T[0].category.status = "open"), setTimeout(() => {
1673
- T.forEach((D, W) => {
1674
- const K = D.propertyType === "cascade" ? `.${D.categoryId}-${D.propertyID} div.col-form-label` : `.property-item .${D.categoryId}-${D.propertyID} label.col-form-label`, X = document.querySelector(K);
1675
- X && (x(W, S, X), U(X, {
1596
+ function $(P) {
1597
+ I && I.length > 0 && (I.forEach((S) => {
1598
+ S.style.cssText = "";
1599
+ }), I = []), T.value = P || T.value;
1600
+ const w = document.querySelector(".panel-body");
1601
+ if (!T.value)
1602
+ N.value && w && (w.scrollTop = 0);
1603
+ else if (D(), v && v.length > 0) {
1604
+ const S = z();
1605
+ S && S.length > 0 && (S[0].category.status === "closed" && (S[0].category.status = "open"), setTimeout(() => {
1606
+ S.forEach((M, W) => {
1607
+ const K = M.propertyType === "cascade" ? `.${M.categoryId}-${M.propertyID} div.col-form-label` : `.property-item .${M.categoryId}-${M.propertyID} label.col-form-label`, Q = document.querySelector(K);
1608
+ Q && (x(W, w, Q), _(Q, {
1676
1609
  color: "#5B89FE"
1677
- }), I.push(X));
1610
+ }), I.push(Q));
1678
1611
  });
1679
1612
  }, 50));
1680
1613
  }
1681
1614
  }
1682
- function q(w) {
1683
- j(w);
1615
+ function q(P) {
1616
+ $(P);
1684
1617
  }
1685
- function J(w) {
1618
+ function J(P) {
1686
1619
  const {
1687
- value: S
1688
- } = w.target;
1689
- w.key === "Enter" && q(S);
1620
+ value: w
1621
+ } = P.target;
1622
+ P.key === "Enter" && q(w);
1690
1623
  }
1691
- function he(w) {
1624
+ function he(P) {
1692
1625
  const {
1693
- value: S
1694
- } = w.target;
1695
- q(S);
1626
+ value: w
1627
+ } = P.target;
1628
+ q(w);
1696
1629
  }
1697
1630
  function Ce() {
1698
- g.value || (a.value = !1), t.emit("closePropertyPanel");
1631
+ f.value || (s.value = !1), t.emit("closePropertyPanel");
1699
1632
  }
1700
- function Y(w) {
1701
- F.value = "", j();
1633
+ function Y(P) {
1634
+ T.value = "", $();
1702
1635
  }
1703
- function Fe(w) {
1704
- !w.status || w.status === "open" ? w.status = "closed" : w.status = "open";
1636
+ function Fe(P) {
1637
+ !P.status || P.status === "open" ? P.status = "closed" : P.status = "open";
1705
1638
  }
1706
- function _() {
1707
- var w, S;
1708
- if (p = [], !d.value || d.value.length === 0) {
1709
- p = [{
1639
+ function X() {
1640
+ var P, w;
1641
+ if (d = [], !u.value || u.value.length === 0) {
1642
+ d = [{
1710
1643
  tabId: "default",
1711
1644
  tabName: "属性",
1712
1645
  categoryList: []
1713
- }], P.value = null;
1646
+ }], B.value = null;
1714
1647
  return;
1715
1648
  }
1716
- if ((w = d == null ? void 0 : d.value) == null || w.forEach((T) => {
1717
- if (T.tabId) {
1718
- const D = p.find((W) => W.tabId === T.tabId);
1719
- D ? (D.categoryList.push(T), D.hide && (D.hide = T.hide || T.properties.length === 0)) : p.push({
1720
- tabId: T.tabId,
1721
- tabName: T.tabName,
1722
- categoryList: [T],
1723
- hide: T.hide || T.properties.length === 0
1649
+ if ((P = u == null ? void 0 : u.value) == null || P.forEach((S) => {
1650
+ if (S.tabId) {
1651
+ const M = d.find((W) => W.tabId === S.tabId);
1652
+ M ? (M.categoryList.push(S), M.hide && (M.hide = S.hide || S.properties.length === 0)) : d.push({
1653
+ tabId: S.tabId,
1654
+ tabName: S.tabName,
1655
+ categoryList: [S],
1656
+ hide: S.hide || S.properties.length === 0
1724
1657
  });
1725
1658
  } else {
1726
- const D = p.find((W) => W.tabId === "default");
1727
- D ? D.categoryList.push(T) : p.push({
1659
+ const M = d.find((W) => W.tabId === "default");
1660
+ M ? M.categoryList.push(S) : d.push({
1728
1661
  tabId: "default",
1729
1662
  tabName: "属性",
1730
- categoryList: [T]
1663
+ categoryList: [S]
1731
1664
  });
1732
1665
  }
1733
- }), l.value) {
1734
- let T = p == null ? void 0 : p.find((D) => D.tabId === l.value && !D.hide);
1735
- P.value = T || p[0];
1666
+ }), a.value) {
1667
+ let S = d == null ? void 0 : d.find((M) => M.tabId === a.value && !M.hide);
1668
+ B.value = S || d[0];
1736
1669
  } else
1737
- P.value = p[0];
1738
- l.value = (S = P.value) == null ? void 0 : S.tabId;
1670
+ B.value = d[0];
1671
+ a.value = (w = B.value) == null ? void 0 : w.tabId;
1739
1672
  }
1740
- R(() => [e.schema, e.isShowPanel], () => {
1741
- o.value = e.schema, d.value = ee(o.value, L, k, M), _(), Y(F.value), $.$forceUpdate();
1673
+ V(() => [e.schema, e.isShowPanel], () => {
1674
+ o.value = e.schema, !e.schema || !e.schema.type ? u.value = [] : u.value = ee(o.value, L, k, O), X(), Y(T.value), G.value++;
1742
1675
  }), H(() => {
1743
- _();
1676
+ X();
1744
1677
  });
1745
- function Se(w, S) {
1746
- (!o.value || S) && (o.value = S || e.schema), d.value = ee(o.value, L, k, M, w), _(), Y(F.value);
1678
+ function Se(P, w) {
1679
+ (!o.value || w) && (o.value = w || e.schema), u.value = ee(o.value, L, k, O, P), X(), Y(T.value);
1747
1680
  }
1748
- function Te(w, S) {
1749
- k = w, M = S;
1681
+ function Te(P, w) {
1682
+ k = P, O = w;
1750
1683
  }
1751
- function re() {
1684
+ function le() {
1752
1685
  m.value = m.value === "panel" ? "sidebar" : "panel", m.value === "panel" ? (setTimeout(() => {
1753
1686
  q();
1754
1687
  }, 100), n.value = "300px") : n.value = "41px";
1755
1688
  }
1756
1689
  function we() {
1757
- if (u.value)
1690
+ if (p.value)
1758
1691
  return c("div", {
1759
1692
  class: "title-actions"
1760
1693
  }, [c("div", {
@@ -1771,12 +1704,12 @@ const po = /* @__PURE__ */ z({
1771
1704
  class: "f-icon f-icon-close"
1772
1705
  }, null)])])])])]);
1773
1706
  }
1774
- function Be() {
1775
- d.value = ee(o.value, L, k, M), _();
1776
- }
1777
1707
  function Pe() {
1778
- var w;
1779
- if (s.value && ((w = P.value) == null ? void 0 : w.tabId) !== "commands")
1708
+ u.value = ee(o.value, L, k, O), X();
1709
+ }
1710
+ function Be() {
1711
+ var P;
1712
+ if (l.value && ((P = B.value) == null ? void 0 : P.tabId) !== "commands")
1780
1713
  return c("div", {
1781
1714
  class: "search"
1782
1715
  }, [c("div", {
@@ -1786,60 +1719,61 @@ const po = /* @__PURE__ */ z({
1786
1719
  type: "text",
1787
1720
  placeholder: "输入属性名称或编号快速定位",
1788
1721
  autocomplete: "off",
1789
- onKeyup: (S) => J(S),
1790
- value: F.value
1722
+ onKeyup: (w) => J(w),
1723
+ value: T.value
1791
1724
  }, null), c("div", {
1792
1725
  class: "input-group-append",
1793
1726
  style: "margin-left: 0px;"
1794
1727
  }, [c("span", {
1795
1728
  class: "input-group-text input-group-clear",
1796
1729
  style: [{
1797
- display: F.value && F.value.length > 0 ? "" : "none"
1730
+ display: T.value && T.value.length > 0 ? "" : "none"
1798
1731
  }],
1799
- onClick: (S) => Y()
1732
+ onClick: (w) => Y()
1800
1733
  }, [c("i", {
1801
1734
  class: "f-icon modal_close"
1802
1735
  }, null)]), c("span", {
1803
1736
  class: "input-group-text input-group-clear",
1804
- onClick: (S) => he(S)
1737
+ onClick: (w) => he(w)
1805
1738
  }, [c("i", {
1806
1739
  class: "f-icon f-icon-search"
1807
1740
  }, null)])])])]);
1808
1741
  }
1809
- function xe(w) {
1810
- return `${e.propertyName}_${w.categoryId}`;
1742
+ function xe(P) {
1743
+ return `${e.propertyName}_${P.categoryId}`;
1811
1744
  }
1812
- function Ie(w) {
1813
- t.emit("propertyChanged", w);
1745
+ function Ie(P) {
1746
+ t.emit("propertyChanged", P);
1814
1747
  }
1815
1748
  function Ee() {
1816
- var w, S;
1817
- if (P.value)
1749
+ var P, w;
1750
+ if (B.value)
1818
1751
  return c("div", {
1819
1752
  class: "panel-body",
1820
- ref: A
1753
+ ref: j
1821
1754
  }, [c("ul", {
1822
1755
  class: ["property-grid", {
1823
1756
  "wide-panel": r.value
1824
1757
  }]
1825
- }, [(S = (w = P.value) == null ? void 0 : w.categoryList) == null ? void 0 : S.map((T) => c("li", {
1826
- key: xe(T),
1827
- "data-category-id": T == null ? void 0 : T.categoryId
1828
- }, [!T.hide && !T.hideTitle && c("span", {
1758
+ }, [(w = (P = B.value) == null ? void 0 : P.categoryList) == null ? void 0 : w.map((S) => c("li", {
1759
+ key: xe(S),
1760
+ "data-category-id": S == null ? void 0 : S.categoryId
1761
+ }, [!S.hide && !S.hideTitle && c("span", {
1829
1762
  class: "group-label",
1830
- onClick: () => Fe(T)
1763
+ onClick: () => Fe(S)
1831
1764
  }, [c("span", {
1832
1765
  class: ["f-icon mr-2", {
1833
- "f-legend-show": T.status === "closed"
1766
+ "f-legend-show": S.status === "closed"
1834
1767
  }, {
1835
- "f-legend-collapse": T.status === "open" || T.status === void 0
1768
+ "f-legend-collapse": S.status === "open" || S.status === void 0
1836
1769
  }]
1837
- }, null), T.categoryName]), c("div", {
1838
- hidden: T.status === "closed"
1770
+ }, null), S.categoryName]), c("div", {
1771
+ hidden: S.status === "closed"
1839
1772
  }, [c(fo, {
1840
- category: T,
1773
+ key: `${S == null ? void 0 : S.categoryId}-${G.value}`,
1774
+ category: S,
1841
1775
  propertyData: o.value,
1842
- onTriggerRefreshPanel: Be,
1776
+ onTriggerRefreshPanel: Pe,
1843
1777
  onValueChanged: Ie
1844
1778
  }, null)])]))])]);
1845
1779
  }
@@ -1847,14 +1781,14 @@ const po = /* @__PURE__ */ z({
1847
1781
  if (m.value === "sidebar")
1848
1782
  return c("div", {
1849
1783
  class: "side-panel h-100",
1850
- onClick: re
1784
+ onClick: le
1851
1785
  }, [c("i", {
1852
1786
  class: "f-icon f-icon-engineering w-100 icon"
1853
- }, null), c("span", null, [ue("属性")])]);
1787
+ }, null), c("span", null, [de("属性")])]);
1854
1788
  }
1855
- function Le() {
1789
+ function Oe() {
1856
1790
  return {
1857
- display: a.value ? "block" : "none",
1791
+ display: s.value ? "block" : "none",
1858
1792
  width: n.value
1859
1793
  };
1860
1794
  }
@@ -1866,58 +1800,58 @@ const po = /* @__PURE__ */ z({
1866
1800
  style: [{
1867
1801
  transform: m.value === "sidebar" ? "none" : "rotate(180deg)"
1868
1802
  }],
1869
- onClick: re
1803
+ onClick: le
1870
1804
  }, null)]);
1871
1805
  }
1872
- function De(w) {
1873
- P.value = w, l.value = P.value.tabId, F.value = "";
1806
+ function Ne(P) {
1807
+ B.value = P, a.value = B.value.tabId, T.value = "";
1874
1808
  }
1875
- function Oe() {
1876
- return p.map((w) => c("div", {
1809
+ function Le() {
1810
+ return d.map((P) => c("div", {
1877
1811
  class: ["title-label", {
1878
- active: P.value && P.value.tabId === w.tabId
1812
+ active: B.value && B.value.tabId === P.tabId
1879
1813
  }, {
1880
- hidden: w.hide
1814
+ hidden: P.hide
1881
1815
  }],
1882
- onClick: () => De(w)
1883
- }, [c("span", null, [w.tabName])]));
1816
+ onClick: () => Ne(P)
1817
+ }, [c("span", null, [P.tabName])]));
1884
1818
  }
1885
1819
  return H(() => {
1886
- q(F.value);
1887
- }), qe(() => {
1888
- g.value && (a.value = B.value), _(), q(F.value);
1889
- }), R(P, () => {
1820
+ q(T.value);
1821
+ }), We(() => {
1822
+ f.value && (s.value = C.value), X(), q(T.value);
1823
+ }), V(B, () => {
1890
1824
  }), t.expose({
1891
1825
  updatePropertyConfig: Se,
1892
1826
  updateDesignerItem: Te
1893
1827
  }), () => c(Z, null, [c("div", {
1894
- ref: O,
1828
+ ref: N,
1895
1829
  class: ["property-panel", {
1896
1830
  "white-theme": i.value
1897
1831
  }],
1898
- style: Le()
1832
+ style: Oe()
1899
1833
  }, [c("div", {
1900
1834
  class: "propertyPanel panel flex-column",
1901
1835
  hidden: m.value !== "panel"
1902
1836
  }, [c("div", {
1903
1837
  class: ["title d-flex", {
1904
- "p-right": u.value
1838
+ "p-right": p.value
1905
1839
  }, {
1906
- only: p.length === 1
1840
+ only: d.length === 1
1907
1841
  }]
1908
- }, [Oe(), we()]), Pe(), Ee()]), Me(), ke()])]);
1842
+ }, [Le(), we()]), Be(), Ee()]), Me(), ke()])]);
1909
1843
  }
1910
1844
  });
1911
- var go = /* @__PURE__ */ ((e) => (e.string = "string", e.boolean = "boolean", e.number = "number", e.select = "select", e.boolOrExp = "boolOrExp", e.editableSelect = "editableSelect", e.multiSelect = "multiSelect", e.date = "date", e.datetime = "datetime", e.modal = "modal", e.cascade = "cascade", e.custom = "custom", e.unity = "unity", e.events = "events", e.switch = "switch", e.multiLanguage = "multiLanguage", e))(go || {});
1912
- const Br = {
1845
+ var mo = /* @__PURE__ */ ((e) => (e.string = "string", e.boolean = "boolean", e.number = "number", e.select = "select", e.boolOrExp = "boolOrExp", e.editableSelect = "editableSelect", e.multiSelect = "multiSelect", e.date = "date", e.datetime = "datetime", e.modal = "modal", e.cascade = "cascade", e.custom = "custom", e.unity = "unity", e.events = "events", e.switch = "switch", e.multiLanguage = "multiLanguage", e))(mo || {});
1846
+ const wr = {
1913
1847
  install(e) {
1914
- e.component(se.name, se);
1848
+ e.component(ce.name, ce);
1915
1849
  }
1916
1850
  };
1917
1851
  export {
1918
- se as FPropertyPanel,
1919
- go as PropertyType,
1920
- Br as default,
1921
- xn as propertyPanelItemProps,
1922
- en as propertyPanelProps
1852
+ ce as FPropertyPanel,
1853
+ mo as PropertyType,
1854
+ wr as default,
1855
+ Bn as propertyPanelItemProps,
1856
+ Kt as propertyPanelProps
1923
1857
  };