@farris/ui-vue 1.2.7 → 1.2.9

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