@luck-design-biz/luckda 1.0.2-2 → 1.0.2-20temp

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 (287) hide show
  1. package/es/components/Builder/index.js +37 -27
  2. package/es/components/ComplexItem/index.js +5 -3
  3. package/es/components/ComplexItem/service.js +6 -3
  4. package/es/components/LDActions/index.js +1 -0
  5. package/es/components/LdAutoForm/index.js +18 -8
  6. package/es/components/LdCard/index.js +10 -8
  7. package/es/components/LdCom/index.js +3 -2
  8. package/es/components/LdFormList/index.js +10 -7
  9. package/es/components/LdGrid/index.js +24 -16
  10. package/es/components/LdGridForm/index.js +16 -7
  11. package/es/helper/FromItems.js +64 -5
  12. package/es/helper/action.js +2 -0
  13. package/es/helper/form.js +7 -1
  14. package/es/helper/ldBuilder.js +9 -5
  15. package/es/helper/ldComBuild.js +16 -11
  16. package/es/locales/zh-CN.js +61 -6
  17. package/es/lowcode/constants/api-url.js +359 -190
  18. package/es/lowcode/constants/event-topics.js +4 -0
  19. package/es/lowcode/constants/index.js +5 -4
  20. package/es/lowcode/engine/meta/box.props.default.json +1 -1
  21. package/es/lowcode/engine/meta/box.props.json +1 -1
  22. package/es/lowcode/engine/meta/cardlist.props.json +3 -5
  23. package/es/lowcode/engine/meta/components-list.json +6 -0
  24. package/es/lowcode/engine/meta/dialog.props.default.json +4 -1
  25. package/es/lowcode/engine/meta/dialog.props.json +24 -4
  26. package/es/lowcode/engine/meta/drawer.props.json +1 -1
  27. package/es/lowcode/engine/meta/fielddate.props.default.json +1 -0
  28. package/es/lowcode/engine/meta/fielddate.props.json +48 -1
  29. package/es/lowcode/engine/meta/fieldeditor.props.json +0 -1
  30. package/es/lowcode/engine/meta/fieldgroup.props.json +0 -1
  31. package/es/lowcode/engine/meta/fieldyear.props.json +0 -1
  32. package/es/lowcode/engine/meta/form.props.json +3 -19
  33. package/es/lowcode/engine/meta/grouptree.props.json +0 -1
  34. package/es/lowcode/engine/meta/js-editor/auto-complete.json +5 -0
  35. package/es/lowcode/engine/meta/jsx.props.default.json +1 -2
  36. package/es/lowcode/engine/meta/jsx.props.json +4 -3
  37. package/es/lowcode/engine/meta/layout.props.default.json +1 -1
  38. package/es/lowcode/engine/meta/layout.props.json +1 -1
  39. package/es/lowcode/engine/meta/proxy.props.default.json +15 -0
  40. package/es/lowcode/engine/meta/proxy.props.json +66 -0
  41. package/es/lowcode/engine/meta/section.props.json +2 -2
  42. package/es/lowcode/engine/meta/table.props.json +0 -7
  43. package/es/lowcode/engine/meta/tabs.props.json +1 -1
  44. package/es/lowcode/engine/meta/tree.props.json +1 -5
  45. package/es/lowcode/engine/provider/ContextProvider/index.js +45 -9
  46. package/es/lowcode/engine/provider/ContextProvider/router.js +21 -1
  47. package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +36 -30
  48. package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +11 -5
  49. package/es/lowcode/engine/provider/ContextProvider/useTodo.js +2 -4
  50. package/es/lowcode/engine/provider/EventBusProvider.js +14 -4
  51. package/es/lowcode/engine/provider/PageProxyProvider.js +95 -0
  52. package/es/lowcode/engine/provider/RemoteSourceProvider.js +10 -12
  53. package/es/lowcode/engine/tools/helper.js +25 -1
  54. package/es/lowcode/engine/tools/initDS.js +4 -4
  55. package/es/lowcode/painter/Design.js +1 -0
  56. package/es/lowcode/painter/DesignOperator.js +135 -27
  57. package/es/lowcode/painter/DesignToolbar.js +102 -188
  58. package/es/lowcode/painter/History.js +300 -0
  59. package/es/lowcode/painter/Panel.js +1 -1
  60. package/es/lowcode/painter/Ribbon.js +37 -1
  61. package/es/lowcode/painter/components/AdvancePanel.js +55 -51
  62. package/es/lowcode/painter/components/DragDrop/DragDropContext.js +10 -3
  63. package/es/lowcode/painter/components/TipIcon.js +12 -4
  64. package/es/lowcode/painter/components/TreeEditor.js +76 -8
  65. package/es/lowcode/painter/components/code-editor/BaseEditor.js +10 -6
  66. package/es/lowcode/painter/components/code-editor/DiffEditor.js +41 -0
  67. package/es/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
  68. package/es/lowcode/painter/components/field-setting/SettingUI.js +56 -5
  69. package/es/lowcode/painter/components/field-setting/index.js +24 -1
  70. package/es/lowcode/painter/components/shortcut-modal/KeyIcon.js +11 -0
  71. package/es/lowcode/painter/components/shortcut-modal/index.js +208 -0
  72. package/es/lowcode/painter/panel-section/BlockEditor/index.js +10 -19
  73. package/es/lowcode/painter/panel-section/BlocksEditor/index.js +4 -1
  74. package/es/lowcode/painter/panel-section/ConditionCheck.js +70 -0
  75. package/es/lowcode/painter/panel-section/DataSetSelector.js +6 -3
  76. package/es/lowcode/painter/panel-section/DialogSize.js +76 -0
  77. package/es/lowcode/painter/panel-section/DialogWidthHeight.js +60 -0
  78. package/es/lowcode/painter/panel-section/FieldsSetting.js +1 -1
  79. package/es/lowcode/painter/panel-section/IconConditionSelector.js +2 -2
  80. package/es/lowcode/painter/panel-section/JSEditor/ToolBar.js +174 -0
  81. package/es/lowcode/painter/panel-section/JSEditor/index.js +181 -0
  82. package/es/lowcode/painter/panel-section/JSEditor/index.less +4 -0
  83. package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
  84. package/es/lowcode/painter/panel-section/ProxyLinker.js +137 -0
  85. package/es/lowcode/painter/panel-section/ProxyParams.js +28 -0
  86. package/es/lowcode/painter/panel-section/ProxyParamsSetter.js +240 -0
  87. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +37 -26
  88. package/es/lowcode/painter/style/action-bind-modal.less +1 -1
  89. package/es/lowcode/painter/style/components.less +1 -1
  90. package/es/lowcode/painter/style/history.less +46 -0
  91. package/es/lowcode/painter/style/outline.less +1 -1
  92. package/es/lowcode/painter/style/panel-item.less +1 -0
  93. package/es/lowcode/preview/DebugTool.js +78 -0
  94. package/es/lowcode/preview/DebugToolDetail.js +103 -0
  95. package/es/lowcode/preview/index.js +10 -17
  96. package/es/lowcode/preview/useDebugSettings.js +62 -0
  97. package/es/lowcode/view/Canvas.js +5 -1
  98. package/es/lowcode/view/ErrorBoundary.js +80 -0
  99. package/es/lowcode/view/Page.js +11 -6
  100. package/es/lowcode/view/lc-components/Box/FunctionDesign.js +4 -2
  101. package/es/lowcode/view/lc-components/Box/index.less +2 -2
  102. package/es/lowcode/view/lc-components/Box/meta.json +1 -1
  103. package/es/lowcode/view/lc-components/CardList/index.js +3 -0
  104. package/es/lowcode/view/lc-components/CardList/meta.json +3 -5
  105. package/es/lowcode/view/lc-components/Dialog/index.js +13 -5
  106. package/es/lowcode/view/lc-components/Dialog/meta.json +24 -4
  107. package/es/lowcode/view/lc-components/Drawer/index.js +5 -3
  108. package/es/lowcode/view/lc-components/Drawer/meta.json +1 -1
  109. package/es/lowcode/view/lc-components/FieldDate/meta.json +48 -1
  110. package/es/lowcode/view/lc-components/FieldEditor/meta.json +0 -1
  111. package/es/lowcode/view/lc-components/FieldGroup/meta.json +0 -1
  112. package/es/lowcode/view/lc-components/FieldYear/meta.json +0 -1
  113. package/es/lowcode/view/lc-components/Form/index.js +15 -19
  114. package/es/lowcode/view/lc-components/Form/meta.json +3 -19
  115. package/es/lowcode/view/lc-components/GroupTree/meta.json +0 -1
  116. package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +32 -16
  117. package/es/lowcode/view/lc-components/JSX/meta.json +4 -3
  118. package/es/lowcode/view/lc-components/Layout/meta.json +1 -1
  119. package/es/lowcode/view/lc-components/PageLayout/index.js +1 -1
  120. package/es/lowcode/view/lc-components/Proxy/FunctionDesign.js +17 -0
  121. package/es/lowcode/view/lc-components/Proxy/FunctionLive.js +23 -0
  122. package/es/lowcode/view/lc-components/Proxy/FunctionPreview.js +23 -0
  123. package/es/lowcode/view/lc-components/Proxy/index.js +42 -0
  124. package/es/lowcode/view/lc-components/Proxy/index.less +5 -0
  125. package/es/lowcode/view/lc-components/Proxy/meta.json +66 -0
  126. package/es/lowcode/view/lc-components/Section/meta.json +2 -2
  127. package/es/lowcode/view/lc-components/Table/components/TopImex.js +16 -13
  128. package/es/lowcode/view/lc-components/Table/index.js +11 -3
  129. package/es/lowcode/view/lc-components/Table/meta.json +0 -7
  130. package/es/lowcode/view/lc-components/Tabs/index.js +6 -2
  131. package/es/lowcode/view/lc-components/Tabs/meta.json +1 -1
  132. package/es/lowcode/view/lc-components/Tree/index.js +3 -0
  133. package/es/lowcode/view/lc-components/Tree/meta.json +1 -5
  134. package/es/lowcode/view/lc-components/Wrapper.js +9 -1
  135. package/es/services.js +24 -7
  136. package/es/upload/FilesWall/index.js +16 -6
  137. package/es/upload/Form/gridForm.js +16 -6
  138. package/es/upload/FormItem/index.js +16 -4
  139. package/es/utils/action.js +3 -2
  140. package/es/utils/form.js +40 -6
  141. package/es/utils/grid.js +12 -3
  142. package/lib/components/Builder/index.js +36 -26
  143. package/lib/components/ComplexItem/index.js +5 -3
  144. package/lib/components/ComplexItem/service.js +6 -3
  145. package/lib/components/LDActions/index.js +1 -0
  146. package/lib/components/LdAutoForm/index.js +15 -5
  147. package/lib/components/LdCard/index.js +10 -8
  148. package/lib/components/LdCom/index.js +3 -2
  149. package/lib/components/LdFormList/index.js +9 -6
  150. package/lib/components/LdGrid/index.js +24 -16
  151. package/lib/components/LdGridForm/index.js +13 -4
  152. package/lib/helper/FromItems.js +64 -5
  153. package/lib/helper/action.js +2 -0
  154. package/lib/helper/form.js +7 -1
  155. package/lib/helper/ldBuilder.js +8 -5
  156. package/lib/helper/ldComBuild.js +14 -9
  157. package/lib/locales/zh-CN.js +61 -6
  158. package/lib/lowcode/constants/api-url.js +360 -190
  159. package/lib/lowcode/constants/event-topics.js +5 -1
  160. package/lib/lowcode/constants/index.js +6 -5
  161. package/lib/lowcode/engine/meta/box.props.default.json +1 -1
  162. package/lib/lowcode/engine/meta/box.props.json +1 -1
  163. package/lib/lowcode/engine/meta/cardlist.props.json +3 -5
  164. package/lib/lowcode/engine/meta/components-list.json +6 -0
  165. package/lib/lowcode/engine/meta/dialog.props.default.json +4 -1
  166. package/lib/lowcode/engine/meta/dialog.props.json +24 -4
  167. package/lib/lowcode/engine/meta/drawer.props.json +1 -1
  168. package/lib/lowcode/engine/meta/fielddate.props.default.json +1 -0
  169. package/lib/lowcode/engine/meta/fielddate.props.json +48 -1
  170. package/lib/lowcode/engine/meta/fieldeditor.props.json +0 -1
  171. package/lib/lowcode/engine/meta/fieldgroup.props.json +0 -1
  172. package/lib/lowcode/engine/meta/fieldyear.props.json +0 -1
  173. package/lib/lowcode/engine/meta/form.props.json +3 -19
  174. package/lib/lowcode/engine/meta/grouptree.props.json +0 -1
  175. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +5 -0
  176. package/lib/lowcode/engine/meta/jsx.props.default.json +1 -2
  177. package/lib/lowcode/engine/meta/jsx.props.json +4 -3
  178. package/lib/lowcode/engine/meta/layout.props.default.json +1 -1
  179. package/lib/lowcode/engine/meta/layout.props.json +1 -1
  180. package/lib/lowcode/engine/meta/proxy.props.default.json +15 -0
  181. package/lib/lowcode/engine/meta/proxy.props.json +66 -0
  182. package/lib/lowcode/engine/meta/section.props.json +2 -2
  183. package/lib/lowcode/engine/meta/table.props.json +0 -7
  184. package/lib/lowcode/engine/meta/tabs.props.json +1 -1
  185. package/lib/lowcode/engine/meta/tree.props.json +1 -5
  186. package/lib/lowcode/engine/provider/ContextProvider/index.js +50 -13
  187. package/lib/lowcode/engine/provider/ContextProvider/router.js +22 -1
  188. package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +37 -31
  189. package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js +10 -4
  190. package/lib/lowcode/engine/provider/ContextProvider/useTodo.js +1 -3
  191. package/lib/lowcode/engine/provider/EventBusProvider.js +14 -4
  192. package/lib/lowcode/engine/provider/PageProxyProvider.js +103 -0
  193. package/lib/lowcode/engine/provider/RemoteSourceProvider.js +10 -12
  194. package/lib/lowcode/engine/tools/helper.js +25 -0
  195. package/lib/lowcode/engine/tools/initDS.js +4 -4
  196. package/lib/lowcode/painter/Design.js +1 -0
  197. package/lib/lowcode/painter/DesignOperator.js +132 -24
  198. package/lib/lowcode/painter/DesignToolbar.js +98 -184
  199. package/lib/lowcode/painter/History.js +308 -0
  200. package/lib/lowcode/painter/Panel.js +1 -1
  201. package/lib/lowcode/painter/Ribbon.js +37 -1
  202. package/lib/lowcode/painter/components/AdvancePanel.js +53 -49
  203. package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +10 -3
  204. package/lib/lowcode/painter/components/TipIcon.js +12 -4
  205. package/lib/lowcode/painter/components/TreeEditor.js +76 -8
  206. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +10 -6
  207. package/lib/lowcode/painter/components/code-editor/DiffEditor.js +49 -0
  208. package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
  209. package/lib/lowcode/painter/components/field-setting/SettingUI.js +55 -4
  210. package/lib/lowcode/painter/components/field-setting/index.js +24 -1
  211. package/lib/lowcode/painter/components/shortcut-modal/KeyIcon.js +18 -0
  212. package/lib/lowcode/painter/components/shortcut-modal/index.js +215 -0
  213. package/lib/lowcode/painter/panel-section/BlockEditor/index.js +9 -18
  214. package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +4 -1
  215. package/lib/lowcode/painter/panel-section/ConditionCheck.js +78 -0
  216. package/lib/lowcode/painter/panel-section/DataSetSelector.js +6 -3
  217. package/lib/lowcode/painter/panel-section/DialogSize.js +83 -0
  218. package/lib/lowcode/painter/panel-section/DialogWidthHeight.js +67 -0
  219. package/lib/lowcode/painter/panel-section/FieldsSetting.js +1 -1
  220. package/lib/lowcode/painter/panel-section/IconConditionSelector.js +2 -2
  221. package/lib/lowcode/painter/panel-section/JSEditor/ToolBar.js +181 -0
  222. package/lib/lowcode/painter/panel-section/JSEditor/index.js +189 -0
  223. package/lib/lowcode/painter/panel-section/JSEditor/index.less +4 -0
  224. package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
  225. package/lib/lowcode/painter/panel-section/ProxyLinker.js +145 -0
  226. package/lib/lowcode/painter/panel-section/ProxyParams.js +35 -0
  227. package/lib/lowcode/painter/panel-section/ProxyParamsSetter.js +248 -0
  228. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +37 -26
  229. package/lib/lowcode/painter/style/action-bind-modal.less +1 -1
  230. package/lib/lowcode/painter/style/components.less +1 -1
  231. package/lib/lowcode/painter/style/history.less +46 -0
  232. package/lib/lowcode/painter/style/outline.less +1 -1
  233. package/lib/lowcode/painter/style/panel-item.less +1 -0
  234. package/lib/lowcode/preview/DebugTool.js +86 -0
  235. package/lib/lowcode/preview/DebugToolDetail.js +111 -0
  236. package/lib/lowcode/preview/index.js +10 -18
  237. package/lib/lowcode/preview/useDebugSettings.js +69 -0
  238. package/lib/lowcode/view/Canvas.js +5 -1
  239. package/lib/lowcode/view/ErrorBoundary.js +88 -0
  240. package/lib/lowcode/view/Page.js +12 -7
  241. package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +4 -2
  242. package/lib/lowcode/view/lc-components/Box/index.less +2 -2
  243. package/lib/lowcode/view/lc-components/Box/meta.json +1 -1
  244. package/lib/lowcode/view/lc-components/CardList/index.js +3 -0
  245. package/lib/lowcode/view/lc-components/CardList/meta.json +3 -5
  246. package/lib/lowcode/view/lc-components/Dialog/index.js +11 -3
  247. package/lib/lowcode/view/lc-components/Dialog/meta.json +24 -4
  248. package/lib/lowcode/view/lc-components/Drawer/index.js +3 -1
  249. package/lib/lowcode/view/lc-components/Drawer/meta.json +1 -1
  250. package/lib/lowcode/view/lc-components/FieldDate/meta.json +48 -1
  251. package/lib/lowcode/view/lc-components/FieldEditor/meta.json +0 -1
  252. package/lib/lowcode/view/lc-components/FieldGroup/meta.json +0 -1
  253. package/lib/lowcode/view/lc-components/FieldYear/meta.json +0 -1
  254. package/lib/lowcode/view/lc-components/Form/index.js +15 -19
  255. package/lib/lowcode/view/lc-components/Form/meta.json +3 -19
  256. package/lib/lowcode/view/lc-components/GroupTree/meta.json +0 -1
  257. package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +33 -16
  258. package/lib/lowcode/view/lc-components/JSX/meta.json +4 -3
  259. package/lib/lowcode/view/lc-components/Layout/meta.json +1 -1
  260. package/lib/lowcode/view/lc-components/PageLayout/index.js +1 -1
  261. package/lib/lowcode/view/lc-components/Proxy/FunctionDesign.js +24 -0
  262. package/lib/lowcode/view/lc-components/Proxy/FunctionLive.js +30 -0
  263. package/lib/lowcode/view/lc-components/Proxy/FunctionPreview.js +30 -0
  264. package/lib/lowcode/view/lc-components/Proxy/index.js +50 -0
  265. package/lib/lowcode/view/lc-components/Proxy/index.less +5 -0
  266. package/lib/lowcode/view/lc-components/Proxy/meta.json +66 -0
  267. package/lib/lowcode/view/lc-components/Section/meta.json +2 -2
  268. package/lib/lowcode/view/lc-components/Table/components/TopImex.js +16 -13
  269. package/lib/lowcode/view/lc-components/Table/index.js +11 -3
  270. package/lib/lowcode/view/lc-components/Table/meta.json +0 -7
  271. package/lib/lowcode/view/lc-components/Tabs/index.js +5 -1
  272. package/lib/lowcode/view/lc-components/Tabs/meta.json +1 -1
  273. package/lib/lowcode/view/lc-components/Tree/index.js +3 -0
  274. package/lib/lowcode/view/lc-components/Tree/meta.json +1 -5
  275. package/lib/lowcode/view/lc-components/Wrapper.js +8 -0
  276. package/lib/services.js +25 -7
  277. package/lib/upload/FilesWall/index.js +13 -3
  278. package/lib/upload/Form/gridForm.js +13 -3
  279. package/lib/upload/FormItem/index.js +15 -3
  280. package/lib/utils/action.js +6 -0
  281. package/lib/utils/form.js +40 -5
  282. package/lib/utils/grid.js +13 -4
  283. package/package.json +1 -2
  284. package/es/lowcode/painter/panel-section/JSEditor.js +0 -49
  285. package/es/lowcode/view/errorBoundary.js +0 -61
  286. package/lib/lowcode/painter/panel-section/JSEditor.js +0 -57
  287. package/lib/lowcode/view/errorBoundary.js +0 -69
@@ -9,7 +9,7 @@ var _excluded = ["onBlur"],
9
9
  _excluded4 = ["handleValueChange", "config"],
10
10
  _excluded5 = ["onBlur"],
11
11
  _excluded6 = ["handleValueChange", "config"],
12
- _excluded7 = ["onChange"],
12
+ _excluded7 = ["onChange", "format"],
13
13
  _excluded8 = ["handleValueChange", "config"],
14
14
  _excluded9 = ["handleValueChange", "onChange", "params", "extraFilter"],
15
15
  _excluded10 = ["onChange"],
@@ -18,7 +18,7 @@ var _excluded = ["onBlur"],
18
18
  _excluded13 = ["handleValueChange", "config", "allowClear"],
19
19
  _excluded14 = ["renderInfoMode"],
20
20
  _excluded15 = ["onChange"],
21
- _excluded16 = ["handleValueChange", "config", "selectorProps", "suppressSelect"],
21
+ _excluded16 = ["handleValueChange", "config", "selectorProps", "suppressSelect", "auth", "leafOnly"],
22
22
  _excluded17 = ["onClose"],
23
23
  _excluded18 = ["handleValueChange", "config"],
24
24
  _excluded19 = ["onChange"],
@@ -40,6 +40,60 @@ import { DatadicDropDown as DatedicFormItem, UserSelectDropDown as UserItem } fr
40
40
  import buildUploadFormItem from "../upload/FormItem";
41
41
  import ComplexItem from "../components/ComplexItem";
42
42
  import { LC_COMPONENT_UNIT_KEY, LC_FORMITEM_UNIT } from "../lowcode/constants";
43
+ var data_config = {
44
+ 'YYYY-MM-DD HH:mm:ss': {
45
+ type: 'date',
46
+ showTime: {
47
+ format: 'HH:mm:ss'
48
+ }
49
+ },
50
+ 'YYYY-MM-DD HH:mm': {
51
+ type: 'date',
52
+ showTime: {
53
+ format: 'HH:mm'
54
+ }
55
+ },
56
+ 'YYYY-MM-DD HH': {
57
+ type: 'date',
58
+ showTime: {
59
+ format: 'HH'
60
+ }
61
+ },
62
+ 'YYYY-MM-DD': {
63
+ type: 'date',
64
+ showTime: false
65
+ },
66
+ 'YYYY-MM': {
67
+ type: 'month',
68
+ showTime: false
69
+ },
70
+ 'YYYY-wo': {
71
+ type: 'week',
72
+ showTime: false
73
+ },
74
+ 'YYYY': {
75
+ type: 'year',
76
+ showTime: false
77
+ },
78
+ 'HH:mm:ss': {
79
+ type: 'time',
80
+ showTime: {
81
+ format: 'HH:mm:ss'
82
+ }
83
+ },
84
+ 'HH:mm': {
85
+ type: 'time',
86
+ showTime: {
87
+ format: 'HH:mm'
88
+ }
89
+ },
90
+ 'mm:ss': {
91
+ type: 'time',
92
+ showTime: {
93
+ format: 'mm:ss'
94
+ }
95
+ }
96
+ };
43
97
  export var getNumberItem = function getNumberItem() {
44
98
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
45
99
  handleValueChange = _ref.handleValueChange,
@@ -104,13 +158,14 @@ export var getDateItem = function getDateItem() {
104
158
  _ref7$config = _ref7.config,
105
159
  _ref7$config2 = _ref7$config === void 0 ? {} : _ref7$config,
106
160
  _onChange = _ref7$config2.onChange,
161
+ format = _ref7$config2.format,
107
162
  _config = _objectWithoutProperties(_ref7$config2, _excluded7),
108
163
  props = _objectWithoutProperties(_ref7, _excluded8);
109
164
  return /*#__PURE__*/React.createElement(BasicFormItem, _extends({}, props, {
110
165
  $attrs: _defineProperty(_defineProperty({}, LC_COMPONENT_UNIT_KEY, LC_FORMITEM_UNIT), 'data-__component', 'FieldDate'),
111
166
  type: "datePicker",
112
- config: _objectSpread(_objectSpread({}, _config), {}, {
113
- type: 'date',
167
+ config: _objectSpread(_objectSpread(_objectSpread({}, data_config[format]), _config), {}, {
168
+ format: format,
114
169
  onChange: function onChange(date, dateString) {
115
170
  handleValueChange && handleValueChange(date);
116
171
  _onChange && _onChange(date, dateString);
@@ -235,10 +290,14 @@ export var getGroupItem = function getGroupItem(_ref19) {
235
290
  _ref19$selectorProps = _ref19.selectorProps,
236
291
  selectorProps = _ref19$selectorProps === void 0 ? {} : _ref19$selectorProps,
237
292
  suppressSelect = _ref19.suppressSelect,
293
+ _ref19$auth = _ref19.auth,
294
+ auth = _ref19$auth === void 0 ? false : _ref19$auth,
295
+ _ref19$leafOnly = _ref19.leafOnly,
296
+ leafOnly = _ref19$leafOnly === void 0 ? false : _ref19$leafOnly,
238
297
  props = _objectWithoutProperties(_ref19, _excluded16);
239
298
  return /*#__PURE__*/React.createElement(TreeSelector, _extends({}, props, {
240
299
  $attrs: _defineProperty(_defineProperty({}, LC_COMPONENT_UNIT_KEY, LC_FORMITEM_UNIT), 'data-__component', 'FieldGroup'),
241
- api: "/api/base/group/sysGroupTree/noAuthReadJurisTree?sclassKey=".concat(props.sclassKey),
300
+ api: "/api/base/group/sysGroupTree/".concat(auth ? 'noAuthReadJurisTree' : 'noAuthReadNoJurisTree', "?sclassKey=").concat(props.sclassKey, "&ex=").concat(escape(leafOnly ? 'ichildren!=0' : '')),
242
301
  selectorProps: _objectSpread(_objectSpread({}, selectorProps), {}, {
243
302
  suppressSelect: suppressSelect
244
303
  }),
@@ -181,5 +181,7 @@ export var onBatchSubmitAction = function onBatchSubmitAction(_ref3, callback) {
181
181
  callback: callback
182
182
  });
183
183
  }
184
+ }).catch(function () {
185
+ callback(false);
184
186
  });
185
187
  };
package/es/helper/form.js CHANGED
@@ -69,9 +69,15 @@ export function translator() {
69
69
  label: allConfig.fieldName,
70
70
  config: {
71
71
  required: !!allConfig.isNotNull,
72
- disabled: !!allConfig.isReadOnly
72
+ disabled: !!allConfig.isReadOnly,
73
+ placeholder: allConfig.placeholder,
74
+ rows: allConfig.rows
73
75
  },
74
76
  layout: 'block',
77
+ align: allConfig.align,
78
+ headerAlign: allConfig.headerAlign,
79
+ width: allConfig.width,
80
+ tip: allConfig.tip,
75
81
  col: allConfig.col || 1,
76
82
  row: allConfig.row || 1
77
83
  };
@@ -1,7 +1,7 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
- import React, { useContext } from 'react';
2
+ import React from 'react';
3
3
  import styled from 'styled-components';
4
- import { LuckDaContext } from "../components/Builder";
4
+ import { useLDCtx } from "../components/Builder";
5
5
  import { formatMessage } from '@luck-design-biz/base/utils';
6
6
  export var ErrorWrapper = styled.span.withConfig({
7
7
  displayName: "ErrorWrapper",
@@ -13,12 +13,15 @@ var builder = function builder(wrapped) {
13
13
  dataSetKey = props.dataSetKey,
14
14
  wrapper = props.wrapper,
15
15
  className = props.className,
16
- style = props.style;
17
- var _ref = useContext(LuckDaContext) || {},
16
+ style = props.style,
17
+ pageProxy = props.pageProxy;
18
+ var _ref = useLDCtx(pageProxy) || {},
18
19
  resources = _ref.resources,
19
20
  actions = _ref.actions,
20
21
  _ref$dataSets = _ref.dataSets,
21
22
  dataSets = _ref$dataSets === void 0 ? [] : _ref$dataSets,
23
+ _ref$moduleUiList = _ref.moduleUiList,
24
+ moduleUiList = _ref$moduleUiList === void 0 ? {} : _ref$moduleUiList,
22
25
  _ref$isTree = _ref.isTree,
23
26
  isTree = _ref$isTree === void 0 ? [] : _ref$isTree,
24
27
  doAction = _ref.doAction,
@@ -59,7 +62,8 @@ var builder = function builder(wrapped) {
59
62
  resources: resources,
60
63
  actions: actions,
61
64
  doAction: doAction,
62
- moduleCode: moduleCode
65
+ moduleCode: moduleCode,
66
+ uiSettings: moduleUiList[dataSetKey] // form和grid的页面配置信息
63
67
  });
64
68
  return wrapped(wrappedProps);
65
69
  };
@@ -1,17 +1,17 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
- var _excluded = ["$css"],
5
- _excluded2 = ["className", "$css"];
6
- import React, { useContext, forwardRef } from 'react';
4
+ var _excluded = ["$css", "pageProxy"],
5
+ _excluded2 = ["className", "$css", "pageProxy"];
6
+ import React, { forwardRef } from 'react';
7
7
  import { useCreation } from 'ahooks';
8
8
  import { includes, intersectionWith, isNil } from 'lodash';
9
9
  import { ChildrenUtil } from '@luck-design-biz/base/utils';
10
- import { LuckDaContext } from "../components/Builder";
10
+ import { useLDCtx } from "../components/Builder";
11
11
  import classNames from 'classnames';
12
12
  import styles from "./index.less";
13
- export var getResources = function getResources() {
14
- var _ref = useContext(LuckDaContext) || {},
13
+ export var getResources = function getResources(pageProxy) {
14
+ var _ref = useLDCtx(pageProxy) || {},
15
15
  _ref$resources = _ref.resources,
16
16
  resources = _ref$resources === void 0 ? [] : _ref$resources;
17
17
  return resources;
@@ -19,26 +19,29 @@ export var getResources = function getResources() {
19
19
  export var ldComBuilder = function ldComBuilder(Com) {
20
20
  var Component = /*#__PURE__*/forwardRef(function (_ref2, ref) {
21
21
  var $css = _ref2.$css,
22
+ pageProxy = _ref2.pageProxy,
22
23
  props = _objectWithoutProperties(_ref2, _excluded);
23
- var resources = getResources();
24
+ var resources = getResources(pageProxy);
24
25
  var hasResources = useCreation(function () {
25
26
  return isNil(props === null || props === void 0 ? void 0 : props.resource) || includes(resources, props.resource);
26
27
  }, [props === null || props === void 0 ? void 0 : props.resource, resources]);
27
28
  if (hasResources) {
28
29
  return /*#__PURE__*/React.createElement(Com, _extends({}, props, {
30
+ pageProxy: pageProxy,
29
31
  ref: ref
30
32
  }));
31
33
  }
32
34
  return props.serialEffect === 'hidden' ? /*#__PURE__*/React.createElement(React.Fragment, null) : /*#__PURE__*/React.createElement(Com, _extends({}, props, {
33
35
  disabled: true,
36
+ pageProxy: pageProxy,
34
37
  ref: ref
35
38
  }));
36
39
  });
37
40
  return Component;
38
41
  };
39
- export var filterOptions = function filterOptions(options) {
40
- var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'resource';
41
- var resources = getResources();
42
+ export var filterOptions = function filterOptions(options, pageProxy) {
43
+ var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'resource';
44
+ var resources = getResources(pageProxy);
42
45
  return intersectionWith(options, resources, function (arrVal, othVal) {
43
46
  return !arrVal[key] || arrVal[key] === othVal;
44
47
  });
@@ -47,9 +50,11 @@ export var deepFilterCom = function deepFilterCom(Com, childMark) {
47
50
  var Component = /*#__PURE__*/forwardRef(function (_ref3, ref) {
48
51
  var className = _ref3.className,
49
52
  $css = _ref3.$css,
53
+ pageProxy = _ref3.pageProxy,
50
54
  props = _objectWithoutProperties(_ref3, _excluded2);
51
- var resources = getResources();
55
+ var resources = getResources(pageProxy);
52
56
  var com = /*#__PURE__*/React.createElement(Com, _extends({}, props, {
57
+ pageProxy: pageProxy,
53
58
  className: classNames(styles.ldLabs, _defineProperty({}, className, !!className)),
54
59
  ref: ref
55
60
  }));
@@ -1,5 +1,6 @@
1
1
  export default {
2
2
  "luckda.lowcode.view.lc-components.label.all": "全部",
3
+ "luckda.lowcode.view.lc-component.design.show": "请在预览、运行界面查看嵌入的代理页面",
3
4
  "luckda.lowcode.painter.import": "导入",
4
5
  "luckda.lowcode.painter.components.fullscreen-exit.tip": "退出全屏",
5
6
  "luckda.lowcode.painter.components.fullscreen.tip": "全屏",
@@ -7,6 +8,9 @@ export default {
7
8
  "lc.form.validator.textNum": "个字符",
8
9
  "lc.form.validator.numberBelowMin": "低于最小值",
9
10
  "lc.form.validator.numberExceedMax": "超过最大值",
11
+ "luckda.lowcode.design.toolbar.selectUser": "模拟登录人",
12
+ "luckda.lowcode.design.toolbar.placeholder.selectUser": "请选择模拟登录人",
13
+ "luckda.lowcode.design.toolbar.debugTool": "调试工具",
10
14
  "luckda.lowcode.painter.I18n.empty": "敬请期待",
11
15
  "luckda.lowcode.painter.panel.attrs": "属性",
12
16
  "luckda.lowcode.painter.panel.css": "样式",
@@ -16,19 +20,28 @@ export default {
16
20
  "luckda.lowcode.modal": "模态视图层",
17
21
  "luckda.lowcode.painter.I18n.search": "搜索文案",
18
22
  "luckda.lowcode.painter.I18n.add": "新增文案",
23
+ "luckda.lowcode.version.delete": "你确定要删除该历史版本吗?",
24
+ "luckda.lowcode.version.confirm.recover": "你确定要还原到该历史版本吗?",
25
+ "luckda.lowcode.version.recover": "还原版本",
26
+ "luckda.lowcode.error.pagedata": "页面数据错误",
27
+ "luckda.lowcode.version.placeholder.search": "请输入查询内容",
28
+ "app.base.operate.delete": "删除",
29
+ "luckda.lowcode.version.diff": "差异比对",
30
+ "luckda.lowcode.version.use": "使用",
31
+ "luckda.lowcode.version.add": "添加到历史版本",
32
+ "luckda.lowcode.version.placeholder.title": "请输入版本标题",
33
+ "luckda.lowcode.version.placeholder.note": "请输入版本描述",
19
34
  "luckda.lowcode.design.toolbar.save.on": "保存中...",
20
35
  "luckda.lowcode.design.toolbar.save.success": "保存成功",
21
36
  "luckda.lowcode.design.toolbar.save.error": "保存失败",
22
37
  "luckda.lowcode.design.toolbar.clear.tip": "清除提示",
23
38
  "luckda.lowcode.design.toolbar.clear": "清除缓存",
24
- "luckda.lowcode.error.pagedata": "页面数据错误",
25
39
  "luckda.lowcode.not.mobile": "此功能暂未开放",
26
40
  "luckda.lowcode.design.toolbar.pageAttrs": "页面属性",
27
- "luckda.lowcode.design.toolbar.debug": "调试",
41
+ "luckda.lowcode.design.toolbar.shortcut": "快捷键",
28
42
  "luckda.lowcode.design.toolbar.code": "Schema面板",
43
+ "luckda.lowcode.design.toolbar.debug": "调试",
29
44
  "luckda.lowcode.design.toolbar.save": "保存",
30
- "luckda.lowcode.design.toolbar.pagePreview": "页面预览",
31
- "luckda.lowcode.design.toolbar.selectUser": "请选择模拟登录人",
32
45
  "app.base.operate.comfire.leave": "离开当前页面?",
33
46
  "app.base.operate.comfire.message.leave": "系统可能不会保存您所做的更改。",
34
47
  "luckda.lowcode.painter.components.search": "搜索组件",
@@ -66,6 +79,22 @@ export default {
66
79
  "luckda.lowcode.painter.panel-section.splitdisplay.split": "分割方向",
67
80
  "luckda.lowcode.painter.panel-section.splitdisplay.ratio": "列比例",
68
81
  "luckda.lowcode.painter.panel-section.Layoutratio.placeholder": "请输入列比例",
82
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin.state": "页面全局状态",
83
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin.global": "页面全局变量",
84
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin.url": "页面URL参数",
85
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin.string": "字符串常量",
86
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin.num": "数字常量",
87
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin.bool": "布尔常量",
88
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-name": "参数名称",
89
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.warn.param-name": "请输入参数名称",
90
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin": "参数来源",
91
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-value": "值或变量名",
92
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.warn.param-value": "请输入参数值或变量名",
93
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.add": "添加参数",
94
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.save": "保存并返回",
95
+ "luckda.lowcode.painter.panel-section.proxy-linker.add": "新建页面",
96
+ "luckda.lowcode.painter.panel-section.proxy-linker.edit": "编辑页面",
97
+ "luckda.lowcode.painter.panel-section.proxy-linker.sync": "同步数据",
69
98
  "luckda.lowcode.painter.pageVars.var": "变量",
70
99
  "luckda.lowcode.painter.pageVars.api": "远程 API",
71
100
  "luckda.lowcode.painter.pageVars.edit": "编辑数据源",
@@ -76,7 +105,6 @@ export default {
76
105
  "luckda.lowcode.painter.pageVars.add": "添加",
77
106
  "luckda.lowcode.painter.panel-section.Layoutratio.err": "必须是数字或者数字加:号的组合",
78
107
  "luckda.lowcode.painter.panel-section.Layoutratio.label": "列比例",
79
- "luckda.lowcode.painter.panel-section.style-panel.sourceedit": "源码编辑",
80
108
  "luckda.lowcode.painter.panel-section.impexp.expType.placeholder": "请选择自定义行为",
81
109
  "luckda.lowcode.painter.panel-section.impexp.impType.placeholder": "请选择自定义行为",
82
110
  "luckda.lowcode.painter.bindCondition": "绑定条件",
@@ -84,6 +112,11 @@ export default {
84
112
  "luckda.lowcode.painter.panel-section.fieldsSetting.field": "数据字段",
85
113
  "luckda.lowcode.painter.panel-section.fieldsSetting.title": "标题",
86
114
  "luckda.lowcode.painter.panel-section.fieldsSetting.batch": "批量设置",
115
+ "luckda.lowcode.painter.panel-section.dialogSize.size.small": "小",
116
+ "luckda.lowcode.painter.panel-section.dialogSize.size.default": "中",
117
+ "luckda.lowcode.painter.panel-section.dialogSize.size.large": "大",
118
+ "luckda.lowcode.painter.panel-section.dialogSize.size.full": "全屏",
119
+ "luckda.lowcode.painter.panel-section.dialogSize.size.custom": "定制",
87
120
  "luckda.lowcode.painter.dateSetSelector.setting": "配置字段",
88
121
  "luckda.lowcode.painter.dateSetSelector.sync": "同步数据",
89
122
  "luckda.lowcode.painter.panel-section.complexPop.assisted": "辅助选择",
@@ -109,6 +142,7 @@ export default {
109
142
  "luckda.lowcode.painter.panel-section.style-panel.margin.down": "下间距",
110
143
  "luckda.lowcode.painter.panel-section.style-panel.margin.left": "左间距",
111
144
  "luckda.lowcode.painter.panel-section.style-panel.group-name": "样式设置",
145
+ "luckda.lowcode.painter.panel-section.style-panel.sourceedit": "源码编辑",
112
146
  "luckda.lowcode.painter.panel-section.style-panel.width": "请输入宽度",
113
147
  "luckda.lowcode.painter.panel-section.style-panel.height": "请输入高度",
114
148
  "luckda.lowcode.painter.panel-section.style-panel.display": "显示",
@@ -168,11 +202,16 @@ export default {
168
202
  "luckda.lowcode.painter.panel-section.style-panel.border.width.ph": "线宽",
169
203
  "luckda.lowcode.painter.panel-section.style-panel.border.color": "颜色",
170
204
  "luckda.lowcode.painter.panel-section.style-panel.background": "背景",
205
+ "luckda.lowcode.painter.panel-section.jseditor.clear": "确定执行操作吗?",
206
+ "luckda.lowcode.painter.panel-section.jseditor.saveto": "保存为",
207
+ "app.base.operate.clear": "清空",
208
+ "app.base.operate.ok": "确定",
171
209
  "luckda.lowcode.painter.panel-section.blocksEditor.auto": "表单",
172
210
  "luckda.lowcode.painter.panel-section.blocksEditor.grid": "表格",
173
211
  "luckda.lowcode.painter.panel-section.blocksEditor.writer": "行内编辑表格",
174
212
  "luckda.lowcode.painter.panel-section.blocksEditor.uploadForm": "附件列表",
175
213
  "luckda.lowcode.painter.panel-section.blocksEditor.blank": "空白区",
214
+ "luckda.lowcode.painter.panel-section.blocksEditor.defaultBlock": "默认区块",
176
215
  "luckda.lowcode.painter.panel-section.blocksEditor.addBlock": "新增区块",
177
216
  "luckda.lowcode.painter.panel-section.actionsEditor.button": "按钮",
178
217
  "luckda.lowcode.painter.panel-section.actionsEditor.text": "文本",
@@ -228,6 +267,20 @@ export default {
228
267
  "luckda.lowcode.painter.actionBindModal.params": "配置参数",
229
268
  "luckda.lowcode.painter.actionBindModal.params.info": "请勿随意修改配置参数结构和参数名称,参数异常可能会导致请求失败",
230
269
  "luckda.lowcode.painter.actionBindModal.noActionSelected": "请在右侧选择行为项",
270
+ "luckda.lowcode.design.toolbar.shortcut.save": "保存",
271
+ "luckda.lowcode.design.toolbar.shortcut.preview": "预览调试",
272
+ "luckda.lowcode.design.toolbar.shortcut.undo": "撤销",
273
+ "luckda.lowcode.design.toolbar.shortcut.redo": "重做",
274
+ "luckda.lowcode.design.toolbar.shortcut.copy": "克隆组件",
275
+ "luckda.lowcode.design.toolbar.shortcut.delete": "删除组件",
276
+ "luckda.lowcode.design.toolbar.shortcut.selectParent": "选择父级组件",
277
+ "luckda.lowcode.design.toolbar.shortcut.selectChildren": "选择子级组件",
278
+ "luckda.lowcode.design.toolbar.shortcut.selectLeftBrother": "向左选择兄弟组件",
279
+ "luckda.lowcode.design.toolbar.shortcut.selectRightBrother": "向右选择兄弟组件",
280
+ "luckda.lowcode.design.toolbar.shortcut.moveLeft": "向左移动组件",
281
+ "luckda.lowcode.design.toolbar.shortcut.moveRight": "向右移动组件",
282
+ "luckda.lowcode.design.toolbar.shortcut.general": "常规操作",
283
+ "luckda.lowcode.design.toolbar.shortcut.others": "组件选择和移动",
231
284
  "luckda.lowcode.painter.panel-section.fieldsSetting.align.left": "居左",
232
285
  "luckda.lowcode.painter.panel-section.fieldsSetting.align.center": "居中",
233
286
  "luckda.lowcode.painter.panel-section.fieldsSetting.align.right": "居右",
@@ -250,6 +303,7 @@ export default {
250
303
  "luckda.lowcode.painter.panel-section.fieldsSetting.form.display": "表单中显示",
251
304
  "luckda.lowcode.painter.panel-section.fieldsSetting.writable": "是否可写",
252
305
  "luckda.lowcode.painter.panel-section.fieldsSetting.readonly": "是否只读",
306
+ "luckda.lowcode.painter.panel-section.fieldsSetting.dateFormat": "日期格式",
253
307
  "luckda.lowcode.painter.panel-section.fieldsSetting.render": "内容定制渲染",
254
308
  "luckda.lowcode.painter.panel-section.fieldsSetting.defaultValue": "默认值",
255
309
  "luckda.lowcode.painter.settingTo": "设置为",
@@ -275,5 +329,6 @@ export default {
275
329
  "luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.verifyType": "请选择校验规则",
276
330
  "luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.errorMsg": "错误提示",
277
331
  "luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.errorMsg": "请输入错误提示",
278
- "luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.logic": "校验逻辑"
332
+ "luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.logic": "校验逻辑",
333
+ "luckda.lowcode.view.lc-component.design.nocode": "缺少页面代理编码配置"
279
334
  };