@farris/ui-vue 1.2.8 → 1.2.9

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 (215) hide show
  1. package/components/accordion/index.esm.js +129 -129
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +166 -157
  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.esm.js +343 -325
  8. package/components/button-edit/index.umd.cjs +1 -0
  9. package/components/button-group/index.umd.cjs +1 -0
  10. package/components/calculator/index.umd.cjs +1 -0
  11. package/components/calendar/index.esm.js +338 -338
  12. package/components/calendar/index.umd.cjs +1 -0
  13. package/components/capsule/index.esm.js +182 -182
  14. package/components/capsule/index.umd.cjs +1 -0
  15. package/components/checkbox/index.esm.js +326 -317
  16. package/components/checkbox/index.umd.cjs +1 -0
  17. package/components/color-picker/index.esm.js +118 -118
  18. package/components/color-picker/index.umd.cjs +3 -0
  19. package/components/combo-list/index.esm.js +338 -325
  20. package/components/combo-list/index.umd.cjs +1 -0
  21. package/components/combo-tree/index.esm.js +62 -62
  22. package/components/combo-tree/index.umd.cjs +1 -0
  23. package/components/common/index.umd.cjs +1 -0
  24. package/components/component/index.esm.js +382 -270
  25. package/components/component/index.umd.cjs +1 -0
  26. package/components/condition/index.esm.js +1018 -895
  27. package/components/condition/index.umd.cjs +1 -0
  28. package/components/content-container/index.esm.js +285 -212
  29. package/components/content-container/index.umd.cjs +1 -0
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +4761 -4319
  32. package/components/data-grid/index.umd.cjs +1 -0
  33. package/components/data-view/index.esm.js +2901 -2664
  34. package/components/data-view/index.umd.cjs +1 -0
  35. package/components/date-picker/index.esm.js +1502 -1488
  36. package/components/date-picker/index.umd.cjs +1 -0
  37. package/components/designer-canvas/index.css +1 -1
  38. package/components/designer-canvas/index.esm.js +938 -928
  39. package/components/designer-canvas/index.umd.cjs +1 -0
  40. package/components/designer-outline/index.css +1 -1
  41. package/components/designer-outline/index.esm.js +27 -27
  42. package/components/designer-outline/index.umd.cjs +1 -0
  43. package/components/designer-toolbox/index.esm.js +36 -12
  44. package/components/designer-toolbox/index.umd.cjs +1 -0
  45. package/components/discussion-editor/index.umd.cjs +3 -0
  46. package/components/discussion-list/index.umd.cjs +1 -0
  47. package/components/drawer/index.umd.cjs +1 -0
  48. package/components/dropdown/index.esm.js +241 -241
  49. package/components/dropdown/index.umd.cjs +2 -0
  50. package/components/dynamic-form/index.esm.js +1074 -885
  51. package/components/dynamic-form/index.umd.cjs +1 -0
  52. package/components/dynamic-resolver/index.esm.js +99 -94
  53. package/components/dynamic-resolver/index.umd.cjs +1 -0
  54. package/components/dynamic-view/index.umd.cjs +1 -0
  55. package/components/enum-editor/index.umd.cjs +1 -0
  56. package/components/events-editor/index.esm.js +577 -522
  57. package/components/events-editor/index.umd.cjs +1 -0
  58. package/components/expression-editor/index.esm.js +70 -70
  59. package/components/expression-editor/index.umd.cjs +1 -0
  60. package/components/external-container/index.css +1 -1
  61. package/components/external-container/index.esm.js +2938 -2619
  62. package/components/external-container/index.umd.cjs +1 -0
  63. package/components/field-selector/index.css +1 -1
  64. package/components/field-selector/index.esm.js +4766 -4325
  65. package/components/field-selector/index.umd.cjs +1 -0
  66. package/components/filter-bar/index.css +1 -1
  67. package/components/filter-bar/index.esm.js +1231 -1215
  68. package/components/filter-bar/index.umd.cjs +1 -0
  69. package/components/flow-canvas/index.css +1 -1
  70. package/components/flow-canvas/index.esm.js +1062 -1052
  71. package/components/flow-canvas/index.umd.cjs +1 -0
  72. package/components/image-cropper/index.esm.js +373 -373
  73. package/components/image-cropper/index.umd.cjs +1 -0
  74. package/components/input-group/index.esm.js +398 -394
  75. package/components/input-group/index.umd.cjs +1 -0
  76. package/components/layout/index.esm.js +268 -268
  77. package/components/layout/index.umd.cjs +1 -0
  78. package/components/list-nav/index.esm.js +234 -161
  79. package/components/list-nav/index.umd.cjs +1 -0
  80. package/components/list-view/index.css +1 -1
  81. package/components/list-view/index.esm.js +2288 -2048
  82. package/components/list-view/index.umd.cjs +1 -0
  83. package/components/loading/index.umd.cjs +8 -0
  84. package/components/locale/index.umd.cjs +1 -0
  85. package/components/lookup/index.css +1 -1
  86. package/components/lookup/index.esm.js +5776 -5305
  87. package/components/lookup/index.umd.cjs +1 -0
  88. package/components/mapping-editor/index.css +1 -1
  89. package/components/mapping-editor/index.esm.js +5496 -5036
  90. package/components/mapping-editor/index.umd.cjs +1 -0
  91. package/components/message-box/index.umd.cjs +1 -0
  92. package/components/modal/index.umd.cjs +1 -0
  93. package/components/nav/index.esm.js +383 -322
  94. package/components/nav/index.umd.cjs +3 -0
  95. package/components/notify/index.umd.cjs +1 -0
  96. package/components/number-range/index.esm.js +273 -269
  97. package/components/number-range/index.umd.cjs +1 -0
  98. package/components/number-spinner/index.esm.js +292 -283
  99. package/components/number-spinner/index.umd.cjs +1 -0
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1008 -925
  102. package/components/order/index.umd.cjs +1 -0
  103. package/components/page-footer/index.esm.js +98 -98
  104. package/components/page-footer/index.umd.cjs +1 -0
  105. package/components/page-header/index.esm.js +949 -847
  106. package/components/page-header/index.umd.cjs +1 -0
  107. package/components/pagination/index.esm.js +464 -403
  108. package/components/pagination/index.umd.cjs +1 -0
  109. package/components/popover/index.umd.cjs +1 -0
  110. package/components/progress/index.esm.js +226 -226
  111. package/components/progress/index.umd.cjs +3 -0
  112. package/components/property-editor/index.esm.js +1110 -1092
  113. package/components/property-editor/index.umd.cjs +3 -0
  114. package/components/property-panel/index.esm.js +520 -513
  115. package/components/property-panel/index.umd.cjs +1 -0
  116. package/components/query-solution/index.css +1 -1
  117. package/components/query-solution/index.esm.js +1714 -1575
  118. package/components/query-solution/index.umd.cjs +1 -0
  119. package/components/radio-button/index.esm.js +67 -67
  120. package/components/radio-button/index.umd.cjs +1 -0
  121. package/components/radio-group/index.esm.js +298 -289
  122. package/components/radio-group/index.umd.cjs +1 -0
  123. package/components/rate/index.esm.js +195 -190
  124. package/components/rate/index.umd.cjs +1 -0
  125. package/components/response-layout/index.esm.js +112 -112
  126. package/components/response-layout/index.umd.cjs +1 -0
  127. package/components/response-layout-editor/index.esm.js +902 -877
  128. package/components/response-layout-editor/index.umd.cjs +1 -0
  129. package/components/response-toolbar/index.esm.js +874 -778
  130. package/components/response-toolbar/index.umd.cjs +1 -0
  131. package/components/schema-selector/index.css +1 -1
  132. package/components/schema-selector/index.esm.js +4594 -4289
  133. package/components/schema-selector/index.umd.cjs +8 -0
  134. package/components/search-box/index.esm.js +126 -126
  135. package/components/search-box/index.umd.cjs +1 -0
  136. package/components/section/index.esm.js +645 -503
  137. package/components/section/index.umd.cjs +1 -0
  138. package/components/smoke-detector/index.esm.js +120 -120
  139. package/components/smoke-detector/index.umd.cjs +1 -0
  140. package/components/spacing-editor/index.umd.cjs +1 -0
  141. package/components/splitter/index.esm.js +421 -348
  142. package/components/splitter/index.umd.cjs +1 -0
  143. package/components/step/index.esm.js +219 -219
  144. package/components/step/index.umd.cjs +1 -0
  145. package/components/switch/index.esm.js +232 -222
  146. package/components/switch/index.umd.cjs +1 -0
  147. package/components/tabs/index.esm.js +1823 -1744
  148. package/components/tabs/index.umd.cjs +1 -0
  149. package/components/tags/index.esm.js +399 -401
  150. package/components/tags/index.umd.cjs +1 -0
  151. package/components/text/index.esm.js +164 -164
  152. package/components/text/index.umd.cjs +1 -0
  153. package/components/textarea/index.esm.js +220 -215
  154. package/components/textarea/index.umd.cjs +1 -0
  155. package/components/time-picker/index.esm.js +693 -666
  156. package/components/time-picker/index.umd.cjs +1 -0
  157. package/components/tooltip/index.umd.cjs +1 -0
  158. package/components/transfer/index.css +1 -1
  159. package/components/transfer/index.esm.js +422 -413
  160. package/components/transfer/index.umd.cjs +1 -0
  161. package/components/tree-grid/index.css +1 -1
  162. package/components/tree-grid/index.esm.js +4799 -4358
  163. package/components/tree-grid/index.umd.cjs +1 -0
  164. package/components/tree-view/index.esm.js +2448 -2215
  165. package/components/tree-view/index.umd.cjs +1 -0
  166. package/components/uploader/index.esm.js +164 -164
  167. package/components/uploader/index.umd.cjs +2 -0
  168. package/components/verify-detail/index.esm.js +143 -143
  169. package/components/verify-detail/index.umd.cjs +1 -0
  170. package/components/video/index.esm.js +410 -331
  171. package/components/video/index.umd.cjs +1 -0
  172. package/components/weather/index.esm.js +901 -901
  173. package/components/weather/index.umd.cjs +16 -0
  174. package/farris.all.esm.js +12305 -11403
  175. package/farris.all.umd.cjs +8 -8
  176. package/index.css +1 -1
  177. package/package.json +1 -1
  178. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  179. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  180. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  181. package/types/common/entity/entity-schema.d.ts +258 -0
  182. package/types/component/src/component-ref.props.d.ts +4 -0
  183. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  184. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  185. package/types/data-grid/index.d.ts +5 -2
  186. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  189. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  190. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  191. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  192. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  193. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  194. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  195. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  196. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  197. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  198. package/types/data-view/composition/types.d.ts +18 -6
  199. package/types/data-view/composition/use-edit.d.ts +2 -1
  200. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  201. package/types/designer-canvas/src/types.d.ts +2 -2
  202. package/types/dynamic-form/index.d.ts +2 -1
  203. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  204. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  205. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  206. package/types/dynamic-resolver/src/types.d.ts +3 -2
  207. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  208. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  209. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  210. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  211. package/types/tabs/src/composition/types.d.ts +2 -2
  212. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  213. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  214. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  215. package/types/tags/index.d.ts +36 -5
@@ -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 = {};
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;
1
+ import { defineComponent as j, ref as y, computed as h, createVNode as v, Teleport as q, createApp as U, onUnmounted as _, inject as D, watch as R, nextTick as L, onMounted as F, withDirectives as X, vShow as z, Fragment as J, mergeProps as S } from "vue";
2
+ import { cloneDeep as Q } from "lodash-es";
3
+ import { resolveAppearance as Y } from "../dynamic-resolver/index.esm.js";
4
+ import Z from "../tags/index.esm.js";
5
+ import K from "../popover/index.esm.js";
6
+ import { useDesignerComponent as ee } from "../designer-canvas/index.esm.js";
7
+ import { withInstall as te } from "../common/index.esm.js";
8
+ const ne = {}, oe = {};
9
+ function A(e) {
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 ? A(t[r]) : Q(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 ue(e, t) {
14
+ const u = A(t);
15
+ return Object.keys(e).reduce((o, n) => (o[n] && typeof o[n] == "object" ? 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 ae(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 le(e, t, u = /* @__PURE__ */ new Map()) {
33
+ const o = ue(e, t);
34
+ return ae(o, u);
35
35
  }
36
- function pe(e = {}) {
37
- function t(o, r, i, p) {
36
+ function ie(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 re = {}, se = {};
91
+ ie();
92
+ function ce(e, t, u = /* @__PURE__ */ new Map(), o = (c, r, b) => r, n = {}, l = (c) => c) {
93
+ return ne[t.title] = t, oe[t.title] = o, re[t.title] = n, se[t.title] = l, (c = {}) => {
94
+ const r = le(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 de = /* @__PURE__ */ new Map([
99
+ ["appearance", Y]
100
100
  ]);
101
- function me(e, t, a) {
101
+ function pe(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 fe = "https://json-schema.org/draft/2020-12/schema", be = "https://farris-design.gitee.io/button-edit.schema.json", ge = "button-edit", ye = "A Farris Input Component", me = "object", ve = {
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
+ }, he = [
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
+ ], Ce = {
292
+ $schema: fe,
293
+ $id: be,
294
+ title: ge,
295
+ description: ye,
296
+ type: me,
297
+ properties: ve,
298
+ required: he
299
+ }, Be = "buttonEdit", xe = "A Farris Component", Oe = "object", Te = {
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
+ }, ke = {
382
+ title: Be,
383
+ description: xe,
384
+ type: Oe,
385
+ categories: Te
386
+ }, V = {
387
387
  /**
388
388
  * 组件标识
389
389
  */
@@ -489,509 +489,527 @@ const ve = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-
489
489
  * 打开前
490
490
  */
491
491
  beforeOpen: { type: Function, default: null }
492
- }, A = ye(S, ke, ge, me, Ie), je = {
492
+ }, N = ce(V, Ce, de, pe, ke), we = {
493
493
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
494
494
  host: { type: Object },
495
495
  backgroundColor: { type: String, default: "" }
496
- }, Re = /* @__PURE__ */ R({
496
+ }, Ee = /* @__PURE__ */ j({
497
497
  name: "FOverlay",
498
- props: je,
498
+ props: we,
499
499
  emits: ["click"],
500
500
  setup(e, t) {
501
- const a = m(e.popupContentPosition), l = m(e.host), n = v(() => ({
501
+ const u = y(e.popupContentPosition), o = y(e.host), n = h(() => ({
502
502
  backgroundColor: e.backgroundColor || "",
503
503
  pointerEvents: "auto"
504
504
  }));
505
- function u(s) {
506
- t.emit("click"), s.preventDefault(), s.stopPropagation();
505
+ function l(r) {
506
+ t.emit("click"), r.preventDefault(), r.stopPropagation();
507
507
  }
508
- v(() => {
509
- const s = l.value;
510
- if (s) {
511
- const b = s.getBoundingClientRect(), {
512
- left: o,
513
- top: r,
508
+ h(() => {
509
+ const r = o.value;
510
+ if (r) {
511
+ const b = r.getBoundingClientRect(), {
512
+ left: a,
513
+ top: s,
514
514
  height: i
515
515
  } = b;
516
516
  return {
517
- left: o,
518
- top: r + i
517
+ left: a,
518
+ top: s + i
519
519
  };
520
520
  }
521
- return a.value;
521
+ return u.value;
522
522
  });
523
- const c = v(() => ({
523
+ const c = h(() => ({
524
524
  // position: 'relative',
525
525
  // left: `${position.value.left}px`,
526
526
  // top: `${position.value.top}px`
527
527
  }));
528
- return () => h(J, {
528
+ return () => v(q, {
529
529
  to: "body"
530
530
  }, {
531
531
  default: () => {
532
- var s, b;
533
- return [h("div", {
532
+ var r, b;
533
+ return [v("div", {
534
534
  class: "overlay-container",
535
- onClick: (o) => u(o),
535
+ onClick: (a) => l(a),
536
536
  style: n.value
537
- }, [h("div", {
537
+ }, [v("div", {
538
538
  style: c.value
539
- }, [(b = (s = t.slots).default) == null ? void 0 : b.call(s)])])];
539
+ }, [(b = (r = t.slots).default) == null ? void 0 : b.call(r)])])];
540
540
  }
541
541
  });
542
542
  }
543
543
  });
544
- function Fe(e) {
544
+ function Pe(e) {
545
545
  if (e.content && e.content.render)
546
546
  return e.content.render;
547
547
  if (e.render && typeof e.render == "function")
548
548
  return e.render;
549
549
  }
550
- function Se(e) {
550
+ function Me(e) {
551
551
  const t = document.createElement("div");
552
552
  t.style.display = "contents";
553
- let a;
554
- const l = e.onClickCallback || (() => {
553
+ let u;
554
+ const o = e.onClickCallback || (() => {
555
555
  }), n = () => {
556
- l(), a && a.unmount();
556
+ o(), u && u.unmount();
557
557
  };
558
- return a = Q({
558
+ return u = U({
559
559
  setup() {
560
- Y(() => {
560
+ _(() => {
561
561
  document.body.removeChild(t);
562
562
  });
563
- const u = Fe(e);
564
- return () => h(Re, {
563
+ const l = Pe(e);
564
+ return () => v(Ee, {
565
565
  "popup-content-position": e.popupPosition,
566
566
  host: e.host,
567
567
  onClick: n,
568
568
  backgroundColor: e.backgroundColor
569
569
  }, {
570
- default: () => [u && u()]
570
+ default: () => [l && l()]
571
571
  });
572
572
  }
573
- }), document.body.appendChild(t), a.mount(t), a;
573
+ }), document.body.appendChild(t), u.mount(t), u;
574
574
  }
575
- class Ve {
575
+ class Ie {
576
576
  static show(t) {
577
- return Se(t);
577
+ return Me(t);
578
578
  }
579
579
  }
580
- const De = Symbol("FModalService");
580
+ const je = Symbol("FModalService");
581
581
  function G(e, t) {
582
- function a() {
583
- const l = e.beforeOpen || e.beforeClickButton || null;
582
+ function u() {
583
+ const o = e.beforeOpen || e.beforeClickButton || null;
584
584
  let n = Promise.resolve(!0);
585
- if (l) {
586
- const u = l(t.value);
587
- if (typeof u > "u")
585
+ if (o) {
586
+ const l = o(t.value);
587
+ if (typeof l > "u")
588
588
  return n;
589
- typeof u == "boolean" ? n = Promise.resolve(u) : n = u;
589
+ typeof l == "boolean" ? n = Promise.resolve(l) : n = l;
590
590
  }
591
591
  return n;
592
592
  }
593
- return { judgeCanOpen: a };
593
+ return { judgeCanOpen: u };
594
594
  }
595
- function W(e, t, a, l, n) {
596
- const u = m(e.buttonBehavior), c = m(e.popupOnInput), s = v(() => ({
595
+ function $(e, t, u, o, n) {
596
+ const l = y(e.buttonBehavior), c = y(e.popupOnInput), r = h(() => ({
597
597
  "input-group-append": !0,
598
598
  "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,
599
+ })), { judgeCanOpen: b } = G(e, n), a = h(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), s = D(je, null), i = y();
600
+ async function p(m) {
601
+ if (await b() && a.value) {
602
+ const x = !!t.slots.default;
603
+ if (l.value === "Modal") {
604
+ const C = e.modalOptions, O = s == null ? void 0 : s.open({
605
+ ...C,
606
606
  render: () => t.slots.default && t.slots.default()
607
607
  });
608
- i.value = T == null ? void 0 : T.modalRef;
608
+ i.value = O == null ? void 0 : O.modalRef;
609
609
  }
610
- u.value === "Overlay" && Ve.show({
610
+ l.value === "Overlay" && Ie.show({
611
611
  // host: buttonEditRef.value,
612
612
  host: document.body,
613
613
  backgroundColor: "rgba(0,0,0,.15)",
614
614
  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 });
615
+ }), x && l.value === "Popup" && o.togglePopup(!0), x && c.value && o.hidePopup(), t.emit("clickButton", { origin: m, value: e.modelValue });
616
616
  }
617
617
  }
618
- function f(g) {
619
- t.emit("mouseEnterIcon", g);
618
+ function f(m) {
619
+ t.emit("mouseEnterIcon", m);
620
620
  }
621
- function y(g) {
622
- t.emit("mouseLeaveIcon", g);
621
+ function g(m) {
622
+ t.emit("mouseLeaveIcon", m);
623
623
  }
624
624
  return {
625
- buttonGroupClass: s,
625
+ buttonGroupClass: r,
626
626
  onClickButton: p,
627
627
  onMouseEnterButton: f,
628
- onMouseLeaveButton: y,
628
+ onMouseLeaveButton: g,
629
629
  modalRef: i
630
630
  };
631
631
  }
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) {
632
+ function Re(e, t, u, o, n, l) {
633
+ const c = y(!1), r = h(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: b } = l;
634
+ function a(f) {
635
635
  c.value = f;
636
636
  }
637
- I(n, () => {
638
- o(!!n.value);
637
+ R(n, () => {
638
+ a(!!n.value);
639
639
  });
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"));
640
+ function s(f) {
641
+ const g = !e.readonly && !e.disable && e.editable, m = !e.editable;
642
+ f.stopPropagation(), (g || m) && (b("", !1), a(!c.value), t.emit("clear"));
643
643
  }
644
644
  function i(f) {
645
- if (s.value) {
646
- if (!a.value) {
647
- o(!1);
645
+ if (r.value) {
646
+ if (!u.value) {
647
+ a(!1);
648
648
  return;
649
649
  }
650
- !e.disable && !e.readonly && o(!0);
650
+ !e.disable && !e.readonly && a(!0);
651
651
  }
652
652
  }
653
653
  function p(f) {
654
- s.value && o(!1);
654
+ r.value && a(!1);
655
655
  }
656
656
  return {
657
- enableClearButton: s,
657
+ enableClearButton: r,
658
658
  showClearButton: c,
659
- onClearValue: r,
659
+ onClearValue: s,
660
660
  onMouseEnterTextBox: i,
661
661
  onMouseLeaveTextBox: p
662
662
  };
663
663
  }
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(() => ({
664
+ function Fe(e, t, u, o, n) {
665
+ 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
666
  "text-left": e.textAlign === "left",
667
667
  "text-center": e.textAlign === "center",
668
668
  "text-right": e.textAlign === "right",
669
669
  "form-control": !0,
670
670
  "f-utils-fill": !0
671
- })), y = v(() => ({
671
+ })), g = h(() => ({
672
672
  "input-group": !0,
673
673
  "f-state-disable": e.disable,
674
674
  "f-state-editable": e.editable && !e.disable && !e.readonly,
675
675
  "f-state-readonly": e.readonly && !e.disable,
676
676
  "f-state-focus": p.value
677
677
  }));
678
- function g(d, x = !0) {
679
- a.value !== d && (a.value = d, x && t.emit("change", d), t.emit("update:modelValue", d));
678
+ function m(d, B = !0) {
679
+ u.value !== d && (u.value = d, B && t.emit("change", d), t.emit("update:modelValue", d));
680
680
  }
681
- function C(d) {
682
- s.value = !1, g(d, !0);
681
+ function x(d) {
682
+ r.value = !1, m(d, !0);
683
683
  }
684
- I(
684
+ R(
685
685
  () => e.modelValue,
686
686
  (d) => {
687
- a.value = d;
687
+ u.value = d;
688
688
  }
689
689
  );
690
- function B(d) {
690
+ function C(d) {
691
691
  i.value = !1, t.emit("blur", d), d.stopPropagation();
692
692
  }
693
- function T(d) {
693
+ function O(d) {
694
694
  t.emit("click", d);
695
695
  }
696
- function O(d) {
697
- e.disable || (i.value = !0, r.value || (t.emit("focus", d), c.value && !s.value && n.popup()));
696
+ function T(d) {
697
+ e.disable || (i.value = !0, s.value || (t.emit("focus", d), c.value && !r.value && n.popup()));
698
698
  }
699
699
  function k(d) {
700
700
  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();
701
+ const B = d.target.value;
702
+ o.value = B, u.value !== B && m(B, !0), l.value && !r.value && n.popup();
703
703
  }
704
- function w(d) {
704
+ function M(d) {
705
705
  d.target.tagName !== "INPUT" && d.preventDefault(), d.stopPropagation();
706
706
  }
707
- function E(d) {
707
+ function w(d) {
708
708
  t.emit("keydown", d);
709
709
  }
710
- function j(d) {
711
- d.key === "Enter" && (u.value || c.value) && n.hidePopup(), t.emit("keyup", d);
710
+ function I(d) {
711
+ d.key === "Enter" && (l.value || c.value) && n.hidePopup(), t.emit("keyup", d);
712
712
  }
713
- function P(d) {
714
- const x = d.target.value;
715
- d.stopPropagation(), g(x);
713
+ function E(d) {
714
+ const B = d.target.value;
715
+ d.stopPropagation(), m(B);
716
716
  }
717
717
  return {
718
718
  hasFocusedTextBox: p,
719
- isTextBoxReadonly: r,
719
+ isTextBoxReadonly: s,
720
720
  textBoxClass: f,
721
- textBoxPlaceholder: o,
721
+ textBoxPlaceholder: a,
722
722
  textBoxTitle: b,
723
- inputGroupClass: y,
724
- changeTextBoxValue: g,
725
- commitValue: C,
726
- onBlurTextBox: B,
727
- onClickTextBox: T,
728
- onFocusTextBox: O,
723
+ inputGroupClass: g,
724
+ changeTextBoxValue: m,
725
+ commitValue: x,
726
+ onBlurTextBox: C,
727
+ onClickTextBox: O,
728
+ onFocusTextBox: T,
729
729
  onInput: k,
730
- onKeyDownTextBox: E,
731
- onKeyUpTextBox: j,
732
- onMouseDownTextBox: w,
733
- onTextBoxValueChange: P
730
+ onKeyDownTextBox: w,
731
+ onKeyUpTextBox: I,
732
+ onMouseDownTextBox: M,
733
+ onTextBoxValueChange: E
734
734
  };
735
735
  }
736
- function q(e, t, a, l) {
737
- const n = m(), u = m(!1), { judgeCanOpen: c } = G(e, l);
738
- function s() {
736
+ function W(e, t, u, o) {
737
+ const n = y(), l = y(!1), { judgeCanOpen: c } = G(e, o);
738
+ function r() {
739
739
  const i = n.value;
740
- i && i.show(a.value);
740
+ i && i.show(u.value);
741
741
  }
742
742
  async function b(i = !1) {
743
743
  if (!!t.slots.default) {
744
- if (!i && !u.value && !await c())
744
+ if (!i && !l.value && !await c())
745
745
  return;
746
- u.value = !u.value, await V(), s();
746
+ l.value = !l.value, await L(), r();
747
747
  }
748
748
  }
749
- async function o(i = !1) {
749
+ async function a(i = !1) {
750
750
  if (!!t.slots.default) {
751
751
  if (!i && !await c())
752
752
  return;
753
- u.value = !0, await V(), s();
753
+ l.value = !0, await L(), r();
754
754
  }
755
755
  }
756
- function r() {
757
- u.value = !1;
756
+ function s() {
757
+ l.value = !1;
758
758
  }
759
- return { hidePopup: r, popup: o, shouldPopupContent: u, togglePopup: b, popoverRef: n };
759
+ return { hidePopup: s, popup: a, shouldPopupContent: l, togglePopup: b, popoverRef: n };
760
760
  }
761
- function U(e, t, a) {
762
- const l = m(), {
761
+ function Ve(e, t, u) {
762
+ const o = y(), {
763
763
  isTextBoxReadonly: n,
764
- textBoxClass: u,
764
+ textBoxClass: l,
765
765
  textBoxPlaceholder: c,
766
- textBoxTitle: s,
766
+ textBoxTitle: r,
767
767
  onBlurTextBox: b,
768
- onClickTextBox: o,
769
- onFocusTextBox: r,
768
+ onClickTextBox: a,
769
+ onFocusTextBox: s,
770
770
  onInput: i,
771
771
  onKeyDownTextBox: p,
772
772
  onKeyUpTextBox: f,
773
- onMouseDownTextBox: y,
774
- onTextBoxValueChange: g
775
- } = a;
773
+ onMouseDownTextBox: g,
774
+ onTextBoxValueChange: m
775
+ } = u;
776
776
  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,
777
+ var x, C;
778
+ e.selectOnCreated && ((x = o.value) == null || x.select()), e.focusOnCreated && ((C = o.value) == null || C.focus());
779
+ }), () => v("input", {
780
+ ref: o,
781
781
  name: "input-group-value",
782
782
  autocomplete: e.autoComplete ? "on" : "off",
783
- class: u.value,
783
+ class: l.value,
784
784
  disabled: e.disable,
785
785
  maxlength: e.maxLength,
786
786
  minlength: e.minLength,
787
787
  placeholder: c.value,
788
788
  readonly: n.value,
789
789
  tabindex: e.tabIndex,
790
- title: s.value,
790
+ title: r.value,
791
791
  type: e.inputType,
792
792
  value: t.value,
793
793
  onBlur: b,
794
- onChange: g,
795
- onClick: o,
796
- onFocus: r,
794
+ onChange: m,
795
+ onClick: a,
796
+ onFocus: s,
797
797
  onInput: i,
798
798
  onKeydown: p,
799
799
  onKeyup: f,
800
- onMousedown: y
800
+ onMousedown: g
801
801
  }, null);
802
802
  }
803
- function _(e, t, a) {
804
- const l = m(e.separator), {
803
+ function Le(e, t, u) {
804
+ const o = y(e.separator), {
805
805
  changeTextBoxValue: n
806
- } = a, u = v(() => t.value ? t.value.split(l.value).map((s) => ({
807
- name: s,
806
+ } = u, l = h(() => t.value ? t.value.split(o.value).map((r) => ({
807
+ name: r,
808
808
  selectable: !0
809
809
  })) : []);
810
- function c(s) {
811
- n(s.map((b) => b.name).join(l.value), !0);
810
+ function c(r) {
811
+ n(r.map((b) => b.name).join(o.value), !0);
812
812
  }
813
- return () => h(oe, {
813
+ return () => v(Z, {
814
814
  id: `${e.id}-tag-editor`,
815
815
  class: "form-control",
816
- data: u.value,
816
+ data: l.value,
817
817
  showClose: !0,
818
818
  showInput: !0,
819
819
  onChange: c
820
820
  }, null);
821
821
  }
822
- function X(e, t, a, l) {
822
+ function De(e, t, u, o) {
823
823
  const {
824
824
  buttonGroupClass: n,
825
- onClickButton: u,
825
+ onClickButton: l,
826
826
  onMouseEnterButton: c,
827
- onMouseLeaveButton: s
828
- } = a, {
827
+ onMouseLeaveButton: r
828
+ } = u, {
829
829
  enableClearButton: b,
830
- showClearButton: o,
831
- onClearValue: r
832
- } = l, i = m();
830
+ showClearButton: a,
831
+ onClearValue: s
832
+ } = o, i = y();
833
833
  return {
834
- renderButtonGroup: () => h("div", {
834
+ renderButtonGroup: () => v("div", {
835
835
  id: `${e.id}-button-group`,
836
836
  class: n.value
837
- }, [b.value && Z(h("span", {
837
+ }, [b.value && X(v("span", {
838
838
  class: "input-group-text input-group-clear",
839
- onClick: r
840
- }, [h("i", {
839
+ onClick: s
840
+ }, [v("i", {
841
841
  class: "f-icon modal_close"
842
- }, null)]), [[K, o.value]]), t.slots.buttonContent ? h("span", {
842
+ }, null)]), [[z, a.value]]), t.slots.buttonContent ? v("span", {
843
843
  class: "input-group-text input-group-append-button",
844
- onClick: u,
844
+ onClick: l,
845
845
  onMouseenter: c,
846
- onMouseleave: s
847
- }, [t.slots.buttonContent()]) : e.buttonContent ? h("span", {
846
+ onMouseleave: r
847
+ }, [t.slots.buttonContent()]) : e.buttonContent ? v("span", {
848
848
  class: "input-group-text input-group-append-button",
849
849
  innerHTML: e.buttonContent,
850
850
  ref: i,
851
- onClick: u,
851
+ onClick: l,
852
852
  onMouseenter: c,
853
- onMouseleave: s
853
+ onMouseleave: r
854
854
  }, null) : null]),
855
855
  buttonHandleElement: i
856
856
  };
857
857
  }
858
- function Le(e, t, a) {
859
- const l = m(e.popupMinWidth), {
858
+ function Se(e, t, u) {
859
+ const o = y(e.popupMinWidth), {
860
860
  hidePopup: n,
861
- popoverRef: u
862
- } = a;
863
- return () => h(ue, {
861
+ popoverRef: l
862
+ } = u;
863
+ return () => v(K, {
864
864
  id: `${e.id}-popover`,
865
- ref: u,
865
+ ref: l,
866
866
  visible: !0,
867
867
  placement: "bottom-left",
868
868
  host: e.popupHost,
869
869
  "keep-width-with-reference": !0,
870
870
  fitContent: !0,
871
871
  "right-boundary": e.popupRightBoundary,
872
- minWidth: l.value,
872
+ minWidth: o.value,
873
873
  offsetX: e.popupOffsetX,
874
874
  onHidden: n
875
875
  }, {
876
876
  default: () => {
877
- var c, s;
878
- return [(s = (c = t.slots).default) == null ? void 0 : s.call(c)];
877
+ var c, r;
878
+ return [(r = (c = t.slots).default) == null ? void 0 : r.call(c)];
879
879
  }
880
880
  });
881
881
  }
882
- const M = /* @__PURE__ */ R({
882
+ const P = /* @__PURE__ */ j({
883
883
  name: "FButtonEdit",
884
- props: S,
884
+ props: V,
885
885
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
886
886
  setup(e, t) {
887
- const a = m(), l = m(e.customClass), n = m(e.modelValue), u = q(e, t, a, n), {
887
+ const u = y(), o = y(e.customClass), n = y(e.modelValue), l = W(e, t, u, n), {
888
888
  shouldPopupContent: c,
889
- hidePopup: s,
889
+ hidePopup: r,
890
890
  togglePopup: b
891
- } = u, o = W(e, t, a, u, n), r = m(""), i = H(e, t, n, r, u), {
891
+ } = l, a = $(e, t, u, l, n), s = y(""), i = Fe(e, t, n, s, l), {
892
892
  hasFocusedTextBox: p,
893
893
  commitValue: f,
894
- inputGroupClass: y
895
- } = i, g = $(e, t, n, p, r, i), {
896
- onMouseEnterTextBox: C,
897
- onMouseLeaveTextBox: B
898
- } = g, T = v(() => {
894
+ inputGroupClass: g
895
+ } = i, m = Re(e, t, n, p, s, i), {
896
+ onMouseEnterTextBox: x,
897
+ onMouseLeaveTextBox: C
898
+ } = m, O = h(() => {
899
899
  const d = {
900
900
  "f-button-edit": !0,
901
901
  "f-cmp-inputgroup": !0,
902
902
  "f-button-edit-nowrap": !e.wrapText
903
903
  };
904
- return l.value && l.value.split(" ").reduce((x, z) => (x[z] = !0, x), d), d;
904
+ return o.value && o.value.split(" ").reduce((B, H) => (B[H] = !0, B), d), d;
905
905
  });
906
- function O() {
907
- return e.multiSelect && e.inputType === "tag" ? _(e, n, i) : U(e, n, i);
906
+ function T() {
907
+ return e.multiSelect && e.inputType === "tag" ? Le(e, n, i) : Ve(e, n, i);
908
908
  }
909
- let k = O();
910
- I([() => e.multiSelect, () => e.inputType], () => {
911
- k = O();
909
+ let k = T();
910
+ R([() => e.multiSelect, () => e.inputType], () => {
911
+ k = T();
912
912
  });
913
913
  const {
914
- renderButtonGroup: w,
915
- buttonHandleElement: E
916
- } = X(e, t, o, g), j = Le(e, t, u), P = {
914
+ renderButtonGroup: M,
915
+ buttonHandleElement: w
916
+ } = De(e, t, a, m), I = Se(e, t, l), E = {
917
917
  commitValue: f,
918
- elementRef: a,
919
- hidePopup: s,
918
+ elementRef: u,
919
+ hidePopup: r,
920
920
  shouldPopupContent: c,
921
921
  togglePopup: b,
922
922
  openDialog: () => {
923
- E.value && e.buttonBehavior === "Modal" && E.value.click();
923
+ w.value && e.buttonBehavior === "Modal" && w.value.click();
924
924
  },
925
925
  getModal: () => {
926
926
  var d;
927
- return e.buttonBehavior === "Modal" ? (d = o.modalRef.value) == null ? void 0 : d.value : null;
927
+ return e.buttonBehavior === "Modal" ? (d = a.modalRef.value) == null ? void 0 : d.value : null;
928
928
  }
929
929
  };
930
930
  return F(() => {
931
- a.value.componentInstance = P, window.onresize = () => {
931
+ u.value.componentInstance = E, window.onresize = () => {
932
932
  document.body.click();
933
933
  };
934
- }), t.expose(P), () => h(ee, null, [h("div", L(t.attrs, {
935
- ref: a,
936
- class: T.value,
934
+ }), t.expose(E), () => v(J, null, [v("div", S(t.attrs, {
935
+ ref: u,
936
+ class: O.value,
937
937
  id: e.id
938
- }), [h("div", {
938
+ }), [v("div", {
939
939
  id: `${e.id}-input-group`,
940
- class: y.value,
941
- onMouseenter: C,
942
- onMouseleave: B
943
- }, [k(), w()])]), c.value && j()]);
940
+ class: g.value,
941
+ onMouseenter: x,
942
+ onMouseleave: C
943
+ }, [k(), M()])]), c.value && I()]);
944
944
  }
945
- }), Ne = /* @__PURE__ */ R({
945
+ });
946
+ function Ae(e, t, u) {
947
+ const {
948
+ buttonGroupClass: o
949
+ } = u, n = y();
950
+ return {
951
+ renderButtonGroup: () => v("div", {
952
+ id: `${e.id}-button-group`,
953
+ class: o.value
954
+ }, [t.slots.buttonContent ? v("span", {
955
+ class: "input-group-text input-group-append-button"
956
+ }, [t.slots.buttonContent()]) : e.buttonContent ? v("span", {
957
+ class: "input-group-text input-group-append-button",
958
+ innerHTML: e.buttonContent,
959
+ ref: n
960
+ }, null) : null]),
961
+ buttonHandleElement: n
962
+ };
963
+ }
964
+ const Ne = /* @__PURE__ */ j({
946
965
  name: "FButtonEdit",
947
- props: S,
966
+ props: V,
948
967
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
949
968
  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);
969
+ const u = y(), o = D("design-item-context"), n = ee(u, o), l = y(e.customClass), c = y(e.modelValue), r = W(e, t, u, c), b = $(e, t, u, r, c), a = y(), s = h(() => ({
970
+ "f-cmp-inputgroup": !0,
971
+ "input-group": !0,
972
+ "f-state-disable": !0,
973
+ "f-state-editable": !1,
974
+ "f-state-readonly": !0
975
+ }));
954
976
  F(() => {
955
- a.value.componentInstance = n;
977
+ u.value.componentInstance = n;
956
978
  }), t.expose(n.value);
957
- const y = v(() => {
958
- const O = {
979
+ const i = h(() => {
980
+ const f = {
959
981
  "f-button-edit": !0,
960
982
  "f-cmp-inputgroup": !0,
961
983
  "f-button-edit-nowrap": !e.wrapText
962
984
  };
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,
985
+ return l.value && l.value.split(" ").reduce((g, m) => (g[m] = !0, g), f), f;
986
+ }), {
987
+ renderButtonGroup: p
988
+ } = Ae(e, t, b);
989
+ return () => v("div", S(t.attrs, {
990
+ ref: u,
991
+ class: i.value,
979
992
  id: e.id
980
- }), [h("div", {
981
- class: p.value
982
- }, [C(), B()])]);
993
+ }), [v("div", {
994
+ class: s.value
995
+ }, [v("input", {
996
+ ref: a,
997
+ class: "form-control",
998
+ readonly: !0,
999
+ placeholder: e.placeholder
1000
+ }, null), p()])]);
983
1001
  }
984
1002
  });
985
- M.register = (e, t, a, l) => {
986
- e["button-edit"] = M, t["button-edit"] = A;
1003
+ P.register = (e, t, u, o) => {
1004
+ e["button-edit"] = P, t["button-edit"] = N;
987
1005
  };
988
- M.registerDesigner = (e, t, a) => {
989
- e["button-edit"] = Ne, t["button-edit"] = A;
1006
+ P.registerDesigner = (e, t, u) => {
1007
+ e["button-edit"] = Ne, t["button-edit"] = N;
990
1008
  };
991
- const _e = le(M);
1009
+ const Xe = te(P);
992
1010
  export {
993
- M as FButtonEdit,
994
- S as buttonEditProps,
995
- _e as default,
996
- A as propsResolver
1011
+ P as FButtonEdit,
1012
+ V as buttonEditProps,
1013
+ Xe as default,
1014
+ N as propsResolver
997
1015
  };