@farris/ui-vue 1.2.7 → 1.2.8

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