@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,33 +1,34 @@
1
- var en = Object.defineProperty;
2
- var tn = (e, n, t) => n in e ? en(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var D = (e, n, t) => tn(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { ref as y, defineComponent as q, watch as N, computed as x, createVNode as g, inject as Q, onMounted as H, nextTick as je, reactive as nn, withDirectives as me, resolveDirective as rn, Fragment as he, vModelText as De } from "vue";
5
- import { cloneDeep as F } from "lodash-es";
6
- import on from "../list-view/index.esm.js";
7
- import qe from "../button-edit/index.esm.js";
1
+ var Kt = Object.defineProperty;
2
+ var en = (e, n, t) => n in e ? Kt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var $ = (e, n, t) => en(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import { ref as y, defineComponent as W, computed as x, watch as O, createVNode as w, inject as Q, onMounted as H, nextTick as je, reactive as tn, withDirectives as me, resolveDirective as nn, Fragment as he, vModelText as De } from "vue";
5
+ import { cloneDeep as B } from "lodash-es";
6
+ import rn from "../list-view/index.esm.js";
7
+ import on from "../button-edit/index.esm.js";
8
+ import an from "../button-edit/index.esm.js/src/designer/button-edit.design.component";
8
9
  import { getSchemaByType as $e } from "../dynamic-resolver/index.esm.js";
9
- import { useDesignerComponent as an } from "../designer-canvas/index.esm.js";
10
- import $ from "bignumber.js";
11
- import { useNumber as ln, useFormat as un, useSpinner as sn, useTextBox as cn } from "../number-spinner/index.esm.js";
12
- const We = {}, ze = {};
10
+ import { useDesignerComponent as ln } from "../designer-canvas/index.esm.js";
11
+ import L from "bignumber.js";
12
+ import { useNumber as un, useFormat as sn, useSpinner as cn, useTextBox as dn } from "../number-spinner/index.esm.js";
13
+ const qe = {}, We = {};
13
14
  function we(e) {
14
- const { properties: n, title: t } = e, r = Object.keys(n).reduce((o, a) => (o[a] = n[a].type === "object" && n[a].properties ? we(n[a]) : F(n[a].default), o), {});
15
- return r.id = `${t}-${Date.now()}`, r;
15
+ const { properties: n, title: t, ignore: r } = e, o = r && Array.isArray(r), a = Object.keys(n).reduce((l, u) => ((!o || !r.find((s) => s == u)) && (l[u] = n[u].type === "object" && n[u].properties ? we(n[u]) : B(n[u].default)), l), {});
16
+ return (!o || !r.find((l) => l == "id")) && (a.id = `${t}-${Date.now()}`), a;
16
17
  }
17
- function be(e, n = {}) {
18
- const t = We[e];
19
- if (t) {
20
- let r = we(t);
21
- const o = ze[e];
22
- return r = o ? o({ getSchemaByType: be }, r, n) : r, r;
18
+ function be(e, n = {}, t) {
19
+ const r = qe[e];
20
+ if (r) {
21
+ let o = we(r);
22
+ const a = We[e];
23
+ return o = a ? a({ getSchemaByType: be }, o, n, t) : o, o;
23
24
  }
24
25
  return null;
25
26
  }
26
- function dn(e, n) {
27
+ function pn(e, n) {
27
28
  const t = we(n);
28
29
  return Object.keys(e).reduce((r, o) => (r[o] && typeof r[o] == "object" ? Object.assign(r[o], e[o]) : r[o] = e[o], r), t), t;
29
30
  }
30
- function pn(e, n) {
31
+ function fn(e, n) {
31
32
  return Object.keys(e).filter((r) => e[r] != null).reduce((r, o) => {
32
33
  if (n.has(o)) {
33
34
  const a = n.get(o);
@@ -42,63 +43,63 @@ function pn(e, n) {
42
43
  return r;
43
44
  }, {});
44
45
  }
45
- function fn(e, n, t = /* @__PURE__ */ new Map()) {
46
- const r = dn(e, n);
47
- return pn(r, t);
46
+ function vn(e, n, t = /* @__PURE__ */ new Map()) {
47
+ const r = pn(e, n);
48
+ return fn(r, t);
48
49
  }
49
- function vn(e = {}) {
50
- function n(i, p, d, f) {
51
- if (typeof d == "number")
52
- return f[i].length === d;
53
- if (typeof d == "object") {
54
- const s = Object.keys(d)[0], v = d[s];
55
- if (s === "not")
50
+ function yn(e = {}) {
51
+ function n(i, d, c, f) {
52
+ if (typeof c == "number")
53
+ return f[i].length === c;
54
+ if (typeof c == "object") {
55
+ const p = Object.keys(c)[0], v = c[p];
56
+ if (p === "not")
56
57
  return Number(f[i].length) !== Number(v);
57
- if (s === "moreThan")
58
+ if (p === "moreThan")
58
59
  return Number(f[i].length) >= Number(v);
59
- if (s === "lessThan")
60
+ if (p === "lessThan")
60
61
  return Number(f[i].length) <= Number(v);
61
62
  }
62
63
  return !1;
63
64
  }
64
- function t(i, p, d, f) {
65
- return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(d);
65
+ function t(i, d, c, f) {
66
+ return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(c);
66
67
  }
67
68
  const r = /* @__PURE__ */ new Map([
68
69
  ["length", n],
69
70
  ["getProperty", t]
70
71
  ]);
71
- Object.keys(e).reduce((i, p) => (i.set(p, e[p]), i), r);
72
- function o(i, p) {
73
- const d = i;
74
- return typeof p == "number" ? [{ target: d, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: d, operator: "getProperty", param: i, value: !!p }] : typeof p == "object" ? Object.keys(p).map((f) => {
72
+ Object.keys(e).reduce((i, d) => (i.set(d, e[d]), i), r);
73
+ function o(i, d) {
74
+ const c = i;
75
+ return typeof d == "number" ? [{ target: c, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: c, operator: "getProperty", param: i, value: !!d }] : typeof d == "object" ? Object.keys(d).map((f) => {
75
76
  if (f === "length")
76
- return { target: d, operator: "length", param: null, value: p[f] };
77
- const s = f, v = p[f];
78
- return { target: d, operator: "getProperty", param: s, value: v };
77
+ return { target: c, operator: "length", param: null, value: d[f] };
78
+ const p = f, v = d[f];
79
+ return { target: c, operator: "getProperty", param: p, value: v };
79
80
  }) : [];
80
81
  }
81
82
  function a(i) {
82
- return Object.keys(i).reduce((d, f) => {
83
- const s = o(f, i[f]);
84
- return d.push(...s), d;
83
+ return Object.keys(i).reduce((c, f) => {
84
+ const p = o(f, i[f]);
85
+ return c.push(...p), c;
85
86
  }, []);
86
87
  }
87
- function l(i, p) {
88
+ function l(i, d) {
88
89
  if (r.has(i.operator)) {
89
- const d = r.get(i.operator);
90
- return d && d(i.target, i.param, i.value, p) || !1;
90
+ const c = r.get(i.operator);
91
+ return c && c(i.target, i.param, i.value, d) || !1;
91
92
  }
92
93
  return !1;
93
94
  }
94
- function u(i, p) {
95
- return a(i).reduce((s, v) => s && l(v, p), !0);
95
+ function u(i, d) {
96
+ return a(i).reduce((p, v) => p && l(v, d), !0);
96
97
  }
97
- function c(i, p) {
98
- const d = Object.keys(i), f = d.includes("allOf"), s = d.includes("anyOf"), v = f || s, C = (v ? i[v ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((E) => u(E, p));
99
- return f ? !C.includes(!1) : C.includes(!0);
98
+ function s(i, d) {
99
+ const c = Object.keys(i), f = c.includes("allOf"), p = c.includes("anyOf"), v = f || p, S = (v ? i[v ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((k) => u(k, d));
100
+ return f ? !S.includes(!1) : S.includes(!0);
100
101
  }
101
- return { parseValueSchema: c };
102
+ return { parseValueSchema: s };
102
103
  }
103
104
  const V = {
104
105
  button: { type: "button", name: "按钮", icon: "Button" },
@@ -138,24 +139,24 @@ const V = {
138
139
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
139
140
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
140
141
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
141
- }, yn = {}, mn = {};
142
- vn();
143
- function ce(e, n, t = /* @__PURE__ */ new Map(), r = (l, u, c) => u, o = {}, a = (l) => l) {
144
- return We[n.title] = n, ze[n.title] = r, yn[n.title] = o, mn[n.title] = a, (l = {}) => {
145
- const u = fn(l, n, t), c = Object.keys(e).reduce((i, p) => (i[p] = e[p].default, i), {});
146
- return Object.assign(c, u);
142
+ }, mn = {}, hn = {};
143
+ yn();
144
+ function ce(e, n, t = /* @__PURE__ */ new Map(), r = (l, u, s) => u, o = {}, a = (l) => l) {
145
+ return qe[n.title] = n, We[n.title] = r, mn[n.title] = o, hn[n.title] = a, (l = {}) => {
146
+ const u = vn(l, n, t), s = Object.keys(e).reduce((i, d) => (i[d] = e[d].default, i), {});
147
+ return Object.assign(s, u);
147
148
  };
148
149
  }
149
150
  function de(e, n) {
150
151
  return { customClass: n.class, customStyle: n.style };
151
152
  }
152
- const hn = /* @__PURE__ */ new Map([
153
+ const bn = /* @__PURE__ */ new Map([
153
154
  ["appearance", de]
154
155
  ]);
155
- function bn(e, n, t) {
156
+ function gn(e, n, t) {
156
157
  return n;
157
158
  }
158
- const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-design.gitee.io/property-editor.schema.json", wn = "property-editor", Cn = "A Farris Component", xn = "object", Vn = {
159
+ const Sn = "https://json-schema.org/draft/2020-12/schema", wn = "https://farris-design.gitee.io/property-editor.schema.json", Cn = "property-editor", xn = "A Farris Component", Vn = "object", Tn = {
159
160
  id: {
160
161
  description: "The unique identifier for property-editor",
161
162
  type: "string"
@@ -217,18 +218,18 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
217
218
  type: "boolean",
218
219
  default: !0
219
220
  }
220
- }, Tn = [
221
+ }, Bn = [
221
222
  "id",
222
223
  "type"
223
- ], Bn = {
224
- $schema: gn,
225
- $id: Sn,
226
- title: wn,
227
- description: Cn,
228
- type: xn,
229
- properties: Vn,
230
- required: Tn
231
- }, Fn = "property-editor", Mn = "A Farris Component", kn = "object", En = {
224
+ ], Fn = {
225
+ $schema: Sn,
226
+ $id: wn,
227
+ title: Cn,
228
+ description: xn,
229
+ type: Vn,
230
+ properties: Tn,
231
+ required: Bn
232
+ }, Mn = "property-editor", kn = "A Farris Component", En = "object", An = {
232
233
  basic: {
233
234
  description: "Basic Infomation",
234
235
  title: "基本信息",
@@ -250,12 +251,12 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
250
251
  }
251
252
  }
252
253
  }
253
- }, An = {
254
- title: Fn,
255
- description: Mn,
256
- type: kn,
257
- categories: En
258
- }, Ye = {}, Pn = ce(Ye, Bn, hn, bn, An), P = y({
254
+ }, Pn = {
255
+ title: Mn,
256
+ description: kn,
257
+ type: En,
258
+ categories: An
259
+ }, ze = {}, Nn = ce(ze, Fn, bn, gn, Pn), P = y({
259
260
  /** 常量值 */
260
261
  constValue: {
261
262
  /** 值类型:常量(const), 变量(variable), 状态机(state), 自定义(custom) */
@@ -293,7 +294,7 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
293
294
  type: "dataStates",
294
295
  value: ""
295
296
  }
296
- }), Nn = y([
297
+ }), On = y([
297
298
  {
298
299
  id: "const",
299
300
  label: "常量"
@@ -318,7 +319,7 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
318
319
  id: "dataStates",
319
320
  label: "数据状态"
320
321
  }
321
- ]), On = {
322
+ ]), In = {
322
323
  controlName: "userName",
323
324
  propertyName: "readonly",
324
325
  propertyType: "enum",
@@ -443,9 +444,9 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
443
444
  },
444
445
  /** 状态机是否有前缀viewModel.stateMachine && */
445
446
  hasPrefix: 2
446
- }, In = /* @__PURE__ */ new Map([
447
+ }, jn = /* @__PURE__ */ new Map([
447
448
  ["appearance", de]
448
- ]), jn = "https://json-schema.org/draft/2020-12/schema", Dn = "https://farris-design.gitee.io/combo-list.schema.json", $n = "combo-list", Ln = "A Farris Input Component", Un = "object", _n = {
449
+ ]), Dn = "https://json-schema.org/draft/2020-12/schema", $n = "https://farris-design.gitee.io/combo-list.schema.json", Ln = "combo-list", Un = "A Farris Input Component", _n = "object", Rn = {
449
450
  id: {
450
451
  description: "The unique identifier for a combo list",
451
452
  type: "string"
@@ -473,6 +474,11 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
473
474
  type: "object",
474
475
  default: {}
475
476
  },
477
+ disabled: {
478
+ description: "",
479
+ type: "boolean",
480
+ default: !1
481
+ },
476
482
  editable: {
477
483
  description: "",
478
484
  type: "boolean",
@@ -500,7 +506,7 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
500
506
  valueField: {
501
507
  description: "",
502
508
  type: "string",
503
- default: "value"
509
+ default: "id"
504
510
  },
505
511
  titleField: {
506
512
  description: "",
@@ -556,19 +562,24 @@ const gn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
556
562
  type: "sting",
557
563
  default: ""
558
564
  }
559
- }, Rn = [
565
+ }, Gn = [
560
566
  "id",
561
567
  "type"
562
- ], Gn = {
563
- $schema: jn,
564
- $id: Dn,
565
- title: $n,
566
- description: Ln,
567
- type: Un,
568
- properties: _n,
569
- required: Rn
568
+ ], Hn = [
569
+ "id",
570
+ "appearance",
571
+ "binding"
572
+ ], qn = {
573
+ $schema: Dn,
574
+ $id: $n,
575
+ title: Ln,
576
+ description: Un,
577
+ type: _n,
578
+ properties: Rn,
579
+ required: Gn,
580
+ ignore: Hn
570
581
  };
571
- function Hn(e, n, t) {
582
+ function Wn(e, n, t) {
572
583
  return n;
573
584
  }
574
585
  const Ce = {
@@ -648,7 +659,7 @@ const Ce = {
648
659
  * 可选,是否支持多选
649
660
  * 默认`false`
650
661
  */
651
- multiSelect: { default: !1, type: Boolean },
662
+ multiSelect: { type: Boolean, default: !1 },
652
663
  /**
653
664
  * 绑定值
654
665
  */
@@ -737,11 +748,11 @@ const Ce = {
737
748
  },
738
749
  // 搜索启用高亮
739
750
  enableHighlightSearch: { type: Boolean, default: !0 }
740
- }, Ze = ce(Ce, Gn, In, Hn), qn = {
751
+ }, Ye = ce(Ce, qn, jn, Wn), zn = {
741
752
  dataSource: { type: Array, default: [] },
742
753
  enableSearch: { type: Boolean, default: !1 },
743
754
  idField: { type: String, default: "id" },
744
- multiSelect: { default: !1, type: Boolean },
755
+ multiSelect: { type: Boolean, default: !1 },
745
756
  selectedValues: { type: String, default: "" },
746
757
  separator: { type: String, default: "," },
747
758
  textField: { type: String, default: "name" },
@@ -757,147 +768,152 @@ const Ce = {
757
768
  default: !1
758
769
  },
759
770
  // 搜索启用高亮
760
- enableHighlightSearch: { type: Boolean, default: !0 }
761
- }, Wn = /* @__PURE__ */ q({
771
+ enableHighlightSearch: { type: Boolean, default: !0 },
772
+ // 是否展示复选框
773
+ showCheckbox: { type: Boolean, default: !1 }
774
+ }, Yn = /* @__PURE__ */ W({
762
775
  name: "FComboListContainer",
763
- props: qn,
776
+ props: zn,
764
777
  emits: ["selectionChange"],
765
778
  setup(e, n) {
766
- const t = y(), r = y(e.dataSource), o = y([]), a = y(e.separator), l = y(e.width), u = y(e.maxHeight), c = y(String(e.selectedValues).split(a.value));
767
- N(e.dataSource, () => {
779
+ const t = y(), r = y(e.dataSource), o = y([]), a = y(e.separator), l = y(e.width), u = y(e.maxHeight), s = y(String(e.selectedValues).split(a.value)), i = x(() => e.multiSelect), d = x(() => ({
780
+ enableSelectRow: !0,
781
+ multiSelect: e.multiSelect,
782
+ multiSelectMode: "OnCheckAndClick",
783
+ showCheckbox: i.value,
784
+ showSelectAll: !1,
785
+ showSelection: !0
786
+ }));
787
+ O(e.dataSource, () => {
768
788
  r.value = e.dataSource;
769
789
  });
770
- const i = x(() => e.enableSearch ? "SearchBar" : "ContentHeader"), p = x(() => {
771
- const s = {};
772
- return l.value !== void 0 && (s.width = `${l.value}px`), u.value !== void 0 && u.value > 0 && (s.maxHeight = `${u.value}px`), s;
790
+ const c = x(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = x(() => {
791
+ const m = {};
792
+ return l.value !== void 0 && (m.width = `${l.value}px`), u.value !== void 0 && u.value > 0 && (m.maxHeight = `${u.value}px`), m;
773
793
  });
774
- function d(s) {
775
- o.value = s.map((v) => Object.assign({}, v)), c.value = s.map((v) => v[e.idField]), n.emit("selectionChange", o.value);
794
+ function p(m) {
795
+ o.value = m.map((b) => Object.assign({}, b)), s.value = m.map((b) => b[e.idField]), n.emit("selectionChange", o.value);
776
796
  }
777
- function f(s) {
797
+ function v(m) {
778
798
  if (e.enableHighlightSearch)
779
799
  return;
780
- let v = [];
781
- typeof e.searchOption == "function" ? v = r.value.filter((h) => e.searchOption(s, h)) : v = r.value.filter((h) => h[e.valueField].indexOf(s) > -1 || h[e.textField].indexOf(s) > -1), t.value.updateDataSource(v);
800
+ let b = [];
801
+ typeof e.searchOption == "function" ? b = r.value.filter((S) => e.searchOption(m, S)) : b = r.value.filter((S) => S[e.valueField].indexOf(m) > -1 || S[e.textField].indexOf(m) > -1), t.value.updateDataSource(b);
782
802
  }
783
- return N([() => e.selectedValues], ([s]) => {
784
- c.value = s.split(a.value);
785
- }), () => g("div", {
786
- class: "f-combo-list-container pl-3",
787
- style: p.value
788
- }, [g(on, {
803
+ return O([() => e.selectedValues], ([m]) => {
804
+ s.value = m.split(a.value);
805
+ }), () => w("div", {
806
+ class: "f-combo-list-container pl-1",
807
+ style: f.value
808
+ }, [w(rn, {
789
809
  ref: t,
790
810
  size: "small",
791
811
  itemClass: "f-combo-list-item",
792
- header: i.value,
812
+ header: c.value,
793
813
  headerClass: "f-combo-list-search-box",
794
814
  data: r.value,
795
815
  idField: e.idField,
796
816
  textField: e.textField,
797
817
  titleField: e.titleField,
798
818
  multiSelect: e.multiSelect,
799
- selection: {
800
- enableSelectRow: !0,
801
- multiSelect: !0,
802
- multiSelectMode: "OnCheckAndClick",
803
- showCheckbox: !0,
804
- showSelectAll: !1,
805
- showSelection: !0
806
- },
819
+ selection: d.value,
807
820
  enableHighlightSearch: e.enableHighlightSearch,
808
- selectionValues: c.value,
809
- onSelectionChange: d,
810
- onAfterSearch: f
821
+ selectionValues: s.value,
822
+ onSelectionChange: p,
823
+ onAfterSearch: v
811
824
  }, null)]);
812
825
  }
813
826
  });
814
- function zn(e) {
827
+ function Zn(e) {
815
828
  const n = y(""), t = y(e.modelValue), r = y(e.data || []), o = y(e.editable);
816
- function a(d) {
817
- const f = String(d).split(e.separator).map((v) => [v, !0]), s = new Map(f);
818
- return r.value.filter((v) => s.has(String(v[e.valueField])));
829
+ function a(c) {
830
+ const f = String(c).split(e.separator), p = f.map((b) => [b, !0]), v = new Map(p);
831
+ return r.value.filter((b) => v.has(String(b[e.valueField]))).sort((b, S) => {
832
+ const E = f.indexOf(b[e.valueField]), k = f.indexOf(S[e.valueField]);
833
+ return E - k;
834
+ });
819
835
  }
820
- function l(d) {
821
- const f = a(d).map((s) => s[e.textField]).join(e.separator);
822
- n.value = o.value ? f || d : f;
836
+ function l(c) {
837
+ const f = a(c).map((p) => p[e.textField]).join(e.separator);
838
+ n.value = o.value ? f || c : f;
823
839
  }
824
- function u(d) {
825
- const f = d.split(e.separator).map((v) => [v, !0]), s = new Map(f);
826
- return r.value.filter((v) => s.has(v[e.textField]));
840
+ function u(c) {
841
+ const f = c.split(e.separator).map((v) => [v, !0]), p = new Map(f);
842
+ return r.value.filter((v) => p.has(v[e.textField]));
827
843
  }
828
- function c(d) {
844
+ function s(c) {
829
845
  const f = {};
830
- return f[e.idField] = d, f[e.textField] = d, [f];
846
+ return f[e.idField] = c, f[e.textField] = c, [f];
831
847
  }
832
- function i(d) {
833
- let f = u(d);
834
- const s = f && f.length > 0;
835
- return o.value && !s && (f = c(d)), f;
848
+ function i(c) {
849
+ let f = u(c);
850
+ const p = f && f.length > 0;
851
+ return o.value && !p && (f = s(c)), f;
836
852
  }
837
- function p() {
838
- const { url: d, method: f = "GET", headers: s = {}, body: v = null } = e.remote, h = f.toLowerCase() == "get" ? { method: f, headers: s } : { method: f, headers: s, body: v };
839
- let S = !1;
840
- fetch(d, h).then((C) => {
841
- var E, w;
842
- if (C.status === 200)
843
- return S = !!((w = (E = C.headers) == null ? void 0 : E.get("content-type")) != null && w.includes("application/json")), S ? C.text() : C.json();
844
- throw new Error(C.statusText);
845
- }).then((C) => {
846
- r.value = S ? JSON.parse(C) : C;
847
- }).catch((C) => {
848
- console.error(C);
853
+ function d() {
854
+ const { url: c, method: f = "GET", headers: p = {}, body: v = null } = e.remote, m = f.toLowerCase() == "get" ? { method: f, headers: p } : { method: f, headers: p, body: v };
855
+ let b = !1;
856
+ fetch(c, m).then((S) => {
857
+ var k, C;
858
+ if (S.status === 200)
859
+ return b = !!((C = (k = S.headers) == null ? void 0 : k.get("content-type")) != null && C.includes("application/json")), b ? S.text() : S.json();
860
+ throw new Error(S.statusText);
861
+ }).then((S) => {
862
+ r.value = b ? JSON.parse(S) : S;
863
+ }).catch((S) => {
864
+ console.error(S);
849
865
  });
850
866
  }
851
- return e.remote && p(), N(() => e.data, () => {
867
+ return e.remote && d(), O(() => e.data, () => {
852
868
  r.value = e.data;
853
- }), N([r], ([d]) => {
869
+ }), O([r], ([c]) => {
854
870
  if (e.modelValue) {
855
- const f = d.find((s) => s[e.valueField] === e.modelValue);
871
+ const f = c.find((p) => p[e.valueField] === e.modelValue);
856
872
  f && (n.value = f[e.textField]);
857
873
  }
858
- }), N(() => e.modelValue, (d) => {
859
- t.value = d, l(d);
874
+ }), O(() => e.modelValue, (c) => {
875
+ t.value = c, l(c);
860
876
  }), l(e.modelValue), { dataSource: r, displayText: n, editable: o, modelValue: t, getItemsByDisplayText: u, getItemsByValue: a, getSelectedItemsByDisplayText: i };
861
877
  }
862
- const G = /* @__PURE__ */ q({
878
+ const G = /* @__PURE__ */ W({
863
879
  name: "FComboList",
864
880
  props: Ce,
865
881
  emits: ["clear", "update:modelValue", "change", "input"],
866
882
  setup(e, n) {
867
883
  const t = y(), r = y(e.disabled), o = y(e.enableClear), a = y(e.enableSearch), l = y(e.readonly), {
868
884
  dataSource: u,
869
- displayText: c,
885
+ displayText: s,
870
886
  editable: i,
871
- modelValue: p,
872
- getSelectedItemsByDisplayText: d
873
- } = zn(e), f = x(() => e.multiSelect), s = x(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
887
+ modelValue: d,
888
+ getSelectedItemsByDisplayText: c
889
+ } = Zn(e), f = x(() => e.multiSelect), p = x(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
874
890
  function v() {
875
891
  !f.value && t.value && t.value.hidePopup();
876
892
  }
877
- function h(B) {
878
- c.value = B.map((b) => b[e.textField]).join(e.separator), B.length === 1 ? p.value = B[0][e.valueField] : p.value = B.map((b) => b[e.valueField]).join(e.separator), n.emit("update:modelValue", p.value), n.emit("change", B, p.value), v();
893
+ function m(T) {
894
+ s.value = T.map((g) => g[e.textField]).join(e.separator), T.length === 1 ? d.value = T[0][e.valueField] : d.value = T.map((g) => g[e.valueField]).join(e.separator), n.emit("update:modelValue", d.value), n.emit("change", T, d.value), v();
879
895
  }
880
- function S() {
896
+ function b() {
881
897
  l.value || t.value.togglePopup();
882
898
  }
883
- function C(B) {
884
- p.value = "", n.emit("update:modelValue", ""), n.emit("clear");
899
+ function S(T) {
900
+ d.value = "", n.emit("update:modelValue", ""), n.emit("clear");
885
901
  }
886
- function A(B) {
887
- const b = d(B);
888
- h(b);
902
+ function E(T) {
903
+ const g = c(T);
904
+ m(g);
889
905
  }
890
- function E() {
891
- return c.value;
906
+ function k() {
907
+ return s.value;
892
908
  }
893
- function w(B) {
894
- n.emit("input", B);
909
+ function C(T) {
910
+ n.emit("input", T);
895
911
  }
896
912
  return n.expose({
897
- getDisplayText: E
898
- }), N([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([B, b, T, k, L]) => {
899
- r.value = B, i.value = b, o.value = T, a.value = k, l.value = L;
900
- }), () => g(qe, {
913
+ getDisplayText: k
914
+ }), O([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([T, g, F, A, N]) => {
915
+ r.value = T, i.value = g, o.value = F, a.value = A, l.value = N;
916
+ }), () => w(on, {
901
917
  ref: t,
902
918
  id: e.id,
903
919
  disable: r.value,
@@ -912,29 +928,29 @@ const G = /* @__PURE__ */ q({
912
928
  enableTitle: e.enableTitle,
913
929
  multiSelect: e.multiSelect,
914
930
  inputType: e.multiSelect ? e.viewType : "text",
915
- modelValue: c.value,
916
- "onUpdate:modelValue": (B) => c.value = B,
931
+ modelValue: s.value,
932
+ "onUpdate:modelValue": (T) => s.value = T,
917
933
  focusOnCreated: e.focusOnCreated,
918
934
  selectOnCreated: e.selectOnCreated,
919
- onClear: C,
920
- onClick: S,
921
- onChange: A,
922
- onInput: w,
935
+ onClear: S,
936
+ onClick: b,
937
+ onChange: E,
938
+ onInput: C,
923
939
  beforeOpen: e.beforeOpen
924
940
  }, {
925
- default: () => [g(Wn, {
941
+ default: () => [w(Yn, {
926
942
  idField: e.idField,
927
943
  valueField: e.valueField,
928
944
  textField: e.textField,
929
945
  titleField: e.titleField,
930
946
  dataSource: u.value,
931
- selectedValues: p.value,
947
+ selectedValues: d.value,
932
948
  multiSelect: e.multiSelect,
933
949
  enableSearch: a.value,
934
950
  maxHeight: e.maxHeight,
935
951
  enableHighlightSearch: e.enableHighlightSearch,
936
- width: e.fitEditor ? s.value : void 0,
937
- onSelectionChange: h
952
+ width: e.fitEditor ? p.value : void 0,
953
+ onSelectionChange: m
938
954
  }, null)]
939
955
  });
940
956
  }
@@ -942,7 +958,7 @@ const G = /* @__PURE__ */ q({
942
958
  function xe(e, n) {
943
959
  e.schema;
944
960
  const t = y(!0), r = y(!0);
945
- function o(d) {
961
+ function o(c) {
946
962
  return !1;
947
963
  }
948
964
  function a() {
@@ -954,11 +970,11 @@ function xe(e, n) {
954
970
  function u() {
955
971
  return !0;
956
972
  }
957
- function c(d) {
973
+ function s(c) {
958
974
  }
959
975
  function i() {
960
976
  }
961
- function p(d) {
977
+ function d(c) {
962
978
  return null;
963
979
  }
964
980
  return {
@@ -966,27 +982,27 @@ function xe(e, n) {
966
982
  checkCanDeleteComponent: a,
967
983
  checkCanMoveComponent: l,
968
984
  hideNestedPaddingInDesginerView: u,
969
- onAcceptMovedChildElement: c,
985
+ onAcceptMovedChildElement: s,
970
986
  resolveComponentContext: i,
971
987
  triggerBelongedComponentToMoveWhenMoved: t,
972
988
  triggerBelongedComponentToDeleteWhenDeleted: r,
973
- getPropsConfig: p
989
+ getPropsConfig: d
974
990
  };
975
991
  }
976
- class Yn {
992
+ class Jn {
977
993
  constructor(n, t) {
978
- D(this, "componentId");
979
- D(this, "viewModelId");
980
- D(this, "eventsEditorUtils");
981
- D(this, "formSchemaUtils");
982
- D(this, "formMetadataConverter");
983
- D(this, "designViewModelUtils");
984
- D(this, "designViewModelField");
985
- D(this, "controlCreatorUtils");
986
- D(this, "designerHostService");
987
- D(this, "schemaService", null);
988
- D(this, "metadataService", null);
989
- D(this, "propertyConfig", {
994
+ $(this, "componentId");
995
+ $(this, "viewModelId");
996
+ $(this, "eventsEditorUtils");
997
+ $(this, "formSchemaUtils");
998
+ $(this, "formMetadataConverter");
999
+ $(this, "designViewModelUtils");
1000
+ $(this, "designViewModelField");
1001
+ $(this, "controlCreatorUtils");
1002
+ $(this, "designerHostService");
1003
+ $(this, "schemaService", null);
1004
+ $(this, "metadataService", null);
1005
+ $(this, "propertyConfig", {
990
1006
  type: "object",
991
1007
  categories: {}
992
1008
  });
@@ -1078,7 +1094,7 @@ const Z = class Z {
1078
1094
  /**
1079
1095
  * <字段类型,可配置的控件类型列表>的映射
1080
1096
  */
1081
- D(Z, "fieldControlTypeMapping", {
1097
+ $(Z, "fieldControlTypeMapping", {
1082
1098
  String: [
1083
1099
  { key: V["input-group"].type, value: V["input-group"].name },
1084
1100
  { key: V.lookup.type, value: V.lookup.name },
@@ -1125,8 +1141,8 @@ D(Z, "fieldControlTypeMapping", {
1125
1141
  ]
1126
1142
  });
1127
1143
  let ie = Z;
1128
- const Zn = y(0);
1129
- class Ve extends Yn {
1144
+ const Qn = y(0);
1145
+ class Ve extends Jn {
1130
1146
  constructor(n, t) {
1131
1147
  super(n, t);
1132
1148
  }
@@ -1149,8 +1165,8 @@ class Ve extends Yn {
1149
1165
  readonly: !0
1150
1166
  },
1151
1167
  type: {
1152
- description: "组件类型",
1153
- title: "控件类型",
1168
+ description: "编辑器类型",
1169
+ title: "编辑器类型",
1154
1170
  type: "string",
1155
1171
  refreshPanelAfterChanged: !0,
1156
1172
  $converter: "/converter/change-editor.converter",
@@ -1188,13 +1204,17 @@ class Ve extends Yn {
1188
1204
  }
1189
1205
  }
1190
1206
  },
1191
- setPropertyRelates(u, c) {
1207
+ setPropertyRelates(u, s) {
1192
1208
  if (u)
1193
1209
  switch (u && u.propertyID) {
1194
1210
  case "type": {
1195
1211
  r.changeControlType(n, u, t);
1196
1212
  break;
1197
1213
  }
1214
+ case "label": {
1215
+ u.needRefreshControlTree = !0;
1216
+ break;
1217
+ }
1198
1218
  }
1199
1219
  }
1200
1220
  };
@@ -1238,12 +1258,12 @@ class Ve extends Yn {
1238
1258
  * @param newControlType 新控件类型
1239
1259
  */
1240
1260
  changeControlType(n, t, r) {
1241
- var i, p, d, f;
1261
+ var i, d, c, f;
1242
1262
  const o = t.propertyValue, a = r && r.parent && r.parent.schema;
1243
1263
  if (!a)
1244
1264
  return;
1245
- const l = a.contents.findIndex((s) => s.id === n.id), u = a.contents[l];
1246
- let c;
1265
+ const l = a.contents.findIndex((p) => p.id === n.id), u = a.contents[l];
1266
+ let s;
1247
1267
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1248
1268
  editor: {
1249
1269
  $type: o
@@ -1251,27 +1271,27 @@ class Ve extends Yn {
1251
1271
  name: this.designViewModelField.name,
1252
1272
  require: this.designViewModelField.require,
1253
1273
  readonly: this.designViewModelField.readonly
1254
- }, !1), c = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, o)), c || (c = $e("form-group") || {}, c.editor = $e(o) || {}, delete c.editor.id, delete c.editor.binding, delete c.editor.appearance), Object.assign(c, {
1274
+ }, !1), s = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, o)), s || (s = $e("form-group") || {}, s.editor = $e(o) || {}, delete s.editor.id, delete s.editor.binding, delete s.editor.appearance), Object.assign(s, {
1255
1275
  id: u.id,
1256
1276
  appearance: u.appearance,
1257
1277
  size: u.size,
1258
1278
  label: u.label,
1259
1279
  binding: u.binding,
1260
1280
  visible: u.visible
1261
- }), Object.assign(c.editor, {
1262
- isTextArea: c.isTextArea && u.isTextArea,
1281
+ }), Object.assign(s.editor, {
1282
+ isTextArea: s.isTextArea && u.isTextArea,
1263
1283
  placeholder: (i = u.editor) == null ? void 0 : i.placeholder,
1264
- holdPlace: (p = u.editor) == null ? void 0 : p.holdPlace,
1265
- readonly: (d = u.editor) == null ? void 0 : d.readonly,
1284
+ holdPlace: (d = u.editor) == null ? void 0 : d.holdPlace,
1285
+ readonly: (c = u.editor) == null ? void 0 : c.readonly,
1266
1286
  require: (f = u.editor) == null ? void 0 : f.require
1267
- }), a.contents.splice(l, 1), a.contents.splice(l, 0, c), r.schema = Object.assign(u, c), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1268
- (s) => s.classList.remove("dgComponentSelected")
1269
- ), Zn.value++;
1287
+ }), a.contents.splice(l, 1), a.contents.splice(l, 0, s), r.schema = Object.assign(u, s), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1288
+ (p) => p.classList.remove("dgComponentSelected")
1289
+ ), Qn.value++;
1270
1290
  }
1271
1291
  getComponentConfig(n, t = {}, r = {}) {
1272
1292
  const o = Object.assign({
1273
- description: "组件信息",
1274
- title: "组件信息",
1293
+ description: "编辑器",
1294
+ title: "编辑器",
1275
1295
  type: "input-group",
1276
1296
  $converter: "/converter/property-editor.converter"
1277
1297
  }, t), a = Object.assign({
@@ -1299,7 +1319,7 @@ class Ve extends Yn {
1299
1319
  return { ...o, properties: { ...a } };
1300
1320
  }
1301
1321
  }
1302
- class Jn extends Ve {
1322
+ class Xn extends Ve {
1303
1323
  constructor(n, t) {
1304
1324
  super(n, t);
1305
1325
  }
@@ -1323,7 +1343,7 @@ class Jn extends Ve {
1323
1343
  });
1324
1344
  }
1325
1345
  }
1326
- function Qn(e, n) {
1346
+ function Kn(e, n) {
1327
1347
  const {
1328
1348
  canAccepts: t,
1329
1349
  checkCanDeleteComponent: r,
@@ -1331,11 +1351,11 @@ function Qn(e, n) {
1331
1351
  hideNestedPaddingInDesginerView: a,
1332
1352
  onAcceptMovedChildElement: l,
1333
1353
  resolveComponentContext: u,
1334
- triggerBelongedComponentToMoveWhenMoved: c,
1354
+ triggerBelongedComponentToMoveWhenMoved: s,
1335
1355
  triggerBelongedComponentToDeleteWhenDeleted: i
1336
- } = xe(e), p = e.schema;
1337
- function d(f, s) {
1338
- return new Jn(f, n).getPropertyConfig(p, s);
1356
+ } = xe(e), d = e.schema;
1357
+ function c(f, p) {
1358
+ return new Xn(f, n).getPropertyConfig(d, p);
1339
1359
  }
1340
1360
  return {
1341
1361
  canAccepts: t,
@@ -1344,34 +1364,27 @@ function Qn(e, n) {
1344
1364
  hideNestedPaddingInDesginerView: a,
1345
1365
  onAcceptMovedChildElement: l,
1346
1366
  resolveComponentContext: u,
1347
- triggerBelongedComponentToMoveWhenMoved: c,
1367
+ triggerBelongedComponentToMoveWhenMoved: s,
1348
1368
  triggerBelongedComponentToDeleteWhenDeleted: i,
1349
- getPropsConfig: d
1369
+ getPropsConfig: c
1350
1370
  };
1351
1371
  }
1352
- const Xn = /* @__PURE__ */ q({
1372
+ const er = /* @__PURE__ */ W({
1353
1373
  name: "FComboListDesign",
1354
1374
  props: Ce,
1355
1375
  emits: ["clear", "update:modelValue", "change"],
1356
1376
  setup(e, n) {
1357
- const t = y(), r = Q("designer-host-service"), o = Q("design-item-context"), a = Qn(o, r), l = an(t, o, a);
1377
+ const t = y(), r = Q("designer-host-service"), o = Q("design-item-context"), a = Kn(o, r), l = ln(t, o, a);
1358
1378
  return H(() => {
1359
1379
  t.value.componentInstance = l;
1360
- }), n.expose(l.value), () => g(qe, {
1380
+ }), n.expose(l.value), () => w(an, {
1361
1381
  ref: t,
1362
- id: e.id,
1363
- disable: e.disabled,
1364
- readonly: e.readonly,
1365
- forcePlaceholder: e.forcePlaceholder,
1366
- editable: !1,
1367
1382
  buttonContent: e.dropDownIcon,
1383
+ readonly: !0,
1384
+ editable: !1,
1385
+ forcePlaceholder: !0,
1368
1386
  placeholder: e.placeholder,
1369
- enableClear: !1,
1370
- maxLength: e.maxLength,
1371
- tabIndex: e.tabIndex,
1372
- enableTitle: e.enableTitle,
1373
- multiSelect: e.multiSelect,
1374
- inputType: e.multiSelect ? "tag" : "text"
1387
+ enableClear: !0
1375
1388
  }, null);
1376
1389
  }
1377
1390
  }), Te = (e) => {
@@ -1381,19 +1394,19 @@ const Xn = /* @__PURE__ */ q({
1381
1394
  }, e;
1382
1395
  };
1383
1396
  G.register = (e, n, t, r) => {
1384
- e["combo-list"] = G, n["combo-list"] = Ze;
1397
+ e["combo-list"] = G, n["combo-list"] = Ye;
1385
1398
  };
1386
1399
  G.registerDesigner = (e, n, t) => {
1387
- e["combo-list"] = Xn, n["combo-list"] = Ze;
1400
+ e["combo-list"] = er, n["combo-list"] = Ye;
1388
1401
  };
1389
1402
  Te(G);
1390
- const Kn = /* @__PURE__ */ new Map([
1403
+ const tr = /* @__PURE__ */ new Map([
1391
1404
  ["appearance", de]
1392
1405
  ]);
1393
- function er(e, n, t) {
1406
+ function nr(e, n, t) {
1394
1407
  return n;
1395
1408
  }
1396
- const tr = "https://json-schema.org/draft/2020-12/schema", nr = "https://farris-design.gitee.io/input-group.schema.json", rr = "input-group", or = "A Farris Input Component", ar = "object", ir = {
1409
+ const rr = "https://json-schema.org/draft/2020-12/schema", or = "https://farris-design.gitee.io/input-group.schema.json", ar = "input-group", ir = "A Farris Input Component", lr = "object", ur = {
1397
1410
  id: {
1398
1411
  description: "The unique identifier for a Input Group",
1399
1412
  type: "string"
@@ -1595,17 +1608,17 @@ const tr = "https://json-schema.org/draft/2020-12/schema", nr = "https://farris-
1595
1608
  type: "string",
1596
1609
  default: ""
1597
1610
  }
1598
- }, lr = [
1611
+ }, sr = [
1599
1612
  "id",
1600
1613
  "type"
1601
- ], ur = {
1602
- $schema: tr,
1603
- $id: nr,
1604
- title: rr,
1605
- description: or,
1606
- type: ar,
1607
- properties: ir,
1608
- required: lr
1614
+ ], cr = {
1615
+ $schema: rr,
1616
+ $id: or,
1617
+ title: ar,
1618
+ description: ir,
1619
+ type: lr,
1620
+ properties: ur,
1621
+ required: sr
1609
1622
  }, Be = {
1610
1623
  /** 是否自动完成 */
1611
1624
  autocomplete: { Type: String, default: "off" },
@@ -1672,54 +1685,54 @@ const tr = "https://json-schema.org/draft/2020-12/schema", nr = "https://farris-
1672
1685
  * - input: 输入时更新
1673
1686
  */
1674
1687
  updateOn: { type: String, default: "blur" }
1675
- }, Je = ce(Be, ur, Kn, er);
1676
- function sr(e, n, t, r) {
1677
- const o = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder), c = y(e.textAlign), i = y(e.updateOn), p = x(() => e.editable || !e.readonly), d = x(() => e.editable && !e.disabled && !e.readonly), f = x(() => !e.disabled && a.value), s = x(() => t.value === "" || t.value === null || t.value === void 0), v = x(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), h = x(() => e.readonly || !e.editable), S = x(() => e.enableTitle ? t.value : ""), C = x(() => ({
1688
+ }, Ze = ce(Be, cr, tr, nr);
1689
+ function dr(e, n, t, r) {
1690
+ const o = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder), s = y(e.textAlign), i = y(e.updateOn), d = x(() => e.editable || !e.readonly), c = x(() => e.editable && !e.disabled && !e.readonly), f = x(() => !e.disabled && a.value), p = x(() => t.value === "" || t.value === null || t.value === void 0), v = x(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), m = x(() => e.readonly || !e.editable), b = x(() => e.enableTitle ? t.value : ""), S = x(() => ({
1678
1691
  "form-control": !0,
1679
1692
  "f-utils-fill": !0,
1680
- "text-left": c.value === "left",
1681
- "text-center": c.value === "center",
1682
- "text-right": c.value === "right"
1683
- })), A = x(() => {
1693
+ "text-left": s.value === "left",
1694
+ "text-center": s.value === "center",
1695
+ "text-right": s.value === "right"
1696
+ })), E = x(() => {
1684
1697
  const M = {
1685
1698
  "f-cmp-inputgroup": !0,
1686
1699
  "input-group": !0,
1687
1700
  "f-state-disable": o.value,
1688
- "f-state-editable": d.value,
1689
- "f-state-readonly": h.value,
1701
+ "f-state-editable": c.value,
1702
+ "f-state-readonly": m.value,
1690
1703
  "f-state-focus": f.value
1691
1704
  };
1692
1705
  return (e.customClass || "").split(" ").reduce((re, pe) => (re[pe] = !0, re), M), M;
1693
- }), E = x(() => u.value ? "" : "border-width : 0 ");
1694
- function w(M, j = !0) {
1695
- t.value = M, r.value !== M && (r.value = M), j && n.emit("change", M), n.emit("update:modelValue", M), n.emit("update:value", M);
1706
+ }), k = x(() => u.value ? "" : "border-width : 0 ");
1707
+ function C(M, D = !0) {
1708
+ t.value = M, r.value !== M && (r.value = M), D && n.emit("change", M), n.emit("update:modelValue", M), n.emit("update:value", M);
1696
1709
  }
1697
- N(
1710
+ O(
1698
1711
  () => e.modelValue,
1699
- (M, j) => {
1700
- M !== j && (t.value = M, r.value = M);
1712
+ (M, D) => {
1713
+ M !== D && (t.value = M, r.value = M);
1701
1714
  }
1702
- ), N(() => e.disabled, (M, j) => {
1703
- M !== j && (o.value = M);
1715
+ ), O(() => e.disabled, (M, D) => {
1716
+ M !== D && (o.value = M);
1704
1717
  });
1705
- function B(M) {
1718
+ function T(M) {
1706
1719
  return a.value = !1, n.emit("blur", M), M.stopPropagation(), !1;
1707
1720
  }
1708
- function b(M) {
1721
+ function g(M) {
1709
1722
  n.emit("click", M);
1710
1723
  }
1711
- function T(M) {
1712
- e.disabled || (u.value && (a.value = !0), p.value && n.emit("focus", M));
1724
+ function F(M) {
1725
+ e.disabled || (u.value && (a.value = !0), d.value && n.emit("focus", M));
1713
1726
  }
1714
- function k(M) {
1727
+ function A(M) {
1715
1728
  n.emit("input", M.target.value);
1716
- const j = M.target.value;
1717
- r.value = j, i.value === "input" && (n.emit("update:modelValue", j), n.emit("update:value", j));
1729
+ const D = M.target.value;
1730
+ r.value = D, i.value === "input" && (n.emit("update:modelValue", D), n.emit("update:value", D));
1718
1731
  }
1719
- function L(M) {
1732
+ function N(M) {
1720
1733
  n.emit("keydown", M);
1721
1734
  }
1722
- function Y(M) {
1735
+ function q(M) {
1723
1736
  n.emit("keyup", M);
1724
1737
  }
1725
1738
  function _(M) {
@@ -1727,63 +1740,63 @@ function sr(e, n, t, r) {
1727
1740
  }
1728
1741
  function K(M) {
1729
1742
  if (i.value === "blur") {
1730
- const j = M.target.value;
1731
- M.stopPropagation(), w(j);
1743
+ const D = M.target.value;
1744
+ M.stopPropagation(), C(D);
1732
1745
  }
1733
1746
  }
1734
1747
  return {
1735
- changeTextBoxValue: w,
1748
+ changeTextBoxValue: C,
1736
1749
  disabled: o,
1737
1750
  displayText: r,
1738
- editable: d,
1751
+ editable: c,
1739
1752
  hasFocused: f,
1740
- inputGroupClass: A,
1753
+ inputGroupClass: E,
1741
1754
  inputType: l,
1742
- isEmpty: s,
1755
+ isEmpty: p,
1743
1756
  modelValue: t,
1744
- readonly: h,
1745
- onBlur: B,
1746
- onClick: b,
1747
- onFocus: T,
1748
- onInput: k,
1749
- onKeydown: L,
1750
- onKeyup: Y,
1757
+ readonly: m,
1758
+ onBlur: T,
1759
+ onClick: g,
1760
+ onFocus: F,
1761
+ onInput: A,
1762
+ onKeydown: N,
1763
+ onKeyup: q,
1751
1764
  onMousedown: _,
1752
1765
  onTextBoxValueChange: K,
1753
1766
  placeholder: v,
1754
- textBoxClass: C,
1755
- textBoxTitle: S,
1756
- inputGroupStyle: E
1767
+ textBoxClass: S,
1768
+ textBoxTitle: b,
1769
+ inputGroupStyle: k
1757
1770
  };
1758
1771
  }
1759
- function cr(e, n, t, r) {
1760
- const o = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder), c = y(e.textAlign);
1772
+ function pr(e, n, t, r) {
1773
+ const o = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder), s = y(e.textAlign);
1761
1774
  x(() => e.editable || !e.readonly);
1762
- const i = x(() => e.editable && !e.disabled && !e.readonly), p = x(() => !e.disabled && a.value), d = x(() => t.value === "" || t.value === null || t.value === void 0), f = x(() => e.placeholder), s = x(() => e.readonly || !e.editable), v = x(() => e.enableTitle ? t.value : ""), h = x(() => ({
1775
+ const i = x(() => e.editable && !e.disabled && !e.readonly), d = x(() => !e.disabled && a.value), c = x(() => t.value === "" || t.value === null || t.value === void 0), f = x(() => e.placeholder), p = x(() => e.readonly || !e.editable), v = x(() => e.enableTitle ? t.value : ""), m = x(() => ({
1763
1776
  "form-control": !0,
1764
1777
  // 'f-utils-fill': true,
1765
- "text-left": c.value === "left",
1766
- "text-center": c.value === "center",
1767
- "text-right": c.value === "right"
1768
- })), S = x(() => ({
1778
+ "text-left": s.value === "left",
1779
+ "text-center": s.value === "center",
1780
+ "text-right": s.value === "right"
1781
+ })), b = x(() => ({
1769
1782
  "f-cmp-inputgroup": !0,
1770
1783
  "input-group": !0,
1771
1784
  "f-state-disable": !0,
1772
1785
  "f-state-editable": !1,
1773
1786
  "f-state-readonly": !0
1774
1787
  // 'f-state-focus': hasFocused.value
1775
- })), C = x(() => u.value ? "" : "border-width : 0 ");
1788
+ })), S = x(() => u.value ? "" : "border-width : 0 ");
1776
1789
  return {
1777
1790
  // changeTextBoxValue,
1778
1791
  disabled: o,
1779
1792
  displayText: r,
1780
1793
  editable: i,
1781
- hasFocused: p,
1782
- inputGroupClass: S,
1794
+ hasFocused: d,
1795
+ inputGroupClass: b,
1783
1796
  inputType: l,
1784
- isEmpty: d,
1797
+ isEmpty: c,
1785
1798
  modelValue: t,
1786
- readonly: s,
1799
+ readonly: p,
1787
1800
  // onBlur,
1788
1801
  // onClick,
1789
1802
  // onFocus,
@@ -1793,39 +1806,39 @@ function cr(e, n, t, r) {
1793
1806
  // onMousedown,
1794
1807
  // onTextBoxValueChange,
1795
1808
  placeholder: f,
1796
- textBoxClass: h,
1809
+ textBoxClass: m,
1797
1810
  textBoxTitle: v,
1798
- inputGroupStyle: C
1811
+ inputGroupStyle: S
1799
1812
  };
1800
1813
  }
1801
- function Qe(e, n, t) {
1802
- const r = y(!1), o = x(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: u, isEmpty: c } = t;
1803
- function i(h) {
1804
- r.value = h;
1814
+ function Je(e, n, t) {
1815
+ const r = y(!1), o = x(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: u, isEmpty: s } = t;
1816
+ function i(m) {
1817
+ r.value = m;
1805
1818
  }
1806
- N(l, () => {
1819
+ O(l, () => {
1807
1820
  u != null && u.value ? i(!!(l != null && l.value)) : i(!1);
1808
1821
  });
1809
- const p = x(() => ({
1822
+ const d = x(() => ({
1810
1823
  "input-group-text": !0,
1811
1824
  "input-group-clear": !0
1812
- })), d = x(() => ({
1825
+ })), c = x(() => ({
1813
1826
  width: "24px",
1814
1827
  display: r.value ? "flex" : "none"
1815
1828
  }));
1816
- function f(h) {
1817
- h.stopPropagation(), o.value && (a("", !0), i(!r.value), n.emit("clear"));
1829
+ function f(m) {
1830
+ m.stopPropagation(), o.value && (a("", !0), i(!r.value), n.emit("clear"));
1818
1831
  }
1819
- function s(h) {
1820
- o.value && !c.value && i(!0);
1832
+ function p(m) {
1833
+ o.value && !s.value && i(!0);
1821
1834
  }
1822
- function v(h) {
1835
+ function v(m) {
1823
1836
  o.value && i(!1);
1824
1837
  }
1825
- return { clearButtonClass: p, clearButtonStyle: d, hasShownClearButton: r, onClearValue: f, onMouseEnter: s, onMouseLeave: v, shouldShowClearButton: o };
1838
+ return { clearButtonClass: d, clearButtonStyle: c, hasShownClearButton: r, onClearValue: f, onMouseEnter: p, onMouseLeave: v, shouldShowClearButton: o };
1826
1839
  }
1827
- const dr = ["moz", "ms", "webkit"];
1828
- function pr() {
1840
+ const fr = ["moz", "ms", "webkit"];
1841
+ function vr() {
1829
1842
  let e = 0;
1830
1843
  return (n) => {
1831
1844
  const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - e)), o = setTimeout(() => {
@@ -1834,65 +1847,65 @@ function pr() {
1834
1847
  return e = t + r, o;
1835
1848
  };
1836
1849
  }
1837
- function fr() {
1850
+ function yr() {
1838
1851
  if (typeof window > "u")
1839
1852
  return () => 0;
1840
1853
  if (window.requestAnimationFrame)
1841
1854
  return window.requestAnimationFrame.bind(window);
1842
- const e = dr.filter((n) => `${n}RequestAnimationFrame` in window)[0];
1843
- return e ? window[`${e}RequestAnimationFrame`] : pr();
1855
+ const e = fr.filter((n) => `${n}RequestAnimationFrame` in window)[0];
1856
+ return e ? window[`${e}RequestAnimationFrame`] : vr();
1844
1857
  }
1845
- fr();
1846
- function Xe(e, n) {
1858
+ yr();
1859
+ function Qe(e, n) {
1847
1860
  const t = y(e.groupText), r = x(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), o = x(() => e.enableClear || !!e.groupText);
1848
1861
  return { appendedButtonClass: x(() => ({
1849
1862
  "input-group-append": !0,
1850
1863
  "append-force-show": r.value
1851
1864
  })), appendedContent: t, shouldShowAppendedButton: o };
1852
1865
  }
1853
- function Ke(e, n, t, r) {
1854
- const { appendedContent: o } = r, a = y(e.enableViewPassword), l = x(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', c = '<span class="f-icon f-icon-eye"></span>', i = y(!1);
1855
- N(() => [e.readonly, e.disabled], ([f, s]) => {
1856
- l.value && (t.value = f || s ? "password" : t.value, o.value = f || s ? c : o.value);
1866
+ function Xe(e, n, t, r) {
1867
+ const { appendedContent: o } = r, a = y(e.enableViewPassword), l = x(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', s = '<span class="f-icon f-icon-eye"></span>', i = y(!1);
1868
+ O(() => [e.readonly, e.disabled], ([f, p]) => {
1869
+ l.value && (t.value = f || p ? "password" : t.value, o.value = f || p ? s : o.value);
1857
1870
  });
1858
- function p() {
1859
- return i.value = !i.value, t.value = i.value ? "text" : "password", o.value = i.value ? u : c, !1;
1860
- }
1861
1871
  function d() {
1862
- t.value = l.value ? "password" : "text", o.value = l.value ? a.value ? c : "" : o.value;
1872
+ return i.value = !i.value, t.value = i.value ? "text" : "password", o.value = i.value ? u : s, !1;
1873
+ }
1874
+ function c() {
1875
+ t.value = l.value ? "password" : "text", o.value = l.value ? a.value ? s : "" : o.value;
1863
1876
  }
1864
- return d(), { isPassword: l, onClickAppendedButton: p };
1877
+ return c(), { isPassword: l, onClickAppendedButton: d };
1865
1878
  }
1866
- function et(e, n, t) {
1879
+ function Ke(e, n, t) {
1867
1880
  const r = y(), {
1868
1881
  onBlurTextBox: o,
1869
1882
  onFocusTextBox: a,
1870
1883
  onInput: l,
1871
1884
  onKeyDown: u,
1872
- textBoxValue: c
1873
- } = t, i = x(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), p = x(() => ({
1885
+ textBoxValue: s
1886
+ } = t, i = x(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = x(() => ({
1874
1887
  "form-control": !0,
1875
1888
  "f-utils-fill": !0
1876
- })), d = x(() => ({
1889
+ })), c = x(() => ({
1877
1890
  "text-align": e.textAlign
1878
1891
  }));
1879
- function f(h) {
1880
- h.stopPropagation();
1892
+ function f(m) {
1893
+ m.stopPropagation();
1881
1894
  }
1882
- function s() {
1895
+ function p() {
1883
1896
  e.selectOnCreated, e.focusOnCreated;
1884
1897
  }
1885
- async function v(h) {
1886
- a(h), await je, s();
1898
+ async function v(m) {
1899
+ a(m), await je, p();
1887
1900
  }
1888
1901
  return H(async () => {
1889
- await je, s();
1890
- }), () => g("input", {
1902
+ await je, p();
1903
+ }), () => w("input", {
1891
1904
  ref: r,
1892
- class: p.value,
1893
- style: d.value,
1905
+ class: d.value,
1906
+ style: c.value,
1894
1907
  type: "text",
1895
- value: c.value,
1908
+ value: s.value,
1896
1909
  disabled: e.disabled,
1897
1910
  readonly: e.readonly || !e.editable,
1898
1911
  placeholder: i.value,
@@ -1913,213 +1926,213 @@ function Fe(e, n, t) {
1913
1926
  "input-group-append": !0,
1914
1927
  "btn-group": !0,
1915
1928
  "btn-group-number": !0
1916
- })), c = x(() => ({
1929
+ })), s = x(() => ({
1917
1930
  btn: !0,
1918
1931
  "btn-secondary": !0,
1919
1932
  "btn-number-flag": !0
1920
1933
  })), i = x(() => ({
1921
1934
  cursor: o() ? "pointer" : "not-allowed",
1922
1935
  "margin-left": 0
1923
- })), p = x(() => ({
1936
+ })), d = x(() => ({
1924
1937
  cursor: r() ? "pointer" : "not-allowed",
1925
1938
  "margin-left": 0
1926
1939
  }));
1927
- return () => g("div", {
1940
+ return () => w("div", {
1928
1941
  class: u.value
1929
- }, [g("button", {
1942
+ }, [w("button", {
1930
1943
  title: "upButton",
1931
- class: c.value,
1944
+ class: s.value,
1932
1945
  style: i.value,
1933
1946
  onClick: l,
1934
1947
  disabled: !o()
1935
- }, [g("span", {
1948
+ }, [w("span", {
1936
1949
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
1937
- }, null)]), g("button", {
1950
+ }, null)]), w("button", {
1938
1951
  title: "downButton",
1939
- class: c.value,
1940
- style: p.value,
1952
+ class: s.value,
1953
+ style: d.value,
1941
1954
  onClick: a,
1942
1955
  disabled: !r()
1943
- }, [g("span", {
1956
+ }, [w("span", {
1944
1957
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1945
1958
  }, null)])]);
1946
1959
  }
1947
- function vr(e, n) {
1948
- const t = ln(e, n), r = un(e, n, t), o = sn(e, n, r, t), a = cn(e, n, r, t, o), l = Fe(e, n, o), {
1960
+ function mr(e, n) {
1961
+ const t = un(e, n), r = sn(e, n, t), o = cn(e, n, r, t), a = dn(e, n, r, t, o), l = Fe(e, n, o), {
1949
1962
  displayValue: u,
1950
- modelValue: c,
1963
+ modelValue: s,
1951
1964
  getRealValue: i
1952
- } = t, p = et(e, n, a), {
1953
- format: d
1965
+ } = t, d = Ke(e, n, a), {
1966
+ format: c
1954
1967
  } = r, {
1955
1968
  isFocus: f
1956
- } = a, s = x(() => !e.disabled && !e.readonly);
1969
+ } = a, p = x(() => !e.disabled && !e.readonly);
1957
1970
  return H(() => {
1958
1971
  const v = i(e.modelValue);
1959
- u.value = d(v);
1960
- }), N(() => [e.value], ([v]) => {
1961
- const h = i(v);
1962
- c.value = h, u.value = d(h);
1963
- }), N(() => [e.modelValue], ([v]) => {
1964
- v !== c.value && (c.value = v, !f.value && (u.value = d(i(v))));
1965
- }), N(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1966
- u.value = d(c.value);
1967
- }), () => g("div", {
1972
+ u.value = c(v);
1973
+ }), O(() => [e.value], ([v]) => {
1974
+ const m = i(v);
1975
+ s.value = m, u.value = c(m);
1976
+ }), O(() => [e.modelValue], ([v]) => {
1977
+ v !== s.value && (s.value = v, !f.value && (u.value = c(i(v))));
1978
+ }), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1979
+ u.value = c(s.value);
1980
+ }), () => w("div", {
1968
1981
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
1969
- }, [p(), s.value && l()]);
1982
+ }, [d(), p.value && l()]);
1970
1983
  }
1971
- function yr(e, n, t, r) {
1984
+ function hr(e, n, t, r) {
1972
1985
  const o = y(), a = y(e.autocomplete), l = y(e.enableTitle), {
1973
1986
  isPassword: u
1974
- } = t, c = y(e.minLength), i = y(e.maxLength), p = y(e.tabIndex), {
1975
- disabled: d,
1987
+ } = t, s = y(e.minLength), i = y(e.maxLength), d = y(e.tabIndex), {
1988
+ disabled: c,
1976
1989
  displayText: f,
1977
- inputType: s,
1990
+ inputType: p,
1978
1991
  onBlur: v,
1979
- onFocus: h,
1980
- onInput: S,
1981
- onClick: C,
1982
- onKeydown: A,
1983
- onKeyup: E,
1984
- onMousedown: w,
1985
- onTextBoxValueChange: B,
1986
- readonly: b,
1987
- placeholder: T,
1988
- textBoxClass: k,
1989
- textBoxTitle: L
1992
+ onFocus: m,
1993
+ onInput: b,
1994
+ onClick: S,
1995
+ onKeydown: E,
1996
+ onKeyup: k,
1997
+ onMousedown: C,
1998
+ onTextBoxValueChange: T,
1999
+ readonly: g,
2000
+ placeholder: F,
2001
+ textBoxClass: A,
2002
+ textBoxTitle: N
1990
2003
  } = r;
1991
2004
  return H(() => {
1992
2005
  e.selectOnCreated, e.focusOnCreated;
1993
- }), () => g("input", {
2006
+ }), () => w("input", {
1994
2007
  ref: o,
1995
2008
  name: "input-group-value",
1996
2009
  autocomplete: a.value,
1997
- class: k.value,
1998
- disabled: d == null ? void 0 : d.value,
2010
+ class: A.value,
2011
+ disabled: c == null ? void 0 : c.value,
1999
2012
  maxlength: i.value,
2000
- minlength: c.value,
2001
- placeholder: T.value,
2002
- readonly: b == null ? void 0 : b.value,
2003
- tabindex: p.value,
2004
- title: l.value && !u.value ? L.value : "",
2005
- type: s.value,
2013
+ minlength: s.value,
2014
+ placeholder: F.value,
2015
+ readonly: g == null ? void 0 : g.value,
2016
+ tabindex: d.value,
2017
+ title: l.value && !u.value ? N.value : "",
2018
+ type: p.value,
2006
2019
  value: f == null ? void 0 : f.value,
2007
2020
  onBlur: v,
2008
- onClick: C,
2009
- onChange: B,
2010
- onFocus: h,
2011
- onInput: S,
2012
- onKeydown: A,
2013
- onKeyup: E,
2014
- onMousedown: w
2021
+ onClick: S,
2022
+ onChange: T,
2023
+ onFocus: m,
2024
+ onInput: b,
2025
+ onKeydown: E,
2026
+ onKeyup: k,
2027
+ onMousedown: C
2015
2028
  }, null);
2016
2029
  }
2017
- function mr(e, n) {
2018
- const t = x(() => e.useExtendInfo && !!e.extendInfo), r = nn({
2030
+ function br(e, n) {
2031
+ const t = x(() => e.useExtendInfo && !!e.extendInfo), r = tn({
2019
2032
  content: e.extendInfo
2020
2033
  });
2021
2034
  function o() {
2022
2035
  n.emit("updateExtendInfo");
2023
2036
  }
2024
- return () => t.value && me(g("span", {
2037
+ return () => t.value && me(w("span", {
2025
2038
  class: "input-group-before-tips",
2026
2039
  onMouseenter: o
2027
- }, [g("i", {
2040
+ }, [w("i", {
2028
2041
  class: "f-icon f-icon-info-circle"
2029
- }, null), g("b", {
2042
+ }, null), w("b", {
2030
2043
  class: "tips-arrow"
2031
- }, null)]), [[rn("tooltip"), r]]);
2044
+ }, null)]), [[nn("tooltip"), r]]);
2032
2045
  }
2033
- function tt(e, n, t, r, o) {
2046
+ function et(e, n, t, r, o) {
2034
2047
  const {
2035
2048
  appendedButtonClass: a,
2036
2049
  appendedContent: l
2037
- } = t, u = x(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), c = x(() => l.value && !n.slots.groupTextTemplate), i = x(() => !!n.slots.groupTextTemplate), {
2038
- clearButtonClass: p,
2039
- clearButtonStyle: d,
2050
+ } = t, u = x(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), s = x(() => l.value && !n.slots.groupTextTemplate), i = x(() => !!n.slots.groupTextTemplate), {
2051
+ clearButtonClass: d,
2052
+ clearButtonStyle: c,
2040
2053
  onClearValue: f,
2041
- shouldShowClearButton: s
2054
+ shouldShowClearButton: p
2042
2055
  } = r;
2043
2056
  function v() {
2044
- return g("span", {
2057
+ return w("span", {
2045
2058
  id: "clearIcon",
2046
- class: p.value,
2047
- style: d.value,
2048
- onClick: (T) => f(T)
2049
- }, [g("i", {
2059
+ class: d.value,
2060
+ style: c.value,
2061
+ onClick: (F) => f(F)
2062
+ }, [w("i", {
2050
2063
  class: "f-icon modal_close"
2051
2064
  }, null)]);
2052
2065
  }
2053
- function h(T) {
2054
- n.emit("iconMouseEnter", T);
2066
+ function m(F) {
2067
+ n.emit("iconMouseEnter", F);
2055
2068
  }
2056
- function S(T) {
2057
- n.emit("iconMouseLeave", T);
2069
+ function b(F) {
2070
+ n.emit("iconMouseLeave", F);
2058
2071
  }
2059
- function C(T) {
2072
+ function S(F) {
2060
2073
  u.value && n.emit("clickHandle", {
2061
- originalEvent: T
2062
- }), T.stopPropagation();
2074
+ originalEvent: F
2075
+ }), F.stopPropagation();
2063
2076
  }
2064
- const A = e.type === "password" ? o.onClickAppendedButton : C;
2065
- function E() {
2066
- return g("span", {
2077
+ const E = e.type === "password" ? o.onClickAppendedButton : S;
2078
+ function k() {
2079
+ return w("span", {
2067
2080
  class: "input-group-text",
2068
- onMouseenter: (T) => h(T),
2069
- onMouseleave: (T) => S(T),
2081
+ onMouseenter: (F) => m(F),
2082
+ onMouseleave: (F) => b(F),
2070
2083
  innerHTML: l.value,
2071
- onClick: (T) => A(T)
2084
+ onClick: (F) => E(F)
2072
2085
  }, null);
2073
2086
  }
2074
- function w() {
2087
+ function C() {
2075
2088
  return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
2076
2089
  }
2077
- function B() {
2078
- return c.value ? E : i.value ? w : "";
2090
+ function T() {
2091
+ return s.value ? k : i.value ? C : "";
2079
2092
  }
2080
- const b = B();
2081
- return () => g("div", {
2093
+ const g = T();
2094
+ return () => w("div", {
2082
2095
  class: a.value
2083
- }, [s.value && v(), b && b()]);
2096
+ }, [p.value && v(), g && g()]);
2084
2097
  }
2085
- const ee = /* @__PURE__ */ q({
2098
+ const ee = /* @__PURE__ */ W({
2086
2099
  name: "FInputGroup",
2087
2100
  props: Be,
2088
2101
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
2089
2102
  setup(e, n) {
2090
- const t = y(e.modelValue), r = y(e.modelValue), o = sr(e, n, t, r), {
2103
+ const t = y(e.modelValue), r = y(e.modelValue), o = dr(e, n, t, r), {
2091
2104
  inputGroupClass: a,
2092
2105
  inputType: l,
2093
2106
  inputGroupStyle: u
2094
- } = o, c = Xe(e), {
2107
+ } = o, s = Qe(e), {
2095
2108
  shouldShowAppendedButton: i
2096
- } = c, p = Qe(e, n, o), {
2097
- onMouseEnter: d,
2109
+ } = s, d = Je(e, n, o), {
2110
+ onMouseEnter: c,
2098
2111
  onMouseLeave: f
2099
- } = p, s = Ke(e, n, l, c), v = vr(e, n), h = yr(e, n, s, o), S = tt(e, n, c, p, s), C = mr(e, n), A = x(() => e.type === "number");
2100
- N(() => [e.value], ([w]) => {
2101
- t.value = w, r.value = w;
2102
- }), N(() => [e.modelValue], ([w]) => {
2103
- t.value = w, r.value = w;
2112
+ } = d, p = Xe(e, n, l, s), v = mr(e, n), m = hr(e, n, p, o), b = et(e, n, s, d, p), S = br(e, n), E = x(() => e.type === "number");
2113
+ O(() => [e.value], ([C]) => {
2114
+ t.value = C, r.value = C;
2115
+ }), O(() => [e.modelValue], ([C]) => {
2116
+ t.value = C, r.value = C;
2104
2117
  }), H(() => {
2105
2118
  e.value && (t.value = e.value, r.value = e.value);
2106
2119
  });
2107
- const E = () => g(he, null, [g("div", {
2120
+ const k = () => w(he, null, [w("div", {
2108
2121
  id: "inputGroup",
2109
2122
  class: a.value,
2110
2123
  style: u.value,
2111
- onMouseenter: d,
2124
+ onMouseenter: c,
2112
2125
  onMouseleave: f
2113
- }, [A.value ? v() : g(he, null, [C(), h(), i.value && S()])])]);
2114
- return () => E();
2126
+ }, [E.value ? v() : w(he, null, [S(), m(), i.value && b()])])]);
2127
+ return () => k();
2115
2128
  }
2116
2129
  });
2117
- class hr extends Ve {
2130
+ class gr extends Ve {
2118
2131
  constructor(n, t) {
2119
2132
  super(n, t);
2120
2133
  }
2121
2134
  }
2122
- function br(e, n) {
2135
+ function Sr(e, n) {
2123
2136
  const {
2124
2137
  canAccepts: t,
2125
2138
  checkCanDeleteComponent: r,
@@ -2127,11 +2140,11 @@ function br(e, n) {
2127
2140
  hideNestedPaddingInDesginerView: a,
2128
2141
  onAcceptMovedChildElement: l,
2129
2142
  resolveComponentContext: u,
2130
- triggerBelongedComponentToMoveWhenMoved: c,
2143
+ triggerBelongedComponentToMoveWhenMoved: s,
2131
2144
  triggerBelongedComponentToDeleteWhenDeleted: i
2132
- } = xe(e), p = e.schema;
2133
- function d(f, s) {
2134
- return new hr(f, n).getPropertyConfig(p, s);
2145
+ } = xe(e), d = e.schema;
2146
+ function c(f, p) {
2147
+ return new gr(f, n).getPropertyConfig(d, p);
2135
2148
  }
2136
2149
  return {
2137
2150
  canAccepts: t,
@@ -2140,13 +2153,13 @@ function br(e, n) {
2140
2153
  hideNestedPaddingInDesginerView: a,
2141
2154
  onAcceptMovedChildElement: l,
2142
2155
  resolveComponentContext: u,
2143
- triggerBelongedComponentToMoveWhenMoved: c,
2156
+ triggerBelongedComponentToMoveWhenMoved: s,
2144
2157
  triggerBelongedComponentToDeleteWhenDeleted: i,
2145
- getPropsConfig: d
2158
+ getPropsConfig: c
2146
2159
  };
2147
2160
  }
2148
- function nt(e, n, t) {
2149
- var B;
2161
+ function tt(e, n, t) {
2162
+ var T;
2150
2163
  function r() {
2151
2164
  t != null && t.resolveComponentContext && t.resolveComponentContext();
2152
2165
  }
@@ -2155,129 +2168,129 @@ function nt(e, n, t) {
2155
2168
  function u() {
2156
2169
  return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
2157
2170
  }
2158
- function c() {
2171
+ function s() {
2159
2172
  return !1;
2160
2173
  }
2161
2174
  function i() {
2162
2175
  return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
2163
2176
  }
2164
- function p() {
2177
+ function d() {
2165
2178
  return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
2166
2179
  }
2167
- function d(b) {
2168
- if (!b || !b.value)
2180
+ function c(g) {
2181
+ if (!g || !g.value)
2169
2182
  return null;
2170
- if (b.value.schema && b.value.schema.type === "component")
2171
- return b.value;
2172
- const T = y(b == null ? void 0 : b.value.parent), k = d(T);
2173
- return k || null;
2183
+ if (g.value.schema && g.value.schema.type === "component")
2184
+ return g.value;
2185
+ const F = y(g == null ? void 0 : g.value.parent), A = c(F);
2186
+ return A || null;
2174
2187
  }
2175
- function f(b = n) {
2176
- const { componentInstance: T, designerItemElementRef: k } = b;
2177
- return !T || !T.value ? null : T.value.canMove ? k : f(b.parent);
2188
+ function f(g = n) {
2189
+ const { componentInstance: F, designerItemElementRef: A } = g;
2190
+ return !F || !F.value ? null : F.value.canMove ? A : f(g.parent);
2178
2191
  }
2179
- function s(b) {
2180
- return !!t && t.canAccepts(b);
2192
+ function p(g) {
2193
+ return !!t && t.canAccepts(g);
2181
2194
  }
2182
2195
  function v() {
2183
2196
  return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
2184
2197
  }
2185
- function h() {
2198
+ function m() {
2186
2199
  }
2187
- function S(b, T) {
2188
- T && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(T);
2200
+ function b(g, F) {
2201
+ F && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(F);
2189
2202
  }
2190
- function C(b) {
2191
- const { componentType: T } = b;
2192
- let k = be(T, b);
2193
- t && t.onResolveNewComponentSchema && (k = t.onResolveNewComponentSchema(b, k));
2194
- const L = T.toLowerCase().replace("-", "_");
2195
- return k && !k.id && k.type === T && (k.id = `${L}_${Math.random().toString().slice(2, 6)}`), k;
2203
+ function S(g, F) {
2204
+ const { componentType: A } = g;
2205
+ let N = be(A, g, F);
2206
+ t && t.onResolveNewComponentSchema && (N = t.onResolveNewComponentSchema(g, N));
2207
+ const q = A.toLowerCase().replace("-", "_");
2208
+ return N && !N.id && N.type === A && (N.id = `${q}_${Math.random().toString().slice(2, 6)}`), N;
2196
2209
  }
2197
- function A(b, T) {
2198
- const k = String(b.getAttribute("data-controltype")), L = b.getAttribute("data-feature"), Y = L ? JSON.parse(L) : {};
2199
- Y.parentComponentInstance = l.value;
2200
- let _ = be(k, Y);
2201
- t && t.onAcceptNewChildElement && (_ = t.onAcceptNewChildElement(b, T, _));
2202
- const K = k.toLowerCase().replace("-", "_");
2203
- return _ && !_.id && _.type === k && (_.id = `${K}_${Math.random().toString().slice(2, 6)}`), _;
2210
+ function E(g, F) {
2211
+ const A = String(g.getAttribute("data-controltype")), N = g.getAttribute("data-feature"), q = N ? JSON.parse(N) : {};
2212
+ q.parentComponentInstance = l.value;
2213
+ let _ = be(A, q);
2214
+ t && t.onAcceptNewChildElement && (_ = t.onAcceptNewChildElement(g, F, _));
2215
+ const K = A.toLowerCase().replace("-", "_");
2216
+ return _ && !_.id && _.type === A && (_.id = `${K}_${Math.random().toString().slice(2, 6)}`), _;
2204
2217
  }
2205
- function E(b) {
2218
+ function k(g) {
2206
2219
  }
2207
- function w(...b) {
2220
+ function C(...g) {
2208
2221
  if (t && t.getPropsConfig)
2209
- return t.getPropsConfig(...b);
2222
+ return t.getPropsConfig(...g);
2210
2223
  }
2211
2224
  return l.value = {
2212
2225
  canMove: u(),
2213
- canSelectParent: c(),
2226
+ canSelectParent: s(),
2214
2227
  canDelete: i(),
2215
- canNested: !p(),
2228
+ canNested: !d(),
2216
2229
  contents: n == null ? void 0 : n.schema.contents,
2217
2230
  elementRef: e,
2218
- parent: (B = n == null ? void 0 : n.parent) == null ? void 0 : B.componentInstance,
2231
+ parent: (T = n == null ? void 0 : n.parent) == null ? void 0 : T.componentInstance,
2219
2232
  schema: n == null ? void 0 : n.schema,
2220
2233
  styles: o,
2221
2234
  designerClass: a,
2222
- canAccepts: s,
2223
- getBelongedComponentInstance: d,
2235
+ canAccepts: p,
2236
+ getBelongedComponentInstance: c,
2224
2237
  getDraggableDesignItemElement: f,
2225
2238
  getDraggingDisplayText: v,
2226
- getPropConfig: w,
2227
- getDragScopeElement: h,
2228
- onAcceptMovedChildElement: S,
2229
- onAcceptNewChildElement: A,
2230
- onChildElementMovedOut: E,
2231
- addNewChildComponentSchema: C,
2239
+ getPropConfig: C,
2240
+ getDragScopeElement: m,
2241
+ onAcceptMovedChildElement: b,
2242
+ onAcceptNewChildElement: E,
2243
+ onChildElementMovedOut: k,
2244
+ addNewChildComponentSchema: S,
2232
2245
  updateDragAndDropRules: r,
2233
2246
  triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || y(!1),
2234
2247
  triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || y(!1)
2235
2248
  }, l;
2236
2249
  }
2237
- const gr = /* @__PURE__ */ q({
2250
+ const wr = /* @__PURE__ */ W({
2238
2251
  name: "FInputGroupDesign",
2239
2252
  props: Be,
2240
2253
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
2241
2254
  setup(e, n) {
2242
- const t = y(e.modelValue), r = y(e.modelValue), o = cr(e, n, t, r), {
2255
+ const t = y(e.modelValue), r = y(e.modelValue), o = pr(e, n, t, r), {
2243
2256
  inputGroupClass: a,
2244
2257
  inputType: l,
2245
2258
  inputGroupStyle: u
2246
- } = o, c = Xe(e), {
2259
+ } = o, s = Qe(e), {
2247
2260
  shouldShowAppendedButton: i
2248
- } = c, p = Qe(e, n, o), {
2249
- onMouseEnter: d,
2261
+ } = s, d = Je(e, n, o), {
2262
+ onMouseEnter: c,
2250
2263
  onMouseLeave: f
2251
- } = p, s = Ke(e, n, l, c), v = y(), h = Q("designer-host-service"), S = Q("design-item-context"), C = br(S, h), A = nt(v, S, C);
2264
+ } = d, p = Xe(e, n, l, s), v = y(), m = Q("designer-host-service"), b = Q("design-item-context"), S = Sr(b, m), E = tt(v, b, S);
2252
2265
  H(() => {
2253
- v.value.componentInstance = A;
2254
- }), n.expose(A.value);
2255
- const E = tt(e, n, c, p, s), w = y();
2256
- return () => g("div", {
2266
+ v.value.componentInstance = E;
2267
+ }), n.expose(E.value);
2268
+ const k = et(e, n, s, d, p), C = y();
2269
+ return () => w("div", {
2257
2270
  id: "inputGroup",
2258
2271
  ref: v,
2259
2272
  class: a.value,
2260
2273
  style: u.value,
2261
- onMouseenter: d,
2274
+ onMouseenter: c,
2262
2275
  onMouseleave: f
2263
- }, [g("input", {
2264
- ref: w,
2276
+ }, [w("input", {
2277
+ ref: C,
2265
2278
  class: "form-control",
2266
2279
  readonly: !0,
2267
2280
  placeholder: e.placeholder
2268
- }, null), i.value && E()]);
2281
+ }, null), i.value && k()]);
2269
2282
  }
2270
2283
  });
2271
2284
  ee.register = (e, n, t, r) => {
2272
- e["input-group"] = ee, n["input-group"] = Je;
2285
+ e["input-group"] = ee, n["input-group"] = Ze;
2273
2286
  };
2274
2287
  ee.registerDesigner = (e, n, t) => {
2275
- e["input-group"] = gr, n["input-group"] = Je;
2288
+ e["input-group"] = wr, n["input-group"] = Ze;
2276
2289
  };
2277
2290
  Te(ee);
2278
- const Sr = /* @__PURE__ */ new Map([
2291
+ const Cr = /* @__PURE__ */ new Map([
2279
2292
  ["appearance", de]
2280
- ]), wr = "https://json-schema.org/draft/2020-12/schema", Cr = "https://farris-design.gitee.io/number-spinner.schema.json", xr = "number-spinner", Vr = "A Farris Input Component", Tr = "object", Br = {
2293
+ ]), xr = "https://json-schema.org/draft/2020-12/schema", Vr = "https://farris-design.gitee.io/number-spinner.schema.json", Tr = "number-spinner", Br = "A Farris Input Component", Fr = "object", Mr = {
2281
2294
  id: {
2282
2295
  description: "The unique identifier for a number spinner",
2283
2296
  type: "string"
@@ -2378,19 +2391,24 @@ const Sr = /* @__PURE__ */ new Map([
2378
2391
  type: "sting",
2379
2392
  default: ""
2380
2393
  }
2381
- }, Fr = [
2394
+ }, kr = [
2382
2395
  "id",
2383
2396
  "type"
2384
- ], Mr = {
2385
- $schema: wr,
2386
- $id: Cr,
2387
- title: xr,
2388
- description: Vr,
2389
- type: Tr,
2390
- properties: Br,
2391
- required: Fr
2397
+ ], Er = [
2398
+ "id",
2399
+ "appearance",
2400
+ "binding"
2401
+ ], Ar = {
2402
+ $schema: xr,
2403
+ $id: Vr,
2404
+ title: Tr,
2405
+ description: Br,
2406
+ type: Fr,
2407
+ properties: Mr,
2408
+ required: kr,
2409
+ ignore: Er
2392
2410
  };
2393
- function kr(e, n, t) {
2411
+ function Pr(e, n, t) {
2394
2412
  return n;
2395
2413
  }
2396
2414
  const Me = {
@@ -2497,41 +2515,41 @@ const Me = {
2497
2515
  * 作为内嵌编辑器被创建后默认选中文本
2498
2516
  */
2499
2517
  selectOnCreated: { type: Boolean, default: !1 }
2500
- }, rt = ce(Me, Mr, Sr, kr);
2501
- function ot(e, n, t, r) {
2502
- const { format: o } = t, { displayValue: a, getRealValue: l, modelValue: u, onNumberValueChanged: c } = r;
2518
+ }, nt = ce(Me, Ar, Cr, Pr);
2519
+ function rt(e, n, t, r) {
2520
+ const { format: o } = t, { displayValue: a, getRealValue: l, modelValue: u, onNumberValueChanged: s } = r;
2503
2521
  function i() {
2504
- const S = new $(u.value || 0);
2505
- return !(e.max && !new $(e.max).isNaN() && S.gte(new $(e.max)));
2522
+ const b = new L(u.value || 0);
2523
+ return !(e.max && !new L(e.max).isNaN() && b.gte(new L(e.max)));
2506
2524
  }
2507
- function p() {
2508
- const S = new $(u.value || 0);
2509
- return !(e.min && !new $(e.min).isNaN() && S.lte(new $(e.min)));
2525
+ function d() {
2526
+ const b = new L(u.value || 0);
2527
+ return !(e.min && !new L(e.min).isNaN() && b.lte(new L(e.min)));
2510
2528
  }
2511
- function d(S) {
2529
+ function c(b) {
2512
2530
  if (e.readonly || e.disabled)
2513
2531
  return;
2514
- const C = S === "up" ? i : p, A = S === "up" ? "plus" : "minus";
2515
- if (C()) {
2516
- const w = new $(u.value || 0)[A](Number(e.step)), B = w.toFixed();
2517
- a.value = o(B), c(l(w));
2532
+ const S = b === "up" ? i : d, E = b === "up" ? "plus" : "minus";
2533
+ if (S()) {
2534
+ const C = new L(u.value || 0)[E](Number(e.step)), T = C.toFixed();
2535
+ a.value = o(T), s(l(C));
2518
2536
  }
2519
2537
  }
2520
2538
  function f() {
2521
- d("up");
2539
+ c("up");
2522
2540
  }
2523
- function s() {
2524
- d("down");
2541
+ function p() {
2542
+ c("down");
2525
2543
  }
2526
- function v(S) {
2527
- f(), S.stopPropagation();
2544
+ function v(b) {
2545
+ f(), b.stopPropagation();
2528
2546
  }
2529
- function h(S) {
2530
- s(), S.stopPropagation();
2547
+ function m(b) {
2548
+ p(), b.stopPropagation();
2531
2549
  }
2532
- return { canDownward: p, canUpward: i, downward: s, onClickDownButton: h, onClickUpButton: v, upward: f };
2550
+ return { canDownward: d, canUpward: i, downward: p, onClickDownButton: m, onClickUpButton: v, upward: f };
2533
2551
  }
2534
- function at(e, n, t) {
2552
+ function ot(e, n, t) {
2535
2553
  const r = x(() => ({
2536
2554
  prefix: e.prefix,
2537
2555
  suffix: e.suffix,
@@ -2542,107 +2560,107 @@ function at(e, n, t) {
2542
2560
  function l(i) {
2543
2561
  return i = i == null || i === "" ? "" : String(i), i = i.replace(new RegExp(e.prefix, "g"), "").replace(new RegExp(e.suffix, "g"), "").replace(/,/g, ""), e.groupSeparator && e.groupSeparator !== "," && (i = i.replace(new RegExp(`\\${e.groupSeparator}`, "g"), "")), e.decimalSeparator && e.decimalSeparator !== "." && (i = i.replace(new RegExp(`\\${e.decimalSeparator}`, "g"), ".")), i;
2544
2562
  }
2545
- function u(i, p) {
2546
- return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value, p) : i.toFormat(p);
2563
+ function u(i, d) {
2564
+ return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value, d) : i.toFormat(d);
2547
2565
  }
2548
- function c(i) {
2549
- const p = l(i), d = new $(p, 10), f = o(d);
2566
+ function s(i) {
2567
+ const d = l(i), c = new L(d, 10), f = o(c);
2550
2568
  return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : u(f, r.value);
2551
2569
  }
2552
- return { cleanFormat: l, format: c };
2570
+ return { cleanFormat: l, format: s };
2553
2571
  }
2554
- function it(e, n) {
2572
+ function at(e, n) {
2555
2573
  const t = y(""), r = y(e.modelValue), o = x(() => Number(e.precision) || 0);
2556
- function a(p) {
2557
- return p.toFixed(o.value);
2574
+ function a(d) {
2575
+ return d.toFixed(o.value);
2558
2576
  }
2559
- function l(p) {
2560
- return isNaN(p) || p === null || p === void 0 || p === "";
2577
+ function l(d) {
2578
+ return isNaN(d) || d === null || d === void 0 || d === "";
2561
2579
  }
2562
- function u(p) {
2563
- const d = l(e.max) ? null : new $(String(e.max), 10), f = l(e.min) ? null : new $(String(e.min), 10);
2564
- return d && p.gt(d) ? d : f && p.lt(f) ? f : p;
2580
+ function u(d) {
2581
+ const c = l(e.max) ? null : new L(String(e.max), 10), f = l(e.min) ? null : new L(String(e.min), 10);
2582
+ return c && d.gt(c) ? c : f && d.lt(f) ? f : d;
2565
2583
  }
2566
- function c(p) {
2584
+ function s(d) {
2567
2585
  if (e.parser)
2568
- return isNaN(Number(p)) ? e.parser(p) : p;
2569
- let d = u(new $(p, 10));
2570
- if (d.isNaN()) {
2586
+ return isNaN(Number(d)) ? e.parser(d) : d;
2587
+ let c = u(new L(d, 10));
2588
+ if (c.isNaN()) {
2571
2589
  if (e.canNull)
2572
2590
  return null;
2573
- const s = new $("" + e.min, 10), v = new $("" + e.max, 10);
2574
- if (!s.isNaN())
2575
- d = s;
2591
+ const p = new L("" + e.min, 10), v = new L("" + e.max, 10);
2592
+ if (!p.isNaN())
2593
+ c = p;
2576
2594
  else if (!v.isNaN())
2577
- d = v;
2595
+ c = v;
2578
2596
  else
2579
2597
  return 0;
2580
2598
  }
2581
- return a(d);
2599
+ return a(c);
2582
2600
  }
2583
- function i(p) {
2584
- const d = Number(p);
2585
- r.value = d, n.emit("update:modelValue", d), n.emit("valueChange", d), n.emit("change", d);
2601
+ function i(d) {
2602
+ const c = Number(d);
2603
+ r.value = c, n.emit("update:modelValue", c), n.emit("valueChange", c), n.emit("change", c);
2586
2604
  }
2587
- return { displayValue: t, getRealValue: c, modelValue: r, isEmpty: l, onNumberValueChanged: i, precision: o, getValidNumberObject: u };
2605
+ return { displayValue: t, getRealValue: s, modelValue: r, isEmpty: l, onNumberValueChanged: i, precision: o, getValidNumberObject: u };
2588
2606
  }
2589
- function Er(e, n, t, r, o) {
2590
- const { cleanFormat: a, format: l } = t, { displayValue: u, getRealValue: c, modelValue: i, isEmpty: p, onNumberValueChanged: d } = r, { downward: f, upward: s } = o, v = y(!1), h = x(() => u.value);
2591
- function S(w) {
2592
- var T;
2593
- if (w.stopPropagation(), v.value = !1, e.readonly || e.disabled)
2607
+ function Nr(e, n, t, r, o) {
2608
+ const { cleanFormat: a, format: l } = t, { displayValue: u, getRealValue: s, modelValue: i, isEmpty: d, onNumberValueChanged: c } = r, { downward: f, upward: p } = o, v = y(!1), m = x(() => u.value);
2609
+ function b(C) {
2610
+ var F;
2611
+ if (C.stopPropagation(), v.value = !1, e.readonly || e.disabled)
2594
2612
  return;
2595
- let B = (T = w.target) == null ? void 0 : T.value;
2596
- e.canNull || (B = B || 0);
2597
- const b = a(B);
2598
- u.value = l(b), d(c(b)), n.emit("blur", { event: w, formatted: u.value, value: i.value });
2599
- }
2600
- function C(w) {
2601
- w.stopPropagation(), v.value = !0, !(e.readonly || e.disabled) && (u.value = p(i.value) || !e.showZero && i.value === "0" ? "" : String(i.value), n.emit("focus", { event: w, formatted: u.value, value: i.value }));
2602
- }
2603
- function A(w) {
2604
- var T;
2605
- w.stopPropagation();
2606
- let B = (T = w.target) == null ? void 0 : T.value;
2607
- e.canNull || (B = B || 0);
2608
- const b = a(B);
2609
- u.value = b, d(c(b));
2610
- }
2611
- function E(w) {
2612
- w.key === "ArrowDown" && (w.preventDefault(), f()), w.key === "ArrowUp" && (w.preventDefault(), s()), w.stopPropagation();
2613
- }
2614
- return { textBoxValue: h, onBlurTextBox: S, onFocusTextBox: C, onInput: A, onKeyDown: E, isFocus: v };
2613
+ let T = (F = C.target) == null ? void 0 : F.value;
2614
+ e.canNull || (T = T || 0);
2615
+ const g = a(T);
2616
+ u.value = l(g), c(s(g)), n.emit("blur", { event: C, formatted: u.value, value: i.value });
2617
+ }
2618
+ function S(C) {
2619
+ C.stopPropagation(), v.value = !0, !(e.readonly || e.disabled) && (u.value = d(i.value) || !e.showZero && i.value === "0" ? "" : String(i.value), n.emit("focus", { event: C, formatted: u.value, value: i.value }));
2620
+ }
2621
+ function E(C) {
2622
+ var F;
2623
+ C.stopPropagation();
2624
+ let T = (F = C.target) == null ? void 0 : F.value;
2625
+ e.canNull || (T = T || 0);
2626
+ const g = a(T);
2627
+ u.value = g, c(s(g));
2628
+ }
2629
+ function k(C) {
2630
+ C.key === "ArrowDown" && (C.preventDefault(), f()), C.key === "ArrowUp" && (C.preventDefault(), p()), C.stopPropagation();
2631
+ }
2632
+ return { textBoxValue: m, onBlurTextBox: b, onFocusTextBox: S, onInput: E, onKeyDown: k, isFocus: v };
2615
2633
  }
2616
- const te = /* @__PURE__ */ q({
2634
+ const te = /* @__PURE__ */ W({
2617
2635
  name: "FNumberSpinner",
2618
2636
  props: Me,
2619
2637
  emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
2620
2638
  setup(e, n) {
2621
- const t = it(e, n), r = at(e, n, t), o = ot(e, n, r, t), a = Er(e, n, r, t, o), l = Fe(e, n, o), {
2639
+ const t = at(e, n), r = ot(e, n, t), o = rt(e, n, r, t), a = Nr(e, n, r, t, o), l = Fe(e, n, o), {
2622
2640
  displayValue: u,
2623
- modelValue: c,
2641
+ modelValue: s,
2624
2642
  getRealValue: i
2625
- } = t, p = et(e, n, a), {
2626
- format: d
2643
+ } = t, d = Ke(e, n, a), {
2644
+ format: c
2627
2645
  } = r, {
2628
2646
  isFocus: f
2629
- } = a, s = x(() => !e.disabled && !e.readonly && e.showButton);
2647
+ } = a, p = x(() => !e.disabled && !e.readonly && e.showButton);
2630
2648
  return H(() => {
2631
2649
  const v = i(e.modelValue);
2632
- u.value = d(v);
2633
- }), N(() => [e.value], ([v]) => {
2634
- const h = i(v);
2635
- c.value = h, u.value = d(h);
2636
- }), N(() => [e.modelValue], ([v]) => {
2637
- v !== c.value && (c.value = v, !f.value && (u.value = d(i(v))));
2638
- }), N(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
2639
- u.value = d(c.value);
2640
- }), () => g("div", {
2650
+ u.value = c(v);
2651
+ }), O(() => [e.value], ([v]) => {
2652
+ const m = i(v);
2653
+ s.value = m, u.value = c(m);
2654
+ }), O(() => [e.modelValue], ([v]) => {
2655
+ v !== s.value && (s.value = v, !f.value && (u.value = c(i(v))));
2656
+ }), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
2657
+ u.value = c(s.value);
2658
+ }), () => w("div", {
2641
2659
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
2642
- }, [p(), s.value && l()]);
2660
+ }, [d(), p.value && l()]);
2643
2661
  }
2644
2662
  });
2645
- class Ar extends Ve {
2663
+ class Or extends Ve {
2646
2664
  constructor(n, t) {
2647
2665
  super(n, t);
2648
2666
  }
@@ -2675,7 +2693,7 @@ class Ar extends Ve {
2675
2693
  });
2676
2694
  }
2677
2695
  }
2678
- function Pr(e, n) {
2696
+ function Ir(e, n) {
2679
2697
  const {
2680
2698
  canAccepts: t,
2681
2699
  checkCanDeleteComponent: r,
@@ -2683,11 +2701,11 @@ function Pr(e, n) {
2683
2701
  hideNestedPaddingInDesginerView: a,
2684
2702
  onAcceptMovedChildElement: l,
2685
2703
  resolveComponentContext: u,
2686
- triggerBelongedComponentToMoveWhenMoved: c,
2704
+ triggerBelongedComponentToMoveWhenMoved: s,
2687
2705
  triggerBelongedComponentToDeleteWhenDeleted: i
2688
- } = xe(e), p = e.schema;
2689
- function d(f, s) {
2690
- return new Ar(f, n).getPropertyConfig(p, s);
2706
+ } = xe(e), d = e.schema;
2707
+ function c(f, p) {
2708
+ return new Or(f, n).getPropertyConfig(d, p);
2691
2709
  }
2692
2710
  return {
2693
2711
  canAccepts: t,
@@ -2696,26 +2714,26 @@ function Pr(e, n) {
2696
2714
  hideNestedPaddingInDesginerView: a,
2697
2715
  onAcceptMovedChildElement: l,
2698
2716
  resolveComponentContext: u,
2699
- triggerBelongedComponentToMoveWhenMoved: c,
2717
+ triggerBelongedComponentToMoveWhenMoved: s,
2700
2718
  triggerBelongedComponentToDeleteWhenDeleted: i,
2701
- getPropsConfig: d
2719
+ getPropsConfig: c
2702
2720
  };
2703
2721
  }
2704
- const Nr = /* @__PURE__ */ q({
2722
+ const jr = /* @__PURE__ */ W({
2705
2723
  name: "FNumberSpinnerDesign",
2706
2724
  props: Me,
2707
2725
  emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
2708
2726
  setup(e, n) {
2709
- const t = it(e, n), r = at(e, n, t), o = ot(e, n, r, t), a = Fe(e, n, o), l = y(), u = Q("designer-host-service"), c = Q("design-item-context"), i = Pr(c, u), p = nt(l, c, i);
2727
+ const t = at(e, n), r = ot(e, n, t), o = rt(e, n, r, t), a = Fe(e, n, o), l = y(), u = Q("designer-host-service"), s = Q("design-item-context"), i = Ir(s, u), d = tt(l, s, i);
2710
2728
  H(() => {
2711
- l.value.componentInstance = p, e.readonly = !0;
2712
- }), n.expose(p.value);
2713
- const d = y();
2714
- return () => g("div", {
2729
+ l.value.componentInstance = d, e.readonly = !0;
2730
+ }), n.expose(d.value);
2731
+ const c = y();
2732
+ return () => w("div", {
2715
2733
  ref: l,
2716
2734
  class: "input-group f-state-hover flex-row f-cmp-number-spinner test"
2717
- }, [g("input", {
2718
- ref: d,
2735
+ }, [w("input", {
2736
+ ref: c,
2719
2737
  class: "form-control",
2720
2738
  readonly: !0,
2721
2739
  placeholder: e.placeholder
@@ -2723,56 +2741,56 @@ const Nr = /* @__PURE__ */ q({
2723
2741
  }
2724
2742
  });
2725
2743
  te.register = (e, n, t, r) => {
2726
- e["number-spinner"] = te, n["number-spinner"] = rt;
2744
+ e["number-spinner"] = te, n["number-spinner"] = nt;
2727
2745
  };
2728
2746
  te.registerDesigner = (e, n, t) => {
2729
- e["number-spinner"] = Nr, n["number-spinner"] = rt;
2747
+ e["number-spinner"] = jr, n["number-spinner"] = nt;
2730
2748
  };
2731
2749
  Te(te);
2732
- function Or(e, n, t, r, o, a, l) {
2733
- const u = y(0), c = y(""), i = y([]), p = y(""), d = y("");
2750
+ function Dr(e, n, t, r, o, a, l) {
2751
+ const u = y(0), s = y(""), i = y([]), d = y(""), c = y("");
2734
2752
  function f() {
2735
- e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (p.value = F(e.value.propertyValue.value), n.value = F(e.value.editorOptions.enums));
2753
+ e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (d.value = B(e.value.propertyValue.value), n.value = B(e.value.editorOptions.enums));
2736
2754
  }
2737
- function s() {
2755
+ function p() {
2738
2756
  e.value.propertyType === "number" && (u.value = e.value.propertyValue.value);
2739
2757
  }
2740
2758
  function v() {
2741
- t.value.id === "stateMachine" && (r = F(e.value.propertyValue.value.id), r ? o.value = F(e.value.propertyValue.value.exist) : o.value = "否");
2759
+ t.value.id === "stateMachine" && (r = B(e.value.propertyValue.value.id), r ? o.value = B(e.value.propertyValue.value.exist) : o.value = "否");
2742
2760
  }
2743
- function h() {
2744
- if (t.value.id === "dataStates" && (i.value = F(e.value.editorOptions.dataStates), e.value.propertyValue.value)) {
2745
- const w = e.value.propertyValue.value, B = i.value.filter((b) => w.includes(b.value)).map((b) => b.value).join(",");
2746
- c.value = F(B);
2761
+ function m() {
2762
+ if (t.value.id === "dataStates" && (i.value = B(e.value.editorOptions.dataStates), e.value.propertyValue.value)) {
2763
+ const C = e.value.propertyValue.value, T = i.value.filter((g) => C.includes(g.value)).map((g) => g.value).join(",");
2764
+ s.value = B(T);
2747
2765
  }
2748
2766
  }
2749
- function S() {
2750
- t.value.id === "variable" && (d.value = e.value.propertyValue.value.path);
2767
+ function b() {
2768
+ t.value.id === "variable" && (c.value = e.value.propertyValue.value.path);
2751
2769
  }
2752
- function C() {
2770
+ function S() {
2753
2771
  if (t.value.id === "expression") {
2754
2772
  l.value = !0;
2755
- const { handleExpressionValue: w } = e.value.editorOptions.expressionConfig;
2756
- w ? a.value = w().value.value : a.value = e.value.editorOptions.expressionConfig.expressionValue.value.value;
2773
+ const { handleExpressionValue: C } = e.value.editorOptions.expressionConfig;
2774
+ C ? a.value = C().value.value : a.value = e.value.editorOptions.expressionConfig.expressionValue.value.value;
2757
2775
  }
2758
2776
  }
2759
- function A() {
2777
+ function E() {
2760
2778
  t.value.id;
2761
2779
  }
2762
- function E() {
2763
- f(), s(), S(), v(), h(), C(), A();
2780
+ function k() {
2781
+ f(), p(), b(), v(), m(), S(), E();
2764
2782
  }
2765
2783
  return {
2766
2784
  numberConstValue: u,
2767
- bindVariableValue: d,
2768
- dataStatesBindValue: c,
2785
+ bindVariableValue: c,
2786
+ dataStatesBindValue: s,
2769
2787
  dataStatesValueArray: i,
2770
- constEnumBindValue: p,
2771
- setValue: E
2788
+ constEnumBindValue: d,
2789
+ setValue: k
2772
2790
  };
2773
2791
  }
2774
- function Ir(e, n, t, r, o, a, l, u, c, i, p, d) {
2775
- const f = y(!1), s = y({
2792
+ function $r(e, n, t, r, o, a, l, u, s, i, d, c) {
2793
+ const f = y(!1), p = y({
2776
2794
  propertyName: "",
2777
2795
  /** 属性类型:boolean, string, number, enum */
2778
2796
  propertyType: "",
@@ -2784,63 +2802,63 @@ function Ir(e, n, t, r, o, a, l, u, c, i, p, d) {
2784
2802
  hasPrefix: !1
2785
2803
  });
2786
2804
  function v() {
2787
- n.value.propertyValue.type === "const" && (n.value.propertyValue.value = F(o.value.constValue.value), t.value = F(o.value.constValue.value), r.value = F(n.value.editorOptions.enums));
2805
+ n.value.propertyValue.type === "const" && (n.value.propertyValue.value = B(o.value.constValue.value), t.value = B(o.value.constValue.value), r.value = B(n.value.editorOptions.enums));
2788
2806
  }
2789
- function h() {
2790
- n.value.propertyValue.type === "stateMachine" && (n.value.propertyValue.value = F(o.value.stateMachineValue.value), a.value = F(n.value.editorOptions.stateMachine), n.value.propertyValue.value.name ? F(n.value.propertyValue.value.id) : (n.value.propertyValue.value = {
2807
+ function m() {
2808
+ n.value.propertyValue.type === "stateMachine" && (n.value.propertyValue.value = B(o.value.stateMachineValue.value), a.value = B(n.value.editorOptions.stateMachine), n.value.propertyValue.value.name ? B(n.value.propertyValue.value.id) : (n.value.propertyValue.value = {
2791
2809
  id: "",
2792
2810
  name: "",
2793
2811
  exist: ""
2794
2812
  }, u.value = "否"));
2795
2813
  }
2796
- function S() {
2797
- n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = F(o.value.dataStatesValue.value), c.value = F(n.value.editorOptions.dataStates));
2814
+ function b() {
2815
+ n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = B(o.value.dataStatesValue.value), s.value = B(n.value.editorOptions.dataStates));
2798
2816
  }
2799
- function C() {
2817
+ function S() {
2800
2818
  i.value = "", o.value.expressionValue && (o.value.expressionValue.value = "");
2801
2819
  }
2802
- function A() {
2803
- p.value || (u.value = u.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = u, o.value.stateMachineValue.value.exist = u, B());
2804
- }
2805
2820
  function E() {
2806
- s.value.propertyValue.value && s.value.propertyValue.value.includes("viewModel.stateMachine") && (o.value.customValue.value = "");
2821
+ d.value || (u.value = u.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = u, o.value.stateMachineValue.value.exist = u, T());
2822
+ }
2823
+ function k() {
2824
+ p.value.propertyValue.value && p.value.propertyValue.value.includes("viewModel.stateMachine") && (o.value.customValue.value = "");
2807
2825
  }
2808
- function w() {
2809
- s.value.propertyName = F(n.value.propertyName), s.value.propertyType = F(n.value.propertyType), s.value.propertyValue = F(n.value.propertyValue), s.value.hasPrefix = F(f);
2826
+ function C() {
2827
+ p.value.propertyName = B(n.value.propertyName), p.value.propertyType = B(n.value.propertyType), p.value.propertyValue = B(n.value.propertyValue), p.value.hasPrefix = B(f);
2810
2828
  }
2811
- function B() {
2812
- if (!p.value)
2813
- switch (w(), s.value.propertyValue.type) {
2829
+ function T() {
2830
+ if (!d.value)
2831
+ switch (C(), p.value.propertyValue.type) {
2814
2832
  case "const":
2815
- (s.value.propertyType === "enum" && s.value.propertyValue.value !== "" || s.value.propertyType === "number" && s.value.propertyValue.value != null || s.value.propertyType === "string") && (C(), e.emit("propertyEditorValueChanged", s));
2833
+ (p.value.propertyType === "enum" && p.value.propertyValue.value !== "" || p.value.propertyType === "number" && p.value.propertyValue.value != null || p.value.propertyType === "string") && (S(), e.emit("propertyEditorValueChanged", p));
2816
2834
  break;
2817
2835
  case "variable":
2818
- s.value.propertyValue.value.path !== "" && (C(), e.emit("propertyEditorValueChanged", s));
2836
+ p.value.propertyValue.value.path !== "" && (S(), e.emit("propertyEditorValueChanged", p));
2819
2837
  break;
2820
2838
  case "custom":
2821
- C(), E(), e.emit("propertyEditorValueChanged", s);
2839
+ S(), k(), e.emit("propertyEditorValueChanged", p);
2822
2840
  break;
2823
2841
  case "expression":
2824
- i.value && e.emit("propertyEditorValueChanged", s);
2842
+ i.value && e.emit("propertyEditorValueChanged", p);
2825
2843
  break;
2826
2844
  case "stateMachine":
2827
- s.value.propertyValue.value.id && (C(), e.emit("propertyEditorValueChanged", s));
2845
+ p.value.propertyValue.value.id && (S(), e.emit("propertyEditorValueChanged", p));
2828
2846
  break;
2829
2847
  case "dataStates":
2830
- if (s.value.propertyValue.value !== "") {
2831
- C(), e.emit("propertyEditorValueChanged", s);
2848
+ if (p.value.propertyValue.value !== "") {
2849
+ S(), e.emit("propertyEditorValueChanged", p);
2832
2850
  break;
2833
2851
  }
2834
2852
  }
2835
2853
  }
2836
- function b() {
2837
- n.value.propertyValue = o.value[`${d.value.id}Value`], v(), h(), S(), B(), s.value.isNewVariable = !1;
2854
+ function g() {
2855
+ n.value.propertyValue = o.value[`${c.value.id}Value`], v(), m(), b(), T(), p.value.isNewVariable = !1;
2838
2856
  }
2839
2857
  return {
2840
- updateData: b,
2841
- changeState: A,
2858
+ updateData: g,
2859
+ changeState: E,
2842
2860
  prefix: f,
2843
- propertyEditorValueChange: s
2861
+ propertyEditorValueChange: p
2844
2862
  };
2845
2863
  }
2846
2864
  var ge = function(e, n) {
@@ -2850,7 +2868,7 @@ var ge = function(e, n) {
2850
2868
  for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
2851
2869
  }, ge(e, n);
2852
2870
  };
2853
- function W(e, n) {
2871
+ function z(e, n) {
2854
2872
  if (typeof n != "function" && n !== null)
2855
2873
  throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
2856
2874
  ge(e, n);
@@ -2859,34 +2877,34 @@ function W(e, n) {
2859
2877
  }
2860
2878
  e.prototype = n === null ? Object.create(n) : (t.prototype = n.prototype, new t());
2861
2879
  }
2862
- function jr(e, n, t, r) {
2880
+ function Lr(e, n, t, r) {
2863
2881
  function o(a) {
2864
2882
  return a instanceof t ? a : new t(function(l) {
2865
2883
  l(a);
2866
2884
  });
2867
2885
  }
2868
2886
  return new (t || (t = Promise))(function(a, l) {
2869
- function u(p) {
2887
+ function u(d) {
2870
2888
  try {
2871
- i(r.next(p));
2872
- } catch (d) {
2873
- l(d);
2889
+ i(r.next(d));
2890
+ } catch (c) {
2891
+ l(c);
2874
2892
  }
2875
2893
  }
2876
- function c(p) {
2894
+ function s(d) {
2877
2895
  try {
2878
- i(r.throw(p));
2879
- } catch (d) {
2880
- l(d);
2896
+ i(r.throw(d));
2897
+ } catch (c) {
2898
+ l(c);
2881
2899
  }
2882
2900
  }
2883
- function i(p) {
2884
- p.done ? a(p.value) : o(p.value).then(u, c);
2901
+ function i(d) {
2902
+ d.done ? a(d.value) : o(d.value).then(u, s);
2885
2903
  }
2886
2904
  i((r = r.apply(e, n || [])).next());
2887
2905
  });
2888
2906
  }
2889
- function lt(e, n) {
2907
+ function it(e, n) {
2890
2908
  var t = { label: 0, sent: function() {
2891
2909
  if (a[0] & 1) throw a[1];
2892
2910
  return a[1];
@@ -2895,11 +2913,11 @@ function lt(e, n) {
2895
2913
  return this;
2896
2914
  }), l;
2897
2915
  function u(i) {
2898
- return function(p) {
2899
- return c([i, p]);
2916
+ return function(d) {
2917
+ return s([i, d]);
2900
2918
  };
2901
2919
  }
2902
- function c(i) {
2920
+ function s(i) {
2903
2921
  if (r) throw new TypeError("Generator is already executing.");
2904
2922
  for (; l && (l = 0, i[0] && (t = 0)), t; ) try {
2905
2923
  if (r = 1, o && (a = i[0] & 2 ? o.return : i[0] ? o.throw || ((a = o.return) && a.call(o), 0) : o.next) && !(a = a.call(o, i[1])).done) return a;
@@ -2937,8 +2955,8 @@ function lt(e, n) {
2937
2955
  continue;
2938
2956
  }
2939
2957
  i = n.call(e, t);
2940
- } catch (p) {
2941
- i = [6, p], o = 0;
2958
+ } catch (d) {
2959
+ i = [6, d], o = 0;
2942
2960
  } finally {
2943
2961
  r = a = 0;
2944
2962
  }
@@ -2981,45 +2999,45 @@ function ue(e, n, t) {
2981
2999
  function J(e) {
2982
3000
  return this instanceof J ? (this.v = e, this) : new J(e);
2983
3001
  }
2984
- function Dr(e, n, t) {
3002
+ function Ur(e, n, t) {
2985
3003
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2986
3004
  var r = t.apply(e, n || []), o, a = [];
2987
3005
  return o = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", l), o[Symbol.asyncIterator] = function() {
2988
3006
  return this;
2989
3007
  }, o;
2990
- function l(s) {
3008
+ function l(p) {
2991
3009
  return function(v) {
2992
- return Promise.resolve(v).then(s, d);
3010
+ return Promise.resolve(v).then(p, c);
2993
3011
  };
2994
3012
  }
2995
- function u(s, v) {
2996
- r[s] && (o[s] = function(h) {
2997
- return new Promise(function(S, C) {
2998
- a.push([s, h, S, C]) > 1 || c(s, h);
3013
+ function u(p, v) {
3014
+ r[p] && (o[p] = function(m) {
3015
+ return new Promise(function(b, S) {
3016
+ a.push([p, m, b, S]) > 1 || s(p, m);
2999
3017
  });
3000
- }, v && (o[s] = v(o[s])));
3018
+ }, v && (o[p] = v(o[p])));
3001
3019
  }
3002
- function c(s, v) {
3020
+ function s(p, v) {
3003
3021
  try {
3004
- i(r[s](v));
3005
- } catch (h) {
3006
- f(a[0][3], h);
3022
+ i(r[p](v));
3023
+ } catch (m) {
3024
+ f(a[0][3], m);
3007
3025
  }
3008
3026
  }
3009
- function i(s) {
3010
- s.value instanceof J ? Promise.resolve(s.value.v).then(p, d) : f(a[0][2], s);
3027
+ function i(p) {
3028
+ p.value instanceof J ? Promise.resolve(p.value.v).then(d, c) : f(a[0][2], p);
3011
3029
  }
3012
- function p(s) {
3013
- c("next", s);
3030
+ function d(p) {
3031
+ s("next", p);
3014
3032
  }
3015
- function d(s) {
3016
- c("throw", s);
3033
+ function c(p) {
3034
+ s("throw", p);
3017
3035
  }
3018
- function f(s, v) {
3019
- s(v), a.shift(), a.length && c(a[0][0], a[0][1]);
3036
+ function f(p, v) {
3037
+ p(v), a.shift(), a.length && s(a[0][0], a[0][1]);
3020
3038
  }
3021
3039
  }
3022
- function $r(e) {
3040
+ function _r(e) {
3023
3041
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3024
3042
  var n = e[Symbol.asyncIterator], t;
3025
3043
  return n ? n.call(e) : (e = typeof X == "function" ? X(e) : e[Symbol.iterator](), t = {}, r("next"), r("throw"), r("return"), t[Symbol.asyncIterator] = function() {
@@ -3027,27 +3045,27 @@ function $r(e) {
3027
3045
  }, t);
3028
3046
  function r(a) {
3029
3047
  t[a] = e[a] && function(l) {
3030
- return new Promise(function(u, c) {
3031
- l = e[a](l), o(u, c, l.done, l.value);
3048
+ return new Promise(function(u, s) {
3049
+ l = e[a](l), o(u, s, l.done, l.value);
3032
3050
  });
3033
3051
  };
3034
3052
  }
3035
- function o(a, l, u, c) {
3036
- Promise.resolve(c).then(function(i) {
3053
+ function o(a, l, u, s) {
3054
+ Promise.resolve(s).then(function(i) {
3037
3055
  a({ value: i, done: u });
3038
3056
  }, l);
3039
3057
  }
3040
3058
  }
3041
- function O(e) {
3059
+ function I(e) {
3042
3060
  return typeof e == "function";
3043
3061
  }
3044
- function ut(e) {
3062
+ function lt(e) {
3045
3063
  var n = function(r) {
3046
3064
  Error.call(r), r.stack = new Error().stack;
3047
3065
  }, t = e(n);
3048
3066
  return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
3049
3067
  }
3050
- var fe = ut(function(e) {
3068
+ var fe = lt(function(e) {
3051
3069
  return function(t) {
3052
3070
  e(this), this.message = t ? t.length + ` errors occurred during unsubscription:
3053
3071
  ` + t.map(function(r, o) {
@@ -3074,45 +3092,45 @@ var ne = function() {
3074
3092
  if (l)
3075
3093
  if (this._parentage = null, Array.isArray(l))
3076
3094
  try {
3077
- for (var u = X(l), c = u.next(); !c.done; c = u.next()) {
3078
- var i = c.value;
3095
+ for (var u = X(l), s = u.next(); !s.done; s = u.next()) {
3096
+ var i = s.value;
3079
3097
  i.remove(this);
3080
3098
  }
3081
- } catch (h) {
3082
- n = { error: h };
3099
+ } catch (m) {
3100
+ n = { error: m };
3083
3101
  } finally {
3084
3102
  try {
3085
- c && !c.done && (t = u.return) && t.call(u);
3103
+ s && !s.done && (t = u.return) && t.call(u);
3086
3104
  } finally {
3087
3105
  if (n) throw n.error;
3088
3106
  }
3089
3107
  }
3090
3108
  else
3091
3109
  l.remove(this);
3092
- var p = this.initialTeardown;
3093
- if (O(p))
3110
+ var d = this.initialTeardown;
3111
+ if (I(d))
3094
3112
  try {
3095
- p();
3096
- } catch (h) {
3097
- a = h instanceof fe ? h.errors : [h];
3113
+ d();
3114
+ } catch (m) {
3115
+ a = m instanceof fe ? m.errors : [m];
3098
3116
  }
3099
- var d = this._finalizers;
3100
- if (d) {
3117
+ var c = this._finalizers;
3118
+ if (c) {
3101
3119
  this._finalizers = null;
3102
3120
  try {
3103
- for (var f = X(d), s = f.next(); !s.done; s = f.next()) {
3104
- var v = s.value;
3121
+ for (var f = X(c), p = f.next(); !p.done; p = f.next()) {
3122
+ var v = p.value;
3105
3123
  try {
3106
3124
  Le(v);
3107
- } catch (h) {
3108
- a = a ?? [], h instanceof fe ? a = ue(ue([], le(a)), le(h.errors)) : a.push(h);
3125
+ } catch (m) {
3126
+ a = a ?? [], m instanceof fe ? a = ue(ue([], le(a)), le(m.errors)) : a.push(m);
3109
3127
  }
3110
3128
  }
3111
- } catch (h) {
3112
- r = { error: h };
3129
+ } catch (m) {
3130
+ r = { error: m };
3113
3131
  } finally {
3114
3132
  try {
3115
- s && !s.done && (o = f.return) && o.call(f);
3133
+ p && !p.done && (o = f.return) && o.call(f);
3116
3134
  } finally {
3117
3135
  if (r) throw r.error;
3118
3136
  }
@@ -3150,20 +3168,20 @@ var ne = function() {
3150
3168
  var n = new e();
3151
3169
  return n.closed = !0, n;
3152
3170
  }(), e;
3153
- }(), st = ne.EMPTY;
3154
- function ct(e) {
3155
- return e instanceof ne || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
3171
+ }(), ut = ne.EMPTY;
3172
+ function st(e) {
3173
+ return e instanceof ne || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
3156
3174
  }
3157
3175
  function Le(e) {
3158
- O(e) ? e() : e.unsubscribe();
3176
+ I(e) ? e() : e.unsubscribe();
3159
3177
  }
3160
- var dt = {
3178
+ var ct = {
3161
3179
  onUnhandledError: null,
3162
3180
  onStoppedNotification: null,
3163
3181
  Promise: void 0,
3164
3182
  useDeprecatedSynchronousErrorHandling: !1,
3165
3183
  useDeprecatedNextContext: !1
3166
- }, Lr = {
3184
+ }, Rr = {
3167
3185
  setTimeout: function(e, n) {
3168
3186
  for (var t = [], r = 2; r < arguments.length; r++)
3169
3187
  t[r - 2] = arguments[r];
@@ -3174,8 +3192,8 @@ var dt = {
3174
3192
  },
3175
3193
  delegate: void 0
3176
3194
  };
3177
- function pt(e) {
3178
- Lr.setTimeout(function() {
3195
+ function dt(e) {
3196
+ Rr.setTimeout(function() {
3179
3197
  throw e;
3180
3198
  });
3181
3199
  }
@@ -3185,10 +3203,10 @@ function ae(e) {
3185
3203
  e();
3186
3204
  }
3187
3205
  var ke = function(e) {
3188
- W(n, e);
3206
+ z(n, e);
3189
3207
  function n(t) {
3190
3208
  var r = e.call(this) || this;
3191
- return r.isStopped = !1, t ? (r.destination = t, ct(t) && t.add(r)) : r.destination = Gr, r;
3209
+ return r.isStopped = !1, t ? (r.destination = t, st(t) && t.add(r)) : r.destination = Wr, r;
3192
3210
  }
3193
3211
  return n.create = function(t, r, o) {
3194
3212
  return new Se(t, r, o);
@@ -3215,11 +3233,11 @@ var ke = function(e) {
3215
3233
  this.unsubscribe();
3216
3234
  }
3217
3235
  }, n;
3218
- }(ne), Ur = Function.prototype.bind;
3236
+ }(ne), Gr = Function.prototype.bind;
3219
3237
  function ve(e, n) {
3220
- return Ur.call(e, n);
3238
+ return Gr.call(e, n);
3221
3239
  }
3222
- var _r = function() {
3240
+ var Hr = function() {
3223
3241
  function e(n) {
3224
3242
  this.partialObserver = n;
3225
3243
  }
@@ -3251,10 +3269,10 @@ var _r = function() {
3251
3269
  }
3252
3270
  }, e;
3253
3271
  }(), Se = function(e) {
3254
- W(n, e);
3272
+ z(n, e);
3255
3273
  function n(t, r, o) {
3256
3274
  var a = e.call(this) || this, l;
3257
- if (O(t) || !t)
3275
+ if (I(t) || !t)
3258
3276
  l = {
3259
3277
  next: t ?? void 0,
3260
3278
  error: r ?? void 0,
@@ -3262,7 +3280,7 @@ var _r = function() {
3262
3280
  };
3263
3281
  else {
3264
3282
  var u;
3265
- a && dt.useDeprecatedNextContext ? (u = Object.create(t), u.unsubscribe = function() {
3283
+ a && ct.useDeprecatedNextContext ? (u = Object.create(t), u.unsubscribe = function() {
3266
3284
  return a.unsubscribe();
3267
3285
  }, l = {
3268
3286
  next: t.next && ve(t.next, u),
@@ -3270,29 +3288,29 @@ var _r = function() {
3270
3288
  complete: t.complete && ve(t.complete, u)
3271
3289
  }) : l = t;
3272
3290
  }
3273
- return a.destination = new _r(l), a;
3291
+ return a.destination = new Hr(l), a;
3274
3292
  }
3275
3293
  return n;
3276
3294
  }(ke);
3277
3295
  function oe(e) {
3278
- pt(e);
3296
+ dt(e);
3279
3297
  }
3280
- function Rr(e) {
3298
+ function qr(e) {
3281
3299
  throw e;
3282
3300
  }
3283
- var Gr = {
3301
+ var Wr = {
3284
3302
  closed: !0,
3285
3303
  next: Ue,
3286
- error: Rr,
3304
+ error: qr,
3287
3305
  complete: Ue
3288
3306
  }, Ee = function() {
3289
3307
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
3290
3308
  }();
3291
- function Hr(e) {
3309
+ function zr(e) {
3292
3310
  return e;
3293
3311
  }
3294
- function qr(e) {
3295
- return e.length === 0 ? Hr : e.length === 1 ? e[0] : function(t) {
3312
+ function Yr(e) {
3313
+ return e.length === 0 ? zr : e.length === 1 ? e[0] : function(t) {
3296
3314
  return e.reduce(function(r, o) {
3297
3315
  return o(r);
3298
3316
  }, t);
@@ -3306,10 +3324,10 @@ var R = function() {
3306
3324
  var t = new e();
3307
3325
  return t.source = this, t.operator = n, t;
3308
3326
  }, e.prototype.subscribe = function(n, t, r) {
3309
- var o = this, a = zr(n) ? n : new Se(n, t, r);
3327
+ var o = this, a = Jr(n) ? n : new Se(n, t, r);
3310
3328
  return ae(function() {
3311
- var l = o, u = l.operator, c = l.source;
3312
- a.add(u ? u.call(a, c) : c ? o._subscribe(a) : o._trySubscribe(a));
3329
+ var l = o, u = l.operator, s = l.source;
3330
+ a.add(u ? u.call(a, s) : s ? o._subscribe(a) : o._trySubscribe(a));
3313
3331
  }), a;
3314
3332
  }, e.prototype._trySubscribe = function(n) {
3315
3333
  try {
@@ -3324,8 +3342,8 @@ var R = function() {
3324
3342
  next: function(u) {
3325
3343
  try {
3326
3344
  n(u);
3327
- } catch (c) {
3328
- a(c), l.unsubscribe();
3345
+ } catch (s) {
3346
+ a(s), l.unsubscribe();
3329
3347
  }
3330
3348
  },
3331
3349
  error: a,
@@ -3341,7 +3359,7 @@ var R = function() {
3341
3359
  }, e.prototype.pipe = function() {
3342
3360
  for (var n = [], t = 0; t < arguments.length; t++)
3343
3361
  n[t] = arguments[t];
3344
- return qr(n)(this);
3362
+ return Yr(n)(this);
3345
3363
  }, e.prototype.toPromise = function(n) {
3346
3364
  var t = this;
3347
3365
  return n = _e(n), new n(function(r, o) {
@@ -3360,20 +3378,20 @@ var R = function() {
3360
3378
  }();
3361
3379
  function _e(e) {
3362
3380
  var n;
3363
- return (n = e ?? dt.Promise) !== null && n !== void 0 ? n : Promise;
3381
+ return (n = e ?? ct.Promise) !== null && n !== void 0 ? n : Promise;
3364
3382
  }
3365
- function Wr(e) {
3366
- return e && O(e.next) && O(e.error) && O(e.complete);
3383
+ function Zr(e) {
3384
+ return e && I(e.next) && I(e.error) && I(e.complete);
3367
3385
  }
3368
- function zr(e) {
3369
- return e && e instanceof ke || Wr(e) && ct(e);
3386
+ function Jr(e) {
3387
+ return e && e instanceof ke || Zr(e) && st(e);
3370
3388
  }
3371
- function Yr(e) {
3372
- return O(e == null ? void 0 : e.lift);
3389
+ function Qr(e) {
3390
+ return I(e == null ? void 0 : e.lift);
3373
3391
  }
3374
3392
  function Ae(e) {
3375
3393
  return function(n) {
3376
- if (Yr(n))
3394
+ if (Qr(n))
3377
3395
  return n.lift(function(t) {
3378
3396
  try {
3379
3397
  return e(t, this);
@@ -3384,28 +3402,28 @@ function Ae(e) {
3384
3402
  throw new TypeError("Unable to lift unknown Observable type");
3385
3403
  };
3386
3404
  }
3387
- function ft(e, n, t, r, o) {
3388
- return new Zr(e, n, t, r, o);
3405
+ function pt(e, n, t, r, o) {
3406
+ return new Xr(e, n, t, r, o);
3389
3407
  }
3390
- var Zr = function(e) {
3391
- W(n, e);
3408
+ var Xr = function(e) {
3409
+ z(n, e);
3392
3410
  function n(t, r, o, a, l, u) {
3393
- var c = e.call(this, t) || this;
3394
- return c.onFinalize = l, c.shouldUnsubscribe = u, c._next = r ? function(i) {
3411
+ var s = e.call(this, t) || this;
3412
+ return s.onFinalize = l, s.shouldUnsubscribe = u, s._next = r ? function(i) {
3395
3413
  try {
3396
3414
  r(i);
3397
- } catch (p) {
3398
- t.error(p);
3415
+ } catch (d) {
3416
+ t.error(d);
3399
3417
  }
3400
- } : e.prototype._next, c._error = a ? function(i) {
3418
+ } : e.prototype._next, s._error = a ? function(i) {
3401
3419
  try {
3402
3420
  a(i);
3403
- } catch (p) {
3404
- t.error(p);
3421
+ } catch (d) {
3422
+ t.error(d);
3405
3423
  } finally {
3406
3424
  this.unsubscribe();
3407
3425
  }
3408
- } : e.prototype._error, c._complete = o ? function() {
3426
+ } : e.prototype._error, s._complete = o ? function() {
3409
3427
  try {
3410
3428
  o();
3411
3429
  } catch (i) {
@@ -3413,7 +3431,7 @@ var Zr = function(e) {
3413
3431
  } finally {
3414
3432
  this.unsubscribe();
3415
3433
  }
3416
- } : e.prototype._complete, c;
3434
+ } : e.prototype._complete, s;
3417
3435
  }
3418
3436
  return n.prototype.unsubscribe = function() {
3419
3437
  var t;
@@ -3422,12 +3440,12 @@ var Zr = function(e) {
3422
3440
  e.prototype.unsubscribe.call(this), !r && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
3423
3441
  }
3424
3442
  }, n;
3425
- }(ke), Jr = ut(function(e) {
3443
+ }(ke), Kr = lt(function(e) {
3426
3444
  return function() {
3427
3445
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
3428
3446
  };
3429
- }), vt = function(e) {
3430
- W(n, e);
3447
+ }), ft = function(e) {
3448
+ z(n, e);
3431
3449
  function n() {
3432
3450
  var t = e.call(this) || this;
3433
3451
  return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
@@ -3437,7 +3455,7 @@ var Zr = function(e) {
3437
3455
  return r.operator = t, r;
3438
3456
  }, n.prototype._throwIfClosed = function() {
3439
3457
  if (this.closed)
3440
- throw new Jr();
3458
+ throw new Kr();
3441
3459
  }, n.prototype.next = function(t) {
3442
3460
  var r = this;
3443
3461
  ae(function() {
@@ -3446,8 +3464,8 @@ var Zr = function(e) {
3446
3464
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
3447
3465
  try {
3448
3466
  for (var l = X(r.currentObservers), u = l.next(); !u.done; u = l.next()) {
3449
- var c = u.value;
3450
- c.next(t);
3467
+ var s = u.value;
3468
+ s.next(t);
3451
3469
  }
3452
3470
  } catch (i) {
3453
3471
  o = { error: i };
@@ -3493,7 +3511,7 @@ var Zr = function(e) {
3493
3511
  return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
3494
3512
  }, n.prototype._innerSubscribe = function(t) {
3495
3513
  var r = this, o = this, a = o.hasError, l = o.isStopped, u = o.observers;
3496
- return a || l ? st : (this.currentObservers = null, u.push(t), new ne(function() {
3514
+ return a || l ? ut : (this.currentObservers = null, u.push(t), new ne(function() {
3497
3515
  r.currentObservers = null, se(u, t);
3498
3516
  }));
3499
3517
  }, n.prototype._checkFinalizedStatuses = function(t) {
@@ -3506,7 +3524,7 @@ var Zr = function(e) {
3506
3524
  return new Re(t, r);
3507
3525
  }, n;
3508
3526
  }(R), Re = function(e) {
3509
- W(n, e);
3527
+ z(n, e);
3510
3528
  function n(t, r) {
3511
3529
  var o = e.call(this) || this;
3512
3530
  return o.destination = t, o.source = r, o;
@@ -3522,15 +3540,15 @@ var Zr = function(e) {
3522
3540
  (r = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || r === void 0 || r.call(t);
3523
3541
  }, n.prototype._subscribe = function(t) {
3524
3542
  var r, o;
3525
- return (o = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t)) !== null && o !== void 0 ? o : st;
3543
+ return (o = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t)) !== null && o !== void 0 ? o : ut;
3526
3544
  }, n;
3527
- }(vt), Qr = {
3545
+ }(ft), eo = {
3528
3546
  now: function() {
3529
3547
  return Date.now();
3530
3548
  },
3531
3549
  delegate: void 0
3532
- }, Xr = function(e) {
3533
- W(n, e);
3550
+ }, to = function(e) {
3551
+ z(n, e);
3534
3552
  function n(t, r) {
3535
3553
  return e.call(this) || this;
3536
3554
  }
@@ -3547,8 +3565,8 @@ var Zr = function(e) {
3547
3565
  return clearInterval(e);
3548
3566
  },
3549
3567
  delegate: void 0
3550
- }, Kr = function(e) {
3551
- W(n, e);
3568
+ }, no = function(e) {
3569
+ z(n, e);
3552
3570
  function n(t, r) {
3553
3571
  var o = e.call(this, t, r) || this;
3554
3572
  return o.scheduler = t, o.work = r, o.pending = !1, o;
@@ -3589,15 +3607,15 @@ var Zr = function(e) {
3589
3607
  this.work = this.state = this.scheduler = null, this.pending = !1, se(a, this), r != null && (this.id = this.recycleAsyncId(o, r, null)), this.delay = null, e.prototype.unsubscribe.call(this);
3590
3608
  }
3591
3609
  }, n;
3592
- }(Xr), He = function() {
3610
+ }(to), He = function() {
3593
3611
  function e(n, t) {
3594
3612
  t === void 0 && (t = e.now), this.schedulerActionCtor = n, this.now = t;
3595
3613
  }
3596
3614
  return e.prototype.schedule = function(n, t, r) {
3597
3615
  return t === void 0 && (t = 0), new this.schedulerActionCtor(this, n).schedule(r, t);
3598
- }, e.now = Qr.now, e;
3599
- }(), eo = function(e) {
3600
- W(n, e);
3616
+ }, e.now = eo.now, e;
3617
+ }(), ro = function(e) {
3618
+ z(n, e);
3601
3619
  function n(t, r) {
3602
3620
  r === void 0 && (r = He.now);
3603
3621
  var o = e.call(this, t, r) || this;
@@ -3621,42 +3639,42 @@ var Zr = function(e) {
3621
3639
  throw o;
3622
3640
  }
3623
3641
  }, n;
3624
- }(He), to = new eo(Kr);
3625
- function no(e) {
3626
- return e && O(e.schedule);
3642
+ }(He), oo = new ro(no);
3643
+ function ao(e) {
3644
+ return e && I(e.schedule);
3627
3645
  }
3628
- function ro(e) {
3646
+ function io(e) {
3629
3647
  return e[e.length - 1];
3630
3648
  }
3631
- function oo(e) {
3632
- return no(ro(e)) ? e.pop() : void 0;
3649
+ function lo(e) {
3650
+ return ao(io(e)) ? e.pop() : void 0;
3633
3651
  }
3634
- var yt = function(e) {
3652
+ var vt = function(e) {
3635
3653
  return e && typeof e.length == "number" && typeof e != "function";
3636
3654
  };
3655
+ function yt(e) {
3656
+ return I(e == null ? void 0 : e.then);
3657
+ }
3637
3658
  function mt(e) {
3638
- return O(e == null ? void 0 : e.then);
3659
+ return I(e[Ee]);
3639
3660
  }
3640
3661
  function ht(e) {
3641
- return O(e[Ee]);
3662
+ return Symbol.asyncIterator && I(e == null ? void 0 : e[Symbol.asyncIterator]);
3642
3663
  }
3643
3664
  function bt(e) {
3644
- return Symbol.asyncIterator && O(e == null ? void 0 : e[Symbol.asyncIterator]);
3645
- }
3646
- function gt(e) {
3647
3665
  return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
3648
3666
  }
3649
- function ao() {
3667
+ function uo() {
3650
3668
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
3651
3669
  }
3652
- var St = ao();
3653
- function wt(e) {
3654
- return O(e == null ? void 0 : e[St]);
3670
+ var gt = uo();
3671
+ function St(e) {
3672
+ return I(e == null ? void 0 : e[gt]);
3655
3673
  }
3656
- function Ct(e) {
3657
- return Dr(this, arguments, function() {
3674
+ function wt(e) {
3675
+ return Ur(this, arguments, function() {
3658
3676
  var t, r, o, a;
3659
- return lt(this, function(l) {
3677
+ return it(this, function(l) {
3660
3678
  switch (l.label) {
3661
3679
  case 0:
3662
3680
  t = e.getReader(), l.label = 1;
@@ -3684,53 +3702,53 @@ function Ct(e) {
3684
3702
  });
3685
3703
  });
3686
3704
  }
3687
- function xt(e) {
3688
- return O(e == null ? void 0 : e.getReader);
3705
+ function Ct(e) {
3706
+ return I(e == null ? void 0 : e.getReader);
3689
3707
  }
3690
3708
  function Pe(e) {
3691
3709
  if (e instanceof R)
3692
3710
  return e;
3693
3711
  if (e != null) {
3694
- if (ht(e))
3695
- return io(e);
3696
- if (yt(e))
3697
- return lo(e);
3698
3712
  if (mt(e))
3699
- return uo(e);
3700
- if (bt(e))
3701
- return Vt(e);
3702
- if (wt(e))
3703
3713
  return so(e);
3704
- if (xt(e))
3714
+ if (vt(e))
3705
3715
  return co(e);
3716
+ if (yt(e))
3717
+ return po(e);
3718
+ if (ht(e))
3719
+ return xt(e);
3720
+ if (St(e))
3721
+ return fo(e);
3722
+ if (Ct(e))
3723
+ return vo(e);
3706
3724
  }
3707
- throw gt(e);
3725
+ throw bt(e);
3708
3726
  }
3709
- function io(e) {
3727
+ function so(e) {
3710
3728
  return new R(function(n) {
3711
3729
  var t = e[Ee]();
3712
- if (O(t.subscribe))
3730
+ if (I(t.subscribe))
3713
3731
  return t.subscribe(n);
3714
3732
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
3715
3733
  });
3716
3734
  }
3717
- function lo(e) {
3735
+ function co(e) {
3718
3736
  return new R(function(n) {
3719
3737
  for (var t = 0; t < e.length && !n.closed; t++)
3720
3738
  n.next(e[t]);
3721
3739
  n.complete();
3722
3740
  });
3723
3741
  }
3724
- function uo(e) {
3742
+ function po(e) {
3725
3743
  return new R(function(n) {
3726
3744
  e.then(function(t) {
3727
3745
  n.closed || (n.next(t), n.complete());
3728
3746
  }, function(t) {
3729
3747
  return n.error(t);
3730
- }).then(null, pt);
3748
+ }).then(null, dt);
3731
3749
  });
3732
3750
  }
3733
- function so(e) {
3751
+ function fo(e) {
3734
3752
  return new R(function(n) {
3735
3753
  var t, r;
3736
3754
  try {
@@ -3751,41 +3769,41 @@ function so(e) {
3751
3769
  n.complete();
3752
3770
  });
3753
3771
  }
3754
- function Vt(e) {
3772
+ function xt(e) {
3755
3773
  return new R(function(n) {
3756
- po(e, n).catch(function(t) {
3774
+ yo(e, n).catch(function(t) {
3757
3775
  return n.error(t);
3758
3776
  });
3759
3777
  });
3760
3778
  }
3761
- function co(e) {
3762
- return Vt(Ct(e));
3779
+ function vo(e) {
3780
+ return xt(wt(e));
3763
3781
  }
3764
- function po(e, n) {
3782
+ function yo(e, n) {
3765
3783
  var t, r, o, a;
3766
- return jr(this, void 0, void 0, function() {
3784
+ return Lr(this, void 0, void 0, function() {
3767
3785
  var l, u;
3768
- return lt(this, function(c) {
3769
- switch (c.label) {
3786
+ return it(this, function(s) {
3787
+ switch (s.label) {
3770
3788
  case 0:
3771
- c.trys.push([0, 5, 6, 11]), t = $r(e), c.label = 1;
3789
+ s.trys.push([0, 5, 6, 11]), t = _r(e), s.label = 1;
3772
3790
  case 1:
3773
3791
  return [4, t.next()];
3774
3792
  case 2:
3775
- if (r = c.sent(), !!r.done) return [3, 4];
3793
+ if (r = s.sent(), !!r.done) return [3, 4];
3776
3794
  if (l = r.value, n.next(l), n.closed)
3777
3795
  return [2];
3778
- c.label = 3;
3796
+ s.label = 3;
3779
3797
  case 3:
3780
3798
  return [3, 1];
3781
3799
  case 4:
3782
3800
  return [3, 11];
3783
3801
  case 5:
3784
- return u = c.sent(), o = { error: u }, [3, 11];
3802
+ return u = s.sent(), o = { error: u }, [3, 11];
3785
3803
  case 6:
3786
- return c.trys.push([6, , 9, 10]), r && !r.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
3804
+ return s.trys.push([6, , 9, 10]), r && !r.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
3787
3805
  case 7:
3788
- c.sent(), c.label = 8;
3806
+ s.sent(), s.label = 8;
3789
3807
  case 8:
3790
3808
  return [3, 10];
3791
3809
  case 9:
@@ -3799,7 +3817,7 @@ function po(e, n) {
3799
3817
  });
3800
3818
  });
3801
3819
  }
3802
- function z(e, n, t, r, o) {
3820
+ function Y(e, n, t, r, o) {
3803
3821
  r === void 0 && (r = 0), o === void 0 && (o = !1);
3804
3822
  var a = n.schedule(function() {
3805
3823
  t(), o ? e.add(this.schedule(null, r)) : this.unsubscribe();
@@ -3807,37 +3825,37 @@ function z(e, n, t, r, o) {
3807
3825
  if (e.add(a), !o)
3808
3826
  return a;
3809
3827
  }
3810
- function Tt(e, n) {
3828
+ function Vt(e, n) {
3811
3829
  return n === void 0 && (n = 0), Ae(function(t, r) {
3812
- t.subscribe(ft(r, function(o) {
3813
- return z(r, e, function() {
3830
+ t.subscribe(pt(r, function(o) {
3831
+ return Y(r, e, function() {
3814
3832
  return r.next(o);
3815
3833
  }, n);
3816
3834
  }, function() {
3817
- return z(r, e, function() {
3835
+ return Y(r, e, function() {
3818
3836
  return r.complete();
3819
3837
  }, n);
3820
3838
  }, function(o) {
3821
- return z(r, e, function() {
3839
+ return Y(r, e, function() {
3822
3840
  return r.error(o);
3823
3841
  }, n);
3824
3842
  }));
3825
3843
  });
3826
3844
  }
3827
- function Bt(e, n) {
3845
+ function Tt(e, n) {
3828
3846
  return n === void 0 && (n = 0), Ae(function(t, r) {
3829
3847
  r.add(e.schedule(function() {
3830
3848
  return t.subscribe(r);
3831
3849
  }, n));
3832
3850
  });
3833
3851
  }
3834
- function fo(e, n) {
3835
- return Pe(e).pipe(Bt(n), Tt(n));
3852
+ function mo(e, n) {
3853
+ return Pe(e).pipe(Tt(n), Vt(n));
3836
3854
  }
3837
- function vo(e, n) {
3838
- return Pe(e).pipe(Bt(n), Tt(n));
3855
+ function ho(e, n) {
3856
+ return Pe(e).pipe(Tt(n), Vt(n));
3839
3857
  }
3840
- function yo(e, n) {
3858
+ function bo(e, n) {
3841
3859
  return new R(function(t) {
3842
3860
  var r = 0;
3843
3861
  return n.schedule(function() {
@@ -3845,11 +3863,11 @@ function yo(e, n) {
3845
3863
  });
3846
3864
  });
3847
3865
  }
3848
- function mo(e, n) {
3866
+ function go(e, n) {
3849
3867
  return new R(function(t) {
3850
3868
  var r;
3851
- return z(t, n, function() {
3852
- r = e[St](), z(t, n, function() {
3869
+ return Y(t, n, function() {
3870
+ r = e[gt](), Y(t, n, function() {
3853
3871
  var o, a, l;
3854
3872
  try {
3855
3873
  o = r.next(), a = o.value, l = o.done;
@@ -3860,17 +3878,17 @@ function mo(e, n) {
3860
3878
  l ? t.complete() : t.next(a);
3861
3879
  }, 0, !0);
3862
3880
  }), function() {
3863
- return O(r == null ? void 0 : r.return) && r.return();
3881
+ return I(r == null ? void 0 : r.return) && r.return();
3864
3882
  };
3865
3883
  });
3866
3884
  }
3867
- function Ft(e, n) {
3885
+ function Bt(e, n) {
3868
3886
  if (!e)
3869
3887
  throw new Error("Iterable cannot be null");
3870
3888
  return new R(function(t) {
3871
- z(t, n, function() {
3889
+ Y(t, n, function() {
3872
3890
  var r = e[Symbol.asyncIterator]();
3873
- z(t, n, function() {
3891
+ Y(t, n, function() {
3874
3892
  r.next().then(function(o) {
3875
3893
  o.done ? t.complete() : t.next(o.value);
3876
3894
  });
@@ -3878,37 +3896,37 @@ function Ft(e, n) {
3878
3896
  });
3879
3897
  });
3880
3898
  }
3881
- function ho(e, n) {
3882
- return Ft(Ct(e), n);
3899
+ function So(e, n) {
3900
+ return Bt(wt(e), n);
3883
3901
  }
3884
- function bo(e, n) {
3902
+ function wo(e, n) {
3885
3903
  if (e != null) {
3886
- if (ht(e))
3887
- return fo(e, n);
3888
- if (yt(e))
3889
- return yo(e, n);
3890
3904
  if (mt(e))
3891
- return vo(e, n);
3892
- if (bt(e))
3893
- return Ft(e, n);
3894
- if (wt(e))
3895
3905
  return mo(e, n);
3896
- if (xt(e))
3906
+ if (vt(e))
3907
+ return bo(e, n);
3908
+ if (yt(e))
3897
3909
  return ho(e, n);
3910
+ if (ht(e))
3911
+ return Bt(e, n);
3912
+ if (St(e))
3913
+ return go(e, n);
3914
+ if (Ct(e))
3915
+ return So(e, n);
3898
3916
  }
3899
- throw gt(e);
3917
+ throw bt(e);
3900
3918
  }
3901
- function go(e, n) {
3902
- return n ? bo(e, n) : Pe(e);
3919
+ function Co(e, n) {
3920
+ return n ? wo(e, n) : Pe(e);
3903
3921
  }
3904
- function So() {
3922
+ function xo() {
3905
3923
  for (var e = [], n = 0; n < arguments.length; n++)
3906
3924
  e[n] = arguments[n];
3907
- var t = oo(e);
3908
- return go(e, t);
3925
+ var t = lo(e);
3926
+ return Co(e, t);
3909
3927
  }
3910
- function wo(e, n) {
3911
- return n === void 0 && (n = to), Ae(function(t, r) {
3928
+ function Vo(e, n) {
3929
+ return n === void 0 && (n = oo), Ae(function(t, r) {
3912
3930
  var o = null, a = null, l = null, u = function() {
3913
3931
  if (o) {
3914
3932
  o.unsubscribe(), o = null;
@@ -3916,16 +3934,16 @@ function wo(e, n) {
3916
3934
  a = null, r.next(i);
3917
3935
  }
3918
3936
  };
3919
- function c() {
3920
- var i = l + e, p = n.now();
3921
- if (p < i) {
3922
- o = this.schedule(void 0, i - p), r.add(o);
3937
+ function s() {
3938
+ var i = l + e, d = n.now();
3939
+ if (d < i) {
3940
+ o = this.schedule(void 0, i - d), r.add(o);
3923
3941
  return;
3924
3942
  }
3925
3943
  u();
3926
3944
  }
3927
- t.subscribe(ft(r, function(i) {
3928
- a = i, l = n.now(), o || (o = n.schedule(c, e), r.add(o));
3945
+ t.subscribe(pt(r, function(i) {
3946
+ a = i, l = n.now(), o || (o = n.schedule(s, e), r.add(o));
3929
3947
  }, function() {
3930
3948
  u(), r.complete();
3931
3949
  }, void 0, function() {
@@ -3933,180 +3951,180 @@ function wo(e, n) {
3933
3951
  }));
3934
3952
  });
3935
3953
  }
3936
- const ye = /* @__PURE__ */ q({
3954
+ const ye = /* @__PURE__ */ W({
3937
3955
  name: "FPropertyEditor",
3938
- props: Ye,
3956
+ props: ze,
3939
3957
  emits: ["propertyEditorValueChanged"],
3940
3958
  setup(e, n) {
3941
- const t = y(On), r = y(""), o = y("const"), a = y([]), l = y(!1);
3959
+ const t = y(In), r = y(""), o = y("const"), a = y([]), l = y(!1);
3942
3960
  let u;
3943
- const c = y(""), i = y(""), p = y([]);
3944
- let d;
3945
- const f = y([]), s = y("是");
3961
+ const s = y(""), i = y(""), d = y([]);
3962
+ let c;
3963
+ const f = y([]), p = y("是");
3946
3964
  y("");
3947
- const v = y(!1), h = y("<span class='f-icon f-icon-more-horizontal'></span>"), S = y(!1), C = y([]), {
3948
- numberConstValue: A,
3949
- bindVariableValue: E,
3950
- dataStatesBindValue: w,
3951
- dataStatesValueArray: B,
3952
- constEnumBindValue: b,
3953
- setValue: T
3954
- } = Or(t, a, o, d, s, r, v), {
3955
- updateData: k,
3956
- changeState: L,
3957
- prefix: Y,
3965
+ const v = y(!1), m = y("<span class='f-icon f-icon-more-horizontal'></span>"), b = y(!1), S = y([]), {
3966
+ numberConstValue: E,
3967
+ bindVariableValue: k,
3968
+ dataStatesBindValue: C,
3969
+ dataStatesValueArray: T,
3970
+ constEnumBindValue: g,
3971
+ setValue: F
3972
+ } = Dr(t, a, o, c, p, r, v), {
3973
+ updateData: A,
3974
+ changeState: N,
3975
+ prefix: q,
3958
3976
  propertyEditorValueChange: _
3959
- } = Ir(n, t, b, a, P, f, d, s, B, r, S, o);
3977
+ } = $r(n, t, g, a, P, f, c, p, T, r, b, o);
3960
3978
  function K() {
3961
- C.value = Nn.value.filter((m) => t.value.editorOptions.types.includes(m.id));
3979
+ S.value = On.value.filter((h) => t.value.editorOptions.types.includes(h.id));
3962
3980
  }
3963
3981
  function M() {
3964
- o.value = F(C.value.find((m) => m.id === t.value.propertyValue.type));
3982
+ o.value = B(S.value.find((h) => h.id === t.value.propertyValue.type));
3983
+ }
3984
+ function D() {
3985
+ M(), o.value.id === "variable" && t.value.propertyValue.value === void 0 && (t.value.propertyValue = B(P.value.variableValue)), P.value[`${o.value.id}Value`] = B(t.value.propertyValue), F();
3965
3986
  }
3966
- function j() {
3967
- M(), o.value.id === "variable" && t.value.propertyValue.value === void 0 && (t.value.propertyValue = F(P.value.variableValue)), P.value[`${o.value.id}Value`] = F(t.value.propertyValue), T();
3987
+ function re(h) {
3988
+ o.value = B(S.value.find((j) => j.label === h[0].label)), o.value.id === "expression" && (P.value.expressionValue.value && (r.value = P.value.expressionValue.value.value), v.value = !0), o.value.id === "custom" && $t(), A();
3968
3989
  }
3969
- function re(m) {
3970
- o.value = F(C.value.find((I) => I.label === m[0].label)), o.value.id === "expression" && (P.value.expressionValue.value && (r.value = P.value.expressionValue.value.value), v.value = !0), o.value.id === "custom" && Lt(), k();
3990
+ function pe(h) {
3991
+ g.value = B(h.value), t.value.propertyValue.value = B(h.value), P.value.constValue.value = B(h.value), A();
3971
3992
  }
3972
- function pe(m) {
3973
- b.value = F(m.value), t.value.propertyValue.value = F(m.value), P.value.constValue.value = F(m.value), k();
3993
+ function Ft(h) {
3994
+ P.value.constValue.value = h, A();
3974
3995
  }
3975
- function Mt(m) {
3976
- P.value.constValue.value = m, k();
3996
+ function Mt(h) {
3997
+ P.value.constValue.value = h, A();
3977
3998
  }
3978
- function kt(m) {
3979
- P.value.constValue.value = m, k();
3999
+ function kt() {
4000
+ const h = t.value.propertyName, j = h[0].toUpperCase() + h.substr(1), U = t.value.controlName, Ie = t.value.editorOptions.newVariablePrefix || "", Xt = Ie ? U[0].toUpperCase() + U.substr(1) : U[0].toLowerCase() + U.substr(1);
4001
+ u = `${Ie}${Xt}${j}`, Et();
3980
4002
  }
3981
4003
  function Et() {
3982
- const m = t.value.propertyName, I = m[0].toUpperCase() + m.substr(1), U = t.value.controlName, Ie = t.value.editorOptions.newVariablePrefix || "", Kt = Ie ? U[0].toUpperCase() + U.substr(1) : U[0].toLowerCase() + U.substr(1);
3983
- u = `${Ie}${Kt}${I}`, At();
4004
+ At(), o.value.id === "variable" && (k.value = t.value.propertyValue.value.path), Ne(), i.value !== t.value.propertyValue.value.path && A();
3984
4005
  }
3985
4006
  function At() {
3986
- Pt(), o.value.id === "variable" && (E.value = t.value.propertyValue.value.path), Ne(), i.value !== t.value.propertyValue.value.path && k();
4007
+ var j;
4008
+ let h = 0;
4009
+ (j = t.value.editorOptions.variables) == null || j.forEach((U) => {
4010
+ U.path !== u ? h += 1 : (i.value = t.value.propertyValue.value.path, t.value.propertyValue.value = B(U), P.value.variableValue.value = B(U));
4011
+ }), Pt(h);
3987
4012
  }
3988
- function Pt() {
3989
- var I;
3990
- let m = 0;
3991
- (I = t.value.editorOptions.variables) == null || I.forEach((U) => {
3992
- U.path !== u ? m += 1 : (i.value = t.value.propertyValue.value.path, t.value.propertyValue.value = F(U), P.value.variableValue.value = F(U));
3993
- }), Nt(m);
4013
+ function Pt(h) {
4014
+ var j;
4015
+ h === ((j = t.value.editorOptions.variables) == null ? void 0 : j.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = u, t.value.propertyValue.value.field = s, t.value.propertyValue.value.fullPath = u, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, _.value.isNewVariable = !0, t.value.editorOptions.variables.push(B(t.value.propertyValue.value)), P.value.variableValue.value = B(t.value.propertyValue.value));
3994
4016
  }
3995
- function Nt(m) {
3996
- var I;
3997
- m === ((I = t.value.editorOptions.variables) == null ? void 0 : I.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = u, t.value.propertyValue.value.field = c, t.value.propertyValue.value.fullPath = u, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, _.value.isNewVariable = !0, t.value.editorOptions.variables.push(F(t.value.propertyValue.value)), P.value.variableValue.value = F(t.value.propertyValue.value));
4017
+ function Nt(h) {
4018
+ !h || !h.selections || h.selections.length < 1 || (P.value.variableValue.value.category = B(h.selections[0].category), P.value.variableValue.value.path = B(h.selections[0].path), P.value.variableValue.value.fullPath = B(h.selections[0].fullPath), P.value.variableValue.value.field = B(h.selections[0].field), k.value = B(h.value), A());
3998
4019
  }
3999
- function Ot(m) {
4000
- !m || !m.selections || m.selections.length < 1 || (P.value.variableValue.value.category = F(m.selections[0].category), P.value.variableValue.value.path = F(m.selections[0].path), P.value.variableValue.value.fullPath = F(m.selections[0].fullPath), P.value.variableValue.value.field = F(m.selections[0].field), E.value = F(m.value), k());
4001
- }
4002
- function It() {
4003
- t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "", o.value.id === "variable" && (E.value = t.value.propertyValue.value.path), k();
4020
+ function Ot() {
4021
+ t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "", o.value.id === "variable" && (k.value = t.value.propertyValue.value.path), A();
4004
4022
  }
4005
4023
  function Ne() {
4006
- p.value = F(t.value.editorOptions.variables);
4024
+ d.value = B(t.value.editorOptions.variables);
4007
4025
  }
4008
- const jt = (m) => {
4009
- const I = t.value.editorOptions.getVariables, U = {
4026
+ const It = (h) => {
4027
+ const j = t.value.editorOptions.getVariables, U = {
4010
4028
  showDialog: !0
4011
4029
  };
4012
- return I && (p.value = I(), m && (m.data = p)), So(U);
4030
+ return j && (d.value = j(), h && (h.data = d)), xo(U);
4013
4031
  };
4014
- function Dt(m) {
4015
- const I = {
4016
- id: m[0].id,
4017
- name: m[0].exist,
4018
- exist: m[0].name
4032
+ function jt(h) {
4033
+ const j = {
4034
+ id: h[0].id,
4035
+ name: h[0].exist,
4036
+ exist: h[0].name
4019
4037
  };
4020
- P.value.stateMachineValue.value = F(I), s.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", d = F(I.id), k();
4038
+ P.value.stateMachineValue.value = B(j), p.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", c = B(j.id), A();
4021
4039
  }
4022
- function $t() {
4023
- f.value = F(t.value.editorOptions.stateMachine), s.value = P.value.stateMachineValue.value.exist === "是" ? "是" : "否";
4040
+ function Dt() {
4041
+ f.value = B(t.value.editorOptions.stateMachine), p.value = P.value.stateMachineValue.value.exist === "是" ? "是" : "否";
4024
4042
  }
4025
- const Oe = new vt();
4026
- function Lt() {
4027
- Oe.pipe(wo(700)).subscribe((m) => {
4028
- P.value.customValue.value = m, k();
4043
+ const Oe = new ft();
4044
+ function $t() {
4045
+ Oe.pipe(Vo(700)).subscribe((h) => {
4046
+ P.value.customValue.value = h, A();
4029
4047
  });
4030
4048
  }
4031
- function Ut(m) {
4032
- Oe.next(m);
4049
+ function Lt(h) {
4050
+ Oe.next(h);
4033
4051
  }
4034
- function _t() {
4052
+ function Ut() {
4035
4053
  }
4036
- function Rt(m) {
4037
- t.value.propertyValue.value = F(m), P.value.dataStatesValue.value = F(m);
4038
- const I = m.map((U) => U.valueField).join(",");
4039
- w.value = F(I), k();
4054
+ function _t(h) {
4055
+ t.value.propertyValue.value = B(h), P.value.dataStatesValue.value = B(h);
4056
+ const j = h.map((U) => U.valueField).join(",");
4057
+ C.value = B(j), A();
4040
4058
  }
4041
- function Gt() {
4042
- return g("div", {
4059
+ function Rt() {
4060
+ return w("div", {
4043
4061
  class: "f-page-single-property-editor-component-right-variable"
4044
- }, [g(G, {
4062
+ }, [w(G, {
4045
4063
  class: [{
4046
4064
  "form-control-select-show": l.value
4047
4065
  }, {
4048
4066
  "form-control-select-hide": !l.value
4049
4067
  }],
4050
- modelValue: E.value,
4051
- "onUpdate:modelValue": (m) => E.value = m,
4068
+ modelValue: k.value,
4069
+ "onUpdate:modelValue": (h) => k.value = h,
4052
4070
  placeholder: "",
4053
4071
  viewType: "text",
4054
4072
  enableClear: !0,
4055
4073
  valueField: "path",
4056
4074
  textField: "fullPath",
4057
- data: p.value,
4058
- beforeShow: jt,
4059
- readonly: S.value,
4075
+ data: d.value,
4076
+ beforeShow: It,
4077
+ readonly: b.value,
4060
4078
  editable: !1,
4061
- onValueChange: (m) => Ot(m),
4062
- onClear: It
4063
- }, null), l.value ? g("div", {
4079
+ onValueChange: (h) => Nt(h),
4080
+ onClear: Ot
4081
+ }, null), l.value ? w("div", {
4064
4082
  class: "f-page-single-property-editor-component-variable-button"
4065
- }, [g("button", {
4083
+ }, [w("button", {
4066
4084
  title: "variable-button",
4067
4085
  class: "f-variable-button",
4068
- onClick: Et
4069
- }, [g("span", {
4086
+ onClick: kt
4087
+ }, [w("span", {
4070
4088
  class: "f-icon f-icon-add",
4071
4089
  style: "margin:unset;"
4072
4090
  }, null)])]) : ""]);
4073
4091
  }
4074
- function Ht() {
4075
- return g("div", {
4092
+ function Gt() {
4093
+ return w("div", {
4076
4094
  class: "f-page-single-property-editor-component-right-customize"
4077
- }, [me(g("input", {
4095
+ }, [me(w("input", {
4078
4096
  class: "form-control",
4079
4097
  placeholder: "输入自定义内容",
4080
- "onUpdate:modelValue": (m) => P.value.customValue.value = m,
4081
- onChange: (m) => Ut(m.target.value),
4082
- disabled: S.value
4098
+ "onUpdate:modelValue": (h) => P.value.customValue.value = h,
4099
+ onChange: (h) => Lt(h.target.value),
4100
+ disabled: b.value
4083
4101
  }, null), [[De, P.value.customValue.value]])]);
4084
4102
  }
4085
- function qt() {
4086
- return g("div", {
4103
+ function Ht() {
4104
+ return w("div", {
4087
4105
  class: "f-page-single-property-editor-component-right-expression"
4088
- }, [g(ee, {
4106
+ }, [w(ee, {
4089
4107
  editable: !1,
4090
4108
  enableClear: !1,
4091
- readonly: S.value,
4092
- groupText: h.value,
4109
+ readonly: b.value,
4110
+ groupText: m.value,
4093
4111
  modelValue: r.value,
4094
- "onUpdate:modelValue": (m) => r.value = m,
4095
- onClickHandle: _t
4112
+ "onUpdate:modelValue": (h) => r.value = h,
4113
+ onClickHandle: Ut
4096
4114
  }, null)]);
4097
4115
  }
4098
- function Wt() {
4099
- return g("div", {
4116
+ function qt() {
4117
+ return w("div", {
4100
4118
  class: "f-page-single-property-editor-component-right-stateMachine"
4101
- }, [g("div", {
4119
+ }, [w("div", {
4102
4120
  class: "f-stateMachine-exist",
4103
- onClick: L
4104
- }, [s.value]), g("div", {
4121
+ onClick: N
4122
+ }, [p.value]), w("div", {
4105
4123
  class: "f-stateMachine-combo",
4106
4124
  style: "border:unset"
4107
- }, [g(G, {
4108
- modelValue: d,
4109
- "onUpdate:modelValue": (m) => d = m,
4125
+ }, [w(G, {
4126
+ modelValue: c,
4127
+ "onUpdate:modelValue": (h) => c = h,
4110
4128
  placeholder: "",
4111
4129
  viewType: "text",
4112
4130
  enableClear: !1,
@@ -4114,18 +4132,18 @@ const ye = /* @__PURE__ */ q({
4114
4132
  textField: "name",
4115
4133
  data: f.value,
4116
4134
  editable: !1,
4117
- readonly: S.value,
4118
- onChange: (m) => {
4119
- Dt(m);
4135
+ readonly: b.value,
4136
+ onChange: (h) => {
4137
+ jt(h);
4120
4138
  }
4121
4139
  }, null)])]);
4122
4140
  }
4123
- function zt() {
4124
- return g("div", {
4141
+ function Wt() {
4142
+ return w("div", {
4125
4143
  class: "f-page-single-property-editor-component-right-dataStates"
4126
- }, [g(G, {
4127
- modelValue: w.value,
4128
- "onUpdate:modelValue": (m) => w.value = m,
4144
+ }, [w(G, {
4145
+ modelValue: C.value,
4146
+ "onUpdate:modelValue": (h) => C.value = h,
4129
4147
  placeholder: "",
4130
4148
  viewType: "text",
4131
4149
  enableClear: !1,
@@ -4134,27 +4152,27 @@ const ye = /* @__PURE__ */ q({
4134
4152
  valueField: "valueField",
4135
4153
  textField: "textField",
4136
4154
  titleField: "titleField",
4137
- data: B.value,
4155
+ data: T.value,
4138
4156
  editable: !1,
4139
- readonly: S.value,
4140
- onChange: (m) => Rt(m)
4157
+ readonly: b.value,
4158
+ onChange: (h) => _t(h)
4141
4159
  }, null)]);
4142
4160
  }
4143
- function Yt() {
4144
- return me(g("input", {
4161
+ function zt() {
4162
+ return me(w("input", {
4145
4163
  class: "form-control",
4146
- "onUpdate:modelValue": (m) => P.value.constValue.value = m,
4147
- onChange: (m) => {
4148
- kt(m);
4164
+ "onUpdate:modelValue": (h) => P.value.constValue.value = h,
4165
+ onChange: (h) => {
4166
+ Mt(h);
4149
4167
  },
4150
- disabled: S.value,
4168
+ disabled: b.value,
4151
4169
  placeholder: "输入自定义内容"
4152
4170
  }, null), [[De, P.value.constValue.value]]);
4153
4171
  }
4154
- function Zt() {
4155
- return g(G, {
4156
- modelValue: b.value,
4157
- "onUpdate:modelValue": (m) => b.value = m,
4172
+ function Yt() {
4173
+ return w(G, {
4174
+ modelValue: g.value,
4175
+ "onUpdate:modelValue": (h) => g.value = h,
4158
4176
  placeholder: "",
4159
4177
  viewType: "text",
4160
4178
  enableClear: !1,
@@ -4162,62 +4180,62 @@ const ye = /* @__PURE__ */ q({
4162
4180
  textField: "value",
4163
4181
  data: a.value,
4164
4182
  editable: !1,
4165
- readonly: S.value,
4166
- onValueChange: (m) => pe(m)
4183
+ readonly: b.value,
4184
+ onValueChange: (h) => pe(h)
4167
4185
  }, null);
4168
4186
  }
4169
- function Jt() {
4170
- return g(te, {
4187
+ function Zt() {
4188
+ return w(te, {
4171
4189
  canNull: !0,
4172
- readonly: S.value,
4173
- modelValue: A.value,
4174
- "onUpdate:modelValue": (m) => A.value = m,
4175
- onValueChange: (m) => {
4176
- Mt(m);
4190
+ readonly: b.value,
4191
+ modelValue: E.value,
4192
+ "onUpdate:modelValue": (h) => E.value = h,
4193
+ onValueChange: (h) => {
4194
+ Ft(h);
4177
4195
  },
4178
4196
  class: "f-page-single-property-editor-component-const-number"
4179
4197
  }, null);
4180
4198
  }
4181
- function Qt() {
4182
- return g("div", {
4199
+ function Jt() {
4200
+ return w("div", {
4183
4201
  class: "f-page-single-property-editor-component-left-controller"
4184
- }, [g(G, {
4202
+ }, [w(G, {
4185
4203
  modelValue: o.value.id,
4186
- "onUpdate:modelValue": (m) => o.value.id = m,
4204
+ "onUpdate:modelValue": (h) => o.value.id = h,
4187
4205
  placeholder: "",
4188
4206
  enableClear: !1,
4189
4207
  valueField: "id",
4190
4208
  textField: "label",
4191
- data: C.value,
4209
+ data: S.value,
4192
4210
  editable: !1,
4193
- readonly: S.value,
4194
- onChange: (m) => re(m)
4211
+ readonly: b.value,
4212
+ onChange: (h) => re(h)
4195
4213
  }, null)]);
4196
4214
  }
4197
- function Xt() {
4198
- return g("div", {
4215
+ function Qt() {
4216
+ return w("div", {
4199
4217
  class: "f-page-single-property-editor-component-right-controller"
4200
- }, [o.value.id === "const" ? g("div", {
4218
+ }, [o.value.id === "const" ? w("div", {
4201
4219
  class: "f-page-single-property-editor-component-right-const"
4202
- }, [t.value.propertyType === "string" ? Yt() : "", t.value.propertyType === "enum" ? Zt() : "", t.value.propertyType === "number" ? Jt() : ""]) : "", o.value.id === "variable" ? Gt() : "", o.value.id === "custom" ? Ht() : "", o.value.id === "expression" && v.value ? qt() : "", o.value.id === "stateMachine" ? Wt() : "", o.value.id === "dataStates" ? zt() : ""]);
4220
+ }, [t.value.propertyType === "string" ? zt() : "", t.value.propertyType === "enum" ? Yt() : "", t.value.propertyType === "number" ? Zt() : ""]) : "", o.value.id === "variable" ? Rt() : "", o.value.id === "custom" ? Gt() : "", o.value.id === "expression" && v.value ? Ht() : "", o.value.id === "stateMachine" ? qt() : "", o.value.id === "dataStates" ? Wt() : ""]);
4203
4221
  }
4204
4222
  return H(() => {
4205
- K(), j(), Ne(), $t(), t.value.hasPrefix && t.value.hasPrefix === 2 && (Y.value = !0), t.value.controlName !== void 0 && (l.value = !0);
4206
- }), () => g(he, null, [g("div", {
4223
+ K(), D(), Ne(), Dt(), t.value.hasPrefix && t.value.hasPrefix === 2 && (q.value = !0), t.value.controlName !== void 0 && (l.value = !0);
4224
+ }), () => w(he, null, [w("div", {
4207
4225
  class: "f-page-single-property-editor-component clearfix"
4208
- }, [Qt(), Xt()])]);
4226
+ }, [Jt(), Qt()])]);
4209
4227
  }
4210
- }), Ao = {
4228
+ }), Io = {
4211
4229
  install(e) {
4212
4230
  e.component(ye.name, ye);
4213
4231
  },
4214
4232
  register(e, n, t, r) {
4215
- e["property-editor"] = ye, n["property-editor"] = Pn;
4233
+ e["property-editor"] = ye, n["property-editor"] = Nn;
4216
4234
  }
4217
4235
  };
4218
4236
  export {
4219
- Ao as default,
4237
+ Io as default,
4220
4238
  ye as propertyEditor,
4221
- Ye as propertyEditorProps,
4222
- Pn as propsResolver
4239
+ ze as propertyEditorProps,
4240
+ Nn as propsResolver
4223
4241
  };