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