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