antd-management-fast-framework 1.1.64 → 1.1.65
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/es/customComponents/AMap/UIPoiPicker.d.ts +7 -0
- package/es/customComponents/AMap/UIPoiPicker.js +78 -0
- package/es/customComponents/AMap/UIPositionPicker.d.ts +7 -0
- package/es/customComponents/AMap/UIPositionPicker.js +87 -0
- package/es/customComponents/ActiveChart/index.d.ts +8 -0
- package/es/customComponents/ActiveChart/index.js +168 -0
- package/{src → es}/customComponents/ActiveChart/index.less +0 -0
- package/es/customComponents/AnimalBox/FadeBox/index.d.ts +13 -0
- package/es/customComponents/AnimalBox/FadeBox/index.js +82 -0
- package/{src → es}/customComponents/AnimalBox/FadeBox/index.less +0 -0
- package/es/customComponents/AnimalBox/QueueBox/index.d.ts +14 -0
- package/es/customComponents/AnimalBox/QueueBox/index.js +117 -0
- package/{src → es}/customComponents/AnimalBox/QueueBox/index.less +0 -0
- package/es/customComponents/ArticleListContent/index.d.ts +10 -0
- package/es/customComponents/ArticleListContent/index.js +46 -0
- package/{src → es}/customComponents/ArticleListContent/index.less +0 -0
- package/es/customComponents/Authorized/Authorized.d.ts +6 -0
- package/es/customComponents/Authorized/Authorized.js +33 -0
- package/es/customComponents/Authorized/AuthorizedRoute.d.ts +8 -0
- package/es/customComponents/Authorized/AuthorizedRoute.js +50 -0
- package/es/customComponents/Authorized/CheckPermissions.d.ts +11 -0
- package/es/customComponents/Authorized/CheckPermissions.js +106 -0
- package/es/customComponents/Authorized/PromiseRender.d.ts +7 -0
- package/es/customComponents/Authorized/PromiseRender.js +159 -0
- package/es/customComponents/Authorized/Secured.d.ts +18 -0
- package/{src/customComponents/Authorized/Secured.jsx → es/customComponents/Authorized/Secured.js} +41 -22
- package/es/customComponents/Authorized/index.d.ts +2 -0
- package/es/customComponents/Authorized/index.js +22 -0
- package/es/customComponents/Authorized/renderAuthorize.d.ts +3 -0
- package/es/customComponents/Authorized/renderAuthorize.js +37 -0
- package/es/customComponents/AvatarList/index.d.ts +17 -0
- package/es/customComponents/AvatarList/index.js +99 -0
- package/{src → es}/customComponents/AvatarList/index.less +0 -0
- package/es/customComponents/AvatarList/index.test.d.ts +1 -0
- package/es/customComponents/Canvas/Bubbly/index.d.ts +20 -0
- package/es/customComponents/Canvas/Bubbly/index.js +178 -0
- package/es/customComponents/Canvas/Core/index.d.ts +24 -0
- package/es/customComponents/Canvas/Core/index.js +163 -0
- package/es/customComponents/Canvas/RadarScanning/index.d.ts +20 -0
- package/es/customComponents/Canvas/RadarScanning/index.js +247 -0
- package/{src → es}/customComponents/Canvas/Ribbon.7z +0 -0
- package/es/customComponents/Canvas/Spirit/index.d.ts +19 -0
- package/es/customComponents/Canvas/Spirit/index.js +115 -0
- package/es/customComponents/Canvas/index.d.ts +12 -0
- package/es/customComponents/Canvas/index.js +27 -0
- package/es/customComponents/CenterBox/index.d.ts +6 -0
- package/es/customComponents/CenterBox/index.js +70 -0
- package/es/customComponents/Charts/Bar/index.d.ts +6 -0
- package/es/customComponents/Charts/Bar/index.js +129 -0
- package/es/customComponents/Charts/ChartCard/index.d.ts +7 -0
- package/es/customComponents/Charts/ChartCard/index.js +167 -0
- package/{src → es}/customComponents/Charts/ChartCard/index.less +0 -0
- package/es/customComponents/Charts/Field/index.d.ts +6 -0
- package/es/customComponents/Charts/Field/index.js +37 -0
- package/{src → es}/customComponents/Charts/Field/index.less +0 -0
- package/es/customComponents/Charts/Gauge/index.d.ts +2 -0
- package/es/customComponents/Charts/Gauge/index.js +185 -0
- package/es/customComponents/Charts/MiniArea/index.d.ts +2 -0
- package/es/customComponents/Charts/MiniArea/index.js +107 -0
- package/es/customComponents/Charts/MiniBar/index.d.ts +2 -0
- package/es/customComponents/Charts/MiniBar/index.js +62 -0
- package/es/customComponents/Charts/MiniProgress/index.d.ts +8 -0
- package/es/customComponents/Charts/MiniProgress/index.js +55 -0
- package/{src → es}/customComponents/Charts/MiniProgress/index.less +0 -0
- package/es/customComponents/Charts/Pie/index.d.ts +8 -0
- package/es/customComponents/Charts/Pie/index.js +195 -0
- package/{src → es}/customComponents/Charts/Pie/index.less +0 -0
- package/es/customComponents/Charts/TagCloud/index.d.ts +14 -0
- package/es/customComponents/Charts/TagCloud/index.js +279 -0
- package/{src → es}/customComponents/Charts/TagCloud/index.less +0 -0
- package/es/customComponents/Charts/TimelineChart/index.d.ts +2 -0
- package/es/customComponents/Charts/TimelineChart/index.js +173 -0
- package/{src → es}/customComponents/Charts/TimelineChart/index.less +0 -0
- package/es/customComponents/Charts/WaterWave/index.d.ts +11 -0
- package/es/customComponents/Charts/WaterWave/index.js +319 -0
- package/{src → es}/customComponents/Charts/WaterWave/index.less +0 -0
- package/es/customComponents/Charts/autoHeight.d.ts +8 -0
- package/es/customComponents/Charts/autoHeight.js +123 -0
- package/es/customComponents/Charts/bizcharts.d.ts +2 -0
- package/es/customComponents/Charts/bizcharts.js +17 -0
- package/es/customComponents/Charts/index.d.ts +27 -0
- package/es/customComponents/Charts/index.js +119 -0
- package/{src → es}/customComponents/Charts/index.less +0 -0
- package/es/customComponents/ColorText/index.d.ts +18 -0
- package/es/customComponents/ColorText/index.js +127 -0
- package/es/customComponents/Countdown/index.d.ts +12 -0
- package/es/customComponents/Countdown/index.js +158 -0
- package/{src → es}/customComponents/Countdown/index.less +0 -0
- package/es/customComponents/DataPreviewDrawer/index.d.ts +13 -0
- package/es/customComponents/DataPreviewDrawer/index.js +176 -0
- package/{src → es}/customComponents/DataPreviewDrawer/index.less +0 -0
- package/es/customComponents/DecorateAvatar/index.d.ts +33 -0
- package/es/customComponents/DecorateAvatar/index.js +198 -0
- package/es/customComponents/DisplayCopyData/index.d.ts +9 -0
- package/es/customComponents/DisplayCopyData/index.js +88 -0
- package/es/customComponents/EditableItem/index.d.ts +7 -0
- package/es/customComponents/EditableItem/index.js +121 -0
- package/{src → es}/customComponents/EditableItem/index.less +0 -0
- package/es/customComponents/EditableLinkGroup/index.d.ts +22 -0
- package/es/customComponents/EditableLinkGroup/index.js +99 -0
- package/{src → es}/customComponents/EditableLinkGroup/index.less +0 -0
- package/es/customComponents/Ellipsis/index.d.ts +19 -0
- package/es/customComponents/Ellipsis/index.js +380 -0
- package/{src → es}/customComponents/Ellipsis/index.less +0 -0
- package/es/customComponents/Ellipsis/index.test.d.ts +1 -0
- package/es/customComponents/EllipsisCustom/index.d.ts +19 -0
- package/es/customComponents/EllipsisCustom/index.js +355 -0
- package/{src → es}/customComponents/EllipsisCustom/index.less +0 -0
- package/es/customComponents/EverySpace/index.d.ts +15 -0
- package/es/customComponents/EverySpace/index.js +105 -0
- package/es/customComponents/Exception/index.d.ts +6 -0
- package/es/customComponents/Exception/index.js +121 -0
- package/{src → es}/customComponents/Exception/index.less +0 -0
- package/es/customComponents/Exception/typeConfig.d.ts +18 -0
- package/{src → es}/customComponents/Exception/typeConfig.js +13 -7
- package/es/customComponents/FigureRange/index.d.ts +126 -0
- package/es/customComponents/FigureRange/index.js +335 -0
- package/{src → es}/customComponents/FigureRange/index.less +0 -0
- package/es/customComponents/FileBase64Upload/index.d.ts +22 -0
- package/es/customComponents/FileBase64Upload/index.js +205 -0
- package/es/customComponents/FlexBox/index.d.ts +22 -0
- package/es/customComponents/FlexBox/index.js +152 -0
- package/es/customComponents/FlexText/index.d.ts +17 -0
- package/es/customComponents/FlexText/index.js +96 -0
- package/{src → es}/customComponents/FlexText/index.less +0 -0
- package/es/customComponents/FooterToolbar/index.d.ts +10 -0
- package/es/customComponents/FooterToolbar/index.js +132 -0
- package/{src → es}/customComponents/FooterToolbar/index.less +0 -0
- package/es/customComponents/FromDisplayItem/index.d.ts +13 -0
- package/es/customComponents/FromDisplayItem/index.js +73 -0
- package/{src → es}/customComponents/FromDisplayItem/index.less +0 -0
- package/es/customComponents/FunctionComponent/index.d.ts +345 -0
- package/es/customComponents/FunctionComponent/index.js +2414 -0
- package/{src → es}/customComponents/FunctionComponent/index.less +0 -0
- package/es/customComponents/FunctionSupplement/Whether/index.d.ts +46 -0
- package/es/customComponents/FunctionSupplement/Whether/index.js +181 -0
- package/es/customComponents/GlobalFooter/index.d.ts +6 -0
- package/es/customComponents/GlobalFooter/index.js +39 -0
- package/{src → es}/customComponents/GlobalFooter/index.less +0 -0
- package/es/customComponents/HelpBox/index.d.ts +16 -0
- package/es/customComponents/HelpBox/index.js +166 -0
- package/{src → es}/customComponents/HelpBox/index.less +0 -0
- package/es/customComponents/HelpCard/index.d.ts +17 -0
- package/es/customComponents/HelpCard/index.js +91 -0
- package/es/customComponents/HtmlBox/index.d.ts +11 -0
- package/es/customComponents/HtmlBox/index.js +98 -0
- package/{src → es}/customComponents/HtmlBox/index.less +0 -0
- package/es/customComponents/IconInfo/index.d.ts +27 -0
- package/es/customComponents/IconInfo/index.js +281 -0
- package/{src → es}/customComponents/IconInfo/index.less +0 -0
- package/es/customComponents/ImageBox/index.d.ts +39 -0
- package/es/customComponents/ImageBox/index.js +376 -0
- package/{src → es}/customComponents/ImageBox/index.less +0 -0
- package/es/customComponents/ImageContentPreview/index.d.ts +13 -0
- package/es/customComponents/ImageContentPreview/index.js +173 -0
- package/{src → es}/customComponents/ImageContentPreview/index.less +0 -0
- package/es/customComponents/ImageUpload/index.d.ts +33 -0
- package/es/customComponents/ImageUpload/index.js +367 -0
- package/{src → es}/customComponents/ImageUpload/index.less +0 -0
- package/es/customComponents/Login/LoginItem.d.ts +2 -0
- package/es/customComponents/Login/LoginItem.js +237 -0
- package/es/customComponents/Login/LoginSubmit.d.ts +5 -0
- package/es/customComponents/Login/LoginSubmit.js +48 -0
- package/es/customComponents/Login/LoginTab.d.ts +5 -0
- package/es/customComponents/Login/LoginTab.js +100 -0
- package/es/customComponents/Login/index.d.ts +38 -0
- package/es/customComponents/Login/index.js +222 -0
- package/{src → es}/customComponents/Login/index.less +0 -0
- package/es/customComponents/Login/loginContext.d.ts +2 -0
- package/es/customComponents/Login/loginContext.js +12 -0
- package/es/customComponents/Login/map.d.ts +71 -0
- package/es/customComponents/Login/map.js +76 -0
- package/es/customComponents/MobileContainor/index.d.ts +6 -0
- package/es/customComponents/MobileContainor/index.js +77 -0
- package/{src → es}/customComponents/MobileContainor/index.less +0 -0
- package/es/customComponents/NoticeIconCustom/NoticeList.d.ts +10 -0
- package/es/customComponents/NoticeIconCustom/NoticeList.js +83 -0
- package/{src → es}/customComponents/NoticeIconCustom/NoticeList.less +0 -0
- package/es/customComponents/NoticeIconCustom/index.d.ts +24 -0
- package/es/customComponents/NoticeIconCustom/index.js +201 -0
- package/{src → es}/customComponents/NoticeIconCustom/index.less +0 -0
- package/es/customComponents/NumberInfo/index.d.ts +12 -0
- package/es/customComponents/NumberInfo/index.js +60 -0
- package/{src → es}/customComponents/NumberInfo/index.less +0 -0
- package/es/customComponents/PercentageBox/index.d.ts +11 -0
- package/es/customComponents/PercentageBox/index.js +70 -0
- package/es/customComponents/PriceBox/index.d.ts +17 -0
- package/es/customComponents/PriceBox/index.js +115 -0
- package/es/customComponents/Result/index.d.ts +9 -0
- package/es/customComponents/Result/index.js +57 -0
- package/{src → es}/customComponents/Result/index.less +0 -0
- package/es/customComponents/StandardFormRow/index.d.ts +9 -0
- package/es/customComponents/StandardFormRow/index.js +47 -0
- package/{src → es}/customComponents/StandardFormRow/index.less +0 -0
- package/es/customComponents/StandardTable/index.d.ts +12 -0
- package/es/customComponents/StandardTable/index.js +217 -0
- package/{src → es}/customComponents/StandardTable/index.less +0 -0
- package/es/customComponents/StandardTableCustom/index.d.ts +17 -0
- package/es/customComponents/StandardTableCustom/index.js +236 -0
- package/{src → es}/customComponents/StandardTableCustom/index.less +0 -0
- package/es/customComponents/StatusBar/index.d.ts +12 -0
- package/es/customComponents/StatusBar/index.js +128 -0
- package/es/customComponents/TagSelect/index.d.ts +29 -0
- package/es/customComponents/TagSelect/index.js +226 -0
- package/{src → es}/customComponents/TagSelect/index.less +0 -0
- package/es/customComponents/TimeLineCustom/index.d.ts +32 -0
- package/es/customComponents/TimeLineCustom/index.js +263 -0
- package/{src → es}/customComponents/TimeLineCustom/index.less +0 -0
- package/es/customComponents/Trend/index.d.ts +10 -0
- package/es/customComponents/Trend/index.js +49 -0
- package/{src → es}/customComponents/Trend/index.less +0 -0
- package/es/customComponents/VerticalBox/index.d.ts +14 -0
- package/es/customComponents/VerticalBox/index.js +138 -0
- package/{src → es}/customComponents/VerticalBox/index.less +0 -0
- package/es/customComponents/VideoUpload/index.d.ts +30 -0
- package/es/customComponents/VideoUpload/index.js +472 -0
- package/es/customComponents/_utils/pathTools.d.ts +1 -0
- package/es/customComponents/_utils/pathTools.js +15 -0
- package/es/customComponents/_utils/pathTools.test.d.ts +1 -0
- package/es/customComponents/index.d.ts +7 -0
- package/{src → es}/customComponents/index.js +9 -2
- package/es/framework/AuthorizationWrapper/index.d.ts +9 -0
- package/es/framework/AuthorizationWrapper/index.js +120 -0
- package/es/framework/Base/index.d.ts +15 -0
- package/es/framework/Base/index.js +135 -0
- package/es/framework/ButtonExtension/SelectButton/Base/index.d.ts +15 -0
- package/es/framework/ButtonExtension/SelectButton/Base/index.js +116 -0
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.d.ts +19 -0
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +177 -0
- package/es/framework/Common/index.d.ts +138 -0
- package/es/framework/Common/index.js +1809 -0
- package/{src → es}/framework/Common/index.less +0 -0
- package/es/framework/Core/index.d.ts +9 -0
- package/es/framework/Core/index.js +79 -0
- package/es/framework/CustomBase/index.d.ts +6 -0
- package/es/framework/CustomBase/index.js +77 -0
- package/es/framework/CustomWrapper/Supplement/index.d.ts +10 -0
- package/es/framework/CustomWrapper/Supplement/index.js +64 -0
- package/es/framework/CustomWrapper/SupplementCore/index.d.ts +4 -0
- package/es/framework/CustomWrapper/SupplementCore/index.js +112 -0
- package/es/framework/CustomWrapper/SupplementWrapper/index.d.ts +4 -0
- package/es/framework/CustomWrapper/SupplementWrapper/index.js +58 -0
- package/es/framework/DataDrawer/Base/index.d.ts +54 -0
- package/es/framework/DataDrawer/Base/index.js +385 -0
- package/{src → es}/framework/DataDrawer/Base/index.less +0 -0
- package/es/framework/DataDrawer/BaseAddDrawer/index.d.ts +5 -0
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +102 -0
- package/es/framework/DataDrawer/BaseLoadDrawer/index.d.ts +4 -0
- package/es/framework/DataDrawer/BaseLoadDrawer/index.js +81 -0
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +5 -0
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +86 -0
- package/es/framework/DataDrawer/BaseSaveDrawer/index.d.ts +5 -0
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +85 -0
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.d.ts +4 -0
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +83 -0
- package/es/framework/DataForm/BaseAddForm/index.d.ts +34 -0
- package/es/framework/DataForm/BaseAddForm/index.js +274 -0
- package/es/framework/DataForm/BaseUpdateForm/index.d.ts +10 -0
- package/es/framework/DataForm/BaseUpdateForm/index.js +189 -0
- package/{src → es}/framework/DataForm/BaseUpdateForm/index.less +0 -0
- package/es/framework/DataForm/BaseUpdateFormTab/index.d.ts +4 -0
- package/es/framework/DataForm/BaseUpdateFormTab/index.js +62 -0
- package/{src → es}/framework/DataForm/BaseUpdateFormTab/index.less +0 -0
- package/es/framework/DataListView/Base/index.d.ts +141 -0
- package/es/framework/DataListView/Base/index.js +1391 -0
- package/{src → es}/framework/DataListView/Base/index.less +0 -0
- package/es/framework/DataListView/BatchAction/index.d.ts +21 -0
- package/es/framework/DataListView/BatchAction/index.js +97 -0
- package/{src → es}/framework/DataListView/BatchAction/index.less +0 -0
- package/es/framework/DataListView/ColumnSetting/DndItem.d.ts +8 -0
- package/es/framework/DataListView/ColumnSetting/DndItem.js +155 -0
- package/es/framework/DataListView/ColumnSetting/index.d.ts +3 -0
- package/es/framework/DataListView/ColumnSetting/index.js +366 -0
- package/{src → es}/framework/DataListView/ColumnSetting/index.less +0 -0
- package/es/framework/DataListView/DensityAction/index.d.ts +6 -0
- package/es/framework/DataListView/DensityAction/index.js +112 -0
- package/es/framework/DataModal/Base/index.d.ts +67 -0
- package/es/framework/DataModal/Base/index.js +292 -0
- package/{src → es}/framework/DataModal/Base/index.less +0 -0
- package/es/framework/DataModal/BaseAddModal/index.d.ts +4 -0
- package/es/framework/DataModal/BaseAddModal/index.js +70 -0
- package/es/framework/DataModal/BaseLoadModal/index.d.ts +4 -0
- package/es/framework/DataModal/BaseLoadModal/index.js +81 -0
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +10 -0
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +135 -0
- package/es/framework/DataModal/BaseSelectModal/index.d.ts +4 -0
- package/es/framework/DataModal/BaseSelectModal/index.js +69 -0
- package/es/framework/DataModal/BaseUpdateModal/index.d.ts +4 -0
- package/es/framework/DataModal/BaseUpdateModal/index.js +45 -0
- package/es/framework/DataModal/BaseUpdateTransferModal/index.d.ts +10 -0
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +164 -0
- package/es/framework/DataMultiPageView/InnerMultiPage/index.d.ts +4 -0
- package/es/framework/DataMultiPageView/InnerMultiPage/index.js +58 -0
- package/{src → es}/framework/DataMultiPageView/InnerMultiPage/index.less +0 -0
- package/es/framework/DataMultiPageView/MultiPage/index.d.ts +24 -0
- package/es/framework/DataMultiPageView/MultiPage/index.js +480 -0
- package/{src → es}/framework/DataMultiPageView/MultiPage/index.less +0 -0
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +32 -0
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +535 -0
- package/{src → es}/framework/DataMultiPageView/MultiPageDrawer/index.less +0 -0
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.d.ts +11 -0
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +121 -0
- package/es/framework/DataOperation/Base/index.d.ts +76 -0
- package/es/framework/DataOperation/Base/index.js +369 -0
- package/es/framework/DataOperation/BaseView/index.d.ts +11 -0
- package/es/framework/DataOperation/BaseView/index.js +74 -0
- package/es/framework/DataOperation/BaseWindow/index.d.ts +53 -0
- package/es/framework/DataOperation/BaseWindow/index.js +342 -0
- package/es/framework/DataSinglePageView/InnerSinglePage/index.d.ts +5 -0
- package/es/framework/DataSinglePageView/InnerSinglePage/index.js +58 -0
- package/{src → es}/framework/DataSinglePageView/InnerSinglePage/index.less +0 -0
- package/es/framework/DataSinglePageView/SinglePage/index.d.ts +13 -0
- package/es/framework/DataSinglePageView/SinglePage/index.js +282 -0
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +25 -0
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +454 -0
- package/{src → es}/framework/DataSinglePageView/SinglePageDrawer/index.less +0 -0
- package/es/framework/DataSingleView/DataCore/index.d.ts +29 -0
- package/es/framework/DataSingleView/DataCore/index.js +269 -0
- package/{src → es}/framework/DataSingleView/DataCore/index.less +0 -0
- package/es/framework/DataSingleView/DataLoad/index.d.ts +52 -0
- package/es/framework/DataSingleView/DataLoad/index.js +169 -0
- package/es/framework/DataTabContainer/index.d.ts +46 -0
- package/es/framework/DataTabContainer/index.js +315 -0
- package/{src → es}/framework/DataTabContainer/index.less +0 -0
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.d.ts +24 -0
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +184 -0
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.d.ts +20 -0
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +191 -0
- package/es/framework/Wrapper/index.d.ts +4 -0
- package/es/framework/Wrapper/index.js +58 -0
- package/es/framework/index.d.ts +7 -0
- package/{src → es}/framework/index.js +9 -2
- package/es/index.d.ts +1 -0
- package/es/index.js +8 -0
- package/es/utils/Authorized.d.ts +4 -0
- package/es/utils/Authorized.js +49 -0
- package/es/utils/Yuan.d.ts +10 -0
- package/es/utils/Yuan.js +92 -0
- package/es/utils/actionAssist.d.ts +39 -0
- package/es/utils/actionAssist.js +286 -0
- package/es/utils/authority.d.ts +4 -0
- package/es/utils/authority.js +89 -0
- package/es/utils/constants.d.ts +324 -0
- package/{src → es}/utils/constants.js +137 -115
- package/es/utils/defaultSettingsSpecial.d.ts +33 -0
- package/es/utils/defaultSettingsSpecial.js +276 -0
- package/es/utils/globalModel.d.ts +17 -0
- package/es/utils/globalModel.js +40 -0
- package/es/utils/globalStorageAssist.d.ts +74 -0
- package/es/utils/globalStorageAssist.js +210 -0
- package/es/utils/proLayoutCollection.d.ts +11 -0
- package/es/utils/proLayoutCollection.js +37 -0
- package/es/utils/request.d.ts +5 -0
- package/es/utils/request.js +202 -0
- package/es/utils/requestAssistor.d.ts +63 -0
- package/es/utils/requestAssistor.js +538 -0
- package/es/utils/tools.d.ts +724 -0
- package/es/utils/tools.js +2106 -0
- package/es/utils/utils.d.ts +5 -0
- package/es/utils/utils.js +70 -0
- package/{src → es}/utils/utils.less +0 -0
- package/es/utils/utils.test.d.ts +1 -0
- package/es/utils/virtualRequest.d.ts +50 -0
- package/es/utils/virtualRequest.js +325 -0
- package/lib/customComponents/FileBase64Upload/index.js +3 -1
- package/lib/customComponents/ImageUpload/index.js +3 -1
- package/lib/customComponents/VideoUpload/index.js +3 -1
- package/lib/utils/constants.d.ts +3 -0
- package/lib/utils/constants.js +4 -1
- package/lib/utils/defaultSettingsSpecial.d.ts +3 -0
- package/lib/utils/defaultSettingsSpecial.js +30 -0
- package/lib/utils/tools.d.ts +3 -0
- package/package.json +14 -10
- package/src/customComponents/AMap/UIPoiPicker.js +0 -32
- package/src/customComponents/AMap/UIPositionPicker.js +0 -42
- package/src/customComponents/ActiveChart/index.jsx +0 -106
- package/src/customComponents/AnimalBox/FadeBox/index.jsx +0 -26
- package/src/customComponents/AnimalBox/QueueBox/index.jsx +0 -72
- package/src/customComponents/ArticleListContent/index.jsx +0 -22
- package/src/customComponents/Authorized/Authorized.jsx +0 -22
- package/src/customComponents/Authorized/AuthorizedRoute.jsx +0 -35
- package/src/customComponents/Authorized/CheckPermissions.jsx +0 -80
- package/src/customComponents/Authorized/PromiseRender.jsx +0 -79
- package/src/customComponents/Authorized/index.jsx +0 -9
- package/src/customComponents/Authorized/renderAuthorize.js +0 -27
- package/src/customComponents/AvatarList/demo/maxLength.md +0 -46
- package/src/customComponents/AvatarList/demo/simple.md +0 -30
- package/src/customComponents/AvatarList/index.en-US.md +0 -24
- package/src/customComponents/AvatarList/index.jsx +0 -69
- package/src/customComponents/AvatarList/index.test.js +0 -31
- package/src/customComponents/AvatarList/index.zh-CN.md +0 -25
- package/src/customComponents/Canvas/Bubbly/index.jsx +0 -117
- package/src/customComponents/Canvas/Core/index.jsx +0 -120
- package/src/customComponents/Canvas/RadarScanning/index.jsx +0 -188
- package/src/customComponents/Canvas/Spirit/index.jsx +0 -75
- package/src/customComponents/Canvas/index.jsx +0 -13
- package/src/customComponents/CenterBox/index.jsx +0 -24
- package/src/customComponents/Charts/Bar/index.jsx +0 -67
- package/src/customComponents/Charts/ChartCard/index.jsx +0 -112
- package/src/customComponents/Charts/Field/index.jsx +0 -11
- package/src/customComponents/Charts/Gauge/index.jsx +0 -184
- package/src/customComponents/Charts/MiniArea/index.jsx +0 -99
- package/src/customComponents/Charts/MiniBar/index.jsx +0 -49
- package/src/customComponents/Charts/MiniProgress/index.jsx +0 -45
- package/src/customComponents/Charts/Pie/index.jsx +0 -129
- package/src/customComponents/Charts/TagCloud/index.jsx +0 -200
- package/src/customComponents/Charts/TimelineChart/index.jsx +0 -151
- package/src/customComponents/Charts/WaterWave/index.jsx +0 -258
- package/src/customComponents/Charts/autoHeight.jsx +0 -71
- package/src/customComponents/Charts/bizcharts.jsx +0 -3
- package/src/customComponents/Charts/index.jsx +0 -44
- package/src/customComponents/ColorText/index.jsx +0 -73
- package/src/customComponents/Countdown/demo/simple.md +0 -25
- package/src/customComponents/Countdown/index.en-US.md +0 -15
- package/src/customComponents/Countdown/index.jsx +0 -122
- package/src/customComponents/Countdown/index.zh-CN.md +0 -16
- package/src/customComponents/DataPreviewDrawer/index.jsx +0 -139
- package/src/customComponents/DecorateAvatar/index.jsx +0 -149
- package/src/customComponents/DisplayCopyData/index.js +0 -50
- package/src/customComponents/EditableItem/index.jsx +0 -56
- package/src/customComponents/EditableLinkGroup/index.jsx +0 -52
- package/src/customComponents/Ellipsis/demo/line.md +0 -40
- package/src/customComponents/Ellipsis/demo/number.md +0 -32
- package/src/customComponents/Ellipsis/index.en-US.md +0 -16
- package/src/customComponents/Ellipsis/index.jsx +0 -286
- package/src/customComponents/Ellipsis/index.test.js +0 -13
- package/src/customComponents/Ellipsis/index.zh-CN.md +0 -17
- package/src/customComponents/EllipsisCustom/index.jsx +0 -293
- package/src/customComponents/EverySpace/index.jsx +0 -64
- package/src/customComponents/Exception/demo/403.md +0 -27
- package/src/customComponents/Exception/demo/404.md +0 -20
- package/src/customComponents/Exception/demo/500.md +0 -20
- package/src/customComponents/Exception/index.en-US.md +0 -20
- package/src/customComponents/Exception/index.jsx +0 -53
- package/src/customComponents/Exception/index.zh-CN.md +0 -21
- package/src/customComponents/FigureRange/index.jsx +0 -290
- package/src/customComponents/FileBase64Upload/index.jsx +0 -139
- package/src/customComponents/FlexBox/index.jsx +0 -104
- package/src/customComponents/FlexText/index.jsx +0 -59
- package/src/customComponents/FooterToolbar/demo/basic.md +0 -45
- package/src/customComponents/FooterToolbar/index.en-US.md +0 -18
- package/src/customComponents/FooterToolbar/index.jsx +0 -51
- package/src/customComponents/FooterToolbar/index.zh-CN.md +0 -19
- package/src/customComponents/FromDisplayItem/index.jsx +0 -23
- package/src/customComponents/FunctionComponent/index.jsx +0 -2613
- package/src/customComponents/FunctionSupplement/Whether/index.jsx +0 -139
- package/src/customComponents/GlobalFooter/index.jsx +0 -29
- package/src/customComponents/GlobalFooter/index.md +0 -17
- package/src/customComponents/HelpBox/index.jsx +0 -146
- package/src/customComponents/HelpCard/index.jsx +0 -48
- package/src/customComponents/HtmlBox/index.jsx +0 -36
- package/src/customComponents/IconInfo/index.jsx +0 -302
- package/src/customComponents/ImageBox/index.jsx +0 -402
- package/src/customComponents/ImageContentPreview/index.jsx +0 -146
- package/src/customComponents/ImageUpload/index.jsx +0 -342
- package/src/customComponents/Login/LoginItem.js +0 -144
- package/src/customComponents/Login/LoginSubmit.js +0 -23
- package/src/customComponents/Login/LoginTab.js +0 -41
- package/src/customComponents/Login/demo/basic.md +0 -142
- package/src/customComponents/Login/index.en-US.md +0 -49
- package/src/customComponents/Login/index.jsx +0 -138
- package/src/customComponents/Login/index.zh-CN.md +0 -50
- package/src/customComponents/Login/loginContext.js +0 -4
- package/src/customComponents/Login/map.js +0 -71
- package/src/customComponents/MobileContainor/index.jsx +0 -29
- package/src/customComponents/NoticeIconCustom/NoticeList.js +0 -78
- package/src/customComponents/NoticeIconCustom/demo/basic.md +0 -12
- package/src/customComponents/NoticeIconCustom/demo/popover.md +0 -202
- package/src/customComponents/NoticeIconCustom/index.jsx +0 -117
- package/src/customComponents/NumberInfo/demo/basic.md +0 -31
- package/src/customComponents/NumberInfo/index.en-US.md +0 -19
- package/src/customComponents/NumberInfo/index.jsx +0 -59
- package/src/customComponents/NumberInfo/index.zh-CN.md +0 -20
- package/src/customComponents/PercentageBox/index.jsx +0 -23
- package/src/customComponents/PriceBox/index.jsx +0 -73
- package/src/customComponents/Result/index.jsx +0 -30
- package/src/customComponents/Result/index.md +0 -20
- package/src/customComponents/StandardFormRow/index.jsx +0 -24
- package/src/customComponents/StandardTable/index.jsx +0 -126
- package/src/customComponents/StandardTableCustom/index.jsx +0 -156
- package/src/customComponents/StatusBar/index.jsx +0 -74
- package/src/customComponents/TagSelect/demo/controlled.md +0 -54
- package/src/customComponents/TagSelect/demo/expandable.md +0 -32
- package/src/customComponents/TagSelect/demo/simple.md +0 -26
- package/src/customComponents/TagSelect/index.jsx +0 -141
- package/src/customComponents/TagSelect/index.md +0 -29
- package/src/customComponents/TimeLineCustom/index.jsx +0 -225
- package/src/customComponents/Trend/demo/basic.md +0 -20
- package/src/customComponents/Trend/demo/reverse.md +0 -22
- package/src/customComponents/Trend/index.jsx +0 -35
- package/src/customComponents/Trend/index.md +0 -22
- package/src/customComponents/VerticalBox/index.jsx +0 -81
- package/src/customComponents/VideoUpload/index.jsx +0 -424
- package/src/customComponents/_utils/pathTools.js +0 -7
- package/src/customComponents/_utils/pathTools.test.js +0 -20
- package/src/framework/AuthorizationWrapper/index.jsx +0 -68
- package/src/framework/Base/index.jsx +0 -93
- package/src/framework/ButtonExtension/SelectButton/Base/index.jsx +0 -67
- package/src/framework/ButtonExtension/SelectButton/InteractiveBase/index.jsx +0 -130
- package/src/framework/Common/index.jsx +0 -2235
- package/src/framework/Core/index.jsx +0 -34
- package/src/framework/CustomBase/index.jsx +0 -33
- package/src/framework/CustomWrapper/Supplement/index.jsx +0 -17
- package/src/framework/CustomWrapper/SupplementCore/index.jsx +0 -65
- package/src/framework/CustomWrapper/SupplementWrapper/index.jsx +0 -11
- package/src/framework/DataDrawer/Base/index.jsx +0 -314
- package/src/framework/DataDrawer/BaseAddDrawer/index.jsx +0 -50
- package/src/framework/DataDrawer/BaseLoadDrawer/index.jsx +0 -20
- package/src/framework/DataDrawer/BaseNeedlessLoadDrawer/index.jsx +0 -37
- package/src/framework/DataDrawer/BaseSaveDrawer/index.jsx +0 -35
- package/src/framework/DataDrawer/BaseUpdateDrawer/index.jsx +0 -33
- package/src/framework/DataForm/BaseAddForm/index.jsx +0 -231
- package/src/framework/DataForm/BaseUpdateForm/index.jsx +0 -145
- package/src/framework/DataForm/BaseUpdateFormTab/index.jsx +0 -18
- package/src/framework/DataListView/Base/index.jsx +0 -1583
- package/src/framework/DataListView/BatchAction/index.jsx +0 -78
- package/src/framework/DataListView/ColumnSetting/DndItem.jsx +0 -105
- package/src/framework/DataListView/ColumnSetting/index.jsx +0 -346
- package/src/framework/DataListView/DensityAction/index.jsx +0 -46
- package/src/framework/DataModal/Base/index.jsx +0 -238
- package/src/framework/DataModal/BaseAddModal/index.jsx +0 -17
- package/src/framework/DataModal/BaseLoadModal/index.jsx +0 -30
- package/src/framework/DataModal/BaseNeedlessLoadModal/index.jsx +0 -83
- package/src/framework/DataModal/BaseSelectModal/index.jsx +0 -28
- package/src/framework/DataModal/BaseUpdateModal/index.jsx +0 -5
- package/src/framework/DataModal/BaseUpdateTransferModal/index.jsx +0 -103
- package/src/framework/DataMultiPageView/InnerMultiPage/index.jsx +0 -18
- package/src/framework/DataMultiPageView/MultiPage/index.jsx +0 -461
- package/src/framework/DataMultiPageView/MultiPageDrawer/index.jsx +0 -549
- package/src/framework/DataMultiPageView/MultiPageSelectDrawer/index.jsx +0 -50
- package/src/framework/DataOperation/Base/index.jsx +0 -323
- package/src/framework/DataOperation/BaseView/index.jsx +0 -26
- package/src/framework/DataOperation/BaseWindow/index.jsx +0 -291
- package/src/framework/DataSinglePageView/InnerSinglePage/index.jsx +0 -18
- package/src/framework/DataSinglePageView/SinglePage/index.jsx +0 -245
- package/src/framework/DataSinglePageView/SinglePageDrawer/index.jsx +0 -474
- package/src/framework/DataSingleView/DataCore/index.jsx +0 -216
- package/src/framework/DataSingleView/DataLoad/index.jsx +0 -127
- package/src/framework/DataTabContainer/index.jsx +0 -304
- package/src/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.jsx +0 -149
- package/src/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.jsx +0 -140
- package/src/framework/Wrapper/index.jsx +0 -10
- package/src/utils/Authorized.js +0 -42
- package/src/utils/Yuan.js +0 -31
- package/src/utils/actionAssist.js +0 -231
- package/src/utils/authority.js +0 -85
- package/src/utils/defaultSettingsSpecial.js +0 -235
- package/src/utils/globalModel.js +0 -33
- package/src/utils/globalStorageAssist.js +0 -193
- package/src/utils/proLayoutCollection.js +0 -25
- package/src/utils/request.js +0 -160
- package/src/utils/requestAssistor.js +0 -485
- package/src/utils/tools.js +0 -1947
- package/src/utils/utils.js +0 -45
- package/src/utils/utils.test.js +0 -35
- package/src/utils/virtualRequest.js +0 -216
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _tools = require("../../../utils/tools");
|
|
11
|
+
|
|
12
|
+
var _Core2 = _interopRequireDefault(require("../Core"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
+
|
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
19
|
+
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
22
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
+
|
|
24
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
|
+
|
|
26
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
|
+
|
|
28
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
29
|
+
|
|
30
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
31
|
+
|
|
32
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33
|
+
|
|
34
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
35
|
+
|
|
36
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
|
+
|
|
38
|
+
var rand = function rand(min, max) {
|
|
39
|
+
return ~~(Math.random() * (max - min + 1) + min);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var RadarScanning = /*#__PURE__*/function (_Core) {
|
|
43
|
+
_inherits(RadarScanning, _Core);
|
|
44
|
+
|
|
45
|
+
var _super = _createSuper(RadarScanning);
|
|
46
|
+
|
|
47
|
+
function RadarScanning() {
|
|
48
|
+
var _this;
|
|
49
|
+
|
|
50
|
+
_classCallCheck(this, RadarScanning);
|
|
51
|
+
|
|
52
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53
|
+
args[_key] = arguments[_key];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
57
|
+
_this.orbs = [];
|
|
58
|
+
|
|
59
|
+
_this.doAfterDidMount = function (_ref) {
|
|
60
|
+
var canvasContext = _ref.canvasContext;
|
|
61
|
+
|
|
62
|
+
var _number = _objectSpread({}, _objectSpread({
|
|
63
|
+
number: 100
|
|
64
|
+
}, _this.props || {})),
|
|
65
|
+
number = _number.number;
|
|
66
|
+
|
|
67
|
+
var ctx = canvasContext;
|
|
68
|
+
ctx.lineCap = 'round';
|
|
69
|
+
var count = number;
|
|
70
|
+
|
|
71
|
+
while (count) {
|
|
72
|
+
_this.createOrb(_this.canvasWidth / 2, _this.canvasHeight / 2 + count * 2);
|
|
73
|
+
|
|
74
|
+
count -= 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
_this.loop();
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
_this.getTrail = function () {
|
|
81
|
+
var _trail = _objectSpread({}, _objectSpread({
|
|
82
|
+
trail: true
|
|
83
|
+
}, _this.props || {})),
|
|
84
|
+
trail = _trail.trail;
|
|
85
|
+
|
|
86
|
+
return trail;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
_this.turnOnMove = function () {
|
|
90
|
+
var c = _this.getCanvas();
|
|
91
|
+
|
|
92
|
+
c.addEventListener('mousemove', _this.orbGo, false);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
_this.turnOffMove = function () {
|
|
96
|
+
var c = _this.getCanvas();
|
|
97
|
+
|
|
98
|
+
c.removeEventListener('mousemove', _this.orbGo, false);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
_this.orbGo = function (e) {
|
|
102
|
+
var c = _this.getCanvas();
|
|
103
|
+
|
|
104
|
+
var mx = e.pageX - c.offsetLeft;
|
|
105
|
+
var my = e.pageY - c.offsetTop;
|
|
106
|
+
|
|
107
|
+
_this.createOrb(mx, my);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
_this.clear = function () {
|
|
111
|
+
_this.orbs = [];
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
_this.loop = function () {
|
|
115
|
+
(0, _tools.requestAnimFrame)(_this.loop);
|
|
116
|
+
|
|
117
|
+
var ctx = _this.getCanvasContext();
|
|
118
|
+
|
|
119
|
+
if (ctx != null) {
|
|
120
|
+
var trail = _this.getTrail();
|
|
121
|
+
|
|
122
|
+
if (trail) {
|
|
123
|
+
ctx.fillStyle = 'rgba(0,0,0,.1)';
|
|
124
|
+
ctx.fillRect(0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
125
|
+
} else {
|
|
126
|
+
ctx.clearRect(0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
var i = _this.orbs.length;
|
|
130
|
+
|
|
131
|
+
while (i) {
|
|
132
|
+
var orb = _this.orbs[i];
|
|
133
|
+
|
|
134
|
+
if ((orb || null) != null) {
|
|
135
|
+
var updateCount = 3;
|
|
136
|
+
|
|
137
|
+
while (updateCount) {
|
|
138
|
+
var o = _this.createOrbByExist(orb);
|
|
139
|
+
|
|
140
|
+
_this.drawOrb(ctx, o);
|
|
141
|
+
|
|
142
|
+
updateCount -= 1;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
i -= 1;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
_this.createOrb = function (mx, my) {
|
|
152
|
+
var dx = _this.canvasWidth / 2 - mx;
|
|
153
|
+
var dy = _this.canvasHeight / 2 - my;
|
|
154
|
+
var dist = Math.sqrt(dx * dx + dy * dy);
|
|
155
|
+
var angle = Math.atan2(dy, dx);
|
|
156
|
+
var o = {
|
|
157
|
+
x: mx,
|
|
158
|
+
y: my,
|
|
159
|
+
lastX: mx,
|
|
160
|
+
lastY: my,
|
|
161
|
+
hue: 0,
|
|
162
|
+
colorAngle: 0,
|
|
163
|
+
angle: angle + Math.PI / 2,
|
|
164
|
+
// size: .5+dist/250,
|
|
165
|
+
size: rand(1, 3) / 2,
|
|
166
|
+
centerX: _this.canvasWidth / 2,
|
|
167
|
+
centerY: _this.canvasHeight / 2,
|
|
168
|
+
radius: dist,
|
|
169
|
+
speed: rand(5, 10) / 1000 * (dist / 750) + 0.015 - 0.009,
|
|
170
|
+
alpha: 1 - Math.abs(dist) / _this.canvasWidth
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
_this.orbs.push(o);
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
_this.drawOrb = function (ctx, orb) {
|
|
177
|
+
ctx.strokeStyle = "hsla(".concat(orb.colorAngle, ",100%,50%,1)");
|
|
178
|
+
ctx.lineWidth = orb.size;
|
|
179
|
+
ctx.beginPath();
|
|
180
|
+
ctx.moveTo(orb.lastX, orb.lastY);
|
|
181
|
+
ctx.lineTo(orb.x, orb.y);
|
|
182
|
+
ctx.stroke();
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
_this.createOrbByExist = function (o) {
|
|
186
|
+
var orb = o;
|
|
187
|
+
var mxNew = orb.x;
|
|
188
|
+
var myNew = orb.y;
|
|
189
|
+
var x1 = _this.canvasWidth / 2;
|
|
190
|
+
var y1 = _this.canvasHeight / 2;
|
|
191
|
+
var x2 = mxNew;
|
|
192
|
+
var y2 = myNew;
|
|
193
|
+
var rise = y1 - y2;
|
|
194
|
+
var run = x1 - x2;
|
|
195
|
+
var slope = -(rise / run);
|
|
196
|
+
var radian = Math.atan(slope);
|
|
197
|
+
var angleH = Math.floor(radian * (180 / Math.PI));
|
|
198
|
+
|
|
199
|
+
if (x2 < x1 && y2 < y1) {
|
|
200
|
+
angleH += 180;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (x2 < x1 && y2 > y1) {
|
|
204
|
+
angleH += 180;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (x2 > x1 && y2 > y1) {
|
|
208
|
+
angleH += 360;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (y2 < y1 && slope === -Infinity) {
|
|
212
|
+
angleH = 90;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (y2 > y1 && slope === Infinity) {
|
|
216
|
+
angleH = 270;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (x2 < x1 && slope === 0) {
|
|
220
|
+
angleH = 180;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (Number.isNaN(angleH)) {
|
|
224
|
+
angleH = 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
orb.x = orb.centerX + Math.sin(orb.angle * -1) * orb.radius;
|
|
228
|
+
orb.y = orb.centerY + Math.cos(orb.angle * -1) * orb.radius;
|
|
229
|
+
orb.lastX = orb.x;
|
|
230
|
+
orb.lastY = orb.y;
|
|
231
|
+
orb.colorAngle = angleH;
|
|
232
|
+
orb.angle += orb.speed;
|
|
233
|
+
return orb;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
return _this;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
return RadarScanning;
|
|
240
|
+
}(_Core2["default"]);
|
|
241
|
+
|
|
242
|
+
RadarScanning.defaultProps = {
|
|
243
|
+
number: 100,
|
|
244
|
+
trail: true
|
|
245
|
+
};
|
|
246
|
+
var _default = RadarScanning;
|
|
247
|
+
exports["default"] = _default;
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default Spirit;
|
|
2
|
+
declare class Spirit extends Core {
|
|
3
|
+
circles: any[];
|
|
4
|
+
animate: () => void;
|
|
5
|
+
createCircle: () => {
|
|
6
|
+
pos: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
alpha: number;
|
|
11
|
+
scale: number;
|
|
12
|
+
velocity: number;
|
|
13
|
+
};
|
|
14
|
+
drawCircle: (ctx: any, circle: any) => void;
|
|
15
|
+
}
|
|
16
|
+
declare namespace Spirit {
|
|
17
|
+
const defaultProps: {};
|
|
18
|
+
}
|
|
19
|
+
import Core from "../Core";
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _tools = require("../../../utils/tools");
|
|
11
|
+
|
|
12
|
+
var _Core2 = _interopRequireDefault(require("../Core"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
+
|
|
18
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
19
|
+
|
|
20
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
21
|
+
|
|
22
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
23
|
+
|
|
24
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
25
|
+
|
|
26
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
27
|
+
|
|
28
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
29
|
+
|
|
30
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
31
|
+
|
|
32
|
+
var Spirit = /*#__PURE__*/function (_Core) {
|
|
33
|
+
_inherits(Spirit, _Core);
|
|
34
|
+
|
|
35
|
+
var _super = _createSuper(Spirit);
|
|
36
|
+
|
|
37
|
+
function Spirit() {
|
|
38
|
+
var _this;
|
|
39
|
+
|
|
40
|
+
_classCallCheck(this, Spirit);
|
|
41
|
+
|
|
42
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
43
|
+
args[_key] = arguments[_key];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
47
|
+
_this.circles = [];
|
|
48
|
+
|
|
49
|
+
_this.doAfterDidMount = function () {
|
|
50
|
+
var x = 0;
|
|
51
|
+
|
|
52
|
+
while (x < _this.canvasWidth * 0.5) {
|
|
53
|
+
_this.circles.push(_this.createCircle());
|
|
54
|
+
|
|
55
|
+
x += 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
_this.animate();
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
_this.animate = function () {
|
|
62
|
+
var ctx = _this.getCanvasContext();
|
|
63
|
+
|
|
64
|
+
ctx.clearRect(0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
65
|
+
_this.circles = (_this.circles || []).map(function (o) {
|
|
66
|
+
if (o.alpha <= 0) {
|
|
67
|
+
return _this.createCircle();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return o;
|
|
71
|
+
});
|
|
72
|
+
(_this.circles || []).forEach(function (o) {
|
|
73
|
+
_this.drawCircle(ctx, o);
|
|
74
|
+
});
|
|
75
|
+
(0, _tools.requestAnimFrame)(_this.animate);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
_this.createCircle = function () {
|
|
79
|
+
var o = {
|
|
80
|
+
pos: {
|
|
81
|
+
x: Math.random() * _this.canvasWidth,
|
|
82
|
+
y: _this.canvasHeight + Math.random() * 100
|
|
83
|
+
},
|
|
84
|
+
alpha: 0.1 + Math.random() * 0.3,
|
|
85
|
+
scale: 0.1 + Math.random() * 0.3,
|
|
86
|
+
velocity: Math.random()
|
|
87
|
+
};
|
|
88
|
+
return o;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
_this.drawCircle = function (ctx, circle) {
|
|
92
|
+
var o = circle;
|
|
93
|
+
o.pos.y -= o.velocity;
|
|
94
|
+
o.alpha -= 0.0005;
|
|
95
|
+
ctx.beginPath();
|
|
96
|
+
ctx.arc(o.pos.x, o.pos.y, o.scale * 10, 0, 2 * Math.PI, false);
|
|
97
|
+
ctx.fillStyle = "rgba(255,255,255,".concat(o.alpha, ")");
|
|
98
|
+
ctx.fill();
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
_this.buildContainorStyle = function () {
|
|
102
|
+
return {
|
|
103
|
+
backgroundColor: '#000'
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
return _this;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return Spirit;
|
|
111
|
+
}(_Core2["default"]);
|
|
112
|
+
|
|
113
|
+
Spirit.defaultProps = {};
|
|
114
|
+
var _default = Spirit;
|
|
115
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const Bubbly: typeof BubblySource;
|
|
2
|
+
export const RadarScanning: typeof RadarScanningSource;
|
|
3
|
+
export const Spirit: typeof SpiritSource;
|
|
4
|
+
declare namespace _default {
|
|
5
|
+
export { Bubbly };
|
|
6
|
+
export { RadarScanning };
|
|
7
|
+
export { Spirit };
|
|
8
|
+
}
|
|
9
|
+
export default _default;
|
|
10
|
+
import BubblySource from "./Bubbly";
|
|
11
|
+
import RadarScanningSource from "./RadarScanning";
|
|
12
|
+
import SpiritSource from "./Spirit";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.Spirit = exports.RadarScanning = exports.Bubbly = void 0;
|
|
7
|
+
|
|
8
|
+
var _Bubbly = _interopRequireDefault(require("./Bubbly"));
|
|
9
|
+
|
|
10
|
+
var _RadarScanning = _interopRequireDefault(require("./RadarScanning"));
|
|
11
|
+
|
|
12
|
+
var _Spirit = _interopRequireDefault(require("./Spirit"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
var Bubbly = _Bubbly["default"];
|
|
17
|
+
exports.Bubbly = Bubbly;
|
|
18
|
+
var RadarScanning = _RadarScanning["default"];
|
|
19
|
+
exports.RadarScanning = RadarScanning;
|
|
20
|
+
var Spirit = _Spirit["default"];
|
|
21
|
+
exports.Spirit = Spirit;
|
|
22
|
+
var _default = {
|
|
23
|
+
Bubbly: Bubbly,
|
|
24
|
+
RadarScanning: RadarScanning,
|
|
25
|
+
Spirit: Spirit
|
|
26
|
+
};
|
|
27
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _VerticalBox = _interopRequireDefault(require("../VerticalBox"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
|
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
|
|
20
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
+
|
|
22
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
23
|
+
|
|
24
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
25
|
+
|
|
26
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
|
+
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
|
+
|
|
30
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
|
+
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
|
+
|
|
34
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
|
+
|
|
36
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
|
+
|
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
|
+
|
|
40
|
+
var CenterBox = /*#__PURE__*/function (_PureComponent) {
|
|
41
|
+
_inherits(CenterBox, _PureComponent);
|
|
42
|
+
|
|
43
|
+
var _super = _createSuper(CenterBox);
|
|
44
|
+
|
|
45
|
+
function CenterBox() {
|
|
46
|
+
_classCallCheck(this, CenterBox);
|
|
47
|
+
|
|
48
|
+
return _super.apply(this, arguments);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
_createClass(CenterBox, [{
|
|
52
|
+
key: "render",
|
|
53
|
+
value: function render() {
|
|
54
|
+
var children = this.props.children;
|
|
55
|
+
return /*#__PURE__*/_react["default"].createElement(_VerticalBox["default"], {
|
|
56
|
+
style: {
|
|
57
|
+
height: '100%',
|
|
58
|
+
width: '100%'
|
|
59
|
+
},
|
|
60
|
+
align: "center",
|
|
61
|
+
alignJustify: "center"
|
|
62
|
+
}, children);
|
|
63
|
+
}
|
|
64
|
+
}]);
|
|
65
|
+
|
|
66
|
+
return CenterBox;
|
|
67
|
+
}(_react.PureComponent);
|
|
68
|
+
|
|
69
|
+
var _default = CenterBox;
|
|
70
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _bizcharts = require("bizcharts");
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
|
|
14
|
+
var _index = _interopRequireDefault(require("../index.less"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
|
|
22
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
+
|
|
24
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
|
+
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
27
|
+
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
+
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
+
|
|
32
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
|
+
|
|
34
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
35
|
+
|
|
36
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
|
+
|
|
38
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
|
+
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
+
|
|
42
|
+
var Bar = /*#__PURE__*/function (_Component) {
|
|
43
|
+
_inherits(Bar, _Component);
|
|
44
|
+
|
|
45
|
+
var _super = _createSuper(Bar);
|
|
46
|
+
|
|
47
|
+
function Bar() {
|
|
48
|
+
var _this;
|
|
49
|
+
|
|
50
|
+
_classCallCheck(this, Bar);
|
|
51
|
+
|
|
52
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53
|
+
args[_key] = arguments[_key];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
57
|
+
_this.state = {
|
|
58
|
+
autoHideXLabels: false
|
|
59
|
+
};
|
|
60
|
+
return _this;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
_createClass(Bar, [{
|
|
64
|
+
key: "render",
|
|
65
|
+
value: function render() {
|
|
66
|
+
var _this$props = this.props,
|
|
67
|
+
title = _this$props.title,
|
|
68
|
+
_this$props$autoFit = _this$props.autoFit,
|
|
69
|
+
autoFit = _this$props$autoFit === void 0 ? true : _this$props$autoFit,
|
|
70
|
+
data = _this$props.data,
|
|
71
|
+
_this$props$color = _this$props.color,
|
|
72
|
+
color = _this$props$color === void 0 ? 'rgba(24, 144, 255, 0.85)' : _this$props$color,
|
|
73
|
+
_this$props$animate = _this$props.animate,
|
|
74
|
+
animate = _this$props$animate === void 0 ? true : _this$props$animate;
|
|
75
|
+
var autoHideXLabels = this.state.autoHideXLabels;
|
|
76
|
+
var scale = {
|
|
77
|
+
x: {
|
|
78
|
+
type: 'cat'
|
|
79
|
+
},
|
|
80
|
+
y: {
|
|
81
|
+
min: 0,
|
|
82
|
+
alias: title
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
var tooltip = ['x*y', function (x, y) {
|
|
86
|
+
return {
|
|
87
|
+
name: x,
|
|
88
|
+
value: y
|
|
89
|
+
};
|
|
90
|
+
}];
|
|
91
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
92
|
+
className: _index["default"].chart,
|
|
93
|
+
style: {
|
|
94
|
+
height: '100%'
|
|
95
|
+
}
|
|
96
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
97
|
+
style: {
|
|
98
|
+
height: '100%'
|
|
99
|
+
}
|
|
100
|
+
}, /*#__PURE__*/_react["default"].createElement(_bizcharts.Chart, {
|
|
101
|
+
animate: animate,
|
|
102
|
+
scale: scale,
|
|
103
|
+
autoFit: autoFit,
|
|
104
|
+
data: data
|
|
105
|
+
}, /*#__PURE__*/_react["default"].createElement(_bizcharts.Axis, {
|
|
106
|
+
name: "x",
|
|
107
|
+
title: false,
|
|
108
|
+
label: autoHideXLabels ? undefined : {},
|
|
109
|
+
tickLine: autoHideXLabels ? undefined : {}
|
|
110
|
+
}), /*#__PURE__*/_react["default"].createElement(_bizcharts.Axis, {
|
|
111
|
+
title: true,
|
|
112
|
+
name: "y",
|
|
113
|
+
min: 0
|
|
114
|
+
}), /*#__PURE__*/_react["default"].createElement(_bizcharts.Tooltip, {
|
|
115
|
+
showTitle: false,
|
|
116
|
+
showCrosshairs: false
|
|
117
|
+
}), /*#__PURE__*/_react["default"].createElement(_bizcharts.Interval, {
|
|
118
|
+
position: "x*y",
|
|
119
|
+
color: color,
|
|
120
|
+
tooltip: tooltip
|
|
121
|
+
}))));
|
|
122
|
+
}
|
|
123
|
+
}]);
|
|
124
|
+
|
|
125
|
+
return Bar;
|
|
126
|
+
}(_react.Component);
|
|
127
|
+
|
|
128
|
+
var _default = Bar;
|
|
129
|
+
exports["default"] = _default;
|