@farris/ui-vue 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/components/accordion/index.esm.js +1 -1
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +472 -366
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +1 -1
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +472 -480
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +225 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +615 -517
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +325 -333
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +578 -472
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +49 -49
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/common/index.esm.js +832 -722
  20. package/components/common/index.umd.cjs +1 -1
  21. package/components/component/index.esm.js +303 -981
  22. package/components/component/index.umd.cjs +1 -1
  23. package/components/condition/index.esm.js +8 -8
  24. package/components/condition/index.umd.cjs +1 -1
  25. package/components/content-container/index.esm.js +335 -1002
  26. package/components/content-container/index.umd.cjs +1 -1
  27. package/components/data-grid/index.esm.js +4429 -4312
  28. package/components/data-grid/index.umd.cjs +1 -1
  29. package/components/data-view/index.esm.js +3037 -3020
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +2216 -2119
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.css +1 -1
  34. package/components/designer-canvas/index.esm.js +914 -883
  35. package/components/designer-canvas/index.umd.cjs +1 -1
  36. package/components/dropdown/index.esm.js +223 -231
  37. package/components/dropdown/index.umd.cjs +2 -2
  38. package/components/dynamic-form/index.esm.js +1691 -2187
  39. package/components/dynamic-form/index.umd.cjs +1 -1
  40. package/components/dynamic-resolver/index.esm.js +143 -136
  41. package/components/dynamic-resolver/index.umd.cjs +1 -1
  42. package/components/events-editor/index.esm.js +250 -258
  43. package/components/events-editor/index.umd.cjs +1 -1
  44. package/components/expression-editor/index.esm.js +1 -1
  45. package/components/expression-editor/index.umd.cjs +1 -1
  46. package/components/external-container/index.esm.js +2672 -3438
  47. package/components/external-container/index.umd.cjs +1 -1
  48. package/components/field-selector/index.esm.js +2965 -2970
  49. package/components/field-selector/index.umd.cjs +1 -1
  50. package/components/filter-bar/index.esm.js +1650 -1602
  51. package/components/filter-bar/index.umd.cjs +1 -1
  52. package/components/flow-canvas/index.css +1 -1
  53. package/components/flow-canvas/index.esm.js +684 -675
  54. package/components/flow-canvas/index.umd.cjs +1 -1
  55. package/components/image-cropper/index.esm.js +453 -461
  56. package/components/image-cropper/index.umd.cjs +1 -1
  57. package/components/input-group/index.esm.js +604 -507
  58. package/components/input-group/index.umd.cjs +1 -1
  59. package/components/layout/index.esm.js +402 -378
  60. package/components/layout/index.umd.cjs +1 -1
  61. package/components/list-nav/index.esm.js +348 -1019
  62. package/components/list-nav/index.umd.cjs +1 -1
  63. package/components/list-view/index.esm.js +1658 -1666
  64. package/components/list-view/index.umd.cjs +1 -1
  65. package/components/lookup/index.esm.js +5209 -5088
  66. package/components/lookup/index.umd.cjs +1 -1
  67. package/components/mapping-editor/index.esm.js +4329 -4213
  68. package/components/mapping-editor/index.umd.cjs +1 -1
  69. package/components/nav/index.esm.js +905 -1357
  70. package/components/nav/index.umd.cjs +3 -3
  71. package/components/number-range/index.esm.js +517 -420
  72. package/components/number-range/index.umd.cjs +1 -1
  73. package/components/number-spinner/index.esm.js +588 -491
  74. package/components/number-spinner/index.umd.cjs +1 -1
  75. package/components/order/index.esm.js +1376 -1965
  76. package/components/order/index.umd.cjs +1 -1
  77. package/components/page-footer/index.esm.js +1 -1
  78. package/components/page-footer/index.umd.cjs +1 -1
  79. package/components/page-header/index.esm.js +1073 -1905
  80. package/components/page-header/index.umd.cjs +1 -1
  81. package/components/pagination/index.esm.js +809 -1237
  82. package/components/pagination/index.umd.cjs +1 -1
  83. package/components/progress/index.esm.js +198 -206
  84. package/components/progress/index.umd.cjs +3 -3
  85. package/components/property-editor/index.esm.js +1297 -1200
  86. package/components/property-editor/index.umd.cjs +2 -2
  87. package/components/property-panel/index.esm.js +609 -507
  88. package/components/property-panel/index.umd.cjs +1 -1
  89. package/components/query-solution/index.esm.js +3391 -3758
  90. package/components/query-solution/index.umd.cjs +1 -1
  91. package/components/radio-button/index.esm.js +1 -1
  92. package/components/radio-button/index.umd.cjs +1 -1
  93. package/components/radio-group/index.esm.js +544 -447
  94. package/components/radio-group/index.umd.cjs +1 -1
  95. package/components/rate/index.esm.js +247 -255
  96. package/components/rate/index.umd.cjs +1 -1
  97. package/components/response-layout/index.esm.js +146 -154
  98. package/components/response-layout/index.umd.cjs +1 -1
  99. package/components/response-layout-editor/index.esm.js +700 -675
  100. package/components/response-layout-editor/index.umd.cjs +1 -1
  101. package/components/response-toolbar/index.esm.js +956 -1786
  102. package/components/response-toolbar/index.umd.cjs +1 -1
  103. package/components/schema-selector/index.esm.js +4963 -5617
  104. package/components/schema-selector/index.umd.cjs +2 -2
  105. package/components/search-box/index.esm.js +158 -161
  106. package/components/search-box/index.umd.cjs +1 -1
  107. package/components/section/index.esm.js +436 -1124
  108. package/components/section/index.umd.cjs +1 -1
  109. package/components/smoke-detector/index.esm.js +92 -100
  110. package/components/smoke-detector/index.umd.cjs +1 -1
  111. package/components/splitter/index.esm.js +571 -1210
  112. package/components/splitter/index.umd.cjs +1 -1
  113. package/components/splitter/style.js +2 -0
  114. package/components/step/index.esm.js +239 -247
  115. package/components/step/index.umd.cjs +1 -1
  116. package/components/switch/index.esm.js +445 -348
  117. package/components/switch/index.umd.cjs +1 -1
  118. package/components/tabs/index.esm.js +2278 -3031
  119. package/components/tabs/index.umd.cjs +1 -1
  120. package/components/tags/index.esm.js +311 -319
  121. package/components/tags/index.umd.cjs +1 -1
  122. package/components/text/index.esm.js +215 -223
  123. package/components/text/index.umd.cjs +1 -1
  124. package/components/textarea/index.esm.js +468 -371
  125. package/components/textarea/index.umd.cjs +1 -1
  126. package/components/time-picker/index.esm.js +1271 -1174
  127. package/components/time-picker/index.umd.cjs +1 -1
  128. package/components/transfer/index.esm.js +469 -477
  129. package/components/transfer/index.umd.cjs +1 -1
  130. package/components/tree-grid/index.esm.js +3060 -3065
  131. package/components/tree-grid/index.umd.cjs +1 -1
  132. package/components/tree-view/index.esm.js +2476 -2481
  133. package/components/tree-view/index.umd.cjs +1 -1
  134. package/components/uploader/index.esm.js +374 -382
  135. package/components/uploader/index.umd.cjs +2 -2
  136. package/components/verify-detail/index.esm.js +248 -256
  137. package/components/verify-detail/index.umd.cjs +1 -1
  138. package/components/video/index.esm.js +414 -1093
  139. package/components/video/index.umd.cjs +1 -1
  140. package/components/weather/index.esm.js +498 -506
  141. package/components/weather/index.umd.cjs +5 -5
  142. package/farris.all.esm.js +20216 -21844
  143. package/farris.all.umd.cjs +9 -9
  144. package/index.css +1 -1
  145. package/package.json +1 -1
  146. package/types/common/directive/area-response.d.ts +10 -0
  147. package/types/common/index.d.ts +8 -0
  148. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  149. package/types/common/utils/resolve-field.d.ts +2 -0
  150. package/types/common/utils/use-class.d.ts +7 -0
  151. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  152. package/types/condition/src/types.d.ts +2 -1
  153. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  154. package/types/data-grid/index.d.ts +8 -5
  155. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  156. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  157. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  158. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  159. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  160. package/types/data-view/composition/types.d.ts +7 -9
  161. package/types/designer-canvas/index.d.ts +2 -1
  162. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  163. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  164. package/types/designer-canvas/src/composition/types.d.ts +1 -2
  165. package/types/designer-canvas/src/types.d.ts +2 -1
  166. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  167. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  168. package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
  169. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  170. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  171. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  172. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  173. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  174. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  175. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  176. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  177. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  178. package/types/property-panel/index.d.ts +2 -1
  179. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  180. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  181. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  182. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  183. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  184. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  185. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  186. package/types/query-solution/src/solutions.d.ts +108 -509
  187. package/types/response-layout-editor/index.d.ts +3 -1
  188. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  189. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  190. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  191. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  192. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  193. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  194. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  195. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  196. package/types/tree-grid/index.d.ts +3 -3
  197. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  198. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  199. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  200. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  201. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
@@ -1,66 +1,69 @@
1
- import { ref as h, computed as S, defineComponent as H, watch as V, createVNode as l, createTextVNode as ce, onMounted as W, nextTick as ie, reactive as je, withDirectives as Re, resolveDirective as Ae, Fragment as Z, mergeProps as De, inject as Ve, onBeforeMount as $e } from "vue";
2
- import { isPlainObject as le, cloneDeep as Me } from "lodash-es";
1
+ var Ae = Object.defineProperty;
2
+ var Re = (e, t, n) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var $ = (e, t, n) => Re(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { ref as h, computed as S, defineComponent as H, watch as R, createVNode as l, createTextVNode as de, onMounted as W, nextTick as le, reactive as De, withDirectives as $e, resolveDirective as Ge, Fragment as J, mergeProps as qe, inject as Ue, onBeforeMount as We } from "vue";
5
+ import { isPlainObject as se, cloneDeep as pe } from "lodash-es";
3
6
  import "bignumber.js";
4
- import Ge, { useNumber as qe, useFormat as We, useSpinner as He, useTextBox as Ue } from "../number-spinner/index.esm.js";
5
- import _e from "../accordion/index.esm.js";
6
- import ze from "../avatar/index.esm.js";
7
- import Qe from "../button-edit/index.esm.js";
8
- import Ze from "../button-group/index.esm.js";
9
- import Je from "../calendar/index.esm.js";
10
- import Xe from "../capsule/index.esm.js";
11
- import Ye from "../checkbox/index.esm.js";
12
- import Ke from "../combo-list/index.esm.js";
13
- import et from "../combo-tree/index.esm.js";
14
- import tt from "../component/index.esm.js";
15
- import nt from "../color-picker/index.esm.js";
16
- import ot from "../content-container/index.esm.js";
17
- import rt from "../date-picker/index.esm.js";
18
- import at from "../data-grid/index.esm.js";
19
- import it from "../dropdown/index.esm.js";
20
- import lt from "../dynamic-form/index.esm.js";
21
- import st from "../events-editor/index.esm.js";
22
- import ut from "../filter-bar/index.esm.js";
23
- import ct from "../field-selector/index.esm.js";
24
- import dt from "../image-cropper/index.esm.js";
25
- import pt from "../input-group/index.esm.js";
26
- import ft from "../layout/index.esm.js";
27
- import mt from "../list-nav/index.esm.js";
28
- import gt from "../list-view/index.esm.js";
29
- import vt from "../lookup/index.esm.js";
30
- import yt from "../mapping-editor/index.esm.js";
31
- import bt from "../nav/index.esm.js";
32
- import ht from "../number-range/index.esm.js";
33
- import Ct from "../order/index.esm.js";
34
- import Ft from "../page-header/index.esm.js";
35
- import xt from "../page-footer/index.esm.js";
36
- import Tt from "../pagination/index.esm.js";
37
- import wt from "../progress/index.esm.js";
38
- import Bt from "../query-solution/index.esm.js";
39
- import Pt from "../radio-group/index.esm.js";
40
- import St from "../rate/index.esm.js";
41
- import kt from "../response-toolbar/index.esm.js";
42
- import Et from "../response-layout/index.esm.js";
43
- import It from "../response-layout-editor/index.esm.js";
44
- import Ot from "../search-box/index.esm.js";
45
- import Nt from "../section/index.esm.js";
46
- import Lt from "../smoke-detector/index.esm.js";
47
- import jt from "../splitter/index.esm.js";
48
- import Rt from "../step/index.esm.js";
49
- import At from "../switch/index.esm.js";
50
- import Dt from "../tabs/index.esm.js";
51
- import Vt from "../tags/index.esm.js";
52
- import $t from "../text/index.esm.js";
53
- import Mt from "../time-picker/index.esm.js";
54
- import Gt from "../transfer/index.esm.js";
55
- import qt from "../tree-view/index.esm.js";
56
- import Wt from "../uploader/index.esm.js";
57
- import Ht from "../verify-detail/index.esm.js";
58
- import Ut from "../weather/index.esm.js";
59
- import _t from "../video/index.esm.js";
60
- import zt from "../textarea/index.esm.js";
61
- import Qt from "../schema-selector/index.esm.js";
62
- import Zt from "../tree-grid/index.esm.js";
63
- const Jt = {
7
+ import He, { useNumber as _e, useFormat as ze, useSpinner as Qe, useTextBox as Ze } from "../number-spinner/index.esm.js";
8
+ import Je from "../accordion/index.esm.js";
9
+ import Xe from "../avatar/index.esm.js";
10
+ import Ye from "../button-edit/index.esm.js";
11
+ import Ke from "../button-group/index.esm.js";
12
+ import et from "../calendar/index.esm.js";
13
+ import tt from "../capsule/index.esm.js";
14
+ import nt from "../checkbox/index.esm.js";
15
+ import ot from "../combo-list/index.esm.js";
16
+ import rt from "../combo-tree/index.esm.js";
17
+ import at from "../component/index.esm.js";
18
+ import it from "../color-picker/index.esm.js";
19
+ import lt from "../content-container/index.esm.js";
20
+ import st from "../date-picker/index.esm.js";
21
+ import ut from "../data-grid/index.esm.js";
22
+ import ct from "../dropdown/index.esm.js";
23
+ import dt from "../dynamic-form/index.esm.js";
24
+ import pt from "../events-editor/index.esm.js";
25
+ import ft from "../filter-bar/index.esm.js";
26
+ import mt from "../field-selector/index.esm.js";
27
+ import gt from "../image-cropper/index.esm.js";
28
+ import vt from "../input-group/index.esm.js";
29
+ import yt from "../layout/index.esm.js";
30
+ import bt from "../list-nav/index.esm.js";
31
+ import ht from "../list-view/index.esm.js";
32
+ import Ct from "../lookup/index.esm.js";
33
+ import Ft from "../mapping-editor/index.esm.js";
34
+ import wt from "../nav/index.esm.js";
35
+ import xt from "../number-range/index.esm.js";
36
+ import Tt from "../order/index.esm.js";
37
+ import Bt from "../page-header/index.esm.js";
38
+ import Pt from "../page-footer/index.esm.js";
39
+ import St from "../pagination/index.esm.js";
40
+ import Et from "../progress/index.esm.js";
41
+ import kt from "../query-solution/index.esm.js";
42
+ import It from "../radio-group/index.esm.js";
43
+ import Ot from "../rate/index.esm.js";
44
+ import Mt from "../response-toolbar/index.esm.js";
45
+ import Vt from "../response-layout/index.esm.js";
46
+ import Nt from "../response-layout-editor/index.esm.js";
47
+ import jt from "../search-box/index.esm.js";
48
+ import Lt from "../section/index.esm.js";
49
+ import At from "../smoke-detector/index.esm.js";
50
+ import Rt from "../splitter/index.esm.js";
51
+ import Dt from "../step/index.esm.js";
52
+ import $t from "../switch/index.esm.js";
53
+ import Gt from "../tabs/index.esm.js";
54
+ import qt from "../tags/index.esm.js";
55
+ import Ut from "../text/index.esm.js";
56
+ import Wt from "../time-picker/index.esm.js";
57
+ import Ht from "../transfer/index.esm.js";
58
+ import _t from "../tree-view/index.esm.js";
59
+ import zt from "../uploader/index.esm.js";
60
+ import Qt from "../verify-detail/index.esm.js";
61
+ import Zt from "../weather/index.esm.js";
62
+ import Jt from "../video/index.esm.js";
63
+ import Xt from "../textarea/index.esm.js";
64
+ import Yt from "../schema-selector/index.esm.js";
65
+ import Kt from "../tree-grid/index.esm.js";
66
+ const en = {
64
67
  width: { type: String, default: "300px" },
65
68
  height: { type: Number, default: 10 },
66
69
  isWidePanel: { type: Boolean, default: !1 },
@@ -89,7 +92,7 @@ const Jt = {
89
92
  /** 属性变更后事件 */
90
93
  propertyChanged: { type: Function }
91
94
  };
92
- function Xt(e = {}) {
95
+ function tn(e = {}) {
93
96
  function t(i, p, a, f) {
94
97
  if (typeof a == "number")
95
98
  return f[i].length === a;
@@ -127,7 +130,7 @@ function Xt(e = {}) {
127
130
  return a.push(...s), a;
128
131
  }, []);
129
132
  }
130
- function c(i, p) {
133
+ function u(i, p) {
131
134
  if (o.has(i.operator)) {
132
135
  const a = o.get(i.operator);
133
136
  return a && a(i.target, i.param, i.value, p) || !1;
@@ -135,68 +138,68 @@ function Xt(e = {}) {
135
138
  return !1;
136
139
  }
137
140
  function C(i, p) {
138
- return d(i).reduce((s, m) => s && c(m, p), !0);
141
+ return d(i).reduce((s, m) => s && u(m, p), !0);
139
142
  }
140
- function u(i, p) {
141
- const a = Object.keys(i), f = a.includes("allOf"), s = a.includes("anyOf"), m = f || s, L = (m ? i[m ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((R) => C(R, p));
142
- return f ? !L.includes(!1) : L.includes(!0);
143
+ function c(i, p) {
144
+ const a = Object.keys(i), f = a.includes("allOf"), s = a.includes("anyOf"), m = f || s, V = (m ? i[m ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((L) => C(L, p));
145
+ return f ? !V.includes(!1) : V.includes(!0);
143
146
  }
144
- return { parseValueSchema: u };
147
+ return { parseValueSchema: c };
145
148
  }
146
- const ee = {}, Yt = {};
147
- function de(e) {
148
- const { properties: t, title: n, ignore: o } = e, r = o && Array.isArray(o), d = Object.keys(t).reduce((c, C) => ((!r || !o.find((u) => u == C)) && (c[C] = t[C].type === "object" && t[C].properties ? de(t[C]) : Me(t[C].default)), c), {});
149
- return (!r || !o.find((c) => c == "id")) && (d.id = `${n}-${Date.now()}`), d;
149
+ const te = {}, nn = {};
150
+ function fe(e) {
151
+ const { properties: t, title: n, ignore: o } = e, r = o && Array.isArray(o), d = Object.keys(t).reduce((u, C) => ((!r || !o.find((c) => c == C)) && (u[C] = t[C].type === "object" && t[C].properties ? fe(t[C]) : pe(t[C].default)), u), {});
152
+ return n && (!r || !o.find((u) => u == "id")) && (d.id = `${n}-${Date.now()}`), d;
150
153
  }
151
- function te(e, t) {
152
- const n = de(t);
153
- return Object.keys(e).reduce((o, r) => (o[r] && le(o[r]) && le(e[r]) ? Object.assign(o[r], e[r]) : o[r] = e[r], o), n), n;
154
+ function ne(e, t) {
155
+ const n = fe(t);
156
+ return Object.keys(e).reduce((o, r) => (o[r] && se(o[r]) && se(e[r]) ? Object.assign(o[r], e[r]) : o[r] = e[r], o), n), n;
154
157
  }
155
- function Kt(e, t) {
158
+ function on(e, t) {
156
159
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
157
160
  if (t.has(r)) {
158
161
  const d = t.get(r);
159
162
  if (typeof d == "string")
160
163
  o[d] = e[r];
161
164
  else {
162
- const c = d(r, e[r], e);
163
- Object.assign(o, c);
165
+ const u = d(r, e[r], e);
166
+ Object.assign(o, u);
164
167
  }
165
168
  } else
166
169
  o[r] = e[r];
167
170
  return o;
168
171
  }, {});
169
172
  }
170
- function en(e, t, n = /* @__PURE__ */ new Map()) {
171
- const o = te(e, t);
172
- return Kt(o, n);
173
+ function rn(e, t, n = /* @__PURE__ */ new Map()) {
174
+ const o = ne(e, t);
175
+ return on(o, n);
173
176
  }
174
- function pe(e) {
177
+ function me(e) {
175
178
  var n;
176
179
  const t = e.type;
177
180
  if (t) {
178
- const o = ee[t], r = te(e, o), d = ((n = e.editor) == null ? void 0 : n.type) || "";
181
+ const o = te[t], r = ne(e, o), d = ((n = e.editor) == null ? void 0 : n.type) || "";
179
182
  if (d) {
180
- const c = ee[d], C = te(e.editor, c);
183
+ const u = te[d], C = ne(e.editor, u);
181
184
  r.editor = C;
182
185
  }
183
186
  return r;
184
187
  }
185
188
  return e;
186
189
  }
187
- const tn = {
190
+ const an = {
188
191
  convertTo: (e, t, n, o) => {
189
192
  e.appearance && (e.appearance[t] = n);
190
193
  },
191
194
  convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
192
- }, nn = {
195
+ }, ln = {
193
196
  convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
194
- }, on = {
197
+ }, sn = {
195
198
  convertTo: (e, t, n, o) => {
196
199
  e.editor && (e.editor[t] = n);
197
200
  },
198
201
  convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
199
- }, rn = {
202
+ }, ge = {
200
203
  button: { type: "button", name: "按钮", icon: "Button" },
201
204
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
202
205
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -235,18 +238,18 @@ const tn = {
235
238
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
236
239
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
237
240
  fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
238
- }, an = {
241
+ }, un = {
239
242
  convertFrom: (e, t, n) => {
240
243
  var r;
241
244
  const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
242
- return ((r = rn[o]) == null ? void 0 : r.name) || o;
245
+ return ((r = ge[o]) == null ? void 0 : r.name) || o;
243
246
  }
244
- }, ln = {
247
+ }, cn = {
245
248
  convertTo: (e, t, n, o) => {
246
249
  e[t] = e[t];
247
250
  },
248
251
  convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
249
- }, sn = {
252
+ }, dn = {
250
253
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
251
254
  convertTo: (e, t, n) => {
252
255
  if (n && n.length > 0) {
@@ -254,34 +257,35 @@ const tn = {
254
257
  e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
255
258
  }
256
259
  }
257
- }, un = {
260
+ }, pn = {
258
261
  convertTo: (e, t, n, o) => {
259
262
  e.pagination || (e.pagination = {}), e.pagination[t] = n;
260
263
  },
261
264
  convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
262
- }, cn = {
265
+ }, fn = {
263
266
  convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
264
- }, dn = {
267
+ }, mn = {
265
268
  convertFrom: (e, t) => e[t] || "",
266
269
  convertTo: (e, t, n) => {
267
270
  e[t] = n;
268
271
  }
269
- }, oe = {}, ne = /* @__PURE__ */ new Map([
270
- ["/converter/appearance.converter", tn],
271
- ["/converter/buttons.converter", nn],
272
- ["/converter/property-editor.converter", on],
273
- ["/converter/items-count.converter", cn],
274
- ["/converter/type.converter", an],
275
- ["/converter/change-editor.converter", ln],
276
- ["/converter/form-group-label.converter", dn],
277
- ["/converter/field-selector.converter", sn],
278
- ["/converter/pagination.converter", un]
279
- ]), pn = {}, fn = /* @__PURE__ */ new Map([
272
+ }, re = {}, oe = /* @__PURE__ */ new Map([
273
+ ["/converter/appearance.converter", an],
274
+ ["/converter/buttons.converter", ln],
275
+ ["/converter/property-editor.converter", sn],
276
+ ["/converter/items-count.converter", fn],
277
+ ["/converter/type.converter", un],
278
+ ["/converter/change-editor.converter", cn],
279
+ ["/converter/form-group-label.converter", mn],
280
+ ["/converter/field-selector.converter", dn],
281
+ ["/converter/pagination.converter", pn]
282
+ ]), gn = {}, vn = /* @__PURE__ */ new Map([
280
283
  ["string", { type: "input-group", enableClear: !1 }],
281
284
  ["boolean", {
282
285
  type: "combo-list",
283
286
  textField: "name",
284
287
  valueField: "value",
288
+ idField: "value",
285
289
  maxHeight: 64,
286
290
  data: [
287
291
  {
@@ -298,72 +302,74 @@ const tn = {
298
302
  ["array", { type: "button-edit" }],
299
303
  ["number", { type: "number-spinner" }],
300
304
  ["events-editor", { type: "events-editor", hide: !0 }]
301
- ]), mn = Xt();
302
- function fe(e, t) {
303
- return () => mn.parseValueSchema(e, t);
305
+ ]), yn = tn();
306
+ function ve(e, t) {
307
+ return () => yn.parseValueSchema(e, t);
304
308
  }
305
- function gn(e, t, n) {
306
- return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : fe(t.visible, n) : () => !0;
309
+ function bn(e, t, n) {
310
+ return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : ve(t.visible, n) : () => !0;
307
311
  }
308
- function vn(e, t, n) {
309
- return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : fe(t.readonly, n) : () => !1;
312
+ function hn(e, t, n) {
313
+ return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : ve(t.readonly, n) : () => !1;
310
314
  }
311
- function yn(e, t) {
315
+ function Cn(e, t) {
312
316
  const n = e.$converter || t;
313
- return typeof n == "string" && n && ne.has(n) ? ne.get(n) || null : n || null;
317
+ return typeof n == "string" && n && oe.has(n) ? oe.get(n) || null : n || null;
314
318
  }
315
- function re(e, t, n, o, r, d = "", c = "") {
316
- return Object.keys(e).map((u) => {
317
- const i = h(1), p = u, a = e[u], f = Object.keys(a), s = a.title, m = a.type, w = fn.get(m) || { type: "input-group", enableClear: !1 }, k = a.editor ? Object.assign({}, w, a.editor) : w, L = gn(f, a, t), A = vn(f, a, t), R = a.type === "cascade" ? re(a.properties, t, n, o, r, d, c) : [], E = !0;
318
- let I = yn(a, c);
319
+ function ae(e, t, n, o, r, d = "", u = "") {
320
+ return Object.keys(e).map((c) => {
321
+ const i = h(1), p = c, a = e[c], f = Object.keys(a), s = a.title, m = a.type, T = vn.get(m) || { type: "input-group", enableClear: !1 }, E = a.editor ? Object.assign({}, T, a.editor) : Object.assign({}, T), V = bn(f, a, t), j = hn(f, a, t);
322
+ E.readonly = j();
323
+ const L = a.type === "cascade" ? ae(a.properties, t, n, o, r, d, u) : [], k = !0;
324
+ let I = Cn(a, u);
319
325
  const O = S({
320
326
  get() {
321
327
  if (i.value) {
322
- if (["class", "style"].find((G) => G == p) && !I && (I = ne.get("/converter/appearance.converter") || null), I && I.convertFrom)
323
- return I.convertFrom(n, u, r, d);
324
- const j = n[u];
325
- return typeof j == "string" && j == "" ? a.defaultValue || "" : j;
328
+ if (["class", "style"].find((q) => q == p) && !I && (I = oe.get("/converter/appearance.converter") || null), I && I.convertFrom)
329
+ return I.convertFrom(n, c, r, d);
330
+ const N = n[c];
331
+ return typeof N == "string" && N == "" ? a.defaultValue || "" : N;
326
332
  }
327
333
  return null;
328
334
  },
329
- set(j) {
330
- i.value += 1, I && I.convertTo ? (I.convertTo(o, u, j, r, d), I.convertTo(n, u, j, r, d)) : (o[u] = j, n[u] = j);
335
+ set(N) {
336
+ i.value += 1, I && I.convertTo ? (I.convertTo(o, c, N, r, d), I.convertTo(n, c, N, r, d)) : (o[c] = N, n[c] = N);
331
337
  }
332
- }), B = a.refreshPanelAfterChanged, $ = { propertyID: p, propertyName: s, propertyType: m, propertyValue: O, editor: k, visible: L, readonly: A, cascadeConfig: R, hideCascadeTitle: E, refreshPanelAfterChanged: B };
333
- return t[p] = $, $;
338
+ }), B = a.refreshPanelAfterChanged, D = { propertyID: p, propertyName: s, propertyType: m, propertyValue: O, editor: E, visible: V, readonly: j, cascadeConfig: L, hideCascadeTitle: k, refreshPanelAfterChanged: B };
339
+ return t[p] = D, D;
334
340
  });
335
341
  }
336
- function bn(e, t, n, o, r = "") {
337
- const d = t.$ref.schema, c = t.$ref.converter, C = n[d], u = C.type, i = pe(C), p = {}, a = oe[u];
342
+ function Fn(e, t, n, o, r = "") {
343
+ const d = t.$ref.schema, u = t.$ref.converter, C = n[d], c = C.type, i = me(C), p = {}, a = re[c];
338
344
  if (a && a.categories) {
339
345
  const f = a.categories[e], s = f == null ? void 0 : f.title;
340
- c && Object.keys(f.properties).forEach((k) => {
341
- f.properties[k].$converter = c;
346
+ u && Object.keys(f.properties).forEach((E) => {
347
+ f.properties[E].$converter = u;
342
348
  });
343
- const m = (f == null ? void 0 : f.properties) || {}, w = re(m, p, i, C, o, r);
344
- return { categoryId: e, categoryName: s, properties: w };
349
+ const m = (f == null ? void 0 : f.properties) || {}, T = ae(m, p, i, C, o, r);
350
+ return { categoryId: e, categoryName: s, properties: T };
345
351
  }
346
352
  return { categoryId: e, categoryName: "", properties: [] };
347
353
  }
348
- function K(e, t, n, o, r) {
354
+ function ee(e, t, n, o, r) {
349
355
  let d = e.type;
350
- const c = pe(e), C = {};
351
- let u = r || oe[d];
352
- if (Object.keys(u).length === 0 && n && n.getPropConfig && (u = n.getPropConfig(o)), u && u.categories) {
356
+ const u = me(e), C = {};
357
+ let c = r || re[d];
358
+ if (Object.keys(c).length === 0 && n && n.getPropConfig && (c = n.getPropConfig(o)), c && c.categories) {
353
359
  const i = [];
354
- return Object.keys(u.categories).map((p) => {
355
- const a = u.categories[p];
360
+ return Object.keys(c.categories).map((p) => {
361
+ const a = c.categories[p];
356
362
  if (a.$ref) {
357
- i.push(bn(p, a, e, t, o));
363
+ i.push(Fn(p, a, e, t, o));
358
364
  return;
359
365
  }
360
- const f = a == null ? void 0 : a.title, s = a == null ? void 0 : a.tabId, m = a == null ? void 0 : a.tabName, w = a == null ? void 0 : a.hide, k = a == null ? void 0 : a.hideTitle, L = re(a.properties || {}, C, c, e, t, o, a.$converter), A = a.setPropertyRelates;
361
- i.push({ categoryId: p, categoryName: f, tabId: s, tabName: m, hide: w, properties: L, hideTitle: k, setPropertyRelates: A });
366
+ const f = a == null ? void 0 : a.title, s = a == null ? void 0 : a.tabId, m = a == null ? void 0 : a.tabName, T = a == null ? void 0 : a.hide, E = a == null ? void 0 : a.hideTitle, V = ae(a.properties || {}, C, u, e, t, o, a.$converter), j = a.setPropertyRelates;
367
+ i.push({ categoryId: p, categoryName: f, tabId: s, tabName: m, hide: T, properties: V, hideTitle: E, setPropertyRelates: j });
362
368
  }), i;
363
369
  }
364
370
  return [];
365
371
  }
366
- const hn = {
372
+ const wn = {
367
373
  /** 某一分类下的属性配置 */
368
374
  // as PropType<ElementPropertyConfig>
369
375
  category: { type: Object, default: {} },
@@ -372,22 +378,22 @@ const hn = {
372
378
  propertyData: { type: Object, default: {} },
373
379
  valueChanged: { type: Function },
374
380
  triggerRefreshPanel: { type: Function }
375
- }, Cn = {
381
+ }, xn = {
376
382
  elementConfig: { type: Object, default: {} },
377
383
  category: { type: Object, default: {} }
378
384
  };
379
- function me(e, t, n = /* @__PURE__ */ new Map(), o = (c, C, u) => C, r = {}, d = (c) => c) {
380
- return ee[t.title] = t, Yt[t.title] = o, oe[t.title] = r, pn[t.title] = d, (c = {}) => {
381
- const C = en(c, t, n), u = Object.keys(e).reduce((i, p) => (i[p] = e[p].default, i), {});
382
- return Object.assign(u, C);
385
+ function ye(e, t, n = /* @__PURE__ */ new Map(), o = (u, C, c) => C, r = {}, d = (u) => u) {
386
+ return te[t.title] = t, nn[t.title] = o, re[t.title] = r, gn[t.title] = d, (u = {}) => {
387
+ const C = rn(u, t, n), c = Object.keys(e).reduce((i, p) => (i[p] = e[p].default, i), {});
388
+ return Object.assign(c, C);
383
389
  };
384
390
  }
385
- function ge(e, t) {
391
+ function be(e, t) {
386
392
  return { customClass: t.class, customStyle: t.style };
387
393
  }
388
- const Fn = /* @__PURE__ */ new Map([
389
- ["appearance", ge]
390
- ]), xn = "https://json-schema.org/draft/2020-12/schema", Tn = "https://farris-design.gitee.io/form-group.schema.json", wn = "form-group", Bn = "A Farris Input Component", Pn = "object", Sn = {
394
+ const Tn = /* @__PURE__ */ new Map([
395
+ ["appearance", be]
396
+ ]), Bn = "https://json-schema.org/draft/2020-12/schema", Pn = "https://farris-design.gitee.io/form-group.schema.json", Sn = "form-group", En = "A Farris Input Component", kn = "object", In = {
391
397
  id: {
392
398
  description: "The unique identifier for a form group",
393
399
  type: "string"
@@ -428,18 +434,18 @@ const Fn = /* @__PURE__ */ new Map([
428
434
  description: "",
429
435
  type: "number"
430
436
  }
431
- }, kn = [
437
+ }, On = [
432
438
  "id",
433
439
  "type"
434
- ], En = {
435
- $schema: xn,
436
- $id: Tn,
437
- title: wn,
438
- description: Bn,
439
- type: Pn,
440
- properties: Sn,
441
- required: kn
442
- }, ve = {
440
+ ], Mn = {
441
+ $schema: Bn,
442
+ $id: Pn,
443
+ title: Sn,
444
+ description: En,
445
+ type: kn,
446
+ properties: In,
447
+ required: On
448
+ }, he = {
443
449
  id: { type: String, default: "" },
444
450
  customClass: { type: String, default: "" },
445
451
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
@@ -453,43 +459,43 @@ const Fn = /* @__PURE__ */ new Map([
453
459
  showLabel: { type: Boolean, default: !0 },
454
460
  type: { type: String, default: "input-group" }
455
461
  };
456
- me(
457
- ve,
458
- En,
459
- Fn,
462
+ ye(
463
+ he,
464
+ Mn,
465
+ Tn,
460
466
  void 0
461
467
  );
462
- const In = {
468
+ const Vn = {
463
469
  id: { type: String },
464
470
  required: { type: Boolean, default: !1 },
465
471
  text: { type: String, default: "" },
466
472
  title: { type: String }
467
- }, On = /* @__PURE__ */ H({
473
+ }, Nn = /* @__PURE__ */ H({
468
474
  name: "FDynamicFormLabel",
469
- props: In,
475
+ props: Vn,
470
476
  emits: [],
471
477
  setup(e, t) {
472
478
  const n = h(e.title || e.text), o = h(e.required), r = h(e.text);
473
- return V(() => e.text, () => {
479
+ return R(() => e.text, () => {
474
480
  r.value = e.text;
475
- }), V(() => e.required, (d, c) => {
476
- d !== c && (o.value = d);
481
+ }), R(() => e.required, (d, u) => {
482
+ d !== u && (o.value = d);
477
483
  }), () => r.value && l("label", {
478
484
  class: "col-form-label",
479
485
  title: n.value
480
486
  }, [o.value && l("span", {
481
487
  class: "farris-label-info text-danger"
482
- }, [ce("*")]), l("span", {
488
+ }, [de("*")]), l("span", {
483
489
  class: "farris-label-text"
484
490
  }, [r.value])]);
485
491
  }
486
- }), Nn = /* @__PURE__ */ new Map([
487
- ["appearance", ge]
492
+ }), jn = /* @__PURE__ */ new Map([
493
+ ["appearance", be]
488
494
  ]);
489
495
  function Ln(e, t, n) {
490
496
  return t;
491
497
  }
492
- const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", An = "input-group", Dn = "A Farris Input Component", Vn = "object", $n = {
498
+ const An = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", Dn = "input-group", $n = "A Farris Input Component", Gn = "object", qn = {
493
499
  id: {
494
500
  description: "The unique identifier for a Input Group",
495
501
  type: "string"
@@ -691,18 +697,18 @@ const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
691
697
  type: "string",
692
698
  default: ""
693
699
  }
694
- }, Mn = [
700
+ }, Un = [
695
701
  "id",
696
702
  "type"
697
- ], Gn = {
698
- $schema: jn,
703
+ ], Wn = {
704
+ $schema: An,
699
705
  $id: Rn,
700
- title: An,
701
- description: Dn,
702
- type: Vn,
703
- properties: $n,
704
- required: Mn
705
- }, ye = {
706
+ title: Dn,
707
+ description: $n,
708
+ type: Gn,
709
+ properties: qn,
710
+ required: Un
711
+ }, Ce = {
706
712
  id: { Type: String, default: "" },
707
713
  /** 是否自动完成 */
708
714
  autocomplete: { Type: String, default: "off" },
@@ -770,35 +776,35 @@ const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
770
776
  */
771
777
  updateOn: { type: String, default: "blur" }
772
778
  };
773
- me(ye, Gn, Nn, Ln);
774
- function qn(e, t, n, o) {
775
- const r = h(e.disabled), d = h(!1), c = h("text"), C = h(e.showBorder), u = h(e.textAlign), i = h(e.updateOn), p = S(() => e.editable || !e.readonly), a = S(() => e.editable && !e.disabled && !e.readonly), f = S(() => !e.disabled && d.value), s = S(() => n.value === "" || n.value === null || n.value === void 0), m = S(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), w = S(() => e.readonly || !e.editable), k = S(() => e.enableTitle ? n.value : ""), L = S(() => ({
779
+ ye(Ce, Wn, jn, Ln);
780
+ function Hn(e, t, n, o) {
781
+ const r = h(e.disabled), d = h(!1), u = h("text"), C = h(e.showBorder), c = h(e.textAlign), i = h(e.updateOn), p = S(() => e.editable || !e.readonly), a = S(() => e.editable && !e.disabled && !e.readonly), f = S(() => !e.disabled && d.value), s = S(() => n.value === "" || n.value === null || n.value === void 0), m = S(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), T = S(() => e.readonly || !e.editable), E = S(() => e.enableTitle ? n.value : ""), V = S(() => ({
776
782
  "form-control": !0,
777
783
  "f-utils-fill": !0,
778
- "text-left": u.value === "left",
779
- "text-center": u.value === "center",
780
- "text-right": u.value === "right"
781
- })), A = S(() => {
784
+ "text-left": c.value === "left",
785
+ "text-center": c.value === "center",
786
+ "text-right": c.value === "right"
787
+ })), j = S(() => {
782
788
  const P = {
783
789
  "f-cmp-inputgroup": !0,
784
790
  "input-group": !0,
785
791
  "f-state-disable": r.value,
786
792
  "f-state-editable": a.value,
787
- "f-state-readonly": w.value,
793
+ "f-state-readonly": T.value,
788
794
  "f-state-focus": f.value
789
795
  };
790
- return (e.customClass || "").split(" ").reduce((q, J) => (q[J] = !0, q), P), P;
791
- }), R = S(() => C.value ? "" : "border-width : 0 ");
792
- function E(P, D = !0) {
793
- n.value = P, o.value !== P && (o.value = P), D && t.emit("change", P), t.emit("update:modelValue", P), t.emit("update:value", P);
796
+ return (e.customClass || "").split(" ").reduce((U, X) => (U[X] = !0, U), P), P;
797
+ }), L = S(() => C.value ? "" : "border-width : 0 ");
798
+ function k(P, A = !0) {
799
+ n.value = P, o.value !== P && (o.value = P), A && t.emit("change", P), t.emit("update:modelValue", P), t.emit("update:value", P);
794
800
  }
795
- V(
801
+ R(
796
802
  () => e.modelValue,
797
- (P, D) => {
798
- P !== D && (n.value = P, o.value = P);
803
+ (P, A) => {
804
+ P !== A && (n.value = P, o.value = P);
799
805
  }
800
- ), V(() => e.disabled, (P, D) => {
801
- P !== D && (r.value = P);
806
+ ), R(() => e.disabled, (P, A) => {
807
+ P !== A && (r.value = P);
802
808
  });
803
809
  function I(P) {
804
810
  return d.value = !1, t.emit("blur", P), P.stopPropagation(), !1;
@@ -809,58 +815,58 @@ function qn(e, t, n, o) {
809
815
  function B(P) {
810
816
  e.disabled || (C.value && (d.value = !0), p.value && t.emit("focus", P));
811
817
  }
812
- function $(P) {
818
+ function D(P) {
813
819
  t.emit("input", P.target.value);
814
- const D = P.target.value;
815
- o.value = D, i.value === "change" && (t.emit("update:modelValue", D), t.emit("update:value", D));
820
+ const A = P.target.value;
821
+ o.value = A, i.value === "change" && (t.emit("update:modelValue", A), t.emit("update:value", A));
816
822
  }
817
- function j(P) {
823
+ function N(P) {
818
824
  t.emit("keydown", P);
819
825
  }
820
- function G(P) {
826
+ function q(P) {
821
827
  t.emit("keyup", P);
822
828
  }
823
- function U(P) {
829
+ function _(P) {
824
830
  P.target.tagName !== "INPUT" && P.preventDefault(), P.stopPropagation();
825
831
  }
826
- function _(P) {
832
+ function z(P) {
827
833
  if (i.value === "blur") {
828
- const D = P.target.value;
829
- P.stopPropagation(), E(D);
834
+ const A = P.target.value;
835
+ P.stopPropagation(), k(A);
830
836
  }
831
837
  }
832
838
  return {
833
- changeTextBoxValue: E,
839
+ changeTextBoxValue: k,
834
840
  disabled: r,
835
841
  displayText: o,
836
842
  editable: a,
837
843
  hasFocused: f,
838
- inputGroupClass: A,
839
- inputType: c,
844
+ inputGroupClass: j,
845
+ inputType: u,
840
846
  isEmpty: s,
841
847
  modelValue: n,
842
- readonly: w,
848
+ readonly: T,
843
849
  onBlur: I,
844
850
  onClick: O,
845
851
  onFocus: B,
846
- onInput: $,
847
- onKeydown: j,
848
- onKeyup: G,
849
- onMousedown: U,
850
- onTextBoxValueChange: _,
852
+ onInput: D,
853
+ onKeydown: N,
854
+ onKeyup: q,
855
+ onMousedown: _,
856
+ onTextBoxValueChange: z,
851
857
  placeholder: m,
852
- textBoxClass: L,
853
- textBoxTitle: k,
854
- inputGroupStyle: R
858
+ textBoxClass: V,
859
+ textBoxTitle: E,
860
+ inputGroupStyle: L
855
861
  };
856
862
  }
857
- function Wn(e, t, n) {
858
- const o = h(!1), r = S(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: d, displayText: c, hasFocused: C, isEmpty: u } = n;
859
- function i(w) {
860
- o.value = w;
863
+ function _n(e, t, n) {
864
+ const o = h(!1), r = S(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: d, displayText: u, hasFocused: C, isEmpty: c } = n;
865
+ function i(T) {
866
+ o.value = T;
861
867
  }
862
- V(c, () => {
863
- C != null && C.value ? i(!!(c != null && c.value)) : i(!1);
868
+ R(u, () => {
869
+ C != null && C.value ? i(!!(u != null && u.value)) : i(!1);
864
870
  });
865
871
  const p = S(() => ({
866
872
  "input-group-text": !0,
@@ -869,19 +875,19 @@ function Wn(e, t, n) {
869
875
  width: "24px",
870
876
  display: o.value ? "flex" : "none"
871
877
  }));
872
- function f(w) {
873
- w.stopPropagation(), r.value && (d("", !0), i(!o.value), t.emit("clear"));
878
+ function f(T) {
879
+ T.stopPropagation(), r.value && (d("", !0), i(!o.value), t.emit("clear"));
874
880
  }
875
- function s(w) {
876
- r.value && !u.value && i(!0);
881
+ function s(T) {
882
+ r.value && !c.value && i(!0);
877
883
  }
878
- function m(w) {
884
+ function m(T) {
879
885
  r.value && i(!1);
880
886
  }
881
887
  return { clearButtonClass: p, clearButtonStyle: a, hasShownClearButton: o, onClearValue: f, onMouseEnter: s, onMouseLeave: m, shouldShowClearButton: r };
882
888
  }
883
- const Hn = ["moz", "ms", "webkit"];
884
- function Un() {
889
+ const zn = ["moz", "ms", "webkit"];
890
+ function Qn() {
885
891
  let e = 0;
886
892
  return (t) => {
887
893
  const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), r = setTimeout(() => {
@@ -890,86 +896,86 @@ function Un() {
890
896
  return e = n + o, r;
891
897
  };
892
898
  }
893
- function _n() {
899
+ function Zn() {
894
900
  if (typeof window > "u")
895
901
  return () => 0;
896
902
  if (window.requestAnimationFrame)
897
903
  return window.requestAnimationFrame.bind(window);
898
- const e = Hn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
899
- return e ? window[`${e}RequestAnimationFrame`] : Un();
904
+ const e = zn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
905
+ return e ? window[`${e}RequestAnimationFrame`] : Qn();
900
906
  }
901
- _n();
902
- function zn(e, t) {
907
+ Zn();
908
+ function Jn(e, t) {
903
909
  const n = h(e.groupText), o = S(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = S(() => e.enableClear || !!e.groupText);
904
910
  return { appendedButtonClass: S(() => ({
905
911
  "input-group-append": !0,
906
912
  "append-force-show": o.value
907
913
  })), appendedContent: n, shouldShowAppendedButton: r };
908
914
  }
909
- function Qn(e, t, n, o) {
910
- const { appendedContent: r } = o, d = h(e.enableViewPassword), c = S(() => e.type === "password"), C = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', i = h(!1);
911
- V(() => [e.readonly, e.disabled], ([f, s]) => {
912
- c.value && (n.value = f || s ? "password" : n.value, r.value = f || s ? u : r.value);
915
+ function Xn(e, t, n, o) {
916
+ const { appendedContent: r } = o, d = h(e.enableViewPassword), u = S(() => e.type === "password"), C = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', c = '<span class="f-icon f-icon-eye"></span>', i = h(!1);
917
+ R(() => [e.readonly, e.disabled], ([f, s]) => {
918
+ u.value && (n.value = f || s ? "password" : n.value, r.value = f || s ? c : r.value);
913
919
  });
914
920
  function p() {
915
- return i.value = !i.value, n.value = i.value ? "text" : "password", r.value = i.value ? C : u, !1;
921
+ return i.value = !i.value, n.value = i.value ? "text" : "password", r.value = i.value ? C : c, !1;
916
922
  }
917
923
  function a() {
918
- n.value = c.value ? "password" : "text", r.value = c.value ? d.value ? u : "" : r.value;
924
+ n.value = u.value ? "password" : "text", r.value = u.value ? d.value ? c : "" : r.value;
919
925
  }
920
- return a(), { isPassword: c, onClickAppendedButton: p };
926
+ return a(), { isPassword: u, onClickAppendedButton: p };
921
927
  }
922
- function Zn(e, t, n) {
928
+ function Yn(e, t, n) {
923
929
  const o = h(), {
924
930
  onBlurTextBox: r,
925
931
  onFocusTextBox: d,
926
- onInput: c,
932
+ onInput: u,
927
933
  onKeyDown: C,
928
- textBoxValue: u
934
+ textBoxValue: c
929
935
  } = n, i = S(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), p = S(() => ({
930
936
  "form-control": !0,
931
937
  "f-utils-fill": !0
932
938
  })), a = S(() => ({
933
939
  "text-align": e.textAlign
934
940
  }));
935
- function f(w) {
936
- w.stopPropagation();
941
+ function f(T) {
942
+ T.stopPropagation();
937
943
  }
938
944
  function s() {
939
945
  e.selectOnCreated, e.focusOnCreated;
940
946
  }
941
- async function m(w) {
942
- d(w), await ie, s();
947
+ async function m(T) {
948
+ d(T), await le, s();
943
949
  }
944
950
  return W(async () => {
945
- await ie, s();
951
+ await le, s();
946
952
  }), () => l("input", {
947
953
  ref: o,
948
954
  class: p.value,
949
955
  style: a.value,
950
956
  type: "text",
951
- value: u.value,
957
+ value: c.value,
952
958
  disabled: e.disabled,
953
959
  readonly: e.readonly || !e.editable,
954
960
  placeholder: i.value,
955
961
  onBlur: r,
956
962
  onChange: f,
957
963
  onFocus: m,
958
- onInput: c,
964
+ onInput: u,
959
965
  onKeydown: C
960
966
  }, null);
961
967
  }
962
- function Jn(e, t, n) {
968
+ function Kn(e, t, n) {
963
969
  const {
964
970
  canDownward: o,
965
971
  canUpward: r,
966
972
  onClickDownButton: d,
967
- onClickUpButton: c
973
+ onClickUpButton: u
968
974
  } = n, C = S(() => ({
969
975
  "input-group-append": !0,
970
976
  "btn-group": !0,
971
977
  "btn-group-number": !0
972
- })), u = S(() => ({
978
+ })), c = S(() => ({
973
979
  btn: !0,
974
980
  "btn-secondary": !0,
975
981
  "btn-number-flag": !0
@@ -984,15 +990,15 @@ function Jn(e, t, n) {
984
990
  class: C.value
985
991
  }, [l("button", {
986
992
  title: "upButton",
987
- class: u.value,
993
+ class: c.value,
988
994
  style: i.value,
989
- onClick: c,
995
+ onClick: u,
990
996
  disabled: !r()
991
997
  }, [l("span", {
992
998
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
993
999
  }, null)]), l("button", {
994
1000
  title: "downButton",
995
- class: u.value,
1001
+ class: c.value,
996
1002
  style: p.value,
997
1003
  onClick: d,
998
1004
  disabled: !o()
@@ -1000,12 +1006,12 @@ function Jn(e, t, n) {
1000
1006
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1001
1007
  }, null)])]);
1002
1008
  }
1003
- function Xn(e, t) {
1004
- const n = qe(e, t), o = We(e, t, n), r = He(e, t, o, n), d = Ue(e, t, o, n, r), c = Jn(e, t, r), {
1009
+ function eo(e, t) {
1010
+ const n = _e(e, t), o = ze(e, t, n), r = Qe(e, t, o, n), d = Ze(e, t, o, n, r), u = Kn(e, t, r), {
1005
1011
  displayValue: C,
1006
- modelValue: u,
1012
+ modelValue: c,
1007
1013
  getRealValue: i
1008
- } = n, p = Zn(e, t, d), {
1014
+ } = n, p = Yn(e, t, d), {
1009
1015
  format: a
1010
1016
  } = o, {
1011
1017
  isFocus: f
@@ -1013,36 +1019,36 @@ function Xn(e, t) {
1013
1019
  return W(() => {
1014
1020
  const m = i(e.modelValue);
1015
1021
  C.value = a(m);
1016
- }), V(() => [e.value], ([m]) => {
1017
- const w = i(m);
1018
- u.value = w, C.value = a(w);
1019
- }), V(() => [e.modelValue], ([m]) => {
1020
- m !== u.value && (u.value = m, !f.value && (C.value = a(i(m))));
1021
- }), V(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1022
- C.value = a(u.value);
1022
+ }), R(() => [e.value], ([m]) => {
1023
+ const T = i(m);
1024
+ c.value = T, C.value = a(T);
1025
+ }), R(() => [e.modelValue], ([m]) => {
1026
+ m !== c.value && (c.value = m, !f.value && (C.value = a(i(m))));
1027
+ }), R(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1028
+ C.value = a(c.value);
1023
1029
  }), () => l("div", {
1024
1030
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
1025
- }, [p(), s.value && c()]);
1031
+ }, [p(), s.value && u()]);
1026
1032
  }
1027
- function Yn(e, t, n, o) {
1028
- const r = h(), d = h(e.autocomplete), c = h(e.enableTitle), {
1033
+ function to(e, t, n, o) {
1034
+ const r = h(), d = h(e.autocomplete), u = h(e.enableTitle), {
1029
1035
  isPassword: C
1030
- } = n, u = h(e.minLength), i = h(e.maxLength), p = h(e.tabIndex), {
1036
+ } = n, c = h(e.minLength), i = h(e.maxLength), p = h(e.tabIndex), {
1031
1037
  disabled: a,
1032
1038
  displayText: f,
1033
1039
  inputType: s,
1034
1040
  onBlur: m,
1035
- onFocus: w,
1036
- onInput: k,
1037
- onClick: L,
1038
- onKeydown: A,
1039
- onKeyup: R,
1040
- onMousedown: E,
1041
+ onFocus: T,
1042
+ onInput: E,
1043
+ onClick: V,
1044
+ onKeydown: j,
1045
+ onKeyup: L,
1046
+ onMousedown: k,
1041
1047
  onTextBoxValueChange: I,
1042
1048
  readonly: O,
1043
1049
  placeholder: B,
1044
- textBoxClass: $,
1045
- textBoxTitle: j
1050
+ textBoxClass: D,
1051
+ textBoxTitle: N
1046
1052
  } = o;
1047
1053
  return W(() => {
1048
1054
  e.selectOnCreated, e.focusOnCreated;
@@ -1050,47 +1056,47 @@ function Yn(e, t, n, o) {
1050
1056
  ref: r,
1051
1057
  name: "input-group-value",
1052
1058
  autocomplete: d.value,
1053
- class: $.value,
1059
+ class: D.value,
1054
1060
  disabled: a == null ? void 0 : a.value,
1055
1061
  maxlength: i.value,
1056
- minlength: u.value,
1062
+ minlength: c.value,
1057
1063
  placeholder: B.value,
1058
1064
  readonly: O == null ? void 0 : O.value,
1059
1065
  tabindex: p.value,
1060
- title: c.value && !C.value ? j.value : "",
1066
+ title: u.value && !C.value ? N.value : "",
1061
1067
  type: s.value,
1062
1068
  value: f == null ? void 0 : f.value,
1063
1069
  onBlur: m,
1064
- onClick: L,
1070
+ onClick: V,
1065
1071
  onChange: I,
1066
- onFocus: w,
1067
- onInput: k,
1068
- onKeydown: A,
1069
- onKeyup: R,
1070
- onMousedown: E
1072
+ onFocus: T,
1073
+ onInput: E,
1074
+ onKeydown: j,
1075
+ onKeyup: L,
1076
+ onMousedown: k
1071
1077
  }, null);
1072
1078
  }
1073
- function Kn(e, t) {
1074
- const n = S(() => e.useExtendInfo && !!e.extendInfo), o = je({
1079
+ function no(e, t) {
1080
+ const n = S(() => e.useExtendInfo && !!e.extendInfo), o = De({
1075
1081
  content: e.extendInfo
1076
1082
  });
1077
1083
  function r() {
1078
1084
  t.emit("updateExtendInfo");
1079
1085
  }
1080
- return () => n.value && Re(l("span", {
1086
+ return () => n.value && $e(l("span", {
1081
1087
  class: "input-group-before-tips",
1082
1088
  onMouseenter: r
1083
1089
  }, [l("i", {
1084
1090
  class: "f-icon f-icon-info-circle"
1085
1091
  }, null), l("b", {
1086
1092
  class: "tips-arrow"
1087
- }, null)]), [[Ae("tooltip"), o]]);
1093
+ }, null)]), [[Ge("tooltip"), o]]);
1088
1094
  }
1089
- function eo(e, t, n, o, r) {
1095
+ function oo(e, t, n, o, r) {
1090
1096
  const {
1091
1097
  appendedButtonClass: d,
1092
- appendedContent: c
1093
- } = n, C = S(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = S(() => c.value && !t.slots.groupTextTemplate), i = S(() => !!t.slots.groupTextTemplate), {
1098
+ appendedContent: u
1099
+ } = n, C = S(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), c = S(() => u.value && !t.slots.groupTextTemplate), i = S(() => !!t.slots.groupTextTemplate), {
1094
1100
  clearButtonClass: p,
1095
1101
  clearButtonStyle: a,
1096
1102
  onClearValue: f,
@@ -1106,82 +1112,82 @@ function eo(e, t, n, o, r) {
1106
1112
  class: "f-icon modal_close"
1107
1113
  }, null)]);
1108
1114
  }
1109
- function w(B) {
1115
+ function T(B) {
1110
1116
  t.emit("iconMouseEnter", B);
1111
1117
  }
1112
- function k(B) {
1118
+ function E(B) {
1113
1119
  t.emit("iconMouseLeave", B);
1114
1120
  }
1115
- function L(B) {
1121
+ function V(B) {
1116
1122
  C.value && t.emit("clickHandle", {
1117
1123
  originalEvent: B
1118
1124
  }), B.stopPropagation();
1119
1125
  }
1120
- const A = e.type === "password" ? r.onClickAppendedButton : L;
1121
- function R() {
1126
+ const j = e.type === "password" ? r.onClickAppendedButton : V;
1127
+ function L() {
1122
1128
  return l("span", {
1123
1129
  class: "input-group-text",
1124
- onMouseenter: (B) => w(B),
1125
- onMouseleave: (B) => k(B),
1126
- innerHTML: c.value,
1127
- onClick: (B) => A(B)
1130
+ onMouseenter: (B) => T(B),
1131
+ onMouseleave: (B) => E(B),
1132
+ innerHTML: u.value,
1133
+ onClick: (B) => j(B)
1128
1134
  }, null);
1129
1135
  }
1130
- function E() {
1136
+ function k() {
1131
1137
  return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
1132
1138
  }
1133
1139
  function I() {
1134
- return u.value ? R : i.value ? E : "";
1140
+ return c.value ? L : i.value ? k : "";
1135
1141
  }
1136
1142
  const O = I();
1137
1143
  return () => l("div", {
1138
1144
  class: d.value
1139
1145
  }, [s.value && m(), O && O()]);
1140
1146
  }
1141
- const to = /* @__PURE__ */ H({
1147
+ const ro = /* @__PURE__ */ H({
1142
1148
  name: "FInputGroup",
1143
- props: ye,
1149
+ props: Ce,
1144
1150
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
1145
1151
  setup(e, t) {
1146
- const n = h(e.modelValue), o = h(e.modelValue), r = qn(e, t, n, o), {
1152
+ const n = h(e.modelValue), o = h(e.modelValue), r = Hn(e, t, n, o), {
1147
1153
  inputGroupClass: d,
1148
- inputType: c,
1154
+ inputType: u,
1149
1155
  inputGroupStyle: C
1150
- } = r, u = zn(e), {
1156
+ } = r, c = Jn(e), {
1151
1157
  shouldShowAppendedButton: i
1152
- } = u, p = Wn(e, t, r), {
1158
+ } = c, p = _n(e, t, r), {
1153
1159
  onMouseEnter: a,
1154
1160
  onMouseLeave: f
1155
- } = p, s = Qn(e, t, c, u), m = Xn(e, t), w = Yn(e, t, s, r), k = eo(e, t, u, p, s), L = Kn(e, t), A = S(() => e.type === "number");
1156
- V(() => [e.value], ([E]) => {
1157
- n.value = E, o.value = E;
1158
- }), V(() => [e.modelValue], ([E]) => {
1159
- n.value = E, o.value = E;
1161
+ } = p, s = Xn(e, t, u, c), m = eo(e, t), T = to(e, t, s, r), E = oo(e, t, c, p, s), V = no(e, t), j = S(() => e.type === "number");
1162
+ R(() => [e.value], ([k]) => {
1163
+ n.value = k, o.value = k;
1164
+ }), R(() => [e.modelValue], ([k]) => {
1165
+ n.value = k, o.value = k;
1160
1166
  }), W(() => {
1161
1167
  e.value && (n.value = e.value, o.value = e.value);
1162
1168
  });
1163
- const R = () => l(Z, null, [l("div", {
1169
+ const L = () => l(J, null, [l("div", {
1164
1170
  id: e.id,
1165
1171
  class: d.value,
1166
1172
  style: C.value,
1167
1173
  onMouseenter: a,
1168
1174
  onMouseleave: f
1169
- }, [A.value ? m() : l(Z, null, [L(), w(), i.value && k()])])]);
1170
- return () => R();
1175
+ }, [j.value ? m() : l(J, null, [V(), T(), i.value && E()])])]);
1176
+ return () => L();
1171
1177
  }
1172
1178
  }), g = {}, v = {}, y = {}, b = {};
1173
- let se = !1;
1174
- function no() {
1175
- se || (se = !0, ze.register(g, v, y, b), _e.register(g, v, y, b), Qe.register(g, v, y, b), Ze.register(g, v, y, b), Je.register(g, v, y, b), Xe.register(g, v, y, b), Ye.register(g, v, y, b), Ke.register(g, v, y, b), et.register(g, v, y, b), tt.register(g, v, y, b), ot.register(g, v, y, b), nt.register(g, v, y, b), rt.register(g, v, y, b), at.register(g, v, y, b), it.register(g, v, y, b), lt.register(g, v, y, b), st.register(g, v, y, b), ut.register(g, v, y, b), ct.register(g, v, y, b), dt.register(g, v, y, b), pt.register(g, v, y, b), ft.register(g, v, y, b), gt.register(g, v, y, b), mt.register(g, v, y, b), vt.register(g, v, y, b), yt.register(g, v, y, b), bt.register(g, v, y, b), ht.register(g, v, y, b), Ge.register(g, v, y, b), Ct.register(g, v, y, b), Ft.register(g, v, y, b), xt.register(g, v, y, b), Tt.register(g, v, y, b), wt.register(g, v, y, b), Bt.register(g, v, y, b), Pt.register(g, v, y, b), St.register(g, v, y, b), Et.register(g, v, y, b), It.register(g, v, y, b), kt.register(g, v, y, b), Qt.register(g, v, y), Ot.register(g, v, y, b), Nt.register(g, v, y, b), Lt.register(g, v, y, b), jt.register(g, v, y, b), Rt.register(g, v, y, b), At.register(g, v, y, b), Dt.register(g, v, y, b), Vt.register(g, v, y, b), $t.register(g, v, y, b), Mt.register(g, v, y, b), Gt.register(g, v, y, b), qt.register(g, v, y, b), Ht.register(g, v, y, b), Wt.register(g, v, y, b), Ut.register(g, v, y, b), _t.register(g, v, y, b), zt.register(g, v, y, b), Zt.register(g, v, y, b));
1179
+ let ue = !1;
1180
+ function ao() {
1181
+ ue || (ue = !0, Xe.register(g, v, y, b), Je.register(g, v, y, b), Ye.register(g, v, y, b), Ke.register(g, v, y, b), et.register(g, v, y, b), tt.register(g, v, y, b), nt.register(g, v, y, b), ot.register(g, v, y, b), rt.register(g, v, y, b), at.register(g, v, y, b), lt.register(g, v, y, b), it.register(g, v, y, b), st.register(g, v, y, b), ut.register(g, v, y, b), ct.register(g, v, y, b), dt.register(g, v, y, b), pt.register(g, v, y, b), ft.register(g, v, y, b), mt.register(g, v, y, b), gt.register(g, v, y, b), vt.register(g, v, y, b), yt.register(g, v, y, b), ht.register(g, v, y, b), bt.register(g, v, y, b), Ct.register(g, v, y, b), Ft.register(g, v, y, b), wt.register(g, v, y, b), xt.register(g, v, y, b), He.register(g, v, y, b), Tt.register(g, v, y, b), Bt.register(g, v, y, b), Pt.register(g, v, y, b), St.register(g, v, y, b), Et.register(g, v, y, b), kt.register(g, v, y, b), It.register(g, v, y, b), Ot.register(g, v, y, b), Vt.register(g, v, y, b), Nt.register(g, v, y, b), Mt.register(g, v, y, b), Yt.register(g, v, y), jt.register(g, v, y, b), Lt.register(g, v, y, b), At.register(g, v, y, b), Rt.register(g, v, y, b), Dt.register(g, v, y, b), $t.register(g, v, y, b), Gt.register(g, v, y, b), qt.register(g, v, y, b), Ut.register(g, v, y, b), Wt.register(g, v, y, b), Ht.register(g, v, y, b), _t.register(g, v, y, b), Qt.register(g, v, y, b), zt.register(g, v, y, b), Zt.register(g, v, y, b), Jt.register(g, v, y, b), Xt.register(g, v, y, b), Kt.register(g, v, y, b));
1176
1182
  }
1177
- function oo() {
1178
- no();
1183
+ function io() {
1184
+ ao();
1179
1185
  function e(r, d) {
1180
- const c = v[r];
1181
- return c ? c(d) : {};
1186
+ const u = v[r];
1187
+ return u ? u(d) : {};
1182
1188
  }
1183
1189
  function t(r) {
1184
- return g[r] || to;
1190
+ return g[r] || ro;
1185
1191
  }
1186
1192
  function n(r) {
1187
1193
  switch (r) {
@@ -1252,41 +1258,41 @@ function oo() {
1252
1258
  }
1253
1259
  return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
1254
1260
  }
1255
- const ro = /* @__PURE__ */ H({
1261
+ const lo = /* @__PURE__ */ H({
1256
1262
  name: "FDynamicFormGroup",
1257
- props: ve,
1263
+ props: he,
1258
1264
  emits: ["change", "update:modelValue"],
1259
1265
  setup(e, t) {
1260
- const n = h(e.id), o = h(e.customClass), r = h(e.editor), d = h(e.label), c = h(e.modelValue), C = h(e.readonly), u = h(e.required), i = h(e.showLabel), p = h(e.visible);
1266
+ const n = h(e.id), o = h(e.customClass), r = h(e.editor), d = h(e.label), u = h(e.modelValue), C = h(e.readonly), c = h(e.required), i = h(e.showLabel), p = h(e.visible);
1261
1267
  h(e.type);
1262
1268
  const a = h(), {
1263
1269
  resolveEditorProps: f,
1264
1270
  resolveEditorType: s,
1265
1271
  getChangeFunctionName: m,
1266
- getClearFunctionName: w
1267
- } = oo(), k = S(() => ({
1272
+ getClearFunctionName: T
1273
+ } = io(), E = S(() => ({
1268
1274
  "form-group": !0,
1269
1275
  "farris-form-group": !0,
1270
1276
  "common-group": !0,
1271
1277
  "q-state-readonly": C.value
1272
1278
  }));
1273
- function L(E, I) {
1274
- c.value = I !== void 0 ? I : E, t.emit("update:modelValue", c.value), t.emit("change", c.value);
1279
+ function V(k, I) {
1280
+ u.value = I !== void 0 ? I : k, t.emit("update:modelValue", u.value), t.emit("change", u.value);
1275
1281
  }
1276
- function A() {
1282
+ function j() {
1277
1283
  t.emit("update:modelValue", "");
1278
1284
  }
1279
- const R = S(() => {
1280
- const E = r.value.type || "input-group", I = s(E), O = f(E, r.value), B = m(E), $ = w(r.value.type);
1281
- return O[B] = L, O[$] = A, (O.id == null || O.id === "") && (O.id = n.value), () => l(I, De({
1285
+ const L = S(() => {
1286
+ const k = r.value.type || "input-group", I = s(k), O = f(k, r.value), B = m(k), D = T(r.value.type);
1287
+ return O[B] = V, O[D] = j, (O.id == null || O.id === "") && (O.id = n.value), () => l(I, qe({
1282
1288
  ref: a
1283
1289
  }, O, {
1284
- modelValue: c.value,
1285
- "onUpdate:modelValue": (j) => c.value = j
1290
+ modelValue: u.value,
1291
+ "onUpdate:modelValue": (N) => u.value = N
1286
1292
  }), null);
1287
1293
  });
1288
- return V([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([E, I, O, B, $, j, G, U, _]) => {
1289
- n.value = E, o.value = I, r.value = O, d.value = B, c.value = $, C.value = j, u.value = G, i.value = U, p.value = _;
1294
+ return R([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([k, I, O, B, D, N, q, _, z]) => {
1295
+ n.value = k, o.value = I, r.value = O, d.value = B, u.value = D, C.value = N, c.value = q, i.value = _, p.value = z;
1290
1296
  }), t.expose({
1291
1297
  editorRef: a
1292
1298
  }), () => p.value && l("div", {
@@ -1295,25 +1301,25 @@ const ro = /* @__PURE__ */ H({
1295
1301
  }, [l("div", {
1296
1302
  class: "farris-group-wrap"
1297
1303
  }, [l("div", {
1298
- class: k.value
1299
- }, [i.value && l(On, {
1304
+ class: E.value
1305
+ }, [i.value && l(Nn, {
1300
1306
  id: `${n.value}-lable`,
1301
- required: u.value,
1307
+ required: c.value,
1302
1308
  text: d.value,
1303
1309
  title: d.value
1304
1310
  }, null), l("div", {
1305
1311
  class: "farris-input-wrap"
1306
- }, [R.value()])])])]);
1312
+ }, [L.value()])])])]);
1307
1313
  }
1308
- }), ao = /* @__PURE__ */ H({
1314
+ }), so = /* @__PURE__ */ H({
1309
1315
  name: "FPropertyPanelItem",
1310
- props: Cn,
1316
+ props: xn,
1311
1317
  emits: ["propertyChange", "triggerRefreshPanel"],
1312
1318
  setup(e, t) {
1313
- var u;
1314
- const n = h((u = e.category) == null ? void 0 : u.categoryId), o = h(e.elementConfig.propertyID), r = h(e.elementConfig.propertyName);
1319
+ var c;
1320
+ const n = h((c = e.category) == null ? void 0 : c.categoryId), o = h(e.elementConfig.propertyID), r = h(e.elementConfig.propertyName);
1315
1321
  h(e.elementConfig.editor);
1316
- const d = h(e.elementConfig.propertyValue), c = S(() => {
1322
+ const d = h(e.elementConfig.propertyValue), u = S(() => {
1317
1323
  const i = e.elementConfig.visible;
1318
1324
  return {
1319
1325
  "farris-group-wrap": !0,
@@ -1321,7 +1327,7 @@ const ro = /* @__PURE__ */ H({
1321
1327
  "d-none": !(typeof i == "boolean" ? i : i == null ? !0 : i())
1322
1328
  };
1323
1329
  });
1324
- V(() => {
1330
+ R(() => {
1325
1331
  var i;
1326
1332
  return (i = e.elementConfig) == null ? void 0 : i.propertyValue;
1327
1333
  }, (i) => {
@@ -1336,8 +1342,8 @@ const ro = /* @__PURE__ */ H({
1336
1342
  t.emit("propertyChange", p), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
1337
1343
  }
1338
1344
  return () => l("div", {
1339
- class: c.value
1340
- }, [l(ro, {
1345
+ class: u.value
1346
+ }, [l(lo, {
1341
1347
  id: o.value,
1342
1348
  customClass: `${n.value}-${o.value}`,
1343
1349
  label: r.value,
@@ -1347,9 +1353,9 @@ const ro = /* @__PURE__ */ H({
1347
1353
  editorParams: e.elementConfig.editorParams
1348
1354
  }, null)]);
1349
1355
  }
1350
- }), io = /* @__PURE__ */ H({
1356
+ }), uo = /* @__PURE__ */ H({
1351
1357
  name: "FPropertyPanelItemList",
1352
- props: hn,
1358
+ props: wn,
1353
1359
  emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
1354
1360
  setup(e, t) {
1355
1361
  const n = h(e.category);
@@ -1379,7 +1385,7 @@ const ro = /* @__PURE__ */ H({
1379
1385
  onClick: (m) => r(m, s)
1380
1386
  }, [l("span", null, null)])]);
1381
1387
  }
1382
- function c(s) {
1388
+ function u(s) {
1383
1389
  return l("div", {
1384
1390
  class: "f-section-formgroup-legend"
1385
1391
  }, [l("div", {
@@ -1399,7 +1405,7 @@ const ro = /* @__PURE__ */ H({
1399
1405
  function C(s) {
1400
1406
  return `${e.categoryKey}_${s.propertyID}`;
1401
1407
  }
1402
- function u(s) {
1408
+ function c(s) {
1403
1409
  s.categoryId = n.value.categoryId, n.value.enableCascade && (s.propertyPath = n.value.parentPropertyID), n.value.setPropertyRelates && n.value.setPropertyRelates(s, e.propertyData), t.emit("valueChanged", {
1404
1410
  changeObject: s
1405
1411
  });
@@ -1410,11 +1416,11 @@ const ro = /* @__PURE__ */ H({
1410
1416
  function p(s) {
1411
1417
  return l("div", {
1412
1418
  class: "px-2 mb-2"
1413
- }, [l(ao, {
1419
+ }, [l(so, {
1414
1420
  key: C(s),
1415
1421
  elementConfig: s,
1416
1422
  category: n.value,
1417
- onPropertyChange: u,
1423
+ onPropertyChange: c,
1418
1424
  onTriggerRefreshPanel: i
1419
1425
  }, null)]);
1420
1426
  }
@@ -1428,114 +1434,114 @@ const ro = /* @__PURE__ */ H({
1428
1434
  }]
1429
1435
  }, [l("div", {
1430
1436
  class: "card-header",
1431
- onClick: (w) => r(w, s)
1437
+ onClick: (T) => r(T, s)
1432
1438
  }, [l("div", {
1433
1439
  class: "panel-item-title"
1434
1440
  }, [l("div", {
1435
1441
  class: "form-group farris-form-group line-item"
1436
- }, [c(s), o(s), d(s)])])]), l("div", {
1442
+ }, [u(s), o(s), d(s)])])]), l("div", {
1437
1443
  class: ["card-body", {
1438
1444
  hidden: !s.isExpand
1439
1445
  }]
1440
- }, [(m = s.cascadeConfig) == null ? void 0 : m.map((w) => p(w))])])]);
1446
+ }, [(m = s.cascadeConfig) == null ? void 0 : m.map((T) => p(T))])])]);
1441
1447
  }
1442
- V(() => e.category, () => {
1448
+ R(() => e.category, () => {
1443
1449
  n.value = e.category;
1444
1450
  });
1445
1451
  function f(s) {
1446
1452
  return s.propertyType === "cascade" ? a : p;
1447
1453
  }
1448
- return () => l(Z, null, [n.value.properties.map((s) => f(s)(s))]);
1454
+ return () => l(J, null, [n.value.properties.map((s) => f(s)(s))]);
1449
1455
  }
1450
- }), ue = /* @__PURE__ */ H({
1456
+ }), ce = /* @__PURE__ */ H({
1451
1457
  name: "FPropertyPanel",
1452
- props: Jt,
1458
+ props: en,
1453
1459
  emits: ["propertyChanged"],
1454
1460
  setup(e, t) {
1455
- const n = h(e.width), o = h(e.isWidePanel), r = h(e.enableSearch), d = h(e.mode), c = h(e.isPersitOpenState), C = h(e.isShowPanel), u = h(), i = h(), p = h(e.showCloseBtn), a = h(e.selectedTabId), f = h(!0), s = h(e.isWhiteTheme);
1456
- let m = [], w = [];
1457
- const k = h(""), L = h(), A = h(), R = Ve("SchemaService");
1458
- let E = [], I = null, O = "";
1459
- const B = h(), $ = h(0);
1460
- function j() {
1461
- w = [], B.value && B.value.categoryList && Array.isArray(B.value.categoryList) && B.value.categoryList.length > 0 && B.value.categoryList.forEach((x) => {
1462
- if (x.properties.forEach((F) => F.categoryId = x.categoryId), x.properties && Array.isArray(x.properties) && x.properties.length > 0) {
1463
- const F = x.properties.map((N) => (N.category = x, N));
1464
- w = w.concat(F);
1461
+ const n = h(e.width), o = h(e.isWidePanel), r = h(e.enableSearch), d = h(e.mode), u = h(e.isPersitOpenState), C = h(e.isShowPanel), c = h(), i = h(), p = h(e.showCloseBtn), a = h(e.selectedTabId), f = h(!0), s = h(e.isWhiteTheme);
1462
+ let m = [], T = [];
1463
+ const E = h(""), V = h(), j = h(), L = Ue("SchemaService");
1464
+ let k = [], I = null, O = "";
1465
+ const B = h(), D = h(0);
1466
+ function N() {
1467
+ T = [], B.value && B.value.categoryList && Array.isArray(B.value.categoryList) && B.value.categoryList.length > 0 && B.value.categoryList.forEach((w) => {
1468
+ if (w.properties.forEach((F) => F.categoryId = w.categoryId), w.properties && Array.isArray(w.properties) && w.properties.length > 0) {
1469
+ const F = w.properties.map((M) => (M.category = w, M));
1470
+ T = T.concat(F);
1465
1471
  }
1466
1472
  });
1467
1473
  }
1468
- function G(T) {
1469
- let x = T.offsetTop, F = T.offsetParent;
1474
+ function q(x) {
1475
+ let w = x.offsetTop, F = x.offsetParent;
1470
1476
  for (; F !== null; )
1471
- x += F.offsetTop, F = F.offsetParent;
1472
- return x;
1477
+ w += F.offsetTop, F = F.offsetParent;
1478
+ return w;
1473
1479
  }
1474
- function U(T, x) {
1475
- T && x && Object.keys(x).length > 0 && Object.keys(x).forEach((F) => {
1476
- var M;
1477
- const N = x[F];
1478
- (M = T.style) == null || M.setProperty(F, N);
1480
+ function _(x, w) {
1481
+ x && w && Object.keys(w).length > 0 && Object.keys(w).forEach((F) => {
1482
+ var G;
1483
+ const M = w[F];
1484
+ (G = x.style) == null || G.setProperty(F, M);
1479
1485
  });
1480
1486
  }
1481
- function _() {
1482
- return w.filter((x) => x.visible ? !!(x.propertyID && x.propertyID.startsWith(k.value) || x.propertyName && (x.propertyName.startsWith(k.value) || x.propertyName.includes(k.value))) : !1);
1487
+ function z() {
1488
+ return T.filter((w) => w.visible ? !!(w.propertyID && w.propertyID.startsWith(E.value) || w.propertyName && (w.propertyName.startsWith(E.value) || w.propertyName.includes(E.value))) : !1);
1483
1489
  }
1484
- function P(T, x, F) {
1485
- if (T === 0) {
1486
- const N = G(x), Y = G(F) - N - 5;
1487
- x == null || x.scroll({
1488
- top: Y,
1490
+ function P(x, w, F) {
1491
+ if (x === 0) {
1492
+ const M = q(w), K = q(F) - M - 5;
1493
+ w == null || w.scroll({
1494
+ top: K,
1489
1495
  behavior: "smooth"
1490
1496
  });
1491
1497
  }
1492
1498
  }
1493
- function D(T) {
1494
- E && E.length > 0 && (E.forEach((F) => {
1499
+ function A(x) {
1500
+ k && k.length > 0 && (k.forEach((F) => {
1495
1501
  F.style.cssText = "";
1496
- }), E = []), k.value = T || k.value;
1497
- const x = document.querySelector(".panel-body");
1498
- if (!k.value)
1499
- L.value && x && (x.scrollTop = 0);
1500
- else if (j(), w && w.length > 0) {
1501
- const F = _();
1502
+ }), k = []), E.value = x || E.value;
1503
+ const w = document.querySelector(".panel-body");
1504
+ if (!E.value)
1505
+ V.value && w && (w.scrollTop = 0);
1506
+ else if (N(), T && T.length > 0) {
1507
+ const F = z();
1502
1508
  F && F.length > 0 && (F[0].category.status === "closed" && (F[0].category.status = "open"), setTimeout(() => {
1503
- F.forEach((N, M) => {
1504
- const Y = N.propertyType === "cascade" ? `.${N.categoryId}-${N.propertyID} div.col-form-label` : `.property-item .${N.categoryId}-${N.propertyID} label.col-form-label`, Q = document.querySelector(Y);
1505
- Q && (P(M, x, Q), U(Q, {
1509
+ F.forEach((M, G) => {
1510
+ const K = M.propertyType === "cascade" ? `.${M.categoryId}-${M.propertyID} div.col-form-label` : `.property-item .${M.categoryId}-${M.propertyID} label.col-form-label`, Z = document.querySelector(K);
1511
+ Z && (P(G, w, Z), _(Z, {
1506
1512
  color: "#5B89FE"
1507
- }), E.push(Q));
1513
+ }), k.push(Z));
1508
1514
  });
1509
1515
  }, 50));
1510
1516
  }
1511
1517
  }
1512
- function q(T) {
1513
- D(T);
1518
+ function U(x) {
1519
+ A(x);
1514
1520
  }
1515
- function J(T) {
1521
+ function X(x) {
1516
1522
  const {
1517
- value: x
1518
- } = T.target;
1519
- T.key === "Enter" && q(x);
1523
+ value: w
1524
+ } = x.target;
1525
+ x.key === "Enter" && U(w);
1520
1526
  }
1521
- function be(T) {
1527
+ function Fe(x) {
1522
1528
  const {
1523
- value: x
1524
- } = T.target;
1525
- q(x);
1529
+ value: w
1530
+ } = x.target;
1531
+ U(w);
1526
1532
  }
1527
- function he() {
1528
- c.value || (f.value = !1), t.emit("closePropertyPanel");
1533
+ function we() {
1534
+ u.value || (f.value = !1), t.emit("closePropertyPanel");
1529
1535
  }
1530
- function X(T) {
1531
- k.value = "", D();
1536
+ function Y(x) {
1537
+ E.value = "", A();
1532
1538
  }
1533
- function Ce(T) {
1534
- !T.status || T.status === "open" ? T.status = "closed" : T.status = "open";
1539
+ function xe(x) {
1540
+ !x.status || x.status === "open" ? x.status = "closed" : x.status = "open";
1535
1541
  }
1536
- function z() {
1537
- var T, x;
1538
- if (m = [], !u.value || u.value.length === 0) {
1542
+ function Q() {
1543
+ var x, w;
1544
+ if (m = [], !c.value || c.value.length === 0) {
1539
1545
  m = [{
1540
1546
  tabId: "default",
1541
1547
  tabName: "属性",
@@ -1543,47 +1549,47 @@ const ro = /* @__PURE__ */ H({
1543
1549
  }], B.value = null;
1544
1550
  return;
1545
1551
  }
1546
- if ((T = u == null ? void 0 : u.value) == null || T.forEach((F) => {
1552
+ if ((x = c == null ? void 0 : c.value) == null || x.forEach((F) => {
1547
1553
  if (F.tabId) {
1548
- const N = m.find((M) => M.tabId === F.tabId);
1549
- N ? (N.categoryList.push(F), N.hide && (N.hide = F.hide || F.properties.length === 0)) : m.push({
1554
+ const M = m.find((G) => G.tabId === F.tabId);
1555
+ M ? (M.categoryList.push(F), M.hide && (M.hide = F.hide || F.properties.length === 0)) : m.push({
1550
1556
  tabId: F.tabId,
1551
1557
  tabName: F.tabName,
1552
1558
  categoryList: [F],
1553
1559
  hide: F.hide || F.properties.length === 0
1554
1560
  });
1555
1561
  } else {
1556
- const N = m.find((M) => M.tabId === "default");
1557
- N ? N.categoryList.push(F) : m.push({
1562
+ const M = m.find((G) => G.tabId === "default");
1563
+ M ? M.categoryList.push(F) : m.push({
1558
1564
  tabId: "default",
1559
1565
  tabName: "属性",
1560
1566
  categoryList: [F]
1561
1567
  });
1562
1568
  }
1563
1569
  }), a.value) {
1564
- let F = m == null ? void 0 : m.find((N) => N.tabId === a.value && !N.hide);
1570
+ let F = m == null ? void 0 : m.find((M) => M.tabId === a.value && !M.hide);
1565
1571
  B.value = F || m[0];
1566
1572
  } else
1567
1573
  B.value = m[0];
1568
- a.value = (x = B.value) == null ? void 0 : x.tabId;
1574
+ a.value = (w = B.value) == null ? void 0 : w.tabId;
1569
1575
  }
1570
- V(() => [e.schema, e.isShowPanel], () => {
1571
- i.value = e.schema, !e.schema || !e.schema.type ? u.value = [] : u.value = K(i.value, R, I, O), z(), X(k.value), $.value++;
1576
+ R(() => [e.schema, e.isShowPanel], () => {
1577
+ i.value = e.schema, !e.schema || !e.schema.type ? c.value = [] : c.value = ee(i.value, L, I, O), Q(), Y(E.value), D.value++;
1572
1578
  }), W(() => {
1573
- z();
1579
+ Q();
1574
1580
  });
1575
- function Fe(T, x) {
1576
- (!i.value || x) && (i.value = x || e.schema), u.value = K(i.value, R, I, O, T), z(), X(k.value);
1581
+ function Te(x, w) {
1582
+ (!i.value || w) && (i.value = w || e.schema), c.value = ee(i.value, L, I, O, x), Q(), Y(E.value);
1577
1583
  }
1578
- function xe(T, x) {
1579
- I = T, O = x;
1584
+ function Be(x, w) {
1585
+ I = x, O = w;
1580
1586
  }
1581
- function ae() {
1587
+ function ie() {
1582
1588
  d.value = d.value === "panel" ? "sidebar" : "panel", d.value === "panel" ? (setTimeout(() => {
1583
- q();
1589
+ U();
1584
1590
  }, 100), n.value = "300px") : n.value = "41px";
1585
1591
  }
1586
- function Te() {
1592
+ function Pe() {
1587
1593
  if (p.value)
1588
1594
  return l("div", {
1589
1595
  class: "title-actions"
@@ -1596,17 +1602,17 @@ const ro = /* @__PURE__ */ H({
1596
1602
  role: "toolbar"
1597
1603
  }, [l("li", {
1598
1604
  class: "action-item",
1599
- onClick: he
1605
+ onClick: we
1600
1606
  }, [l("span", {
1601
1607
  class: "f-icon f-icon-close"
1602
1608
  }, null)])])])])]);
1603
1609
  }
1604
- function we() {
1605
- u.value = K(i.value, R, I, O), z();
1610
+ function Se() {
1611
+ c.value = ee(i.value, L, I, O), Q();
1606
1612
  }
1607
- function Be() {
1608
- var T;
1609
- if (r.value && ((T = B.value) == null ? void 0 : T.tabId) !== "commands")
1613
+ function Ee() {
1614
+ var x;
1615
+ if (r.value && ((x = B.value) == null ? void 0 : x.tabId) !== "commands")
1610
1616
  return l("div", {
1611
1617
  class: "search"
1612
1618
  }, [l("div", {
@@ -1616,48 +1622,48 @@ const ro = /* @__PURE__ */ H({
1616
1622
  type: "text",
1617
1623
  placeholder: "输入属性名称或编号快速定位",
1618
1624
  autocomplete: "off",
1619
- onKeyup: (x) => J(x),
1620
- value: k.value
1625
+ onKeyup: (w) => X(w),
1626
+ value: E.value
1621
1627
  }, null), l("div", {
1622
1628
  class: "input-group-append",
1623
1629
  style: "margin-left: 0px;"
1624
1630
  }, [l("span", {
1625
1631
  class: "input-group-text input-group-clear",
1626
1632
  style: [{
1627
- display: k.value && k.value.length > 0 ? "" : "none"
1633
+ display: E.value && E.value.length > 0 ? "" : "none"
1628
1634
  }],
1629
- onClick: (x) => X()
1635
+ onClick: (w) => Y()
1630
1636
  }, [l("i", {
1631
1637
  class: "f-icon modal_close"
1632
1638
  }, null)]), l("span", {
1633
1639
  class: "input-group-text input-group-clear",
1634
- onClick: (x) => be(x)
1640
+ onClick: (w) => Fe(w)
1635
1641
  }, [l("i", {
1636
1642
  class: "f-icon f-icon-search"
1637
1643
  }, null)])])])]);
1638
1644
  }
1639
- function Pe(T) {
1640
- return `${e.propertyName}_${T.categoryId}`;
1645
+ function ke(x) {
1646
+ return `${e.propertyName}_${x.categoryId}`;
1641
1647
  }
1642
- function Se(T) {
1643
- t.emit("propertyChanged", T);
1648
+ function Ie(x) {
1649
+ t.emit("propertyChanged", x);
1644
1650
  }
1645
- function ke() {
1646
- var T, x;
1651
+ function Oe() {
1652
+ var x, w;
1647
1653
  if (B.value)
1648
1654
  return l("div", {
1649
1655
  class: "panel-body",
1650
- ref: A
1656
+ ref: j
1651
1657
  }, [l("ul", {
1652
1658
  class: ["property-grid", {
1653
1659
  "wide-panel": o.value
1654
1660
  }]
1655
- }, [(x = (T = B.value) == null ? void 0 : T.categoryList) == null ? void 0 : x.map((F) => l("li", {
1656
- key: Pe(F),
1661
+ }, [(w = (x = B.value) == null ? void 0 : x.categoryList) == null ? void 0 : w.map((F) => l("li", {
1662
+ key: ke(F),
1657
1663
  "data-category-id": F == null ? void 0 : F.categoryId
1658
1664
  }, [!F.hide && !F.hideTitle && l("span", {
1659
1665
  class: "group-label",
1660
- onClick: () => Ce(F)
1666
+ onClick: () => xe(F)
1661
1667
  }, [l("span", {
1662
1668
  class: ["f-icon mr-2", {
1663
1669
  "f-legend-show": F.status === "closed"
@@ -1666,30 +1672,30 @@ const ro = /* @__PURE__ */ H({
1666
1672
  }]
1667
1673
  }, null), F.categoryName]), l("div", {
1668
1674
  hidden: F.status === "closed"
1669
- }, [l(io, {
1670
- key: `${F == null ? void 0 : F.categoryId}-${$.value}`,
1675
+ }, [l(uo, {
1676
+ key: `${F == null ? void 0 : F.categoryId}-${D.value}`,
1671
1677
  category: F,
1672
1678
  propertyData: i.value,
1673
- onTriggerRefreshPanel: we,
1674
- onValueChanged: Se
1679
+ onTriggerRefreshPanel: Se,
1680
+ onValueChanged: Ie
1675
1681
  }, null)])]))])]);
1676
1682
  }
1677
- function Ee() {
1683
+ function Me() {
1678
1684
  if (d.value === "sidebar")
1679
1685
  return l("div", {
1680
1686
  class: "side-panel h-100",
1681
- onClick: ae
1687
+ onClick: ie
1682
1688
  }, [l("i", {
1683
1689
  class: "f-icon f-icon-engineering w-100 icon"
1684
- }, null), l("span", null, [ce("属性")])]);
1690
+ }, null), l("span", null, [de("属性")])]);
1685
1691
  }
1686
- function Ie() {
1692
+ function Ve() {
1687
1693
  return {
1688
1694
  display: f.value ? "block" : "none",
1689
1695
  width: n.value
1690
1696
  };
1691
1697
  }
1692
- function Oe() {
1698
+ function Ne() {
1693
1699
  return l("div", {
1694
1700
  class: "switcher"
1695
1701
  }, [l("i", {
@@ -1697,36 +1703,36 @@ const ro = /* @__PURE__ */ H({
1697
1703
  style: [{
1698
1704
  transform: d.value === "sidebar" ? "none" : "rotate(180deg)"
1699
1705
  }],
1700
- onClick: ae
1706
+ onClick: ie
1701
1707
  }, null)]);
1702
1708
  }
1703
- function Ne(T) {
1704
- B.value = T, a.value = B.value.tabId, k.value = "";
1709
+ function je(x) {
1710
+ B.value = x, a.value = B.value.tabId, E.value = "";
1705
1711
  }
1706
1712
  function Le() {
1707
- return m.map((T) => l("div", {
1713
+ return m.map((x) => l("div", {
1708
1714
  class: ["title-label", {
1709
- active: B.value && B.value.tabId === T.tabId
1715
+ active: B.value && B.value.tabId === x.tabId
1710
1716
  }, {
1711
- hidden: T.hide
1717
+ hidden: x.hide
1712
1718
  }],
1713
- onClick: () => Ne(T)
1714
- }, [l("span", null, [T.tabName])]));
1719
+ onClick: () => je(x)
1720
+ }, [l("span", null, [x.tabName])]));
1715
1721
  }
1716
1722
  return W(() => {
1717
- q(k.value);
1718
- }), $e(() => {
1719
- c.value && (f.value = C.value), z(), q(k.value);
1720
- }), V(B, () => {
1723
+ U(E.value);
1724
+ }), We(() => {
1725
+ u.value && (f.value = C.value), Q(), U(E.value);
1726
+ }), R(B, () => {
1721
1727
  }), t.expose({
1722
- updatePropertyConfig: Fe,
1723
- updateDesignerItem: xe
1724
- }), () => l(Z, null, [l("div", {
1725
- ref: L,
1728
+ updatePropertyConfig: Te,
1729
+ updateDesignerItem: Be
1730
+ }), () => l(J, null, [l("div", {
1731
+ ref: V,
1726
1732
  class: ["property-panel", {
1727
1733
  "white-theme": s.value
1728
1734
  }],
1729
- style: Ie()
1735
+ style: Ve()
1730
1736
  }, [l("div", {
1731
1737
  class: "propertyPanel panel flex-column",
1732
1738
  hidden: d.value !== "panel"
@@ -1736,19 +1742,115 @@ const ro = /* @__PURE__ */ H({
1736
1742
  }, {
1737
1743
  only: m.length === 1
1738
1744
  }]
1739
- }, [Le(), Te()]), Be(), ke()]), Oe(), Ee()])]);
1745
+ }, [Le(), Pe()]), Ee(), Oe()]), Ne(), Me()])]);
1740
1746
  }
1741
1747
  });
1742
- var lo = /* @__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))(lo || {});
1743
- const yr = {
1748
+ class Fr {
1749
+ constructor(t, n) {
1750
+ $(this, "componentId");
1751
+ $(this, "viewModelId");
1752
+ $(this, "eventsEditorUtils");
1753
+ $(this, "formSchemaUtils");
1754
+ $(this, "formMetadataConverter");
1755
+ $(this, "designViewModelUtils");
1756
+ $(this, "designViewModelField");
1757
+ $(this, "controlCreatorUtils");
1758
+ $(this, "designerHostService");
1759
+ $(this, "schemaService", null);
1760
+ $(this, "metadataService", null);
1761
+ $(this, "propertyConfig", {
1762
+ type: "object",
1763
+ categories: {}
1764
+ });
1765
+ var o;
1766
+ this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
1767
+ }
1768
+ getTableInfo() {
1769
+ var t;
1770
+ return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
1771
+ }
1772
+ setDesignViewModelField(t) {
1773
+ const n = t.binding && t.binding.type === "Form" && t.binding.field;
1774
+ if (n) {
1775
+ if (!this.designViewModelField) {
1776
+ const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1777
+ this.designViewModelField = o.fields.find((r) => r.id === n);
1778
+ }
1779
+ t.updateOn = this.designViewModelField.updateOn;
1780
+ }
1781
+ }
1782
+ changeFieldEditorType(t, n) {
1783
+ }
1784
+ getBasicPropConfig(t) {
1785
+ return {
1786
+ description: "Basic Information",
1787
+ title: "基本信息",
1788
+ properties: {
1789
+ id: {
1790
+ description: "组件标识",
1791
+ title: "标识",
1792
+ type: "string",
1793
+ readonly: !0
1794
+ },
1795
+ type: {
1796
+ description: "组件类型",
1797
+ title: "控件类型",
1798
+ type: "select",
1799
+ editor: {
1800
+ type: "combo-list",
1801
+ textField: "name",
1802
+ valueField: "value",
1803
+ data: [{ value: t.type, name: ge[t.type].name }]
1804
+ }
1805
+ }
1806
+ }
1807
+ };
1808
+ }
1809
+ getAppearanceConfig(t = null) {
1810
+ return {
1811
+ title: "样式",
1812
+ description: "Appearance",
1813
+ properties: {
1814
+ class: {
1815
+ title: "class样式",
1816
+ type: "string",
1817
+ description: "组件的CSS样式",
1818
+ $converter: "/converter/appearance.converter"
1819
+ },
1820
+ style: {
1821
+ title: "style样式",
1822
+ type: "string",
1823
+ description: "组件的样式",
1824
+ $converter: "/converter/appearance.converter"
1825
+ }
1826
+ }
1827
+ };
1828
+ }
1829
+ /**
1830
+ *
1831
+ * @param propertyId
1832
+ * @param componentInstance
1833
+ * @returns
1834
+ */
1835
+ updateElementByParentContainer(t, n) {
1836
+ const o = n && n.parent && n.parent.schema;
1837
+ if (!o)
1838
+ return;
1839
+ const r = o.contents.findIndex((u) => u.id === t), d = pe(o.contents[r]);
1840
+ o.contents.splice(r, 1), o.contents.splice(r, 0, d);
1841
+ }
1842
+ }
1843
+ var co = /* @__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))(co || {});
1844
+ const wr = {
1744
1845
  install(e) {
1745
- e.component(ue.name, ue);
1846
+ e.component(ce.name, ce);
1746
1847
  }
1747
1848
  };
1748
1849
  export {
1749
- ue as FPropertyPanel,
1750
- lo as PropertyType,
1751
- yr as default,
1752
- Cn as propertyPanelItemProps,
1753
- Jt as propertyPanelProps
1850
+ Fr as BaseControlProperty,
1851
+ ce as FPropertyPanel,
1852
+ co as PropertyType,
1853
+ wr as default,
1854
+ xn as propertyPanelItemProps,
1855
+ en as propertyPanelProps
1754
1856
  };