@farris/ui-vue 1.2.6 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/components/accordion/index.esm.js +150 -142
  2. package/components/avatar/index.esm.js +393 -457
  3. package/components/border-editor/index.esm.js +4 -4
  4. package/components/button/index.esm.js +1 -1
  5. package/components/button-edit/index.esm.js +353 -444
  6. package/components/button-group/index.esm.js +5 -5
  7. package/components/calendar/index.esm.js +176 -176
  8. package/components/capsule/index.esm.js +93 -93
  9. package/components/checkbox/index.esm.js +491 -554
  10. package/components/color-picker/index.esm.js +1 -1
  11. package/components/combo-list/index.esm.js +479 -513
  12. package/components/combo-tree/index.esm.js +8 -8
  13. package/components/component/index.esm.js +89 -89
  14. package/components/condition/index.esm.js +857 -743
  15. package/components/content-container/index.esm.js +61 -61
  16. package/components/data-grid/index.esm.js +4883 -5182
  17. package/components/data-view/index.esm.js +3072 -2949
  18. package/components/date-picker/index.esm.js +2626 -2689
  19. package/components/dependent-base/style.js +1 -0
  20. package/components/dependent-fluid/style.js +1 -0
  21. package/components/dependent-icon/style.js +1 -0
  22. package/components/dependent-input/style.js +1 -0
  23. package/components/dependent-table/style.js +1 -0
  24. package/components/designer-canvas/index.esm.js +478 -475
  25. package/components/designer-outline/index.esm.js +173 -131
  26. package/components/discussion-editor/index.esm.js +1 -1
  27. package/components/dropdown/index.esm.js +73 -73
  28. package/components/dynamic-form/index.esm.js +940 -998
  29. package/components/dynamic-resolver/index.esm.js +67 -35
  30. package/components/dynamic-view/index.esm.js +307 -293
  31. package/components/enum-editor/index.esm.js +3 -3
  32. package/components/events-editor/index.esm.js +178 -178
  33. package/components/expression-editor/index.esm.js +105 -105
  34. package/components/external-container/index.esm.js +1747 -1627
  35. package/components/field-selector/index.css +1 -1
  36. package/components/field-selector/index.esm.js +5877 -6176
  37. package/components/filter-bar/index.css +1 -1
  38. package/components/filter-bar/index.esm.js +1454 -1524
  39. package/components/flow-canvas/index.esm.js +678 -675
  40. package/components/image-cropper/index.esm.js +266 -266
  41. package/components/input-group/index.esm.js +659 -722
  42. package/components/layout/index.esm.js +148 -148
  43. package/components/list-nav/index.esm.js +109 -109
  44. package/components/list-view/index.esm.js +1643 -1524
  45. package/components/lookup/index.css +1 -1
  46. package/components/lookup/index.esm.js +6502 -6770
  47. package/components/mapping-editor/index.esm.js +5639 -5939
  48. package/components/message-box/index.esm.js +1 -1
  49. package/components/modal/index.esm.js +1 -1
  50. package/components/nav/index.esm.js +86 -86
  51. package/components/number-range/index.esm.js +1120 -0
  52. package/components/number-range/package.json +8 -0
  53. package/components/number-range/style.js +6 -0
  54. package/components/number-spinner/index.esm.js +1146 -0
  55. package/components/number-spinner/package.json +8 -0
  56. package/components/number-spinner/style.js +4 -0
  57. package/components/order/index.esm.js +1098 -1130
  58. package/components/page-footer/index.esm.js +106 -106
  59. package/components/page-header/index.esm.js +1088 -1317
  60. package/components/pagination/index.esm.js +252 -252
  61. package/components/progress/index.esm.js +37 -37
  62. package/components/property-editor/index.esm.js +1479 -1513
  63. package/components/property-panel/index.css +1 -1
  64. package/components/property-panel/index.esm.js +706 -778
  65. package/components/query-solution/index.css +1 -0
  66. package/components/query-solution/index.esm.js +6935 -0
  67. package/components/query-solution/package.json +8 -0
  68. package/components/query-solution/style.js +2 -0
  69. package/components/radio-button/index.esm.js +64 -64
  70. package/components/radio-group/index.esm.js +453 -516
  71. package/components/rate/index.esm.js +92 -92
  72. package/components/response-layout/index.esm.js +33 -33
  73. package/components/response-layout-editor/index.esm.js +555 -526
  74. package/components/response-toolbar/index.esm.js +1009 -1247
  75. package/components/schema-selector/index.esm.js +3261 -3373
  76. package/components/search-box/index.esm.js +143 -143
  77. package/components/section/index.esm.js +209 -209
  78. package/components/smoke-detector/index.esm.js +22 -22
  79. package/components/spacing-editor/index.esm.js +2 -2
  80. package/components/splitter/index.esm.js +1097 -394
  81. package/components/step/index.esm.js +153 -153
  82. package/components/switch/index.esm.js +441 -504
  83. package/components/tabs/index.esm.js +1849 -2039
  84. package/components/tags/index.esm.js +215 -215
  85. package/components/text/index.esm.js +53 -53
  86. package/components/textarea/index.esm.js +445 -493
  87. package/components/time-picker/index.esm.js +1350 -1414
  88. package/components/transfer/index.esm.js +146 -144
  89. package/components/tree-grid/index.css +1 -1
  90. package/components/tree-grid/index.esm.js +5948 -6237
  91. package/components/tree-view/index.esm.js +2381 -2255
  92. package/components/uploader/index.esm.js +1 -1
  93. package/components/verify-detail/index.esm.js +232 -232
  94. package/components/video/index.esm.js +136 -136
  95. package/components/weather/index.esm.js +2 -2
  96. package/farris.all.esm.js +27221 -26804
  97. package/farris.all.umd.cjs +9 -9
  98. package/index.css +1 -1
  99. package/package.json +1 -1
  100. package/types/checkbox/index.d.ts +1 -0
  101. package/types/combo-list/src/components/list-container.component.d.ts +6 -0
  102. package/types/combo-list/src/components/list-container.props.d.ts +9 -1
  103. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  104. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  105. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  106. package/types/data-view/composition/types.d.ts +1 -1
  107. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  108. package/types/designer-canvas/src/types.d.ts +1 -1
  109. package/types/dynamic-form/index.d.ts +1 -0
  110. package/types/dynamic-form/src/types.d.ts +1 -1
  111. package/types/dynamic-resolver/index.d.ts +1 -0
  112. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  113. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  114. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
  115. package/types/lookup/src/property-config/lookup.property-config.d.ts +4 -3
  116. package/types/modal/src/modal.props.d.ts +1 -4
  117. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -28
  118. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -5
  119. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  120. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  121. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  122. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  123. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  124. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  125. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
  126. package/components/accordion/index.umd.cjs +0 -1
  127. package/components/avatar/index.umd.cjs +0 -1
  128. package/components/border-editor/index.umd.cjs +0 -1
  129. package/components/button/index.umd.cjs +0 -1
  130. package/components/button-edit/index.umd.cjs +0 -1
  131. package/components/button-group/index.umd.cjs +0 -1
  132. package/components/calculator/index.umd.cjs +0 -1
  133. package/components/calendar/index.umd.cjs +0 -1
  134. package/components/capsule/index.umd.cjs +0 -1
  135. package/components/checkbox/index.umd.cjs +0 -1
  136. package/components/color-picker/index.umd.cjs +0 -3
  137. package/components/combo-list/index.umd.cjs +0 -1
  138. package/components/combo-tree/index.umd.cjs +0 -1
  139. package/components/common/index.umd.cjs +0 -1
  140. package/components/component/index.umd.cjs +0 -1
  141. package/components/condition/index.umd.cjs +0 -1
  142. package/components/content-container/index.umd.cjs +0 -1
  143. package/components/data-grid/index.umd.cjs +0 -1
  144. package/components/data-view/index.umd.cjs +0 -1
  145. package/components/date-picker/index.umd.cjs +0 -1
  146. package/components/designer-canvas/index.umd.cjs +0 -1
  147. package/components/designer-outline/index.umd.cjs +0 -1
  148. package/components/designer-toolbox/index.umd.cjs +0 -1
  149. package/components/discussion-editor/index.umd.cjs +0 -3
  150. package/components/discussion-list/index.umd.cjs +0 -1
  151. package/components/drawer/index.umd.cjs +0 -1
  152. package/components/dropdown/index.umd.cjs +0 -2
  153. package/components/dynamic-form/index.umd.cjs +0 -1
  154. package/components/dynamic-resolver/index.umd.cjs +0 -1
  155. package/components/dynamic-view/index.umd.cjs +0 -1
  156. package/components/enum-editor/index.umd.cjs +0 -1
  157. package/components/events-editor/index.umd.cjs +0 -1
  158. package/components/expression-editor/index.umd.cjs +0 -1
  159. package/components/external-container/index.umd.cjs +0 -1
  160. package/components/field-selector/index.umd.cjs +0 -1
  161. package/components/filter-bar/index.umd.cjs +0 -1
  162. package/components/flow-canvas/index.umd.cjs +0 -1
  163. package/components/image-cropper/index.umd.cjs +0 -1
  164. package/components/input-group/index.umd.cjs +0 -1
  165. package/components/layout/index.umd.cjs +0 -1
  166. package/components/list-nav/index.umd.cjs +0 -1
  167. package/components/list-view/index.umd.cjs +0 -1
  168. package/components/loading/index.umd.cjs +0 -8
  169. package/components/locale/index.umd.cjs +0 -1
  170. package/components/lookup/index.umd.cjs +0 -1
  171. package/components/mapping-editor/index.umd.cjs +0 -1
  172. package/components/message-box/index.umd.cjs +0 -1
  173. package/components/modal/index.umd.cjs +0 -1
  174. package/components/nav/index.umd.cjs +0 -3
  175. package/components/notify/index.umd.cjs +0 -1
  176. package/components/order/index.umd.cjs +0 -1
  177. package/components/page-footer/index.umd.cjs +0 -1
  178. package/components/page-header/index.umd.cjs +0 -1
  179. package/components/pagination/index.umd.cjs +0 -1
  180. package/components/popover/index.umd.cjs +0 -1
  181. package/components/progress/index.umd.cjs +0 -3
  182. package/components/property-editor/index.umd.cjs +0 -3
  183. package/components/property-panel/index.umd.cjs +0 -1
  184. package/components/radio-button/index.umd.cjs +0 -1
  185. package/components/radio-group/index.umd.cjs +0 -1
  186. package/components/rate/index.umd.cjs +0 -1
  187. package/components/response-layout/index.umd.cjs +0 -1
  188. package/components/response-layout-editor/index.umd.cjs +0 -1
  189. package/components/response-toolbar/index.umd.cjs +0 -1
  190. package/components/schema-selector/index.umd.cjs +0 -8
  191. package/components/search-box/index.umd.cjs +0 -1
  192. package/components/section/index.umd.cjs +0 -1
  193. package/components/smoke-detector/index.umd.cjs +0 -1
  194. package/components/spacing-editor/index.umd.cjs +0 -1
  195. package/components/splitter/index.umd.cjs +0 -1
  196. package/components/step/index.umd.cjs +0 -1
  197. package/components/switch/index.umd.cjs +0 -1
  198. package/components/tabs/index.umd.cjs +0 -1
  199. package/components/tags/index.umd.cjs +0 -1
  200. package/components/text/index.umd.cjs +0 -1
  201. package/components/textarea/index.umd.cjs +0 -1
  202. package/components/time-picker/index.umd.cjs +0 -1
  203. package/components/tooltip/index.umd.cjs +0 -1
  204. package/components/transfer/index.umd.cjs +0 -1
  205. package/components/tree-grid/index.umd.cjs +0 -1
  206. package/components/tree-view/index.umd.cjs +0 -1
  207. package/components/uploader/index.umd.cjs +0 -2
  208. package/components/verify-detail/index.umd.cjs +0 -1
  209. package/components/video/index.umd.cjs +0 -1
  210. package/components/weather/index.umd.cjs +0 -16
@@ -1,111 +1,110 @@
1
- var Kt = Object.defineProperty;
2
- var Jt = (e, n, t) => n in e ? Kt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var L = (e, n, t) => Jt(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { ref as y, defineComponent as q, watch as I, computed as V, createVNode as S, inject as Z, onMounted as H, nextTick as Ne, reactive as en, withDirectives as ve, resolveDirective as tn, Fragment as me, vModelText as Oe } from "vue";
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
5
  import { cloneDeep as F } from "lodash-es";
6
- import nn from "@farris/ui-vue/components/list-view";
7
- import _e from "@farris/ui-vue/components/button-edit";
8
- import { useDesignerComponent as on } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-component";
9
- import j from "bignumber.js";
10
- import { useNumber as rn, useFormat as an, useSpinner as ln, useTextBox as un } from "@farris/ui-vue/components/number-spinner";
11
- const Ge = {}, He = {};
12
- function ge(e) {
13
- const { properties: n, title: t } = e, o = Object.keys(n).reduce((r, a) => (r[a] = n[a].type === "object" && n[a].properties ? ge(n[a]) : F(n[a].default), r), {});
14
- return o.id = `${t}-${Date.now()}`, o;
6
+ import on from "../list-view/index.esm.js";
7
+ import qe from "../button-edit/index.esm.js";
8
+ 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 = {};
13
+ 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
16
  }
16
- function ye(e, n = {}) {
17
- const t = Ge[e];
17
+ function be(e, n = {}) {
18
+ const t = We[e];
18
19
  if (t) {
19
- let o = ge(t);
20
- const r = He[e];
21
- return o = r ? r({ getSchemaByType: ye }, o, n) : o, o;
20
+ let r = we(t);
21
+ const o = ze[e];
22
+ return r = o ? o({ getSchemaByType: be }, r, n) : r, r;
22
23
  }
23
24
  return null;
24
25
  }
25
- function sn(e, n) {
26
- const t = ge(n);
27
- return Object.keys(e).reduce((o, r) => (o[r] = e[r], o), t), t;
26
+ function dn(e, n) {
27
+ const t = we(n);
28
+ 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;
28
29
  }
29
- function cn(e, n) {
30
- return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
31
- if (n.has(r)) {
32
- const a = n.get(r);
30
+ function pn(e, n) {
31
+ return Object.keys(e).filter((r) => e[r] != null).reduce((r, o) => {
32
+ if (n.has(o)) {
33
+ const a = n.get(o);
33
34
  if (typeof a == "string")
34
- o[a] = e[r];
35
+ r[a] = e[o];
35
36
  else {
36
- const l = a(r, e[r], e);
37
- Object.assign(o, l);
37
+ const l = a(o, e[o], e);
38
+ Object.assign(r, l);
38
39
  }
39
40
  } else
40
- o[r] = e[r];
41
- return o;
41
+ r[o] = e[o];
42
+ return r;
42
43
  }, {});
43
44
  }
44
- function dn(e, n, t = /* @__PURE__ */ new Map()) {
45
- const o = sn(e, n);
46
- return cn(o, t);
45
+ function fn(e, n, t = /* @__PURE__ */ new Map()) {
46
+ const r = dn(e, n);
47
+ return pn(r, t);
47
48
  }
48
- function pn(e = {}) {
49
- function n(i, c, s, f) {
50
- if (typeof s == "number")
51
- return f[i].length === s;
52
- if (typeof s == "object") {
53
- const p = Object.keys(s)[0], v = s[p];
54
- if (p === "not")
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")
55
56
  return Number(f[i].length) !== Number(v);
56
- if (p === "moreThan")
57
+ if (s === "moreThan")
57
58
  return Number(f[i].length) >= Number(v);
58
- if (p === "lessThan")
59
+ if (s === "lessThan")
59
60
  return Number(f[i].length) <= Number(v);
60
61
  }
61
62
  return !1;
62
63
  }
63
- function t(i, c, s, f) {
64
- return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(s);
64
+ function t(i, p, d, f) {
65
+ return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(d);
65
66
  }
66
- const o = /* @__PURE__ */ new Map([
67
+ const r = /* @__PURE__ */ new Map([
67
68
  ["length", n],
68
69
  ["getProperty", t]
69
70
  ]);
70
- Object.keys(e).reduce((i, c) => (i.set(c, e[c]), i), o);
71
- function r(i, c) {
72
- const s = i;
73
- return typeof c == "number" ? [{ target: s, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: s, operator: "getProperty", param: i, value: !!c }] : typeof c == "object" ? Object.keys(c).map((f) => {
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) => {
74
75
  if (f === "length")
75
- return { target: s, operator: "length", param: null, value: c[f] };
76
- const p = f, v = c[f];
77
- return { target: s, operator: "getProperty", param: p, value: v };
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 };
78
79
  }) : [];
79
80
  }
80
81
  function a(i) {
81
- return Object.keys(i).reduce((s, f) => {
82
- const p = r(f, i[f]);
83
- return s.push(...p), s;
82
+ return Object.keys(i).reduce((d, f) => {
83
+ const s = o(f, i[f]);
84
+ return d.push(...s), d;
84
85
  }, []);
85
86
  }
86
- function l(i, c) {
87
- if (o.has(i.operator)) {
88
- const s = o.get(i.operator);
89
- return s && s(i.target, i.param, i.value, c) || !1;
87
+ function l(i, p) {
88
+ 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
91
  }
91
92
  return !1;
92
93
  }
93
- function u(i, c) {
94
- return a(i).reduce((p, v) => p && l(v, c), !0);
94
+ function u(i, p) {
95
+ return a(i).reduce((s, v) => s && l(v, p), !0);
95
96
  }
96
- function d(i, c) {
97
- const s = Object.keys(i), f = s.includes("allOf"), p = s.includes("anyOf"), v = f || p, x = (v ? i[v ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((E) => u(E, c));
98
- return f ? !x.includes(!1) : x.includes(!0);
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);
99
100
  }
100
- return { parseValueSchema: d };
101
+ return { parseValueSchema: c };
101
102
  }
102
- const g = {
103
- Button: { type: "Button", name: "按钮", icon: "Button" },
104
- ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
103
+ const V = {
104
+ button: { type: "button", name: "按钮", icon: "Button" },
105
105
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
106
- "response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
106
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
107
107
  "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
108
- DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
109
108
  "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
110
109
  textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
111
110
  lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
@@ -116,118 +115,47 @@ const g = {
116
115
  "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
117
116
  "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
118
117
  "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
119
- /** 暂时没用 */
120
- FlexLayout: { type: "FlexLayout", name: "弹性布局" },
121
- /** 暂时没用 */
122
- FlowLayout: { type: "FlowLayout", name: "流布局" },
123
- ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
124
- ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
118
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
119
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
120
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
125
121
  "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
126
- TreeGridField: { type: "TreeGridField", name: "树表格列" },
127
- FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
128
- Form: { type: "Form", name: "卡片面板", icon: "Form" },
129
- QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
122
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
130
123
  "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
131
124
  "data-grid-column": { type: "data-grid-column", name: "表格列" },
132
- Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
133
- Module: { type: "Module", name: "模块", icon: "Module" },
125
+ module: { type: "Module", name: "模块", icon: "Module" },
134
126
  component: { type: "component", name: "组件", icon: "Component" },
135
- ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
136
- Image: { type: "Image", name: "图像", icon: "Image" },
137
- ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
138
- HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
139
- ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
140
- RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
141
127
  tabs: { type: "tabs", name: "标签页", icon: "Tab" },
142
128
  "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
143
129
  "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
144
- Tag: { type: "Tag", name: "Tag", icon: "Tag" },
145
- Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
146
- HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
147
- ListView: { type: "ListView", name: "列表", icon: "ListView" },
148
- RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
149
- TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
150
- TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
130
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
151
131
  section: { type: "section", name: "分组面板", icon: "Section" },
152
- SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
153
- SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
154
- QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
155
- FormHeader: { type: "FormHeader", name: "翻页" },
156
- Splitter: { type: "Splitter", name: "分栏面板", icon: "Splitter" },
157
- SplitterPane: { type: "SplitterPane", name: "分栏面板项", dependentParentControl: "Splitter" },
158
- WizardDetail: { type: "WizardDetail", name: "向导详情页" },
159
- WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
160
- Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
161
- MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
162
- Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
163
- avatar: { type: "avatar", name: "头像", icon: "Avatar" },
164
- ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
165
- ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
166
- NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
167
- Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
168
- LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
169
- ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
170
- FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
171
- FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
172
- ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
173
- MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
174
- MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
175
- Footer: { type: "Footer", name: "页脚" },
176
- DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
177
- DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
178
- NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
179
- Tags: { type: "Tags", name: "标记组", icon: "Tags" },
180
- Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
132
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
133
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
134
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
135
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
136
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
137
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
181
138
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
182
- ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
183
- ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
184
- PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
185
- Table: { type: "Table", name: "表格", icon: "DataGrid" },
186
- LoopContainer: { type: "LoopContainer", name: "循环容器", icon: "ContentContainer" },
187
- FileUploadPreview: { type: "FileUploadPreview", name: "附件上传预览", icon: "FileUpload" },
188
- DynamicArea: { type: "DynamicArea", name: "动态区域", icon: "ContentContainer" },
189
- DynamicAreaItem: { type: "DynamicAreaItem", name: "动态区域项", icon: "ContentContainer" },
190
- TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
191
- HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
192
- ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
193
- HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
194
- ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
195
- OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
196
- AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
197
- EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
198
- OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
199
- CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
200
- ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
201
- AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
202
- /** 查询类 start */
203
- Charts: { type: "Charts", name: "图表", icon: "Charts" },
204
- QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
205
- SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
206
- QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
207
- QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
208
- /** 查询类 end */
209
- /** 审批类 start */
210
- ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
211
- ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
212
- /** 审批类 end */
213
- }, fn = {}, vn = {};
214
- pn();
215
- function ue(e, n, t = /* @__PURE__ */ new Map(), o = (l, u, d) => u, r = {}, a = (l) => l) {
216
- return Ge[n.title] = n, He[n.title] = o, fn[n.title] = r, vn[n.title] = a, (l = {}) => {
217
- const u = dn(l, n, t), d = Object.keys(e).reduce((i, c) => (i[c] = e[c].default, i), {});
218
- return Object.assign(d, u);
139
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
140
+ "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);
219
147
  };
220
148
  }
221
- function se(e, n) {
149
+ function de(e, n) {
222
150
  return { customClass: n.class, customStyle: n.style };
223
151
  }
224
- const mn = /* @__PURE__ */ new Map([
225
- ["appearance", se]
152
+ const hn = /* @__PURE__ */ new Map([
153
+ ["appearance", de]
226
154
  ]);
227
- function yn(e, n, t) {
155
+ function bn(e, n, t) {
228
156
  return n;
229
157
  }
230
- const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-design.gitee.io/property-editor.schema.json", gn = "property-editor", Sn = "A Farris Component", Cn = "object", wn = {
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 = {
231
159
  id: {
232
160
  description: "The unique identifier for property-editor",
233
161
  type: "string"
@@ -289,18 +217,18 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
289
217
  type: "boolean",
290
218
  default: !0
291
219
  }
292
- }, xn = [
220
+ }, Tn = [
293
221
  "id",
294
222
  "type"
295
- ], Vn = {
296
- $schema: hn,
297
- $id: bn,
298
- title: gn,
299
- description: Sn,
300
- type: Cn,
301
- properties: wn,
302
- required: xn
303
- }, Tn = "property-editor", Bn = "A Farris Component", Fn = "object", Mn = {
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 = {
304
232
  basic: {
305
233
  description: "Basic Infomation",
306
234
  title: "基本信息",
@@ -322,12 +250,12 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
322
250
  }
323
251
  }
324
252
  }
325
- }, Pn = {
326
- title: Tn,
327
- description: Bn,
328
- type: Fn,
329
- categories: Mn
330
- }, qe = {}, En = ue(qe, Vn, mn, yn, Pn), k = y({
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({
331
259
  /** 常量值 */
332
260
  constValue: {
333
261
  /** 值类型:常量(const), 变量(variable), 状态机(state), 自定义(custom) */
@@ -365,7 +293,7 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
365
293
  type: "dataStates",
366
294
  value: ""
367
295
  }
368
- }), An = y([
296
+ }), Nn = y([
369
297
  {
370
298
  id: "const",
371
299
  label: "常量"
@@ -390,7 +318,7 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
390
318
  id: "dataStates",
391
319
  label: "数据状态"
392
320
  }
393
- ]), kn = {
321
+ ]), On = {
394
322
  controlName: "userName",
395
323
  propertyName: "readonly",
396
324
  propertyType: "enum",
@@ -516,8 +444,8 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
516
444
  /** 状态机是否有前缀viewModel.stateMachine && */
517
445
  hasPrefix: 2
518
446
  }, In = /* @__PURE__ */ new Map([
519
- ["appearance", se]
520
- ]), Nn = "https://json-schema.org/draft/2020-12/schema", On = "https://farris-design.gitee.io/combo-list.schema.json", Dn = "combo-list", Ln = "A Farris Input Component", jn = "object", $n = {
447
+ ["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 = {
521
449
  id: {
522
450
  description: "The unique identifier for a combo list",
523
451
  type: "string"
@@ -628,22 +556,22 @@ const hn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-
628
556
  type: "sting",
629
557
  default: ""
630
558
  }
631
- }, Un = [
559
+ }, Rn = [
632
560
  "id",
633
561
  "type"
634
- ], Rn = {
635
- $schema: Nn,
636
- $id: On,
637
- title: Dn,
562
+ ], Gn = {
563
+ $schema: jn,
564
+ $id: Dn,
565
+ title: $n,
638
566
  description: Ln,
639
- type: jn,
640
- properties: $n,
641
- required: Un
567
+ type: Un,
568
+ properties: _n,
569
+ required: Rn
642
570
  };
643
- function _n(e, n, t) {
571
+ function Hn(e, n, t) {
644
572
  return n;
645
573
  }
646
- const Se = {
574
+ const Ce = {
647
575
  /**
648
576
  * 组件标识
649
577
  */
@@ -802,8 +730,14 @@ const Se = {
802
730
  /**
803
731
  * 打开前
804
732
  */
805
- beforeOpen: { type: Function, default: null }
806
- }, ze = ue(Se, Rn, In, _n), Gn = {
733
+ beforeOpen: { type: Function, default: null },
734
+ searchOption: {
735
+ type: Object,
736
+ default: !1
737
+ },
738
+ // 搜索启用高亮
739
+ enableHighlightSearch: { type: Boolean, default: !0 }
740
+ }, Ze = ce(Ce, Gn, In, Hn), qn = {
807
741
  dataSource: { type: Array, default: [] },
808
742
  enableSearch: { type: Boolean, default: !1 },
809
743
  idField: { type: String, default: "id" },
@@ -817,175 +751,198 @@ const Se = {
817
751
  valueField: { type: String, default: "id" },
818
752
  /** 值变化事件 */
819
753
  onSelectionChange: { type: Function, default: () => {
820
- } }
821
- }, Hn = /* @__PURE__ */ q({
754
+ } },
755
+ searchOption: {
756
+ type: Object,
757
+ default: !1
758
+ },
759
+ // 搜索启用高亮
760
+ enableHighlightSearch: { type: Boolean, default: !0 }
761
+ }, Wn = /* @__PURE__ */ q({
822
762
  name: "FComboListContainer",
823
- props: Gn,
763
+ props: qn,
824
764
  emits: ["selectionChange"],
825
765
  setup(e, n) {
826
- const t = y(e.dataSource), o = y([]), r = y(e.separator), a = y(e.width), l = y(e.maxHeight), u = y(String(e.selectedValues).split(r.value));
827
- I(e.dataSource, () => {
828
- t.value = e.dataSource;
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, () => {
768
+ r.value = e.dataSource;
829
769
  });
830
- const d = V(() => e.enableSearch ? "SearchBar" : "ContentHeader"), i = V(() => {
770
+ const i = x(() => e.enableSearch ? "SearchBar" : "ContentHeader"), p = x(() => {
831
771
  const s = {};
832
- return a.value !== void 0 && (s.width = `${a.value}px`), l.value !== void 0 && l.value > 0 && (s.maxHeight = `${l.value}px`), 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;
833
773
  });
834
- function c(s) {
835
- o.value = s.map((f) => Object.assign({}, f)), u.value = s.map((f) => f[e.idField]), n.emit("selectionChange", o.value);
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);
836
776
  }
837
- return I([() => e.selectedValues], ([s]) => {
838
- u.value = s.split(r.value);
839
- }), () => S("div", {
777
+ function f(s) {
778
+ if (e.enableHighlightSearch)
779
+ 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);
782
+ }
783
+ return N([() => e.selectedValues], ([s]) => {
784
+ c.value = s.split(a.value);
785
+ }), () => g("div", {
840
786
  class: "f-combo-list-container pl-3",
841
- style: i.value
842
- }, [S(nn, {
787
+ style: p.value
788
+ }, [g(on, {
789
+ ref: t,
843
790
  size: "small",
844
791
  itemClass: "f-combo-list-item",
845
- header: d.value,
792
+ header: i.value,
846
793
  headerClass: "f-combo-list-search-box",
847
- data: t.value,
794
+ data: r.value,
848
795
  idField: e.idField,
849
796
  textField: e.textField,
850
797
  titleField: e.titleField,
851
798
  multiSelect: e.multiSelect,
852
- multiSelectMode: "OnCheckAndClick",
853
- selectionValues: u.value,
854
- onSelectionChange: c
799
+ selection: {
800
+ enableSelectRow: !0,
801
+ multiSelect: !0,
802
+ multiSelectMode: "OnCheckAndClick",
803
+ showCheckbox: !0,
804
+ showSelectAll: !1,
805
+ showSelection: !0
806
+ },
807
+ enableHighlightSearch: e.enableHighlightSearch,
808
+ selectionValues: c.value,
809
+ onSelectionChange: d,
810
+ onAfterSearch: f
855
811
  }, null)]);
856
812
  }
857
813
  });
858
- function qn(e) {
859
- const n = y(""), t = y(e.modelValue), o = y(e.data || []), r = y(e.editable);
860
- function a(s) {
861
- const f = String(s).split(e.separator).map((v) => [v, !0]), p = new Map(f);
862
- return o.value.filter((v) => p.has(String(v[e.valueField])));
814
+ function zn(e) {
815
+ 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])));
863
819
  }
864
- function l(s) {
865
- const f = a(s).map((p) => p[e.textField]).join(e.separator);
866
- n.value = r.value ? f || s : f;
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;
867
823
  }
868
- function u(s) {
869
- const f = s.split(e.separator).map((v) => [v, !0]), p = new Map(f);
870
- return o.value.filter((v) => p.has(v[e.textField]));
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]));
871
827
  }
872
- function d(s) {
828
+ function c(d) {
873
829
  const f = {};
874
- return f[e.idField] = s, f[e.textField] = s, [f];
830
+ return f[e.idField] = d, f[e.textField] = d, [f];
875
831
  }
876
- function i(s) {
877
- let f = u(s);
878
- const p = f && f.length > 0;
879
- return r.value && !p && (f = d(s)), f;
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;
880
836
  }
881
- function c() {
882
- const { url: s, method: f = "GET", headers: p = {}, body: v = null } = e.remote, h = f.toLowerCase() == "get" ? { method: f, headers: p } : { method: f, headers: p, body: v };
883
- let C = !1;
884
- fetch(s, h).then((x) => {
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) => {
885
841
  var E, w;
886
- if (x.status === 200)
887
- return C = !!((w = (E = x.headers) == null ? void 0 : E.get("content-type")) != null && w.includes("application/json")), C ? x.text() : x.json();
888
- throw new Error(x.statusText);
889
- }).then((x) => {
890
- o.value = C ? JSON.parse(x) : x;
891
- }).catch((x) => {
892
- console.error(x);
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);
893
849
  });
894
850
  }
895
- return e.remote && c(), I(() => e.data, () => {
896
- o.value = e.data;
897
- }), I([o], ([s]) => {
851
+ return e.remote && p(), N(() => e.data, () => {
852
+ r.value = e.data;
853
+ }), N([r], ([d]) => {
898
854
  if (e.modelValue) {
899
- const f = s.find((p) => p[e.valueField] === e.modelValue);
855
+ const f = d.find((s) => s[e.valueField] === e.modelValue);
900
856
  f && (n.value = f[e.textField]);
901
857
  }
902
- }), I(() => e.modelValue, (s) => {
903
- t.value = s, l(s);
904
- }), l(e.modelValue), { dataSource: o, displayText: n, editable: r, modelValue: t, getItemsByDisplayText: u, getItemsByValue: a, getSelectedItemsByDisplayText: i };
858
+ }), N(() => e.modelValue, (d) => {
859
+ t.value = d, l(d);
860
+ }), l(e.modelValue), { dataSource: r, displayText: n, editable: o, modelValue: t, getItemsByDisplayText: u, getItemsByValue: a, getSelectedItemsByDisplayText: i };
905
861
  }
906
862
  const G = /* @__PURE__ */ q({
907
863
  name: "FComboList",
908
- props: Se,
864
+ props: Ce,
909
865
  emits: ["clear", "update:modelValue", "change", "input"],
910
866
  setup(e, n) {
911
- const t = y(), o = y(e.disabled), r = y(e.enableClear), a = y(e.enableSearch), l = y(e.readonly), {
867
+ const t = y(), r = y(e.disabled), o = y(e.enableClear), a = y(e.enableSearch), l = y(e.readonly), {
912
868
  dataSource: u,
913
- displayText: d,
869
+ displayText: c,
914
870
  editable: i,
915
- modelValue: c,
916
- getSelectedItemsByDisplayText: s
917
- } = qn(e), f = V(() => e.multiSelect), p = V(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
871
+ modelValue: p,
872
+ getSelectedItemsByDisplayText: d
873
+ } = zn(e), f = x(() => e.multiSelect), s = x(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
918
874
  function v() {
919
875
  !f.value && t.value && t.value.hidePopup();
920
876
  }
921
877
  function h(B) {
922
- d.value = B.map((b) => b[e.textField]).join(e.separator), B.length === 1 ? c.value = B[0][e.valueField] : c.value = B.map((b) => b[e.valueField]).join(e.separator), n.emit("update:modelValue", c.value), n.emit("change", B, c.value), v();
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();
923
879
  }
924
- function C() {
880
+ function S() {
925
881
  l.value || t.value.togglePopup();
926
882
  }
927
- function x(B) {
928
- c.value = "", n.emit("update:modelValue", ""), n.emit("clear");
883
+ function C(B) {
884
+ p.value = "", n.emit("update:modelValue", ""), n.emit("clear");
929
885
  }
930
886
  function A(B) {
931
- const b = s(B);
887
+ const b = d(B);
932
888
  h(b);
933
889
  }
934
890
  function E() {
935
- return d.value;
891
+ return c.value;
936
892
  }
937
893
  function w(B) {
938
894
  n.emit("input", B);
939
895
  }
940
896
  return n.expose({
941
897
  getDisplayText: E
942
- }), I([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([B, b, T, P, $]) => {
943
- o.value = B, i.value = b, r.value = T, a.value = P, l.value = $;
944
- }), () => S(_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, {
945
901
  ref: t,
946
902
  id: e.id,
947
- disable: o.value,
903
+ disable: r.value,
948
904
  readonly: l.value,
949
905
  forcePlaceholder: e.forcePlaceholder,
950
906
  editable: i.value,
951
907
  buttonContent: e.dropDownIcon,
952
908
  placeholder: e.placeholder,
953
- enableClear: r.value,
909
+ enableClear: o.value,
954
910
  maxLength: e.maxLength,
955
911
  tabIndex: e.tabIndex,
956
912
  enableTitle: e.enableTitle,
957
913
  multiSelect: e.multiSelect,
958
914
  inputType: e.multiSelect ? e.viewType : "text",
959
- modelValue: d.value,
960
- "onUpdate:modelValue": (B) => d.value = B,
915
+ modelValue: c.value,
916
+ "onUpdate:modelValue": (B) => c.value = B,
961
917
  focusOnCreated: e.focusOnCreated,
962
918
  selectOnCreated: e.selectOnCreated,
963
- onClear: x,
964
- onClick: C,
919
+ onClear: C,
920
+ onClick: S,
965
921
  onChange: A,
966
922
  onInput: w,
967
923
  beforeOpen: e.beforeOpen
968
924
  }, {
969
- default: () => [S(Hn, {
925
+ default: () => [g(Wn, {
970
926
  idField: e.idField,
971
927
  valueField: e.valueField,
972
928
  textField: e.textField,
973
929
  titleField: e.titleField,
974
930
  dataSource: u.value,
975
- selectedValues: c.value,
931
+ selectedValues: p.value,
976
932
  multiSelect: e.multiSelect,
977
933
  enableSearch: a.value,
978
934
  maxHeight: e.maxHeight,
979
- width: e.fitEditor ? p.value : void 0,
935
+ enableHighlightSearch: e.enableHighlightSearch,
936
+ width: e.fitEditor ? s.value : void 0,
980
937
  onSelectionChange: h
981
938
  }, null)]
982
939
  });
983
940
  }
984
941
  });
985
- function Ce(e, n) {
942
+ function xe(e, n) {
986
943
  e.schema;
987
- const t = y(!0), o = y(!0);
988
- function r(s) {
944
+ const t = y(!0), r = y(!0);
945
+ function o(d) {
989
946
  return !1;
990
947
  }
991
948
  function a() {
@@ -997,129 +954,191 @@ function Ce(e, n) {
997
954
  function u() {
998
955
  return !0;
999
956
  }
1000
- function d(s) {
957
+ function c(d) {
1001
958
  }
1002
959
  function i() {
1003
960
  }
1004
- function c(s) {
961
+ function p(d) {
1005
962
  return null;
1006
963
  }
1007
964
  return {
1008
- canAccepts: r,
965
+ canAccepts: o,
1009
966
  checkCanDeleteComponent: a,
1010
967
  checkCanMoveComponent: l,
1011
968
  hideNestedPaddingInDesginerView: u,
1012
- onAcceptMovedChildElement: d,
969
+ onAcceptMovedChildElement: c,
1013
970
  resolveComponentContext: i,
1014
971
  triggerBelongedComponentToMoveWhenMoved: t,
1015
- triggerBelongedComponentToDeleteWhenDeleted: o,
1016
- getPropsConfig: c
972
+ triggerBelongedComponentToDeleteWhenDeleted: r,
973
+ getPropsConfig: p
1017
974
  };
1018
975
  }
1019
- class We {
976
+ class Yn {
977
+ 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", {
990
+ type: "object",
991
+ categories: {}
992
+ });
993
+ var r;
994
+ this.componentId = n, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
995
+ }
996
+ getTableInfo() {
997
+ var n;
998
+ return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
999
+ }
1000
+ setDesignViewModelField(n) {
1001
+ const t = n.binding && n.binding.type === "Form" && n.binding.field;
1002
+ if (t) {
1003
+ if (!this.designViewModelField) {
1004
+ const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1005
+ this.designViewModelField = r.fields.find((o) => o.id === t);
1006
+ }
1007
+ n.updateOn = this.designViewModelField.updateOn;
1008
+ }
1009
+ }
1010
+ changeFieldEditorType(n, t) {
1011
+ }
1012
+ getBasicPropConfig(n) {
1013
+ return {
1014
+ description: "Basic Information",
1015
+ title: "基本信息",
1016
+ properties: {
1017
+ id: {
1018
+ description: "组件标识",
1019
+ title: "标识",
1020
+ type: "string",
1021
+ readonly: !0
1022
+ },
1023
+ type: {
1024
+ description: "组件类型",
1025
+ title: "控件类型",
1026
+ type: "select",
1027
+ editor: {
1028
+ type: "combo-list",
1029
+ textField: "name",
1030
+ valueField: "value",
1031
+ data: [{ value: n.type, name: V[n.type].name }]
1032
+ }
1033
+ }
1034
+ }
1035
+ };
1036
+ }
1037
+ getAppearanceConfig(n = null) {
1038
+ return {
1039
+ title: "样式",
1040
+ description: "Appearance",
1041
+ properties: {
1042
+ class: {
1043
+ title: "class样式",
1044
+ type: "string",
1045
+ description: "组件的CSS样式",
1046
+ $converter: "/converter/appearance.converter"
1047
+ },
1048
+ style: {
1049
+ title: "style样式",
1050
+ type: "string",
1051
+ description: "组件的样式",
1052
+ $converter: "/converter/appearance.converter"
1053
+ }
1054
+ }
1055
+ };
1056
+ }
1057
+ }
1058
+ const Z = class Z {
1059
+ /**
1060
+ * 根据绑定字段类型获取可用的输入类控件
1061
+ */
1020
1062
  static getEditorTypesByMDataType(n) {
1021
- const t = this.fieldControlTypeMapping[n];
1063
+ const t = Z.fieldControlTypeMapping[n];
1022
1064
  return t || [{ key: "", value: "" }];
1023
1065
  }
1024
- }
1066
+ /**
1067
+ * 获取所有输入类控件
1068
+ */
1069
+ static getAllInputTypes() {
1070
+ const n = [];
1071
+ for (let t in Z.fieldControlTypeMapping)
1072
+ Z.fieldControlTypeMapping[t].forEach((r) => {
1073
+ n.find((o) => o.key === r.key && o.value === r.value) || n.push({ key: r.key, value: r.value });
1074
+ });
1075
+ return n;
1076
+ }
1077
+ };
1025
1078
  /**
1026
1079
  * <字段类型,可配置的控件类型列表>的映射
1027
1080
  */
1028
- L(We, "fieldControlTypeMapping", {
1081
+ D(Z, "fieldControlTypeMapping", {
1029
1082
  String: [
1030
- { key: g["input-group"].type, value: g["input-group"].name },
1031
- { key: g.lookup.type, value: g.lookup.name },
1032
- { key: g.Image.type, value: g.Image.name },
1033
- { key: g["date-picker"].type, value: g["date-picker"].name },
1034
- { key: g["check-box"].type, value: g["check-box"].name },
1035
- { key: g["radio-group"].type, value: g["radio-group"].name },
1036
- { key: g["combo-list"].type, value: g["combo-list"].name },
1037
- { key: g.textarea.type, value: g.textarea.name }
1038
- // { key: DgControl.Tags.type, value: DgControl.Tags.name },
1083
+ { key: V["input-group"].type, value: V["input-group"].name },
1084
+ { key: V.lookup.type, value: V.lookup.name },
1085
+ { key: V["date-picker"].type, value: V["date-picker"].name },
1086
+ { key: V["check-box"].type, value: V["check-box"].name },
1087
+ { key: V["radio-group"].type, value: V["radio-group"].name },
1088
+ { key: V["combo-list"].type, value: V["combo-list"].name },
1089
+ { key: V.textarea.type, value: V.textarea.name }
1039
1090
  ],
1040
1091
  Text: [
1041
- { key: g.textarea.type, value: g.textarea.name },
1042
- { key: g.avatar.type, value: g.avatar.name },
1043
- { key: g.lookup.type, value: g.lookup.name }
1092
+ { key: V.textarea.type, value: V.textarea.name },
1093
+ { key: V.lookup.type, value: V.lookup.name }
1044
1094
  ],
1045
1095
  Decimal: [
1046
- { key: g["number-spinner"].type, value: g["number-spinner"].name }
1096
+ { key: V["number-spinner"].type, value: V["number-spinner"].name }
1047
1097
  ],
1048
1098
  Integer: [
1049
- { key: g["number-spinner"].type, value: g["number-spinner"].name }
1099
+ { key: V["number-spinner"].type, value: V["number-spinner"].name }
1050
1100
  ],
1051
1101
  Number: [
1052
- { key: g["number-spinner"].type, value: g["number-spinner"].name }
1102
+ { key: V["number-spinner"].type, value: V["number-spinner"].name }
1053
1103
  ],
1054
1104
  BigNumber: [
1055
- { key: g["number-spinner"].type, value: g["number-spinner"].name }
1105
+ { key: V["number-spinner"].type, value: V["number-spinner"].name }
1056
1106
  ],
1057
1107
  Date: [
1058
- { key: g["date-picker"].type, value: g["date-picker"].name }
1108
+ { key: V["date-picker"].type, value: V["date-picker"].name }
1059
1109
  ],
1060
1110
  DateTime: [
1061
- { key: g["date-picker"].type, value: g["date-picker"].name }
1111
+ { key: V["date-picker"].type, value: V["date-picker"].name }
1062
1112
  ],
1063
1113
  Boolean: [
1064
- { key: g.switch.type, value: g.switch.name },
1065
- { key: g["check-box"].type, value: g["check-box"].name }
1114
+ { key: V.switch.type, value: V.switch.name },
1115
+ { key: V["check-box"].type, value: V["check-box"].name }
1066
1116
  ],
1067
1117
  Enum: [
1068
- { key: g["combo-list"].type, value: g["combo-list"].name },
1069
- { key: g["radio-group"].type, value: g["radio-group"].name }
1118
+ { key: V["combo-list"].type, value: V["combo-list"].name },
1119
+ { key: V["radio-group"].type, value: V["radio-group"].name }
1070
1120
  ],
1071
1121
  Object: [
1072
- { key: g.lookup.type, value: g.lookup.name },
1073
- { key: g["combo-list"].type, value: g["combo-list"].name },
1074
- { key: g["radio-group"].type, value: g["radio-group"].name }
1075
- ],
1076
- EmployeeSelector: [
1077
- { key: g.EmployeeSelector.type, value: g.EmployeeSelector.name }
1078
- ],
1079
- AdminOrganizationSelector: [
1080
- { key: g.AdminOrganizationSelector.type, value: g.AdminOrganizationSelector.name }
1122
+ { key: V.lookup.type, value: V.lookup.name },
1123
+ { key: V["combo-list"].type, value: V["combo-list"].name },
1124
+ { key: V["radio-group"].type, value: V["radio-group"].name }
1081
1125
  ]
1082
1126
  });
1083
- class zn {
1127
+ let ie = Z;
1128
+ const Zn = y(0);
1129
+ class Ve extends Yn {
1084
1130
  constructor(n, t) {
1085
- L(this, "componentId");
1086
- L(this, "viewModelId");
1087
- L(this, "eventsEditorUtils");
1088
- L(this, "formSchemaUtils");
1089
- L(this, "formMetadataConverter");
1090
- L(this, "designViewModelUtils");
1091
- L(this, "designViewModelField");
1092
- L(this, "controlCreatorUtils");
1093
- L(this, "designerHostService");
1094
- L(this, "schemaService", null);
1095
- L(this, "metadataService", null);
1096
- L(this, "propertyConfig", {
1097
- type: "object",
1098
- categories: {}
1099
- });
1100
- var o;
1101
- this.componentId = n, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
1102
- }
1103
- getTableInfo() {
1104
- var n;
1105
- return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
1106
- }
1107
- setDesignViewModelField(n) {
1108
- const t = n.binding && n.binding.type === "Form" && n.binding.field;
1109
- if (t) {
1110
- if (!this.designViewModelField) {
1111
- const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1112
- this.designViewModelField = o.fields.find((r) => r.id === t);
1113
- }
1114
- n.updateOn = this.designViewModelField.updateOn;
1115
- }
1131
+ super(n, t);
1116
1132
  }
1117
- changeFieldEditorType(n, t) {
1133
+ getPropertyConfig(n, t) {
1134
+ return this.propertyConfig.categories.basic = this.getBasicProperties(n, t), this.propertyConfig.categories.appearance = this.getAppearanceProperties(n), this.propertyConfig.categories.editor = this.getEditorProperties(n), this.propertyConfig;
1118
1135
  }
1119
- getBasicPropConfig(n) {
1120
- var o, r;
1121
- var t = this;
1122
- return this.setDesignViewModelField(n), {
1136
+ getBasicProperties(n, t) {
1137
+ var l;
1138
+ var r = this;
1139
+ this.setDesignViewModelField(n);
1140
+ const o = this.formSchemaUtils.getFormMetadataBasicInfo(), a = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1141
+ return {
1123
1142
  description: "Basic Information",
1124
1143
  title: "基本信息",
1125
1144
  properties: {
@@ -1139,63 +1158,48 @@ class zn {
1139
1158
  type: "combo-list",
1140
1159
  textField: "value",
1141
1160
  valueField: "key",
1142
- data: We.getEditorTypesByMDataType(((r = (o = t.designViewModelField) == null ? void 0 : o.type) == null ? void 0 : r.name) || ""),
1143
- editable: !1
1161
+ editable: !1,
1162
+ data: r.designViewModelField ? ie.getEditorTypesByMDataType((l = r.designViewModelField.type) == null ? void 0 : l.name) : ie.getAllInputTypes()
1144
1163
  }
1145
1164
  },
1146
1165
  label: {
1147
1166
  title: "标签",
1148
1167
  type: "string",
1149
1168
  $converter: "/converter/form-group-label.converter"
1169
+ },
1170
+ binding: {
1171
+ description: "绑定的表单字段",
1172
+ title: "绑定",
1173
+ $converter: "/converter/field-selector.converter",
1174
+ editor: {
1175
+ type: "field-selector",
1176
+ bindingType: { enable: !1 },
1177
+ editorParams: {
1178
+ propertyData: n,
1179
+ formBasicInfo: o
1180
+ },
1181
+ columns: [
1182
+ { field: "name", title: "字段名称" },
1183
+ { field: "bindingField", title: "绑定字段" },
1184
+ { field: "fieldType", title: "字段类型" }
1185
+ ],
1186
+ textField: "bindingField",
1187
+ data: a
1188
+ }
1150
1189
  }
1151
1190
  },
1152
- setPropertyRelates(a, l) {
1153
- if (a)
1154
- switch (a && a.propertyID) {
1191
+ setPropertyRelates(u, c) {
1192
+ if (u)
1193
+ switch (u && u.propertyID) {
1155
1194
  case "type": {
1156
- t.changeControlType(n, a);
1195
+ r.changeControlType(n, u, t);
1157
1196
  break;
1158
1197
  }
1159
1198
  }
1160
1199
  }
1161
1200
  };
1162
1201
  }
1163
- /**
1164
- * 卡片控件:切换控件类型后事件
1165
- * @param propertyData 控件DOM属性
1166
- * @param newControlType 新控件类型
1167
- */
1168
- changeControlType(n, t) {
1169
- var i, c, s, f, p;
1170
- const o = t.propertyValue, r = this.formSchemaUtils.getComponentById(this.componentId);
1171
- let a = this.getControlParentContainer(n.id, r);
1172
- if (!a)
1173
- return;
1174
- const l = a.contents.findIndex((v) => v.id === n.id), u = a.contents[l];
1175
- let d;
1176
- this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1177
- editor: {
1178
- $type: o
1179
- },
1180
- name: this.designViewModelField.name,
1181
- require: this.designViewModelField.require,
1182
- readonly: this.designViewModelField.readonly
1183
- }, !1), d = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(d, {
1184
- id: u.id,
1185
- appearance: u.appearance,
1186
- size: u.size,
1187
- label: u.label
1188
- }), Object.assign(d.editor, {
1189
- isTextArea: d.isTextArea && u.isTextArea,
1190
- type: o || "",
1191
- placeHolder: (i = u.editor) == null ? void 0 : i.placeHolder,
1192
- holdPlace: (c = u.editor) == null ? void 0 : c.holdPlace,
1193
- readonly: (s = u.editor) == null ? void 0 : s.readonly,
1194
- require: (f = u.editor) == null ? void 0 : f.require,
1195
- visible: (p = u.editor) == null ? void 0 : p.visible
1196
- }), a.contents.splice(l, 1, d);
1197
- }
1198
- getAppearanceConfig(n = null) {
1202
+ getAppearanceProperties(n) {
1199
1203
  return {
1200
1204
  title: "样式",
1201
1205
  description: "Appearance",
@@ -1225,85 +1229,47 @@ class zn {
1225
1229
  }
1226
1230
  };
1227
1231
  }
1228
- /**
1229
- * 获取控件:以contents为节点进行定位
1230
- * @param controlId 控件ID
1231
- * @param domJson 容器
1232
- */
1233
- getControlParentContainer(n, t) {
1234
- let o;
1235
- if (!t || !t.contents || t.contents.length === 0)
1236
- return null;
1237
- for (const r of t.contents) {
1238
- if (r.id === n)
1239
- return o = t, t;
1240
- if (o = this.getControlParentContainer(n, r), o)
1241
- return o;
1242
- }
1243
- }
1244
- getBindingFieldEditorOptions(n) {
1245
- const t = this.formSchemaUtils.getFormMetadataBasicInfo();
1246
- return {
1247
- type: "field-selector",
1248
- bindingType: { enable: !1 },
1249
- editorParams: {
1250
- propertyData: n,
1251
- formBasicInfo: t
1252
- },
1253
- columns: [
1254
- { field: "name", title: "字段名称" },
1255
- { field: "bindingField", title: "绑定字段" },
1256
- { field: "fieldType", title: "字段类型" }
1257
- ],
1258
- beforeOpenDialog: (o) => {
1259
- const r = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1260
- o.instance.loadData(r);
1261
- },
1262
- textField: "bindingField"
1263
- };
1264
- }
1265
- }
1266
- class we extends zn {
1267
- constructor(n, t) {
1268
- super(n, t);
1269
- }
1270
- getBasicProperties(n) {
1271
- let t = this.getBasicPropConfig(n);
1272
- return t.properties.binding = this.getFieldSelectorOptions(n), t;
1273
- }
1274
- getAppearanceProperties(n) {
1275
- return this.getAppearanceConfig(n);
1276
- }
1277
1232
  getEditorProperties(n) {
1278
1233
  return this.getComponentConfig(n);
1279
1234
  }
1280
- getPropertyConfig(n) {
1281
- return this.propertyConfig.categories.basic = this.getBasicProperties(n), this.propertyConfig.categories.appearance = this.getAppearanceProperties(n), this.propertyConfig.categories.editor = this.getEditorProperties(n), this.propertyConfig;
1282
- }
1283
- getFieldSelectorOptions(n) {
1284
- const t = this.formSchemaUtils.getFormMetadataBasicInfo(), o = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1285
- return {
1286
- description: "绑定的表单字段",
1287
- title: "绑定",
1288
- $converter: "/converter/field-selector.converter",
1235
+ /**
1236
+ * 卡片控件:切换控件类型后事件
1237
+ * @param propertyData 控件DOM属性
1238
+ * @param newControlType 新控件类型
1239
+ */
1240
+ changeControlType(n, t, r) {
1241
+ var i, p, d, f;
1242
+ const o = t.propertyValue, a = r && r.parent && r.parent.schema;
1243
+ if (!a)
1244
+ return;
1245
+ const l = a.contents.findIndex((s) => s.id === n.id), u = a.contents[l];
1246
+ let c;
1247
+ this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1289
1248
  editor: {
1290
- type: "field-selector",
1291
- bindingType: { enable: !1 },
1292
- editorParams: {
1293
- propertyData: n,
1294
- formBasicInfo: t
1295
- },
1296
- columns: [
1297
- { field: "name", title: "字段名称" },
1298
- { field: "bindingField", title: "绑定字段" },
1299
- { field: "fieldType", title: "字段类型" }
1300
- ],
1301
- data: o
1302
- }
1303
- };
1304
- }
1305
- getComponentConfig(n, t = {}, o = {}) {
1306
- const r = Object.assign({
1249
+ $type: o
1250
+ },
1251
+ name: this.designViewModelField.name,
1252
+ require: this.designViewModelField.require,
1253
+ 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, {
1255
+ id: u.id,
1256
+ appearance: u.appearance,
1257
+ size: u.size,
1258
+ label: u.label,
1259
+ binding: u.binding,
1260
+ visible: u.visible
1261
+ }), Object.assign(c.editor, {
1262
+ isTextArea: c.isTextArea && u.isTextArea,
1263
+ 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,
1266
+ 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++;
1270
+ }
1271
+ getComponentConfig(n, t = {}, r = {}) {
1272
+ const o = Object.assign({
1307
1273
  description: "组件信息",
1308
1274
  title: "组件信息",
1309
1275
  type: "input-group",
@@ -1329,11 +1295,11 @@ class we extends zn {
1329
1295
  title: "提示文本",
1330
1296
  type: "string"
1331
1297
  }
1332
- }, o);
1333
- return { ...r, properties: { ...a } };
1298
+ }, r);
1299
+ return { ...o, properties: { ...a } };
1334
1300
  }
1335
1301
  }
1336
- class Wn extends we {
1302
+ class Jn extends Ve {
1337
1303
  constructor(n, t) {
1338
1304
  super(n, t);
1339
1305
  }
@@ -1360,38 +1326,38 @@ class Wn extends we {
1360
1326
  function Qn(e, n) {
1361
1327
  const {
1362
1328
  canAccepts: t,
1363
- checkCanDeleteComponent: o,
1364
- checkCanMoveComponent: r,
1329
+ checkCanDeleteComponent: r,
1330
+ checkCanMoveComponent: o,
1365
1331
  hideNestedPaddingInDesginerView: a,
1366
1332
  onAcceptMovedChildElement: l,
1367
1333
  resolveComponentContext: u,
1368
- triggerBelongedComponentToMoveWhenMoved: d,
1334
+ triggerBelongedComponentToMoveWhenMoved: c,
1369
1335
  triggerBelongedComponentToDeleteWhenDeleted: i
1370
- } = Ce(e), c = e.schema;
1371
- function s(f) {
1372
- return new Wn(f, n).getPropertyConfig(c);
1336
+ } = xe(e), p = e.schema;
1337
+ function d(f, s) {
1338
+ return new Jn(f, n).getPropertyConfig(p, s);
1373
1339
  }
1374
1340
  return {
1375
1341
  canAccepts: t,
1376
- checkCanDeleteComponent: o,
1377
- checkCanMoveComponent: r,
1342
+ checkCanDeleteComponent: r,
1343
+ checkCanMoveComponent: o,
1378
1344
  hideNestedPaddingInDesginerView: a,
1379
1345
  onAcceptMovedChildElement: l,
1380
1346
  resolveComponentContext: u,
1381
- triggerBelongedComponentToMoveWhenMoved: d,
1347
+ triggerBelongedComponentToMoveWhenMoved: c,
1382
1348
  triggerBelongedComponentToDeleteWhenDeleted: i,
1383
- getPropsConfig: s
1349
+ getPropsConfig: d
1384
1350
  };
1385
1351
  }
1386
- const Yn = /* @__PURE__ */ q({
1352
+ const Xn = /* @__PURE__ */ q({
1387
1353
  name: "FComboListDesign",
1388
- props: Se,
1354
+ props: Ce,
1389
1355
  emits: ["clear", "update:modelValue", "change"],
1390
1356
  setup(e, n) {
1391
- const t = y(), o = Z("designer-host-service"), r = Z("design-item-context"), a = Qn(r, o), l = on(t, r, a);
1357
+ const t = y(), r = Q("designer-host-service"), o = Q("design-item-context"), a = Qn(o, r), l = an(t, o, a);
1392
1358
  return H(() => {
1393
1359
  t.value.componentInstance = l;
1394
- }), n.expose(l.value), () => S(_e, {
1360
+ }), n.expose(l.value), () => g(qe, {
1395
1361
  ref: t,
1396
1362
  id: e.id,
1397
1363
  disable: e.disabled,
@@ -1408,26 +1374,26 @@ const Yn = /* @__PURE__ */ q({
1408
1374
  inputType: e.multiSelect ? "tag" : "text"
1409
1375
  }, null);
1410
1376
  }
1411
- }), xe = (e) => {
1377
+ }), Te = (e) => {
1412
1378
  const n = e;
1413
1379
  return n.install = function(t) {
1414
1380
  t.component(n.name, e);
1415
1381
  }, e;
1416
1382
  };
1417
- G.register = (e, n, t, o) => {
1418
- e["combo-list"] = G, n["combo-list"] = ze;
1383
+ G.register = (e, n, t, r) => {
1384
+ e["combo-list"] = G, n["combo-list"] = Ze;
1419
1385
  };
1420
1386
  G.registerDesigner = (e, n, t) => {
1421
- e["combo-list"] = Yn, n["combo-list"] = ze;
1387
+ e["combo-list"] = Xn, n["combo-list"] = Ze;
1422
1388
  };
1423
- xe(G);
1424
- const Zn = /* @__PURE__ */ new Map([
1425
- ["appearance", se]
1389
+ Te(G);
1390
+ const Kn = /* @__PURE__ */ new Map([
1391
+ ["appearance", de]
1426
1392
  ]);
1427
- function Xn(e, n, t) {
1393
+ function er(e, n, t) {
1428
1394
  return n;
1429
1395
  }
1430
- const Kn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-design.gitee.io/input-group.schema.json", eo = "input-group", to = "A Farris Input Component", no = "object", oo = {
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 = {
1431
1397
  id: {
1432
1398
  description: "The unique identifier for a Input Group",
1433
1399
  type: "string"
@@ -1629,18 +1595,18 @@ const Kn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-
1629
1595
  type: "string",
1630
1596
  default: ""
1631
1597
  }
1632
- }, ro = [
1598
+ }, lr = [
1633
1599
  "id",
1634
1600
  "type"
1635
- ], ao = {
1636
- $schema: Kn,
1637
- $id: Jn,
1638
- title: eo,
1639
- description: to,
1640
- type: no,
1641
- properties: oo,
1642
- required: ro
1643
- }, Ve = {
1601
+ ], ur = {
1602
+ $schema: tr,
1603
+ $id: nr,
1604
+ title: rr,
1605
+ description: or,
1606
+ type: ar,
1607
+ properties: ir,
1608
+ required: lr
1609
+ }, Be = {
1644
1610
  /** 是否自动完成 */
1645
1611
  autocomplete: { Type: String, default: "off" },
1646
1612
  /** 自定义CLASS */
@@ -1706,35 +1672,35 @@ const Kn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-
1706
1672
  * - input: 输入时更新
1707
1673
  */
1708
1674
  updateOn: { type: String, default: "blur" }
1709
- }, Qe = ue(Ve, ao, Zn, Xn);
1710
- function io(e, n, t, o) {
1711
- const r = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder), d = y(e.textAlign), i = y(e.updateOn), c = V(() => e.editable || !e.readonly), s = V(() => e.editable && !e.disabled && !e.readonly), f = V(() => !e.disabled && a.value), p = V(() => t.value === "" || t.value === null || t.value === void 0), v = V(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), h = V(() => e.readonly || !e.editable), C = V(() => e.enableTitle ? t.value : ""), x = V(() => ({
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(() => ({
1712
1678
  "form-control": !0,
1713
1679
  "f-utils-fill": !0,
1714
- "text-left": d.value === "left",
1715
- "text-center": d.value === "center",
1716
- "text-right": d.value === "right"
1717
- })), A = V(() => {
1680
+ "text-left": c.value === "left",
1681
+ "text-center": c.value === "center",
1682
+ "text-right": c.value === "right"
1683
+ })), A = x(() => {
1718
1684
  const M = {
1719
1685
  "f-cmp-inputgroup": !0,
1720
1686
  "input-group": !0,
1721
- "f-state-disable": r.value,
1722
- "f-state-editable": s.value,
1687
+ "f-state-disable": o.value,
1688
+ "f-state-editable": d.value,
1723
1689
  "f-state-readonly": h.value,
1724
1690
  "f-state-focus": f.value
1725
1691
  };
1726
- return (e.customClass || "").split(" ").reduce((ne, ce) => (ne[ce] = !0, ne), M), M;
1727
- }), E = V(() => u.value ? "" : "border-width : 0 ");
1728
- function w(M, D = !0) {
1729
- t.value = M, o.value !== M && (o.value = M), D && n.emit("change", M), n.emit("update:modelValue", M), n.emit("update:value", M);
1692
+ 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);
1730
1696
  }
1731
- I(
1697
+ N(
1732
1698
  () => e.modelValue,
1733
- (M, D) => {
1734
- M !== D && (t.value = M, o.value = M);
1699
+ (M, j) => {
1700
+ M !== j && (t.value = M, r.value = M);
1735
1701
  }
1736
- ), I(() => e.disabled, (M, D) => {
1737
- M !== D && (r.value = M);
1702
+ ), N(() => e.disabled, (M, j) => {
1703
+ M !== j && (o.value = M);
1738
1704
  });
1739
1705
  function B(M) {
1740
1706
  return a.value = !1, n.emit("blur", M), M.stopPropagation(), !1;
@@ -1743,81 +1709,81 @@ function io(e, n, t, o) {
1743
1709
  n.emit("click", M);
1744
1710
  }
1745
1711
  function T(M) {
1746
- e.disabled || (u.value && (a.value = !0), c.value && n.emit("focus", M));
1712
+ e.disabled || (u.value && (a.value = !0), p.value && n.emit("focus", M));
1747
1713
  }
1748
- function P(M) {
1714
+ function k(M) {
1749
1715
  n.emit("input", M.target.value);
1750
- const D = M.target.value;
1751
- o.value = D, i.value === "input" && (n.emit("update:modelValue", D), n.emit("update:value", D));
1716
+ const j = M.target.value;
1717
+ r.value = j, i.value === "input" && (n.emit("update:modelValue", j), n.emit("update:value", j));
1752
1718
  }
1753
- function $(M) {
1719
+ function L(M) {
1754
1720
  n.emit("keydown", M);
1755
1721
  }
1756
- function Q(M) {
1722
+ function Y(M) {
1757
1723
  n.emit("keyup", M);
1758
1724
  }
1759
- function R(M) {
1725
+ function _(M) {
1760
1726
  M.target.tagName !== "INPUT" && M.preventDefault(), M.stopPropagation();
1761
1727
  }
1762
1728
  function K(M) {
1763
1729
  if (i.value === "blur") {
1764
- const D = M.target.value;
1765
- M.stopPropagation(), w(D);
1730
+ const j = M.target.value;
1731
+ M.stopPropagation(), w(j);
1766
1732
  }
1767
1733
  }
1768
1734
  return {
1769
1735
  changeTextBoxValue: w,
1770
- disabled: r,
1771
- displayText: o,
1772
- editable: s,
1736
+ disabled: o,
1737
+ displayText: r,
1738
+ editable: d,
1773
1739
  hasFocused: f,
1774
1740
  inputGroupClass: A,
1775
1741
  inputType: l,
1776
- isEmpty: p,
1742
+ isEmpty: s,
1777
1743
  modelValue: t,
1778
1744
  readonly: h,
1779
1745
  onBlur: B,
1780
1746
  onClick: b,
1781
1747
  onFocus: T,
1782
- onInput: P,
1783
- onKeydown: $,
1784
- onKeyup: Q,
1785
- onMousedown: R,
1748
+ onInput: k,
1749
+ onKeydown: L,
1750
+ onKeyup: Y,
1751
+ onMousedown: _,
1786
1752
  onTextBoxValueChange: K,
1787
1753
  placeholder: v,
1788
- textBoxClass: x,
1789
- textBoxTitle: C,
1754
+ textBoxClass: C,
1755
+ textBoxTitle: S,
1790
1756
  inputGroupStyle: E
1791
1757
  };
1792
1758
  }
1793
- function lo(e, n, t, o) {
1794
- const r = y(e.disabled), a = y(!1), l = y("text"), u = y(e.showBorder), d = y(e.textAlign);
1795
- V(() => e.editable || !e.readonly);
1796
- const i = V(() => e.editable && !e.disabled && !e.readonly), c = V(() => !e.disabled && a.value), s = V(() => t.value === "" || t.value === null || t.value === void 0), f = V(() => e.placeholder), p = V(() => e.readonly || !e.editable), v = V(() => e.enableTitle ? t.value : ""), h = V(() => ({
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);
1761
+ 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(() => ({
1797
1763
  "form-control": !0,
1798
1764
  // 'f-utils-fill': true,
1799
- "text-left": d.value === "left",
1800
- "text-center": d.value === "center",
1801
- "text-right": d.value === "right"
1802
- })), C = V(() => ({
1765
+ "text-left": c.value === "left",
1766
+ "text-center": c.value === "center",
1767
+ "text-right": c.value === "right"
1768
+ })), S = x(() => ({
1803
1769
  "f-cmp-inputgroup": !0,
1804
1770
  "input-group": !0,
1805
1771
  "f-state-disable": !0,
1806
1772
  "f-state-editable": !1,
1807
1773
  "f-state-readonly": !0
1808
1774
  // 'f-state-focus': hasFocused.value
1809
- })), x = V(() => u.value ? "" : "border-width : 0 ");
1775
+ })), C = x(() => u.value ? "" : "border-width : 0 ");
1810
1776
  return {
1811
1777
  // changeTextBoxValue,
1812
- disabled: r,
1813
- displayText: o,
1778
+ disabled: o,
1779
+ displayText: r,
1814
1780
  editable: i,
1815
- hasFocused: c,
1816
- inputGroupClass: C,
1781
+ hasFocused: p,
1782
+ inputGroupClass: S,
1817
1783
  inputType: l,
1818
- isEmpty: s,
1784
+ isEmpty: d,
1819
1785
  modelValue: t,
1820
- readonly: p,
1786
+ readonly: s,
1821
1787
  // onBlur,
1822
1788
  // onClick,
1823
1789
  // onFocus,
@@ -1829,278 +1795,278 @@ function lo(e, n, t, o) {
1829
1795
  placeholder: f,
1830
1796
  textBoxClass: h,
1831
1797
  textBoxTitle: v,
1832
- inputGroupStyle: x
1798
+ inputGroupStyle: C
1833
1799
  };
1834
1800
  }
1835
- function Ye(e, n, t) {
1836
- const o = y(!1), r = V(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: u, isEmpty: d } = t;
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;
1837
1803
  function i(h) {
1838
- o.value = h;
1804
+ r.value = h;
1839
1805
  }
1840
- I(l, () => {
1806
+ N(l, () => {
1841
1807
  u != null && u.value ? i(!!(l != null && l.value)) : i(!1);
1842
1808
  });
1843
- const c = V(() => ({
1809
+ const p = x(() => ({
1844
1810
  "input-group-text": !0,
1845
1811
  "input-group-clear": !0
1846
- })), s = V(() => ({
1812
+ })), d = x(() => ({
1847
1813
  width: "24px",
1848
- display: o.value ? "flex" : "none"
1814
+ display: r.value ? "flex" : "none"
1849
1815
  }));
1850
1816
  function f(h) {
1851
- h.stopPropagation(), r.value && (a("", !0), i(!o.value), n.emit("clear"));
1817
+ h.stopPropagation(), o.value && (a("", !0), i(!r.value), n.emit("clear"));
1852
1818
  }
1853
- function p(h) {
1854
- r.value && !d.value && i(!0);
1819
+ function s(h) {
1820
+ o.value && !c.value && i(!0);
1855
1821
  }
1856
1822
  function v(h) {
1857
- r.value && i(!1);
1823
+ o.value && i(!1);
1858
1824
  }
1859
- return { clearButtonClass: c, clearButtonStyle: s, hasShownClearButton: o, onClearValue: f, onMouseEnter: p, onMouseLeave: v, shouldShowClearButton: r };
1825
+ return { clearButtonClass: p, clearButtonStyle: d, hasShownClearButton: r, onClearValue: f, onMouseEnter: s, onMouseLeave: v, shouldShowClearButton: o };
1860
1826
  }
1861
- const uo = ["moz", "ms", "webkit"];
1862
- function so() {
1827
+ const dr = ["moz", "ms", "webkit"];
1828
+ function pr() {
1863
1829
  let e = 0;
1864
1830
  return (n) => {
1865
- const t = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (t - e)), r = setTimeout(() => {
1866
- n(t + o);
1867
- }, o);
1868
- return e = t + o, r;
1831
+ const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - e)), o = setTimeout(() => {
1832
+ n(t + r);
1833
+ }, r);
1834
+ return e = t + r, o;
1869
1835
  };
1870
1836
  }
1871
- function co() {
1837
+ function fr() {
1872
1838
  if (typeof window > "u")
1873
1839
  return () => 0;
1874
1840
  if (window.requestAnimationFrame)
1875
1841
  return window.requestAnimationFrame.bind(window);
1876
- const e = uo.filter((n) => `${n}RequestAnimationFrame` in window)[0];
1877
- return e ? window[`${e}RequestAnimationFrame`] : so();
1842
+ const e = dr.filter((n) => `${n}RequestAnimationFrame` in window)[0];
1843
+ return e ? window[`${e}RequestAnimationFrame`] : pr();
1878
1844
  }
1879
- co();
1880
- function Ze(e, n) {
1881
- const t = y(e.groupText), o = V(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = V(() => e.enableClear || !!e.groupText);
1882
- return { appendedButtonClass: V(() => ({
1845
+ fr();
1846
+ function Xe(e, n) {
1847
+ const t = y(e.groupText), r = x(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), o = x(() => e.enableClear || !!e.groupText);
1848
+ return { appendedButtonClass: x(() => ({
1883
1849
  "input-group-append": !0,
1884
- "append-force-show": o.value
1885
- })), appendedContent: t, shouldShowAppendedButton: r };
1850
+ "append-force-show": r.value
1851
+ })), appendedContent: t, shouldShowAppendedButton: o };
1886
1852
  }
1887
- function Xe(e, n, t, o) {
1888
- const { appendedContent: r } = o, a = y(e.enableViewPassword), l = V(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', d = '<span class="f-icon f-icon-eye"></span>', i = y(!1);
1889
- I(() => [e.readonly, e.disabled], ([f, p]) => {
1890
- l.value && (t.value = f || p ? "password" : t.value, r.value = f || p ? d : r.value);
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);
1891
1857
  });
1892
- function c() {
1893
- return i.value = !i.value, t.value = i.value ? "text" : "password", r.value = i.value ? u : d, !1;
1858
+ function p() {
1859
+ return i.value = !i.value, t.value = i.value ? "text" : "password", o.value = i.value ? u : c, !1;
1894
1860
  }
1895
- function s() {
1896
- t.value = l.value ? "password" : "text", r.value = l.value ? a.value ? d : "" : r.value;
1861
+ function d() {
1862
+ t.value = l.value ? "password" : "text", o.value = l.value ? a.value ? c : "" : o.value;
1897
1863
  }
1898
- return s(), { isPassword: l, onClickAppendedButton: c };
1864
+ return d(), { isPassword: l, onClickAppendedButton: p };
1899
1865
  }
1900
- function Ke(e, n, t) {
1901
- const o = y(), {
1902
- onBlurTextBox: r,
1866
+ function et(e, n, t) {
1867
+ const r = y(), {
1868
+ onBlurTextBox: o,
1903
1869
  onFocusTextBox: a,
1904
1870
  onInput: l,
1905
1871
  onKeyDown: u,
1906
- textBoxValue: d
1907
- } = t, i = V(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), c = V(() => ({
1872
+ textBoxValue: c
1873
+ } = t, i = x(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), p = x(() => ({
1908
1874
  "form-control": !0,
1909
1875
  "f-utils-fill": !0
1910
- })), s = V(() => ({
1876
+ })), d = x(() => ({
1911
1877
  "text-align": e.textAlign
1912
1878
  }));
1913
1879
  function f(h) {
1914
1880
  h.stopPropagation();
1915
1881
  }
1916
- function p() {
1882
+ function s() {
1917
1883
  e.selectOnCreated, e.focusOnCreated;
1918
1884
  }
1919
1885
  async function v(h) {
1920
- a(h), await Ne, p();
1886
+ a(h), await je, s();
1921
1887
  }
1922
1888
  return H(async () => {
1923
- await Ne, p();
1924
- }), () => S("input", {
1925
- ref: o,
1926
- class: c.value,
1927
- style: s.value,
1889
+ await je, s();
1890
+ }), () => g("input", {
1891
+ ref: r,
1892
+ class: p.value,
1893
+ style: d.value,
1928
1894
  type: "text",
1929
- value: d.value,
1895
+ value: c.value,
1930
1896
  disabled: e.disabled,
1931
1897
  readonly: e.readonly || !e.editable,
1932
1898
  placeholder: i.value,
1933
- onBlur: r,
1899
+ onBlur: o,
1934
1900
  onChange: f,
1935
1901
  onFocus: v,
1936
1902
  onInput: l,
1937
1903
  onKeydown: u
1938
1904
  }, null);
1939
1905
  }
1940
- function Te(e, n, t) {
1906
+ function Fe(e, n, t) {
1941
1907
  const {
1942
- canDownward: o,
1943
- canUpward: r,
1908
+ canDownward: r,
1909
+ canUpward: o,
1944
1910
  onClickDownButton: a,
1945
1911
  onClickUpButton: l
1946
- } = t, u = V(() => ({
1912
+ } = t, u = x(() => ({
1947
1913
  "input-group-append": !0,
1948
1914
  "btn-group": !0,
1949
1915
  "btn-group-number": !0
1950
- })), d = V(() => ({
1916
+ })), c = x(() => ({
1951
1917
  btn: !0,
1952
1918
  "btn-secondary": !0,
1953
1919
  "btn-number-flag": !0
1954
- })), i = V(() => ({
1955
- cursor: r() ? "pointer" : "not-allowed",
1956
- "margin-left": 0
1957
- })), c = V(() => ({
1920
+ })), i = x(() => ({
1958
1921
  cursor: o() ? "pointer" : "not-allowed",
1959
1922
  "margin-left": 0
1923
+ })), p = x(() => ({
1924
+ cursor: r() ? "pointer" : "not-allowed",
1925
+ "margin-left": 0
1960
1926
  }));
1961
- return () => S("div", {
1927
+ return () => g("div", {
1962
1928
  class: u.value
1963
- }, [S("button", {
1929
+ }, [g("button", {
1964
1930
  title: "upButton",
1965
- class: d.value,
1931
+ class: c.value,
1966
1932
  style: i.value,
1967
1933
  onClick: l,
1968
- disabled: !r()
1969
- }, [S("span", {
1934
+ disabled: !o()
1935
+ }, [g("span", {
1970
1936
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
1971
- }, null)]), S("button", {
1937
+ }, null)]), g("button", {
1972
1938
  title: "downButton",
1973
- class: d.value,
1974
- style: c.value,
1939
+ class: c.value,
1940
+ style: p.value,
1975
1941
  onClick: a,
1976
- disabled: !o()
1977
- }, [S("span", {
1942
+ disabled: !r()
1943
+ }, [g("span", {
1978
1944
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1979
1945
  }, null)])]);
1980
1946
  }
1981
- function po(e, n) {
1982
- const t = rn(e, n), o = an(e, n, t), r = ln(e, n, o, t), a = un(e, n, o, t, r), l = Te(e, n, r), {
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), {
1983
1949
  displayValue: u,
1984
- modelValue: d,
1950
+ modelValue: c,
1985
1951
  getRealValue: i
1986
- } = t, c = Ke(e, n, a), {
1987
- format: s
1988
- } = o, {
1952
+ } = t, p = et(e, n, a), {
1953
+ format: d
1954
+ } = r, {
1989
1955
  isFocus: f
1990
- } = a, p = V(() => !e.disabled && !e.readonly);
1956
+ } = a, s = x(() => !e.disabled && !e.readonly);
1991
1957
  return H(() => {
1992
1958
  const v = i(e.modelValue);
1993
- u.value = s(v);
1994
- }), I(() => [e.value], ([v]) => {
1959
+ u.value = d(v);
1960
+ }), N(() => [e.value], ([v]) => {
1995
1961
  const h = i(v);
1996
- d.value = h, u.value = s(h);
1997
- }), I(() => [e.modelValue], ([v]) => {
1998
- v !== d.value && (d.value = v, !f.value && (u.value = s(i(v))));
1999
- }), I(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
2000
- u.value = s(d.value);
2001
- }), () => S("div", {
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", {
2002
1968
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
2003
- }, [c(), p.value && l()]);
1969
+ }, [p(), s.value && l()]);
2004
1970
  }
2005
- function fo(e, n, t, o) {
2006
- const r = y(), a = y(e.autocomplete), l = y(e.enableTitle), {
1971
+ function yr(e, n, t, r) {
1972
+ const o = y(), a = y(e.autocomplete), l = y(e.enableTitle), {
2007
1973
  isPassword: u
2008
- } = t, d = y(e.minLength), i = y(e.maxLength), c = y(e.tabIndex), {
2009
- disabled: s,
1974
+ } = t, c = y(e.minLength), i = y(e.maxLength), p = y(e.tabIndex), {
1975
+ disabled: d,
2010
1976
  displayText: f,
2011
- inputType: p,
1977
+ inputType: s,
2012
1978
  onBlur: v,
2013
1979
  onFocus: h,
2014
- onInput: C,
2015
- onClick: x,
1980
+ onInput: S,
1981
+ onClick: C,
2016
1982
  onKeydown: A,
2017
1983
  onKeyup: E,
2018
1984
  onMousedown: w,
2019
1985
  onTextBoxValueChange: B,
2020
1986
  readonly: b,
2021
1987
  placeholder: T,
2022
- textBoxClass: P,
2023
- textBoxTitle: $
2024
- } = o;
1988
+ textBoxClass: k,
1989
+ textBoxTitle: L
1990
+ } = r;
2025
1991
  return H(() => {
2026
1992
  e.selectOnCreated, e.focusOnCreated;
2027
- }), () => S("input", {
2028
- ref: r,
1993
+ }), () => g("input", {
1994
+ ref: o,
2029
1995
  name: "input-group-value",
2030
1996
  autocomplete: a.value,
2031
- class: P.value,
2032
- disabled: s == null ? void 0 : s.value,
1997
+ class: k.value,
1998
+ disabled: d == null ? void 0 : d.value,
2033
1999
  maxlength: i.value,
2034
- minlength: d.value,
2000
+ minlength: c.value,
2035
2001
  placeholder: T.value,
2036
2002
  readonly: b == null ? void 0 : b.value,
2037
- tabindex: c.value,
2038
- title: l.value && !u.value ? $.value : "",
2039
- type: p.value,
2003
+ tabindex: p.value,
2004
+ title: l.value && !u.value ? L.value : "",
2005
+ type: s.value,
2040
2006
  value: f == null ? void 0 : f.value,
2041
2007
  onBlur: v,
2042
- onClick: x,
2008
+ onClick: C,
2043
2009
  onChange: B,
2044
2010
  onFocus: h,
2045
- onInput: C,
2011
+ onInput: S,
2046
2012
  onKeydown: A,
2047
2013
  onKeyup: E,
2048
2014
  onMousedown: w
2049
2015
  }, null);
2050
2016
  }
2051
- function vo(e, n) {
2052
- const t = V(() => e.useExtendInfo && !!e.extendInfo), o = en({
2017
+ function mr(e, n) {
2018
+ const t = x(() => e.useExtendInfo && !!e.extendInfo), r = nn({
2053
2019
  content: e.extendInfo
2054
2020
  });
2055
- function r() {
2021
+ function o() {
2056
2022
  n.emit("updateExtendInfo");
2057
2023
  }
2058
- return () => t.value && ve(S("span", {
2024
+ return () => t.value && me(g("span", {
2059
2025
  class: "input-group-before-tips",
2060
- onMouseenter: r
2061
- }, [S("i", {
2026
+ onMouseenter: o
2027
+ }, [g("i", {
2062
2028
  class: "f-icon f-icon-info-circle"
2063
- }, null), S("b", {
2029
+ }, null), g("b", {
2064
2030
  class: "tips-arrow"
2065
- }, null)]), [[tn("tooltip"), o]]);
2031
+ }, null)]), [[rn("tooltip"), r]]);
2066
2032
  }
2067
- function Je(e, n, t, o, r) {
2033
+ function tt(e, n, t, r, o) {
2068
2034
  const {
2069
2035
  appendedButtonClass: a,
2070
2036
  appendedContent: l
2071
- } = t, u = V(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), d = V(() => l.value && !n.slots.groupTextTemplate), i = V(() => !!n.slots.groupTextTemplate), {
2072
- clearButtonClass: c,
2073
- clearButtonStyle: s,
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,
2074
2040
  onClearValue: f,
2075
- shouldShowClearButton: p
2076
- } = o;
2041
+ shouldShowClearButton: s
2042
+ } = r;
2077
2043
  function v() {
2078
- return S("span", {
2044
+ return g("span", {
2079
2045
  id: "clearIcon",
2080
- class: c.value,
2081
- style: s.value,
2046
+ class: p.value,
2047
+ style: d.value,
2082
2048
  onClick: (T) => f(T)
2083
- }, [S("i", {
2049
+ }, [g("i", {
2084
2050
  class: "f-icon modal_close"
2085
2051
  }, null)]);
2086
2052
  }
2087
2053
  function h(T) {
2088
2054
  n.emit("iconMouseEnter", T);
2089
2055
  }
2090
- function C(T) {
2056
+ function S(T) {
2091
2057
  n.emit("iconMouseLeave", T);
2092
2058
  }
2093
- function x(T) {
2059
+ function C(T) {
2094
2060
  u.value && n.emit("clickHandle", {
2095
2061
  originalEvent: T
2096
2062
  }), T.stopPropagation();
2097
2063
  }
2098
- const A = e.type === "password" ? r.onClickAppendedButton : x;
2064
+ const A = e.type === "password" ? o.onClickAppendedButton : C;
2099
2065
  function E() {
2100
- return S("span", {
2066
+ return g("span", {
2101
2067
  class: "input-group-text",
2102
2068
  onMouseenter: (T) => h(T),
2103
- onMouseleave: (T) => C(T),
2069
+ onMouseleave: (T) => S(T),
2104
2070
  innerHTML: l.value,
2105
2071
  onClick: (T) => A(T)
2106
2072
  }, null);
@@ -2109,108 +2075,108 @@ function Je(e, n, t, o, r) {
2109
2075
  return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
2110
2076
  }
2111
2077
  function B() {
2112
- return d.value ? E : i.value ? w : "";
2078
+ return c.value ? E : i.value ? w : "";
2113
2079
  }
2114
2080
  const b = B();
2115
- return () => S("div", {
2081
+ return () => g("div", {
2116
2082
  class: a.value
2117
- }, [p.value && v(), b && b()]);
2083
+ }, [s.value && v(), b && b()]);
2118
2084
  }
2119
- const J = /* @__PURE__ */ q({
2085
+ const ee = /* @__PURE__ */ q({
2120
2086
  name: "FInputGroup",
2121
- props: Ve,
2087
+ props: Be,
2122
2088
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
2123
2089
  setup(e, n) {
2124
- const t = y(e.modelValue), o = y(e.modelValue), r = io(e, n, t, o), {
2090
+ const t = y(e.modelValue), r = y(e.modelValue), o = sr(e, n, t, r), {
2125
2091
  inputGroupClass: a,
2126
2092
  inputType: l,
2127
2093
  inputGroupStyle: u
2128
- } = r, d = Ze(e), {
2094
+ } = o, c = Xe(e), {
2129
2095
  shouldShowAppendedButton: i
2130
- } = d, c = Ye(e, n, r), {
2131
- onMouseEnter: s,
2096
+ } = c, p = Qe(e, n, o), {
2097
+ onMouseEnter: d,
2132
2098
  onMouseLeave: f
2133
- } = c, p = Xe(e, n, l, d), v = po(e, n), h = fo(e, n, p, r), C = Je(e, n, d, c, p), x = vo(e, n), A = V(() => e.type === "number");
2134
- I(() => [e.value], ([w]) => {
2135
- t.value = w, o.value = w;
2136
- }), I(() => [e.modelValue], ([w]) => {
2137
- t.value = w, o.value = w;
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;
2138
2104
  }), H(() => {
2139
- e.value && (t.value = e.value, o.value = e.value);
2105
+ e.value && (t.value = e.value, r.value = e.value);
2140
2106
  });
2141
- const E = () => S(me, null, [S("div", {
2107
+ const E = () => g(he, null, [g("div", {
2142
2108
  id: "inputGroup",
2143
2109
  class: a.value,
2144
2110
  style: u.value,
2145
- onMouseenter: s,
2111
+ onMouseenter: d,
2146
2112
  onMouseleave: f
2147
- }, [A.value ? v() : S(me, null, [x(), h(), i.value && C()])])]);
2113
+ }, [A.value ? v() : g(he, null, [C(), h(), i.value && S()])])]);
2148
2114
  return () => E();
2149
2115
  }
2150
2116
  });
2151
- class mo extends we {
2117
+ class hr extends Ve {
2152
2118
  constructor(n, t) {
2153
2119
  super(n, t);
2154
2120
  }
2155
2121
  }
2156
- function yo(e, n) {
2122
+ function br(e, n) {
2157
2123
  const {
2158
2124
  canAccepts: t,
2159
- checkCanDeleteComponent: o,
2160
- checkCanMoveComponent: r,
2125
+ checkCanDeleteComponent: r,
2126
+ checkCanMoveComponent: o,
2161
2127
  hideNestedPaddingInDesginerView: a,
2162
2128
  onAcceptMovedChildElement: l,
2163
2129
  resolveComponentContext: u,
2164
- triggerBelongedComponentToMoveWhenMoved: d,
2130
+ triggerBelongedComponentToMoveWhenMoved: c,
2165
2131
  triggerBelongedComponentToDeleteWhenDeleted: i
2166
- } = Ce(e), c = e.schema;
2167
- function s(f) {
2168
- return new mo(f, n).getPropertyConfig(c);
2132
+ } = xe(e), p = e.schema;
2133
+ function d(f, s) {
2134
+ return new hr(f, n).getPropertyConfig(p, s);
2169
2135
  }
2170
2136
  return {
2171
2137
  canAccepts: t,
2172
- checkCanDeleteComponent: o,
2173
- checkCanMoveComponent: r,
2138
+ checkCanDeleteComponent: r,
2139
+ checkCanMoveComponent: o,
2174
2140
  hideNestedPaddingInDesginerView: a,
2175
2141
  onAcceptMovedChildElement: l,
2176
2142
  resolveComponentContext: u,
2177
- triggerBelongedComponentToMoveWhenMoved: d,
2143
+ triggerBelongedComponentToMoveWhenMoved: c,
2178
2144
  triggerBelongedComponentToDeleteWhenDeleted: i,
2179
- getPropsConfig: s
2145
+ getPropsConfig: d
2180
2146
  };
2181
2147
  }
2182
- function et(e, n, t) {
2148
+ function nt(e, n, t) {
2183
2149
  var B;
2184
- function o() {
2150
+ function r() {
2185
2151
  t != null && t.resolveComponentContext && t.resolveComponentContext();
2186
2152
  }
2187
- o();
2188
- const r = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", l = y();
2153
+ r();
2154
+ const o = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", l = y();
2189
2155
  function u() {
2190
2156
  return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
2191
2157
  }
2192
- function d() {
2158
+ function c() {
2193
2159
  return !1;
2194
2160
  }
2195
2161
  function i() {
2196
2162
  return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
2197
2163
  }
2198
- function c() {
2164
+ function p() {
2199
2165
  return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
2200
2166
  }
2201
- function s(b) {
2167
+ function d(b) {
2202
2168
  if (!b || !b.value)
2203
2169
  return null;
2204
2170
  if (b.value.schema && b.value.schema.type === "component")
2205
2171
  return b.value;
2206
- const T = y(b == null ? void 0 : b.value.parent), P = s(T);
2207
- return P || null;
2172
+ const T = y(b == null ? void 0 : b.value.parent), k = d(T);
2173
+ return k || null;
2208
2174
  }
2209
2175
  function f(b = n) {
2210
- const { componentInstance: T, designerItemElementRef: P } = b;
2211
- return !T || !T.value ? null : T.value.canMove ? P : f(b.parent);
2176
+ const { componentInstance: T, designerItemElementRef: k } = b;
2177
+ return !T || !T.value ? null : T.value.canMove ? k : f(b.parent);
2212
2178
  }
2213
- function p(b) {
2179
+ function s(b) {
2214
2180
  return !!t && t.canAccepts(b);
2215
2181
  }
2216
2182
  function v() {
@@ -2218,23 +2184,23 @@ function et(e, n, t) {
2218
2184
  }
2219
2185
  function h() {
2220
2186
  }
2221
- function C(b, T) {
2187
+ function S(b, T) {
2222
2188
  T && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(T);
2223
2189
  }
2224
- function x(b) {
2190
+ function C(b) {
2225
2191
  const { componentType: T } = b;
2226
- let P = ye(T, b);
2227
- t && t.onResolveNewComponentSchema && (P = t.onResolveNewComponentSchema(b, P));
2228
- const $ = T.toLowerCase().replace("-", "_");
2229
- return P && !P.id && P.type === T && (P.id = `${$}_${Math.random().toString().slice(2, 6)}`), P;
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;
2230
2196
  }
2231
2197
  function A(b, T) {
2232
- const P = String(b.getAttribute("data-controltype")), $ = b.getAttribute("data-feature"), Q = $ ? JSON.parse($) : {};
2233
- Q.parentComponentInstance = l.value;
2234
- let R = ye(P, Q);
2235
- t && t.onAcceptNewChildElement && (R = t.onAcceptNewChildElement(b, T, R));
2236
- const K = P.toLowerCase().replace("-", "_");
2237
- return R && !R.id && R.type === P && (R.id = `${K}_${Math.random().toString().slice(2, 6)}`), R;
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)}`), _;
2238
2204
  }
2239
2205
  function E(b) {
2240
2206
  }
@@ -2244,57 +2210,57 @@ function et(e, n, t) {
2244
2210
  }
2245
2211
  return l.value = {
2246
2212
  canMove: u(),
2247
- canSelectParent: d(),
2213
+ canSelectParent: c(),
2248
2214
  canDelete: i(),
2249
- canNested: !c(),
2215
+ canNested: !p(),
2250
2216
  contents: n == null ? void 0 : n.schema.contents,
2251
2217
  elementRef: e,
2252
2218
  parent: (B = n == null ? void 0 : n.parent) == null ? void 0 : B.componentInstance,
2253
2219
  schema: n == null ? void 0 : n.schema,
2254
- styles: r,
2220
+ styles: o,
2255
2221
  designerClass: a,
2256
- canAccepts: p,
2257
- getBelongedComponentInstance: s,
2222
+ canAccepts: s,
2223
+ getBelongedComponentInstance: d,
2258
2224
  getDraggableDesignItemElement: f,
2259
2225
  getDraggingDisplayText: v,
2260
2226
  getPropConfig: w,
2261
2227
  getDragScopeElement: h,
2262
- onAcceptMovedChildElement: C,
2228
+ onAcceptMovedChildElement: S,
2263
2229
  onAcceptNewChildElement: A,
2264
2230
  onChildElementMovedOut: E,
2265
- addNewChildComponentSchema: x,
2266
- updateDragAndDropRules: o,
2231
+ addNewChildComponentSchema: C,
2232
+ updateDragAndDropRules: r,
2267
2233
  triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || y(!1),
2268
2234
  triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || y(!1)
2269
2235
  }, l;
2270
2236
  }
2271
- const ho = /* @__PURE__ */ q({
2237
+ const gr = /* @__PURE__ */ q({
2272
2238
  name: "FInputGroupDesign",
2273
- props: Ve,
2239
+ props: Be,
2274
2240
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
2275
2241
  setup(e, n) {
2276
- const t = y(e.modelValue), o = y(e.modelValue), r = lo(e, n, t, o), {
2242
+ const t = y(e.modelValue), r = y(e.modelValue), o = cr(e, n, t, r), {
2277
2243
  inputGroupClass: a,
2278
2244
  inputType: l,
2279
2245
  inputGroupStyle: u
2280
- } = r, d = Ze(e), {
2246
+ } = o, c = Xe(e), {
2281
2247
  shouldShowAppendedButton: i
2282
- } = d, c = Ye(e, n, r), {
2283
- onMouseEnter: s,
2248
+ } = c, p = Qe(e, n, o), {
2249
+ onMouseEnter: d,
2284
2250
  onMouseLeave: f
2285
- } = c, p = Xe(e, n, l, d), v = y(), h = Z("designer-host-service"), C = Z("design-item-context"), x = yo(C, h), A = et(v, C, x);
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);
2286
2252
  H(() => {
2287
2253
  v.value.componentInstance = A;
2288
2254
  }), n.expose(A.value);
2289
- const E = Je(e, n, d, c, p), w = y();
2290
- return () => S("div", {
2255
+ const E = tt(e, n, c, p, s), w = y();
2256
+ return () => g("div", {
2291
2257
  id: "inputGroup",
2292
2258
  ref: v,
2293
2259
  class: a.value,
2294
2260
  style: u.value,
2295
- onMouseenter: s,
2261
+ onMouseenter: d,
2296
2262
  onMouseleave: f
2297
- }, [S("input", {
2263
+ }, [g("input", {
2298
2264
  ref: w,
2299
2265
  class: "form-control",
2300
2266
  readonly: !0,
@@ -2302,16 +2268,16 @@ const ho = /* @__PURE__ */ q({
2302
2268
  }, null), i.value && E()]);
2303
2269
  }
2304
2270
  });
2305
- J.register = (e, n, t, o) => {
2306
- e["input-group"] = J, n["input-group"] = Qe;
2271
+ ee.register = (e, n, t, r) => {
2272
+ e["input-group"] = ee, n["input-group"] = Je;
2307
2273
  };
2308
- J.registerDesigner = (e, n, t) => {
2309
- e["input-group"] = ho, n["input-group"] = Qe;
2274
+ ee.registerDesigner = (e, n, t) => {
2275
+ e["input-group"] = gr, n["input-group"] = Je;
2310
2276
  };
2311
- xe(J);
2312
- const bo = /* @__PURE__ */ new Map([
2313
- ["appearance", se]
2314
- ]), go = "https://json-schema.org/draft/2020-12/schema", So = "https://farris-design.gitee.io/number-spinner.schema.json", Co = "number-spinner", wo = "A Farris Input Component", xo = "object", Vo = {
2277
+ Te(ee);
2278
+ const Sr = /* @__PURE__ */ new Map([
2279
+ ["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 = {
2315
2281
  id: {
2316
2282
  description: "The unique identifier for a number spinner",
2317
2283
  type: "string"
@@ -2412,22 +2378,22 @@ const bo = /* @__PURE__ */ new Map([
2412
2378
  type: "sting",
2413
2379
  default: ""
2414
2380
  }
2415
- }, To = [
2381
+ }, Fr = [
2416
2382
  "id",
2417
2383
  "type"
2418
- ], Bo = {
2419
- $schema: go,
2420
- $id: So,
2421
- title: Co,
2422
- description: wo,
2423
- type: xo,
2424
- properties: Vo,
2425
- required: To
2384
+ ], Mr = {
2385
+ $schema: wr,
2386
+ $id: Cr,
2387
+ title: xr,
2388
+ description: Vr,
2389
+ type: Tr,
2390
+ properties: Br,
2391
+ required: Fr
2426
2392
  };
2427
- function Fo(e, n, t) {
2393
+ function kr(e, n, t) {
2428
2394
  return n;
2429
2395
  }
2430
- const Be = {
2396
+ const Me = {
2431
2397
  /**
2432
2398
  * 组件标识
2433
2399
  */
@@ -2531,108 +2497,108 @@ const Be = {
2531
2497
  * 作为内嵌编辑器被创建后默认选中文本
2532
2498
  */
2533
2499
  selectOnCreated: { type: Boolean, default: !1 }
2534
- }, tt = ue(Be, Bo, bo, Fo);
2535
- function nt(e, n, t, o) {
2536
- const { format: r } = t, { displayValue: a, getRealValue: l, modelValue: u, onNumberValueChanged: d } = o;
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;
2537
2503
  function i() {
2538
- const C = new j(u.value || 0);
2539
- return !(e.max && !new j(e.max).isNaN() && C.gte(new j(e.max)));
2504
+ const S = new $(u.value || 0);
2505
+ return !(e.max && !new $(e.max).isNaN() && S.gte(new $(e.max)));
2540
2506
  }
2541
- function c() {
2542
- const C = new j(u.value || 0);
2543
- return !(e.min && !new j(e.min).isNaN() && C.lte(new j(e.min)));
2507
+ function p() {
2508
+ const S = new $(u.value || 0);
2509
+ return !(e.min && !new $(e.min).isNaN() && S.lte(new $(e.min)));
2544
2510
  }
2545
- function s(C) {
2511
+ function d(S) {
2546
2512
  if (e.readonly || e.disabled)
2547
2513
  return;
2548
- const x = C === "up" ? i : c, A = C === "up" ? "plus" : "minus";
2549
- if (x()) {
2550
- const w = new j(u.value || 0)[A](Number(e.step)), B = w.toFixed();
2551
- a.value = r(B), d(l(w));
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));
2552
2518
  }
2553
2519
  }
2554
2520
  function f() {
2555
- s("up");
2521
+ d("up");
2556
2522
  }
2557
- function p() {
2558
- s("down");
2523
+ function s() {
2524
+ d("down");
2559
2525
  }
2560
- function v(C) {
2561
- f(), C.stopPropagation();
2526
+ function v(S) {
2527
+ f(), S.stopPropagation();
2562
2528
  }
2563
- function h(C) {
2564
- p(), C.stopPropagation();
2529
+ function h(S) {
2530
+ s(), S.stopPropagation();
2565
2531
  }
2566
- return { canDownward: c, canUpward: i, downward: p, onClickDownButton: h, onClickUpButton: v, upward: f };
2532
+ return { canDownward: p, canUpward: i, downward: s, onClickDownButton: h, onClickUpButton: v, upward: f };
2567
2533
  }
2568
- function ot(e, n, t) {
2569
- const o = V(() => ({
2534
+ function at(e, n, t) {
2535
+ const r = x(() => ({
2570
2536
  prefix: e.prefix,
2571
2537
  suffix: e.suffix,
2572
2538
  decimalSeparator: e.decimalSeparator,
2573
2539
  groupSeparator: e.useThousands ? e.groupSeparator : "",
2574
2540
  groupSize: e.groupSize
2575
- })), { getValidNumberObject: r, precision: a } = t;
2541
+ })), { getValidNumberObject: o, precision: a } = t;
2576
2542
  function l(i) {
2577
2543
  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;
2578
2544
  }
2579
- function u(i, c) {
2580
- return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value, c) : i.toFormat(c);
2545
+ function u(i, p) {
2546
+ return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value, p) : i.toFormat(p);
2581
2547
  }
2582
- function d(i) {
2583
- const c = l(i), s = new j(c, 10), f = r(s);
2584
- return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : u(f, o.value);
2548
+ function c(i) {
2549
+ const p = l(i), d = new $(p, 10), f = o(d);
2550
+ return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : u(f, r.value);
2585
2551
  }
2586
- return { cleanFormat: l, format: d };
2552
+ return { cleanFormat: l, format: c };
2587
2553
  }
2588
- function rt(e, n) {
2589
- const t = y(""), o = y(e.modelValue), r = V(() => Number(e.precision) || 0);
2590
- function a(c) {
2591
- return c.toFixed(r.value);
2554
+ function it(e, n) {
2555
+ const t = y(""), r = y(e.modelValue), o = x(() => Number(e.precision) || 0);
2556
+ function a(p) {
2557
+ return p.toFixed(o.value);
2592
2558
  }
2593
- function l(c) {
2594
- return isNaN(c) || c === null || c === void 0 || c === "";
2559
+ function l(p) {
2560
+ return isNaN(p) || p === null || p === void 0 || p === "";
2595
2561
  }
2596
- function u(c) {
2597
- const s = l(e.max) ? null : new j(String(e.max), 10), f = l(e.min) ? null : new j(String(e.min), 10);
2598
- return s && c.gt(s) ? s : f && c.lt(f) ? f : c;
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;
2599
2565
  }
2600
- function d(c) {
2566
+ function c(p) {
2601
2567
  if (e.parser)
2602
- return isNaN(Number(c)) ? e.parser(c) : c;
2603
- let s = u(new j(c, 10));
2604
- if (s.isNaN()) {
2568
+ return isNaN(Number(p)) ? e.parser(p) : p;
2569
+ let d = u(new $(p, 10));
2570
+ if (d.isNaN()) {
2605
2571
  if (e.canNull)
2606
2572
  return null;
2607
- const p = new j("" + e.min, 10), v = new j("" + e.max, 10);
2608
- if (!p.isNaN())
2609
- s = p;
2573
+ const s = new $("" + e.min, 10), v = new $("" + e.max, 10);
2574
+ if (!s.isNaN())
2575
+ d = s;
2610
2576
  else if (!v.isNaN())
2611
- s = v;
2577
+ d = v;
2612
2578
  else
2613
2579
  return 0;
2614
2580
  }
2615
- return a(s);
2581
+ return a(d);
2616
2582
  }
2617
- function i(c) {
2618
- const s = Number(c);
2619
- o.value = s, n.emit("update:modelValue", s), n.emit("valueChange", s), n.emit("change", s);
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);
2620
2586
  }
2621
- return { displayValue: t, getRealValue: d, modelValue: o, isEmpty: l, onNumberValueChanged: i, precision: r, getValidNumberObject: u };
2587
+ return { displayValue: t, getRealValue: c, modelValue: r, isEmpty: l, onNumberValueChanged: i, precision: o, getValidNumberObject: u };
2622
2588
  }
2623
- function Mo(e, n, t, o, r) {
2624
- const { cleanFormat: a, format: l } = t, { displayValue: u, getRealValue: d, modelValue: i, isEmpty: c, onNumberValueChanged: s } = o, { downward: f, upward: p } = r, v = y(!1), h = V(() => u.value);
2625
- function C(w) {
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) {
2626
2592
  var T;
2627
2593
  if (w.stopPropagation(), v.value = !1, e.readonly || e.disabled)
2628
2594
  return;
2629
2595
  let B = (T = w.target) == null ? void 0 : T.value;
2630
2596
  e.canNull || (B = B || 0);
2631
2597
  const b = a(B);
2632
- u.value = l(b), s(d(b)), n.emit("blur", { event: w, formatted: u.value, value: i.value });
2598
+ u.value = l(b), d(c(b)), n.emit("blur", { event: w, formatted: u.value, value: i.value });
2633
2599
  }
2634
- function x(w) {
2635
- w.stopPropagation(), v.value = !0, !(e.readonly || e.disabled) && (u.value = c(i.value) || !e.showZero && i.value === "0" ? "" : String(i.value), n.emit("focus", { event: w, formatted: u.value, value: i.value }));
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 }));
2636
2602
  }
2637
2603
  function A(w) {
2638
2604
  var T;
@@ -2640,43 +2606,43 @@ function Mo(e, n, t, o, r) {
2640
2606
  let B = (T = w.target) == null ? void 0 : T.value;
2641
2607
  e.canNull || (B = B || 0);
2642
2608
  const b = a(B);
2643
- u.value = b, s(d(b));
2609
+ u.value = b, d(c(b));
2644
2610
  }
2645
2611
  function E(w) {
2646
- w.key === "ArrowDown" && (w.preventDefault(), f()), w.key === "ArrowUp" && (w.preventDefault(), p()), w.stopPropagation();
2612
+ w.key === "ArrowDown" && (w.preventDefault(), f()), w.key === "ArrowUp" && (w.preventDefault(), s()), w.stopPropagation();
2647
2613
  }
2648
- return { textBoxValue: h, onBlurTextBox: C, onFocusTextBox: x, onInput: A, onKeyDown: E, isFocus: v };
2614
+ return { textBoxValue: h, onBlurTextBox: S, onFocusTextBox: C, onInput: A, onKeyDown: E, isFocus: v };
2649
2615
  }
2650
- const ee = /* @__PURE__ */ q({
2616
+ const te = /* @__PURE__ */ q({
2651
2617
  name: "FNumberSpinner",
2652
- props: Be,
2618
+ props: Me,
2653
2619
  emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
2654
2620
  setup(e, n) {
2655
- const t = rt(e, n), o = ot(e, n, t), r = nt(e, n, o, t), a = Mo(e, n, o, t, r), l = Te(e, n, r), {
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), {
2656
2622
  displayValue: u,
2657
- modelValue: d,
2623
+ modelValue: c,
2658
2624
  getRealValue: i
2659
- } = t, c = Ke(e, n, a), {
2660
- format: s
2661
- } = o, {
2625
+ } = t, p = et(e, n, a), {
2626
+ format: d
2627
+ } = r, {
2662
2628
  isFocus: f
2663
- } = a, p = V(() => !e.disabled && !e.readonly && e.showButton);
2629
+ } = a, s = x(() => !e.disabled && !e.readonly && e.showButton);
2664
2630
  return H(() => {
2665
2631
  const v = i(e.modelValue);
2666
- u.value = s(v);
2667
- }), I(() => [e.value], ([v]) => {
2632
+ u.value = d(v);
2633
+ }), N(() => [e.value], ([v]) => {
2668
2634
  const h = i(v);
2669
- d.value = h, u.value = s(h);
2670
- }), I(() => [e.modelValue], ([v]) => {
2671
- v !== d.value && (d.value = v, !f.value && (u.value = s(i(v))));
2672
- }), I(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
2673
- u.value = s(d.value);
2674
- }), () => S("div", {
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", {
2675
2641
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
2676
- }, [c(), p.value && l()]);
2642
+ }, [p(), s.value && l()]);
2677
2643
  }
2678
2644
  });
2679
- class Po extends we {
2645
+ class Ar extends Ve {
2680
2646
  constructor(n, t) {
2681
2647
  super(n, t);
2682
2648
  }
@@ -2709,81 +2675,81 @@ class Po extends we {
2709
2675
  });
2710
2676
  }
2711
2677
  }
2712
- function Eo(e, n) {
2678
+ function Pr(e, n) {
2713
2679
  const {
2714
2680
  canAccepts: t,
2715
- checkCanDeleteComponent: o,
2716
- checkCanMoveComponent: r,
2681
+ checkCanDeleteComponent: r,
2682
+ checkCanMoveComponent: o,
2717
2683
  hideNestedPaddingInDesginerView: a,
2718
2684
  onAcceptMovedChildElement: l,
2719
2685
  resolveComponentContext: u,
2720
- triggerBelongedComponentToMoveWhenMoved: d,
2686
+ triggerBelongedComponentToMoveWhenMoved: c,
2721
2687
  triggerBelongedComponentToDeleteWhenDeleted: i
2722
- } = Ce(e), c = e.schema;
2723
- function s(f) {
2724
- return new Po(f, n).getPropertyConfig(c);
2688
+ } = xe(e), p = e.schema;
2689
+ function d(f, s) {
2690
+ return new Ar(f, n).getPropertyConfig(p, s);
2725
2691
  }
2726
2692
  return {
2727
2693
  canAccepts: t,
2728
- checkCanDeleteComponent: o,
2729
- checkCanMoveComponent: r,
2694
+ checkCanDeleteComponent: r,
2695
+ checkCanMoveComponent: o,
2730
2696
  hideNestedPaddingInDesginerView: a,
2731
2697
  onAcceptMovedChildElement: l,
2732
2698
  resolveComponentContext: u,
2733
- triggerBelongedComponentToMoveWhenMoved: d,
2699
+ triggerBelongedComponentToMoveWhenMoved: c,
2734
2700
  triggerBelongedComponentToDeleteWhenDeleted: i,
2735
- getPropsConfig: s
2701
+ getPropsConfig: d
2736
2702
  };
2737
2703
  }
2738
- const Ao = /* @__PURE__ */ q({
2704
+ const Nr = /* @__PURE__ */ q({
2739
2705
  name: "FNumberSpinnerDesign",
2740
- props: Be,
2706
+ props: Me,
2741
2707
  emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
2742
2708
  setup(e, n) {
2743
- const t = rt(e, n), o = ot(e, n, t), r = nt(e, n, o, t), a = Te(e, n, r), l = y(), u = Z("designer-host-service"), d = Z("design-item-context"), i = Eo(d, u), c = et(l, d, i);
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);
2744
2710
  H(() => {
2745
- l.value.componentInstance = c, e.readonly = !0;
2746
- }), n.expose(c.value);
2747
- const s = y();
2748
- return () => S("div", {
2711
+ l.value.componentInstance = p, e.readonly = !0;
2712
+ }), n.expose(p.value);
2713
+ const d = y();
2714
+ return () => g("div", {
2749
2715
  ref: l,
2750
2716
  class: "input-group f-state-hover flex-row f-cmp-number-spinner test"
2751
- }, [S("input", {
2752
- ref: s,
2717
+ }, [g("input", {
2718
+ ref: d,
2753
2719
  class: "form-control",
2754
2720
  readonly: !0,
2755
2721
  placeholder: e.placeholder
2756
2722
  }, null), a()]);
2757
2723
  }
2758
2724
  });
2759
- ee.register = (e, n, t, o) => {
2760
- e["number-spinner"] = ee, n["number-spinner"] = tt;
2725
+ te.register = (e, n, t, r) => {
2726
+ e["number-spinner"] = te, n["number-spinner"] = rt;
2761
2727
  };
2762
- ee.registerDesigner = (e, n, t) => {
2763
- e["number-spinner"] = Ao, n["number-spinner"] = tt;
2728
+ te.registerDesigner = (e, n, t) => {
2729
+ e["number-spinner"] = Nr, n["number-spinner"] = rt;
2764
2730
  };
2765
- xe(ee);
2766
- function ko(e, n, t, o, r, a, l) {
2767
- const u = y(0), d = y(""), i = y([]), c = y(""), s = y("");
2731
+ 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("");
2768
2734
  function f() {
2769
- e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (c.value = F(e.value.propertyValue.value), n.value = F(e.value.editorOptions.enums));
2735
+ e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (p.value = F(e.value.propertyValue.value), n.value = F(e.value.editorOptions.enums));
2770
2736
  }
2771
- function p() {
2737
+ function s() {
2772
2738
  e.value.propertyType === "number" && (u.value = e.value.propertyValue.value);
2773
2739
  }
2774
2740
  function v() {
2775
- t.value.id === "stateMachine" && (o = F(e.value.propertyValue.value.id), o ? r.value = F(e.value.propertyValue.value.exist) : r.value = "否");
2741
+ t.value.id === "stateMachine" && (r = F(e.value.propertyValue.value.id), r ? o.value = F(e.value.propertyValue.value.exist) : o.value = "否");
2776
2742
  }
2777
2743
  function h() {
2778
2744
  if (t.value.id === "dataStates" && (i.value = F(e.value.editorOptions.dataStates), e.value.propertyValue.value)) {
2779
2745
  const w = e.value.propertyValue.value, B = i.value.filter((b) => w.includes(b.value)).map((b) => b.value).join(",");
2780
- d.value = F(B);
2746
+ c.value = F(B);
2781
2747
  }
2782
2748
  }
2783
- function C() {
2784
- t.value.id === "variable" && (s.value = e.value.propertyValue.value.path);
2749
+ function S() {
2750
+ t.value.id === "variable" && (d.value = e.value.propertyValue.value.path);
2785
2751
  }
2786
- function x() {
2752
+ function C() {
2787
2753
  if (t.value.id === "expression") {
2788
2754
  l.value = !0;
2789
2755
  const { handleExpressionValue: w } = e.value.editorOptions.expressionConfig;
@@ -2794,19 +2760,19 @@ function ko(e, n, t, o, r, a, l) {
2794
2760
  t.value.id;
2795
2761
  }
2796
2762
  function E() {
2797
- f(), p(), C(), v(), h(), x(), A();
2763
+ f(), s(), S(), v(), h(), C(), A();
2798
2764
  }
2799
2765
  return {
2800
2766
  numberConstValue: u,
2801
- bindVariableValue: s,
2802
- dataStatesBindValue: d,
2767
+ bindVariableValue: d,
2768
+ dataStatesBindValue: c,
2803
2769
  dataStatesValueArray: i,
2804
- constEnumBindValue: c,
2770
+ constEnumBindValue: p,
2805
2771
  setValue: E
2806
2772
  };
2807
2773
  }
2808
- function Io(e, n, t, o, r, a, l, u, d, i, c, s) {
2809
- const f = y(!1), p = y({
2774
+ function Ir(e, n, t, r, o, a, l, u, c, i, p, d) {
2775
+ const f = y(!1), s = y({
2810
2776
  propertyName: "",
2811
2777
  /** 属性类型:boolean, string, number, enum */
2812
2778
  propertyType: "",
@@ -2818,126 +2784,126 @@ function Io(e, n, t, o, r, a, l, u, d, i, c, s) {
2818
2784
  hasPrefix: !1
2819
2785
  });
2820
2786
  function v() {
2821
- n.value.propertyValue.type === "const" && (n.value.propertyValue.value = F(r.value.constValue.value), t.value = F(r.value.constValue.value), o.value = F(n.value.editorOptions.enums));
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));
2822
2788
  }
2823
2789
  function h() {
2824
- n.value.propertyValue.type === "stateMachine" && (n.value.propertyValue.value = F(r.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 = {
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 = {
2825
2791
  id: "",
2826
2792
  name: "",
2827
2793
  exist: ""
2828
2794
  }, u.value = "否"));
2829
2795
  }
2830
- function C() {
2831
- n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = F(r.value.dataStatesValue.value), d.value = F(n.value.editorOptions.dataStates));
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));
2832
2798
  }
2833
- function x() {
2834
- i.value = "", r.value.expressionValue && (r.value.expressionValue.value = "");
2799
+ function C() {
2800
+ i.value = "", o.value.expressionValue && (o.value.expressionValue.value = "");
2835
2801
  }
2836
2802
  function A() {
2837
- c.value || (u.value = u.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = u, r.value.stateMachineValue.value.exist = u, B());
2803
+ p.value || (u.value = u.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = u, o.value.stateMachineValue.value.exist = u, B());
2838
2804
  }
2839
2805
  function E() {
2840
- p.value.propertyValue.value && p.value.propertyValue.value.includes("viewModel.stateMachine") && (r.value.customValue.value = "");
2806
+ s.value.propertyValue.value && s.value.propertyValue.value.includes("viewModel.stateMachine") && (o.value.customValue.value = "");
2841
2807
  }
2842
2808
  function w() {
2843
- p.value.propertyName = F(n.value.propertyName), p.value.propertyType = F(n.value.propertyType), p.value.propertyValue = F(n.value.propertyValue), p.value.hasPrefix = F(f);
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);
2844
2810
  }
2845
2811
  function B() {
2846
- if (!c.value)
2847
- switch (w(), p.value.propertyValue.type) {
2812
+ if (!p.value)
2813
+ switch (w(), s.value.propertyValue.type) {
2848
2814
  case "const":
2849
- (p.value.propertyType === "enum" && p.value.propertyValue.value !== "" || p.value.propertyType === "number" && p.value.propertyValue.value != null || p.value.propertyType === "string") && (x(), e.emit("propertyEditorValueChanged", p));
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));
2850
2816
  break;
2851
2817
  case "variable":
2852
- p.value.propertyValue.value.path !== "" && (x(), e.emit("propertyEditorValueChanged", p));
2818
+ s.value.propertyValue.value.path !== "" && (C(), e.emit("propertyEditorValueChanged", s));
2853
2819
  break;
2854
2820
  case "custom":
2855
- x(), E(), e.emit("propertyEditorValueChanged", p);
2821
+ C(), E(), e.emit("propertyEditorValueChanged", s);
2856
2822
  break;
2857
2823
  case "expression":
2858
- i.value && e.emit("propertyEditorValueChanged", p);
2824
+ i.value && e.emit("propertyEditorValueChanged", s);
2859
2825
  break;
2860
2826
  case "stateMachine":
2861
- p.value.propertyValue.value.id && (x(), e.emit("propertyEditorValueChanged", p));
2827
+ s.value.propertyValue.value.id && (C(), e.emit("propertyEditorValueChanged", s));
2862
2828
  break;
2863
2829
  case "dataStates":
2864
- if (p.value.propertyValue.value !== "") {
2865
- x(), e.emit("propertyEditorValueChanged", p);
2830
+ if (s.value.propertyValue.value !== "") {
2831
+ C(), e.emit("propertyEditorValueChanged", s);
2866
2832
  break;
2867
2833
  }
2868
2834
  }
2869
2835
  }
2870
2836
  function b() {
2871
- n.value.propertyValue = r.value[`${s.value.id}Value`], v(), h(), C(), B(), p.value.isNewVariable = !1;
2837
+ n.value.propertyValue = o.value[`${d.value.id}Value`], v(), h(), S(), B(), s.value.isNewVariable = !1;
2872
2838
  }
2873
2839
  return {
2874
2840
  updateData: b,
2875
2841
  changeState: A,
2876
2842
  prefix: f,
2877
- propertyEditorValueChange: p
2843
+ propertyEditorValueChange: s
2878
2844
  };
2879
2845
  }
2880
- var he = function(e, n) {
2881
- return he = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, o) {
2882
- t.__proto__ = o;
2883
- } || function(t, o) {
2884
- for (var r in o) Object.prototype.hasOwnProperty.call(o, r) && (t[r] = o[r]);
2885
- }, he(e, n);
2846
+ var ge = function(e, n) {
2847
+ return ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
2848
+ t.__proto__ = r;
2849
+ } || function(t, r) {
2850
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
2851
+ }, ge(e, n);
2886
2852
  };
2887
- function z(e, n) {
2853
+ function W(e, n) {
2888
2854
  if (typeof n != "function" && n !== null)
2889
2855
  throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
2890
- he(e, n);
2856
+ ge(e, n);
2891
2857
  function t() {
2892
2858
  this.constructor = e;
2893
2859
  }
2894
2860
  e.prototype = n === null ? Object.create(n) : (t.prototype = n.prototype, new t());
2895
2861
  }
2896
- function No(e, n, t, o) {
2897
- function r(a) {
2862
+ function jr(e, n, t, r) {
2863
+ function o(a) {
2898
2864
  return a instanceof t ? a : new t(function(l) {
2899
2865
  l(a);
2900
2866
  });
2901
2867
  }
2902
2868
  return new (t || (t = Promise))(function(a, l) {
2903
- function u(c) {
2869
+ function u(p) {
2904
2870
  try {
2905
- i(o.next(c));
2906
- } catch (s) {
2907
- l(s);
2871
+ i(r.next(p));
2872
+ } catch (d) {
2873
+ l(d);
2908
2874
  }
2909
2875
  }
2910
- function d(c) {
2876
+ function c(p) {
2911
2877
  try {
2912
- i(o.throw(c));
2913
- } catch (s) {
2914
- l(s);
2878
+ i(r.throw(p));
2879
+ } catch (d) {
2880
+ l(d);
2915
2881
  }
2916
2882
  }
2917
- function i(c) {
2918
- c.done ? a(c.value) : r(c.value).then(u, d);
2883
+ function i(p) {
2884
+ p.done ? a(p.value) : o(p.value).then(u, c);
2919
2885
  }
2920
- i((o = o.apply(e, n || [])).next());
2886
+ i((r = r.apply(e, n || [])).next());
2921
2887
  });
2922
2888
  }
2923
- function at(e, n) {
2889
+ function lt(e, n) {
2924
2890
  var t = { label: 0, sent: function() {
2925
2891
  if (a[0] & 1) throw a[1];
2926
2892
  return a[1];
2927
- }, trys: [], ops: [] }, o, r, a, l = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
2893
+ }, trys: [], ops: [] }, r, o, a, l = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
2928
2894
  return l.next = u(0), l.throw = u(1), l.return = u(2), typeof Symbol == "function" && (l[Symbol.iterator] = function() {
2929
2895
  return this;
2930
2896
  }), l;
2931
2897
  function u(i) {
2932
- return function(c) {
2933
- return d([i, c]);
2898
+ return function(p) {
2899
+ return c([i, p]);
2934
2900
  };
2935
2901
  }
2936
- function d(i) {
2937
- if (o) throw new TypeError("Generator is already executing.");
2902
+ function c(i) {
2903
+ if (r) throw new TypeError("Generator is already executing.");
2938
2904
  for (; l && (l = 0, i[0] && (t = 0)), t; ) try {
2939
- if (o = 1, r && (a = i[0] & 2 ? r.return : i[0] ? r.throw || ((a = r.return) && a.call(r), 0) : r.next) && !(a = a.call(r, i[1])).done) return a;
2940
- switch (r = 0, a && (i = [i[0] & 2, a.value]), i[0]) {
2905
+ 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;
2906
+ switch (o = 0, a && (i = [i[0] & 2, a.value]), i[0]) {
2941
2907
  case 0:
2942
2908
  case 1:
2943
2909
  a = i;
@@ -2945,7 +2911,7 @@ function at(e, n) {
2945
2911
  case 4:
2946
2912
  return t.label++, { value: i[1], done: !1 };
2947
2913
  case 5:
2948
- t.label++, r = i[1], i = [0];
2914
+ t.label++, o = i[1], i = [0];
2949
2915
  continue;
2950
2916
  case 7:
2951
2917
  i = t.ops.pop(), t.trys.pop();
@@ -2971,195 +2937,195 @@ function at(e, n) {
2971
2937
  continue;
2972
2938
  }
2973
2939
  i = n.call(e, t);
2974
- } catch (c) {
2975
- i = [6, c], r = 0;
2940
+ } catch (p) {
2941
+ i = [6, p], o = 0;
2976
2942
  } finally {
2977
- o = a = 0;
2943
+ r = a = 0;
2978
2944
  }
2979
2945
  if (i[0] & 5) throw i[1];
2980
2946
  return { value: i[0] ? i[1] : void 0, done: !0 };
2981
2947
  }
2982
2948
  }
2983
2949
  function X(e) {
2984
- var n = typeof Symbol == "function" && Symbol.iterator, t = n && e[n], o = 0;
2950
+ var n = typeof Symbol == "function" && Symbol.iterator, t = n && e[n], r = 0;
2985
2951
  if (t) return t.call(e);
2986
2952
  if (e && typeof e.length == "number") return {
2987
2953
  next: function() {
2988
- return e && o >= e.length && (e = void 0), { value: e && e[o++], done: !e };
2954
+ return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
2989
2955
  }
2990
2956
  };
2991
2957
  throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
2992
2958
  }
2993
- function ae(e, n) {
2959
+ function le(e, n) {
2994
2960
  var t = typeof Symbol == "function" && e[Symbol.iterator];
2995
2961
  if (!t) return e;
2996
- var o = t.call(e), r, a = [], l;
2962
+ var r = t.call(e), o, a = [], l;
2997
2963
  try {
2998
- for (; (n === void 0 || n-- > 0) && !(r = o.next()).done; ) a.push(r.value);
2964
+ for (; (n === void 0 || n-- > 0) && !(o = r.next()).done; ) a.push(o.value);
2999
2965
  } catch (u) {
3000
2966
  l = { error: u };
3001
2967
  } finally {
3002
2968
  try {
3003
- r && !r.done && (t = o.return) && t.call(o);
2969
+ o && !o.done && (t = r.return) && t.call(r);
3004
2970
  } finally {
3005
2971
  if (l) throw l.error;
3006
2972
  }
3007
2973
  }
3008
2974
  return a;
3009
2975
  }
3010
- function ie(e, n, t) {
3011
- if (t || arguments.length === 2) for (var o = 0, r = n.length, a; o < r; o++)
3012
- (a || !(o in n)) && (a || (a = Array.prototype.slice.call(n, 0, o)), a[o] = n[o]);
2976
+ function ue(e, n, t) {
2977
+ if (t || arguments.length === 2) for (var r = 0, o = n.length, a; r < o; r++)
2978
+ (a || !(r in n)) && (a || (a = Array.prototype.slice.call(n, 0, r)), a[r] = n[r]);
3013
2979
  return e.concat(a || Array.prototype.slice.call(n));
3014
2980
  }
3015
- function Y(e) {
3016
- return this instanceof Y ? (this.v = e, this) : new Y(e);
2981
+ function J(e) {
2982
+ return this instanceof J ? (this.v = e, this) : new J(e);
3017
2983
  }
3018
- function Oo(e, n, t) {
2984
+ function Dr(e, n, t) {
3019
2985
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3020
- var o = t.apply(e, n || []), r, a = [];
3021
- return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", l), r[Symbol.asyncIterator] = function() {
2986
+ var r = t.apply(e, n || []), o, a = [];
2987
+ return o = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", l), o[Symbol.asyncIterator] = function() {
3022
2988
  return this;
3023
- }, r;
3024
- function l(p) {
2989
+ }, o;
2990
+ function l(s) {
3025
2991
  return function(v) {
3026
- return Promise.resolve(v).then(p, s);
2992
+ return Promise.resolve(v).then(s, d);
3027
2993
  };
3028
2994
  }
3029
- function u(p, v) {
3030
- o[p] && (r[p] = function(h) {
3031
- return new Promise(function(C, x) {
3032
- a.push([p, h, C, x]) > 1 || d(p, h);
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);
3033
2999
  });
3034
- }, v && (r[p] = v(r[p])));
3000
+ }, v && (o[s] = v(o[s])));
3035
3001
  }
3036
- function d(p, v) {
3002
+ function c(s, v) {
3037
3003
  try {
3038
- i(o[p](v));
3004
+ i(r[s](v));
3039
3005
  } catch (h) {
3040
3006
  f(a[0][3], h);
3041
3007
  }
3042
3008
  }
3043
- function i(p) {
3044
- p.value instanceof Y ? Promise.resolve(p.value.v).then(c, s) : f(a[0][2], p);
3009
+ function i(s) {
3010
+ s.value instanceof J ? Promise.resolve(s.value.v).then(p, d) : f(a[0][2], s);
3045
3011
  }
3046
- function c(p) {
3047
- d("next", p);
3012
+ function p(s) {
3013
+ c("next", s);
3048
3014
  }
3049
- function s(p) {
3050
- d("throw", p);
3015
+ function d(s) {
3016
+ c("throw", s);
3051
3017
  }
3052
- function f(p, v) {
3053
- p(v), a.shift(), a.length && d(a[0][0], a[0][1]);
3018
+ function f(s, v) {
3019
+ s(v), a.shift(), a.length && c(a[0][0], a[0][1]);
3054
3020
  }
3055
3021
  }
3056
- function Do(e) {
3022
+ function $r(e) {
3057
3023
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3058
3024
  var n = e[Symbol.asyncIterator], t;
3059
- return n ? n.call(e) : (e = typeof X == "function" ? X(e) : e[Symbol.iterator](), t = {}, o("next"), o("throw"), o("return"), t[Symbol.asyncIterator] = function() {
3025
+ 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() {
3060
3026
  return this;
3061
3027
  }, t);
3062
- function o(a) {
3028
+ function r(a) {
3063
3029
  t[a] = e[a] && function(l) {
3064
- return new Promise(function(u, d) {
3065
- l = e[a](l), r(u, d, l.done, l.value);
3030
+ return new Promise(function(u, c) {
3031
+ l = e[a](l), o(u, c, l.done, l.value);
3066
3032
  });
3067
3033
  };
3068
3034
  }
3069
- function r(a, l, u, d) {
3070
- Promise.resolve(d).then(function(i) {
3035
+ function o(a, l, u, c) {
3036
+ Promise.resolve(c).then(function(i) {
3071
3037
  a({ value: i, done: u });
3072
3038
  }, l);
3073
3039
  }
3074
3040
  }
3075
- function N(e) {
3041
+ function O(e) {
3076
3042
  return typeof e == "function";
3077
3043
  }
3078
- function it(e) {
3079
- var n = function(o) {
3080
- Error.call(o), o.stack = new Error().stack;
3044
+ function ut(e) {
3045
+ var n = function(r) {
3046
+ Error.call(r), r.stack = new Error().stack;
3081
3047
  }, t = e(n);
3082
3048
  return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
3083
3049
  }
3084
- var de = it(function(e) {
3050
+ var fe = ut(function(e) {
3085
3051
  return function(t) {
3086
3052
  e(this), this.message = t ? t.length + ` errors occurred during unsubscription:
3087
- ` + t.map(function(o, r) {
3088
- return r + 1 + ") " + o.toString();
3053
+ ` + t.map(function(r, o) {
3054
+ return o + 1 + ") " + r.toString();
3089
3055
  }).join(`
3090
3056
  `) : "", this.name = "UnsubscriptionError", this.errors = t;
3091
3057
  };
3092
3058
  });
3093
- function le(e, n) {
3059
+ function se(e, n) {
3094
3060
  if (e) {
3095
3061
  var t = e.indexOf(n);
3096
3062
  0 <= t && e.splice(t, 1);
3097
3063
  }
3098
3064
  }
3099
- var te = function() {
3065
+ var ne = function() {
3100
3066
  function e(n) {
3101
3067
  this.initialTeardown = n, this.closed = !1, this._parentage = null, this._finalizers = null;
3102
3068
  }
3103
3069
  return e.prototype.unsubscribe = function() {
3104
- var n, t, o, r, a;
3070
+ var n, t, r, o, a;
3105
3071
  if (!this.closed) {
3106
3072
  this.closed = !0;
3107
3073
  var l = this._parentage;
3108
3074
  if (l)
3109
3075
  if (this._parentage = null, Array.isArray(l))
3110
3076
  try {
3111
- for (var u = X(l), d = u.next(); !d.done; d = u.next()) {
3112
- var i = d.value;
3077
+ for (var u = X(l), c = u.next(); !c.done; c = u.next()) {
3078
+ var i = c.value;
3113
3079
  i.remove(this);
3114
3080
  }
3115
3081
  } catch (h) {
3116
3082
  n = { error: h };
3117
3083
  } finally {
3118
3084
  try {
3119
- d && !d.done && (t = u.return) && t.call(u);
3085
+ c && !c.done && (t = u.return) && t.call(u);
3120
3086
  } finally {
3121
3087
  if (n) throw n.error;
3122
3088
  }
3123
3089
  }
3124
3090
  else
3125
3091
  l.remove(this);
3126
- var c = this.initialTeardown;
3127
- if (N(c))
3092
+ var p = this.initialTeardown;
3093
+ if (O(p))
3128
3094
  try {
3129
- c();
3095
+ p();
3130
3096
  } catch (h) {
3131
- a = h instanceof de ? h.errors : [h];
3097
+ a = h instanceof fe ? h.errors : [h];
3132
3098
  }
3133
- var s = this._finalizers;
3134
- if (s) {
3099
+ var d = this._finalizers;
3100
+ if (d) {
3135
3101
  this._finalizers = null;
3136
3102
  try {
3137
- for (var f = X(s), p = f.next(); !p.done; p = f.next()) {
3138
- var v = p.value;
3103
+ for (var f = X(d), s = f.next(); !s.done; s = f.next()) {
3104
+ var v = s.value;
3139
3105
  try {
3140
- De(v);
3106
+ Le(v);
3141
3107
  } catch (h) {
3142
- a = a ?? [], h instanceof de ? a = ie(ie([], ae(a)), ae(h.errors)) : a.push(h);
3108
+ a = a ?? [], h instanceof fe ? a = ue(ue([], le(a)), le(h.errors)) : a.push(h);
3143
3109
  }
3144
3110
  }
3145
3111
  } catch (h) {
3146
- o = { error: h };
3112
+ r = { error: h };
3147
3113
  } finally {
3148
3114
  try {
3149
- p && !p.done && (r = f.return) && r.call(f);
3115
+ s && !s.done && (o = f.return) && o.call(f);
3150
3116
  } finally {
3151
- if (o) throw o.error;
3117
+ if (r) throw r.error;
3152
3118
  }
3153
3119
  }
3154
3120
  }
3155
3121
  if (a)
3156
- throw new de(a);
3122
+ throw new fe(a);
3157
3123
  }
3158
3124
  }, e.prototype.add = function(n) {
3159
3125
  var t;
3160
3126
  if (n && n !== this)
3161
3127
  if (this.closed)
3162
- De(n);
3128
+ Le(n);
3163
3129
  else {
3164
3130
  if (n instanceof e) {
3165
3131
  if (n.closed || n._hasParent(this))
@@ -3176,56 +3142,56 @@ var te = function() {
3176
3142
  this._parentage = Array.isArray(t) ? (t.push(n), t) : t ? [t, n] : n;
3177
3143
  }, e.prototype._removeParent = function(n) {
3178
3144
  var t = this._parentage;
3179
- t === n ? this._parentage = null : Array.isArray(t) && le(t, n);
3145
+ t === n ? this._parentage = null : Array.isArray(t) && se(t, n);
3180
3146
  }, e.prototype.remove = function(n) {
3181
3147
  var t = this._finalizers;
3182
- t && le(t, n), n instanceof e && n._removeParent(this);
3148
+ t && se(t, n), n instanceof e && n._removeParent(this);
3183
3149
  }, e.EMPTY = function() {
3184
3150
  var n = new e();
3185
3151
  return n.closed = !0, n;
3186
3152
  }(), e;
3187
- }(), lt = te.EMPTY;
3188
- function ut(e) {
3189
- return e instanceof te || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
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);
3190
3156
  }
3191
- function De(e) {
3192
- N(e) ? e() : e.unsubscribe();
3157
+ function Le(e) {
3158
+ O(e) ? e() : e.unsubscribe();
3193
3159
  }
3194
- var st = {
3160
+ var dt = {
3195
3161
  onUnhandledError: null,
3196
3162
  onStoppedNotification: null,
3197
3163
  Promise: void 0,
3198
3164
  useDeprecatedSynchronousErrorHandling: !1,
3199
3165
  useDeprecatedNextContext: !1
3200
- }, Lo = {
3166
+ }, Lr = {
3201
3167
  setTimeout: function(e, n) {
3202
- for (var t = [], o = 2; o < arguments.length; o++)
3203
- t[o - 2] = arguments[o];
3204
- return setTimeout.apply(void 0, ie([e, n], ae(t)));
3168
+ for (var t = [], r = 2; r < arguments.length; r++)
3169
+ t[r - 2] = arguments[r];
3170
+ return setTimeout.apply(void 0, ue([e, n], le(t)));
3205
3171
  },
3206
3172
  clearTimeout: function(e) {
3207
3173
  return clearTimeout(e);
3208
3174
  },
3209
3175
  delegate: void 0
3210
3176
  };
3211
- function ct(e) {
3212
- Lo.setTimeout(function() {
3177
+ function pt(e) {
3178
+ Lr.setTimeout(function() {
3213
3179
  throw e;
3214
3180
  });
3215
3181
  }
3216
- function Le() {
3182
+ function Ue() {
3217
3183
  }
3218
- function re(e) {
3184
+ function ae(e) {
3219
3185
  e();
3220
3186
  }
3221
- var Fe = function(e) {
3222
- z(n, e);
3187
+ var ke = function(e) {
3188
+ W(n, e);
3223
3189
  function n(t) {
3224
- var o = e.call(this) || this;
3225
- return o.isStopped = !1, t ? (o.destination = t, ut(t) && t.add(o)) : o.destination = Ro, o;
3190
+ var r = e.call(this) || this;
3191
+ return r.isStopped = !1, t ? (r.destination = t, ct(t) && t.add(r)) : r.destination = Gr, r;
3226
3192
  }
3227
- return n.create = function(t, o, r) {
3228
- return new be(t, o, r);
3193
+ return n.create = function(t, r, o) {
3194
+ return new Se(t, r, o);
3229
3195
  }, n.prototype.next = function(t) {
3230
3196
  this.isStopped || this._next(t);
3231
3197
  }, n.prototype.error = function(t) {
@@ -3249,11 +3215,11 @@ var Fe = function(e) {
3249
3215
  this.unsubscribe();
3250
3216
  }
3251
3217
  }, n;
3252
- }(te), jo = Function.prototype.bind;
3253
- function pe(e, n) {
3254
- return jo.call(e, n);
3218
+ }(ne), Ur = Function.prototype.bind;
3219
+ function ve(e, n) {
3220
+ return Ur.call(e, n);
3255
3221
  }
3256
- var $o = function() {
3222
+ var _r = function() {
3257
3223
  function e(n) {
3258
3224
  this.partialObserver = n;
3259
3225
  }
@@ -3262,16 +3228,16 @@ var $o = function() {
3262
3228
  if (t.next)
3263
3229
  try {
3264
3230
  t.next(n);
3265
- } catch (o) {
3266
- oe(o);
3231
+ } catch (r) {
3232
+ oe(r);
3267
3233
  }
3268
3234
  }, e.prototype.error = function(n) {
3269
3235
  var t = this.partialObserver;
3270
3236
  if (t.error)
3271
3237
  try {
3272
3238
  t.error(n);
3273
- } catch (o) {
3274
- oe(o);
3239
+ } catch (r) {
3240
+ oe(r);
3275
3241
  }
3276
3242
  else
3277
3243
  oe(n);
@@ -3284,66 +3250,66 @@ var $o = function() {
3284
3250
  oe(t);
3285
3251
  }
3286
3252
  }, e;
3287
- }(), be = function(e) {
3288
- z(n, e);
3289
- function n(t, o, r) {
3253
+ }(), Se = function(e) {
3254
+ W(n, e);
3255
+ function n(t, r, o) {
3290
3256
  var a = e.call(this) || this, l;
3291
- if (N(t) || !t)
3257
+ if (O(t) || !t)
3292
3258
  l = {
3293
3259
  next: t ?? void 0,
3294
- error: o ?? void 0,
3295
- complete: r ?? void 0
3260
+ error: r ?? void 0,
3261
+ complete: o ?? void 0
3296
3262
  };
3297
3263
  else {
3298
3264
  var u;
3299
- a && st.useDeprecatedNextContext ? (u = Object.create(t), u.unsubscribe = function() {
3265
+ a && dt.useDeprecatedNextContext ? (u = Object.create(t), u.unsubscribe = function() {
3300
3266
  return a.unsubscribe();
3301
3267
  }, l = {
3302
- next: t.next && pe(t.next, u),
3303
- error: t.error && pe(t.error, u),
3304
- complete: t.complete && pe(t.complete, u)
3268
+ next: t.next && ve(t.next, u),
3269
+ error: t.error && ve(t.error, u),
3270
+ complete: t.complete && ve(t.complete, u)
3305
3271
  }) : l = t;
3306
3272
  }
3307
- return a.destination = new $o(l), a;
3273
+ return a.destination = new _r(l), a;
3308
3274
  }
3309
3275
  return n;
3310
- }(Fe);
3276
+ }(ke);
3311
3277
  function oe(e) {
3312
- ct(e);
3278
+ pt(e);
3313
3279
  }
3314
- function Uo(e) {
3280
+ function Rr(e) {
3315
3281
  throw e;
3316
3282
  }
3317
- var Ro = {
3283
+ var Gr = {
3318
3284
  closed: !0,
3319
- next: Le,
3320
- error: Uo,
3321
- complete: Le
3322
- }, Me = function() {
3285
+ next: Ue,
3286
+ error: Rr,
3287
+ complete: Ue
3288
+ }, Ee = function() {
3323
3289
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
3324
3290
  }();
3325
- function _o(e) {
3291
+ function Hr(e) {
3326
3292
  return e;
3327
3293
  }
3328
- function Go(e) {
3329
- return e.length === 0 ? _o : e.length === 1 ? e[0] : function(t) {
3330
- return e.reduce(function(o, r) {
3331
- return r(o);
3294
+ function qr(e) {
3295
+ return e.length === 0 ? Hr : e.length === 1 ? e[0] : function(t) {
3296
+ return e.reduce(function(r, o) {
3297
+ return o(r);
3332
3298
  }, t);
3333
3299
  };
3334
3300
  }
3335
- var _ = function() {
3301
+ var R = function() {
3336
3302
  function e(n) {
3337
3303
  n && (this._subscribe = n);
3338
3304
  }
3339
3305
  return e.prototype.lift = function(n) {
3340
3306
  var t = new e();
3341
3307
  return t.source = this, t.operator = n, t;
3342
- }, e.prototype.subscribe = function(n, t, o) {
3343
- var r = this, a = qo(n) ? n : new be(n, t, o);
3344
- return re(function() {
3345
- var l = r, u = l.operator, d = l.source;
3346
- a.add(u ? u.call(a, d) : d ? r._subscribe(a) : r._trySubscribe(a));
3308
+ }, e.prototype.subscribe = function(n, t, r) {
3309
+ var o = this, a = zr(n) ? n : new Se(n, t, r);
3310
+ 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));
3347
3313
  }), a;
3348
3314
  }, e.prototype._trySubscribe = function(n) {
3349
3315
  try {
@@ -3352,164 +3318,164 @@ var _ = function() {
3352
3318
  n.error(t);
3353
3319
  }
3354
3320
  }, e.prototype.forEach = function(n, t) {
3355
- var o = this;
3356
- return t = je(t), new t(function(r, a) {
3357
- var l = new be({
3321
+ var r = this;
3322
+ return t = _e(t), new t(function(o, a) {
3323
+ var l = new Se({
3358
3324
  next: function(u) {
3359
3325
  try {
3360
3326
  n(u);
3361
- } catch (d) {
3362
- a(d), l.unsubscribe();
3327
+ } catch (c) {
3328
+ a(c), l.unsubscribe();
3363
3329
  }
3364
3330
  },
3365
3331
  error: a,
3366
- complete: r
3332
+ complete: o
3367
3333
  });
3368
- o.subscribe(l);
3334
+ r.subscribe(l);
3369
3335
  });
3370
3336
  }, e.prototype._subscribe = function(n) {
3371
3337
  var t;
3372
3338
  return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(n);
3373
- }, e.prototype[Me] = function() {
3339
+ }, e.prototype[Ee] = function() {
3374
3340
  return this;
3375
3341
  }, e.prototype.pipe = function() {
3376
3342
  for (var n = [], t = 0; t < arguments.length; t++)
3377
3343
  n[t] = arguments[t];
3378
- return Go(n)(this);
3344
+ return qr(n)(this);
3379
3345
  }, e.prototype.toPromise = function(n) {
3380
3346
  var t = this;
3381
- return n = je(n), new n(function(o, r) {
3347
+ return n = _e(n), new n(function(r, o) {
3382
3348
  var a;
3383
3349
  t.subscribe(function(l) {
3384
3350
  return a = l;
3385
3351
  }, function(l) {
3386
- return r(l);
3352
+ return o(l);
3387
3353
  }, function() {
3388
- return o(a);
3354
+ return r(a);
3389
3355
  });
3390
3356
  });
3391
3357
  }, e.create = function(n) {
3392
3358
  return new e(n);
3393
3359
  }, e;
3394
3360
  }();
3395
- function je(e) {
3361
+ function _e(e) {
3396
3362
  var n;
3397
- return (n = e ?? st.Promise) !== null && n !== void 0 ? n : Promise;
3363
+ return (n = e ?? dt.Promise) !== null && n !== void 0 ? n : Promise;
3398
3364
  }
3399
- function Ho(e) {
3400
- return e && N(e.next) && N(e.error) && N(e.complete);
3365
+ function Wr(e) {
3366
+ return e && O(e.next) && O(e.error) && O(e.complete);
3401
3367
  }
3402
- function qo(e) {
3403
- return e && e instanceof Fe || Ho(e) && ut(e);
3368
+ function zr(e) {
3369
+ return e && e instanceof ke || Wr(e) && ct(e);
3404
3370
  }
3405
- function zo(e) {
3406
- return N(e == null ? void 0 : e.lift);
3371
+ function Yr(e) {
3372
+ return O(e == null ? void 0 : e.lift);
3407
3373
  }
3408
- function Pe(e) {
3374
+ function Ae(e) {
3409
3375
  return function(n) {
3410
- if (zo(n))
3376
+ if (Yr(n))
3411
3377
  return n.lift(function(t) {
3412
3378
  try {
3413
3379
  return e(t, this);
3414
- } catch (o) {
3415
- this.error(o);
3380
+ } catch (r) {
3381
+ this.error(r);
3416
3382
  }
3417
3383
  });
3418
3384
  throw new TypeError("Unable to lift unknown Observable type");
3419
3385
  };
3420
3386
  }
3421
- function dt(e, n, t, o, r) {
3422
- return new Wo(e, n, t, o, r);
3387
+ function ft(e, n, t, r, o) {
3388
+ return new Zr(e, n, t, r, o);
3423
3389
  }
3424
- var Wo = function(e) {
3425
- z(n, e);
3426
- function n(t, o, r, a, l, u) {
3427
- var d = e.call(this, t) || this;
3428
- return d.onFinalize = l, d.shouldUnsubscribe = u, d._next = o ? function(i) {
3390
+ var Zr = function(e) {
3391
+ W(n, e);
3392
+ 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) {
3429
3395
  try {
3430
- o(i);
3431
- } catch (c) {
3432
- t.error(c);
3396
+ r(i);
3397
+ } catch (p) {
3398
+ t.error(p);
3433
3399
  }
3434
- } : e.prototype._next, d._error = a ? function(i) {
3400
+ } : e.prototype._next, c._error = a ? function(i) {
3435
3401
  try {
3436
3402
  a(i);
3437
- } catch (c) {
3438
- t.error(c);
3403
+ } catch (p) {
3404
+ t.error(p);
3439
3405
  } finally {
3440
3406
  this.unsubscribe();
3441
3407
  }
3442
- } : e.prototype._error, d._complete = r ? function() {
3408
+ } : e.prototype._error, c._complete = o ? function() {
3443
3409
  try {
3444
- r();
3410
+ o();
3445
3411
  } catch (i) {
3446
3412
  t.error(i);
3447
3413
  } finally {
3448
3414
  this.unsubscribe();
3449
3415
  }
3450
- } : e.prototype._complete, d;
3416
+ } : e.prototype._complete, c;
3451
3417
  }
3452
3418
  return n.prototype.unsubscribe = function() {
3453
3419
  var t;
3454
3420
  if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
3455
- var o = this.closed;
3456
- e.prototype.unsubscribe.call(this), !o && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
3421
+ var r = this.closed;
3422
+ e.prototype.unsubscribe.call(this), !r && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
3457
3423
  }
3458
3424
  }, n;
3459
- }(Fe), Qo = it(function(e) {
3425
+ }(ke), Jr = ut(function(e) {
3460
3426
  return function() {
3461
3427
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
3462
3428
  };
3463
- }), pt = function(e) {
3464
- z(n, e);
3429
+ }), vt = function(e) {
3430
+ W(n, e);
3465
3431
  function n() {
3466
3432
  var t = e.call(this) || this;
3467
3433
  return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
3468
3434
  }
3469
3435
  return n.prototype.lift = function(t) {
3470
- var o = new $e(this, this);
3471
- return o.operator = t, o;
3436
+ var r = new Re(this, this);
3437
+ return r.operator = t, r;
3472
3438
  }, n.prototype._throwIfClosed = function() {
3473
3439
  if (this.closed)
3474
- throw new Qo();
3440
+ throw new Jr();
3475
3441
  }, n.prototype.next = function(t) {
3476
- var o = this;
3477
- re(function() {
3478
- var r, a;
3479
- if (o._throwIfClosed(), !o.isStopped) {
3480
- o.currentObservers || (o.currentObservers = Array.from(o.observers));
3442
+ var r = this;
3443
+ ae(function() {
3444
+ var o, a;
3445
+ if (r._throwIfClosed(), !r.isStopped) {
3446
+ r.currentObservers || (r.currentObservers = Array.from(r.observers));
3481
3447
  try {
3482
- for (var l = X(o.currentObservers), u = l.next(); !u.done; u = l.next()) {
3483
- var d = u.value;
3484
- d.next(t);
3448
+ for (var l = X(r.currentObservers), u = l.next(); !u.done; u = l.next()) {
3449
+ var c = u.value;
3450
+ c.next(t);
3485
3451
  }
3486
3452
  } catch (i) {
3487
- r = { error: i };
3453
+ o = { error: i };
3488
3454
  } finally {
3489
3455
  try {
3490
3456
  u && !u.done && (a = l.return) && a.call(l);
3491
3457
  } finally {
3492
- if (r) throw r.error;
3458
+ if (o) throw o.error;
3493
3459
  }
3494
3460
  }
3495
3461
  }
3496
3462
  });
3497
3463
  }, n.prototype.error = function(t) {
3498
- var o = this;
3499
- re(function() {
3500
- if (o._throwIfClosed(), !o.isStopped) {
3501
- o.hasError = o.isStopped = !0, o.thrownError = t;
3502
- for (var r = o.observers; r.length; )
3503
- r.shift().error(t);
3464
+ var r = this;
3465
+ ae(function() {
3466
+ if (r._throwIfClosed(), !r.isStopped) {
3467
+ r.hasError = r.isStopped = !0, r.thrownError = t;
3468
+ for (var o = r.observers; o.length; )
3469
+ o.shift().error(t);
3504
3470
  }
3505
3471
  });
3506
3472
  }, n.prototype.complete = function() {
3507
3473
  var t = this;
3508
- re(function() {
3474
+ ae(function() {
3509
3475
  if (t._throwIfClosed(), !t.isStopped) {
3510
3476
  t.isStopped = !0;
3511
- for (var o = t.observers; o.length; )
3512
- o.shift().complete();
3477
+ for (var r = t.observers; r.length; )
3478
+ r.shift().complete();
3513
3479
  }
3514
3480
  });
3515
3481
  }, n.prototype.unsubscribe = function() {
@@ -3526,184 +3492,184 @@ var Wo = function(e) {
3526
3492
  }, n.prototype._subscribe = function(t) {
3527
3493
  return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
3528
3494
  }, n.prototype._innerSubscribe = function(t) {
3529
- var o = this, r = this, a = r.hasError, l = r.isStopped, u = r.observers;
3530
- return a || l ? lt : (this.currentObservers = null, u.push(t), new te(function() {
3531
- o.currentObservers = null, le(u, t);
3495
+ 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() {
3497
+ r.currentObservers = null, se(u, t);
3532
3498
  }));
3533
3499
  }, n.prototype._checkFinalizedStatuses = function(t) {
3534
- var o = this, r = o.hasError, a = o.thrownError, l = o.isStopped;
3535
- r ? t.error(a) : l && t.complete();
3500
+ var r = this, o = r.hasError, a = r.thrownError, l = r.isStopped;
3501
+ o ? t.error(a) : l && t.complete();
3536
3502
  }, n.prototype.asObservable = function() {
3537
- var t = new _();
3503
+ var t = new R();
3538
3504
  return t.source = this, t;
3539
- }, n.create = function(t, o) {
3540
- return new $e(t, o);
3505
+ }, n.create = function(t, r) {
3506
+ return new Re(t, r);
3541
3507
  }, n;
3542
- }(_), $e = function(e) {
3543
- z(n, e);
3544
- function n(t, o) {
3545
- var r = e.call(this) || this;
3546
- return r.destination = t, r.source = o, r;
3508
+ }(R), Re = function(e) {
3509
+ W(n, e);
3510
+ function n(t, r) {
3511
+ var o = e.call(this) || this;
3512
+ return o.destination = t, o.source = r, o;
3547
3513
  }
3548
3514
  return n.prototype.next = function(t) {
3549
- var o, r;
3550
- (r = (o = this.destination) === null || o === void 0 ? void 0 : o.next) === null || r === void 0 || r.call(o, t);
3515
+ var r, o;
3516
+ (o = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || o === void 0 || o.call(r, t);
3551
3517
  }, n.prototype.error = function(t) {
3552
- var o, r;
3553
- (r = (o = this.destination) === null || o === void 0 ? void 0 : o.error) === null || r === void 0 || r.call(o, t);
3518
+ var r, o;
3519
+ (o = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || o === void 0 || o.call(r, t);
3554
3520
  }, n.prototype.complete = function() {
3555
- var t, o;
3556
- (o = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || o === void 0 || o.call(t);
3521
+ var t, r;
3522
+ (r = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || r === void 0 || r.call(t);
3557
3523
  }, n.prototype._subscribe = function(t) {
3558
- var o, r;
3559
- return (r = (o = this.source) === null || o === void 0 ? void 0 : o.subscribe(t)) !== null && r !== void 0 ? r : lt;
3524
+ var r, o;
3525
+ return (o = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t)) !== null && o !== void 0 ? o : st;
3560
3526
  }, n;
3561
- }(pt), Yo = {
3527
+ }(vt), Qr = {
3562
3528
  now: function() {
3563
3529
  return Date.now();
3564
3530
  },
3565
3531
  delegate: void 0
3566
- }, Zo = function(e) {
3567
- z(n, e);
3568
- function n(t, o) {
3532
+ }, Xr = function(e) {
3533
+ W(n, e);
3534
+ function n(t, r) {
3569
3535
  return e.call(this) || this;
3570
3536
  }
3571
- return n.prototype.schedule = function(t, o) {
3537
+ return n.prototype.schedule = function(t, r) {
3572
3538
  return this;
3573
3539
  }, n;
3574
- }(te), Ue = {
3540
+ }(ne), Ge = {
3575
3541
  setInterval: function(e, n) {
3576
- for (var t = [], o = 2; o < arguments.length; o++)
3577
- t[o - 2] = arguments[o];
3578
- return setInterval.apply(void 0, ie([e, n], ae(t)));
3542
+ for (var t = [], r = 2; r < arguments.length; r++)
3543
+ t[r - 2] = arguments[r];
3544
+ return setInterval.apply(void 0, ue([e, n], le(t)));
3579
3545
  },
3580
3546
  clearInterval: function(e) {
3581
3547
  return clearInterval(e);
3582
3548
  },
3583
3549
  delegate: void 0
3584
- }, Xo = function(e) {
3585
- z(n, e);
3586
- function n(t, o) {
3587
- var r = e.call(this, t, o) || this;
3588
- return r.scheduler = t, r.work = o, r.pending = !1, r;
3550
+ }, Kr = function(e) {
3551
+ W(n, e);
3552
+ function n(t, r) {
3553
+ var o = e.call(this, t, r) || this;
3554
+ return o.scheduler = t, o.work = r, o.pending = !1, o;
3589
3555
  }
3590
- return n.prototype.schedule = function(t, o) {
3591
- var r;
3592
- if (o === void 0 && (o = 0), this.closed)
3556
+ return n.prototype.schedule = function(t, r) {
3557
+ var o;
3558
+ if (r === void 0 && (r = 0), this.closed)
3593
3559
  return this;
3594
3560
  this.state = t;
3595
3561
  var a = this.id, l = this.scheduler;
3596
- return a != null && (this.id = this.recycleAsyncId(l, a, o)), this.pending = !0, this.delay = o, this.id = (r = this.id) !== null && r !== void 0 ? r : this.requestAsyncId(l, this.id, o), this;
3597
- }, n.prototype.requestAsyncId = function(t, o, r) {
3598
- return r === void 0 && (r = 0), Ue.setInterval(t.flush.bind(t, this), r);
3599
- }, n.prototype.recycleAsyncId = function(t, o, r) {
3600
- if (r === void 0 && (r = 0), r != null && this.delay === r && this.pending === !1)
3601
- return o;
3602
- o != null && Ue.clearInterval(o);
3603
- }, n.prototype.execute = function(t, o) {
3562
+ return a != null && (this.id = this.recycleAsyncId(l, a, r)), this.pending = !0, this.delay = r, this.id = (o = this.id) !== null && o !== void 0 ? o : this.requestAsyncId(l, this.id, r), this;
3563
+ }, n.prototype.requestAsyncId = function(t, r, o) {
3564
+ return o === void 0 && (o = 0), Ge.setInterval(t.flush.bind(t, this), o);
3565
+ }, n.prototype.recycleAsyncId = function(t, r, o) {
3566
+ if (o === void 0 && (o = 0), o != null && this.delay === o && this.pending === !1)
3567
+ return r;
3568
+ r != null && Ge.clearInterval(r);
3569
+ }, n.prototype.execute = function(t, r) {
3604
3570
  if (this.closed)
3605
3571
  return new Error("executing a cancelled action");
3606
3572
  this.pending = !1;
3607
- var r = this._execute(t, o);
3608
- if (r)
3609
- return r;
3573
+ var o = this._execute(t, r);
3574
+ if (o)
3575
+ return o;
3610
3576
  this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null));
3611
- }, n.prototype._execute = function(t, o) {
3612
- var r = !1, a;
3577
+ }, n.prototype._execute = function(t, r) {
3578
+ var o = !1, a;
3613
3579
  try {
3614
3580
  this.work(t);
3615
3581
  } catch (l) {
3616
- r = !0, a = l || new Error("Scheduled action threw falsy error");
3582
+ o = !0, a = l || new Error("Scheduled action threw falsy error");
3617
3583
  }
3618
- if (r)
3584
+ if (o)
3619
3585
  return this.unsubscribe(), a;
3620
3586
  }, n.prototype.unsubscribe = function() {
3621
3587
  if (!this.closed) {
3622
- var t = this, o = t.id, r = t.scheduler, a = r.actions;
3623
- this.work = this.state = this.scheduler = null, this.pending = !1, le(a, this), o != null && (this.id = this.recycleAsyncId(r, o, null)), this.delay = null, e.prototype.unsubscribe.call(this);
3588
+ var t = this, r = t.id, o = t.scheduler, a = o.actions;
3589
+ 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);
3624
3590
  }
3625
3591
  }, n;
3626
- }(Zo), Re = function() {
3592
+ }(Xr), He = function() {
3627
3593
  function e(n, t) {
3628
3594
  t === void 0 && (t = e.now), this.schedulerActionCtor = n, this.now = t;
3629
3595
  }
3630
- return e.prototype.schedule = function(n, t, o) {
3631
- return t === void 0 && (t = 0), new this.schedulerActionCtor(this, n).schedule(o, t);
3632
- }, e.now = Yo.now, e;
3633
- }(), Ko = function(e) {
3634
- z(n, e);
3635
- function n(t, o) {
3636
- o === void 0 && (o = Re.now);
3637
- var r = e.call(this, t, o) || this;
3638
- return r.actions = [], r._active = !1, r;
3596
+ return e.prototype.schedule = function(n, t, r) {
3597
+ 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);
3601
+ function n(t, r) {
3602
+ r === void 0 && (r = He.now);
3603
+ var o = e.call(this, t, r) || this;
3604
+ return o.actions = [], o._active = !1, o;
3639
3605
  }
3640
3606
  return n.prototype.flush = function(t) {
3641
- var o = this.actions;
3607
+ var r = this.actions;
3642
3608
  if (this._active) {
3643
- o.push(t);
3609
+ r.push(t);
3644
3610
  return;
3645
3611
  }
3646
- var r;
3612
+ var o;
3647
3613
  this._active = !0;
3648
3614
  do
3649
- if (r = t.execute(t.state, t.delay))
3615
+ if (o = t.execute(t.state, t.delay))
3650
3616
  break;
3651
- while (t = o.shift());
3652
- if (this._active = !1, r) {
3653
- for (; t = o.shift(); )
3617
+ while (t = r.shift());
3618
+ if (this._active = !1, o) {
3619
+ for (; t = r.shift(); )
3654
3620
  t.unsubscribe();
3655
- throw r;
3621
+ throw o;
3656
3622
  }
3657
3623
  }, n;
3658
- }(Re), Jo = new Ko(Xo);
3659
- function er(e) {
3660
- return e && N(e.schedule);
3624
+ }(He), to = new eo(Kr);
3625
+ function no(e) {
3626
+ return e && O(e.schedule);
3661
3627
  }
3662
- function tr(e) {
3628
+ function ro(e) {
3663
3629
  return e[e.length - 1];
3664
3630
  }
3665
- function nr(e) {
3666
- return er(tr(e)) ? e.pop() : void 0;
3631
+ function oo(e) {
3632
+ return no(ro(e)) ? e.pop() : void 0;
3667
3633
  }
3668
- var ft = function(e) {
3634
+ var yt = function(e) {
3669
3635
  return e && typeof e.length == "number" && typeof e != "function";
3670
3636
  };
3671
- function vt(e) {
3672
- return N(e == null ? void 0 : e.then);
3673
- }
3674
3637
  function mt(e) {
3675
- return N(e[Me]);
3676
- }
3677
- function yt(e) {
3678
- return Symbol.asyncIterator && N(e == null ? void 0 : e[Symbol.asyncIterator]);
3638
+ return O(e == null ? void 0 : e.then);
3679
3639
  }
3680
3640
  function ht(e) {
3641
+ return O(e[Ee]);
3642
+ }
3643
+ function bt(e) {
3644
+ return Symbol.asyncIterator && O(e == null ? void 0 : e[Symbol.asyncIterator]);
3645
+ }
3646
+ function gt(e) {
3681
3647
  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.");
3682
3648
  }
3683
- function or() {
3649
+ function ao() {
3684
3650
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
3685
3651
  }
3686
- var bt = or();
3687
- function gt(e) {
3688
- return N(e == null ? void 0 : e[bt]);
3652
+ var St = ao();
3653
+ function wt(e) {
3654
+ return O(e == null ? void 0 : e[St]);
3689
3655
  }
3690
- function St(e) {
3691
- return Oo(this, arguments, function() {
3692
- var t, o, r, a;
3693
- return at(this, function(l) {
3656
+ function Ct(e) {
3657
+ return Dr(this, arguments, function() {
3658
+ var t, r, o, a;
3659
+ return lt(this, function(l) {
3694
3660
  switch (l.label) {
3695
3661
  case 0:
3696
3662
  t = e.getReader(), l.label = 1;
3697
3663
  case 1:
3698
3664
  l.trys.push([1, , 9, 10]), l.label = 2;
3699
3665
  case 2:
3700
- return [4, Y(t.read())];
3666
+ return [4, J(t.read())];
3701
3667
  case 3:
3702
- return o = l.sent(), r = o.value, a = o.done, a ? [4, Y(void 0)] : [3, 5];
3668
+ return r = l.sent(), o = r.value, a = r.done, a ? [4, J(void 0)] : [3, 5];
3703
3669
  case 4:
3704
3670
  return [2, l.sent()];
3705
3671
  case 5:
3706
- return [4, Y(r)];
3672
+ return [4, J(o)];
3707
3673
  case 6:
3708
3674
  return [4, l.sent()];
3709
3675
  case 7:
@@ -3718,57 +3684,57 @@ function St(e) {
3718
3684
  });
3719
3685
  });
3720
3686
  }
3721
- function Ct(e) {
3722
- return N(e == null ? void 0 : e.getReader);
3687
+ function xt(e) {
3688
+ return O(e == null ? void 0 : e.getReader);
3723
3689
  }
3724
- function Ee(e) {
3725
- if (e instanceof _)
3690
+ function Pe(e) {
3691
+ if (e instanceof R)
3726
3692
  return e;
3727
3693
  if (e != null) {
3728
- if (mt(e))
3729
- return rr(e);
3730
- if (ft(e))
3731
- return ar(e);
3732
- if (vt(e))
3733
- return ir(e);
3694
+ if (ht(e))
3695
+ return io(e);
3734
3696
  if (yt(e))
3735
- return wt(e);
3736
- if (gt(e))
3737
- return lr(e);
3738
- if (Ct(e))
3739
- return ur(e);
3740
- }
3741
- throw ht(e);
3697
+ return lo(e);
3698
+ if (mt(e))
3699
+ return uo(e);
3700
+ if (bt(e))
3701
+ return Vt(e);
3702
+ if (wt(e))
3703
+ return so(e);
3704
+ if (xt(e))
3705
+ return co(e);
3706
+ }
3707
+ throw gt(e);
3742
3708
  }
3743
- function rr(e) {
3744
- return new _(function(n) {
3745
- var t = e[Me]();
3746
- if (N(t.subscribe))
3709
+ function io(e) {
3710
+ return new R(function(n) {
3711
+ var t = e[Ee]();
3712
+ if (O(t.subscribe))
3747
3713
  return t.subscribe(n);
3748
3714
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
3749
3715
  });
3750
3716
  }
3751
- function ar(e) {
3752
- return new _(function(n) {
3717
+ function lo(e) {
3718
+ return new R(function(n) {
3753
3719
  for (var t = 0; t < e.length && !n.closed; t++)
3754
3720
  n.next(e[t]);
3755
3721
  n.complete();
3756
3722
  });
3757
3723
  }
3758
- function ir(e) {
3759
- return new _(function(n) {
3724
+ function uo(e) {
3725
+ return new R(function(n) {
3760
3726
  e.then(function(t) {
3761
3727
  n.closed || (n.next(t), n.complete());
3762
3728
  }, function(t) {
3763
3729
  return n.error(t);
3764
- }).then(null, ct);
3730
+ }).then(null, pt);
3765
3731
  });
3766
3732
  }
3767
- function lr(e) {
3768
- return new _(function(n) {
3769
- var t, o;
3733
+ function so(e) {
3734
+ return new R(function(n) {
3735
+ var t, r;
3770
3736
  try {
3771
- for (var r = X(e), a = r.next(); !a.done; a = r.next()) {
3737
+ for (var o = X(e), a = o.next(); !a.done; a = o.next()) {
3772
3738
  var l = a.value;
3773
3739
  if (n.next(l), n.closed)
3774
3740
  return;
@@ -3777,7 +3743,7 @@ function lr(e) {
3777
3743
  t = { error: u };
3778
3744
  } finally {
3779
3745
  try {
3780
- a && !a.done && (o = r.return) && o.call(r);
3746
+ a && !a.done && (r = o.return) && r.call(o);
3781
3747
  } finally {
3782
3748
  if (t) throw t.error;
3783
3749
  }
@@ -3785,45 +3751,45 @@ function lr(e) {
3785
3751
  n.complete();
3786
3752
  });
3787
3753
  }
3788
- function wt(e) {
3789
- return new _(function(n) {
3790
- sr(e, n).catch(function(t) {
3754
+ function Vt(e) {
3755
+ return new R(function(n) {
3756
+ po(e, n).catch(function(t) {
3791
3757
  return n.error(t);
3792
3758
  });
3793
3759
  });
3794
3760
  }
3795
- function ur(e) {
3796
- return wt(St(e));
3761
+ function co(e) {
3762
+ return Vt(Ct(e));
3797
3763
  }
3798
- function sr(e, n) {
3799
- var t, o, r, a;
3800
- return No(this, void 0, void 0, function() {
3764
+ function po(e, n) {
3765
+ var t, r, o, a;
3766
+ return jr(this, void 0, void 0, function() {
3801
3767
  var l, u;
3802
- return at(this, function(d) {
3803
- switch (d.label) {
3768
+ return lt(this, function(c) {
3769
+ switch (c.label) {
3804
3770
  case 0:
3805
- d.trys.push([0, 5, 6, 11]), t = Do(e), d.label = 1;
3771
+ c.trys.push([0, 5, 6, 11]), t = $r(e), c.label = 1;
3806
3772
  case 1:
3807
3773
  return [4, t.next()];
3808
3774
  case 2:
3809
- if (o = d.sent(), !!o.done) return [3, 4];
3810
- if (l = o.value, n.next(l), n.closed)
3775
+ if (r = c.sent(), !!r.done) return [3, 4];
3776
+ if (l = r.value, n.next(l), n.closed)
3811
3777
  return [2];
3812
- d.label = 3;
3778
+ c.label = 3;
3813
3779
  case 3:
3814
3780
  return [3, 1];
3815
3781
  case 4:
3816
3782
  return [3, 11];
3817
3783
  case 5:
3818
- return u = d.sent(), r = { error: u }, [3, 11];
3784
+ return u = c.sent(), o = { error: u }, [3, 11];
3819
3785
  case 6:
3820
- return d.trys.push([6, , 9, 10]), o && !o.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
3786
+ return c.trys.push([6, , 9, 10]), r && !r.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
3821
3787
  case 7:
3822
- d.sent(), d.label = 8;
3788
+ c.sent(), c.label = 8;
3823
3789
  case 8:
3824
3790
  return [3, 10];
3825
3791
  case 9:
3826
- if (r) throw r.error;
3792
+ if (o) throw o.error;
3827
3793
  return [7];
3828
3794
  case 10:
3829
3795
  return [7];
@@ -3833,60 +3799,60 @@ function sr(e, n) {
3833
3799
  });
3834
3800
  });
3835
3801
  }
3836
- function W(e, n, t, o, r) {
3837
- o === void 0 && (o = 0), r === void 0 && (r = !1);
3802
+ function z(e, n, t, r, o) {
3803
+ r === void 0 && (r = 0), o === void 0 && (o = !1);
3838
3804
  var a = n.schedule(function() {
3839
- t(), r ? e.add(this.schedule(null, o)) : this.unsubscribe();
3840
- }, o);
3841
- if (e.add(a), !r)
3805
+ t(), o ? e.add(this.schedule(null, r)) : this.unsubscribe();
3806
+ }, r);
3807
+ if (e.add(a), !o)
3842
3808
  return a;
3843
3809
  }
3844
- function xt(e, n) {
3845
- return n === void 0 && (n = 0), Pe(function(t, o) {
3846
- t.subscribe(dt(o, function(r) {
3847
- return W(o, e, function() {
3848
- return o.next(r);
3810
+ function Tt(e, n) {
3811
+ return n === void 0 && (n = 0), Ae(function(t, r) {
3812
+ t.subscribe(ft(r, function(o) {
3813
+ return z(r, e, function() {
3814
+ return r.next(o);
3849
3815
  }, n);
3850
3816
  }, function() {
3851
- return W(o, e, function() {
3852
- return o.complete();
3817
+ return z(r, e, function() {
3818
+ return r.complete();
3853
3819
  }, n);
3854
- }, function(r) {
3855
- return W(o, e, function() {
3856
- return o.error(r);
3820
+ }, function(o) {
3821
+ return z(r, e, function() {
3822
+ return r.error(o);
3857
3823
  }, n);
3858
3824
  }));
3859
3825
  });
3860
3826
  }
3861
- function Vt(e, n) {
3862
- return n === void 0 && (n = 0), Pe(function(t, o) {
3863
- o.add(e.schedule(function() {
3864
- return t.subscribe(o);
3827
+ function Bt(e, n) {
3828
+ return n === void 0 && (n = 0), Ae(function(t, r) {
3829
+ r.add(e.schedule(function() {
3830
+ return t.subscribe(r);
3865
3831
  }, n));
3866
3832
  });
3867
3833
  }
3868
- function cr(e, n) {
3869
- return Ee(e).pipe(Vt(n), xt(n));
3834
+ function fo(e, n) {
3835
+ return Pe(e).pipe(Bt(n), Tt(n));
3870
3836
  }
3871
- function dr(e, n) {
3872
- return Ee(e).pipe(Vt(n), xt(n));
3837
+ function vo(e, n) {
3838
+ return Pe(e).pipe(Bt(n), Tt(n));
3873
3839
  }
3874
- function pr(e, n) {
3875
- return new _(function(t) {
3876
- var o = 0;
3840
+ function yo(e, n) {
3841
+ return new R(function(t) {
3842
+ var r = 0;
3877
3843
  return n.schedule(function() {
3878
- o === e.length ? t.complete() : (t.next(e[o++]), t.closed || this.schedule());
3844
+ r === e.length ? t.complete() : (t.next(e[r++]), t.closed || this.schedule());
3879
3845
  });
3880
3846
  });
3881
3847
  }
3882
- function fr(e, n) {
3883
- return new _(function(t) {
3884
- var o;
3885
- return W(t, n, function() {
3886
- o = e[bt](), W(t, n, function() {
3887
- var r, a, l;
3848
+ function mo(e, n) {
3849
+ return new R(function(t) {
3850
+ var r;
3851
+ return z(t, n, function() {
3852
+ r = e[St](), z(t, n, function() {
3853
+ var o, a, l;
3888
3854
  try {
3889
- r = o.next(), a = r.value, l = r.done;
3855
+ o = r.next(), a = o.value, l = o.done;
3890
3856
  } catch (u) {
3891
3857
  t.error(u);
3892
3858
  return;
@@ -3894,188 +3860,188 @@ function fr(e, n) {
3894
3860
  l ? t.complete() : t.next(a);
3895
3861
  }, 0, !0);
3896
3862
  }), function() {
3897
- return N(o == null ? void 0 : o.return) && o.return();
3863
+ return O(r == null ? void 0 : r.return) && r.return();
3898
3864
  };
3899
3865
  });
3900
3866
  }
3901
- function Tt(e, n) {
3867
+ function Ft(e, n) {
3902
3868
  if (!e)
3903
3869
  throw new Error("Iterable cannot be null");
3904
- return new _(function(t) {
3905
- W(t, n, function() {
3906
- var o = e[Symbol.asyncIterator]();
3907
- W(t, n, function() {
3908
- o.next().then(function(r) {
3909
- r.done ? t.complete() : t.next(r.value);
3870
+ return new R(function(t) {
3871
+ z(t, n, function() {
3872
+ var r = e[Symbol.asyncIterator]();
3873
+ z(t, n, function() {
3874
+ r.next().then(function(o) {
3875
+ o.done ? t.complete() : t.next(o.value);
3910
3876
  });
3911
3877
  }, 0, !0);
3912
3878
  });
3913
3879
  });
3914
3880
  }
3915
- function vr(e, n) {
3916
- return Tt(St(e), n);
3881
+ function ho(e, n) {
3882
+ return Ft(Ct(e), n);
3917
3883
  }
3918
- function mr(e, n) {
3884
+ function bo(e, n) {
3919
3885
  if (e != null) {
3920
- if (mt(e))
3921
- return cr(e, n);
3922
- if (ft(e))
3923
- return pr(e, n);
3924
- if (vt(e))
3925
- return dr(e, n);
3886
+ if (ht(e))
3887
+ return fo(e, n);
3926
3888
  if (yt(e))
3927
- return Tt(e, n);
3928
- if (gt(e))
3929
- return fr(e, n);
3930
- if (Ct(e))
3931
- return vr(e, n);
3932
- }
3933
- throw ht(e);
3889
+ return yo(e, n);
3890
+ if (mt(e))
3891
+ return vo(e, n);
3892
+ if (bt(e))
3893
+ return Ft(e, n);
3894
+ if (wt(e))
3895
+ return mo(e, n);
3896
+ if (xt(e))
3897
+ return ho(e, n);
3898
+ }
3899
+ throw gt(e);
3934
3900
  }
3935
- function yr(e, n) {
3936
- return n ? mr(e, n) : Ee(e);
3901
+ function go(e, n) {
3902
+ return n ? bo(e, n) : Pe(e);
3937
3903
  }
3938
- function hr() {
3904
+ function So() {
3939
3905
  for (var e = [], n = 0; n < arguments.length; n++)
3940
3906
  e[n] = arguments[n];
3941
- var t = nr(e);
3942
- return yr(e, t);
3907
+ var t = oo(e);
3908
+ return go(e, t);
3943
3909
  }
3944
- function br(e, n) {
3945
- return n === void 0 && (n = Jo), Pe(function(t, o) {
3946
- var r = null, a = null, l = null, u = function() {
3947
- if (r) {
3948
- r.unsubscribe(), r = null;
3910
+ function wo(e, n) {
3911
+ return n === void 0 && (n = to), Ae(function(t, r) {
3912
+ var o = null, a = null, l = null, u = function() {
3913
+ if (o) {
3914
+ o.unsubscribe(), o = null;
3949
3915
  var i = a;
3950
- a = null, o.next(i);
3916
+ a = null, r.next(i);
3951
3917
  }
3952
3918
  };
3953
- function d() {
3954
- var i = l + e, c = n.now();
3955
- if (c < i) {
3956
- r = this.schedule(void 0, i - c), o.add(r);
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);
3957
3923
  return;
3958
3924
  }
3959
3925
  u();
3960
3926
  }
3961
- t.subscribe(dt(o, function(i) {
3962
- a = i, l = n.now(), r || (r = n.schedule(d, e), o.add(r));
3927
+ t.subscribe(ft(r, function(i) {
3928
+ a = i, l = n.now(), o || (o = n.schedule(c, e), r.add(o));
3963
3929
  }, function() {
3964
- u(), o.complete();
3930
+ u(), r.complete();
3965
3931
  }, void 0, function() {
3966
- a = r = null;
3932
+ a = o = null;
3967
3933
  }));
3968
3934
  });
3969
3935
  }
3970
- const fe = /* @__PURE__ */ q({
3936
+ const ye = /* @__PURE__ */ q({
3971
3937
  name: "FPropertyEditor",
3972
- props: qe,
3938
+ props: Ye,
3973
3939
  emits: ["propertyEditorValueChanged"],
3974
3940
  setup(e, n) {
3975
- const t = y(kn), o = y(""), r = y("const"), a = y([]), l = y(!1);
3941
+ const t = y(On), r = y(""), o = y("const"), a = y([]), l = y(!1);
3976
3942
  let u;
3977
- const d = y(""), i = y(""), c = y([]);
3978
- let s;
3979
- const f = y([]), p = y("是");
3943
+ const c = y(""), i = y(""), p = y([]);
3944
+ let d;
3945
+ const f = y([]), s = y("是");
3980
3946
  y("");
3981
- const v = y(!1), h = y("<span class='f-icon f-icon-more-horizontal'></span>"), C = y(!1), x = y([]), {
3947
+ const v = y(!1), h = y("<span class='f-icon f-icon-more-horizontal'></span>"), S = y(!1), C = y([]), {
3982
3948
  numberConstValue: A,
3983
3949
  bindVariableValue: E,
3984
3950
  dataStatesBindValue: w,
3985
3951
  dataStatesValueArray: B,
3986
3952
  constEnumBindValue: b,
3987
3953
  setValue: T
3988
- } = ko(t, a, r, s, p, o, v), {
3989
- updateData: P,
3990
- changeState: $,
3991
- prefix: Q,
3992
- propertyEditorValueChange: R
3993
- } = Io(n, t, b, a, k, f, s, p, B, o, C, r);
3954
+ } = Or(t, a, o, d, s, r, v), {
3955
+ updateData: k,
3956
+ changeState: L,
3957
+ prefix: Y,
3958
+ propertyEditorValueChange: _
3959
+ } = Ir(n, t, b, a, P, f, d, s, B, r, S, o);
3994
3960
  function K() {
3995
- x.value = An.value.filter((m) => t.value.editorOptions.types.includes(m.id));
3961
+ C.value = Nn.value.filter((m) => t.value.editorOptions.types.includes(m.id));
3996
3962
  }
3997
3963
  function M() {
3998
- r.value = F(x.value.find((m) => m.id === t.value.propertyValue.type));
3964
+ o.value = F(C.value.find((m) => m.id === t.value.propertyValue.type));
3999
3965
  }
4000
- function D() {
4001
- M(), r.value.id === "variable" && t.value.propertyValue.value === void 0 && (t.value.propertyValue = F(k.value.variableValue)), k.value[`${r.value.id}Value`] = F(t.value.propertyValue), T();
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();
4002
3968
  }
4003
- function ne(m) {
4004
- r.value = F(x.value.find((O) => O.label === m[0].label)), r.value.id === "expression" && (k.value.expressionValue.value && (o.value = k.value.expressionValue.value.value), v.value = !0), r.value.id === "custom" && Lt(), P();
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();
4005
3971
  }
4006
- function ce(m) {
4007
- b.value = F(m.value), t.value.propertyValue.value = F(m.value), k.value.constValue.value = F(m.value), P();
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();
4008
3974
  }
4009
- function Bt(m) {
4010
- k.value.constValue.value = m, P();
3975
+ function Mt(m) {
3976
+ P.value.constValue.value = m, k();
4011
3977
  }
4012
- function Ft(m) {
4013
- k.value.constValue.value = m, P();
3978
+ function kt(m) {
3979
+ P.value.constValue.value = m, k();
4014
3980
  }
4015
- function Mt() {
4016
- const m = t.value.propertyName, O = m[0].toUpperCase() + m.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);
4017
- u = `${Ie}${Xt}${O}`, Pt();
3981
+ 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();
4018
3984
  }
4019
- function Pt() {
4020
- Et(), r.value.id === "variable" && (E.value = t.value.propertyValue.value.path), Ae(), i.value !== t.value.propertyValue.value.path && P();
3985
+ function At() {
3986
+ Pt(), o.value.id === "variable" && (E.value = t.value.propertyValue.value.path), Ne(), i.value !== t.value.propertyValue.value.path && k();
4021
3987
  }
4022
- function Et() {
4023
- var O;
3988
+ function Pt() {
3989
+ var I;
4024
3990
  let m = 0;
4025
- (O = t.value.editorOptions.variables) == null || O.forEach((U) => {
4026
- U.path !== u ? m += 1 : (i.value = t.value.propertyValue.value.path, t.value.propertyValue.value = F(U), k.value.variableValue.value = F(U));
4027
- }), At(m);
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);
4028
3994
  }
4029
- function At(m) {
4030
- var O;
4031
- m === ((O = t.value.editorOptions.variables) == null ? void 0 : O.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = u, t.value.propertyValue.value.field = d, t.value.propertyValue.value.fullPath = u, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, R.value.isNewVariable = !0, t.value.editorOptions.variables.push(F(t.value.propertyValue.value)), k.value.variableValue.value = F(t.value.propertyValue.value));
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));
4032
3998
  }
4033
- function kt(m) {
4034
- !m || !m.selections || m.selections.length < 1 || (k.value.variableValue.value.category = F(m.selections[0].category), k.value.variableValue.value.path = F(m.selections[0].path), k.value.variableValue.value.fullPath = F(m.selections[0].fullPath), k.value.variableValue.value.field = F(m.selections[0].field), E.value = F(m.value), P());
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());
4035
4001
  }
4036
4002
  function It() {
4037
- t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "", r.value.id === "variable" && (E.value = t.value.propertyValue.value.path), P();
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();
4038
4004
  }
4039
- function Ae() {
4040
- c.value = F(t.value.editorOptions.variables);
4005
+ function Ne() {
4006
+ p.value = F(t.value.editorOptions.variables);
4041
4007
  }
4042
- const Nt = (m) => {
4043
- const O = t.value.editorOptions.getVariables, U = {
4008
+ const jt = (m) => {
4009
+ const I = t.value.editorOptions.getVariables, U = {
4044
4010
  showDialog: !0
4045
4011
  };
4046
- return O && (c.value = O(), m && (m.data = c)), hr(U);
4012
+ return I && (p.value = I(), m && (m.data = p)), So(U);
4047
4013
  };
4048
- function Ot(m) {
4049
- const O = {
4014
+ function Dt(m) {
4015
+ const I = {
4050
4016
  id: m[0].id,
4051
4017
  name: m[0].exist,
4052
4018
  exist: m[0].name
4053
4019
  };
4054
- k.value.stateMachineValue.value = F(O), p.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", s = F(O.id), P();
4020
+ P.value.stateMachineValue.value = F(I), s.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", d = F(I.id), k();
4055
4021
  }
4056
- function Dt() {
4057
- f.value = F(t.value.editorOptions.stateMachine), p.value = k.value.stateMachineValue.value.exist === "是" ? "是" : "否";
4022
+ function $t() {
4023
+ f.value = F(t.value.editorOptions.stateMachine), s.value = P.value.stateMachineValue.value.exist === "是" ? "是" : "否";
4058
4024
  }
4059
- const ke = new pt();
4025
+ const Oe = new vt();
4060
4026
  function Lt() {
4061
- ke.pipe(br(700)).subscribe((m) => {
4062
- k.value.customValue.value = m, P();
4027
+ Oe.pipe(wo(700)).subscribe((m) => {
4028
+ P.value.customValue.value = m, k();
4063
4029
  });
4064
4030
  }
4065
- function jt(m) {
4066
- ke.next(m);
4031
+ function Ut(m) {
4032
+ Oe.next(m);
4067
4033
  }
4068
- function $t() {
4034
+ function _t() {
4069
4035
  }
4070
- function Ut(m) {
4071
- t.value.propertyValue.value = F(m), k.value.dataStatesValue.value = F(m);
4072
- const O = m.map((U) => U.valueField).join(",");
4073
- w.value = F(O), P();
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();
4074
4040
  }
4075
- function Rt() {
4076
- return S("div", {
4041
+ function Gt() {
4042
+ return g("div", {
4077
4043
  class: "f-page-single-property-editor-component-right-variable"
4078
- }, [S(G, {
4044
+ }, [g(G, {
4079
4045
  class: [{
4080
4046
  "form-control-select-show": l.value
4081
4047
  }, {
@@ -4088,59 +4054,59 @@ const fe = /* @__PURE__ */ q({
4088
4054
  enableClear: !0,
4089
4055
  valueField: "path",
4090
4056
  textField: "fullPath",
4091
- data: c.value,
4092
- beforeShow: Nt,
4093
- readonly: C.value,
4057
+ data: p.value,
4058
+ beforeShow: jt,
4059
+ readonly: S.value,
4094
4060
  editable: !1,
4095
- onValueChange: (m) => kt(m),
4061
+ onValueChange: (m) => Ot(m),
4096
4062
  onClear: It
4097
- }, null), l.value ? S("div", {
4063
+ }, null), l.value ? g("div", {
4098
4064
  class: "f-page-single-property-editor-component-variable-button"
4099
- }, [S("button", {
4065
+ }, [g("button", {
4100
4066
  title: "variable-button",
4101
4067
  class: "f-variable-button",
4102
- onClick: Mt
4103
- }, [S("span", {
4068
+ onClick: Et
4069
+ }, [g("span", {
4104
4070
  class: "f-icon f-icon-add",
4105
4071
  style: "margin:unset;"
4106
4072
  }, null)])]) : ""]);
4107
4073
  }
4108
- function _t() {
4109
- return S("div", {
4074
+ function Ht() {
4075
+ return g("div", {
4110
4076
  class: "f-page-single-property-editor-component-right-customize"
4111
- }, [ve(S("input", {
4077
+ }, [me(g("input", {
4112
4078
  class: "form-control",
4113
4079
  placeholder: "输入自定义内容",
4114
- "onUpdate:modelValue": (m) => k.value.customValue.value = m,
4115
- onChange: (m) => jt(m.target.value),
4116
- disabled: C.value
4117
- }, null), [[Oe, k.value.customValue.value]])]);
4080
+ "onUpdate:modelValue": (m) => P.value.customValue.value = m,
4081
+ onChange: (m) => Ut(m.target.value),
4082
+ disabled: S.value
4083
+ }, null), [[De, P.value.customValue.value]])]);
4118
4084
  }
4119
- function Gt() {
4120
- return S("div", {
4085
+ function qt() {
4086
+ return g("div", {
4121
4087
  class: "f-page-single-property-editor-component-right-expression"
4122
- }, [S(J, {
4088
+ }, [g(ee, {
4123
4089
  editable: !1,
4124
4090
  enableClear: !1,
4125
- readonly: C.value,
4091
+ readonly: S.value,
4126
4092
  groupText: h.value,
4127
- modelValue: o.value,
4128
- "onUpdate:modelValue": (m) => o.value = m,
4129
- onClickHandle: $t
4093
+ modelValue: r.value,
4094
+ "onUpdate:modelValue": (m) => r.value = m,
4095
+ onClickHandle: _t
4130
4096
  }, null)]);
4131
4097
  }
4132
- function Ht() {
4133
- return S("div", {
4098
+ function Wt() {
4099
+ return g("div", {
4134
4100
  class: "f-page-single-property-editor-component-right-stateMachine"
4135
- }, [S("div", {
4101
+ }, [g("div", {
4136
4102
  class: "f-stateMachine-exist",
4137
- onClick: $
4138
- }, [p.value]), S("div", {
4103
+ onClick: L
4104
+ }, [s.value]), g("div", {
4139
4105
  class: "f-stateMachine-combo",
4140
4106
  style: "border:unset"
4141
- }, [S(G, {
4142
- modelValue: s,
4143
- "onUpdate:modelValue": (m) => s = m,
4107
+ }, [g(G, {
4108
+ modelValue: d,
4109
+ "onUpdate:modelValue": (m) => d = m,
4144
4110
  placeholder: "",
4145
4111
  viewType: "text",
4146
4112
  enableClear: !1,
@@ -4148,16 +4114,16 @@ const fe = /* @__PURE__ */ q({
4148
4114
  textField: "name",
4149
4115
  data: f.value,
4150
4116
  editable: !1,
4151
- readonly: C.value,
4117
+ readonly: S.value,
4152
4118
  onChange: (m) => {
4153
- Ot(m);
4119
+ Dt(m);
4154
4120
  }
4155
4121
  }, null)])]);
4156
4122
  }
4157
- function qt() {
4158
- return S("div", {
4123
+ function zt() {
4124
+ return g("div", {
4159
4125
  class: "f-page-single-property-editor-component-right-dataStates"
4160
- }, [S(G, {
4126
+ }, [g(G, {
4161
4127
  modelValue: w.value,
4162
4128
  "onUpdate:modelValue": (m) => w.value = m,
4163
4129
  placeholder: "",
@@ -4170,23 +4136,23 @@ const fe = /* @__PURE__ */ q({
4170
4136
  titleField: "titleField",
4171
4137
  data: B.value,
4172
4138
  editable: !1,
4173
- readonly: C.value,
4174
- onChange: (m) => Ut(m)
4139
+ readonly: S.value,
4140
+ onChange: (m) => Rt(m)
4175
4141
  }, null)]);
4176
4142
  }
4177
- function zt() {
4178
- return ve(S("input", {
4143
+ function Yt() {
4144
+ return me(g("input", {
4179
4145
  class: "form-control",
4180
- "onUpdate:modelValue": (m) => k.value.constValue.value = m,
4146
+ "onUpdate:modelValue": (m) => P.value.constValue.value = m,
4181
4147
  onChange: (m) => {
4182
- Ft(m);
4148
+ kt(m);
4183
4149
  },
4184
- disabled: C.value,
4150
+ disabled: S.value,
4185
4151
  placeholder: "输入自定义内容"
4186
- }, null), [[Oe, k.value.constValue.value]]);
4152
+ }, null), [[De, P.value.constValue.value]]);
4187
4153
  }
4188
- function Wt() {
4189
- return S(G, {
4154
+ function Zt() {
4155
+ return g(G, {
4190
4156
  modelValue: b.value,
4191
4157
  "onUpdate:modelValue": (m) => b.value = m,
4192
4158
  placeholder: "",
@@ -4196,62 +4162,62 @@ const fe = /* @__PURE__ */ q({
4196
4162
  textField: "value",
4197
4163
  data: a.value,
4198
4164
  editable: !1,
4199
- readonly: C.value,
4200
- onValueChange: (m) => ce(m)
4165
+ readonly: S.value,
4166
+ onValueChange: (m) => pe(m)
4201
4167
  }, null);
4202
4168
  }
4203
- function Qt() {
4204
- return S(ee, {
4169
+ function Jt() {
4170
+ return g(te, {
4205
4171
  canNull: !0,
4206
- readonly: C.value,
4172
+ readonly: S.value,
4207
4173
  modelValue: A.value,
4208
4174
  "onUpdate:modelValue": (m) => A.value = m,
4209
4175
  onValueChange: (m) => {
4210
- Bt(m);
4176
+ Mt(m);
4211
4177
  },
4212
4178
  class: "f-page-single-property-editor-component-const-number"
4213
4179
  }, null);
4214
4180
  }
4215
- function Yt() {
4216
- return S("div", {
4181
+ function Qt() {
4182
+ return g("div", {
4217
4183
  class: "f-page-single-property-editor-component-left-controller"
4218
- }, [S(G, {
4219
- modelValue: r.value.id,
4220
- "onUpdate:modelValue": (m) => r.value.id = m,
4184
+ }, [g(G, {
4185
+ modelValue: o.value.id,
4186
+ "onUpdate:modelValue": (m) => o.value.id = m,
4221
4187
  placeholder: "",
4222
4188
  enableClear: !1,
4223
4189
  valueField: "id",
4224
4190
  textField: "label",
4225
- data: x.value,
4191
+ data: C.value,
4226
4192
  editable: !1,
4227
- readonly: C.value,
4228
- onChange: (m) => ne(m)
4193
+ readonly: S.value,
4194
+ onChange: (m) => re(m)
4229
4195
  }, null)]);
4230
4196
  }
4231
- function Zt() {
4232
- return S("div", {
4197
+ function Xt() {
4198
+ return g("div", {
4233
4199
  class: "f-page-single-property-editor-component-right-controller"
4234
- }, [r.value.id === "const" ? S("div", {
4200
+ }, [o.value.id === "const" ? g("div", {
4235
4201
  class: "f-page-single-property-editor-component-right-const"
4236
- }, [t.value.propertyType === "string" ? zt() : "", t.value.propertyType === "enum" ? Wt() : "", t.value.propertyType === "number" ? Qt() : ""]) : "", r.value.id === "variable" ? Rt() : "", r.value.id === "custom" ? _t() : "", r.value.id === "expression" && v.value ? Gt() : "", r.value.id === "stateMachine" ? Ht() : "", r.value.id === "dataStates" ? qt() : ""]);
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() : ""]);
4237
4203
  }
4238
4204
  return H(() => {
4239
- K(), D(), Ae(), Dt(), t.value.hasPrefix && t.value.hasPrefix === 2 && (Q.value = !0), t.value.controlName !== void 0 && (l.value = !0);
4240
- }), () => S(me, null, [S("div", {
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", {
4241
4207
  class: "f-page-single-property-editor-component clearfix"
4242
- }, [Yt(), Zt()])]);
4208
+ }, [Qt(), Xt()])]);
4243
4209
  }
4244
- }), Fr = {
4210
+ }), Ao = {
4245
4211
  install(e) {
4246
- e.component(fe.name, fe);
4212
+ e.component(ye.name, ye);
4247
4213
  },
4248
- register(e, n, t, o) {
4249
- e["property-editor"] = fe, n["property-editor"] = En;
4214
+ register(e, n, t, r) {
4215
+ e["property-editor"] = ye, n["property-editor"] = Pn;
4250
4216
  }
4251
4217
  };
4252
4218
  export {
4253
- Fr as default,
4254
- fe as propertyEditor,
4255
- qe as propertyEditorProps,
4256
- En as propsResolver
4219
+ Ao as default,
4220
+ ye as propertyEditor,
4221
+ Ye as propertyEditorProps,
4222
+ Pn as propsResolver
4257
4223
  };