@farris/ui-vue 1.2.6 → 1.2.8

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