antd-management-fast-framework 1.12.103 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/ApplicationWrapper/index.d.ts +9 -0
- package/es/components/Bootstrap/index.d.ts +3 -0
- package/es/{customComponents → components}/DataPreviewDrawer/index.d.ts +5 -6
- package/es/{customComponents/Exception → components/LoadingOverlay}/index.d.ts +1 -3
- package/es/components/MobileContainor/MobileHtmlPreviewBox/index.d.ts +10 -0
- package/es/components/MobileContainor/MobilePreviewArea/index.d.ts +75 -0
- package/es/{customComponents → components}/MobileContainor/MobilePreviewDrawer/index.d.ts +8 -8
- package/es/components/MobileContainor/index.d.ts +8 -0
- package/es/components/index.d.ts +5 -0
- package/es/configs/index.d.ts +2 -0
- package/es/configs/themeCollection.d.ts +7 -0
- package/es/{configGroup → configs}/webpackPlugin.d.ts +0 -7
- package/es/framework/AuthorizationWrapper/index.d.ts +8 -5
- package/es/framework/ButtonExtension/SelectButton/Base/index.d.ts +5 -6
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.d.ts +6 -7
- package/es/framework/ButtonExtension/SelectButton/index.d.ts +6 -0
- package/es/framework/ButtonExtension/index.d.ts +1 -0
- package/es/framework/Common/InternalBuild/index.d.ts +26 -0
- package/es/framework/Common/InternalFlow/index.d.ts +149 -0
- package/es/framework/Common/InternalLayout/index.d.ts +9 -0
- package/es/framework/Common/InternalTabFlow/index.d.ts +12 -0
- package/es/framework/Common/index.d.ts +2 -205
- package/es/framework/Core/index.d.ts +17 -6
- package/es/framework/CustomWrapper/Supplement/index.d.ts +2 -3
- package/es/framework/CustomWrapper/SupplementCore/index.d.ts +2 -4
- package/es/framework/CustomWrapper/SupplementWrapper/index.d.ts +2 -3
- package/es/framework/CustomWrapper/index.d.ts +3 -0
- package/es/framework/DataDrawer/Base/index.d.ts +16 -18
- package/es/framework/DataDrawer/BaseAddDrawer/index.d.ts +3 -4
- package/es/framework/DataDrawer/BaseLoadDrawer/index.d.ts +3 -4
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +3 -4
- package/es/framework/DataDrawer/BaseSaveDrawer/index.d.ts +2 -3
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.d.ts +2 -3
- package/es/framework/DataDrawer/index.d.ts +14 -0
- package/es/framework/DataForm/BaseAddForm/index.d.ts +7 -7
- package/es/framework/DataForm/BaseUpdateForm/index.d.ts +3 -4
- package/es/framework/DataForm/BaseUpdateFormContent/index.d.ts +2 -3
- package/es/framework/DataForm/BaseUpdateFormTab/index.d.ts +3 -3
- package/es/framework/DataForm/index.d.ts +10 -0
- package/es/framework/DataListView/Base/index.d.ts +38 -82
- package/es/framework/DataListView/BatchAction/index.d.ts +3 -3
- package/es/framework/DataListView/ColumnSetting/DndItem.d.ts +1 -2
- package/es/framework/DataListView/ColumnSetting/index.d.ts +1 -2
- package/es/framework/DataListView/DensityAction/index.d.ts +2 -3
- package/es/framework/DataListView/index.d.ts +10 -0
- package/es/framework/DataMenuContainer/index.d.ts +8 -10
- package/es/framework/DataModal/Base/index.d.ts +10 -12
- package/es/framework/DataModal/BaseAddModal/index.d.ts +2 -3
- package/es/framework/DataModal/BaseLoadModal/index.d.ts +3 -4
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +6 -6
- package/es/framework/DataModal/BaseSelectModal/index.d.ts +4 -4
- package/es/framework/DataModal/BaseUpdateModal/index.d.ts +2 -3
- package/es/framework/DataModal/BaseUpdateTransferModal/index.d.ts +5 -5
- package/es/framework/DataModal/index.d.ts +16 -0
- package/es/framework/DataMultiPageView/InnerMultiPage/index.d.ts +3 -3
- package/es/framework/DataMultiPageView/MultiPage/index.d.ts +4 -3
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +19 -21
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.d.ts +4 -5
- package/es/framework/DataMultiPageView/index.d.ts +10 -0
- package/es/framework/DataOperation/Base/index.d.ts +2 -3
- package/es/framework/DataOperation/BaseView/index.d.ts +2 -3
- package/es/framework/DataOperation/BaseWindow/index.d.ts +13 -14
- package/es/framework/DataOperation/index.d.ts +8 -0
- package/es/framework/DataSinglePageView/InnerSinglePage/index.d.ts +3 -3
- package/es/framework/DataSinglePageView/SinglePage/index.d.ts +9 -4
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +19 -21
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.d.ts +4 -5
- package/es/framework/DataSinglePageView/index.d.ts +10 -0
- package/es/framework/DataSingleView/DataCore/index.d.ts +13 -40
- package/es/framework/DataSingleView/DataLoad/index.d.ts +5 -5
- package/es/framework/DataSingleView/index.d.ts +6 -0
- package/es/framework/DataTabContainer/index.d.ts +6 -29
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.d.ts +6 -7
- package/es/framework/FieldExtension/SelectFieldDrawer/{SelectFieldDrawerBase → SelectFieldInteractiveBase}/index.d.ts +6 -7
- package/es/framework/FieldExtension/SelectFieldDrawer/index.d.ts +6 -0
- package/es/framework/FieldExtension/index.d.ts +4 -0
- package/es/framework/Wrapper/index.d.ts +2 -3
- package/es/framework/index.d.ts +17 -7
- package/es/index.css +12 -0
- package/es/index.d.ts +5 -1
- package/es/index.js +3 -8
- package/es/modelBuilders/index.d.ts +1 -0
- package/es/modelBuilders/schedulingControl.d.ts +68 -0
- package/es/services/schedulingControl.d.ts +4 -0
- package/es/utils/applicationListDataAssist.d.ts +4 -0
- package/es/utils/applicationListDataCacheAssist.d.ts +24 -0
- package/es/utils/bootstrap.d.ts +4 -0
- package/es/utils/configAssist.d.ts +1 -0
- package/es/utils/currentOperatorAssist.d.ts +5 -0
- package/es/utils/definition.d.ts +4 -0
- package/es/utils/index.d.ts +8 -0
- package/es/utils/layoutSettingAssist.d.ts +2 -0
- package/es/utils/metaDataAssist.d.ts +5 -0
- package/es/utils/schedulingControlAssist.d.ts +10 -0
- package/package.json +122 -195
- package/License.txt +0 -21
- package/README.md +0 -35
- package/es/configGroup/configGeneral.d.ts +0 -56
- package/es/configGroup/configGeneral.js +0 -143
- package/es/configGroup/themeCollection.d.ts +0 -29
- package/es/configGroup/themeCollection.js +0 -117
- package/es/configGroup/webpackPlugin.js +0 -166
- package/es/customComponents/AMap/UIPoiPicker.d.ts +0 -8
- package/es/customComponents/AMap/UIPoiPicker.js +0 -78
- package/es/customComponents/AMap/UIPositionPicker.d.ts +0 -8
- package/es/customComponents/AMap/UIPositionPicker.js +0 -87
- package/es/customComponents/ActiveChart/index.d.ts +0 -17
- package/es/customComponents/ActiveChart/index.js +0 -168
- package/es/customComponents/ActiveChart/index.less +0 -58
- package/es/customComponents/AnimalBox/FadeBox/index.d.ts +0 -14
- package/es/customComponents/AnimalBox/FadeBox/index.js +0 -82
- package/es/customComponents/AnimalBox/FadeBox/index.less +0 -61
- package/es/customComponents/AnimalBox/QueueBox/index.d.ts +0 -12
- package/es/customComponents/AnimalBox/QueueBox/index.js +0 -76
- package/es/customComponents/AnimalBox/QueueListBox/index.d.ts +0 -15
- package/es/customComponents/AnimalBox/QueueListBox/index.js +0 -117
- package/es/customComponents/AnimalBox/QueueListBox/index.less +0 -16
- package/es/customComponents/AnimalBox/RotateBox/index.d.ts +0 -14
- package/es/customComponents/AnimalBox/RotateBox/index.js +0 -85
- package/es/customComponents/ArticleListContent/index.d.ts +0 -10
- package/es/customComponents/ArticleListContent/index.js +0 -49
- package/es/customComponents/ArticleListContent/index.less +0 -41
- package/es/customComponents/AudioUpload/index.d.ts +0 -39
- package/es/customComponents/AudioUpload/index.js +0 -478
- package/es/customComponents/Authorized/Authorized.d.ts +0 -6
- package/es/customComponents/Authorized/Authorized.js +0 -33
- package/es/customComponents/Authorized/AuthorizedRoute.d.ts +0 -8
- package/es/customComponents/Authorized/AuthorizedRoute.js +0 -50
- package/es/customComponents/Authorized/CheckPermissions.d.ts +0 -11
- package/es/customComponents/Authorized/CheckPermissions.js +0 -106
- package/es/customComponents/Authorized/PromiseRender.d.ts +0 -13
- package/es/customComponents/Authorized/PromiseRender.js +0 -151
- package/es/customComponents/Authorized/Secured.d.ts +0 -18
- package/es/customComponents/Authorized/Secured.js +0 -95
- package/es/customComponents/Authorized/index.d.ts +0 -2
- package/es/customComponents/Authorized/index.js +0 -22
- package/es/customComponents/Authorized/renderAuthorize.d.ts +0 -3
- package/es/customComponents/Authorized/renderAuthorize.js +0 -37
- package/es/customComponents/AvatarList/index.d.ts +0 -17
- package/es/customComponents/AvatarList/index.js +0 -99
- package/es/customComponents/AvatarList/index.less +0 -53
- package/es/customComponents/AvatarList/index.test.d.ts +0 -1
- package/es/customComponents/Canvas/Bubbly/index.d.ts +0 -20
- package/es/customComponents/Canvas/Bubbly/index.js +0 -182
- package/es/customComponents/Canvas/Core/index.d.ts +0 -28
- package/es/customComponents/Canvas/Core/index.js +0 -163
- package/es/customComponents/Canvas/RadarScanning/index.d.ts +0 -20
- package/es/customComponents/Canvas/RadarScanning/index.js +0 -251
- package/es/customComponents/Canvas/Ribbon.7z +0 -0
- package/es/customComponents/Canvas/Spirit/index.d.ts +0 -23
- package/es/customComponents/Canvas/Spirit/index.js +0 -119
- package/es/customComponents/Canvas/index.d.ts +0 -12
- package/es/customComponents/Canvas/index.js +0 -27
- package/es/customComponents/CenterBox/index.d.ts +0 -7
- package/es/customComponents/CenterBox/index.js +0 -70
- package/es/customComponents/Charts/Bar/index.d.ts +0 -10
- package/es/customComponents/Charts/Bar/index.js +0 -129
- package/es/customComponents/Charts/ChartCard/index.d.ts +0 -8
- package/es/customComponents/Charts/ChartCard/index.js +0 -160
- package/es/customComponents/Charts/ChartCard/index.less +0 -90
- package/es/customComponents/Charts/Field/index.d.ts +0 -6
- package/es/customComponents/Charts/Field/index.js +0 -37
- package/es/customComponents/Charts/Field/index.less +0 -19
- package/es/customComponents/Charts/Gauge/index.d.ts +0 -2
- package/es/customComponents/Charts/Gauge/index.js +0 -185
- package/es/customComponents/Charts/MiniArea/index.d.ts +0 -2
- package/es/customComponents/Charts/MiniArea/index.js +0 -107
- package/es/customComponents/Charts/MiniBar/index.d.ts +0 -2
- package/es/customComponents/Charts/MiniBar/index.js +0 -62
- package/es/customComponents/Charts/MiniProgress/index.d.ts +0 -8
- package/es/customComponents/Charts/MiniProgress/index.js +0 -55
- package/es/customComponents/Charts/MiniProgress/index.less +0 -42
- package/es/customComponents/Charts/Pie/index.d.ts +0 -10
- package/es/customComponents/Charts/Pie/index.js +0 -195
- package/es/customComponents/Charts/Pie/index.less +0 -104
- package/es/customComponents/Charts/TagCloud/index.d.ts +0 -23
- package/es/customComponents/Charts/TagCloud/index.js +0 -276
- package/es/customComponents/Charts/TagCloud/index.less +0 -7
- package/es/customComponents/Charts/TimelineChart/index.d.ts +0 -2
- package/es/customComponents/Charts/TimelineChart/index.js +0 -173
- package/es/customComponents/Charts/TimelineChart/index.less +0 -5
- package/es/customComponents/Charts/WaterWave/index.d.ts +0 -18
- package/es/customComponents/Charts/WaterWave/index.js +0 -319
- package/es/customComponents/Charts/WaterWave/index.less +0 -32
- package/es/customComponents/Charts/autoHeight.d.ts +0 -13
- package/es/customComponents/Charts/autoHeight.js +0 -123
- package/es/customComponents/Charts/bizcharts.d.ts +0 -2
- package/es/customComponents/Charts/bizcharts.js +0 -17
- package/es/customComponents/Charts/index.d.ts +0 -27
- package/es/customComponents/Charts/index.js +0 -119
- package/es/customComponents/Charts/index.less +0 -26
- package/es/customComponents/ColorText/index.d.ts +0 -22
- package/es/customComponents/ColorText/index.js +0 -139
- package/es/customComponents/Countdown/index.d.ts +0 -22
- package/es/customComponents/Countdown/index.js +0 -158
- package/es/customComponents/Countdown/index.less +0 -5
- package/es/customComponents/DataPreviewDrawer/index.js +0 -178
- package/es/customComponents/DataPreviewDrawer/index.less +0 -10
- package/es/customComponents/DecorateAvatar/index.d.ts +0 -37
- package/es/customComponents/DecorateAvatar/index.js +0 -199
- package/es/customComponents/DisplayCopyData/index.d.ts +0 -10
- package/es/customComponents/DisplayCopyData/index.js +0 -86
- package/es/customComponents/EditableItem/index.d.ts +0 -12
- package/es/customComponents/EditableItem/index.js +0 -121
- package/es/customComponents/EditableItem/index.less +0 -25
- package/es/customComponents/EditableLinkGroup/index.d.ts +0 -23
- package/es/customComponents/EditableLinkGroup/index.js +0 -99
- package/es/customComponents/EditableLinkGroup/index.less +0 -18
- package/es/customComponents/Editor/TinymceWrapper/index.d.ts +0 -19
- package/es/customComponents/Editor/TinymceWrapper/index.js +0 -254
- package/es/customComponents/Ellipsis/index.d.ts +0 -26
- package/es/customComponents/Ellipsis/index.js +0 -389
- package/es/customComponents/Ellipsis/index.less +0 -28
- package/es/customComponents/Ellipsis/index.test.d.ts +0 -1
- package/es/customComponents/EllipsisCustom/index.d.ts +0 -26
- package/es/customComponents/EllipsisCustom/index.js +0 -355
- package/es/customComponents/EllipsisCustom/index.less +0 -27
- package/es/customComponents/EverySpace/index.d.ts +0 -16
- package/es/customComponents/EverySpace/index.js +0 -105
- package/es/customComponents/Exception/index.js +0 -121
- package/es/customComponents/Exception/index.less +0 -92
- package/es/customComponents/Exception/typeConfig.d.ts +0 -18
- package/es/customComponents/Exception/typeConfig.js +0 -25
- package/es/customComponents/FigureRange/index.d.ts +0 -133
- package/es/customComponents/FigureRange/index.js +0 -335
- package/es/customComponents/FigureRange/index.less +0 -73
- package/es/customComponents/FileBase64Upload/index.d.ts +0 -27
- package/es/customComponents/FileBase64Upload/index.js +0 -205
- package/es/customComponents/FileUpload/index.d.ts +0 -35
- package/es/customComponents/FileUpload/index.js +0 -402
- package/es/customComponents/FlexBox/index.d.ts +0 -24
- package/es/customComponents/FlexBox/index.js +0 -186
- package/es/customComponents/FlexText/index.d.ts +0 -21
- package/es/customComponents/FlexText/index.js +0 -109
- package/es/customComponents/FlexText/index.less +0 -3
- package/es/customComponents/FooterToolbar/index.d.ts +0 -16
- package/es/customComponents/FooterToolbar/index.js +0 -132
- package/es/customComponents/FooterToolbar/index.less +0 -33
- package/es/customComponents/FromDisplayItem/index.d.ts +0 -14
- package/es/customComponents/FromDisplayItem/index.js +0 -73
- package/es/customComponents/FromDisplayItem/index.less +0 -5
- package/es/customComponents/FunctionComponent/index.d.ts +0 -443
- package/es/customComponents/FunctionComponent/index.js +0 -3404
- package/es/customComponents/FunctionComponent/index.less +0 -63
- package/es/customComponents/FunctionSupplement/Whether/index.d.ts +0 -46
- package/es/customComponents/FunctionSupplement/Whether/index.js +0 -181
- package/es/customComponents/GlobalFooter/index.d.ts +0 -6
- package/es/customComponents/GlobalFooter/index.js +0 -39
- package/es/customComponents/GlobalFooter/index.less +0 -29
- package/es/customComponents/HelpBox/index.d.ts +0 -18
- package/es/customComponents/HelpBox/index.js +0 -192
- package/es/customComponents/HelpBox/index.less +0 -16
- package/es/customComponents/HelpCard/index.d.ts +0 -18
- package/es/customComponents/HelpCard/index.js +0 -91
- package/es/customComponents/HtmlBox/index.d.ts +0 -20
- package/es/customComponents/HtmlBox/index.js +0 -118
- package/es/customComponents/HtmlBox/index.less +0 -7
- package/es/customComponents/IconFont/index.d.ts +0 -2
- package/es/customComponents/IconFont/index.js +0 -14
- package/es/customComponents/IconInfo/index.d.ts +0 -32
- package/es/customComponents/IconInfo/index.js +0 -373
- package/es/customComponents/IconInfo/index.less +0 -5
- package/es/customComponents/ImageBox/index.d.ts +0 -60
- package/es/customComponents/ImageBox/index.js +0 -376
- package/es/customComponents/ImageBox/index.less +0 -114
- package/es/customComponents/ImageContentPreview/index.d.ts +0 -21
- package/es/customComponents/ImageContentPreview/index.js +0 -173
- package/es/customComponents/ImageContentPreview/index.less +0 -9
- package/es/customComponents/ImageUpload/index.d.ts +0 -45
- package/es/customComponents/ImageUpload/index.js +0 -413
- package/es/customComponents/ImageUpload/index.less +0 -81
- package/es/customComponents/MobileContainor/ContentView/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/ContentView/index.js +0 -152
- package/es/customComponents/MobileContainor/ContentView/index.less +0 -30
- package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.d.ts +0 -19
- package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.js +0 -121
- package/es/customComponents/MobileContainor/Devices/IPhone5S/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/Devices/IPhone5S/index.js +0 -124
- package/es/customComponents/MobileContainor/Devices/Iphone8/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/Devices/Iphone8/index.js +0 -124
- package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.js +0 -124
- package/es/customComponents/MobileContainor/Devices/IphoneX/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/Devices/IphoneX/index.js +0 -130
- package/es/customComponents/MobileContainor/Devices/RoughSketch/index.d.ts +0 -19
- package/es/customComponents/MobileContainor/Devices/RoughSketch/index.js +0 -97
- package/es/customComponents/MobileContainor/Devices/RoughSketch/index.less +0 -34
- package/es/customComponents/MobileContainor/Devices/devices.less +0 -2815
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.d.ts +0 -12
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.js +0 -80
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.d.ts +0 -49
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +0 -220
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +0 -176
- package/es/customComponents/MobileContainor/MobileSimulation/index.d.ts +0 -23
- package/es/customComponents/MobileContainor/MobileSimulation/index.js +0 -243
- package/es/customComponents/NoticeIconCustom/NoticeList.d.ts +0 -10
- package/es/customComponents/NoticeIconCustom/NoticeList.js +0 -81
- package/es/customComponents/NoticeIconCustom/NoticeList.less +0 -90
- package/es/customComponents/NoticeIconCustom/index.d.ts +0 -25
- package/es/customComponents/NoticeIconCustom/index.js +0 -201
- package/es/customComponents/NoticeIconCustom/index.less +0 -31
- package/es/customComponents/NumberInfo/index.d.ts +0 -12
- package/es/customComponents/NumberInfo/index.js +0 -60
- package/es/customComponents/NumberInfo/index.less +0 -77
- package/es/customComponents/PageLoading/index.d.ts +0 -2
- package/es/customComponents/PageLoading/index.js +0 -13
- package/es/customComponents/PercentageBox/index.d.ts +0 -12
- package/es/customComponents/PercentageBox/index.js +0 -70
- package/es/customComponents/PriceBox/index.d.ts +0 -18
- package/es/customComponents/PriceBox/index.js +0 -115
- package/es/customComponents/Result/index.d.ts +0 -9
- package/es/customComponents/Result/index.js +0 -57
- package/es/customComponents/Result/index.less +0 -58
- package/es/customComponents/StandardFormRow/index.d.ts +0 -9
- package/es/customComponents/StandardFormRow/index.js +0 -47
- package/es/customComponents/StandardFormRow/index.less +0 -81
- package/es/customComponents/StandardTable/index.d.ts +0 -17
- package/es/customComponents/StandardTable/index.js +0 -217
- package/es/customComponents/StandardTable/index.less +0 -7
- package/es/customComponents/StandardTableCustom/index.d.ts +0 -22
- package/es/customComponents/StandardTableCustom/index.js +0 -234
- package/es/customComponents/StandardTableCustom/index.less +0 -21
- package/es/customComponents/StatusBar/index.d.ts +0 -13
- package/es/customComponents/StatusBar/index.js +0 -128
- package/es/customComponents/TagSelect/index.d.ts +0 -34
- package/es/customComponents/TagSelect/index.js +0 -226
- package/es/customComponents/TagSelect/index.less +0 -38
- package/es/customComponents/TimeLineCustom/index.d.ts +0 -37
- package/es/customComponents/TimeLineCustom/index.js +0 -273
- package/es/customComponents/TimeLineCustom/index.less +0 -180
- package/es/customComponents/Trend/index.d.ts +0 -10
- package/es/customComponents/Trend/index.js +0 -49
- package/es/customComponents/Trend/index.less +0 -41
- package/es/customComponents/VerticalBox/index.d.ts +0 -15
- package/es/customComponents/VerticalBox/index.js +0 -138
- package/es/customComponents/VerticalBox/index.less +0 -7
- package/es/customComponents/VideoUpload/index.d.ts +0 -39
- package/es/customComponents/VideoUpload/index.js +0 -472
- package/es/customComponents/_utils/pathTools.d.ts +0 -1
- package/es/customComponents/_utils/pathTools.js +0 -15
- package/es/customComponents/_utils/pathTools.test.d.ts +0 -1
- package/es/customComponents/index.d.ts +0 -7
- package/es/customComponents/index.js +0 -16
- package/es/framework/AuthorizationWrapper/index.js +0 -117
- package/es/framework/Base/index.d.ts +0 -68
- package/es/framework/Base/index.js +0 -338
- package/es/framework/ButtonExtension/SelectButton/Base/index.js +0 -116
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +0 -177
- package/es/framework/Common/index.js +0 -2481
- package/es/framework/Common/index.less +0 -13
- package/es/framework/Core/index.js +0 -79
- package/es/framework/CustomBase/index.d.ts +0 -8
- package/es/framework/CustomBase/index.js +0 -77
- package/es/framework/CustomWrapper/Supplement/index.js +0 -64
- package/es/framework/CustomWrapper/SupplementCore/index.js +0 -150
- package/es/framework/CustomWrapper/SupplementWrapper/index.js +0 -58
- package/es/framework/DataDrawer/Base/index.js +0 -447
- package/es/framework/DataDrawer/Base/index.less +0 -27
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +0 -98
- package/es/framework/DataDrawer/BaseLoadDrawer/index.js +0 -75
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +0 -100
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +0 -87
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +0 -83
- package/es/framework/DataForm/BaseAddForm/index.js +0 -328
- package/es/framework/DataForm/BaseAddForm/index.less +0 -51
- package/es/framework/DataForm/BaseUpdateForm/index.js +0 -202
- package/es/framework/DataForm/BaseUpdateFormContent/index.js +0 -62
- package/es/framework/DataForm/BaseUpdateFormTab/index.js +0 -49
- package/es/framework/DataListView/Base/index.js +0 -1578
- package/es/framework/DataListView/Base/index.less +0 -161
- package/es/framework/DataListView/BatchAction/index.js +0 -103
- package/es/framework/DataListView/BatchAction/index.less +0 -5
- package/es/framework/DataListView/ColumnSetting/DndItem.js +0 -139
- package/es/framework/DataListView/ColumnSetting/index.js +0 -368
- package/es/framework/DataListView/ColumnSetting/index.less +0 -60
- package/es/framework/DataListView/DensityAction/index.js +0 -118
- package/es/framework/DataMenuContainer/index.js +0 -341
- package/es/framework/DataMenuContainer/index.less +0 -100
- package/es/framework/DataModal/Base/index.js +0 -285
- package/es/framework/DataModal/Base/index.less +0 -6
- package/es/framework/DataModal/BaseAddModal/index.js +0 -70
- package/es/framework/DataModal/BaseLoadModal/index.js +0 -75
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +0 -113
- package/es/framework/DataModal/BaseSelectModal/index.js +0 -73
- package/es/framework/DataModal/BaseUpdateModal/index.js +0 -49
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +0 -162
- package/es/framework/DataMultiPageView/InnerMultiPage/index.js +0 -62
- package/es/framework/DataMultiPageView/InnerMultiPage/index.less +0 -125
- package/es/framework/DataMultiPageView/MultiPage/index.js +0 -333
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +0 -511
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.less +0 -65
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +0 -117
- package/es/framework/DataOperation/Base/index.js +0 -380
- package/es/framework/DataOperation/BaseView/index.js +0 -78
- package/es/framework/DataOperation/BaseWindow/index.js +0 -378
- package/es/framework/DataSinglePageView/InnerSinglePage/index.js +0 -62
- package/es/framework/DataSinglePageView/InnerSinglePage/index.less +0 -50
- package/es/framework/DataSinglePageView/SinglePage/index.js +0 -278
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +0 -489
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.less +0 -33
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +0 -120
- package/es/framework/DataSingleView/DataCore/index.js +0 -330
- package/es/framework/DataSingleView/DataCore/index.less +0 -7
- package/es/framework/DataSingleView/DataLoad/index.js +0 -169
- package/es/framework/DataTabContainer/index.js +0 -280
- package/es/framework/DataTabContainer/index.less +0 -51
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +0 -185
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +0 -191
- package/es/framework/Wrapper/index.js +0 -58
- package/es/framework/index.js +0 -60
- package/es/utils/Authorized.d.ts +0 -4
- package/es/utils/Authorized.js +0 -52
- package/es/utils/Yuan.d.ts +0 -13
- package/es/utils/Yuan.js +0 -92
- package/es/utils/actionAssist.d.ts +0 -44
- package/es/utils/actionAssist.js +0 -467
- package/es/utils/appConfiguration.d.ts +0 -70
- package/es/utils/appConfiguration.js +0 -403
- package/es/utils/authority.d.ts +0 -7
- package/es/utils/authority.js +0 -259
- package/es/utils/cacheAssist.d.ts +0 -85
- package/es/utils/cacheAssist.js +0 -317
- package/es/utils/constants.d.ts +0 -859
- package/es/utils/constants.js +0 -1540
- package/es/utils/core.d.ts +0 -25
- package/es/utils/core.js +0 -95
- package/es/utils/defaultSettingsSpecial.d.ts +0 -67
- package/es/utils/defaultSettingsSpecial.js +0 -53
- package/es/utils/developAssist.d.ts +0 -41
- package/es/utils/developAssist.js +0 -224
- package/es/utils/dva.d.ts +0 -31
- package/es/utils/dva.js +0 -54
- package/es/utils/globalModel.d.ts +0 -17
- package/es/utils/globalModel.js +0 -40
- package/es/utils/globalStorageAssist.d.ts +0 -78
- package/es/utils/globalStorageAssist.js +0 -239
- package/es/utils/localStorageAssist.d.ts +0 -47
- package/es/utils/localStorageAssist.js +0 -116
- package/es/utils/mediaDefault.d.ts +0 -11
- package/es/utils/mediaDefault.js +0 -24
- package/es/utils/proLayoutCollection.d.ts +0 -12
- package/es/utils/proLayoutCollection.js +0 -76
- package/es/utils/request.d.ts +0 -5
- package/es/utils/request.js +0 -243
- package/es/utils/requestAssistor.d.ts +0 -79
- package/es/utils/requestAssistor.js +0 -596
- package/es/utils/sessionStorageAssist.d.ts +0 -47
- package/es/utils/sessionStorageAssist.js +0 -116
- package/es/utils/tools.d.ts +0 -698
- package/es/utils/tools.js +0 -2205
- package/es/utils/typeCheck.d.ts +0 -21
- package/es/utils/typeCheck.js +0 -58
- package/es/utils/typeConvert.d.ts +0 -7
- package/es/utils/typeConvert.js +0 -16
- package/es/utils/utils.d.ts +0 -5
- package/es/utils/utils.js +0 -70
- package/es/utils/utils.less +0 -63
- package/es/utils/utils.test.d.ts +0 -1
- package/es/utils/virtualRequest.d.ts +0 -51
- package/es/utils/virtualRequest.js +0 -320
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.empty = empty;
|
|
7
|
-
exports.getApiSuccessCode = getApiSuccessCode;
|
|
8
|
-
exports.getApiVersion = getApiVersion;
|
|
9
|
-
exports.getAppDescription = getAppDescription;
|
|
10
|
-
exports.getAppInitConfigData = getAppInitConfigData;
|
|
11
|
-
exports.getAppName = getAppName;
|
|
12
|
-
exports.getAudioUploadMaxSize = getAudioUploadMaxSize;
|
|
13
|
-
exports.getAuthenticationFailCode = getAuthenticationFailCode;
|
|
14
|
-
exports.getCompanyName = getCompanyName;
|
|
15
|
-
exports.getCopyright = getCopyright;
|
|
16
|
-
exports.getEmptyLogo = getEmptyLogo;
|
|
17
|
-
exports.getEntranceLogo = getEntranceLogo;
|
|
18
|
-
exports.getEntrancePath = getEntrancePath;
|
|
19
|
-
exports.getFileUploadMaxSize = getFileUploadMaxSize;
|
|
20
|
-
exports.getImageUploadMaxSize = getImageUploadMaxSize;
|
|
21
|
-
exports.getLeftBarLogo = getLeftBarLogo;
|
|
22
|
-
exports.getLeftBarText = getLeftBarText;
|
|
23
|
-
exports.getPlatformName = getPlatformName;
|
|
24
|
-
exports.getShareLogo = getShareLogo;
|
|
25
|
-
exports.getShareLogoName = getShareLogoName;
|
|
26
|
-
exports.getShowLogInConsole = getShowLogInConsole;
|
|
27
|
-
exports.getShowLogoInEntrance = getShowLogoInEntrance;
|
|
28
|
-
exports.getShowRequestInfo = getShowRequestInfo;
|
|
29
|
-
exports.getShowSelectLanguage = getShowSelectLanguage;
|
|
30
|
-
exports.getShowUseVirtualRequestMessage = getShowUseVirtualRequestMessage;
|
|
31
|
-
exports.getTinymceApiKey = getTinymceApiKey;
|
|
32
|
-
exports.getTinymceImagesUploadUrl = getTinymceImagesUploadUrl;
|
|
33
|
-
exports.getTitle = getTitle;
|
|
34
|
-
exports.getUseNprogress = getUseNprogress;
|
|
35
|
-
exports.getUseVirtualRequest = getUseVirtualRequest;
|
|
36
|
-
exports.getVideoUploadMaxSize = getVideoUploadMaxSize;
|
|
37
|
-
exports.logShowInConsole = logShowInConsole;
|
|
38
|
-
|
|
39
|
-
var _constants = require("./constants");
|
|
40
|
-
|
|
41
|
-
var _core = require("./core");
|
|
42
|
-
|
|
43
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
44
|
-
|
|
45
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
46
|
-
|
|
47
|
-
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; }
|
|
48
|
-
|
|
49
|
-
function getAppInitConfigData() {
|
|
50
|
-
var appInitConfig = _constants.appInitDefault;
|
|
51
|
-
|
|
52
|
-
if ((0, _core.isBrowser)()) {
|
|
53
|
-
if ((window.appInitCustomLocal || null) != null) {
|
|
54
|
-
appInitConfig = _objectSpread(_objectSpread({}, appInitConfig), window.appInitCustomLocal);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
if ((window.appInitCustomRemote || null) != null) {
|
|
58
|
-
appInitConfig = _objectSpread(_objectSpread({}, appInitConfig), window.appInitCustomRemote);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return appInitConfig;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function logShowInConsole() {
|
|
66
|
-
var appInit = getAppInitConfigData();
|
|
67
|
-
var result = !!(appInit.showLogInConsole || false);
|
|
68
|
-
return result;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function getTinymceImagesUploadUrl() {
|
|
72
|
-
var appInit = getAppInitConfigData();
|
|
73
|
-
|
|
74
|
-
var _tinymceImagesUploadU = _objectSpread(_objectSpread({}, {
|
|
75
|
-
tinymceImagesUploadUrl: null
|
|
76
|
-
}), appInit || {}),
|
|
77
|
-
tinymceImagesUploadUrl = _tinymceImagesUploadU.tinymceImagesUploadUrl;
|
|
78
|
-
|
|
79
|
-
return tinymceImagesUploadUrl || '';
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function getTinymceApiKey() {
|
|
83
|
-
var appInit = getAppInitConfigData();
|
|
84
|
-
|
|
85
|
-
var _tinymceApiKey = _objectSpread(_objectSpread({}, {
|
|
86
|
-
tinymceApiKey: ''
|
|
87
|
-
}), appInit || {}),
|
|
88
|
-
tinymceApiKey = _tinymceApiKey.tinymceApiKey;
|
|
89
|
-
|
|
90
|
-
return tinymceApiKey || '';
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function getUseNprogress() {
|
|
94
|
-
var appInit = getAppInitConfigData();
|
|
95
|
-
|
|
96
|
-
var _useNprogress = _objectSpread(_objectSpread({}, {
|
|
97
|
-
useNprogress: true
|
|
98
|
-
}), appInit || {}),
|
|
99
|
-
useNprogress = _useNprogress.useNprogress;
|
|
100
|
-
|
|
101
|
-
return useNprogress;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function getFileUploadMaxSize() {
|
|
105
|
-
var appInit = getAppInitConfigData();
|
|
106
|
-
|
|
107
|
-
var _fileUploadMaxSize = _objectSpread(_objectSpread({}, {
|
|
108
|
-
fileUploadMaxSize: 2
|
|
109
|
-
}), appInit || {}),
|
|
110
|
-
fileUploadMaxSize = _fileUploadMaxSize.fileUploadMaxSize;
|
|
111
|
-
|
|
112
|
-
return fileUploadMaxSize || 2;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function getAudioUploadMaxSize() {
|
|
116
|
-
var appInit = getAppInitConfigData();
|
|
117
|
-
|
|
118
|
-
var _audioUploadMaxSize = _objectSpread(_objectSpread({}, {
|
|
119
|
-
audioUploadMaxSize: 4
|
|
120
|
-
}), appInit || {}),
|
|
121
|
-
audioUploadMaxSize = _audioUploadMaxSize.audioUploadMaxSize;
|
|
122
|
-
|
|
123
|
-
return audioUploadMaxSize || 4;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
function getVideoUploadMaxSize() {
|
|
127
|
-
var appInit = getAppInitConfigData();
|
|
128
|
-
|
|
129
|
-
var _videoUploadMaxSize = _objectSpread(_objectSpread({}, {
|
|
130
|
-
videoUploadMaxSize: 4
|
|
131
|
-
}), appInit || {}),
|
|
132
|
-
videoUploadMaxSize = _videoUploadMaxSize.videoUploadMaxSize;
|
|
133
|
-
|
|
134
|
-
return videoUploadMaxSize || 4;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
function getImageUploadMaxSize() {
|
|
138
|
-
var appInit = getAppInitConfigData();
|
|
139
|
-
|
|
140
|
-
var _imageUploadMaxSize = _objectSpread(_objectSpread({}, {
|
|
141
|
-
imageUploadMaxSize: 2
|
|
142
|
-
}), appInit || {}),
|
|
143
|
-
imageUploadMaxSize = _imageUploadMaxSize.imageUploadMaxSize;
|
|
144
|
-
|
|
145
|
-
return imageUploadMaxSize || 2;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function getShowSelectLanguage() {
|
|
149
|
-
var appInit = getAppInitConfigData();
|
|
150
|
-
|
|
151
|
-
var _showSelectLanguage = _objectSpread(_objectSpread({}, {
|
|
152
|
-
showSelectLanguage: false
|
|
153
|
-
}), appInit || {}),
|
|
154
|
-
showSelectLanguage = _showSelectLanguage.showSelectLanguage;
|
|
155
|
-
|
|
156
|
-
return showSelectLanguage || false;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
function getShowLogoInEntrance() {
|
|
160
|
-
var appInit = getAppInitConfigData();
|
|
161
|
-
|
|
162
|
-
var _showLogoInEntrance = _objectSpread(_objectSpread({}, {
|
|
163
|
-
showLogoInEntrance: false
|
|
164
|
-
}), appInit || {}),
|
|
165
|
-
showLogoInEntrance = _showLogoInEntrance.showLogoInEntrance;
|
|
166
|
-
|
|
167
|
-
return showLogoInEntrance || false;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
function getEmptyLogo() {
|
|
171
|
-
var appInit = getAppInitConfigData();
|
|
172
|
-
|
|
173
|
-
var _emptyLogo = _objectSpread(_objectSpread({}, {
|
|
174
|
-
emptyLogo: _constants.emptyLogo
|
|
175
|
-
}), appInit || {}),
|
|
176
|
-
emptyLogo = _emptyLogo.emptyLogo;
|
|
177
|
-
|
|
178
|
-
return emptyLogo || _constants.emptyLogo;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
function getApiSuccessCode() {
|
|
182
|
-
var appInit = getAppInitConfigData();
|
|
183
|
-
|
|
184
|
-
var _apiSuccessCode = _objectSpread(_objectSpread({}, {
|
|
185
|
-
apiSuccessCode: _constants.apiSuccessCode
|
|
186
|
-
}), appInit || {}),
|
|
187
|
-
apiSuccessCode = _apiSuccessCode.apiSuccessCode;
|
|
188
|
-
|
|
189
|
-
return apiSuccessCode || _constants.apiSuccessCode;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
function getAuthenticationFailCode() {
|
|
193
|
-
var appInit = getAppInitConfigData();
|
|
194
|
-
|
|
195
|
-
var _authenticationFailCo = _objectSpread({}, _objectSpread({
|
|
196
|
-
authenticationFailCode: _constants.authenticationFailCode
|
|
197
|
-
}, appInit || {})),
|
|
198
|
-
authenticationFailCode = _authenticationFailCo.authenticationFailCode;
|
|
199
|
-
|
|
200
|
-
return authenticationFailCode || _constants.authenticationFailCode;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
function getEntrancePath() {
|
|
204
|
-
var appInit = getAppInitConfigData();
|
|
205
|
-
|
|
206
|
-
var _entrancePath = _objectSpread(_objectSpread({}, {
|
|
207
|
-
entrancePath: ''
|
|
208
|
-
}), appInit || {}),
|
|
209
|
-
entrancePath = _entrancePath.entrancePath;
|
|
210
|
-
|
|
211
|
-
return entrancePath || '';
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
function getApiVersion() {
|
|
215
|
-
var appInit = getAppInitConfigData();
|
|
216
|
-
|
|
217
|
-
var _apiVersion = _objectSpread(_objectSpread({}, {
|
|
218
|
-
apiVersion: ''
|
|
219
|
-
}), appInit || {}),
|
|
220
|
-
apiVersion = _apiVersion.apiVersion;
|
|
221
|
-
|
|
222
|
-
return apiVersion || '';
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
function getUseVirtualRequest() {
|
|
226
|
-
var appInit = getAppInitConfigData();
|
|
227
|
-
|
|
228
|
-
var _useVirtualRequest = _objectSpread(_objectSpread({}, {
|
|
229
|
-
useVirtualRequest: false
|
|
230
|
-
}), appInit || {}),
|
|
231
|
-
useVirtualRequest = _useVirtualRequest.useVirtualRequest;
|
|
232
|
-
|
|
233
|
-
return useVirtualRequest || false;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
function getShowUseVirtualRequestMessage() {
|
|
237
|
-
var appInit = getAppInitConfigData();
|
|
238
|
-
|
|
239
|
-
var _showUseVirtualReques = _objectSpread(_objectSpread({}, {
|
|
240
|
-
showUseVirtualRequestMessage: false
|
|
241
|
-
}), appInit || {}),
|
|
242
|
-
showUseVirtualRequestMessage = _showUseVirtualReques.showUseVirtualRequestMessage;
|
|
243
|
-
|
|
244
|
-
return showUseVirtualRequestMessage || false;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
function getShowLogInConsole() {
|
|
248
|
-
var appInit = getAppInitConfigData();
|
|
249
|
-
|
|
250
|
-
var _showLogInConsole = _objectSpread(_objectSpread({}, {
|
|
251
|
-
showLogInConsole: false
|
|
252
|
-
}), appInit || {}),
|
|
253
|
-
showLogInConsole = _showLogInConsole.showLogInConsole;
|
|
254
|
-
|
|
255
|
-
return showLogInConsole || false;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
function getShowRequestInfo() {
|
|
259
|
-
var appInit = getAppInitConfigData();
|
|
260
|
-
|
|
261
|
-
var _showRequestInfo = _objectSpread(_objectSpread({}, {
|
|
262
|
-
showRequestInfo: false
|
|
263
|
-
}), appInit || {}),
|
|
264
|
-
showRequestInfo = _showRequestInfo.showRequestInfo;
|
|
265
|
-
|
|
266
|
-
return showRequestInfo || false;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
function getPlatformName() {
|
|
270
|
-
var appInit = getAppInitConfigData();
|
|
271
|
-
|
|
272
|
-
var _platformName = _objectSpread(_objectSpread({}, {
|
|
273
|
-
platformName: ''
|
|
274
|
-
}), appInit || {}),
|
|
275
|
-
platformName = _platformName.platformName;
|
|
276
|
-
|
|
277
|
-
return platformName || '';
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
function getAppName() {
|
|
281
|
-
var appInit = getAppInitConfigData();
|
|
282
|
-
|
|
283
|
-
var _appName = _objectSpread(_objectSpread({}, {
|
|
284
|
-
appName: ''
|
|
285
|
-
}), appInit || {}),
|
|
286
|
-
appName = _appName.appName;
|
|
287
|
-
|
|
288
|
-
return appName || '';
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
function getAppDescription() {
|
|
292
|
-
var appInit = getAppInitConfigData();
|
|
293
|
-
|
|
294
|
-
var _appDescription = _objectSpread(_objectSpread({}, {
|
|
295
|
-
appDescription: ''
|
|
296
|
-
}), appInit || {}),
|
|
297
|
-
appDescription = _appDescription.appDescription;
|
|
298
|
-
|
|
299
|
-
return appDescription || '';
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
function getTitle() {
|
|
303
|
-
var appInit = getAppInitConfigData();
|
|
304
|
-
|
|
305
|
-
var _appName2 = _objectSpread(_objectSpread({}, {
|
|
306
|
-
appName: ''
|
|
307
|
-
}), appInit || {}),
|
|
308
|
-
appName = _appName2.appName;
|
|
309
|
-
|
|
310
|
-
return appName || '';
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
function getEntranceLogo() {
|
|
314
|
-
var appInit = getAppInitConfigData();
|
|
315
|
-
|
|
316
|
-
var _entranceLogo = _objectSpread(_objectSpread({}, {
|
|
317
|
-
entranceLogo: _constants.emptyLogo
|
|
318
|
-
}), appInit || {}),
|
|
319
|
-
entranceLogo = _entranceLogo.entranceLogo;
|
|
320
|
-
|
|
321
|
-
return entranceLogo || _constants.emptyLogo;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
function getShareLogo() {
|
|
325
|
-
var appInit = getAppInitConfigData();
|
|
326
|
-
|
|
327
|
-
var _shareLogo = _objectSpread(_objectSpread({}, {
|
|
328
|
-
shareLogo: _constants.emptyLogo
|
|
329
|
-
}), appInit || {}),
|
|
330
|
-
shareLogo = _shareLogo.shareLogo;
|
|
331
|
-
|
|
332
|
-
return shareLogo || _constants.emptyLogo;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
function getShareLogoName() {
|
|
336
|
-
var appInit = getAppInitConfigData();
|
|
337
|
-
|
|
338
|
-
var _shareLogoName = _objectSpread(_objectSpread({}, {
|
|
339
|
-
shareLogoName: ''
|
|
340
|
-
}), appInit || {}),
|
|
341
|
-
shareLogoName = _shareLogoName.shareLogoName;
|
|
342
|
-
|
|
343
|
-
return shareLogoName || '';
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
function getCompanyName() {
|
|
347
|
-
var appInit = getAppInitConfigData();
|
|
348
|
-
|
|
349
|
-
var _companyName = _objectSpread(_objectSpread({}, {
|
|
350
|
-
companyName: ''
|
|
351
|
-
}), appInit || {}),
|
|
352
|
-
companyName = _companyName.companyName;
|
|
353
|
-
|
|
354
|
-
return companyName || '';
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
function getLeftBarLogo(remoteLogo) {
|
|
358
|
-
if (!(0, _core.stringIsNullOrWhiteSpace)(remoteLogo || null)) {
|
|
359
|
-
return remoteLogo;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
var appInit = getAppInitConfigData();
|
|
363
|
-
|
|
364
|
-
var _leftBarLogo = _objectSpread(_objectSpread({}, {
|
|
365
|
-
leftBarLogo: _constants.emptyLogo
|
|
366
|
-
}), appInit || {}),
|
|
367
|
-
leftBarLogo = _leftBarLogo.leftBarLogo;
|
|
368
|
-
|
|
369
|
-
return leftBarLogo || _constants.emptyLogo;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
function getLeftBarText() {
|
|
373
|
-
var appInit = getAppInitConfigData();
|
|
374
|
-
|
|
375
|
-
var _leftBarText = _objectSpread(_objectSpread({}, {
|
|
376
|
-
leftBarText: ''
|
|
377
|
-
}), appInit || {}),
|
|
378
|
-
leftBarText = _leftBarText.leftBarText;
|
|
379
|
-
|
|
380
|
-
return leftBarText || '';
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
function getCopyright() {
|
|
384
|
-
var appInit = getAppInitConfigData();
|
|
385
|
-
|
|
386
|
-
var _copyright = _objectSpread(_objectSpread({}, {
|
|
387
|
-
copyright: ''
|
|
388
|
-
}), appInit || {}),
|
|
389
|
-
copyright = _copyright.copyright;
|
|
390
|
-
|
|
391
|
-
return copyright || '';
|
|
392
|
-
}
|
|
393
|
-
/**
|
|
394
|
-
* 占位函数
|
|
395
|
-
*
|
|
396
|
-
* @export
|
|
397
|
-
* @returns
|
|
398
|
-
*/
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
function empty() {
|
|
402
|
-
return {};
|
|
403
|
-
}
|
package/es/utils/authority.d.ts
DELETED
package/es/utils/authority.js
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.checkHasAuthority = checkHasAuthority;
|
|
7
|
-
exports.checkIsSuper = checkIsSuper;
|
|
8
|
-
exports.setAuthority = setAuthority;
|
|
9
|
-
|
|
10
|
-
var _Authorized = require("./Authorized");
|
|
11
|
-
|
|
12
|
-
var _cacheAssist = require("./cacheAssist");
|
|
13
|
-
|
|
14
|
-
var _globalStorageAssist = require("./globalStorageAssist");
|
|
15
|
-
|
|
16
|
-
var _localStorageAssist = require("./localStorageAssist");
|
|
17
|
-
|
|
18
|
-
var _tools = require("./tools");
|
|
19
|
-
|
|
20
|
-
var authorityCollectionCache = 'authorityCollectionCache';
|
|
21
|
-
var superPermissionCacheKey = 'hasSuperPermission';
|
|
22
|
-
|
|
23
|
-
function getAllAuthorityCore() {
|
|
24
|
-
var result = [];
|
|
25
|
-
var existCache = (0, _cacheAssist.hasCache)({
|
|
26
|
-
key: authorityCollectionCache
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
if (existCache) {
|
|
30
|
-
result = (0, _cacheAssist.getCache)({
|
|
31
|
-
key: authorityCollectionCache
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
if ((0, _tools.isArray)(result)) {
|
|
35
|
-
return result;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
var authorityString = (0, _localStorageAssist.getStringFromLocalStorage)(_globalStorageAssist.storageKeyCollection.authorityCollection);
|
|
40
|
-
var authority;
|
|
41
|
-
|
|
42
|
-
try {
|
|
43
|
-
authority = JSON.parse(authorityString);
|
|
44
|
-
} catch (e) {
|
|
45
|
-
authority = authorityString;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (typeof authority === 'string') {
|
|
49
|
-
result.push(authority);
|
|
50
|
-
} else {
|
|
51
|
-
result = (0, _tools.isArray)(authority) ? authority : [];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
(0, _cacheAssist.setCache)({
|
|
55
|
-
key: authorityCollectionCache,
|
|
56
|
-
value: result
|
|
57
|
-
});
|
|
58
|
-
return result;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function getSuperPermission() {
|
|
62
|
-
var result = '';
|
|
63
|
-
var accessWayCollection = (0, _globalStorageAssist.getAccessWayCollectionCache)();
|
|
64
|
-
|
|
65
|
-
if (!(0, _tools.isObject)(accessWayCollection)) {
|
|
66
|
-
return result;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
var superPermission = (0, _tools.getValueByKey)({
|
|
70
|
-
data: accessWayCollection,
|
|
71
|
-
key: 'super'
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
if ((0, _tools.isObject)(superPermission)) {
|
|
75
|
-
var superAuth = (0, _tools.getValueByKey)({
|
|
76
|
-
data: superPermission,
|
|
77
|
-
key: 'permission'
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
if ((0, _tools.isString)(superAuth)) {
|
|
81
|
-
result = superAuth;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return result;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function getAllAuthority() {
|
|
89
|
-
return getAllAuthorityCore();
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function checkIsSuper() {
|
|
93
|
-
var existCache = (0, _cacheAssist.hasCache)({
|
|
94
|
-
key: superPermissionCacheKey
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
if (existCache) {
|
|
98
|
-
var result = (0, _cacheAssist.getCache)({
|
|
99
|
-
key: superPermissionCacheKey
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
if (result !== undefined) {
|
|
103
|
-
return !!result;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
var superPermission = getSuperPermission();
|
|
108
|
-
|
|
109
|
-
if (!(0, _tools.stringIsNullOrWhiteSpace)(superPermission)) {
|
|
110
|
-
var list = getAllAuthority();
|
|
111
|
-
var isSuper = (list || []).find(function (o) {
|
|
112
|
-
return o === superPermission;
|
|
113
|
-
}) || '';
|
|
114
|
-
|
|
115
|
-
if (isSuper === superPermission) {
|
|
116
|
-
(0, _cacheAssist.setCache)({
|
|
117
|
-
key: superPermissionCacheKey,
|
|
118
|
-
value: true
|
|
119
|
-
});
|
|
120
|
-
return true;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
(0, _cacheAssist.setCache)({
|
|
125
|
-
key: superPermissionCacheKey,
|
|
126
|
-
value: false
|
|
127
|
-
});
|
|
128
|
-
return false;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
function checkHasAuthorities(authCollection) {
|
|
132
|
-
var result = false;
|
|
133
|
-
|
|
134
|
-
if ((0, _tools.isArray)(authCollection)) {
|
|
135
|
-
authCollection.forEach(function (auth) {
|
|
136
|
-
result = checkHasAuthorityCore(auth);
|
|
137
|
-
|
|
138
|
-
if (result) {
|
|
139
|
-
return true;
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
for (var _auth in authCollection) {
|
|
144
|
-
result = checkHasAuthorityCore(_auth);
|
|
145
|
-
|
|
146
|
-
if (result) {
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
return result;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
if ((0, _tools.isString)(authCollection)) {
|
|
155
|
-
result = checkHasAuthorityCore(authCollection);
|
|
156
|
-
return result;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
var text = '无效的待验证权限';
|
|
160
|
-
(0, _tools.showErrorMessage)({
|
|
161
|
-
message: text
|
|
162
|
-
});
|
|
163
|
-
(0, _tools.recordError)({
|
|
164
|
-
auth: auth
|
|
165
|
-
});
|
|
166
|
-
return result;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
function checkHasAuthorityCore(auth) {
|
|
170
|
-
if (checkIsSuper()) {
|
|
171
|
-
return true;
|
|
172
|
-
} // if (isObject(auth)) {
|
|
173
|
-
// console.log({
|
|
174
|
-
// auth,
|
|
175
|
-
// attachedTargetName:
|
|
176
|
-
// (this || null) != null
|
|
177
|
-
// ? (this.constructor || null) != null
|
|
178
|
-
// ? this.constructor.name
|
|
179
|
-
// : ''
|
|
180
|
-
// : '',
|
|
181
|
-
// });
|
|
182
|
-
// }
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
var result = '0';
|
|
186
|
-
var existCache = (0, _cacheAssist.hasCache)({
|
|
187
|
-
key: auth
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
if (existCache) {
|
|
191
|
-
result = (0, _cacheAssist.getCache)({
|
|
192
|
-
key: auth
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
if (result !== undefined) {
|
|
196
|
-
return result !== '0';
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
var list = getAllAuthority();
|
|
201
|
-
var accessWayCollection = (0, _globalStorageAssist.getAccessWayCollectionCache)();
|
|
202
|
-
var v = (list || []).find(function (o) {
|
|
203
|
-
return o === auth;
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
if ((v !== null && v !== void 0 ? v : null) == null) {
|
|
207
|
-
(0, _tools.recordObject)({
|
|
208
|
-
checkAuthority: auth,
|
|
209
|
-
listAuthority: list,
|
|
210
|
-
accessWayCollection: accessWayCollection
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
result = !!(v !== undefined) ? '1' : '0';
|
|
215
|
-
(0, _cacheAssist.setCache)({
|
|
216
|
-
key: auth,
|
|
217
|
-
value: result
|
|
218
|
-
});
|
|
219
|
-
return result !== '0';
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
function checkHasAuthority(auth) {
|
|
223
|
-
// if (isObject(auth)) {
|
|
224
|
-
// console.log({
|
|
225
|
-
// auth,
|
|
226
|
-
// attachedTargetName:
|
|
227
|
-
// (this || null) != null
|
|
228
|
-
// ? (this.constructor || null) != null
|
|
229
|
-
// ? this.constructor.name
|
|
230
|
-
// : ''
|
|
231
|
-
// : '',
|
|
232
|
-
// });
|
|
233
|
-
// }
|
|
234
|
-
if ((0, _tools.isArray)(auth)) {
|
|
235
|
-
return checkHasAuthorities(auth);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
if ((0, _tools.isString)(auth)) {
|
|
239
|
-
return checkHasAuthorityCore(auth);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
(0, _tools.recordObject)({
|
|
243
|
-
auth: auth
|
|
244
|
-
});
|
|
245
|
-
throw new Error('auth need string or string array, please check in console.');
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* 缓存用户权限数据体
|
|
249
|
-
* @param {*} authority
|
|
250
|
-
*/
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
function setAuthority(authority) {
|
|
254
|
-
var authorityCollection = typeof authority === 'string' ? [authority] : authority;
|
|
255
|
-
(0, _localStorageAssist.saveJsonToLocalStorage)(_globalStorageAssist.storageKeyCollection.authorityCollection, authorityCollection);
|
|
256
|
-
(0, _cacheAssist.flushAllCache)(); // auto reload
|
|
257
|
-
|
|
258
|
-
(0, _Authorized.reloadAuthorized)();
|
|
259
|
-
}
|