win-chart 1.0.3 → 1.2.0
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/README.md +15 -0
- package/esm/api/README.md +15 -0
- package/esm/api/index.js +6 -0
- package/esm/api/index.js.map +1 -0
- package/esm/api/layout/index.js +53 -0
- package/esm/api/layout/index.js.map +1 -0
- package/esm/api/request.d.ts +25 -0
- package/esm/api/request.js +89 -0
- package/esm/api/request.js.map +1 -0
- package/esm/api/url-map/index.js +7 -0
- package/esm/api/user/index.js +33 -0
- package/esm/api/user/index.js.map +1 -0
- package/esm/components/FilterContext.d.ts +4 -0
- package/esm/components/FilterContext.js +7 -0
- package/esm/components/FilterContext.js.map +1 -0
- package/esm/components/GlobalStyle.d.ts +2 -0
- package/esm/components/GlobalStyle.js +26 -0
- package/esm/components/GlobalStyle.js.map +1 -0
- package/esm/components/HalfScreenBrowser.d.ts +1 -0
- package/esm/components/HalfScreenBrowser.js +96 -0
- package/esm/components/HalfScreenBrowser.js.map +1 -0
- package/esm/components/ImgBox.d.ts +8 -0
- package/esm/components/ImgBox.js +15 -0
- package/esm/components/ImgBox.js.map +1 -0
- package/esm/components/JumpBtn.d.ts +11 -0
- package/esm/components/JumpBtn.js +40 -0
- package/esm/components/JumpBtn.js.map +1 -0
- package/esm/components/MCardWrapper.d.ts +4 -0
- package/esm/components/MCardWrapper.js +36 -0
- package/esm/components/MCardWrapper.js.map +1 -0
- package/esm/components/NoContent/index.d.ts +10 -0
- package/esm/components/NoContent/index.js +68 -0
- package/esm/components/NoContent/index.js.map +1 -0
- package/esm/components/ResponsiveReactGridLayout.d.ts +4 -0
- package/esm/components/ResponsiveReactGridLayout.js +15 -0
- package/esm/components/ResponsiveReactGridLayout.js.map +1 -0
- package/esm/components/SliderDecoration.d.ts +3 -0
- package/esm/components/SliderDecoration.js +51 -0
- package/esm/components/SliderDecoration.js.map +1 -0
- package/esm/components/VisionUserConfigContext.d.ts +1 -0
- package/esm/components/VisionUserConfigContext.js +4 -0
- package/esm/components/VisionUserConfigContext.js.map +1 -0
- package/esm/components/WinMenu/README.md +11 -0
- package/esm/components/WinMenu/WinHeader.d.ts +3 -0
- package/esm/components/WinMenu/WinHeader.js +15 -0
- package/esm/components/WinMenu/WinHeader.js.map +1 -0
- package/esm/components/WinMenu/components/ExtraBox.d.ts +7 -0
- package/esm/components/WinMenu/components/ExtraBox.js +57 -0
- package/esm/components/WinMenu/components/ExtraBox.js.map +1 -0
- package/esm/components/WinMenu/components/FullMenuBox.d.ts +2 -0
- package/esm/components/WinMenu/components/FullMenuBox.js +67 -0
- package/esm/components/WinMenu/components/FullMenuBox.js.map +1 -0
- package/esm/components/WinMenu/components/FullMenuContainer.d.ts +2 -0
- package/esm/components/WinMenu/components/FullMenuContainer.js +41 -0
- package/esm/components/WinMenu/components/FullMenuContainer.js.map +1 -0
- package/esm/components/WinMenu/components/FullMenuItem.d.ts +7 -0
- package/esm/components/WinMenu/components/FullMenuItem.js +75 -0
- package/esm/components/WinMenu/components/FullMenuItem.js.map +1 -0
- package/esm/components/WinMenu/components/LangSwitch.d.ts +1 -0
- package/esm/components/WinMenu/components/LangSwitch.js +86 -0
- package/esm/components/WinMenu/components/LangSwitch.js.map +1 -0
- package/esm/components/WinMenu/components/LogoBox.d.ts +4 -0
- package/esm/components/WinMenu/components/LogoBox.js +42 -0
- package/esm/components/WinMenu/components/LogoBox.js.map +1 -0
- package/esm/components/WinMenu/components/PinDialog.d.ts +9 -0
- package/esm/components/WinMenu/components/PinDialog.js +56 -0
- package/esm/components/WinMenu/components/PinDialog.js.map +1 -0
- package/esm/components/WinMenu/components/PinnedMenuBox.d.ts +11 -0
- package/esm/components/WinMenu/components/PinnedMenuBox.js +188 -0
- package/esm/components/WinMenu/components/PinnedMenuBox.js.map +1 -0
- package/esm/components/WinMenu/components/UserBox.d.ts +2 -0
- package/esm/components/WinMenu/components/UserBox.js +87 -0
- package/esm/components/WinMenu/components/UserBox.js.map +1 -0
- package/esm/components/WinMenu/hooks/useUserInfo.d.ts +2 -0
- package/esm/components/WinMenu/hooks/useUserInfo.js +52 -0
- package/esm/components/WinMenu/hooks/useUserInfo.js.map +1 -0
- package/esm/components/WinMenu/hooks/useUserMenu.d.ts +8 -0
- package/esm/components/WinMenu/hooks/useUserMenu.js +73 -0
- package/esm/components/WinMenu/hooks/useUserMenu.js.map +1 -0
- package/esm/components/WinMenu/index.d.ts +7 -0
- package/esm/components/WinMenu/index.js +151 -0
- package/esm/components/WinMenu/index.js.map +1 -0
- package/esm/components/WinMenu/services/WinService.d.ts +24 -0
- package/esm/components/WinMenu/services/WinService.js +155 -0
- package/esm/components/WinMenu/services/WinService.js.map +1 -0
- package/esm/components/WinMenu/services/request.d.ts +2 -0
- package/esm/components/WinMenu/services/request.js +60 -0
- package/esm/components/WinMenu/services/request.js.map +1 -0
- package/esm/components/WinMenu/utils/const.d.ts +36 -0
- package/esm/components/WinMenu/utils/const.js +52 -0
- package/esm/components/WinMenu/utils/enum.d.ts +17 -0
- package/esm/components/WinMenu/utils/enum.js +14 -0
- package/esm/components/WinMenu/utils/interface.d.ts +54 -0
- package/esm/components/WinMenu/utils/interface.js +3 -0
- package/esm/components/WinMenu/utils/map.d.ts +14 -0
- package/esm/components/WinMenu/utils/map.js +37 -0
- package/esm/components/WinMenu/utils/map.js.map +1 -0
- package/esm/components/WinMenu/utils/tool.d.ts +70 -0
- package/esm/components/WinMenu/utils/tool.js +154 -0
- package/esm/components/WinMenu/utils/tool.js.map +1 -0
- package/esm/components/WinMenu/utils/type.d.ts +1 -0
- package/esm/components/WinMenu/utils/type.js +1 -0
- package/esm/components/hover-view.d.ts +11 -0
- package/esm/components/hover-view.js +27 -0
- package/esm/components/hover-view.js.map +1 -0
- package/esm/components/icon.d.ts +11 -0
- package/esm/components/icon.js +36 -0
- package/esm/components/icon.js.map +1 -0
- package/esm/components/indicator-remark.d.ts +6 -0
- package/esm/components/indicator-remark.js +20 -0
- package/esm/components/indicator-remark.js.map +1 -0
- package/esm/components/none-content.d.ts +11 -0
- package/esm/components/none-content.js +70 -0
- package/esm/components/none-content.js.map +1 -0
- package/esm/components/panel-tab.d.ts +15 -0
- package/esm/components/panel-tab.js +160 -0
- package/esm/components/panel-tab.js.map +1 -0
- package/esm/components/panel-title-tab.d.ts +12 -0
- package/esm/components/panel-title-tab.js +40 -0
- package/esm/components/panel-title-tab.js.map +1 -0
- package/esm/components/win-card/components/ChartContent.d.ts +8 -0
- package/esm/components/win-card/components/ChartContent.js +36 -0
- package/esm/components/win-card/components/ChartContent.js.map +1 -0
- package/esm/components/win-card/components/Indicator.d.ts +2 -0
- package/esm/components/win-card/components/Indicator.js +40 -0
- package/esm/components/win-card/components/Indicator.js.map +1 -0
- package/esm/components/win-card/components/IndicatorArea.d.ts +2 -0
- package/esm/components/win-card/components/IndicatorArea.js +57 -0
- package/esm/components/win-card/components/IndicatorArea.js.map +1 -0
- package/esm/components/win-card/components/IndicatorInfo.d.ts +14 -0
- package/esm/components/win-card/components/IndicatorInfo.js +67 -0
- package/esm/components/win-card/components/IndicatorInfo.js.map +1 -0
- package/esm/components/win-card/components/MatterContent.d.ts +5 -0
- package/esm/components/win-card/components/MatterContent.js +124 -0
- package/esm/components/win-card/components/MatterContent.js.map +1 -0
- package/esm/components/win-card/components/MatterList.d.ts +7 -0
- package/esm/components/win-card/components/MatterList.js +115 -0
- package/esm/components/win-card/components/MatterList.js.map +1 -0
- package/esm/components/win-card/components/NoticeContent.d.ts +6 -0
- package/esm/components/win-card/components/NoticeContent.js +75 -0
- package/esm/components/win-card/components/NoticeContent.js.map +1 -0
- package/esm/components/win-card/components/NoticeList.d.ts +7 -0
- package/esm/components/win-card/components/NoticeList.js +55 -0
- package/esm/components/win-card/components/NoticeList.js.map +1 -0
- package/esm/components/win-card/components/SelectDecoration.d.ts +4 -0
- package/esm/components/win-card/components/SelectDecoration.js +43 -0
- package/esm/components/win-card/components/SelectDecoration.js.map +1 -0
- package/esm/components/win-card/components/WinRankContent.d.ts +1 -0
- package/esm/components/win-card/components/WinRankContent.js +99 -0
- package/esm/components/win-card/components/WinRankContent.js.map +1 -0
- package/esm/components/win-card/index.d.ts +9 -0
- package/esm/components/win-card/index.js +263 -0
- package/esm/components/win-card/index.js.map +1 -0
- package/esm/components/win-card/utils/interface.d.ts +11 -0
- package/esm/components/win-card/utils/interface.js +1 -0
- package/esm/components/win-card/utils/tool.d.ts +1 -0
- package/esm/components/win-card/utils/tool.js +14 -0
- package/esm/components/win-card/utils/tool.js.map +1 -0
- package/esm/components/win-card-mobile/components/ChartContent.d.ts +8 -0
- package/esm/components/win-card-mobile/components/ChartContent.js +36 -0
- package/esm/components/win-card-mobile/components/ChartContent.js.map +1 -0
- package/esm/components/win-card-mobile/components/DualLineBar.d.ts +2 -0
- package/esm/components/win-card-mobile/components/DualLineBar.js +41 -0
- package/esm/components/win-card-mobile/components/DualLineBar.js.map +1 -0
- package/esm/components/win-card-mobile/components/Indicator.d.ts +2 -0
- package/esm/components/win-card-mobile/components/Indicator.js +40 -0
- package/esm/components/win-card-mobile/components/Indicator.js.map +1 -0
- package/esm/components/win-card-mobile/components/IndicatorArea.d.ts +2 -0
- package/esm/components/win-card-mobile/components/IndicatorArea.js +59 -0
- package/esm/components/win-card-mobile/components/IndicatorArea.js.map +1 -0
- package/esm/components/win-card-mobile/components/IndicatorInfo.d.ts +13 -0
- package/esm/components/win-card-mobile/components/IndicatorInfo.js +72 -0
- package/esm/components/win-card-mobile/components/IndicatorInfo.js.map +1 -0
- package/esm/components/win-card-mobile/components/SelectDecoration.d.ts +9 -0
- package/esm/components/win-card-mobile/components/SelectDecoration.js +33 -0
- package/esm/components/win-card-mobile/components/SelectDecoration.js.map +1 -0
- package/esm/components/win-card-mobile/index.d.ts +7 -0
- package/esm/components/win-card-mobile/index.js +215 -0
- package/esm/components/win-card-mobile/index.js.map +1 -0
- package/esm/components/win-card-mobile/utils/interface.d.ts +10 -0
- package/esm/components/win-card-mobile/utils/interface.js +1 -0
- package/esm/components/win-card-mobile/utils/tool.d.ts +1 -0
- package/esm/components/win-card-mobile/utils/tool.js +8 -0
- package/esm/components/win-chart/components/chart-wrapper.d.ts +2 -0
- package/esm/components/win-chart/components/chart-wrapper.js +14 -0
- package/esm/components/win-chart/components/chart-wrapper.js.map +1 -0
- package/esm/components/win-chart/index.d.ts +4 -0
- package/esm/components/win-chart/index.js +60 -0
- package/esm/components/win-chart/index.js.map +1 -0
- package/esm/components/win-chart/theme/win-dark.json +372 -0
- package/esm/components/win-chart/theme/win-light.json +372 -0
- package/esm/components/win-chart/utils/const.d.ts +8 -0
- package/esm/components/win-chart/utils/const.js +34 -0
- package/esm/components/win-chart/utils/getAreaSpec.d.ts +14 -0
- package/esm/components/win-chart/utils/getAreaSpec.js +149 -0
- package/esm/components/win-chart/utils/getAreaSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getBarSpec.d.ts +8 -0
- package/esm/components/win-chart/utils/getBarSpec.js +66 -0
- package/esm/components/win-chart/utils/getBarSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getChartOptions.d.ts +7 -0
- package/esm/components/win-chart/utils/getChartOptions.js +45 -0
- package/esm/components/win-chart/utils/getChartOptions.js.map +1 -0
- package/esm/components/win-chart/utils/getColumnSpec.d.ts +14 -0
- package/esm/components/win-chart/utils/getColumnSpec.js +119 -0
- package/esm/components/win-chart/utils/getColumnSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getDualSpec.d.ts +7 -0
- package/esm/components/win-chart/utils/getDualSpec.js +93 -0
- package/esm/components/win-chart/utils/getDualSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getFunnelSpec.d.ts +8 -0
- package/esm/components/win-chart/utils/getFunnelSpec.js +66 -0
- package/esm/components/win-chart/utils/getFunnelSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getLineSpec.d.ts +8 -0
- package/esm/components/win-chart/utils/getLineSpec.js +52 -0
- package/esm/components/win-chart/utils/getLineSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getPieSpec.d.ts +13 -0
- package/esm/components/win-chart/utils/getPieSpec.js +126 -0
- package/esm/components/win-chart/utils/getPieSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getRadarSpec.d.ts +7 -0
- package/esm/components/win-chart/utils/getRadarSpec.js +88 -0
- package/esm/components/win-chart/utils/getRadarSpec.js.map +1 -0
- package/esm/components/win-chart/utils/tool.d.ts +57 -0
- package/esm/components/win-chart/utils/tool.js +146 -0
- package/esm/components/win-chart/utils/tool.js.map +1 -0
- package/esm/components/win-chart/utils/type.d.ts +82 -0
- package/esm/components/win-chart/utils/type.js +36 -0
- package/esm/components/win-icon/index.d.ts +8 -0
- package/esm/components/win-icon/index.js +79 -0
- package/esm/components/win-icon/index.js.map +1 -0
- package/esm/components/win-wrappers/card-wrapper.d.ts +17 -0
- package/esm/components/win-wrappers/card-wrapper.js +170 -0
- package/esm/components/win-wrappers/card-wrapper.js.map +1 -0
- package/esm/components/win-wrappers/dot-wrapper.d.ts +4 -0
- package/esm/components/win-wrappers/dot-wrapper.js +29 -0
- package/esm/components/win-wrappers/dot-wrapper.js.map +1 -0
- package/esm/components/win-wrappers/iframe-wrapper.d.ts +2 -0
- package/esm/components/win-wrappers/iframe-wrapper.js +14 -0
- package/esm/components/win-wrappers/iframe-wrapper.js.map +1 -0
- package/esm/components/win-wrappers/request-wrapper.d.ts +41 -0
- package/esm/components/win-wrappers/request-wrapper.js +170 -0
- package/esm/components/win-wrappers/request-wrapper.js.map +1 -0
- package/esm/hooks/useCardOptionList.d.ts +2 -0
- package/esm/hooks/useCardOptionList.js +58 -0
- package/esm/hooks/useCardOptionList.js.map +1 -0
- package/esm/hooks/useCostFiltersDicList.d.ts +2 -0
- package/esm/hooks/useCostFiltersDicList.js +61 -0
- package/esm/hooks/useCostFiltersDicList.js.map +1 -0
- package/esm/hooks/useFbiUrl.d.ts +1 -0
- package/esm/hooks/useFbiUrl.js +58 -0
- package/esm/hooks/useFbiUrl.js.map +1 -0
- package/esm/hooks/useHalfScreenState.d.ts +19 -0
- package/esm/hooks/useHalfScreenState.js +52 -0
- package/esm/hooks/useHalfScreenState.js.map +1 -0
- package/esm/hooks/useHasIntersected.d.ts +8 -0
- package/esm/hooks/useHasIntersected.js +33 -0
- package/esm/hooks/useHasIntersected.js.map +1 -0
- package/esm/hooks/useIndicatorCardInfo.d.ts +2 -0
- package/esm/hooks/useIndicatorCardInfo.js +61 -0
- package/esm/hooks/useIndicatorCardInfo.js.map +1 -0
- package/esm/hooks/useIndicatorCardQueryList.d.ts +2 -0
- package/esm/hooks/useIndicatorCardQueryList.js +59 -0
- package/esm/hooks/useIndicatorCardQueryList.js.map +1 -0
- package/esm/hooks/useIndicatorClassifyList.d.ts +2 -0
- package/esm/hooks/useIndicatorClassifyList.js +57 -0
- package/esm/hooks/useIndicatorClassifyList.js.map +1 -0
- package/esm/hooks/useIndicatorDetailsDateList.d.ts +2 -0
- package/esm/hooks/useIndicatorDetailsDateList.js +59 -0
- package/esm/hooks/useIndicatorDetailsDateList.js.map +1 -0
- package/esm/hooks/useIndicatorDetailsInfo.d.ts +5 -0
- package/esm/hooks/useIndicatorDetailsInfo.js +102 -0
- package/esm/hooks/useIndicatorDetailsInfo.js.map +1 -0
- package/esm/hooks/useIndicatorDetailsTrend.d.ts +2 -0
- package/esm/hooks/useIndicatorDetailsTrend.js +60 -0
- package/esm/hooks/useIndicatorDetailsTrend.js.map +1 -0
- package/esm/hooks/useIndicatorDicList.d.ts +2 -0
- package/esm/hooks/useIndicatorDicList.js +59 -0
- package/esm/hooks/useIndicatorDicList.js.map +1 -0
- package/esm/hooks/useIndicatorLabelList.d.ts +2 -0
- package/esm/hooks/useIndicatorLabelList.js +51 -0
- package/esm/hooks/useIndicatorLabelList.js.map +1 -0
- package/esm/hooks/useIndicatorList.d.ts +2 -0
- package/esm/hooks/useIndicatorList.js +53 -0
- package/esm/hooks/useIndicatorList.js.map +1 -0
- package/esm/hooks/useIndicatorRangeList.d.ts +2 -0
- package/esm/hooks/useIndicatorRangeList.js +51 -0
- package/esm/hooks/useIndicatorRangeList.js.map +1 -0
- package/esm/hooks/useIndicatorTypeList.d.ts +2 -0
- package/esm/hooks/useIndicatorTypeList.js +51 -0
- package/esm/hooks/useIndicatorTypeList.js.map +1 -0
- package/esm/hooks/useIndicatorUnitList.d.ts +2 -0
- package/esm/hooks/useIndicatorUnitList.js +50 -0
- package/esm/hooks/useIndicatorUnitList.js.map +1 -0
- package/esm/hooks/useListenQuery.d.ts +1 -0
- package/esm/hooks/useListenQuery.js +24 -0
- package/esm/hooks/useListenQuery.js.map +1 -0
- package/esm/hooks/useMobile.d.ts +13 -0
- package/esm/hooks/useMobile.js +51 -0
- package/esm/hooks/useMobile.js.map +1 -0
- package/esm/hooks/useNotice.d.ts +3 -0
- package/esm/hooks/useNotice.js +109 -0
- package/esm/hooks/useNotice.js.map +1 -0
- package/esm/hooks/useOrgLevelList.d.ts +2 -0
- package/esm/hooks/useOrgLevelList.js +58 -0
- package/esm/hooks/useOrgLevelList.js.map +1 -0
- package/esm/hooks/usePageSelection.d.ts +7 -0
- package/esm/hooks/usePageSelection.js +99 -0
- package/esm/hooks/usePageSelection.js.map +1 -0
- package/esm/hooks/usePageState.d.ts +12 -0
- package/esm/hooks/usePageState.js +20 -0
- package/esm/hooks/usePageState.js.map +1 -0
- package/esm/hooks/usePendingList.d.ts +2 -0
- package/esm/hooks/usePendingList.js +75 -0
- package/esm/hooks/usePendingList.js.map +1 -0
- package/esm/hooks/usePortalPageInfo.d.ts +11 -0
- package/esm/hooks/usePortalPageInfo.js +71 -0
- package/esm/hooks/usePortalPageInfo.js.map +1 -0
- package/esm/hooks/useRefreshByLocationChange.d.ts +1 -0
- package/esm/hooks/useRefreshByLocationChange.js +18 -0
- package/esm/hooks/useRefreshByLocationChange.js.map +1 -0
- package/esm/hooks/useReportIndicatorList.d.ts +2 -0
- package/esm/hooks/useReportIndicatorList.js +50 -0
- package/esm/hooks/useReportIndicatorList.js.map +1 -0
- package/esm/hooks/useReportInfo.d.ts +3 -0
- package/esm/hooks/useReportInfo.js +109 -0
- package/esm/hooks/useReportInfo.js.map +1 -0
- package/esm/hooks/useReportPersonList.d.ts +2 -0
- package/esm/hooks/useReportPersonList.js +50 -0
- package/esm/hooks/useReportPersonList.js.map +1 -0
- package/esm/hooks/useScriptLoader.d.ts +1 -0
- package/esm/hooks/useScriptLoader.js +26 -0
- package/esm/hooks/useScriptLoader.js.map +1 -0
- package/esm/hooks/useUnreadMsgList.d.ts +5 -0
- package/esm/hooks/useUnreadMsgList.js +56 -0
- package/esm/hooks/useUnreadMsgList.js.map +1 -0
- package/esm/hooks/useUserAvatar.d.ts +2 -0
- package/esm/hooks/useUserAvatar.js +59 -0
- package/esm/hooks/useUserAvatar.js.map +1 -0
- package/esm/hooks/useVReportInfo.d.ts +3 -0
- package/esm/hooks/useVReportInfo.js +113 -0
- package/esm/hooks/useVReportInfo.js.map +1 -0
- package/esm/hooks/useVisionUserConfig.d.ts +5 -0
- package/esm/hooks/useVisionUserConfig.js +57 -0
- package/esm/hooks/useVisionUserConfig.js.map +1 -0
- package/esm/hooks/useWorkbenchOptions.d.ts +6 -0
- package/esm/hooks/useWorkbenchOptions.js +116 -0
- package/esm/hooks/useWorkbenchOptions.js.map +1 -0
- package/esm/index.d.ts +3 -0
- package/esm/index.js +5 -0
- package/esm/index.js.map +1 -0
- package/esm/index.module.css +4 -0
- package/esm/services/CardService.d.ts +33 -0
- package/esm/services/CardService.js +183 -0
- package/esm/services/CardService.js.map +1 -0
- package/esm/services/CommonService.d.ts +8 -0
- package/esm/services/CommonService.js +44 -0
- package/esm/services/CommonService.js.map +1 -0
- package/esm/services/CostService.d.ts +14 -0
- package/esm/services/CostService.js +117 -0
- package/esm/services/CostService.js.map +1 -0
- package/esm/services/DialogService.d.ts +24 -0
- package/esm/services/DialogService.js +150 -0
- package/esm/services/DialogService.js.map +1 -0
- package/esm/services/IndicatorService.d.ts +138 -0
- package/esm/services/IndicatorService.js +732 -0
- package/esm/services/IndicatorService.js.map +1 -0
- package/esm/services/PageService.d.ts +58 -0
- package/esm/services/PageService.js +337 -0
- package/esm/services/PageService.js.map +1 -0
- package/esm/services/ReportService.d.ts +120 -0
- package/esm/services/ReportService.js +610 -0
- package/esm/services/ReportService.js.map +1 -0
- package/esm/services/WorkbenchService.d.ts +129 -0
- package/esm/services/WorkbenchService.js +718 -0
- package/esm/services/WorkbenchService.js.map +1 -0
- package/esm/styles/README.md +12 -0
- package/esm/styles/index.scss +9 -0
- package/esm/styles/mixins/index.scss +25 -0
- package/esm/styles/next-cover.scss +4 -0
- package/esm/styles/normalize.scss +27 -0
- package/esm/styles/utilities/index.scss +5 -0
- package/esm/styles/vars/index.scss +17 -0
- package/esm/types/enum-workbench.d.ts +26 -0
- package/esm/types/enum-workbench.js +20 -0
- package/esm/types/enum.d.ts +128 -0
- package/esm/types/enum.js +98 -0
- package/esm/types/index.d.ts +15 -0
- package/esm/types/index.js +10 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/indicator.d.ts +252 -0
- package/esm/types/indicator.js +1 -0
- package/esm/types/interface.d.ts +260 -0
- package/esm/types/interface.js +1 -0
- package/esm/types/portal.d.ts +180 -0
- package/esm/types/portal.js +1 -0
- package/esm/types/report.d.ts +25 -0
- package/esm/types/report.js +1 -0
- package/esm/types/type.d.ts +9 -0
- package/esm/types/type.js +1 -0
- package/esm/types/user.d.ts +26 -0
- package/esm/types/user.js +1 -0
- package/esm/typings.d.ts +1 -0
- package/esm/utils/README.md +4 -0
- package/esm/utils/arms.js +46 -0
- package/esm/utils/arr.d.ts +35 -0
- package/esm/utils/arr.js +125 -0
- package/esm/utils/arr.js.map +1 -0
- package/esm/utils/const-workbench.d.ts +8 -0
- package/esm/utils/const-workbench.js +6 -0
- package/esm/utils/const.d.ts +14 -0
- package/esm/utils/const.js +11 -0
- package/esm/utils/index.d.ts +17 -0
- package/esm/utils/index.js +18 -0
- package/esm/utils/index.js.map +1 -0
- package/esm/utils/init.d.ts +5 -0
- package/esm/utils/init.js +7 -0
- package/esm/utils/init.js.map +1 -0
- package/esm/utils/map-workbench.d.ts +22 -0
- package/esm/utils/map-workbench.js +74 -0
- package/esm/utils/map-workbench.js.map +1 -0
- package/esm/utils/map.d.ts +84 -0
- package/esm/utils/map.js +509 -0
- package/esm/utils/map.js.map +1 -0
- package/esm/utils/number.d.ts +44 -0
- package/esm/utils/number.js +92 -0
- package/esm/utils/number.js.map +1 -0
- package/esm/utils/page.d.ts +33 -0
- package/esm/utils/page.js +68 -0
- package/esm/utils/page.js.map +1 -0
- package/esm/utils/str.d.ts +12 -0
- package/esm/utils/str.js +21 -0
- package/esm/utils/tools.d.ts +7 -0
- package/esm/utils/tools.js +35 -0
- package/esm/utils/tools.js.map +1 -0
- package/esm/utils/tree.d.ts +49 -0
- package/esm/utils/tree.js +153 -0
- package/esm/utils/tree.js.map +1 -0
- package/esm/utils/url.d.ts +20 -0
- package/esm/utils/url.js +40 -0
- package/esm/utils/url.js.map +1 -0
- package/esm/utils/util.d.ts +38 -0
- package/esm/utils/util.js +89 -0
- package/esm/utils/util.js.map +1 -0
- package/esm/utils/workbench.d.ts +6 -0
- package/esm/utils/workbench.js +31 -0
- package/package.json +60 -37
- package/build/js/index.js +0 -1
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { OperateType } from './enum';
|
|
3
|
+
import { IIndicatorCardConfig } from './indicator';
|
|
4
|
+
import { ICardGroupInfo, IMatterPendingInfo, INoticeInfo } from './portal';
|
|
5
|
+
export interface IStyleProps {
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
className?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IListItemDataSourceMap {
|
|
11
|
+
[p: string]: IListItem[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 列表选项
|
|
15
|
+
*/
|
|
16
|
+
export interface IListItem<T = string> {
|
|
17
|
+
label: string;
|
|
18
|
+
value: T;
|
|
19
|
+
children?: IListItem<T>[];
|
|
20
|
+
}
|
|
21
|
+
export interface IResponse<T = any> {
|
|
22
|
+
data: T;
|
|
23
|
+
errorCode: string;
|
|
24
|
+
errorMsg: string;
|
|
25
|
+
msg?: string;
|
|
26
|
+
success: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 图表选项
|
|
30
|
+
*/
|
|
31
|
+
export interface IChartListItem {
|
|
32
|
+
label: string;
|
|
33
|
+
fullLabel?: string;
|
|
34
|
+
value: number;
|
|
35
|
+
type: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 记录项
|
|
39
|
+
*/
|
|
40
|
+
export interface IParkRecordItem {
|
|
41
|
+
/**
|
|
42
|
+
* 记录ID
|
|
43
|
+
*/
|
|
44
|
+
id: number;
|
|
45
|
+
/**
|
|
46
|
+
* 园区编码
|
|
47
|
+
*/
|
|
48
|
+
parkCode: string;
|
|
49
|
+
/**
|
|
50
|
+
* 园区名称
|
|
51
|
+
*/
|
|
52
|
+
parkName: string;
|
|
53
|
+
/**
|
|
54
|
+
* 创建时间
|
|
55
|
+
*/
|
|
56
|
+
gmtCreate: number;
|
|
57
|
+
/**
|
|
58
|
+
* 修改时间
|
|
59
|
+
*/
|
|
60
|
+
gmtModified: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 操作记录项
|
|
64
|
+
*/
|
|
65
|
+
export interface IOperateRecordInfo {
|
|
66
|
+
/**
|
|
67
|
+
* 时间
|
|
68
|
+
*/
|
|
69
|
+
gmtCreate: number;
|
|
70
|
+
/**
|
|
71
|
+
* 操作
|
|
72
|
+
*/
|
|
73
|
+
operation: string;
|
|
74
|
+
/**
|
|
75
|
+
* 备注
|
|
76
|
+
*/
|
|
77
|
+
remark: string;
|
|
78
|
+
/**
|
|
79
|
+
* 操作人
|
|
80
|
+
*/
|
|
81
|
+
operatorName: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* 文件信息项
|
|
85
|
+
*/
|
|
86
|
+
export interface IFileInfoListItem {
|
|
87
|
+
/**
|
|
88
|
+
* 附件类型(1-图片,2-视频,3-其他)
|
|
89
|
+
*/
|
|
90
|
+
fileType: 1 | 2 | 3;
|
|
91
|
+
ossKey: string;
|
|
92
|
+
ossUrl: string;
|
|
93
|
+
name: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* 本地文件信息
|
|
97
|
+
*/
|
|
98
|
+
export interface IFileInfoListLocalItem {
|
|
99
|
+
/**
|
|
100
|
+
* 附件类型(1-图片,2-视频,3-其他)
|
|
101
|
+
*/
|
|
102
|
+
fileType: 1 | 2 | 3;
|
|
103
|
+
ossKey: string;
|
|
104
|
+
ossUrl: string;
|
|
105
|
+
name: string;
|
|
106
|
+
imgURL: string;
|
|
107
|
+
response: {
|
|
108
|
+
ossKey: string;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* 键值对
|
|
113
|
+
*/
|
|
114
|
+
export type IKeyValueItem = Record<string, any>;
|
|
115
|
+
export interface ICnQuery {
|
|
116
|
+
currentPage?: number;
|
|
117
|
+
pageSize?: number;
|
|
118
|
+
}
|
|
119
|
+
export interface ICnPaging {
|
|
120
|
+
currentPage: number;
|
|
121
|
+
pageSize: number;
|
|
122
|
+
totalCount: number;
|
|
123
|
+
}
|
|
124
|
+
export interface ICnTableData<T = any> {
|
|
125
|
+
paging: ICnPaging;
|
|
126
|
+
tableData: T[];
|
|
127
|
+
}
|
|
128
|
+
export interface IBizQuery {
|
|
129
|
+
bizType: string;
|
|
130
|
+
bizIds: string[];
|
|
131
|
+
}
|
|
132
|
+
interface IFileData {
|
|
133
|
+
key: string;
|
|
134
|
+
name?: string;
|
|
135
|
+
url?: string;
|
|
136
|
+
}
|
|
137
|
+
export interface IUploadFileInfo {
|
|
138
|
+
status: string | 'done';
|
|
139
|
+
name: string;
|
|
140
|
+
size: number;
|
|
141
|
+
type: string;
|
|
142
|
+
key: string;
|
|
143
|
+
response?: {
|
|
144
|
+
data: IFileData;
|
|
145
|
+
};
|
|
146
|
+
url?: string;
|
|
147
|
+
}
|
|
148
|
+
export interface IOperateState {
|
|
149
|
+
type: OperateType;
|
|
150
|
+
id?: number;
|
|
151
|
+
}
|
|
152
|
+
export interface INextPageMenuInfo {
|
|
153
|
+
menuTitle: string;
|
|
154
|
+
menuUrl: string;
|
|
155
|
+
path: string;
|
|
156
|
+
}
|
|
157
|
+
export interface IShowInfo {
|
|
158
|
+
title: string;
|
|
159
|
+
content?: string | number;
|
|
160
|
+
img?: string;
|
|
161
|
+
time?: string | number;
|
|
162
|
+
url?: string;
|
|
163
|
+
buttonName?: string;
|
|
164
|
+
}
|
|
165
|
+
export interface IMatterInfo {
|
|
166
|
+
applyTime: string;
|
|
167
|
+
title: string;
|
|
168
|
+
url: string;
|
|
169
|
+
applicantName: string;
|
|
170
|
+
handlerName: string;
|
|
171
|
+
status: string;
|
|
172
|
+
}
|
|
173
|
+
export interface ISearchCondition {
|
|
174
|
+
dataAccVal: string;
|
|
175
|
+
}
|
|
176
|
+
export interface IRecommendInfo {
|
|
177
|
+
word: string;
|
|
178
|
+
}
|
|
179
|
+
export interface ISearchResListInfo {
|
|
180
|
+
bizId: string;
|
|
181
|
+
title: string;
|
|
182
|
+
content: string;
|
|
183
|
+
url: string;
|
|
184
|
+
ext?: {
|
|
185
|
+
code: string;
|
|
186
|
+
dataAccVal: string;
|
|
187
|
+
type: string;
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
export interface ISearchResInfo {
|
|
191
|
+
count: number;
|
|
192
|
+
type: string;
|
|
193
|
+
list: ISearchResListInfo[];
|
|
194
|
+
}
|
|
195
|
+
export interface IHazardInfo {
|
|
196
|
+
parkName: string;
|
|
197
|
+
parkCode: string;
|
|
198
|
+
riskDescribe: string;
|
|
199
|
+
riskNumber: number;
|
|
200
|
+
progress: number;
|
|
201
|
+
}
|
|
202
|
+
export interface ISearchByTypeCondition {
|
|
203
|
+
keyWord?: string;
|
|
204
|
+
type: string;
|
|
205
|
+
page: number;
|
|
206
|
+
pageSize: number;
|
|
207
|
+
}
|
|
208
|
+
export interface ICardInfo {
|
|
209
|
+
size: 'medium' | 'min' | 'max';
|
|
210
|
+
id: number;
|
|
211
|
+
x?: number;
|
|
212
|
+
y?: number;
|
|
213
|
+
}
|
|
214
|
+
export interface IPortalPageInfo {
|
|
215
|
+
id: number;
|
|
216
|
+
name: string;
|
|
217
|
+
code: string;
|
|
218
|
+
pageType: string;
|
|
219
|
+
status: string;
|
|
220
|
+
digitalSpaceUrl: string;
|
|
221
|
+
comment: null;
|
|
222
|
+
cardList: ICardInfo[];
|
|
223
|
+
content: string;
|
|
224
|
+
configMap: {
|
|
225
|
+
[p: string]: IIndicatorCardConfig;
|
|
226
|
+
};
|
|
227
|
+
groupDTOList: ICardGroupInfo[];
|
|
228
|
+
}
|
|
229
|
+
export interface IVisionUserConfig {
|
|
230
|
+
[p: string]: string;
|
|
231
|
+
}
|
|
232
|
+
export interface IZNoticeInfo {
|
|
233
|
+
title: string;
|
|
234
|
+
bizId: string;
|
|
235
|
+
releaseDate: number;
|
|
236
|
+
}
|
|
237
|
+
export interface IOssSign {
|
|
238
|
+
accessId: string;
|
|
239
|
+
ossAccessKeyId: string;
|
|
240
|
+
policy: string;
|
|
241
|
+
host: string;
|
|
242
|
+
expire: string;
|
|
243
|
+
key: string;
|
|
244
|
+
signature: string;
|
|
245
|
+
securityToken: string;
|
|
246
|
+
}
|
|
247
|
+
export interface IOssUploadData extends Pick<IOssSign, 'signature' | 'policy' | 'ossAccessKeyId' | 'host' | 'securityToken'> {
|
|
248
|
+
file: File;
|
|
249
|
+
key: string;
|
|
250
|
+
}
|
|
251
|
+
export interface IWorkbenchOptions {
|
|
252
|
+
roleList: IListItem[];
|
|
253
|
+
pendingList: IMatterPendingInfo[];
|
|
254
|
+
noticeList: INoticeInfo[];
|
|
255
|
+
LEVEL_2?: IListItem[];
|
|
256
|
+
LEVEL_3?: IListItem[];
|
|
257
|
+
LEVEL_4?: IListItem[];
|
|
258
|
+
LEVEL_5?: IListItem[];
|
|
259
|
+
}
|
|
260
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { IIndicatorCardConfig } from './indicator';
|
|
2
|
+
import { ICardInfo, IListItem } from './interface';
|
|
3
|
+
import { WinCardStatus } from './type';
|
|
4
|
+
/**
|
|
5
|
+
* portal 页未读消息
|
|
6
|
+
*/
|
|
7
|
+
export interface IUnreadMsg {
|
|
8
|
+
id: number;
|
|
9
|
+
/**
|
|
10
|
+
* 标题
|
|
11
|
+
*/
|
|
12
|
+
title: string;
|
|
13
|
+
/**
|
|
14
|
+
* 消息
|
|
15
|
+
*/
|
|
16
|
+
content: string;
|
|
17
|
+
/**
|
|
18
|
+
* 跳转链接
|
|
19
|
+
*/
|
|
20
|
+
url: string;
|
|
21
|
+
/**
|
|
22
|
+
* 消息中包含的指标实例ID
|
|
23
|
+
*/
|
|
24
|
+
instanceIds: string;
|
|
25
|
+
/**
|
|
26
|
+
* 消息状态:0 未读 / 1 已读,此处都是0
|
|
27
|
+
*/
|
|
28
|
+
messageStatus: number;
|
|
29
|
+
bizType1: string;
|
|
30
|
+
bizType2: string;
|
|
31
|
+
bizTypeDesc1: string;
|
|
32
|
+
bizTypeDesc2: string;
|
|
33
|
+
sendTime: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IApprovalInfo {
|
|
36
|
+
title: string;
|
|
37
|
+
name: string;
|
|
38
|
+
time: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IWidgetSearch {
|
|
41
|
+
needSubscribeInfo: boolean;
|
|
42
|
+
subscribePageCode: string;
|
|
43
|
+
subscribePageType?: string;
|
|
44
|
+
status?: WinCardStatus;
|
|
45
|
+
bizCode?: string;
|
|
46
|
+
typeGroup?: string;
|
|
47
|
+
fuzzyLike?: string;
|
|
48
|
+
filterMySubscription?: boolean;
|
|
49
|
+
colWidthList?: number[];
|
|
50
|
+
}
|
|
51
|
+
export interface IMatterPendingInfo {
|
|
52
|
+
desc: string;
|
|
53
|
+
count: string;
|
|
54
|
+
url: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 公告、头条详情
|
|
58
|
+
*/
|
|
59
|
+
export interface INoticeInfo {
|
|
60
|
+
id: number;
|
|
61
|
+
gmtCreate: string;
|
|
62
|
+
gmtModified: string;
|
|
63
|
+
noticeTitle: string;
|
|
64
|
+
noticeContent: string;
|
|
65
|
+
noticeImage: string;
|
|
66
|
+
noticeImageUrl: string;
|
|
67
|
+
noticeStatus: number;
|
|
68
|
+
pv: number;
|
|
69
|
+
startTime: string;
|
|
70
|
+
endTime: string;
|
|
71
|
+
releaseTime: string;
|
|
72
|
+
remark: string;
|
|
73
|
+
creator: number;
|
|
74
|
+
creatorName: string;
|
|
75
|
+
operator: number;
|
|
76
|
+
operatorName: string;
|
|
77
|
+
seen: boolean;
|
|
78
|
+
noticeBannerUrl: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* 排行榜
|
|
82
|
+
*/
|
|
83
|
+
export interface IRankInfo {
|
|
84
|
+
title: string;
|
|
85
|
+
list?: IListItem[];
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* 小 V 简报信息
|
|
89
|
+
*/
|
|
90
|
+
export interface IVReportInfo {
|
|
91
|
+
date: string;
|
|
92
|
+
year: number;
|
|
93
|
+
week: number;
|
|
94
|
+
/**
|
|
95
|
+
* 访问量
|
|
96
|
+
*/
|
|
97
|
+
pvCount: string;
|
|
98
|
+
/**
|
|
99
|
+
* 访问变化率
|
|
100
|
+
*/
|
|
101
|
+
pvRate: string;
|
|
102
|
+
/**
|
|
103
|
+
* 审批流程数
|
|
104
|
+
*/
|
|
105
|
+
processCount: string;
|
|
106
|
+
/**
|
|
107
|
+
* 审批平均耗时
|
|
108
|
+
*/
|
|
109
|
+
processAvgSpent: string;
|
|
110
|
+
/**
|
|
111
|
+
* 指标数量
|
|
112
|
+
*/
|
|
113
|
+
authCount: string;
|
|
114
|
+
/**
|
|
115
|
+
* 指标订阅率
|
|
116
|
+
*/
|
|
117
|
+
subRate: string;
|
|
118
|
+
}
|
|
119
|
+
export interface IDialogMsgInfo {
|
|
120
|
+
id: number;
|
|
121
|
+
avatar?: string;
|
|
122
|
+
gmtCreate?: string;
|
|
123
|
+
gmtModified?: string;
|
|
124
|
+
/**
|
|
125
|
+
* 消息类型,text-文本消息、text_retry-文本消息带重试按钮、text_general-文本消息带通用按钮 text_multiply-指标变动提醒消息
|
|
126
|
+
*/
|
|
127
|
+
type?: 'text' | 'text_retry' | 'text_general' | 'text_multiply';
|
|
128
|
+
title?: string;
|
|
129
|
+
content?: string;
|
|
130
|
+
url?: string;
|
|
131
|
+
/**
|
|
132
|
+
* 状态,0-未读/1-已读/2-已点赞
|
|
133
|
+
*/
|
|
134
|
+
status?: number;
|
|
135
|
+
/**
|
|
136
|
+
* 发送人,0-小V
|
|
137
|
+
*/
|
|
138
|
+
sender?: string;
|
|
139
|
+
/**
|
|
140
|
+
* 接收人,0-小V
|
|
141
|
+
*/
|
|
142
|
+
recipient?: string;
|
|
143
|
+
sendTime?: string;
|
|
144
|
+
readTime?: string;
|
|
145
|
+
}
|
|
146
|
+
export interface IMsgCountInfo {
|
|
147
|
+
messageCount?: number;
|
|
148
|
+
unreadCount?: number;
|
|
149
|
+
}
|
|
150
|
+
export interface IRelationPropertyInfo {
|
|
151
|
+
cardId: string;
|
|
152
|
+
cardName: string;
|
|
153
|
+
propertyName: string;
|
|
154
|
+
}
|
|
155
|
+
export interface ISelectionInfo {
|
|
156
|
+
name: string;
|
|
157
|
+
type: 'STRUCTURED_DROPDOWN' | 'TIME_SELECTION';
|
|
158
|
+
typeDesc: string;
|
|
159
|
+
structuredAttribute: string;
|
|
160
|
+
defaultValue: string;
|
|
161
|
+
values: IListItem[];
|
|
162
|
+
}
|
|
163
|
+
export type SelectionInfo = Partial<ISelectionInfo>;
|
|
164
|
+
export interface IConfigMap {
|
|
165
|
+
[p: string]: IIndicatorCardConfig;
|
|
166
|
+
}
|
|
167
|
+
export interface ICardGroupInfo {
|
|
168
|
+
code?: string;
|
|
169
|
+
pageType?: string;
|
|
170
|
+
groupCode?: string;
|
|
171
|
+
groupName?: string;
|
|
172
|
+
selections?: SelectionInfo[];
|
|
173
|
+
cardList?: ICardInfo[];
|
|
174
|
+
configMap?: IConfigMap;
|
|
175
|
+
}
|
|
176
|
+
export interface IStructedPropertyInfo {
|
|
177
|
+
structedPropertyCode?: string;
|
|
178
|
+
structedPropertyName?: string;
|
|
179
|
+
downValues?: IListItem[];
|
|
180
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IIndicatorInfo } from './indicator';
|
|
2
|
+
export type ReportTemplateType = 'WEEKLY' | 'DAILY' | 'OTHER';
|
|
3
|
+
export interface IReportTplInfo {
|
|
4
|
+
templateId: number;
|
|
5
|
+
templateName: string;
|
|
6
|
+
description: string;
|
|
7
|
+
templateType: ReportTemplateType;
|
|
8
|
+
viewRange: 'PUBLIC' | 'PERSONAL';
|
|
9
|
+
templateTypeDesc: string;
|
|
10
|
+
version: number;
|
|
11
|
+
view: boolean;
|
|
12
|
+
content: string;
|
|
13
|
+
personList: {
|
|
14
|
+
workNo: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
indicatorList: IIndicatorInfo[];
|
|
18
|
+
}
|
|
19
|
+
export interface IReportContentInfo {
|
|
20
|
+
templateId: number;
|
|
21
|
+
title: string;
|
|
22
|
+
content: string;
|
|
23
|
+
indicatorResult: IIndicatorInfo[];
|
|
24
|
+
version: number;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface User {
|
|
2
|
+
userName?: string;
|
|
3
|
+
}
|
|
4
|
+
type MenuInfo = {
|
|
5
|
+
menuCode: string;
|
|
6
|
+
menuTitle: string;
|
|
7
|
+
funcAccessCode?: string;
|
|
8
|
+
menuType?: string;
|
|
9
|
+
menuUrl?: string;
|
|
10
|
+
parentMenuCode?: string;
|
|
11
|
+
parentMenuTitle?: string;
|
|
12
|
+
hasChild?: boolean;
|
|
13
|
+
nodeSequence?: number;
|
|
14
|
+
menuIcon?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
children?: IMenuInfo[];
|
|
17
|
+
};
|
|
18
|
+
export type IMenuInfo = {
|
|
19
|
+
[p in keyof MenuInfo]: MenuInfo[p] | null;
|
|
20
|
+
};
|
|
21
|
+
export interface IUserAvatarInfo {
|
|
22
|
+
href?: string;
|
|
23
|
+
url?: string;
|
|
24
|
+
nickName?: string;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/esm/typings.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="@ice/pkg/types" />
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// /**
|
|
2
|
+
// * 接入 arms 监控
|
|
3
|
+
// * arms 接入指南 https://yuque.antfin-inc.com/c-one/cli/arms
|
|
4
|
+
// */
|
|
5
|
+
// import { initTrace } from '@alife/cone-arms';
|
|
6
|
+
// import { getCnEnv } from '@alife/cn-env';
|
|
7
|
+
// const env = getCnEnv();
|
|
8
|
+
// // eslint-disable-next-line no-console
|
|
9
|
+
// // 初始化 arms
|
|
10
|
+
// const trace = initTrace({
|
|
11
|
+
// // 必填, arms 平台上申请的的 pid
|
|
12
|
+
// pid: 'cn_cone_next_3796',
|
|
13
|
+
// env, // 可选 prod | pre | daily | string
|
|
14
|
+
// // uid: '', // 请按业务场景实现 uid 的获取逻辑, 来确保 pv 统计的准确性
|
|
15
|
+
// // 多语言对应的 cookie key, 默认会从 cookie 的 lang/_lang/x-hng/hng/langs 等位置读取多语言
|
|
16
|
+
// // langKey: '',
|
|
17
|
+
// // pv 采集插件的配置
|
|
18
|
+
// pvPluginOptions: { autoPV: true, enableHistory: true },
|
|
19
|
+
// // 性能监控插件的配置
|
|
20
|
+
// // perfPluginOptions: {},
|
|
21
|
+
// // api 采集插件的配置
|
|
22
|
+
// // apiPluginOptions: {},
|
|
23
|
+
// // TraceSdk 更多参数请参考 IConfig
|
|
24
|
+
// // https://g.alipay.com/browse/@ali/trace-core@latest/types/types/core.type.ts
|
|
25
|
+
// // requiredFields: [],
|
|
26
|
+
// });
|
|
27
|
+
// /**
|
|
28
|
+
// * 如何新增自定义监控
|
|
29
|
+
// * - 去 [项目设置] - [监控管理] - [添加一个自定义监控]
|
|
30
|
+
// * - 然后将 [监控代码] 配置到 monitorCodeMap
|
|
31
|
+
// * - 参考项目里面其他调用 logCustomMonitor 的例子
|
|
32
|
+
// */
|
|
33
|
+
// const monitorCodeMap = {
|
|
34
|
+
// hello: 'monitor-code-hello',
|
|
35
|
+
// };
|
|
36
|
+
// /**
|
|
37
|
+
// * 上报自定义监控项 https://yuque.antfin-inc.com/ali_arms/lav0sg/vg17om#PMINJ
|
|
38
|
+
// * options 可以上报其他自定义字段, 比如说 { c1: '' }
|
|
39
|
+
// */
|
|
40
|
+
// function logCustomMonitor(code: any, options: any) {
|
|
41
|
+
// trace.logCustom({
|
|
42
|
+
// ...options,
|
|
43
|
+
// p1: code, // 此处填写控制台创建自定义监控项生成的code
|
|
44
|
+
// });
|
|
45
|
+
// }
|
|
46
|
+
// export { trace, monitorCodeMap, logCustomMonitor };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IDialogMsgInfo } from '@/types';
|
|
2
|
+
/**
|
|
3
|
+
* 判断是否为一个有效数组(有值,并且长度大于 0)
|
|
4
|
+
* @param data
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare const checkEntityArr: (data: unknown) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 数组求和
|
|
10
|
+
* @param list
|
|
11
|
+
*/
|
|
12
|
+
export declare const arraySum: (list?: number[]) => number;
|
|
13
|
+
/**
|
|
14
|
+
* 数组去重
|
|
15
|
+
* @param list
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
export declare const arrayDeduplication: (list: any) => any[];
|
|
19
|
+
interface WithId {
|
|
20
|
+
id: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 合并数组
|
|
24
|
+
* @param array1
|
|
25
|
+
* @param array2
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
export declare function mergeAndDeduplicateArrays<T extends WithId>(array1: T[], array2: T[]): T[];
|
|
29
|
+
export interface ITimeMarker {
|
|
30
|
+
id: string;
|
|
31
|
+
type: 'time-marker';
|
|
32
|
+
content: string;
|
|
33
|
+
}
|
|
34
|
+
export declare function insertTimeMarkers(dialogs: IDialogMsgInfo[]): (IDialogMsgInfo | ITimeMarker)[];
|
|
35
|
+
export {};
|