@farris/ui-vue 1.3.1 → 1.3.3

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 (259) hide show
  1. package/components/accordion/index.esm.js +103 -99
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +301 -351
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +444 -0
  6. package/components/binding-selector/index.umd.cjs +1 -0
  7. package/components/binding-selector/package.json +8 -0
  8. package/components/border-editor/index.esm.js +5 -3
  9. package/components/border-editor/index.umd.cjs +1 -1
  10. package/components/button-edit/index.esm.js +143 -139
  11. package/components/button-edit/index.umd.cjs +1 -1
  12. package/components/calendar/index.esm.js +407 -396
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +266 -255
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +628 -641
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +379 -374
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +471 -471
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +155 -148
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +487 -478
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +330 -279
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1171 -1277
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +220 -204
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +4743 -4641
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +2916 -3019
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2375 -2590
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/designer-canvas/index.css +1 -1
  39. package/components/designer-canvas/index.esm.js +9518 -1198
  40. package/components/designer-canvas/index.umd.cjs +1 -1
  41. package/components/designer-outline/index.esm.js +2 -1
  42. package/components/designer-outline/index.umd.cjs +1 -1
  43. package/components/drawer/index.esm.js +34 -38
  44. package/components/drawer/index.umd.cjs +1 -1
  45. package/components/dropdown/index.esm.js +149 -138
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1602 -1740
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +159 -151
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +218 -218
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/event-parameter/index.esm.js +311 -0
  54. package/components/event-parameter/index.umd.cjs +1 -0
  55. package/components/event-parameter/package.json +8 -0
  56. package/components/events-editor/index.css +1 -1
  57. package/components/events-editor/index.esm.js +533 -563
  58. package/components/events-editor/index.umd.cjs +1 -1
  59. package/components/expression-editor/index.esm.js +95 -91
  60. package/components/expression-editor/index.umd.cjs +1 -1
  61. package/components/external-container/index.esm.js +2356 -2455
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3048 -3308
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/filter-bar/index.css +1 -1
  66. package/components/filter-bar/index.esm.js +10537 -3249
  67. package/components/filter-bar/index.umd.cjs +1 -1
  68. package/components/flow-canvas/index.css +1 -1
  69. package/components/flow-canvas/index.esm.js +9781 -1327
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +353 -341
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +510 -827
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +278 -268
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +144 -136
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +2139 -2237
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6414 -6367
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +5216 -5114
  84. package/components/mapping-editor/index.umd.cjs +1 -1
  85. package/components/message-box/index.esm.js +252 -252
  86. package/components/message-box/index.umd.cjs +1 -1
  87. package/components/modal/index.esm.js +70 -70
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/nav/index.esm.js +486 -984
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +446 -498
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +363 -388
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1050 -1308
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +134 -131
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +1072 -1082
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +412 -910
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +214 -203
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1361 -1536
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.esm.js +650 -677
  108. package/components/property-panel/index.umd.cjs +1 -1
  109. package/components/query-solution/index.css +1 -1
  110. package/components/query-solution/index.esm.js +12344 -5048
  111. package/components/query-solution/index.umd.cjs +6 -1
  112. package/components/radio-button/index.esm.js +97 -97
  113. package/components/radio-button/index.umd.cjs +1 -1
  114. package/components/radio-group/index.css +1 -1
  115. package/components/radio-group/index.esm.js +1821 -565
  116. package/components/radio-group/index.umd.cjs +1 -1
  117. package/components/rate/index.esm.js +251 -244
  118. package/components/rate/index.umd.cjs +1 -1
  119. package/components/response-layout/index.esm.js +151 -140
  120. package/components/response-layout/index.umd.cjs +1 -1
  121. package/components/response-layout-editor/index.esm.js +707 -676
  122. package/components/response-layout-editor/index.umd.cjs +1 -1
  123. package/components/response-toolbar/index.esm.js +719 -740
  124. package/components/response-toolbar/index.umd.cjs +1 -1
  125. package/components/schema-selector/index.esm.js +4977 -5249
  126. package/components/schema-selector/index.umd.cjs +2 -2
  127. package/components/search-box/index.esm.js +145 -134
  128. package/components/search-box/index.umd.cjs +1 -1
  129. package/components/section/index.esm.js +348 -337
  130. package/components/section/index.umd.cjs +1 -1
  131. package/components/smoke-detector/index.esm.js +141 -130
  132. package/components/smoke-detector/index.umd.cjs +1 -1
  133. package/components/splitter/index.esm.js +311 -301
  134. package/components/splitter/index.umd.cjs +1 -1
  135. package/components/step/index.esm.js +231 -220
  136. package/components/step/index.umd.cjs +1 -1
  137. package/components/switch/index.esm.js +385 -432
  138. package/components/switch/index.umd.cjs +1 -1
  139. package/components/tabs/index.esm.js +1932 -1914
  140. package/components/tabs/index.umd.cjs +1 -1
  141. package/components/tags/index.esm.js +351 -340
  142. package/components/tags/index.umd.cjs +1 -1
  143. package/components/text/index.esm.js +209 -199
  144. package/components/text/index.umd.cjs +1 -1
  145. package/components/textarea/index.esm.js +388 -415
  146. package/components/textarea/index.umd.cjs +1 -1
  147. package/components/time-picker/index.esm.js +619 -666
  148. package/components/time-picker/index.umd.cjs +1 -1
  149. package/components/transfer/index.esm.js +493 -486
  150. package/components/transfer/index.umd.cjs +1 -1
  151. package/components/tree-grid/index.esm.js +3169 -3278
  152. package/components/tree-grid/index.umd.cjs +1 -1
  153. package/components/tree-view/index.esm.js +2320 -2418
  154. package/components/tree-view/index.umd.cjs +1 -1
  155. package/components/uploader/index.esm.js +563 -554
  156. package/components/uploader/index.umd.cjs +2 -2
  157. package/components/verify-detail/index.esm.js +287 -276
  158. package/components/verify-detail/index.umd.cjs +1 -1
  159. package/components/video/index.esm.js +368 -324
  160. package/components/video/index.umd.cjs +1 -1
  161. package/components/weather/index.esm.js +498 -487
  162. package/components/weather/index.umd.cjs +5 -5
  163. package/farris.all.esm.js +51302 -47651
  164. package/farris.all.umd.cjs +14 -9
  165. package/index.css +1 -1
  166. package/package.json +1 -1
  167. package/types/binding-selector/index.d.ts +55 -0
  168. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  169. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  170. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  171. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  172. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  173. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  174. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  175. package/types/common/entity/entity-schema.d.ts +26 -11
  176. package/types/common/index.d.ts +1 -0
  177. package/types/common/types.d.ts +2 -2
  178. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  179. package/types/condition/src/types.d.ts +6 -6
  180. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  181. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  182. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  183. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  184. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  185. package/types/data-view/composition/types.d.ts +2 -2
  186. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  187. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  188. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  189. package/types/designer-canvas/index.d.ts +2 -1
  190. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  191. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +49 -40
  193. package/types/designer-canvas/src/types.d.ts +8 -20
  194. package/types/dynamic-form/index.d.ts +1 -1
  195. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
  196. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  197. package/types/dynamic-form/src/types.d.ts +1 -1
  198. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
  199. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  200. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
  201. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  202. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  203. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  204. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  205. package/types/event-parameter/index.d.ts +31 -0
  206. package/types/event-parameter/src/composition/type.d.ts +77 -0
  207. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  208. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  209. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  210. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  211. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  212. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  213. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  214. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  215. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  216. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  217. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  218. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  219. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  220. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  221. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  222. package/types/modal/src/composition/modal.service.d.ts +2 -1
  223. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  224. package/types/page-header/src/page-header.component.d.ts +1 -1
  225. package/types/property-panel/index.d.ts +2 -1
  226. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  227. package/types/property-panel/src/composition/type.d.ts +0 -13
  228. package/types/query-solution/src/composition/types.d.ts +35 -4
  229. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  230. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  231. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  232. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
  233. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  234. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
  235. package/types/query-solution/src/query-solution.d.ts +10 -2
  236. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  237. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  238. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  239. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  240. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  241. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  242. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  243. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  244. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  245. package/types/tabs/src/composition/types.d.ts +4 -1
  246. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  247. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  248. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  249. package/types/text/src/composition/types.d.ts +4 -4
  250. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  251. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  252. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  253. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  254. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  255. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  256. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  257. package/types/weather/src/composition/types.d.ts +0 -2
  258. /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
  259. /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
@@ -1,104 +1,109 @@
1
- var on = Object.defineProperty;
2
- var rn = (e, n, t) => n in e ? on(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var I = (e, n, t) => rn(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { ref as m, defineComponent as R, computed as x, watch as O, createVNode as S, Teleport as an, createApp as ln, onUnmounted as un, inject as W, nextTick as ae, onMounted as _, mergeProps as sn, reactive as cn, withDirectives as he, resolveDirective as dn, Fragment as be, vModelText as je } from "vue";
5
- import { isPlainObject as Le, cloneDeep as F } from "lodash-es";
6
- import pn from "../list-view/index.esm.js";
7
- import fn from "../button-edit/index.esm.js";
8
- import { resolveAppearance as yn } from "../dynamic-resolver/index.esm.js";
9
- import { useDesignerComponent as We, DgControl as De } from "../designer-canvas/index.esm.js";
10
- import D from "bignumber.js";
1
+ var tn = Object.defineProperty;
2
+ var nn = (e, n, t) => n in e ? tn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var I = (e, n, t) => nn(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import { ref as b, defineComponent as D, computed as E, watch as O, createVNode as C, Teleport as on, createApp as rn, onUnmounted as an, inject as _, nextTick as te, onMounted as U, mergeProps as ln, reactive as un, withDirectives as de, resolveDirective as sn, Fragment as pe, vModelText as Ie } from "vue";
5
+ import { isPlainObject as Me, cloneDeep as F } from "lodash-es";
6
+ import cn from "../list-view/index.esm.js";
7
+ import dn from "../button-edit/index.esm.js";
8
+ import { resolveAppearance as pn } from "../dynamic-resolver/index.esm.js";
9
+ import { useDesignerComponent as ve, DgControl as Pe } from "../designer-canvas/index.esm.js";
10
+ import { withInstall as me, useTextBox as fn, useClear as De, useTextBoxDesign as yn } from "../common/index.esm.js";
11
11
  import { useNumber as vn, useFormat as mn, useSpinner as hn, useTextBox as bn } from "../number-spinner/index.esm.js";
12
- const He = {}, ze = {};
13
- function Se(e) {
14
- const { properties: n, title: t, ignore: o } = e, r = o && Array.isArray(o), a = Object.keys(n).reduce((l, s) => ((!r || !o.find((c) => c == s)) && (l[s] = n[s].type === "object" && n[s].properties ? Se(n[s]) : F(n[s].default)), l), {});
15
- return t && (!r || !o.find((l) => l == "id")) && (a.id = `${t}-${Date.now()}`), a;
12
+ import L from "bignumber.js";
13
+ const Ue = {}, Re = {};
14
+ function he(e) {
15
+ const { properties: n, title: t, ignore: o } = e, r = o && Array.isArray(o), a = Object.keys(n).reduce((i, s) => ((!r || !o.find((d) => d === s)) && (i[s] = n[s].type === "object" && n[s].properties ? he(n[s]) : F(n[s].default)), i), {});
16
+ if (t && (!r || !o.find((i) => i === "id"))) {
17
+ const i = t.toLowerCase().replace(/-/g, "_");
18
+ a.id = `${i}_${Math.random().toString().slice(2, 6)}`;
19
+ }
20
+ return a;
16
21
  }
17
- function Ye(e, n = {}, t) {
18
- const o = He[e];
22
+ function Ge(e, n = {}, t) {
23
+ const o = Ue[e];
19
24
  if (o) {
20
- let r = Se(o);
21
- const a = ze[e];
22
- return r = a ? a({ getSchemaByType: Ye }, r, n, t) : r, r;
25
+ let r = he(o);
26
+ const a = Re[e];
27
+ return r = a ? a({ getSchemaByType: Ge }, r, n, t) : r, r;
23
28
  }
24
29
  return null;
25
30
  }
26
31
  function gn(e, n) {
27
- const t = Se(n);
28
- return Object.keys(e).reduce((o, r) => (o[r] && Le(o[r]) && Le(e[r]) ? Object.assign(o[r], e[r]) : o[r] = e[r], o), t), t;
32
+ const t = he(n);
33
+ return Object.keys(t).reduce((o, r) => (o[r] && Me(o[r]) && Me(e[r] || !e[r]) ? Object.assign(o[r], e[r] || {}) : o[r] = e[r], o), t), t;
29
34
  }
30
- function Cn(e, n) {
35
+ function Sn(e, n) {
31
36
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
32
37
  if (n.has(r)) {
33
38
  const a = n.get(r);
34
39
  if (typeof a == "string")
35
40
  o[a] = e[r];
36
41
  else {
37
- const l = a(r, e[r], e);
38
- Object.assign(o, l);
42
+ const i = a(r, e[r], e);
43
+ Object.assign(o, i);
39
44
  }
40
45
  } else
41
46
  o[r] = e[r];
42
47
  return o;
43
48
  }, {});
44
49
  }
45
- function Sn(e, n, t = /* @__PURE__ */ new Map()) {
50
+ function Cn(e, n, t = /* @__PURE__ */ new Map()) {
46
51
  const o = gn(e, n);
47
- return Cn(o, t);
52
+ return Sn(o, t);
48
53
  }
49
54
  function wn(e = {}) {
50
- function n(i, d, u, f) {
55
+ function n(l, c, u, f) {
51
56
  if (typeof u == "number")
52
- return f[i].length === u;
57
+ return f[l].length === u;
53
58
  if (typeof u == "object") {
54
59
  const p = Object.keys(u)[0], y = u[p];
55
60
  if (p === "not")
56
- return Number(f[i].length) !== Number(y);
61
+ return Number(f[l].length) !== Number(y);
57
62
  if (p === "moreThan")
58
- return Number(f[i].length) >= Number(y);
63
+ return Number(f[l].length) >= Number(y);
59
64
  if (p === "lessThan")
60
- return Number(f[i].length) <= Number(y);
65
+ return Number(f[l].length) <= Number(y);
61
66
  }
62
67
  return !1;
63
68
  }
64
- function t(i, d, u, f) {
65
- return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(u);
69
+ function t(l, c, u, f) {
70
+ return f[l] && f[l].propertyValue && String(f[l].propertyValue.value) === String(u);
66
71
  }
67
72
  const o = /* @__PURE__ */ new Map([
68
73
  ["length", n],
69
74
  ["getProperty", t]
70
75
  ]);
71
- Object.keys(e).reduce((i, d) => (i.set(d, e[d]), i), o);
72
- function r(i, d) {
73
- const u = i;
74
- return typeof d == "number" ? [{ target: u, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: u, operator: "getProperty", param: i, value: !!d }] : typeof d == "object" ? Object.keys(d).map((f) => {
76
+ Object.keys(e).reduce((l, c) => (l.set(c, e[c]), l), o);
77
+ function r(l, c) {
78
+ const u = l;
79
+ return typeof c == "number" ? [{ target: u, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: u, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((f) => {
75
80
  if (f === "length")
76
- return { target: u, operator: "length", param: null, value: d[f] };
77
- const p = f, y = d[f];
81
+ return { target: u, operator: "length", param: null, value: c[f] };
82
+ const p = f, y = c[f];
78
83
  return { target: u, operator: "getProperty", param: p, value: y };
79
84
  }) : [];
80
85
  }
81
- function a(i) {
82
- return Object.keys(i).reduce((u, f) => {
83
- const p = r(f, i[f]);
86
+ function a(l) {
87
+ return Object.keys(l).reduce((u, f) => {
88
+ const p = r(f, l[f]);
84
89
  return u.push(...p), u;
85
90
  }, []);
86
91
  }
87
- function l(i, d) {
88
- if (o.has(i.operator)) {
89
- const u = o.get(i.operator);
90
- return u && u(i.target, i.param, i.value, d) || !1;
92
+ function i(l, c) {
93
+ if (o.has(l.operator)) {
94
+ const u = o.get(l.operator);
95
+ return u && u(l.target, l.param, l.value, c) || !1;
91
96
  }
92
97
  return !1;
93
98
  }
94
- function s(i, d) {
95
- return a(i).reduce((p, y) => p && l(y, d), !0);
99
+ function s(l, c) {
100
+ return a(l).reduce((p, y) => p && i(y, c), !0);
96
101
  }
97
- function c(i, d) {
98
- const u = Object.keys(i), f = u.includes("allOf"), p = u.includes("anyOf"), y = f || p, g = (y ? i[y ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((E) => s(E, d));
99
- return f ? !g.includes(!1) : g.includes(!0);
102
+ function d(l, c) {
103
+ const u = Object.keys(l), f = u.includes("allOf"), p = u.includes("anyOf"), y = f || p, S = (y ? l[y ? f ? "allOf" : "anyOf" : "allOf"] : [l]).map((k) => s(k, c));
104
+ return f ? !S.includes(!1) : S.includes(!0);
100
105
  }
101
- return { parseValueSchema: c };
106
+ return { parseValueSchema: d };
102
107
  }
103
108
  const B = {
104
109
  button: { type: "button", name: "按钮", icon: "Button" },
@@ -138,25 +143,26 @@ const B = {
138
143
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
139
144
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
140
145
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
141
- fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
142
- }, xn = {}, Vn = {};
146
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
147
+ "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
148
+ }, Vn = {}, xn = {};
143
149
  wn();
144
- function ee(e, n, t = /* @__PURE__ */ new Map(), o = (l, s, c) => s, r = {}, a = (l) => l) {
145
- return He[n.title] = n, ze[n.title] = o, xn[n.title] = r, Vn[n.title] = a, (l = {}) => {
146
- const s = Sn(l, n, t), c = Object.keys(e).reduce((i, d) => (i[d] = e[d].default, i), {});
147
- return Object.assign(c, s);
150
+ function J(e, n, t = /* @__PURE__ */ new Map(), o = (i, s, d, l) => s, r = {}, a = (i) => i) {
151
+ return Ue[n.title] = n, Re[n.title] = o, Vn[n.title] = r, xn[n.title] = a, (i = {}) => {
152
+ const s = Cn(i, n, t), d = Object.keys(e).reduce((l, c) => (l[c] = e[c].default, l), {});
153
+ return Object.assign(d, s);
148
154
  };
149
155
  }
150
- function ce(e, n) {
156
+ function ie(e, n) {
151
157
  return { customClass: n.class, customStyle: n.style };
152
158
  }
153
159
  const Bn = /* @__PURE__ */ new Map([
154
- ["appearance", ce]
160
+ ["appearance", ie]
155
161
  ]);
156
- function Tn(e, n, t) {
162
+ function Fn(e, n, t) {
157
163
  return n;
158
164
  }
159
- const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-design.gitee.io/property-editor.schema.json", Mn = "property-editor", En = "A Farris Component", In = "object", Pn = {
165
+ const Tn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-design.gitee.io/property-editor.schema.json", En = "property-editor", In = "A Farris Component", Mn = "object", Pn = {
160
166
  id: {
161
167
  description: "The unique identifier for property-editor",
162
168
  type: "string"
@@ -221,15 +227,15 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
221
227
  }, An = [
222
228
  "id",
223
229
  "type"
224
- ], On = {
225
- $schema: Fn,
230
+ ], Nn = {
231
+ $schema: Tn,
226
232
  $id: kn,
227
- title: Mn,
228
- description: En,
229
- type: In,
233
+ title: En,
234
+ description: In,
235
+ type: Mn,
230
236
  properties: Pn,
231
237
  required: An
232
- }, Nn = "property-editor", jn = "A Farris Component", Ln = "object", Dn = {
238
+ }, On = "property-editor", Ln = "A Farris Component", jn = "object", $n = {
233
239
  basic: {
234
240
  description: "Basic Infomation",
235
241
  title: "基本信息",
@@ -251,12 +257,12 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
251
257
  }
252
258
  }
253
259
  }
254
- }, $n = {
255
- title: Nn,
256
- description: jn,
257
- type: Ln,
258
- categories: Dn
259
- }, Ze = {}, Un = ee(Ze, On, Bn, Tn, $n), A = m({
260
+ }, Dn = {
261
+ title: On,
262
+ description: Ln,
263
+ type: jn,
264
+ categories: $n
265
+ }, _e = {}, Un = J(_e, Nn, Bn, Fn, Dn), P = b({
260
266
  /** 常量值 */
261
267
  constValue: {
262
268
  /** 值类型:常量(const), 变量(variable), 状态机(state), 自定义(custom) */
@@ -294,7 +300,7 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
294
300
  type: "dataStates",
295
301
  value: ""
296
302
  }
297
- }), Gn = m([
303
+ }), Rn = b([
298
304
  {
299
305
  id: "const",
300
306
  label: "常量"
@@ -319,7 +325,7 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
319
325
  id: "dataStates",
320
326
  label: "数据状态"
321
327
  }
322
- ]), Rn = {
328
+ ]), Gn = {
323
329
  controlName: "userName",
324
330
  propertyName: "readonly",
325
331
  propertyType: "enum",
@@ -445,8 +451,8 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
445
451
  /** 状态机是否有前缀viewModel.stateMachine && */
446
452
  hasPrefix: 2
447
453
  }, _n = /* @__PURE__ */ new Map([
448
- ["appearance", ce]
449
- ]), qn = "https://json-schema.org/draft/2020-12/schema", Wn = "https://farris-design.gitee.io/combo-list.schema.json", Hn = "combo-list", zn = "A Farris Input Component", Yn = "object", Zn = {
454
+ ["appearance", ie]
455
+ ]), qn = "https://json-schema.org/draft/2020-12/schema", Hn = "https://farris-design.gitee.io/combo-list.schema.json", Wn = "combo-list", zn = "A Farris Input Component", Yn = "object", Zn = {
450
456
  id: {
451
457
  description: "The unique identifier for a combo list",
452
458
  type: "string"
@@ -479,6 +485,11 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
479
485
  type: "boolean",
480
486
  default: !1
481
487
  },
488
+ enableClear: {
489
+ description: "",
490
+ type: "boolean",
491
+ default: !0
492
+ },
482
493
  editable: {
483
494
  description: "",
484
495
  type: "boolean",
@@ -503,6 +514,11 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
503
514
  type: "string",
504
515
  default: ""
505
516
  },
517
+ idField: {
518
+ description: "",
519
+ type: "string",
520
+ default: "id"
521
+ },
506
522
  valueField: {
507
523
  description: "",
508
524
  type: "string",
@@ -568,11 +584,12 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
568
584
  ], Jn = [
569
585
  "id",
570
586
  "appearance",
571
- "binding"
587
+ "binding",
588
+ "visible"
572
589
  ], Qn = {
573
590
  $schema: qn,
574
- $id: Wn,
575
- title: Hn,
591
+ $id: Hn,
592
+ title: Wn,
576
593
  description: zn,
577
594
  type: Yn,
578
595
  properties: Zn,
@@ -582,7 +599,7 @@ const Fn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-
582
599
  function Kn(e, n, t) {
583
600
  return n;
584
601
  }
585
- const we = {
602
+ const be = {
586
603
  /**
587
604
  * 组件标识
588
605
  */
@@ -743,12 +760,12 @@ const we = {
743
760
  */
744
761
  beforeOpen: { type: Function, default: null },
745
762
  searchOption: {
746
- type: Object,
763
+ type: [Boolean, Function],
747
764
  default: !1
748
765
  },
749
766
  // 搜索启用高亮
750
767
  enableHighlightSearch: { type: Boolean, default: !0 }
751
- }, Xe = ee(we, Qn, _n, Kn), eo = {
768
+ }, qe = J(be, Qn, _n, Kn), eo = {
752
769
  dataSource: { type: Array, default: [] },
753
770
  enableSearch: { type: Boolean, default: !1 },
754
771
  idField: { type: String, default: "id" },
@@ -764,46 +781,49 @@ const we = {
764
781
  onSelectionChange: { type: Function, default: () => {
765
782
  } },
766
783
  searchOption: {
767
- type: Object,
784
+ type: [Boolean, Function],
768
785
  default: !1
769
786
  },
770
787
  // 搜索启用高亮
771
788
  enableHighlightSearch: { type: Boolean, default: !0 }
772
- }, to = /* @__PURE__ */ R({
789
+ }, to = /* @__PURE__ */ D({
773
790
  name: "FComboListContainer",
774
791
  props: eo,
775
792
  emits: ["selectionChange"],
776
793
  setup(e, n) {
777
- const t = m(), o = m(e.dataSource), r = m([]), a = m(e.separator), l = m(e.width), s = m(e.maxHeight), c = m(String(e.selectedValues).split(a.value)), i = x(() => e.multiSelect), d = x(() => ({
794
+ const t = b(), o = b(e.dataSource), r = b([]), a = b(e.separator), i = b(e.width), s = b(e.maxHeight), d = b(String(e.selectedValues).split(a.value)), l = E(() => e.multiSelect), c = E(() => ({
778
795
  enableSelectRow: !0,
779
796
  multiSelect: e.multiSelect,
780
797
  multiSelectMode: "OnCheckAndClick",
781
- showCheckbox: i.value,
798
+ showCheckbox: l.value,
782
799
  showSelectAll: !1,
783
800
  showSelection: !0
784
801
  }));
785
802
  O(e.dataSource, () => {
786
803
  o.value = e.dataSource;
787
804
  });
788
- const u = x(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = x(() => {
805
+ const u = E(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = E(() => {
789
806
  const v = {};
790
- return l.value !== void 0 && (v.width = `${l.value}px`), s.value !== void 0 && s.value > 0 && (v.maxHeight = `${s.value}px`), v;
807
+ return i.value !== void 0 && (v.width = `${i.value}px`), s.value !== void 0 && s.value > 0 && (v.maxHeight = `${s.value}px`), v;
791
808
  });
792
809
  function p(v) {
793
- r.value = v.map((h) => Object.assign({}, h)), c.value = v.map((h) => h[e.idField]), n.emit("selectionChange", r.value);
810
+ r.value = v.map((m) => Object.assign({}, m)), d.value = v.map((m) => m[e.idField]), n.emit("selectionChange", r.value);
794
811
  }
795
812
  function y(v) {
796
813
  if (e.enableHighlightSearch)
797
814
  return;
798
- let h = [];
799
- typeof e.searchOption == "function" ? h = o.value.filter((g) => e.searchOption(v, g)) : h = o.value.filter((g) => g[e.valueField].indexOf(v) > -1 || g[e.textField].indexOf(v) > -1), t.value.updateDataSource(h);
815
+ let m = [];
816
+ const {
817
+ searchOption: S
818
+ } = e;
819
+ typeof S == "function" ? m = o.value.filter((V) => S(v, V)) : m = o.value.filter((V) => V[e.valueField].indexOf(v) > -1 || V[e.textField].indexOf(v) > -1), t.value.updateDataSource(m);
800
820
  }
801
821
  return O([() => e.selectedValues], ([v]) => {
802
- c.value = v.split(a.value);
803
- }), () => S("div", {
822
+ d.value = v.split(a.value);
823
+ }), () => C("div", {
804
824
  class: "f-combo-list-container pl-1",
805
825
  style: f.value
806
- }, [S(pn, {
826
+ }, [C(cn, {
807
827
  ref: t,
808
828
  size: "small",
809
829
  itemClass: "f-combo-list-item",
@@ -814,24 +834,24 @@ const we = {
814
834
  textField: e.textField,
815
835
  titleField: e.titleField,
816
836
  multiSelect: e.multiSelect,
817
- selection: d.value,
837
+ selection: c.value,
818
838
  enableHighlightSearch: e.enableHighlightSearch,
819
- selectionValues: c.value,
839
+ selectionValues: d.value,
820
840
  onSelectionChange: p,
821
841
  onAfterSearch: y
822
842
  }, null)]);
823
843
  }
824
844
  });
825
845
  function no(e) {
826
- const n = m(""), t = m(e.modelValue), o = m(e.data || []), r = m(e.editable);
846
+ const n = b(""), t = b(e.modelValue), o = b(e.data || []), r = b(e.editable);
827
847
  function a(u) {
828
- const f = String(u).split(e.separator), p = f.map((h) => [h, !0]), y = new Map(p);
829
- return o.value.filter((h) => y.has(String(h[e.valueField]))).sort((h, g) => {
830
- const V = f.indexOf(h[e.valueField]), E = f.indexOf(g[e.valueField]);
831
- return V - E;
848
+ const f = String(u).split(e.separator), p = f.map((m) => [m, !0]), y = new Map(p);
849
+ return o.value.filter((m) => y.has(String(m[e.valueField]))).sort((m, S) => {
850
+ const V = f.indexOf(m[e.valueField]), k = f.indexOf(S[e.valueField]);
851
+ return V - k;
832
852
  });
833
853
  }
834
- function l(u) {
854
+ function i(u) {
835
855
  const f = a(u).map((p) => p[e.textField]).join(e.separator);
836
856
  n.value = r.value ? f || u : f;
837
857
  }
@@ -839,30 +859,30 @@ function no(e) {
839
859
  const f = u.split(e.separator).map((y) => [y, !0]), p = new Map(f);
840
860
  return o.value.filter((y) => p.has(y[e.textField]));
841
861
  }
842
- function c(u) {
862
+ function d(u) {
843
863
  const f = {};
844
864
  return f[e.idField] = u, f[e.textField] = u, [f];
845
865
  }
846
- function i(u) {
866
+ function l(u) {
847
867
  let f = s(u);
848
868
  const p = f && f.length > 0;
849
- return r.value && !p && (f = c(u)), f;
869
+ return r.value && !p && (f = d(u)), f;
850
870
  }
851
- function d() {
852
- const { url: u, method: f = "GET", headers: p = {}, body: y = null } = e.remote, v = f.toLowerCase() == "get" ? { method: f, headers: p } : { method: f, headers: p, body: y };
853
- let h = !1;
854
- fetch(u, v).then((g) => {
855
- var E, w;
856
- if (g.status === 200)
857
- return h = !!((w = (E = g.headers) == null ? void 0 : E.get("content-type")) != null && w.includes("application/json")), h ? g.text() : g.json();
858
- throw new Error(g.statusText);
859
- }).then((g) => {
860
- o.value = h ? JSON.parse(g) : g;
861
- }).catch((g) => {
862
- console.error(g);
871
+ function c() {
872
+ const { url: u, method: f = "GET", headers: p = {}, body: y = null } = e.remote, v = f.toLowerCase() === "get" ? { method: f, headers: p } : { method: f, headers: p, body: y };
873
+ let m = !1;
874
+ fetch(u, v).then((S) => {
875
+ var k, w;
876
+ if (S.status === 200)
877
+ return m = !!((w = (k = S.headers) == null ? void 0 : k.get("content-type")) != null && w.includes("application/json")), m ? S.text() : S.json();
878
+ throw new Error(S.statusText);
879
+ }).then((S) => {
880
+ o.value = m ? JSON.parse(S) : S;
881
+ }).catch((S) => {
882
+ console.error(S);
863
883
  });
864
884
  }
865
- return e.remote && d(), O(() => e.data, () => {
885
+ return e.remote && c(), O(() => e.data, () => {
866
886
  o.value = e.data;
867
887
  }), O([o], ([u]) => {
868
888
  if (e.modelValue != null) {
@@ -870,54 +890,54 @@ function no(e) {
870
890
  f && (n.value = f[e.textField]);
871
891
  }
872
892
  }), O(() => e.modelValue, (u) => {
873
- t.value = u, l(u);
874
- }), l(e.modelValue), { dataSource: o, displayText: n, editable: r, modelValue: t, getItemsByDisplayText: s, getItemsByValue: a, getSelectedItemsByDisplayText: i };
893
+ t.value = u, i(u);
894
+ }), i(e.modelValue), { dataSource: o, displayText: n, editable: r, modelValue: t, getItemsByDisplayText: s, getItemsByValue: a, getSelectedItemsByDisplayText: l };
875
895
  }
876
- const q = /* @__PURE__ */ R({
896
+ const G = /* @__PURE__ */ D({
877
897
  name: "FComboList",
878
- props: we,
898
+ props: be,
879
899
  emits: ["clear", "update:modelValue", "change", "input"],
880
900
  setup(e, n) {
881
- const t = m(), o = m(e.disabled), r = m(e.enableClear), a = m(e.enableSearch), l = m(e.readonly), {
901
+ const t = b(), o = b(e.disabled), r = b(e.enableClear), a = b(e.enableSearch), i = b(e.readonly), {
882
902
  dataSource: s,
883
- displayText: c,
884
- editable: i,
885
- modelValue: d,
903
+ displayText: d,
904
+ editable: l,
905
+ modelValue: c,
886
906
  getSelectedItemsByDisplayText: u
887
- } = no(e), f = x(() => e.multiSelect), p = x(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
907
+ } = no(e), f = E(() => e.multiSelect), p = E(() => t.value ? t.value.elementRef.getBoundingClientRect().width : 0);
888
908
  function y() {
889
909
  !f.value && t.value && t.value.hidePopup();
890
910
  }
891
- function v(C) {
892
- c.value = C.map((T) => T[e.textField]).join(e.separator), C.length === 1 ? d.value = C[0][e.valueField] : d.value = C.map((T) => T[e.valueField]).join(e.separator), n.emit("update:modelValue", d.value), n.emit("change", C, d.value), y();
911
+ function v(g) {
912
+ d.value = g.map((x) => x[e.textField]).join(e.separator), g.length === 1 ? c.value = g[0][e.valueField] : c.value = g.map((x) => x[e.valueField]).join(e.separator), n.emit("update:modelValue", c.value), n.emit("change", g, c.value), y();
893
913
  }
894
- function h() {
895
- l.value || t.value.togglePopup();
914
+ function m() {
915
+ i.value || t.value.togglePopup();
896
916
  }
897
- function g(C) {
898
- d.value = "", n.emit("update:modelValue", ""), n.emit("clear");
917
+ function S(g) {
918
+ c.value = "", n.emit("update:modelValue", ""), n.emit("clear");
899
919
  }
900
- function V(C) {
901
- const T = u(C);
902
- v(T);
920
+ function V(g) {
921
+ const x = u(g);
922
+ v(x);
903
923
  }
904
- function E() {
905
- return c.value;
924
+ function k() {
925
+ return d.value;
906
926
  }
907
- function w(C) {
908
- n.emit("input", C);
927
+ function w(g) {
928
+ n.emit("input", g);
909
929
  }
910
930
  return n.expose({
911
- getDisplayText: E
912
- }), O([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([C, T, k, P, U]) => {
913
- o.value = C, i.value = T, r.value = k, a.value = P, l.value = U;
914
- }), () => S(fn, {
931
+ getDisplayText: k
932
+ }), O([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([g, x, T, M, R]) => {
933
+ o.value = g, l.value = x, r.value = T, a.value = M, i.value = R;
934
+ }), () => C(dn, {
915
935
  ref: t,
916
936
  id: e.id,
917
937
  disable: o.value,
918
- readonly: l.value,
938
+ readonly: i.value,
919
939
  forcePlaceholder: e.forcePlaceholder,
920
- editable: i.value,
940
+ editable: l.value,
921
941
  buttonContent: e.dropDownIcon,
922
942
  placeholder: e.placeholder,
923
943
  enableClear: r.value,
@@ -926,23 +946,23 @@ const q = /* @__PURE__ */ R({
926
946
  enableTitle: e.enableTitle,
927
947
  multiSelect: e.multiSelect,
928
948
  inputType: e.multiSelect ? e.viewType : "text",
929
- modelValue: c.value,
930
- "onUpdate:modelValue": (C) => c.value = C,
949
+ modelValue: d.value,
950
+ "onUpdate:modelValue": (g) => d.value = g,
931
951
  focusOnCreated: e.focusOnCreated,
932
952
  selectOnCreated: e.selectOnCreated,
933
- onClear: g,
934
- onClick: h,
953
+ onClear: S,
954
+ onClick: m,
935
955
  onChange: V,
936
956
  onInput: w,
937
957
  beforeOpen: e.beforeOpen
938
958
  }, {
939
- default: () => [S(to, {
959
+ default: () => [C(to, {
940
960
  idField: e.idField,
941
961
  valueField: e.valueField,
942
962
  textField: e.textField,
943
963
  titleField: e.titleField,
944
964
  dataSource: s.value,
945
- selectedValues: d.value,
965
+ selectedValues: c.value,
946
966
  multiSelect: e.multiSelect,
947
967
  enableSearch: a.value,
948
968
  maxHeight: e.maxHeight,
@@ -953,12 +973,12 @@ const q = /* @__PURE__ */ R({
953
973
  });
954
974
  }
955
975
  }), oo = /* @__PURE__ */ new Map([
956
- ["appearance", yn]
976
+ ["appearance", pn]
957
977
  ]);
958
978
  function ro(e, n, t) {
959
979
  return n;
960
980
  }
961
- const ao = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-design.gitee.io/button-edit.schema.json", io = "button-edit", uo = "A Farris Input Component", so = "object", co = {
981
+ const ao = "https://json-schema.org/draft/2020-12/schema", io = "https://farris-design.gitee.io/button-edit.schema.json", lo = "button-edit", uo = "A Farris Input Component", so = "object", co = {
962
982
  id: {
963
983
  description: "The unique identifier for a Input Group",
964
984
  type: "string"
@@ -1147,8 +1167,8 @@ const ao = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-
1147
1167
  "type"
1148
1168
  ], fo = {
1149
1169
  $schema: ao,
1150
- $id: lo,
1151
- title: io,
1170
+ $id: io,
1171
+ title: lo,
1152
1172
  description: uo,
1153
1173
  type: so,
1154
1174
  properties: co,
@@ -1224,7 +1244,7 @@ const ao = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-
1224
1244
  },
1225
1245
  {
1226
1246
  value: "center",
1227
- name: "居中对齐"
1247
+ name: "居中"
1228
1248
  },
1229
1249
  {
1230
1250
  value: "right",
@@ -1240,7 +1260,7 @@ const ao = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-
1240
1260
  description: vo,
1241
1261
  type: mo,
1242
1262
  categories: ho
1243
- }, Je = {
1263
+ }, He = {
1244
1264
  /**
1245
1265
  * 组件标识
1246
1266
  */
@@ -1349,60 +1369,60 @@ const ao = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-
1349
1369
  /** 更新方式 blur | change */
1350
1370
  updateOn: { type: String, default: "change" }
1351
1371
  };
1352
- ee(Je, fo, oo, ro, bo);
1372
+ J(He, fo, oo, ro, bo);
1353
1373
  const go = {
1354
1374
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
1355
1375
  host: { type: Object },
1356
1376
  backgroundColor: { type: String, default: "" }
1357
- }, Co = /* @__PURE__ */ R({
1377
+ }, So = /* @__PURE__ */ D({
1358
1378
  name: "FOverlay",
1359
1379
  props: go,
1360
1380
  emits: ["click"],
1361
1381
  setup(e, n) {
1362
- const t = m(e.popupContentPosition), o = m(e.host), r = x(() => ({
1382
+ const t = b(e.popupContentPosition), o = b(e.host), r = E(() => ({
1363
1383
  backgroundColor: e.backgroundColor || "",
1364
1384
  pointerEvents: "auto"
1365
1385
  }));
1366
1386
  function a(s) {
1367
1387
  n.emit("click"), s.preventDefault(), s.stopPropagation();
1368
1388
  }
1369
- x(() => {
1389
+ E(() => {
1370
1390
  const s = o.value;
1371
1391
  if (s) {
1372
- const c = s.getBoundingClientRect(), {
1373
- left: i,
1374
- top: d,
1392
+ const d = s.getBoundingClientRect(), {
1393
+ left: l,
1394
+ top: c,
1375
1395
  height: u
1376
- } = c;
1396
+ } = d;
1377
1397
  return {
1378
- left: i,
1379
- top: d + u
1398
+ left: l,
1399
+ top: c + u
1380
1400
  };
1381
1401
  }
1382
1402
  return t.value;
1383
1403
  });
1384
- const l = x(() => ({
1404
+ const i = E(() => ({
1385
1405
  // position: 'relative',
1386
1406
  // left: `${position.value.left}px`,
1387
1407
  // top: `${position.value.top}px`
1388
1408
  }));
1389
- return () => S(an, {
1409
+ return () => C(on, {
1390
1410
  to: "body"
1391
1411
  }, {
1392
1412
  default: () => {
1393
- var s, c;
1394
- return [S("div", {
1413
+ var s, d;
1414
+ return [C("div", {
1395
1415
  class: "overlay-container",
1396
- onClick: (i) => a(i),
1416
+ onClick: (l) => a(l),
1397
1417
  style: r.value
1398
- }, [S("div", {
1399
- style: l.value
1400
- }, [(c = (s = n.slots).default) == null ? void 0 : c.call(s)])])];
1418
+ }, [C("div", {
1419
+ style: i.value
1420
+ }, [(d = (s = n.slots).default) == null ? void 0 : d.call(s)])])];
1401
1421
  }
1402
1422
  });
1403
1423
  }
1404
1424
  });
1405
- function So(e) {
1425
+ function Co(e) {
1406
1426
  if (e.content && e.content.render)
1407
1427
  return e.content.render;
1408
1428
  if (e.render && typeof e.render == "function")
@@ -1416,13 +1436,13 @@ function wo(e) {
1416
1436
  }), r = () => {
1417
1437
  o(), t && t.unmount();
1418
1438
  };
1419
- return t = ln({
1439
+ return t = rn({
1420
1440
  setup() {
1421
- un(() => {
1441
+ an(() => {
1422
1442
  document.body.removeChild(n);
1423
1443
  });
1424
- const a = So(e);
1425
- return () => S(Co, {
1444
+ const a = Co(e);
1445
+ return () => C(So, {
1426
1446
  "popup-content-position": e.popupPosition,
1427
1447
  host: e.host,
1428
1448
  onClick: r,
@@ -1433,13 +1453,13 @@ function wo(e) {
1433
1453
  }
1434
1454
  }), document.body.appendChild(n), t.mount(n), t;
1435
1455
  }
1436
- class xo {
1456
+ class Vo {
1437
1457
  static show(n) {
1438
1458
  return wo(n);
1439
1459
  }
1440
1460
  }
1441
- const Vo = Symbol("FModalService");
1442
- function Qe(e, n) {
1461
+ const xo = Symbol("FModalService");
1462
+ function We(e, n) {
1443
1463
  function t() {
1444
1464
  const o = e.beforeOpen || e.beforeClickButton || null;
1445
1465
  let r = Promise.resolve(!0);
@@ -1454,26 +1474,26 @@ function Qe(e, n) {
1454
1474
  return { judgeCanOpen: t };
1455
1475
  }
1456
1476
  function Bo(e, n, t, o, r) {
1457
- const a = m(e.buttonBehavior), l = m(e.popupOnInput), s = x(() => ({
1477
+ const a = b(e.buttonBehavior), i = b(e.popupOnInput), s = E(() => ({
1458
1478
  "input-group-append": !0,
1459
1479
  "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
1460
- })), { judgeCanOpen: c } = Qe(e, r), i = x(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), d = W(Vo, null), u = m();
1480
+ })), { judgeCanOpen: d } = We(e, r), l = E(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), c = _(xo, null), u = b();
1461
1481
  async function f(v) {
1462
- if (await c() && i.value) {
1463
- const h = !!n.slots.default;
1482
+ if (await d() && l.value) {
1483
+ const m = !!n.slots.default;
1464
1484
  if (a.value === "Modal") {
1465
- const g = e.modalOptions, V = d == null ? void 0 : d.open({
1466
- ...g,
1485
+ const S = e.modalOptions, V = c == null ? void 0 : c.open({
1486
+ ...S,
1467
1487
  render: () => n.slots.default && n.slots.default()
1468
1488
  });
1469
1489
  u.value = V == null ? void 0 : V.modalRef;
1470
1490
  }
1471
- a.value === "Overlay" && xo.show({
1491
+ a.value === "Overlay" && Vo.show({
1472
1492
  // host: buttonEditRef.value,
1473
1493
  host: document.body,
1474
1494
  backgroundColor: "rgba(0,0,0,.15)",
1475
1495
  render: () => n.slots.default && n.slots.default()
1476
- }), h && a.value === "Popup" && o.togglePopup(!0), h && l.value && o.hidePopup(), n.emit("clickButton", { origin: v, value: e.modelValue });
1496
+ }), m && a.value === "Popup" && o.togglePopup(!0), m && i.value && o.hidePopup(), n.emit("clickButton", { origin: v, value: e.modelValue });
1477
1497
  }
1478
1498
  }
1479
1499
  function p(v) {
@@ -1490,42 +1510,42 @@ function Bo(e, n, t, o, r) {
1490
1510
  modalRef: u
1491
1511
  };
1492
1512
  }
1493
- function To(e, n, t, o) {
1494
- const r = m(), a = m(!1), { judgeCanOpen: l } = Qe(e, o);
1513
+ function Fo(e, n, t, o) {
1514
+ const r = b(), a = b(!1), { judgeCanOpen: i } = We(e, o);
1495
1515
  function s() {
1496
1516
  const u = r.value;
1497
1517
  u && u.show(t.value);
1498
1518
  }
1499
- async function c(u = !1) {
1519
+ async function d(u = !1) {
1500
1520
  if (!!n.slots.default) {
1501
- if (!u && !a.value && !await l())
1521
+ if (!u && !a.value && !await i())
1502
1522
  return;
1503
- a.value = !a.value, await ae(), s();
1523
+ a.value = !a.value, await te(), s();
1504
1524
  }
1505
1525
  }
1506
- async function i(u = !1) {
1526
+ async function l(u = !1) {
1507
1527
  if (!!n.slots.default) {
1508
- if (!u && !await l())
1528
+ if (!u && !await i())
1509
1529
  return;
1510
- a.value = !0, await ae(), s();
1530
+ a.value = !0, await te(), s();
1511
1531
  }
1512
1532
  }
1513
- function d() {
1533
+ function c() {
1514
1534
  a.value = !1;
1515
1535
  }
1516
- return { hidePopup: d, popup: i, shouldPopupContent: a, togglePopup: c, popoverRef: r };
1536
+ return { hidePopup: c, popup: l, shouldPopupContent: a, togglePopup: d, popoverRef: r };
1517
1537
  }
1518
- function Fo(e, n, t) {
1538
+ function To(e, n, t) {
1519
1539
  const {
1520
1540
  buttonGroupClass: o
1521
- } = t, r = m();
1541
+ } = t, r = b();
1522
1542
  return {
1523
- renderButtonGroup: () => S("div", {
1543
+ renderButtonGroup: () => C("div", {
1524
1544
  id: `${e.id}-button-group`,
1525
1545
  class: o.value
1526
- }, [n.slots.buttonContent ? S("span", {
1546
+ }, [n.slots.buttonContent ? C("span", {
1527
1547
  class: "input-group-text input-group-append-button"
1528
- }, [n.slots.buttonContent()]) : e.buttonContent ? S("span", {
1548
+ }, [n.slots.buttonContent()]) : e.buttonContent ? C("span", {
1529
1549
  class: "input-group-text input-group-append-button",
1530
1550
  innerHTML: e.buttonContent,
1531
1551
  ref: r
@@ -1533,22 +1553,22 @@ function Fo(e, n, t) {
1533
1553
  buttonHandleElement: r
1534
1554
  };
1535
1555
  }
1536
- const ko = /* @__PURE__ */ R({
1556
+ const ko = /* @__PURE__ */ D({
1537
1557
  name: "FButtonEdit",
1538
- props: Je,
1558
+ props: He,
1539
1559
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
1540
1560
  setup(e, n) {
1541
- const t = m(), o = W("design-item-context"), r = We(t, o), a = m(e.customClass), l = m(e.modelValue), s = To(e, n, t, l), c = Bo(e, n, t, s, l), i = m(), d = x(() => ({
1561
+ const t = b(), o = _("design-item-context"), r = ve(t, o), a = b(e.customClass), i = b(e.modelValue), s = Fo(e, n, t, i), d = Bo(e, n, t, s, i), l = b(), c = E(() => ({
1542
1562
  "f-cmp-inputgroup": !0,
1543
1563
  "input-group": !0,
1544
1564
  "f-state-disable": !0,
1545
1565
  "f-state-editable": !1,
1546
1566
  "f-state-readonly": !0
1547
1567
  }));
1548
- _(() => {
1568
+ U(() => {
1549
1569
  t.value.componentInstance = r;
1550
1570
  }), n.expose(r.value);
1551
- const u = x(() => {
1571
+ const u = E(() => {
1552
1572
  const p = {
1553
1573
  "f-button-edit": !0,
1554
1574
  "f-cmp-inputgroup": !0,
@@ -1557,56 +1577,22 @@ const ko = /* @__PURE__ */ R({
1557
1577
  return a.value && a.value.split(" ").reduce((y, v) => (y[v] = !0, y), p), p;
1558
1578
  }), {
1559
1579
  renderButtonGroup: f
1560
- } = Fo(e, n, c);
1561
- return () => S("div", sn(n.attrs, {
1580
+ } = To(e, n, d);
1581
+ return () => C("div", ln(n.attrs, {
1562
1582
  ref: t,
1563
1583
  class: u.value,
1564
1584
  id: e.id
1565
- }), [S("div", {
1566
- class: d.value
1567
- }, [S("input", {
1568
- ref: i,
1585
+ }), [C("div", {
1586
+ class: c.value
1587
+ }, [C("input", {
1588
+ ref: l,
1569
1589
  class: "form-control",
1570
1590
  readonly: !0,
1571
1591
  placeholder: e.placeholder
1572
1592
  }, null), f()])]);
1573
1593
  }
1574
1594
  });
1575
- function xe(e, n) {
1576
- e.schema;
1577
- const t = m(!0), o = m(!0);
1578
- function r(u) {
1579
- return !1;
1580
- }
1581
- function a() {
1582
- return !1;
1583
- }
1584
- function l() {
1585
- return !1;
1586
- }
1587
- function s() {
1588
- return !0;
1589
- }
1590
- function c(u) {
1591
- }
1592
- function i() {
1593
- }
1594
- function d(u) {
1595
- return null;
1596
- }
1597
- return {
1598
- canAccepts: r,
1599
- checkCanDeleteComponent: a,
1600
- checkCanMoveComponent: l,
1601
- hideNestedPaddingInDesginerView: s,
1602
- onAcceptMovedChildElement: c,
1603
- resolveComponentContext: i,
1604
- triggerBelongedComponentToMoveWhenMoved: t,
1605
- triggerBelongedComponentToDeleteWhenDeleted: o,
1606
- getPropsConfig: d
1607
- };
1608
- }
1609
- class Mo {
1595
+ class Eo {
1610
1596
  constructor(n, t) {
1611
1597
  I(this, "componentId");
1612
1598
  I(this, "viewModelId");
@@ -1631,13 +1617,14 @@ class Mo {
1631
1617
  return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
1632
1618
  }
1633
1619
  setDesignViewModelField(n) {
1620
+ var o;
1634
1621
  const t = n.binding && n.binding.type === "Form" && n.binding.field;
1635
1622
  if (t) {
1636
1623
  if (!this.designViewModelField) {
1637
- const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1638
- this.designViewModelField = o.fields.find((r) => r.id === t);
1624
+ const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1625
+ this.designViewModelField = r.fields.find((a) => a.id === t);
1639
1626
  }
1640
- n.updateOn = this.designViewModelField.updateOn;
1627
+ n.updateOn = (o = this.designViewModelField) == null ? void 0 : o.updateOn;
1641
1628
  }
1642
1629
  }
1643
1630
  changeFieldEditorType(n, t) {
@@ -1697,16 +1684,16 @@ class Mo {
1697
1684
  const o = t && t.parent && t.parent.schema;
1698
1685
  if (!o)
1699
1686
  return;
1700
- const r = o.contents.findIndex((l) => l.id === n), a = F(o.contents[r]);
1687
+ const r = o.contents.findIndex((i) => i.id === n), a = F(o.contents[r]);
1701
1688
  o.contents.splice(r, 1), o.contents.splice(r, 0, a);
1702
1689
  }
1703
1690
  }
1704
- const Y = class Y {
1691
+ const W = class W {
1705
1692
  /**
1706
1693
  * 根据绑定字段类型获取可用的输入类控件
1707
1694
  */
1708
1695
  static getEditorTypesByMDataType(n) {
1709
- const t = Y.fieldControlTypeMapping[n];
1696
+ const t = W.fieldControlTypeMapping[n];
1710
1697
  return t || [{ key: "", value: "" }];
1711
1698
  }
1712
1699
  /**
@@ -1714,8 +1701,8 @@ const Y = class Y {
1714
1701
  */
1715
1702
  static getAllInputTypes() {
1716
1703
  const n = [];
1717
- for (let t in Y.fieldControlTypeMapping)
1718
- Y.fieldControlTypeMapping[t].forEach((o) => {
1704
+ for (const t in W.fieldControlTypeMapping)
1705
+ W.fieldControlTypeMapping[t].forEach((o) => {
1719
1706
  n.find((r) => r.key === o.key && r.value === o.value) || n.push({ key: o.key, value: o.value });
1720
1707
  });
1721
1708
  return n;
@@ -1724,7 +1711,7 @@ const Y = class Y {
1724
1711
  /**
1725
1712
  * <字段类型,可配置的控件类型列表>的映射
1726
1713
  */
1727
- I(Y, "fieldControlTypeMapping", {
1714
+ I(W, "fieldControlTypeMapping", {
1728
1715
  String: [
1729
1716
  { key: B["input-group"].type, value: B["input-group"].name },
1730
1717
  { key: B.lookup.type, value: B.lookup.name },
@@ -1771,9 +1758,9 @@ I(Y, "fieldControlTypeMapping", {
1771
1758
  { key: B["radio-group"].type, value: B["radio-group"].name }
1772
1759
  ]
1773
1760
  });
1774
- let le = Y;
1775
- const Eo = m(0);
1776
- class Io {
1761
+ let ne = W;
1762
+ const Io = b(0);
1763
+ class Mo {
1777
1764
  constructor() {
1778
1765
  /** 控件标题 */
1779
1766
  I(this, "label", "");
@@ -1807,79 +1794,79 @@ function Po(e) {
1807
1794
  let n, t;
1808
1795
  const o = /* @__PURE__ */ new Map();
1809
1796
  let r = [];
1810
- function a(d, u) {
1811
- const p = d.split(" ").filter((V) => V.startsWith("col-"));
1797
+ function a(c, u) {
1798
+ const p = c.split(" ").filter((V) => V.startsWith("col-"));
1812
1799
  if (p.length === 0) {
1813
1800
  u.isSupportedClass = !1;
1814
1801
  return;
1815
1802
  }
1816
- let y = p.find((V) => /^col-([1-9]|10|11|12)$/.test(V)), v = p.find((V) => /^col-md-([1-9]|10|11|12)$/.test(V)), h = p.find((V) => /^col-xl-([1-9]|10|11|12)$/.test(V)), g = p.find((V) => /^col-el-([1-9]|10|11|12)$/.test(V));
1817
- y = y || "col-12", u.columnInSM = parseInt(y.replace("col-", ""), 10), u.displayWidthInSM = u.columnInSM / 12, u.displayWidthInSM !== 1 && (u.isSupportedClass = !1), v = v || "col-md-" + u.columnInSM, u.columnInMD = parseInt(v.replace("col-md-", ""), 10), u.displayWidthInMD = u.columnInMD / 6, [1, 2].includes(u.displayWidthInMD) || (u.isSupportedClass = !1), h = h || "col-xl-" + u.columnInMD, u.columnInLG = parseInt(h.replace("col-xl-", ""), 10), u.displayWidthInLG = u.columnInLG / 3, [1, 2, 3, 4].includes(u.displayWidthInLG) || (u.isSupportedClass = !1), g = g || "col-el-" + u.columnInLG, u.columnInEL = parseInt(g.replace("col-el-", ""), 10), u.displayWidthInEL = u.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(u.displayWidthInEL) || (u.isSupportedClass = !1);
1803
+ let y = p.find((V) => /^col-([1-9]|10|11|12)$/.test(V)), v = p.find((V) => /^col-md-([1-9]|10|11|12)$/.test(V)), m = p.find((V) => /^col-xl-([1-9]|10|11|12)$/.test(V)), S = p.find((V) => /^col-el-([1-9]|10|11|12)$/.test(V));
1804
+ y = y || "col-12", u.columnInSM = parseInt(y.replace("col-", ""), 10), u.displayWidthInSM = u.columnInSM / 12, u.displayWidthInSM !== 1 && (u.isSupportedClass = !1), v = v || "col-md-" + u.columnInSM, u.columnInMD = parseInt(v.replace("col-md-", ""), 10), u.displayWidthInMD = u.columnInMD / 6, [1, 2].includes(u.displayWidthInMD) || (u.isSupportedClass = !1), m = m || "col-xl-" + u.columnInMD, u.columnInLG = parseInt(m.replace("col-xl-", ""), 10), u.displayWidthInLG = u.columnInLG / 3, [1, 2, 3, 4].includes(u.displayWidthInLG) || (u.isSupportedClass = !1), S = S || "col-el-" + u.columnInLG, u.columnInEL = parseInt(S.replace("col-el-", ""), 10), u.displayWidthInEL = u.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(u.displayWidthInEL) || (u.isSupportedClass = !1);
1818
1805
  }
1819
- function l(d, u, f, p = !1) {
1806
+ function i(c, u, f, p = !1) {
1820
1807
  let y = !1;
1821
- d.contents.forEach((v) => {
1808
+ c.contents.forEach((v) => {
1822
1809
  if (v.type === "fieldset") {
1823
- f += 1, l(v, u, f, !0), y = !0;
1810
+ f += 1, i(v, u, f, !0), y = !0;
1824
1811
  return;
1825
1812
  }
1826
1813
  y && (f += 1, y = !1);
1827
- const h = v.appearance && v.appearance.class, g = new Io();
1828
- h ? a(h, g) : g.isSupportedClass = !1, g.label = v.label || v.id, g.id = v.id, g.group = f, p && (g.fieldSetId = d.id), t === v.id && (n = f), o.set(v.id, v), u.push(g);
1814
+ const m = v.appearance && v.appearance.class, S = new Mo();
1815
+ m ? a(m, S) : S.isSupportedClass = !1, S.label = v.label || v.id, S.id = v.id, S.group = f, p && (S.fieldSetId = c.id), t === v.id && (n = f), o.set(v.id, v), u.push(S);
1829
1816
  });
1830
1817
  }
1831
- function s(d) {
1832
- const u = e.getComponentById(d);
1818
+ function s(c) {
1819
+ const u = e.getComponentById(c);
1833
1820
  if (!u || !u.componentType || !u.componentType.startsWith("form"))
1834
1821
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
1835
- const f = e.selectNode(u, (p) => p.type === De["response-form"].type);
1822
+ const f = e.selectNode(u, (p) => p.type === Pe["response-form"].type);
1836
1823
  return !f || !f.contents || f.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: f };
1837
1824
  }
1838
- function c(d, u) {
1839
- u = u || d.id;
1825
+ function d(c, u) {
1826
+ u = u || c.id;
1840
1827
  const { result: f, message: p, formNode: y } = s(u);
1841
1828
  if (!f)
1842
1829
  return { result: f, message: p };
1843
- t = d.id, r = [], o.clear();
1844
- const v = y.contents[0].type === De.fieldset.type ? 0 : 1;
1845
- l(y, r, v);
1846
- const h = r.find((V) => !V.isSupportedClass);
1830
+ t = c.id, r = [], o.clear();
1831
+ const v = y.contents[0].type === Pe.fieldset.type ? 0 : 1;
1832
+ i(y, r, v);
1833
+ const m = r.find((V) => !V.isSupportedClass);
1847
1834
  return {
1848
1835
  defaultState: {
1849
1836
  defaultGroupNumber: n || 1,
1850
- model: h ? "customize" : "standard"
1837
+ model: m ? "customize" : "standard"
1851
1838
  },
1852
1839
  importData: r
1853
1840
  };
1854
1841
  }
1855
- function i(d, u) {
1842
+ function l(c, u) {
1856
1843
  u = u;
1857
1844
  const { result: f, formNode: p } = s(u);
1858
1845
  if (!f)
1859
1846
  return "";
1860
1847
  const y = [];
1861
- return d.forEach((v) => {
1848
+ return c.forEach((v) => {
1862
1849
  var V;
1863
- const h = o.get(v.id), g = h.appearance && h.appearance.class;
1864
- if (g) {
1865
- const w = g.split(" ").filter((J) => !J.startsWith("col-")), C = "col-" + v.columnInSM, T = "col-md-" + v.columnInMD, k = "col-xl-" + v.columnInLG, P = "col-el-" + v.columnInEL, U = [C, T, k, P].concat(w);
1866
- h.appearance.class = U.join(" ");
1850
+ const m = o.get(v.id), S = m.appearance && m.appearance.class;
1851
+ if (S) {
1852
+ const w = S.split(" ").filter((le) => !le.startsWith("col-")), g = "col-" + v.columnInSM, x = "col-md-" + v.columnInMD, T = "col-xl-" + v.columnInLG, M = "col-el-" + v.columnInEL, R = [g, x, T, M].concat(w);
1853
+ m.appearance.class = R.join(" ");
1867
1854
  }
1868
1855
  if (v.fieldSetId) {
1869
- const E = p.contents.find((C) => C.id === v.fieldSetId), w = y.find((C) => C.id === v.fieldSetId);
1870
- w ? (V = w.contents) == null || V.push(h) : (y.push(E), E.contents = [h]);
1856
+ const k = p.contents.find((g) => g.id === v.fieldSetId), w = y.find((g) => g.id === v.fieldSetId);
1857
+ w ? (V = w.contents) == null || V.push(m) : (y.push(k), k.contents = [m]);
1871
1858
  } else
1872
- y.push(h);
1859
+ y.push(m);
1873
1860
  }), p.contents = y, p.id;
1874
1861
  }
1875
1862
  return {
1876
1863
  checkCanFindFormNode: s,
1877
- checkCanOpenLayoutEditor: c,
1878
- changeFormControlsByResponseLayoutConfig: i,
1879
- getResonseFormLayoutConfig: l
1864
+ checkCanOpenLayoutEditor: d,
1865
+ changeFormControlsByResponseLayoutConfig: l,
1866
+ getResonseFormLayoutConfig: i
1880
1867
  };
1881
1868
  }
1882
- class Ve extends Mo {
1869
+ class ge extends Eo {
1883
1870
  constructor(t, o) {
1884
1871
  super(t, o);
1885
1872
  I(this, "responseLayoutEditorFunction");
@@ -1889,11 +1876,9 @@ class Ve extends Mo {
1889
1876
  return this.propertyConfig.categories.basic = this.getBasicProperties(t, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t, o), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
1890
1877
  }
1891
1878
  getBasicProperties(t, o) {
1892
- var s;
1893
- var r = this;
1894
- this.setDesignViewModelField(t);
1895
- const a = this.formSchemaUtils.getFormMetadataBasicInfo(), l = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1896
- return {
1879
+ var a;
1880
+ const r = this;
1881
+ return this.setDesignViewModelField(t), this.formSchemaUtils.getFormMetadataBasicInfo(), {
1897
1882
  description: "Basic Information",
1898
1883
  title: "基本信息",
1899
1884
  properties: {
@@ -1914,7 +1899,7 @@ class Ve extends Mo {
1914
1899
  textField: "value",
1915
1900
  valueField: "key",
1916
1901
  editable: !1,
1917
- data: r.designViewModelField ? le.getEditorTypesByMDataType((s = r.designViewModelField.type) == null ? void 0 : s.name) : le.getAllInputTypes()
1902
+ data: r.designViewModelField ? ne.getEditorTypesByMDataType((a = r.designViewModelField.type) == null ? void 0 : a.name) : ne.getAllInputTypes()
1918
1903
  }
1919
1904
  },
1920
1905
  label: {
@@ -1925,33 +1910,29 @@ class Ve extends Mo {
1925
1910
  binding: {
1926
1911
  description: "绑定的表单字段",
1927
1912
  title: "绑定",
1928
- $converter: "/converter/field-selector.converter",
1929
1913
  editor: {
1930
- type: "field-selector",
1914
+ type: "binding-selector",
1931
1915
  bindingType: { enable: !1 },
1932
1916
  editorParams: {
1933
- propertyData: t,
1934
- formBasicInfo: a
1917
+ componentSchema: t,
1918
+ needSyncToViewModel: !0,
1919
+ viewModelId: this.viewModelId,
1920
+ designerHostService: this.designerHostService,
1921
+ disableOccupiedFields: !0
1935
1922
  },
1936
- columns: [
1937
- { field: "name", title: "字段名称" },
1938
- { field: "bindingField", title: "绑定字段" },
1939
- { field: "fieldType", title: "字段类型" }
1940
- ],
1941
- textField: "bindingField",
1942
- data: l
1923
+ textField: "bindingField"
1943
1924
  }
1944
1925
  }
1945
1926
  },
1946
- setPropertyRelates(c, i) {
1947
- if (c)
1948
- switch (c && c.propertyID) {
1927
+ setPropertyRelates(i, s) {
1928
+ if (i)
1929
+ switch (i && i.propertyID) {
1949
1930
  case "type": {
1950
- r.changeControlType(t, c, o);
1931
+ r.changeControlType(t, i, o);
1951
1932
  break;
1952
1933
  }
1953
1934
  case "label": {
1954
- c.needRefreshControlTree = !0;
1935
+ i.needRefreshControlTree = !0;
1955
1936
  break;
1956
1937
  }
1957
1938
  }
@@ -1959,7 +1940,7 @@ class Ve extends Mo {
1959
1940
  };
1960
1941
  }
1961
1942
  getAppearanceProperties(t, o) {
1962
- var r = this;
1943
+ const r = this;
1963
1944
  return {
1964
1945
  title: "样式",
1965
1946
  description: "Appearance",
@@ -1989,7 +1970,7 @@ class Ve extends Mo {
1989
1970
  }
1990
1971
  }
1991
1972
  },
1992
- setPropertyRelates(a, l) {
1973
+ setPropertyRelates(a, i) {
1993
1974
  if (a)
1994
1975
  switch (a && a.propertyID) {
1995
1976
  case "responseLayout":
@@ -2011,12 +1992,12 @@ class Ve extends Mo {
2011
1992
  * @param newControlType 新控件类型
2012
1993
  */
2013
1994
  changeControlType(t, o, r) {
2014
- var d, u, f, p;
2015
- const a = o.propertyValue, l = r && r.parent && r.parent.schema;
2016
- if (!l)
1995
+ var c, u, f, p;
1996
+ const a = o.propertyValue, i = r && r.parent && r.parent.schema;
1997
+ if (!i)
2017
1998
  return;
2018
- const s = l.contents.findIndex((y) => y.id === t.id), c = l.contents[s];
2019
- let i;
1999
+ const s = i.contents.findIndex((y) => y.id === t.id), d = i.contents[s];
2000
+ let l;
2020
2001
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
2021
2002
  editor: {
2022
2003
  $type: a
@@ -2024,22 +2005,22 @@ class Ve extends Mo {
2024
2005
  name: this.designViewModelField.name,
2025
2006
  require: this.designViewModelField.require,
2026
2007
  readonly: this.designViewModelField.readonly
2027
- }, !1), i = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), i || (i = this.controlCreatorUtils.createFormGroupWithoutField(a)), Object.assign(i, {
2028
- id: c.id,
2029
- appearance: c.appearance,
2030
- size: c.size,
2031
- label: c.label,
2032
- binding: c.binding,
2033
- visible: c.visible
2034
- }), Object.assign(i.editor, {
2035
- isTextArea: i.isTextArea && c.isTextArea,
2036
- placeholder: (d = c.editor) == null ? void 0 : d.placeholder,
2037
- holdPlace: (u = c.editor) == null ? void 0 : u.holdPlace,
2038
- readonly: (f = c.editor) == null ? void 0 : f.readonly,
2039
- require: (p = c.editor) == null ? void 0 : p.require
2040
- }), l.contents.splice(s, 1), l.contents.splice(s, 0, i), r.schema = Object.assign(c, i), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
2008
+ }, !1), l = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), l || (l = this.controlCreatorUtils.createFormGroupWithoutField(a)), Object.assign(l, {
2009
+ id: d.id,
2010
+ appearance: d.appearance,
2011
+ size: d.size,
2012
+ label: d.label,
2013
+ binding: d.binding,
2014
+ visible: d.visible
2015
+ }), Object.assign(l.editor, {
2016
+ isTextArea: l.isTextArea && d.isTextArea,
2017
+ placeholder: (c = d.editor) == null ? void 0 : c.placeholder,
2018
+ holdPlace: (u = d.editor) == null ? void 0 : u.holdPlace,
2019
+ readonly: (f = d.editor) == null ? void 0 : f.readonly,
2020
+ require: (p = d.editor) == null ? void 0 : p.require
2021
+ }), i.contents.splice(s, 1), i.contents.splice(s, 0, l), r.schema = Object.assign(d, l), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
2041
2022
  (y) => y.classList.remove("dgComponentSelected")
2042
- ), Eo.value++;
2023
+ ), Io.value++;
2043
2024
  }
2044
2025
  getComponentConfig(t, o = {}, r = {}) {
2045
2026
  const a = Object.assign({
@@ -2047,7 +2028,7 @@ class Ve extends Mo {
2047
2028
  title: "编辑器",
2048
2029
  type: "input-group",
2049
2030
  $converter: "/converter/property-editor.converter"
2050
- }, o), l = Object.assign({
2031
+ }, o), i = Object.assign({
2051
2032
  readonly: {
2052
2033
  description: "",
2053
2034
  title: "只读",
@@ -2069,7 +2050,7 @@ class Ve extends Mo {
2069
2050
  type: "string"
2070
2051
  }
2071
2052
  }, r);
2072
- return { ...a, properties: { ...l } };
2053
+ return { ...a, properties: { ...i } };
2073
2054
  }
2074
2055
  /**
2075
2056
  * 修改某一输入控件的样式后更新Form的统一布局配置
@@ -2079,16 +2060,16 @@ class Ve extends Mo {
2079
2060
  */
2080
2061
  updateUnifiedLayoutAfterControlChanged(t, o, r) {
2081
2062
  const a = t.split(" ");
2082
- let l = a.find((u) => /^col-([1-9]|10|11|12)$/.test(u)), s = a.find((u) => /^col-md-([1-9]|10|11|12)$/.test(u)), c = a.find((u) => /^col-xl-([1-9]|10|11|12)$/.test(u)), i = a.find((u) => /^col-el-([1-9]|10|11|12)$/.test(u));
2083
- l = l || "col-12", s = s || "col-md-" + l.replace("col-", ""), c = c || "col-xl-" + s.replace("col-md-", ""), i = i || "col-el-" + c.replace("col-xl-", "");
2084
- const d = {
2063
+ let i = a.find((u) => /^col-([1-9]|10|11|12)$/.test(u)), s = a.find((u) => /^col-md-([1-9]|10|11|12)$/.test(u)), d = a.find((u) => /^col-xl-([1-9]|10|11|12)$/.test(u)), l = a.find((u) => /^col-el-([1-9]|10|11|12)$/.test(u));
2064
+ i = i || "col-12", s = s || "col-md-" + i.replace("col-", ""), d = d || "col-xl-" + s.replace("col-md-", ""), l = l || "col-el-" + d.replace("col-xl-", "");
2065
+ const c = {
2085
2066
  id: o,
2086
- columnInSM: parseInt(l.replace("col-", ""), 10),
2067
+ columnInSM: parseInt(i.replace("col-", ""), 10),
2087
2068
  columnInMD: parseInt(s.replace("col-md-", ""), 10),
2088
- columnInLG: parseInt(c.replace("col-xl-", ""), 10),
2089
- columnInEL: parseInt(i.replace("col-el-", ""), 10)
2069
+ columnInLG: parseInt(d.replace("col-xl-", ""), 10),
2070
+ columnInEL: parseInt(l.replace("col-el-", ""), 10)
2090
2071
  };
2091
- this.updateUnifiedLayoutAfterResponseLayoutChanged(r, d);
2072
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(r, c);
2092
2073
  }
2093
2074
  /**
2094
2075
  * 修改控件布局配置后更新Form统一布局配置
@@ -2104,9 +2085,9 @@ class Ve extends Mo {
2104
2085
  const y = a.find((v) => v.id === o.id);
2105
2086
  Object.assign(y || {}, o);
2106
2087
  }
2107
- const l = a.map((y) => y.columnInSM), s = a.map((y) => y.columnInMD), c = a.map((y) => y.columnInLG), i = a.map((y) => y.columnInEL), d = this.checkIsUniqueColumn(l) ? l[0] : null, u = this.checkIsUniqueColumn(s) ? s[0] : null, f = this.checkIsUniqueColumn(c) ? c[0] : null, p = this.checkIsUniqueColumn(i) ? i[0] : null;
2088
+ const i = a.map((y) => y.columnInSM), s = a.map((y) => y.columnInMD), d = a.map((y) => y.columnInLG), l = a.map((y) => y.columnInEL), c = this.checkIsUniqueColumn(i) ? i[0] : null, u = this.checkIsUniqueColumn(s) ? s[0] : null, f = this.checkIsUniqueColumn(d) ? d[0] : null, p = this.checkIsUniqueColumn(l) ? l[0] : null;
2108
2089
  Object.assign(r.unifiedLayout, {
2109
- uniqueColClassInSM: d,
2090
+ uniqueColClassInSM: c,
2110
2091
  uniqueColClassInMD: u,
2111
2092
  uniqueColClassInLG: f,
2112
2093
  uniqueColClassInEL: p
@@ -2120,65 +2101,89 @@ class Ve extends Mo {
2120
2101
  return Array.from(o).length === 1;
2121
2102
  }
2122
2103
  }
2123
- class Ao extends Ve {
2104
+ class Ao extends ge {
2124
2105
  constructor(n, t) {
2125
2106
  super(n, t);
2126
2107
  }
2127
2108
  getEditorProperties(n) {
2128
- return this.getComponentConfig(n, { type: "combo-list" }, {
2109
+ const t = this.getComponentConfig(n, { type: "combo-list" }, {
2129
2110
  editable: {
2130
2111
  description: "",
2131
2112
  title: "允许编辑",
2132
2113
  type: "boolean"
2133
2114
  },
2115
+ enableClear: {
2116
+ description: "",
2117
+ title: "启用清空",
2118
+ type: "boolean"
2119
+ },
2134
2120
  textField: {
2121
+ visible: !1,
2135
2122
  description: "",
2136
2123
  title: "数据源显示字段",
2137
2124
  type: "string"
2138
2125
  },
2139
- idField: {
2126
+ valueField: {
2127
+ visible: !1,
2140
2128
  description: "",
2141
2129
  title: "数据源值字段",
2142
2130
  type: "string"
2131
+ },
2132
+ idField: {
2133
+ visible: !1,
2134
+ description: "",
2135
+ title: "数据源标识字段",
2136
+ type: "string"
2137
+ },
2138
+ data: {
2139
+ description: "",
2140
+ title: "数据",
2141
+ type: "array",
2142
+ editor: {
2143
+ columns: [
2144
+ { field: n.editor.valueField, title: "值", dataType: "string" },
2145
+ { field: n.editor.textField, title: "名称", dataType: "string" },
2146
+ { field: "disabled", title: "禁用", visible: !1, dataType: "boolean", editor: { type: "switch" } }
2147
+ ],
2148
+ type: "item-collection-editor",
2149
+ valueField: n.editor.valueField,
2150
+ nameField: n.editor.textField,
2151
+ requiredFields: [n.editor.valueField, n.editor.textField],
2152
+ uniqueFields: [n.editor.valueField, n.editor.textField]
2153
+ },
2154
+ // 这个属性,标记当属性变更得时候触发重新更新属性
2155
+ refreshPanelAfterChanged: !0
2143
2156
  }
2144
2157
  });
2158
+ return t.setPropertyRelates = function(o) {
2159
+ if (o)
2160
+ switch (o.propertyID) {
2161
+ case "data": {
2162
+ o.propertyValue.parameters && (n.editor.valueField = o.propertyValue.parameters.valueField, n.editor.textField = o.propertyValue.parameters.nameField), n.editor.data = o.propertyValue.value;
2163
+ break;
2164
+ }
2165
+ }
2166
+ }, t;
2145
2167
  }
2146
2168
  }
2147
- function Oo(e, n) {
2148
- const {
2149
- canAccepts: t,
2150
- checkCanDeleteComponent: o,
2151
- checkCanMoveComponent: r,
2152
- hideNestedPaddingInDesginerView: a,
2153
- onAcceptMovedChildElement: l,
2154
- resolveComponentContext: s,
2155
- triggerBelongedComponentToMoveWhenMoved: c,
2156
- triggerBelongedComponentToDeleteWhenDeleted: i
2157
- } = xe(e), d = e.schema;
2158
- function u(f, p) {
2159
- return new Ao(f, n).getPropertyConfig(d, p);
2169
+ function No(e, n) {
2170
+ const t = e.schema;
2171
+ function o(r, a) {
2172
+ return new Ao(r, n).getPropertyConfig(t, a);
2160
2173
  }
2161
2174
  return {
2162
- canAccepts: t,
2163
- checkCanDeleteComponent: o,
2164
- checkCanMoveComponent: r,
2165
- hideNestedPaddingInDesginerView: a,
2166
- onAcceptMovedChildElement: l,
2167
- resolveComponentContext: s,
2168
- triggerBelongedComponentToMoveWhenMoved: c,
2169
- triggerBelongedComponentToDeleteWhenDeleted: i,
2170
- getPropsConfig: u
2175
+ getPropsConfig: o
2171
2176
  };
2172
2177
  }
2173
- const No = /* @__PURE__ */ R({
2178
+ const Oo = /* @__PURE__ */ D({
2174
2179
  name: "FComboListDesign",
2175
- props: we,
2180
+ props: be,
2176
2181
  emits: ["clear", "update:modelValue", "change"],
2177
2182
  setup(e, n) {
2178
- const t = m(), o = W("designer-host-service"), r = W("design-item-context"), a = Oo(r, o), l = We(t, r, a);
2179
- return _(() => {
2180
- t.value.componentInstance = l;
2181
- }), n.expose(l.value), () => S(ko, {
2183
+ const t = b(), o = _("designer-host-service"), r = _("design-item-context"), a = No(r, o), i = ve(t, r, a);
2184
+ return U(() => {
2185
+ t.value.componentInstance = i;
2186
+ }), n.expose(i.value), () => C(ko, {
2182
2187
  ref: t,
2183
2188
  buttonContent: e.dropDownIcon,
2184
2189
  readonly: !0,
@@ -2188,26 +2193,21 @@ const No = /* @__PURE__ */ R({
2188
2193
  enableClear: !0
2189
2194
  }, null);
2190
2195
  }
2191
- }), Be = (e) => {
2192
- const n = e;
2193
- return n.install = function(t) {
2194
- t.component(n.name, e);
2195
- }, e;
2196
- };
2197
- q.register = (e, n, t, o) => {
2198
- e["combo-list"] = q, n["combo-list"] = Xe;
2196
+ });
2197
+ G.register = (e, n, t, o) => {
2198
+ e["combo-list"] = G, n["combo-list"] = qe;
2199
2199
  };
2200
- q.registerDesigner = (e, n, t) => {
2201
- e["combo-list"] = No, n["combo-list"] = Xe;
2200
+ G.registerDesigner = (e, n, t) => {
2201
+ e["combo-list"] = Oo, n["combo-list"] = qe;
2202
2202
  };
2203
- Be(q);
2204
- const jo = /* @__PURE__ */ new Map([
2205
- ["appearance", ce]
2203
+ me(G);
2204
+ const Lo = /* @__PURE__ */ new Map([
2205
+ ["appearance", ie]
2206
2206
  ]);
2207
- function Lo(e, n, t) {
2207
+ function jo(e, n, t) {
2208
2208
  return n;
2209
2209
  }
2210
- const Do = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-design.gitee.io/input-group.schema.json", Uo = "input-group", Go = "A Farris Input Component", Ro = "object", _o = {
2210
+ const $o = "https://json-schema.org/draft/2020-12/schema", Do = "https://farris-design.gitee.io/input-group.schema.json", Uo = "input-group", Ro = "A Farris Input Component", Go = "object", _o = {
2211
2211
  id: {
2212
2212
  description: "The unique identifier for a Input Group",
2213
2213
  type: "string"
@@ -2269,11 +2269,6 @@ const Do = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-
2269
2269
  type: "boolean",
2270
2270
  default: !1
2271
2271
  },
2272
- required: {
2273
- description: "",
2274
- type: "boolean",
2275
- default: !1
2276
- },
2277
2272
  tabIndex: {
2278
2273
  description: "",
2279
2274
  type: "number",
@@ -2412,15 +2407,21 @@ const Do = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-
2412
2407
  }, qo = [
2413
2408
  "id",
2414
2409
  "type"
2410
+ ], Ho = [
2411
+ "id",
2412
+ "appearance",
2413
+ "binding",
2414
+ "visible"
2415
2415
  ], Wo = {
2416
- $schema: Do,
2417
- $id: $o,
2416
+ $schema: $o,
2417
+ $id: Do,
2418
2418
  title: Uo,
2419
- description: Go,
2420
- type: Ro,
2419
+ description: Ro,
2420
+ type: Go,
2421
2421
  properties: _o,
2422
- required: qo
2423
- }, Te = {
2422
+ required: qo,
2423
+ ignore: Ho
2424
+ }, Se = {
2424
2425
  id: { Type: String, default: "" },
2425
2426
  /** 是否自动完成 */
2426
2427
  autocomplete: { Type: String, default: "off" },
@@ -2487,208 +2488,38 @@ const Do = "https://json-schema.org/draft/2020-12/schema", $o = "https://farris-
2487
2488
  * - input: 输入时更新
2488
2489
  */
2489
2490
  updateOn: { type: String, default: "blur" }
2490
- }, Ke = ee(Te, Wo, jo, Lo);
2491
- function Ho(e, n, t, o) {
2492
- const r = m(e.disabled), a = m(!1), l = m("text"), s = m(e.showBorder), c = m(e.textAlign), i = m(e.updateOn), d = x(() => e.editable || !e.readonly), u = x(() => e.editable && !e.disabled && !e.readonly), f = x(() => !e.disabled && a.value), p = x(() => t.value === "" || t.value === null || t.value === void 0), y = x(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = x(() => e.readonly || !e.editable), h = x(() => e.enableTitle ? t.value : ""), g = x(() => ({
2493
- "form-control": !0,
2494
- "f-utils-fill": !0,
2495
- "text-left": c.value === "left",
2496
- "text-center": c.value === "center",
2497
- "text-right": c.value === "right"
2498
- })), V = x(() => {
2499
- const M = {
2500
- "f-cmp-inputgroup": !0,
2501
- "input-group": !0,
2502
- "f-state-disable": r.value,
2503
- "f-state-editable": u.value,
2504
- "f-state-readonly": v.value,
2505
- "f-state-focus": f.value
2506
- };
2507
- return (e.customClass || "").split(" ").reduce((ne, fe) => (ne[fe] = !0, ne), M), M;
2508
- }), E = x(() => s.value ? "" : "border-width : 0 ");
2509
- function w(M, L = !0) {
2510
- t.value = M, o.value !== M && (o.value = M), L && n.emit("change", M), n.emit("update:modelValue", M), n.emit("update:value", M);
2511
- }
2512
- O(
2513
- () => e.modelValue,
2514
- (M, L) => {
2515
- M !== L && (t.value = M, o.value = M);
2516
- }
2517
- ), O(() => e.disabled, (M, L) => {
2518
- M !== L && (r.value = M);
2519
- });
2520
- function C(M) {
2521
- return a.value = !1, n.emit("blur", M), M.stopPropagation(), !1;
2522
- }
2523
- function T(M) {
2524
- n.emit("click", M);
2525
- }
2526
- function k(M) {
2527
- e.disabled || (s.value && (a.value = !0), d.value && n.emit("focus", M));
2528
- }
2529
- function P(M) {
2530
- n.emit("input", M.target.value);
2531
- const L = M.target.value;
2532
- o.value = L, i.value === "change" && (n.emit("update:modelValue", L), n.emit("update:value", L));
2533
- }
2534
- function U(M) {
2535
- n.emit("keydown", M);
2536
- }
2537
- function J(M) {
2538
- n.emit("keyup", M);
2539
- }
2540
- function de(M) {
2541
- M.target.tagName !== "INPUT" && M.preventDefault(), M.stopPropagation();
2542
- }
2543
- function pe(M) {
2544
- if (i.value === "blur") {
2545
- const L = M.target.value;
2546
- M.stopPropagation(), w(L);
2547
- }
2548
- }
2549
- return {
2550
- changeTextBoxValue: w,
2551
- disabled: r,
2552
- displayText: o,
2553
- editable: u,
2554
- hasFocused: f,
2555
- inputGroupClass: V,
2556
- inputType: l,
2557
- isEmpty: p,
2558
- modelValue: t,
2559
- readonly: v,
2560
- onBlur: C,
2561
- onClick: T,
2562
- onFocus: k,
2563
- onInput: P,
2564
- onKeydown: U,
2565
- onKeyup: J,
2566
- onMousedown: de,
2567
- onTextBoxValueChange: pe,
2568
- placeholder: y,
2569
- textBoxClass: g,
2570
- textBoxTitle: h,
2571
- inputGroupStyle: E
2572
- };
2573
- }
2574
- function zo(e, n, t, o) {
2575
- const r = m(e.disabled), a = m(!1), l = m("text"), s = m(e.showBorder), c = m(e.textAlign);
2576
- x(() => e.editable || !e.readonly);
2577
- const i = x(() => e.editable && !e.disabled && !e.readonly), d = x(() => !e.disabled && a.value), u = x(() => t.value === "" || t.value === null || t.value === void 0), f = x(() => e.placeholder), p = x(() => e.readonly || !e.editable), y = x(() => e.enableTitle ? t.value : ""), v = x(() => ({
2578
- "form-control": !0,
2579
- // 'f-utils-fill': true,
2580
- "text-left": c.value === "left",
2581
- "text-center": c.value === "center",
2582
- "text-right": c.value === "right"
2583
- })), h = x(() => ({
2584
- "f-cmp-inputgroup": !0,
2585
- "input-group": !0,
2586
- "f-state-disable": !0,
2587
- "f-state-editable": !1,
2588
- "f-state-readonly": !0
2589
- // 'f-state-focus': hasFocused.value
2590
- })), g = x(() => s.value ? "" : "border-width : 0 ");
2591
- return {
2592
- // changeTextBoxValue,
2593
- disabled: r,
2594
- displayText: o,
2595
- editable: i,
2596
- hasFocused: d,
2597
- inputGroupClass: h,
2598
- inputType: l,
2599
- isEmpty: u,
2600
- modelValue: t,
2601
- readonly: p,
2602
- // onBlur,
2603
- // onClick,
2604
- // onFocus,
2605
- // onInput,
2606
- // onKeydown,
2607
- // onKeyup,
2608
- // onMousedown,
2609
- // onTextBoxValueChange,
2610
- placeholder: f,
2611
- textBoxClass: v,
2612
- textBoxTitle: y,
2613
- inputGroupStyle: g
2614
- };
2615
- }
2616
- function et(e, n, t) {
2617
- const o = m(!1), r = x(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: a, displayText: l, hasFocused: s, isEmpty: c } = t;
2618
- function i(v) {
2619
- o.value = v;
2620
- }
2621
- O(l, () => {
2622
- s != null && s.value ? i(!!(l != null && l.value)) : i(!1);
2623
- });
2624
- const d = x(() => ({
2625
- "input-group-text": !0,
2626
- "input-group-clear": !0
2627
- })), u = x(() => ({
2628
- width: "24px",
2629
- display: o.value ? "flex" : "none"
2630
- }));
2631
- function f(v) {
2632
- v.stopPropagation(), r.value && (a("", !0), i(!o.value), n.emit("clear"));
2633
- }
2634
- function p(v) {
2635
- r.value && !c.value && i(!0);
2636
- }
2637
- function y(v) {
2638
- r.value && i(!1);
2639
- }
2640
- return { clearButtonClass: d, clearButtonStyle: u, hasShownClearButton: o, onClearValue: f, onMouseEnter: p, onMouseLeave: y, shouldShowClearButton: r };
2641
- }
2642
- const Yo = ["moz", "ms", "webkit"];
2643
- function Zo() {
2644
- let e = 0;
2645
- return (n) => {
2646
- const t = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (t - e)), r = setTimeout(() => {
2647
- n(t + o);
2648
- }, o);
2649
- return e = t + o, r;
2650
- };
2651
- }
2652
- function Xo() {
2653
- if (typeof window > "u")
2654
- return () => 0;
2655
- if (window.requestAnimationFrame)
2656
- return window.requestAnimationFrame.bind(window);
2657
- const e = Yo.filter((n) => `${n}RequestAnimationFrame` in window)[0];
2658
- return e ? window[`${e}RequestAnimationFrame`] : Zo();
2659
- }
2660
- Xo();
2661
- function tt(e, n) {
2662
- const t = m(e.groupText), o = x(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = x(() => e.enableClear || !!e.groupText);
2663
- return { appendedButtonClass: x(() => ({
2491
+ }, ze = J(Se, Wo, Lo, jo);
2492
+ function Ye(e, n) {
2493
+ const t = b(e.groupText), o = E(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = E(() => e.enableClear || !!e.groupText);
2494
+ return { appendedButtonClass: E(() => ({
2664
2495
  "input-group-append": !0,
2665
2496
  "append-force-show": o.value
2666
2497
  })), appendedContent: t, shouldShowAppendedButton: r };
2667
2498
  }
2668
- function nt(e, n, t, o) {
2669
- const { appendedContent: r } = o, a = m(e.enableViewPassword), l = x(() => e.type === "password"), s = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', c = '<span class="f-icon f-icon-eye"></span>', i = m(!1);
2499
+ function Ze(e, n, t, o) {
2500
+ const { appendedContent: r } = o, a = b(e.enableViewPassword), i = E(() => e.type === "password"), s = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', d = '<span class="f-icon f-icon-eye"></span>', l = b(!1);
2670
2501
  O(() => [e.readonly, e.disabled], ([f, p]) => {
2671
- l.value && (t.value = f || p ? "password" : t.value, r.value = f || p ? c : r.value);
2502
+ i.value && (t.value = f || p ? "password" : t.value, r.value = f || p ? d : r.value);
2672
2503
  });
2673
- function d() {
2674
- return i.value = !i.value, t.value = i.value ? "text" : "password", r.value = i.value ? s : c, !1;
2504
+ function c() {
2505
+ return l.value = !l.value, t.value = l.value ? "text" : "password", r.value = l.value ? s : d, !1;
2675
2506
  }
2676
2507
  function u() {
2677
- t.value = l.value ? "password" : "text", r.value = l.value ? a.value ? c : "" : r.value;
2508
+ t.value = i.value ? "password" : "text", r.value = i.value ? a.value ? d : "" : r.value;
2678
2509
  }
2679
- return u(), { isPassword: l, onClickAppendedButton: d };
2510
+ return u(), { isPassword: i, onClickAppendedButton: c };
2680
2511
  }
2681
- function ot(e, n, t) {
2682
- const o = m(), {
2512
+ function Xe(e, n, t) {
2513
+ const o = b(), {
2683
2514
  onBlurTextBox: r,
2684
2515
  onFocusTextBox: a,
2685
- onInput: l,
2516
+ onInput: i,
2686
2517
  onKeyDown: s,
2687
- textBoxValue: c
2688
- } = t, i = x(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = x(() => ({
2518
+ textBoxValue: d
2519
+ } = t, l = E(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), c = E(() => ({
2689
2520
  "form-control": !0,
2690
2521
  "f-utils-fill": !0
2691
- })), u = x(() => ({
2522
+ })), u = E(() => ({
2692
2523
  "text-align": e.textAlign
2693
2524
  }));
2694
2525
  function f(v) {
@@ -2698,392 +2529,293 @@ function ot(e, n, t) {
2698
2529
  e.selectOnCreated, e.focusOnCreated;
2699
2530
  }
2700
2531
  async function y(v) {
2701
- a(v), await ae, p();
2532
+ a(v), await te, p();
2702
2533
  }
2703
- return _(async () => {
2704
- await ae, p();
2705
- }), () => S("input", {
2534
+ return U(async () => {
2535
+ await te, p();
2536
+ }), () => C("input", {
2706
2537
  ref: o,
2707
- class: d.value,
2538
+ class: c.value,
2708
2539
  style: u.value,
2709
2540
  type: "text",
2710
- value: c.value,
2541
+ value: d.value,
2711
2542
  disabled: e.disabled,
2712
2543
  readonly: e.readonly || !e.editable,
2713
- placeholder: i.value,
2544
+ placeholder: l.value,
2714
2545
  onBlur: r,
2715
2546
  onChange: f,
2716
2547
  onFocus: y,
2717
- onInput: l,
2548
+ onInput: i,
2718
2549
  onKeydown: s
2719
2550
  }, null);
2720
2551
  }
2721
- function Fe(e, n, t) {
2552
+ function Ce(e, n, t) {
2722
2553
  const {
2723
2554
  canDownward: o,
2724
2555
  canUpward: r,
2725
2556
  onClickDownButton: a,
2726
- onClickUpButton: l
2727
- } = t, s = x(() => ({
2557
+ onClickUpButton: i
2558
+ } = t, s = E(() => ({
2728
2559
  "input-group-append": !0,
2729
2560
  "btn-group": !0,
2730
2561
  "btn-group-number": !0
2731
- })), c = x(() => ({
2562
+ })), d = E(() => ({
2732
2563
  btn: !0,
2733
2564
  "btn-secondary": !0,
2734
2565
  "btn-number-flag": !0
2735
- })), i = x(() => ({
2566
+ })), l = E(() => ({
2736
2567
  cursor: r() ? "pointer" : "not-allowed",
2737
2568
  "margin-left": 0
2738
- })), d = x(() => ({
2569
+ })), c = E(() => ({
2739
2570
  cursor: o() ? "pointer" : "not-allowed",
2740
2571
  "margin-left": 0
2741
2572
  }));
2742
- return () => S("div", {
2573
+ return () => C("div", {
2743
2574
  class: s.value
2744
- }, [S("button", {
2575
+ }, [C("button", {
2745
2576
  title: "upButton",
2746
- class: c.value,
2747
- style: i.value,
2748
- onClick: l,
2577
+ class: d.value,
2578
+ style: l.value,
2579
+ onClick: i,
2749
2580
  disabled: !r()
2750
- }, [S("span", {
2581
+ }, [C("span", {
2751
2582
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
2752
- }, null)]), S("button", {
2583
+ }, null)]), C("button", {
2753
2584
  title: "downButton",
2754
- class: c.value,
2755
- style: d.value,
2585
+ class: d.value,
2586
+ style: c.value,
2756
2587
  onClick: a,
2757
2588
  disabled: !o()
2758
- }, [S("span", {
2589
+ }, [C("span", {
2759
2590
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
2760
2591
  }, null)])]);
2761
2592
  }
2762
- function Jo(e, n) {
2763
- const t = vn(e, n), o = mn(e, n, t), r = hn(e, n, o, t), a = bn(e, n, o, t, r), l = Fe(e, n, r), {
2593
+ function zo(e, n) {
2594
+ const t = vn(e, n), o = mn(e, n, t), r = hn(e, n, o, t), a = bn(e, n, o, t, r), i = Ce(e, n, r), {
2764
2595
  displayValue: s,
2765
- modelValue: c,
2766
- getRealValue: i
2767
- } = t, d = ot(e, n, a), {
2596
+ modelValue: d,
2597
+ getRealValue: l
2598
+ } = t, c = Xe(e, n, a), {
2768
2599
  format: u
2769
2600
  } = o, {
2770
2601
  isFocus: f
2771
- } = a, p = x(() => !e.disabled && !e.readonly);
2772
- return _(() => {
2773
- const y = i(e.modelValue);
2602
+ } = a, p = E(() => !e.disabled && !e.readonly);
2603
+ return U(() => {
2604
+ const y = l(e.modelValue);
2774
2605
  s.value = u(y);
2775
2606
  }), O(() => [e.value], ([y]) => {
2776
- const v = i(y);
2777
- c.value = v, s.value = u(v);
2607
+ const v = l(y);
2608
+ d.value = v, s.value = u(v);
2778
2609
  }), O(() => [e.modelValue], ([y]) => {
2779
- y !== c.value && (c.value = y, !f.value && (s.value = u(i(y))));
2610
+ y !== d.value && (d.value = y, !f.value && (s.value = u(l(y))));
2780
2611
  }), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
2781
- s.value = u(c.value);
2782
- }), () => S("div", {
2612
+ s.value = u(d.value);
2613
+ }), () => C("div", {
2783
2614
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
2784
- }, [d(), p.value && l()]);
2615
+ }, [c(), p.value && i()]);
2785
2616
  }
2786
- function Qo(e, n, t, o) {
2787
- const r = m(), a = m(e.autocomplete), l = m(e.enableTitle), {
2617
+ function Yo(e, n, t, o) {
2618
+ const r = b(), a = b(e.autocomplete), i = b(e.enableTitle), {
2788
2619
  isPassword: s
2789
- } = t, c = m(e.minLength), i = m(e.maxLength), d = m(e.tabIndex), {
2620
+ } = t, d = b(e.minLength), l = b(e.maxLength), c = b(e.tabIndex), {
2790
2621
  disabled: u,
2791
2622
  displayText: f,
2792
2623
  inputType: p,
2793
2624
  onBlur: y,
2794
2625
  onFocus: v,
2795
- onInput: h,
2796
- onClick: g,
2626
+ onInput: m,
2627
+ onClick: S,
2797
2628
  onKeydown: V,
2798
- onKeyup: E,
2629
+ onKeyup: k,
2799
2630
  onMousedown: w,
2800
- onTextBoxValueChange: C,
2801
- readonly: T,
2802
- placeholder: k,
2803
- textBoxClass: P,
2804
- textBoxTitle: U
2631
+ onTextBoxValueChange: g,
2632
+ readonly: x,
2633
+ placeholder: T,
2634
+ textBoxClass: M,
2635
+ textBoxTitle: R
2805
2636
  } = o;
2806
- return _(() => {
2637
+ return U(() => {
2807
2638
  e.selectOnCreated, e.focusOnCreated;
2808
- }), () => S("input", {
2639
+ }), () => C("input", {
2809
2640
  ref: r,
2810
2641
  name: "input-group-value",
2811
2642
  autocomplete: a.value,
2812
- class: P.value,
2643
+ class: M.value,
2813
2644
  disabled: u == null ? void 0 : u.value,
2814
- maxlength: i.value,
2815
- minlength: c.value,
2816
- placeholder: k.value,
2817
- readonly: T == null ? void 0 : T.value,
2818
- tabindex: d.value,
2819
- title: l.value && !s.value ? U.value : "",
2645
+ maxlength: l.value,
2646
+ minlength: d.value,
2647
+ placeholder: T.value,
2648
+ readonly: x == null ? void 0 : x.value,
2649
+ tabindex: c.value,
2650
+ title: i.value && !s.value ? R.value : "",
2820
2651
  type: p.value,
2821
2652
  value: f == null ? void 0 : f.value,
2822
2653
  onBlur: y,
2823
- onClick: g,
2824
- onChange: C,
2654
+ onClick: S,
2655
+ onChange: g,
2825
2656
  onFocus: v,
2826
- onInput: h,
2657
+ onInput: m,
2827
2658
  onKeydown: V,
2828
- onKeyup: E,
2659
+ onKeyup: k,
2829
2660
  onMousedown: w
2830
2661
  }, null);
2831
2662
  }
2832
- function Ko(e, n) {
2833
- const t = x(() => e.useExtendInfo && !!e.extendInfo), o = cn({
2663
+ function Zo(e, n) {
2664
+ const t = E(() => e.useExtendInfo && !!e.extendInfo), o = un({
2834
2665
  content: e.extendInfo
2835
2666
  });
2836
2667
  function r() {
2837
2668
  n.emit("updateExtendInfo");
2838
2669
  }
2839
- return () => t.value && he(S("span", {
2670
+ return () => t.value && de(C("span", {
2840
2671
  class: "input-group-before-tips",
2841
2672
  onMouseenter: r
2842
- }, [S("i", {
2673
+ }, [C("i", {
2843
2674
  class: "f-icon f-icon-info-circle"
2844
- }, null), S("b", {
2675
+ }, null), C("b", {
2845
2676
  class: "tips-arrow"
2846
- }, null)]), [[dn("tooltip"), o]]);
2677
+ }, null)]), [[sn("tooltip"), o]]);
2847
2678
  }
2848
- function rt(e, n, t, o, r) {
2679
+ function Je(e, n, t, o, r) {
2849
2680
  const {
2850
2681
  appendedButtonClass: a,
2851
- appendedContent: l
2852
- } = t, s = x(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), c = x(() => l.value && !n.slots.groupTextTemplate), i = x(() => !!n.slots.groupTextTemplate), {
2853
- clearButtonClass: d,
2682
+ appendedContent: i
2683
+ } = t, s = E(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), d = E(() => i.value && !n.slots.groupTextTemplate), l = E(() => !!n.slots.groupTextTemplate), {
2684
+ clearButtonClass: c,
2854
2685
  clearButtonStyle: u,
2855
2686
  onClearValue: f,
2856
2687
  shouldShowClearButton: p
2857
2688
  } = o;
2858
2689
  function y() {
2859
- return S("span", {
2690
+ return C("span", {
2860
2691
  id: "clearIcon",
2861
- class: d.value,
2692
+ class: c.value,
2862
2693
  style: u.value,
2863
- onClick: (k) => f(k)
2864
- }, [S("i", {
2694
+ onClick: (T) => f(T)
2695
+ }, [C("i", {
2865
2696
  class: "f-icon modal_close"
2866
2697
  }, null)]);
2867
2698
  }
2868
- function v(k) {
2869
- n.emit("iconMouseEnter", k);
2699
+ function v(T) {
2700
+ n.emit("iconMouseEnter", T);
2870
2701
  }
2871
- function h(k) {
2872
- n.emit("iconMouseLeave", k);
2702
+ function m(T) {
2703
+ n.emit("iconMouseLeave", T);
2873
2704
  }
2874
- function g(k) {
2705
+ function S(T) {
2875
2706
  s.value && n.emit("clickHandle", {
2876
- originalEvent: k
2877
- }), k.stopPropagation();
2707
+ originalEvent: T
2708
+ }), T.stopPropagation();
2878
2709
  }
2879
- const V = e.type === "password" ? r.onClickAppendedButton : g;
2880
- function E() {
2881
- return S("span", {
2710
+ const V = e.type === "password" ? r.onClickAppendedButton : S;
2711
+ function k() {
2712
+ return C("span", {
2882
2713
  class: "input-group-text",
2883
- onMouseenter: (k) => v(k),
2884
- onMouseleave: (k) => h(k),
2885
- innerHTML: l.value,
2886
- onClick: (k) => V(k)
2714
+ onMouseenter: (T) => v(T),
2715
+ onMouseleave: (T) => m(T),
2716
+ innerHTML: i.value,
2717
+ onClick: (T) => V(T)
2887
2718
  }, null);
2888
2719
  }
2889
2720
  function w() {
2890
2721
  return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
2891
2722
  }
2892
- function C() {
2893
- return c.value ? E : i.value ? w : "";
2723
+ function g() {
2724
+ return d.value ? k : l.value ? w : "";
2894
2725
  }
2895
- const T = C();
2896
- return () => S("div", {
2726
+ const x = g();
2727
+ return () => C("div", {
2897
2728
  class: a.value
2898
- }, [p.value && y(), T && T()]);
2729
+ }, [p.value && y(), x && x()]);
2899
2730
  }
2900
- const Q = /* @__PURE__ */ R({
2731
+ const Z = /* @__PURE__ */ D({
2901
2732
  name: "FInputGroup",
2902
- props: Te,
2733
+ props: Se,
2903
2734
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
2904
2735
  setup(e, n) {
2905
- const t = m(e.modelValue), o = m(e.modelValue), r = Ho(e, n, t, o), {
2736
+ const t = b(e.modelValue), o = b(e.modelValue), r = fn(e, n, t, o), {
2906
2737
  inputGroupClass: a,
2907
- inputType: l,
2738
+ inputType: i,
2908
2739
  inputGroupStyle: s
2909
- } = r, c = tt(e), {
2910
- shouldShowAppendedButton: i
2911
- } = c, d = et(e, n, r), {
2740
+ } = r, d = Ye(e), {
2741
+ shouldShowAppendedButton: l
2742
+ } = d, c = De(e, n, r), {
2912
2743
  onMouseEnter: u,
2913
2744
  onMouseLeave: f
2914
- } = d, p = nt(e, n, l, c), y = Jo(e, n), v = Qo(e, n, p, r), h = rt(e, n, c, d, p), g = Ko(e, n), V = x(() => e.type === "number");
2745
+ } = c, p = Ze(e, n, i, d), y = zo(e, n), v = Yo(e, n, p, r), m = Je(e, n, d, c, p), S = Zo(e, n), V = E(() => e.type === "number");
2915
2746
  O(() => [e.value], ([w]) => {
2916
2747
  t.value = w, o.value = w;
2917
2748
  }), O(() => [e.modelValue], ([w]) => {
2918
2749
  t.value = w, o.value = w;
2919
- }), _(() => {
2750
+ }), U(() => {
2920
2751
  e.value && (t.value = e.value, o.value = e.value);
2921
2752
  });
2922
- const E = () => S(be, null, [S("div", {
2753
+ const k = () => C(pe, null, [C("div", {
2923
2754
  id: e.id,
2924
2755
  class: a.value,
2925
2756
  style: s.value,
2926
2757
  onMouseenter: u,
2927
2758
  onMouseleave: f
2928
- }, [V.value ? y() : S(be, null, [g(), v(), i.value && h()])])]);
2929
- return () => E();
2759
+ }, [V.value ? y() : C(pe, null, [S(), v(), l.value && m()])])]);
2760
+ return () => k();
2930
2761
  }
2931
2762
  });
2932
- class er extends Ve {
2763
+ class Xo extends ge {
2933
2764
  constructor(n, t) {
2934
2765
  super(n, t);
2935
2766
  }
2936
2767
  }
2937
- function tr(e, n) {
2938
- const {
2939
- canAccepts: t,
2940
- checkCanDeleteComponent: o,
2941
- checkCanMoveComponent: r,
2942
- hideNestedPaddingInDesginerView: a,
2943
- onAcceptMovedChildElement: l,
2944
- resolveComponentContext: s,
2945
- triggerBelongedComponentToMoveWhenMoved: c,
2946
- triggerBelongedComponentToDeleteWhenDeleted: i
2947
- } = xe(e), d = e.schema;
2948
- function u(f, p) {
2949
- return new er(f, n).getPropertyConfig(d, p);
2950
- }
2951
- return {
2952
- canAccepts: t,
2953
- checkCanDeleteComponent: o,
2954
- checkCanMoveComponent: r,
2955
- hideNestedPaddingInDesginerView: a,
2956
- onAcceptMovedChildElement: l,
2957
- resolveComponentContext: s,
2958
- triggerBelongedComponentToMoveWhenMoved: c,
2959
- triggerBelongedComponentToDeleteWhenDeleted: i,
2960
- getPropsConfig: u
2961
- };
2962
- }
2963
- function at(e, n, t) {
2964
- var w;
2965
- function o() {
2966
- t != null && t.resolveComponentContext && t.resolveComponentContext();
2967
- }
2968
- o();
2969
- const r = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", l = m();
2970
- function s() {
2971
- return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
2972
- }
2973
- function c() {
2974
- return !1;
2975
- }
2976
- function i() {
2977
- return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
2978
- }
2979
- function d() {
2980
- return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
2981
- }
2982
- function u(C) {
2983
- if (!C || !C.value)
2984
- return null;
2985
- if (C.value.schema && C.value.schema.type === "component")
2986
- return C.value;
2987
- const T = m(C == null ? void 0 : C.value.parent), k = u(T);
2988
- return k || null;
2989
- }
2990
- function f(C = n) {
2991
- const { componentInstance: T, designerItemElementRef: k } = C;
2992
- return !T || !T.value ? null : T.value.canMove ? k : f(C.parent);
2993
- }
2994
- function p(C) {
2995
- return !!t && t.canAccepts(C);
2996
- }
2997
- function y() {
2998
- return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
2999
- }
3000
- function v() {
3001
- }
3002
- function h(C, T) {
3003
- T && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(T);
3004
- }
3005
- function g(C, T) {
3006
- const { componentType: k } = C;
3007
- let P = Ye(k, C, T);
3008
- t && t.onResolveNewComponentSchema && (P = t.onResolveNewComponentSchema(C, P));
3009
- const U = k.toLowerCase().replace("-", "_");
3010
- return P && !P.id && P.type === k && (P.id = `${U}_${Math.random().toString().slice(2, 6)}`), P;
3011
- }
3012
- function V(C) {
3013
- }
3014
- function E(...C) {
3015
- if (t && t.getPropsConfig)
3016
- return t.getPropsConfig(...C);
2768
+ function Jo(e, n) {
2769
+ const t = e.schema;
2770
+ function o(r, a) {
2771
+ return new Xo(r, n).getPropertyConfig(t, a);
3017
2772
  }
3018
- return l.value = {
3019
- canMove: s(),
3020
- canSelectParent: c(),
3021
- canDelete: i(),
3022
- canNested: !d(),
3023
- contents: n == null ? void 0 : n.schema.contents,
3024
- elementRef: e,
3025
- parent: (w = n == null ? void 0 : n.parent) == null ? void 0 : w.componentInstance,
3026
- schema: n == null ? void 0 : n.schema,
3027
- styles: r,
3028
- designerClass: a,
3029
- canAccepts: p,
3030
- getBelongedComponentInstance: u,
3031
- getDraggableDesignItemElement: f,
3032
- getDraggingDisplayText: y,
3033
- getPropConfig: E,
3034
- getDragScopeElement: v,
3035
- onAcceptMovedChildElement: h,
3036
- onChildElementMovedOut: V,
3037
- addNewChildComponentSchema: g,
3038
- updateDragAndDropRules: o,
3039
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || m(!1),
3040
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || m(!1)
3041
- }, l;
2773
+ return { getPropsConfig: o };
3042
2774
  }
3043
- const nr = /* @__PURE__ */ R({
2775
+ const Qo = /* @__PURE__ */ D({
3044
2776
  name: "FInputGroupDesign",
3045
- props: Te,
2777
+ props: Se,
3046
2778
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
3047
2779
  setup(e, n) {
3048
- const t = m(e.modelValue), o = m(e.modelValue), r = zo(e, n, t, o), {
2780
+ const t = b(e.modelValue), o = b(e.modelValue), r = yn(e, n, t, o), {
3049
2781
  inputGroupClass: a,
3050
- inputType: l,
2782
+ inputType: i,
3051
2783
  inputGroupStyle: s
3052
- } = r, c = tt(e), {
3053
- shouldShowAppendedButton: i
3054
- } = c, d = et(e, n, r), {
2784
+ } = r, d = Ye(e), {
2785
+ shouldShowAppendedButton: l
2786
+ } = d, c = De(e, n, r), {
3055
2787
  onMouseEnter: u,
3056
2788
  onMouseLeave: f
3057
- } = d, p = nt(e, n, l, c), y = m(), v = W("designer-host-service"), h = W("design-item-context"), g = tr(h, v), V = at(y, h, g);
3058
- _(() => {
2789
+ } = c, p = Ze(e, n, i, d), y = b(), v = _("designer-host-service"), m = _("design-item-context"), S = Jo(m, v), V = ve(y, m, S);
2790
+ U(() => {
3059
2791
  y.value.componentInstance = V;
3060
2792
  }), n.expose(V.value);
3061
- const E = rt(e, n, c, d, p), w = m();
3062
- return () => S("div", {
2793
+ const k = Je(e, n, d, c, p), w = b();
2794
+ return () => C("div", {
3063
2795
  id: "inputGroup",
3064
2796
  ref: y,
3065
2797
  class: a.value,
3066
2798
  style: s.value,
3067
2799
  onMouseenter: u,
3068
2800
  onMouseleave: f
3069
- }, [S("input", {
2801
+ }, [C("input", {
3070
2802
  ref: w,
3071
2803
  class: "form-control",
3072
2804
  readonly: !0,
3073
2805
  placeholder: e.placeholder
3074
- }, null), i.value && E()]);
2806
+ }, null), l.value && k()]);
3075
2807
  }
3076
2808
  });
3077
- Q.register = (e, n, t, o) => {
3078
- e["input-group"] = Q, n["input-group"] = Ke;
2809
+ Z.register = (e, n, t, o) => {
2810
+ e["input-group"] = Z, n["input-group"] = ze;
3079
2811
  };
3080
- Q.registerDesigner = (e, n, t) => {
3081
- e["input-group"] = nr, n["input-group"] = Ke;
2812
+ Z.registerDesigner = (e, n, t) => {
2813
+ e["input-group"] = Qo, n["input-group"] = ze;
3082
2814
  };
3083
- Be(Q);
3084
- const or = /* @__PURE__ */ new Map([
3085
- ["appearance", ce]
3086
- ]), rr = "https://json-schema.org/draft/2020-12/schema", ar = "https://farris-design.gitee.io/number-spinner.schema.json", lr = "number-spinner", ir = "A Farris Input Component", ur = "object", sr = {
2815
+ me(Z);
2816
+ const Ko = /* @__PURE__ */ new Map([
2817
+ ["appearance", ie]
2818
+ ]), er = "https://json-schema.org/draft/2020-12/schema", tr = "https://farris-design.gitee.io/number-spinner.schema.json", nr = "number-spinner", or = "A Farris Input Component", rr = "object", ar = {
3087
2819
  id: {
3088
2820
  description: "The unique identifier for a number spinner",
3089
2821
  type: "string"
@@ -3116,20 +2848,6 @@ const or = /* @__PURE__ */ new Map([
3116
2848
  type: "boolean",
3117
2849
  default: !0
3118
2850
  },
3119
- enableLinkLabel: {
3120
- description: "",
3121
- type: "boolean",
3122
- default: !1
3123
- },
3124
- label: {
3125
- description: "",
3126
- type: "string",
3127
- default: ""
3128
- },
3129
- lableWidth: {
3130
- description: "",
3131
- type: "number"
3132
- },
3133
2851
  placeholder: {
3134
2852
  description: "",
3135
2853
  type: "string",
@@ -3150,6 +2868,20 @@ const or = /* @__PURE__ */ new Map([
3150
2868
  type: "boolean",
3151
2869
  default: !1
3152
2870
  },
2871
+ precision: {
2872
+ description: "",
2873
+ type: "number",
2874
+ default: 0
2875
+ },
2876
+ min: {
2877
+ description: "",
2878
+ type: "number"
2879
+ },
2880
+ step: {
2881
+ description: "",
2882
+ type: "number",
2883
+ default: 1
2884
+ },
3153
2885
  tabindex: {
3154
2886
  description: "",
3155
2887
  type: "number",
@@ -3184,27 +2916,28 @@ const or = /* @__PURE__ */ new Map([
3184
2916
  type: "sting",
3185
2917
  default: ""
3186
2918
  }
3187
- }, cr = [
2919
+ }, ir = [
3188
2920
  "id",
3189
2921
  "type"
3190
- ], dr = [
2922
+ ], lr = [
3191
2923
  "id",
3192
2924
  "appearance",
3193
- "binding"
3194
- ], pr = {
3195
- $schema: rr,
3196
- $id: ar,
3197
- title: lr,
3198
- description: ir,
3199
- type: ur,
3200
- properties: sr,
3201
- required: cr,
3202
- ignore: dr
2925
+ "binding",
2926
+ "visible"
2927
+ ], ur = {
2928
+ $schema: er,
2929
+ $id: tr,
2930
+ title: nr,
2931
+ description: or,
2932
+ type: rr,
2933
+ properties: ar,
2934
+ required: ir,
2935
+ ignore: lr
3203
2936
  };
3204
- function fr(e, n, t) {
2937
+ function sr(e, n, t) {
3205
2938
  return n;
3206
2939
  }
3207
- const ke = {
2940
+ const we = {
3208
2941
  /**
3209
2942
  * 组件标识
3210
2943
  */
@@ -3308,24 +3041,24 @@ const ke = {
3308
3041
  * 作为内嵌编辑器被创建后默认选中文本
3309
3042
  */
3310
3043
  selectOnCreated: { type: Boolean, default: !1 }
3311
- }, lt = ee(ke, pr, or, fr);
3312
- function it(e, n, t, o) {
3313
- const { format: r } = t, { displayValue: a, getRealValue: l, modelValue: s, onNumberValueChanged: c } = o;
3314
- function i() {
3315
- const h = new D(s.value || 0);
3316
- return !(e.max && !new D(e.max).isNaN() && h.gte(new D(e.max)));
3044
+ }, Qe = J(we, ur, Ko, sr);
3045
+ function Ke(e, n, t, o) {
3046
+ const { format: r } = t, { displayValue: a, getRealValue: i, modelValue: s, onNumberValueChanged: d } = o;
3047
+ function l() {
3048
+ const m = new L(s.value || 0);
3049
+ return !(e.max && !new L(e.max).isNaN() && m.gte(new L(e.max)));
3317
3050
  }
3318
- function d() {
3319
- const h = new D(s.value || 0);
3320
- return !(e.min && !new D(e.min).isNaN() && h.lte(new D(e.min)));
3051
+ function c() {
3052
+ const m = new L(s.value || 0);
3053
+ return !(e.min && !new L(e.min).isNaN() && m.lte(new L(e.min)));
3321
3054
  }
3322
- function u(h) {
3055
+ function u(m) {
3323
3056
  if (e.readonly || e.disabled)
3324
3057
  return;
3325
- const g = h === "up" ? i : d, V = h === "up" ? "plus" : "minus";
3326
- if (g()) {
3327
- const w = new D(s.value || 0)[V](Number(e.step)), C = w.toFixed();
3328
- a.value = r(C), c(l(w));
3058
+ const S = m === "up" ? l : c, V = m === "up" ? "plus" : "minus";
3059
+ if (S()) {
3060
+ const w = new L(s.value || 0)[V](Number(e.step)), g = w.toFixed();
3061
+ a.value = r(g), d(i(w));
3329
3062
  }
3330
3063
  }
3331
3064
  function f() {
@@ -3334,54 +3067,54 @@ function it(e, n, t, o) {
3334
3067
  function p() {
3335
3068
  u("down");
3336
3069
  }
3337
- function y(h) {
3338
- f(), h.stopPropagation();
3070
+ function y(m) {
3071
+ f(), m.stopPropagation();
3339
3072
  }
3340
- function v(h) {
3341
- p(), h.stopPropagation();
3073
+ function v(m) {
3074
+ p(), m.stopPropagation();
3342
3075
  }
3343
- return { canDownward: d, canUpward: i, downward: p, onClickDownButton: v, onClickUpButton: y, upward: f };
3076
+ return { canDownward: c, canUpward: l, downward: p, onClickDownButton: v, onClickUpButton: y, upward: f };
3344
3077
  }
3345
- function ut(e, n, t) {
3346
- const o = x(() => ({
3078
+ function et(e, n, t) {
3079
+ const o = E(() => ({
3347
3080
  prefix: e.prefix,
3348
3081
  suffix: e.suffix,
3349
3082
  decimalSeparator: e.decimalSeparator,
3350
3083
  groupSeparator: e.useThousands ? e.groupSeparator : "",
3351
3084
  groupSize: e.groupSize
3352
3085
  })), { getValidNumberObject: r, precision: a } = t;
3353
- function l(i) {
3354
- 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;
3086
+ function i(l) {
3087
+ return l = l == null || l === "" ? "" : String(l), l = l.replace(new RegExp(e.prefix, "g"), "").replace(new RegExp(e.suffix, "g"), "").replace(/,/g, ""), e.groupSeparator && e.groupSeparator !== "," && (l = l.replace(new RegExp(`\\${e.groupSeparator}`, "g"), "")), e.decimalSeparator && e.decimalSeparator !== "." && (l = l.replace(new RegExp(`\\${e.decimalSeparator}`, "g"), ".")), l;
3355
3088
  }
3356
- function s(i, d) {
3357
- return e.precision !== null && e.precision !== void 0 ? i.toFormat(a.value, d) : i.toFormat(d);
3089
+ function s(l, c) {
3090
+ return e.precision !== null && e.precision !== void 0 ? l.toFormat(a.value, c) : l.toFormat(c);
3358
3091
  }
3359
- function c(i) {
3360
- const d = l(i), u = new D(d, 10), f = r(u);
3092
+ function d(l) {
3093
+ const c = i(l), u = new L(c, 10), f = r(u);
3361
3094
  return f.valueOf() === "0" && !e.showZero || f.isNaN() ? "" : e.formatter ? e.formatter(f.toNumber()) : s(f, o.value);
3362
3095
  }
3363
- return { cleanFormat: l, format: c };
3096
+ return { cleanFormat: i, format: d };
3364
3097
  }
3365
- function st(e, n) {
3366
- const t = m(""), o = m(e.modelValue), r = x(() => Number(e.precision) || 0);
3367
- function a(d) {
3368
- return d.toFixed(r.value);
3098
+ function tt(e, n) {
3099
+ const t = b(""), o = b(e.modelValue), r = E(() => Number(e.precision) || 0);
3100
+ function a(c) {
3101
+ return c.toFixed(r.value);
3369
3102
  }
3370
- function l(d) {
3371
- return isNaN(d) || d === null || d === void 0 || d === "";
3103
+ function i(c) {
3104
+ return isNaN(c) || c === null || c === void 0 || c === "";
3372
3105
  }
3373
- function s(d) {
3374
- const u = l(e.max) ? null : new D(String(e.max), 10), f = l(e.min) ? null : new D(String(e.min), 10);
3375
- return u && d.gt(u) ? u : f && d.lt(f) ? f : d;
3106
+ function s(c) {
3107
+ const u = i(e.max) ? null : new L(String(e.max), 10), f = i(e.min) ? null : new L(String(e.min), 10);
3108
+ return u && c.gt(u) ? u : f && c.lt(f) ? f : c;
3376
3109
  }
3377
- function c(d) {
3110
+ function d(c) {
3378
3111
  if (e.parser)
3379
- return isNaN(Number(d)) ? e.parser(d) : d;
3380
- let u = s(new D(d, 10));
3112
+ return isNaN(Number(c)) ? e.parser(c) : c;
3113
+ let u = s(new L(c, 10));
3381
3114
  if (u.isNaN()) {
3382
3115
  if (e.canNull)
3383
3116
  return null;
3384
- const p = new D("" + e.min, 10), y = new D("" + e.max, 10);
3117
+ const p = new L("" + e.min, 10), y = new L("" + e.max, 10);
3385
3118
  if (!p.isNaN())
3386
3119
  u = p;
3387
3120
  else if (!y.isNaN())
@@ -3391,74 +3124,185 @@ function st(e, n) {
3391
3124
  }
3392
3125
  return a(u);
3393
3126
  }
3394
- function i(d) {
3395
- const u = Number(d);
3127
+ function l(c) {
3128
+ const u = Number(c);
3396
3129
  o.value = u, n.emit("update:modelValue", u), n.emit("valueChange", u), n.emit("change", u);
3397
3130
  }
3398
- return { displayValue: t, getRealValue: c, modelValue: o, isEmpty: l, onNumberValueChanged: i, precision: r, getValidNumberObject: s };
3131
+ return { displayValue: t, getRealValue: d, modelValue: o, isEmpty: i, onNumberValueChanged: l, precision: r, getValidNumberObject: s };
3399
3132
  }
3400
- function yr(e, n, t, o, r) {
3401
- const { cleanFormat: a, format: l } = t, { displayValue: s, getRealValue: c, modelValue: i, isEmpty: d, onNumberValueChanged: u } = o, { downward: f, upward: p } = r, y = m(!1), v = x(() => s.value);
3402
- function h(w) {
3403
- var k;
3133
+ function cr(e, n, t, o, r) {
3134
+ const { cleanFormat: a, format: i } = t, { displayValue: s, getRealValue: d, modelValue: l, isEmpty: c, onNumberValueChanged: u } = o, { downward: f, upward: p } = r, y = b(!1), v = E(() => s.value);
3135
+ function m(w) {
3136
+ var T;
3404
3137
  if (w.stopPropagation(), y.value = !1, e.readonly || e.disabled)
3405
3138
  return;
3406
- let C = (k = w.target) == null ? void 0 : k.value;
3407
- e.canNull || (C = C || 0);
3408
- const T = a(C);
3409
- s.value = l(T), u(c(T)), n.emit("blur", { event: w, formatted: s.value, value: i.value });
3139
+ let g = (T = w.target) == null ? void 0 : T.value;
3140
+ e.canNull || (g = g || 0);
3141
+ const x = a(g);
3142
+ s.value = i(x), u(d(x)), n.emit("blur", { event: w, formatted: s.value, value: l.value });
3410
3143
  }
3411
- function g(w) {
3412
- w.stopPropagation(), y.value = !0, !(e.readonly || e.disabled) && (s.value = d(i.value) || !e.showZero && i.value === "0" ? "" : String(i.value), n.emit("focus", { event: w, formatted: s.value, value: i.value }));
3144
+ function S(w) {
3145
+ w.stopPropagation(), y.value = !0, !(e.readonly || e.disabled) && (s.value = c(l.value) || !e.showZero && l.value === "0" ? "" : String(l.value), n.emit("focus", { event: w, formatted: s.value, value: l.value }));
3413
3146
  }
3414
3147
  function V(w) {
3415
- var k;
3148
+ var T;
3416
3149
  w.stopPropagation();
3417
- let C = (k = w.target) == null ? void 0 : k.value;
3418
- e.canNull || (C = C || 0);
3419
- const T = a(C);
3420
- s.value = T, u(c(T));
3150
+ let g = (T = w.target) == null ? void 0 : T.value;
3151
+ e.canNull || (g = g || 0);
3152
+ const x = a(g);
3153
+ s.value = x, u(d(x));
3421
3154
  }
3422
- function E(w) {
3155
+ function k(w) {
3423
3156
  w.key === "ArrowDown" && (w.preventDefault(), f()), w.key === "ArrowUp" && (w.preventDefault(), p()), w.stopPropagation();
3424
3157
  }
3425
- return { textBoxValue: v, onBlurTextBox: h, onFocusTextBox: g, onInput: V, onKeyDown: E, isFocus: y };
3158
+ return { textBoxValue: v, onBlurTextBox: m, onFocusTextBox: S, onInput: V, onKeyDown: k, isFocus: y };
3426
3159
  }
3427
- const K = /* @__PURE__ */ R({
3160
+ const X = /* @__PURE__ */ D({
3428
3161
  name: "FNumberSpinner",
3429
- props: ke,
3162
+ props: we,
3430
3163
  emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
3431
3164
  setup(e, n) {
3432
- const t = st(e, n), o = ut(e, n, t), r = it(e, n, o, t), a = yr(e, n, o, t, r), l = Fe(e, n, r), {
3165
+ const t = tt(e, n), o = et(e, n, t), r = Ke(e, n, o, t), a = cr(e, n, o, t, r), i = Ce(e, n, r), {
3433
3166
  displayValue: s,
3434
- modelValue: c,
3435
- getRealValue: i
3436
- } = t, d = ot(e, n, a), {
3167
+ modelValue: d,
3168
+ getRealValue: l
3169
+ } = t, c = Xe(e, n, a), {
3437
3170
  format: u
3438
3171
  } = o, {
3439
3172
  isFocus: f
3440
- } = a, p = x(() => !e.disabled && !e.readonly && e.showButton);
3441
- return _(() => {
3442
- const y = i(e.modelValue);
3173
+ } = a, p = E(() => !e.disabled && !e.readonly && e.showButton);
3174
+ return U(() => {
3175
+ const y = l(e.modelValue);
3443
3176
  s.value = u(y);
3444
3177
  }), O(() => [e.value], ([y]) => {
3445
- const v = i(y);
3446
- c.value = v, s.value = u(v);
3178
+ const v = l(y);
3179
+ d.value = v, s.value = u(v);
3447
3180
  }), O(() => [e.modelValue], ([y]) => {
3448
- y !== c.value && (c.value = y, !f.value && (s.value = u(i(y))));
3181
+ y !== d.value && (d.value = y, !f.value && (s.value = u(l(y))));
3449
3182
  }), O(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
3450
- s.value = u(c.value);
3451
- }), () => S("div", {
3183
+ s.value = u(d.value);
3184
+ }), () => C("div", {
3452
3185
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
3453
- }, [d(), p.value && l()]);
3186
+ }, [c(), p.value && i()]);
3454
3187
  }
3455
3188
  });
3456
- class vr extends Ve {
3189
+ function dr(e, n, t) {
3190
+ var w;
3191
+ const o = t && t.getStyles && t.getStyles() || "", r = t && t.getDesignerClass && t.getDesignerClass() || "", a = b();
3192
+ function i() {
3193
+ return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
3194
+ }
3195
+ function s() {
3196
+ return !1;
3197
+ }
3198
+ function d() {
3199
+ return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
3200
+ }
3201
+ function l() {
3202
+ return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
3203
+ }
3204
+ function c(g) {
3205
+ if (!g || !g.value)
3206
+ return null;
3207
+ if (g.value.schema && g.value.schema.type === "component")
3208
+ return g.value;
3209
+ const x = b(g == null ? void 0 : g.value.parent), T = c(x);
3210
+ return T || null;
3211
+ }
3212
+ function u(g = n) {
3213
+ const { componentInstance: x, designerItemElementRef: T } = g;
3214
+ return !x || !x.value ? null : x.value.canMove ? T : u(g.parent);
3215
+ }
3216
+ function f(g) {
3217
+ return !!t && t.canAccepts(g);
3218
+ }
3219
+ function p() {
3220
+ return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
3221
+ }
3222
+ function y() {
3223
+ }
3224
+ function v(g, x) {
3225
+ x && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(x);
3226
+ }
3227
+ function m(g, x) {
3228
+ const { componentType: T } = g;
3229
+ let M = Ge(T, g, x);
3230
+ t && t.onResolveNewComponentSchema && (M = t.onResolveNewComponentSchema(g, M));
3231
+ const R = T.toLowerCase().replace(/-/g, "_");
3232
+ return M && !M.id && M.type === T && (M.id = `${R}_${Math.random().toString().slice(2, 6)}`), M;
3233
+ }
3234
+ function S(g) {
3235
+ }
3236
+ function V(...g) {
3237
+ if (t && t.getPropsConfig)
3238
+ return t.getPropsConfig(...g);
3239
+ }
3240
+ function k() {
3241
+ t && t.onRemoveComponent && t.onRemoveComponent(), n != null && n.schema.contents && n.schema.contents.map((g) => {
3242
+ var M;
3243
+ let x = g.id;
3244
+ g.type === "component-ref" && (x = g.component);
3245
+ const T = e.value.querySelector(`#${x}-design-item`);
3246
+ (M = T == null ? void 0 : T.componentInstance) != null && M.value.onRemoveComponent && T.componentInstance.value.onRemoveComponent();
3247
+ });
3248
+ }
3249
+ return a.value = {
3250
+ canMove: i(),
3251
+ canSelectParent: s(),
3252
+ canDelete: d(),
3253
+ canNested: !l(),
3254
+ contents: n == null ? void 0 : n.schema.contents,
3255
+ elementRef: e,
3256
+ parent: (w = n == null ? void 0 : n.parent) == null ? void 0 : w.componentInstance,
3257
+ schema: n == null ? void 0 : n.schema,
3258
+ styles: o,
3259
+ designerClass: r,
3260
+ canAccepts: f,
3261
+ getBelongedComponentInstance: c,
3262
+ getDraggableDesignItemElement: u,
3263
+ getDraggingDisplayText: p,
3264
+ getPropConfig: V,
3265
+ getDragScopeElement: y,
3266
+ onAcceptMovedChildElement: v,
3267
+ onChildElementMovedOut: S,
3268
+ addNewChildComponentSchema: m,
3269
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || b(!1),
3270
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || b(!1),
3271
+ onRemoveComponent: k
3272
+ }, a;
3273
+ }
3274
+ class pr extends ge {
3457
3275
  constructor(n, t) {
3458
3276
  super(n, t);
3459
3277
  }
3460
3278
  getEditorProperties(n) {
3461
3279
  return this.getComponentConfig(n, { type: "number-spinner" }, {
3280
+ precision: {
3281
+ description: "",
3282
+ title: "精度",
3283
+ type: "number"
3284
+ },
3285
+ step: {
3286
+ description: "",
3287
+ title: "步长",
3288
+ type: "number"
3289
+ },
3290
+ max: {
3291
+ description: "",
3292
+ title: "最大值",
3293
+ type: "number",
3294
+ editor: {
3295
+ canNull: !0
3296
+ }
3297
+ },
3298
+ min: {
3299
+ description: "",
3300
+ title: "最小值",
3301
+ type: "number",
3302
+ editor: {
3303
+ canNull: !0
3304
+ }
3305
+ },
3462
3306
  textAlign: {
3463
3307
  description: "",
3464
3308
  title: "对齐方式",
@@ -3474,7 +3318,7 @@ class vr extends Ve {
3474
3318
  },
3475
3319
  {
3476
3320
  value: "center",
3477
- name: "居中对齐"
3321
+ name: "居中"
3478
3322
  },
3479
3323
  {
3480
3324
  value: "right",
@@ -3486,46 +3330,27 @@ class vr extends Ve {
3486
3330
  });
3487
3331
  }
3488
3332
  }
3489
- function mr(e, n) {
3490
- const {
3491
- canAccepts: t,
3492
- checkCanDeleteComponent: o,
3493
- checkCanMoveComponent: r,
3494
- hideNestedPaddingInDesginerView: a,
3495
- onAcceptMovedChildElement: l,
3496
- resolveComponentContext: s,
3497
- triggerBelongedComponentToMoveWhenMoved: c,
3498
- triggerBelongedComponentToDeleteWhenDeleted: i
3499
- } = xe(e), d = e.schema;
3500
- function u(f, p) {
3501
- return new vr(f, n).getPropertyConfig(d, p);
3333
+ function fr(e, n) {
3334
+ const t = e.schema;
3335
+ function o(r, a) {
3336
+ return new pr(r, n).getPropertyConfig(t, a);
3502
3337
  }
3503
- return {
3504
- canAccepts: t,
3505
- checkCanDeleteComponent: o,
3506
- checkCanMoveComponent: r,
3507
- hideNestedPaddingInDesginerView: a,
3508
- onAcceptMovedChildElement: l,
3509
- resolveComponentContext: s,
3510
- triggerBelongedComponentToMoveWhenMoved: c,
3511
- triggerBelongedComponentToDeleteWhenDeleted: i,
3512
- getPropsConfig: u
3513
- };
3338
+ return { getPropsConfig: o };
3514
3339
  }
3515
- const hr = /* @__PURE__ */ R({
3340
+ const yr = /* @__PURE__ */ D({
3516
3341
  name: "FNumberSpinnerDesign",
3517
- props: ke,
3342
+ props: we,
3518
3343
  emits: ["update:modelValue", "valueChange", "change", "blur", "focus", "click", "input"],
3519
3344
  setup(e, n) {
3520
- const t = st(e, n), o = ut(e, n, t), r = it(e, n, o, t), a = Fe(e, n, r), l = m(), s = W("designer-host-service"), c = W("design-item-context"), i = mr(c, s), d = at(l, c, i);
3521
- _(() => {
3522
- l.value.componentInstance = d, e.readonly = !0;
3523
- }), n.expose(d.value);
3524
- const u = m();
3525
- return () => S("div", {
3526
- ref: l,
3345
+ const t = tt(e, n), o = et(e, n, t), r = Ke(e, n, o, t), a = Ce(e, n, r), i = b(), s = _("designer-host-service"), d = _("design-item-context"), l = fr(d, s), c = dr(i, d, l);
3346
+ U(() => {
3347
+ i.value.componentInstance = c, e.readonly = !0;
3348
+ }), n.expose(c.value);
3349
+ const u = b();
3350
+ return () => C("div", {
3351
+ ref: i,
3527
3352
  class: "input-group f-state-hover flex-row f-cmp-number-spinner test"
3528
- }, [S("input", {
3353
+ }, [C("input", {
3529
3354
  ref: u,
3530
3355
  class: "form-control",
3531
3356
  readonly: !0,
@@ -3533,17 +3358,17 @@ const hr = /* @__PURE__ */ R({
3533
3358
  }, null), a()]);
3534
3359
  }
3535
3360
  });
3536
- K.register = (e, n, t, o) => {
3537
- e["number-spinner"] = K, n["number-spinner"] = lt;
3361
+ X.register = (e, n, t, o) => {
3362
+ e["number-spinner"] = X, n["number-spinner"] = Qe;
3538
3363
  };
3539
- K.registerDesigner = (e, n, t) => {
3540
- e["number-spinner"] = hr, n["number-spinner"] = lt;
3364
+ X.registerDesigner = (e, n, t) => {
3365
+ e["number-spinner"] = yr, n["number-spinner"] = Qe;
3541
3366
  };
3542
- Be(K);
3543
- function br(e, n, t, o, r, a, l) {
3544
- const s = m(0), c = m(""), i = m([]), d = m(""), u = m("");
3367
+ me(X);
3368
+ function vr(e, n, t, o, r, a, i) {
3369
+ const s = b(0), d = b(""), l = b([]), c = b(""), u = b("");
3545
3370
  function f() {
3546
- e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (d.value = F(e.value.propertyValue.value), n.value = F(e.value.editorOptions.enums));
3371
+ e.value.propertyType === "enum" && e.value.propertyValue.type === "const" && (c.value = F(e.value.propertyValue.value), n.value = F(e.value.editorOptions.enums));
3547
3372
  }
3548
3373
  function p() {
3549
3374
  e.value.propertyType === "number" && (s.value = e.value.propertyValue.value);
@@ -3552,17 +3377,17 @@ function br(e, n, t, o, r, a, l) {
3552
3377
  t.value.id === "stateMachine" && (o = F(e.value.propertyValue.value.id), o ? r.value = F(e.value.propertyValue.value.exist) : r.value = "否");
3553
3378
  }
3554
3379
  function v() {
3555
- if (t.value.id === "dataStates" && (i.value = F(e.value.editorOptions.dataStates), e.value.propertyValue.value)) {
3556
- const w = e.value.propertyValue.value, C = i.value.filter((T) => w.includes(T.value)).map((T) => T.value).join(",");
3557
- c.value = F(C);
3380
+ if (t.value.id === "dataStates" && (l.value = F(e.value.editorOptions.dataStates), e.value.propertyValue.value)) {
3381
+ const w = e.value.propertyValue.value, g = l.value.filter((x) => w.includes(x.value)).map((x) => x.value).join(",");
3382
+ d.value = F(g);
3558
3383
  }
3559
3384
  }
3560
- function h() {
3385
+ function m() {
3561
3386
  t.value.id === "variable" && (u.value = e.value.propertyValue.value.path);
3562
3387
  }
3563
- function g() {
3388
+ function S() {
3564
3389
  if (t.value.id === "expression") {
3565
- l.value = !0;
3390
+ i.value = !0;
3566
3391
  const { handleExpressionValue: w } = e.value.editorOptions.expressionConfig;
3567
3392
  w ? a.value = w().value.value : a.value = e.value.editorOptions.expressionConfig.expressionValue.value.value;
3568
3393
  }
@@ -3570,20 +3395,20 @@ function br(e, n, t, o, r, a, l) {
3570
3395
  function V() {
3571
3396
  t.value.id;
3572
3397
  }
3573
- function E() {
3574
- f(), p(), h(), y(), v(), g(), V();
3398
+ function k() {
3399
+ f(), p(), m(), y(), v(), S(), V();
3575
3400
  }
3576
3401
  return {
3577
3402
  numberConstValue: s,
3578
3403
  bindVariableValue: u,
3579
- dataStatesBindValue: c,
3580
- dataStatesValueArray: i,
3581
- constEnumBindValue: d,
3582
- setValue: E
3404
+ dataStatesBindValue: d,
3405
+ dataStatesValueArray: l,
3406
+ constEnumBindValue: c,
3407
+ setValue: k
3583
3408
  };
3584
3409
  }
3585
- function gr(e, n, t, o, r, a, l, s, c, i, d, u) {
3586
- const f = m(!1), p = m({
3410
+ function mr(e, n, t, o, r, a, i, s, d, l, c, u) {
3411
+ const f = b(!1), p = b({
3587
3412
  propertyName: "",
3588
3413
  /** 属性类型:boolean, string, number, enum */
3589
3414
  propertyType: "",
@@ -3604,160 +3429,160 @@ function gr(e, n, t, o, r, a, l, s, c, i, d, u) {
3604
3429
  exist: ""
3605
3430
  }, s.value = "否"));
3606
3431
  }
3607
- function h() {
3608
- n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = F(r.value.dataStatesValue.value), c.value = F(n.value.editorOptions.dataStates));
3432
+ function m() {
3433
+ n.value.propertyValue.type === "dataStates" && (n.value.propertyValue.value = F(r.value.dataStatesValue.value), d.value = F(n.value.editorOptions.dataStates));
3609
3434
  }
3610
- function g() {
3611
- i.value = "", r.value.expressionValue && (r.value.expressionValue.value = "");
3435
+ function S() {
3436
+ l.value = "", r.value.expressionValue && (r.value.expressionValue.value = "");
3612
3437
  }
3613
3438
  function V() {
3614
- d.value || (s.value = s.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = s, r.value.stateMachineValue.value.exist = s, C());
3439
+ c.value || (s.value = s.value === "否" ? "是" : "否", n.value.propertyValue.value.exist = s, r.value.stateMachineValue.value.exist = s, g());
3615
3440
  }
3616
- function E() {
3441
+ function k() {
3617
3442
  p.value.propertyValue.value && p.value.propertyValue.value.includes("viewModel.stateMachine") && (r.value.customValue.value = "");
3618
3443
  }
3619
3444
  function w() {
3620
3445
  p.value.propertyName = F(n.value.propertyName), p.value.propertyType = F(n.value.propertyType), p.value.propertyValue = F(n.value.propertyValue), p.value.hasPrefix = F(f);
3621
3446
  }
3622
- function C() {
3623
- if (!d.value)
3447
+ function g() {
3448
+ if (!c.value)
3624
3449
  switch (w(), p.value.propertyValue.type) {
3625
3450
  case "const":
3626
- (p.value.propertyType === "enum" && p.value.propertyValue.value !== "" || p.value.propertyType === "number" && p.value.propertyValue.value != null || p.value.propertyType === "string") && (g(), e.emit("propertyEditorValueChanged", p));
3451
+ (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));
3627
3452
  break;
3628
3453
  case "variable":
3629
- p.value.propertyValue.value.path !== "" && (g(), e.emit("propertyEditorValueChanged", p));
3454
+ p.value.propertyValue.value.path !== "" && (S(), e.emit("propertyEditorValueChanged", p));
3630
3455
  break;
3631
3456
  case "custom":
3632
- g(), E(), e.emit("propertyEditorValueChanged", p);
3457
+ S(), k(), e.emit("propertyEditorValueChanged", p);
3633
3458
  break;
3634
3459
  case "expression":
3635
- i.value && e.emit("propertyEditorValueChanged", p);
3460
+ l.value && e.emit("propertyEditorValueChanged", p);
3636
3461
  break;
3637
3462
  case "stateMachine":
3638
- p.value.propertyValue.value.id && (g(), e.emit("propertyEditorValueChanged", p));
3463
+ p.value.propertyValue.value.id && (S(), e.emit("propertyEditorValueChanged", p));
3639
3464
  break;
3640
3465
  case "dataStates":
3641
3466
  if (p.value.propertyValue.value !== "") {
3642
- g(), e.emit("propertyEditorValueChanged", p);
3467
+ S(), e.emit("propertyEditorValueChanged", p);
3643
3468
  break;
3644
3469
  }
3645
3470
  }
3646
3471
  }
3647
- function T() {
3648
- n.value.propertyValue = r.value[`${u.value.id}Value`], y(), v(), h(), C(), p.value.isNewVariable = !1;
3472
+ function x() {
3473
+ n.value.propertyValue = r.value[`${u.value.id}Value`], y(), v(), m(), g(), p.value.isNewVariable = !1;
3649
3474
  }
3650
3475
  return {
3651
- updateData: T,
3476
+ updateData: x,
3652
3477
  changeState: V,
3653
3478
  prefix: f,
3654
3479
  propertyEditorValueChange: p
3655
3480
  };
3656
3481
  }
3657
- var ge = function(e, n) {
3658
- return ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, o) {
3482
+ var fe = function(e, n) {
3483
+ return fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, o) {
3659
3484
  t.__proto__ = o;
3660
3485
  } || function(t, o) {
3661
3486
  for (var r in o) Object.prototype.hasOwnProperty.call(o, r) && (t[r] = o[r]);
3662
- }, ge(e, n);
3487
+ }, fe(e, n);
3663
3488
  };
3664
- function H(e, n) {
3489
+ function q(e, n) {
3665
3490
  if (typeof n != "function" && n !== null)
3666
3491
  throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
3667
- ge(e, n);
3492
+ fe(e, n);
3668
3493
  function t() {
3669
3494
  this.constructor = e;
3670
3495
  }
3671
3496
  e.prototype = n === null ? Object.create(n) : (t.prototype = n.prototype, new t());
3672
3497
  }
3673
- function Cr(e, n, t, o) {
3498
+ function hr(e, n, t, o) {
3674
3499
  function r(a) {
3675
- return a instanceof t ? a : new t(function(l) {
3676
- l(a);
3500
+ return a instanceof t ? a : new t(function(i) {
3501
+ i(a);
3677
3502
  });
3678
3503
  }
3679
- return new (t || (t = Promise))(function(a, l) {
3680
- function s(d) {
3504
+ return new (t || (t = Promise))(function(a, i) {
3505
+ function s(c) {
3681
3506
  try {
3682
- i(o.next(d));
3507
+ l(o.next(c));
3683
3508
  } catch (u) {
3684
- l(u);
3509
+ i(u);
3685
3510
  }
3686
3511
  }
3687
- function c(d) {
3512
+ function d(c) {
3688
3513
  try {
3689
- i(o.throw(d));
3514
+ l(o.throw(c));
3690
3515
  } catch (u) {
3691
- l(u);
3516
+ i(u);
3692
3517
  }
3693
3518
  }
3694
- function i(d) {
3695
- d.done ? a(d.value) : r(d.value).then(s, c);
3519
+ function l(c) {
3520
+ c.done ? a(c.value) : r(c.value).then(s, d);
3696
3521
  }
3697
- i((o = o.apply(e, n || [])).next());
3522
+ l((o = o.apply(e, n || [])).next());
3698
3523
  });
3699
3524
  }
3700
- function ct(e, n) {
3525
+ function nt(e, n) {
3701
3526
  var t = { label: 0, sent: function() {
3702
3527
  if (a[0] & 1) throw a[1];
3703
3528
  return a[1];
3704
- }, trys: [], ops: [] }, o, r, a, l = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
3705
- return l.next = s(0), l.throw = s(1), l.return = s(2), typeof Symbol == "function" && (l[Symbol.iterator] = function() {
3529
+ }, trys: [], ops: [] }, o, r, a, i = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
3530
+ return i.next = s(0), i.throw = s(1), i.return = s(2), typeof Symbol == "function" && (i[Symbol.iterator] = function() {
3706
3531
  return this;
3707
- }), l;
3708
- function s(i) {
3709
- return function(d) {
3710
- return c([i, d]);
3532
+ }), i;
3533
+ function s(l) {
3534
+ return function(c) {
3535
+ return d([l, c]);
3711
3536
  };
3712
3537
  }
3713
- function c(i) {
3538
+ function d(l) {
3714
3539
  if (o) throw new TypeError("Generator is already executing.");
3715
- for (; l && (l = 0, i[0] && (t = 0)), t; ) try {
3716
- 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;
3717
- switch (r = 0, a && (i = [i[0] & 2, a.value]), i[0]) {
3540
+ for (; i && (i = 0, l[0] && (t = 0)), t; ) try {
3541
+ if (o = 1, r && (a = l[0] & 2 ? r.return : l[0] ? r.throw || ((a = r.return) && a.call(r), 0) : r.next) && !(a = a.call(r, l[1])).done) return a;
3542
+ switch (r = 0, a && (l = [l[0] & 2, a.value]), l[0]) {
3718
3543
  case 0:
3719
3544
  case 1:
3720
- a = i;
3545
+ a = l;
3721
3546
  break;
3722
3547
  case 4:
3723
- return t.label++, { value: i[1], done: !1 };
3548
+ return t.label++, { value: l[1], done: !1 };
3724
3549
  case 5:
3725
- t.label++, r = i[1], i = [0];
3550
+ t.label++, r = l[1], l = [0];
3726
3551
  continue;
3727
3552
  case 7:
3728
- i = t.ops.pop(), t.trys.pop();
3553
+ l = t.ops.pop(), t.trys.pop();
3729
3554
  continue;
3730
3555
  default:
3731
- if (a = t.trys, !(a = a.length > 0 && a[a.length - 1]) && (i[0] === 6 || i[0] === 2)) {
3556
+ if (a = t.trys, !(a = a.length > 0 && a[a.length - 1]) && (l[0] === 6 || l[0] === 2)) {
3732
3557
  t = 0;
3733
3558
  continue;
3734
3559
  }
3735
- if (i[0] === 3 && (!a || i[1] > a[0] && i[1] < a[3])) {
3736
- t.label = i[1];
3560
+ if (l[0] === 3 && (!a || l[1] > a[0] && l[1] < a[3])) {
3561
+ t.label = l[1];
3737
3562
  break;
3738
3563
  }
3739
- if (i[0] === 6 && t.label < a[1]) {
3740
- t.label = a[1], a = i;
3564
+ if (l[0] === 6 && t.label < a[1]) {
3565
+ t.label = a[1], a = l;
3741
3566
  break;
3742
3567
  }
3743
3568
  if (a && t.label < a[2]) {
3744
- t.label = a[2], t.ops.push(i);
3569
+ t.label = a[2], t.ops.push(l);
3745
3570
  break;
3746
3571
  }
3747
3572
  a[2] && t.ops.pop(), t.trys.pop();
3748
3573
  continue;
3749
3574
  }
3750
- i = n.call(e, t);
3751
- } catch (d) {
3752
- i = [6, d], r = 0;
3575
+ l = n.call(e, t);
3576
+ } catch (c) {
3577
+ l = [6, c], r = 0;
3753
3578
  } finally {
3754
3579
  o = a = 0;
3755
3580
  }
3756
- if (i[0] & 5) throw i[1];
3757
- return { value: i[0] ? i[1] : void 0, done: !0 };
3581
+ if (l[0] & 5) throw l[1];
3582
+ return { value: l[0] ? l[1] : void 0, done: !0 };
3758
3583
  }
3759
3584
  }
3760
- function X(e) {
3585
+ function Y(e) {
3761
3586
  var n = typeof Symbol == "function" && Symbol.iterator, t = n && e[n], o = 0;
3762
3587
  if (t) return t.call(e);
3763
3588
  if (e && typeof e.length == "number") return {
@@ -3767,98 +3592,98 @@ function X(e) {
3767
3592
  };
3768
3593
  throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
3769
3594
  }
3770
- function ie(e, n) {
3595
+ function oe(e, n) {
3771
3596
  var t = typeof Symbol == "function" && e[Symbol.iterator];
3772
3597
  if (!t) return e;
3773
- var o = t.call(e), r, a = [], l;
3598
+ var o = t.call(e), r, a = [], i;
3774
3599
  try {
3775
3600
  for (; (n === void 0 || n-- > 0) && !(r = o.next()).done; ) a.push(r.value);
3776
3601
  } catch (s) {
3777
- l = { error: s };
3602
+ i = { error: s };
3778
3603
  } finally {
3779
3604
  try {
3780
3605
  r && !r.done && (t = o.return) && t.call(o);
3781
3606
  } finally {
3782
- if (l) throw l.error;
3607
+ if (i) throw i.error;
3783
3608
  }
3784
3609
  }
3785
3610
  return a;
3786
3611
  }
3787
- function ue(e, n, t) {
3612
+ function re(e, n, t) {
3788
3613
  if (t || arguments.length === 2) for (var o = 0, r = n.length, a; o < r; o++)
3789
3614
  (a || !(o in n)) && (a || (a = Array.prototype.slice.call(n, 0, o)), a[o] = n[o]);
3790
3615
  return e.concat(a || Array.prototype.slice.call(n));
3791
3616
  }
3792
- function Z(e) {
3793
- return this instanceof Z ? (this.v = e, this) : new Z(e);
3617
+ function z(e) {
3618
+ return this instanceof z ? (this.v = e, this) : new z(e);
3794
3619
  }
3795
- function Sr(e, n, t) {
3620
+ function br(e, n, t) {
3796
3621
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3797
3622
  var o = t.apply(e, n || []), r, a = [];
3798
- return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", l), r[Symbol.asyncIterator] = function() {
3623
+ return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", i), r[Symbol.asyncIterator] = function() {
3799
3624
  return this;
3800
3625
  }, r;
3801
- function l(p) {
3626
+ function i(p) {
3802
3627
  return function(y) {
3803
3628
  return Promise.resolve(y).then(p, u);
3804
3629
  };
3805
3630
  }
3806
3631
  function s(p, y) {
3807
3632
  o[p] && (r[p] = function(v) {
3808
- return new Promise(function(h, g) {
3809
- a.push([p, v, h, g]) > 1 || c(p, v);
3633
+ return new Promise(function(m, S) {
3634
+ a.push([p, v, m, S]) > 1 || d(p, v);
3810
3635
  });
3811
3636
  }, y && (r[p] = y(r[p])));
3812
3637
  }
3813
- function c(p, y) {
3638
+ function d(p, y) {
3814
3639
  try {
3815
- i(o[p](y));
3640
+ l(o[p](y));
3816
3641
  } catch (v) {
3817
3642
  f(a[0][3], v);
3818
3643
  }
3819
3644
  }
3820
- function i(p) {
3821
- p.value instanceof Z ? Promise.resolve(p.value.v).then(d, u) : f(a[0][2], p);
3645
+ function l(p) {
3646
+ p.value instanceof z ? Promise.resolve(p.value.v).then(c, u) : f(a[0][2], p);
3822
3647
  }
3823
- function d(p) {
3824
- c("next", p);
3648
+ function c(p) {
3649
+ d("next", p);
3825
3650
  }
3826
3651
  function u(p) {
3827
- c("throw", p);
3652
+ d("throw", p);
3828
3653
  }
3829
3654
  function f(p, y) {
3830
- p(y), a.shift(), a.length && c(a[0][0], a[0][1]);
3655
+ p(y), a.shift(), a.length && d(a[0][0], a[0][1]);
3831
3656
  }
3832
3657
  }
3833
- function wr(e) {
3658
+ function gr(e) {
3834
3659
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3835
3660
  var n = e[Symbol.asyncIterator], t;
3836
- 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() {
3661
+ return n ? n.call(e) : (e = typeof Y == "function" ? Y(e) : e[Symbol.iterator](), t = {}, o("next"), o("throw"), o("return"), t[Symbol.asyncIterator] = function() {
3837
3662
  return this;
3838
3663
  }, t);
3839
3664
  function o(a) {
3840
- t[a] = e[a] && function(l) {
3841
- return new Promise(function(s, c) {
3842
- l = e[a](l), r(s, c, l.done, l.value);
3665
+ t[a] = e[a] && function(i) {
3666
+ return new Promise(function(s, d) {
3667
+ i = e[a](i), r(s, d, i.done, i.value);
3843
3668
  });
3844
3669
  };
3845
3670
  }
3846
- function r(a, l, s, c) {
3847
- Promise.resolve(c).then(function(i) {
3848
- a({ value: i, done: s });
3849
- }, l);
3671
+ function r(a, i, s, d) {
3672
+ Promise.resolve(d).then(function(l) {
3673
+ a({ value: l, done: s });
3674
+ }, i);
3850
3675
  }
3851
3676
  }
3852
- function N(e) {
3677
+ function A(e) {
3853
3678
  return typeof e == "function";
3854
3679
  }
3855
- function dt(e) {
3680
+ function ot(e) {
3856
3681
  var n = function(o) {
3857
3682
  Error.call(o), o.stack = new Error().stack;
3858
3683
  }, t = e(n);
3859
3684
  return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
3860
3685
  }
3861
- var ye = dt(function(e) {
3686
+ var ue = ot(function(e) {
3862
3687
  return function(t) {
3863
3688
  e(this), this.message = t ? t.length + ` errors occurred during unsubscription:
3864
3689
  ` + t.map(function(o, r) {
@@ -3867,13 +3692,13 @@ var ye = dt(function(e) {
3867
3692
  `) : "", this.name = "UnsubscriptionError", this.errors = t;
3868
3693
  };
3869
3694
  });
3870
- function se(e, n) {
3695
+ function ae(e, n) {
3871
3696
  if (e) {
3872
3697
  var t = e.indexOf(n);
3873
3698
  0 <= t && e.splice(t, 1);
3874
3699
  }
3875
3700
  }
3876
- var te = function() {
3701
+ var Q = function() {
3877
3702
  function e(n) {
3878
3703
  this.initialTeardown = n, this.closed = !1, this._parentage = null, this._finalizers = null;
3879
3704
  }
@@ -3881,42 +3706,42 @@ var te = function() {
3881
3706
  var n, t, o, r, a;
3882
3707
  if (!this.closed) {
3883
3708
  this.closed = !0;
3884
- var l = this._parentage;
3885
- if (l)
3886
- if (this._parentage = null, Array.isArray(l))
3709
+ var i = this._parentage;
3710
+ if (i)
3711
+ if (this._parentage = null, Array.isArray(i))
3887
3712
  try {
3888
- for (var s = X(l), c = s.next(); !c.done; c = s.next()) {
3889
- var i = c.value;
3890
- i.remove(this);
3713
+ for (var s = Y(i), d = s.next(); !d.done; d = s.next()) {
3714
+ var l = d.value;
3715
+ l.remove(this);
3891
3716
  }
3892
3717
  } catch (v) {
3893
3718
  n = { error: v };
3894
3719
  } finally {
3895
3720
  try {
3896
- c && !c.done && (t = s.return) && t.call(s);
3721
+ d && !d.done && (t = s.return) && t.call(s);
3897
3722
  } finally {
3898
3723
  if (n) throw n.error;
3899
3724
  }
3900
3725
  }
3901
3726
  else
3902
- l.remove(this);
3903
- var d = this.initialTeardown;
3904
- if (N(d))
3727
+ i.remove(this);
3728
+ var c = this.initialTeardown;
3729
+ if (A(c))
3905
3730
  try {
3906
- d();
3731
+ c();
3907
3732
  } catch (v) {
3908
- a = v instanceof ye ? v.errors : [v];
3733
+ a = v instanceof ue ? v.errors : [v];
3909
3734
  }
3910
3735
  var u = this._finalizers;
3911
3736
  if (u) {
3912
3737
  this._finalizers = null;
3913
3738
  try {
3914
- for (var f = X(u), p = f.next(); !p.done; p = f.next()) {
3739
+ for (var f = Y(u), p = f.next(); !p.done; p = f.next()) {
3915
3740
  var y = p.value;
3916
3741
  try {
3917
- $e(y);
3742
+ Ae(y);
3918
3743
  } catch (v) {
3919
- a = a ?? [], v instanceof ye ? a = ue(ue([], ie(a)), ie(v.errors)) : a.push(v);
3744
+ a = a ?? [], v instanceof ue ? a = re(re([], oe(a)), oe(v.errors)) : a.push(v);
3920
3745
  }
3921
3746
  }
3922
3747
  } catch (v) {
@@ -3930,13 +3755,13 @@ var te = function() {
3930
3755
  }
3931
3756
  }
3932
3757
  if (a)
3933
- throw new ye(a);
3758
+ throw new ue(a);
3934
3759
  }
3935
3760
  }, e.prototype.add = function(n) {
3936
3761
  var t;
3937
3762
  if (n && n !== this)
3938
3763
  if (this.closed)
3939
- $e(n);
3764
+ Ae(n);
3940
3765
  else {
3941
3766
  if (n instanceof e) {
3942
3767
  if (n.closed || n._hasParent(this))
@@ -3953,56 +3778,56 @@ var te = function() {
3953
3778
  this._parentage = Array.isArray(t) ? (t.push(n), t) : t ? [t, n] : n;
3954
3779
  }, e.prototype._removeParent = function(n) {
3955
3780
  var t = this._parentage;
3956
- t === n ? this._parentage = null : Array.isArray(t) && se(t, n);
3781
+ t === n ? this._parentage = null : Array.isArray(t) && ae(t, n);
3957
3782
  }, e.prototype.remove = function(n) {
3958
3783
  var t = this._finalizers;
3959
- t && se(t, n), n instanceof e && n._removeParent(this);
3784
+ t && ae(t, n), n instanceof e && n._removeParent(this);
3960
3785
  }, e.EMPTY = function() {
3961
3786
  var n = new e();
3962
3787
  return n.closed = !0, n;
3963
3788
  }(), e;
3964
- }(), pt = te.EMPTY;
3965
- function ft(e) {
3966
- return e instanceof te || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
3789
+ }(), rt = Q.EMPTY;
3790
+ function at(e) {
3791
+ return e instanceof Q || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
3967
3792
  }
3968
- function $e(e) {
3969
- N(e) ? e() : e.unsubscribe();
3793
+ function Ae(e) {
3794
+ A(e) ? e() : e.unsubscribe();
3970
3795
  }
3971
- var yt = {
3796
+ var it = {
3972
3797
  onUnhandledError: null,
3973
3798
  onStoppedNotification: null,
3974
3799
  Promise: void 0,
3975
3800
  useDeprecatedSynchronousErrorHandling: !1,
3976
3801
  useDeprecatedNextContext: !1
3977
- }, xr = {
3802
+ }, Sr = {
3978
3803
  setTimeout: function(e, n) {
3979
3804
  for (var t = [], o = 2; o < arguments.length; o++)
3980
3805
  t[o - 2] = arguments[o];
3981
- return setTimeout.apply(void 0, ue([e, n], ie(t)));
3806
+ return setTimeout.apply(void 0, re([e, n], oe(t)));
3982
3807
  },
3983
3808
  clearTimeout: function(e) {
3984
3809
  return clearTimeout(e);
3985
3810
  },
3986
3811
  delegate: void 0
3987
3812
  };
3988
- function vt(e) {
3989
- xr.setTimeout(function() {
3813
+ function lt(e) {
3814
+ Sr.setTimeout(function() {
3990
3815
  throw e;
3991
3816
  });
3992
3817
  }
3993
- function Ue() {
3818
+ function Ne() {
3994
3819
  }
3995
- function re(e) {
3820
+ function ee(e) {
3996
3821
  e();
3997
3822
  }
3998
- var Me = function(e) {
3999
- H(n, e);
3823
+ var Ve = function(e) {
3824
+ q(n, e);
4000
3825
  function n(t) {
4001
3826
  var o = e.call(this) || this;
4002
- return o.isStopped = !1, t ? (o.destination = t, ft(t) && t.add(o)) : o.destination = Fr, o;
3827
+ return o.isStopped = !1, t ? (o.destination = t, at(t) && t.add(o)) : o.destination = xr, o;
4003
3828
  }
4004
3829
  return n.create = function(t, o, r) {
4005
- return new Ce(t, o, r);
3830
+ return new ye(t, o, r);
4006
3831
  }, n.prototype.next = function(t) {
4007
3832
  this.isStopped || this._next(t);
4008
3833
  }, n.prototype.error = function(t) {
@@ -4026,11 +3851,11 @@ var Me = function(e) {
4026
3851
  this.unsubscribe();
4027
3852
  }
4028
3853
  }, n;
4029
- }(te), Vr = Function.prototype.bind;
4030
- function ve(e, n) {
4031
- return Vr.call(e, n);
3854
+ }(Q), Cr = Function.prototype.bind;
3855
+ function se(e, n) {
3856
+ return Cr.call(e, n);
4032
3857
  }
4033
- var Br = function() {
3858
+ var wr = function() {
4034
3859
  function e(n) {
4035
3860
  this.partialObserver = n;
4036
3861
  }
@@ -4040,7 +3865,7 @@ var Br = function() {
4040
3865
  try {
4041
3866
  t.next(n);
4042
3867
  } catch (o) {
4043
- oe(o);
3868
+ K(o);
4044
3869
  }
4045
3870
  }, e.prototype.error = function(n) {
4046
3871
  var t = this.partialObserver;
@@ -4048,68 +3873,68 @@ var Br = function() {
4048
3873
  try {
4049
3874
  t.error(n);
4050
3875
  } catch (o) {
4051
- oe(o);
3876
+ K(o);
4052
3877
  }
4053
3878
  else
4054
- oe(n);
3879
+ K(n);
4055
3880
  }, e.prototype.complete = function() {
4056
3881
  var n = this.partialObserver;
4057
3882
  if (n.complete)
4058
3883
  try {
4059
3884
  n.complete();
4060
3885
  } catch (t) {
4061
- oe(t);
3886
+ K(t);
4062
3887
  }
4063
3888
  }, e;
4064
- }(), Ce = function(e) {
4065
- H(n, e);
3889
+ }(), ye = function(e) {
3890
+ q(n, e);
4066
3891
  function n(t, o, r) {
4067
- var a = e.call(this) || this, l;
4068
- if (N(t) || !t)
4069
- l = {
3892
+ var a = e.call(this) || this, i;
3893
+ if (A(t) || !t)
3894
+ i = {
4070
3895
  next: t ?? void 0,
4071
3896
  error: o ?? void 0,
4072
3897
  complete: r ?? void 0
4073
3898
  };
4074
3899
  else {
4075
3900
  var s;
4076
- a && yt.useDeprecatedNextContext ? (s = Object.create(t), s.unsubscribe = function() {
3901
+ a && it.useDeprecatedNextContext ? (s = Object.create(t), s.unsubscribe = function() {
4077
3902
  return a.unsubscribe();
4078
- }, l = {
4079
- next: t.next && ve(t.next, s),
4080
- error: t.error && ve(t.error, s),
4081
- complete: t.complete && ve(t.complete, s)
4082
- }) : l = t;
3903
+ }, i = {
3904
+ next: t.next && se(t.next, s),
3905
+ error: t.error && se(t.error, s),
3906
+ complete: t.complete && se(t.complete, s)
3907
+ }) : i = t;
4083
3908
  }
4084
- return a.destination = new Br(l), a;
3909
+ return a.destination = new wr(i), a;
4085
3910
  }
4086
3911
  return n;
4087
- }(Me);
4088
- function oe(e) {
4089
- vt(e);
3912
+ }(Ve);
3913
+ function K(e) {
3914
+ lt(e);
4090
3915
  }
4091
- function Tr(e) {
3916
+ function Vr(e) {
4092
3917
  throw e;
4093
3918
  }
4094
- var Fr = {
3919
+ var xr = {
4095
3920
  closed: !0,
4096
- next: Ue,
4097
- error: Tr,
4098
- complete: Ue
4099
- }, Ee = function() {
3921
+ next: Ne,
3922
+ error: Vr,
3923
+ complete: Ne
3924
+ }, xe = function() {
4100
3925
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
4101
3926
  }();
4102
- function kr(e) {
3927
+ function Br(e) {
4103
3928
  return e;
4104
3929
  }
4105
- function Mr(e) {
4106
- return e.length === 0 ? kr : e.length === 1 ? e[0] : function(t) {
3930
+ function Fr(e) {
3931
+ return e.length === 0 ? Br : e.length === 1 ? e[0] : function(t) {
4107
3932
  return e.reduce(function(o, r) {
4108
3933
  return r(o);
4109
3934
  }, t);
4110
3935
  };
4111
3936
  }
4112
- var G = function() {
3937
+ var $ = function() {
4113
3938
  function e(n) {
4114
3939
  n && (this._subscribe = n);
4115
3940
  }
@@ -4117,10 +3942,10 @@ var G = function() {
4117
3942
  var t = new e();
4118
3943
  return t.source = this, t.operator = n, t;
4119
3944
  }, e.prototype.subscribe = function(n, t, o) {
4120
- var r = this, a = Ir(n) ? n : new Ce(n, t, o);
4121
- return re(function() {
4122
- var l = r, s = l.operator, c = l.source;
4123
- a.add(s ? s.call(a, c) : c ? r._subscribe(a) : r._trySubscribe(a));
3945
+ var r = this, a = kr(n) ? n : new ye(n, t, o);
3946
+ return ee(function() {
3947
+ var i = r, s = i.operator, d = i.source;
3948
+ a.add(s ? s.call(a, d) : d ? r._subscribe(a) : r._trySubscribe(a));
4124
3949
  }), a;
4125
3950
  }, e.prototype._trySubscribe = function(n) {
4126
3951
  try {
@@ -4130,37 +3955,37 @@ var G = function() {
4130
3955
  }
4131
3956
  }, e.prototype.forEach = function(n, t) {
4132
3957
  var o = this;
4133
- return t = Ge(t), new t(function(r, a) {
4134
- var l = new Ce({
3958
+ return t = Oe(t), new t(function(r, a) {
3959
+ var i = new ye({
4135
3960
  next: function(s) {
4136
3961
  try {
4137
3962
  n(s);
4138
- } catch (c) {
4139
- a(c), l.unsubscribe();
3963
+ } catch (d) {
3964
+ a(d), i.unsubscribe();
4140
3965
  }
4141
3966
  },
4142
3967
  error: a,
4143
3968
  complete: r
4144
3969
  });
4145
- o.subscribe(l);
3970
+ o.subscribe(i);
4146
3971
  });
4147
3972
  }, e.prototype._subscribe = function(n) {
4148
3973
  var t;
4149
3974
  return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(n);
4150
- }, e.prototype[Ee] = function() {
3975
+ }, e.prototype[xe] = function() {
4151
3976
  return this;
4152
3977
  }, e.prototype.pipe = function() {
4153
3978
  for (var n = [], t = 0; t < arguments.length; t++)
4154
3979
  n[t] = arguments[t];
4155
- return Mr(n)(this);
3980
+ return Fr(n)(this);
4156
3981
  }, e.prototype.toPromise = function(n) {
4157
3982
  var t = this;
4158
- return n = Ge(n), new n(function(o, r) {
3983
+ return n = Oe(n), new n(function(o, r) {
4159
3984
  var a;
4160
- t.subscribe(function(l) {
4161
- return a = l;
4162
- }, function(l) {
4163
- return r(l);
3985
+ t.subscribe(function(i) {
3986
+ return a = i;
3987
+ }, function(i) {
3988
+ return r(i);
4164
3989
  }, function() {
4165
3990
  return o(a);
4166
3991
  });
@@ -4169,22 +3994,22 @@ var G = function() {
4169
3994
  return new e(n);
4170
3995
  }, e;
4171
3996
  }();
4172
- function Ge(e) {
3997
+ function Oe(e) {
4173
3998
  var n;
4174
- return (n = e ?? yt.Promise) !== null && n !== void 0 ? n : Promise;
3999
+ return (n = e ?? it.Promise) !== null && n !== void 0 ? n : Promise;
4175
4000
  }
4176
- function Er(e) {
4177
- return e && N(e.next) && N(e.error) && N(e.complete);
4001
+ function Tr(e) {
4002
+ return e && A(e.next) && A(e.error) && A(e.complete);
4178
4003
  }
4179
- function Ir(e) {
4180
- return e && e instanceof Me || Er(e) && ft(e);
4004
+ function kr(e) {
4005
+ return e && e instanceof Ve || Tr(e) && at(e);
4181
4006
  }
4182
- function Pr(e) {
4183
- return N(e == null ? void 0 : e.lift);
4007
+ function Er(e) {
4008
+ return A(e == null ? void 0 : e.lift);
4184
4009
  }
4185
- function Ie(e) {
4010
+ function Be(e) {
4186
4011
  return function(n) {
4187
- if (Pr(n))
4012
+ if (Er(n))
4188
4013
  return n.lift(function(t) {
4189
4014
  try {
4190
4015
  return e(t, this);
@@ -4195,36 +4020,36 @@ function Ie(e) {
4195
4020
  throw new TypeError("Unable to lift unknown Observable type");
4196
4021
  };
4197
4022
  }
4198
- function mt(e, n, t, o, r) {
4199
- return new Ar(e, n, t, o, r);
4023
+ function ut(e, n, t, o, r) {
4024
+ return new Ir(e, n, t, o, r);
4200
4025
  }
4201
- var Ar = function(e) {
4202
- H(n, e);
4203
- function n(t, o, r, a, l, s) {
4204
- var c = e.call(this, t) || this;
4205
- return c.onFinalize = l, c.shouldUnsubscribe = s, c._next = o ? function(i) {
4026
+ var Ir = function(e) {
4027
+ q(n, e);
4028
+ function n(t, o, r, a, i, s) {
4029
+ var d = e.call(this, t) || this;
4030
+ return d.onFinalize = i, d.shouldUnsubscribe = s, d._next = o ? function(l) {
4206
4031
  try {
4207
- o(i);
4208
- } catch (d) {
4209
- t.error(d);
4032
+ o(l);
4033
+ } catch (c) {
4034
+ t.error(c);
4210
4035
  }
4211
- } : e.prototype._next, c._error = a ? function(i) {
4036
+ } : e.prototype._next, d._error = a ? function(l) {
4212
4037
  try {
4213
- a(i);
4214
- } catch (d) {
4215
- t.error(d);
4038
+ a(l);
4039
+ } catch (c) {
4040
+ t.error(c);
4216
4041
  } finally {
4217
4042
  this.unsubscribe();
4218
4043
  }
4219
- } : e.prototype._error, c._complete = r ? function() {
4044
+ } : e.prototype._error, d._complete = r ? function() {
4220
4045
  try {
4221
4046
  r();
4222
- } catch (i) {
4223
- t.error(i);
4047
+ } catch (l) {
4048
+ t.error(l);
4224
4049
  } finally {
4225
4050
  this.unsubscribe();
4226
4051
  }
4227
- } : e.prototype._complete, c;
4052
+ } : e.prototype._complete, d;
4228
4053
  }
4229
4054
  return n.prototype.unsubscribe = function() {
4230
4055
  var t;
@@ -4233,38 +4058,38 @@ var Ar = function(e) {
4233
4058
  e.prototype.unsubscribe.call(this), !o && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
4234
4059
  }
4235
4060
  }, n;
4236
- }(Me), Or = dt(function(e) {
4061
+ }(Ve), Mr = ot(function(e) {
4237
4062
  return function() {
4238
4063
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4239
4064
  };
4240
- }), ht = function(e) {
4241
- H(n, e);
4065
+ }), st = function(e) {
4066
+ q(n, e);
4242
4067
  function n() {
4243
4068
  var t = e.call(this) || this;
4244
4069
  return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
4245
4070
  }
4246
4071
  return n.prototype.lift = function(t) {
4247
- var o = new Re(this, this);
4072
+ var o = new Le(this, this);
4248
4073
  return o.operator = t, o;
4249
4074
  }, n.prototype._throwIfClosed = function() {
4250
4075
  if (this.closed)
4251
- throw new Or();
4076
+ throw new Mr();
4252
4077
  }, n.prototype.next = function(t) {
4253
4078
  var o = this;
4254
- re(function() {
4079
+ ee(function() {
4255
4080
  var r, a;
4256
4081
  if (o._throwIfClosed(), !o.isStopped) {
4257
4082
  o.currentObservers || (o.currentObservers = Array.from(o.observers));
4258
4083
  try {
4259
- for (var l = X(o.currentObservers), s = l.next(); !s.done; s = l.next()) {
4260
- var c = s.value;
4261
- c.next(t);
4084
+ for (var i = Y(o.currentObservers), s = i.next(); !s.done; s = i.next()) {
4085
+ var d = s.value;
4086
+ d.next(t);
4262
4087
  }
4263
- } catch (i) {
4264
- r = { error: i };
4088
+ } catch (l) {
4089
+ r = { error: l };
4265
4090
  } finally {
4266
4091
  try {
4267
- s && !s.done && (a = l.return) && a.call(l);
4092
+ s && !s.done && (a = i.return) && a.call(i);
4268
4093
  } finally {
4269
4094
  if (r) throw r.error;
4270
4095
  }
@@ -4273,7 +4098,7 @@ var Ar = function(e) {
4273
4098
  });
4274
4099
  }, n.prototype.error = function(t) {
4275
4100
  var o = this;
4276
- re(function() {
4101
+ ee(function() {
4277
4102
  if (o._throwIfClosed(), !o.isStopped) {
4278
4103
  o.hasError = o.isStopped = !0, o.thrownError = t;
4279
4104
  for (var r = o.observers; r.length; )
@@ -4282,7 +4107,7 @@ var Ar = function(e) {
4282
4107
  });
4283
4108
  }, n.prototype.complete = function() {
4284
4109
  var t = this;
4285
- re(function() {
4110
+ ee(function() {
4286
4111
  if (t._throwIfClosed(), !t.isStopped) {
4287
4112
  t.isStopped = !0;
4288
4113
  for (var o = t.observers; o.length; )
@@ -4303,21 +4128,21 @@ var Ar = function(e) {
4303
4128
  }, n.prototype._subscribe = function(t) {
4304
4129
  return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
4305
4130
  }, n.prototype._innerSubscribe = function(t) {
4306
- var o = this, r = this, a = r.hasError, l = r.isStopped, s = r.observers;
4307
- return a || l ? pt : (this.currentObservers = null, s.push(t), new te(function() {
4308
- o.currentObservers = null, se(s, t);
4131
+ var o = this, r = this, a = r.hasError, i = r.isStopped, s = r.observers;
4132
+ return a || i ? rt : (this.currentObservers = null, s.push(t), new Q(function() {
4133
+ o.currentObservers = null, ae(s, t);
4309
4134
  }));
4310
4135
  }, n.prototype._checkFinalizedStatuses = function(t) {
4311
- var o = this, r = o.hasError, a = o.thrownError, l = o.isStopped;
4312
- r ? t.error(a) : l && t.complete();
4136
+ var o = this, r = o.hasError, a = o.thrownError, i = o.isStopped;
4137
+ r ? t.error(a) : i && t.complete();
4313
4138
  }, n.prototype.asObservable = function() {
4314
- var t = new G();
4139
+ var t = new $();
4315
4140
  return t.source = this, t;
4316
4141
  }, n.create = function(t, o) {
4317
- return new Re(t, o);
4142
+ return new Le(t, o);
4318
4143
  }, n;
4319
- }(G), Re = function(e) {
4320
- H(n, e);
4144
+ }($), Le = function(e) {
4145
+ q(n, e);
4321
4146
  function n(t, o) {
4322
4147
  var r = e.call(this) || this;
4323
4148
  return r.destination = t, r.source = o, r;
@@ -4333,33 +4158,33 @@ var Ar = function(e) {
4333
4158
  (o = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || o === void 0 || o.call(t);
4334
4159
  }, n.prototype._subscribe = function(t) {
4335
4160
  var o, r;
4336
- return (r = (o = this.source) === null || o === void 0 ? void 0 : o.subscribe(t)) !== null && r !== void 0 ? r : pt;
4161
+ return (r = (o = this.source) === null || o === void 0 ? void 0 : o.subscribe(t)) !== null && r !== void 0 ? r : rt;
4337
4162
  }, n;
4338
- }(ht), Nr = {
4163
+ }(st), Pr = {
4339
4164
  now: function() {
4340
4165
  return Date.now();
4341
4166
  },
4342
4167
  delegate: void 0
4343
- }, jr = function(e) {
4344
- H(n, e);
4168
+ }, Ar = function(e) {
4169
+ q(n, e);
4345
4170
  function n(t, o) {
4346
4171
  return e.call(this) || this;
4347
4172
  }
4348
4173
  return n.prototype.schedule = function(t, o) {
4349
4174
  return this;
4350
4175
  }, n;
4351
- }(te), _e = {
4176
+ }(Q), je = {
4352
4177
  setInterval: function(e, n) {
4353
4178
  for (var t = [], o = 2; o < arguments.length; o++)
4354
4179
  t[o - 2] = arguments[o];
4355
- return setInterval.apply(void 0, ue([e, n], ie(t)));
4180
+ return setInterval.apply(void 0, re([e, n], oe(t)));
4356
4181
  },
4357
4182
  clearInterval: function(e) {
4358
4183
  return clearInterval(e);
4359
4184
  },
4360
4185
  delegate: void 0
4361
- }, Lr = function(e) {
4362
- H(n, e);
4186
+ }, Nr = function(e) {
4187
+ q(n, e);
4363
4188
  function n(t, o) {
4364
4189
  var r = e.call(this, t, o) || this;
4365
4190
  return r.scheduler = t, r.work = o, r.pending = !1, r;
@@ -4369,14 +4194,14 @@ var Ar = function(e) {
4369
4194
  if (o === void 0 && (o = 0), this.closed)
4370
4195
  return this;
4371
4196
  this.state = t;
4372
- var a = this.id, l = this.scheduler;
4373
- 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;
4197
+ var a = this.id, i = this.scheduler;
4198
+ return a != null && (this.id = this.recycleAsyncId(i, a, o)), this.pending = !0, this.delay = o, this.id = (r = this.id) !== null && r !== void 0 ? r : this.requestAsyncId(i, this.id, o), this;
4374
4199
  }, n.prototype.requestAsyncId = function(t, o, r) {
4375
- return r === void 0 && (r = 0), _e.setInterval(t.flush.bind(t, this), r);
4200
+ return r === void 0 && (r = 0), je.setInterval(t.flush.bind(t, this), r);
4376
4201
  }, n.prototype.recycleAsyncId = function(t, o, r) {
4377
4202
  if (r === void 0 && (r = 0), r != null && this.delay === r && this.pending === !1)
4378
4203
  return o;
4379
- o != null && _e.clearInterval(o);
4204
+ o != null && je.clearInterval(o);
4380
4205
  }, n.prototype.execute = function(t, o) {
4381
4206
  if (this.closed)
4382
4207
  return new Error("executing a cancelled action");
@@ -4389,28 +4214,28 @@ var Ar = function(e) {
4389
4214
  var r = !1, a;
4390
4215
  try {
4391
4216
  this.work(t);
4392
- } catch (l) {
4393
- r = !0, a = l || new Error("Scheduled action threw falsy error");
4217
+ } catch (i) {
4218
+ r = !0, a = i || new Error("Scheduled action threw falsy error");
4394
4219
  }
4395
4220
  if (r)
4396
4221
  return this.unsubscribe(), a;
4397
4222
  }, n.prototype.unsubscribe = function() {
4398
4223
  if (!this.closed) {
4399
4224
  var t = this, o = t.id, r = t.scheduler, a = r.actions;
4400
- this.work = this.state = this.scheduler = null, this.pending = !1, se(a, this), o != null && (this.id = this.recycleAsyncId(r, o, null)), this.delay = null, e.prototype.unsubscribe.call(this);
4225
+ this.work = this.state = this.scheduler = null, this.pending = !1, ae(a, this), o != null && (this.id = this.recycleAsyncId(r, o, null)), this.delay = null, e.prototype.unsubscribe.call(this);
4401
4226
  }
4402
4227
  }, n;
4403
- }(jr), qe = function() {
4228
+ }(Ar), $e = function() {
4404
4229
  function e(n, t) {
4405
4230
  t === void 0 && (t = e.now), this.schedulerActionCtor = n, this.now = t;
4406
4231
  }
4407
4232
  return e.prototype.schedule = function(n, t, o) {
4408
4233
  return t === void 0 && (t = 0), new this.schedulerActionCtor(this, n).schedule(o, t);
4409
- }, e.now = Nr.now, e;
4410
- }(), Dr = function(e) {
4411
- H(n, e);
4234
+ }, e.now = Pr.now, e;
4235
+ }(), Or = function(e) {
4236
+ q(n, e);
4412
4237
  function n(t, o) {
4413
- o === void 0 && (o = qe.now);
4238
+ o === void 0 && (o = $e.now);
4414
4239
  var r = e.call(this, t, o) || this;
4415
4240
  return r.actions = [], r._active = !1, r;
4416
4241
  }
@@ -4432,59 +4257,59 @@ var Ar = function(e) {
4432
4257
  throw r;
4433
4258
  }
4434
4259
  }, n;
4435
- }(qe), $r = new Dr(Lr);
4436
- function Ur(e) {
4437
- return e && N(e.schedule);
4260
+ }($e), Lr = new Or(Nr);
4261
+ function jr(e) {
4262
+ return e && A(e.schedule);
4438
4263
  }
4439
- function Gr(e) {
4264
+ function $r(e) {
4440
4265
  return e[e.length - 1];
4441
4266
  }
4442
- function Rr(e) {
4443
- return Ur(Gr(e)) ? e.pop() : void 0;
4267
+ function Dr(e) {
4268
+ return jr($r(e)) ? e.pop() : void 0;
4444
4269
  }
4445
- var bt = function(e) {
4270
+ var ct = function(e) {
4446
4271
  return e && typeof e.length == "number" && typeof e != "function";
4447
4272
  };
4448
- function gt(e) {
4449
- return N(e == null ? void 0 : e.then);
4273
+ function dt(e) {
4274
+ return A(e == null ? void 0 : e.then);
4450
4275
  }
4451
- function Ct(e) {
4452
- return N(e[Ee]);
4276
+ function pt(e) {
4277
+ return A(e[xe]);
4453
4278
  }
4454
- function St(e) {
4455
- return Symbol.asyncIterator && N(e == null ? void 0 : e[Symbol.asyncIterator]);
4279
+ function ft(e) {
4280
+ return Symbol.asyncIterator && A(e == null ? void 0 : e[Symbol.asyncIterator]);
4456
4281
  }
4457
- function wt(e) {
4282
+ function yt(e) {
4458
4283
  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.");
4459
4284
  }
4460
- function _r() {
4285
+ function Ur() {
4461
4286
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
4462
4287
  }
4463
- var xt = _r();
4464
- function Vt(e) {
4465
- return N(e == null ? void 0 : e[xt]);
4288
+ var vt = Ur();
4289
+ function mt(e) {
4290
+ return A(e == null ? void 0 : e[vt]);
4466
4291
  }
4467
- function Bt(e) {
4468
- return Sr(this, arguments, function() {
4292
+ function ht(e) {
4293
+ return br(this, arguments, function() {
4469
4294
  var t, o, r, a;
4470
- return ct(this, function(l) {
4471
- switch (l.label) {
4295
+ return nt(this, function(i) {
4296
+ switch (i.label) {
4472
4297
  case 0:
4473
- t = e.getReader(), l.label = 1;
4298
+ t = e.getReader(), i.label = 1;
4474
4299
  case 1:
4475
- l.trys.push([1, , 9, 10]), l.label = 2;
4300
+ i.trys.push([1, , 9, 10]), i.label = 2;
4476
4301
  case 2:
4477
- return [4, Z(t.read())];
4302
+ return [4, z(t.read())];
4478
4303
  case 3:
4479
- return o = l.sent(), r = o.value, a = o.done, a ? [4, Z(void 0)] : [3, 5];
4304
+ return o = i.sent(), r = o.value, a = o.done, a ? [4, z(void 0)] : [3, 5];
4480
4305
  case 4:
4481
- return [2, l.sent()];
4306
+ return [2, i.sent()];
4482
4307
  case 5:
4483
- return [4, Z(r)];
4308
+ return [4, z(r)];
4484
4309
  case 6:
4485
- return [4, l.sent()];
4310
+ return [4, i.sent()];
4486
4311
  case 7:
4487
- return l.sent(), [3, 2];
4312
+ return i.sent(), [3, 2];
4488
4313
  case 8:
4489
4314
  return [3, 10];
4490
4315
  case 9:
@@ -4495,59 +4320,59 @@ function Bt(e) {
4495
4320
  });
4496
4321
  });
4497
4322
  }
4498
- function Tt(e) {
4499
- return N(e == null ? void 0 : e.getReader);
4323
+ function bt(e) {
4324
+ return A(e == null ? void 0 : e.getReader);
4500
4325
  }
4501
- function Pe(e) {
4502
- if (e instanceof G)
4326
+ function Fe(e) {
4327
+ if (e instanceof $)
4503
4328
  return e;
4504
4329
  if (e != null) {
4505
- if (Ct(e))
4330
+ if (pt(e))
4331
+ return Rr(e);
4332
+ if (ct(e))
4333
+ return Gr(e);
4334
+ if (dt(e))
4335
+ return _r(e);
4336
+ if (ft(e))
4337
+ return gt(e);
4338
+ if (mt(e))
4506
4339
  return qr(e);
4507
4340
  if (bt(e))
4508
- return Wr(e);
4509
- if (gt(e))
4510
4341
  return Hr(e);
4511
- if (St(e))
4512
- return Ft(e);
4513
- if (Vt(e))
4514
- return zr(e);
4515
- if (Tt(e))
4516
- return Yr(e);
4517
- }
4518
- throw wt(e);
4342
+ }
4343
+ throw yt(e);
4519
4344
  }
4520
- function qr(e) {
4521
- return new G(function(n) {
4522
- var t = e[Ee]();
4523
- if (N(t.subscribe))
4345
+ function Rr(e) {
4346
+ return new $(function(n) {
4347
+ var t = e[xe]();
4348
+ if (A(t.subscribe))
4524
4349
  return t.subscribe(n);
4525
4350
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
4526
4351
  });
4527
4352
  }
4528
- function Wr(e) {
4529
- return new G(function(n) {
4353
+ function Gr(e) {
4354
+ return new $(function(n) {
4530
4355
  for (var t = 0; t < e.length && !n.closed; t++)
4531
4356
  n.next(e[t]);
4532
4357
  n.complete();
4533
4358
  });
4534
4359
  }
4535
- function Hr(e) {
4536
- return new G(function(n) {
4360
+ function _r(e) {
4361
+ return new $(function(n) {
4537
4362
  e.then(function(t) {
4538
4363
  n.closed || (n.next(t), n.complete());
4539
4364
  }, function(t) {
4540
4365
  return n.error(t);
4541
- }).then(null, vt);
4366
+ }).then(null, lt);
4542
4367
  });
4543
4368
  }
4544
- function zr(e) {
4545
- return new G(function(n) {
4369
+ function qr(e) {
4370
+ return new $(function(n) {
4546
4371
  var t, o;
4547
4372
  try {
4548
- for (var r = X(e), a = r.next(); !a.done; a = r.next()) {
4549
- var l = a.value;
4550
- if (n.next(l), n.closed)
4373
+ for (var r = Y(e), a = r.next(); !a.done; a = r.next()) {
4374
+ var i = a.value;
4375
+ if (n.next(i), n.closed)
4551
4376
  return;
4552
4377
  }
4553
4378
  } catch (s) {
@@ -4562,41 +4387,41 @@ function zr(e) {
4562
4387
  n.complete();
4563
4388
  });
4564
4389
  }
4565
- function Ft(e) {
4566
- return new G(function(n) {
4567
- Zr(e, n).catch(function(t) {
4390
+ function gt(e) {
4391
+ return new $(function(n) {
4392
+ Wr(e, n).catch(function(t) {
4568
4393
  return n.error(t);
4569
4394
  });
4570
4395
  });
4571
4396
  }
4572
- function Yr(e) {
4573
- return Ft(Bt(e));
4397
+ function Hr(e) {
4398
+ return gt(ht(e));
4574
4399
  }
4575
- function Zr(e, n) {
4400
+ function Wr(e, n) {
4576
4401
  var t, o, r, a;
4577
- return Cr(this, void 0, void 0, function() {
4578
- var l, s;
4579
- return ct(this, function(c) {
4580
- switch (c.label) {
4402
+ return hr(this, void 0, void 0, function() {
4403
+ var i, s;
4404
+ return nt(this, function(d) {
4405
+ switch (d.label) {
4581
4406
  case 0:
4582
- c.trys.push([0, 5, 6, 11]), t = wr(e), c.label = 1;
4407
+ d.trys.push([0, 5, 6, 11]), t = gr(e), d.label = 1;
4583
4408
  case 1:
4584
4409
  return [4, t.next()];
4585
4410
  case 2:
4586
- if (o = c.sent(), !!o.done) return [3, 4];
4587
- if (l = o.value, n.next(l), n.closed)
4411
+ if (o = d.sent(), !!o.done) return [3, 4];
4412
+ if (i = o.value, n.next(i), n.closed)
4588
4413
  return [2];
4589
- c.label = 3;
4414
+ d.label = 3;
4590
4415
  case 3:
4591
4416
  return [3, 1];
4592
4417
  case 4:
4593
4418
  return [3, 11];
4594
4419
  case 5:
4595
- return s = c.sent(), r = { error: s }, [3, 11];
4420
+ return s = d.sent(), r = { error: s }, [3, 11];
4596
4421
  case 6:
4597
- return c.trys.push([6, , 9, 10]), o && !o.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
4422
+ return d.trys.push([6, , 9, 10]), o && !o.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
4598
4423
  case 7:
4599
- c.sent(), c.label = 8;
4424
+ d.sent(), d.label = 8;
4600
4425
  case 8:
4601
4426
  return [3, 10];
4602
4427
  case 9:
@@ -4610,7 +4435,7 @@ function Zr(e, n) {
4610
4435
  });
4611
4436
  });
4612
4437
  }
4613
- function z(e, n, t, o, r) {
4438
+ function H(e, n, t, o, r) {
4614
4439
  o === void 0 && (o = 0), r === void 0 && (r = !1);
4615
4440
  var a = n.schedule(function() {
4616
4441
  t(), r ? e.add(this.schedule(null, o)) : this.unsubscribe();
@@ -4618,70 +4443,70 @@ function z(e, n, t, o, r) {
4618
4443
  if (e.add(a), !r)
4619
4444
  return a;
4620
4445
  }
4621
- function kt(e, n) {
4622
- return n === void 0 && (n = 0), Ie(function(t, o) {
4623
- t.subscribe(mt(o, function(r) {
4624
- return z(o, e, function() {
4446
+ function St(e, n) {
4447
+ return n === void 0 && (n = 0), Be(function(t, o) {
4448
+ t.subscribe(ut(o, function(r) {
4449
+ return H(o, e, function() {
4625
4450
  return o.next(r);
4626
4451
  }, n);
4627
4452
  }, function() {
4628
- return z(o, e, function() {
4453
+ return H(o, e, function() {
4629
4454
  return o.complete();
4630
4455
  }, n);
4631
4456
  }, function(r) {
4632
- return z(o, e, function() {
4457
+ return H(o, e, function() {
4633
4458
  return o.error(r);
4634
4459
  }, n);
4635
4460
  }));
4636
4461
  });
4637
4462
  }
4638
- function Mt(e, n) {
4639
- return n === void 0 && (n = 0), Ie(function(t, o) {
4463
+ function Ct(e, n) {
4464
+ return n === void 0 && (n = 0), Be(function(t, o) {
4640
4465
  o.add(e.schedule(function() {
4641
4466
  return t.subscribe(o);
4642
4467
  }, n));
4643
4468
  });
4644
4469
  }
4645
- function Xr(e, n) {
4646
- return Pe(e).pipe(Mt(n), kt(n));
4470
+ function zr(e, n) {
4471
+ return Fe(e).pipe(Ct(n), St(n));
4647
4472
  }
4648
- function Jr(e, n) {
4649
- return Pe(e).pipe(Mt(n), kt(n));
4473
+ function Yr(e, n) {
4474
+ return Fe(e).pipe(Ct(n), St(n));
4650
4475
  }
4651
- function Qr(e, n) {
4652
- return new G(function(t) {
4476
+ function Zr(e, n) {
4477
+ return new $(function(t) {
4653
4478
  var o = 0;
4654
4479
  return n.schedule(function() {
4655
4480
  o === e.length ? t.complete() : (t.next(e[o++]), t.closed || this.schedule());
4656
4481
  });
4657
4482
  });
4658
4483
  }
4659
- function Kr(e, n) {
4660
- return new G(function(t) {
4484
+ function Xr(e, n) {
4485
+ return new $(function(t) {
4661
4486
  var o;
4662
- return z(t, n, function() {
4663
- o = e[xt](), z(t, n, function() {
4664
- var r, a, l;
4487
+ return H(t, n, function() {
4488
+ o = e[vt](), H(t, n, function() {
4489
+ var r, a, i;
4665
4490
  try {
4666
- r = o.next(), a = r.value, l = r.done;
4491
+ r = o.next(), a = r.value, i = r.done;
4667
4492
  } catch (s) {
4668
4493
  t.error(s);
4669
4494
  return;
4670
4495
  }
4671
- l ? t.complete() : t.next(a);
4496
+ i ? t.complete() : t.next(a);
4672
4497
  }, 0, !0);
4673
4498
  }), function() {
4674
- return N(o == null ? void 0 : o.return) && o.return();
4499
+ return A(o == null ? void 0 : o.return) && o.return();
4675
4500
  };
4676
4501
  });
4677
4502
  }
4678
- function Et(e, n) {
4503
+ function wt(e, n) {
4679
4504
  if (!e)
4680
4505
  throw new Error("Iterable cannot be null");
4681
- return new G(function(t) {
4682
- z(t, n, function() {
4506
+ return new $(function(t) {
4507
+ H(t, n, function() {
4683
4508
  var o = e[Symbol.asyncIterator]();
4684
- z(t, n, function() {
4509
+ H(t, n, function() {
4685
4510
  o.next().then(function(r) {
4686
4511
  r.done ? t.complete() : t.next(r.value);
4687
4512
  });
@@ -4689,54 +4514,54 @@ function Et(e, n) {
4689
4514
  });
4690
4515
  });
4691
4516
  }
4692
- function ea(e, n) {
4693
- return Et(Bt(e), n);
4517
+ function Jr(e, n) {
4518
+ return wt(ht(e), n);
4694
4519
  }
4695
- function ta(e, n) {
4520
+ function Qr(e, n) {
4696
4521
  if (e != null) {
4697
- if (Ct(e))
4522
+ if (pt(e))
4523
+ return zr(e, n);
4524
+ if (ct(e))
4525
+ return Zr(e, n);
4526
+ if (dt(e))
4527
+ return Yr(e, n);
4528
+ if (ft(e))
4529
+ return wt(e, n);
4530
+ if (mt(e))
4698
4531
  return Xr(e, n);
4699
4532
  if (bt(e))
4700
- return Qr(e, n);
4701
- if (gt(e))
4702
4533
  return Jr(e, n);
4703
- if (St(e))
4704
- return Et(e, n);
4705
- if (Vt(e))
4706
- return Kr(e, n);
4707
- if (Tt(e))
4708
- return ea(e, n);
4709
- }
4710
- throw wt(e);
4534
+ }
4535
+ throw yt(e);
4711
4536
  }
4712
- function na(e, n) {
4713
- return n ? ta(e, n) : Pe(e);
4537
+ function Kr(e, n) {
4538
+ return n ? Qr(e, n) : Fe(e);
4714
4539
  }
4715
- function oa() {
4540
+ function ea() {
4716
4541
  for (var e = [], n = 0; n < arguments.length; n++)
4717
4542
  e[n] = arguments[n];
4718
- var t = Rr(e);
4719
- return na(e, t);
4543
+ var t = Dr(e);
4544
+ return Kr(e, t);
4720
4545
  }
4721
- function ra(e, n) {
4722
- return n === void 0 && (n = $r), Ie(function(t, o) {
4723
- var r = null, a = null, l = null, s = function() {
4546
+ function ta(e, n) {
4547
+ return n === void 0 && (n = Lr), Be(function(t, o) {
4548
+ var r = null, a = null, i = null, s = function() {
4724
4549
  if (r) {
4725
4550
  r.unsubscribe(), r = null;
4726
- var i = a;
4727
- a = null, o.next(i);
4551
+ var l = a;
4552
+ a = null, o.next(l);
4728
4553
  }
4729
4554
  };
4730
- function c() {
4731
- var i = l + e, d = n.now();
4732
- if (d < i) {
4733
- r = this.schedule(void 0, i - d), o.add(r);
4555
+ function d() {
4556
+ var l = i + e, c = n.now();
4557
+ if (c < l) {
4558
+ r = this.schedule(void 0, l - c), o.add(r);
4734
4559
  return;
4735
4560
  }
4736
4561
  s();
4737
4562
  }
4738
- t.subscribe(mt(o, function(i) {
4739
- a = i, l = n.now(), r || (r = n.schedule(c, e), o.add(r));
4563
+ t.subscribe(ut(o, function(l) {
4564
+ a = l, i = n.now(), r || (r = n.schedule(d, e), o.add(r));
4740
4565
  }, function() {
4741
4566
  s(), o.complete();
4742
4567
  }, void 0, function() {
@@ -4744,180 +4569,180 @@ function ra(e, n) {
4744
4569
  }));
4745
4570
  });
4746
4571
  }
4747
- const me = /* @__PURE__ */ R({
4572
+ const ce = /* @__PURE__ */ D({
4748
4573
  name: "FPropertyEditor",
4749
- props: Ze,
4574
+ props: _e,
4750
4575
  emits: ["propertyEditorValueChanged"],
4751
4576
  setup(e, n) {
4752
- const t = m(Rn), o = m(""), r = m("const"), a = m([]), l = m(!1);
4577
+ const t = b(Gn), o = b(""), r = b("const"), a = b([]), i = b(!1);
4753
4578
  let s;
4754
- const c = m(""), i = m(""), d = m([]);
4579
+ const d = b(""), l = b(""), c = b([]);
4755
4580
  let u;
4756
- const f = m([]), p = m("是");
4757
- m("");
4758
- const y = m(!1), v = m("<span class='f-icon f-icon-more-horizontal'></span>"), h = m(!1), g = m([]), {
4581
+ const f = b([]), p = b("是");
4582
+ b("");
4583
+ const y = b(!1), v = b("<span class='f-icon f-icon-more-horizontal'></span>"), m = b(!1), S = b([]), {
4759
4584
  numberConstValue: V,
4760
- bindVariableValue: E,
4585
+ bindVariableValue: k,
4761
4586
  dataStatesBindValue: w,
4762
- dataStatesValueArray: C,
4763
- constEnumBindValue: T,
4764
- setValue: k
4765
- } = br(t, a, r, u, p, o, y), {
4766
- updateData: P,
4767
- changeState: U,
4768
- prefix: J,
4769
- propertyEditorValueChange: de
4770
- } = gr(n, t, T, a, A, f, u, p, C, o, h, r);
4771
- function pe() {
4772
- g.value = Gn.value.filter((b) => t.value.editorOptions.types.includes(b.id));
4587
+ dataStatesValueArray: g,
4588
+ constEnumBindValue: x,
4589
+ setValue: T
4590
+ } = vr(t, a, r, u, p, o, y), {
4591
+ updateData: M,
4592
+ changeState: R,
4593
+ prefix: le,
4594
+ propertyEditorValueChange: Vt
4595
+ } = mr(n, t, x, a, P, f, u, p, g, o, m, r);
4596
+ function xt() {
4597
+ S.value = Rn.value.filter((h) => t.value.editorOptions.types.includes(h.id));
4773
4598
  }
4774
- function M() {
4775
- r.value = F(g.value.find((b) => b.id === t.value.propertyValue.type));
4599
+ function Bt() {
4600
+ r.value = F(S.value.find((h) => h.id === t.value.propertyValue.type));
4776
4601
  }
4777
- function L() {
4778
- M(), r.value.id === "variable" && t.value.propertyValue.value === void 0 && (t.value.propertyValue = F(A.value.variableValue)), A.value[`${r.value.id}Value`] = F(t.value.propertyValue), k();
4602
+ function Ft() {
4603
+ Bt(), r.value.id === "variable" && t.value.propertyValue.value === void 0 && (t.value.propertyValue = F(P.value.variableValue)), P.value[`${r.value.id}Value`] = F(t.value.propertyValue), T();
4779
4604
  }
4780
- function ne(b) {
4781
- r.value = F(g.value.find((j) => j.label === b[0].label)), r.value.id === "expression" && (A.value.expressionValue.value && (o.value = A.value.expressionValue.value.value), y.value = !0), r.value.id === "custom" && Rt(), P();
4605
+ function Tt(h) {
4606
+ r.value = F(S.value.find((N) => N.label === h[0].label)), r.value.id === "expression" && (P.value.expressionValue.value && (o.value = P.value.expressionValue.value.value), y.value = !0), r.value.id === "custom" && Ut(), M();
4782
4607
  }
4783
- function fe(b) {
4784
- T.value = F(b.value), t.value.propertyValue.value = F(b.value), A.value.constValue.value = F(b.value), P();
4608
+ function kt(h) {
4609
+ x.value = F(h.value), t.value.propertyValue.value = F(h.value), P.value.constValue.value = F(h.value), M();
4785
4610
  }
4786
- function It(b) {
4787
- A.value.constValue.value = b, P();
4611
+ function Et(h) {
4612
+ P.value.constValue.value = h, M();
4788
4613
  }
4789
- function Pt(b) {
4790
- A.value.constValue.value = b, P();
4614
+ function It(h) {
4615
+ P.value.constValue.value = h, M();
4791
4616
  }
4792
- function At() {
4793
- const b = t.value.propertyName, j = b[0].toUpperCase() + b.substr(1), $ = t.value.controlName, Ne = t.value.editorOptions.newVariablePrefix || "", nn = Ne ? $[0].toUpperCase() + $.substr(1) : $[0].toLowerCase() + $.substr(1);
4794
- s = `${Ne}${nn}${j}`, Ot();
4617
+ function Mt() {
4618
+ const h = t.value.propertyName, N = h[0].toUpperCase() + h.substr(1), j = t.value.controlName, Ee = t.value.editorOptions.newVariablePrefix || "", en = Ee ? j[0].toUpperCase() + j.substr(1) : j[0].toLowerCase() + j.substr(1);
4619
+ s = `${Ee}${en}${N}`, Pt();
4795
4620
  }
4796
- function Ot() {
4797
- Nt(), r.value.id === "variable" && (E.value = t.value.propertyValue.value.path), Ae(), i.value !== t.value.propertyValue.value.path && P();
4621
+ function Pt() {
4622
+ At(), r.value.id === "variable" && (k.value = t.value.propertyValue.value.path), Te(), l.value !== t.value.propertyValue.value.path && M();
4798
4623
  }
4799
- function Nt() {
4800
- var j;
4801
- let b = 0;
4802
- (j = t.value.editorOptions.variables) == null || j.forEach(($) => {
4803
- $.path !== s ? b += 1 : (i.value = t.value.propertyValue.value.path, t.value.propertyValue.value = F($), A.value.variableValue.value = F($));
4804
- }), jt(b);
4624
+ function At() {
4625
+ var N;
4626
+ let h = 0;
4627
+ (N = t.value.editorOptions.variables) == null || N.forEach((j) => {
4628
+ j.path !== s ? h += 1 : (l.value = t.value.propertyValue.value.path, t.value.propertyValue.value = F(j), P.value.variableValue.value = F(j));
4629
+ }), Nt(h);
4805
4630
  }
4806
- function jt(b) {
4807
- var j;
4808
- b === ((j = t.value.editorOptions.variables) == null ? void 0 : j.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = s, t.value.propertyValue.value.field = c, t.value.propertyValue.value.fullPath = s, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, de.value.isNewVariable = !0, t.value.editorOptions.variables.push(F(t.value.propertyValue.value)), A.value.variableValue.value = F(t.value.propertyValue.value));
4631
+ function Nt(h) {
4632
+ var N;
4633
+ h === ((N = t.value.editorOptions.variables) == null ? void 0 : N.length) && (t.value.propertyValue.value.category = "local", t.value.propertyValue.value.path = s, t.value.propertyValue.value.field = d, t.value.propertyValue.value.fullPath = s, t.value.propertyValue.value.newVariableType = t.value.editorOptions.newVariableType, Vt.value.isNewVariable = !0, t.value.editorOptions.variables.push(F(t.value.propertyValue.value)), P.value.variableValue.value = F(t.value.propertyValue.value));
4809
4634
  }
4810
- function Lt(b) {
4811
- !b || !b.selections || b.selections.length < 1 || (A.value.variableValue.value.category = F(b.selections[0].category), A.value.variableValue.value.path = F(b.selections[0].path), A.value.variableValue.value.fullPath = F(b.selections[0].fullPath), A.value.variableValue.value.field = F(b.selections[0].field), E.value = F(b.value), P());
4635
+ function Ot(h) {
4636
+ !h || !h.selections || h.selections.length < 1 || (P.value.variableValue.value.category = F(h.selections[0].category), P.value.variableValue.value.path = F(h.selections[0].path), P.value.variableValue.value.fullPath = F(h.selections[0].fullPath), P.value.variableValue.value.field = F(h.selections[0].field), k.value = F(h.value), M());
4812
4637
  }
4813
- function Dt() {
4814
- 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();
4638
+ function Lt() {
4639
+ t.value.propertyValue.value.category = "", t.value.propertyValue.value.path = "", t.value.propertyValue.value.field = "", t.value.propertyValue.value.fullPath = "", r.value.id === "variable" && (k.value = t.value.propertyValue.value.path), M();
4815
4640
  }
4816
- function Ae() {
4817
- d.value = F(t.value.editorOptions.variables);
4641
+ function Te() {
4642
+ c.value = F(t.value.editorOptions.variables);
4818
4643
  }
4819
- const $t = (b) => {
4820
- const j = t.value.editorOptions.getVariables, $ = {
4644
+ const jt = (h) => {
4645
+ const N = t.value.editorOptions.getVariables, j = {
4821
4646
  showDialog: !0
4822
4647
  };
4823
- return j && (d.value = j(), b && (b.data = d)), oa($);
4648
+ return N && (c.value = N(), h && (h.data = c)), ea(j);
4824
4649
  };
4825
- function Ut(b) {
4826
- const j = {
4827
- id: b[0].id,
4828
- name: b[0].exist,
4829
- exist: b[0].name
4650
+ function $t(h) {
4651
+ const N = {
4652
+ id: h[0].id,
4653
+ name: h[0].exist,
4654
+ exist: h[0].name
4830
4655
  };
4831
- A.value.stateMachineValue.value = F(j), p.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", u = F(j.id), P();
4656
+ P.value.stateMachineValue.value = F(N), p.value = t.value.propertyValue.value.exist === "是" ? "是" : "否", u = F(N.id), M();
4832
4657
  }
4833
- function Gt() {
4834
- f.value = F(t.value.editorOptions.stateMachine), p.value = A.value.stateMachineValue.value.exist === "是" ? "是" : "否";
4658
+ function Dt() {
4659
+ f.value = F(t.value.editorOptions.stateMachine), p.value = P.value.stateMachineValue.value.exist === "是" ? "是" : "否";
4835
4660
  }
4836
- const Oe = new ht();
4837
- function Rt() {
4838
- Oe.pipe(ra(700)).subscribe((b) => {
4839
- A.value.customValue.value = b, P();
4661
+ const ke = new st();
4662
+ function Ut() {
4663
+ ke.pipe(ta(700)).subscribe((h) => {
4664
+ P.value.customValue.value = h, M();
4840
4665
  });
4841
4666
  }
4842
- function _t(b) {
4843
- Oe.next(b);
4667
+ function Rt(h) {
4668
+ ke.next(h);
4844
4669
  }
4845
- function qt() {
4670
+ function Gt() {
4846
4671
  }
4847
- function Wt(b) {
4848
- t.value.propertyValue.value = F(b), A.value.dataStatesValue.value = F(b);
4849
- const j = b.map(($) => $.valueField).join(",");
4850
- w.value = F(j), P();
4672
+ function _t(h) {
4673
+ t.value.propertyValue.value = F(h), P.value.dataStatesValue.value = F(h);
4674
+ const N = h.map((j) => j.valueField).join(",");
4675
+ w.value = F(N), M();
4851
4676
  }
4852
- function Ht() {
4853
- return S("div", {
4677
+ function qt() {
4678
+ return C("div", {
4854
4679
  class: "f-page-single-property-editor-component-right-variable"
4855
- }, [S(q, {
4680
+ }, [C(G, {
4856
4681
  class: [{
4857
- "form-control-select-show": l.value
4682
+ "form-control-select-show": i.value
4858
4683
  }, {
4859
- "form-control-select-hide": !l.value
4684
+ "form-control-select-hide": !i.value
4860
4685
  }],
4861
- modelValue: E.value,
4862
- "onUpdate:modelValue": (b) => E.value = b,
4686
+ modelValue: k.value,
4687
+ "onUpdate:modelValue": (h) => k.value = h,
4863
4688
  placeholder: "",
4864
4689
  viewType: "text",
4865
4690
  enableClear: !0,
4866
4691
  valueField: "path",
4867
4692
  textField: "fullPath",
4868
- data: d.value,
4869
- beforeShow: $t,
4870
- readonly: h.value,
4693
+ data: c.value,
4694
+ beforeShow: jt,
4695
+ readonly: m.value,
4871
4696
  editable: !1,
4872
- onValueChange: (b) => Lt(b),
4873
- onClear: Dt
4874
- }, null), l.value ? S("div", {
4697
+ onValueChange: (h) => Ot(h),
4698
+ onClear: Lt
4699
+ }, null), i.value ? C("div", {
4875
4700
  class: "f-page-single-property-editor-component-variable-button"
4876
- }, [S("button", {
4701
+ }, [C("button", {
4877
4702
  title: "variable-button",
4878
4703
  class: "f-variable-button",
4879
- onClick: At
4880
- }, [S("span", {
4704
+ onClick: Mt
4705
+ }, [C("span", {
4881
4706
  class: "f-icon f-icon-add",
4882
4707
  style: "margin:unset;"
4883
4708
  }, null)])]) : ""]);
4884
4709
  }
4885
- function zt() {
4886
- return S("div", {
4710
+ function Ht() {
4711
+ return C("div", {
4887
4712
  class: "f-page-single-property-editor-component-right-customize"
4888
- }, [he(S("input", {
4713
+ }, [de(C("input", {
4889
4714
  class: "form-control",
4890
4715
  placeholder: "输入自定义内容",
4891
- "onUpdate:modelValue": (b) => A.value.customValue.value = b,
4892
- onChange: (b) => _t(b.target.value),
4893
- disabled: h.value
4894
- }, null), [[je, A.value.customValue.value]])]);
4716
+ "onUpdate:modelValue": (h) => P.value.customValue.value = h,
4717
+ onChange: (h) => Rt(h.target.value),
4718
+ disabled: m.value
4719
+ }, null), [[Ie, P.value.customValue.value]])]);
4895
4720
  }
4896
- function Yt() {
4897
- return S("div", {
4721
+ function Wt() {
4722
+ return C("div", {
4898
4723
  class: "f-page-single-property-editor-component-right-expression"
4899
- }, [S(Q, {
4724
+ }, [C(Z, {
4900
4725
  editable: !1,
4901
4726
  enableClear: !1,
4902
- readonly: h.value,
4727
+ readonly: m.value,
4903
4728
  groupText: v.value,
4904
4729
  modelValue: o.value,
4905
- "onUpdate:modelValue": (b) => o.value = b,
4906
- onClickHandle: qt
4730
+ "onUpdate:modelValue": (h) => o.value = h,
4731
+ onClickHandle: Gt
4907
4732
  }, null)]);
4908
4733
  }
4909
- function Zt() {
4910
- return S("div", {
4734
+ function zt() {
4735
+ return C("div", {
4911
4736
  class: "f-page-single-property-editor-component-right-stateMachine"
4912
- }, [S("div", {
4737
+ }, [C("div", {
4913
4738
  class: "f-stateMachine-exist",
4914
- onClick: U
4915
- }, [p.value]), S("div", {
4739
+ onClick: R
4740
+ }, [p.value]), C("div", {
4916
4741
  class: "f-stateMachine-combo",
4917
4742
  style: "border:unset"
4918
- }, [S(q, {
4743
+ }, [C(G, {
4919
4744
  modelValue: u,
4920
- "onUpdate:modelValue": (b) => u = b,
4745
+ "onUpdate:modelValue": (h) => u = h,
4921
4746
  placeholder: "",
4922
4747
  viewType: "text",
4923
4748
  enableClear: !1,
@@ -4925,18 +4750,18 @@ const me = /* @__PURE__ */ R({
4925
4750
  textField: "name",
4926
4751
  data: f.value,
4927
4752
  editable: !1,
4928
- readonly: h.value,
4929
- onChange: (b) => {
4930
- Ut(b);
4753
+ readonly: m.value,
4754
+ onChange: (h) => {
4755
+ $t(h);
4931
4756
  }
4932
4757
  }, null)])]);
4933
4758
  }
4934
- function Xt() {
4935
- return S("div", {
4759
+ function Yt() {
4760
+ return C("div", {
4936
4761
  class: "f-page-single-property-editor-component-right-dataStates"
4937
- }, [S(q, {
4762
+ }, [C(G, {
4938
4763
  modelValue: w.value,
4939
- "onUpdate:modelValue": (b) => w.value = b,
4764
+ "onUpdate:modelValue": (h) => w.value = h,
4940
4765
  placeholder: "",
4941
4766
  viewType: "text",
4942
4767
  enableClear: !1,
@@ -4945,27 +4770,27 @@ const me = /* @__PURE__ */ R({
4945
4770
  valueField: "valueField",
4946
4771
  textField: "textField",
4947
4772
  titleField: "titleField",
4948
- data: C.value,
4773
+ data: g.value,
4949
4774
  editable: !1,
4950
- readonly: h.value,
4951
- onChange: (b) => Wt(b)
4775
+ readonly: m.value,
4776
+ onChange: (h) => _t(h)
4952
4777
  }, null)]);
4953
4778
  }
4954
- function Jt() {
4955
- return he(S("input", {
4779
+ function Zt() {
4780
+ return de(C("input", {
4956
4781
  class: "form-control",
4957
- "onUpdate:modelValue": (b) => A.value.constValue.value = b,
4958
- onChange: (b) => {
4959
- Pt(b);
4782
+ "onUpdate:modelValue": (h) => P.value.constValue.value = h,
4783
+ onChange: (h) => {
4784
+ It(h);
4960
4785
  },
4961
- disabled: h.value,
4786
+ disabled: m.value,
4962
4787
  placeholder: "输入自定义内容"
4963
- }, null), [[je, A.value.constValue.value]]);
4788
+ }, null), [[Ie, P.value.constValue.value]]);
4964
4789
  }
4965
- function Qt() {
4966
- return S(q, {
4967
- modelValue: T.value,
4968
- "onUpdate:modelValue": (b) => T.value = b,
4790
+ function Xt() {
4791
+ return C(G, {
4792
+ modelValue: x.value,
4793
+ "onUpdate:modelValue": (h) => x.value = h,
4969
4794
  placeholder: "",
4970
4795
  viewType: "text",
4971
4796
  enableClear: !1,
@@ -4973,62 +4798,62 @@ const me = /* @__PURE__ */ R({
4973
4798
  textField: "value",
4974
4799
  data: a.value,
4975
4800
  editable: !1,
4976
- readonly: h.value,
4977
- onValueChange: (b) => fe(b)
4801
+ readonly: m.value,
4802
+ onValueChange: (h) => kt(h)
4978
4803
  }, null);
4979
4804
  }
4980
- function Kt() {
4981
- return S(K, {
4805
+ function Jt() {
4806
+ return C(X, {
4982
4807
  canNull: !0,
4983
- readonly: h.value,
4808
+ readonly: m.value,
4984
4809
  modelValue: V.value,
4985
- "onUpdate:modelValue": (b) => V.value = b,
4986
- onValueChange: (b) => {
4987
- It(b);
4810
+ "onUpdate:modelValue": (h) => V.value = h,
4811
+ onValueChange: (h) => {
4812
+ Et(h);
4988
4813
  },
4989
4814
  class: "f-page-single-property-editor-component-const-number"
4990
4815
  }, null);
4991
4816
  }
4992
- function en() {
4993
- return S("div", {
4817
+ function Qt() {
4818
+ return C("div", {
4994
4819
  class: "f-page-single-property-editor-component-left-controller"
4995
- }, [S(q, {
4820
+ }, [C(G, {
4996
4821
  modelValue: r.value.id,
4997
- "onUpdate:modelValue": (b) => r.value.id = b,
4822
+ "onUpdate:modelValue": (h) => r.value.id = h,
4998
4823
  placeholder: "",
4999
4824
  enableClear: !1,
5000
4825
  valueField: "id",
5001
4826
  textField: "label",
5002
- data: g.value,
4827
+ data: S.value,
5003
4828
  editable: !1,
5004
- readonly: h.value,
5005
- onChange: (b) => ne(b)
4829
+ readonly: m.value,
4830
+ onChange: (h) => Tt(h)
5006
4831
  }, null)]);
5007
4832
  }
5008
- function tn() {
5009
- return S("div", {
4833
+ function Kt() {
4834
+ return C("div", {
5010
4835
  class: "f-page-single-property-editor-component-right-controller"
5011
- }, [r.value.id === "const" ? S("div", {
4836
+ }, [r.value.id === "const" ? C("div", {
5012
4837
  class: "f-page-single-property-editor-component-right-const"
5013
- }, [t.value.propertyType === "string" ? Jt() : "", t.value.propertyType === "enum" ? Qt() : "", t.value.propertyType === "number" ? Kt() : ""]) : "", r.value.id === "variable" ? Ht() : "", r.value.id === "custom" ? zt() : "", r.value.id === "expression" && y.value ? Yt() : "", r.value.id === "stateMachine" ? Zt() : "", r.value.id === "dataStates" ? Xt() : ""]);
4838
+ }, [t.value.propertyType === "string" ? Zt() : "", t.value.propertyType === "enum" ? Xt() : "", t.value.propertyType === "number" ? Jt() : ""]) : "", r.value.id === "variable" ? qt() : "", r.value.id === "custom" ? Ht() : "", r.value.id === "expression" && y.value ? Wt() : "", r.value.id === "stateMachine" ? zt() : "", r.value.id === "dataStates" ? Yt() : ""]);
5014
4839
  }
5015
- return _(() => {
5016
- pe(), L(), Ae(), Gt(), t.value.hasPrefix && t.value.hasPrefix === 2 && (J.value = !0), t.value.controlName !== void 0 && (l.value = !0);
5017
- }), () => S(be, null, [S("div", {
4840
+ return U(() => {
4841
+ xt(), Ft(), Te(), Dt(), t.value.hasPrefix && t.value.hasPrefix === 2 && (le.value = !0), t.value.controlName !== void 0 && (i.value = !0);
4842
+ }), () => C(pe, null, [C("div", {
5018
4843
  class: "f-page-single-property-editor-component clearfix"
5019
- }, [en(), tn()])]);
4844
+ }, [Qt(), Kt()])]);
5020
4845
  }
5021
- }), ya = {
4846
+ }), pa = {
5022
4847
  install(e) {
5023
- e.component(me.name, me);
4848
+ e.component(ce.name, ce);
5024
4849
  },
5025
4850
  register(e, n, t, o) {
5026
- e["property-editor"] = me, n["property-editor"] = Un;
4851
+ e["property-editor"] = ce, n["property-editor"] = Un;
5027
4852
  }
5028
4853
  };
5029
4854
  export {
5030
- ya as default,
5031
- me as propertyEditor,
5032
- Ze as propertyEditorProps,
4855
+ pa as default,
4856
+ ce as propertyEditor,
4857
+ _e as propertyEditorProps,
5033
4858
  Un as propsResolver
5034
4859
  };