@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","_interopRequireDefault","require","_antd","_lodash","_Collapse","BlockEditorItem","_ref","children","onDelete","name","setNodeRef","style","setActivatorNodeRef","attributes","listeners","draggable","default","createElement","ref","label","_extends2","fill","preserveAspectRatio","width","height","viewBox","verticalAlign","d","extraRender","isNil","Icon","type","color","onClick","_default","exports"],"sources":["../../../../../luckda/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.jsx"],"sourcesContent":["import React from 'react';\nimport { Icon } from 'luck-design/antd';\nimport { isNil } from 'lodash';\nimport Collapse from '../../components/Collapse';\n\nconst BlockEditorItem = ({\n children,\n onDelete,\n name,\n setNodeRef,\n style,\n setActivatorNodeRef,\n attributes,\n listeners,\n draggable,\n}) => {\n return (\n <div ref={setNodeRef} style={style}>\n <Collapse\n label={\n <div>\n {\n draggable ? (\n <span ref={setActivatorNodeRef} {...attributes} {...listeners}>\n <svg\n fill=\"currentColor\"\n preserveAspectRatio=\"xMidYMid meet\"\n width=\"16\"\n height=\"12\"\n viewBox=\"0 0 5 12\"\n style={{ verticalAlign: 'middle' }}\n >\n <path d=\"M0.499972716,6 L1.50002728,6 C1.77615459,6 2,6.22384541 2,6.49997272 C2,6.77610002 1.77615459,6.99994543 1.50002728,6.99994543 L0.499972716,6.99994543 C0.22384541,6.99994543 3.38158422e-17,6.77610002 0,6.49997272 C-3.38158422e-17,6.22384541 0.22384541,6 0.499972716,6 Z M0.499972716,3 L1.50002728,3 C1.77615459,3 2,3.22384541 2,3.49997272 C2,3.77610002 1.77615459,3.99994543 1.50002728,3.99994543 L0.499972716,3.99994543 C0.22384541,3.99994543 3.38158422e-17,3.77610002 0,3.49997272 C-3.38158422e-17,3.22384541 0.22384541,3 0.499972716,3 Z M0.499972716,7.28787148e-18 L1.50002728,5.55666624e-14 C1.77615459,7.07214574e-14 2,0.22384541 2,0.499972716 C2,0.776100022 1.77615459,0.999945432 1.50002728,0.999945432 L0.499972716,0.999945432 C0.22384541,0.999945432 3.38158422e-17,0.776100022 0,0.499972716 C-3.38158422e-17,0.22384541 0.22384541,5.0723721e-17 0.499972716,0 Z M0.5,9.00002729 L1.5,9.00002729 C1.77614237,9.00002729 2,9.22388491 2,9.50002729 C2,9.77616966 1.77614237,10.0000273 1.5,10.0000273 L0.5,10.0000273 C0.223857625,10.0000273 3.38176876e-17,9.77616966 0,9.50002729 C-3.38176876e-17,9.22388491 0.223857625,9.00002729 0.5,9.00002729 Z M0.5,12.0000273 L1.5,12.0000273 C1.77614237,12.0000273 2,12.2238849 2,12.5000273 C2,12.7761697 1.77614237,13.0000273 1.5,13.0000273 L0.5,13.0000273 C0.223857625,13.0000273 3.38176876e-17,12.7761697 0,12.5000273 C-3.38176876e-17,12.2238849 0.223857625,12.0000273 0.5,12.0000273 Z M0.5,15.0000273 L1.5,15.0000273 C1.77614237,15.0000273 2,15.2238849 2,15.5000273 C2,15.7761697 1.77614237,16.0000273 1.5,16.0000273 L0.5,16.0000273 C0.223857625,16.0000273 3.38176876e-17,15.7761697 0,15.5000273 C-3.38176876e-17,15.2238849 0.223857625,15.0000273 0.5,15.0000273 Z M3.49997272,6 L4.50002728,6 C4.77615459,6 5,6.22384541 5,6.49997272 C5,6.77610002 4.77615459,6.99994543 4.50002728,6.99994543 L3.49997272,6.99994543 C3.22384541,6.99994543 3,6.77610002 3,6.49997272 C3,6.22384541 3.22384541,6 3.49997272,6 Z M3.49997272,3 L4.50002728,3 C4.77615459,3 5,3.22384541 5,3.49997272 C5,3.77610002 4.77615459,3.99994543 4.50002728,3.99994543 L3.49997272,3.99994543 C3.22384541,3.99994543 3,3.77610002 3,3.49997272 C3,3.22384541 3.22384541,3 3.49997272,3 Z M3.49997272,7.28787148e-18 L4.50002728,5.55666624e-14 C4.77615459,7.07214574e-14 5,0.22384541 5,0.499972716 C5,0.776100022 4.77615459,0.999945432 4.50002728,0.999945432 L3.49997272,0.999945432 C3.22384541,0.999945432 3,0.776100022 3,0.499972716 C3,0.22384541 3.22384541,5.0723721e-17 3.49997272,0 Z M3.5,9.00002729 L4.5,9.00002729 C4.77614237,9.00002729 5,9.22388491 5,9.50002729 C5,9.77616966 4.77614237,10.0000273 4.5,10.0000273 L3.5,10.0000273 C3.22385763,10.0000273 3,9.77616966 3,9.50002729 C3,9.22388491 3.22385763,9.00002729 3.5,9.00002729 Z M3.5,12.0000273 L4.5,12.0000273 C4.77614237,12.0000273 5,12.2238849 5,12.5000273 C5,12.7761697 4.77614237,13.0000273 4.5,13.0000273 L3.5,13.0000273 C3.22385763,13.0000273 3,12.7761697 3,12.5000273 C3,12.2238849 3.22385763,12.0000273 3.5,12.0000273 Z M3.5,15.0000273 L4.5,15.0000273 C4.77614237,15.0000273 5,15.2238849 5,15.5000273 C5,15.7761697 4.77614237,16.0000273 4.5,16.0000273 L3.5,16.0000273 C3.22385763,16.0000273 3,15.7761697 3,15.5000273 C3,15.2238849 3.22385763,15.0000273 3.5,15.0000273 Z\"></path>\n </svg>\n </span>\n ) : null\n }\n {name}\n </div>\n }\n extraRender={\n isNil(onDelete)\n ? false\n : () => (\n <Icon\n type=\"delete\"\n style={{ color: 'var(--luck-color-danger)' }}\n onClick={onDelete}\n />\n )\n }\n >\n {children}\n </Collapse>\n </div>\n );\n};\nexport default BlockEditorItem;\n"],"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AAoqG,CAAO,CAChrG,CACD,CAAC,GACL,IAAI,EAETlB,IACE,CACN;IACDmB,WAAW,EACT,IAAAC,aAAK,EAACrB,QAAQ,CAAC,GACX,KAAK,GACL;MAAA,oBACAT,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACf,KAAA,CAAA4B,IAAI;QACHC,IAAI,EAAC,QAAQ;QACbpB,KAAK,EAAE;UAAEqB,KAAK,EAAE;QAA2B,CAAE;QAC7CC,OAAO,EAAEzB;MAAS,CACnB,CAAC;IAAA;EAEP,GAEAD,QACO,CACP,CAAC;AAEV,CAAC;AAAC,IAAA2B,QAAA,GAAAC,OAAA,CAAAnB,OAAA,GACaX,eAAe"}
@@ -233,4 +233,5 @@ var BlocksEditor = function BlocksEditor(_ref) {
233
233
  label: '新增区块'
234
234
  }))))) : null;
235
235
  };
236
- var _default = exports.default = BlocksEditor;
236
+ var _default = exports.default = BlocksEditor;
237
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_ahooks","_antd","_lodash","_utils","_ContextProvider","_SortBox","_BlockEditorItem","_formPropsDefault","_I18N_PREFIX_","confirm","Modal","addOptions","label","formatMessage","id","concat","value","BlocksEditor","_ref","onChange","nodeId","renderPanelItems","innerProps","blocks","useGet","path","handleAddBlock","useMemoizedFn","type","_id","suid","newData","_objectSpread2","default","name","serialEffect","mode","defaultMeta","blockSettings","order","length","handleDeleteBlock","title","content","cancelText","okText","okType","onOk","filter","val","map","i","index","handleSortBlock","sortItems","_blocks","_toArray2","mainForm","restForm","slice","newRestForm","sortBy","item","indexOf","Infinity","_toConsumableArray2","menu","useCreation","createElement","Menu","onClick","_ref2","key","opt","Item","_useCreation","_useCreation2","_useCreation3","reduce","ret","p","specialProp","commonProps","push","Fragment","valueKey","blockName","blockId","next","props","nextP","cloneP","cloneDeep","fieldsKey","disabled","includes","SortBox","datas","_bk","blockItem","_specialProp$next","SortItem","draggable","_nextP$props","onDelete","result","component","style","padding","width","Dropdown","overlay","Button","block","size","Icon","_default","exports"],"sources":["../../../../../luckda/lowcode/painter/panel-section/BlocksEditor/index.jsx"],"sourcesContent":["import React from 'react';\nimport { useMemoizedFn, useCreation } from 'ahooks';\nimport { Icon, Dropdown, Button, Menu, Modal } from 'luck-design/antd';\nimport { concat, reduce, sortBy, includes, cloneDeep } from 'lodash';\nimport { formatMessage, suid } from '@luck-design-biz/base/utils';\nimport { useGet } from '../../../engine/provider/ContextProvider';\nimport { SortBox, SortItem } from '../../components/SortBox';\nimport BlockEditorItem from './BlockEditorItem';\nimport defaultMeta from '../../../engine/meta/form.props.default.json';\n\nconst _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.blocksEditor';\nconst { confirm } = Modal;\nconst addOptions = [\n { label: formatMessage({ id: `${_I18N_PREFIX_}.auto`, label: '表单' }), value: 'auto' },\n { label: formatMessage({ id: `${_I18N_PREFIX_}.grid`, label: '表格' }), value: 'grid' },\n {\n label: formatMessage({ id: `${_I18N_PREFIX_}.writer`, label: '行内编辑表格' }),\n value: 'writer',\n },\n {\n label: formatMessage({ id: `${_I18N_PREFIX_}.uploadForm`, label: '附件列表' }),\n value: 'uploadForm',\n },\n { label: formatMessage({ id: `${_I18N_PREFIX_}.blank`, label: '空白区' }), value: 'blank' },\n];\n\nconst BlocksEditor = ({ onChange, nodeId, renderPanelItems, innerProps }) => {\n const blocks = useGet({ id: nodeId, path: 'props.blocks' });\n\n const handleAddBlock = useMemoizedFn((type) => {\n const _id = `block_${suid()}`;\n const newData = concat(blocks, {\n id: _id,\n name: _id,\n type,\n serialEffect: 'hidden',\n mode: ['add', 'update', 'edit', 'info'],\n ...defaultMeta.blockSettings[type],\n order: blocks.length + 1,\n });\n onChange(newData);\n });\n\n const handleDeleteBlock = useMemoizedFn((_id) => {\n confirm({\n title: formatMessage({ id: 'app.base.confirm.delete.title' }),\n content: `${formatMessage({ id: 'app.base.confirm.delete.simple' })}?`,\n cancelText: formatMessage({ id: 'app.base.operate.cancel' }),\n okText: formatMessage({ id: 'app.base.operate.ok' }),\n okType: 'danger',\n onOk: () => {\n const newData = blocks.filter((val) => val.id !== _id);\n onChange(newData.map((i, index) => ({ ...i, order: index + 1 })));\n },\n });\n });\n\n const handleSortBlock = useMemoizedFn((sortItems) => {\n const [mainForm, ...restForm] = blocks;\n const newRestForm = sortBy(restForm, (item) => {\n const index = sortItems.indexOf(item.id);\n return index !== -1 ? index : Infinity;\n });\n const newData = [mainForm, ...newRestForm].map((i, index) => ({ ...i, order: index + 1 }));\n onChange(newData);\n });\n\n const menu = useCreation(() => (\n <Menu onClick={({ key }) => handleAddBlock(key)}>\n {addOptions.map((opt) => (\n <Menu.Item key={opt.value}>{opt.label}</Menu.Item>\n ))}\n </Menu>\n ));\n\n const [mainForm, ...restForm] = useCreation(() => blocks || [], [blocks]);\n\n const { commonProps, specialProp } = useCreation(\n () =>\n reduce(\n innerProps,\n (ret, p) => {\n if (p.key === 'blockSettings') {\n ret.specialProp = p;\n } else {\n ret.commonProps.push(p);\n }\n return ret;\n },\n { commonProps: [] },\n ),\n [innerProps],\n );\n\n return mainForm ? (\n <>\n <BlockEditorItem\n name={renderPanelItems([\n {\n ...specialProp,\n valueKey: `blocks[0].${specialProp.key}`,\n blockName: mainForm.name,\n blockId: mainForm.id,\n next: {\n name: specialProp.name,\n props: specialProp.next[`_${mainForm.type}_props`].map((nextP) => ({\n ...nextP,\n valueKey: `blocks[0].${nextP.key}`,\n })),\n },\n },\n ])}\n >\n {renderPanelItems(\n commonProps.map((p) => {\n const cloneP = cloneDeep(p);\n if (cloneP.key === 'dataset') {\n cloneP.fieldsKey = 'blocks[0].fields';\n }\n return {\n ...cloneP,\n disabled: includes(['mode', 'serialEffect'], cloneP.key) || cloneP.disabled,\n valueKey: `blocks[0].${cloneP.key}`,\n };\n }),\n )}\n </BlockEditorItem>\n <SortBox datas={restForm.map((_bk) => _bk.id)} onChange={handleSortBlock}>\n {restForm.map((blockItem, i) => (\n <SortItem key={blockItem.id} id={blockItem.id}>\n <BlockEditorItem\n draggable\n name={renderPanelItems([\n {\n ...specialProp,\n valueKey: `blocks[${i + 1}].${specialProp.key}`,\n blockName: blockItem.name,\n blockId: blockItem.id,\n next: {\n name: specialProp.name,\n props: specialProp.next[`_${blockItem.type}_props`]?.map((nextP) => {\n return {\n ...nextP,\n valueKey: `blocks[${i + 1}].${nextP.key}`,\n props: nextP.props?.map((p) => ({\n ...p,\n valueKey: `blocks[${i + 1}].${p.key}`,\n })),\n };\n }),\n },\n },\n ])}\n onDelete={() => handleDeleteBlock(blockItem.id)}\n >\n {renderPanelItems(\n reduce(\n commonProps,\n (result, p) => {\n const cloneP = cloneDeep(p);\n cloneP.valueKey = `blocks[${i + 1}].${p.key}`;\n if (p.key === 'dataset') {\n if (includes(['auto', 'grid', 'writer'], blockItem.type)) {\n if (blockItem.type !== 'auto') cloneP.component = 'tableForm';\n cloneP.fieldsKey = `blocks[${i + 1}].fields`;;\n result.push(cloneP);\n }\n } else result.push(cloneP);\n return result;\n },\n [],\n ),\n )}\n </BlockEditorItem>\n </SortItem>\n ))}\n </SortBox>\n <div style={{ padding: '0px 16px', width: '100%' }}>\n <Dropdown overlay={menu}>\n <Button block size=\"small\">\n <Icon type=\"plus-circle\" />\n {formatMessage({ id: `${_I18N_PREFIX_}.addBlock`, label: '新增区块' })}\n </Button>\n </Dropdown>\n </div>\n </>\n ) : null;\n};\nexport default BlocksEditor;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,iBAAA,GAAAT,sBAAA,CAAAC,O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AAE;IAAO;EAAE,gBACjDhH,MAAA,CAAAoC,OAAA,CAAAmC,aAAA,CAACnE,KAAA,CAAA6G,QAAQ;IAACC,OAAO,EAAE7C;EAAK,gBACtBrE,MAAA,CAAAoC,OAAA,CAAAmC,aAAA,CAACnE,KAAA,CAAA+G,MAAM;IAACC,KAAK;IAACC,IAAI,EAAC;EAAO,gBACxBrH,MAAA,CAAAoC,OAAA,CAAAmC,aAAA,CAACnE,KAAA,CAAAkH,IAAI;IAACvF,IAAI,EAAC;EAAa,CAAE,CAAC,EAC1B,IAAAf,oBAAa,EAAC;IAAEC,EAAE,KAAAC,MAAA,CAAKP,aAAa,cAAW;IAAEI,KAAK,EAAE;EAAO,CAAC,CAC3D,CACA,CACP,CACL,CAAC,GACD,IAAI;AACV,CAAC;AAAC,IAAAwG,QAAA,GAAAC,OAAA,CAAApF,OAAA,GACahB,YAAY"}
@@ -45,4 +45,5 @@ var ButtonType = function ButtonType(_ref) {
45
45
  className: _buttonType.default['lc-painter-panel-section-components-buttontype-option']
46
46
  }, "danger")));
47
47
  };
48
- var _default = exports.default = ButtonType;
48
+ var _default = exports.default = ButtonType;
49
+ //# sourceMappingURL=ButtonType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_antd","_buttonType","_excluded","ButtonType","_ref","onChange","props","_objectWithoutProperties2","default","createElement","Select","_extends2","val","className","styles","Option","value","Button","type","size","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/ButtonType.jsx"],"sourcesContent":["import React from 'react';\nimport { Select, Button } from 'luck-design/antd';\nimport styles from '../style/button-type.less';\n\nconst ButtonType = ({ onChange, ...props }) => {\n return (\n <Select\n {...props}\n onChange={val => onChange(val)}\n className={styles['lc-painter-panel-section-components-buttontype']}\n >\n <Select.Option value=\"primary\">\n <Button\n type=\"primary\"\n size=\"small\"\n className={styles['lc-painter-panel-section-components-buttontype-option']}\n >\n primary\n </Button>\n </Select.Option>\n <Select.Option value=\"default\">\n <Button\n type=\"default\"\n size=\"small\"\n className={styles['lc-painter-panel-section-components-buttontype-option']}\n >\n default\n </Button>\n </Select.Option>\n <Select.Option value=\"dashed\">\n <Button\n type=\"dashed\"\n size=\"small\"\n className={styles['lc-painter-panel-section-components-buttontype-option']}\n >\n dashed\n </Button>\n </Select.Option>\n <Select.Option value=\"danger\">\n <Button\n type=\"danger\"\n size=\"small\"\n className={styles['lc-painter-panel-section-components-buttontype-option']}\n >\n danger\n </Button>\n </Select.Option>\n </Select>\n );\n};\n\nexport default ButtonType;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA+C,IAAAG,SAAA;AAE/C,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EAA+B;EAAA,IAAzBC,SAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAKC,KAAK,OAAAC,yBAAA,CAAAC,OAAA,EAAAJ,IAAA,EAAAF,SAAA;EACtC,oBACEL,MAAA,CAAAW,OAAA,CAAAC,aAAA,CAACT,KAAA,CAAAU,MAAM,MAAAC,SAAA,CAAAH,OAAA,MACDF,KAAK;IACTD,QAAQ,EAAE,SAAAA,SAAAO,GAAG;MAAA,OAAIP,SAAQ,CAACO,GAAG,CAAC;IAAA,CAAC;IAC/BC,SAAS,EAAEC,mBAAM,CAAC,gDAAgD;EAAE,iBAEpEjB,MAAA,CAAAW,OAAA,CAAAC,aAAA,CAACT,KAAA,CAAAU,MAAM,CAACK,MAAM;IAACC,KAAK,EAAC;EAAS,gBAC5BnB,MAAA,CAAAW,OAAA,CAAAC,aAAA,CAACT,KAAA,CAAAiB,MAAM;IACLC,IAAI,EAAC,SAAS;IACdC,IAAI,EAAC,OAAO;IACZN,SAAS,EAAEC,mBAAM,CAAC,uDAAuD;EAAE,GAC5E,SAEO,CACK,CAAC,eAChBjB,MAAA,CAAAW,OAAA,CAAAC,aAAA,CAACT,KAAA,CAAAU,MAAM,CAACK,MAAM;IAACC,KAAK,EAAC;EAAS,gBAC5BnB,MAAA,CAAAW,OAAA,CAAAC,aAAA,CAACT,KAAA,CAAAiB,MAAM;IACLC,IAAI,EAAC,SAAS;IACdC,IAAI,EAAC,OAAO;IACZN,SAAS,EAAEC,mBAAM,CAAC,uDAAuD;EAAE,GAC5E,SAEO,CACK,CAAC,eAChBjB,MAAA,CAAAW,OAAA,CAAAC,aAAA,CAACT,KAAA,CAAAU,MAAM,CAACK,MAAM;IAACC,KAAK,EAAC;EAAQ,gBAC3BnB,MAAA,CAAAW,OAAA,CAAAC,aAAA,CAACT,KAAA,CAAAiB,MAAM;IACLC,IAAI,EAAC,QAAQ;IACbC,IAAI,EAAC,OAAO;IACZN,SAAS,EAAEC,mBAAM,CAAC,uDAAuD;EAAE,GAC5E,QAEO,CACK,CAAC,eAChBjB,MAAA,CAAAW,OAAA,CAAAC,aAAA,CAACT,KAAA,CAAAU,MAAM,CAACK,MAAM;IAACC,KAAK,EAAC;EAAQ,gBAC3BnB,MAAA,CAAAW,OAAA,CAAAC,aAAA,CAACT,KAAA,CAAAiB,MAAM;IACLC,IAAI,EAAC,QAAQ;IACbC,IAAI,EAAC,OAAO;IACZN,SAAS,EAAEC,mBAAM,CAAC,uDAAuD;EAAE,GAC5E,QAEO,CACK,CACT,CAAC;AAEb,CAAC;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAEaL,UAAU"}
@@ -247,4 +247,5 @@ var ComplexPop = function ComplexPop(_ref2) {
247
247
  });
248
248
  }))))));
249
249
  };
250
- var _default = exports.default = ComplexPop;
250
+ var _default = exports.default = ComplexPop;
251
+ //# sourceMappingURL=ComplexPop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_lodash","_styledComponents","_interopRequireDefault","_antd","_utils","_ListEditor","_Collapse","_SortBox","_PanelItem","_complexPop","_excluded","_I18N_PREFIX_","DividerSpan","styled","span","withConfig","displayName","componentId","FieldKey","div","ListItem","_ref","field","fieldName","renderItemRight","onChange","sortable","editable","props","_objectWithoutProperties2","default","createElement","ListEditorItem","_extends2","key","left","Tooltip","title","Input","value","size","style","width","e","target","right","item","ComplexPop","_ref2","nodeId","settings","defaultValue","_useState","useState","show","_useState2","_slicedToArray2","setShow","_useState3","fields","_useState4","setFields","_useState5","_useState6","allFields","setAllFields","_useCreation","useCreation","_nodeId$split","split","_nodeId$split2","_","blockid","fieldid","blocksObj","keyBy","blocks","_fieldObj$fieldid","fieldObj","complexConfig","isTree","datasetKey","dataModelKey","useEffect","getFields","datasetCode","then","res","code","data","_data","reduce","result","field_name","useLayoutEffect","renderItemDeleteRight","useMemoizedFn","Icon","type","margin","cursor","color","onClick","_fields","cloneDeep","remove","renderItemAddRight","concat","handleChange","map","_objectSpread2","handleSortFields","sortItems","oldItems","newItems","sort","a","b","indexA","indexOf","indexB","Fragment","label","formatMessage","id","Switch","defaultChecked","val","height","padding","Spin","spinning","Divider","orientation","marginTop","SortBox","datas","f","ListEditor","suppressAdd","_ref3","SortItem","omit","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/ComplexPop.jsx"],"sourcesContent":["import React, { useEffect, useState, useLayoutEffect } from 'react';\nimport { useCreation, useMemoizedFn } from 'ahooks';\nimport { keyBy, reduce, remove, omit, map, cloneDeep } from 'lodash';\nimport styled from 'styled-components';\nimport { Switch, Spin, Divider, Tooltip, Icon, Input } from 'luck-design/antd';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { ListEditor, ListEditorItem } from '../components/ListEditor';\nimport Collapse from '../components/Collapse';\nimport { SortBox, SortItem } from '../components/SortBox';\nimport PanelItem from '../components/PanelItem';\nimport { getFields } from '../services/complexPop';\n\nconst _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.complexPop';\n\nconst DividerSpan = styled.span`\n\tfont-size: 12px;\n\tcolor: @text-color;\n`;\n\nconst FieldKey = styled.div`\n width: 200px;\n margin-left: 4px;\n\tdisplay: inline-block;\n\twhite-space: nowrap;\n\tword-break: keep-all;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n`;\n\nconst ListItem = ({\n\tfield,\n\tfieldName,\n\trenderItemRight,\n\tonChange,\n\tsortable,\n\teditable,\n\t...props\n}) => {\n\treturn (\n\t\t<ListEditorItem\n\t\t\tkey={field}\n\t\t\tleft={\n\t\t\t\t<Tooltip title={field}>\n\t\t\t\t\t{\n\t\t\t\t\t\teditable ? (\n\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\tvalue={fieldName}\n\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\tstyle={{ width: '200px' }}\n\t\t\t\t\t\t\t\tonChange={(e) => onChange(field, e.target.value)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) : <FieldKey> {fieldName} </FieldKey>\n\t\t\t\t\t}\n\t\t\t\t</Tooltip >\n\t\t\t}\n\t\t\tright={renderItemRight({ field, title: fieldName })}\n\t\t\titem={field}\n\t\t\tsortable={sortable}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nconst ComplexPop = ({\n\tnodeId,\n\tsettings,\n\tdefaultValue,\n\tonChange\n}) => {\n\n\tconst [show, setShow] = useState(defaultValue?.show);\n\tconst [fields, setFields] = useState(defaultValue?.fields || []);\n\tconst [allFields, setAllFields] = useState(null);\n\n\tconst { isTree, datasetKey, dataModelKey } = useCreation(() => {\n\t\tconst [_, blockid, fieldid] = nodeId.split('.');\n\t\tconst blocksObj = keyBy(settings?.blocks, 'id');\n\t\tif (blocksObj[blockid]) {\n\t\t\tconst fieldObj = keyBy(blocksObj[blockid].fields, 'field');\n\t\t\treturn fieldObj[fieldid]?.complexConfig || {};\n\t\t}\n\t\treturn {};\n\t}, [nodeId, settings?.blocks]);\n\n\tuseEffect(() => {\n\t\tif (!isTree && show && datasetKey && dataModelKey && !allFields) {\n\t\t\tgetFields({ datasetCode: datasetKey, dataModelKey: dataModelKey }).then(res => {\n\t\t\t\tconst { code, data } = res;\n\t\t\t\tif (code === 1) {\n\t\t\t\t\tconst _data = reduce(data, (result, item) => {\n\t\t\t\t\t\tresult[item.field] = item.field_name;\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}, {});\n\t\t\t\t\tsetAllFields(_data);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}, [isTree, show, datasetKey, dataModelKey, allFields]);\n\n\tuseLayoutEffect(() => {\n\t\tonChange({ show, fields });\n\t}, [show, fields]);\n\n\tconst renderItemDeleteRight = useMemoizedFn((data) => {\n\t\treturn (\n\t\t\t<Icon\n\t\t\t\ttype=\"delete\"\n\t\t\t\tstyle={{ margin: '0 4px', cursor: 'pointer', color: 'var(--luck-color-danger)' }}\n\t\t\t\tonClick={() => {\n\t\t\t\t\tconst _fields = cloneDeep(fields);\n\t\t\t\t\tremove(_fields, (item) => item.field === data.field);\n\t\t\t\t\tsetFields(_fields);\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\t});\n\n\tconst renderItemAddRight = useMemoizedFn((data) => {\n\t\treturn (\n\t\t\t<Icon\n\t\t\t\ttype=\"plus-circle\"\n\t\t\t\tstyle={{ margin: '0 4px', cursor: 'pointer', color: 'var(--ant-primary-color)' }}\n\t\t\t\tonClick={() => setFields(fields.concat(data))}\n\t\t\t/>\n\t\t);\n\t});\n\n\tconst handleChange = useMemoizedFn((field, value) => {\n\t\tsetFields(fields.map((item) => (item.field === field ? { ...item, title: value } : item)));\n\t});\n\n\tconst handleSortFields = useMemoizedFn((sortItems) => {\n\t\tconst oldItems = cloneDeep(fields);\n\t\tconst newItems = oldItems.sort((a, b) => {\n\t\t\tconst indexA = sortItems.indexOf(a.field);\n\t\t\tconst indexB = sortItems.indexOf(b.field);\n\t\t\treturn indexA - indexB;\n\t\t});\n\t\tsetFields(newItems);\n\t});\n\n\treturn (\n\t\t<>\n\t\t\t<PanelItem field=\"showPop\" label={formatMessage({ id: `${_I18N_PREFIX_}.assisted`, label: \"辅助选择\" })}>\n\t\t\t\t<Switch\n\t\t\t\t\tsize='small'\n\t\t\t\t\tdefaultChecked={defaultValue?.show}\n\t\t\t\t\tonChange={val => {\n\t\t\t\t\t\tsetShow(val);\n\t\t\t\t\t\tif (!val) setFields([]);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</PanelItem>\n\t\t\t{\n\t\t\t\t!isTree && show && (\n\t\t\t\t\t<Collapse label={formatMessage({ id: `${_I18N_PREFIX_}.assistedGrid`, label: '辅助弹窗显示字段' })}>\n\t\t\t\t\t\t<div style={{ height: 'auto', padding: '0 16px' }}>\n\t\t\t\t\t\t\t<Spin spinning={!allFields}>\n\t\t\t\t\t\t\t\t<Divider orientation=\"left\" style={{ marginTop: 0 }}>\n\t\t\t\t\t\t\t\t\t<DividerSpan>{formatMessage({ id: `${_I18N_PREFIX_}.assistedGridFields`, label: '展示区' })}</DividerSpan>\n\t\t\t\t\t\t\t\t</Divider>\n\t\t\t\t\t\t\t\t<SortBox datas={fields.map(f => f.field)} onChange={handleSortFields}>\n\t\t\t\t\t\t\t\t\t<ListEditor\n\t\t\t\t\t\t\t\t\t\tstyle={{ marginTop: 8 }}\n\t\t\t\t\t\t\t\t\t\tsuppressAdd\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{fields.map(({ field, title }) => {\n\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t<SortItem key={field} id={field}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfield={field}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfieldName={title}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trenderItemRight={renderItemDeleteRight}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortable\n\t\t\t\t\t\t\t\t\t\t\t\t\t\teditable\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t</SortItem>\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t\t</ListEditor>\n\t\t\t\t\t\t\t\t</SortBox>\n\t\t\t\t\t\t\t\t<Divider orientation=\"left\" style={{ marginTop: 0 }}>\n\t\t\t\t\t\t\t\t\t<DividerSpan>{formatMessage({ id: `${_I18N_PREFIX_}.gridFields`, label: '可选区' })}</DividerSpan>\n\t\t\t\t\t\t\t\t</Divider>\n\t\t\t\t\t\t\t\t<ListEditor\n\t\t\t\t\t\t\t\t\tstyle={{ marginTop: 8 }}\n\t\t\t\t\t\t\t\t\tsuppressAdd\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tmap(omit(allFields, fields.map(f => f.field)), (fieldName, field) => (\n\t\t\t\t\t\t\t\t\t\t\t<ListItem\n\t\t\t\t\t\t\t\t\t\t\t\tkey={field}\n\t\t\t\t\t\t\t\t\t\t\t\tfield={field}\n\t\t\t\t\t\t\t\t\t\t\t\tfieldName={fieldName}\n\t\t\t\t\t\t\t\t\t\t\t\trenderItemRight={renderItemAddRight}\n\t\t\t\t\t\t\t\t\t\t\t\tsortable={false}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</ListEditor>\n\t\t\t\t\t\t\t</Spin>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</Collapse>\n\t\t\t\t)\n\t\t\t}\n\t\t</>\n\t)\n};\nexport default ComplexPop;"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAA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AA,CAAAiI,OAAO;IAACC,WAAW,EAAC,MAAM;IAAC5F,KAAK,EAAE;MAAE6F,SAAS,EAAE;IAAE;EAAE,gBACnD1I,MAAA,CAAAkC,OAAA,CAAAC,aAAA,CAACnB,WAAW,QAAE,IAAA+G,oBAAa,EAAC;IAAEC,EAAE,KAAAjB,MAAA,CAAKhG,aAAa,gBAAa;IAAE+G,KAAK,EAAE;EAAM,CAAC,CAAe,CACtF,CAAC,eACV9H,MAAA,CAAAkC,OAAA,CAAAC,aAAA,CAAC1B,WAAA,CAAAqI,UAAU;IACVjG,KAAK,EAAE;MAAE6F,SAAS,EAAE;IAAE,CAAE;IACxBK,WAAW;EAAA,GAGV,IAAA9B,WAAG,EAAC,IAAAiC,YAAI,EAAC9E,SAAS,EAAEL,MAAM,CAACkD,GAAG,CAAC,UAAA4B,CAAC;IAAA,OAAIA,CAAC,CAACnH,KAAK;EAAA,EAAC,CAAC,EAAE,UAACC,SAAS,EAAED,KAAK;IAAA,oBAC/D1B,MAAA,CAAAkC,OAAA,CAAAC,aAAA,CAACX,QAAQ;MACRc,GAAG,EAAEZ,KAAM;MACXA,KAAK,EAAEA,KAAM;MACbC,SAAS,EAAEA,SAAU;MACrBC,eAAe,EAAEkF,kBAAmB;MACpChF,QAAQ,EAAE;IAAM,CAChB,CAAC;EAAA,CACF,CAES,CACP,CACF,CACI,CAGX,CAAC;AAEL,CAAC;AAAC,IAAAqH,QAAA,GAAAC,OAAA,CAAAlH,OAAA,GACaiB,UAAU"}
@@ -40,4 +40,5 @@ var ComponentSelector = function ComponentSelector(_ref) {
40
40
  return ret;
41
41
  }, []));
42
42
  };
43
- var _default = exports.default = ComponentSelector;
43
+ var _default = exports.default = ComponentSelector;
44
+ //# sourceMappingURL=ComponentSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_antd","_lodash","_ContextProvider","ComponentSelector","_ref","nodeId","defaultValue","onChange","filter","ctx","useContext","default","createElement","Select","size","allowClear","val","reduce","componentList","ret","_ref2","_ref3","_slicedToArray2","compId","comp","find","_ref4","_ref5","key","get","push","Option","value","meta","name","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/ComponentSelector.jsx"],"sourcesContent":["import React from 'react';\nimport { Select } from 'luck-design/antd';\nimport { reduce, get } from 'lodash';\nimport { useContext } from '../../engine/provider/ContextProvider';\n\nconst ComponentSelector = ({ nodeId, defaultValue, onChange, filter }) => {\n const ctx = useContext();\n\n return (\n <Select size=\"small\" allowClear defaultValue={defaultValue} onChange={(val) => onChange(val)}>\n {reduce(\n ctx.componentList,\n (ret, [compId, comp]) => {\n if (\n compId !== nodeId &&\n (!filter || filter.find(([key, val]) => get(comp, key) === val))\n ) {\n ret.push(<Select.Option value={compId}>{comp.meta.name || compId}</Select.Option>);\n }\n return ret;\n },\n [],\n )}\n </Select>\n );\n};\n\nexport default ComponentSelector;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAEA,IAAMI,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAAmD;EAAA,IAA7CC,MAAM,GAAAD,IAAA,CAANC,MAAM;IAAEC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IAAEC,SAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,MAAM,GAAAJ,IAAA,CAANI,MAAM;EACjE,IAAMC,GAAG,GAAG,IAAAC,2BAAU,EAAC,CAAC;EAExB,oBACEb,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACZ,KAAA,CAAAa,MAAM;IAACC,IAAI,EAAC,OAAO;IAACC,UAAU;IAACT,YAAY,EAAEA,YAAa;IAACC,QAAQ,EAAE,SAAAA,SAACS,GAAG;MAAA,OAAKT,SAAQ,CAACS,GAAG,CAAC;IAAA;EAAC,GAC1F,IAAAC,cAAM,EACLR,GAAG,CAACS,aAAa,EACjB,UAACC,GAAG,EAAAC,KAAA,EAAqB;IAAA,IAAAC,KAAA,OAAAC,eAAA,CAAAX,OAAA,EAAAS,KAAA;MAAlBG,MAAM,GAAAF,KAAA;MAAEG,IAAI,GAAAH,KAAA;IACjB,IACEE,MAAM,KAAKlB,MAAM,KAChB,CAACG,MAAM,IAAIA,MAAM,CAACiB,IAAI,CAAC,UAAAC,KAAA;MAAA,IAAAC,KAAA,OAAAL,eAAA,CAAAX,OAAA,EAAAe,KAAA;QAAEE,GAAG,GAAAD,KAAA;QAAEX,GAAG,GAAAW,KAAA;MAAA,OAAM,IAAAE,WAAG,EAACL,IAAI,EAAEI,GAAG,CAAC,KAAKZ,GAAG;IAAA,EAAC,CAAC,EAChE;MACAG,GAAG,CAACW,IAAI,eAACjC,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACZ,KAAA,CAAAa,MAAM,CAACkB,MAAM;QAACC,KAAK,EAAET;MAAO,GAAEC,IAAI,CAACS,IAAI,CAACC,IAAI,IAAIX,MAAsB,CAAC,CAAC;IACpF;IACA,OAAOJ,GAAG;EACZ,CAAC,EACD,EACF,CACM,CAAC;AAEb,CAAC;AAAC,IAAAgB,QAAA,GAAAC,OAAA,CAAAzB,OAAA,GAEaR,iBAAiB"}
@@ -183,4 +183,5 @@ var DataSetSelector = function DataSetSelector(_ref) {
183
183
  onClick: refreshDataset
184
184
  })));
185
185
  };
186
- var _default = exports.default = DataSetSelector;
186
+ var _default = exports.default = DataSetSelector;
187
+ //# sourceMappingURL=DataSetSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_styledComponents","_interopRequireDefault","_antd","_ContextProvider","_apiUrl","_helper","_utils","Div","styled","div","withConfig","displayName","componentId","DataSetSelector","_ref","defaultValue","onChange","_ref$fieldsKey","fieldsKey","component","size","isTree","next","_useState","useState","_useState2","_slicedToArray2","default","options","setOptions","_useState3","_useState4","currentDataset","setCurrentDataset","_useRemoteSource","useRemoteSource","dataset","fetchAllDatasetLoading","refreshModlueData","refreshDataset","_useRequest","useRequest","fetchAddDataset","manual","loading","runAsync","useEffect","filter","_ref2","tree","handleChange","useMemoizedFn","_ref4","_asyncToGenerator2","_regeneratorRuntime2","mark","_callee","value","_ref3","key","_getLDMetaAttr","_getLDMetaAttr2","moduleId","dataModelKey","_yield$runAsync","code","res","_ds","wrap","_callee$","_context","prev","getLDMetaAttr","uid","addList","datasetUid","sent","exe","dsFields","data","dataSets","map","f","restProps","fieldAliasName","fieldName","includes","_extra","JSON","parse","extra","alignMapping","align","scell_alignment","headerAlign","sheading_alignment","property","complexConfig","opt_show_tree","datasetKey","opt_dataset","opt_data_model","_objectSpread2","field","stop","_x","_x2","apply","arguments","createElement","Select","getPopupContainer","document","getElementById","style","width","opt","Option","Tooltip","title","name","formatMessage","id","label","Button","icon","marginLeft","disabled","onClick","datasetCode","valueKey","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/DataSetSelector.jsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { useMemoizedFn, useRequest } from 'ahooks';\nimport styled from 'styled-components';\nimport { Select, Button, Tooltip } from 'luck-design/antd';\nimport { useRemoteSource } from '../../engine/provider/ContextProvider';\nimport { fetchAddDataset } from '../../constants/api-url';\nimport { getLDMetaAttr } from '../../engine/tools/helper';\nimport { formatMessage } from '@luck-design-biz/base/utils';\n\nconst Div = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst DataSetSelector = ({\n defaultValue,\n onChange,\n fieldsKey = 'fields',\n component,\n size,\n isTree,\n next,\n}) => {\n const [options, setOptions] = useState([]);\n const [currentDataset, setCurrentDataset] = useState(defaultValue);\n const { dataset, fetchAllDatasetLoading, refreshModlueData, refreshDataset } = useRemoteSource();\n\n const { loading, runAsync } = useRequest(fetchAddDataset, { manual: true });\n\n useEffect(() => {\n setOptions(isTree ? dataset.filter(({ tree }) => tree === 1) : dataset);\n }, [dataset, isTree]);\n\n const handleChange = useMemoizedFn(async (value, { key }) => {\n const [moduleId, dataModelKey] = getLDMetaAttr(['moduleId', 'dataModelKey']);\n const { code } = await runAsync({\n uid: moduleId,\n dataModelKey,\n addList: [{ code: value, datasetUid: key }],\n });\n if (code === 1) {\n const res = await refreshModlueData();\n if (res.code === 1) {\n const _ds = { code: value, uid: key };\n onChange(_ds, (exe) => {\n const dsFields = res.data.dataSets[value];\n exe(\n fieldsKey,\n dsFields.map((f) => {\n const restProps = { fieldAliasName: f.fieldAliasName || f.fieldName };\n if (['table', 'tableForm'].includes(component)) {\n const _extra = JSON.parse(f.extra || '{}');\n const alignMapping = { 0: 'left', 1: 'center', 2: 'right' };\n restProps.align = alignMapping[_extra.scell_alignment];\n restProps.headerAlign = alignMapping[_extra.sheading_alignment];\n }\n if (f.property === \"complex\") {\n const _extra = JSON.parse(f.extra || '{}');\n restProps.complexConfig = {\n isTree: _extra.opt_show_tree,\n datasetKey: _extra.opt_dataset,\n dataModelKey: _extra.opt_data_model,\n }\n }\n return { uid: f.uid, field: f.field, ...restProps };\n }),\n );\n });\n setCurrentDataset(_ds);\n }\n }\n });\n\n return (\n <Div>\n <Select\n defaultValue={defaultValue?.code}\n size={size}\n onChange={handleChange}\n getPopupContainer={() => document.getElementById('lc-design-workspace')}\n style={{ width: 145 }}\n loading={loading}\n >\n {options.map((opt) => (\n <Select.Option key={opt.uid} value={opt.code}>\n <Tooltip title={opt.name}>{opt.name}</Tooltip>\n </Select.Option>\n ))}\n </Select>\n <Tooltip title={formatMessage({ id: 'luckda.lowcode.painter.dateSetSelector.setting', label: '配置字段' })}>\n <Button\n size={size}\n icon=\"setting\"\n style={{ marginLeft: 4 }}\n disabled={!currentDataset}\n onClick={() =>\n next({\n datasetUid: currentDataset.uid,\n datasetCode: currentDataset.code,\n valueKey: fieldsKey,\n component,\n })\n }\n />\n </Tooltip>\n <Tooltip title={formatMessage({ id: 'luckda.lowcode.painter.dateSetSelector.sync', label: '同步数据' })}>\n <Button\n size={size}\n icon=\"cloud-sync\"\n loading={fetchAllDatasetLoading}\n style={{ marginLeft: 4 }}\n onClick={refreshDataset}\n />\n </Tooltip>\n </Div>\n );\n};\n\nexport default DataSetSelector;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAEA,IAAMS,GAAG,GAAGC,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wCAGrB;AAED,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAQf;EAAA,IAPJC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IACZC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,cAAA,GAAAH,IAAA,CACRI,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,QAAQ,GAAAA,cAAA;IACpBE,SAAS,GAAAL,IAAA,CAATK,SAAS;IACTC,IAAI,GAAAN,IAAA,CAAJM,IAAI;IACJC,MAAM,GAAAP,IAAA,CAANO,MAAM;IACNC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;EAEJ,IAAAC,SAAA,GAA8B,IAAAC,eAAQ,EAAC,EAAE,CAAC;IAAAC,UAAA,OAAAC,eAAA,CAAAC,OAAA,EAAAJ,SAAA;IAAnCK,OAAO,GAAAH,UAAA;IAAEI,UAAU,GAAAJ,UAAA;EAC1B,IAAAK,UAAA,GAA4C,IAAAN,eAAQ,EAACT,YAAY,CAAC;IAAAgB,UAAA,OAAAL,eAAA,CAAAC,OAAA,EAAAG,UAAA;IAA3DE,cAAc,GA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,CAAA+B,OAAA,CAAAkF,aAAA,CAAC3G,KAAA,CAAAoH,OAAO;IAACC,KAAK,EAAE,IAAAE,oBAAa,EAAC;MAAEC,EAAE,EAAE,6CAA6C;MAAEC,KAAK,EAAE;IAAO,CAAC;EAAE,gBAClG/H,MAAA,CAAA+B,OAAA,CAAAkF,aAAA,CAAC3G,KAAA,CAAA0H,MAAM;IACLxG,IAAI,EAAEA,IAAK;IACXyG,IAAI,EAAC,YAAY;IACjBjF,OAAO,EAAEP,sBAAuB;IAChC6E,KAAK,EAAE;MAAEY,UAAU,EAAE;IAAE,CAAE;IACzBE,OAAO,EAAEzF;EAAe,CACzB,CACM,CACN,CAAC;AAEV,CAAC;AAAC,IAAA4F,QAAA,GAAAC,OAAA,CAAAzG,OAAA,GAEad,eAAe"}
@@ -76,4 +76,5 @@ var FieldState = function FieldState(_ref) {
76
76
  type: "code"
77
77
  })));
78
78
  };
79
- var _default = exports.default = FieldState;
79
+ var _default = exports.default = FieldState;
80
+ //# sourceMappingURL=FieldState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_antd","_styledComponents","_interopRequireDefault","_PopConfirm","_FullScreenEditor","_JSEditor","_OPTIONS_","label","value","_DEFAULT_FUNC_","Wrapper","styled","div","withConfig","displayName","componentId","FieldState","_ref","defaultValue","onChange","editorRef","useRef","_useState","useState","code","_useState2","_slicedToArray2","default","editorValue","setEditorValue","handleChange","useMemoizedFn","key","val","retVal","handleEditorLayoutChange","createElement","Segmented","style","width","options","placement","title","ref","EditorComponent","JSEditor","onLayoutChange","height","showBtn","onConfirm","current","editor","getValue","setValue","Icon","type","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/FieldState.jsx"],"sourcesContent":["import React, { useRef, useState } from 'react';\nimport { useMemoizedFn } from 'ahooks';\nimport { Segmented, Icon } from 'luck-design/antd';\nimport styled from 'styled-components';\nimport PopConfirm from '../components/PopConfirm';\nimport FullScreenEditor from '../components/code-editor/FullScreenEditor';\nimport JSEditor from '../components/code-editor/JSEditor';\n\nconst _OPTIONS_ = [\n {\n label: '普通',\n value: 'normal',\n },\n {\n label: '禁用',\n value: 'disabled',\n },\n {\n label: '只读',\n value: 'readonly',\n },\n {\n label: '隐藏',\n value: 'hidden',\n },\n];\n\nconst _DEFAULT_FUNC_ = 'function isTrue() {\\n return true; \\n}';\n\nconst Wrapper = styled.div`\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 16px;\n`;\n\nconst FieldState = ({ defaultValue, onChange }) => {\n const editorRef = useRef();\n const [editorValue, setEditorValue] = useState(defaultValue?.code || _DEFAULT_FUNC_);\n\n const handleChange = useMemoizedFn((key, val) => {\n const retVal = defaultValue || {};\n retVal[key] = val;\n onChange(retVal);\n });\n\n const handleEditorLayoutChange = useMemoizedFn((code) => {\n setEditorValue(code);\n });\n\n return (\n <Wrapper>\n <Segmented\n style={{ width: '90%' }}\n options={_OPTIONS_}\n defaultValue={defaultValue?.value || 'normal'}\n onChange={(val) => handleChange('value', val)}\n />\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={() => {\n const val = editorRef.current.editor.getValue();\n editorRef.current.editor.setValue(val);\n handleChange('code', val);\n }}\n >\n <Icon type=\"code\" />\n </PopConfirm>\n </Wrapper>\n );\n};\n\nexport default FieldState;\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,WAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,iBAAA,GAAAF,sBAAA,CAAAJ,OAAA;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
  onChange: handleChange
378
378
  }) : null) : null);
379
379
  };
380
- var _default = exports.default = FieldsSetting;
380
+ var _default = exports.default = FieldsSetting;
381
+ //# sourceMappingURL=FieldsSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_luckDesign","_antd","_styledComponents","_interopRequireDefault","_lodash","_utils","_ContextProvider","_SortBox","_ListEditor","_fieldSetting","_BatchSetting","_apiUrl","_helper","_fieldsSetting","_I18N_PREFIX_","_PICK_KEYS_","Header","styled","div","withConfig","displayName","componentId","FieldKey","Ellipsis","FieldsSetting","_ref","component","datasetUid","nodeId","defaultValue","onChange","ctx","useContext","_useReducer","useReducer","listReducer","_useReducer2","_slicedToArray2","default","fields","dispatch","_useState","useState","_useState2","fieldId","setFieldId","_useMap","useMap","_useMap2","checkedFields","_useMap2$","set","get","setAll","remove","reset","_useState3","_useState4","drawerType","setDrawerType","_useState5","_useState6","checkAll","setCheckAll","fieldData","useCreation","find","_ref2","uid","useUpdateEffect","size","length","_useRequest","useRequest","fetchFieldsByDataset","defaultParams","moduleUid","getLDMetaAttr","onSuccess","_ref3","code","list","detail","_fields","unionBy","reduce","ret","_val","includes","_type","push","map","id","_fieldData","restProps","fieldAliasName","extra","JSON","parse","alignMapping","align","scell_alignment","headerAlign","sheading_alignment","property","_extra","complexConfig","isTree","opt_show_tree","datasetKey","opt_dataset","dataModelKey","opt_data_model","_objectSpread2","field","isEqual","type","payload","_field","loading","handleChange","useMemoizedFn","newFields","pick","handleSortChange","sortItems","fromIndex","toIndex","callback","gridApi","componentMap","api","self","ref","current","columnApi","moveColumnByIndex","handleAliasChange","value","data","setTimeout","col","getColumn","colDef","headerName","refreshHeader","handleFieldCheckChange","e","_e$target","target","checked","handleFieldCheckAll","handleBatchSetting","handleAddFormDivider","index","groupId","concat","suid","fieldName","renderItemRight","createElement","key","style","display","alignItems","Input","flex","Tooltip","title","formatMessage","label","Icon","margin","cursor","onClick","Fragment","Spin","spinning","Checkbox","marginLeft","disabled","indeterminate","width","paddingLeft","SortBox","datas","_ref4","ListEditor","marginTop","suppressAdd","addText","addIcon","handleAdd","addBtnProps","SortItem","ListEditorItem","left","tooltip","lines","right","item","onAddLine","Drawer","visible","mask","onClose","getContainer","document","getElementById","destroyOnClose","className","styles","position","transform","moduleId","datasetId","onAliasChange","fieldsData","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/FieldsSetting.jsx"],"sourcesContent":["import React, { useReducer, useState } from 'react';\nimport { useMemoizedFn, useRequest, useCreation, useMap, useUpdateEffect } from 'ahooks';\nimport { Ellipsis } from 'luck-design';\nimport { Spin, Input, Tooltip, Icon, Checkbox, Drawer } from 'luck-design/antd';\nimport styled from 'styled-components';\nimport { reduce, unionBy, isEqual, pick } from 'lodash';\nimport { formatMessage, suid } from '@luck-design-biz/base/utils';\nimport { useContext } from '../../engine/provider/ContextProvider';\nimport { SortBox, SortItem } from '../components/SortBox';\nimport { ListEditor, ListEditorItem } from '../components/ListEditor';\nimport FieldSetting from '../components/field-setting';\nimport BatchSetting from '../components/field-setting/BatchSetting';\nimport { fetchFieldsByDataset } from '../../constants/api-url';\nimport { listReducer, getLDMetaAttr } from '../../engine/tools/helper';\nimport styles from '../style/fields-setting.less';\n\nconst _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.fieldsSetting';\n\nconst _PICK_KEYS_ = [\n 'id',\n 'uid',\n 'field',\n 'width',\n 'align',\n 'headerAlign',\n 'pinned',\n 'tip',\n 'render',\n 'col',\n 'row',\n 'note',\n 'placeholder',\n 'fieldAliasName',\n 'complexConfig',\n 'formMode',\n];\n\nconst Header = styled.div`\n width: 100%;\n display: flex;\n align-items: center;\n font-size: 12px;\n font-weight: bold;\n`;\n\nconst FieldKey = styled(Ellipsis)`\n width: 80px;\n margin-left: 4px;\n`;\n\nconst FieldsSetting = ({ component, datasetUid, nodeId, defaultValue, onChange }) => {\n const ctx = useContext();\n const [fields, dispatch] = useReducer(listReducer, []);\n const [fieldId, setFieldId] = useState(null);\n const [checkedFields, { set, get, setAll, remove, reset }] = useMap([]);\n const [drawerType, setDrawerType] = useState(void 0);\n const [checkAll, setCheckAll] = useState(false);\n\n const fieldData = useCreation(() => fields.find(({ uid }) => uid === fieldId), [fieldId, fields]);\n\n useUpdateEffect(() => {\n if (checkedFields.size === fields.length) {\n setCheckAll(true);\n } else if (checkedFields.size === 0) {\n setCheckAll(false);\n }\n }, [checkedFields, fields]);\n\n const { loading } = useRequest(fetchFieldsByDataset, {\n defaultParams: [{ datasetUid, moduleUid: getLDMetaAttr('moduleId') }],\n onSuccess: ({ code, list, detail }) => {\n if (code === 1) {\n const _fields = unionBy(\n reduce(\n defaultValue,\n (ret, _val) => {\n if (list.includes(_val.uid) || _val._type === 'divider') {\n ret.push(_val);\n }\n return ret;\n },\n [],\n ),\n list.map((id) => {\n const _fieldData = detail[id];\n const restProps = { fieldAliasName: _fieldData.fieldAliasName };\n if (['table', 'tableForm'].includes(component)) {\n const extra = JSON.parse(_fieldData.extra || '{}');\n const alignMapping = { 0: 'left', 1: 'center', 2: 'right' };\n restProps.align = alignMapping[extra.scell_alignment];\n restProps.headerAlign = alignMapping[extra.sheading_alignment];\n }\n if(_fieldData.property === \"complex\") {\n const _extra = JSON.parse(_fieldData.extra || '{}');\n restProps.complexConfig = {\n isTree: _extra.opt_show_tree,\n datasetKey: _extra.opt_dataset,\n dataModelKey: _extra.opt_data_model,\n }\n }\n return { uid: id, field: detail[id].field, ...restProps };\n }),\n 'uid',\n );\n if (!isEqual(_fields, defaultValue)) {\n onChange(_fields);\n }\n dispatch({\n type: 'init',\n payload: _fields.map((_field) => ({ ...detail[_field.uid], ..._field })),\n });\n }\n },\n });\n\n const handleChange = useMemoizedFn((newFields) => {\n onChange(\n newFields.map((_fieldData) =>\n _fieldData._type === 'divider' ? _fieldData : pick(_fieldData, _PICK_KEYS_),\n ),\n );\n });\n\n const handleSortChange = useMemoizedFn((sortItems, fromIndex, toIndex) => {\n dispatch({\n type: 'sort',\n payload: sortItems,\n callback: (newFields) => {\n if (component === 'table') {\n const { gridApi } = ctx.componentMap.get(nodeId).api.self.ref.current;\n gridApi.columnApi.moveColumnByIndex(fromIndex, toIndex);\n }\n handleChange(newFields);\n },\n });\n });\n\n const handleAliasChange = useMemoizedFn((field, value) => {\n dispatch({\n type: 'edit',\n payload: { id: field.uid, data: { fieldAliasName: value } },\n callback: (newFields) => {\n if (component === 'table') {\n setTimeout(() => {\n const { gridApi } = ctx.componentMap.get(nodeId).api.self.ref.current;\n const col = gridApi.columnApi.getColumn(field.field);\n col.colDef.headerName = value;\n gridApi.api.refreshHeader();\n });\n }\n handleChange(newFields);\n },\n });\n });\n\n const handleFieldCheckChange = useMemoizedFn((e) => {\n const { checked, data } = e.target;\n if (checked) {\n set(data.uid, data);\n } else {\n remove(data.uid, data);\n }\n });\n\n const handleFieldCheckAll = useMemoizedFn((e) => {\n if (e.target.checked) {\n setAll(fields.map((_field) => [_field.uid, _field]));\n } else {\n reset();\n }\n });\n\n const handleBatchSetting = useMemoizedFn(() => {\n setDrawerType('batch');\n });\n\n const handleAddFormDivider = useMemoizedFn((index) => {\n const groupId = `group_${suid()}`;\n dispatch({\n type: 'insert',\n payload: {\n index,\n data: {\n uid: groupId,\n id: groupId,\n field: groupId,\n fieldName: 'Group',\n _type: 'divider',\n },\n },\n callback: handleChange,\n });\n });\n\n const renderItemRight = useMemoizedFn((field) => {\n return (\n <div key={field.uid} style={{ display: 'flex', alignItems: 'center' }}>\n <Input\n value={field.fieldAliasName}\n size=\"small\"\n style={{ flex: 1 }}\n onChange={(e) => handleAliasChange(field, e.target.value)}\n />\n {field._type === 'divider' ? (\n <Tooltip title={formatMessage({ id: 'luckda.lowcode.painter.delete', label: '删除' })}>\n <Icon\n type=\"delete\"\n style={{ margin: '0 4px', cursor: 'pointer' }}\n onClick={() => {\n dispatch({\n type: 'delete',\n payload: field.id,\n callback: handleChange,\n });\n }}\n />\n </Tooltip>\n ) : (\n <Tooltip title={formatMessage({ id: 'luckda.lowcode.painter.edit', label: '编辑' })}>\n <Icon\n type=\"edit\"\n style={{ margin: '0 4px', cursor: 'pointer' }}\n onClick={() => {\n setFieldId(field.uid);\n setDrawerType('single');\n }}\n />\n </Tooltip>\n )}\n </div>\n );\n });\n\n return (\n <>\n <Spin spinning={loading}>\n <Header>\n <Checkbox\n style={{ marginLeft: 20 }}\n disabled={drawerType === 'batch'}\n checked={checkAll}\n indeterminate={checkedFields.size > 0 && checkedFields.size !== fields.length}\n onChange={handleFieldCheckAll}\n />\n <div style={{ width: 80, paddingLeft: 4 }}>\n {formatMessage({ id: `${_I18N_PREFIX_}.field`, label: '数据字段' })}\n </div>\n <div style={{ flex: 1, paddingLeft: 20 }}>\n {formatMessage({ id: `${_I18N_PREFIX_}.title`, label: '标题' })}\n </div>\n </Header>\n <SortBox datas={fields.map(({ uid }) => uid)} onChange={handleSortChange}>\n <ListEditor\n style={{ marginTop: 8 }}\n suppressAdd={checkedFields.size === 0}\n addText={formatMessage({ id: `${_I18N_PREFIX_}.batch`, label: '批量设置' })}\n addIcon=\"unordered-list\"\n handleAdd={handleBatchSetting}\n addBtnProps={{ disabled: drawerType === 'batch' }}\n >\n {fields.map((field, index) => (\n <SortItem key={field.uid} id={field.uid}>\n <ListEditorItem\n left={\n <>\n {field._type !== 'divider' ? (\n <Checkbox\n disabled={drawerType === 'batch'}\n data={field}\n checked={!!get(field.uid)}\n onChange={handleFieldCheckChange}\n />\n ) : null}\n <FieldKey\n tooltip\n lines={1}\n style={field._type === 'divider' ? { marginLeft: 20 } : null}\n >\n {field.field}\n </FieldKey>\n </>\n }\n right={renderItemRight(field)}\n item={field}\n dispatch={dispatch}\n onAddLine={component === 'form' ? () => handleAddFormDivider(index) : false}\n />\n </SortItem>\n ))}\n </ListEditor>\n </SortBox>\n </Spin>\n {!!drawerType ? (\n <Drawer\n visible\n width={280}\n mask={false}\n onClose={() => setDrawerType(void 0)}\n title={\n drawerType === 'single'\n ? fieldData.fieldAliasName\n : formatMessage({ id: `${_I18N_PREFIX_}.batch`, label: '批量设置' })\n }\n getContainer={() => document.getElementById('lc-design-workspace')}\n destroyOnClose\n className={styles['lc-painter-panel-field-setting-drawer']}\n style={{ position: 'absolute', transform: 'none', right: 320 }}\n >\n {drawerType === 'single' ? (\n <FieldSetting\n key={fieldId}\n dispatch={dispatch}\n nodeId={nodeId}\n fieldData={fieldData}\n dataModelKey={getLDMetaAttr('dataModelKey')}\n moduleId={getLDMetaAttr('moduleId')}\n datasetId={datasetUid}\n component={component}\n onAliasChange={handleAliasChange}\n onChange={handleChange}\n />\n ) : null}\n {drawerType === 'batch' ? (\n <BatchSetting\n dispatch={dispatch}\n nodeId={nodeId}\n fieldsData={checkedFields}\n dataModelKey={getLDMetaAttr('dataModelKey')}\n moduleId={getLDMetaAttr('moduleId')}\n datasetId={datasetUid}\n component={component}\n onChange={handleChange}\n />\n ) : null}\n </Drawer>\n ) : null}\n </>\n );\n};\n\nexport default FieldsSetting;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,gBAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AACA,IAAAW,aAAA,GAAAN,sBAAA,CAAAL,OAAA;AACA,IAAAY,aAAA,GAAAP,sBAAA,CAAAL,OAAA;AACA,IAAAa,OAAA,GAAAb,OAAA;AACA,IAAAc,OAAA,GAAAd,OAAA;AACA,IAAAe,cAAA,GAAAV,sBAAA,CAAAL,OAAA;AAEA,IAAMgB,aAAa,GAAG,oDAAoD;AAE1E,IAAMC,WAAW,GAAG,CA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AAU;IACrBI,QAAQ,EAAE0F;EAAa,CACxB,CAAC,GACA,IACE,CAAC,GACP,IACJ,CAAC;AAEP,CAAC;AAAC,IAAAkG,QAAA,GAAAC,OAAA,CAAArL,OAAA,GAEad,aAAa"}
@@ -60,4 +60,5 @@ var GroupClassSelector = function GroupClassSelector(_ref) {
60
60
  }, item.label);
61
61
  }));
62
62
  };
63
- var _default = exports.default = GroupClassSelector;
63
+ var _default = exports.default = GroupClassSelector;
64
+ //# sourceMappingURL=GroupClassSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_antd","_services","GroupClassSelector","_ref","defaultValue","onChange","_useState","useState","_useState2","_slicedToArray2","default","options","setOptions","useAsyncEffect","_asyncToGenerator2","_regeneratorRuntime2","mark","_callee","_yield$readAllClass","code","list","detail","data","wrap","_callee$","_context","prev","next","readAllClass","sent","map","id","key","skey","label","sname","stop","createElement","Select","val","size","item","Option","value","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/GroupClassSelector.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { useAsyncEffect } from 'ahooks';\nimport { Select } from 'luck-design/antd';\nimport { readAllClass } from '@luck-design-biz/base/lib/sys/services';\n\nconst GroupClassSelector = ({ defaultValue, onChange }) => {\n const [options, setOptions] = useState([]);\n\n useAsyncEffect(async () => {\n const { code, list, detail } = await readAllClass();\n if (code === 1) {\n const data = list.map((id) => ({\n key: detail[id].skey,\n label: detail[id].sname,\n }));\n setOptions(data);\n }\n }, []);\n\n return (\n <Select defaultValue={defaultValue} onChange={(val)=> onChange(val)} size='small'>\n {options.map((item) => (\n <Select.Option key={item.key} value={item.key}>\n {item.label}\n </Select.Option>\n ))}\n </Select>\n );\n};\n\nexport default GroupClassSelector;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,O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W,IAAA;MAAA;IAAA,GAAAnB,OAAA;EAAA,CACF,IAAE,EAAE,CAAC;EAEN,oBACErB,MAAA,CAAAc,OAAA,CAAA2B,aAAA,CAACrC,KAAA,CAAAsC,MAAM;IAAClC,YAAY,EAAEA,YAAa;IAACC,QAAQ,EAAE,SAAAA,SAACkC,GAAG;MAAA,OAAIlC,SAAQ,CAACkC,GAAG,CAAC;IAAA,CAAC;IAACC,IAAI,EAAC;EAAO,GAC9E7B,OAAO,CAACmB,GAAG,CAAC,UAACW,IAAI;IAAA,oBAChB7C,MAAA,CAAAc,OAAA,CAAA2B,aAAA,CAACrC,KAAA,CAAAsC,MAAM,CAACI,MAAM;MAACV,GAAG,EAAES,IAAI,CAACT,GAAI;MAACW,KAAK,EAAEF,IAAI,CAACT;IAAI,GAC3CS,IAAI,CAACP,KACO,CAAC;EAAA,CACjB,CACK,CAAC;AAEb,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,CAAAnC,OAAA,GAEaR,kBAAkB"}
@@ -40,4 +40,5 @@ var I18nInput = function I18nInput(_ref) {
40
40
  size: size
41
41
  });
42
42
  };
43
- var _default = exports.default = I18nInput;
43
+ var _default = exports.default = I18nInput;
44
+ //# sourceMappingURL=I18nInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_ahooks","_antd","I18nInput","_ref","defaultValue","onChange","size","wrapped","disabled","_useDebounceFn","useDebounceFn","wait","run","default","createElement","Input","TextArea","rows","e","_e$target$value","target","value","trim","autoSize","style","resize","_e$target$value2","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/I18nInput.jsx"],"sourcesContent":["import React from 'react';\nimport { useDebounceFn } from 'ahooks';\nimport { Input } from 'luck-design/antd';\n\nconst I18nInput = ({ defaultValue, onChange, size, wrapped, disabled }) => {\n const { run } = useDebounceFn(onChange, { wait: 400 });\n\n return wrapped === 'textarea' ? (\n <Input.TextArea\n rows={4}\n defaultValue={defaultValue}\n onChange={(e) => run(e.target.value?.trim())}\n size={size}\n autoSize={false}\n style={{ resize: 'none' }}\n disabled={disabled}\n />\n ) : (\n <Input defaultValue={defaultValue} onChange={(e) => run(e.target.value?.trim())} size={size} />\n );\n};\n\nexport default I18nInput;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEA,IAAMG,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAA4D;EAAA,IAAtDC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IAAEC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;EAClE,IAAAC,cAAA,GAAgB,IAAAC,qBAAa,EAACL,QAAQ,EAAE;MAAEM,IAAI,EAAE;IAAI,CAAC,CAAC;IAA9CC,GAAG,GAAAH,cAAA,CAAHG,GAAG;EAEX,OAAOL,OAAO,KAAK,UAAU,gBAC3BV,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACb,KAAA,CAAAc,KAAK,CAACC,QAAQ;IACbC,IAAI,EAAE,CAAE;IACRb,YAAY,EAAEA,YAAa;IAC3BC,QAAQ,EAAE,SAAAA,SAACa,CAAC;MAAA,IAAAC,eAAA;MAAA,OAAKP,GAAG,EAAAO,eAAA,GAACD,CAAC,CAACE,MAAM,CAACC,KAAK,cAAAF,eAAA,uBAAdA,eAAA,CAAgBG,IAAI,CAAC,CAAC,CAAC;IAAA,CAAC;IAC7ChB,IAAI,EAAEA,IAAK;IACXiB,QAAQ,EAAE,KAAM;IAChBC,KAAK,EAAE;MAAEC,MAAM,EAAE;IAAO,CAAE;IAC1BjB,QAAQ,EAAEA;EAAS,CACpB,CAAC,gBAEFX,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACb,KAAA,CAAAc,KAAK;IAACX,YAAY,EAAEA,YAAa;IAACC,QAAQ,EAAE,SAAAA,SAACa,CAAC;MAAA,IAAAQ,gBAAA;MAAA,OAAKd,GAAG,EAAAc,gBAAA,GAACR,CAAC,CAACE,MAAM,CAACC,KAAK,cAAAK,gBAAA,uBAAdA,gBAAA,CAAgBJ,IAAI,CAAC,CAAC,CAAC;IAAA,CAAC;IAAChB,IAAI,EAAEA;EAAK,CAAE,CAC/F;AACH,CAAC;AAAC,IAAAqB,QAAA,GAAAC,OAAA,CAAAf,OAAA,GAEaX,SAAS"}
@@ -58,4 +58,5 @@ function _default(_ref) {
58
58
  }), /*#__PURE__*/_react.default.createElement("span", {
59
59
  className: _icon.default['selecor']
60
60
  }, "\u8BF7\u9009\u62E9 >"));
61
- }
61
+ }
62
+ //# sourceMappingURL=Icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_icon","_interopRequireDefault","_IconFont","_default","_ref","defaultValue","next","onClick","value","_useState","useState","_useState2","_slicedToArray2","default","val","setVal","useLayoutEffect","createElement","className","styles","apply","arguments","onSelect","type"],"sources":["../../../../luckda/lowcode/painter/panel-section/Icon.jsx"],"sourcesContent":["import React, { useState, useLayoutEffect } from 'react';\nimport styles from '../style/icon.less';\nimport IconFont from '../../../components/IconFont';\n/**\n * 一个简单的图标选择器组件,展示了一个图标并允许用户点击选择。\n * 该组件使用了`Icon.createFromIconfontCN`来创建一个可以从Iconfont.cn加载图标的`IconFont`组件。\n * 当图标被点击时,会调用`onSelect`回调函数,并传递一个对象,其中包含了`field`字段。\n *\n * @component\n * @example\n * ```jsx\n * <IconSelector\n * field=\"iconField\"\n * onSelect={({ field }) => console.log(`Selected icon field: ${field}`)}\n * defaultValue=\"icon-example\"\n * />\n * ```\n *\n * @param {Object} props 组件的props\n * @param {string} props.field 用于识别选择的图标字段的标识符。\n * @param {Function} props.onSelect 当图标被点击时触发的回调函数。\n * 接收一个对象参数,该对象包含`field`字段。\n * @param {string} [props.defaultValue='iconyingyongguanli'] 初始化时图标的类型,\n * 默认为'iconyingyongguanli'。\n *\n * @returns {React.Element} 渲染的React元素。\n */\nexport default function ({ defaultValue, next, onClick, value }) {\n\n const [val, setVal] = useState(value || defaultValue);\n\n useLayoutEffect(()=>{\n setVal(value);\n },[value]);\n\n return (\n <div\n className={styles['lc-painter-panel-section-icon']}\n onClick={(...rest) => onClick ? onClick(...rest) : next({ onSelect: setVal })}\n >\n <IconFont type={val ?? 'iconyingyongguanli'} />\n <span className={styles['selecor']}>请选择 &gt;</span>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,SAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAAI,SAAAC,IAAA,EAAkD;EAAA,IAAtCC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IAAEC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAEC,QAAO,GAAAH,IAAA,CAAPG,OAAO;IAAEC,KAAK,GAAAJ,IAAA,CAALI,KAAK;EAE3D,IAAAC,SAAA,GAAsB,IAAAC,eAAQ,EAACF,KAAK,IAAIH,YAAY,CAAC;IAAAM,UAAA,OAAAC,eAAA,CAAAC,OAAA,EAAAJ,SAAA;IAA9CK,GAAG,GAAAH,UAAA;IAAEI,MAAM,GAAAJ,UAAA;EAElB,IAAAK,sBAAe,EAAC,YAAI;IAClBD,MAAM,CAACP,KAAK,CAAC;EACf,CAAC,EAAC,CAACA,KAAK,CAAC,CAAC;EAEV,oBACEX,MAAA,CAAAgB,OAAA,CAAAI,aAAA;IACEC,SAAS,EAAEC,aAAM,CAAC,+BAA+B,CAAE;IACnDZ,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAaA,QAAO,GAAGA,QAAO,CAAAa,KAAA,SAAAC,SAAQ,CAAC,GAAGf,IAAI,CAAC;QAAEgB,QAAQ,EAAEP;MAAO,CAAC,CAAC;IAAA;EAAC,gBAE9ElB,MAAA,CAAAgB,OAAA,CAAAI,aAAA,CAACf,SAAA,CAAAW,OAAQ;IAACU,IAAI,EAAET,GAAG,aAAHA,GAAG,cAAHA,GAAG,GAAI;EAAqB,CAAE,CAAC,eAC/CjB,MAAA,CAAAgB,OAAA,CAAAI,aAAA;IAAMC,SAAS,EAAEC,aAAM,CAAC,SAAS;EAAE,GAAC,sBAAc,CAC/C,CAAC;AAEV"}
@@ -116,4 +116,5 @@ var IconConditionSelector = function IconConditionSelector(_ref) {
116
116
  });
117
117
  })));
118
118
  };
119
- var _default = exports.default = IconConditionSelector;
119
+ var _default = exports.default = IconConditionSelector;
120
+ //# sourceMappingURL=IconConditionSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_lodash","_ahooks","_antd","_utils","_ListEditor","_Icon","_interopRequireDefault","_IconSelector","_JSEditor","_I18N_PREFIX_","IconConditionSelector","_ref","defaultValue","onChange","defaultCode","_useState","useState","cloneDeep","_useState2","_slicedToArray2","default","list","setList","handleChange","useMemoizedFn","type","index","value","_list","_objectSpread2","icon","condition","splice","renderItemRight","item","createElement","Fragment","Tooltip","title","formatMessage","id","label","mustConfirm","Icon","style","marginRight","cursor","onClick","width","padding","ListEditor","addText","concat","handleAdd","map","ListEditorItem","sortable","left","Popover","placement","content","trigger","right","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/IconConditionSelector.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { cloneDeep } from 'lodash';\nimport { useMemoizedFn } from 'ahooks';\nimport { Tooltip, Icon, Popover } from 'luck-design/antd';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { ListEditor, ListEditorItem } from '../components/ListEditor';\nimport IconChoice from './Icon';\nimport IconSelector from './IconSelector';\nimport JSEditor from './JSEditor';\n\nconst _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.iconConditionSelector';\n\nconst IconConditionSelector = ({ defaultValue, onChange, defaultCode }) => {\n\n\tconst [list, setList] = useState(cloneDeep(defaultValue));\n\n\tconst handleChange = useMemoizedFn((type, index, value) => {\n\t\tconst _list = cloneDeep(list);\n\t\tswitch (type) {\n\t\t\tcase 'icon':\n\t\t\t\t_list[index] = { ..._list[index], icon: value };\n\t\t\t\tbreak;\n\t\t\tcase 'code':\n\t\t\t\t_list[index] = { ..._list[index], condition: value };\n\t\t\t\tbreak;\n\t\t\tcase 'delete':\n\t\t\t\t_list.splice(index, 1);\n\t\t\t\tbreak;\n\t\t\tdefault: ;\n\t\t}\n\t\tsetList(_list);\n\t\tonChange(_list);\n\t})\n\n\tconst renderItemRight = useMemoizedFn((item, index) => (\n\t\t<>\n\t\t\t<Tooltip\n\t\t\t\ttitle={formatMessage({ id: 'luckda.lowcode.painter.bindCondition', label: '绑定条件' })}\n\t\t\t>\n\t\t\t\t<JSEditor mustConfirm defaultCode={defaultCode} onChange={(value) => handleChange('code', index, value)}>\n\t\t\t\t\t<Icon\n\t\t\t\t\t\ttype=\"paper-clip\"\n\t\t\t\t\t\tstyle={{ marginRight: '8px', cursor: 'pointer' }}\n\t\t\t\t\t/>\n\t\t\t\t</JSEditor>\n\t\t\t</Tooltip>\n\t\t\t<Tooltip title={formatMessage({ id: 'luckda.lowcode.painter.delete', label: '删除' })}>\n\t\t\t\t<Icon\n\t\t\t\t\ttype=\"delete\"\n\t\t\t\t\tstyle={{ marginRight: '8px', cursor: 'pointer' }}\n\t\t\t\t\tonClick={() => handleChange('delete', index)}\n\t\t\t\t/>\n\t\t\t</Tooltip>\n\t\t</>\n\t));\n\n\treturn (\n\t\t<div style={{ width: '100%', padding: '0 16px' }}>\n\t\t\t<ListEditor\n\t\t\t\taddText={formatMessage({ id: `${_I18N_PREFIX_}.add`, label: '添加条件' })}\n\t\t\t\thandleAdd={() => {\n\t\t\t\t\tconst _list = list.concat([{}]);\n\t\t\t\t\tsetList(_list);\n\t\t\t\t\tonChange(_list);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{list.map((item, index) => (\n\t\t\t\t\t<ListEditorItem\n\t\t\t\t\t\tsortable={false}\n\t\t\t\t\t\tleft={(\n\t\t\t\t\t\t\t<Popover\n\t\t\t\t\t\t\t\tplacement=\"left\"\n\t\t\t\t\t\t\t\tcontent={\n\t\t\t\t\t\t\t\t\t<IconSelector\n\t\t\t\t\t\t\t\t\t\tvalue={item.icon}\n\t\t\t\t\t\t\t\t\t\tonChange={(value) => handleChange('icon', index, value)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttrigger='click'\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<IconChoice value={item.icon} />\n\t\t\t\t\t\t\t</Popover>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tright={renderItemRight(item, index)}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t</ListEditor>\n\t\t</div>\n\t);\n}\nexport default IconConditionSelector;"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAD,sBAAA,CAAAP,OAAA;AACA,IAAAS,SAAA,GAAAF,sBAAA,CAAAP,OAAA;AAEA,IAAMU,aAAa,GAAG,4DAA4D;AAElF,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAAC,IAAA,EAAgD;EAAA,IAA1CC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,oBAAa,EAAC;MAAEC,EAAE,KAAAY,MAAA,CAAK3C,aAAa,SAAM;MAAEgC,KAAK,EAAE;IAAO,CAAC,CAAE;IACtEY,SAAS,EAAE,SAAAA,UAAA,EAAM;MAChB,IAAMzB,KAAK,GAAGP,IAAI,CAAC+B,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;MAC/B9B,OAAO,CAACM,KAAK,CAAC;MACdf,QAAQ,CAACe,KAAK,CAAC;IAChB;EAAE,GAEDP,IAAI,CAACiC,GAAG,CAAC,UAACpB,IAAI,EAAER,KAAK;IAAA,oBACrB7B,MAAA,CAAAuB,OAAA,CAAAe,aAAA,CAAC/B,WAAA,CAAAmD,cAAc;MACdC,QAAQ,EAAE,KAAM;MAChBC,IAAI,eACH5D,MAAA,CAAAuB,OAAA,CAAAe,aAAA,CAACjC,KAAA,CAAAwD,OAAO;QACPC,SAAS,EAAC,MAAM;QAChBC,OAAO,eACN/D,MAAA,CAAAuB,OAAA,CAAAe,aAAA,CAAC5B,aAAA,CAAAa,OAAY;UACZO,KAAK,EAAEO,IAAI,CAACJ,IAAK;UACjBjB,QAAQ,EAAE,SAAAA,SAACc,KAAK;YAAA,OAAKJ,YAAY,CAAC,MAAM,EAAEG,KAAK,EAAEC,KAAK,CAAC;UAAA;QAAC,CACxD,CACD;QACDkC,OAAO,EAAC;MAAO,gBAEfhE,MAAA,CAAAuB,OAAA,CAAAe,aAAA,CAAC9B,KAAA,CAAAe,OAAU;QAACO,KAAK,EAAEO,IAAI,CAACJ;MAAK,CAAE,CACvB,CACR;MACFgC,KAAK,EAAE7B,eAAe,CAACC,IAAI,EAAER,KAAK;IAAE,CACpC,CAAC;EAAA,CACF,CACU,CACR,CAAC;AAER,CAAC;AAAA,IAAAqC,QAAA,GAAAC,OAAA,CAAA5C,OAAA,GACcV,qBAAqB"}
@@ -141,4 +141,5 @@ function _default(_ref) {
141
141
  type: "".concat(iconData.css_prefix_text).concat(iconItem.font_class)
142
142
  })));
143
143
  })));
144
- }
144
+ }
145
+ //# sourceMappingURL=IconSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_antd","_ahooks","_iconSelector","_interopRequireDefault","_utils","_apiUrl","Search","Input","_default","_ref","onChange","onSelect","_useState","useState","_useState2","_slicedToArray2","default","iconData","setIconData","_useState3","_useState4","searchTerm","setSearchTerm","IconFont","Icon","createFromIconfontCN","scriptUrl","ICONLIST_JS","getIconList","_getIconList","apply","arguments","_asyncToGenerator2","_regeneratorRuntime2","mark","_callee2","wrap","_callee2$","_context2","prev","next","abrupt","request","ICONLIST_URL","method","stop","useEffect","fetchData","_ref2","_callee","data","_callee$","_context","sent","t0","console","error","handleSearch","useCallback","e","target","value","toLowerCase","filteredData","useMemo","glyphs","filter","item","name","includes","font_class","handleClick","useMemoizedFn","icon","_iconfont","concat","css_prefix_text","createElement","className","styles","placeholder","formatMessage","id","label","length","map","iconItem","key","onClick","Tooltip","placement","title","type"],"sources":["../../../../luckda/lowcode/painter/panel-section/IconSelector.jsx"],"sourcesContent":["import React, { useEffect, useState, useMemo, useCallback } from 'react';\nimport { Icon, Input, Tooltip } from 'luck-design/antd';\nimport { useMemoizedFn } from 'ahooks';\nimport styles from '../style/icon-selector.less';\nimport { request } from '@luck-design-biz/base/utils';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { ICONLIST_URL, ICONLIST_JS } from '../../constants/api-url';\n\nconst { Search } = Input;\n\n/**\n * 一个用于选择图标的组件,提供了图标的搜索和选择功能。\n *\n * 该组件首先从预定义的URL加载图标列表,然后显示这些图标。用户可以通过输入框搜索图标,\n * 点击图标时,会通过 `onChange` 回调将选中的图标信息返回给父组件。\n *\n * @component\n * @example\n * ```jsx\n * <IconSelector\n * onChange={(selectedIcon) => console.log(selectedIcon)}\n * />\n * ```\n *\n * @param {Object} props 组件接受的props\n * @param {Function} props.onChange 当图标被选中时触发的回调函数,接受选中图标的信息作为参数\n */\nexport default function ({ onChange, onSelect }) {\n const [iconData, setIconData] = useState(null);\n const [searchTerm, setSearchTerm] = useState('');\n\n const IconFont = Icon.createFromIconfontCN({\n scriptUrl: ICONLIST_JS,\n });\n\n async function getIconList() {\n return request(ICONLIST_URL, {\n method: 'get',\n });\n }\n\n useEffect(() => {\n const fetchData = async () => {\n try {\n const data = await getIconList();\n setIconData(data);\n } catch (error) {\n console.error('获取数据失败', error);\n }\n };\n fetchData();\n }, []);\n\n const handleSearch = useCallback((e) => {\n setSearchTerm(e.target.value.toLowerCase());\n }, []);\n\n const filteredData = useMemo(() => {\n if (iconData && iconData.glyphs) {\n return iconData.glyphs.filter(\n (item) =>\n item.name.toLowerCase().includes(searchTerm) ||\n item.font_class.toLowerCase().includes(searchTerm),\n );\n }\n return [];\n }, [iconData, searchTerm]);\n\n const handleClick = useMemoizedFn((icon) => {\n const _iconfont = `${iconData.css_prefix_text}${icon.font_class}`;\n onSelect?.(_iconfont);\n onChange(_iconfont);\n });\n\n return (\n <div className={styles['lc-painter-panel-section-iconselector']}>\n <div className={styles['components-search']}>\n <Search\n placeholder={formatMessage({\n id: 'luckda.lowcode.painter.components.search',\n label: '搜索组件',\n })}\n onChange={handleSearch}\n />\n </div>\n\n <div className={styles['icon-warp']}>\n {filteredData &&\n filteredData.length > 0 &&\n filteredData.map((iconItem) => (\n <div\n key={iconItem.font_class}\n className={styles['icon-box']}\n onClick={() => handleClick(iconItem)}\n >\n <Tooltip placement=\"top\" title={iconItem.name}>\n <IconFont\n className={styles['icon-item']}\n type={`${iconData.css_prefix_text}${iconItem.font_class}`}\n />\n </Tooltip>\n </div>\n ))}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAEA,IAAAM,O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mB,OAAA,CAAA6D,aAAA;MACEU,GAAG,EAAED,QAAQ,CAAChB,UAAW;MACzBQ,SAAS,EAAEC,qBAAM,CAAC,UAAU,CAAE;MAC9BS,OAAO,EAAE,SAAAA,QAAA;QAAA,OAAMjB,WAAW,CAACe,QAAQ,CAAC;MAAA;IAAC,gBAErCzF,MAAA,CAAAmB,OAAA,CAAA6D,aAAA,CAAC7E,KAAA,CAAAyF,OAAO;MAACC,SAAS,EAAC,KAAK;MAACC,KAAK,EAAEL,QAAQ,CAAClB;IAAK,gBAC5CvE,MAAA,CAAAmB,OAAA,CAAA6D,aAAA,CAACtD,QAAQ;MACPuD,SAAS,EAAEC,qBAAM,CAAC,WAAW,CAAE;MAC/Ba,IAAI,KAAAjB,MAAA,CAAK1D,QAAQ,CAAC2D,eAAe,EAAAD,MAAA,CAAGW,QAAQ,CAAChB,UAAU;IAAG,CAC3D,CACM,CACN,CAAC;EAAA,CACP,CACA,CACF,CAAC;AAEV"}
@@ -164,4 +164,5 @@ var ImpExp = function ImpExp(_ref) {
164
164
  }, opt.label));
165
165
  }))));
166
166
  };
167
- var _default = exports.default = ImpExp;
167
+ var _default = exports.default = ImpExp;
168
+ //# sourceMappingURL=ImpExp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_antd","_utils","_lodash","_ContextProvider","_PanelItem","_interopRequireDefault","_I18N_PREFIX_","ImpExp","_ref","defaultValue","onChange","_useSetState","useSetState","_useSetState2","_slicedToArray2","default","state","setState","_useRemoteSource","useRemoteSource","module","impTypeList","expTypeList","_useState","useState","_useState2","exportDisabled","setExportDisabled","useUpdateEffect","handleInputChange","useMemoizedFn","field","e","value","target","trim","_val","console","log","import","export","handleRadioChangeExport","_ref2","key","_value","handleSelectChangeExport","_ref3","handleSelectChangeImport","_ref4","handleTypeChange","importType","concat","handleTypeChangeExport","createElement","label","suppressPadding","Switch","size","defaultChecked","Radio","Group","Input","isString","placeholder","Select","style","width","undefined","formatMessage","id","map","opt","Option","Tooltip","title","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/ImpExp.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { useMemoizedFn, useSetState, useUpdateEffect } from 'ahooks';\nimport { Input, Switch, Select, Tooltip, Radio } from 'luck-design/antd';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport { isString } from 'lodash';\nimport { useRemoteSource } from '../../engine/provider/ContextProvider';\nimport PanelItem from '../components/PanelItem';\n\nconst _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.impexp';\n\nconst ImpExp = ({ defaultValue, onChange }) => {\n const [state, setState] = useSetState(defaultValue || {});\n const { module, impTypeList, expTypeList } = useRemoteSource();\n const [exportDisabled, setExportDisabled] = useState(false)\n\n useUpdateEffect(() => {\n onChange(state);\n }, [state]);\n\n const handleInputChange = useMemoizedFn((field, e) => {\n const value = e.target.value.trim();\n const _val = value === '' ? true : value;\n console.log(_val);\n if (field === 'import') {\n setState({ import: _val });\n } else if (field === 'export') {\n setState({ export: _val });\n }\n });\n\n const handleRadioChangeExport = useMemoizedFn((value, { key }) => {\n const _value = value;\n setState({ export: _value });\n setExportDisabled(false)\n });\n\n const handleSelectChangeExport = useMemoizedFn((value, { key }) => {\n const _value = value;\n setState({ export: _value });\n });\n\n const handleSelectChangeImport = useMemoizedFn((value, { key }) => {\n const _value = value;\n setState({ import: _value });\n });\n\n const handleTypeChange = useMemoizedFn((e) => {\n const _value = e.target.value;\n setState({ importType: `${_value}` === '2', import: true });\n });\n const handleTypeChangeExport = useMemoizedFn((e) => {\n const _value = e.target.value;\n setState({ export: `${_value}` === '2' ? '' : true })\n setExportDisabled(`${_value}` === '2')\n });\n\n\n return (\n <div>\n <PanelItem label=\"导入\" suppressPadding>\n <Switch\n size=\"small\"\n defaultChecked={!!state.import}\n onChange={handleSelectChangeImport}\n />\n </PanelItem>\n {state.import && <PanelItem suppressPadding>\n <Radio.Group onChange={handleTypeChange} defaultValue={!state.importType ? '1' : '2'}>\n <Radio value=\"1\">模版ID</Radio>\n <Radio value=\"2\">自定义行为</Radio>\n </Radio.Group>\n </PanelItem>}\n {state.import && <PanelItem suppressPadding>\n {!state.importType ? <Input\n size=\"small\"\n value={isString(state.import) ? state.import : ''}\n onChange={(e) => handleInputChange('import', e)}\n placeholder=\"请输入模版ID\"\n /> : <Select\n size='small'\n style={{ width: '100%' }}\n value={isString(state.import) ? state.import : undefined}\n onChange={handleSelectChangeImport}\n placeholder={formatMessage({\n id: `${_I18N_PREFIX_}.impType.placeholder`,\n label: '请选择自定义行为',\n })}\n >\n {impTypeList.map((opt) => (\n <Select.Option key={opt.key} value={opt.value}>\n <Tooltip title={opt.label}>{opt.label}</Tooltip>\n </Select.Option>\n ))}\n </Select>}\n </PanelItem>}\n <PanelItem label=\"导出\" suppressPadding>\n <Switch\n size=\"small\"\n defaultChecked={!!(isString(state.export) ? true : state.export)}\n onChange={handleRadioChangeExport}\n />\n </PanelItem>\n {(state.export || isString(state.export)) && <PanelItem suppressPadding>\n <Radio.Group onChange={handleTypeChangeExport} defaultValue={!isString(state.export) ? '1' : '2'}>\n <Radio value=\"1\">默认</Radio>\n <Radio value=\"2\">自定义行为</Radio>\n </Radio.Group>\n </PanelItem>}\n {\n (!!exportDisabled || isString(state.export)) && <PanelItem suppressPadding>\n <Select\n size='small'\n style={{ width: '100%' }}\n value={(isString(state.export) && state.export) ? state.export : undefined}\n onChange={handleSelectChangeExport}\n placeholder={formatMessage({\n id: `${_I18N_PREFIX_}.expType.placeholder`,\n label: '请选择自定义行为',\n })}\n >\n {expTypeList?.map((opt) => (\n <Select.Option key={opt.key} value={opt.value}>\n <Tooltip title={opt.label}>{opt.label}</Tooltip>\n </Select.Option>\n ))}\n </Select>\n </PanelItem>\n }\n </div>\n );\n};\n\nexport default ImpExp;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE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,EAAC9C,KAAK,CAACwB,MAAM,CAAC,kBAAK5C,MAAA,CAAAmB,OAAA,CAAAsC,aAAA,CAACjD,UAAA,CAAAW,OAAS;IAACwC,eAAe;EAAA,gBACxE3D,MAAA,CAAAmB,OAAA,CAAAsC,aAAA,CAACrD,KAAA,CAAAgE,MAAM;IACLP,IAAI,EAAC,OAAO;IACZQ,KAAK,EAAE;MAAEC,KAAK,EAAE;IAAO,CAAE;IACzBjC,KAAK,EAAG,IAAA6B,gBAAQ,EAAC9C,KAAK,CAACwB,MAAM,CAAC,IAAIxB,KAAK,CAACwB,MAAM,GAAIxB,KAAK,CAACwB,MAAM,GAAG2B,SAAU;IAC3EzD,QAAQ,EAAEmC,wBAAyB;IACnCkB,WAAW,EAAE,IAAAK,oBAAa,EAAC;MACzBC,EAAE,KAAAlB,MAAA,CAAK7C,aAAa,yBAAsB;MAC1CgD,KAAK,EAAE;IACT,CAAC;EAAE,GAEFhC,WAAW,aAAXA,WAAW,uBAAXA,WAAW,CAAEgD,GAAG,CAAC,UAACC,GAAG;IAAA,oBACpB3E,MAAA,CAAAmB,OAAA,CAAAsC,aAAA,CAACrD,KAAA,CAAAgE,MAAM,CAACQ,MAAM;MAAC7B,GAAG,EAAE4B,GAAG,CAAC5B,GAAI;MAACV,KAAK,EAAEsC,GAAG,CAACtC;IAAM,gBAC5CrC,MAAA,CAAAmB,OAAA,CAAAsC,aAAA,CAACrD,KAAA,CAAAyE,OAAO;MAACC,KAAK,EAAEH,GAAG,CAACjB;IAAM,GAAEiB,GAAG,CAACjB,KAAe,CAClC,CAAC;EAAA,CACjB,CACK,CACC,CAEV,CAAC;AAEV,CAAC;AAAC,IAAAqB,QAAA,GAAAC,OAAA,CAAA7D,OAAA,GAEaR,MAAM"}
@@ -126,4 +126,5 @@ var ImpExp = function ImpExp(_ref) {
126
126
  }, opt.label));
127
127
  }))));
128
128
  };
129
- var _default = exports.default = ImpExp;
129
+ var _default = exports.default = ImpExp;
130
+ //# sourceMappingURL=ImpExpAlone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_ahooks","_antd","_utils","_PanelItem","_lodash","_ContextProvider","_I18N_PREFIX_","ImpExp","_ref","defaultValue","onChange","_useSetState","useSetState","_useSetState2","_slicedToArray2","default","state","setState","_useRemoteSource","useRemoteSource","impTypeList","expTypeList","useUpdateEffect","handleInputChange","useMemoizedFn","field","e","_value","target","value","trim","customParam","handleSelectChange","handleSegmentChange","type","customType","undefined","handleSwitchChange","createElement","label","suppressPadding","Segmented","options","block","Radio","Group","Input","size","isString","placeholder","Select","style","width","formatMessage","id","concat","map","opt","Option","key","Tooltip","title","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/ImpExpAlone.jsx"],"sourcesContent":["import React from 'react';\nimport { useMemoizedFn, useSetState, useUpdateEffect } from 'ahooks';\nimport { Input, Select, Tooltip, Radio } from 'luck-design/antd';\nimport { Segmented } from 'luck-design/antd';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport PanelItem from '../components/PanelItem';\nimport { isString } from 'lodash';\nimport { useRemoteSource } from '../../engine/provider/ContextProvider';\n\nconst _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.impexp';\n\nconst ImpExp = ({ defaultValue, onChange }) => {\n const [state, setState] = useSetState(defaultValue || {});\n const { impTypeList, expTypeList } = useRemoteSource();\n\n useUpdateEffect(() => {\n onChange(state);\n }, [state]);\n\n const handleInputChange = useMemoizedFn((field, e) => {\n const _value = e.target.value.trim();\n setState({ customParam: _value });\n });\n\n const handleSelectChange = useMemoizedFn((value, e) => {\n const _value = value;\n setState({ customParam: _value });\n });\n\n\n const handleSegmentChange = useMemoizedFn((field, e) => {\n const _value = field;\n setState({ type: _value, customType: false, customParam: undefined });\n });\n\n const handleSwitchChange = useMemoizedFn((e) => {\n const _value = e.target.value;\n setState({ customType: _value === '2', customParam: undefined });\n });\n\n return (\n <div>\n <PanelItem label='类型' suppressPadding>\n <Segmented\n options={[{ value: 'import', label: '导入' }, { value: 'export', label: '导出' }]}\n onChange={handleSegmentChange}\n defaultValue={state.type}\n block\n />\n </PanelItem>\n {state.type === 'import' && <PanelItem suppressPadding>\n <Radio.Group onChange={handleSwitchChange} defaultValue={!state.customType ? '1' : '2'}>\n <Radio value=\"1\">模版ID</Radio>\n <Radio value=\"2\">自定义行为</Radio>\n </Radio.Group>\n </PanelItem>}\n {state.type === 'import' && <PanelItem suppressPadding>\n {\n !state.customType ? <Input\n size=\"small\"\n value={isString(state.customParam) ? state.customParam : ''}\n onChange={(e) => handleInputChange(state.type, e)}\n placeholder=\"请输入模版ID\"\n /> : <Select\n size='small'\n style={{ width: '100%' }}\n value={isString(state.customParam) ? state.customParam : undefined}\n onChange={handleSelectChange}\n placeholder={formatMessage({\n id: `${_I18N_PREFIX_}.expType.placeholder`,\n label: '请选择自定义行为',\n })}\n >\n {\n impTypeList.map((opt) => (\n <Select.Option key={opt.key} value={opt.value}>\n <Tooltip title={opt.label}>{opt.label}</Tooltip>\n </Select.Option>\n ))\n }\n </Select>\n }\n </PanelItem>\n }\n {/* {state.type === 'export' && <PanelItem suppressPadding>\n <Radio.Group onChange={handleSwitchChange} defaultValue={!state.customType ? '1' : '2'}>\n <Radio value=\"1\">默认</Radio>\n <Radio value=\"2\">自定义行为</Radio>\n </Radio.Group>\n </PanelItem>} */}\n {\n state.type === 'export' && <PanelItem suppressPadding>\n <Select\n size='small'\n style={{ width: '100%' }}\n value={isString(state.customParam) ? state.customParam : undefined}\n onChange={handleSelectChange}\n placeholder={formatMessage({\n id: `${_I18N_PREFIX_}.expType.placeholder`,\n label: '请选择自定义行为',\n })}\n >\n {\n expTypeList?.map((opt) => (\n <Select.Option key={opt.key} value={opt.value}>\n <Tooltip title={opt.label}>{opt.label}</Tooltip>\n </Select.Option>\n ))\n }\n </Select>\n </PanelItem>\n }\n </div>\n );\n};\n\nexport default ImpExp;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,O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AC5ChC,MAAA,CAAAkB,OAAA,CAAAuB,aAAA,CAACrC,KAAA,CAAA2D,OAAO;MAACC,KAAK,EAAEJ,GAAG,CAAClB;IAAM,GAAEkB,GAAG,CAAClB,KAAe,CAClC,CAAC;EAAA,CACjB,CAEG,CACC,CAEV,CAAC;AAEV,CAAC;AAAC,IAAAuB,QAAA,GAAAC,OAAA,CAAAhD,OAAA,GAEaR,MAAM"}
@@ -76,4 +76,5 @@ var _JSEditor = function _JSEditor(_ref) {
76
76
  onErrorCatch: handleErrorCatch
77
77
  }, code)))));
78
78
  };
79
- var _default = exports.default = _JSEditor;
79
+ var _default = exports.default = _JSEditor;
80
+ //# sourceMappingURL=JSEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_antd","_luckDesign","_utils","_RuntimeComp","_interopRequireDefault","_JSEditor2","_JSEditor","_ref","defaultValue","defaultCode","onChange","children","editorRef","useRef","_useState","useState","_useState2","_slicedToArray2","default","code","setCode","_useDebounceFn","useDebounceFn","_code","wait","run","_useBoolean","useBoolean","_useBoolean2","visible","_useBoolean2$","show","setTrue","hidden","setFalse","_useBoolean3","_useBoolean4","hasError","_useBoolean4$","hasErrorOn","hasErrorOff","handleErrorCatch","useMemoizedFn","error","console","log","createElement","Fragment","Button","block","size","onClick","formatMessage","id","label","LuckModal","title","width","height","fullScreen","mask","maskClosable","closable","onClose","SplitPane","split","ref","Pane","minSize","onErrorCatch","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/JSEditor.jsx"],"sourcesContent":["import React, { useRef, useState } from 'react';\nimport { useBoolean, useDebounceFn, useMemoizedFn } from 'ahooks';\nimport { Button } from 'luck-design/antd';\nimport { LuckModal, SplitPane } from 'luck-design';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport RuntimeComp from '../../view/lc-components/JSX/RuntimeComp';\nimport JSEditor from '../components/code-editor/JSEditor';\n\nconst _JSEditor = ({ defaultValue, defaultCode, onChange, children }) => {\n const editorRef = useRef();\n const [code, setCode] = useState(defaultValue || defaultCode);\n const { run } = useDebounceFn(\n (_code) => {\n setCode(_code);\n },\n { wait: 500 },\n );\n const [visible, { setTrue: show, setFalse: hidden }] = useBoolean(false);\n const [hasError, { setTrue: hasErrorOn, setFalse: hasErrorOff }] = useBoolean(false);\n\n\n const handleErrorCatch = useMemoizedFn((error) => {\n console.log(12121212, error)\n });\n\n return (\n <>\n {children || (\n <Button block size=\"small\" onClick={show}>\n {formatMessage({\n id: 'luckda.lowcode.painter.panel-section.style-panel.sourceedit',\n label: '源码编辑',\n })}\n </Button>\n )}\n <LuckModal\n title={formatMessage({\n id: 'luckda.lowcode.painter.panel-section.style-panel.sourceedit',\n label: '源码编辑',\n })}\n width=\"80vw\"\n height=\"80vh\"\n fullScreen\n mask={false}\n maskClosable={false}\n closable={false}\n visible={visible}\n onClose={hidden}\n >\n <SplitPane split=\"vertical\">\n <JSEditor ref={editorRef} onChange={run}>\n {defaultValue || defaultCode}\n </JSEditor>\n <SplitPane.Pane minSize=\"400px\">\n <RuntimeComp onErrorCatch={handleErrorCatch}>{code}</RuntimeComp>\n </SplitPane.Pane>\n </SplitPane>\n </LuckModal>\n </>\n );\n};\n\nexport default _JSEditor;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAC,sBAAA,CAAAN,OAAA;AACA,IAAAO,UAAA,GAAAD,sBAAA,CAAAN,OAAA;AAEA,IAAMQ,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAA0D;EAAA,IAApDC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IAAEC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IAAEC,QAAQ,GAAAH,IAAA,CAARG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currentRatio
137
137
  }))));
138
138
  };
139
- var _default = exports.default = LayoutRatio;
139
+ var _default = exports.default = LayoutRatio;
140
+ //# sourceMappingURL=LayoutRatio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ahooks","_layoutRatio","_interopRequireDefault","_utils","_RuleInput","_PanelItem","_RATIOS_","_DEFAULTRATIO_","LayoutRatio","_ref","defaultValue","onChange","_useState","useState","_useState2","_slicedToArray2","default","currentRatio","setCurrentRatio","handleInputChange","useMemoizedFn","_","value","handGridClick","selectedRadio","rules","func","test","err","formatMessage","id","label","_useCreation","useCreation","isCurrentInRatios","includes","currentItemRatios","split","createElement","className","styles","map","ratio","i","itemRatios","isCurrent","key","concat","onClick","itemRatio","j","style","gridColumn","Fragment","index","field","suppressPadding","placeholder","onValueChange","_default","exports"],"sources":["../../../../luckda/lowcode/painter/panel-section/LayoutRatio.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { useCreation, useMemoizedFn } from 'ahooks';\nimport styles from '../style/layout-ratio.less';\nimport { formatMessage } from '@luck-design-biz/base/utils';\nimport RuleInput from '../components/RuleInput';\nimport PanelItem from '../components/PanelItem';\n\nconst _RATIOS_ = ['12', '6:6', '3:9', '9:3', '4:4:4', '3:6:3', '3:3:3:3', '2:2:2:2:2:2'];\nconst _DEFAULTRATIO_ = '12:3:9';\n\n/**\n * `LayoutRatio`组件提供了一个布局比例选择器,允许用户选择或输入特定的比例配置。\n * 支持的比例配置包括预定义的比例数组`_RATIOS_`,用户还可以通过输入框自定义比例,\n * 自定义比例需要符合一定的规则:是数字或数字与冒号的组合,且数字之和必须等于12。\n * ,\n * 允许父组件获取当前选中的布局比例。\n *\n * @component\n * @example\n * ```jsxsdsdsdsdsdsdsd\n * <LayoutRatio\n * value=\"6:6\"\n * onChange={(option) => console.log(option)}\n * />\n * ```\n *\n * @param {Object} props\n * @param {string} [props.value='12'] 初始化时选中的布局比例,默认为\"12\"。\n * @param {Function} props.onChange 当用户选择一个新的布局比例时调用的回调函数。\n *\n * @returns {React.Element} 渲染的React元素。\n */\nconst LayoutRatio = ({ defaultValue, onChange }) => {\n const [currentRatio, setCurrentRatio] = useState(defaultValue || _DEFAULTRATIO_);\n\n const handleInputChange = useMemoizedFn((_, value) => {\n // console.log('value', value);\n // if (!value) value = _DEFAULTRATIO_;\n setCurrentRatio(value);\n onChange?.(value);\n });\n\n const handGridClick = useMemoizedFn((selectedRadio) => {\n // console.log('selectedRadio', selectedRadio);\n setCurrentRatio(selectedRadio);\n onChange?.(selectedRadio);\n });\n // 定义验证规则\n const rules = [\n {\n func: (value) => {\n // 首先,检查value是否为字符串\n if (typeof value !== 'string') return false;\n\n // 使用正则表达式检查字符串是否只包含数字和冒号,并且不以冒号开始或结束\n return /^[0-9]+(:[0-9]+)*$/.test(value);\n },\n err: formatMessage({\n id: 'luckda.lowcode.painter.panel-section.Layoutratio.err',\n label: '必须是数字或者数字加:号的组合',\n }),\n },\n ];\n\n const { isCurrentInRatios, currentItemRatios } = useCreation(\n () => ({\n isCurrentInRatios: _RATIOS_.includes(currentRatio),\n currentItemRatios: currentRatio.split(':'),\n }),\n [currentRatio],\n );\n\n return (\n <div className={styles['lc-painter-panel-section-layoutratio']}>\n <div className={styles['ratio-view']}>\n <div className={styles['gridbox-container']}>\n {_RATIOS_.map((ratio, i) => {\n const itemRatios = ratio.split(':');\n const isCurrent = ratio == currentRatio;\n let className = styles['gridbox'];\n if (isCurrent) className = className + ' ' + styles['current'];\n return (\n <div key={`grid-${i}`} className={className} onClick={() => handGridClick(ratio)}>\n {itemRatios.map((itemRatio, j) => (\n <div\n key={`gridItem-${j}`}\n className={styles['girditem']}\n style={{ gridColumn: 'span ' + itemRatio }}\n ></div>\n ))}\n </div>\n );\n })}\n\n {!isCurrentInRatios && (\n <>\n <div\n className={`${styles['gridbox']} ${styles['current']}`}\n onClick={() => handGridClick(ratio)}\n >\n {currentItemRatios.map((itemRatio, index) => (\n <div\n key={`itemRatio-${index}`}\n className={styles['girditem']}\n style={{ gridColumn: 'span ' + itemRatio }}\n ></div>\n ))}\n </div>\n </>\n )}\n </div>\n </div>\n <div className={styles['ratio-input']}>\n <PanelItem\n label={formatMessage({\n id: 'luckda.lowcode.painter.panel-section.Layoutratio.label',\n label: '列比例',\n })}\n field=\"columnRatio\"\n suppressPadding\n >\n <RuleInput\n placeholder={formatMessage({\n id: 'luckda.lowcode.painter.panel-section.Layoutratio.placeholder',\n label: '请输入列比例',\n })}\n rules={rules}\n onValueChange={handleInputChange}\n value={currentRatio}\n />\n </PanelItem>\n </div>\n </div>\n );\n};\n\nexport default LayoutRatio;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,UAAA,GAAAH,sBAAA,CAAAH,OAAA;AAEA,IAAMO,QAAQ,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,CAAC;AACxF,IAAMC,cAAc,GAAG,QAAQ;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAAmC;EAAA,IAA7BC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;EAC3C,IAAAC,SAAA,GAAwC,IAAAC,eAAQ,EAACH,YAAY,IAAIH,cAAc,CAAC;IAAAO,UAAA,OAAAC,eAAA,CAAAC,OAAA,EAAAJ,SAAA;IAAzEK,YAAY,GAAAH,UAAA;IAAE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E,SAAAA,QAAA;MAAA,OAAMzB,aAAa,CAACmB,KAAK,CAAC;IAAA;EAAC,GAEnCN,iBAAiB,CAACK,GAAG,CAAC,UAACQ,SAAS,EAAEK,KAAK;IAAA,oBACtCzD,MAAA,CAAAmB,OAAA,CAAAsB,aAAA;MACEQ,GAAG,eAAAC,MAAA,CAAeO,KAAK,CAAG;MAC1Bf,SAAS,EAAEC,oBAAM,CAAC,UAAU,CAAE;MAC9BW,KAAK,EAAE;QAAEC,UAAU,EAAE,OAAO,GAAGH;MAAU;IAAE,CACvC,CAAC;EAAA,CACR,CACE,CACL,CAED,CACF,CAAC,eACNpD,MAAA,CAAAmB,OAAA,CAAAsB,aAAA;IAAKC,SAAS,EAAEC,oBAAM,CAAC,aAAa;EAAE,gBACpC3C,MAAA,CAAAmB,OAAA,CAAAsB,aAAA,CAACjC,UAAA,CAAAW,OAAS;IACRe,KAAK,EAAE,IAAAF,oBAAa,EAAC;MACnBC,EAAE,EAAE,wDAAwD;MAC5DC,KAAK,EAAE;IACT,CAAC,CAAE;IACHwB,KAAK,EAAC,aAAa;IACnBC,eAAe;EAAA,gBAEf3D,MAAA,CAAAmB,OAAA,CAAAsB,aAAA,CAAClC,UAAA,CAAAY,OAAS;IACRyC,WAAW,EAAE,IAAA5B,oBAAa,EAAC;MACzBC,EAAE,EAAE,8DAA8D;MAClEC,KAAK,EAAE;IACT,CAAC,CAAE;IACHN,KAAK,EAAEA,KAAM;IACbiC,aAAa,EAAEvC,iBAAkB;IACjCG,KAAK,EAAEL;EAAa,CACrB,CACQ,CACR,CACF,CAAC;AAEV,CAAC;AAAC,IAAA0C,QAAA,GAAAC,OAAA,CAAA5C,OAAA,GAEaR,WAAW"}
@@ -117,4 +117,5 @@ var PageLayoutDisplay = function PageLayoutDisplay(_ref) {
117
117
  })))));
118
118
  })));
119
119
  };
120
- var _default = exports.default = PageLayoutDisplay;
120
+ var _default = exports.default = PageLayoutDisplay;
121
+ //# sourceMappingURL=PageLayoutDisplay.js.map