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