@lingxiteam/ebe-utils 0.5.3 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/lib/pcpublic/src/components/pcfactory/src/StdUpload/assets/closeIcon.png +0 -0
- package/lib/pcpublic/src/components/pcfactory/src/StdUpload/assets/fileName.png +0 -0
- package/lib/pcpublic/src/components/pcfactory/src/StdUpload/assets/img.png +0 -0
- package/lib/pcpublic/src/components/pcfactory/src/Table/hooks/useFormatCell.ts +0 -279
- package/lib/pcpublic/src/components/pcfactory/src/utils/Empty/customLocale.tsx +0 -6
- package/lib/public/src/components/ExpBusiObjModal/index.less +0 -28
- package/lib/public/src/components/ExpBusiObjModal/index.tsx +0 -315
- package/lib/public/src/components/PreviewFile/index.less +0 -200
- package/lib/public/src/components/PreviewFile/index.tsx +0 -787
- package/lib/public/src/components/PreviewFile/utils.ts +0 -90
- package/lib/public/src/components/common/PreviewFile/index.less +0 -200
- package/lib/public/src/components/common/PreviewFile/index.tsx +0 -787
- package/lib/public/src/components/common/PreviewFile/utils.ts +0 -90
- package/lib/public/src/components/pcfactory/src/Alert/index.tsx +0 -22
- package/lib/public/src/components/pcfactory/src/Animation/index.tsx +0 -186
- package/lib/public/src/components/pcfactory/src/Animation/useAnimation.ts +0 -270
- package/lib/public/src/components/pcfactory/src/Animation/useBackgroundStyle.ts +0 -74
- package/lib/public/src/components/pcfactory/src/Audio/index.tsx +0 -240
- package/lib/public/src/components/pcfactory/src/BarChart/index.tsx +0 -3
- package/lib/public/src/components/pcfactory/src/Button/index.tsx +0 -151
- package/lib/public/src/components/pcfactory/src/Card/index.tsx +0 -201
- package/lib/public/src/components/pcfactory/src/Card/useExtendBtn.tsx +0 -195
- package/lib/public/src/components/pcfactory/src/Cascader/index.tsx +0 -398
- package/lib/public/src/components/pcfactory/src/ChartBar/index.tsx +0 -15
- package/lib/public/src/components/pcfactory/src/ChartBar/loader.tsx +0 -12
- package/lib/public/src/components/pcfactory/src/ChartLine/ChartLine.tsx +0 -48
- package/lib/public/src/components/pcfactory/src/ChartLine/PropsType.ts +0 -88
- package/lib/public/src/components/pcfactory/src/ChartLine/index.tsx +0 -15
- package/lib/public/src/components/pcfactory/src/ChartLine/loader.tsx +0 -12
- package/lib/public/src/components/pcfactory/src/Checkbox/index.tsx +0 -144
- package/lib/public/src/components/pcfactory/src/CheckboxGroup/index.tsx +0 -319
- package/lib/public/src/components/pcfactory/src/Collapse/index.tsx +0 -195
- package/lib/public/src/components/pcfactory/src/CollapsePanel/index.tsx +0 -186
- package/lib/public/src/components/pcfactory/src/Condition/index.tsx +0 -22
- package/lib/public/src/components/pcfactory/src/DatePicker/index.tsx +0 -756
- package/lib/public/src/components/pcfactory/src/Description/index.tsx +0 -447
- package/lib/public/src/components/pcfactory/src/Description/utils/getLabelSizeMode.ts +0 -40
- package/lib/public/src/components/pcfactory/src/Divider/components/CenterLineDivider/index.tsx +0 -190
- package/lib/public/src/components/pcfactory/src/Divider/components/CenterTabDivider/index.tsx +0 -77
- package/lib/public/src/components/pcfactory/src/Divider/components/LeftCardDivider/index.tsx +0 -87
- package/lib/public/src/components/pcfactory/src/Divider/components/LeftLineDivider/index.tsx +0 -106
- package/lib/public/src/components/pcfactory/src/Divider/components/LeftTabDivider/index.tsx +0 -60
- package/lib/public/src/components/pcfactory/src/Divider/components/LeftTopDivider/index.tsx +0 -55
- package/lib/public/src/components/pcfactory/src/Divider/components/LxDashed/index.module.less +0 -10
- package/lib/public/src/components/pcfactory/src/Divider/components/LxDashed/index.tsx +0 -143
- package/lib/public/src/components/pcfactory/src/Divider/components/LxSolid/index.module.less +0 -10
- package/lib/public/src/components/pcfactory/src/Divider/components/LxSolid/index.tsx +0 -126
- package/lib/public/src/components/pcfactory/src/Divider/index.tsx +0 -210
- package/lib/public/src/components/pcfactory/src/Dropdown/index.tsx +0 -385
- package/lib/public/src/components/pcfactory/src/DynamicTabs/PropsType.ts +0 -31
- package/lib/public/src/components/pcfactory/src/DynamicTabs/TabPage.tsx +0 -63
- package/lib/public/src/components/pcfactory/src/DynamicTabs/index.tsx +0 -214
- package/lib/public/src/components/pcfactory/src/Form/Form.tsx +0 -600
- package/lib/public/src/components/pcfactory/src/Form/WrapperForm.ts +0 -14
- package/lib/public/src/components/pcfactory/src/Form/index.tsx +0 -15
- package/lib/public/src/components/pcfactory/src/Form/useFormStatus.ts +0 -47
- package/lib/public/src/components/pcfactory/src/Form/useMonitor.ts +0 -40
- package/lib/public/src/components/pcfactory/src/FormGroup/TitleComp.tsx +0 -107
- package/lib/public/src/components/pcfactory/src/FormGroup/index.tsx +0 -181
- package/lib/public/src/components/pcfactory/src/FreeLayout/index.tsx +0 -151
- package/lib/public/src/components/pcfactory/src/Gantt/Gantt.tsx +0 -460
- package/lib/public/src/components/pcfactory/src/Gantt/const.ts +0 -122
- package/lib/public/src/components/pcfactory/src/Gantt/index.tsx +0 -16
- package/lib/public/src/components/pcfactory/src/Gantt/loader.tsx +0 -12
- package/lib/public/src/components/pcfactory/src/GridView/GridView.tsx +0 -435
- package/lib/public/src/components/pcfactory/src/GridView/index.tsx +0 -24
- package/lib/public/src/components/pcfactory/src/GridView/loader.tsx +0 -12
- package/lib/public/src/components/pcfactory/src/HorizontalView/index.tsx +0 -32
- package/lib/public/src/components/pcfactory/src/Icon/IconED/index.tsx +0 -42
- package/lib/public/src/components/pcfactory/src/Icon/PropsType.ts +0 -57
- package/lib/public/src/components/pcfactory/src/Icon/hooks/index.tsx +0 -300
- package/lib/public/src/components/pcfactory/src/Icon/index.tsx +0 -69
- package/lib/public/src/components/pcfactory/src/IconFont/index.tsx +0 -24
- package/lib/public/src/components/pcfactory/src/Img/BasicImage/index.tsx +0 -90
- package/lib/public/src/components/pcfactory/src/Img/assets/placeholder.png +0 -0
- package/lib/public/src/components/pcfactory/src/Img/index.tsx +0 -91
- package/lib/public/src/components/pcfactory/src/Input/index.tsx +0 -425
- package/lib/public/src/components/pcfactory/src/InputNumber/index.tsx +0 -263
- package/lib/public/src/components/pcfactory/src/LXPieChart/LXPieChart.tsx +0 -23
- package/lib/public/src/components/pcfactory/src/LXPieChart/PropsType.ts +0 -11
- package/lib/public/src/components/pcfactory/src/LXPieChart/index.less +0 -6
- package/lib/public/src/components/pcfactory/src/LXPieChart/index.tsx +0 -15
- package/lib/public/src/components/pcfactory/src/LXPieChart/loader.tsx +0 -12
- package/lib/public/src/components/pcfactory/src/LXRadarChart/LXRadarChat.tsx +0 -25
- package/lib/public/src/components/pcfactory/src/LXRadarChart/PropsType.ts +0 -9
- package/lib/public/src/components/pcfactory/src/LXRadarChart/index.less +0 -7
- package/lib/public/src/components/pcfactory/src/LXRadarChart/index.tsx +0 -17
- package/lib/public/src/components/pcfactory/src/LXRadarChart/loader.tsx +0 -12
- package/lib/public/src/components/pcfactory/src/Layout/index.tsx +0 -130
- package/lib/public/src/components/pcfactory/src/Layout/utils.ts +0 -48
- package/lib/public/src/components/pcfactory/src/LineChart/index.tsx +0 -3
- package/lib/public/src/components/pcfactory/src/Link/index.tsx +0 -117
- package/lib/public/src/components/pcfactory/src/LoopList/index.tsx +0 -551
- package/lib/public/src/components/pcfactory/src/Menu/index.tsx +0 -422
- package/lib/public/src/components/pcfactory/src/ModalSelect/BaseModalSelect.tsx +0 -95
- package/lib/public/src/components/pcfactory/src/ModalSelect/index.tsx +0 -453
- package/lib/public/src/components/pcfactory/src/MultipleSelect/index.tsx +0 -3
- package/lib/public/src/components/pcfactory/src/Pagination/index.tsx +0 -104
- package/lib/public/src/components/pcfactory/src/Password/index.tsx +0 -88
- package/lib/public/src/components/pcfactory/src/PictureVerifyCode/assets/placeholder.png +0 -0
- package/lib/public/src/components/pcfactory/src/PictureVerifyCode/index.tsx +0 -76
- package/lib/public/src/components/pcfactory/src/PieChart/index.tsx +0 -3
- package/lib/public/src/components/pcfactory/src/Progress/index.tsx +0 -155
- package/lib/public/src/components/pcfactory/src/QRCode/const.ts +0 -5
- package/lib/public/src/components/pcfactory/src/QRCode/index.tsx +0 -146
- package/lib/public/src/components/pcfactory/src/QuillEditor/QuillEditor.tsx +0 -197
- package/lib/public/src/components/pcfactory/src/QuillEditor/index.tsx +0 -37
- package/lib/public/src/components/pcfactory/src/QuillEditor/loader.ts +0 -12
- package/lib/public/src/components/pcfactory/src/RadarChart/RadarChartHook.ts +0 -449
- package/lib/public/src/components/pcfactory/src/RadarChart/RadarChartType.ts +0 -39
- package/lib/public/src/components/pcfactory/src/RadarChart/RadarECharts.tsx +0 -86
- package/lib/public/src/components/pcfactory/src/RadarChart/index.tsx +0 -16
- package/lib/public/src/components/pcfactory/src/RadarChart/loader.tsx +0 -12
- package/lib/public/src/components/pcfactory/src/RadarChart/radarDefaultConfig.js +0 -55
- package/lib/public/src/components/pcfactory/src/Radio/index.tsx +0 -260
- package/lib/public/src/components/pcfactory/src/RangePicker/index.tsx +0 -3
- package/lib/public/src/components/pcfactory/src/Rate/index.tsx +0 -187
- package/lib/public/src/components/pcfactory/src/ReactECharts/PropsType.ts +0 -37
- package/lib/public/src/components/pcfactory/src/ReactECharts/ReactECharts.tsx +0 -672
- package/lib/public/src/components/pcfactory/src/ReactECharts/index.tsx +0 -26
- package/lib/public/src/components/pcfactory/src/ReactECharts/loader.tsx +0 -12
- package/lib/public/src/components/pcfactory/src/RemoteComponent/components/FishRender.tsx +0 -31
- package/lib/public/src/components/pcfactory/src/RemoteComponent/components/ReactRender.tsx +0 -55
- package/lib/public/src/components/pcfactory/src/RemoteComponent/components/VueRender.tsx +0 -32
- package/lib/public/src/components/pcfactory/src/RemoteComponent/constant.ts +0 -9
- package/lib/public/src/components/pcfactory/src/RemoteComponent/index.tsx +0 -82
- package/lib/public/src/components/pcfactory/src/RemoteComponent/remote-component.config.ts +0 -12
- package/lib/public/src/components/pcfactory/src/Result/index.tsx +0 -27
- package/lib/public/src/components/pcfactory/src/RichTextEditor/LcdpUeditorMain.tsx +0 -105
- package/lib/public/src/components/pcfactory/src/RichTextEditor/RichTextEditor.tsx +0 -234
- package/lib/public/src/components/pcfactory/src/RichTextEditor/RichTextEditorMain.tsx +0 -41
- package/lib/public/src/components/pcfactory/src/RichTextEditor/index.tsx +0 -33
- package/lib/public/src/components/pcfactory/src/RichTextEditor/loader.ts +0 -12
- package/lib/public/src/components/pcfactory/src/Row/Row.tsx +0 -66
- package/lib/public/src/components/pcfactory/src/Row/index.tsx +0 -9
- package/lib/public/src/components/pcfactory/src/Row/loader.tsx +0 -12
- package/lib/public/src/components/pcfactory/src/Select/index.tsx +0 -628
- package/lib/public/src/components/pcfactory/src/Select/selectUtils.ts +0 -257
- package/lib/public/src/components/pcfactory/src/Slider/index.tsx +0 -351
- package/lib/public/src/components/pcfactory/src/StdUpload/DownloadProgress/DownloadProgress.tsx +0 -27
- package/lib/public/src/components/pcfactory/src/StdUpload/DownloadProgress/index.ts +0 -3
- package/lib/public/src/components/pcfactory/src/StdUpload/UploadItem.tsx +0 -257
- package/lib/public/src/components/pcfactory/src/StdUpload/assets/default.png +0 -0
- package/lib/public/src/components/pcfactory/src/StdUpload/assets/js.png +0 -0
- package/lib/public/src/components/pcfactory/src/StdUpload/assets/pdf.png +0 -0
- package/lib/public/src/components/pcfactory/src/StdUpload/assets/ppt.png +0 -0
- package/lib/public/src/components/pcfactory/src/StdUpload/assets/txt.png +0 -0
- package/lib/public/src/components/pcfactory/src/StdUpload/assets/word.png +0 -0
- package/lib/public/src/components/pcfactory/src/StdUpload/assets/xls.png +0 -0
- package/lib/public/src/components/pcfactory/src/StdUpload/assets/zip.png +0 -0
- package/lib/public/src/components/pcfactory/src/StdUpload/index.tsx +0 -1050
- package/lib/public/src/components/pcfactory/src/StdUpload/uploadItem.less +0 -64
- package/lib/public/src/components/pcfactory/src/Steps/constant/checkcircle.tsx +0 -29
- package/lib/public/src/components/pcfactory/src/Steps/constant/index.ts +0 -2
- package/lib/public/src/components/pcfactory/src/Steps/constant/vector.tsx +0 -13
- package/lib/public/src/components/pcfactory/src/Steps/index.tsx +0 -343
- package/lib/public/src/components/pcfactory/src/SuperSelect/ComSelect.tsx +0 -538
- package/lib/public/src/components/pcfactory/src/SuperSelect/index.tsx +0 -127
- package/lib/public/src/components/pcfactory/src/SuperSelect/loader.tsx +0 -12
- package/lib/public/src/components/pcfactory/src/Swiper/index.tsx +0 -184
- package/lib/public/src/components/pcfactory/src/Switch/index.tsx +0 -219
- package/lib/public/src/components/pcfactory/src/TabPane/index.tsx +0 -145
- package/lib/public/src/components/pcfactory/src/Table/BodyCell/index.tsx +0 -278
- package/lib/public/src/components/pcfactory/src/Table/EditComponent/index.tsx +0 -554
- package/lib/public/src/components/pcfactory/src/Table/FormatCell/GhostTag/index.tsx +0 -34
- package/lib/public/src/components/pcfactory/src/Table/FormatCell/Hyperlink/index.tsx +0 -26
- package/lib/public/src/components/pcfactory/src/Table/FormatCell/PointTag/index.tsx +0 -41
- package/lib/public/src/components/pcfactory/src/Table/FormatCell/PureColourFill/index.tsx +0 -32
- package/lib/public/src/components/pcfactory/src/Table/FormatCell/PureFadeColourTag/index.tsx +0 -34
- package/lib/public/src/components/pcfactory/src/Table/FormatCell/index.tsx +0 -227
- package/lib/public/src/components/pcfactory/src/Table/HeaderCell/HeaderCellTitle/index.tsx +0 -63
- package/lib/public/src/components/pcfactory/src/Table/HeaderCell/index.tsx +0 -32
- package/lib/public/src/components/pcfactory/src/Table/TableHead/index.tsx +0 -501
- package/lib/public/src/components/pcfactory/src/Table/TableSummaryRow/index.tsx +0 -46
- package/lib/public/src/components/pcfactory/src/Table/constant.ts +0 -73
- package/lib/public/src/components/pcfactory/src/Table/hooks/index.ts +0 -32
- package/lib/public/src/components/pcfactory/src/Table/hooks/useCMDActions.ts +0 -325
- package/lib/public/src/components/pcfactory/src/Table/hooks/useCheckStrict.ts +0 -176
- package/lib/public/src/components/pcfactory/src/Table/hooks/useColumns.tsx +0 -1851
- package/lib/public/src/components/pcfactory/src/Table/hooks/useCommon.ts +0 -39
- package/lib/public/src/components/pcfactory/src/Table/hooks/useDataSource.ts +0 -201
- package/lib/public/src/components/pcfactory/src/Table/hooks/useExpandable.tsx +0 -324
- package/lib/public/src/components/pcfactory/src/Table/hooks/useFilter.tsx +0 -274
- package/lib/public/src/components/pcfactory/src/Table/hooks/useFormatCell.ts +0 -309
- package/lib/public/src/components/pcfactory/src/Table/hooks/usePagination.ts +0 -104
- package/lib/public/src/components/pcfactory/src/Table/hooks/useRowEdit.ts +0 -302
- package/lib/public/src/components/pcfactory/src/Table/hooks/useRowMerge.ts +0 -93
- package/lib/public/src/components/pcfactory/src/Table/hooks/useScroll.ts +0 -120
- package/lib/public/src/components/pcfactory/src/Table/hooks/useSelection.ts +0 -467
- package/lib/public/src/components/pcfactory/src/Table/hooks/useSort.ts +0 -39
- package/lib/public/src/components/pcfactory/src/Table/hooks/useSummaryCol.ts +0 -191
- package/lib/public/src/components/pcfactory/src/Table/index.tsx +0 -525
- package/lib/public/src/components/pcfactory/src/Table/utils/SequenceId.ts +0 -104
- package/lib/public/src/components/pcfactory/src/Table/utils/index.ts +0 -442
- package/lib/public/src/components/pcfactory/src/Tabs/index.tsx +0 -209
- package/lib/public/src/components/pcfactory/src/Tag/index.tsx +0 -39
- package/lib/public/src/components/pcfactory/src/Text/index.tsx +0 -191
- package/lib/public/src/components/pcfactory/src/TextArea/ForIETextArea.tsx +0 -96
- package/lib/public/src/components/pcfactory/src/TextArea/index.tsx +0 -255
- package/lib/public/src/components/pcfactory/src/TimePicker/index.tsx +0 -3
- package/lib/public/src/components/pcfactory/src/TlrView/index.tsx +0 -3
- package/lib/public/src/components/pcfactory/src/TooltipView/PropsType.ts +0 -22
- package/lib/public/src/components/pcfactory/src/TooltipView/TooltipViewED/index.tsx +0 -10
- package/lib/public/src/components/pcfactory/src/TooltipView/hooks/index.tsx +0 -90
- package/lib/public/src/components/pcfactory/src/TooltipView/index.tsx +0 -13
- package/lib/public/src/components/pcfactory/src/Transfer/index.tsx +0 -753
- package/lib/public/src/components/pcfactory/src/Tree/TreeNodeMenu/index.tsx +0 -102
- package/lib/public/src/components/pcfactory/src/Tree/index.tsx +0 -1303
- package/lib/public/src/components/pcfactory/src/TreeSelect/index.tsx +0 -639
- package/lib/public/src/components/pcfactory/src/TreeTable/hooks/index.ts +0 -4
- package/lib/public/src/components/pcfactory/src/TreeTable/hooks/useCMDAction.ts +0 -82
- package/lib/public/src/components/pcfactory/src/TreeTable/hooks/useExpandable.tsx +0 -61
- package/lib/public/src/components/pcfactory/src/TreeTable/index.tsx +0 -273
- package/lib/public/src/components/pcfactory/src/Upload/Upload.tsx +0 -740
- package/lib/public/src/components/pcfactory/src/Upload/index.tsx +0 -29
- package/lib/public/src/components/pcfactory/src/Upload/loader.tsx +0 -13
- package/lib/public/src/components/pcfactory/src/VerificationCode/assets/placeholder.png +0 -0
- package/lib/public/src/components/pcfactory/src/VerificationCode/index.tsx +0 -297
- package/lib/public/src/components/pcfactory/src/VerticalView/index.tsx +0 -25
- package/lib/public/src/components/pcfactory/src/VideoPlayer/index.tsx +0 -159
- package/lib/public/src/components/pcfactory/src/View/index.tsx +0 -150
- package/lib/public/src/components/pcfactory/src/View/useBackgroundStyle.ts +0 -75
- package/lib/public/src/components/pcfactory/src/VirtualGroup/index.tsx +0 -16
- package/lib/public/src/components/pcfactory/src/Webview/index.tsx +0 -104
- package/lib/public/src/components/pcfactory/src/index.component.ts +0 -253
- package/lib/public/src/components/pcfactory/src/styles/common.less +0 -107
- package/lib/public/src/components/pcfactory/src/styles/compatible.less +0 -976
- package/lib/public/src/components/pcfactory/src/styles/components/Alert.less +0 -25
- package/lib/public/src/components/pcfactory/src/styles/components/Audio.less +0 -198
- package/lib/public/src/components/pcfactory/src/styles/components/Button.less +0 -32
- package/lib/public/src/components/pcfactory/src/styles/components/Card.less +0 -155
- package/lib/public/src/components/pcfactory/src/styles/components/Cascader.less +0 -54
- package/lib/public/src/components/pcfactory/src/styles/components/Checkbox.less +0 -7
- package/lib/public/src/components/pcfactory/src/styles/components/Collapse.less +0 -214
- package/lib/public/src/components/pcfactory/src/styles/components/DatePicker.less +0 -22
- package/lib/public/src/components/pcfactory/src/styles/components/Description.less +0 -64
- package/lib/public/src/components/pcfactory/src/styles/components/Divider.less +0 -530
- package/lib/public/src/components/pcfactory/src/styles/components/Drawer.less +0 -54
- package/lib/public/src/components/pcfactory/src/styles/components/Dropdown.less +0 -11
- package/lib/public/src/components/pcfactory/src/styles/components/DynamicDataContainer.less +0 -16
- package/lib/public/src/components/pcfactory/src/styles/components/DynamicTabs.less +0 -254
- package/lib/public/src/components/pcfactory/src/styles/components/Form.less +0 -265
- package/lib/public/src/components/pcfactory/src/styles/components/FormGroup.less +0 -111
- package/lib/public/src/components/pcfactory/src/styles/components/Gantt.less +0 -139
- package/lib/public/src/components/pcfactory/src/styles/components/GridView.less +0 -62
- package/lib/public/src/components/pcfactory/src/styles/components/Icon.less +0 -20
- package/lib/public/src/components/pcfactory/src/styles/components/Input.less +0 -164
- package/lib/public/src/components/pcfactory/src/styles/components/InputNumber.less +0 -124
- package/lib/public/src/components/pcfactory/src/styles/components/InputPassword.less +0 -3
- package/lib/public/src/components/pcfactory/src/styles/components/Link.less +0 -4
- package/lib/public/src/components/pcfactory/src/styles/components/LoopList.less +0 -67
- package/lib/public/src/components/pcfactory/src/styles/components/Menu.less +0 -54
- package/lib/public/src/components/pcfactory/src/styles/components/ModalSelect.less +0 -42
- package/lib/public/src/components/pcfactory/src/styles/components/Popconfirm.less +0 -7
- package/lib/public/src/components/pcfactory/src/styles/components/Progress.less +0 -57
- package/lib/public/src/components/pcfactory/src/styles/components/QuillEditor.less +0 -15
- package/lib/public/src/components/pcfactory/src/styles/components/Radio.less +0 -7
- package/lib/public/src/components/pcfactory/src/styles/components/Rate.less +0 -16
- package/lib/public/src/components/pcfactory/src/styles/components/Result.less +0 -26
- package/lib/public/src/components/pcfactory/src/styles/components/Select.less +0 -146
- package/lib/public/src/components/pcfactory/src/styles/components/Slider.less +0 -78
- package/lib/public/src/components/pcfactory/src/styles/components/StdUpload.less +0 -225
- package/lib/public/src/components/pcfactory/src/styles/components/Step.less +0 -91
- package/lib/public/src/components/pcfactory/src/styles/components/SuperSelect.less +0 -83
- package/lib/public/src/components/pcfactory/src/styles/components/Swiper.less +0 -106
- package/lib/public/src/components/pcfactory/src/styles/components/Switch.less +0 -49
- package/lib/public/src/components/pcfactory/src/styles/components/Table.less +0 -1229
- package/lib/public/src/components/pcfactory/src/styles/components/Tabs.less +0 -291
- package/lib/public/src/components/pcfactory/src/styles/components/Tag.less +0 -107
- package/lib/public/src/components/pcfactory/src/styles/components/TextArea.less +0 -12
- package/lib/public/src/components/pcfactory/src/styles/components/TooltipView.less +0 -43
- package/lib/public/src/components/pcfactory/src/styles/components/Transfer.less +0 -155
- package/lib/public/src/components/pcfactory/src/styles/components/Tree.less +0 -329
- package/lib/public/src/components/pcfactory/src/styles/components/TreeSelect.less +0 -65
- package/lib/public/src/components/pcfactory/src/styles/components/Upload.less +0 -26
- package/lib/public/src/components/pcfactory/src/styles/components/VerificationCode.less +0 -162
- package/lib/public/src/components/pcfactory/src/styles/components/Webview.less +0 -31
- package/lib/public/src/components/pcfactory/src/styles/index.less +0 -10
- package/lib/public/src/components/pcfactory/src/styles/index.ued.less +0 -65
- package/lib/public/src/components/pcfactory/src/styles/theme/variables/antdVariables.less +0 -84
- package/lib/public/src/components/pcfactory/src/styles/theme/variables/common.less +0 -9
- package/lib/public/src/components/pcfactory/src/styles/theme/variables/customVariables.less +0 -35
- package/lib/public/src/components/pcfactory/src/styles/theme/variables/index.less +0 -2
- package/lib/public/src/components/pcfactory/src/utils/ChannelContainer.tsx +0 -150
- package/lib/public/src/components/pcfactory/src/utils/ChildRender.ts +0 -103
- package/lib/public/src/components/pcfactory/src/utils/CustomModule.tsx +0 -134
- package/lib/public/src/components/pcfactory/src/utils/DummyFormContext.ts +0 -136
- package/lib/public/src/components/pcfactory/src/utils/Empty/customLocale.tsx +0 -6
- package/lib/public/src/components/pcfactory/src/utils/Empty/empty.tsx +0 -37
- package/lib/public/src/components/pcfactory/src/utils/LoaderHelper.tsx +0 -29
- package/lib/public/src/components/pcfactory/src/utils/PropsType.ts +0 -21
- package/lib/public/src/components/pcfactory/src/utils/WithSyncValue.ts +0 -218
- package/lib/public/src/components/pcfactory/src/utils/ahooks/index.ts +0 -22
- package/lib/public/src/components/pcfactory/src/utils/ahooks/useCreation.ts +0 -23
- package/lib/public/src/components/pcfactory/src/utils/ahooks/useDeepCompareEffect.ts +0 -27
- package/lib/public/src/components/pcfactory/src/utils/ahooks/useMap.ts +0 -46
- package/lib/public/src/components/pcfactory/src/utils/ahooks/useMemoizedFn.ts +0 -27
- package/lib/public/src/components/pcfactory/src/utils/ahooks/usePrevious.ts +0 -19
- package/lib/public/src/components/pcfactory/src/utils/ahooks/useSafeState.ts +0 -26
- package/lib/public/src/components/pcfactory/src/utils/ahooks/useSetState.ts +0 -26
- package/lib/public/src/components/pcfactory/src/utils/ahooks/useUnmountedRef.ts +0 -14
- package/lib/public/src/components/pcfactory/src/utils/ahooks/useUpdate.ts +0 -9
- package/lib/public/src/components/pcfactory/src/utils/ahooks/useUpdateEffect.ts +0 -16
- package/lib/public/src/components/pcfactory/src/utils/basicStatusTransfer.ts +0 -32
- package/lib/public/src/components/pcfactory/src/utils/common.ts +0 -367
- package/lib/public/src/components/pcfactory/src/utils/dynamicUtils/DynamicContext.tsx +0 -106
- package/lib/public/src/components/pcfactory/src/utils/formUtils/FormContext.tsx +0 -131
- package/lib/public/src/components/pcfactory/src/utils/formUtils/FormFields.tsx +0 -646
- package/lib/public/src/components/pcfactory/src/utils/formUtils/WrapperContainer.tsx +0 -123
- package/lib/public/src/components/pcfactory/src/utils/formUtils/cmdHelper.ts +0 -411
- package/lib/public/src/components/pcfactory/src/utils/formUtils/common.ts +0 -28
- package/lib/public/src/components/pcfactory/src/utils/getExportDefaultObj.ts +0 -11
- package/lib/public/src/components/pcfactory/src/utils/hooks/useCommonImperativeHandle.ts +0 -140
- package/lib/public/src/components/pcfactory/src/utils/hooks/useDataMask.ts +0 -83
- package/lib/public/src/components/pcfactory/src/utils/hooks/useDoubleClick.ts +0 -63
- package/lib/public/src/components/pcfactory/src/utils/hooks/useFuncExpExecute.ts +0 -86
- package/lib/public/src/components/pcfactory/src/utils/hooks/useGetStaticAttrData.ts +0 -41
- package/lib/public/src/components/pcfactory/src/utils/hooks/useHiddenStyle.ts +0 -43
- package/lib/public/src/components/pcfactory/src/utils/hooks/useInitReactQuill.ts +0 -90
- package/lib/public/src/components/pcfactory/src/utils/hooks/useListenState.ts +0 -26
- package/lib/public/src/components/pcfactory/src/utils/hooks/useLocale.ts +0 -129
- package/lib/public/src/components/pcfactory/src/utils/hooks/usePrintMode.tsx +0 -80
- package/lib/public/src/components/pcfactory/src/utils/hooks/useRules.ts +0 -89
- package/lib/public/src/components/pcfactory/src/utils/hooks/useTestHelper.ts +0 -26
- package/lib/public/src/components/pcfactory/src/utils/hooks/useToggleBoolean.ts +0 -33
- package/lib/public/src/components/pcfactory/src/utils/index.ts +0 -19
- package/lib/public/src/components/pcfactory/src/utils/polyfill.js +0 -305
- package/lib/public/src/components/pcfactory/src/utils/renderReadOnly.tsx +0 -105
- package/lib/public/src/components/pcfactory/src/variables.ts +0 -2
- package/lib/public/src/components/pcfactory/typings.d.ts +0 -27
- package/lib/public/src/hooks/useGenerateContext.ts +0 -73
- package/lib/public/src/styles/common.less +0 -41
- package/lib/public/src/styles/index.less +0 -4
- package/lib/public/src/styles/index.ts +0 -1
- package/lib/public/src/styles/theme/variables.less +0 -130
- package/lib/public/src/utils/LcdpSpin/index.less +0 -13
- package/lib/public/src/utils/LcdpSpin/index.tsx +0 -12
- package/lib/public/src/utils/ModalManager/Drawer/index.less +0 -30
- package/lib/public/src/utils/ModalManager/Drawer/index.tsx +0 -109
- package/lib/public/src/utils/ModalManager/Modal/index.less +0 -7
- package/lib/public/src/utils/ModalManager/Modal/index.tsx +0 -96
- package/lib/public/src/utils/ModalManager/index.tsx +0 -278
- package/lib/public/src/utils/Security/encipher/des.ts +0 -52
- package/lib/public/src/utils/customFuncMapping.ts +0 -107
- package/lib/public/src/utils/formUtils.ts +0 -458
- package/lib/public/src/utils/i18n/i18n.ts +0 -15
- package/lib/public/src/utils/i18n/index.ts +0 -7
- package/lib/public/src/utils/i18n/locale/app/en_US.ts +0 -77
- package/lib/public/src/utils/i18n/locale/app/index.ts +0 -9
- package/lib/public/src/utils/i18n/locale/app/otherLocale.ts +0 -2
- package/lib/public/src/utils/i18n/locale/app/zh_CN.ts +0 -65
- package/lib/public/src/utils/i18n/locale/app/zh_HK.ts +0 -66
- package/lib/public/src/utils/i18n/locale/base/en_US.ts +0 -449
- package/lib/public/src/utils/i18n/locale/base/index.ts +0 -5
- package/lib/public/src/utils/i18n/locale/base/zh_CN.ts +0 -413
- package/lib/public/src/utils/i18n/locale/base/zh_HK.ts +0 -411
- package/lib/public/src/utils/i18n/locale/pc/en_US.ts +0 -131
- package/lib/public/src/utils/i18n/locale/pc/index.ts +0 -9
- package/lib/public/src/utils/i18n/locale/pc/otherLocale.ts +0 -2
- package/lib/public/src/utils/i18n/locale/pc/zh_CN.ts +0 -105
- package/lib/public/src/utils/i18n/locale/pc/zh_HK.ts +0 -105
- package/lib/public/src/utils/i18n/localeMonitor.ts +0 -71
- package/lib/public/src/utils/i18n/locales.ts +0 -30
- package/lib/public/src/utils/i18n/replaceMessage.ts +0 -29
- package/lib/public/src/utils/i18n/types.ts +0 -2
- package/lib/public/src/utils/i18n/useLocale.ts +0 -129
- package/lib/public/src/utils/messageApi.ts +0 -93
- package/lib/public/src/utils/useTool.ts +0 -428
- /package/lib/public/src/utils/functors/{DATEADD.ts → dateAdd.ts} +0 -0
|
@@ -1,458 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line max-len
|
|
2
|
-
export const getCalendarLocale = (
|
|
3
|
-
getLocale: (
|
|
4
|
-
t: string,
|
|
5
|
-
placelhoder?: string,
|
|
6
|
-
tempValue?: Record<string, any>,
|
|
7
|
-
) => string | undefined,
|
|
8
|
-
t: string,
|
|
9
|
-
tempValue?: Record<string, any>,
|
|
10
|
-
) => {
|
|
11
|
-
if (t === 'confirm') {
|
|
12
|
-
return getLocale(t, '', tempValue);
|
|
13
|
-
}
|
|
14
|
-
return getLocale(`Calendar.${t}`, '', tempValue);
|
|
15
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import merge from 'lodash/merge';
|
|
2
|
-
import { baseEnUS } from '../base';
|
|
3
|
-
|
|
4
|
-
export default merge(baseEnUS, {
|
|
5
|
-
'Calendar.end': 'end',
|
|
6
|
-
'Calendar.start': 'start',
|
|
7
|
-
'Calendar.title': 'date selection',
|
|
8
|
-
'Calendar.startEnd': 'start/end',
|
|
9
|
-
'Calendar.weekdays': ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
10
|
-
'Calendar.monthTitle': '@{year}/@{month}',
|
|
11
|
-
'Calendar.rangePrompt': 'Maximum selection of @{maxRange} days',
|
|
12
|
-
'SearchView.title': 'Please select the search time range',
|
|
13
|
-
'ProcessTrack.empty': 'No process data available',
|
|
14
|
-
'LoadMoreListView.canRelease': 'Release to refresh',
|
|
15
|
-
'LoadMoreListView.pulling': 'Pull down to refresh',
|
|
16
|
-
'LoadMoreListView.complete': 'Refresh complete',
|
|
17
|
-
'LoadMoreListView.refreshing': 'Refreshing',
|
|
18
|
-
'DatePicker.yearTip': 'Select Year',
|
|
19
|
-
'DatePicker.monthTip': 'Please Select Time',
|
|
20
|
-
'DatePicker.dayTip': 'Please Select Time',
|
|
21
|
-
'DatePicker.timeTip': 'Please Select Time',
|
|
22
|
-
'DatePicker.minuteTip': 'Select Date and Time',
|
|
23
|
-
'BannerModal.scaleMax': 'Scaled to maximum',
|
|
24
|
-
'BannerModal.scaleMin': 'Scaled to minimum',
|
|
25
|
-
'NoPermission.description':
|
|
26
|
-
'You do not have access permission, please contact the administrator~',
|
|
27
|
-
'NotFound.description':
|
|
28
|
-
'Sorry, the page you are trying to access does not exist.',
|
|
29
|
-
'Modal.missParams':
|
|
30
|
-
'Modal operation failed: Missing page instance ID or page path.',
|
|
31
|
-
'DformRangePicker.startLessEnd':
|
|
32
|
-
'The start time should not be greater than the end time.',
|
|
33
|
-
'DformRangePicker.yearTip': 'Select Year',
|
|
34
|
-
'DformRangePicker.monthTip': 'Please Select Time',
|
|
35
|
-
'DformRangePicker.timeTip': 'Please Select Time',
|
|
36
|
-
'DformRangePicker.dateTip': 'Please Select Time',
|
|
37
|
-
'DformRangePicker.onlyTime': 'Please Select Time',
|
|
38
|
-
'DformRangePicker.date': 'Please Select Time',
|
|
39
|
-
'DformRangePicker.year': '@{year}',
|
|
40
|
-
'DformRangePicker.month': '@{month}',
|
|
41
|
-
'DformRangePicker.day': '@{day}',
|
|
42
|
-
'DformRangePicker.hour': '@{hour}',
|
|
43
|
-
'DformRangePicker.minute': '@{minute}',
|
|
44
|
-
'DformRangePicker.second': '@{second}',
|
|
45
|
-
'DformRangePicker.selectEnd': 'Select End Time',
|
|
46
|
-
'DformRangePicker.selectStart': 'Select Start Time',
|
|
47
|
-
'DformInputNumber.selectPlaceholder': 'Please enter @{title}',
|
|
48
|
-
'DformInput.selectPlaceholder': 'please enter @{title}',
|
|
49
|
-
'DformTextArea.selectPlaceholder': 'please enter @{title}',
|
|
50
|
-
'DformImagePicker.selectPlaceholder': 'please upload @{title}',
|
|
51
|
-
'DformFile.selectPlaceholder': 'please upload @{title}',
|
|
52
|
-
'VerificationCode.text': 'Send verification code',
|
|
53
|
-
'VerificationCode.refresh': 'Refresh',
|
|
54
|
-
'DynamicList.dataError': 'Dynamic list data format error!',
|
|
55
|
-
'DynamicList.clickToMore': 'click to load more',
|
|
56
|
-
'DynamicList.noMore': 'no more available',
|
|
57
|
-
'Carousel.switchEmpty':
|
|
58
|
-
'The carousel component has no content and cannot be switched',
|
|
59
|
-
'Carousel.isLast': 'It is the last item',
|
|
60
|
-
'Carousel.isFirst': 'Already the first item',
|
|
61
|
-
'Carousel.noExist': 'The carousel component does not have this item',
|
|
62
|
-
'StepBar.wait': 'Waiting state',
|
|
63
|
-
'StepBar.process': 'Processing status',
|
|
64
|
-
'StepBar.finish': 'Complete status',
|
|
65
|
-
'StepBar.error': 'Error status',
|
|
66
|
-
'DformFile.noAllow': 'File type @{type} is not allowed to be uploaded',
|
|
67
|
-
'DformFile.fileSizeExceeded': 'File upload size exceeded',
|
|
68
|
-
'DformFile.somePicFailed': 'Some pictures failed to upload',
|
|
69
|
-
'DformFile.noUrl': 'The current data has no url/fileId',
|
|
70
|
-
'DformFile.updateTime': 'Upload time',
|
|
71
|
-
'DformPicker.searchPlaceholder':
|
|
72
|
-
'Please enter the options you want to search for',
|
|
73
|
-
'DynamicTable.more': 'more',
|
|
74
|
-
'DynamicTable.total': 'total',
|
|
75
|
-
uploading: 'uploading',
|
|
76
|
-
'Chart.configData': 'Please configure data source',
|
|
77
|
-
});
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import merge from 'lodash/merge';
|
|
2
|
-
import { baseZHCN } from '../base';
|
|
3
|
-
|
|
4
|
-
export default merge(baseZHCN, {
|
|
5
|
-
'Calendar.end': '结束',
|
|
6
|
-
'Calendar.start': '开始',
|
|
7
|
-
'Calendar.title': '日期选择',
|
|
8
|
-
'Calendar.startEnd': '开始/结束',
|
|
9
|
-
'Calendar.weekdays': ['日', '一', '二', '三', '四', '五', '六'],
|
|
10
|
-
'Calendar.monthTitle': '@{year}年@{month}月',
|
|
11
|
-
'Calendar.rangePrompt': '最多选择 @{maxRange} 天',
|
|
12
|
-
'Calendar.confirm': '确定',
|
|
13
|
-
'SearchView.title': '请选择搜索时间范围',
|
|
14
|
-
'ProcessTrack.empty': '暂无流程数据',
|
|
15
|
-
'LoadMoreListView.canRelease': '松开刷新',
|
|
16
|
-
'LoadMoreListView.pulling': '下拉刷新',
|
|
17
|
-
'LoadMoreListView.complete': '刷新完成',
|
|
18
|
-
'LoadMoreListView.refreshing': '正在刷新',
|
|
19
|
-
'DatePicker.yearTip': '选择年份',
|
|
20
|
-
'DatePicker.monthTip': '选择年份和月份',
|
|
21
|
-
'DatePicker.dayTip': '选择年月日',
|
|
22
|
-
'DatePicker.timeTip': '选择时间',
|
|
23
|
-
'DatePicker.minuteTip': '选择日期和时间',
|
|
24
|
-
'BannerModal.scaleMax': '已缩放至最大',
|
|
25
|
-
'BannerModal.scaleMin': '已缩放至最小',
|
|
26
|
-
'NoPermission.description': '您还没有访问权限,请联系管理员~',
|
|
27
|
-
'NotFound.description': '抱歉,您访问的页面不存在',
|
|
28
|
-
'Modal.missParams': '弹窗操作失败:缺少页面实例ID或页面路径',
|
|
29
|
-
'DformRangePicker.startLessEnd': '开始时间不能大于结束时间。',
|
|
30
|
-
'DformRangePicker.yearTip': '选择年份',
|
|
31
|
-
'DformRangePicker.monthTip': '选择年份和月份',
|
|
32
|
-
'DformRangePicker.timeTip': '选择年月日时分',
|
|
33
|
-
'DformRangePicker.dateTip': '选择时间',
|
|
34
|
-
'DformRangePicker.onlyTime': '选择时间',
|
|
35
|
-
'DformRangePicker.date': '选择年月日',
|
|
36
|
-
'DformRangePicker.selectEnd': '请选择结束时间',
|
|
37
|
-
'DformRangePicker.selectStart': '请选择开始时间',
|
|
38
|
-
'DformInputNumber.selectPlaceholder': '请输入@{title}',
|
|
39
|
-
'DformInput.selectPlaceholder': '请输入@{title}',
|
|
40
|
-
'DformTextArea.selectPlaceholder': '请输入@{title}',
|
|
41
|
-
'DformImagePicker.selectPlaceholder': '请上传@{title}',
|
|
42
|
-
'DformFile.selectPlaceholder': '请上传@{title}',
|
|
43
|
-
'VerificationCode.text': '发送验证码',
|
|
44
|
-
'VerificationCode.refresh': '重新获取',
|
|
45
|
-
'DynamicList.dataError': '动态列表数据格式错误!',
|
|
46
|
-
'DynamicList.clickToMore': '点击加载更多',
|
|
47
|
-
'DynamicList.noMore': '没有更多了',
|
|
48
|
-
'Carousel.switchEmpty': '轮播图组件没有内容,无法切换',
|
|
49
|
-
'Carousel.isLast': '已是最后一项',
|
|
50
|
-
'Carousel.isFirst': '已是第一项',
|
|
51
|
-
'Carousel.noExist': '轮播图组件没有此项',
|
|
52
|
-
'StepBar.wait': '等待状态',
|
|
53
|
-
'StepBar.process': '处理中状态',
|
|
54
|
-
'StepBar.finish': '完成状态',
|
|
55
|
-
'StepBar.error': '错误状态',
|
|
56
|
-
'DformFile.noAllow': '不允许上传文件类型@{type}',
|
|
57
|
-
'DformFile.fileSizeExceeded': '超过文件设置上传大小',
|
|
58
|
-
'DformFile.somePicFailed': '部分图片上传失败',
|
|
59
|
-
'DformFile.noUrl': '当前数据没有url/fileId',
|
|
60
|
-
'DformFile.updateTime': '上传时间',
|
|
61
|
-
'DformPicker.searchPlaceholder': '请输入要搜索的选项',
|
|
62
|
-
'DynamicTable.more': '查看更多',
|
|
63
|
-
'DynamicTable.total': '合计',
|
|
64
|
-
uploading: '正在上传',
|
|
65
|
-
});
|