@farris/ui-vue 1.2.8 → 1.3.0

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 (283) hide show
  1. package/components/accordion/index.esm.js +180 -180
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +419 -331
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.css +1 -1
  8. package/components/button-edit/index.esm.js +346 -326
  9. package/components/button-edit/index.umd.cjs +1 -0
  10. package/components/button-group/index.umd.cjs +1 -0
  11. package/components/calculator/index.umd.cjs +1 -0
  12. package/components/calendar/index.esm.js +384 -384
  13. package/components/calendar/index.umd.cjs +1 -0
  14. package/components/capsule/index.esm.js +205 -205
  15. package/components/capsule/index.umd.cjs +1 -0
  16. package/components/checkbox/index.esm.js +555 -467
  17. package/components/checkbox/index.umd.cjs +1 -0
  18. package/components/color-picker/index.esm.js +239 -239
  19. package/components/color-picker/index.umd.cjs +3 -0
  20. package/components/combo-list/index.css +1 -0
  21. package/components/combo-list/index.esm.js +1072 -364
  22. package/components/combo-list/index.umd.cjs +1 -0
  23. package/components/combo-tree/index.esm.js +129 -129
  24. package/components/combo-tree/index.umd.cjs +1 -0
  25. package/components/common/index.esm.js +778 -700
  26. package/components/common/index.umd.cjs +1 -0
  27. package/components/component/index.esm.js +582 -327
  28. package/components/component/index.umd.cjs +1 -0
  29. package/components/condition/index.css +1 -0
  30. package/components/condition/index.esm.js +2433 -1134
  31. package/components/condition/index.umd.cjs +1 -0
  32. package/components/content-container/index.esm.js +307 -234
  33. package/components/content-container/index.umd.cjs +1 -0
  34. package/components/data-grid/index.css +1 -1
  35. package/components/data-grid/index.esm.js +6762 -4946
  36. package/components/data-grid/index.umd.cjs +1 -0
  37. package/components/data-view/index.css +1 -0
  38. package/components/data-view/index.esm.js +4977 -3489
  39. package/components/data-view/index.umd.cjs +1 -0
  40. package/components/date-picker/index.css +1 -1
  41. package/components/date-picker/index.esm.js +3525 -2811
  42. package/components/date-picker/index.umd.cjs +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +938 -928
  45. package/components/designer-canvas/index.umd.cjs +1 -0
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +38 -37
  48. package/components/designer-outline/index.umd.cjs +1 -0
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -0
  51. package/components/discussion-editor/index.umd.cjs +3 -0
  52. package/components/discussion-list/index.umd.cjs +1 -0
  53. package/components/drawer/index.umd.cjs +1 -0
  54. package/components/dropdown/index.esm.js +282 -282
  55. package/components/dropdown/index.umd.cjs +2 -0
  56. package/components/dynamic-form/index.css +1 -0
  57. package/components/dynamic-form/index.esm.js +2684 -1039
  58. package/components/dynamic-form/index.umd.cjs +1 -0
  59. package/components/dynamic-resolver/index.esm.js +149 -101
  60. package/components/dynamic-resolver/index.umd.cjs +1 -0
  61. package/components/dynamic-view/index.esm.js +303 -290
  62. package/components/dynamic-view/index.umd.cjs +1 -0
  63. package/components/enum-editor/index.umd.cjs +1 -0
  64. package/components/events-editor/index.esm.js +573 -518
  65. package/components/events-editor/index.umd.cjs +1 -0
  66. package/components/expression-editor/index.esm.js +99 -99
  67. package/components/expression-editor/index.umd.cjs +1 -0
  68. package/components/external-container/index.css +1 -1
  69. package/components/external-container/index.esm.js +3607 -2799
  70. package/components/external-container/index.umd.cjs +1 -0
  71. package/components/field-selector/index.css +1 -1
  72. package/components/field-selector/index.esm.js +5438 -8236
  73. package/components/field-selector/index.umd.cjs +1 -0
  74. package/components/filter-bar/index.css +1 -1
  75. package/components/filter-bar/index.esm.js +1679 -1759
  76. package/components/filter-bar/index.umd.cjs +1 -0
  77. package/components/flow-canvas/index.css +1 -1
  78. package/components/flow-canvas/index.esm.js +1062 -1052
  79. package/components/flow-canvas/index.umd.cjs +1 -0
  80. package/components/image-cropper/index.esm.js +421 -421
  81. package/components/image-cropper/index.umd.cjs +1 -0
  82. package/components/input-group/index.esm.js +677 -593
  83. package/components/input-group/index.umd.cjs +1 -0
  84. package/components/layout/index.esm.js +326 -326
  85. package/components/layout/index.umd.cjs +1 -0
  86. package/components/list-nav/index.esm.js +272 -199
  87. package/components/list-nav/index.umd.cjs +1 -0
  88. package/components/list-view/index.css +1 -1
  89. package/components/list-view/index.esm.js +3739 -2273
  90. package/components/list-view/index.umd.cjs +1 -0
  91. package/components/loading/index.umd.cjs +8 -0
  92. package/components/locale/index.umd.cjs +1 -0
  93. package/components/lookup/index.css +1 -1
  94. package/components/lookup/index.esm.js +11255 -9004
  95. package/components/lookup/index.umd.cjs +1 -0
  96. package/components/mapping-editor/index.css +1 -1
  97. package/components/mapping-editor/index.esm.js +6046 -5314
  98. package/components/mapping-editor/index.umd.cjs +1 -0
  99. package/components/message-box/index.css +1 -1
  100. package/components/message-box/index.esm.js +511 -471
  101. package/components/message-box/index.umd.cjs +1 -0
  102. package/components/modal/index.css +1 -1
  103. package/components/modal/index.esm.js +438 -398
  104. package/components/modal/index.umd.cjs +1 -0
  105. package/components/nav/index.esm.js +588 -444
  106. package/components/nav/index.umd.cjs +3 -0
  107. package/components/notify/index.esm.js +59 -53
  108. package/components/notify/index.umd.cjs +1 -0
  109. package/components/number-range/index.esm.js +568 -485
  110. package/components/number-range/index.umd.cjs +1 -0
  111. package/components/number-spinner/index.esm.js +542 -454
  112. package/components/number-spinner/index.umd.cjs +1 -0
  113. package/components/order/index.css +1 -1
  114. package/components/order/index.esm.js +1967 -1105
  115. package/components/order/index.umd.cjs +1 -0
  116. package/components/page-footer/index.esm.js +160 -160
  117. package/components/page-footer/index.umd.cjs +1 -0
  118. package/components/page-header/index.esm.js +1282 -1151
  119. package/components/page-header/index.umd.cjs +1 -0
  120. package/components/pagination/index.esm.js +705 -555
  121. package/components/pagination/index.umd.cjs +1 -0
  122. package/components/popover/index.esm.js +71 -70
  123. package/components/popover/index.umd.cjs +1 -0
  124. package/components/progress/index.esm.js +270 -270
  125. package/components/progress/index.umd.cjs +3 -0
  126. package/components/property-editor/index.css +1 -1
  127. package/components/property-editor/index.esm.js +2231 -1517
  128. package/components/property-editor/index.umd.cjs +3 -0
  129. package/components/property-panel/index.esm.js +813 -909
  130. package/components/property-panel/index.umd.cjs +1 -0
  131. package/components/query-solution/index.css +1 -1
  132. package/components/query-solution/index.esm.js +3781 -2566
  133. package/components/query-solution/index.umd.cjs +1 -0
  134. package/components/radio-button/index.esm.js +101 -101
  135. package/components/radio-button/index.umd.cjs +1 -0
  136. package/components/radio-group/index.esm.js +538 -450
  137. package/components/radio-group/index.umd.cjs +1 -0
  138. package/components/rate/index.esm.js +238 -233
  139. package/components/rate/index.umd.cjs +1 -0
  140. package/components/response-layout/index.esm.js +155 -155
  141. package/components/response-layout/index.umd.cjs +1 -0
  142. package/components/response-layout-editor/index.css +1 -1
  143. package/components/response-layout-editor/index.esm.js +1243 -1180
  144. package/components/response-layout-editor/index.umd.cjs +1 -0
  145. package/components/response-toolbar/index.esm.js +988 -877
  146. package/components/response-toolbar/index.umd.cjs +1 -0
  147. package/components/schema-selector/index.css +1 -1
  148. package/components/schema-selector/index.esm.js +5413 -4867
  149. package/components/schema-selector/index.umd.cjs +8 -0
  150. package/components/search-box/index.esm.js +199 -199
  151. package/components/search-box/index.umd.cjs +1 -0
  152. package/components/section/index.esm.js +646 -503
  153. package/components/section/index.umd.cjs +1 -0
  154. package/components/smoke-detector/index.esm.js +144 -144
  155. package/components/smoke-detector/index.umd.cjs +1 -0
  156. package/components/spacing-editor/index.umd.cjs +1 -0
  157. package/components/splitter/index.esm.js +464 -391
  158. package/components/splitter/index.umd.cjs +1 -0
  159. package/components/step/index.esm.js +249 -249
  160. package/components/step/index.umd.cjs +1 -0
  161. package/components/switch/index.esm.js +483 -394
  162. package/components/switch/index.umd.cjs +1 -0
  163. package/components/tabs/index.css +1 -1
  164. package/components/tabs/index.esm.js +2366 -2208
  165. package/components/tabs/index.umd.cjs +1 -0
  166. package/components/tags/index.esm.js +397 -399
  167. package/components/tags/index.umd.cjs +1 -0
  168. package/components/text/index.esm.js +394 -394
  169. package/components/text/index.umd.cjs +1 -0
  170. package/components/textarea/index.esm.js +451 -367
  171. package/components/textarea/index.umd.cjs +1 -0
  172. package/components/time-picker/index.css +1 -1
  173. package/components/time-picker/index.esm.js +1252 -1144
  174. package/components/time-picker/index.umd.cjs +1 -0
  175. package/components/tooltip/index.umd.cjs +1 -0
  176. package/components/transfer/index.css +1 -1
  177. package/components/transfer/index.esm.js +510 -499
  178. package/components/transfer/index.umd.cjs +1 -0
  179. package/components/tree-grid/index.css +1 -1
  180. package/components/tree-grid/index.esm.js +5463 -9330
  181. package/components/tree-grid/index.umd.cjs +1 -0
  182. package/components/tree-view/index.css +1 -0
  183. package/components/tree-view/index.esm.js +4058 -2597
  184. package/components/tree-view/index.umd.cjs +1 -0
  185. package/components/uploader/index.esm.js +510 -504
  186. package/components/uploader/index.umd.cjs +2 -0
  187. package/components/verify-detail/index.esm.js +220 -220
  188. package/components/verify-detail/index.umd.cjs +1 -0
  189. package/components/video/index.esm.js +653 -394
  190. package/components/video/index.umd.cjs +1 -0
  191. package/components/weather/index.esm.js +1028 -1028
  192. package/components/weather/index.umd.cjs +16 -0
  193. package/farris.all.esm.js +20407 -18556
  194. package/farris.all.umd.cjs +8 -8
  195. package/index.css +1 -1
  196. package/package.json +1 -1
  197. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  198. package/types/capsule/src/capsule.props.d.ts +2 -2
  199. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  200. package/types/common/entity/entity-schema.d.ts +258 -0
  201. package/types/common/index.d.ts +1 -0
  202. package/types/common/types.d.ts +1 -1
  203. package/types/common/utils/encrypt.d.ts +2 -0
  204. package/types/component/src/component-ref.props.d.ts +4 -0
  205. package/types/component/src/component.props.d.ts +7 -0
  206. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  207. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  208. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  209. package/types/components.d.ts +1 -0
  210. package/types/data-grid/index.d.ts +8 -2
  211. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  212. package/types/data-grid/src/data-grid.component.d.ts +3 -1
  213. package/types/data-grid/src/data-grid.props.d.ts +3 -2
  214. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  215. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  216. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  217. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  218. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  219. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  220. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  221. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  222. package/types/data-view/composition/types.d.ts +36 -7
  223. package/types/data-view/composition/use-edit.d.ts +2 -1
  224. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  225. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  226. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  227. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  228. package/types/designer-canvas/src/types.d.ts +2 -2
  229. package/types/dynamic-form/index.d.ts +2 -1
  230. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  231. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  232. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  233. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  234. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  235. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  236. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  237. package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
  238. package/types/dynamic-form/src/types.d.ts +12 -1
  239. package/types/dynamic-resolver/index.d.ts +1 -0
  240. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  241. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  242. package/types/dynamic-resolver/src/types.d.ts +12 -2
  243. package/types/dynamic-view/index.d.ts +1 -0
  244. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  245. package/types/index.d.ts +2 -0
  246. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  247. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  248. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  249. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  250. package/types/lookup/src/composition/types.d.ts +8 -0
  251. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  252. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  253. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  254. package/types/lookup/src/composition/use-http.d.ts +9 -5
  255. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  256. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  257. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  258. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  259. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  260. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  261. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  262. package/types/modal/src/modal.component.d.ts +3 -0
  263. package/types/modal/src/modal.props.d.ts +4 -0
  264. package/types/page-header/src/page-header.props.d.ts +1 -0
  265. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  266. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  267. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  268. package/types/response-layout-editor/src/type.d.ts +21 -0
  269. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  270. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  271. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  272. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  273. package/types/tabs/src/composition/types.d.ts +2 -2
  274. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  275. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  276. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  277. package/types/tabs/src/tabs.props.d.ts +1 -0
  278. package/types/tags/index.d.ts +36 -5
  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/modal/src/composition/use-esc.d.ts +0 -1
  282. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  283. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,103 +1,104 @@
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 P = (e, t, n) => re(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as h, computed as y, watch as D, onMounted as j, nextTick as z, createVNode as T, reactive as ie, withDirectives as le, resolveDirective as ue, defineComponent as Q, Fragment as J, inject as Z } from "vue";
5
- import { cloneDeep as se } from "lodash-es";
1
+ var ie = Object.defineProperty;
2
+ var le = (e, n, t) => n in e ? ie(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var x = (e, n, t) => le(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import { ref as h, computed as g, watch as D, onMounted as N, nextTick as z, createVNode as B, reactive as se, withDirectives as ue, resolveDirective as ce, defineComponent as _, Fragment as R, inject as J } from "vue";
5
+ import { isPlainObject as X, cloneDeep as Q } from "lodash-es";
6
6
  import "bignumber.js";
7
- import { useNumber as ce, useFormat as de, useSpinner as pe, useTextBox as fe } from "../number-spinner/index.esm.js";
8
- import { getSchemaByType as _ } from "../dynamic-resolver/index.esm.js";
9
- const X = {}, Y = {};
7
+ import { useNumber as de, useFormat as pe, useSpinner as fe, useTextBox as me } from "../number-spinner/index.esm.js";
8
+ import { getSchemaByType as Z } from "../dynamic-resolver/index.esm.js";
9
+ import { useResponseLayoutEditorSetting as ye } from "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
10
+ const Y = {}, K = {};
10
11
  function q(e) {
11
- const { properties: t, title: n } = e, o = Object.keys(t).reduce((a, c) => (a[c] = t[c].type === "object" && t[c].properties ? q(t[c]) : se(t[c].default), a), {});
12
- return o.id = `${n}-${Date.now()}`, o;
12
+ const { properties: n, title: t, ignore: o } = e, a = o && Array.isArray(o), l = Object.keys(n).reduce((u, c) => ((!a || !o.find((i) => i == c)) && (u[c] = n[c].type === "object" && n[c].properties ? q(n[c]) : Q(n[c].default)), u), {});
13
+ return (!a || !o.find((u) => u == "id")) && (l.id = `${t}-${Date.now()}`), l;
13
14
  }
14
- function I(e, t = {}) {
15
- const n = X[e];
16
- if (n) {
17
- let o = q(n);
18
- const a = Y[e];
19
- return o = a ? a({ getSchemaByType: I }, o, t) : o, o;
15
+ function $(e, n = {}, t) {
16
+ const o = Y[e];
17
+ if (o) {
18
+ let a = q(o);
19
+ const l = K[e];
20
+ return a = l ? l({ getSchemaByType: $ }, a, n, t) : a, a;
20
21
  }
21
22
  return null;
22
23
  }
23
- function me(e, t) {
24
- const n = q(t);
25
- return Object.keys(e).reduce((o, a) => (o[a] && typeof o[a] == "object" ? Object.assign(o[a], e[a]) : o[a] = e[a], o), n), n;
24
+ function ge(e, n) {
25
+ const t = q(n);
26
+ return Object.keys(e).reduce((o, a) => (o[a] && X(o[a]) && X(e[a]) ? Object.assign(o[a], e[a]) : o[a] = e[a], o), t), t;
26
27
  }
27
- function ye(e, t) {
28
+ function ve(e, n) {
28
29
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
29
- if (t.has(a)) {
30
- const c = t.get(a);
31
- if (typeof c == "string")
32
- o[c] = e[a];
30
+ if (n.has(a)) {
31
+ const l = n.get(a);
32
+ if (typeof l == "string")
33
+ o[l] = e[a];
33
34
  else {
34
- const d = c(a, e[a], e);
35
- Object.assign(o, d);
35
+ const u = l(a, e[a], e);
36
+ Object.assign(o, u);
36
37
  }
37
38
  } else
38
39
  o[a] = e[a];
39
40
  return o;
40
41
  }, {});
41
42
  }
42
- function ve(e, t, n = /* @__PURE__ */ new Map()) {
43
- const o = me(e, t);
44
- return ye(o, n);
43
+ function he(e, n, t = /* @__PURE__ */ new Map()) {
44
+ const o = ge(e, n);
45
+ return ve(o, t);
45
46
  }
46
- function ge(e = {}) {
47
- function t(r, s, i, p) {
48
- if (typeof i == "number")
49
- return p[r].length === i;
50
- if (typeof i == "object") {
51
- const m = Object.keys(i)[0], v = i[m];
52
- if (m === "not")
53
- return Number(p[r].length) !== Number(v);
54
- if (m === "moreThan")
55
- return Number(p[r].length) >= Number(v);
56
- if (m === "lessThan")
57
- return Number(p[r].length) <= Number(v);
47
+ function be(e = {}) {
48
+ function n(r, d, s, p) {
49
+ if (typeof s == "number")
50
+ return p[r].length === s;
51
+ if (typeof s == "object") {
52
+ const y = Object.keys(s)[0], f = s[y];
53
+ if (y === "not")
54
+ return Number(p[r].length) !== Number(f);
55
+ if (y === "moreThan")
56
+ return Number(p[r].length) >= Number(f);
57
+ if (y === "lessThan")
58
+ return Number(p[r].length) <= Number(f);
58
59
  }
59
60
  return !1;
60
61
  }
61
- function n(r, s, i, p) {
62
- return p[r] && p[r].propertyValue && String(p[r].propertyValue.value) === String(i);
62
+ function t(r, d, s, p) {
63
+ return p[r] && p[r].propertyValue && String(p[r].propertyValue.value) === String(s);
63
64
  }
64
65
  const o = /* @__PURE__ */ new Map([
65
- ["length", t],
66
- ["getProperty", n]
66
+ ["length", n],
67
+ ["getProperty", t]
67
68
  ]);
68
- Object.keys(e).reduce((r, s) => (r.set(s, e[s]), r), o);
69
- function a(r, s) {
70
- const i = r;
71
- return typeof s == "number" ? [{ target: i, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: i, operator: "getProperty", param: r, value: !!s }] : typeof s == "object" ? Object.keys(s).map((p) => {
69
+ Object.keys(e).reduce((r, d) => (r.set(d, e[d]), r), o);
70
+ function a(r, d) {
71
+ const s = r;
72
+ return typeof d == "number" ? [{ target: s, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: s, operator: "getProperty", param: r, value: !!d }] : typeof d == "object" ? Object.keys(d).map((p) => {
72
73
  if (p === "length")
73
- return { target: i, operator: "length", param: null, value: s[p] };
74
- const m = p, v = s[p];
75
- return { target: i, operator: "getProperty", param: m, value: v };
74
+ return { target: s, operator: "length", param: null, value: d[p] };
75
+ const y = p, f = d[p];
76
+ return { target: s, operator: "getProperty", param: y, value: f };
76
77
  }) : [];
77
78
  }
78
- function c(r) {
79
- return Object.keys(r).reduce((i, p) => {
80
- const m = a(p, r[p]);
81
- return i.push(...m), i;
79
+ function l(r) {
80
+ return Object.keys(r).reduce((s, p) => {
81
+ const y = a(p, r[p]);
82
+ return s.push(...y), s;
82
83
  }, []);
83
84
  }
84
- function d(r, s) {
85
+ function u(r, d) {
85
86
  if (o.has(r.operator)) {
86
- const i = o.get(r.operator);
87
- return i && i(r.target, r.param, r.value, s) || !1;
87
+ const s = o.get(r.operator);
88
+ return s && s(r.target, r.param, r.value, d) || !1;
88
89
  }
89
90
  return !1;
90
91
  }
91
- function u(r, s) {
92
- return c(r).reduce((m, v) => m && d(v, s), !0);
92
+ function c(r, d) {
93
+ return l(r).reduce((y, f) => y && u(f, d), !0);
93
94
  }
94
- function l(r, s) {
95
- const i = Object.keys(r), p = i.includes("allOf"), m = i.includes("anyOf"), v = p || m, k = (v ? r[v ? p ? "allOf" : "anyOf" : "allOf"] : [r]).map((A) => u(A, s));
96
- return p ? !k.includes(!1) : k.includes(!0);
95
+ function i(r, d) {
96
+ const s = Object.keys(r), p = s.includes("allOf"), y = s.includes("anyOf"), f = p || y, T = (f ? r[f ? p ? "allOf" : "anyOf" : "allOf"] : [r]).map((P) => c(P, d));
97
+ return p ? !T.includes(!1) : T.includes(!0);
97
98
  }
98
- return { parseValueSchema: l };
99
+ return { parseValueSchema: i };
99
100
  }
100
- const f = {
101
+ const m = {
101
102
  button: { type: "button", name: "按钮", icon: "Button" },
102
103
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
103
104
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -134,25 +135,26 @@ const f = {
134
135
  uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
135
136
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
136
137
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
137
- "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
138
- }, he = {}, be = {};
139
- ge();
140
- function Ce(e, t, n = /* @__PURE__ */ new Map(), o = (d, u, l) => u, a = {}, c = (d) => d) {
141
- return X[t.title] = t, Y[t.title] = o, he[t.title] = a, be[t.title] = c, (d = {}) => {
142
- const u = ve(d, t, n), l = Object.keys(e).reduce((r, s) => (r[s] = e[s].default, r), {});
143
- return Object.assign(l, u);
138
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
139
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
140
+ }, Ce = {}, we = {};
141
+ be();
142
+ function Be(e, n, t = /* @__PURE__ */ new Map(), o = (u, c, i) => c, a = {}, l = (u) => u) {
143
+ return Y[n.title] = n, K[n.title] = o, Ce[n.title] = a, we[n.title] = l, (u = {}) => {
144
+ const c = he(u, n, t), i = Object.keys(e).reduce((r, d) => (r[d] = e[d].default, r), {});
145
+ return Object.assign(i, c);
144
146
  };
145
147
  }
146
- function we(e, t) {
147
- return { customClass: t.class, customStyle: t.style };
148
+ function Te(e, n) {
149
+ return { customClass: n.class, customStyle: n.style };
148
150
  }
149
- const Be = /* @__PURE__ */ new Map([
150
- ["appearance", we]
151
+ const ke = /* @__PURE__ */ new Map([
152
+ ["appearance", Te]
151
153
  ]);
152
- function Te(e, t, n) {
153
- return t;
154
+ function Me(e, n, t) {
155
+ return n;
154
156
  }
155
- const ke = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-design.gitee.io/input-group.schema.json", xe = "input-group", Se = "A Farris Input Component", Pe = "object", Ae = {
157
+ const Se = "https://json-schema.org/draft/2020-12/schema", xe = "https://farris-design.gitee.io/input-group.schema.json", Ae = "input-group", Ee = "A Farris Input Component", Pe = "object", Fe = {
156
158
  id: {
157
159
  description: "The unique identifier for a Input Group",
158
160
  type: "string"
@@ -354,18 +356,19 @@ const ke = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-
354
356
  type: "string",
355
357
  default: ""
356
358
  }
357
- }, Ee = [
359
+ }, Le = [
358
360
  "id",
359
361
  "type"
360
- ], Fe = {
361
- $schema: ke,
362
- $id: Me,
363
- title: xe,
364
- description: Se,
362
+ ], De = {
363
+ $schema: Se,
364
+ $id: xe,
365
+ title: Ae,
366
+ description: Ee,
365
367
  type: Pe,
366
- properties: Ae,
367
- required: Ee
368
+ properties: Fe,
369
+ required: Le
368
370
  }, W = {
371
+ id: { Type: String, default: "" },
369
372
  /** 是否自动完成 */
370
373
  autocomplete: { Type: String, default: "off" },
371
374
  /** 自定义CLASS */
@@ -431,118 +434,118 @@ const ke = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-
431
434
  * - input: 输入时更新
432
435
  */
433
436
  updateOn: { type: String, default: "blur" }
434
- }, R = Ce(W, Fe, Be, Te);
435
- function De(e, t, n, o) {
436
- const a = h(e.disabled), c = h(!1), d = h("text"), u = h(e.showBorder), l = h(e.textAlign), r = h(e.updateOn), s = y(() => e.editable || !e.readonly), i = y(() => e.editable && !e.disabled && !e.readonly), p = y(() => !e.disabled && c.value), m = y(() => n.value === "" || n.value === null || n.value === void 0), v = y(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), w = y(() => e.readonly || !e.editable), x = y(() => e.enableTitle ? n.value : ""), k = y(() => ({
437
+ }, ee = Be(W, De, ke, Me);
438
+ function Ie(e, n, t, o) {
439
+ const a = h(e.disabled), l = h(!1), u = h("text"), c = h(e.showBorder), i = h(e.textAlign), r = h(e.updateOn), d = g(() => e.editable || !e.readonly), s = g(() => e.editable && !e.disabled && !e.readonly), p = g(() => !e.disabled && l.value), y = g(() => t.value === "" || t.value === null || t.value === void 0), f = g(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), C = g(() => e.readonly || !e.editable), S = g(() => e.enableTitle ? t.value : ""), T = g(() => ({
437
440
  "form-control": !0,
438
441
  "f-utils-fill": !0,
439
- "text-left": l.value === "left",
440
- "text-center": l.value === "center",
441
- "text-right": l.value === "right"
442
- })), S = y(() => {
443
- const g = {
442
+ "text-left": i.value === "left",
443
+ "text-center": i.value === "center",
444
+ "text-right": i.value === "right"
445
+ })), A = g(() => {
446
+ const v = {
444
447
  "f-cmp-inputgroup": !0,
445
448
  "input-group": !0,
446
449
  "f-state-disable": a.value,
447
- "f-state-editable": i.value,
448
- "f-state-readonly": w.value,
450
+ "f-state-editable": s.value,
451
+ "f-state-readonly": C.value,
449
452
  "f-state-focus": p.value
450
453
  };
451
- return (e.customClass || "").split(" ").reduce((H, oe) => (H[oe] = !0, H), g), g;
452
- }), A = y(() => u.value ? "" : "border-width : 0 ");
453
- function M(g, E = !0) {
454
- n.value = g, o.value !== g && (o.value = g), E && t.emit("change", g), t.emit("update:modelValue", g), t.emit("update:value", g);
454
+ return (e.customClass || "").split(" ").reduce((H, re) => (H[re] = !0, H), v), v;
455
+ }), P = g(() => c.value ? "" : "border-width : 0 ");
456
+ function k(v, F = !0) {
457
+ t.value = v, o.value !== v && (o.value = v), F && n.emit("change", v), n.emit("update:modelValue", v), n.emit("update:value", v);
455
458
  }
456
459
  D(
457
460
  () => e.modelValue,
458
- (g, E) => {
459
- g !== E && (n.value = g, o.value = g);
461
+ (v, F) => {
462
+ v !== F && (t.value = v, o.value = v);
460
463
  }
461
- ), D(() => e.disabled, (g, E) => {
462
- g !== E && (a.value = g);
464
+ ), D(() => e.disabled, (v, F) => {
465
+ v !== F && (a.value = v);
463
466
  });
464
- function V(g) {
465
- return c.value = !1, t.emit("blur", g), g.stopPropagation(), !1;
467
+ function I(v) {
468
+ return l.value = !1, n.emit("blur", v), v.stopPropagation(), !1;
466
469
  }
467
- function b(g) {
468
- t.emit("click", g);
470
+ function b(v) {
471
+ n.emit("click", v);
469
472
  }
470
- function C(g) {
471
- e.disabled || (u.value && (c.value = !0), s.value && t.emit("focus", g));
473
+ function w(v) {
474
+ e.disabled || (c.value && (l.value = !0), d.value && n.emit("focus", v));
472
475
  }
473
- function B(g) {
474
- t.emit("input", g.target.value);
475
- const E = g.target.value;
476
- o.value = E, r.value === "input" && (t.emit("update:modelValue", E), t.emit("update:value", E));
476
+ function M(v) {
477
+ n.emit("input", v.target.value);
478
+ const F = v.target.value;
479
+ o.value = F, r.value === "change" && (n.emit("update:modelValue", F), n.emit("update:value", F));
477
480
  }
478
- function O(g) {
479
- t.emit("keydown", g);
481
+ function E(v) {
482
+ n.emit("keydown", v);
480
483
  }
481
- function G(g) {
482
- t.emit("keyup", g);
484
+ function V(v) {
485
+ n.emit("keyup", v);
483
486
  }
484
- function F(g) {
485
- g.target.tagName !== "INPUT" && g.preventDefault(), g.stopPropagation();
487
+ function L(v) {
488
+ v.target.tagName !== "INPUT" && v.preventDefault(), v.stopPropagation();
486
489
  }
487
- function U(g) {
490
+ function G(v) {
488
491
  if (r.value === "blur") {
489
- const E = g.target.value;
490
- g.stopPropagation(), M(E);
492
+ const F = v.target.value;
493
+ v.stopPropagation(), k(F);
491
494
  }
492
495
  }
493
496
  return {
494
- changeTextBoxValue: M,
497
+ changeTextBoxValue: k,
495
498
  disabled: a,
496
499
  displayText: o,
497
- editable: i,
500
+ editable: s,
498
501
  hasFocused: p,
499
- inputGroupClass: S,
500
- inputType: d,
501
- isEmpty: m,
502
- modelValue: n,
503
- readonly: w,
504
- onBlur: V,
502
+ inputGroupClass: A,
503
+ inputType: u,
504
+ isEmpty: y,
505
+ modelValue: t,
506
+ readonly: C,
507
+ onBlur: I,
505
508
  onClick: b,
506
- onFocus: C,
507
- onInput: B,
508
- onKeydown: O,
509
- onKeyup: G,
510
- onMousedown: F,
511
- onTextBoxValueChange: U,
512
- placeholder: v,
513
- textBoxClass: k,
514
- textBoxTitle: x,
515
- inputGroupStyle: A
509
+ onFocus: w,
510
+ onInput: M,
511
+ onKeydown: E,
512
+ onKeyup: V,
513
+ onMousedown: L,
514
+ onTextBoxValueChange: G,
515
+ placeholder: f,
516
+ textBoxClass: T,
517
+ textBoxTitle: S,
518
+ inputGroupStyle: P
516
519
  };
517
520
  }
518
- function Ve(e, t, n, o) {
519
- const a = h(e.disabled), c = h(!1), d = h("text"), u = h(e.showBorder), l = h(e.textAlign);
520
- y(() => e.editable || !e.readonly);
521
- const r = y(() => e.editable && !e.disabled && !e.readonly), s = y(() => !e.disabled && c.value), i = y(() => n.value === "" || n.value === null || n.value === void 0), p = y(() => e.placeholder), m = y(() => e.readonly || !e.editable), v = y(() => e.enableTitle ? n.value : ""), w = y(() => ({
521
+ function Ve(e, n, t, o) {
522
+ const a = h(e.disabled), l = h(!1), u = h("text"), c = h(e.showBorder), i = h(e.textAlign);
523
+ g(() => e.editable || !e.readonly);
524
+ const r = g(() => e.editable && !e.disabled && !e.readonly), d = g(() => !e.disabled && l.value), s = g(() => t.value === "" || t.value === null || t.value === void 0), p = g(() => e.placeholder), y = g(() => e.readonly || !e.editable), f = g(() => e.enableTitle ? t.value : ""), C = g(() => ({
522
525
  "form-control": !0,
523
526
  // 'f-utils-fill': true,
524
- "text-left": l.value === "left",
525
- "text-center": l.value === "center",
526
- "text-right": l.value === "right"
527
- })), x = y(() => ({
527
+ "text-left": i.value === "left",
528
+ "text-center": i.value === "center",
529
+ "text-right": i.value === "right"
530
+ })), S = g(() => ({
528
531
  "f-cmp-inputgroup": !0,
529
532
  "input-group": !0,
530
533
  "f-state-disable": !0,
531
534
  "f-state-editable": !1,
532
535
  "f-state-readonly": !0
533
536
  // 'f-state-focus': hasFocused.value
534
- })), k = y(() => u.value ? "" : "border-width : 0 ");
537
+ })), T = g(() => c.value ? "" : "border-width : 0 ");
535
538
  return {
536
539
  // changeTextBoxValue,
537
540
  disabled: a,
538
541
  displayText: o,
539
542
  editable: r,
540
- hasFocused: s,
541
- inputGroupClass: x,
542
- inputType: d,
543
- isEmpty: i,
544
- modelValue: n,
545
- readonly: m,
543
+ hasFocused: d,
544
+ inputGroupClass: S,
545
+ inputType: u,
546
+ isEmpty: s,
547
+ modelValue: t,
548
+ readonly: y,
546
549
  // onBlur,
547
550
  // onClick,
548
551
  // onFocus,
@@ -552,45 +555,45 @@ function Ve(e, t, n, o) {
552
555
  // onMousedown,
553
556
  // onTextBoxValueChange,
554
557
  placeholder: p,
555
- textBoxClass: w,
556
- textBoxTitle: v,
557
- inputGroupStyle: k
558
+ textBoxClass: C,
559
+ textBoxTitle: f,
560
+ inputGroupStyle: T
558
561
  };
559
562
  }
560
- function K(e, t, n) {
561
- const o = h(!1), a = y(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: c, displayText: d, hasFocused: u, isEmpty: l } = n;
562
- function r(w) {
563
- o.value = w;
563
+ function te(e, n, t) {
564
+ const o = h(!1), a = g(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: l, displayText: u, hasFocused: c, isEmpty: i } = t;
565
+ function r(C) {
566
+ o.value = C;
564
567
  }
565
- D(d, () => {
566
- u != null && u.value ? r(!!(d != null && d.value)) : r(!1);
568
+ D(u, () => {
569
+ c != null && c.value ? r(!!(u != null && u.value)) : r(!1);
567
570
  });
568
- const s = y(() => ({
571
+ const d = g(() => ({
569
572
  "input-group-text": !0,
570
573
  "input-group-clear": !0
571
- })), i = y(() => ({
574
+ })), s = g(() => ({
572
575
  width: "24px",
573
576
  display: o.value ? "flex" : "none"
574
577
  }));
575
- function p(w) {
576
- w.stopPropagation(), a.value && (c("", !0), r(!o.value), t.emit("clear"));
578
+ function p(C) {
579
+ C.stopPropagation(), a.value && (l("", !0), r(!o.value), n.emit("clear"));
577
580
  }
578
- function m(w) {
579
- a.value && !l.value && r(!0);
581
+ function y(C) {
582
+ a.value && !i.value && r(!0);
580
583
  }
581
- function v(w) {
584
+ function f(C) {
582
585
  a.value && r(!1);
583
586
  }
584
- return { clearButtonClass: s, clearButtonStyle: i, hasShownClearButton: o, onClearValue: p, onMouseEnter: m, onMouseLeave: v, shouldShowClearButton: a };
587
+ return { clearButtonClass: d, clearButtonStyle: s, hasShownClearButton: o, onClearValue: p, onMouseEnter: y, onMouseLeave: f, shouldShowClearButton: a };
585
588
  }
586
589
  const Oe = ["moz", "ms", "webkit"];
587
590
  function Ne() {
588
591
  let e = 0;
589
- return (t) => {
590
- const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
591
- t(n + o);
592
+ return (n) => {
593
+ const t = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (t - e)), a = setTimeout(() => {
594
+ n(t + o);
592
595
  }, o);
593
- return e = n + o, a;
596
+ return e = t + o, a;
594
597
  };
595
598
  }
596
599
  function je() {
@@ -598,358 +601,358 @@ function je() {
598
601
  return () => 0;
599
602
  if (window.requestAnimationFrame)
600
603
  return window.requestAnimationFrame.bind(window);
601
- const e = Oe.filter((t) => `${t}RequestAnimationFrame` in window)[0];
604
+ const e = Oe.filter((n) => `${n}RequestAnimationFrame` in window)[0];
602
605
  return e ? window[`${e}RequestAnimationFrame`] : Ne();
603
606
  }
604
607
  je();
605
- const Ge = (e) => {
606
- const t = e;
607
- return t.install = function(n) {
608
- n.component(t.name, e);
608
+ const Ue = (e) => {
609
+ const n = e;
610
+ return n.install = function(t) {
611
+ t.component(n.name, e);
609
612
  }, e;
610
613
  };
611
- function ee(e, t) {
612
- const n = h(e.groupText), o = y(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = y(() => e.enableClear || !!e.groupText);
613
- return { appendedButtonClass: y(() => ({
614
+ function ne(e, n) {
615
+ const t = h(e.groupText), o = g(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = g(() => e.enableClear || !!e.groupText);
616
+ return { appendedButtonClass: g(() => ({
614
617
  "input-group-append": !0,
615
618
  "append-force-show": o.value
616
- })), appendedContent: n, shouldShowAppendedButton: a };
619
+ })), appendedContent: t, shouldShowAppendedButton: a };
617
620
  }
618
- function te(e, t, n, o) {
619
- const { appendedContent: a } = o, c = h(e.enableViewPassword), d = y(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', l = '<span class="f-icon f-icon-eye"></span>', r = h(!1);
620
- D(() => [e.readonly, e.disabled], ([p, m]) => {
621
- d.value && (n.value = p || m ? "password" : n.value, a.value = p || m ? l : a.value);
621
+ function oe(e, n, t, o) {
622
+ const { appendedContent: a } = o, l = h(e.enableViewPassword), u = g(() => e.type === "password"), c = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', i = '<span class="f-icon f-icon-eye"></span>', r = h(!1);
623
+ D(() => [e.readonly, e.disabled], ([p, y]) => {
624
+ u.value && (t.value = p || y ? "password" : t.value, a.value = p || y ? i : a.value);
622
625
  });
623
- function s() {
624
- return r.value = !r.value, n.value = r.value ? "text" : "password", a.value = r.value ? u : l, !1;
626
+ function d() {
627
+ return r.value = !r.value, t.value = r.value ? "text" : "password", a.value = r.value ? c : i, !1;
625
628
  }
626
- function i() {
627
- n.value = d.value ? "password" : "text", a.value = d.value ? c.value ? l : "" : a.value;
629
+ function s() {
630
+ t.value = u.value ? "password" : "text", a.value = u.value ? l.value ? i : "" : a.value;
628
631
  }
629
- return i(), { isPassword: d, onClickAppendedButton: s };
632
+ return s(), { isPassword: u, onClickAppendedButton: d };
630
633
  }
631
- function Le(e, t, n) {
634
+ function Ge(e, n, t) {
632
635
  const o = h(), {
633
636
  onBlurTextBox: a,
634
- onFocusTextBox: c,
635
- onInput: d,
636
- onKeyDown: u,
637
- textBoxValue: l
638
- } = n, r = y(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), s = y(() => ({
637
+ onFocusTextBox: l,
638
+ onInput: u,
639
+ onKeyDown: c,
640
+ textBoxValue: i
641
+ } = t, r = g(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = g(() => ({
639
642
  "form-control": !0,
640
643
  "f-utils-fill": !0
641
- })), i = y(() => ({
644
+ })), s = g(() => ({
642
645
  "text-align": e.textAlign
643
646
  }));
644
- function p(w) {
645
- w.stopPropagation();
647
+ function p(C) {
648
+ C.stopPropagation();
646
649
  }
647
- function m() {
650
+ function y() {
648
651
  e.selectOnCreated, e.focusOnCreated;
649
652
  }
650
- async function v(w) {
651
- c(w), await z, m();
653
+ async function f(C) {
654
+ l(C), await z, y();
652
655
  }
653
- return j(async () => {
654
- await z, m();
655
- }), () => T("input", {
656
+ return N(async () => {
657
+ await z, y();
658
+ }), () => B("input", {
656
659
  ref: o,
657
- class: s.value,
658
- style: i.value,
660
+ class: d.value,
661
+ style: s.value,
659
662
  type: "text",
660
- value: l.value,
663
+ value: i.value,
661
664
  disabled: e.disabled,
662
665
  readonly: e.readonly || !e.editable,
663
666
  placeholder: r.value,
664
667
  onBlur: a,
665
668
  onChange: p,
666
- onFocus: v,
667
- onInput: d,
668
- onKeydown: u
669
+ onFocus: f,
670
+ onInput: u,
671
+ onKeydown: c
669
672
  }, null);
670
673
  }
671
- function $e(e, t, n) {
674
+ function $e(e, n, t) {
672
675
  const {
673
676
  canDownward: o,
674
677
  canUpward: a,
675
- onClickDownButton: c,
676
- onClickUpButton: d
677
- } = n, u = y(() => ({
678
+ onClickDownButton: l,
679
+ onClickUpButton: u
680
+ } = t, c = g(() => ({
678
681
  "input-group-append": !0,
679
682
  "btn-group": !0,
680
683
  "btn-group-number": !0
681
- })), l = y(() => ({
684
+ })), i = g(() => ({
682
685
  btn: !0,
683
686
  "btn-secondary": !0,
684
687
  "btn-number-flag": !0
685
- })), r = y(() => ({
688
+ })), r = g(() => ({
686
689
  cursor: a() ? "pointer" : "not-allowed",
687
690
  "margin-left": 0
688
- })), s = y(() => ({
691
+ })), d = g(() => ({
689
692
  cursor: o() ? "pointer" : "not-allowed",
690
693
  "margin-left": 0
691
694
  }));
692
- return () => T("div", {
693
- class: u.value
694
- }, [T("button", {
695
+ return () => B("div", {
696
+ class: c.value
697
+ }, [B("button", {
695
698
  title: "upButton",
696
- class: l.value,
699
+ class: i.value,
697
700
  style: r.value,
698
- onClick: d,
701
+ onClick: u,
699
702
  disabled: !a()
700
- }, [T("span", {
703
+ }, [B("span", {
701
704
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
702
- }, null)]), T("button", {
705
+ }, null)]), B("button", {
703
706
  title: "downButton",
704
- class: l.value,
705
- style: s.value,
706
- onClick: c,
707
+ class: i.value,
708
+ style: d.value,
709
+ onClick: l,
707
710
  disabled: !o()
708
- }, [T("span", {
711
+ }, [B("span", {
709
712
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
710
713
  }, null)])]);
711
714
  }
712
- function Ue(e, t) {
713
- const n = ce(e, t), o = de(e, t, n), a = pe(e, t, o, n), c = fe(e, t, o, n, a), d = $e(e, t, a), {
714
- displayValue: u,
715
- modelValue: l,
715
+ function qe(e, n) {
716
+ const t = de(e, n), o = pe(e, n, t), a = fe(e, n, o, t), l = me(e, n, o, t, a), u = $e(e, n, a), {
717
+ displayValue: c,
718
+ modelValue: i,
716
719
  getRealValue: r
717
- } = n, s = Le(e, t, c), {
718
- format: i
720
+ } = t, d = Ge(e, n, l), {
721
+ format: s
719
722
  } = o, {
720
723
  isFocus: p
721
- } = c, m = y(() => !e.disabled && !e.readonly);
722
- return j(() => {
723
- const v = r(e.modelValue);
724
- u.value = i(v);
725
- }), D(() => [e.value], ([v]) => {
726
- const w = r(v);
727
- l.value = w, u.value = i(w);
728
- }), D(() => [e.modelValue], ([v]) => {
729
- v !== l.value && (l.value = v, !p.value && (u.value = i(r(v))));
724
+ } = l, y = g(() => !e.disabled && !e.readonly);
725
+ return N(() => {
726
+ const f = r(e.modelValue);
727
+ c.value = s(f);
728
+ }), D(() => [e.value], ([f]) => {
729
+ const C = r(f);
730
+ i.value = C, c.value = s(C);
731
+ }), D(() => [e.modelValue], ([f]) => {
732
+ f !== i.value && (i.value = f, !p.value && (c.value = s(r(f))));
730
733
  }), D(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
731
- u.value = i(l.value);
732
- }), () => T("div", {
734
+ c.value = s(i.value);
735
+ }), () => B("div", {
733
736
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
734
- }, [s(), m.value && d()]);
737
+ }, [d(), y.value && u()]);
735
738
  }
736
- function Ie(e, t, n, o) {
737
- const a = h(), c = h(e.autocomplete), d = h(e.enableTitle), {
738
- isPassword: u
739
- } = n, l = h(e.minLength), r = h(e.maxLength), s = h(e.tabIndex), {
740
- disabled: i,
739
+ function We(e, n, t, o) {
740
+ const a = h(), l = h(e.autocomplete), u = h(e.enableTitle), {
741
+ isPassword: c
742
+ } = t, i = h(e.minLength), r = h(e.maxLength), d = h(e.tabIndex), {
743
+ disabled: s,
741
744
  displayText: p,
742
- inputType: m,
743
- onBlur: v,
744
- onFocus: w,
745
- onInput: x,
746
- onClick: k,
747
- onKeydown: S,
748
- onKeyup: A,
749
- onMousedown: M,
750
- onTextBoxValueChange: V,
745
+ inputType: y,
746
+ onBlur: f,
747
+ onFocus: C,
748
+ onInput: S,
749
+ onClick: T,
750
+ onKeydown: A,
751
+ onKeyup: P,
752
+ onMousedown: k,
753
+ onTextBoxValueChange: I,
751
754
  readonly: b,
752
- placeholder: C,
753
- textBoxClass: B,
754
- textBoxTitle: O
755
+ placeholder: w,
756
+ textBoxClass: M,
757
+ textBoxTitle: E
755
758
  } = o;
756
- return j(() => {
759
+ return N(() => {
757
760
  e.selectOnCreated, e.focusOnCreated;
758
- }), () => T("input", {
761
+ }), () => B("input", {
759
762
  ref: a,
760
763
  name: "input-group-value",
761
- autocomplete: c.value,
762
- class: B.value,
763
- disabled: i == null ? void 0 : i.value,
764
+ autocomplete: l.value,
765
+ class: M.value,
766
+ disabled: s == null ? void 0 : s.value,
764
767
  maxlength: r.value,
765
- minlength: l.value,
766
- placeholder: C.value,
768
+ minlength: i.value,
769
+ placeholder: w.value,
767
770
  readonly: b == null ? void 0 : b.value,
768
- tabindex: s.value,
769
- title: d.value && !u.value ? O.value : "",
770
- type: m.value,
771
+ tabindex: d.value,
772
+ title: u.value && !c.value ? E.value : "",
773
+ type: y.value,
771
774
  value: p == null ? void 0 : p.value,
772
- onBlur: v,
773
- onClick: k,
774
- onChange: V,
775
- onFocus: w,
776
- onInput: x,
777
- onKeydown: S,
778
- onKeyup: A,
779
- onMousedown: M
775
+ onBlur: f,
776
+ onClick: T,
777
+ onChange: I,
778
+ onFocus: C,
779
+ onInput: S,
780
+ onKeydown: A,
781
+ onKeyup: P,
782
+ onMousedown: k
780
783
  }, null);
781
784
  }
782
- function qe(e, t) {
783
- const n = y(() => e.useExtendInfo && !!e.extendInfo), o = ie({
785
+ function He(e, n) {
786
+ const t = g(() => e.useExtendInfo && !!e.extendInfo), o = se({
784
787
  content: e.extendInfo
785
788
  });
786
789
  function a() {
787
- t.emit("updateExtendInfo");
790
+ n.emit("updateExtendInfo");
788
791
  }
789
- return () => n.value && le(T("span", {
792
+ return () => t.value && ue(B("span", {
790
793
  class: "input-group-before-tips",
791
794
  onMouseenter: a
792
- }, [T("i", {
795
+ }, [B("i", {
793
796
  class: "f-icon f-icon-info-circle"
794
- }, null), T("b", {
797
+ }, null), B("b", {
795
798
  class: "tips-arrow"
796
- }, null)]), [[ue("tooltip"), o]]);
799
+ }, null)]), [[ce("tooltip"), o]]);
797
800
  }
798
- function ne(e, t, n, o, a) {
801
+ function ae(e, n, t, o, a) {
799
802
  const {
800
- appendedButtonClass: c,
801
- appendedContent: d
802
- } = n, u = y(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), l = y(() => d.value && !t.slots.groupTextTemplate), r = y(() => !!t.slots.groupTextTemplate), {
803
- clearButtonClass: s,
804
- clearButtonStyle: i,
803
+ appendedButtonClass: l,
804
+ appendedContent: u
805
+ } = t, c = g(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), i = g(() => u.value && !n.slots.groupTextTemplate), r = g(() => !!n.slots.groupTextTemplate), {
806
+ clearButtonClass: d,
807
+ clearButtonStyle: s,
805
808
  onClearValue: p,
806
- shouldShowClearButton: m
809
+ shouldShowClearButton: y
807
810
  } = o;
808
- function v() {
809
- return T("span", {
811
+ function f() {
812
+ return B("span", {
810
813
  id: "clearIcon",
811
- class: s.value,
812
- style: i.value,
813
- onClick: (C) => p(C)
814
- }, [T("i", {
814
+ class: d.value,
815
+ style: s.value,
816
+ onClick: (w) => p(w)
817
+ }, [B("i", {
815
818
  class: "f-icon modal_close"
816
819
  }, null)]);
817
820
  }
818
- function w(C) {
819
- t.emit("iconMouseEnter", C);
821
+ function C(w) {
822
+ n.emit("iconMouseEnter", w);
820
823
  }
821
- function x(C) {
822
- t.emit("iconMouseLeave", C);
824
+ function S(w) {
825
+ n.emit("iconMouseLeave", w);
823
826
  }
824
- function k(C) {
825
- u.value && t.emit("clickHandle", {
826
- originalEvent: C
827
- }), C.stopPropagation();
827
+ function T(w) {
828
+ c.value && n.emit("clickHandle", {
829
+ originalEvent: w
830
+ }), w.stopPropagation();
828
831
  }
829
- const S = e.type === "password" ? a.onClickAppendedButton : k;
830
- function A() {
831
- return T("span", {
832
+ const A = e.type === "password" ? a.onClickAppendedButton : T;
833
+ function P() {
834
+ return B("span", {
832
835
  class: "input-group-text",
833
- onMouseenter: (C) => w(C),
834
- onMouseleave: (C) => x(C),
835
- innerHTML: d.value,
836
- onClick: (C) => S(C)
836
+ onMouseenter: (w) => C(w),
837
+ onMouseleave: (w) => S(w),
838
+ innerHTML: u.value,
839
+ onClick: (w) => A(w)
837
840
  }, null);
838
841
  }
839
- function M() {
840
- return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
842
+ function k() {
843
+ return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
841
844
  }
842
- function V() {
843
- return l.value ? A : r.value ? M : "";
845
+ function I() {
846
+ return i.value ? P : r.value ? k : "";
844
847
  }
845
- const b = V();
846
- return () => T("div", {
847
- class: c.value
848
- }, [m.value && v(), b && b()]);
848
+ const b = I();
849
+ return () => B("div", {
850
+ class: l.value
851
+ }, [y.value && f(), b && b()]);
849
852
  }
850
- const L = /* @__PURE__ */ Q({
853
+ const j = /* @__PURE__ */ _({
851
854
  name: "FInputGroup",
852
855
  props: W,
853
856
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
854
- setup(e, t) {
855
- const n = h(e.modelValue), o = h(e.modelValue), a = De(e, t, n, o), {
856
- inputGroupClass: c,
857
- inputType: d,
858
- inputGroupStyle: u
859
- } = a, l = ee(e), {
857
+ setup(e, n) {
858
+ const t = h(e.modelValue), o = h(e.modelValue), a = Ie(e, n, t, o), {
859
+ inputGroupClass: l,
860
+ inputType: u,
861
+ inputGroupStyle: c
862
+ } = a, i = ne(e), {
860
863
  shouldShowAppendedButton: r
861
- } = l, s = K(e, t, a), {
862
- onMouseEnter: i,
864
+ } = i, d = te(e, n, a), {
865
+ onMouseEnter: s,
863
866
  onMouseLeave: p
864
- } = s, m = te(e, t, d, l), v = Ue(e, t), w = Ie(e, t, m, a), x = ne(e, t, l, s, m), k = qe(e, t), S = y(() => e.type === "number");
865
- D(() => [e.value], ([M]) => {
866
- n.value = M, o.value = M;
867
- }), D(() => [e.modelValue], ([M]) => {
868
- n.value = M, o.value = M;
869
- }), j(() => {
870
- e.value && (n.value = e.value, o.value = e.value);
867
+ } = d, y = oe(e, n, u, i), f = qe(e, n), C = We(e, n, y, a), S = ae(e, n, i, d, y), T = He(e, n), A = g(() => e.type === "number");
868
+ D(() => [e.value], ([k]) => {
869
+ t.value = k, o.value = k;
870
+ }), D(() => [e.modelValue], ([k]) => {
871
+ t.value = k, o.value = k;
872
+ }), N(() => {
873
+ e.value && (t.value = e.value, o.value = e.value);
871
874
  });
872
- const A = () => T(J, null, [T("div", {
873
- id: "inputGroup",
874
- class: c.value,
875
- style: u.value,
876
- onMouseenter: i,
875
+ const P = () => B(R, null, [B("div", {
876
+ id: e.id,
877
+ class: l.value,
878
+ style: c.value,
879
+ onMouseenter: s,
877
880
  onMouseleave: p
878
- }, [S.value ? v() : T(J, null, [k(), w(), r.value && x()])])]);
879
- return () => A();
881
+ }, [A.value ? f() : B(R, null, [T(), C(), r.value && S()])])]);
882
+ return () => P();
880
883
  }
881
884
  });
882
- function We(e, t) {
885
+ function ze(e, n) {
883
886
  e.schema;
884
- const n = h(!0), o = h(!0);
885
- function a(i) {
887
+ const t = h(!0), o = h(!0);
888
+ function a(s) {
886
889
  return !1;
887
890
  }
888
- function c() {
891
+ function l() {
889
892
  return !1;
890
893
  }
891
- function d() {
894
+ function u() {
892
895
  return !1;
893
896
  }
894
- function u() {
897
+ function c() {
895
898
  return !0;
896
899
  }
897
- function l(i) {
900
+ function i(s) {
898
901
  }
899
902
  function r() {
900
903
  }
901
- function s(i) {
904
+ function d(s) {
902
905
  return null;
903
906
  }
904
907
  return {
905
908
  canAccepts: a,
906
- checkCanDeleteComponent: c,
907
- checkCanMoveComponent: d,
908
- hideNestedPaddingInDesginerView: u,
909
- onAcceptMovedChildElement: l,
909
+ checkCanDeleteComponent: l,
910
+ checkCanMoveComponent: u,
911
+ hideNestedPaddingInDesginerView: c,
912
+ onAcceptMovedChildElement: i,
910
913
  resolveComponentContext: r,
911
- triggerBelongedComponentToMoveWhenMoved: n,
914
+ triggerBelongedComponentToMoveWhenMoved: t,
912
915
  triggerBelongedComponentToDeleteWhenDeleted: o,
913
- getPropsConfig: s
916
+ getPropsConfig: d
914
917
  };
915
918
  }
916
- class He {
917
- constructor(t, n) {
918
- P(this, "componentId");
919
- P(this, "viewModelId");
920
- P(this, "eventsEditorUtils");
921
- P(this, "formSchemaUtils");
922
- P(this, "formMetadataConverter");
923
- P(this, "designViewModelUtils");
924
- P(this, "designViewModelField");
925
- P(this, "controlCreatorUtils");
926
- P(this, "designerHostService");
927
- P(this, "schemaService", null);
928
- P(this, "metadataService", null);
929
- P(this, "propertyConfig", {
919
+ class Re {
920
+ constructor(n, t) {
921
+ x(this, "componentId");
922
+ x(this, "viewModelId");
923
+ x(this, "eventsEditorUtils");
924
+ x(this, "formSchemaUtils");
925
+ x(this, "formMetadataConverter");
926
+ x(this, "designViewModelUtils");
927
+ x(this, "designViewModelField");
928
+ x(this, "controlCreatorUtils");
929
+ x(this, "designerHostService");
930
+ x(this, "schemaService", null);
931
+ x(this, "metadataService", null);
932
+ x(this, "propertyConfig", {
930
933
  type: "object",
931
934
  categories: {}
932
935
  });
933
936
  var o;
934
- 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;
937
+ this.componentId = n, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
935
938
  }
936
939
  getTableInfo() {
937
- var t;
938
- return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
940
+ var n;
941
+ return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
939
942
  }
940
- setDesignViewModelField(t) {
941
- const n = t.binding && t.binding.type === "Form" && t.binding.field;
942
- if (n) {
943
+ setDesignViewModelField(n) {
944
+ const t = n.binding && n.binding.type === "Form" && n.binding.field;
945
+ if (t) {
943
946
  if (!this.designViewModelField) {
944
947
  const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
945
- this.designViewModelField = o.fields.find((a) => a.id === n);
948
+ this.designViewModelField = o.fields.find((a) => a.id === t);
946
949
  }
947
- t.updateOn = this.designViewModelField.updateOn;
950
+ n.updateOn = this.designViewModelField.updateOn;
948
951
  }
949
952
  }
950
- changeFieldEditorType(t, n) {
953
+ changeFieldEditorType(n, t) {
951
954
  }
952
- getBasicPropConfig(t) {
955
+ getBasicPropConfig(n) {
953
956
  return {
954
957
  description: "Basic Information",
955
958
  title: "基本信息",
@@ -968,13 +971,13 @@ class He {
968
971
  type: "combo-list",
969
972
  textField: "name",
970
973
  valueField: "value",
971
- data: [{ value: t.type, name: f[t.type].name }]
974
+ data: [{ value: n.type, name: m[n.type].name }]
972
975
  }
973
976
  }
974
977
  }
975
978
  };
976
979
  }
977
- getAppearanceConfig(t = null) {
980
+ getAppearanceConfig(n = null) {
978
981
  return {
979
982
  title: "样式",
980
983
  description: "Appearance",
@@ -994,90 +997,105 @@ class He {
994
997
  }
995
998
  };
996
999
  }
1000
+ /**
1001
+ *
1002
+ * @param propertyId
1003
+ * @param componentInstance
1004
+ * @returns
1005
+ */
1006
+ updateElementByParentContainer(n, t) {
1007
+ const o = t && t.parent && t.parent.schema;
1008
+ if (!o)
1009
+ return;
1010
+ const a = o.contents.findIndex((u) => u.id === n), l = Q(o.contents[a]);
1011
+ o.contents.splice(a, 1), o.contents.splice(a, 0, l);
1012
+ }
997
1013
  }
998
- const N = class N {
1014
+ const O = class O {
999
1015
  /**
1000
1016
  * 根据绑定字段类型获取可用的输入类控件
1001
1017
  */
1002
- static getEditorTypesByMDataType(t) {
1003
- const n = N.fieldControlTypeMapping[t];
1004
- return n || [{ key: "", value: "" }];
1018
+ static getEditorTypesByMDataType(n) {
1019
+ const t = O.fieldControlTypeMapping[n];
1020
+ return t || [{ key: "", value: "" }];
1005
1021
  }
1006
1022
  /**
1007
1023
  * 获取所有输入类控件
1008
1024
  */
1009
1025
  static getAllInputTypes() {
1010
- const t = [];
1011
- for (let n in N.fieldControlTypeMapping)
1012
- N.fieldControlTypeMapping[n].forEach((o) => {
1013
- t.find((a) => a.key === o.key && a.value === o.value) || t.push({ key: o.key, value: o.value });
1026
+ const n = [];
1027
+ for (let t in O.fieldControlTypeMapping)
1028
+ O.fieldControlTypeMapping[t].forEach((o) => {
1029
+ n.find((a) => a.key === o.key && a.value === o.value) || n.push({ key: o.key, value: o.value });
1014
1030
  });
1015
- return t;
1031
+ return n;
1016
1032
  }
1017
1033
  };
1018
1034
  /**
1019
1035
  * <字段类型,可配置的控件类型列表>的映射
1020
1036
  */
1021
- P(N, "fieldControlTypeMapping", {
1037
+ x(O, "fieldControlTypeMapping", {
1022
1038
  String: [
1023
- { key: f["input-group"].type, value: f["input-group"].name },
1024
- { key: f.lookup.type, value: f.lookup.name },
1025
- { key: f["date-picker"].type, value: f["date-picker"].name },
1026
- { key: f["check-box"].type, value: f["check-box"].name },
1027
- { key: f["radio-group"].type, value: f["radio-group"].name },
1028
- { key: f["combo-list"].type, value: f["combo-list"].name },
1029
- { key: f.textarea.type, value: f.textarea.name }
1039
+ { key: m["input-group"].type, value: m["input-group"].name },
1040
+ { key: m.lookup.type, value: m.lookup.name },
1041
+ { key: m["date-picker"].type, value: m["date-picker"].name },
1042
+ { key: m["check-box"].type, value: m["check-box"].name },
1043
+ { key: m["radio-group"].type, value: m["radio-group"].name },
1044
+ { key: m["combo-list"].type, value: m["combo-list"].name },
1045
+ { key: m.textarea.type, value: m.textarea.name }
1030
1046
  ],
1031
1047
  Text: [
1032
- { key: f.textarea.type, value: f.textarea.name },
1033
- { key: f.lookup.type, value: f.lookup.name }
1048
+ { key: m.textarea.type, value: m.textarea.name },
1049
+ { key: m.lookup.type, value: m.lookup.name }
1034
1050
  ],
1035
1051
  Decimal: [
1036
- { key: f["number-spinner"].type, value: f["number-spinner"].name }
1052
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
1037
1053
  ],
1038
1054
  Integer: [
1039
- { key: f["number-spinner"].type, value: f["number-spinner"].name }
1055
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
1040
1056
  ],
1041
1057
  Number: [
1042
- { key: f["number-spinner"].type, value: f["number-spinner"].name }
1058
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
1043
1059
  ],
1044
1060
  BigNumber: [
1045
- { key: f["number-spinner"].type, value: f["number-spinner"].name }
1061
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
1046
1062
  ],
1047
1063
  Date: [
1048
- { key: f["date-picker"].type, value: f["date-picker"].name }
1064
+ { key: m["date-picker"].type, value: m["date-picker"].name }
1049
1065
  ],
1050
1066
  DateTime: [
1051
- { key: f["date-picker"].type, value: f["date-picker"].name }
1067
+ { key: m["date-picker"].type, value: m["date-picker"].name }
1052
1068
  ],
1053
1069
  Boolean: [
1054
- { key: f.switch.type, value: f.switch.name },
1055
- { key: f["check-box"].type, value: f["check-box"].name }
1070
+ { key: m.switch.type, value: m.switch.name },
1071
+ { key: m["check-box"].type, value: m["check-box"].name }
1056
1072
  ],
1057
1073
  Enum: [
1058
- { key: f["combo-list"].type, value: f["combo-list"].name },
1059
- { key: f["radio-group"].type, value: f["radio-group"].name }
1074
+ { key: m["combo-list"].type, value: m["combo-list"].name },
1075
+ { key: m["radio-group"].type, value: m["radio-group"].name }
1060
1076
  ],
1061
1077
  Object: [
1062
- { key: f.lookup.type, value: f.lookup.name },
1063
- { key: f["combo-list"].type, value: f["combo-list"].name },
1064
- { key: f["radio-group"].type, value: f["radio-group"].name }
1078
+ { key: m.lookup.type, value: m.lookup.name },
1079
+ { key: m["combo-list"].type, value: m["combo-list"].name },
1080
+ { key: m["radio-group"].type, value: m["radio-group"].name }
1065
1081
  ]
1066
1082
  });
1067
- let $ = N;
1068
- const ze = h(0);
1069
- class Je extends He {
1070
- constructor(t, n) {
1071
- super(t, n);
1072
- }
1073
- getPropertyConfig(t, n) {
1074
- return this.propertyConfig.categories.basic = this.getBasicProperties(t, n), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
1075
- }
1076
- getBasicProperties(t, n) {
1077
- var d;
1078
- var o = this;
1083
+ let U = O;
1084
+ const Je = h(0);
1085
+ class Xe extends Re {
1086
+ constructor(t, o) {
1087
+ super(t, o);
1088
+ x(this, "responseLayoutEditorFunction");
1089
+ this.responseLayoutEditorFunction = ye(this.formSchemaUtils);
1090
+ }
1091
+ getPropertyConfig(t, o) {
1092
+ return this.propertyConfig.categories.basic = this.getBasicProperties(t, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t, o), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
1093
+ }
1094
+ getBasicProperties(t, o) {
1095
+ var c;
1096
+ var a = this;
1079
1097
  this.setDesignViewModelField(t);
1080
- const a = this.formSchemaUtils.getFormMetadataBasicInfo(), c = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1098
+ const l = this.formSchemaUtils.getFormMetadataBasicInfo(), u = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1081
1099
  return {
1082
1100
  description: "Basic Information",
1083
1101
  title: "基本信息",
@@ -1089,8 +1107,8 @@ class Je extends He {
1089
1107
  readonly: !0
1090
1108
  },
1091
1109
  type: {
1092
- description: "组件类型",
1093
- title: "控件类型",
1110
+ description: "编辑器类型",
1111
+ title: "编辑器类型",
1094
1112
  type: "string",
1095
1113
  refreshPanelAfterChanged: !0,
1096
1114
  $converter: "/converter/change-editor.converter",
@@ -1099,7 +1117,7 @@ class Je extends He {
1099
1117
  textField: "value",
1100
1118
  valueField: "key",
1101
1119
  editable: !1,
1102
- data: o.designViewModelField ? $.getEditorTypesByMDataType((d = o.designViewModelField.type) == null ? void 0 : d.name) : $.getAllInputTypes()
1120
+ data: a.designViewModelField ? U.getEditorTypesByMDataType((c = a.designViewModelField.type) == null ? void 0 : c.name) : U.getAllInputTypes()
1103
1121
  }
1104
1122
  },
1105
1123
  label: {
@@ -1116,7 +1134,7 @@ class Je extends He {
1116
1134
  bindingType: { enable: !1 },
1117
1135
  editorParams: {
1118
1136
  propertyData: t,
1119
- formBasicInfo: a
1137
+ formBasicInfo: l
1120
1138
  },
1121
1139
  columns: [
1122
1140
  { field: "name", title: "字段名称" },
@@ -1124,22 +1142,27 @@ class Je extends He {
1124
1142
  { field: "fieldType", title: "字段类型" }
1125
1143
  ],
1126
1144
  textField: "bindingField",
1127
- data: c
1145
+ data: u
1128
1146
  }
1129
1147
  }
1130
1148
  },
1131
- setPropertyRelates(u, l) {
1132
- if (u)
1133
- switch (u && u.propertyID) {
1149
+ setPropertyRelates(i, r) {
1150
+ if (i)
1151
+ switch (i && i.propertyID) {
1134
1152
  case "type": {
1135
- o.changeControlType(t, u, n);
1153
+ a.changeControlType(t, i, o);
1154
+ break;
1155
+ }
1156
+ case "label": {
1157
+ i.needRefreshControlTree = !0;
1136
1158
  break;
1137
1159
  }
1138
1160
  }
1139
1161
  }
1140
1162
  };
1141
1163
  }
1142
- getAppearanceProperties(t) {
1164
+ getAppearanceProperties(t, o) {
1165
+ var a = this;
1143
1166
  return {
1144
1167
  title: "样式",
1145
1168
  description: "Appearance",
@@ -1160,12 +1183,25 @@ class Je extends He {
1160
1183
  description: "响应式列宽",
1161
1184
  title: "响应式列宽",
1162
1185
  type: "boolean",
1163
- visible: !1,
1186
+ visible: !0,
1187
+ // 这个属性,标记当属性变更得时候触发重新更新属性
1188
+ refreshPanelAfterChanged: !0,
1164
1189
  editor: {
1165
- type: "response-layout-editor-setting"
1166
- },
1167
- $converter: "/converter/response-form-layout.converter"
1190
+ type: "response-layout-editor-setting",
1191
+ initialState: a.responseLayoutEditorFunction.checkCanOpenLayoutEditor(t, a.componentId)
1192
+ }
1168
1193
  }
1194
+ },
1195
+ setPropertyRelates(l, u) {
1196
+ if (l)
1197
+ switch (l && l.propertyID) {
1198
+ case "responseLayout":
1199
+ a.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, a.componentId || t.id), a.updateUnifiedLayoutAfterResponseLayoutChanged(a.componentId), a.updateElementByParentContainer(t.id, o), delete t.responseLayout;
1200
+ break;
1201
+ case "class":
1202
+ a.updateUnifiedLayoutAfterControlChanged(l.propertyValue, t.id, this.componentId), a.updateElementByParentContainer(t.id, o);
1203
+ break;
1204
+ }
1169
1205
  }
1170
1206
  };
1171
1207
  }
@@ -1177,44 +1213,44 @@ class Je extends He {
1177
1213
  * @param propertyData 控件DOM属性
1178
1214
  * @param newControlType 新控件类型
1179
1215
  */
1180
- changeControlType(t, n, o) {
1181
- var r, s, i, p;
1182
- const a = n.propertyValue, c = o && o.parent && o.parent.schema;
1183
- if (!c)
1216
+ changeControlType(t, o, a) {
1217
+ var d, s, p, y;
1218
+ const l = o.propertyValue, u = a && a.parent && a.parent.schema;
1219
+ if (!u)
1184
1220
  return;
1185
- const d = c.contents.findIndex((m) => m.id === t.id), u = c.contents[d];
1186
- let l;
1221
+ const c = u.contents.findIndex((f) => f.id === t.id), i = u.contents[c];
1222
+ let r;
1187
1223
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1188
1224
  editor: {
1189
- $type: a
1225
+ $type: l
1190
1226
  },
1191
1227
  name: this.designViewModelField.name,
1192
1228
  require: this.designViewModelField.require,
1193
1229
  readonly: this.designViewModelField.readonly
1194
- }, !1), l = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), l || (l = _("form-group") || {}, l.editor = _(a) || {}, delete l.editor.id, delete l.editor.binding, delete l.editor.appearance), Object.assign(l, {
1195
- id: u.id,
1196
- appearance: u.appearance,
1197
- size: u.size,
1198
- label: u.label,
1199
- binding: u.binding,
1200
- visible: u.visible
1201
- }), Object.assign(l.editor, {
1202
- isTextArea: l.isTextArea && u.isTextArea,
1203
- placeholder: (r = u.editor) == null ? void 0 : r.placeholder,
1204
- holdPlace: (s = u.editor) == null ? void 0 : s.holdPlace,
1205
- readonly: (i = u.editor) == null ? void 0 : i.readonly,
1206
- require: (p = u.editor) == null ? void 0 : p.require
1207
- }), c.contents.splice(d, 1), c.contents.splice(d, 0, l), o.schema = Object.assign(u, l), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1208
- (m) => m.classList.remove("dgComponentSelected")
1209
- ), ze.value++;
1210
- }
1211
- getComponentConfig(t, n = {}, o = {}) {
1212
- const a = Object.assign({
1213
- description: "组件信息",
1214
- title: "组件信息",
1230
+ }, !1), r = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l)), r || (r = Z("form-group") || {}, r.editor = Z(l) || {}, delete r.editor.id, delete r.editor.binding, delete r.editor.appearance), Object.assign(r, {
1231
+ id: i.id,
1232
+ appearance: i.appearance,
1233
+ size: i.size,
1234
+ label: i.label,
1235
+ binding: i.binding,
1236
+ visible: i.visible
1237
+ }), Object.assign(r.editor, {
1238
+ isTextArea: r.isTextArea && i.isTextArea,
1239
+ placeholder: (d = i.editor) == null ? void 0 : d.placeholder,
1240
+ holdPlace: (s = i.editor) == null ? void 0 : s.holdPlace,
1241
+ readonly: (p = i.editor) == null ? void 0 : p.readonly,
1242
+ require: (y = i.editor) == null ? void 0 : y.require
1243
+ }), u.contents.splice(c, 1), u.contents.splice(c, 0, r), a.schema = Object.assign(i, r), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1244
+ (f) => f.classList.remove("dgComponentSelected")
1245
+ ), Je.value++;
1246
+ }
1247
+ getComponentConfig(t, o = {}, a = {}) {
1248
+ const l = Object.assign({
1249
+ description: "编辑器",
1250
+ title: "编辑器",
1215
1251
  type: "input-group",
1216
1252
  $converter: "/converter/property-editor.converter"
1217
- }, n), c = Object.assign({
1253
+ }, o), u = Object.assign({
1218
1254
  readonly: {
1219
1255
  description: "",
1220
1256
  title: "只读",
@@ -1235,174 +1271,222 @@ class Je extends He {
1235
1271
  title: "提示文本",
1236
1272
  type: "string"
1237
1273
  }
1238
- }, o);
1239
- return { ...a, properties: { ...c } };
1274
+ }, a);
1275
+ return { ...l, properties: { ...u } };
1276
+ }
1277
+ /**
1278
+ * 修改某一输入控件的样式后更新Form的统一布局配置
1279
+ * @param controlClass 控件样式
1280
+ * @param controlId 控件Id
1281
+ * @param componentId 控件所在组件id
1282
+ */
1283
+ updateUnifiedLayoutAfterControlChanged(t, o, a) {
1284
+ const l = t.split(" ");
1285
+ let u = l.find((s) => /^col-([1-9]|10|11|12)$/.test(s)), c = l.find((s) => /^col-md-([1-9]|10|11|12)$/.test(s)), i = l.find((s) => /^col-xl-([1-9]|10|11|12)$/.test(s)), r = l.find((s) => /^col-el-([1-9]|10|11|12)$/.test(s));
1286
+ u = u || "col-12", c = c || "col-md-" + u.replace("col-", ""), i = i || "col-xl-" + c.replace("col-md-", ""), r = r || "col-el-" + i.replace("col-xl-", "");
1287
+ const d = {
1288
+ id: o,
1289
+ columnInSM: parseInt(u.replace("col-", ""), 10),
1290
+ columnInMD: parseInt(c.replace("col-md-", ""), 10),
1291
+ columnInLG: parseInt(i.replace("col-xl-", ""), 10),
1292
+ columnInEL: parseInt(r.replace("col-el-", ""), 10)
1293
+ };
1294
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(a, d);
1295
+ }
1296
+ /**
1297
+ * 修改控件布局配置后更新Form统一布局配置
1298
+ * @param componentId 组件Id
1299
+ * @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
1300
+ */
1301
+ updateUnifiedLayoutAfterResponseLayoutChanged(t, o) {
1302
+ const { formNode: a } = this.responseLayoutEditorFunction.checkCanFindFormNode(t);
1303
+ if (!a || !a.unifiedLayout)
1304
+ return;
1305
+ const l = [];
1306
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(a, l, 1), o) {
1307
+ const f = l.find((C) => C.id === o.id);
1308
+ Object.assign(f || {}, o);
1309
+ }
1310
+ const u = l.map((f) => f.columnInSM), c = l.map((f) => f.columnInMD), i = l.map((f) => f.columnInLG), r = l.map((f) => f.columnInEL), d = this.checkIsUniqueColumn(u) ? u[0] : null, s = this.checkIsUniqueColumn(c) ? c[0] : null, p = this.checkIsUniqueColumn(i) ? i[0] : null, y = this.checkIsUniqueColumn(r) ? r[0] : null;
1311
+ Object.assign(a.unifiedLayout, {
1312
+ uniqueColClassInSM: d,
1313
+ uniqueColClassInMD: s,
1314
+ uniqueColClassInLG: p,
1315
+ uniqueColClassInEL: y
1316
+ });
1317
+ }
1318
+ /**
1319
+ * 校验宽度样式值是否一致
1320
+ */
1321
+ checkIsUniqueColumn(t) {
1322
+ const o = new Set(t);
1323
+ return Array.from(o).length === 1;
1240
1324
  }
1241
1325
  }
1242
- class Ze extends Je {
1243
- constructor(t, n) {
1244
- super(t, n);
1326
+ class Ze extends Xe {
1327
+ constructor(n, t) {
1328
+ super(n, t);
1245
1329
  }
1246
1330
  }
1247
- function _e(e, t) {
1331
+ function _e(e, n) {
1248
1332
  const {
1249
- canAccepts: n,
1333
+ canAccepts: t,
1250
1334
  checkCanDeleteComponent: o,
1251
1335
  checkCanMoveComponent: a,
1252
- hideNestedPaddingInDesginerView: c,
1253
- onAcceptMovedChildElement: d,
1254
- resolveComponentContext: u,
1255
- triggerBelongedComponentToMoveWhenMoved: l,
1336
+ hideNestedPaddingInDesginerView: l,
1337
+ onAcceptMovedChildElement: u,
1338
+ resolveComponentContext: c,
1339
+ triggerBelongedComponentToMoveWhenMoved: i,
1256
1340
  triggerBelongedComponentToDeleteWhenDeleted: r
1257
- } = We(e), s = e.schema;
1258
- function i(p, m) {
1259
- return new Ze(p, t).getPropertyConfig(s, m);
1341
+ } = ze(e), d = e.schema;
1342
+ function s(p, y) {
1343
+ return new Ze(p, n).getPropertyConfig(d, y);
1260
1344
  }
1261
1345
  return {
1262
- canAccepts: n,
1346
+ canAccepts: t,
1263
1347
  checkCanDeleteComponent: o,
1264
1348
  checkCanMoveComponent: a,
1265
- hideNestedPaddingInDesginerView: c,
1266
- onAcceptMovedChildElement: d,
1267
- resolveComponentContext: u,
1268
- triggerBelongedComponentToMoveWhenMoved: l,
1349
+ hideNestedPaddingInDesginerView: l,
1350
+ onAcceptMovedChildElement: u,
1351
+ resolveComponentContext: c,
1352
+ triggerBelongedComponentToMoveWhenMoved: i,
1269
1353
  triggerBelongedComponentToDeleteWhenDeleted: r,
1270
- getPropsConfig: i
1354
+ getPropsConfig: s
1271
1355
  };
1272
1356
  }
1273
- function Qe(e, t, n) {
1274
- var V;
1357
+ function Qe(e, n, t) {
1358
+ var I;
1275
1359
  function o() {
1276
- n != null && n.resolveComponentContext && n.resolveComponentContext();
1360
+ t != null && t.resolveComponentContext && t.resolveComponentContext();
1277
1361
  }
1278
1362
  o();
1279
- const a = n && n.getStyles && n.getStyles() || "", c = n && n.getDesignerClass && n.getDesignerClass() || "", d = h();
1280
- function u() {
1281
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
1363
+ const a = t && t.getStyles && t.getStyles() || "", l = t && t.getDesignerClass && t.getDesignerClass() || "", u = h();
1364
+ function c() {
1365
+ return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1282
1366
  }
1283
- function l() {
1367
+ function i() {
1284
1368
  return !1;
1285
1369
  }
1286
1370
  function r() {
1287
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
1371
+ return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
1288
1372
  }
1289
- function s() {
1290
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
1373
+ function d() {
1374
+ return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
1291
1375
  }
1292
- function i(b) {
1376
+ function s(b) {
1293
1377
  if (!b || !b.value)
1294
1378
  return null;
1295
1379
  if (b.value.schema && b.value.schema.type === "component")
1296
1380
  return b.value;
1297
- const C = h(b == null ? void 0 : b.value.parent), B = i(C);
1298
- return B || null;
1381
+ const w = h(b == null ? void 0 : b.value.parent), M = s(w);
1382
+ return M || null;
1299
1383
  }
1300
- function p(b = t) {
1301
- const { componentInstance: C, designerItemElementRef: B } = b;
1302
- return !C || !C.value ? null : C.value.canMove ? B : p(b.parent);
1384
+ function p(b = n) {
1385
+ const { componentInstance: w, designerItemElementRef: M } = b;
1386
+ return !w || !w.value ? null : w.value.canMove ? M : p(b.parent);
1303
1387
  }
1304
- function m(b) {
1305
- return !!n && n.canAccepts(b);
1388
+ function y(b) {
1389
+ return !!t && t.canAccepts(b);
1306
1390
  }
1307
- function v() {
1308
- return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
1391
+ function f() {
1392
+ return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
1309
1393
  }
1310
- function w() {
1394
+ function C() {
1311
1395
  }
1312
- function x(b, C) {
1313
- C && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(C);
1396
+ function S(b, w) {
1397
+ w && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(w);
1314
1398
  }
1315
- function k(b) {
1316
- const { componentType: C } = b;
1317
- let B = I(C, b);
1318
- n && n.onResolveNewComponentSchema && (B = n.onResolveNewComponentSchema(b, B));
1319
- const O = C.toLowerCase().replace("-", "_");
1320
- return B && !B.id && B.type === C && (B.id = `${O}_${Math.random().toString().slice(2, 6)}`), B;
1399
+ function T(b, w) {
1400
+ const { componentType: M } = b;
1401
+ let E = $(M, b, w);
1402
+ t && t.onResolveNewComponentSchema && (E = t.onResolveNewComponentSchema(b, E));
1403
+ const V = M.toLowerCase().replace("-", "_");
1404
+ return E && !E.id && E.type === M && (E.id = `${V}_${Math.random().toString().slice(2, 6)}`), E;
1321
1405
  }
1322
- function S(b, C) {
1323
- const B = String(b.getAttribute("data-controltype")), O = b.getAttribute("data-feature"), G = O ? JSON.parse(O) : {};
1324
- G.parentComponentInstance = d.value;
1325
- let F = I(B, G);
1326
- n && n.onAcceptNewChildElement && (F = n.onAcceptNewChildElement(b, C, F));
1327
- const U = B.toLowerCase().replace("-", "_");
1328
- return F && !F.id && F.type === B && (F.id = `${U}_${Math.random().toString().slice(2, 6)}`), F;
1406
+ function A(b, w) {
1407
+ const M = String(b.getAttribute("data-controltype")), E = b.getAttribute("data-feature"), V = E ? JSON.parse(E) : {};
1408
+ V.parentComponentInstance = u.value;
1409
+ let L = $(M, V);
1410
+ t && t.onAcceptNewChildElement && (L = t.onAcceptNewChildElement(b, w, L));
1411
+ const G = M.toLowerCase().replace("-", "_");
1412
+ return L && !L.id && L.type === M && (L.id = `${G}_${Math.random().toString().slice(2, 6)}`), L;
1329
1413
  }
1330
- function A(b) {
1414
+ function P(b) {
1331
1415
  }
1332
- function M(...b) {
1333
- if (n && n.getPropsConfig)
1334
- return n.getPropsConfig(...b);
1416
+ function k(...b) {
1417
+ if (t && t.getPropsConfig)
1418
+ return t.getPropsConfig(...b);
1335
1419
  }
1336
- return d.value = {
1337
- canMove: u(),
1338
- canSelectParent: l(),
1420
+ return u.value = {
1421
+ canMove: c(),
1422
+ canSelectParent: i(),
1339
1423
  canDelete: r(),
1340
- canNested: !s(),
1341
- contents: t == null ? void 0 : t.schema.contents,
1424
+ canNested: !d(),
1425
+ contents: n == null ? void 0 : n.schema.contents,
1342
1426
  elementRef: e,
1343
- parent: (V = t == null ? void 0 : t.parent) == null ? void 0 : V.componentInstance,
1344
- schema: t == null ? void 0 : t.schema,
1427
+ parent: (I = n == null ? void 0 : n.parent) == null ? void 0 : I.componentInstance,
1428
+ schema: n == null ? void 0 : n.schema,
1345
1429
  styles: a,
1346
- designerClass: c,
1347
- canAccepts: m,
1348
- getBelongedComponentInstance: i,
1430
+ designerClass: l,
1431
+ canAccepts: y,
1432
+ getBelongedComponentInstance: s,
1349
1433
  getDraggableDesignItemElement: p,
1350
- getDraggingDisplayText: v,
1351
- getPropConfig: M,
1352
- getDragScopeElement: w,
1353
- onAcceptMovedChildElement: x,
1354
- onAcceptNewChildElement: S,
1355
- onChildElementMovedOut: A,
1356
- addNewChildComponentSchema: k,
1434
+ getDraggingDisplayText: f,
1435
+ getPropConfig: k,
1436
+ getDragScopeElement: C,
1437
+ onAcceptMovedChildElement: S,
1438
+ onAcceptNewChildElement: A,
1439
+ onChildElementMovedOut: P,
1440
+ addNewChildComponentSchema: T,
1357
1441
  updateDragAndDropRules: o,
1358
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || h(!1),
1359
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || h(!1)
1360
- }, d;
1442
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || h(!1),
1443
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || h(!1)
1444
+ }, u;
1361
1445
  }
1362
- const Xe = /* @__PURE__ */ Q({
1446
+ const Ye = /* @__PURE__ */ _({
1363
1447
  name: "FInputGroupDesign",
1364
1448
  props: W,
1365
1449
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
1366
- setup(e, t) {
1367
- const n = h(e.modelValue), o = h(e.modelValue), a = Ve(e, t, n, o), {
1368
- inputGroupClass: c,
1369
- inputType: d,
1370
- inputGroupStyle: u
1371
- } = a, l = ee(e), {
1450
+ setup(e, n) {
1451
+ const t = h(e.modelValue), o = h(e.modelValue), a = Ve(e, n, t, o), {
1452
+ inputGroupClass: l,
1453
+ inputType: u,
1454
+ inputGroupStyle: c
1455
+ } = a, i = ne(e), {
1372
1456
  shouldShowAppendedButton: r
1373
- } = l, s = K(e, t, a), {
1374
- onMouseEnter: i,
1457
+ } = i, d = te(e, n, a), {
1458
+ onMouseEnter: s,
1375
1459
  onMouseLeave: p
1376
- } = s, m = te(e, t, d, l), v = h(), w = Z("designer-host-service"), x = Z("design-item-context"), k = _e(x, w), S = Qe(v, x, k);
1377
- j(() => {
1378
- v.value.componentInstance = S;
1379
- }), t.expose(S.value);
1380
- const A = ne(e, t, l, s, m), M = h();
1381
- return () => T("div", {
1460
+ } = d, y = oe(e, n, u, i), f = h(), C = J("designer-host-service"), S = J("design-item-context"), T = _e(S, C), A = Qe(f, S, T);
1461
+ N(() => {
1462
+ f.value.componentInstance = A;
1463
+ }), n.expose(A.value);
1464
+ const P = ae(e, n, i, d, y), k = h();
1465
+ return () => B("div", {
1382
1466
  id: "inputGroup",
1383
- ref: v,
1384
- class: c.value,
1385
- style: u.value,
1386
- onMouseenter: i,
1467
+ ref: f,
1468
+ class: l.value,
1469
+ style: c.value,
1470
+ onMouseenter: s,
1387
1471
  onMouseleave: p
1388
- }, [T("input", {
1389
- ref: M,
1472
+ }, [B("input", {
1473
+ ref: k,
1390
1474
  class: "form-control",
1391
1475
  readonly: !0,
1392
1476
  placeholder: e.placeholder
1393
- }, null), r.value && A()]);
1477
+ }, null), r.value && P()]);
1394
1478
  }
1395
1479
  });
1396
- L.register = (e, t, n, o) => {
1397
- e["input-group"] = L, t["input-group"] = R;
1480
+ j.register = (e, n, t, o) => {
1481
+ e["input-group"] = j, n["input-group"] = ee;
1398
1482
  };
1399
- L.registerDesigner = (e, t, n) => {
1400
- e["input-group"] = Xe, t["input-group"] = R;
1483
+ j.registerDesigner = (e, n, t) => {
1484
+ e["input-group"] = Ye, n["input-group"] = ee;
1401
1485
  };
1402
- const ot = Ge(L);
1486
+ const it = Ue(j);
1403
1487
  export {
1404
- L as FInputGroup,
1405
- ot as default,
1488
+ j as FInputGroup,
1489
+ it as default,
1406
1490
  W as inputGroupProps,
1407
- R as propsResolver
1491
+ ee as propsResolver
1408
1492
  };