@luck-design-biz/luckda 1.0.2-4 → 1.0.2-5

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 (1069) hide show
  1. package/es/components/Builder/index.js +2 -1
  2. package/es/components/Builder/index.js.map +1 -0
  3. package/es/components/ComplexItem/index.js +2 -1
  4. package/es/components/ComplexItem/index.js.map +1 -0
  5. package/es/components/ComplexItem/service.js +2 -1
  6. package/es/components/ComplexItem/service.js.map +1 -0
  7. package/es/components/IconFont/index.js +2 -1
  8. package/es/components/IconFont/index.js.map +1 -0
  9. package/es/components/LDActions/index.js +2 -1
  10. package/es/components/LDActions/index.js.map +1 -0
  11. package/es/components/LdAutoForm/index.js +2 -1
  12. package/es/components/LdAutoForm/index.js.map +1 -0
  13. package/es/components/LdCard/index.js +2 -1
  14. package/es/components/LdCard/index.js.map +1 -0
  15. package/es/components/LdCard/model.js +2 -1
  16. package/es/components/LdCard/model.js.map +1 -0
  17. package/es/components/LdCom/index.js +2 -1
  18. package/es/components/LdCom/index.js.map +1 -0
  19. package/es/components/LdFormList/index.js +2 -1
  20. package/es/components/LdFormList/index.js.map +1 -0
  21. package/es/components/LdFormList/model.js +2 -1
  22. package/es/components/LdFormList/model.js.map +1 -0
  23. package/es/components/LdGrid/index.js +2 -1
  24. package/es/components/LdGrid/index.js.map +1 -0
  25. package/es/components/LdGrid/model.js +2 -1
  26. package/es/components/LdGrid/model.js.map +1 -0
  27. package/es/components/LdGridForm/index.js +2 -1
  28. package/es/components/LdGridForm/index.js.map +1 -0
  29. package/es/components/LdInfoPanel/index.js +2 -1
  30. package/es/components/LdInfoPanel/index.js.map +1 -0
  31. package/es/components/LdPop/index.js +2 -1
  32. package/es/components/LdPop/index.js.map +1 -0
  33. package/es/components/LdTree/index.js +2 -1
  34. package/es/components/LdTree/index.js.map +1 -0
  35. package/es/helper/FromItems.js +2 -1
  36. package/es/helper/FromItems.js.map +1 -0
  37. package/es/helper/action.js +2 -1
  38. package/es/helper/action.js.map +1 -0
  39. package/es/helper/form.js +2 -1
  40. package/es/helper/form.js.map +1 -0
  41. package/es/helper/ldBuilder.js +2 -1
  42. package/es/helper/ldBuilder.js.map +1 -0
  43. package/es/helper/ldComBuild.js +2 -1
  44. package/es/helper/ldComBuild.js.map +1 -0
  45. package/es/helper/props_config.js +2 -1
  46. package/es/helper/props_config.js.map +1 -0
  47. package/es/index.js +2 -1
  48. package/es/index.js.map +1 -0
  49. package/es/locales/zh-CN.js +2 -1
  50. package/es/locales/zh-CN.js.map +1 -0
  51. package/es/lowcode/constants/api-url.js +2 -1
  52. package/es/lowcode/constants/api-url.js.map +1 -0
  53. package/es/lowcode/constants/event-topics.js +2 -1
  54. package/es/lowcode/constants/event-topics.js.map +1 -0
  55. package/es/lowcode/constants/index.js +2 -1
  56. package/es/lowcode/constants/index.js.map +1 -0
  57. package/es/lowcode/engine/factory/DataFactory.js +2 -1
  58. package/es/lowcode/engine/factory/DataFactory.js.map +1 -0
  59. package/es/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +2 -1
  60. package/es/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js.map +1 -0
  61. package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +2 -1
  62. package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js.map +1 -0
  63. package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +2 -1
  64. package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js.map +1 -0
  65. package/es/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +2 -1
  66. package/es/lowcode/engine/factory/panel-item-factory/NumberStrategy.js.map +1 -0
  67. package/es/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +2 -1
  68. package/es/lowcode/engine/factory/panel-item-factory/RadioStrategy.js.map +1 -0
  69. package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +2 -1
  70. package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js.map +1 -0
  71. package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +2 -1
  72. package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js.map +1 -0
  73. package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +2 -1
  74. package/es/lowcode/engine/factory/panel-item-factory/Strategy.js.map +1 -0
  75. package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +2 -1
  76. package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js.map +1 -0
  77. package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +2 -1
  78. package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js.map +1 -0
  79. package/es/lowcode/engine/factory/panel-item-factory/index.js +2 -1
  80. package/es/lowcode/engine/factory/panel-item-factory/index.js.map +1 -0
  81. package/es/lowcode/engine/launcher.js +2 -1
  82. package/es/lowcode/engine/launcher.js.map +1 -0
  83. package/es/lowcode/engine/provider/ContextProvider/index.js +2 -1
  84. package/es/lowcode/engine/provider/ContextProvider/index.js.map +1 -0
  85. package/es/lowcode/engine/provider/ContextProvider/router.js +2 -1
  86. package/es/lowcode/engine/provider/ContextProvider/router.js.map +1 -0
  87. package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +2 -1
  88. package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js.map +1 -0
  89. package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +2 -1
  90. package/es/lowcode/engine/provider/ContextProvider/usePageVar.js.map +1 -0
  91. package/es/lowcode/engine/provider/ContextProvider/useTodo.js +2 -1
  92. package/es/lowcode/engine/provider/ContextProvider/useTodo.js.map +1 -0
  93. package/es/lowcode/engine/provider/ContextProvider/utils.js +2 -1
  94. package/es/lowcode/engine/provider/ContextProvider/utils.js.map +1 -0
  95. package/es/lowcode/engine/provider/EventBusProvider.js +2 -1
  96. package/es/lowcode/engine/provider/EventBusProvider.js.map +1 -0
  97. package/es/lowcode/engine/provider/RemoteSourceProvider.js +2 -1
  98. package/es/lowcode/engine/provider/RemoteSourceProvider.js.map +1 -0
  99. package/es/lowcode/engine/tools/dataProcess.js +2 -1
  100. package/es/lowcode/engine/tools/dataProcess.js.map +1 -0
  101. package/es/lowcode/engine/tools/diff.js +2 -1
  102. package/es/lowcode/engine/tools/diff.js.map +1 -0
  103. package/es/lowcode/engine/tools/helper.js +2 -1
  104. package/es/lowcode/engine/tools/helper.js.map +1 -0
  105. package/es/lowcode/engine/tools/initDS.js +2 -1
  106. package/es/lowcode/engine/tools/initDS.js.map +1 -0
  107. package/es/lowcode/engine/tools/useCanvasRender.js +2 -1
  108. package/es/lowcode/engine/tools/useCanvasRender.js.map +1 -0
  109. package/es/lowcode/engine/tools/useCombinedRefs.js +2 -1
  110. package/es/lowcode/engine/tools/useCombinedRefs.js.map +1 -0
  111. package/es/lowcode/engine/tools/usePromiseState.js +2 -1
  112. package/es/lowcode/engine/tools/usePromiseState.js.map +1 -0
  113. package/es/lowcode/index.js +2 -1
  114. package/es/lowcode/index.js.map +1 -0
  115. package/es/lowcode/painter/Components.js +2 -1
  116. package/es/lowcode/painter/Components.js.map +1 -0
  117. package/es/lowcode/painter/Design.js +2 -1
  118. package/es/lowcode/painter/Design.js.map +1 -0
  119. package/es/lowcode/painter/DesignOperator.js +2 -1
  120. package/es/lowcode/painter/DesignOperator.js.map +1 -0
  121. package/es/lowcode/painter/DesignToolbar.js +2 -1
  122. package/es/lowcode/painter/DesignToolbar.js.map +1 -0
  123. package/es/lowcode/painter/I18n.js +2 -1
  124. package/es/lowcode/painter/I18n.js.map +1 -0
  125. package/es/lowcode/painter/Outline.js +2 -1
  126. package/es/lowcode/painter/Outline.js.map +1 -0
  127. package/es/lowcode/painter/Panel.js +2 -1
  128. package/es/lowcode/painter/Panel.js.map +1 -0
  129. package/es/lowcode/painter/Ribbon.js +2 -1
  130. package/es/lowcode/painter/Ribbon.js.map +1 -0
  131. package/es/lowcode/painter/components/ActionBindModal.js +2 -1
  132. package/es/lowcode/painter/components/ActionBindModal.js.map +1 -0
  133. package/es/lowcode/painter/components/AdvancePanel.js +2 -1
  134. package/es/lowcode/painter/components/AdvancePanel.js.map +1 -0
  135. package/es/lowcode/painter/components/AttrsPanel.js +2 -1
  136. package/es/lowcode/painter/components/AttrsPanel.js.map +1 -0
  137. package/es/lowcode/painter/components/Collapse.js +2 -1
  138. package/es/lowcode/painter/components/Collapse.js.map +1 -0
  139. package/es/lowcode/painter/components/ColorInput.js +2 -1
  140. package/es/lowcode/painter/components/ColorInput.js.map +1 -0
  141. package/es/lowcode/painter/components/DragDrop/DragDropContext.js +2 -1
  142. package/es/lowcode/painter/components/DragDrop/DragDropContext.js.map +1 -0
  143. package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +2 -1
  144. package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js.map +1 -0
  145. package/es/lowcode/painter/components/DragDrop/Overlay.js +2 -1
  146. package/es/lowcode/painter/components/DragDrop/Overlay.js.map +1 -0
  147. package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +2 -1
  148. package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js.map +1 -0
  149. package/es/lowcode/painter/components/FieldSelector.js +2 -1
  150. package/es/lowcode/painter/components/FieldSelector.js.map +1 -0
  151. package/es/lowcode/painter/components/ListEditor.js +2 -1
  152. package/es/lowcode/painter/components/ListEditor.js.map +1 -0
  153. package/es/lowcode/painter/components/NumberInput.js +2 -1
  154. package/es/lowcode/painter/components/NumberInput.js.map +1 -0
  155. package/es/lowcode/painter/components/PanelItem.js +2 -1
  156. package/es/lowcode/painter/components/PanelItem.js.map +1 -0
  157. package/es/lowcode/painter/components/PopConfirm.js +2 -1
  158. package/es/lowcode/painter/components/PopConfirm.js.map +1 -0
  159. package/es/lowcode/painter/components/PopForm.js +2 -1
  160. package/es/lowcode/painter/components/PopForm.js.map +1 -0
  161. package/es/lowcode/painter/components/PreviewIframe.js +2 -1
  162. package/es/lowcode/painter/components/PreviewIframe.js.map +1 -0
  163. package/es/lowcode/painter/components/RuleInput.js +2 -1
  164. package/es/lowcode/painter/components/RuleInput.js.map +1 -0
  165. package/es/lowcode/painter/components/SortBox.js +2 -1
  166. package/es/lowcode/painter/components/SortBox.js.map +1 -0
  167. package/es/lowcode/painter/components/TipIcon.js +2 -1
  168. package/es/lowcode/painter/components/TipIcon.js.map +1 -0
  169. package/es/lowcode/painter/components/TreeEditor.js +2 -1
  170. package/es/lowcode/painter/components/TreeEditor.js.map +1 -0
  171. package/es/lowcode/painter/components/VarEditor.js +2 -1
  172. package/es/lowcode/painter/components/VarEditor.js.map +1 -0
  173. package/es/lowcode/painter/components/code-editor/BaseEditor.js +2 -1
  174. package/es/lowcode/painter/components/code-editor/BaseEditor.js.map +1 -0
  175. package/es/lowcode/painter/components/code-editor/CssEditor.js +2 -1
  176. package/es/lowcode/painter/components/code-editor/CssEditor.js.map +1 -0
  177. package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +2 -1
  178. package/es/lowcode/painter/components/code-editor/FullScreenEditor.js.map +1 -0
  179. package/es/lowcode/painter/components/code-editor/JSEditor.js +2 -1
  180. package/es/lowcode/painter/components/code-editor/JSEditor.js.map +1 -0
  181. package/es/lowcode/painter/components/code-editor/JsonEditor.js +2 -1
  182. package/es/lowcode/painter/components/code-editor/JsonEditor.js.map +1 -0
  183. package/es/lowcode/painter/components/code-editor/VisionEditor.js +2 -1
  184. package/es/lowcode/painter/components/code-editor/VisionEditor.js.map +1 -0
  185. package/es/lowcode/painter/components/code-editor/index.js +2 -1
  186. package/es/lowcode/painter/components/code-editor/index.js.map +1 -0
  187. package/es/lowcode/painter/components/field-setting/BatchSetting.js +2 -1
  188. package/es/lowcode/painter/components/field-setting/BatchSetting.js.map +1 -0
  189. package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +2 -1
  190. package/es/lowcode/painter/components/field-setting/CheckFrontRules.js.map +1 -0
  191. package/es/lowcode/painter/components/field-setting/CheckRules.js +2 -1
  192. package/es/lowcode/painter/components/field-setting/CheckRules.js.map +1 -0
  193. package/es/lowcode/painter/components/field-setting/FieldAttrs.js +2 -1
  194. package/es/lowcode/painter/components/field-setting/FieldAttrs.js.map +1 -0
  195. package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js +2 -1
  196. package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js.map +1 -0
  197. package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js +2 -1
  198. package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js.map +1 -0
  199. package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +2 -1
  200. package/es/lowcode/painter/components/field-setting/FieldRulesModal.js.map +1 -0
  201. package/es/lowcode/painter/components/field-setting/SettingUI.js +2 -1
  202. package/es/lowcode/painter/components/field-setting/SettingUI.js.map +1 -0
  203. package/es/lowcode/painter/components/field-setting/index.js +2 -1
  204. package/es/lowcode/painter/components/field-setting/index.js.map +1 -0
  205. package/es/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
  206. package/es/lowcode/painter/components/field-setting/meta/frontRules.js.map +1 -0
  207. package/es/lowcode/painter/expect.js +2 -1
  208. package/es/lowcode/painter/expect.js.map +1 -0
  209. package/es/lowcode/painter/index.js +2 -1
  210. package/es/lowcode/painter/index.js.map +1 -0
  211. package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +2 -1
  212. package/es/lowcode/painter/panel-section/ActionsColumnWidth.js.map +1 -0
  213. package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +2 -1
  214. package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js.map +1 -0
  215. package/es/lowcode/painter/panel-section/ActionsEditor/index.js +2 -1
  216. package/es/lowcode/painter/panel-section/ActionsEditor/index.js.map +1 -0
  217. package/es/lowcode/painter/panel-section/BlockEditor/index.js +2 -1
  218. package/es/lowcode/painter/panel-section/BlockEditor/index.js.map +1 -0
  219. package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +2 -1
  220. package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js.map +1 -0
  221. package/es/lowcode/painter/panel-section/BlocksEditor/index.js +2 -1
  222. package/es/lowcode/painter/panel-section/BlocksEditor/index.js.map +1 -0
  223. package/es/lowcode/painter/panel-section/ButtonType.js +2 -1
  224. package/es/lowcode/painter/panel-section/ButtonType.js.map +1 -0
  225. package/es/lowcode/painter/panel-section/ComplexPop.js +2 -1
  226. package/es/lowcode/painter/panel-section/ComplexPop.js.map +1 -0
  227. package/es/lowcode/painter/panel-section/ComponentSelector.js +2 -1
  228. package/es/lowcode/painter/panel-section/ComponentSelector.js.map +1 -0
  229. package/es/lowcode/painter/panel-section/DataSetSelector.js +2 -1
  230. package/es/lowcode/painter/panel-section/DataSetSelector.js.map +1 -0
  231. package/es/lowcode/painter/panel-section/FieldState.js +2 -1
  232. package/es/lowcode/painter/panel-section/FieldState.js.map +1 -0
  233. package/es/lowcode/painter/panel-section/FieldsSetting.js +2 -1
  234. package/es/lowcode/painter/panel-section/FieldsSetting.js.map +1 -0
  235. package/es/lowcode/painter/panel-section/GroupClassSelector.js +2 -1
  236. package/es/lowcode/painter/panel-section/GroupClassSelector.js.map +1 -0
  237. package/es/lowcode/painter/panel-section/I18nInput.js +2 -1
  238. package/es/lowcode/painter/panel-section/I18nInput.js.map +1 -0
  239. package/es/lowcode/painter/panel-section/Icon.js +2 -1
  240. package/es/lowcode/painter/panel-section/Icon.js.map +1 -0
  241. package/es/lowcode/painter/panel-section/IconConditionSelector.js +2 -1
  242. package/es/lowcode/painter/panel-section/IconConditionSelector.js.map +1 -0
  243. package/es/lowcode/painter/panel-section/IconSelector.js +2 -1
  244. package/es/lowcode/painter/panel-section/IconSelector.js.map +1 -0
  245. package/es/lowcode/painter/panel-section/ImpExp.js +2 -1
  246. package/es/lowcode/painter/panel-section/ImpExp.js.map +1 -0
  247. package/es/lowcode/painter/panel-section/ImpExpAlone.js +2 -1
  248. package/es/lowcode/painter/panel-section/ImpExpAlone.js.map +1 -0
  249. package/es/lowcode/painter/panel-section/JSEditor.js +2 -1
  250. package/es/lowcode/painter/panel-section/JSEditor.js.map +1 -0
  251. package/es/lowcode/painter/panel-section/LayoutRatio.js +2 -1
  252. package/es/lowcode/painter/panel-section/LayoutRatio.js.map +1 -0
  253. package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +2 -1
  254. package/es/lowcode/painter/panel-section/PageLayoutDisplay.js.map +1 -0
  255. package/es/lowcode/painter/panel-section/PageVars.js +2 -1
  256. package/es/lowcode/painter/panel-section/PageVars.js.map +1 -0
  257. package/es/lowcode/painter/panel-section/SerialsSelector.js +2 -1
  258. package/es/lowcode/painter/panel-section/SerialsSelector.js.map +1 -0
  259. package/es/lowcode/painter/panel-section/SplitDisplay.js +2 -1
  260. package/es/lowcode/painter/panel-section/SplitDisplay.js.map +1 -0
  261. package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -1
  262. package/es/lowcode/painter/panel-section/StylePanel/BackGround.js.map +1 -0
  263. package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -1
  264. package/es/lowcode/painter/panel-section/StylePanel/Border.js.map +1 -0
  265. package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -1
  266. package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js.map +1 -0
  267. package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -1
  268. package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js.map +1 -0
  269. package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -1
  270. package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js.map +1 -0
  271. package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -1
  272. package/es/lowcode/painter/panel-section/StylePanel/Display.js.map +1 -0
  273. package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +2 -1
  274. package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js.map +1 -0
  275. package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -1
  276. package/es/lowcode/painter/panel-section/StylePanel/Font.js.map +1 -0
  277. package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -1
  278. package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js.map +1 -0
  279. package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -1
  280. package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js.map +1 -0
  281. package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -1
  282. package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js.map +1 -0
  283. package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -1
  284. package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js.map +1 -0
  285. package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -1
  286. package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js.map +1 -0
  287. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -1
  288. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js.map +1 -0
  289. package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -1
  290. package/es/lowcode/painter/panel-section/StylePanel/Margin.js.map +1 -0
  291. package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -1
  292. package/es/lowcode/painter/panel-section/StylePanel/Opacity.js.map +1 -0
  293. package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -1
  294. package/es/lowcode/painter/panel-section/StylePanel/Padding.js.map +1 -0
  295. package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -1
  296. package/es/lowcode/painter/panel-section/StylePanel/Pointer.js.map +1 -0
  297. package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -1
  298. package/es/lowcode/painter/panel-section/StylePanel/Shadow.js.map +1 -0
  299. package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -1
  300. package/es/lowcode/painter/panel-section/StylePanel/Size.js.map +1 -0
  301. package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -1
  302. package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js.map +1 -0
  303. package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -1
  304. package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js.map +1 -0
  305. package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -1
  306. package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js.map +1 -0
  307. package/es/lowcode/painter/panel-section/StylePanel/index.js +2 -1
  308. package/es/lowcode/painter/panel-section/StylePanel/index.js.map +1 -0
  309. package/es/lowcode/painter/panel-section/TabItems.js +2 -1
  310. package/es/lowcode/painter/panel-section/TabItems.js.map +1 -0
  311. package/es/lowcode/painter/panel-section/TableTopFilter.js +2 -1
  312. package/es/lowcode/painter/panel-section/TableTopFilter.js.map +1 -0
  313. package/es/lowcode/painter/panel-section/TableZebra.js +2 -1
  314. package/es/lowcode/painter/panel-section/TableZebra.js.map +1 -0
  315. package/es/lowcode/painter/panel-section/TextContent.js +2 -1
  316. package/es/lowcode/painter/panel-section/TextContent.js.map +1 -0
  317. package/es/lowcode/painter/panel-section/TreeRootEditor.js +2 -1
  318. package/es/lowcode/painter/panel-section/TreeRootEditor.js.map +1 -0
  319. package/es/lowcode/painter/panel-section/WidthHeight.js +2 -1
  320. package/es/lowcode/painter/panel-section/WidthHeight.js.map +1 -0
  321. package/es/lowcode/painter/services/I18n.js +2 -1
  322. package/es/lowcode/painter/services/I18n.js.map +1 -0
  323. package/es/lowcode/painter/services/complexPop.js +2 -1
  324. package/es/lowcode/painter/services/complexPop.js.map +1 -0
  325. package/es/lowcode/preview/index.js +2 -1
  326. package/es/lowcode/preview/index.js.map +1 -0
  327. package/es/lowcode/view/Canvas.js +2 -1
  328. package/es/lowcode/view/Canvas.js.map +1 -0
  329. package/es/lowcode/view/ErrorBoundary.js +2 -1
  330. package/es/lowcode/view/ErrorBoundary.js.map +1 -0
  331. package/es/lowcode/view/Loading.js +2 -1
  332. package/es/lowcode/view/Loading.js.map +1 -0
  333. package/es/lowcode/view/Page.js +2 -1
  334. package/es/lowcode/view/Page.js.map +1 -0
  335. package/es/lowcode/view/index.js +2 -1
  336. package/es/lowcode/view/index.js.map +1 -0
  337. package/es/lowcode/view/lc-components/Box/FunctionDesign.js +2 -1
  338. package/es/lowcode/view/lc-components/Box/FunctionDesign.js.map +1 -0
  339. package/es/lowcode/view/lc-components/Box/FunctionLive.js +2 -1
  340. package/es/lowcode/view/lc-components/Box/FunctionLive.js.map +1 -0
  341. package/es/lowcode/view/lc-components/Box/FunctionPreview.js +2 -1
  342. package/es/lowcode/view/lc-components/Box/FunctionPreview.js.map +1 -0
  343. package/es/lowcode/view/lc-components/Box/index.js +2 -1
  344. package/es/lowcode/view/lc-components/Box/index.js.map +1 -0
  345. package/es/lowcode/view/lc-components/Button/FunctionDesign.js +2 -1
  346. package/es/lowcode/view/lc-components/Button/FunctionDesign.js.map +1 -0
  347. package/es/lowcode/view/lc-components/Button/FunctionLive.js +2 -1
  348. package/es/lowcode/view/lc-components/Button/FunctionLive.js.map +1 -0
  349. package/es/lowcode/view/lc-components/Button/FunctionPreview.js +2 -1
  350. package/es/lowcode/view/lc-components/Button/FunctionPreview.js.map +1 -0
  351. package/es/lowcode/view/lc-components/Button/index.js +2 -1
  352. package/es/lowcode/view/lc-components/Button/index.js.map +1 -0
  353. package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +2 -1
  354. package/es/lowcode/view/lc-components/CardList/FunctionDesign.js.map +1 -0
  355. package/es/lowcode/view/lc-components/CardList/FunctionLive.js +2 -1
  356. package/es/lowcode/view/lc-components/CardList/FunctionLive.js.map +1 -0
  357. package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +2 -1
  358. package/es/lowcode/view/lc-components/CardList/FunctionPreview.js.map +1 -0
  359. package/es/lowcode/view/lc-components/CardList/index.js +2 -1
  360. package/es/lowcode/view/lc-components/CardList/index.js.map +1 -0
  361. package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -1
  362. package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js.map +1 -0
  363. package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +2 -1
  364. package/es/lowcode/view/lc-components/Dialog/FunctionLive.js.map +1 -0
  365. package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +2 -1
  366. package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js.map +1 -0
  367. package/es/lowcode/view/lc-components/Dialog/index.js +2 -1
  368. package/es/lowcode/view/lc-components/Dialog/index.js.map +1 -0
  369. package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -1
  370. package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js.map +1 -0
  371. package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +2 -1
  372. package/es/lowcode/view/lc-components/Drawer/FunctionLive.js.map +1 -0
  373. package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +2 -1
  374. package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js.map +1 -0
  375. package/es/lowcode/view/lc-components/Drawer/index.js +2 -1
  376. package/es/lowcode/view/lc-components/Drawer/index.js.map +1 -0
  377. package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
  378. package/es/lowcode/view/lc-components/Form/FunctionDesign.js.map +1 -0
  379. package/es/lowcode/view/lc-components/Form/FunctionLive.js +2 -1
  380. package/es/lowcode/view/lc-components/Form/FunctionLive.js.map +1 -0
  381. package/es/lowcode/view/lc-components/Form/FunctionPreview.js +2 -1
  382. package/es/lowcode/view/lc-components/Form/FunctionPreview.js.map +1 -0
  383. package/es/lowcode/view/lc-components/Form/index.js +2 -1
  384. package/es/lowcode/view/lc-components/Form/index.js.map +1 -0
  385. package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js +2 -1
  386. package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js.map +1 -0
  387. package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js +2 -1
  388. package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js.map +1 -0
  389. package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js +2 -1
  390. package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js.map +1 -0
  391. package/es/lowcode/view/lc-components/GroupTree/index.js +2 -1
  392. package/es/lowcode/view/lc-components/GroupTree/index.js.map +1 -0
  393. package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +2 -1
  394. package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js.map +1 -0
  395. package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +2 -1
  396. package/es/lowcode/view/lc-components/Iframe/FunctionLive.js.map +1 -0
  397. package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +2 -1
  398. package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js.map +1 -0
  399. package/es/lowcode/view/lc-components/Iframe/index.js +2 -1
  400. package/es/lowcode/view/lc-components/Iframe/index.js.map +1 -0
  401. package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +2 -1
  402. package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js.map +1 -0
  403. package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +2 -1
  404. package/es/lowcode/view/lc-components/ImEx/FunctionLive.js.map +1 -0
  405. package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +2 -1
  406. package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js.map +1 -0
  407. package/es/lowcode/view/lc-components/ImEx/index.js +2 -1
  408. package/es/lowcode/view/lc-components/ImEx/index.js.map +1 -0
  409. package/es/lowcode/view/lc-components/Image/FunctionDesign.js +2 -1
  410. package/es/lowcode/view/lc-components/Image/FunctionDesign.js.map +1 -0
  411. package/es/lowcode/view/lc-components/Image/FunctionLive.js +2 -1
  412. package/es/lowcode/view/lc-components/Image/FunctionLive.js.map +1 -0
  413. package/es/lowcode/view/lc-components/Image/FunctionPreview.js +2 -1
  414. package/es/lowcode/view/lc-components/Image/FunctionPreview.js.map +1 -0
  415. package/es/lowcode/view/lc-components/Image/index.js +2 -1
  416. package/es/lowcode/view/lc-components/Image/index.js.map +1 -0
  417. package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +2 -1
  418. package/es/lowcode/view/lc-components/JSX/FunctionDesign.js.map +1 -0
  419. package/es/lowcode/view/lc-components/JSX/FunctionLive.js +2 -1
  420. package/es/lowcode/view/lc-components/JSX/FunctionLive.js.map +1 -0
  421. package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +2 -1
  422. package/es/lowcode/view/lc-components/JSX/FunctionPreview.js.map +1 -0
  423. package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +2 -1
  424. package/es/lowcode/view/lc-components/JSX/RuntimeComp.js.map +1 -0
  425. package/es/lowcode/view/lc-components/JSX/index.js +2 -1
  426. package/es/lowcode/view/lc-components/JSX/index.js.map +1 -0
  427. package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +2 -1
  428. package/es/lowcode/view/lc-components/Layout/FunctionDesign.js.map +1 -0
  429. package/es/lowcode/view/lc-components/Layout/FunctionLive.js +2 -1
  430. package/es/lowcode/view/lc-components/Layout/FunctionLive.js.map +1 -0
  431. package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +2 -1
  432. package/es/lowcode/view/lc-components/Layout/FunctionPreview.js.map +1 -0
  433. package/es/lowcode/view/lc-components/Layout/index.js +2 -1
  434. package/es/lowcode/view/lc-components/Layout/index.js.map +1 -0
  435. package/es/lowcode/view/lc-components/Link/FunctionDesign.js +2 -1
  436. package/es/lowcode/view/lc-components/Link/FunctionDesign.js.map +1 -0
  437. package/es/lowcode/view/lc-components/Link/FunctionLive.js +2 -1
  438. package/es/lowcode/view/lc-components/Link/FunctionLive.js.map +1 -0
  439. package/es/lowcode/view/lc-components/Link/FunctionPreview.js +2 -1
  440. package/es/lowcode/view/lc-components/Link/FunctionPreview.js.map +1 -0
  441. package/es/lowcode/view/lc-components/Link/index.js +2 -1
  442. package/es/lowcode/view/lc-components/Link/index.js.map +1 -0
  443. package/es/lowcode/view/lc-components/PageContent/index.js +2 -1
  444. package/es/lowcode/view/lc-components/PageContent/index.js.map +1 -0
  445. package/es/lowcode/view/lc-components/PageFooter/index.js +2 -1
  446. package/es/lowcode/view/lc-components/PageFooter/index.js.map +1 -0
  447. package/es/lowcode/view/lc-components/PageHeader/index.js +2 -1
  448. package/es/lowcode/view/lc-components/PageHeader/index.js.map +1 -0
  449. package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +2 -1
  450. package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js.map +1 -0
  451. package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +2 -1
  452. package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js.map +1 -0
  453. package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +2 -1
  454. package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js.map +1 -0
  455. package/es/lowcode/view/lc-components/PageLayout/index.js +2 -1
  456. package/es/lowcode/view/lc-components/PageLayout/index.js.map +1 -0
  457. package/es/lowcode/view/lc-components/PageModal/index.js +2 -1
  458. package/es/lowcode/view/lc-components/PageModal/index.js.map +1 -0
  459. package/es/lowcode/view/lc-components/Section/FunctionDesign.js +2 -1
  460. package/es/lowcode/view/lc-components/Section/FunctionDesign.js.map +1 -0
  461. package/es/lowcode/view/lc-components/Section/FunctionLive.js +2 -1
  462. package/es/lowcode/view/lc-components/Section/FunctionLive.js.map +1 -0
  463. package/es/lowcode/view/lc-components/Section/FunctionPreview.js +2 -1
  464. package/es/lowcode/view/lc-components/Section/FunctionPreview.js.map +1 -0
  465. package/es/lowcode/view/lc-components/Section/index.js +2 -1
  466. package/es/lowcode/view/lc-components/Section/index.js.map +1 -0
  467. package/es/lowcode/view/lc-components/Split/FunctionDesign.js +2 -1
  468. package/es/lowcode/view/lc-components/Split/FunctionDesign.js.map +1 -0
  469. package/es/lowcode/view/lc-components/Split/FunctionLive.js +2 -1
  470. package/es/lowcode/view/lc-components/Split/FunctionLive.js.map +1 -0
  471. package/es/lowcode/view/lc-components/Split/FunctionPreview.js +2 -1
  472. package/es/lowcode/view/lc-components/Split/FunctionPreview.js.map +1 -0
  473. package/es/lowcode/view/lc-components/Split/index.js +2 -1
  474. package/es/lowcode/view/lc-components/Split/index.js.map +1 -0
  475. package/es/lowcode/view/lc-components/Table/FunctionDesign.js +2 -1
  476. package/es/lowcode/view/lc-components/Table/FunctionDesign.js.map +1 -0
  477. package/es/lowcode/view/lc-components/Table/FunctionLive.js +2 -1
  478. package/es/lowcode/view/lc-components/Table/FunctionLive.js.map +1 -0
  479. package/es/lowcode/view/lc-components/Table/FunctionPreview.js +2 -1
  480. package/es/lowcode/view/lc-components/Table/FunctionPreview.js.map +1 -0
  481. package/es/lowcode/view/lc-components/Table/components/TopFilter.js +2 -1
  482. package/es/lowcode/view/lc-components/Table/components/TopFilter.js.map +1 -0
  483. package/es/lowcode/view/lc-components/Table/components/TopImex.js +2 -1
  484. package/es/lowcode/view/lc-components/Table/components/TopImex.js.map +1 -0
  485. package/es/lowcode/view/lc-components/Table/index.js +2 -1
  486. package/es/lowcode/view/lc-components/Table/index.js.map +1 -0
  487. package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -1
  488. package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js.map +1 -0
  489. package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +2 -1
  490. package/es/lowcode/view/lc-components/Tabs/FunctionLive.js.map +1 -0
  491. package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js +2 -1
  492. package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js.map +1 -0
  493. package/es/lowcode/view/lc-components/Tabs/index.js +2 -1
  494. package/es/lowcode/view/lc-components/Tabs/index.js.map +1 -0
  495. package/es/lowcode/view/lc-components/Text/FunctionDesign.js +2 -1
  496. package/es/lowcode/view/lc-components/Text/FunctionDesign.js.map +1 -0
  497. package/es/lowcode/view/lc-components/Text/FunctionLive.js +2 -1
  498. package/es/lowcode/view/lc-components/Text/FunctionLive.js.map +1 -0
  499. package/es/lowcode/view/lc-components/Text/FunctionPreview.js +2 -1
  500. package/es/lowcode/view/lc-components/Text/FunctionPreview.js.map +1 -0
  501. package/es/lowcode/view/lc-components/Text/index.js +2 -1
  502. package/es/lowcode/view/lc-components/Text/index.js.map +1 -0
  503. package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -1
  504. package/es/lowcode/view/lc-components/Tree/FunctionDesign.js.map +1 -0
  505. package/es/lowcode/view/lc-components/Tree/FunctionLive.js +2 -1
  506. package/es/lowcode/view/lc-components/Tree/FunctionLive.js.map +1 -0
  507. package/es/lowcode/view/lc-components/Tree/FunctionPreview.js +2 -1
  508. package/es/lowcode/view/lc-components/Tree/FunctionPreview.js.map +1 -0
  509. package/es/lowcode/view/lc-components/Tree/index.js +2 -1
  510. package/es/lowcode/view/lc-components/Tree/index.js.map +1 -0
  511. package/es/lowcode/view/lc-components/Wrapper.js +2 -1
  512. package/es/lowcode/view/lc-components/Wrapper.js.map +1 -0
  513. package/es/services.js +2 -1
  514. package/es/services.js.map +1 -0
  515. package/es/upload/FilesWall/index.js +2 -1
  516. package/es/upload/FilesWall/index.js.map +1 -0
  517. package/es/upload/Form/gridForm.js +2 -1
  518. package/es/upload/Form/gridForm.js.map +1 -0
  519. package/es/upload/Form/index.js +2 -1
  520. package/es/upload/Form/index.js.map +1 -0
  521. package/es/upload/FormItem/index.js +2 -1
  522. package/es/upload/FormItem/index.js.map +1 -0
  523. package/es/upload/GridCell/index.js +2 -1
  524. package/es/upload/GridCell/index.js.map +1 -0
  525. package/es/upload/index.js +2 -1
  526. package/es/upload/index.js.map +1 -0
  527. package/es/utils/action.js +2 -1
  528. package/es/utils/action.js.map +1 -0
  529. package/es/utils/form.js +2 -1
  530. package/es/utils/form.js.map +1 -0
  531. package/es/utils/grid.js +2 -1
  532. package/es/utils/grid.js.map +1 -0
  533. package/es/utils/index.js +2 -1
  534. package/es/utils/index.js.map +1 -0
  535. package/lib/components/Builder/index.js +2 -1
  536. package/lib/components/Builder/index.js.map +1 -0
  537. package/lib/components/ComplexItem/index.js +2 -1
  538. package/lib/components/ComplexItem/index.js.map +1 -0
  539. package/lib/components/ComplexItem/service.js +2 -1
  540. package/lib/components/ComplexItem/service.js.map +1 -0
  541. package/lib/components/IconFont/index.js +2 -1
  542. package/lib/components/IconFont/index.js.map +1 -0
  543. package/lib/components/LDActions/index.js +2 -1
  544. package/lib/components/LDActions/index.js.map +1 -0
  545. package/lib/components/LdAutoForm/index.js +2 -1
  546. package/lib/components/LdAutoForm/index.js.map +1 -0
  547. package/lib/components/LdCard/index.js +2 -1
  548. package/lib/components/LdCard/index.js.map +1 -0
  549. package/lib/components/LdCard/model.js +2 -1
  550. package/lib/components/LdCard/model.js.map +1 -0
  551. package/lib/components/LdCom/index.js +2 -1
  552. package/lib/components/LdCom/index.js.map +1 -0
  553. package/lib/components/LdFormList/index.js +2 -1
  554. package/lib/components/LdFormList/index.js.map +1 -0
  555. package/lib/components/LdFormList/model.js +2 -1
  556. package/lib/components/LdFormList/model.js.map +1 -0
  557. package/lib/components/LdGrid/index.js +2 -1
  558. package/lib/components/LdGrid/index.js.map +1 -0
  559. package/lib/components/LdGrid/model.js +2 -1
  560. package/lib/components/LdGrid/model.js.map +1 -0
  561. package/lib/components/LdGridForm/index.js +2 -1
  562. package/lib/components/LdGridForm/index.js.map +1 -0
  563. package/lib/components/LdInfoPanel/index.js +2 -1
  564. package/lib/components/LdInfoPanel/index.js.map +1 -0
  565. package/lib/components/LdPop/index.js +2 -1
  566. package/lib/components/LdPop/index.js.map +1 -0
  567. package/lib/components/LdTree/index.js +2 -1
  568. package/lib/components/LdTree/index.js.map +1 -0
  569. package/lib/helper/FromItems.js +2 -1
  570. package/lib/helper/FromItems.js.map +1 -0
  571. package/lib/helper/action.js +2 -1
  572. package/lib/helper/action.js.map +1 -0
  573. package/lib/helper/form.js +2 -1
  574. package/lib/helper/form.js.map +1 -0
  575. package/lib/helper/ldBuilder.js +2 -1
  576. package/lib/helper/ldBuilder.js.map +1 -0
  577. package/lib/helper/ldComBuild.js +2 -1
  578. package/lib/helper/ldComBuild.js.map +1 -0
  579. package/lib/helper/props_config.js +2 -1
  580. package/lib/helper/props_config.js.map +1 -0
  581. package/lib/index.js +2 -1
  582. package/lib/index.js.map +1 -0
  583. package/lib/locales/zh-CN.js +2 -1
  584. package/lib/locales/zh-CN.js.map +1 -0
  585. package/lib/lowcode/constants/api-url.js +2 -1
  586. package/lib/lowcode/constants/api-url.js.map +1 -0
  587. package/lib/lowcode/constants/event-topics.js +2 -1
  588. package/lib/lowcode/constants/event-topics.js.map +1 -0
  589. package/lib/lowcode/constants/index.js +2 -1
  590. package/lib/lowcode/constants/index.js.map +1 -0
  591. package/lib/lowcode/engine/factory/DataFactory.js +2 -1
  592. package/lib/lowcode/engine/factory/DataFactory.js.map +1 -0
  593. package/lib/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +2 -1
  594. package/lib/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js.map +1 -0
  595. package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +2 -1
  596. package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js.map +1 -0
  597. package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +2 -1
  598. package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js.map +1 -0
  599. package/lib/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +2 -1
  600. package/lib/lowcode/engine/factory/panel-item-factory/NumberStrategy.js.map +1 -0
  601. package/lib/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +2 -1
  602. package/lib/lowcode/engine/factory/panel-item-factory/RadioStrategy.js.map +1 -0
  603. package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +2 -1
  604. package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js.map +1 -0
  605. package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +2 -1
  606. package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js.map +1 -0
  607. package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +2 -1
  608. package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js.map +1 -0
  609. package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +2 -1
  610. package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js.map +1 -0
  611. package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +2 -1
  612. package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js.map +1 -0
  613. package/lib/lowcode/engine/factory/panel-item-factory/index.js +2 -1
  614. package/lib/lowcode/engine/factory/panel-item-factory/index.js.map +1 -0
  615. package/lib/lowcode/engine/launcher.js +2 -1
  616. package/lib/lowcode/engine/launcher.js.map +1 -0
  617. package/lib/lowcode/engine/provider/ContextProvider/index.js +2 -1
  618. package/lib/lowcode/engine/provider/ContextProvider/index.js.map +1 -0
  619. package/lib/lowcode/engine/provider/ContextProvider/router.js +2 -1
  620. package/lib/lowcode/engine/provider/ContextProvider/router.js.map +1 -0
  621. package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +2 -1
  622. package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js.map +1 -0
  623. package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js +2 -1
  624. package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js.map +1 -0
  625. package/lib/lowcode/engine/provider/ContextProvider/useTodo.js +2 -1
  626. package/lib/lowcode/engine/provider/ContextProvider/useTodo.js.map +1 -0
  627. package/lib/lowcode/engine/provider/ContextProvider/utils.js +2 -1
  628. package/lib/lowcode/engine/provider/ContextProvider/utils.js.map +1 -0
  629. package/lib/lowcode/engine/provider/EventBusProvider.js +2 -1
  630. package/lib/lowcode/engine/provider/EventBusProvider.js.map +1 -0
  631. package/lib/lowcode/engine/provider/RemoteSourceProvider.js +2 -1
  632. package/lib/lowcode/engine/provider/RemoteSourceProvider.js.map +1 -0
  633. package/lib/lowcode/engine/tools/dataProcess.js +2 -1
  634. package/lib/lowcode/engine/tools/dataProcess.js.map +1 -0
  635. package/lib/lowcode/engine/tools/diff.js +2 -1
  636. package/lib/lowcode/engine/tools/diff.js.map +1 -0
  637. package/lib/lowcode/engine/tools/helper.js +2 -1
  638. package/lib/lowcode/engine/tools/helper.js.map +1 -0
  639. package/lib/lowcode/engine/tools/initDS.js +2 -1
  640. package/lib/lowcode/engine/tools/initDS.js.map +1 -0
  641. package/lib/lowcode/engine/tools/useCanvasRender.js +2 -1
  642. package/lib/lowcode/engine/tools/useCanvasRender.js.map +1 -0
  643. package/lib/lowcode/engine/tools/useCombinedRefs.js +2 -1
  644. package/lib/lowcode/engine/tools/useCombinedRefs.js.map +1 -0
  645. package/lib/lowcode/engine/tools/usePromiseState.js +2 -1
  646. package/lib/lowcode/engine/tools/usePromiseState.js.map +1 -0
  647. package/lib/lowcode/index.js +2 -1
  648. package/lib/lowcode/index.js.map +1 -0
  649. package/lib/lowcode/painter/Components.js +2 -1
  650. package/lib/lowcode/painter/Components.js.map +1 -0
  651. package/lib/lowcode/painter/Design.js +2 -1
  652. package/lib/lowcode/painter/Design.js.map +1 -0
  653. package/lib/lowcode/painter/DesignOperator.js +2 -1
  654. package/lib/lowcode/painter/DesignOperator.js.map +1 -0
  655. package/lib/lowcode/painter/DesignToolbar.js +2 -1
  656. package/lib/lowcode/painter/DesignToolbar.js.map +1 -0
  657. package/lib/lowcode/painter/I18n.js +2 -1
  658. package/lib/lowcode/painter/I18n.js.map +1 -0
  659. package/lib/lowcode/painter/Outline.js +2 -1
  660. package/lib/lowcode/painter/Outline.js.map +1 -0
  661. package/lib/lowcode/painter/Panel.js +2 -1
  662. package/lib/lowcode/painter/Panel.js.map +1 -0
  663. package/lib/lowcode/painter/Ribbon.js +2 -1
  664. package/lib/lowcode/painter/Ribbon.js.map +1 -0
  665. package/lib/lowcode/painter/components/ActionBindModal.js +2 -1
  666. package/lib/lowcode/painter/components/ActionBindModal.js.map +1 -0
  667. package/lib/lowcode/painter/components/AdvancePanel.js +2 -1
  668. package/lib/lowcode/painter/components/AdvancePanel.js.map +1 -0
  669. package/lib/lowcode/painter/components/AttrsPanel.js +2 -1
  670. package/lib/lowcode/painter/components/AttrsPanel.js.map +1 -0
  671. package/lib/lowcode/painter/components/Collapse.js +2 -1
  672. package/lib/lowcode/painter/components/Collapse.js.map +1 -0
  673. package/lib/lowcode/painter/components/ColorInput.js +2 -1
  674. package/lib/lowcode/painter/components/ColorInput.js.map +1 -0
  675. package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +2 -1
  676. package/lib/lowcode/painter/components/DragDrop/DragDropContext.js.map +1 -0
  677. package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +2 -1
  678. package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js.map +1 -0
  679. package/lib/lowcode/painter/components/DragDrop/Overlay.js +2 -1
  680. package/lib/lowcode/painter/components/DragDrop/Overlay.js.map +1 -0
  681. package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +2 -1
  682. package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js.map +1 -0
  683. package/lib/lowcode/painter/components/FieldSelector.js +2 -1
  684. package/lib/lowcode/painter/components/FieldSelector.js.map +1 -0
  685. package/lib/lowcode/painter/components/ListEditor.js +2 -1
  686. package/lib/lowcode/painter/components/ListEditor.js.map +1 -0
  687. package/lib/lowcode/painter/components/NumberInput.js +2 -1
  688. package/lib/lowcode/painter/components/NumberInput.js.map +1 -0
  689. package/lib/lowcode/painter/components/PanelItem.js +2 -1
  690. package/lib/lowcode/painter/components/PanelItem.js.map +1 -0
  691. package/lib/lowcode/painter/components/PopConfirm.js +2 -1
  692. package/lib/lowcode/painter/components/PopConfirm.js.map +1 -0
  693. package/lib/lowcode/painter/components/PopForm.js +2 -1
  694. package/lib/lowcode/painter/components/PopForm.js.map +1 -0
  695. package/lib/lowcode/painter/components/PreviewIframe.js +2 -1
  696. package/lib/lowcode/painter/components/PreviewIframe.js.map +1 -0
  697. package/lib/lowcode/painter/components/RuleInput.js +2 -1
  698. package/lib/lowcode/painter/components/RuleInput.js.map +1 -0
  699. package/lib/lowcode/painter/components/SortBox.js +2 -1
  700. package/lib/lowcode/painter/components/SortBox.js.map +1 -0
  701. package/lib/lowcode/painter/components/TipIcon.js +2 -1
  702. package/lib/lowcode/painter/components/TipIcon.js.map +1 -0
  703. package/lib/lowcode/painter/components/TreeEditor.js +2 -1
  704. package/lib/lowcode/painter/components/TreeEditor.js.map +1 -0
  705. package/lib/lowcode/painter/components/VarEditor.js +2 -1
  706. package/lib/lowcode/painter/components/VarEditor.js.map +1 -0
  707. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +2 -1
  708. package/lib/lowcode/painter/components/code-editor/BaseEditor.js.map +1 -0
  709. package/lib/lowcode/painter/components/code-editor/CssEditor.js +2 -1
  710. package/lib/lowcode/painter/components/code-editor/CssEditor.js.map +1 -0
  711. package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +2 -1
  712. package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js.map +1 -0
  713. package/lib/lowcode/painter/components/code-editor/JSEditor.js +2 -1
  714. package/lib/lowcode/painter/components/code-editor/JSEditor.js.map +1 -0
  715. package/lib/lowcode/painter/components/code-editor/JsonEditor.js +2 -1
  716. package/lib/lowcode/painter/components/code-editor/JsonEditor.js.map +1 -0
  717. package/lib/lowcode/painter/components/code-editor/VisionEditor.js +2 -1
  718. package/lib/lowcode/painter/components/code-editor/VisionEditor.js.map +1 -0
  719. package/lib/lowcode/painter/components/code-editor/index.js +2 -1
  720. package/lib/lowcode/painter/components/code-editor/index.js.map +1 -0
  721. package/lib/lowcode/painter/components/field-setting/BatchSetting.js +2 -1
  722. package/lib/lowcode/painter/components/field-setting/BatchSetting.js.map +1 -0
  723. package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +2 -1
  724. package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js.map +1 -0
  725. package/lib/lowcode/painter/components/field-setting/CheckRules.js +2 -1
  726. package/lib/lowcode/painter/components/field-setting/CheckRules.js.map +1 -0
  727. package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +2 -1
  728. package/lib/lowcode/painter/components/field-setting/FieldAttrs.js.map +1 -0
  729. package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js +2 -1
  730. package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js.map +1 -0
  731. package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js +2 -1
  732. package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js.map +1 -0
  733. package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +2 -1
  734. package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js.map +1 -0
  735. package/lib/lowcode/painter/components/field-setting/SettingUI.js +2 -1
  736. package/lib/lowcode/painter/components/field-setting/SettingUI.js.map +1 -0
  737. package/lib/lowcode/painter/components/field-setting/index.js +2 -1
  738. package/lib/lowcode/painter/components/field-setting/index.js.map +1 -0
  739. package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
  740. package/lib/lowcode/painter/components/field-setting/meta/frontRules.js.map +1 -0
  741. package/lib/lowcode/painter/expect.js +2 -1
  742. package/lib/lowcode/painter/expect.js.map +1 -0
  743. package/lib/lowcode/painter/index.js +2 -1
  744. package/lib/lowcode/painter/index.js.map +1 -0
  745. package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +2 -1
  746. package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js.map +1 -0
  747. package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +2 -1
  748. package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js.map +1 -0
  749. package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +2 -1
  750. package/lib/lowcode/painter/panel-section/ActionsEditor/index.js.map +1 -0
  751. package/lib/lowcode/painter/panel-section/BlockEditor/index.js +2 -1
  752. package/lib/lowcode/painter/panel-section/BlockEditor/index.js.map +1 -0
  753. package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +2 -1
  754. package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js.map +1 -0
  755. package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +2 -1
  756. package/lib/lowcode/painter/panel-section/BlocksEditor/index.js.map +1 -0
  757. package/lib/lowcode/painter/panel-section/ButtonType.js +2 -1
  758. package/lib/lowcode/painter/panel-section/ButtonType.js.map +1 -0
  759. package/lib/lowcode/painter/panel-section/ComplexPop.js +2 -1
  760. package/lib/lowcode/painter/panel-section/ComplexPop.js.map +1 -0
  761. package/lib/lowcode/painter/panel-section/ComponentSelector.js +2 -1
  762. package/lib/lowcode/painter/panel-section/ComponentSelector.js.map +1 -0
  763. package/lib/lowcode/painter/panel-section/DataSetSelector.js +2 -1
  764. package/lib/lowcode/painter/panel-section/DataSetSelector.js.map +1 -0
  765. package/lib/lowcode/painter/panel-section/FieldState.js +2 -1
  766. package/lib/lowcode/painter/panel-section/FieldState.js.map +1 -0
  767. package/lib/lowcode/painter/panel-section/FieldsSetting.js +2 -1
  768. package/lib/lowcode/painter/panel-section/FieldsSetting.js.map +1 -0
  769. package/lib/lowcode/painter/panel-section/GroupClassSelector.js +2 -1
  770. package/lib/lowcode/painter/panel-section/GroupClassSelector.js.map +1 -0
  771. package/lib/lowcode/painter/panel-section/I18nInput.js +2 -1
  772. package/lib/lowcode/painter/panel-section/I18nInput.js.map +1 -0
  773. package/lib/lowcode/painter/panel-section/Icon.js +2 -1
  774. package/lib/lowcode/painter/panel-section/Icon.js.map +1 -0
  775. package/lib/lowcode/painter/panel-section/IconConditionSelector.js +2 -1
  776. package/lib/lowcode/painter/panel-section/IconConditionSelector.js.map +1 -0
  777. package/lib/lowcode/painter/panel-section/IconSelector.js +2 -1
  778. package/lib/lowcode/painter/panel-section/IconSelector.js.map +1 -0
  779. package/lib/lowcode/painter/panel-section/ImpExp.js +2 -1
  780. package/lib/lowcode/painter/panel-section/ImpExp.js.map +1 -0
  781. package/lib/lowcode/painter/panel-section/ImpExpAlone.js +2 -1
  782. package/lib/lowcode/painter/panel-section/ImpExpAlone.js.map +1 -0
  783. package/lib/lowcode/painter/panel-section/JSEditor.js +2 -1
  784. package/lib/lowcode/painter/panel-section/JSEditor.js.map +1 -0
  785. package/lib/lowcode/painter/panel-section/LayoutRatio.js +2 -1
  786. package/lib/lowcode/painter/panel-section/LayoutRatio.js.map +1 -0
  787. package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +2 -1
  788. package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js.map +1 -0
  789. package/lib/lowcode/painter/panel-section/PageVars.js +2 -1
  790. package/lib/lowcode/painter/panel-section/PageVars.js.map +1 -0
  791. package/lib/lowcode/painter/panel-section/SerialsSelector.js +2 -1
  792. package/lib/lowcode/painter/panel-section/SerialsSelector.js.map +1 -0
  793. package/lib/lowcode/painter/panel-section/SplitDisplay.js +2 -1
  794. package/lib/lowcode/painter/panel-section/SplitDisplay.js.map +1 -0
  795. package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -1
  796. package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js.map +1 -0
  797. package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -1
  798. package/lib/lowcode/painter/panel-section/StylePanel/Border.js.map +1 -0
  799. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -1
  800. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js.map +1 -0
  801. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -1
  802. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js.map +1 -0
  803. package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -1
  804. package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js.map +1 -0
  805. package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -1
  806. package/lib/lowcode/painter/panel-section/StylePanel/Display.js.map +1 -0
  807. package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +2 -1
  808. package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js.map +1 -0
  809. package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -1
  810. package/lib/lowcode/painter/panel-section/StylePanel/Font.js.map +1 -0
  811. package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -1
  812. package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js.map +1 -0
  813. package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -1
  814. package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js.map +1 -0
  815. package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -1
  816. package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js.map +1 -0
  817. package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -1
  818. package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js.map +1 -0
  819. package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -1
  820. package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js.map +1 -0
  821. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -1
  822. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js.map +1 -0
  823. package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -1
  824. package/lib/lowcode/painter/panel-section/StylePanel/Margin.js.map +1 -0
  825. package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -1
  826. package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js.map +1 -0
  827. package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -1
  828. package/lib/lowcode/painter/panel-section/StylePanel/Padding.js.map +1 -0
  829. package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -1
  830. package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js.map +1 -0
  831. package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -1
  832. package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js.map +1 -0
  833. package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -1
  834. package/lib/lowcode/painter/panel-section/StylePanel/Size.js.map +1 -0
  835. package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -1
  836. package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js.map +1 -0
  837. package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -1
  838. package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js.map +1 -0
  839. package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -1
  840. package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js.map +1 -0
  841. package/lib/lowcode/painter/panel-section/StylePanel/index.js +2 -1
  842. package/lib/lowcode/painter/panel-section/StylePanel/index.js.map +1 -0
  843. package/lib/lowcode/painter/panel-section/TabItems.js +2 -1
  844. package/lib/lowcode/painter/panel-section/TabItems.js.map +1 -0
  845. package/lib/lowcode/painter/panel-section/TableTopFilter.js +2 -1
  846. package/lib/lowcode/painter/panel-section/TableTopFilter.js.map +1 -0
  847. package/lib/lowcode/painter/panel-section/TableZebra.js +2 -1
  848. package/lib/lowcode/painter/panel-section/TableZebra.js.map +1 -0
  849. package/lib/lowcode/painter/panel-section/TextContent.js +2 -1
  850. package/lib/lowcode/painter/panel-section/TextContent.js.map +1 -0
  851. package/lib/lowcode/painter/panel-section/TreeRootEditor.js +2 -1
  852. package/lib/lowcode/painter/panel-section/TreeRootEditor.js.map +1 -0
  853. package/lib/lowcode/painter/panel-section/WidthHeight.js +2 -1
  854. package/lib/lowcode/painter/panel-section/WidthHeight.js.map +1 -0
  855. package/lib/lowcode/painter/services/I18n.js +2 -1
  856. package/lib/lowcode/painter/services/I18n.js.map +1 -0
  857. package/lib/lowcode/painter/services/complexPop.js +2 -1
  858. package/lib/lowcode/painter/services/complexPop.js.map +1 -0
  859. package/lib/lowcode/preview/index.js +2 -1
  860. package/lib/lowcode/preview/index.js.map +1 -0
  861. package/lib/lowcode/view/Canvas.js +2 -1
  862. package/lib/lowcode/view/Canvas.js.map +1 -0
  863. package/lib/lowcode/view/ErrorBoundary.js +2 -1
  864. package/lib/lowcode/view/ErrorBoundary.js.map +1 -0
  865. package/lib/lowcode/view/Loading.js +2 -1
  866. package/lib/lowcode/view/Loading.js.map +1 -0
  867. package/lib/lowcode/view/Page.js +2 -1
  868. package/lib/lowcode/view/Page.js.map +1 -0
  869. package/lib/lowcode/view/index.js +2 -1
  870. package/lib/lowcode/view/index.js.map +1 -0
  871. package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +2 -1
  872. package/lib/lowcode/view/lc-components/Box/FunctionDesign.js.map +1 -0
  873. package/lib/lowcode/view/lc-components/Box/FunctionLive.js +2 -1
  874. package/lib/lowcode/view/lc-components/Box/FunctionLive.js.map +1 -0
  875. package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +2 -1
  876. package/lib/lowcode/view/lc-components/Box/FunctionPreview.js.map +1 -0
  877. package/lib/lowcode/view/lc-components/Box/index.js +2 -1
  878. package/lib/lowcode/view/lc-components/Box/index.js.map +1 -0
  879. package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +2 -1
  880. package/lib/lowcode/view/lc-components/Button/FunctionDesign.js.map +1 -0
  881. package/lib/lowcode/view/lc-components/Button/FunctionLive.js +2 -1
  882. package/lib/lowcode/view/lc-components/Button/FunctionLive.js.map +1 -0
  883. package/lib/lowcode/view/lc-components/Button/FunctionPreview.js +2 -1
  884. package/lib/lowcode/view/lc-components/Button/FunctionPreview.js.map +1 -0
  885. package/lib/lowcode/view/lc-components/Button/index.js +2 -1
  886. package/lib/lowcode/view/lc-components/Button/index.js.map +1 -0
  887. package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +2 -1
  888. package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js.map +1 -0
  889. package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +2 -1
  890. package/lib/lowcode/view/lc-components/CardList/FunctionLive.js.map +1 -0
  891. package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +2 -1
  892. package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js.map +1 -0
  893. package/lib/lowcode/view/lc-components/CardList/index.js +2 -1
  894. package/lib/lowcode/view/lc-components/CardList/index.js.map +1 -0
  895. package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -1
  896. package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js.map +1 -0
  897. package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +2 -1
  898. package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js.map +1 -0
  899. package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +2 -1
  900. package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js.map +1 -0
  901. package/lib/lowcode/view/lc-components/Dialog/index.js +2 -1
  902. package/lib/lowcode/view/lc-components/Dialog/index.js.map +1 -0
  903. package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -1
  904. package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js.map +1 -0
  905. package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +2 -1
  906. package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js.map +1 -0
  907. package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +2 -1
  908. package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js.map +1 -0
  909. package/lib/lowcode/view/lc-components/Drawer/index.js +2 -1
  910. package/lib/lowcode/view/lc-components/Drawer/index.js.map +1 -0
  911. package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
  912. package/lib/lowcode/view/lc-components/Form/FunctionDesign.js.map +1 -0
  913. package/lib/lowcode/view/lc-components/Form/FunctionLive.js +2 -1
  914. package/lib/lowcode/view/lc-components/Form/FunctionLive.js.map +1 -0
  915. package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +2 -1
  916. package/lib/lowcode/view/lc-components/Form/FunctionPreview.js.map +1 -0
  917. package/lib/lowcode/view/lc-components/Form/index.js +2 -1
  918. package/lib/lowcode/view/lc-components/Form/index.js.map +1 -0
  919. package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js +2 -1
  920. package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js.map +1 -0
  921. package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js +2 -1
  922. package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js.map +1 -0
  923. package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js +2 -1
  924. package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js.map +1 -0
  925. package/lib/lowcode/view/lc-components/GroupTree/index.js +2 -1
  926. package/lib/lowcode/view/lc-components/GroupTree/index.js.map +1 -0
  927. package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +2 -1
  928. package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js.map +1 -0
  929. package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +2 -1
  930. package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js.map +1 -0
  931. package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +2 -1
  932. package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js.map +1 -0
  933. package/lib/lowcode/view/lc-components/Iframe/index.js +2 -1
  934. package/lib/lowcode/view/lc-components/Iframe/index.js.map +1 -0
  935. package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +2 -1
  936. package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js.map +1 -0
  937. package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +2 -1
  938. package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js.map +1 -0
  939. package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +2 -1
  940. package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js.map +1 -0
  941. package/lib/lowcode/view/lc-components/ImEx/index.js +2 -1
  942. package/lib/lowcode/view/lc-components/ImEx/index.js.map +1 -0
  943. package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +2 -1
  944. package/lib/lowcode/view/lc-components/Image/FunctionDesign.js.map +1 -0
  945. package/lib/lowcode/view/lc-components/Image/FunctionLive.js +2 -1
  946. package/lib/lowcode/view/lc-components/Image/FunctionLive.js.map +1 -0
  947. package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +2 -1
  948. package/lib/lowcode/view/lc-components/Image/FunctionPreview.js.map +1 -0
  949. package/lib/lowcode/view/lc-components/Image/index.js +2 -1
  950. package/lib/lowcode/view/lc-components/Image/index.js.map +1 -0
  951. package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +2 -1
  952. package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js.map +1 -0
  953. package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +2 -1
  954. package/lib/lowcode/view/lc-components/JSX/FunctionLive.js.map +1 -0
  955. package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +2 -1
  956. package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js.map +1 -0
  957. package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +2 -1
  958. package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js.map +1 -0
  959. package/lib/lowcode/view/lc-components/JSX/index.js +2 -1
  960. package/lib/lowcode/view/lc-components/JSX/index.js.map +1 -0
  961. package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +2 -1
  962. package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js.map +1 -0
  963. package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +2 -1
  964. package/lib/lowcode/view/lc-components/Layout/FunctionLive.js.map +1 -0
  965. package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +2 -1
  966. package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js.map +1 -0
  967. package/lib/lowcode/view/lc-components/Layout/index.js +2 -1
  968. package/lib/lowcode/view/lc-components/Layout/index.js.map +1 -0
  969. package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +2 -1
  970. package/lib/lowcode/view/lc-components/Link/FunctionDesign.js.map +1 -0
  971. package/lib/lowcode/view/lc-components/Link/FunctionLive.js +2 -1
  972. package/lib/lowcode/view/lc-components/Link/FunctionLive.js.map +1 -0
  973. package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +2 -1
  974. package/lib/lowcode/view/lc-components/Link/FunctionPreview.js.map +1 -0
  975. package/lib/lowcode/view/lc-components/Link/index.js +2 -1
  976. package/lib/lowcode/view/lc-components/Link/index.js.map +1 -0
  977. package/lib/lowcode/view/lc-components/PageContent/index.js +2 -1
  978. package/lib/lowcode/view/lc-components/PageContent/index.js.map +1 -0
  979. package/lib/lowcode/view/lc-components/PageFooter/index.js +2 -1
  980. package/lib/lowcode/view/lc-components/PageFooter/index.js.map +1 -0
  981. package/lib/lowcode/view/lc-components/PageHeader/index.js +2 -1
  982. package/lib/lowcode/view/lc-components/PageHeader/index.js.map +1 -0
  983. package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +2 -1
  984. package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js.map +1 -0
  985. package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +2 -1
  986. package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js.map +1 -0
  987. package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +2 -1
  988. package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js.map +1 -0
  989. package/lib/lowcode/view/lc-components/PageLayout/index.js +2 -1
  990. package/lib/lowcode/view/lc-components/PageLayout/index.js.map +1 -0
  991. package/lib/lowcode/view/lc-components/PageModal/index.js +2 -1
  992. package/lib/lowcode/view/lc-components/PageModal/index.js.map +1 -0
  993. package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +2 -1
  994. package/lib/lowcode/view/lc-components/Section/FunctionDesign.js.map +1 -0
  995. package/lib/lowcode/view/lc-components/Section/FunctionLive.js +2 -1
  996. package/lib/lowcode/view/lc-components/Section/FunctionLive.js.map +1 -0
  997. package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +2 -1
  998. package/lib/lowcode/view/lc-components/Section/FunctionPreview.js.map +1 -0
  999. package/lib/lowcode/view/lc-components/Section/index.js +2 -1
  1000. package/lib/lowcode/view/lc-components/Section/index.js.map +1 -0
  1001. package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +2 -1
  1002. package/lib/lowcode/view/lc-components/Split/FunctionDesign.js.map +1 -0
  1003. package/lib/lowcode/view/lc-components/Split/FunctionLive.js +2 -1
  1004. package/lib/lowcode/view/lc-components/Split/FunctionLive.js.map +1 -0
  1005. package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +2 -1
  1006. package/lib/lowcode/view/lc-components/Split/FunctionPreview.js.map +1 -0
  1007. package/lib/lowcode/view/lc-components/Split/index.js +2 -1
  1008. package/lib/lowcode/view/lc-components/Split/index.js.map +1 -0
  1009. package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +2 -1
  1010. package/lib/lowcode/view/lc-components/Table/FunctionDesign.js.map +1 -0
  1011. package/lib/lowcode/view/lc-components/Table/FunctionLive.js +2 -1
  1012. package/lib/lowcode/view/lc-components/Table/FunctionLive.js.map +1 -0
  1013. package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +2 -1
  1014. package/lib/lowcode/view/lc-components/Table/FunctionPreview.js.map +1 -0
  1015. package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +2 -1
  1016. package/lib/lowcode/view/lc-components/Table/components/TopFilter.js.map +1 -0
  1017. package/lib/lowcode/view/lc-components/Table/components/TopImex.js +2 -1
  1018. package/lib/lowcode/view/lc-components/Table/components/TopImex.js.map +1 -0
  1019. package/lib/lowcode/view/lc-components/Table/index.js +2 -1
  1020. package/lib/lowcode/view/lc-components/Table/index.js.map +1 -0
  1021. package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -1
  1022. package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js.map +1 -0
  1023. package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +2 -1
  1024. package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js.map +1 -0
  1025. package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js +2 -1
  1026. package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js.map +1 -0
  1027. package/lib/lowcode/view/lc-components/Tabs/index.js +2 -1
  1028. package/lib/lowcode/view/lc-components/Tabs/index.js.map +1 -0
  1029. package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +2 -1
  1030. package/lib/lowcode/view/lc-components/Text/FunctionDesign.js.map +1 -0
  1031. package/lib/lowcode/view/lc-components/Text/FunctionLive.js +2 -1
  1032. package/lib/lowcode/view/lc-components/Text/FunctionLive.js.map +1 -0
  1033. package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +2 -1
  1034. package/lib/lowcode/view/lc-components/Text/FunctionPreview.js.map +1 -0
  1035. package/lib/lowcode/view/lc-components/Text/index.js +2 -1
  1036. package/lib/lowcode/view/lc-components/Text/index.js.map +1 -0
  1037. package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -1
  1038. package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js.map +1 -0
  1039. package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +2 -1
  1040. package/lib/lowcode/view/lc-components/Tree/FunctionLive.js.map +1 -0
  1041. package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js +2 -1
  1042. package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js.map +1 -0
  1043. package/lib/lowcode/view/lc-components/Tree/index.js +2 -1
  1044. package/lib/lowcode/view/lc-components/Tree/index.js.map +1 -0
  1045. package/lib/lowcode/view/lc-components/Wrapper.js +2 -1
  1046. package/lib/lowcode/view/lc-components/Wrapper.js.map +1 -0
  1047. package/lib/services.js +2 -1
  1048. package/lib/services.js.map +1 -0
  1049. package/lib/upload/FilesWall/index.js +2 -1
  1050. package/lib/upload/FilesWall/index.js.map +1 -0
  1051. package/lib/upload/Form/gridForm.js +2 -1
  1052. package/lib/upload/Form/gridForm.js.map +1 -0
  1053. package/lib/upload/Form/index.js +2 -1
  1054. package/lib/upload/Form/index.js.map +1 -0
  1055. package/lib/upload/FormItem/index.js +2 -1
  1056. package/lib/upload/FormItem/index.js.map +1 -0
  1057. package/lib/upload/GridCell/index.js +2 -1
  1058. package/lib/upload/GridCell/index.js.map +1 -0
  1059. package/lib/upload/index.js +2 -1
  1060. package/lib/upload/index.js.map +1 -0
  1061. package/lib/utils/action.js +2 -1
  1062. package/lib/utils/action.js.map +1 -0
  1063. package/lib/utils/form.js +2 -1
  1064. package/lib/utils/form.js.map +1 -0
  1065. package/lib/utils/grid.js +2 -1
  1066. package/lib/utils/grid.js.map +1 -0
  1067. package/lib/utils/index.js +2 -1
  1068. package/lib/utils/index.js.map +1 -0
  1069. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_umi","_ahooks","_luckDesign","_lodash","_antd","_utils","_ContextProvider","_I18n","_getDvaApp","Search","Input","_getDvaApp$_store","getDvaApp","_store","dispatch","getLangKey","concat","suid","formatDataFunc","data","_objectSpread3","default","reduce","languages","ret","value","key","I18n","context","useContext","_useState","useState","_useState2","_slicedToArray2","langList","setLangList","_useState3","_useState4","dataSource","setDataSource","useAsyncEffect","_asyncToGenerator2","_regeneratorRuntime2","mark","_callee","_langList","wrap","_callee$","_context","prev","next","type","payload","snamealias","format","list","detail","map","id","title","sname","field","sfactvalue","editable","filter","sent","$publisher","topics","LANG_SETTING_SELECT","doQuery","stop","useMemoizedFn","arguments","length","undefined","readAllLang","classifyKey","then","res","code","actionsColumn","useCreation","width","getActions","wanted","createElement","Icon","action","_data","result","handleAdd","confirm","formatMessage","handleDelete","addItems","langKey","doAddLang","handleValueChange","newValue","oldValue","record","doUpdateLang","indocno","_defineProperty2","doDeleteLang","delList","_ref2","cloneDeep","remove","n","handleSearch","debounce","style","height","padding","placeholder","label","onChange","e","target","allowClear","Button","ghost","size","margin","onClick","GridTable","columns","renderIndex","showStatusBar","onValueChange","operates","bordered","_default","exports"],"sources":["../../../luckda/lowcode/painter/I18n.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { getDvaApp } from 'umi';\nimport { useAsyncEffect, useCreation, useMemoizedFn } from 'ahooks';\nimport { GridTable } from 'luck-design';\nimport { reduce, remove, cloneDeep, debounce } from 'lodash';\nimport { Input, Button, Icon } from 'luck-design/antd';\nimport { formatMessage, suid } from '@luck-design-biz/base/utils';\nimport { useContext } from '../engine/provider/ContextProvider';\nimport { readAllLang, doAddLang, doUpdateLang, doDeleteLang } from './services/I18n';\n\nconst { Search } = Input;\n\nconst { dispatch } = getDvaApp()?._store;\n\nconst getLangKey = () => `app.lowcode.${suid()}`;\n\nconst formatDataFunc = (data) => ({\n ...data,\n ...reduce(\n data.languages,\n (ret, value, key) => {\n ret[key] = value;\n return ret;\n },\n {},\n ),\n});\n\nconst I18n = () => {\n const context = useContext();\n\n const [langList, setLangList] = useState([]);\n const [dataSource, setDataSource] = useState([]);\n\n useAsyncEffect(async () => {\n const _langList = await dispatch({\n type: 'global/getDatadic',\n payload: { snamealias: 'base_lang' },\n format: (list, detail) =>\n list.map((id) => ({\n title: detail[id].sname,\n field: detail[id].sfactvalue,\n editable: true,\n filter: false,\n })),\n });\n setLangList(_langList);\n context.$publisher(context.topics.LANG_SETTING_SELECT, { langList: _langList });\n doQuery();\n }, []);\n\n const doQuery = useMemoizedFn((value = {}) => {\n readAllLang({ ...value, classifyKey: '__LOWCODE__' }).then(res => {\n const { code, list, detail } = res;\n if (code === 1) setDataSource(list.map((id) => formatDataFunc(detail[id])));\n });\n });\n\n const actionsColumn = useCreation(\n () => ({\n width: 60,\n getActions: () => [\n {\n wanted: 'update',\n title: <Icon type=\"copy\" />,\n action: (_data) => {\n const data = {\n languages: reduce(langList, (result, value) => {\n result[value.field] = _data[value.field];\n return result;\n }, {})\n };\n handleAdd(data);\n },\n },\n {\n wanted: 'delete',\n title: <Icon type=\"delete\" />,\n confirm: { title: formatMessage({ id: 'app.base.confirm.delete' }) },\n action: handleDelete,\n },\n ],\n }),\n [langList],\n );\n\n const handleAdd = useMemoizedFn((data = {}) => {\n const addItems = { ...data, langKey: getLangKey(), classifyKey: '__LOWCODE__' };\n doAddLang({}, addItems).then(res => {\n const { code, list, detail } = res;\n if (code === 1) setDataSource([formatDataFunc(detail[list[0]])].concat(dataSource));\n });\n })\n\n const handleValueChange = useMemoizedFn((field, newValue, oldValue, record) => {\n doUpdateLang({}, {\n classifyKey: '__LOWCODE__',\n langKey: record.langKey,\n indocno: record.indocno,\n languages: {\n ...reduce(langList, (result, value) => {\n result[value.field] = record[value.field];\n return result;\n }, {}),\n [field]: newValue,\n },\n });\n });\n\n const handleDelete = useMemoizedFn((data) => {\n doDeleteLang({}, { delList: [{ indocno: data.indocno }] }).then(({ code }) => {\n if (code === 1) {\n const _data = cloneDeep(dataSource);\n remove(_data, n => n.indocno === data.indocno);\n setDataSource(_data)\n };\n });\n });\n\n const handleSearch = debounce(doQuery, 300);\n\n return (\n <div style={{ height: '100%', padding: '16px 24px' }}>\n <Search\n placeholder={formatMessage({ id: 'luckda.lowcode.painter.I18n.search', label: '搜索文案' })}\n onChange={e => handleSearch({ value: e.target.value })}\n style={{ width: '100%' }}\n allowClear\n />\n <Button type=\"primary\" ghost size='small' style={{ margin: '16px 0' }} onClick={() => handleAdd()}>\n {formatMessage({ id: 'luckda.lowcode.painter.I18n.add', label: '新增文案' })}\n </Button>\n <GridTable\n height={480}\n columns={langList}\n dataSource={dataSource}\n renderIndex={false}\n showStatusBar={false}\n actionsColumn={actionsColumn}\n onValueChange={handleValueChange}\n operates={['add', 'update', 'delete']}\n bordered={false}\n />\n </div>\n );\n};\n\nexport default I18n;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAA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ageAndModal === null || pageAndModal === void 0 ? void 0 : pageAndModal.page));
225
225
  };
226
- var _default = exports.default = Outline;
226
+ var _default = exports.default = Outline;
227
+ //# sourceMappingURL=Outline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_lodash","_classnames","_interopRequireDefault","_antd","_utils","_ContextProvider","_constants","_dataProcess","_outline","_TreeEditor","_excluded","TreeNode","Tree","Outline","_ref","open","clickBySelf","useRef","ctx","useContext","pageData","useGet","_useState","useState","_useState2","_slicedToArray2","default","pageAndModal","setPageAndModal","_useState3","_useState4","selectedKey","setSelectedKey","_useState5","_useState6","modalExpandedKeys","setModalExpandedKeys","_useState7","_useState8","pageExpandedKeys","setPageExpandedKeys","latestModalExpandedKeysRef","useLatest","lastPageExpandedKeysRef","useEffect","_id","$subscriber","topics","COMPONENT_ACTIVE","on","payload","isString","target","current","_split","split","getPathById","_split2","_root","LC_BUILDIN_UNIT_KEY_LIST","includes","uniq","concat","_toConsumableArray2","watch","$unsubscriber","handleSelect","useMemoizedFn","_key","$publisher","render","_ref2","props","children","childrenMap","_objectWithoutProperties2","createElement","icon","Icon","type","title","item","key","id","length","map","useDeepCompareLayoutEffect","_reduce","reduce","result","resultKey","push","page","modal","className","styles","classNames","_defineProperty2","LC_BUILDIN_UNIT_KEY","PAGE_ROOT","onClick","style","marginLeft","formatMessage","label","Card","size","hoverable","margin","bodyStyle","padding","showLine","showIcon","blockNode","switcherIcon","selectedKeys","onSelect","_ref3","_ref4","_ref5","selected","node","pos","COMPONENT_MODAL_TOGGLE","toggle","_split3","eventKey","_split4","parentModal","expandedKeys","onExpand","_keys","_ref6","expanded","_ref7","_ref8","_ref9","_default","exports"],"sources":["../../../luckda/lowcode/painter/Outline.jsx"],"sourcesContent":["import React, { useRef, useState, useEffect } from 'react';\nimport { useMemoizedFn, useDeepCompareLayoutEffect, useLatest } from 'ahooks';\nimport { uniq, split, reduce, isString } from 'lodash';\nimport classNames from 'classnames';\nimport { Card, Tree, Icon } from 'luck-design/antd';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { useContext, useGet } from '../engine/provider/ContextProvider';\nimport { LC_BUILDIN_UNIT_KEY, LC_BUILDIN_UNIT_KEY_LIST } from '../constants';\nimport { getPathById } from '../engine/tools/dataProcess';\nimport styles from './style/outline.less';\nimport TreeEditor from './components/TreeEditor';\n\nconst { TreeNode } = Tree;\n\nconst Outline = ({ open }) => {\n const clickBySelf = useRef(false);\n const ctx = useContext();\n const pageData = useGet();\n const [pageAndModal, setPageAndModal] = useState(null);\n const [selectedKey, setSelectedKey] = useState(null);\n const [modalExpandedKeys, setModalExpandedKeys] = useState([]);\n const [pageExpandedKeys, setPageExpandedKeys] = useState([]);\n const latestModalExpandedKeysRef = useLatest(modalExpandedKeys);\n const lastPageExpandedKeysRef = useLatest(pageExpandedKeys);\n\n useEffect(() => {\n const _id = ctx\n .$subscriber(ctx.topics.COMPONENT_ACTIVE)\n .on((payload) => {\n if (!isString(payload.target)) {\n setSelectedKey(null);\n return;\n }\n setSelectedKey(payload.target);\n if (clickBySelf.current) {\n clickBySelf.current = false;\n return;\n }\n const [_root] = split(getPathById(pageData, payload.target), '/');\n if (!LC_BUILDIN_UNIT_KEY_LIST.includes(_root)) {\n setModalExpandedKeys(\n uniq([\n ...latestModalExpandedKeysRef.current,\n ...split(getPathById(pageData, payload.target), '/'),\n ]),\n );\n } else {\n setPageExpandedKeys(\n uniq([\n ...lastPageExpandedKeysRef.current,\n ...split(getPathById(pageData, payload.target), '/'),\n ]),\n );\n }\n })\n .watch();\n return () => {\n ctx.$unsubscriber(ctx.topics.COMPONENT_ACTIVE, _id);\n };\n }, [pageData]);\n\n const handleSelect = useMemoizedFn((_key) => {\n clickBySelf.current = true;\n ctx.$publisher(ctx.topics.COMPONENT_ACTIVE, _key ? { target: _key } : null);\n });\n\n const render = useMemoizedFn(({ props, children, ...childrenMap }) => {\n if (props) {\n return (\n <TreeNode icon={<Icon type=\"layout\" />} title={<TreeEditor item={props} />} key={props.id}>\n {children?.length && children.map((_id) => render(childrenMap[_id]))}\n </TreeNode>\n );\n }\n return (children || []).map((_id) => render(childrenMap[_id]));\n });\n\n useDeepCompareLayoutEffect(() => {\n if (!pageData) {\n return;\n }\n const { page, modal } = reduce(\n pageData.children,\n (result, _id) => {\n const resultKey = LC_BUILDIN_UNIT_KEY_LIST.includes(_id) ? 'page' : 'modal';\n result[resultKey][_id] = pageData[_id];\n if (!result[resultKey].children) {\n result[resultKey].children = [];\n }\n result[resultKey].children.push(_id);\n return result;\n },\n { page: {}, modal: {} },\n );\n setPageAndModal({\n page: render(page),\n modal: render(modal),\n });\n }, [pageData]);\n\n return (\n <div className={styles['lc-painter-outline']}>\n <div\n className={classNames(styles['page-node'], {\n [styles['page-node-active']]: selectedKey === LC_BUILDIN_UNIT_KEY.PAGE_ROOT,\n })}\n onClick={() => handleSelect(LC_BUILDIN_UNIT_KEY.PAGE_ROOT)}\n >\n <Icon type=\"layout\" />\n <span style={{ marginLeft: 5 }}>\n {formatMessage({ id: 'luckda.lowcode.page', label: '页面' })}\n </span>\n </div>\n <Card\n size=\"small\"\n type=\"inner\"\n hoverable\n title={formatMessage({ id: 'luckda.lowcode.modal', label: '模态视图层' })}\n style={{ margin: 5 }}\n bodyStyle={{ padding: 0 }}\n >\n <Tree\n showLine\n showIcon\n blockNode\n switcherIcon={<Icon type=\"down\" />}\n selectedKeys={[selectedKey]}\n onSelect={([_key], { selected, node }) => {\n if (selected && node.props.pos.split('-').length === 2) {\n // 选中节点是模态视图,则打开模态视图组件\n ctx.$publisher(ctx.topics.COMPONENT_MODAL_TOGGLE, { toggle: true, id: _key });\n handleSelect(_key);\n } else if (!selected && node.props.pos.split('-').length === 2) {\n // 取消选中节点是模态视图,则关闭模态视图\n ctx.$publisher(ctx.topics.COMPONENT_MODAL_TOGGLE, {\n toggle: false,\n id: _key,\n });\n handleSelect(null);\n } else {\n // 选中节点是模态视图下的子组件,则打开该组件的模态视图组件\n const [parentModal] = split(getPathById(pageData, node.props.eventKey), '/');\n ctx.$publisher(ctx.topics.COMPONENT_MODAL_TOGGLE, {\n toggle: true,\n id: parentModal,\n });\n handleSelect(node.props.eventKey);\n }\n }}\n expandedKeys={modalExpandedKeys}\n onExpand={(_keys, { expanded, node }) => {\n if (expanded && node.props.pos.split('-').length === 2) {\n ctx.$publisher(ctx.topics.COMPONENT_MODAL_TOGGLE, {\n toggle: true,\n id: node.props.eventKey,\n });\n handleSelect(node.props.eventKey);\n }\n setModalExpandedKeys(_keys);\n }}\n >\n {pageAndModal?.modal}\n </Tree>\n </Card>\n {open && (\n <Tree\n showLine\n showIcon\n blockNode\n switcherIcon={<Icon type=\"down\" />}\n selectedKeys={[selectedKey]}\n onSelect={([_key], { node }) => {\n ctx.$publisher(ctx.topics.COMPONENT_MODAL_TOGGLE, { toggle: false });\n handleSelect(node.props.eventKey);\n }}\n expandedKeys={pageExpandedKeys}\n onExpand={setPageExpandedKeys}\n >\n {pageAndModal?.page}\n </Tree>\n )}\n </div>\n );\n};\n\nexport default Outline;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAN,sBAAA,CAAAJ,OAAA;AACA,IAAAW,WAAA,GAAAP,sBAAA,CAAAJ,OAAA;AAAiD,IAAAY,SAAA;AAEjD,IAAQC,QAAQ,GAAKC,UAAI,CAAjBD,QAAQ;AAEhB,IAAME,OAAO,GAAG,SAAVA,OAAOA,CAAAC,IAAA,EAAiB;EAAA,IAAXC,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QAAQ,EAAE1F;EAAoB,GAE7Bb,YAAY,aAAZA,YAAY,uBAAZA,YAAY,CAAEiE,IACX,CAEL,CAAC;AAEV,CAAC;AAAC,IAAA6C,QAAA,GAAAC,OAAA,CAAAhH,OAAA,GAEab,OAAO"}
@@ -247,4 +247,5 @@ var Panel = function Panel() {
247
247
  label: '请在左侧画布选中节点'
248
248
  })));
249
249
  };
250
- var _default = exports.default = Panel;
250
+ var _default = exports.default = Panel;
251
+ //# sourceMappingURL=Panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_antd","_classnames","_interopRequireDefault","_lodash","_utils","_ContextProvider","_AttrsPanel","_StylePanel","_AdvancePanel","_panel","_constants","_I18N_PREFIX_","_TAB_LIST_","title","formatMessage","id","concat","label","key","Panel","_activeNode$$target","activeTabRef","useRef","underLineRef","_useState","useState","_useState2","_slicedToArray2","default","activeNode","setActiveNode","_useState3","_useState4","activeTabKey","setActiveTabKey","context","useContext","task","useTask","meta","useCreation","isNil","_meta","node","component","toLowerCase","$target","setValueKey","items","forEach","item","next","props","valueKey","keyPath","e","handleChange","useMemoizedFn","field","value","_ref","arguments","length","undefined","repositioning","before","headerMeta","addNode","LC_BUILDIN_UNIT_KEY","PAGE_ROOT","PAGE_HEADER","_objectSpread2","buildIn","deleteNode","footerMeta","PAGE_FOOTER","targetId","ancestorId","componentMap","get","api","getSelfData","oldValue","_defineProperty2","newValue","then","_id","$publisher","topics","COMPONENT_MODIFY","COMPONENT_REPOSITIONING","useEffect","tid","$subscriber","COMPONENT_ACTIVE","on","payload","target","isString","levelNodes","takeRight","getLevelNodes","level","_component","element","getAttribute","ancestor","_toConsumableArray2","name","watch","$unsubscriber","useLayoutEffect","current","style","left","offsetLeft","offsetWidth","createElement","className","styles","classNames","hidden","Breadcrumb","separator","fontSize","map","_ref2","Item","onMouseEnter","COMPONENT_HOVER","onMouseLeave","onClick","headerList","reduce","ret","css","push","advance","_item","ref","actived","underline","nodeId","onChange","params","_","newCss","val","_default","exports"],"sources":["../../../luckda/lowcode/painter/Panel.jsx"],"sourcesContent":["import React, { useRef, useState, useEffect, useLayoutEffect } from 'react';\nimport { useCreation, useMemoizedFn } from 'ahooks';\nimport { Breadcrumb } from 'luck-design/antd';\nimport classNames from 'classnames';\nimport { takeRight, isNil, reduce, get, isString } from 'lodash';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { useContext, useTask, addNode, deleteNode } from '../engine/provider/ContextProvider';\nimport AttrsPanel from './components/AttrsPanel';\nimport StylePanel from './panel-section/StylePanel';\nimport AdvancePanel from './components/AdvancePanel';\nimport styles from './style/panel.less';\nimport { LC_BUILDIN_UNIT_KEY } from '../constants';\n\nconst _I18N_PREFIX_ = 'luckda.lowcode.painter.panel';\n\nconst _TAB_LIST_ = [\n { title: formatMessage({ id: `${_I18N_PREFIX_}.attrs`, label: '属性' }), key: 'attrs' },\n { title: formatMessage({ id: `${_I18N_PREFIX_}.css`, label: '样式' }), key: 'css' },\n { title: formatMessage({ id: `${_I18N_PREFIX_}.advance`, label: '高级' }), key: 'advance' },\n];\n\nconst Panel = () => {\n const activeTabRef = useRef(null);\n const underLineRef = useRef(null);\n const [activeNode, setActiveNode] = useState(null);\n const [activeTabKey, setActiveTabKey] = useState('attrs');\n const context = useContext();\n const task = useTask('modify');\n\n const meta = useCreation(() => {\n if (isNil(activeNode)) return null;\n try {\n const _meta = require(`../engine/meta/${activeNode.node.component.toLowerCase()}.props.json`);\n if (!isNil(activeNode?.$target)) {\n const setValueKey = (items) => {\n items.forEach((item) => {\n if (item.next) {\n setValueKey(item.next.props);\n } else if (item.props) {\n setValueKey(item.props);\n } else {\n item.valueKey = `${activeNode.$target.keyPath}.${item.key}`;\n }\n });\n };\n setValueKey(_meta.props);\n }\n return _meta;\n } catch (e) {\n return null;\n }\n }, [activeNode]);\n\n const handleChange = useMemoizedFn((field, value, { repositioning, before } = {}) => {\n if (field === 'enableHeader') {\n if (value) {\n const headerMeta = require('../engine/meta/pageheader.props.default.json');\n addNode(LC_BUILDIN_UNIT_KEY.PAGE_ROOT, LC_BUILDIN_UNIT_KEY.PAGE_HEADER, {\n ...headerMeta,\n buildIn: true,\n });\n } else {\n deleteNode(LC_BUILDIN_UNIT_KEY.PAGE_HEADER);\n }\n } else if (field === 'enableFooter') {\n if (value) {\n const footerMeta = require('../engine/meta/pagefooter.props.default.json');\n addNode(LC_BUILDIN_UNIT_KEY.PAGE_ROOT, LC_BUILDIN_UNIT_KEY.PAGE_FOOTER, {\n ...footerMeta,\n buildIn: true,\n });\n } else {\n deleteNode(LC_BUILDIN_UNIT_KEY.PAGE_FOOTER);\n }\n }\n const targetId = isNil(activeNode.$target) ? activeNode.node.id : activeNode.$target.ancestorId;\n const component = context.componentMap.get(targetId);\n const node = component.api.getSelfData();\n const oldValue = { [field]: get(node.props, field) };\n const newValue = { [field]: value };\n if (before) {\n before(handleChange);\n }\n task(targetId, newValue).then(() => {\n const _id = isNil(activeNode.$target) ? activeNode.node.id : activeNode.$target.id;\n context.$publisher(context.topics.COMPONENT_MODIFY, {\n id: _id,\n oldValue,\n newValue,\n });\n if (repositioning || field === 'css') context.$publisher(context.topics.COMPONENT_REPOSITIONING, { id: _id });\n });\n });\n\n useEffect(() => {\n const tid = context\n .$subscriber(context.topics.COMPONENT_ACTIVE)\n .on((payload) => {\n setActiveTabKey('attrs');\n if (!payload.target) {\n setActiveNode(null);\n return;\n }\n if (isString(payload.target)) {\n const component = context.componentMap.get(payload.target);\n const node = component.api.getSelfData();\n const levelNodes = takeRight(component.api.getLevelNodes(), 4);\n setActiveNode({\n node: node.props,\n level: levelNodes,\n });\n } else {\n const _component = payload.target.element.getAttribute('data-__component');\n const ancestor = context.componentMap.get(payload.target.ancestorId);\n const levelNodes = takeRight(ancestor.api.getLevelNodes(), 3);\n\n setActiveNode({\n node: { id: payload.target.id, component: _component },\n level: [...levelNodes, { id: payload.target.id, name: payload.target.label }],\n $target: payload.target,\n });\n }\n })\n .watch();\n return () => context.$unsubscriber(context.topics.COMPONENT_ACTIVE, tid);\n }, []);\n\n useLayoutEffect(() => {\n underLineRef.current.style.left = `${\n activeTabRef.current.offsetLeft + activeTabRef.current.offsetWidth / 2 - 10\n }px`;\n }, [activeTabKey, meta?.component]);\n\n return (\n <div className={styles['lc-painter-panel']}>\n <div\n className={classNames(styles['lc-painter-panel-topbar'], { [styles.hidden]: !activeNode })}\n >\n <Breadcrumb separator=\">\" style={{ fontSize: 12 }}>\n {activeNode?.level.map(({ id, name }) => (\n <Breadcrumb.Item\n key={id}\n className={classNames({ [styles['active-node-level']]: id !== activeNode.node.id })}\n onMouseEnter={() => {\n if (id === activeNode.node.id) return;\n context.$publisher(context.topics.COMPONENT_HOVER, { target: id });\n }}\n onMouseLeave={() => {\n if (id === activeNode.node.id) return;\n context.$publisher(context.topics.COMPONENT_HOVER, null);\n }}\n onClick={() => {\n if (id === activeNode.node.id) return;\n context.$publisher(context.topics.COMPONENT_ACTIVE, { target: id });\n }}\n >\n {name}\n </Breadcrumb.Item>\n ))}\n </Breadcrumb>\n </div>\n <div\n className={classNames(styles['lc-painter-panel-tabbar'], { [styles.hidden]: !activeNode })}\n >\n <ul className={styles.headerList}>\n {reduce(\n _TAB_LIST_,\n (ret, item) => {\n if (item.key === 'css' && !isNil(meta?.css)) {\n ret.push(item);\n } else if (item.key === 'advance' && !isNil(meta?.advance)) {\n ret.push(item);\n } else if (item.key === 'attrs') {\n ret.push(item);\n }\n return ret;\n },\n [],\n ).map((_item) => (\n <li\n key={_item.key}\n ref={activeTabKey === _item.key ? activeTabRef : null}\n className={classNames({ [styles.actived]: activeTabKey === _item.key })}\n onClick={() => setActiveTabKey(_item.key)}\n >\n {_item.title}\n </li>\n ))}\n </ul>\n <div ref={underLineRef} className={styles.underline} />\n </div>\n {activeTabKey === _TAB_LIST_[0].key && (\n <AttrsPanel\n key={activeNode?.node.id}\n nodeId={activeNode?.node.id}\n ancestorId={activeNode?.$target?.ancestorId}\n meta={meta}\n onChange={(field, value, params) => handleChange(field, value, params)}\n />\n )}\n {activeTabKey === _TAB_LIST_[1].key && (\n <StylePanel\n key={activeNode?.node.id}\n nodeId={activeNode?.node.id}\n onChange={(_, newCss) => handleChange('css', newCss)}\n />\n )}\n {activeTabKey === _TAB_LIST_[2].key && (\n <AdvancePanel\n key={activeNode?.node.id}\n nodeId={activeNode?.node.id}\n target={activeNode?.$target}\n meta={meta}\n onChange={(val) =>\n handleChange(\n isNil(activeNode.$target) ? 'advance' : `${activeNode.$target.keyPath}.advance`,\n val,\n )\n }\n />\n )}\n <div\n className={classNames(styles['lc-painter-panel-empty'], { [styles.hidden]: !!activeNode })}\n >\n {formatMessage({ id: `${_I18N_PREFIX_}.empty`, label: '请在左侧画布选中节点' })}\n </div>\n </div>\n );\n};\n\nexport default Panel;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,WAAA,GAAAL,sBAAA,CAAAJ,OAAA;AACA,IAAAU,aAAA,GAAAN,sBAAA,CAAAJ,OAAA;AACA,IAAAW,MAAA,GAAAP,sBAAA,CAAAJ,OAAA;AACA,IAAAY,UAAA,GAAAZ,OAAA;AAEA,IAAMa,aAAa,GAAG,8BAA8B;AAEpD,IAAMC,UAAU,GAAG,CACjB;EAAEC,KAAK,EAAE,IAAAC,oBAAa,EAAC;IAAEC,EAAE,KAAAC,MAAA,CAAKL,aAAa,WAAQ;IAAEM,KAAK,EAAE;EAAK,CAAC,CAAC;EAAEC,GAAG,EAAE;AAAQ,CAAC,EACrF;EAAEL,KAA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Aa,EAAC;IAAEC,EAAE,KAAAC,MAAA,CAAKL,aAAa,WAAQ;IAAEM,KAAK,EAAE;EAAa,CAAC,CACjE,CACF,CAAC;AAEV,CAAC;AAAC,IAAAmI,QAAA,GAAAC,OAAA,CAAAzH,OAAA,GAEaT,KAAK"}
@@ -160,4 +160,5 @@ var Ribbon = function Ribbon() {
160
160
  })
161
161
  }), /*#__PURE__*/_react.default.createElement(_expect.default, null)));
162
162
  };
163
- var _default = exports.default = Ribbon;
163
+ var _default = exports.default = Ribbon;
164
+ //# sourceMappingURL=Ribbon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_luckDesign","_antd","_Outline","_interopRequireDefault","_Components","_I18n","_utils","_expect","_ribbon","_WIDTH_","_DRAWER_PROPS","placement","mask","getContainer","zIndex","headerStyle","borderBottom","style","position","left","bodyStyle","overflowY","height","padding","_DRAWER_OUTLINE_","width","key","title","fix","_DRAWER_COMPONENTS_","_DRAWER_I18N_","Ribbon","_useState","useState","_useState2","_slicedToArray2","default","drawer","setDrawer","createElement","Fragment","Box","className","styles","heitht","direction","align","marginRight","Tooltip","formatMessage","id","label","Icon","type","color","fontSize","onClick","Drawer","_extends2","concat","visible","onClose","_objectSpread2","display","open","_default","exports"],"sources":["../../../luckda/lowcode/painter/Ribbon.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Box } from 'luck-design';\nimport { Icon, Tooltip, Drawer } from 'luck-design/antd';\nimport Outline from './Outline';\nimport Components from './Components';\nimport I18n from './I18n';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport Expect from './expect';\nimport styles from './style/ribbon.less';\n\nconst _WIDTH_ = 48;\nconst _DRAWER_PROPS = {\n placement: 'left',\n mask: false,\n getContainer: false,\n zIndex: 20,\n headerStyle: { borderBottom: 'none' },\n style: { position: 'absolute', left: _WIDTH_ },\n bodyStyle: { overflowY: 'auto', height: 'calc(100% - 55px)', padding: 0 },\n};\nconst _DRAWER_OUTLINE_ = { width: 300, key: 'outline', title: '大纲树', fix: true };\nconst _DRAWER_COMPONENTS_ = { width: 310, key: 'components', title: '组件', fix: true };\nconst _DRAWER_I18N_ = { width: 450, key: 'i18n', title: '多语言文案管理', fix: false };\n\nconst Ribbon = () => {\n const [drawer, setDrawer] = useState(null);\n\n return (\n <>\n <Box\n className={styles['lc-painter-ribbon']}\n width={_WIDTH_}\n heitht=\"100%\"\n direction=\"column\"\n align=\"center\"\n style={{ marginRight: drawer?.fix ? drawer.width : 0 }}\n >\n <Tooltip\n placement=\"right\"\n title={formatMessage({ id: 'luckda.lowcode.outline', label: _DRAWER_OUTLINE_.title })}\n >\n <Icon\n type=\"apartment\"\n style={{ color: drawer?.key === _DRAWER_OUTLINE_.key && '#1d79f2', fontSize: 20 }}\n onClick={() =>\n setDrawer(drawer?.key === _DRAWER_OUTLINE_.key ? null : _DRAWER_OUTLINE_)\n }\n />\n </Tooltip>\n <Tooltip\n placement=\"right\"\n title={formatMessage({\n id: 'luckda.lowcode.components',\n label: _DRAWER_COMPONENTS_.title,\n })}\n >\n <Icon\n type=\"appstore\"\n style={{ color: drawer?.key === _DRAWER_COMPONENTS_.key && '#1d79f2', fontSize: 20 }}\n onClick={() =>\n setDrawer(drawer?.key === _DRAWER_COMPONENTS_.key ? null : _DRAWER_COMPONENTS_)\n }\n />\n </Tooltip>\n <Tooltip\n placement=\"right\"\n title={formatMessage({ id: 'luckda.lowcode.i18n', label: _DRAWER_I18N_.title })}\n >\n <Icon\n type=\"global\"\n style={{ color: drawer?.key === _DRAWER_I18N_.key && '#1d79f2', fontSize: 20 }}\n onClick={() => setDrawer(drawer?.key === _DRAWER_I18N_.key ? null : _DRAWER_I18N_)}\n />\n </Tooltip>\n </Box>\n <Drawer\n title={\n drawer ? formatMessage({ id: `luckda.lowcode.${drawer.key}`, label: drawer.title }) : ''\n }\n width={drawer?.width || 0}\n visible={drawer?.key === _DRAWER_OUTLINE_.key}\n onClose={() => setDrawer(null)}\n {..._DRAWER_PROPS}\n style={{\n ..._DRAWER_PROPS.style,\n display: drawer?.key === _DRAWER_OUTLINE_.key ? 'block' : 'none',\n }}\n >\n <Outline open={drawer?.key === _DRAWER_OUTLINE_.key} />\n </Drawer>\n <Drawer\n title={\n drawer ? formatMessage({ id: `luckda.lowcode.${drawer.key}`, label: drawer.title }) : ''\n }\n width={drawer?.width || 0}\n visible={drawer?.key === _DRAWER_COMPONENTS_.key}\n onClose={() => setDrawer(null)}\n {..._DRAWER_PROPS}\n style={{\n ..._DRAWER_PROPS.style,\n display: drawer?.key === _DRAWER_COMPONENTS_.key ? 'block' : 'none',\n }}\n >\n <Components />\n </Drawer>\n <Drawer\n title={\n drawer ? formatMessage({ id: `luckda.lowcode.${drawer.key}`, label: drawer.title }) : ''\n }\n width={drawer?.width || 0}\n visible={drawer?.key === _DRAWER_I18N_.key}\n onClose={() => setDrawer(null)}\n {..._DRAWER_PROPS}\n style={{\n ..._DRAWER_PROPS.style,\n display: drawer?.key === _DRAWER_I18N_.key ? 'block' : 'none',\n }}\n >\n {/* <I18n /> */}\n <Expect />\n </Drawer>\n </>\n );\n};\n\nexport default Ribbon;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,KAAA,GAAAF,sBAAA,CAAAJ,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,OAAA,GAAAL,sBAAA,CAAAJ,OAAA;AAEA,IAAMU,OAAO,GAAG,EAAE;AAClB,IAAMC,aAAa,GAAG;EACpBC,SAAS,EAAE,MAAM;EACjBC,IAAI,EAAE,KAAK;EACXC,YAAY,EAAE,KAAK;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,MAAM"}
@@ -308,4 +308,5 @@ var ActionBindModal = function ActionBindModal(_ref) {
308
308
  label: '请在右侧选择行为项'
309
309
  }))))));
310
310
  };
311
- var _default = exports.default = ActionBindModal;
311
+ var _default = exports.default = ActionBindModal;
312
+ //# sourceMappingURL=ActionBindModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_antd","_classnames","_interopRequireDefault","_lodash","_utils","_ContextProvider","_JSEditor","_helper","_actionBindModal","_I18N_PREFIX_","_ACTION_CATEGORY_","key","label","formatMessage","id","concat","_DEFAULT_JSON_CODE_","_DEFAULT_JS_CODE_","ActionBindModal","_ref","nodeId","event","_ref$defaultCode","defaultCode","onComfirm","onClose","context","useContext","_useRemoteSource","useRemoteSource","module","editorRef","useRef","_useMap","useMap","_useMap2","_slicedToArray2","default","actionPool","_useMap2$","set","remove","get","setAll","reset","_useState","useState","_useState2","category","setCategory","_useState3","_useState4","activeKey","setActiveKey","_useState5","_useState6","searchValue","setSearchValue","latestActiveKey","useLatest","pageData","useGet","keywords","useCreation","extractKeywords","options","reduce","actions","ret","actionName","actionKey","push","componentList","_ref2","_ref3","target","api","getSelfData","props","name","useUpdateEffect","_editorRef$current","action","current","editor","setValue","code","_useDebounceFn","useDebounceFn","wait","handleEditorValueChange","run","handleOptionClick","useMemoizedFn","has","func","slice","handleChecked","checked","handleClose","handleComfirm","Array","from","createElement","Modal","className","styles","bodyStyle","marginTop","padding","title","visible","width","closable","maskClosable","getContainer","document","getElementById","onCancel","onOk","classNames","map","_ref4","_defineProperty2","active","onClick","_activeKey","Icon","type","style","height","display","justifyContent","Input","Search","placeholder","size","onChange","e","value","alignSelf","filter","_ref5","toLowerCase","includes","_ref6","Checkbox","marginRight","stopPropagation","Fragment","Tooltip","getPopupContainer","marginLeft","ref","_default","exports"],"sources":["../../../../luckda/lowcode/painter/components/ActionBindModal.jsx"],"sourcesContent":["import React, { useRef, useState } from 'react';\nimport {\n useMemoizedFn,\n useLatest,\n useCreation,\n useMap,\n useUpdateEffect,\n useDebounceFn,\n} from 'ahooks';\nimport { Modal, Icon, Input, Checkbox, Tooltip } from 'luck-design/antd';\nimport classNames from 'classnames';\nimport { reduce } from 'lodash';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { useRemoteSource, useGet } from '../../engine/provider/ContextProvider';\nimport { useContext } from '../../engine/provider/ContextProvider';\nimport JSEditor from './code-editor/JSEditor';\nimport { extractKeywords } from '../../engine/tools/helper';\nimport styles from '../style/action-bind-modal.less';\n\nconst _I18N_PREFIX_ = 'luckda.lowcode.painter.actionBindModal';\n\nconst _ACTION_CATEGORY_ = [\n {\n key: 'page-action',\n label: formatMessage({ id: `${_I18N_PREFIX_}.pageActions`, label: '页面行为' }),\n },\n // { key: 'trigger', label: formatMessage({ id: `${_I18N_PREFIX_}.trigger`, label: '触发器' }) },\n { key: 'custom', label: formatMessage({ id: `${_I18N_PREFIX_}.custom`, label: '自定义动作' }) },\n];\n\nconst _DEFAULT_JSON_CODE_ = '{\"params\":{},\"data\":{}}';\nconst _DEFAULT_JS_CODE_ = 'function todo() {\\n\\n}';\n\nconst ActionBindModal = ({\n nodeId,\n event,\n defaultCode = _DEFAULT_JS_CODE_,\n onComfirm,\n onClose,\n}) => {\n const context = useContext();\n const { module } = useRemoteSource();\n const editorRef = useRef();\n const [actionPool, { set, remove, get, setAll, reset }] = useMap([]);\n const [category, setCategory] = useState('page-action');\n const [activeKey, setActiveKey] = useState(void 0);\n const [searchValue, setSearchValue] = useState(void 0);\n const latestActiveKey = useLatest(activeKey);\n\n const pageData = useGet();\n const keywords = useCreation(\n () => extractKeywords(pageData, ['id', ['dataset', 'code'], 'field']),\n [],\n );\n\n const options = useCreation(() => {\n if (category === 'page-action') {\n return reduce(\n module.actions,\n (ret, actionName, actionKey) => {\n ret.push({ key: actionKey, label: actionName });\n return ret;\n },\n [],\n );\n } else if (category === 'trigger') {\n return reduce(\n context.componentList,\n (ret, [key, target]) => {\n ret.push({\n key,\n label: `${target.api.getSelfData().props.name}(${key})`,\n });\n return ret;\n },\n [],\n );\n } else if (category === 'custom') {\n return [\n {\n key: 'coding',\n label: formatMessage({ id: `${_I18N_PREFIX_}.coding`, label: '动作编写' }),\n },\n ];\n }\n return [];\n }, [category]);\n\n useUpdateEffect(() => {\n if (activeKey) {\n const action = get(activeKey);\n editorRef.current?.editor.setValue(action?.code);\n }\n }, [category, activeKey]);\n\n useUpdateEffect(() => {\n setAll(event?.actionPool);\n }, [event]);\n\n const { run: handleEditorValueChange } = useDebounceFn(\n (code) => {\n if (latestActiveKey.current) {\n const action = get(latestActiveKey.current);\n action.code = code;\n }\n },\n { wait: 500 },\n );\n\n const handleOptionClick = useMemoizedFn((key) => {\n setActiveKey(key);\n let action;\n if (actionPool.has(key)) {\n action = get(key);\n } else {\n const code =\n event.func ||\n (category === 'custom'\n ? defaultCode\n : `${defaultCode.slice(0, -1)}\\n\\treturn ${_DEFAULT_JSON_CODE_} \\n}`);\n action = { category, key, code };\n set(key, action);\n }\n });\n\n const handleChecked = useMemoizedFn((key, checked) => {\n if (checked) {\n if (activeKey !== key) {\n setActiveKey(key);\n }\n const code =\n event.func ||\n (category === 'custom'\n ? defaultCode\n : `${defaultCode.slice(0, -1)}\\n\\treturn ${_DEFAULT_JSON_CODE_} \\n}`);\n set(key, { category, key, code });\n } else {\n if (activeKey === key) {\n setActiveKey(void 0);\n }\n remove(key);\n }\n });\n\n const handleClose = useMemoizedFn(() => {\n onClose();\n reset();\n setCategory('page-action');\n setActiveKey(void 0);\n setSearchValue(void 0);\n });\n\n const handleComfirm = useMemoizedFn(() => {\n onComfirm(Array.from(actionPool), event);\n handleClose();\n });\n\n return (\n <Modal\n className={styles['lc-painter-panel-action-bind-modal']}\n bodyStyle={{ marginTop: 0, padding: '4px 24px' }}\n title={`${event?.name}(${nodeId})`}\n visible={!!event}\n width=\"70vw\"\n closable={false}\n maskClosable={false}\n getContainer={() => document.getElementById('lc-design-workspace')}\n onCancel={handleClose}\n onOk={handleComfirm}\n >\n <div className={styles['lc-painter-panel-action-bind-modal-body']}>\n <div className={styles['lc-painter-panel-action-bind-modal-body-left']}>\n <p>{formatMessage({ id: `${_I18N_PREFIX_}.bind`, label: '绑定动作' })}</p>\n <div className={styles['selector-box']}>\n <ul className={classNames(styles['selector-box-ul'], styles['action-category'])}>\n {_ACTION_CATEGORY_.map(({ key, label }) => (\n <li\n key={key}\n className={classNames({ [styles.active]: key === category })}\n onClick={() => {\n setCategory(key);\n if ('custom' === key) {\n const _activeKey = 'coding';\n setActiveKey(_activeKey);\n if (!actionPool.has(_activeKey)) {\n set(_activeKey, {\n category: key,\n key: _activeKey,\n code: event.func || defaultCode,\n });\n }\n } else {\n setActiveKey(void 0);\n }\n }}\n >\n {label}\n {key === category && <Icon type=\"check\" className={styles['check-icon']} />}\n </li>\n ))}\n </ul>\n <div className={styles['selecter-items-box']}>\n {category !== 'custom' && (\n <div style={{ height: 42, display: 'flex', justifyContent: 'center' }}>\n <Input.Search\n placeholder={formatMessage({ id: `${_I18N_PREFIX_}.search`, label: '搜索' })}\n size=\"small\"\n onChange={(e) => setSearchValue(e.target.value)}\n style={{ width: 170, alignSelf: 'center' }}\n />\n </div>\n )}\n <ul className={classNames(styles['selector-box-ul'], styles['selecter-items'])}>\n {options\n .filter(\n ({ key, label }) =>\n !searchValue ||\n `${key} ${label}`.toLowerCase().includes(searchValue.toLowerCase()),\n )\n .map(({ key, label }) => (\n <li\n key={key}\n className={classNames({ [styles.active]: key === activeKey })}\n onClick={() => handleOptionClick(key)}\n >\n <Checkbox\n checked={actionPool.has(key)}\n style={{ marginRight: 4 }}\n onChange={(e) => handleChecked(key, e.target.checked)}\n onClick={(e) => e.stopPropagation()}\n />\n {label}\n </li>\n ))}\n </ul>\n </div>\n </div>\n </div>\n <div className={styles['lc-painter-panel-action-bind-modal-body-right']}>\n {category === 'page-action' && (\n <>\n <p>\n {formatMessage({ id: `${_I18N_PREFIX_}.params`, label: '配置参数' })}\n <Tooltip\n title={formatMessage({\n id: `${_I18N_PREFIX_}.params.info`,\n label: '请勿随意修改配置参数结构和参数名称,参数异常可能会导致请求失败',\n })}\n getPopupContainer={() => document.getElementById('lc-design-workspace')}\n >\n <Icon style={{ marginLeft: 4 }} type=\"exclamation-circle\" />\n </Tooltip>\n </p>\n <div className={styles['code-box']}>\n {activeKey ? (\n <JSEditor ref={editorRef} onChange={handleEditorValueChange} />\n ) : (\n formatMessage({\n id: `${_I18N_PREFIX_}.noActionSelected`,\n label: '请在右侧选择行为项',\n })\n )}\n </div>\n </>\n )}\n {category === 'custom' && (\n <>\n <p>{formatMessage({ id: `${_I18N_PREFIX_}.coding`, label: '动作编写' })}</p>\n <div className={styles['code-box']}>\n {activeKey ? (\n <JSEditor\n ref={editorRef}\n keywords={keywords}\n onChange={handleEditorValueChange}\n />\n ) : (\n formatMessage({\n id: `${_I18N_PREFIX_}.noActionSelected`,\n label: '请在右侧选择行为项',\n })\n )}\n </div>\n </>\n )}\n </div>\n </div>\n </Modal>\n );\n};\n\nexport default ActionBindModal;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAQA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AAEA,IAAAQ,SAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,gBAAA,GAAAN,sBAAA,CAAAJ,OAAA;AAEA,IAAMW,aAAa,GAAG,wCAAwC;AAE9D,IAAMC,iBAAiB,GAAG,CACxB;EACEC,GAAG,EAAE,aAAa;EAClBC,KAAK,EAAE,IAAAC,oBAAa,EAAC;IAAEC,EAAE,KAAAC,MAAA,CAAKN,aAAa,iBAA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AAC,GAE/D,IAAA7E,oBAAa,EAAC;IACZC,EAAE,KAAAC,MAAA,CAAKN,aAAa,sBAAmB;IACvCG,KAAK,EAAE;EACT,CAAC,CAEA,CACL,CACH,EACAoC,QAAQ,KAAK,QAAQ,iBACpBpD,MAAA,CAAAyC,OAAA,CAAAkE,aAAA,CAAA3G,MAAA,CAAAyC,OAAA,CAAAgH,QAAA,qBACEzJ,MAAA,CAAAyC,OAAA,CAAAkE,aAAA,YAAI,IAAA1F,oBAAa,EAAC;IAAEC,EAAE,KAAAC,MAAA,CAAKN,aAAa,YAAS;IAAEG,KAAK,EAAE;EAAO,CAAC,CAAK,CAAC,eACxEhB,MAAA,CAAAyC,OAAA,CAAAkE,aAAA;IAAKE,SAAS,EAAEC,wBAAM,CAAC,UAAU;EAAE,GAChCtD,SAAS,gBACRxD,MAAA,CAAAyC,OAAA,CAAAkE,aAAA,CAACjG,SAAA,CAAA+B,OAAQ;IACPoH,GAAG,EAAE1H,SAAU;IACf+B,QAAQ,EAAEA,QAAS;IACnB2E,QAAQ,EAAE/C;EAAwB,CACnC,CAAC,GAEF,IAAA7E,oBAAa,EAAC;IACZC,EAAE,KAAAC,MAAA,CAAKN,aAAa,sBAAmB;IACvCG,KAAK,EAAE;EACT,CAAC,CAEA,CACL,CAED,CACF,CACA,CAAC;AAEZ,CAAC;AAAC,IAAA8I,QAAA,GAAAC,OAAA,CAAAtH,OAAA,GAEanB,eAAe"}
@@ -229,4 +229,5 @@ var AdvancePanel = function AdvancePanel(_ref) {
229
229
  }
230
230
  }));
231
231
  };
232
- var _default = exports.default = AdvancePanel;
232
+ var _default = exports.default = AdvancePanel;
233
+ //# sourceMappingURL=AdvancePanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_antd","_styledComponents","_interopRequireDefault","_lodash","_ContextProvider","_utils","_Collapse","_PopConfirm","_FullScreenEditor","_JSEditor","_ActionBindModal","_constants","_excluded","_excluded2","_excluded3","_excluded4","_I18N_PREFIX_","EventItem","styled","div","withConfig","displayName","componentId","_DEFAULT_FUNC_","AdvancePanel","_ref","_value$render","_value$render2","meta","nodeId","target","onChange","value","useGet","isNil","id","path","ancestorId","concat","keyPath","editorRef","useRef","_useState","useState","events","_useState2","_slicedToArray2","default","setEvents","_useState3","_useState4","event","setEvent","metaMap","useCreation","_meta$advance","keyBy","advance","_useState5","render","code","_useState6","editorValue","setEditorValue","handleEventClick","useMemoizedFn","e","payload","item","props","_objectSpread3","actionPool","handleDeleteEvent","ek","_ref2","rest","_objectWithoutProperties2","_events","omit","handleComfirm","_ref3","_defineProperty2","key","handleRenderComfirm","val","current","editor","getValue","_ref4","handleRenderChange","checked","_ref5","handleEditorLayoutChange","eventsMenu","_meta$advance2","createElement","Menu","onClick","style","fontSize","reduce","ret","_value$events","push","Item","Tooltip","title","desc","name","placement","getPopupContainer","document","getElementById","width","group","LC_BUILDIN_UNIT_KEY_LIST","includes","field","label","formatMessage","bodyStyle","padding","suppressIcon","extraRender","ref","EditorComponent","JSEditor","onLayoutChange","height","showBtn","onConfirm","Icon","type","Switch","keys","map","Dropdown","overlay","Button","size","block","onComfirm","onClose","_default","exports"],"sources":["../../../../luckda/lowcode/painter/components/AdvancePanel.jsx"],"sourcesContent":["import React, { useState, useRef, useCallback } from 'react';\nimport { useCreation, useMemoizedFn } from 'ahooks';\nimport { Menu, Dropdown, Button, Tooltip, Icon, Switch } from 'luck-design/antd';\nimport styled from 'styled-components';\nimport { isNil, keyBy, keys, omit, reduce } from 'lodash';\nimport { useGet } from '../../engine/provider/ContextProvider';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport Collapse from './Collapse';\nimport PopConfirm from './PopConfirm';\nimport FullScreenEditor from './code-editor/FullScreenEditor';\nimport JSEditor from './code-editor/JSEditor';\nimport ActionBindModal from './ActionBindModal';\nimport { LC_BUILDIN_UNIT_KEY_LIST } from '../../constants';\n\nconst _I18N_PREFIX_ = 'luckda.lowcode.painter.advancePanel';\n\nconst EventItem = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 4px 8px;\n border: 1px solid #e5e6e8;\n border-radius: 6px;\n margin-bottom: 6px;\n font-size: 12px;\n i {\n color: rgba(0, 0, 0, 0.4);\n cursor: pointer;\n }\n i:not(:last-child) {\n margin-right: 6px;\n }\n`;\n\nconst _DEFAULT_FUNC_ = 'function isTrue() {\\n return true; \\n}';\n\nconst AdvancePanel = ({ meta, nodeId, target, onChange }) => {\n const value = useGet(\n isNil(target)\n ? { id: nodeId, path: 'props.advance' }\n : { id: target.ancestorId, path: `props.${target.keyPath}.advance` },\n );\n const editorRef = useRef();\n const [events, setEvents] = useState(value?.events || {});\n const [event, setEvent] = useState(null);\n const metaMap = useCreation(() => keyBy(meta?.advance?.events || [], 'key'), [meta]);\n\n const [editorValue, setEditorValue] = useState(value?.render?.code || _DEFAULT_FUNC_);\n\n const handleEventClick = useMemoizedFn((e) => {\n const { payload } = e.item.props;\n setEvent({ ...payload, actionPool: null });\n });\n\n const handleDeleteEvent = useMemoizedFn((ek) => {\n const { events, ...rest } = value || {};\n const _events = omit(events, [ek]);\n setEvents(_events);\n onChange({ ...rest, events: _events });\n });\n\n const handleComfirm = useMemoizedFn((actionPool) => {\n const { events, ...rest } = value || {};\n const _events = { ...events, [event.key]: actionPool };\n setEvents(_events);\n onChange({ ...rest, events: _events });\n });\n\n const handleRenderComfirm = useMemoizedFn(() => {\n const val = editorRef.current.editor.getValue();\n const { render, ...rest } = value || {};\n onChange({ ...rest, render: { value: isNil(render?.value) ? true : render.value, code: val } });\n });\n\n const handleRenderChange = useMemoizedFn((checked) => {\n const { render, ...rest } = value || {};\n onChange({ ...rest, render: { value: checked, code: render?.code } });\n });\n\n const handleEditorLayoutChange = (code) => {\n setEditorValue(code);\n };\n\n const eventsMenu = useCreation(\n () => (\n <Menu onClick={handleEventClick} style={{ fontSize: 12 }}>\n {reduce(\n meta.advance?.events,\n (ret, event) => {\n if (!value?.events?.[event.key]) {\n ret.push(\n <Menu.Item key={event.key} payload={event}>\n <Tooltip\n title={event.desc || event.name}\n placement=\"left\"\n getPopupContainer={() => document.getElementById('lc-design-workspace')}\n >\n <div style={{ width: '100%', fontSize: 12 }}>{event.name}</div>\n </Tooltip>\n </Menu.Item>,\n );\n }\n return ret;\n },\n [],\n )}\n </Menu>\n ),\n [value],\n );\n\n return (\n <div>\n {meta.group !== 'field' && !LC_BUILDIN_UNIT_KEY_LIST.includes(nodeId) && (\n <Collapse\n field=\"render\"\n label={formatMessage({ id: `${_I18N_PREFIX_}.render`, label: '是否渲染' })}\n bodyStyle={{ padding: '12px 16px' }}\n suppressIcon\n extraRender={() => (\n <PopConfirm\n placement=\"left\"\n title={\n <FullScreenEditor\n ref={editorRef}\n EditorComponent={JSEditor}\n onLayoutChange={handleEditorLayoutChange}\n width=\"600px\"\n height=\"400px\"\n >\n {editorValue}\n </FullScreenEditor>\n }\n showBtn\n onConfirm={handleRenderComfirm}\n >\n <Icon type=\"code\" />\n </PopConfirm>\n )}\n >\n <Switch\n checked={isNil(value?.render?.value) ? true : value.render.value}\n onChange={handleRenderChange}\n />\n </Collapse>\n )}\n <Collapse\n field=\"events\"\n label={formatMessage({ id: `${_I18N_PREFIX_}.events`, label: '事件' })}\n bodyStyle={{ padding: '12px 16px' }}\n >\n {keys(events).map((ek) => (\n <EventItem key={ek}>\n <span>{metaMap[ek].name}</span>\n <div>\n <Tooltip title={formatMessage({ id: 'luckda.lowcode.painter.edit', label: '编辑' })}>\n <Icon\n type=\"edit\"\n onClick={() => setEvent({ ...metaMap[ek], actionPool: events[ek] })}\n />\n </Tooltip>\n <Tooltip\n title={formatMessage({ id: 'luckda.lowcode.painter.delete', label: '删除' })}\n >\n <Icon type=\"delete\" onClick={() => handleDeleteEvent(ek)} />\n </Tooltip>\n </div>\n </EventItem>\n ))}\n <Dropdown\n overlay={eventsMenu}\n placement=\"bottomCenter\"\n getPopupContainer={() => document.getElementById('lc-design-workspace')}\n >\n <Button size=\"small\" block>\n {formatMessage({ id: `${_I18N_PREFIX_}.addEventAction`, label: '添加事件动作' })}\n </Button>\n </Dropdown>\n </Collapse>\n <ActionBindModal\n nodeId={nodeId}\n event={event}\n onComfirm={handleComfirm}\n onClose={() => setEvent(null)}\n />\n </div>\n );\n};\n\nexport default AdvancePanel;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,WAAA,GAAAL,sBAAA,CAAAJ,OAAA;AACA,IAAAU,iBAAA,GAAAN,sBAAA,CAAAJ,OAAA;AACA,IAAAW,SAAA,GAAAP,sBAAA,CAAAJ,OAAA;AACA,IAAAY,gBAAA,GAAAR,sBAAA,CAAAJ,OAAA;AACA,IAAAa,UAAA,GAAAb,OAAA;AAA2D,IAAAc,SAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;AAE3D,IAAMC,aAAa,GAAG,qCAAqC;AAE3D,IAAMC,SAAS,GAAGC,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+OAgB3B;AAED,IAAMC,cAAc,GAAG,wCAAwC;AAE/D,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAA2C;EAAA,IAAAC,aAAA,EAAAC,cAAA;EAAA,IAArCC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IAAEC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IAAEC,MAAM,GAAAL,IAAA,CAANK,MAAM;IAAEC,QAAQ,GAAAN,IAAA,CAARM,QAAQ;EACpD,IAA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AAC,OAAA,CAAAjG,OAAA,GAEavB,YAAY"}
@@ -165,4 +165,5 @@ var AttrsPanel = function AttrsPanel(_ref) {
165
165
  className: _panelAttrs.default['lc-painter-panel-attrs-next-body']
166
166
  }, (_nextRef$current3 = nextRef.current) === null || _nextRef$current3 === void 0 ? void 0 : _nextRef$current3.NextComp))));
167
167
  };
168
- var _default = exports.default = AttrsPanel;
168
+ var _default = exports.default = AttrsPanel;
169
+ //# sourceMappingURL=AttrsPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_antd","_classnames","_interopRequireDefault","_lodash","_ContextProvider","_panelItemFactory","_PanelItem","_Collapse","_panelAttrs","_excluded","AttrsPanel","_ref","_nextRef$current2","_nextRef$current3","meta","nodeId","ancestorId","onChange","compMap","useRef","nextRef","factory","PanelItemFactory","_useBoolean","useBoolean","_useBoolean2","_slicedToArray2","default","open","_useBoolean2$","setTrue","setFalse","node","useGet","id","isNil","path","handleChange","useMemoizedFn","field","val","_ref2","_nextRef$current","repositioning","before","current","autoClose","goNext","_next","dynamicProps","name","NextComp","renderPanelItems","props","items","map","_ref3","type","key","valueKey","desc","defaultValue","wrapper","wrapperProps","next","rest","_objectWithoutProperties2","getPanelItemFor","startsWith","Comp","_valueKey","createElement","label","_dp","defaultCollapsed","_originalVal","get","comp","_extends2","size","settings","Wrapper","Collapse","PanelItem","PropsComps","useCreation","Fragment","useEffect","className","classNames","styles","_defineProperty2","hidden","showNext","Drawer","visible","width","mask","closable","getContainer","destroyOnClose","style","position","transform","bodyStyle","padding","height","onClick","Icon","_default","exports"],"sources":["../../../../luckda/lowcode/painter/components/AttrsPanel.jsx"],"sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport { useBoolean, useCreation, useMemoizedFn } from 'ahooks';\nimport { Drawer, Icon } from 'luck-design/antd';\nimport classNames from 'classnames';\nimport { startsWith, isNil, get } from 'lodash';\nimport { useGet } from '../../engine/provider/ContextProvider';\nimport PanelItemFactory from '../../engine/factory/panel-item-factory';\nimport PanelItem from './PanelItem';\nimport Collapse from './Collapse';\nimport styles from '../style/panel-attrs.less';\n\nconst AttrsPanel = ({ meta, nodeId, ancestorId, onChange }) => {\n const compMap = useRef({});\n const nextRef = useRef(null);\n const factory = useRef(new PanelItemFactory());\n const [open, { setTrue, setFalse }] = useBoolean(false);\n\n const node = useGet({\n id: isNil(ancestorId) ? nodeId : ancestorId,\n path: 'props',\n });\n\n const handleChange = useMemoizedFn((field, val, { repositioning, before }) => {\n onChange(field, val, { repositioning, before });\n if (nextRef.current?.autoClose) {\n setFalse();\n }\n });\n\n const goNext = useMemoizedFn((_next, dynamicProps) => {\n if (!_next) return;\n nextRef.current = {\n name: _next.name,\n autoClose: _next.autoClose,\n NextComp: renderPanelItems(_next.props, dynamicProps),\n };\n setTrue();\n });\n\n const renderPanelItems = useMemoizedFn((items, dynamicProps) =>\n items.map(\n ({\n type,\n key,\n valueKey,\n name,\n desc,\n default: defaultValue,\n props,\n wrapper,\n wrapperProps,\n next,\n repositioning,\n ...rest\n }) => {\n if (!compMap.current[type]) {\n compMap.current[type] = factory.current.getPanelItemFor(\n startsWith(type, '_') ? 'dynamic' : type,\n type,\n );\n }\n const Comp = compMap.current[type];\n const _valueKey = dynamicProps?.valueKey || valueKey;\n if (type === 'group') {\n return (\n <Comp\n nodeId={nodeId}\n key={key}\n field={key}\n label={name}\n next={next ? (_dp) => goNext(next, _dp) : null}\n defaultCollapsed={defaultValue}\n desc={desc}\n >\n {renderPanelItems(props || [], dynamicProps)}\n </Comp>\n );\n }\n const _originalVal = get(node, _valueKey || key);\n const comp = Comp && (\n <Comp\n nodeId={nodeId}\n key={key}\n defaultValue={isNil(_originalVal) ? defaultValue : _originalVal}\n next={next?.props ? (_dp) => goNext(next, _dp) : null}\n onChange={(val, before) =>\n handleChange(_valueKey || key, val, { repositioning, before })\n }\n size=\"small\"\n settings={node}\n renderPanelItems={renderPanelItems}\n {...rest}\n {...dynamicProps}\n />\n );\n if (wrapper === 'hidden') return comp;\n const Wrapper = wrapper === 'collapse' ? Collapse : PanelItem;\n return (\n <Wrapper key={key} nodeId={nodeId} field={key} label={name} desc={desc} {...wrapperProps}>\n {comp}\n </Wrapper>\n );\n },\n ),\n );\n\n const PropsComps = useCreation(() => {\n setFalse();\n if (!meta) {\n return <></>;\n }\n return renderPanelItems(meta.props);\n }, [nodeId]);\n\n useEffect(() => {\n if (!open) {\n nextRef.current = null;\n }\n }, [open]);\n\n return (\n <div\n id=\"lc-painter-panel-attrs-container\"\n className={classNames(styles['lc-painter-panel-attrs'], {\n [styles.hidden]: !nodeId,\n [styles.showNext]: open,\n })}\n >\n {PropsComps}\n <Drawer\n visible={open}\n width={320}\n mask={false}\n closable={false}\n getContainer={false}\n destroyOnClose\n style={{ position: 'absolute', transform: 'none' }}\n bodyStyle={{ padding: 0, height: '100%' }}\n >\n <div className={styles['lc-painter-panel-attrs-next']}>\n <div className={styles['lc-painter-panel-attrs-next-header']} onClick={setFalse}>\n <Icon type=\"left\" />\n {nextRef.current?.name}\n <Icon type=\"close\" />\n </div>\n <div className={styles['lc-painter-panel-attrs-next-body']}>\n {nextRef.current?.NextComp}\n </div>\n </div>\n </Drawer>\n </div>\n );\n};\n\nexport default AttrsPanel;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,iBAAA,GAAAH,sBAAA,CAAAJ,OAAA;AACA,IAAAQ,UAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,SAAA,GAAAL,sBAAA,CAAAJ,OAAA;AACA,IAAAU,WAAA,GAAAN,sBAAA,CAAAJ,OAAA;AAA+C,IAAAW,SAA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,CAAC,kCAAkC;EAAE,IAAA7E,iBAAA,GACxDO,OAAO,CAACyB,OAAO,cAAAhC,iBAAA,uBAAfA,iBAAA,CAAiBsC,QACf,CACF,CACC,CACL,CAAC;AAEV,CAAC;AAAC,IAAA0D,QAAA,GAAAC,OAAA,CAAAnF,OAAA,GAEajB,UAAU"}
@@ -108,4 +108,5 @@ function _default(_ref) {
108
108
  display: collapsed ? 'none' : 'block'
109
109
  })
110
110
  }, children));
111
- }
111
+ }
112
+ //# sourceMappingURL=Collapse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_collapse","_interopRequireDefault","_antd","_default","_ref","children","field","label","desc","_ref$defaultCollapsed","defaultCollapsed","next","suppressIcon","extraRender","style","bodyStyle","_useState","useState","_useState2","_slicedToArray2","default","collapsed","setCollapsed","handleClick","useMemoizedFn","tip","useCreation","str","concat","createElement","className","styles","onClick","Tooltip","overlayStyle","fontSize","title","getPopupContainer","document","getElementById","cursor","e","stopPropagation","Icon","type","_objectSpread2","display"],"sources":["../../../../luckda/lowcode/painter/components/Collapse.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { useMemoizedFn, useCreation } from 'ahooks';\nimport styles from '../style/collapse.less';\nimport { Icon, Tooltip } from 'luck-design/antd';\n\n/**\n * Collapse 组件是一个可折叠区域的实现,用于显示或隐藏内容。它支持自定义标签、描述以及默认的折叠状态。\n * 该组件还可以通过 `next` 函数来自定义点击操作,而不是简单地切换折叠状态。\n * 提供的工具提示可以显示额外信息,如字段名和描述,以帮助用户更好地理解折叠内容的作用。\n *\n * @component\n * @example\n * <Collapse\n * field=\"exampleField\"\n * label=\"示例标签\"\n * desc=\"这是一个用于演示的折叠组件\"\n * defaultCollapsed={true}\n * next={() => console.log('Custom next function executed')}\n * >\n * <p>这里是可折叠的内容</p>\n * </Collapse>\n *\n * @param {Object} props - 组件的属性。\n * @param {React.ReactNode} children - 折叠区域展开时显示的内容。\n * @param {string} [props.field] - 与折叠内容相关联的字段名。\n * @param {string} props.label - 折叠区域的标签名称。\n * @param {string} [props.desc] - 关于折叠内容的描述信息。\n * @param {boolean} [props.defaultCollapsed=false] - 折叠区域的默认状态。如果为 true,则默认为折叠状态。\n * @param {Function} [props.next] - 点击操作的自定义函数。如果提供,点击时将执行此函数,而不是切换折叠状态。\n *\n * @returns {ReactElement} 返回一个 React 元素,表示一个具有可折叠功能的容器。\n */\nexport default function ({\n children,\n field,\n label,\n desc,\n defaultCollapsed = false,\n next,\n suppressIcon,\n extraRender,\n style,\n bodyStyle,\n}) {\n const [collapsed, setCollapsed] = useState(defaultCollapsed);\n\n const handleClick = useMemoizedFn(() => {\n if (next) {\n next();\n } else {\n setCollapsed(!collapsed);\n }\n });\n\n const tip = useCreation(() => {\n let str = void 0;\n if (field) {\n str = `属性:${field}`;\n }\n if (desc) {\n str = `${str ? `${str} | ` : ''}说明:${desc}`;\n }\n return str;\n }, [field, desc]);\n\n return (\n <div className={styles['lc-painter-components-collapse']} style={style}>\n <div className={styles['head']} onClick={handleClick}>\n <Tooltip\n overlayStyle={{ fontSize: '12px' }}\n title={tip}\n getPopupContainer={() => document.getElementById('lc-design-workspace')}\n >\n <span className={styles['label']} style={{ cursor: desc ? 'help' : 'default' }}>\n {label}\n </span>\n </Tooltip>\n <div>\n {extraRender && (\n <div className={styles['extra']} onClick={(e) => e.stopPropagation()}>\n {extraRender()}\n </div>\n )}\n {!suppressIcon && (\n <span className={styles['action']}>\n {next ? <Icon type=\"right\" /> : <Icon type={collapsed ? 'down' : 'up'} />}\n </span>\n )}\n </div>\n </div>\n <div\n className={styles['body']}\n style={{ ...bodyStyle, display: collapsed ? 'none' : 'block' }}\n >\n {children}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,KAA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CAAAS,aAAA,CAAC3B,KAAA,CAAAyC,IAAI;IAACC,IAAI,EAAC;EAAO,CAAE,CAAC,gBAAGhD,MAAA,CAAAwB,OAAA,CAAAS,aAAA,CAAC3B,KAAA,CAAAyC,IAAI;IAACC,IAAI,EAAEvB,SAAS,GAAG,MAAM,GAAG;EAAK,CAAE,CACpE,CAEL,CACF,CAAC,eACNzB,MAAA,CAAAwB,OAAA,CAAAS,aAAA;IACEC,SAAS,EAAEC,iBAAM,CAAC,MAAM,CAAE;IAC1BjB,KAAK,MAAA+B,cAAA,CAAAzB,OAAA,MAAAyB,cAAA,CAAAzB,OAAA,MAAOL,SAAS;MAAE+B,OAAO,EAAEzB,SAAS,GAAG,MAAM,GAAG;IAAO;EAAG,GAE9DhB,QACE,CACF,CAAC;AAEV"}
@@ -131,4 +131,5 @@ function fromRGBA(rgbaString) {
131
131
 
132
132
  // 如果不符合上述任何一种情况,返回 null
133
133
  return null;
134
- }
134
+ }
135
+ //# sourceMappingURL=ColorInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_PopConfirm","_interopRequireDefault","_antd","_colorInput","_reactColor","_excluded","ColorInput","forwardRef","_ref","ref","value","onChange","wrapperStyle","rest","_objectWithoutProperties2","default","_useState","useState","fromRGBA","_useState2","_slicedToArray2","color","setColor","handleChange","changeColor","rgb","handleInputChange","e","target","toRGBA","useUpdateEffect","rgbaColor","createElement","className","styles","style","placement","title","SketchPicker","Input","_extends2","size","placeholder","backgroundColor","_default","exports","colorObj","_typeof2","concat","r","g","b","a","startsWith","rgbaString","rgbaPattern","match","parseInt","parseFloat"],"sources":["../../../../luckda/lowcode/painter/components/ColorInput.jsx"],"sourcesContent":["import React, { forwardRef, useState } from 'react';\nimport { useUpdateEffect } from 'ahooks';\nimport PopConfirm from './PopConfirm';\nimport { Input } from 'luck-design/antd';\nimport styles from '../style/color-input.less';\nimport { SketchPicker } from 'react-color';\n\n/**\n * ColorInput 组件是一个集成颜色选择器的输入框组件,允许用户以 RGBA 或十六进制格式输入颜色值。\n * 组件内部通过 PopConfirm 弹出一个 SketchPicker 颜色选择器,以提供一个直观的颜色选择界面。\n * 用户输入的颜色值在内部转换为适当的格式,并通过 onChange 回调暴露给外部使用。\n * 此组件还支持通过传入的 value 属性初始化颜色值,并响应其后续更改。\n *\n * @component\n * @example\n * const handleColorChange = (newColor) => {\n * console.log('Selected color:', newColor);\n * };\n * <ColorInput\n * value=\"rgba(255, 0, 0, 0.5)\"\n * onChange={handleColorChange}\n * wrapperStyle={{ margin: '20px' }}\n * />\n *\n * @param {Object} props - 组件的属性。\n * @param {string} props.value - 初始化颜色值,支持 RGBA 字符串或十六进制格式。\n * @param {Function} props.onChange - 当颜色值变更时触发的回调函数。传递新的颜色值作为参数。\n * @param {Object} [props.wrapperStyle] - 自定义包装器 div 的样式对象。\n * @param {Object} rest - 传递给 Input 组件的其他属性。\n *\n * @returns {ReactElement} 返回一个 React 元素,表示一个带有颜色选择器的输入框组件。\n */\nconst ColorInput = forwardRef(({ value, onChange, wrapperStyle, ...rest }, ref) => {\n const [color, setColor] = useState(fromRGBA(value));\n\n const handleChange = (color) => {\n changeColor(color.rgb);\n };\n\n const handleInputChange = (e) => {\n changeColor(e.target.value);\n };\n\n const changeColor = (value) => {\n if (onChange) onChange(toRGBA(value));\n setColor(value);\n };\n\n useUpdateEffect(() => {\n setColor(fromRGBA(value));\n }, [value]);\n\n const rgbaColor = toRGBA(color);\n\n return (\n <div className={styles['lc-painter-components-color-input']} style={wrapperStyle}>\n <PopConfirm\n placement=\"top\"\n title={<SketchPicker color={color ?? '#ffffff'} onChange={handleChange} />}\n >\n <div className={styles['color-input-wrap']}>\n <Input\n ref={ref}\n onChange={handleInputChange}\n className={styles['color-input']}\n value={rgbaColor}\n size=\"small\"\n placeholder=\"rgba(0,0,0,0)\"\n {...rest}\n />\n <div className=\"color-display\" style={{ backgroundColor: rgbaColor }}></div>\n </div>\n </PopConfirm>\n </div>\n );\n});\n\nexport default ColorInput;\n\nfunction toRGBA(colorObj) {\n // 首先检查 colorObj 是否为 null 或 undefined\n if (colorObj === null || typeof colorObj === 'undefined') {\n return null;\n }\n\n // 检查是否为对象且包含 r, g, b, a 属性\n if (\n typeof colorObj === 'object' &&\n 'r' in colorObj &&\n 'g' in colorObj &&\n 'b' in colorObj &&\n 'a' in colorObj\n ) {\n return `rgba(${colorObj.r}, ${colorObj.g}, ${colorObj.b}, ${colorObj.a})`;\n } else if (typeof colorObj === 'string' && colorObj.startsWith('#')) {\n // 如果是以#号开头的字符串,则直接返回该字符串\n return colorObj;\n }\n\n // 如果不符合上述任何一种情况,返回一个空字符串\n return null;\n}\n\nfunction fromRGBA(rgbaString) {\n if (rgbaString === null || typeof rgbaString === 'undefined') {\n return null;\n }\n\n // 检查输入是否是有效的 rgba 字符串\n const rgbaPattern = /rgba\\((\\d+),\\s*(\\d+),\\s*(\\d+),\\s*(\\d*\\.?\\d+)\\)/;\n const match = rgbaString.match(rgbaPattern);\n\n if (match) {\n // 如果匹配成功,则提取 rgba 值\n return {\n r: parseInt(match[1], 10),\n g: parseInt(match[2], 10),\n b: parseInt(match[3], 10),\n a: parseFloat(match[4]),\n };\n } else if (typeof rgbaString === 'string' && rgbaString.startsWith('#')) {\n // 对于十六进制颜色字符串,直接返回原始字符串\n return rgbaString;\n }\n\n // 如果不符合上述任何一种情况,返回 null\n return null;\n}\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAA2C,IAAAO,SAAA;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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,eAAAE,MAAA,CAAeF,QAAQ,CAACG,CAAC,QAAAD,MAAA,CAAKF,QAAQ,CAACI,CAAC,QAAAF,MAAA,CAAKF,QAAQ,CAACK,CAAC,QAAAH,MAAA,CAAKF,QAAQ,CAACM,CAAC;EACxE,CAAC,MAAM,IAAI,OAAON,QAAQ,KAAK,QAAQ,IAAIA,QAAQ,CAACO,UAAU,CAAC,GAAG,CAAC,EAAE;IACnE;IACA,OAAOP,QAAQ;EACjB;;EAEA;EACA,OAAO,IAAI;AACb;AAEA,SAAS5B,QAAQA,CAACoC,UAAU,EAAE;EAC5B,IAAIA,UAAU,KAAK,IAAI,IAAI,OAAOA,UAAU,KAAK,WAAW,EAAE;IAC5D,OAAO,IAAI;EACb;;EAEA;EACA,IAAMC,WAAW,GAAG,gDAAgD;EACpE,IAAMC,KAAK,GAAGF,UAAU,CAACE,KAAK,CAACD,WAAW,CAAC;EAE3C,IAAIC,KAAK,EAAE;IACT;IACA,OAAO;MACLP,CAAC,EAAEQ,QAAQ,CAACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;MACzBN,CAAC,EAAEO,QAAQ,CAACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;MACzBL,CAAC,EAAEM,QAAQ,CAACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;MACzBJ,CAAC,EAAEM,UAAU,CAACF,KAAK,CAAC,CAAC,CAAC;IACxB,CAAC;EACH,CAAC,MAAM,IAAI,OAAOF,UAAU,KAAK,QAAQ,IAAIA,UAAU,CAACD,UAAU,CAAC,GAAG,CAAC,EAAE;IACvE;IACA,OAAOC,UAAU;EACnB;;EAEA;EACA,OAAO,IAAI;AACb"}
@@ -257,4 +257,5 @@ function getAction(type, overComponentName, activeRect, overRect, dropNode, drop
257
257
  }
258
258
  }
259
259
  return action;
260
- }
260
+ }
261
+ //# sourceMappingURL=DragDropContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_core","_Overlay","_interopRequireDefault","_constants","_ContextProvider","_lodash","_utils","SIDE_DiSTANCE","SIDE_DiSTANCE_TREENODE","Action","exports","_createClass2","default","_classCallCheck2","_defineProperty2","ActionSide","_default","_ref","_active$component","children","ctx","useContext","useEffect","event_drag","$subscriber","topics","COMPONENT_DRAG_END","on","_ref2","id","fromId","fromComp","action","actionSide","vaild","moveNode","COMPONENT_ACTIVE","once","compName","component","toLowerCase","json","concat","$publisher","COMPONENT_SETTING_CLICK","data","watch","target","$unsubscriber","_useState","useState","_useState2","_slicedToArray2","active","setActive","_useState3","_useState4","noDrag","setNoDrag","handleDragStart","event","current","handleDragEnd","pubEvent","handleDragMove","COMPONENT_DRAG_OVER","mouseSensor","useSensor","MouseSensor","activationConstraint","distance","sensors","useSensors","useCallback","eventName","over","dropperId","dropNodeData","$","api","getSelfAndParentData","dropNode","node","dropParentNode","parent","getAction","type","rect","translated","draggerId","dragNodeData","dragNode","dragParentNode","props","findParent","buildIn","parentId","INSIDE","createElement","Fragment","DndContext","onDragStart","onDragEnd","onDragMove","DragOverlay","style","zIndex","dropAnimation","name","parentid","nodeData","componentMap","get","isContainerUnit","isNil","CONTAINER_UNITS","includes","overComponentName","activeRect","overRect","dropNodeParent","parentIsContainer","Math","abs","left","LEFT","right","RIGHT","width","top","bottom","height"],"sources":["../../../../../luckda/lowcode/painter/components/DragDrop/DragDropContext.jsx"],"sourcesContent":["import React, { useState, useEffect, useCallback } from 'react';\nimport { DndContext, DragOverlay, useSensor, MouseSensor, useSensors } from '@dnd-kit/core';\nimport Overlay from './Overlay';\nimport { CONTAINER_UNITS } from '../../../constants';\nimport { useContext, moveNode } from '../../../engine/provider/ContextProvider';\nimport { isNil } from 'lodash';\nimport { suid } from '@luck-design-biz/base/utils';\n\nconst SIDE_DiSTANCE = 20;\nconst SIDE_DiSTANCE_TREENODE = 10;\n\nexport class Action {\n static ADD = 'add';\n static MOVE = 'move';\n static DELETE = 'delete';\n}\n\nexport class ActionSide {\n static INSIDE = 'inside';\n static LEFT = 'left';\n static RIGHT = 'right';\n}\n\nexport default function ({ children }) {\n const ctx = useContext();\n\n useEffect(() => {\n const event_drag = ctx\n .$subscriber(ctx.topics.COMPONENT_DRAG_END)\n .on(({ id, fromId, fromComp, action, actionSide, vaild }) => {\n // console.log('onDargEnd', id, fromId, fromComp, action, actionSide);\n if (vaild) {\n switch (action) {\n case 'move':\n {\n moveNode(fromId, id, actionSide);\n }\n break;\n case 'add':\n {\n ctx\n .$subscriber(ctx.topics.COMPONENT_ACTIVE)\n .once(() => {\n const compName = fromComp.component.toLowerCase();\n const json = require(`../../../engine/meta/${compName}.props.default.json`);\n ctx.$publisher(ctx.topics.COMPONENT_SETTING_CLICK, { data: json });\n })\n .watch();\n ctx.$publisher(ctx.topics.COMPONENT_ACTIVE, { target: id });\n }\n break;\n }\n }\n }).watch();\n\n return () => {\n ctx.$unsubscriber(ctx.topics.COMPONENT_DRAG_END, event_drag);\n };\n }, []);\n\n const [active, setActive] = useState(null);\n const [noDrag, setNoDrag] = useState(null);\n\n function handleDragStart(event) {\n setActive(event.active.data.current);\n }\n\n function handleDragEnd(event) {\n setActive(null);\n setNoDrag(null);\n pubEvent(event, ctx.topics.COMPONENT_DRAG_END, ctx);\n }\n\n function handleDragMove(event) {\n pubEvent(event, ctx.topics.COMPONENT_DRAG_OVER, ctx);\n }\n\n const mouseSensor = useSensor(MouseSensor, {\n // Require the mouse to move by 10 pixels before activating\n activationConstraint: {\n distance: 10,\n },\n });\n\n const sensors = useSensors(mouseSensor);\n\n const pubEvent = useCallback((event, eventName, ctx) => {\n if (event.active && event.over && event.active.data.current.id !== event.over.data.current.id) {\n\n var vaild = true;\n\n const dropperId = event.over.data.current.id;\n const dropNodeData = ctx.$(dropperId).api.getSelfAndParentData();\n const dropNode = dropNodeData?.node;\n const dropParentNode = dropNodeData?.parent;\n\n // console.log('dropperId', dropperId)\n\n const actionSide = getAction(\n event.over.data.current.type,\n event.over.data.current.component.component,\n event.active.rect.current.translated,\n event.over.rect,\n dropNode,\n dropParentNode\n );\n\n // console.log('actionSide', actionSide)\n\n\n if (event.active.data.current.action === 'move') {\n const draggerId = event.active.data.current.id;\n // console.log('draggerId', draggerId, event.active.data.current)\n\n const dragNodeData = ctx.$(draggerId).api.getSelfAndParentData();\n const dragNode = dragNodeData?.node;\n const dragParentNode = dragNodeData?.parent;\n\n // 如果是拖拽到父容器上则不进行处理\n if (dragParentNode && dragParentNode.props.id === event.over.data.current.id) {\n vaild = false;\n }\n\n // 父结构不容许拖入子结构\n if (findParent(ctx, dropperId, draggerId)) {\n vaild = false;\n }\n\n // 如果是build类型的组件,不容许跨节点拖拽\n if (dragNode.props.buildIn == true && (dragNode.props.parentId != dropNode.props.parentId || actionSide == ActionSide.INSIDE)) {\n vaild = false;\n };\n\n }\n else if (event.active.data.current.action === 'add') {\n vaild = true;\n }\n\n if (!actionSide) {\n vaild = false;\n }\n\n // console.log('vaild', vaild, actionSide)\n\n setNoDrag(!vaild);\n\n // console.log({\n // eventName,\n // id: event.over.data.current.id,\n // fromId: event.active.data.current.id,\n // fromComp: event.active.data.current.component,\n // action: event.active.data.current.action,\n // actionSide,\n // });\n\n\n ctx.$publisher(eventName, {\n vaild,\n id: event.over.data.current.id, // 拖拽目标组件id\n fromId: event.active.data.current.id, // 被拖拽组件id\n fromComp: event.active.data.current.component, // 被拖拽组件信息\n action: event.active.data.current.action, // 行为 add move delete\n actionSide, // 目标位置 left inside right\n });\n\n }\n else {\n setNoDrag(true);\n ctx.$publisher(eventName, {\n vaild: false\n });\n }\n }, []);\n\n return (\n <>\n <DndContext\n sensors={sensors}\n onDragStart={handleDragStart}\n onDragEnd={handleDragEnd}\n onDragMove={handleDragMove}\n >\n {children}\n <DragOverlay style={{ zIndex: 21 }} dropAnimation={null}>\n {active && <Overlay noDrag={noDrag}>{active?.component?.name}</Overlay>}\n </DragOverlay>\n </DndContext>\n </>\n );\n}\n\n// 查找id是否属于parentid的子层级\nfunction findParent(ctx, id, parentid) {\n // 安全地获取节点数据\n const nodeData = ctx.componentMap.get(id).api.getSelfAndParentData();\n const node = nodeData?.node; // 确保这里是 'node' 而非 'nodel'\n\n // 检查当前节点的parentId是否为目标parentid\n if (node && node.props.parentId === parentid) return true;\n\n // 检查是否已经到达页面根节点\n if (!node.props.parentId || node.props.parentId === 'page_root') return false;\n\n // 递归调用,检查上一级父节点\n return findParent(ctx, node.props.parentId, parentid);\n}\n\n\nfunction isContainerUnit(node) {\n if (isNil(node)) return false;\n return CONTAINER_UNITS.includes(node.props.component)\n}\n\nfunction getAction(type, overComponentName, activeRect, overRect, dropNode, dropParentNode) {\n let action = null;\n\n const dropNodeParent = dropParentNode;\n const parentIsContainer = isContainerUnit(dropNodeParent);\n const buildIn = dropNode.props.buildIn;\n // console.log('buildIn', buildIn, dropNode, dropNodeParent)\n\n if (type == 'comp') {\n if (CONTAINER_UNITS.includes(overComponentName)) {\n // console.log('parentIsContainer', parentIsContainer, parentNode)\n // 如果是最小单元容器\n if (Math.abs(activeRect.left - overRect.left) <= SIDE_DiSTANCE) {\n if (parentIsContainer)\n action = ActionSide.LEFT;\n } else if (Math.abs(activeRect.left - overRect.right) <= SIDE_DiSTANCE) {\n if (parentIsContainer)\n action = ActionSide.RIGHT;\n } else {\n action = ActionSide.INSIDE;\n }\n } else {\n // 独立组件\n // console.log('pos:',activeRect.left, overRect.left)\n if (activeRect.left <= overRect.left + overRect.width / 2) {\n if (parentIsContainer)\n action = ActionSide.LEFT;\n } else if (\n activeRect.left > overRect.left + overRect.width / 2\n ) {\n if (parentIsContainer)\n action = ActionSide.RIGHT;\n }\n }\n }\n else { // 大纲树处理\n if (CONTAINER_UNITS.includes(overComponentName)) {\n // 如果是最小单元容器\n if (Math.abs(activeRect.top - overRect.top) <= SIDE_DiSTANCE_TREENODE) {\n if (parentIsContainer || buildIn)\n action = ActionSide.LEFT;\n } else if (Math.abs(activeRect.top - overRect.bottom) <= SIDE_DiSTANCE_TREENODE) {\n if (parentIsContainer || buildIn)\n action = ActionSide.RIGHT;\n } else {\n action = ActionSide.INSIDE;\n }\n } else {\n // 独立组件\n if (activeRect.top >= overRect.top && activeRect.top <= overRect.top + overRect.height / 2) {\n if (parentIsContainer)\n action = ActionSide.LEFT;\n } else if (\n activeRect.top > overRect.top + overRect.height / 2 &&\n activeRect.top <= overRect.bottom\n ) {\n if (parentIsContainer)\n action = ActionSide.RIGHT;\n }\n }\n }\n\n return action;\n}\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAEA,IAAMQ,aAAa,GAAG,EAAE;AACxB,IAAMC,sBAAsB,GAAG,EAAE;AAAC,IAErBC,MAAM,GAAAC,OAAA,CAAAD,MAAA,oBAAAE,aAAA,CAAAC,OAAA,WAAAH,OAAA;EAAA,IAAAI,gBAAA,CAAAD,OAAA,QAAAH,MAAA;AAAA;AAAA,IAAAK,gBAAA,CAAAF,OAAA,EAANH,MAAM,SACJ,KAAK;AAAA,IAAAK,gBAAA,CAAAF,OAAA,EADPH,MAAM,UAEH,MAAM;AAAA,IAAAK,gBAAA,CAAAF,OAAA,EAFTH,MAAM,YAGD,QAAQ;AAAA,IAGbM,UAAU,GAAAL,OAAA,CAAAK,UAAA,oBAAAJ,aAAA,CAAAC,OAAA,WAAAG,WAAA;EAAA,IAAAF,gBAAA,CAAAD,OAAA,QAAAG,UAAA;AAAA;AAAA,IAAAD,gBAAA,CAAAF,OAAA,EAAVG,UAAU,YACL,QAAQ;AAAA,IAAAD,gBAAA,CAAAF,OAAA,EADbG,UAAU,UAEP,MAAM;AAAA,IAAAD,gBAAA,CAAAF,OAAA,EAFTG,UAAU,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qB,UAAU,CAACW,GAAG,IAAIV,QAAQ,CAACU,GAAG,IAAIX,UAAU,CAACW,GAAG,IAAIV,QAAQ,CAACU,GAAG,GAAGV,QAAQ,CAACY,MAAM,GAAG,CAAC,EAAE;QAC1F,IAAIV,iBAAiB,EACnBzF,MAAM,GAAGjB,UAAU,CAAC8G,IAAI;MAC5B,CAAC,MAAM,IACLP,UAAU,CAACW,GAAG,GAAGV,QAAQ,CAACU,GAAG,GAAGV,QAAQ,CAACY,MAAM,GAAG,CAAC,IACnDb,UAAU,CAACW,GAAG,IAAIV,QAAQ,CAACW,MAAM,EACjC;QACA,IAAIT,iBAAiB,EACnBzF,MAAM,GAAGjB,UAAU,CAACgH,KAAK;MAC7B;IACF;EACF;EAEA,OAAO/F,MAAM;AACf"}
@@ -77,4 +77,5 @@ function _default(_ref) {
77
77
  }
78
78
  });
79
79
  return comp;
80
- }
80
+ }
81
+ //# sourceMappingURL=DragDropWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_ahooks","_core","_ContextProvider","_DragDropContext","_constants","_default","_ref","id","children","getTargetDom","ctx","useContext","itemInfo","useCreation","componentMap","get","meta","_useDraggable","useDraggable","data","component","action","Action","MOVE","attributes","listeners","setDragRef","setNodeRef","_useDroppable","useDroppable","type","setDropRef","_memoListeners","useEffect","dom","NO_DRAGABLE","includes","NO_DROPABLE","comp","cloneElement","_objectSpread2","default","props","event_drag","$subscriber","topics","COMPONENT_DRAG_OVER","on","_ref2","itemId","actionSide","ActionSide","INSIDE","$publisher","COMPONENT_HOVER","target","LEFT","RIGHT","side","watch","$unsubscriber","useDndMonitor","onDragEnd"],"sources":["../../../../../luckda/lowcode/painter/components/DragDrop/DragDropWrapper.jsx"],"sourcesContent":["import { cloneElement, useEffect } from 'react';\nimport { useCreation } from 'ahooks';\nimport { useDraggable, useDroppable, useDndMonitor } from '@dnd-kit/core';\nimport { useContext } from '../../../engine/provider/ContextProvider';\nimport { Action, ActionSide } from './DragDropContext';\nimport { NO_DRAGABLE, NO_DROPABLE } from '../../../constants';\n\nexport default function ({ id, children, getTargetDom }) {\n const ctx = useContext();\n\n const itemInfo = useCreation(() => ctx.componentMap.get(id).meta, [id]);\n\n const {\n attributes,\n listeners,\n setNodeRef: setDragRef,\n } = useDraggable({\n id: 'draggable-' + id,\n data: {\n id,\n component: itemInfo,\n action: Action.MOVE,\n },\n });\n\n const { setNodeRef: setDropRef } = useDroppable({\n id: 'droppable-' + id,\n data: {\n id,\n component: itemInfo,\n type: 'comp',\n },\n });\n\n const _memoListeners = useCreation(() => listeners, []);\n\n useEffect(() => {\n const dom = getTargetDom();\n if (!dom || !itemInfo.component) return;\n if (!NO_DRAGABLE.includes(itemInfo.component)) setDragRef(dom);\n if (!NO_DROPABLE.includes(itemInfo.component)) setDropRef(dom);\n }, []);\n\n const comp = useCreation(\n () => cloneElement(children, { ...children.props, ..._memoListeners, ...attributes }),\n [id, children],\n );\n\n useEffect(() => {\n const event_drag = ctx\n .$subscriber(ctx.topics.COMPONENT_DRAG_OVER)\n .on(({ id: itemId, actionSide }) => {\n if (actionSide === ActionSide.INSIDE) {\n ctx.$publisher(ctx.topics.COMPONENT_HOVER, { target: itemId });\n } else if (actionSide === ActionSide.LEFT || actionSide === ActionSide.RIGHT) {\n ctx.$publisher(ctx.topics.COMPONENT_HOVER, { target: itemId, side: actionSide });\n }\n })\n .watch();\n\n return () => {\n ctx.$unsubscriber(ctx.topics.COMPONENT_DRAG_OVER, event_drag);\n };\n }, []);\n\n useDndMonitor({\n onDragEnd() {\n ctx.$publisher(ctx.topics.COMPONENT_HOVER, null);\n },\n });\n\n return comp;\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAEe,SA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AG,CAACmC,MAAM,CAACC,mBAAmB,EAAEH,UAAU,CAAC;IAC/D,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,IAAAkB,mBAAa,EAAC;IACZC,SAAS,WAAAA,UAAA,EAAG;MACVpD,GAAG,CAAC2C,UAAU,CAAC3C,GAAG,CAACmC,MAAM,CAACS,eAAe,EAAE,IAAI,CAAC;IAClD;EACF,CAAC,CAAC;EAEF,OAAOhB,IAAI;AACb"}
@@ -15,4 +15,5 @@ function _default(_ref) {
15
15
  return /*#__PURE__*/_react.default.createElement("div", {
16
16
  className: (0, _classnames.default)([_dragdrop.default['dragdrop-overlay'], (0, _defineProperty2.default)({}, _dragdrop.default['no-drag'], noDrag)])
17
17
  }, children);
18
- }
18
+ }
19
+ //# sourceMappingURL=Overlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_classnames","_dragdrop","_default","_ref","children","noDrag","default","createElement","className","classNames","styles","_defineProperty2"],"sources":["../../../../../luckda/lowcode/painter/components/DragDrop/Overlay.jsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\nimport styles from '../../style/dragdrop.less';\n\n\nexport default function ({ children, noDrag }) {\n return (\n <div\n className={classNames([styles['dragdrop-overlay'], {[styles['no-drag']]: noDrag}])}\n >\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AAGe,SAAAG,SAAAC,IAAA,EAAgC;EAAA,IAApBC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,MAAM,GAAAF,IAAA,CAANE,MAAM;EACzC,oBACER,MAAA,CAAAS,OAAA,CAAAC,aAAA;IACEC,SAAS,EAAE,IAAAC,mBAAU,EAAC,CAACC,iBAAM,CAAC,kBAAkB,CAAC,MAAAC,gBAAA,CAAAL,OAAA,MAAII,iBAAM,CAAC,SAAS,CAAC,EAAGL,MAAM,EAAE;EAAE,GAElFD,QACE,CAAC;AAEV"}
@@ -75,4 +75,5 @@ function _default(_ref) {
75
75
  if (!_constants.NO_DROPABLE.includes(item.component)) setDropRef(node);
76
76
  }
77
77
  }, listeners, attributes), children);
78
- }
78
+ }
79
+ //# sourceMappingURL=TreeDragDropWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_core","_DragDropContext","_ContextProvider","_dragdrop","_constants","_default","_ref","item","children","_useState","useState","_useState2","_slicedToArray2","default","side","setSide","id","context","useContext","useEffect","event_drag","$subscriber","topics","COMPONENT_DRAG_OVER","on","_ref2","itemId","fromId","actionSide","vaild","watch","$unsubscriber","useDndMonitor","onDragEnd","_useDraggable","useDraggable","data","component","action","Action","MOVE","type","attributes","listeners","isDragging","setDragRef","setNodeRef","_useDroppable","useDroppable","setDropRef","createElement","_extends2","className","classNames","styles","_defineProperty2","concat","ref","node","NO_DRAGABLE","includes","NO_DROPABLE"],"sources":["../../../../../luckda/lowcode/painter/components/DragDrop/TreeDragDropWrapper.jsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport classNames from 'classnames';\nimport { useDraggable, useDroppable, useDndMonitor } from '@dnd-kit/core';\nimport { Action } from './DragDropContext';\nimport { useContext } from '../../../engine/provider/ContextProvider'\nimport styles from '../../style/dragdrop.less';\nimport { NO_DRAGABLE, NO_DROPABLE } from '../../../constants';\n\nexport default function ({ item, children }) {\n\n const [side, setSide] = useState(null);\n\n const id = item.id;\n const context = useContext();\n\n useEffect(() => {\n const event_drag = context\n .$subscriber(context.topics.COMPONENT_DRAG_OVER)\n .on(({ id: itemId, fromId, actionSide, vaild }) => {\n if (vaild && itemId === id) {\n setSide(actionSide);\n }\n else {\n setSide(null);\n }\n }).watch();\n\n return () => {\n context.$unsubscriber(context.topics.COMPONENT_DRAG_OVER, event_drag);\n };\n\n }, []);\n\n useDndMonitor(\n {\n onDragEnd() {\n setSide(null);\n }\n });\n\n const {\n attributes,\n listeners,\n isDragging,\n setNodeRef: setDragRef,\n } = useDraggable({\n id: 'draggable-treenode-' + id,\n data: {\n id,\n component: item,\n action: Action.MOVE,\n type: 'comp'\n },\n });\n\n const { setNodeRef: setDropRef } = useDroppable({\n id: 'droppable-treenode-' + id,\n data: {\n id,\n component: item,\n type: 'treeNode'\n },\n });\n\n return <div\n className={classNames([styles['lc-painter-components-treedragdrop'], { [styles[`${side}-side`]]: side, [styles['ondrag']]: isDragging }])}\n ref={(node) => {\n if (!NO_DRAGABLE.includes(item.component))\n setDragRef(node);\n\n if (!NO_DROPABLE.includes(item.component))\n setDropRef(node);\n }}\n {...listeners}\n {...attributes}>\n {children}\n </div>;\n}\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAEe,SAAAQ,SAAAC,IAAA,EAA8B;EAAA,IAAlBC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;EAEvC,IAAAC,SAAA,GAAwB,IAAAC,eAAQ,EAAC,IAAI,CAAC;IAAAC,UAAA,OAAAC,eAAA,CAAAC,OAAA,EAAAJ,SAAA;IAA/BK,IAAI,GAAAH,UAAA;IAAEI,OAAO,GAAAJ,UAAA;EAEpB,IAAMK,EAAE,GAAGT,IAAI,CAACS,EAAE;EAClB,IAAMC,OAAO,GAAG,IAAAC,2BAAU,EAAC,CAAC;EAE5B,IAAAC,gBAAS,EAAC,YAAM;IACd,IAAMC,U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pB,EAAE,EAAFA,EAAE;QACFqB,SAAS,EAAE9B,IAAI;QACfkC,IAAI,EAAE;MACR;IACF,CAAC,CAAC;IAPkBQ,UAAU,GAAAF,aAAA,CAAtBD,UAAU;EASlB,oBAAOnD,MAAA,CAAAkB,OAAA,CAAAqC,aAAA,YAAAC,SAAA,CAAAtC,OAAA;IACLuC,SAAS,EAAE,IAAAC,mBAAU,EAAC,CAACC,iBAAM,CAAC,oCAAoC,CAAC,MAAAC,gBAAA,CAAA1C,OAAA,MAAA0C,gBAAA,CAAA1C,OAAA,MAAKyC,iBAAM,IAAAE,MAAA,CAAI1C,IAAI,WAAQ,EAAGA,IAAI,GAAGwC,iBAAM,CAAC,QAAQ,CAAC,EAAGV,UAAU,EAAG,CAAE;IAC1Ia,GAAG,EAAE,SAAAA,IAACC,IAAI,EAAK;MACb,IAAI,CAACC,sBAAW,CAACC,QAAQ,CAACrD,IAAI,CAAC8B,SAAS,CAAC,EACvCQ,UAAU,CAACa,IAAI,CAAC;MAElB,IAAI,CAACG,sBAAW,CAACD,QAAQ,CAACrD,IAAI,CAAC8B,SAAS,CAAC,EACvCY,UAAU,CAACS,IAAI,CAAC;IACpB;EAAE,GACEf,SAAS,EACTD,UAAU,GACblC,QACE,CAAC;AACR"}
@@ -62,4 +62,5 @@ var FieldSelector = function FieldSelector(_ref) {
62
62
  }, opt.label);
63
63
  }));
64
64
  };
65
- var _default = exports.default = FieldSelector;
65
+ var _default = exports.default = FieldSelector;
66
+ //# sourceMappingURL=FieldSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_antd","_utils","_apiUrl","_helper","_excluded","FieldSelector","_ref","dsid","defaultValue","onChange","props","_objectWithoutProperties2","default","_useState","useState","_useState2","_slicedToArray2","options","setOptions","_useRequest","useRequest","fetchFieldsByDataset","defaultParams","datasetUid","moduleUid","getLDMetaAttr","ready","onSuccess","_ref2","code","list","detail","map","_id","value","field","label","fieldAliasName","loading","createElement","Select","_extends2","size","placeholder","formatMessage","id","opt","Option","key","_default","exports"],"sources":["../../../../luckda/lowcode/painter/components/FieldSelector.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { useRequest } from 'ahooks';\nimport { Select } from 'luck-design/antd';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { fetchFieldsByDataset } from '../../constants/api-url';\nimport { getLDMetaAttr } from '../../engine/tools/helper';\n\nconst FieldSelector = ({ dsid, defaultValue, onChange, ...props }) => {\n const [options, setOptions] = useState([]);\n\n const { loading } = useRequest(fetchFieldsByDataset, {\n defaultParams: [{ datasetUid: dsid, moduleUid: getLDMetaAttr('moduleId') }],\n ready: !!dsid,\n onSuccess: ({ code, list, detail }) => {\n if (code === 1) {\n setOptions(\n list.map((_id) => ({\n value: detail[_id].field,\n label: detail[_id].fieldAliasName,\n })),\n );\n }\n },\n });\n\n return (\n <Select\n defaultValue={defaultValue}\n onChange={onChange}\n size=\"small\"\n loading={loading}\n placeholder={formatMessage({\n id: `luckda.lowcode.painter.panel-section.field-selector.placeholder`,\n label: '请选择字段',\n })}\n {...props}\n >\n {options.map((opt) => (\n <Select.Option key={opt.value} value={opt.value}>\n {opt.label}\n </Select.Option>\n ))}\n </Select>\n );\n};\n\nexport default FieldSelector;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAA0D,IAAAM,SAAA;AAE1D,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAAmD;EAAA,IAA7CC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IAAEC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAKC,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,CAAC;EAAE,GACC1B,KAAK,GAERO,OAAO,CAACe,GAAG,CAAC,UAACc,GAAG;IAAA,oBACflD,MAAA,CAAAgB,OAAA,CAAA2B,aAAA,CAACvC,KAAA,CAAAwC,MAAM,CAACO,MAAM;MAACC,GAAG,EAAEF,GAAG,CAACZ,KAAM;MAACA,KAAK,EAAEY,GAAG,CAACZ;IAAM,GAC7CY,GAAG,CAACV,KACQ,CAAC;EAAA,CACjB,CACK,CAAC;AAEb,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,CAAAtC,OAAA,GAEaP,aAAa"}
@@ -107,4 +107,5 @@ var ListEditorItem = exports.ListEditorItem = function ListEditorItem(_ref2) {
107
107
  return onAddLine(item);
108
108
  }
109
109
  }) : null);
110
- };
110
+ };
111
+ //# sourceMappingURL=ListEditor.js.map