@lingxiteam/ebe-utils 0.0.1

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 (562) hide show
  1. package/README.md +217 -0
  2. package/bin/ebe.js +7 -0
  3. package/es/constants.d.ts +2 -0
  4. package/es/constants.js +183 -0
  5. package/es/index.d.ts +64 -0
  6. package/es/index.js +539 -0
  7. package/es/node/babel/getAllImportFiles.d.ts +1 -0
  8. package/es/node/babel/getAllImportFiles.js +79 -0
  9. package/es/node/babel/getRealPath.d.ts +5 -0
  10. package/es/node/babel/getRealPath.js +40 -0
  11. package/es/node/babel/parse.d.ts +6 -0
  12. package/es/node/babel/parse.js +20 -0
  13. package/es/node/cli.d.ts +1 -0
  14. package/es/node/cli.js +87 -0
  15. package/es/node/constants.d.ts +1 -0
  16. package/es/node/constants.js +3 -0
  17. package/es/node/copyStatic.d.ts +6 -0
  18. package/es/node/copyStatic.js +25 -0
  19. package/es/node/move.d.ts +5 -0
  20. package/es/node/move.js +64 -0
  21. package/es/node/setup.d.ts +4 -0
  22. package/es/node/setup.js +40 -0
  23. package/es/shims.d.ts +4 -0
  24. package/es/types.d.ts +14 -0
  25. package/es/types.js +1 -0
  26. package/lib/node/babel/getAllImportFiles.d.ts +1 -0
  27. package/lib/node/babel/getAllImportFiles.js +106 -0
  28. package/lib/node/babel/getRealPath.d.ts +5 -0
  29. package/lib/node/babel/getRealPath.js +59 -0
  30. package/lib/node/babel/parse.d.ts +6 -0
  31. package/lib/node/babel/parse.js +64 -0
  32. package/lib/node/cli.d.ts +1 -0
  33. package/lib/node/cli.js +37 -0
  34. package/lib/node/constants.d.ts +1 -0
  35. package/lib/node/constants.js +30 -0
  36. package/lib/node/copyStatic.d.ts +6 -0
  37. package/lib/node/copyStatic.js +57 -0
  38. package/lib/node/move.d.ts +5 -0
  39. package/lib/node/move.js +66 -0
  40. package/lib/node/setup.d.ts +4 -0
  41. package/lib/node/setup.js +43 -0
  42. package/lib/public/.editorconfig +17 -0
  43. package/lib/public/.prettierignore +15 -0
  44. package/lib/public/.stylelintrc.js +3 -0
  45. package/lib/public/deploy.sh +48 -0
  46. package/lib/public/docker/Dockerfile +11 -0
  47. package/lib/public/docker/default.conf +24 -0
  48. package/lib/public/src/assets/pageicon/closeIcon.png +0 -0
  49. package/lib/public/src/assets/pageicon/deleteIcon.png +0 -0
  50. package/lib/public/src/assets/pageicon/downloadIcon.png +0 -0
  51. package/lib/public/src/assets/pageicon/excel.png +0 -0
  52. package/lib/public/src/assets/pageicon/ico-container-drawer.png +0 -0
  53. package/lib/public/src/assets/pageicon/ico-container-modal.png +0 -0
  54. package/lib/public/src/assets/pageicon/ico-container-page.png +0 -0
  55. package/lib/public/src/assets/pageicon/index.ts +25 -0
  56. package/lib/public/src/assets/pageicon/leftIcon.png +0 -0
  57. package/lib/public/src/assets/pageicon/rightIcon.png +0 -0
  58. package/lib/public/src/assets/pageicon/zoomInIcon.png +0 -0
  59. package/lib/public/src/assets/pageicon/zoomOutIcon.png +0 -0
  60. package/lib/public/src/components/ExpBusiObjModal/index.less +28 -0
  61. package/lib/public/src/components/ExpBusiObjModal/index.tsx +315 -0
  62. package/lib/public/src/components/ExpSQLServiceModal/index.less +28 -0
  63. package/lib/public/src/components/ExpSQLServiceModal/index.tsx +295 -0
  64. package/lib/public/src/components/IconFont/IconFont.tsx +26 -0
  65. package/lib/public/src/components/IconFont/index.ts +1 -0
  66. package/lib/public/src/components/ImportBusiObjModal/index.less +262 -0
  67. package/lib/public/src/components/ImportBusiObjModal/index.tsx +1243 -0
  68. package/lib/public/src/components/LoaderHelper/index.tsx +29 -0
  69. package/lib/public/src/components/PreviewFile/index.less +200 -0
  70. package/lib/public/src/components/PreviewFile/index.tsx +787 -0
  71. package/lib/public/src/components/PreviewFile/utils.ts +90 -0
  72. package/lib/public/src/components/ProgressComp/ProgressComp.less +64 -0
  73. package/lib/public/src/components/ProgressComp/ProgressComp.tsx +34 -0
  74. package/lib/public/src/components/ProgressComp/index.tsx +153 -0
  75. package/lib/public/src/components/common/ExpBusiObjModal/index.less +28 -0
  76. package/lib/public/src/components/common/ExpBusiObjModal/index.tsx +315 -0
  77. package/lib/public/src/components/common/PreviewFile/index.less +200 -0
  78. package/lib/public/src/components/common/PreviewFile/index.tsx +787 -0
  79. package/lib/public/src/components/common/PreviewFile/utils.ts +90 -0
  80. package/lib/public/src/components/pcfactory/src/Alert/index.tsx +22 -0
  81. package/lib/public/src/components/pcfactory/src/Animation/index.tsx +186 -0
  82. package/lib/public/src/components/pcfactory/src/Animation/useAnimation.ts +270 -0
  83. package/lib/public/src/components/pcfactory/src/Animation/useBackgroundStyle.ts +74 -0
  84. package/lib/public/src/components/pcfactory/src/Audio/index.tsx +240 -0
  85. package/lib/public/src/components/pcfactory/src/BarChart/index.tsx +3 -0
  86. package/lib/public/src/components/pcfactory/src/Button/index.tsx +151 -0
  87. package/lib/public/src/components/pcfactory/src/Card/index.tsx +201 -0
  88. package/lib/public/src/components/pcfactory/src/Card/useExtendBtn.tsx +195 -0
  89. package/lib/public/src/components/pcfactory/src/Cascader/index.tsx +398 -0
  90. package/lib/public/src/components/pcfactory/src/ChartBar/index.tsx +15 -0
  91. package/lib/public/src/components/pcfactory/src/ChartBar/loader.tsx +12 -0
  92. package/lib/public/src/components/pcfactory/src/ChartLine/ChartLine.tsx +48 -0
  93. package/lib/public/src/components/pcfactory/src/ChartLine/PropsType.ts +88 -0
  94. package/lib/public/src/components/pcfactory/src/ChartLine/index.tsx +15 -0
  95. package/lib/public/src/components/pcfactory/src/ChartLine/loader.tsx +12 -0
  96. package/lib/public/src/components/pcfactory/src/Checkbox/index.tsx +144 -0
  97. package/lib/public/src/components/pcfactory/src/CheckboxGroup/index.tsx +319 -0
  98. package/lib/public/src/components/pcfactory/src/Collapse/index.tsx +195 -0
  99. package/lib/public/src/components/pcfactory/src/CollapsePanel/index.tsx +186 -0
  100. package/lib/public/src/components/pcfactory/src/Condition/index.tsx +22 -0
  101. package/lib/public/src/components/pcfactory/src/DatePicker/index.tsx +756 -0
  102. package/lib/public/src/components/pcfactory/src/Description/index.tsx +447 -0
  103. package/lib/public/src/components/pcfactory/src/Description/utils/getLabelSizeMode.ts +40 -0
  104. package/lib/public/src/components/pcfactory/src/Divider/components/CenterLineDivider/index.tsx +190 -0
  105. package/lib/public/src/components/pcfactory/src/Divider/components/CenterTabDivider/index.tsx +77 -0
  106. package/lib/public/src/components/pcfactory/src/Divider/components/LeftCardDivider/index.tsx +87 -0
  107. package/lib/public/src/components/pcfactory/src/Divider/components/LeftLineDivider/index.tsx +106 -0
  108. package/lib/public/src/components/pcfactory/src/Divider/components/LeftTabDivider/index.tsx +60 -0
  109. package/lib/public/src/components/pcfactory/src/Divider/components/LeftTopDivider/index.tsx +55 -0
  110. package/lib/public/src/components/pcfactory/src/Divider/components/LxDashed/index.module.less +10 -0
  111. package/lib/public/src/components/pcfactory/src/Divider/components/LxDashed/index.tsx +143 -0
  112. package/lib/public/src/components/pcfactory/src/Divider/components/LxSolid/index.module.less +10 -0
  113. package/lib/public/src/components/pcfactory/src/Divider/components/LxSolid/index.tsx +126 -0
  114. package/lib/public/src/components/pcfactory/src/Divider/index.tsx +210 -0
  115. package/lib/public/src/components/pcfactory/src/Dropdown/index.tsx +385 -0
  116. package/lib/public/src/components/pcfactory/src/DynamicTabs/PropsType.ts +31 -0
  117. package/lib/public/src/components/pcfactory/src/DynamicTabs/TabPage.tsx +63 -0
  118. package/lib/public/src/components/pcfactory/src/DynamicTabs/index.tsx +214 -0
  119. package/lib/public/src/components/pcfactory/src/Form/Form.tsx +600 -0
  120. package/lib/public/src/components/pcfactory/src/Form/WrapperForm.ts +14 -0
  121. package/lib/public/src/components/pcfactory/src/Form/index.tsx +15 -0
  122. package/lib/public/src/components/pcfactory/src/Form/useFormStatus.ts +47 -0
  123. package/lib/public/src/components/pcfactory/src/Form/useMonitor.ts +40 -0
  124. package/lib/public/src/components/pcfactory/src/FormGroup/TitleComp.tsx +107 -0
  125. package/lib/public/src/components/pcfactory/src/FormGroup/index.tsx +181 -0
  126. package/lib/public/src/components/pcfactory/src/FreeLayout/index.tsx +151 -0
  127. package/lib/public/src/components/pcfactory/src/Gantt/Gantt.tsx +460 -0
  128. package/lib/public/src/components/pcfactory/src/Gantt/const.ts +122 -0
  129. package/lib/public/src/components/pcfactory/src/Gantt/index.tsx +16 -0
  130. package/lib/public/src/components/pcfactory/src/Gantt/loader.tsx +12 -0
  131. package/lib/public/src/components/pcfactory/src/GridView/GridView.tsx +435 -0
  132. package/lib/public/src/components/pcfactory/src/GridView/index.tsx +24 -0
  133. package/lib/public/src/components/pcfactory/src/GridView/loader.tsx +12 -0
  134. package/lib/public/src/components/pcfactory/src/HorizontalView/index.tsx +32 -0
  135. package/lib/public/src/components/pcfactory/src/Icon/IconED/index.tsx +42 -0
  136. package/lib/public/src/components/pcfactory/src/Icon/PropsType.ts +57 -0
  137. package/lib/public/src/components/pcfactory/src/Icon/hooks/index.tsx +300 -0
  138. package/lib/public/src/components/pcfactory/src/Icon/index.tsx +69 -0
  139. package/lib/public/src/components/pcfactory/src/IconFont/index.tsx +24 -0
  140. package/lib/public/src/components/pcfactory/src/Img/BasicImage/index.tsx +90 -0
  141. package/lib/public/src/components/pcfactory/src/Img/assets/placeholder.png +0 -0
  142. package/lib/public/src/components/pcfactory/src/Img/index.tsx +91 -0
  143. package/lib/public/src/components/pcfactory/src/Input/index.tsx +425 -0
  144. package/lib/public/src/components/pcfactory/src/InputNumber/index.tsx +263 -0
  145. package/lib/public/src/components/pcfactory/src/LXPieChart/LXPieChart.tsx +23 -0
  146. package/lib/public/src/components/pcfactory/src/LXPieChart/PropsType.ts +11 -0
  147. package/lib/public/src/components/pcfactory/src/LXPieChart/index.less +6 -0
  148. package/lib/public/src/components/pcfactory/src/LXPieChart/index.tsx +15 -0
  149. package/lib/public/src/components/pcfactory/src/LXPieChart/loader.tsx +12 -0
  150. package/lib/public/src/components/pcfactory/src/LXRadarChart/LXRadarChat.tsx +25 -0
  151. package/lib/public/src/components/pcfactory/src/LXRadarChart/PropsType.ts +9 -0
  152. package/lib/public/src/components/pcfactory/src/LXRadarChart/index.less +7 -0
  153. package/lib/public/src/components/pcfactory/src/LXRadarChart/index.tsx +17 -0
  154. package/lib/public/src/components/pcfactory/src/LXRadarChart/loader.tsx +12 -0
  155. package/lib/public/src/components/pcfactory/src/Layout/index.tsx +130 -0
  156. package/lib/public/src/components/pcfactory/src/Layout/utils.ts +48 -0
  157. package/lib/public/src/components/pcfactory/src/LineChart/index.tsx +3 -0
  158. package/lib/public/src/components/pcfactory/src/Link/index.tsx +117 -0
  159. package/lib/public/src/components/pcfactory/src/LoopList/index.tsx +551 -0
  160. package/lib/public/src/components/pcfactory/src/Menu/index.tsx +422 -0
  161. package/lib/public/src/components/pcfactory/src/ModalSelect/BaseModalSelect.tsx +95 -0
  162. package/lib/public/src/components/pcfactory/src/ModalSelect/index.tsx +453 -0
  163. package/lib/public/src/components/pcfactory/src/MultipleSelect/index.tsx +3 -0
  164. package/lib/public/src/components/pcfactory/src/Pagination/index.tsx +104 -0
  165. package/lib/public/src/components/pcfactory/src/Password/index.tsx +88 -0
  166. package/lib/public/src/components/pcfactory/src/PictureVerifyCode/assets/placeholder.png +0 -0
  167. package/lib/public/src/components/pcfactory/src/PictureVerifyCode/index.tsx +76 -0
  168. package/lib/public/src/components/pcfactory/src/PieChart/index.tsx +3 -0
  169. package/lib/public/src/components/pcfactory/src/Progress/index.tsx +155 -0
  170. package/lib/public/src/components/pcfactory/src/QRCode/const.ts +5 -0
  171. package/lib/public/src/components/pcfactory/src/QRCode/index.tsx +146 -0
  172. package/lib/public/src/components/pcfactory/src/QuillEditor/QuillEditor.tsx +197 -0
  173. package/lib/public/src/components/pcfactory/src/QuillEditor/index.tsx +37 -0
  174. package/lib/public/src/components/pcfactory/src/QuillEditor/loader.ts +12 -0
  175. package/lib/public/src/components/pcfactory/src/RadarChart/RadarChartHook.ts +449 -0
  176. package/lib/public/src/components/pcfactory/src/RadarChart/RadarChartType.ts +39 -0
  177. package/lib/public/src/components/pcfactory/src/RadarChart/RadarECharts.tsx +86 -0
  178. package/lib/public/src/components/pcfactory/src/RadarChart/index.tsx +16 -0
  179. package/lib/public/src/components/pcfactory/src/RadarChart/loader.tsx +12 -0
  180. package/lib/public/src/components/pcfactory/src/RadarChart/radarDefaultConfig.js +55 -0
  181. package/lib/public/src/components/pcfactory/src/Radio/index.tsx +260 -0
  182. package/lib/public/src/components/pcfactory/src/RangePicker/index.tsx +3 -0
  183. package/lib/public/src/components/pcfactory/src/Rate/index.tsx +187 -0
  184. package/lib/public/src/components/pcfactory/src/ReactECharts/PropsType.ts +37 -0
  185. package/lib/public/src/components/pcfactory/src/ReactECharts/ReactECharts.tsx +672 -0
  186. package/lib/public/src/components/pcfactory/src/ReactECharts/index.tsx +26 -0
  187. package/lib/public/src/components/pcfactory/src/ReactECharts/loader.tsx +12 -0
  188. package/lib/public/src/components/pcfactory/src/RemoteComponent/components/FishRender.tsx +31 -0
  189. package/lib/public/src/components/pcfactory/src/RemoteComponent/components/ReactRender.tsx +55 -0
  190. package/lib/public/src/components/pcfactory/src/RemoteComponent/components/VueRender.tsx +32 -0
  191. package/lib/public/src/components/pcfactory/src/RemoteComponent/constant.ts +9 -0
  192. package/lib/public/src/components/pcfactory/src/RemoteComponent/index.tsx +82 -0
  193. package/lib/public/src/components/pcfactory/src/RemoteComponent/remote-component.config.ts +12 -0
  194. package/lib/public/src/components/pcfactory/src/Result/index.tsx +27 -0
  195. package/lib/public/src/components/pcfactory/src/RichTextEditor/LcdpUeditorMain.tsx +105 -0
  196. package/lib/public/src/components/pcfactory/src/RichTextEditor/RichTextEditor.tsx +234 -0
  197. package/lib/public/src/components/pcfactory/src/RichTextEditor/RichTextEditorMain.tsx +41 -0
  198. package/lib/public/src/components/pcfactory/src/RichTextEditor/index.tsx +33 -0
  199. package/lib/public/src/components/pcfactory/src/RichTextEditor/loader.ts +12 -0
  200. package/lib/public/src/components/pcfactory/src/Row/Row.tsx +66 -0
  201. package/lib/public/src/components/pcfactory/src/Row/index.tsx +9 -0
  202. package/lib/public/src/components/pcfactory/src/Row/loader.tsx +12 -0
  203. package/lib/public/src/components/pcfactory/src/Select/index.tsx +628 -0
  204. package/lib/public/src/components/pcfactory/src/Select/selectUtils.ts +257 -0
  205. package/lib/public/src/components/pcfactory/src/Slider/index.tsx +351 -0
  206. package/lib/public/src/components/pcfactory/src/StdUpload/DownloadProgress/DownloadProgress.tsx +27 -0
  207. package/lib/public/src/components/pcfactory/src/StdUpload/DownloadProgress/index.ts +3 -0
  208. package/lib/public/src/components/pcfactory/src/StdUpload/UploadItem.tsx +257 -0
  209. package/lib/public/src/components/pcfactory/src/StdUpload/assets/default.png +0 -0
  210. package/lib/public/src/components/pcfactory/src/StdUpload/assets/js.png +0 -0
  211. package/lib/public/src/components/pcfactory/src/StdUpload/assets/pdf.png +0 -0
  212. package/lib/public/src/components/pcfactory/src/StdUpload/assets/ppt.png +0 -0
  213. package/lib/public/src/components/pcfactory/src/StdUpload/assets/txt.png +0 -0
  214. package/lib/public/src/components/pcfactory/src/StdUpload/assets/word.png +0 -0
  215. package/lib/public/src/components/pcfactory/src/StdUpload/assets/xls.png +0 -0
  216. package/lib/public/src/components/pcfactory/src/StdUpload/assets/zip.png +0 -0
  217. package/lib/public/src/components/pcfactory/src/StdUpload/index.tsx +1050 -0
  218. package/lib/public/src/components/pcfactory/src/StdUpload/uploadItem.less +64 -0
  219. package/lib/public/src/components/pcfactory/src/Steps/constant/checkcircle.tsx +29 -0
  220. package/lib/public/src/components/pcfactory/src/Steps/constant/index.ts +2 -0
  221. package/lib/public/src/components/pcfactory/src/Steps/constant/vector.tsx +13 -0
  222. package/lib/public/src/components/pcfactory/src/Steps/index.tsx +343 -0
  223. package/lib/public/src/components/pcfactory/src/SuperSelect/ComSelect.tsx +538 -0
  224. package/lib/public/src/components/pcfactory/src/SuperSelect/index.tsx +127 -0
  225. package/lib/public/src/components/pcfactory/src/SuperSelect/loader.tsx +12 -0
  226. package/lib/public/src/components/pcfactory/src/Swiper/index.tsx +184 -0
  227. package/lib/public/src/components/pcfactory/src/Switch/index.tsx +219 -0
  228. package/lib/public/src/components/pcfactory/src/TabPane/index.tsx +145 -0
  229. package/lib/public/src/components/pcfactory/src/Table/BodyCell/index.tsx +278 -0
  230. package/lib/public/src/components/pcfactory/src/Table/EditComponent/index.tsx +554 -0
  231. package/lib/public/src/components/pcfactory/src/Table/FormatCell/GhostTag/index.tsx +34 -0
  232. package/lib/public/src/components/pcfactory/src/Table/FormatCell/Hyperlink/index.tsx +26 -0
  233. package/lib/public/src/components/pcfactory/src/Table/FormatCell/PointTag/index.tsx +41 -0
  234. package/lib/public/src/components/pcfactory/src/Table/FormatCell/PureColourFill/index.tsx +32 -0
  235. package/lib/public/src/components/pcfactory/src/Table/FormatCell/PureFadeColourTag/index.tsx +34 -0
  236. package/lib/public/src/components/pcfactory/src/Table/FormatCell/index.tsx +227 -0
  237. package/lib/public/src/components/pcfactory/src/Table/HeaderCell/HeaderCellTitle/index.tsx +63 -0
  238. package/lib/public/src/components/pcfactory/src/Table/HeaderCell/index.tsx +32 -0
  239. package/lib/public/src/components/pcfactory/src/Table/TableHead/index.tsx +501 -0
  240. package/lib/public/src/components/pcfactory/src/Table/TableSummaryRow/index.tsx +46 -0
  241. package/lib/public/src/components/pcfactory/src/Table/constant.ts +73 -0
  242. package/lib/public/src/components/pcfactory/src/Table/hooks/index.ts +32 -0
  243. package/lib/public/src/components/pcfactory/src/Table/hooks/useCMDActions.ts +325 -0
  244. package/lib/public/src/components/pcfactory/src/Table/hooks/useCheckStrict.ts +176 -0
  245. package/lib/public/src/components/pcfactory/src/Table/hooks/useColumns.tsx +1851 -0
  246. package/lib/public/src/components/pcfactory/src/Table/hooks/useCommon.ts +39 -0
  247. package/lib/public/src/components/pcfactory/src/Table/hooks/useDataSource.ts +201 -0
  248. package/lib/public/src/components/pcfactory/src/Table/hooks/useExpandable.tsx +324 -0
  249. package/lib/public/src/components/pcfactory/src/Table/hooks/useFilter.tsx +274 -0
  250. package/lib/public/src/components/pcfactory/src/Table/hooks/useFormatCell.ts +309 -0
  251. package/lib/public/src/components/pcfactory/src/Table/hooks/usePagination.ts +104 -0
  252. package/lib/public/src/components/pcfactory/src/Table/hooks/useRowEdit.ts +302 -0
  253. package/lib/public/src/components/pcfactory/src/Table/hooks/useRowMerge.ts +93 -0
  254. package/lib/public/src/components/pcfactory/src/Table/hooks/useScroll.ts +120 -0
  255. package/lib/public/src/components/pcfactory/src/Table/hooks/useSelection.ts +467 -0
  256. package/lib/public/src/components/pcfactory/src/Table/hooks/useSort.ts +39 -0
  257. package/lib/public/src/components/pcfactory/src/Table/hooks/useSummaryCol.ts +191 -0
  258. package/lib/public/src/components/pcfactory/src/Table/index.tsx +525 -0
  259. package/lib/public/src/components/pcfactory/src/Table/utils/SequenceId.ts +104 -0
  260. package/lib/public/src/components/pcfactory/src/Table/utils/index.ts +442 -0
  261. package/lib/public/src/components/pcfactory/src/Tabs/index.tsx +209 -0
  262. package/lib/public/src/components/pcfactory/src/Tag/index.tsx +39 -0
  263. package/lib/public/src/components/pcfactory/src/Text/index.tsx +191 -0
  264. package/lib/public/src/components/pcfactory/src/TextArea/ForIETextArea.tsx +96 -0
  265. package/lib/public/src/components/pcfactory/src/TextArea/index.tsx +255 -0
  266. package/lib/public/src/components/pcfactory/src/TimePicker/index.tsx +3 -0
  267. package/lib/public/src/components/pcfactory/src/TlrView/index.tsx +3 -0
  268. package/lib/public/src/components/pcfactory/src/TooltipView/PropsType.ts +22 -0
  269. package/lib/public/src/components/pcfactory/src/TooltipView/TooltipViewED/index.tsx +10 -0
  270. package/lib/public/src/components/pcfactory/src/TooltipView/hooks/index.tsx +90 -0
  271. package/lib/public/src/components/pcfactory/src/TooltipView/index.tsx +13 -0
  272. package/lib/public/src/components/pcfactory/src/Transfer/index.tsx +753 -0
  273. package/lib/public/src/components/pcfactory/src/Tree/TreeNodeMenu/index.tsx +102 -0
  274. package/lib/public/src/components/pcfactory/src/Tree/index.tsx +1303 -0
  275. package/lib/public/src/components/pcfactory/src/TreeSelect/index.tsx +639 -0
  276. package/lib/public/src/components/pcfactory/src/TreeTable/hooks/index.ts +4 -0
  277. package/lib/public/src/components/pcfactory/src/TreeTable/hooks/useCMDAction.ts +82 -0
  278. package/lib/public/src/components/pcfactory/src/TreeTable/hooks/useExpandable.tsx +61 -0
  279. package/lib/public/src/components/pcfactory/src/TreeTable/index.tsx +273 -0
  280. package/lib/public/src/components/pcfactory/src/Upload/Upload.tsx +740 -0
  281. package/lib/public/src/components/pcfactory/src/Upload/index.tsx +29 -0
  282. package/lib/public/src/components/pcfactory/src/Upload/loader.tsx +13 -0
  283. package/lib/public/src/components/pcfactory/src/VerificationCode/assets/placeholder.png +0 -0
  284. package/lib/public/src/components/pcfactory/src/VerificationCode/index.tsx +297 -0
  285. package/lib/public/src/components/pcfactory/src/VerticalView/index.tsx +25 -0
  286. package/lib/public/src/components/pcfactory/src/VideoPlayer/index.tsx +159 -0
  287. package/lib/public/src/components/pcfactory/src/View/index.tsx +150 -0
  288. package/lib/public/src/components/pcfactory/src/View/useBackgroundStyle.ts +75 -0
  289. package/lib/public/src/components/pcfactory/src/VirtualGroup/index.tsx +16 -0
  290. package/lib/public/src/components/pcfactory/src/Webview/index.tsx +104 -0
  291. package/lib/public/src/components/pcfactory/src/index.component.ts +253 -0
  292. package/lib/public/src/components/pcfactory/src/styles/common.less +107 -0
  293. package/lib/public/src/components/pcfactory/src/styles/compatible.less +976 -0
  294. package/lib/public/src/components/pcfactory/src/styles/components/Alert.less +25 -0
  295. package/lib/public/src/components/pcfactory/src/styles/components/Audio.less +198 -0
  296. package/lib/public/src/components/pcfactory/src/styles/components/Button.less +32 -0
  297. package/lib/public/src/components/pcfactory/src/styles/components/Card.less +155 -0
  298. package/lib/public/src/components/pcfactory/src/styles/components/Cascader.less +54 -0
  299. package/lib/public/src/components/pcfactory/src/styles/components/Checkbox.less +7 -0
  300. package/lib/public/src/components/pcfactory/src/styles/components/Collapse.less +214 -0
  301. package/lib/public/src/components/pcfactory/src/styles/components/DatePicker.less +22 -0
  302. package/lib/public/src/components/pcfactory/src/styles/components/Description.less +64 -0
  303. package/lib/public/src/components/pcfactory/src/styles/components/Divider.less +530 -0
  304. package/lib/public/src/components/pcfactory/src/styles/components/Drawer.less +54 -0
  305. package/lib/public/src/components/pcfactory/src/styles/components/Dropdown.less +11 -0
  306. package/lib/public/src/components/pcfactory/src/styles/components/DynamicDataContainer.less +16 -0
  307. package/lib/public/src/components/pcfactory/src/styles/components/DynamicTabs.less +254 -0
  308. package/lib/public/src/components/pcfactory/src/styles/components/Form.less +265 -0
  309. package/lib/public/src/components/pcfactory/src/styles/components/FormGroup.less +111 -0
  310. package/lib/public/src/components/pcfactory/src/styles/components/Gantt.less +139 -0
  311. package/lib/public/src/components/pcfactory/src/styles/components/GridView.less +62 -0
  312. package/lib/public/src/components/pcfactory/src/styles/components/Icon.less +20 -0
  313. package/lib/public/src/components/pcfactory/src/styles/components/Input.less +164 -0
  314. package/lib/public/src/components/pcfactory/src/styles/components/InputNumber.less +124 -0
  315. package/lib/public/src/components/pcfactory/src/styles/components/InputPassword.less +3 -0
  316. package/lib/public/src/components/pcfactory/src/styles/components/Link.less +4 -0
  317. package/lib/public/src/components/pcfactory/src/styles/components/LoopList.less +67 -0
  318. package/lib/public/src/components/pcfactory/src/styles/components/Menu.less +54 -0
  319. package/lib/public/src/components/pcfactory/src/styles/components/ModalSelect.less +42 -0
  320. package/lib/public/src/components/pcfactory/src/styles/components/Popconfirm.less +7 -0
  321. package/lib/public/src/components/pcfactory/src/styles/components/Progress.less +57 -0
  322. package/lib/public/src/components/pcfactory/src/styles/components/QuillEditor.less +15 -0
  323. package/lib/public/src/components/pcfactory/src/styles/components/Radio.less +7 -0
  324. package/lib/public/src/components/pcfactory/src/styles/components/Rate.less +16 -0
  325. package/lib/public/src/components/pcfactory/src/styles/components/Result.less +26 -0
  326. package/lib/public/src/components/pcfactory/src/styles/components/Select.less +146 -0
  327. package/lib/public/src/components/pcfactory/src/styles/components/Slider.less +78 -0
  328. package/lib/public/src/components/pcfactory/src/styles/components/StdUpload.less +225 -0
  329. package/lib/public/src/components/pcfactory/src/styles/components/Step.less +91 -0
  330. package/lib/public/src/components/pcfactory/src/styles/components/SuperSelect.less +83 -0
  331. package/lib/public/src/components/pcfactory/src/styles/components/Swiper.less +106 -0
  332. package/lib/public/src/components/pcfactory/src/styles/components/Switch.less +49 -0
  333. package/lib/public/src/components/pcfactory/src/styles/components/Table.less +1229 -0
  334. package/lib/public/src/components/pcfactory/src/styles/components/Tabs.less +291 -0
  335. package/lib/public/src/components/pcfactory/src/styles/components/Tag.less +107 -0
  336. package/lib/public/src/components/pcfactory/src/styles/components/TextArea.less +12 -0
  337. package/lib/public/src/components/pcfactory/src/styles/components/TooltipView.less +43 -0
  338. package/lib/public/src/components/pcfactory/src/styles/components/Transfer.less +155 -0
  339. package/lib/public/src/components/pcfactory/src/styles/components/Tree.less +329 -0
  340. package/lib/public/src/components/pcfactory/src/styles/components/TreeSelect.less +65 -0
  341. package/lib/public/src/components/pcfactory/src/styles/components/Upload.less +26 -0
  342. package/lib/public/src/components/pcfactory/src/styles/components/VerificationCode.less +162 -0
  343. package/lib/public/src/components/pcfactory/src/styles/components/Webview.less +31 -0
  344. package/lib/public/src/components/pcfactory/src/styles/index.less +10 -0
  345. package/lib/public/src/components/pcfactory/src/styles/index.ued.less +65 -0
  346. package/lib/public/src/components/pcfactory/src/styles/theme/variables/antdVariables.less +84 -0
  347. package/lib/public/src/components/pcfactory/src/styles/theme/variables/common.less +9 -0
  348. package/lib/public/src/components/pcfactory/src/styles/theme/variables/customVariables.less +35 -0
  349. package/lib/public/src/components/pcfactory/src/styles/theme/variables/index.less +2 -0
  350. package/lib/public/src/components/pcfactory/src/utils/ChannelContainer.tsx +150 -0
  351. package/lib/public/src/components/pcfactory/src/utils/ChildRender.ts +103 -0
  352. package/lib/public/src/components/pcfactory/src/utils/CustomModule.tsx +134 -0
  353. package/lib/public/src/components/pcfactory/src/utils/DummyFormContext.ts +136 -0
  354. package/lib/public/src/components/pcfactory/src/utils/Empty/customLocale.tsx +6 -0
  355. package/lib/public/src/components/pcfactory/src/utils/Empty/empty.tsx +37 -0
  356. package/lib/public/src/components/pcfactory/src/utils/LoaderHelper.tsx +29 -0
  357. package/lib/public/src/components/pcfactory/src/utils/PropsType.ts +21 -0
  358. package/lib/public/src/components/pcfactory/src/utils/WithSyncValue.ts +218 -0
  359. package/lib/public/src/components/pcfactory/src/utils/ahooks/index.ts +22 -0
  360. package/lib/public/src/components/pcfactory/src/utils/ahooks/useCreation.ts +23 -0
  361. package/lib/public/src/components/pcfactory/src/utils/ahooks/useDeepCompareEffect.ts +27 -0
  362. package/lib/public/src/components/pcfactory/src/utils/ahooks/useMap.ts +46 -0
  363. package/lib/public/src/components/pcfactory/src/utils/ahooks/useMemoizedFn.ts +27 -0
  364. package/lib/public/src/components/pcfactory/src/utils/ahooks/usePrevious.ts +19 -0
  365. package/lib/public/src/components/pcfactory/src/utils/ahooks/useSafeState.ts +26 -0
  366. package/lib/public/src/components/pcfactory/src/utils/ahooks/useSetState.ts +26 -0
  367. package/lib/public/src/components/pcfactory/src/utils/ahooks/useUnmountedRef.ts +14 -0
  368. package/lib/public/src/components/pcfactory/src/utils/ahooks/useUpdate.ts +9 -0
  369. package/lib/public/src/components/pcfactory/src/utils/ahooks/useUpdateEffect.ts +16 -0
  370. package/lib/public/src/components/pcfactory/src/utils/basicStatusTransfer.ts +32 -0
  371. package/lib/public/src/components/pcfactory/src/utils/common.ts +367 -0
  372. package/lib/public/src/components/pcfactory/src/utils/dynamicUtils/DynamicContext.tsx +106 -0
  373. package/lib/public/src/components/pcfactory/src/utils/formUtils/FormContext.tsx +131 -0
  374. package/lib/public/src/components/pcfactory/src/utils/formUtils/FormFields.tsx +646 -0
  375. package/lib/public/src/components/pcfactory/src/utils/formUtils/WrapperContainer.tsx +123 -0
  376. package/lib/public/src/components/pcfactory/src/utils/formUtils/cmdHelper.ts +411 -0
  377. package/lib/public/src/components/pcfactory/src/utils/formUtils/common.ts +28 -0
  378. package/lib/public/src/components/pcfactory/src/utils/getExportDefaultObj.ts +11 -0
  379. package/lib/public/src/components/pcfactory/src/utils/hooks/useCommonImperativeHandle.ts +140 -0
  380. package/lib/public/src/components/pcfactory/src/utils/hooks/useDataMask.ts +83 -0
  381. package/lib/public/src/components/pcfactory/src/utils/hooks/useDoubleClick.ts +63 -0
  382. package/lib/public/src/components/pcfactory/src/utils/hooks/useFuncExpExecute.ts +86 -0
  383. package/lib/public/src/components/pcfactory/src/utils/hooks/useGetStaticAttrData.ts +41 -0
  384. package/lib/public/src/components/pcfactory/src/utils/hooks/useHiddenStyle.ts +43 -0
  385. package/lib/public/src/components/pcfactory/src/utils/hooks/useInitReactQuill.ts +90 -0
  386. package/lib/public/src/components/pcfactory/src/utils/hooks/useListenState.ts +26 -0
  387. package/lib/public/src/components/pcfactory/src/utils/hooks/useLocale.ts +129 -0
  388. package/lib/public/src/components/pcfactory/src/utils/hooks/usePrintMode.tsx +80 -0
  389. package/lib/public/src/components/pcfactory/src/utils/hooks/useRules.ts +89 -0
  390. package/lib/public/src/components/pcfactory/src/utils/hooks/useTestHelper.ts +26 -0
  391. package/lib/public/src/components/pcfactory/src/utils/hooks/useToggleBoolean.ts +33 -0
  392. package/lib/public/src/components/pcfactory/src/utils/index.ts +19 -0
  393. package/lib/public/src/components/pcfactory/src/utils/polyfill.js +305 -0
  394. package/lib/public/src/components/pcfactory/src/utils/renderReadOnly.tsx +105 -0
  395. package/lib/public/src/components/pcfactory/src/variables.ts +2 -0
  396. package/lib/public/src/components/pcfactory/typings.d.ts +27 -0
  397. package/lib/public/src/hooks/useExportCustomDataFile.ts +566 -0
  398. package/lib/public/src/hooks/useLifeCycle.ts +110 -0
  399. package/lib/public/src/hooks/useListenProps.ts +14 -0
  400. package/lib/public/src/hooks/useSafeState.ts +26 -0
  401. package/lib/public/src/hooks/useSetState.ts +41 -0
  402. package/lib/public/src/hooks/useSyncState.ts +27 -0
  403. package/lib/public/src/hooks/useTransSuperObjectParams.ts +82 -0
  404. package/lib/public/src/hooks/useUnmountedRef.ts +14 -0
  405. package/lib/public/src/hooks/useUpdateEffect.ts +16 -0
  406. package/lib/public/src/pages/_preview/index.tsx +23 -0
  407. package/lib/public/src/services/README.md +32 -0
  408. package/lib/public/src/services/api/batchInsert.ts +21 -0
  409. package/lib/public/src/services/api/engine.ts +59 -0
  410. package/lib/public/src/services/api/file.ts +50 -0
  411. package/lib/public/src/services/api/findAppConfig.ts +14 -0
  412. package/lib/public/src/services/api/getAppFileUrlByFileCode.ts +14 -0
  413. package/lib/public/src/services/api/index.ts +38 -0
  414. package/lib/public/src/services/type.ts +51 -0
  415. package/lib/public/src/styles/common.less +41 -0
  416. package/lib/public/src/styles/index.less +4 -0
  417. package/lib/public/src/styles/index.ts +1 -0
  418. package/lib/public/src/styles/theme/variables.less +130 -0
  419. package/lib/public/src/types/index.ts +246 -0
  420. package/lib/public/src/utils/AwaitHandleData.ts +46 -0
  421. package/lib/public/src/utils/Context/Container.tsx +65 -0
  422. package/lib/public/src/utils/Context/context.tsx +95 -0
  423. package/lib/public/src/utils/LcdpSpin/index.less +13 -0
  424. package/lib/public/src/utils/LcdpSpin/index.tsx +12 -0
  425. package/lib/public/src/utils/ModalManager/Drawer/index.less +30 -0
  426. package/lib/public/src/utils/ModalManager/Drawer/index.tsx +109 -0
  427. package/lib/public/src/utils/ModalManager/Modal/index.less +7 -0
  428. package/lib/public/src/utils/ModalManager/Modal/index.tsx +96 -0
  429. package/lib/public/src/utils/ModalManager/index.tsx +278 -0
  430. package/lib/public/src/utils/Security/clientCapabilities.ts +19 -0
  431. package/lib/public/src/utils/Security/config.ts +89 -0
  432. package/lib/public/src/utils/Security/const.ts +129 -0
  433. package/lib/public/src/utils/Security/encipher/aes.ts +52 -0
  434. package/lib/public/src/utils/Security/encipher/des.ts +52 -0
  435. package/lib/public/src/utils/Security/encipher/rsa.ts +42 -0
  436. package/lib/public/src/utils/Security/encipher/sign.ts +212 -0
  437. package/lib/public/src/utils/Security/encipher/token.ts +52 -0
  438. package/lib/public/src/utils/Security/httpEncryption.ts +75 -0
  439. package/lib/public/src/utils/Security/index.ts +28 -0
  440. package/lib/public/src/utils/Security/requester/fetch.ts +119 -0
  441. package/lib/public/src/utils/Security/requester/wx.ts +132 -0
  442. package/lib/public/src/utils/Security/requester/xhr.ts +121 -0
  443. package/lib/public/src/utils/Security/types.ts +181 -0
  444. package/lib/public/src/utils/Security/utils/check.ts +62 -0
  445. package/lib/public/src/utils/Security/utils/cookie.ts +70 -0
  446. package/lib/public/src/utils/Security/utils/encrypted.ts +122 -0
  447. package/lib/public/src/utils/Security/utils/message.ts +17 -0
  448. package/lib/public/src/utils/Security/utils/url.ts +78 -0
  449. package/lib/public/src/utils/StateListener.ts +69 -0
  450. package/lib/public/src/utils/User.ts +16 -0
  451. package/lib/public/src/utils/array.ts +151 -0
  452. package/lib/public/src/utils/basicStatusTransfer.ts +32 -0
  453. package/lib/public/src/utils/cmd.ts +27 -0
  454. package/lib/public/src/utils/customFuncMapping.ts +107 -0
  455. package/lib/public/src/utils/dataSource/fetchQuery.ts +154 -0
  456. package/lib/public/src/utils/dataSource/index.ts +1 -0
  457. package/lib/public/src/utils/engine-utils/exportCustomUtils.ts +215 -0
  458. package/lib/public/src/utils/engine-utils/hooks/index.ts +3 -0
  459. package/lib/public/src/utils/engine-utils/hooks/useCreation.ts +23 -0
  460. package/lib/public/src/utils/engine-utils/index.ts +2 -0
  461. package/lib/public/src/utils/engine-utils/previewUtil.ts +18 -0
  462. package/lib/public/src/utils/formUtils.ts +458 -0
  463. package/lib/public/src/utils/functors/ABS.ts +23 -0
  464. package/lib/public/src/utils/functors/AESDECRYPT.ts +26 -0
  465. package/lib/public/src/utils/functors/AESENCRYPT.ts +26 -0
  466. package/lib/public/src/utils/functors/ARRAYINDEX.ts +23 -0
  467. package/lib/public/src/utils/functors/ARRAYTOSTR.ts +23 -0
  468. package/lib/public/src/utils/functors/AVERAGE.ts +23 -0
  469. package/lib/public/src/utils/functors/CONCAT.ts +20 -0
  470. package/lib/public/src/utils/functors/COUNTA.ts +22 -0
  471. package/lib/public/src/utils/functors/COUNTARRAY.ts +20 -0
  472. package/lib/public/src/utils/functors/COUNTBLANK.ts +22 -0
  473. package/lib/public/src/utils/functors/COUNTCHAR.ts +26 -0
  474. package/lib/public/src/utils/functors/DATAMASK.ts +150 -0
  475. package/lib/public/src/utils/functors/DATEADD.ts +37 -0
  476. package/lib/public/src/utils/functors/DATENOW.ts +27 -0
  477. package/lib/public/src/utils/functors/DATETIME.ts +20 -0
  478. package/lib/public/src/utils/functors/IF.ts +20 -0
  479. package/lib/public/src/utils/functors/INT.ts +23 -0
  480. package/lib/public/src/utils/functors/LOG.ts +24 -0
  481. package/lib/public/src/utils/functors/MAX.ts +24 -0
  482. package/lib/public/src/utils/functors/MIN.ts +24 -0
  483. package/lib/public/src/utils/functors/MOD.ts +24 -0
  484. package/lib/public/src/utils/functors/NUMBER.ts +26 -0
  485. package/lib/public/src/utils/functors/OBJECTVALUE.ts +20 -0
  486. package/lib/public/src/utils/functors/POWER.ts +24 -0
  487. package/lib/public/src/utils/functors/PRODUCT.ts +20 -0
  488. package/lib/public/src/utils/functors/RANDBETWEEN.ts +22 -0
  489. package/lib/public/src/utils/functors/RANDOMNUM.ts +30 -0
  490. package/lib/public/src/utils/functors/ROUND.ts +24 -0
  491. package/lib/public/src/utils/functors/ROUNDDOWN.ts +24 -0
  492. package/lib/public/src/utils/functors/ROUNDUP.ts +25 -0
  493. package/lib/public/src/utils/functors/STRTOARRAY.ts +23 -0
  494. package/lib/public/src/utils/functors/SUM.ts +20 -0
  495. package/lib/public/src/utils/functors/index.ts +32 -0
  496. package/lib/public/src/utils/functors/types.ts +32 -0
  497. package/lib/public/src/utils/functors/utils/tools.ts +15 -0
  498. package/lib/public/src/utils/historytool.ts +154 -0
  499. package/lib/public/src/utils/hooks/index.ts +22 -0
  500. package/lib/public/src/utils/hooks/useCreation.ts +23 -0
  501. package/lib/public/src/utils/hooks/useHiddenStyle.ts +19 -0
  502. package/lib/public/src/utils/hooks/useMovable.ts +227 -0
  503. package/lib/public/src/utils/hooks/usePersistFn.ts +17 -0
  504. package/lib/public/src/utils/hooks/useReactive.ts +73 -0
  505. package/lib/public/src/utils/hooks/useRefState.ts +25 -0
  506. package/lib/public/src/utils/hooks/useSetState.ts +25 -0
  507. package/lib/public/src/utils/hooks/useStyle.ts +139 -0
  508. package/lib/public/src/utils/hooks/useTrackedEffect.ts +39 -0
  509. package/lib/public/src/utils/hooks/useUpdate.ts +9 -0
  510. package/lib/public/src/utils/hooks/useUpdateDeepEffect.ts +22 -0
  511. package/lib/public/src/utils/hooks/useUpdateEffect.ts +18 -0
  512. package/lib/public/src/utils/hooks/useWhyDidYouUpdate.ts +32 -0
  513. package/lib/public/src/utils/i18n/i18n.ts +15 -0
  514. package/lib/public/src/utils/i18n/index.ts +7 -0
  515. package/lib/public/src/utils/i18n/locale/app/en_US.ts +77 -0
  516. package/lib/public/src/utils/i18n/locale/app/index.ts +9 -0
  517. package/lib/public/src/utils/i18n/locale/app/otherLocale.ts +2 -0
  518. package/lib/public/src/utils/i18n/locale/app/zh_CN.ts +65 -0
  519. package/lib/public/src/utils/i18n/locale/app/zh_HK.ts +66 -0
  520. package/lib/public/src/utils/i18n/locale/base/en_US.ts +449 -0
  521. package/lib/public/src/utils/i18n/locale/base/index.ts +5 -0
  522. package/lib/public/src/utils/i18n/locale/base/zh_CN.ts +413 -0
  523. package/lib/public/src/utils/i18n/locale/base/zh_HK.ts +411 -0
  524. package/lib/public/src/utils/i18n/locale/pc/en_US.ts +131 -0
  525. package/lib/public/src/utils/i18n/locale/pc/index.ts +9 -0
  526. package/lib/public/src/utils/i18n/locale/pc/otherLocale.ts +2 -0
  527. package/lib/public/src/utils/i18n/locale/pc/zh_CN.ts +105 -0
  528. package/lib/public/src/utils/i18n/locale/pc/zh_HK.ts +105 -0
  529. package/lib/public/src/utils/i18n/localeMonitor.ts +71 -0
  530. package/lib/public/src/utils/i18n/locales.ts +30 -0
  531. package/lib/public/src/utils/i18n/replaceMessage.ts +29 -0
  532. package/lib/public/src/utils/i18n/types.ts +2 -0
  533. package/lib/public/src/utils/i18n/useLocale.ts +129 -0
  534. package/lib/public/src/utils/lcdpApi.ts +215 -0
  535. package/lib/public/src/utils/lcdpBaseApi.ts +293 -0
  536. package/lib/public/src/utils/messageApi.ts +93 -0
  537. package/lib/public/src/utils/platform/index.ts +1 -0
  538. package/lib/public/src/utils/platform/type.ts +7 -0
  539. package/lib/public/src/utils/platform/utils/fileUtils.ts +536 -0
  540. package/lib/public/src/utils/preprocess.ts +88 -0
  541. package/lib/public/src/utils/sandBoxLoadModule.ts +216 -0
  542. package/lib/public/src/utils/sandbox/browserCompatible.ts +54 -0
  543. package/lib/public/src/utils/sandbox/compileCode.ts +81 -0
  544. package/lib/public/src/utils/sandbox/index.ts +5 -0
  545. package/lib/public/src/utils/sandbox/sandbox.ts +324 -0
  546. package/lib/public/src/utils/sandbox/sandboxrules.ts +206 -0
  547. package/lib/public/src/utils/sandbox/utils.ts +9 -0
  548. package/lib/public/src/utils/service/baseRequest.ts +111 -0
  549. package/lib/public/src/utils/service/commonFetch.ts +140 -0
  550. package/lib/public/src/utils/service/defaultResponseInterceptor.ts +84 -0
  551. package/lib/public/src/utils/service/resolveApiPath.ts +24 -0
  552. package/lib/public/src/utils/service/urlHelper.ts +56 -0
  553. package/lib/public/src/utils/styleInject.ts +17 -0
  554. package/lib/public/src/utils/svgImage/imageUtils.ts +3 -0
  555. package/lib/public/src/utils/svgImage/index.ts +10 -0
  556. package/lib/public/src/utils/uid.ts +33 -0
  557. package/lib/public/src/utils/useComponentHoc.ts +96 -0
  558. package/lib/public/src/utils/useSetState.ts +26 -0
  559. package/lib/public/src/utils/useTool.ts +428 -0
  560. package/lib/public/tsconfig.json +33 -0
  561. package/lib/public/typings.d.ts +1 -0
  562. package/package.json +31 -0
@@ -0,0 +1,458 @@
1
+ /* eslint-disable no-continue */
2
+ import { EngineRelationMethods } from '@lingxiteam/types';
3
+ import { RefsManager } from './Context/context';
4
+
5
+ type RefsType = Record<string, any>;
6
+
7
+ const getFormsIdByUid = (uid: string, refs: RefsType) => {
8
+ // 不是表单组件
9
+ if (refs[uid].compName !== 'Form') {
10
+ return null;
11
+ }
12
+
13
+ const list = uid.match(/@@@([\d\w_]*)&&&/g);
14
+ if (!Array.isArray(list)) {
15
+ return list;
16
+ }
17
+ return list.map((it) => it.replace(/(@@@)|(&&&)/g, ''));
18
+ };
19
+
20
+ /**
21
+ * 通过循环容器id获取 循环容器内的表单
22
+ * @param loopId
23
+ * @param refs
24
+ */
25
+ export const getFormOfInLoopByLoopId = (options: {
26
+ loopId: string;
27
+ engineRelation: EngineRelationMethods;
28
+ routerId: string;
29
+ refs: RefsType;
30
+ forms?: RefsType[];
31
+ inLoop?: boolean;
32
+ }) => {
33
+ const {
34
+ loopId,
35
+ routerId,
36
+ engineRelation,
37
+ forms = [],
38
+ refs,
39
+ inLoop = false,
40
+ } = options;
41
+ const uids = Object.keys(refs);
42
+ for (let index = 0; index < uids.length; index += 1) {
43
+ const uid = uids[index];
44
+
45
+ if (inLoop) {
46
+ if (refs[uid].compName === 'Form') {
47
+ forms.push(refs[uid]);
48
+ continue;
49
+ }
50
+ }
51
+
52
+ // 先用---分割,解决多层循环块嵌套问题
53
+ const result = uid
54
+ .split('---')
55
+ .filter(Boolean)
56
+ .find((id) => {
57
+ const [compId] = id.split('@@@');
58
+ return compId === loopId;
59
+ });
60
+
61
+ const engineRefs = engineRelation.getEngineRefsByUid(uid, routerId);
62
+ // 页面容器或者BOFramer在循环容器下
63
+ if ((result || inLoop) && engineRefs) {
64
+ // 页面容器和业务组件下也可能存在表单
65
+ getFormOfInLoopByLoopId({
66
+ loopId,
67
+ routerId,
68
+ engineRelation,
69
+ refs: engineRelation.getEngineRefsByUid(uid, routerId)?.refs || {},
70
+ forms,
71
+ inLoop: true,
72
+ });
73
+ }
74
+
75
+ // 不是表单 或者不在循环容器内
76
+ if (refs[uid].compName !== 'Form' || !/[@@@|&&&]/.test(uid)) {
77
+ continue;
78
+ }
79
+
80
+ if (result) {
81
+ forms.push(refs[uid]);
82
+ }
83
+ }
84
+ return forms;
85
+ };
86
+
87
+ /**
88
+ * 获取gridview组件
89
+ * @param forms
90
+ * @param getFieldsValue
91
+ * @returns
92
+ */
93
+ export const getLoopForms = async (
94
+ forms: RefsType[],
95
+ getFieldsValue: (form: any) => void,
96
+ ) => {
97
+ const fieldValues: any = {};
98
+ let firstErrorInfo: any = null;
99
+ for (let index = 0; index < forms.length; index += 1) {
100
+ const form = forms[index];
101
+ const { formCode, scrollToErrorField } = form;
102
+ fieldValues[formCode] = fieldValues[formCode] ?? [];
103
+ try {
104
+ const values = await getFieldsValue(form);
105
+ fieldValues[formCode].push(values);
106
+ } catch (error) {
107
+ if (!firstErrorInfo) {
108
+ firstErrorInfo = {
109
+ error,
110
+ form,
111
+ scrollToErrorField,
112
+ };
113
+ }
114
+ }
115
+ }
116
+
117
+ if (firstErrorInfo) {
118
+ const { scrollToErrorField, error } = firstErrorInfo;
119
+ scrollToErrorField(error);
120
+ return Promise.reject(error);
121
+ }
122
+ return Promise.resolve(fieldValues);
123
+ };
124
+
125
+ /**
126
+ * 通过组件id获取表单列表
127
+ */
128
+ export const getFormByCompId = (compId: string, refs: RefsType) => {
129
+ // 获取是否是表单
130
+ const form = refs[compId];
131
+ if (form) {
132
+ return form;
133
+ }
134
+ const uidArr = Object.keys(refs).filter((uid) => {
135
+ const ids = getFormsIdByUid(uid, refs);
136
+ if (!ids) {
137
+ return false;
138
+ }
139
+ return ids.includes(compId);
140
+ });
141
+
142
+ if (uidArr.length === 0) {
143
+ return null;
144
+ }
145
+
146
+ return uidArr.map((uid) => refs[uid]);
147
+ };
148
+
149
+ export const getFieldsValue = async (
150
+ forms: RefsType | RefsType[],
151
+ getFieldsValue: (form: any) => void,
152
+ ) => {
153
+ // 当表单不存在时,应该获取的是undefined
154
+ if (!forms) {
155
+ return undefined;
156
+ }
157
+
158
+ if (Array.isArray(forms)) {
159
+ return Promise.all(forms.map((form) => getFieldsValue(form)));
160
+ }
161
+ return getFieldsValue(forms);
162
+ };
163
+
164
+ /**
165
+ * 获取表单类型
166
+ */
167
+ export const getFormType = (uid: string) => {
168
+ // uid中包含@符号包含&符号
169
+ const hasAtOrAnd = /[@@@|&&&]/.test(uid);
170
+ const [loopId, formId, itemId] = uid.split(/@@@|&&&/g);
171
+ return {
172
+ type: hasAtOrAnd ? 'inLoop' : 'default',
173
+ loopId,
174
+ formId,
175
+ itemId,
176
+ };
177
+ };
178
+
179
+ interface FirstErrorInfoType {
180
+ error: any;
181
+ form?: any;
182
+ scrollToErrorField: any;
183
+ }
184
+
185
+ /**
186
+ * 当前的refs
187
+ * @param options
188
+ * @param getFieldsValue
189
+ */
190
+ export const getOwnFormValues = async (
191
+ options: { currentRefs: RefsType; renderRefs: RefsManager },
192
+ getFieldsValue: (form: any) => void,
193
+ ) => {
194
+ const { currentRefs, renderRefs } = options;
195
+
196
+ let firstErrorInfo: FirstErrorInfoType | null = null;
197
+ const values: any = {};
198
+
199
+ const formCodeTypes: Record<string, 'default' | 'array'> = {};
200
+
201
+ /**
202
+ * 获取单个引擎下的表单值
203
+ */
204
+ const getRenderRefsFormValues = async (refs: RefsType = {}) => {
205
+ const uidArr = Object.keys(refs);
206
+
207
+ for (let index = 0; index < uidArr.length; index += 1) {
208
+ const uid = uidArr[index];
209
+
210
+ const ref = refs[uid];
211
+ if (['BOFramer', 'Pageview'].includes(ref.compName)) {
212
+ // 需要处理BOFramer和PageView这种渲染逻辑
213
+ const uidRefs = renderRefs.getComRefs(uid);
214
+ // const uidRefs = engineRelation.getEngineRefsByUid(uid, routerId);
215
+ if (uidRefs) {
216
+ await getRenderRefsFormValues(uidRefs);
217
+ }
218
+ } else if (ref.compName === 'Form') {
219
+ const {
220
+ formCode,
221
+ form,
222
+ scrollToErrorField,
223
+ compName,
224
+ _innerDynamicDataContainer,
225
+ } = ref;
226
+ if (!formCode) {
227
+ continue;
228
+ }
229
+
230
+ if (compName === 'Form' && _innerDynamicDataContainer) {
231
+ continue;
232
+ }
233
+
234
+ const { type } = getFormType(uid);
235
+ try {
236
+ const value = await getFieldsValue(ref);
237
+ if (type === 'default') {
238
+ // 1. 首次赋值, 包含循环容器内逻辑
239
+ if (!values[formCode]) {
240
+ values[formCode] = value;
241
+ formCodeTypes[formCode] = 'default';
242
+ continue;
243
+ }
244
+ // 2. 存在编码相同时,切换成数组类型
245
+ if (formCodeTypes[formCode] === 'default') {
246
+ // 处理页面中存在多个相同的表单,但是表单编码一样。这时候表现为数组形式
247
+ values[formCode] = [values[formCode]];
248
+ formCodeTypes[formCode] = 'array';
249
+ }
250
+
251
+ // 3. 给数组添加当前值
252
+ if (formCodeTypes[formCode] === 'array') {
253
+ values[formCode].push(value);
254
+ }
255
+ } else if (type === 'inLoop') {
256
+ // 1. 或许存在一个没包含在循环容器内表单,并且该表单和循环容器下的表单编码相同,
257
+ if (formCodeTypes[formCode] === 'default') {
258
+ values[formCode] = [values[formCode]];
259
+ }
260
+
261
+ formCodeTypes[formCode] = 'array';
262
+ values[formCode] = Array.isArray(values[formCode])
263
+ ? values[formCode]
264
+ : [];
265
+ values[formCode].push(value);
266
+ }
267
+ } catch (error) {
268
+ if (!firstErrorInfo) {
269
+ firstErrorInfo = {
270
+ error,
271
+ form,
272
+ scrollToErrorField,
273
+ };
274
+ }
275
+ }
276
+ }
277
+ }
278
+ };
279
+
280
+ await getRenderRefsFormValues(currentRefs);
281
+
282
+ // 存在错误时,滚动到第一个出现错误的位置
283
+ if (firstErrorInfo) {
284
+ const { scrollToErrorField, error } = firstErrorInfo as FirstErrorInfoType;
285
+ scrollToErrorField(error);
286
+ return Promise.reject(error);
287
+ }
288
+ return Promise.resolve(values);
289
+ };
290
+
291
+ export const getAllForm = (options: {
292
+ currentRefs: RefsType;
293
+ renderRefs: RefsManager;
294
+ }) => {
295
+ const { currentRefs, renderRefs } = options;
296
+ const forms: RefsType[] = [];
297
+ const getRenderRefsFormValues = (refs: RefsType = {}) => {
298
+ const uidArr = Object.keys(refs);
299
+
300
+ for (let index = 0; index < uidArr.length; index += 1) {
301
+ const uid = uidArr[index];
302
+
303
+ const ref = refs[uid];
304
+ if (ref.compName !== 'Form') {
305
+ // 需要处理BOFramer和PageView这种渲染逻辑
306
+ const refs = renderRefs.getComRefs(uid);
307
+ if (refs) {
308
+ getRenderRefsFormValues(refs);
309
+ }
310
+ } else if (ref.has) {
311
+ forms.push(ref);
312
+ }
313
+ }
314
+ };
315
+ getRenderRefsFormValues(currentRefs);
316
+ return forms;
317
+ };
318
+
319
+ /**
320
+ * 获取业务组件列表 可能存在
321
+ * @param compId
322
+ * @param refs
323
+ */
324
+ export const getBOFramers = (compId: string, refs: RefsType = {}) => {
325
+ const boframerUids = Object.keys(refs).filter(
326
+ (id) => refs[id].compId === compId,
327
+ );
328
+ // 如果没找到组件,就返回null
329
+ if (!boframerUids.length) {
330
+ return null;
331
+ }
332
+
333
+ const boframerRefs: RefsType = {};
334
+
335
+ boframerUids.forEach((uid) => {
336
+ boframerRefs[uid] = refs[uid];
337
+ });
338
+
339
+ return boframerRefs;
340
+ };
341
+
342
+ export const getBOFramerOwnFormValues = async (
343
+ options: {
344
+ refs: RefsType;
345
+ renderRefs: RefsManager;
346
+ compId: string;
347
+ },
348
+ getFieldsValue: (form: any) => void,
349
+ ) => {
350
+ const { renderRefs, refs, compId } = options;
351
+
352
+ // 2种情况 1只有单个业务组件 2 业务组件放在循环容器下
353
+ const boframerRefs = getBOFramers(compId, refs);
354
+
355
+ let values = {};
356
+ if (boframerRefs) {
357
+ values = await getOwnFormValues(
358
+ { currentRefs: boframerRefs, renderRefs },
359
+ getFieldsValue,
360
+ );
361
+ }
362
+
363
+ // 理论上获取业务组件 应该都带有表单编码,但是由于需要兼容旧数据 需要把值展开
364
+ if (Object.keys(values).length === 1) {
365
+ const val = Object.values(values)[0] as Object;
366
+ if (Object.prototype.toString.call(val) === '[object Object]') {
367
+ values = val;
368
+ }
369
+ }
370
+ return values;
371
+ };
372
+
373
+ // 获取BOFramer下所有表单
374
+ export const getBoframerOwnForms = (options: {
375
+ currentRefs: RefsType;
376
+ renderRefs: RefsManager;
377
+ compId: string;
378
+ }) => {
379
+ const { compId, currentRefs, renderRefs } = options;
380
+ const boframers = getBOFramers(compId, currentRefs);
381
+
382
+ const forms: RefsType[] = [];
383
+ const getAllForms = (refs: RefsType | null) => {
384
+ Object.keys(refs || {}).forEach((uid) => {
385
+ // const engineRef = engineRelation.getEngineRefsByUid(uid, routerId);
386
+ const renderId = uid;
387
+ if (renderId) {
388
+ const engineRefs = renderRefs.getComRefs(renderId);
389
+ if (engineRefs) {
390
+ Object.keys(engineRefs).forEach((compUid) => {
391
+ const r = engineRefs[compUid];
392
+ getAllForms(r);
393
+ if (r.compName === 'Form') {
394
+ forms.push(r);
395
+ }
396
+ });
397
+ }
398
+ }
399
+ });
400
+ };
401
+
402
+ getAllForms(boframers);
403
+ return forms;
404
+ };
405
+ /**
406
+ * 加载子节点数据
407
+ * @param nodeKey
408
+ * @param odata
409
+ * @param arr
410
+ * @param key
411
+ * @param title
412
+ * @param selectable
413
+ */
414
+ export const updateNodeChildren = (
415
+ nodeKey: any,
416
+ odata: any[],
417
+ arr: any[],
418
+ key: string,
419
+ title: string,
420
+ selectable: string | undefined,
421
+ ) => {
422
+ const transformBoolean = (value: any) => {
423
+ if (value === undefined || value === null) {
424
+ return undefined;
425
+ }
426
+ if (value === 'false') {
427
+ return false;
428
+ }
429
+ return Boolean(value);
430
+ };
431
+ arr.forEach((c, i) => {
432
+ if (`${c.key}` === `${nodeKey}`) {
433
+ const oldChildMap: any = {};
434
+ (arr[i].children || []).forEach((d: any) => {
435
+ oldChildMap[d.key] = d.children;
436
+ });
437
+ arr[i].children = odata.map((item: any) => ({
438
+ key: item[key], // 取值字段
439
+ title: item[title], // 显示字段
440
+ isLeaf: false,
441
+ selectable:
442
+ selectable !== undefined
443
+ ? transformBoolean(item[selectable])
444
+ : undefined,
445
+ children: oldChildMap[item[key]],
446
+ data: item,
447
+ // 标识该节点数据是通过加载子节点动作设置的
448
+ _isReload: true,
449
+ }));
450
+ arr[i].isLeaf = odata.length === 0;
451
+ return;
452
+ }
453
+ if (c.children && c.children.length) {
454
+ updateNodeChildren(nodeKey, odata, c.children, key, title, selectable);
455
+ }
456
+ });
457
+ return arr;
458
+ };
@@ -0,0 +1,23 @@
1
+ import { FunctorDefine } from './types';
2
+
3
+ export const ABS = FunctorDefine({
4
+ label: '绝对值',
5
+ type: 'ABS',
6
+ value: 'ABS(-7)',
7
+ functor(x: number) {
8
+ if ([null, undefined, ''].includes(x as any)) {
9
+ return undefined;
10
+ }
11
+ return Math.abs(x);
12
+ },
13
+ define: ['计算数字的绝对值'],
14
+ description: {
15
+ tips: [],
16
+ title: '(数值)',
17
+ },
18
+ example: {
19
+ tips: ['求 -7 的绝对值'],
20
+ title: '(-7) ,结果:7',
21
+ },
22
+ groupsName: '常用函数',
23
+ });
@@ -0,0 +1,26 @@
1
+ import security from '../Security';
2
+ import { FunctorDefine } from './types';
3
+
4
+ const defaultAESKey = 'd86d7bab3d6ac01a';
5
+
6
+ export const AES_DECRYPT = FunctorDefine({
7
+ label: '内容解密',
8
+ type: 'AES_DECRYPT',
9
+ value: "AES_DECRYPT('text')",
10
+ functor(x: any) {
11
+ if ([null, undefined, ''].includes(x as any)) {
12
+ return '';
13
+ }
14
+ return security.AESDecrypt(x, security.KEYS.aesKey || defaultAESKey);
15
+ },
16
+ define: ['将内容进行AES方式解密'],
17
+ description: {
18
+ tips: [],
19
+ title: '(加密内容)',
20
+ },
21
+ example: {
22
+ tips: [],
23
+ title: '()',
24
+ },
25
+ groupsName: ['加密函数'],
26
+ });
@@ -0,0 +1,26 @@
1
+ import security from '../Security';
2
+ import { FunctorDefine } from './types';
3
+
4
+ const defaultAESKey = 'd86d7bab3d6ac01a';
5
+
6
+ export const AES_ENCRYPT = FunctorDefine({
7
+ label: '内容加密',
8
+ type: 'AES_ENCRYPT',
9
+ value: "AES_ENCRYPT('text')",
10
+ functor(x: any) {
11
+ if ([null, undefined, ''].includes(x as any)) {
12
+ return '';
13
+ }
14
+ return security.AESEncrypt(x, security.KEYS.aesKey || defaultAESKey);
15
+ },
16
+ define: ['将内容进行AES方式加密'],
17
+ description: {
18
+ tips: [],
19
+ title: '(待加密内容)',
20
+ },
21
+ example: {
22
+ tips: [],
23
+ title: '()',
24
+ },
25
+ groupsName: ['加密函数'],
26
+ });
@@ -0,0 +1,23 @@
1
+ import { FunctorDefine } from './types';
2
+
3
+ export const ARRAYINDEX = FunctorDefine({
4
+ label: '获取数组索引值',
5
+ type: 'ARRAYINDEX',
6
+ value: 'ARRAYINDEX([1,2,3,4], 1)',
7
+ functor(arr: any[], i: number) {
8
+ if (!Array.isArray(arr)) {
9
+ return null;
10
+ }
11
+ return arr[i];
12
+ },
13
+ define: ['获取数组对应的索引值'],
14
+ description: {
15
+ tips: [],
16
+ title: '(数组, 索引)',
17
+ },
18
+ example: {
19
+ tips: ['获取[1,2,3,4]的第2个元素'],
20
+ title: '([1,2,3,4], 1) ,结果:2',
21
+ },
22
+ groupsName: ['常用函数'],
23
+ });
@@ -0,0 +1,23 @@
1
+ import { FunctorDefine } from './types';
2
+
3
+ export const ARRAYTOSTR = FunctorDefine({
4
+ label: '数组转字符串',
5
+ type: 'ARRAYTOSTR',
6
+ value: 'ARRAYTOSTR([1,2,3,4])',
7
+ functor(arr: any[]) {
8
+ if (!Array.isArray(arr)) {
9
+ return null;
10
+ }
11
+ return arr.toString();
12
+ },
13
+ define: ['获取数组对应的字符串'],
14
+ description: {
15
+ tips: [],
16
+ title: '(数组)',
17
+ },
18
+ example: {
19
+ tips: ['[1,2,3,4]转为字符串'],
20
+ title: "([1,2,3,4]) ,结果:'1,2,3,4'",
21
+ },
22
+ groupsName: ['常用函数'],
23
+ });
@@ -0,0 +1,23 @@
1
+ import { FunctorDefine } from './types';
2
+
3
+ export const AVERAGE = FunctorDefine({
4
+ label: '平均值',
5
+ type: 'AVERAGE',
6
+ value: 'AVERAGE(10,20,30)',
7
+ functor(...numbers: number[]): number {
8
+ return (
9
+ numbers.reduce((a, b) => Number(a ?? 0) + Number(b ?? 0), 0) /
10
+ numbers.length
11
+ );
12
+ },
13
+ define: ['计算数字的绝对值'],
14
+ description: {
15
+ tips: [],
16
+ title: '(数值1,数值2...)',
17
+ },
18
+ example: {
19
+ tips: ['计算10,20,30的平均值'],
20
+ title: '(10,20,30) ,结果:20',
21
+ },
22
+ groupsName: ['常用函数', '数学函数'],
23
+ });
@@ -0,0 +1,20 @@
1
+ import { FunctorDefine } from './types';
2
+
3
+ export const CONCAT = FunctorDefine({
4
+ label: '合并文本',
5
+ type: 'CONCAT',
6
+ value: "CONCAT('aaaa','2021MMDD','bbbb')",
7
+ functor(...texts: string[]): string {
8
+ return texts.join('');
9
+ },
10
+ define: ['将两个或多个文本合并为一个整体'],
11
+ description: {
12
+ tips: [],
13
+ title: '(文本1,文本2...)',
14
+ },
15
+ example: {
16
+ tips: ['合并aaaa、2021MMDD、bbbb三段文本'],
17
+ title: "('aaaa','2021MMDD','bbbb') ,结果:aaaa2021MMDDbbbb",
18
+ },
19
+ groupsName: '常用函数',
20
+ });
@@ -0,0 +1,22 @@
1
+ import { FunctorDefine } from './types';
2
+
3
+ export const COUNTA = FunctorDefine({
4
+ label: '计数',
5
+ type: 'CONCAT',
6
+ value: 'CONCAT(1月,2月,3月)',
7
+ functor(...values: any[]): number {
8
+ return values.filter((v) => v !== null && v !== undefined).length;
9
+ },
10
+ define: ['计算参数中包含非空值的个数'],
11
+ description: {
12
+ tips: [],
13
+ title: '(数值1,数值2...)',
14
+ },
15
+ example: {
16
+ tips: [
17
+ '计算第一季度指标的完成数量,该表有三个检查框对应1、2、3月指标是否完成,名称分别为1月、2月、3月,2月份未完成',
18
+ ],
19
+ title: '(1月,2月,3月) ,结果:2',
20
+ },
21
+ groupsName: '数学函数',
22
+ });
@@ -0,0 +1,20 @@
1
+ import { FunctorDefine } from './types';
2
+
3
+ export const COUNTARRAY = FunctorDefine({
4
+ label: '计对象数量',
5
+ type: 'COUNTARRAY',
6
+ value: 'COUNTARRAY(工序)',
7
+ functor(array: any[]) {
8
+ return array.length;
9
+ },
10
+ define: ['计算人员、部门、多选、子表或关联表的数量'],
11
+ description: {
12
+ tips: [],
13
+ title: '(数组类字段)',
14
+ },
15
+ example: {
16
+ tips: ['计算名称为“工序”的子表数量(实际有7道工序)'],
17
+ title: '(工序) ,结果:7',
18
+ },
19
+ groupsName: '数学函数',
20
+ });
@@ -0,0 +1,22 @@
1
+ import { FunctorDefine } from './types';
2
+
3
+ export const COUNTBLANK = FunctorDefine({
4
+ label: '计空值数',
5
+ type: 'COUNTBLANK',
6
+ value: 'COUNTBLANK(1月,2月,3月)',
7
+ functor(...values: any[]): number {
8
+ return values.filter((v) => v === null || v === undefined || '').length;
9
+ },
10
+ define: ['计算参数中包含的空值个数'],
11
+ description: {
12
+ tips: [],
13
+ title: '(数值1,数值2...)',
14
+ },
15
+ example: {
16
+ tips: [
17
+ '计算第一季度指标的未完成数量,该表有三个检查框对应1、2、3月指标是否完成,名称分别为1月、2月、3月,2月份未完成',
18
+ ],
19
+ title: '(1月,2月,3月) ,结果:1',
20
+ },
21
+ groupsName: '数学函数',
22
+ });