@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,107 +1,107 @@
1
- import { defineComponent as R, ref as m, computed as v, createVNode as h, Teleport as J, createApp as Q, onUnmounted as Y, inject as D, watch as I, nextTick as V, onMounted as F, withDirectives as Z, vShow as K, Fragment as ee, mergeProps as L } from "vue";
2
- import { cloneDeep as te } from "lodash-es";
3
- import { resolveAppearance as ne } from "../dynamic-resolver/index.esm.js";
4
- import oe from "../tags/index.esm.js";
5
- import ue from "../popover/index.esm.js";
6
- import { useDesignerComponent as ae } from "../designer-canvas/index.esm.js";
7
- import { withInstall as le } from "../common/index.esm.js";
8
- const ie = {}, re = {};
1
+ import { defineComponent as j, ref as y, computed as h, createVNode as v, Teleport as U, createApp as _, onUnmounted as X, inject as D, watch as R, nextTick as S, onMounted as F, withDirectives as z, vShow as J, Fragment as Q, mergeProps as A } from "vue";
2
+ import { isPlainObject as V, cloneDeep as Y } from "lodash-es";
3
+ import { resolveAppearance as Z } from "../dynamic-resolver/index.esm.js";
4
+ import K from "../tags/index.esm.js";
5
+ import ee from "../popover/index.esm.js";
6
+ import { useDesignerComponent as te } from "../designer-canvas/index.esm.js";
7
+ import { withInstall as ne } from "../common/index.esm.js";
8
+ const oe = {}, ue = {};
9
9
  function N(e) {
10
- const { properties: t, title: a } = e, l = Object.keys(t).reduce((n, u) => (n[u] = t[u].type === "object" && t[u].properties ? N(t[u]) : te(t[u].default), n), {});
11
- return l.id = `${a}-${Date.now()}`, l;
10
+ const { properties: t, title: u, ignore: o } = e, n = o && Array.isArray(o), l = Object.keys(t).reduce((c, r) => ((!n || !o.find((b) => b == r)) && (c[r] = t[r].type === "object" && t[r].properties ? N(t[r]) : Y(t[r].default)), c), {});
11
+ return (!n || !o.find((c) => c == "id")) && (l.id = `${u}-${Date.now()}`), l;
12
12
  }
13
- function se(e, t) {
14
- const a = N(t);
15
- return Object.keys(e).reduce((l, n) => (l[n] && typeof l[n] == "object" ? Object.assign(l[n], e[n]) : l[n] = e[n], l), a), a;
13
+ function ae(e, t) {
14
+ const u = N(t);
15
+ return Object.keys(e).reduce((o, n) => (o[n] && V(o[n]) && V(e[n]) ? Object.assign(o[n], e[n]) : o[n] = e[n], o), u), u;
16
16
  }
17
- function ce(e, t) {
18
- return Object.keys(e).filter((l) => e[l] != null).reduce((l, n) => {
17
+ function le(e, t) {
18
+ return Object.keys(e).filter((o) => e[o] != null).reduce((o, n) => {
19
19
  if (t.has(n)) {
20
- const u = t.get(n);
21
- if (typeof u == "string")
22
- l[u] = e[n];
20
+ const l = t.get(n);
21
+ if (typeof l == "string")
22
+ o[l] = e[n];
23
23
  else {
24
- const c = u(n, e[n], e);
25
- Object.assign(l, c);
24
+ const c = l(n, e[n], e);
25
+ Object.assign(o, c);
26
26
  }
27
27
  } else
28
- l[n] = e[n];
29
- return l;
28
+ o[n] = e[n];
29
+ return o;
30
30
  }, {});
31
31
  }
32
- function de(e, t, a = /* @__PURE__ */ new Map()) {
33
- const l = se(e, t);
34
- return ce(l, a);
32
+ function ie(e, t, u = /* @__PURE__ */ new Map()) {
33
+ const o = ae(e, t);
34
+ return le(o, u);
35
35
  }
36
- function pe(e = {}) {
37
- function t(o, r, i, p) {
36
+ function re(e = {}) {
37
+ function t(a, s, i, p) {
38
38
  if (typeof i == "number")
39
- return p[o].length === i;
39
+ return p[a].length === i;
40
40
  if (typeof i == "object") {
41
- const f = Object.keys(i)[0], y = i[f];
41
+ const f = Object.keys(i)[0], g = i[f];
42
42
  if (f === "not")
43
- return Number(p[o].length) !== Number(y);
43
+ return Number(p[a].length) !== Number(g);
44
44
  if (f === "moreThan")
45
- return Number(p[o].length) >= Number(y);
45
+ return Number(p[a].length) >= Number(g);
46
46
  if (f === "lessThan")
47
- return Number(p[o].length) <= Number(y);
47
+ return Number(p[a].length) <= Number(g);
48
48
  }
49
49
  return !1;
50
50
  }
51
- function a(o, r, i, p) {
52
- return p[o] && p[o].propertyValue && String(p[o].propertyValue.value) === String(i);
51
+ function u(a, s, i, p) {
52
+ return p[a] && p[a].propertyValue && String(p[a].propertyValue.value) === String(i);
53
53
  }
54
- const l = /* @__PURE__ */ new Map([
54
+ const o = /* @__PURE__ */ new Map([
55
55
  ["length", t],
56
- ["getProperty", a]
56
+ ["getProperty", u]
57
57
  ]);
58
- Object.keys(e).reduce((o, r) => (o.set(r, e[r]), o), l);
59
- function n(o, r) {
60
- const i = o;
61
- return typeof r == "number" ? [{ target: i, operator: "length", param: null, value: Number(r) }] : typeof r == "boolean" ? [{ target: i, operator: "getProperty", param: o, value: !!r }] : typeof r == "object" ? Object.keys(r).map((p) => {
58
+ Object.keys(e).reduce((a, s) => (a.set(s, e[s]), a), o);
59
+ function n(a, s) {
60
+ const i = a;
61
+ return typeof s == "number" ? [{ target: i, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: i, operator: "getProperty", param: a, value: !!s }] : typeof s == "object" ? Object.keys(s).map((p) => {
62
62
  if (p === "length")
63
- return { target: i, operator: "length", param: null, value: r[p] };
64
- const f = p, y = r[p];
65
- return { target: i, operator: "getProperty", param: f, value: y };
63
+ return { target: i, operator: "length", param: null, value: s[p] };
64
+ const f = p, g = s[p];
65
+ return { target: i, operator: "getProperty", param: f, value: g };
66
66
  }) : [];
67
67
  }
68
- function u(o) {
69
- return Object.keys(o).reduce((i, p) => {
70
- const f = n(p, o[p]);
68
+ function l(a) {
69
+ return Object.keys(a).reduce((i, p) => {
70
+ const f = n(p, a[p]);
71
71
  return i.push(...f), i;
72
72
  }, []);
73
73
  }
74
- function c(o, r) {
75
- if (l.has(o.operator)) {
76
- const i = l.get(o.operator);
77
- return i && i(o.target, o.param, o.value, r) || !1;
74
+ function c(a, s) {
75
+ if (o.has(a.operator)) {
76
+ const i = o.get(a.operator);
77
+ return i && i(a.target, a.param, a.value, s) || !1;
78
78
  }
79
79
  return !1;
80
80
  }
81
- function s(o, r) {
82
- return u(o).reduce((f, y) => f && c(y, r), !0);
81
+ function r(a, s) {
82
+ return l(a).reduce((f, g) => f && c(g, s), !0);
83
83
  }
84
- function b(o, r) {
85
- const i = Object.keys(o), p = i.includes("allOf"), f = i.includes("anyOf"), y = p || f, B = (y ? o[y ? p ? "allOf" : "anyOf" : "allOf"] : [o]).map((O) => s(O, r));
86
- return p ? !B.includes(!1) : B.includes(!0);
84
+ function b(a, s) {
85
+ const i = Object.keys(a), p = i.includes("allOf"), f = i.includes("anyOf"), g = p || f, C = (g ? a[g ? p ? "allOf" : "anyOf" : "allOf"] : [a]).map((T) => r(T, s));
86
+ return p ? !C.includes(!1) : C.includes(!0);
87
87
  }
88
88
  return { parseValueSchema: b };
89
89
  }
90
- const fe = {}, be = {};
91
- pe();
92
- function ye(e, t, a = /* @__PURE__ */ new Map(), l = (c, s, b) => s, n = {}, u = (c) => c) {
93
- return ie[t.title] = t, re[t.title] = l, fe[t.title] = n, be[t.title] = u, (c = {}) => {
94
- const s = de(c, t, a), b = Object.keys(e).reduce((o, r) => (o[r] = e[r].default, o), {});
95
- return Object.assign(b, s);
90
+ const se = {}, ce = {};
91
+ re();
92
+ function de(e, t, u = /* @__PURE__ */ new Map(), o = (c, r, b) => r, n = {}, l = (c) => c) {
93
+ return oe[t.title] = t, ue[t.title] = o, se[t.title] = n, ce[t.title] = l, (c = {}) => {
94
+ const r = ie(c, t, u), b = Object.keys(e).reduce((a, s) => (a[s] = e[s].default, a), {});
95
+ return Object.assign(b, r);
96
96
  };
97
97
  }
98
- const ge = /* @__PURE__ */ new Map([
99
- ["appearance", ne]
98
+ const pe = /* @__PURE__ */ new Map([
99
+ ["appearance", Z]
100
100
  ]);
101
- function me(e, t, a) {
101
+ function fe(e, t, u) {
102
102
  return t;
103
103
  }
104
- const ve = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-design.gitee.io/button-edit.schema.json", Ce = "button-edit", Be = "A Farris Input Component", xe = "object", Te = {
104
+ const be = "https://json-schema.org/draft/2020-12/schema", ge = "https://farris-design.gitee.io/button-edit.schema.json", ye = "button-edit", me = "A Farris Input Component", ve = "object", he = {
105
105
  id: {
106
106
  description: "The unique identifier for a Input Group",
107
107
  type: "string"
@@ -285,18 +285,18 @@ const ve = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-
285
285
  type: "string",
286
286
  default: ""
287
287
  }
288
- }, Oe = [
288
+ }, Ce = [
289
289
  "id",
290
290
  "type"
291
- ], ke = {
292
- $schema: ve,
293
- $id: he,
294
- title: Ce,
295
- description: Be,
296
- type: xe,
297
- properties: Te,
298
- required: Oe
299
- }, we = "buttonEdit", Ee = "A Farris Component", Pe = "object", Me = {
291
+ ], Be = {
292
+ $schema: be,
293
+ $id: ge,
294
+ title: ye,
295
+ description: me,
296
+ type: ve,
297
+ properties: he,
298
+ required: Ce
299
+ }, xe = "buttonEdit", Oe = "A Farris Component", Te = "object", ke = {
300
300
  basic: {
301
301
  description: "Basic Infomation",
302
302
  title: "基本信息",
@@ -378,12 +378,12 @@ const ve = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-
378
378
  }
379
379
  }
380
380
  }
381
- }, Ie = {
382
- title: we,
383
- description: Ee,
384
- type: Pe,
385
- categories: Me
386
- }, S = {
381
+ }, we = {
382
+ title: xe,
383
+ description: Oe,
384
+ type: Te,
385
+ categories: ke
386
+ }, L = {
387
387
  /**
388
388
  * 组件标识
389
389
  */
@@ -488,510 +488,530 @@ const ve = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-
488
488
  /**
489
489
  * 打开前
490
490
  */
491
- beforeOpen: { type: Function, default: null }
492
- }, A = ye(S, ke, ge, me, Ie), je = {
491
+ beforeOpen: { type: Function, default: null },
492
+ /** 更新方式 blur | change */
493
+ updateOn: { type: String, default: "change" }
494
+ }, G = de(L, Be, pe, fe, we), Ee = {
493
495
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
494
496
  host: { type: Object },
495
497
  backgroundColor: { type: String, default: "" }
496
- }, Re = /* @__PURE__ */ R({
498
+ }, Pe = /* @__PURE__ */ j({
497
499
  name: "FOverlay",
498
- props: je,
500
+ props: Ee,
499
501
  emits: ["click"],
500
502
  setup(e, t) {
501
- const a = m(e.popupContentPosition), l = m(e.host), n = v(() => ({
503
+ const u = y(e.popupContentPosition), o = y(e.host), n = h(() => ({
502
504
  backgroundColor: e.backgroundColor || "",
503
505
  pointerEvents: "auto"
504
506
  }));
505
- function u(s) {
506
- t.emit("click"), s.preventDefault(), s.stopPropagation();
507
+ function l(r) {
508
+ t.emit("click"), r.preventDefault(), r.stopPropagation();
507
509
  }
508
- v(() => {
509
- const s = l.value;
510
- if (s) {
511
- const b = s.getBoundingClientRect(), {
512
- left: o,
513
- top: r,
510
+ h(() => {
511
+ const r = o.value;
512
+ if (r) {
513
+ const b = r.getBoundingClientRect(), {
514
+ left: a,
515
+ top: s,
514
516
  height: i
515
517
  } = b;
516
518
  return {
517
- left: o,
518
- top: r + i
519
+ left: a,
520
+ top: s + i
519
521
  };
520
522
  }
521
- return a.value;
523
+ return u.value;
522
524
  });
523
- const c = v(() => ({
525
+ const c = h(() => ({
524
526
  // position: 'relative',
525
527
  // left: `${position.value.left}px`,
526
528
  // top: `${position.value.top}px`
527
529
  }));
528
- return () => h(J, {
530
+ return () => v(U, {
529
531
  to: "body"
530
532
  }, {
531
533
  default: () => {
532
- var s, b;
533
- return [h("div", {
534
+ var r, b;
535
+ return [v("div", {
534
536
  class: "overlay-container",
535
- onClick: (o) => u(o),
537
+ onClick: (a) => l(a),
536
538
  style: n.value
537
- }, [h("div", {
539
+ }, [v("div", {
538
540
  style: c.value
539
- }, [(b = (s = t.slots).default) == null ? void 0 : b.call(s)])])];
541
+ }, [(b = (r = t.slots).default) == null ? void 0 : b.call(r)])])];
540
542
  }
541
543
  });
542
544
  }
543
545
  });
544
- function Fe(e) {
546
+ function Me(e) {
545
547
  if (e.content && e.content.render)
546
548
  return e.content.render;
547
549
  if (e.render && typeof e.render == "function")
548
550
  return e.render;
549
551
  }
550
- function Se(e) {
552
+ function Ie(e) {
551
553
  const t = document.createElement("div");
552
554
  t.style.display = "contents";
553
- let a;
554
- const l = e.onClickCallback || (() => {
555
+ let u;
556
+ const o = e.onClickCallback || (() => {
555
557
  }), n = () => {
556
- l(), a && a.unmount();
558
+ o(), u && u.unmount();
557
559
  };
558
- return a = Q({
560
+ return u = _({
559
561
  setup() {
560
- Y(() => {
562
+ X(() => {
561
563
  document.body.removeChild(t);
562
564
  });
563
- const u = Fe(e);
564
- return () => h(Re, {
565
+ const l = Me(e);
566
+ return () => v(Pe, {
565
567
  "popup-content-position": e.popupPosition,
566
568
  host: e.host,
567
569
  onClick: n,
568
570
  backgroundColor: e.backgroundColor
569
571
  }, {
570
- default: () => [u && u()]
572
+ default: () => [l && l()]
571
573
  });
572
574
  }
573
- }), document.body.appendChild(t), a.mount(t), a;
575
+ }), document.body.appendChild(t), u.mount(t), u;
574
576
  }
575
- class Ve {
577
+ class je {
576
578
  static show(t) {
577
- return Se(t);
579
+ return Ie(t);
578
580
  }
579
581
  }
580
- const De = Symbol("FModalService");
581
- function G(e, t) {
582
- function a() {
583
- const l = e.beforeOpen || e.beforeClickButton || null;
582
+ const Re = Symbol("FModalService");
583
+ function $(e, t) {
584
+ function u() {
585
+ const o = e.beforeOpen || e.beforeClickButton || null;
584
586
  let n = Promise.resolve(!0);
585
- if (l) {
586
- const u = l(t.value);
587
- if (typeof u > "u")
587
+ if (o) {
588
+ const l = o(t.value);
589
+ if (typeof l > "u")
588
590
  return n;
589
- typeof u == "boolean" ? n = Promise.resolve(u) : n = u;
591
+ typeof l == "boolean" ? n = Promise.resolve(l) : n = l;
590
592
  }
591
593
  return n;
592
594
  }
593
- return { judgeCanOpen: a };
595
+ return { judgeCanOpen: u };
594
596
  }
595
- function W(e, t, a, l, n) {
596
- const u = m(e.buttonBehavior), c = m(e.popupOnInput), s = v(() => ({
597
+ function W(e, t, u, o, n) {
598
+ const l = y(e.buttonBehavior), c = y(e.popupOnInput), r = h(() => ({
597
599
  "input-group-append": !0,
598
600
  "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
599
- })), { judgeCanOpen: b } = G(e, n), o = v(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), r = D(De, null), i = m();
600
- async function p(g) {
601
- if (await b() && o.value) {
602
- const C = !!t.slots.default;
603
- if (u.value === "Modal") {
604
- const B = e.modalOptions, T = r == null ? void 0 : r.open({
605
- ...B,
601
+ })), { judgeCanOpen: b } = $(e, n), a = h(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), s = D(Re, null), i = y();
602
+ async function p(m) {
603
+ if (await b() && a.value) {
604
+ const x = !!t.slots.default;
605
+ if (l.value === "Modal") {
606
+ const C = e.modalOptions, O = s == null ? void 0 : s.open({
607
+ ...C,
606
608
  render: () => t.slots.default && t.slots.default()
607
609
  });
608
- i.value = T == null ? void 0 : T.modalRef;
610
+ i.value = O == null ? void 0 : O.modalRef;
609
611
  }
610
- u.value === "Overlay" && Ve.show({
612
+ l.value === "Overlay" && je.show({
611
613
  // host: buttonEditRef.value,
612
614
  host: document.body,
613
615
  backgroundColor: "rgba(0,0,0,.15)",
614
616
  render: () => t.slots.default && t.slots.default()
615
- }), C && u.value === "Popup" && l.togglePopup(!0), C && c.value && l.hidePopup(), t.emit("clickButton", { origin: g, value: e.modelValue });
617
+ }), x && l.value === "Popup" && o.togglePopup(!0), x && c.value && o.hidePopup(), t.emit("clickButton", { origin: m, value: e.modelValue });
616
618
  }
617
619
  }
618
- function f(g) {
619
- t.emit("mouseEnterIcon", g);
620
+ function f(m) {
621
+ t.emit("mouseEnterIcon", m);
620
622
  }
621
- function y(g) {
622
- t.emit("mouseLeaveIcon", g);
623
+ function g(m) {
624
+ t.emit("mouseLeaveIcon", m);
623
625
  }
624
626
  return {
625
- buttonGroupClass: s,
627
+ buttonGroupClass: r,
626
628
  onClickButton: p,
627
629
  onMouseEnterButton: f,
628
- onMouseLeaveButton: y,
630
+ onMouseLeaveButton: g,
629
631
  modalRef: i
630
632
  };
631
633
  }
632
- function $(e, t, a, l, n, u) {
633
- const c = m(!1), s = v(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: b } = u;
634
- function o(f) {
634
+ function Fe(e, t, u, o, n, l) {
635
+ const c = y(!1), r = h(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: b } = l;
636
+ function a(f) {
635
637
  c.value = f;
636
638
  }
637
- I(n, () => {
638
- o(!!n.value);
639
+ R(n, () => {
640
+ a(!!n.value);
639
641
  });
640
- function r(f) {
641
- const y = !e.readonly && !e.disable && e.editable, g = !e.editable;
642
- f.stopPropagation(), (y || g) && (b("", !1), o(!c.value), t.emit("clear"));
642
+ function s(f) {
643
+ const g = !e.readonly && !e.disable && e.editable, m = !e.editable;
644
+ f.stopPropagation(), (g || m) && (b("", !1), a(!c.value), t.emit("clear"));
643
645
  }
644
646
  function i(f) {
645
- if (s.value) {
646
- if (!a.value) {
647
- o(!1);
647
+ if (r.value) {
648
+ if (!u.value) {
649
+ a(!1);
648
650
  return;
649
651
  }
650
- !e.disable && !e.readonly && o(!0);
652
+ !e.disable && !e.readonly && a(!0);
651
653
  }
652
654
  }
653
655
  function p(f) {
654
- s.value && o(!1);
656
+ r.value && a(!1);
655
657
  }
656
658
  return {
657
- enableClearButton: s,
659
+ enableClearButton: r,
658
660
  showClearButton: c,
659
- onClearValue: r,
661
+ onClearValue: s,
660
662
  onMouseEnterTextBox: i,
661
663
  onMouseLeaveTextBox: p
662
664
  };
663
665
  }
664
- function H(e, t, a, l, n) {
665
- const u = v(() => e.popupOnInput), c = v(() => e.popupOnFocus), { shouldPopupContent: s } = n, b = v(() => e.enableTitle ? a.value : ""), o = v(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), r = v(() => e.readonly || !e.editable), i = m(!1), p = v(() => !e.disable && i.value), f = v(() => ({
666
+ function Le(e, t, u, o, n) {
667
+ const l = h(() => e.popupOnInput), c = h(() => e.popupOnFocus), { shouldPopupContent: r } = n, b = h(() => e.enableTitle ? u.value : ""), a = h(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), s = h(() => e.readonly || !e.editable), i = y(!1), p = h(() => !e.disable && i.value), f = h(() => ({
666
668
  "text-left": e.textAlign === "left",
667
669
  "text-center": e.textAlign === "center",
668
670
  "text-right": e.textAlign === "right",
669
671
  "form-control": !0,
670
672
  "f-utils-fill": !0
671
- })), y = v(() => ({
673
+ })), g = h(() => ({
672
674
  "input-group": !0,
673
675
  "f-state-disable": e.disable,
674
676
  "f-state-editable": e.editable && !e.disable && !e.readonly,
675
677
  "f-state-readonly": e.readonly && !e.disable,
676
678
  "f-state-focus": p.value
677
679
  }));
678
- function g(d, x = !0) {
679
- a.value !== d && (a.value = d, x && t.emit("change", d), t.emit("update:modelValue", d));
680
+ function m(d, B = !0) {
681
+ u.value !== d && (u.value = d, B && (t.emit("change", d), t.emit("update:modelValue", d)));
680
682
  }
681
- function C(d) {
682
- s.value = !1, g(d, !0);
683
+ function x(d) {
684
+ r.value = !1, m(d, !0);
683
685
  }
684
- I(
686
+ R(
685
687
  () => e.modelValue,
686
688
  (d) => {
687
- a.value = d;
689
+ u.value = d;
688
690
  }
689
691
  );
690
- function B(d) {
692
+ function C(d) {
691
693
  i.value = !1, t.emit("blur", d), d.stopPropagation();
692
694
  }
693
- function T(d) {
695
+ function O(d) {
694
696
  t.emit("click", d);
695
697
  }
696
- function O(d) {
697
- e.disable || (i.value = !0, r.value || (t.emit("focus", d), c.value && !s.value && n.popup()));
698
+ function T(d) {
699
+ e.disable || (i.value = !0, s.value || (t.emit("focus", d), c.value && !r.value && n.popup()));
698
700
  }
699
701
  function k(d) {
700
702
  t.emit("input", d.target.value);
701
- const x = d.target.value;
702
- l.value = x, a.value !== x && g(x, !0), u.value && !s.value && n.popup();
703
+ const B = d.target.value;
704
+ o.value = B, u.value !== B && m(B, e.updateOn === "change"), l.value && !r.value && n.popup();
703
705
  }
704
- function w(d) {
706
+ function M(d) {
705
707
  d.target.tagName !== "INPUT" && d.preventDefault(), d.stopPropagation();
706
708
  }
707
- function E(d) {
709
+ function w(d) {
708
710
  t.emit("keydown", d);
709
711
  }
710
- function j(d) {
711
- d.key === "Enter" && (u.value || c.value) && n.hidePopup(), t.emit("keyup", d);
712
+ function I(d) {
713
+ d.key === "Enter" && (l.value || c.value) && n.hidePopup(), t.emit("keyup", d);
712
714
  }
713
- function P(d) {
714
- const x = d.target.value;
715
- d.stopPropagation(), g(x);
715
+ function E(d) {
716
+ const B = d.target.value;
717
+ d.stopPropagation(), m(B);
716
718
  }
717
719
  return {
718
720
  hasFocusedTextBox: p,
719
- isTextBoxReadonly: r,
721
+ isTextBoxReadonly: s,
720
722
  textBoxClass: f,
721
- textBoxPlaceholder: o,
723
+ textBoxPlaceholder: a,
722
724
  textBoxTitle: b,
723
- inputGroupClass: y,
724
- changeTextBoxValue: g,
725
- commitValue: C,
726
- onBlurTextBox: B,
727
- onClickTextBox: T,
728
- onFocusTextBox: O,
725
+ inputGroupClass: g,
726
+ changeTextBoxValue: m,
727
+ commitValue: x,
728
+ onBlurTextBox: C,
729
+ onClickTextBox: O,
730
+ onFocusTextBox: T,
729
731
  onInput: k,
730
- onKeyDownTextBox: E,
731
- onKeyUpTextBox: j,
732
- onMouseDownTextBox: w,
733
- onTextBoxValueChange: P
732
+ onKeyDownTextBox: w,
733
+ onKeyUpTextBox: I,
734
+ onMouseDownTextBox: M,
735
+ onTextBoxValueChange: E
734
736
  };
735
737
  }
736
- function q(e, t, a, l) {
737
- const n = m(), u = m(!1), { judgeCanOpen: c } = G(e, l);
738
- function s() {
738
+ function H(e, t, u, o) {
739
+ const n = y(), l = y(!1), { judgeCanOpen: c } = $(e, o);
740
+ function r() {
739
741
  const i = n.value;
740
- i && i.show(a.value);
742
+ i && i.show(u.value);
741
743
  }
742
744
  async function b(i = !1) {
743
745
  if (!!t.slots.default) {
744
- if (!i && !u.value && !await c())
746
+ if (!i && !l.value && !await c())
745
747
  return;
746
- u.value = !u.value, await V(), s();
748
+ l.value = !l.value, await S(), r();
747
749
  }
748
750
  }
749
- async function o(i = !1) {
751
+ async function a(i = !1) {
750
752
  if (!!t.slots.default) {
751
753
  if (!i && !await c())
752
754
  return;
753
- u.value = !0, await V(), s();
755
+ l.value = !0, await S(), r();
754
756
  }
755
757
  }
756
- function r() {
757
- u.value = !1;
758
+ function s() {
759
+ l.value = !1;
758
760
  }
759
- return { hidePopup: r, popup: o, shouldPopupContent: u, togglePopup: b, popoverRef: n };
761
+ return { hidePopup: s, popup: a, shouldPopupContent: l, togglePopup: b, popoverRef: n };
760
762
  }
761
- function U(e, t, a) {
762
- const l = m(), {
763
+ function Se(e, t, u) {
764
+ const o = y(), {
763
765
  isTextBoxReadonly: n,
764
- textBoxClass: u,
766
+ textBoxClass: l,
765
767
  textBoxPlaceholder: c,
766
- textBoxTitle: s,
768
+ textBoxTitle: r,
767
769
  onBlurTextBox: b,
768
- onClickTextBox: o,
769
- onFocusTextBox: r,
770
+ onClickTextBox: a,
771
+ onFocusTextBox: s,
770
772
  onInput: i,
771
773
  onKeyDownTextBox: p,
772
774
  onKeyUpTextBox: f,
773
- onMouseDownTextBox: y,
774
- onTextBoxValueChange: g
775
- } = a;
775
+ onMouseDownTextBox: g,
776
+ onTextBoxValueChange: m
777
+ } = u;
776
778
  return F(() => {
777
- var C, B;
778
- e.selectOnCreated && ((C = l.value) == null || C.select()), e.focusOnCreated && ((B = l.value) == null || B.focus());
779
- }), () => h("input", {
780
- ref: l,
779
+ var x, C;
780
+ e.selectOnCreated && ((x = o.value) == null || x.select()), e.focusOnCreated && ((C = o.value) == null || C.focus());
781
+ }), () => v("input", {
782
+ ref: o,
781
783
  name: "input-group-value",
782
784
  autocomplete: e.autoComplete ? "on" : "off",
783
- class: u.value,
785
+ class: l.value,
784
786
  disabled: e.disable,
785
787
  maxlength: e.maxLength,
786
788
  minlength: e.minLength,
787
789
  placeholder: c.value,
788
790
  readonly: n.value,
789
791
  tabindex: e.tabIndex,
790
- title: s.value,
792
+ title: r.value,
791
793
  type: e.inputType,
792
794
  value: t.value,
793
795
  onBlur: b,
794
- onChange: g,
795
- onClick: o,
796
- onFocus: r,
796
+ onChange: m,
797
+ onClick: a,
798
+ onFocus: s,
797
799
  onInput: i,
798
800
  onKeydown: p,
799
801
  onKeyup: f,
800
- onMousedown: y
802
+ onMousedown: g
801
803
  }, null);
802
804
  }
803
- function _(e, t, a) {
804
- const l = m(e.separator), {
805
+ function Ve(e, t, u) {
806
+ const o = y(e.separator), {
805
807
  changeTextBoxValue: n
806
- } = a, u = v(() => t.value ? t.value.split(l.value).map((s) => ({
807
- name: s,
808
+ } = u, l = h(() => t.value ? t.value.split(o.value).map((r) => ({
809
+ name: r,
808
810
  selectable: !0
809
811
  })) : []);
810
- function c(s) {
811
- n(s.map((b) => b.name).join(l.value), !0);
812
+ function c(r) {
813
+ n(r.map((b) => b.name).join(o.value), !0);
812
814
  }
813
- return () => h(oe, {
815
+ return () => v(K, {
814
816
  id: `${e.id}-tag-editor`,
815
817
  class: "form-control",
816
- data: u.value,
818
+ data: l.value,
817
819
  showClose: !0,
818
820
  showInput: !0,
819
821
  onChange: c
820
822
  }, null);
821
823
  }
822
- function X(e, t, a, l) {
824
+ function De(e, t, u, o) {
823
825
  const {
824
826
  buttonGroupClass: n,
825
- onClickButton: u,
827
+ onClickButton: l,
826
828
  onMouseEnterButton: c,
827
- onMouseLeaveButton: s
828
- } = a, {
829
+ onMouseLeaveButton: r
830
+ } = u, {
829
831
  enableClearButton: b,
830
- showClearButton: o,
831
- onClearValue: r
832
- } = l, i = m();
832
+ showClearButton: a,
833
+ onClearValue: s
834
+ } = o, i = y();
833
835
  return {
834
- renderButtonGroup: () => h("div", {
836
+ renderButtonGroup: () => v("div", {
835
837
  id: `${e.id}-button-group`,
836
838
  class: n.value
837
- }, [b.value && Z(h("span", {
839
+ }, [b.value && z(v("span", {
838
840
  class: "input-group-text input-group-clear",
839
- onClick: r
840
- }, [h("i", {
841
+ onClick: s
842
+ }, [v("i", {
841
843
  class: "f-icon modal_close"
842
- }, null)]), [[K, o.value]]), t.slots.buttonContent ? h("span", {
844
+ }, null)]), [[J, a.value]]), t.slots.buttonContent ? v("span", {
843
845
  class: "input-group-text input-group-append-button",
844
- onClick: u,
846
+ onClick: l,
845
847
  onMouseenter: c,
846
- onMouseleave: s
847
- }, [t.slots.buttonContent()]) : e.buttonContent ? h("span", {
848
+ onMouseleave: r
849
+ }, [t.slots.buttonContent()]) : e.buttonContent ? v("span", {
848
850
  class: "input-group-text input-group-append-button",
849
851
  innerHTML: e.buttonContent,
850
852
  ref: i,
851
- onClick: u,
853
+ onClick: l,
852
854
  onMouseenter: c,
853
- onMouseleave: s
855
+ onMouseleave: r
854
856
  }, null) : null]),
855
857
  buttonHandleElement: i
856
858
  };
857
859
  }
858
- function Le(e, t, a) {
859
- const l = m(e.popupMinWidth), {
860
+ function Ae(e, t, u) {
861
+ const o = y(e.popupMinWidth), {
860
862
  hidePopup: n,
861
- popoverRef: u
862
- } = a;
863
- return () => h(ue, {
863
+ popoverRef: l
864
+ } = u;
865
+ return () => v(ee, {
864
866
  id: `${e.id}-popover`,
865
- ref: u,
867
+ ref: l,
866
868
  visible: !0,
867
869
  placement: "bottom-left",
868
870
  host: e.popupHost,
869
871
  "keep-width-with-reference": !0,
870
872
  fitContent: !0,
871
873
  "right-boundary": e.popupRightBoundary,
872
- minWidth: l.value,
874
+ minWidth: o.value,
873
875
  offsetX: e.popupOffsetX,
874
876
  onHidden: n
875
877
  }, {
876
878
  default: () => {
877
- var c, s;
878
- return [(s = (c = t.slots).default) == null ? void 0 : s.call(c)];
879
+ var c, r;
880
+ return [(r = (c = t.slots).default) == null ? void 0 : r.call(c)];
879
881
  }
880
882
  });
881
883
  }
882
- const M = /* @__PURE__ */ R({
884
+ const P = /* @__PURE__ */ j({
883
885
  name: "FButtonEdit",
884
- props: S,
886
+ props: L,
885
887
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
886
888
  setup(e, t) {
887
- const a = m(), l = m(e.customClass), n = m(e.modelValue), u = q(e, t, a, n), {
889
+ const u = y(), o = y(e.customClass), n = y(e.modelValue), l = H(e, t, u, n), {
888
890
  shouldPopupContent: c,
889
- hidePopup: s,
891
+ hidePopup: r,
890
892
  togglePopup: b
891
- } = u, o = W(e, t, a, u, n), r = m(""), i = H(e, t, n, r, u), {
893
+ } = l, a = W(e, t, u, l, n), s = y(""), i = Le(e, t, n, s, l), {
892
894
  hasFocusedTextBox: p,
893
895
  commitValue: f,
894
- inputGroupClass: y
895
- } = i, g = $(e, t, n, p, r, i), {
896
- onMouseEnterTextBox: C,
897
- onMouseLeaveTextBox: B
898
- } = g, T = v(() => {
896
+ inputGroupClass: g
897
+ } = i, m = Fe(e, t, n, p, s, i), {
898
+ onMouseEnterTextBox: x,
899
+ onMouseLeaveTextBox: C
900
+ } = m, O = h(() => {
899
901
  const d = {
900
902
  "f-button-edit": !0,
901
903
  "f-cmp-inputgroup": !0,
902
904
  "f-button-edit-nowrap": !e.wrapText
903
905
  };
904
- return l.value && l.value.split(" ").reduce((x, z) => (x[z] = !0, x), d), d;
906
+ return o.value && o.value.split(" ").reduce((B, q) => (B[q] = !0, B), d), d;
905
907
  });
906
- function O() {
907
- return e.multiSelect && e.inputType === "tag" ? _(e, n, i) : U(e, n, i);
908
+ function T() {
909
+ return e.multiSelect && e.inputType === "tag" ? Ve(e, n, i) : Se(e, n, i);
908
910
  }
909
- let k = O();
910
- I([() => e.multiSelect, () => e.inputType], () => {
911
- k = O();
911
+ let k = T();
912
+ R([() => e.multiSelect, () => e.inputType], () => {
913
+ k = T();
912
914
  });
913
915
  const {
914
- renderButtonGroup: w,
915
- buttonHandleElement: E
916
- } = X(e, t, o, g), j = Le(e, t, u), P = {
916
+ renderButtonGroup: M,
917
+ buttonHandleElement: w
918
+ } = De(e, t, a, m), I = Ae(e, t, l), E = {
917
919
  commitValue: f,
918
- elementRef: a,
919
- hidePopup: s,
920
+ elementRef: u,
921
+ hidePopup: r,
920
922
  shouldPopupContent: c,
921
923
  togglePopup: b,
922
924
  openDialog: () => {
923
- E.value && e.buttonBehavior === "Modal" && E.value.click();
925
+ w.value && e.buttonBehavior === "Modal" && w.value.click();
924
926
  },
925
927
  getModal: () => {
926
928
  var d;
927
- return e.buttonBehavior === "Modal" ? (d = o.modalRef.value) == null ? void 0 : d.value : null;
929
+ return e.buttonBehavior === "Modal" ? (d = a.modalRef.value) == null ? void 0 : d.value : null;
928
930
  }
929
931
  };
930
932
  return F(() => {
931
- a.value.componentInstance = P, window.onresize = () => {
933
+ u.value.componentInstance = E, window.onresize = () => {
932
934
  document.body.click();
933
935
  };
934
- }), t.expose(P), () => h(ee, null, [h("div", L(t.attrs, {
935
- ref: a,
936
- class: T.value,
936
+ }), t.expose(E), () => v(Q, null, [v("div", A(t.attrs, {
937
+ ref: u,
938
+ class: O.value,
937
939
  id: e.id
938
- }), [h("div", {
940
+ }), [v("div", {
939
941
  id: `${e.id}-input-group`,
940
- class: y.value,
941
- onMouseenter: C,
942
- onMouseleave: B
943
- }, [k(), w()])]), c.value && j()]);
942
+ class: g.value,
943
+ onMouseenter: x,
944
+ onMouseleave: C
945
+ }, [k(), M()])]), c.value && I()]);
944
946
  }
945
- }), Ne = /* @__PURE__ */ R({
947
+ });
948
+ function Ne(e, t, u) {
949
+ const {
950
+ buttonGroupClass: o
951
+ } = u, n = y();
952
+ return {
953
+ renderButtonGroup: () => v("div", {
954
+ id: `${e.id}-button-group`,
955
+ class: o.value
956
+ }, [t.slots.buttonContent ? v("span", {
957
+ class: "input-group-text input-group-append-button"
958
+ }, [t.slots.buttonContent()]) : e.buttonContent ? v("span", {
959
+ class: "input-group-text input-group-append-button",
960
+ innerHTML: e.buttonContent,
961
+ ref: n
962
+ }, null) : null]),
963
+ buttonHandleElement: n
964
+ };
965
+ }
966
+ const Ge = /* @__PURE__ */ j({
946
967
  name: "FButtonEdit",
947
- props: S,
968
+ props: L,
948
969
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
949
970
  setup(e, t) {
950
- const a = m(), l = D("design-item-context"), n = ae(a, l), u = m(e.customClass), c = m(e.modelValue), s = q(e, t, a, c), b = W(e, t, a, s, c), o = m(""), r = H(e, t, c, o, s), {
951
- hasFocusedTextBox: i,
952
- inputGroupClass: p
953
- } = r, f = $(e, t, c, i, o, r);
971
+ const u = y(), o = D("design-item-context"), n = te(u, o), l = y(e.customClass), c = y(e.modelValue), r = H(e, t, u, c), b = W(e, t, u, r, c), a = y(), s = h(() => ({
972
+ "f-cmp-inputgroup": !0,
973
+ "input-group": !0,
974
+ "f-state-disable": !0,
975
+ "f-state-editable": !1,
976
+ "f-state-readonly": !0
977
+ }));
954
978
  F(() => {
955
- a.value.componentInstance = n;
979
+ u.value.componentInstance = n;
956
980
  }), t.expose(n.value);
957
- const y = v(() => {
958
- const O = {
981
+ const i = h(() => {
982
+ const f = {
959
983
  "f-button-edit": !0,
960
984
  "f-cmp-inputgroup": !0,
961
985
  "f-button-edit-nowrap": !e.wrapText
962
986
  };
963
- return u.value && u.value.split(" ").reduce((k, w) => (k[w] = !0, k), O), O;
964
- });
965
- function g() {
966
- return e.multiSelect && e.inputType === "tag" ? _(e, c, r) : U(e, c, r);
967
- }
968
- let C = g();
969
- I([() => e.multiSelect, () => e.inputType], () => {
970
- C = g();
971
- });
972
- const {
973
- renderButtonGroup: B,
974
- buttonHandleElement: T
975
- } = X(e, t, b, f);
976
- return () => h("div", L(t.attrs, {
977
- ref: a,
978
- class: y.value,
987
+ return l.value && l.value.split(" ").reduce((g, m) => (g[m] = !0, g), f), f;
988
+ }), {
989
+ renderButtonGroup: p
990
+ } = Ne(e, t, b);
991
+ return () => v("div", A(t.attrs, {
992
+ ref: u,
993
+ class: i.value,
979
994
  id: e.id
980
- }), [h("div", {
981
- class: p.value
982
- }, [C(), B()])]);
995
+ }), [v("div", {
996
+ class: s.value
997
+ }, [v("input", {
998
+ ref: a,
999
+ class: "form-control",
1000
+ readonly: !0,
1001
+ placeholder: e.placeholder
1002
+ }, null), p()])]);
983
1003
  }
984
1004
  });
985
- M.register = (e, t, a, l) => {
986
- e["button-edit"] = M, t["button-edit"] = A;
1005
+ P.register = (e, t, u, o) => {
1006
+ e["button-edit"] = P, t["button-edit"] = G;
987
1007
  };
988
- M.registerDesigner = (e, t, a) => {
989
- e["button-edit"] = Ne, t["button-edit"] = A;
1008
+ P.registerDesigner = (e, t, u) => {
1009
+ e["button-edit"] = Ge, t["button-edit"] = G;
990
1010
  };
991
- const _e = le(M);
1011
+ const ze = ne(P);
992
1012
  export {
993
- M as FButtonEdit,
994
- S as buttonEditProps,
995
- _e as default,
996
- A as propsResolver
1013
+ P as FButtonEdit,
1014
+ L as buttonEditProps,
1015
+ ze as default,
1016
+ G as propsResolver
997
1017
  };