@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,22 +1,22 @@
1
1
  var ae = Object.defineProperty;
2
2
  var re = (e, t, n) => t in e ? ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var P = (e, t, n) => re(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as h, computed as y, watch as D, onMounted as j, nextTick as z, createVNode as T, reactive as ie, withDirectives as le, resolveDirective as ue, defineComponent as Q, Fragment as J, inject as Z } from "vue";
3
+ var A = (e, t, n) => re(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { ref as b, computed as y, watch as V, onMounted as G, nextTick as z, createVNode as B, reactive as ie, withDirectives as le, resolveDirective as ue, defineComponent as Q, Fragment as J, inject as Z } from "vue";
5
5
  import { cloneDeep as se } from "lodash-es";
6
6
  import "bignumber.js";
7
7
  import { useNumber as ce, useFormat as de, useSpinner as pe, useTextBox as fe } from "../number-spinner/index.esm.js";
8
8
  import { getSchemaByType as _ } from "../dynamic-resolver/index.esm.js";
9
9
  const X = {}, Y = {};
10
10
  function q(e) {
11
- const { properties: t, title: n } = e, o = Object.keys(t).reduce((a, c) => (a[c] = t[c].type === "object" && t[c].properties ? q(t[c]) : se(t[c].default), a), {});
12
- return o.id = `${n}-${Date.now()}`, o;
11
+ const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), d = Object.keys(t).reduce((s, i) => ((!a || !o.find((u) => u == i)) && (s[i] = t[i].type === "object" && t[i].properties ? q(t[i]) : se(t[i].default)), s), {});
12
+ return (!a || !o.find((s) => s == "id")) && (d.id = `${n}-${Date.now()}`), d;
13
13
  }
14
- function I(e, t = {}) {
15
- const n = X[e];
16
- if (n) {
17
- let o = q(n);
18
- const a = Y[e];
19
- return o = a ? a({ getSchemaByType: I }, o, t) : o, o;
14
+ function I(e, t = {}, n) {
15
+ const o = X[e];
16
+ if (o) {
17
+ let a = q(o);
18
+ const d = Y[e];
19
+ return a = d ? d({ getSchemaByType: I }, a, t, n) : a, a;
20
20
  }
21
21
  return null;
22
22
  }
@@ -27,12 +27,12 @@ function me(e, t) {
27
27
  function ye(e, t) {
28
28
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
29
29
  if (t.has(a)) {
30
- const c = t.get(a);
31
- if (typeof c == "string")
32
- o[c] = e[a];
30
+ const d = t.get(a);
31
+ if (typeof d == "string")
32
+ o[d] = e[a];
33
33
  else {
34
- const d = c(a, e[a], e);
35
- Object.assign(o, d);
34
+ const s = d(a, e[a], e);
35
+ Object.assign(o, s);
36
36
  }
37
37
  } else
38
38
  o[a] = e[a];
@@ -44,11 +44,11 @@ function ve(e, t, n = /* @__PURE__ */ new Map()) {
44
44
  return ye(o, n);
45
45
  }
46
46
  function ge(e = {}) {
47
- function t(r, s, i, p) {
48
- if (typeof i == "number")
49
- return p[r].length === i;
50
- if (typeof i == "object") {
51
- const m = Object.keys(i)[0], v = i[m];
47
+ function t(r, c, l, p) {
48
+ if (typeof l == "number")
49
+ return p[r].length === l;
50
+ if (typeof l == "object") {
51
+ const m = Object.keys(l)[0], v = l[m];
52
52
  if (m === "not")
53
53
  return Number(p[r].length) !== Number(v);
54
54
  if (m === "moreThan")
@@ -58,44 +58,44 @@ function ge(e = {}) {
58
58
  }
59
59
  return !1;
60
60
  }
61
- function n(r, s, i, p) {
62
- return p[r] && p[r].propertyValue && String(p[r].propertyValue.value) === String(i);
61
+ function n(r, c, l, p) {
62
+ return p[r] && p[r].propertyValue && String(p[r].propertyValue.value) === String(l);
63
63
  }
64
64
  const o = /* @__PURE__ */ new Map([
65
65
  ["length", t],
66
66
  ["getProperty", n]
67
67
  ]);
68
- Object.keys(e).reduce((r, s) => (r.set(s, e[s]), r), o);
69
- function a(r, s) {
70
- const i = r;
71
- return typeof s == "number" ? [{ target: i, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: i, operator: "getProperty", param: r, value: !!s }] : typeof s == "object" ? Object.keys(s).map((p) => {
68
+ Object.keys(e).reduce((r, c) => (r.set(c, e[c]), r), o);
69
+ function a(r, c) {
70
+ const l = r;
71
+ return typeof c == "number" ? [{ target: l, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: l, operator: "getProperty", param: r, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
72
72
  if (p === "length")
73
- return { target: i, operator: "length", param: null, value: s[p] };
74
- const m = p, v = s[p];
75
- return { target: i, operator: "getProperty", param: m, value: v };
73
+ return { target: l, operator: "length", param: null, value: c[p] };
74
+ const m = p, v = c[p];
75
+ return { target: l, operator: "getProperty", param: m, value: v };
76
76
  }) : [];
77
77
  }
78
- function c(r) {
79
- return Object.keys(r).reduce((i, p) => {
78
+ function d(r) {
79
+ return Object.keys(r).reduce((l, p) => {
80
80
  const m = a(p, r[p]);
81
- return i.push(...m), i;
81
+ return l.push(...m), l;
82
82
  }, []);
83
83
  }
84
- function d(r, s) {
84
+ function s(r, c) {
85
85
  if (o.has(r.operator)) {
86
- const i = o.get(r.operator);
87
- return i && i(r.target, r.param, r.value, s) || !1;
86
+ const l = o.get(r.operator);
87
+ return l && l(r.target, r.param, r.value, c) || !1;
88
88
  }
89
89
  return !1;
90
90
  }
91
- function u(r, s) {
92
- return c(r).reduce((m, v) => m && d(v, s), !0);
91
+ function i(r, c) {
92
+ return d(r).reduce((m, v) => m && s(v, c), !0);
93
93
  }
94
- function l(r, s) {
95
- const i = Object.keys(r), p = i.includes("allOf"), m = i.includes("anyOf"), v = p || m, k = (v ? r[v ? p ? "allOf" : "anyOf" : "allOf"] : [r]).map((A) => u(A, s));
96
- return p ? !k.includes(!1) : k.includes(!0);
94
+ function u(r, c) {
95
+ const l = Object.keys(r), p = l.includes("allOf"), m = l.includes("anyOf"), v = p || m, T = (v ? r[v ? p ? "allOf" : "anyOf" : "allOf"] : [r]).map((E) => i(E, c));
96
+ return p ? !T.includes(!1) : T.includes(!0);
97
97
  }
98
- return { parseValueSchema: l };
98
+ return { parseValueSchema: u };
99
99
  }
100
100
  const f = {
101
101
  button: { type: "button", name: "按钮", icon: "Button" },
@@ -135,12 +135,12 @@ const f = {
135
135
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
136
136
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
137
137
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
138
- }, he = {}, be = {};
138
+ }, be = {}, he = {};
139
139
  ge();
140
- function Ce(e, t, n = /* @__PURE__ */ new Map(), o = (d, u, l) => u, a = {}, c = (d) => d) {
141
- return X[t.title] = t, Y[t.title] = o, he[t.title] = a, be[t.title] = c, (d = {}) => {
142
- const u = ve(d, t, n), l = Object.keys(e).reduce((r, s) => (r[s] = e[s].default, r), {});
143
- return Object.assign(l, u);
140
+ function Ce(e, t, n = /* @__PURE__ */ new Map(), o = (s, i, u) => i, a = {}, d = (s) => s) {
141
+ return X[t.title] = t, Y[t.title] = o, be[t.title] = a, he[t.title] = d, (s = {}) => {
142
+ const i = ve(s, t, n), u = Object.keys(e).reduce((r, c) => (r[c] = e[c].default, r), {});
143
+ return Object.assign(u, i);
144
144
  };
145
145
  }
146
146
  function we(e, t) {
@@ -433,97 +433,97 @@ const ke = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-
433
433
  updateOn: { type: String, default: "blur" }
434
434
  }, R = Ce(W, Fe, Be, Te);
435
435
  function De(e, t, n, o) {
436
- const a = h(e.disabled), c = h(!1), d = h("text"), u = h(e.showBorder), l = h(e.textAlign), r = h(e.updateOn), s = y(() => e.editable || !e.readonly), i = y(() => e.editable && !e.disabled && !e.readonly), p = y(() => !e.disabled && c.value), m = y(() => n.value === "" || n.value === null || n.value === void 0), v = y(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), w = y(() => e.readonly || !e.editable), x = y(() => e.enableTitle ? n.value : ""), k = y(() => ({
436
+ const a = b(e.disabled), d = b(!1), s = b("text"), i = b(e.showBorder), u = b(e.textAlign), r = b(e.updateOn), c = y(() => e.editable || !e.readonly), l = y(() => e.editable && !e.disabled && !e.readonly), p = y(() => !e.disabled && d.value), m = y(() => n.value === "" || n.value === null || n.value === void 0), v = y(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), C = y(() => e.readonly || !e.editable), x = y(() => e.enableTitle ? n.value : ""), T = y(() => ({
437
437
  "form-control": !0,
438
438
  "f-utils-fill": !0,
439
- "text-left": l.value === "left",
440
- "text-center": l.value === "center",
441
- "text-right": l.value === "right"
439
+ "text-left": u.value === "left",
440
+ "text-center": u.value === "center",
441
+ "text-right": u.value === "right"
442
442
  })), S = y(() => {
443
443
  const g = {
444
444
  "f-cmp-inputgroup": !0,
445
445
  "input-group": !0,
446
446
  "f-state-disable": a.value,
447
- "f-state-editable": i.value,
448
- "f-state-readonly": w.value,
447
+ "f-state-editable": l.value,
448
+ "f-state-readonly": C.value,
449
449
  "f-state-focus": p.value
450
450
  };
451
451
  return (e.customClass || "").split(" ").reduce((H, oe) => (H[oe] = !0, H), g), g;
452
- }), A = y(() => u.value ? "" : "border-width : 0 ");
453
- function M(g, E = !0) {
454
- n.value = g, o.value !== g && (o.value = g), E && t.emit("change", g), t.emit("update:modelValue", g), t.emit("update:value", g);
452
+ }), E = y(() => i.value ? "" : "border-width : 0 ");
453
+ function k(g, F = !0) {
454
+ n.value = g, o.value !== g && (o.value = g), F && t.emit("change", g), t.emit("update:modelValue", g), t.emit("update:value", g);
455
455
  }
456
- D(
456
+ V(
457
457
  () => e.modelValue,
458
- (g, E) => {
459
- g !== E && (n.value = g, o.value = g);
458
+ (g, F) => {
459
+ g !== F && (n.value = g, o.value = g);
460
460
  }
461
- ), D(() => e.disabled, (g, E) => {
462
- g !== E && (a.value = g);
461
+ ), V(() => e.disabled, (g, F) => {
462
+ g !== F && (a.value = g);
463
463
  });
464
- function V(g) {
465
- return c.value = !1, t.emit("blur", g), g.stopPropagation(), !1;
464
+ function O(g) {
465
+ return d.value = !1, t.emit("blur", g), g.stopPropagation(), !1;
466
466
  }
467
- function b(g) {
467
+ function h(g) {
468
468
  t.emit("click", g);
469
469
  }
470
- function C(g) {
471
- e.disabled || (u.value && (c.value = !0), s.value && t.emit("focus", g));
470
+ function w(g) {
471
+ e.disabled || (i.value && (d.value = !0), c.value && t.emit("focus", g));
472
472
  }
473
- function B(g) {
473
+ function M(g) {
474
474
  t.emit("input", g.target.value);
475
- const E = g.target.value;
476
- o.value = E, r.value === "input" && (t.emit("update:modelValue", E), t.emit("update:value", E));
475
+ const F = g.target.value;
476
+ o.value = F, r.value === "input" && (t.emit("update:modelValue", F), t.emit("update:value", F));
477
477
  }
478
- function O(g) {
478
+ function P(g) {
479
479
  t.emit("keydown", g);
480
480
  }
481
- function G(g) {
481
+ function N(g) {
482
482
  t.emit("keyup", g);
483
483
  }
484
- function F(g) {
484
+ function D(g) {
485
485
  g.target.tagName !== "INPUT" && g.preventDefault(), g.stopPropagation();
486
486
  }
487
487
  function U(g) {
488
488
  if (r.value === "blur") {
489
- const E = g.target.value;
490
- g.stopPropagation(), M(E);
489
+ const F = g.target.value;
490
+ g.stopPropagation(), k(F);
491
491
  }
492
492
  }
493
493
  return {
494
- changeTextBoxValue: M,
494
+ changeTextBoxValue: k,
495
495
  disabled: a,
496
496
  displayText: o,
497
- editable: i,
497
+ editable: l,
498
498
  hasFocused: p,
499
499
  inputGroupClass: S,
500
- inputType: d,
500
+ inputType: s,
501
501
  isEmpty: m,
502
502
  modelValue: n,
503
- readonly: w,
504
- onBlur: V,
505
- onClick: b,
506
- onFocus: C,
507
- onInput: B,
508
- onKeydown: O,
509
- onKeyup: G,
510
- onMousedown: F,
503
+ readonly: C,
504
+ onBlur: O,
505
+ onClick: h,
506
+ onFocus: w,
507
+ onInput: M,
508
+ onKeydown: P,
509
+ onKeyup: N,
510
+ onMousedown: D,
511
511
  onTextBoxValueChange: U,
512
512
  placeholder: v,
513
- textBoxClass: k,
513
+ textBoxClass: T,
514
514
  textBoxTitle: x,
515
- inputGroupStyle: A
515
+ inputGroupStyle: E
516
516
  };
517
517
  }
518
518
  function Ve(e, t, n, o) {
519
- const a = h(e.disabled), c = h(!1), d = h("text"), u = h(e.showBorder), l = h(e.textAlign);
519
+ const a = b(e.disabled), d = b(!1), s = b("text"), i = b(e.showBorder), u = b(e.textAlign);
520
520
  y(() => e.editable || !e.readonly);
521
- const r = y(() => e.editable && !e.disabled && !e.readonly), s = y(() => !e.disabled && c.value), i = y(() => n.value === "" || n.value === null || n.value === void 0), p = y(() => e.placeholder), m = y(() => e.readonly || !e.editable), v = y(() => e.enableTitle ? n.value : ""), w = y(() => ({
521
+ const r = y(() => e.editable && !e.disabled && !e.readonly), c = y(() => !e.disabled && d.value), l = y(() => n.value === "" || n.value === null || n.value === void 0), p = y(() => e.placeholder), m = y(() => e.readonly || !e.editable), v = y(() => e.enableTitle ? n.value : ""), C = y(() => ({
522
522
  "form-control": !0,
523
523
  // 'f-utils-fill': true,
524
- "text-left": l.value === "left",
525
- "text-center": l.value === "center",
526
- "text-right": l.value === "right"
524
+ "text-left": u.value === "left",
525
+ "text-center": u.value === "center",
526
+ "text-right": u.value === "right"
527
527
  })), x = y(() => ({
528
528
  "f-cmp-inputgroup": !0,
529
529
  "input-group": !0,
@@ -531,16 +531,16 @@ function Ve(e, t, n, o) {
531
531
  "f-state-editable": !1,
532
532
  "f-state-readonly": !0
533
533
  // 'f-state-focus': hasFocused.value
534
- })), k = y(() => u.value ? "" : "border-width : 0 ");
534
+ })), T = y(() => i.value ? "" : "border-width : 0 ");
535
535
  return {
536
536
  // changeTextBoxValue,
537
537
  disabled: a,
538
538
  displayText: o,
539
539
  editable: r,
540
- hasFocused: s,
540
+ hasFocused: c,
541
541
  inputGroupClass: x,
542
- inputType: d,
543
- isEmpty: i,
542
+ inputType: s,
543
+ isEmpty: l,
544
544
  modelValue: n,
545
545
  readonly: m,
546
546
  // onBlur,
@@ -552,36 +552,36 @@ function Ve(e, t, n, o) {
552
552
  // onMousedown,
553
553
  // onTextBoxValueChange,
554
554
  placeholder: p,
555
- textBoxClass: w,
555
+ textBoxClass: C,
556
556
  textBoxTitle: v,
557
- inputGroupStyle: k
557
+ inputGroupStyle: T
558
558
  };
559
559
  }
560
560
  function K(e, t, n) {
561
- const o = h(!1), a = y(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: c, displayText: d, hasFocused: u, isEmpty: l } = n;
562
- function r(w) {
563
- o.value = w;
561
+ const o = b(!1), a = y(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: d, displayText: s, hasFocused: i, isEmpty: u } = n;
562
+ function r(C) {
563
+ o.value = C;
564
564
  }
565
- D(d, () => {
566
- u != null && u.value ? r(!!(d != null && d.value)) : r(!1);
565
+ V(s, () => {
566
+ i != null && i.value ? r(!!(s != null && s.value)) : r(!1);
567
567
  });
568
- const s = y(() => ({
568
+ const c = y(() => ({
569
569
  "input-group-text": !0,
570
570
  "input-group-clear": !0
571
- })), i = y(() => ({
571
+ })), l = y(() => ({
572
572
  width: "24px",
573
573
  display: o.value ? "flex" : "none"
574
574
  }));
575
- function p(w) {
576
- w.stopPropagation(), a.value && (c("", !0), r(!o.value), t.emit("clear"));
575
+ function p(C) {
576
+ C.stopPropagation(), a.value && (d("", !0), r(!o.value), t.emit("clear"));
577
577
  }
578
- function m(w) {
579
- a.value && !l.value && r(!0);
578
+ function m(C) {
579
+ a.value && !u.value && r(!0);
580
580
  }
581
- function v(w) {
581
+ function v(C) {
582
582
  a.value && r(!1);
583
583
  }
584
- return { clearButtonClass: s, clearButtonStyle: i, hasShownClearButton: o, onClearValue: p, onMouseEnter: m, onMouseLeave: v, shouldShowClearButton: a };
584
+ return { clearButtonClass: c, clearButtonStyle: l, hasShownClearButton: o, onClearValue: p, onMouseEnter: m, onMouseLeave: v, shouldShowClearButton: a };
585
585
  }
586
586
  const Oe = ["moz", "ms", "webkit"];
587
587
  function Ne() {
@@ -609,174 +609,174 @@ const Ge = (e) => {
609
609
  }, e;
610
610
  };
611
611
  function ee(e, t) {
612
- const n = h(e.groupText), o = y(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = y(() => e.enableClear || !!e.groupText);
612
+ const n = b(e.groupText), o = y(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = y(() => e.enableClear || !!e.groupText);
613
613
  return { appendedButtonClass: y(() => ({
614
614
  "input-group-append": !0,
615
615
  "append-force-show": o.value
616
616
  })), appendedContent: n, shouldShowAppendedButton: a };
617
617
  }
618
618
  function te(e, t, n, o) {
619
- const { appendedContent: a } = o, c = h(e.enableViewPassword), d = y(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', l = '<span class="f-icon f-icon-eye"></span>', r = h(!1);
620
- D(() => [e.readonly, e.disabled], ([p, m]) => {
621
- d.value && (n.value = p || m ? "password" : n.value, a.value = p || m ? l : a.value);
619
+ const { appendedContent: a } = o, d = b(e.enableViewPassword), s = y(() => e.type === "password"), i = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', r = b(!1);
620
+ V(() => [e.readonly, e.disabled], ([p, m]) => {
621
+ s.value && (n.value = p || m ? "password" : n.value, a.value = p || m ? u : a.value);
622
622
  });
623
- function s() {
624
- return r.value = !r.value, n.value = r.value ? "text" : "password", a.value = r.value ? u : l, !1;
623
+ function c() {
624
+ return r.value = !r.value, n.value = r.value ? "text" : "password", a.value = r.value ? i : u, !1;
625
625
  }
626
- function i() {
627
- n.value = d.value ? "password" : "text", a.value = d.value ? c.value ? l : "" : a.value;
626
+ function l() {
627
+ n.value = s.value ? "password" : "text", a.value = s.value ? d.value ? u : "" : a.value;
628
628
  }
629
- return i(), { isPassword: d, onClickAppendedButton: s };
629
+ return l(), { isPassword: s, onClickAppendedButton: c };
630
630
  }
631
631
  function Le(e, t, n) {
632
- const o = h(), {
632
+ const o = b(), {
633
633
  onBlurTextBox: a,
634
- onFocusTextBox: c,
635
- onInput: d,
636
- onKeyDown: u,
637
- textBoxValue: l
638
- } = n, r = y(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), s = y(() => ({
634
+ onFocusTextBox: d,
635
+ onInput: s,
636
+ onKeyDown: i,
637
+ textBoxValue: u
638
+ } = n, r = y(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), c = y(() => ({
639
639
  "form-control": !0,
640
640
  "f-utils-fill": !0
641
- })), i = y(() => ({
641
+ })), l = y(() => ({
642
642
  "text-align": e.textAlign
643
643
  }));
644
- function p(w) {
645
- w.stopPropagation();
644
+ function p(C) {
645
+ C.stopPropagation();
646
646
  }
647
647
  function m() {
648
648
  e.selectOnCreated, e.focusOnCreated;
649
649
  }
650
- async function v(w) {
651
- c(w), await z, m();
650
+ async function v(C) {
651
+ d(C), await z, m();
652
652
  }
653
- return j(async () => {
653
+ return G(async () => {
654
654
  await z, m();
655
- }), () => T("input", {
655
+ }), () => B("input", {
656
656
  ref: o,
657
- class: s.value,
658
- style: i.value,
657
+ class: c.value,
658
+ style: l.value,
659
659
  type: "text",
660
- value: l.value,
660
+ value: u.value,
661
661
  disabled: e.disabled,
662
662
  readonly: e.readonly || !e.editable,
663
663
  placeholder: r.value,
664
664
  onBlur: a,
665
665
  onChange: p,
666
666
  onFocus: v,
667
- onInput: d,
668
- onKeydown: u
667
+ onInput: s,
668
+ onKeydown: i
669
669
  }, null);
670
670
  }
671
671
  function $e(e, t, n) {
672
672
  const {
673
673
  canDownward: o,
674
674
  canUpward: a,
675
- onClickDownButton: c,
676
- onClickUpButton: d
677
- } = n, u = y(() => ({
675
+ onClickDownButton: d,
676
+ onClickUpButton: s
677
+ } = n, i = y(() => ({
678
678
  "input-group-append": !0,
679
679
  "btn-group": !0,
680
680
  "btn-group-number": !0
681
- })), l = y(() => ({
681
+ })), u = y(() => ({
682
682
  btn: !0,
683
683
  "btn-secondary": !0,
684
684
  "btn-number-flag": !0
685
685
  })), r = y(() => ({
686
686
  cursor: a() ? "pointer" : "not-allowed",
687
687
  "margin-left": 0
688
- })), s = y(() => ({
688
+ })), c = y(() => ({
689
689
  cursor: o() ? "pointer" : "not-allowed",
690
690
  "margin-left": 0
691
691
  }));
692
- return () => T("div", {
693
- class: u.value
694
- }, [T("button", {
692
+ return () => B("div", {
693
+ class: i.value
694
+ }, [B("button", {
695
695
  title: "upButton",
696
- class: l.value,
696
+ class: u.value,
697
697
  style: r.value,
698
- onClick: d,
698
+ onClick: s,
699
699
  disabled: !a()
700
- }, [T("span", {
700
+ }, [B("span", {
701
701
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
702
- }, null)]), T("button", {
702
+ }, null)]), B("button", {
703
703
  title: "downButton",
704
- class: l.value,
705
- style: s.value,
706
- onClick: c,
704
+ class: u.value,
705
+ style: c.value,
706
+ onClick: d,
707
707
  disabled: !o()
708
- }, [T("span", {
708
+ }, [B("span", {
709
709
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
710
710
  }, null)])]);
711
711
  }
712
712
  function Ue(e, t) {
713
- const n = ce(e, t), o = de(e, t, n), a = pe(e, t, o, n), c = fe(e, t, o, n, a), d = $e(e, t, a), {
714
- displayValue: u,
715
- modelValue: l,
713
+ const n = ce(e, t), o = de(e, t, n), a = pe(e, t, o, n), d = fe(e, t, o, n, a), s = $e(e, t, a), {
714
+ displayValue: i,
715
+ modelValue: u,
716
716
  getRealValue: r
717
- } = n, s = Le(e, t, c), {
718
- format: i
717
+ } = n, c = Le(e, t, d), {
718
+ format: l
719
719
  } = o, {
720
720
  isFocus: p
721
- } = c, m = y(() => !e.disabled && !e.readonly);
722
- return j(() => {
721
+ } = d, m = y(() => !e.disabled && !e.readonly);
722
+ return G(() => {
723
723
  const v = r(e.modelValue);
724
- u.value = i(v);
725
- }), D(() => [e.value], ([v]) => {
726
- const w = r(v);
727
- l.value = w, u.value = i(w);
728
- }), D(() => [e.modelValue], ([v]) => {
729
- v !== l.value && (l.value = v, !p.value && (u.value = i(r(v))));
730
- }), D(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
731
- u.value = i(l.value);
732
- }), () => T("div", {
724
+ i.value = l(v);
725
+ }), V(() => [e.value], ([v]) => {
726
+ const C = r(v);
727
+ u.value = C, i.value = l(C);
728
+ }), V(() => [e.modelValue], ([v]) => {
729
+ v !== u.value && (u.value = v, !p.value && (i.value = l(r(v))));
730
+ }), V(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
731
+ i.value = l(u.value);
732
+ }), () => B("div", {
733
733
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
734
- }, [s(), m.value && d()]);
734
+ }, [c(), m.value && s()]);
735
735
  }
736
736
  function Ie(e, t, n, o) {
737
- const a = h(), c = h(e.autocomplete), d = h(e.enableTitle), {
738
- isPassword: u
739
- } = n, l = h(e.minLength), r = h(e.maxLength), s = h(e.tabIndex), {
740
- disabled: i,
737
+ const a = b(), d = b(e.autocomplete), s = b(e.enableTitle), {
738
+ isPassword: i
739
+ } = n, u = b(e.minLength), r = b(e.maxLength), c = b(e.tabIndex), {
740
+ disabled: l,
741
741
  displayText: p,
742
742
  inputType: m,
743
743
  onBlur: v,
744
- onFocus: w,
744
+ onFocus: C,
745
745
  onInput: x,
746
- onClick: k,
746
+ onClick: T,
747
747
  onKeydown: S,
748
- onKeyup: A,
749
- onMousedown: M,
750
- onTextBoxValueChange: V,
751
- readonly: b,
752
- placeholder: C,
753
- textBoxClass: B,
754
- textBoxTitle: O
748
+ onKeyup: E,
749
+ onMousedown: k,
750
+ onTextBoxValueChange: O,
751
+ readonly: h,
752
+ placeholder: w,
753
+ textBoxClass: M,
754
+ textBoxTitle: P
755
755
  } = o;
756
- return j(() => {
756
+ return G(() => {
757
757
  e.selectOnCreated, e.focusOnCreated;
758
- }), () => T("input", {
758
+ }), () => B("input", {
759
759
  ref: a,
760
760
  name: "input-group-value",
761
- autocomplete: c.value,
762
- class: B.value,
763
- disabled: i == null ? void 0 : i.value,
761
+ autocomplete: d.value,
762
+ class: M.value,
763
+ disabled: l == null ? void 0 : l.value,
764
764
  maxlength: r.value,
765
- minlength: l.value,
766
- placeholder: C.value,
767
- readonly: b == null ? void 0 : b.value,
768
- tabindex: s.value,
769
- title: d.value && !u.value ? O.value : "",
765
+ minlength: u.value,
766
+ placeholder: w.value,
767
+ readonly: h == null ? void 0 : h.value,
768
+ tabindex: c.value,
769
+ title: s.value && !i.value ? P.value : "",
770
770
  type: m.value,
771
771
  value: p == null ? void 0 : p.value,
772
772
  onBlur: v,
773
- onClick: k,
774
- onChange: V,
775
- onFocus: w,
773
+ onClick: T,
774
+ onChange: O,
775
+ onFocus: C,
776
776
  onInput: x,
777
777
  onKeydown: S,
778
- onKeyup: A,
779
- onMousedown: M
778
+ onKeyup: E,
779
+ onMousedown: k
780
780
  }, null);
781
781
  }
782
782
  function qe(e, t) {
@@ -786,147 +786,147 @@ function qe(e, t) {
786
786
  function a() {
787
787
  t.emit("updateExtendInfo");
788
788
  }
789
- return () => n.value && le(T("span", {
789
+ return () => n.value && le(B("span", {
790
790
  class: "input-group-before-tips",
791
791
  onMouseenter: a
792
- }, [T("i", {
792
+ }, [B("i", {
793
793
  class: "f-icon f-icon-info-circle"
794
- }, null), T("b", {
794
+ }, null), B("b", {
795
795
  class: "tips-arrow"
796
796
  }, null)]), [[ue("tooltip"), o]]);
797
797
  }
798
798
  function ne(e, t, n, o, a) {
799
799
  const {
800
- appendedButtonClass: c,
801
- appendedContent: d
802
- } = n, u = y(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), l = y(() => d.value && !t.slots.groupTextTemplate), r = y(() => !!t.slots.groupTextTemplate), {
803
- clearButtonClass: s,
804
- clearButtonStyle: i,
800
+ appendedButtonClass: d,
801
+ appendedContent: s
802
+ } = n, i = y(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = y(() => s.value && !t.slots.groupTextTemplate), r = y(() => !!t.slots.groupTextTemplate), {
803
+ clearButtonClass: c,
804
+ clearButtonStyle: l,
805
805
  onClearValue: p,
806
806
  shouldShowClearButton: m
807
807
  } = o;
808
808
  function v() {
809
- return T("span", {
809
+ return B("span", {
810
810
  id: "clearIcon",
811
- class: s.value,
812
- style: i.value,
813
- onClick: (C) => p(C)
814
- }, [T("i", {
811
+ class: c.value,
812
+ style: l.value,
813
+ onClick: (w) => p(w)
814
+ }, [B("i", {
815
815
  class: "f-icon modal_close"
816
816
  }, null)]);
817
817
  }
818
- function w(C) {
819
- t.emit("iconMouseEnter", C);
818
+ function C(w) {
819
+ t.emit("iconMouseEnter", w);
820
820
  }
821
- function x(C) {
822
- t.emit("iconMouseLeave", C);
821
+ function x(w) {
822
+ t.emit("iconMouseLeave", w);
823
823
  }
824
- function k(C) {
825
- u.value && t.emit("clickHandle", {
826
- originalEvent: C
827
- }), C.stopPropagation();
824
+ function T(w) {
825
+ i.value && t.emit("clickHandle", {
826
+ originalEvent: w
827
+ }), w.stopPropagation();
828
828
  }
829
- const S = e.type === "password" ? a.onClickAppendedButton : k;
830
- function A() {
831
- return T("span", {
829
+ const S = e.type === "password" ? a.onClickAppendedButton : T;
830
+ function E() {
831
+ return B("span", {
832
832
  class: "input-group-text",
833
- onMouseenter: (C) => w(C),
834
- onMouseleave: (C) => x(C),
835
- innerHTML: d.value,
836
- onClick: (C) => S(C)
833
+ onMouseenter: (w) => C(w),
834
+ onMouseleave: (w) => x(w),
835
+ innerHTML: s.value,
836
+ onClick: (w) => S(w)
837
837
  }, null);
838
838
  }
839
- function M() {
839
+ function k() {
840
840
  return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
841
841
  }
842
- function V() {
843
- return l.value ? A : r.value ? M : "";
842
+ function O() {
843
+ return u.value ? E : r.value ? k : "";
844
844
  }
845
- const b = V();
846
- return () => T("div", {
847
- class: c.value
848
- }, [m.value && v(), b && b()]);
845
+ const h = O();
846
+ return () => B("div", {
847
+ class: d.value
848
+ }, [m.value && v(), h && h()]);
849
849
  }
850
850
  const L = /* @__PURE__ */ Q({
851
851
  name: "FInputGroup",
852
852
  props: W,
853
853
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
854
854
  setup(e, t) {
855
- const n = h(e.modelValue), o = h(e.modelValue), a = De(e, t, n, o), {
856
- inputGroupClass: c,
857
- inputType: d,
858
- inputGroupStyle: u
859
- } = a, l = ee(e), {
855
+ const n = b(e.modelValue), o = b(e.modelValue), a = De(e, t, n, o), {
856
+ inputGroupClass: d,
857
+ inputType: s,
858
+ inputGroupStyle: i
859
+ } = a, u = ee(e), {
860
860
  shouldShowAppendedButton: r
861
- } = l, s = K(e, t, a), {
862
- onMouseEnter: i,
861
+ } = u, c = K(e, t, a), {
862
+ onMouseEnter: l,
863
863
  onMouseLeave: p
864
- } = s, m = te(e, t, d, l), v = Ue(e, t), w = Ie(e, t, m, a), x = ne(e, t, l, s, m), k = qe(e, t), S = y(() => e.type === "number");
865
- D(() => [e.value], ([M]) => {
866
- n.value = M, o.value = M;
867
- }), D(() => [e.modelValue], ([M]) => {
868
- n.value = M, o.value = M;
869
- }), j(() => {
864
+ } = c, m = te(e, t, s, u), v = Ue(e, t), C = Ie(e, t, m, a), x = ne(e, t, u, c, m), T = qe(e, t), S = y(() => e.type === "number");
865
+ V(() => [e.value], ([k]) => {
866
+ n.value = k, o.value = k;
867
+ }), V(() => [e.modelValue], ([k]) => {
868
+ n.value = k, o.value = k;
869
+ }), G(() => {
870
870
  e.value && (n.value = e.value, o.value = e.value);
871
871
  });
872
- const A = () => T(J, null, [T("div", {
872
+ const E = () => B(J, null, [B("div", {
873
873
  id: "inputGroup",
874
- class: c.value,
875
- style: u.value,
876
- onMouseenter: i,
874
+ class: d.value,
875
+ style: i.value,
876
+ onMouseenter: l,
877
877
  onMouseleave: p
878
- }, [S.value ? v() : T(J, null, [k(), w(), r.value && x()])])]);
879
- return () => A();
878
+ }, [S.value ? v() : B(J, null, [T(), C(), r.value && x()])])]);
879
+ return () => E();
880
880
  }
881
881
  });
882
882
  function We(e, t) {
883
883
  e.schema;
884
- const n = h(!0), o = h(!0);
885
- function a(i) {
884
+ const n = b(!0), o = b(!0);
885
+ function a(l) {
886
886
  return !1;
887
887
  }
888
- function c() {
888
+ function d() {
889
889
  return !1;
890
890
  }
891
- function d() {
891
+ function s() {
892
892
  return !1;
893
893
  }
894
- function u() {
894
+ function i() {
895
895
  return !0;
896
896
  }
897
- function l(i) {
897
+ function u(l) {
898
898
  }
899
899
  function r() {
900
900
  }
901
- function s(i) {
901
+ function c(l) {
902
902
  return null;
903
903
  }
904
904
  return {
905
905
  canAccepts: a,
906
- checkCanDeleteComponent: c,
907
- checkCanMoveComponent: d,
908
- hideNestedPaddingInDesginerView: u,
909
- onAcceptMovedChildElement: l,
906
+ checkCanDeleteComponent: d,
907
+ checkCanMoveComponent: s,
908
+ hideNestedPaddingInDesginerView: i,
909
+ onAcceptMovedChildElement: u,
910
910
  resolveComponentContext: r,
911
911
  triggerBelongedComponentToMoveWhenMoved: n,
912
912
  triggerBelongedComponentToDeleteWhenDeleted: o,
913
- getPropsConfig: s
913
+ getPropsConfig: c
914
914
  };
915
915
  }
916
916
  class He {
917
917
  constructor(t, n) {
918
- P(this, "componentId");
919
- P(this, "viewModelId");
920
- P(this, "eventsEditorUtils");
921
- P(this, "formSchemaUtils");
922
- P(this, "formMetadataConverter");
923
- P(this, "designViewModelUtils");
924
- P(this, "designViewModelField");
925
- P(this, "controlCreatorUtils");
926
- P(this, "designerHostService");
927
- P(this, "schemaService", null);
928
- P(this, "metadataService", null);
929
- P(this, "propertyConfig", {
918
+ A(this, "componentId");
919
+ A(this, "viewModelId");
920
+ A(this, "eventsEditorUtils");
921
+ A(this, "formSchemaUtils");
922
+ A(this, "formMetadataConverter");
923
+ A(this, "designViewModelUtils");
924
+ A(this, "designViewModelField");
925
+ A(this, "controlCreatorUtils");
926
+ A(this, "designerHostService");
927
+ A(this, "schemaService", null);
928
+ A(this, "metadataService", null);
929
+ A(this, "propertyConfig", {
930
930
  type: "object",
931
931
  categories: {}
932
932
  });
@@ -995,12 +995,12 @@ class He {
995
995
  };
996
996
  }
997
997
  }
998
- const N = class N {
998
+ const j = class j {
999
999
  /**
1000
1000
  * 根据绑定字段类型获取可用的输入类控件
1001
1001
  */
1002
1002
  static getEditorTypesByMDataType(t) {
1003
- const n = N.fieldControlTypeMapping[t];
1003
+ const n = j.fieldControlTypeMapping[t];
1004
1004
  return n || [{ key: "", value: "" }];
1005
1005
  }
1006
1006
  /**
@@ -1008,8 +1008,8 @@ const N = class N {
1008
1008
  */
1009
1009
  static getAllInputTypes() {
1010
1010
  const t = [];
1011
- for (let n in N.fieldControlTypeMapping)
1012
- N.fieldControlTypeMapping[n].forEach((o) => {
1011
+ for (let n in j.fieldControlTypeMapping)
1012
+ j.fieldControlTypeMapping[n].forEach((o) => {
1013
1013
  t.find((a) => a.key === o.key && a.value === o.value) || t.push({ key: o.key, value: o.value });
1014
1014
  });
1015
1015
  return t;
@@ -1018,7 +1018,7 @@ const N = class N {
1018
1018
  /**
1019
1019
  * <字段类型,可配置的控件类型列表>的映射
1020
1020
  */
1021
- P(N, "fieldControlTypeMapping", {
1021
+ A(j, "fieldControlTypeMapping", {
1022
1022
  String: [
1023
1023
  { key: f["input-group"].type, value: f["input-group"].name },
1024
1024
  { key: f.lookup.type, value: f.lookup.name },
@@ -1064,8 +1064,8 @@ P(N, "fieldControlTypeMapping", {
1064
1064
  { key: f["radio-group"].type, value: f["radio-group"].name }
1065
1065
  ]
1066
1066
  });
1067
- let $ = N;
1068
- const ze = h(0);
1067
+ let $ = j;
1068
+ const ze = b(0);
1069
1069
  class Je extends He {
1070
1070
  constructor(t, n) {
1071
1071
  super(t, n);
@@ -1074,10 +1074,10 @@ class Je extends He {
1074
1074
  return this.propertyConfig.categories.basic = this.getBasicProperties(t, n), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
1075
1075
  }
1076
1076
  getBasicProperties(t, n) {
1077
- var d;
1077
+ var s;
1078
1078
  var o = this;
1079
1079
  this.setDesignViewModelField(t);
1080
- const a = this.formSchemaUtils.getFormMetadataBasicInfo(), c = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1080
+ const a = this.formSchemaUtils.getFormMetadataBasicInfo(), d = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1081
1081
  return {
1082
1082
  description: "Basic Information",
1083
1083
  title: "基本信息",
@@ -1089,8 +1089,8 @@ class Je extends He {
1089
1089
  readonly: !0
1090
1090
  },
1091
1091
  type: {
1092
- description: "组件类型",
1093
- title: "控件类型",
1092
+ description: "编辑器类型",
1093
+ title: "编辑器类型",
1094
1094
  type: "string",
1095
1095
  refreshPanelAfterChanged: !0,
1096
1096
  $converter: "/converter/change-editor.converter",
@@ -1099,7 +1099,7 @@ class Je extends He {
1099
1099
  textField: "value",
1100
1100
  valueField: "key",
1101
1101
  editable: !1,
1102
- data: o.designViewModelField ? $.getEditorTypesByMDataType((d = o.designViewModelField.type) == null ? void 0 : d.name) : $.getAllInputTypes()
1102
+ data: o.designViewModelField ? $.getEditorTypesByMDataType((s = o.designViewModelField.type) == null ? void 0 : s.name) : $.getAllInputTypes()
1103
1103
  }
1104
1104
  },
1105
1105
  label: {
@@ -1124,15 +1124,19 @@ class Je extends He {
1124
1124
  { field: "fieldType", title: "字段类型" }
1125
1125
  ],
1126
1126
  textField: "bindingField",
1127
- data: c
1127
+ data: d
1128
1128
  }
1129
1129
  }
1130
1130
  },
1131
- setPropertyRelates(u, l) {
1132
- if (u)
1133
- switch (u && u.propertyID) {
1131
+ setPropertyRelates(i, u) {
1132
+ if (i)
1133
+ switch (i && i.propertyID) {
1134
1134
  case "type": {
1135
- o.changeControlType(t, u, n);
1135
+ o.changeControlType(t, i, n);
1136
+ break;
1137
+ }
1138
+ case "label": {
1139
+ i.needRefreshControlTree = !0;
1136
1140
  break;
1137
1141
  }
1138
1142
  }
@@ -1178,12 +1182,12 @@ class Je extends He {
1178
1182
  * @param newControlType 新控件类型
1179
1183
  */
1180
1184
  changeControlType(t, n, o) {
1181
- var r, s, i, p;
1182
- const a = n.propertyValue, c = o && o.parent && o.parent.schema;
1183
- if (!c)
1185
+ var r, c, l, p;
1186
+ const a = n.propertyValue, d = o && o.parent && o.parent.schema;
1187
+ if (!d)
1184
1188
  return;
1185
- const d = c.contents.findIndex((m) => m.id === t.id), u = c.contents[d];
1186
- let l;
1189
+ const s = d.contents.findIndex((m) => m.id === t.id), i = d.contents[s];
1190
+ let u;
1187
1191
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1188
1192
  editor: {
1189
1193
  $type: a
@@ -1191,30 +1195,30 @@ class Je extends He {
1191
1195
  name: this.designViewModelField.name,
1192
1196
  require: this.designViewModelField.require,
1193
1197
  readonly: this.designViewModelField.readonly
1194
- }, !1), l = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), l || (l = _("form-group") || {}, l.editor = _(a) || {}, delete l.editor.id, delete l.editor.binding, delete l.editor.appearance), Object.assign(l, {
1195
- id: u.id,
1196
- appearance: u.appearance,
1197
- size: u.size,
1198
- label: u.label,
1199
- binding: u.binding,
1200
- visible: u.visible
1201
- }), Object.assign(l.editor, {
1202
- isTextArea: l.isTextArea && u.isTextArea,
1203
- placeholder: (r = u.editor) == null ? void 0 : r.placeholder,
1204
- holdPlace: (s = u.editor) == null ? void 0 : s.holdPlace,
1205
- readonly: (i = u.editor) == null ? void 0 : i.readonly,
1206
- require: (p = u.editor) == null ? void 0 : p.require
1207
- }), c.contents.splice(d, 1), c.contents.splice(d, 0, l), o.schema = Object.assign(u, l), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1198
+ }, !1), u = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), u || (u = _("form-group") || {}, u.editor = _(a) || {}, delete u.editor.id, delete u.editor.binding, delete u.editor.appearance), Object.assign(u, {
1199
+ id: i.id,
1200
+ appearance: i.appearance,
1201
+ size: i.size,
1202
+ label: i.label,
1203
+ binding: i.binding,
1204
+ visible: i.visible
1205
+ }), Object.assign(u.editor, {
1206
+ isTextArea: u.isTextArea && i.isTextArea,
1207
+ placeholder: (r = i.editor) == null ? void 0 : r.placeholder,
1208
+ holdPlace: (c = i.editor) == null ? void 0 : c.holdPlace,
1209
+ readonly: (l = i.editor) == null ? void 0 : l.readonly,
1210
+ require: (p = i.editor) == null ? void 0 : p.require
1211
+ }), d.contents.splice(s, 1), d.contents.splice(s, 0, u), o.schema = Object.assign(i, u), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1208
1212
  (m) => m.classList.remove("dgComponentSelected")
1209
1213
  ), ze.value++;
1210
1214
  }
1211
1215
  getComponentConfig(t, n = {}, o = {}) {
1212
1216
  const a = Object.assign({
1213
- description: "组件信息",
1214
- title: "组件信息",
1217
+ description: "编辑器",
1218
+ title: "编辑器",
1215
1219
  type: "input-group",
1216
1220
  $converter: "/converter/property-editor.converter"
1217
- }, n), c = Object.assign({
1221
+ }, n), d = Object.assign({
1218
1222
  readonly: {
1219
1223
  description: "",
1220
1224
  title: "只读",
@@ -1236,7 +1240,7 @@ class Je extends He {
1236
1240
  type: "string"
1237
1241
  }
1238
1242
  }, o);
1239
- return { ...a, properties: { ...c } };
1243
+ return { ...a, properties: { ...d } };
1240
1244
  }
1241
1245
  }
1242
1246
  class Ze extends Je {
@@ -1249,148 +1253,148 @@ function _e(e, t) {
1249
1253
  canAccepts: n,
1250
1254
  checkCanDeleteComponent: o,
1251
1255
  checkCanMoveComponent: a,
1252
- hideNestedPaddingInDesginerView: c,
1253
- onAcceptMovedChildElement: d,
1254
- resolveComponentContext: u,
1255
- triggerBelongedComponentToMoveWhenMoved: l,
1256
+ hideNestedPaddingInDesginerView: d,
1257
+ onAcceptMovedChildElement: s,
1258
+ resolveComponentContext: i,
1259
+ triggerBelongedComponentToMoveWhenMoved: u,
1256
1260
  triggerBelongedComponentToDeleteWhenDeleted: r
1257
- } = We(e), s = e.schema;
1258
- function i(p, m) {
1259
- return new Ze(p, t).getPropertyConfig(s, m);
1261
+ } = We(e), c = e.schema;
1262
+ function l(p, m) {
1263
+ return new Ze(p, t).getPropertyConfig(c, m);
1260
1264
  }
1261
1265
  return {
1262
1266
  canAccepts: n,
1263
1267
  checkCanDeleteComponent: o,
1264
1268
  checkCanMoveComponent: a,
1265
- hideNestedPaddingInDesginerView: c,
1266
- onAcceptMovedChildElement: d,
1267
- resolveComponentContext: u,
1268
- triggerBelongedComponentToMoveWhenMoved: l,
1269
+ hideNestedPaddingInDesginerView: d,
1270
+ onAcceptMovedChildElement: s,
1271
+ resolveComponentContext: i,
1272
+ triggerBelongedComponentToMoveWhenMoved: u,
1269
1273
  triggerBelongedComponentToDeleteWhenDeleted: r,
1270
- getPropsConfig: i
1274
+ getPropsConfig: l
1271
1275
  };
1272
1276
  }
1273
1277
  function Qe(e, t, n) {
1274
- var V;
1278
+ var O;
1275
1279
  function o() {
1276
1280
  n != null && n.resolveComponentContext && n.resolveComponentContext();
1277
1281
  }
1278
1282
  o();
1279
- const a = n && n.getStyles && n.getStyles() || "", c = n && n.getDesignerClass && n.getDesignerClass() || "", d = h();
1280
- function u() {
1283
+ const a = n && n.getStyles && n.getStyles() || "", d = n && n.getDesignerClass && n.getDesignerClass() || "", s = b();
1284
+ function i() {
1281
1285
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
1282
1286
  }
1283
- function l() {
1287
+ function u() {
1284
1288
  return !1;
1285
1289
  }
1286
1290
  function r() {
1287
1291
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
1288
1292
  }
1289
- function s() {
1293
+ function c() {
1290
1294
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
1291
1295
  }
1292
- function i(b) {
1293
- if (!b || !b.value)
1296
+ function l(h) {
1297
+ if (!h || !h.value)
1294
1298
  return null;
1295
- if (b.value.schema && b.value.schema.type === "component")
1296
- return b.value;
1297
- const C = h(b == null ? void 0 : b.value.parent), B = i(C);
1298
- return B || null;
1299
+ if (h.value.schema && h.value.schema.type === "component")
1300
+ return h.value;
1301
+ const w = b(h == null ? void 0 : h.value.parent), M = l(w);
1302
+ return M || null;
1299
1303
  }
1300
- function p(b = t) {
1301
- const { componentInstance: C, designerItemElementRef: B } = b;
1302
- return !C || !C.value ? null : C.value.canMove ? B : p(b.parent);
1304
+ function p(h = t) {
1305
+ const { componentInstance: w, designerItemElementRef: M } = h;
1306
+ return !w || !w.value ? null : w.value.canMove ? M : p(h.parent);
1303
1307
  }
1304
- function m(b) {
1305
- return !!n && n.canAccepts(b);
1308
+ function m(h) {
1309
+ return !!n && n.canAccepts(h);
1306
1310
  }
1307
1311
  function v() {
1308
1312
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
1309
1313
  }
1310
- function w() {
1314
+ function C() {
1311
1315
  }
1312
- function x(b, C) {
1313
- C && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(C);
1316
+ function x(h, w) {
1317
+ w && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(w);
1314
1318
  }
1315
- function k(b) {
1316
- const { componentType: C } = b;
1317
- let B = I(C, b);
1318
- n && n.onResolveNewComponentSchema && (B = n.onResolveNewComponentSchema(b, B));
1319
- const O = C.toLowerCase().replace("-", "_");
1320
- return B && !B.id && B.type === C && (B.id = `${O}_${Math.random().toString().slice(2, 6)}`), B;
1319
+ function T(h, w) {
1320
+ const { componentType: M } = h;
1321
+ let P = I(M, h, w);
1322
+ n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(h, P));
1323
+ const N = M.toLowerCase().replace("-", "_");
1324
+ return P && !P.id && P.type === M && (P.id = `${N}_${Math.random().toString().slice(2, 6)}`), P;
1321
1325
  }
1322
- function S(b, C) {
1323
- const B = String(b.getAttribute("data-controltype")), O = b.getAttribute("data-feature"), G = O ? JSON.parse(O) : {};
1324
- G.parentComponentInstance = d.value;
1325
- let F = I(B, G);
1326
- n && n.onAcceptNewChildElement && (F = n.onAcceptNewChildElement(b, C, F));
1327
- const U = B.toLowerCase().replace("-", "_");
1328
- return F && !F.id && F.type === B && (F.id = `${U}_${Math.random().toString().slice(2, 6)}`), F;
1326
+ function S(h, w) {
1327
+ const M = String(h.getAttribute("data-controltype")), P = h.getAttribute("data-feature"), N = P ? JSON.parse(P) : {};
1328
+ N.parentComponentInstance = s.value;
1329
+ let D = I(M, N);
1330
+ n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(h, w, D));
1331
+ const U = M.toLowerCase().replace("-", "_");
1332
+ return D && !D.id && D.type === M && (D.id = `${U}_${Math.random().toString().slice(2, 6)}`), D;
1329
1333
  }
1330
- function A(b) {
1334
+ function E(h) {
1331
1335
  }
1332
- function M(...b) {
1336
+ function k(...h) {
1333
1337
  if (n && n.getPropsConfig)
1334
- return n.getPropsConfig(...b);
1338
+ return n.getPropsConfig(...h);
1335
1339
  }
1336
- return d.value = {
1337
- canMove: u(),
1338
- canSelectParent: l(),
1340
+ return s.value = {
1341
+ canMove: i(),
1342
+ canSelectParent: u(),
1339
1343
  canDelete: r(),
1340
- canNested: !s(),
1344
+ canNested: !c(),
1341
1345
  contents: t == null ? void 0 : t.schema.contents,
1342
1346
  elementRef: e,
1343
- parent: (V = t == null ? void 0 : t.parent) == null ? void 0 : V.componentInstance,
1347
+ parent: (O = t == null ? void 0 : t.parent) == null ? void 0 : O.componentInstance,
1344
1348
  schema: t == null ? void 0 : t.schema,
1345
1349
  styles: a,
1346
- designerClass: c,
1350
+ designerClass: d,
1347
1351
  canAccepts: m,
1348
- getBelongedComponentInstance: i,
1352
+ getBelongedComponentInstance: l,
1349
1353
  getDraggableDesignItemElement: p,
1350
1354
  getDraggingDisplayText: v,
1351
- getPropConfig: M,
1352
- getDragScopeElement: w,
1355
+ getPropConfig: k,
1356
+ getDragScopeElement: C,
1353
1357
  onAcceptMovedChildElement: x,
1354
1358
  onAcceptNewChildElement: S,
1355
- onChildElementMovedOut: A,
1356
- addNewChildComponentSchema: k,
1359
+ onChildElementMovedOut: E,
1360
+ addNewChildComponentSchema: T,
1357
1361
  updateDragAndDropRules: o,
1358
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || h(!1),
1359
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || h(!1)
1360
- }, d;
1362
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || b(!1),
1363
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
1364
+ }, s;
1361
1365
  }
1362
1366
  const Xe = /* @__PURE__ */ Q({
1363
1367
  name: "FInputGroupDesign",
1364
1368
  props: W,
1365
1369
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
1366
1370
  setup(e, t) {
1367
- const n = h(e.modelValue), o = h(e.modelValue), a = Ve(e, t, n, o), {
1368
- inputGroupClass: c,
1369
- inputType: d,
1370
- inputGroupStyle: u
1371
- } = a, l = ee(e), {
1371
+ const n = b(e.modelValue), o = b(e.modelValue), a = Ve(e, t, n, o), {
1372
+ inputGroupClass: d,
1373
+ inputType: s,
1374
+ inputGroupStyle: i
1375
+ } = a, u = ee(e), {
1372
1376
  shouldShowAppendedButton: r
1373
- } = l, s = K(e, t, a), {
1374
- onMouseEnter: i,
1377
+ } = u, c = K(e, t, a), {
1378
+ onMouseEnter: l,
1375
1379
  onMouseLeave: p
1376
- } = s, m = te(e, t, d, l), v = h(), w = Z("designer-host-service"), x = Z("design-item-context"), k = _e(x, w), S = Qe(v, x, k);
1377
- j(() => {
1380
+ } = c, m = te(e, t, s, u), v = b(), C = Z("designer-host-service"), x = Z("design-item-context"), T = _e(x, C), S = Qe(v, x, T);
1381
+ G(() => {
1378
1382
  v.value.componentInstance = S;
1379
1383
  }), t.expose(S.value);
1380
- const A = ne(e, t, l, s, m), M = h();
1381
- return () => T("div", {
1384
+ const E = ne(e, t, u, c, m), k = b();
1385
+ return () => B("div", {
1382
1386
  id: "inputGroup",
1383
1387
  ref: v,
1384
- class: c.value,
1385
- style: u.value,
1386
- onMouseenter: i,
1388
+ class: d.value,
1389
+ style: i.value,
1390
+ onMouseenter: l,
1387
1391
  onMouseleave: p
1388
- }, [T("input", {
1389
- ref: M,
1392
+ }, [B("input", {
1393
+ ref: k,
1390
1394
  class: "form-control",
1391
1395
  readonly: !0,
1392
1396
  placeholder: e.placeholder
1393
- }, null), r.value && A()]);
1397
+ }, null), r.value && E()]);
1394
1398
  }
1395
1399
  });
1396
1400
  L.register = (e, t, n, o) => {