@cloud-app-dev/vidc 4.0.22 → 4.0.23
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/AppContext/Sync.d.ts +8 -0
- package/es/AppContext/index.d.ts +10 -0
- package/es/AppContext/index.js +1 -1
- package/es/AppContext/static.d.ts +8 -0
- package/es/Auth/index.d.ts +8 -0
- package/es/AutoExit/index.d.ts +6 -0
- package/es/CheckGroupFixed/demo.d.ts +3 -0
- package/es/CheckGroupFixed/index.d.ts +24 -0
- package/es/Config/index.d.ts +4 -0
- package/es/Config/utils.d.ts +4 -0
- package/es/ConfigContext/index.d.ts +17 -0
- package/es/CustomRenderSelect/index.d.ts +12 -0
- package/es/DBTools/index.d.ts +25 -0
- package/es/DisableMark/index.d.ts +9 -0
- package/es/DomMove/demo.d.ts +2 -0
- package/es/DomMove/index.d.ts +16 -0
- package/es/DomMove/utils.d.ts +8 -0
- package/es/Drag/DragAndDropItem.d.ts +4 -0
- package/es/Drag/DropItem.d.ts +4 -0
- package/es/Drag/index.d.ts +7 -9
- package/es/DynamicGridList/Demo.d.ts +3 -0
- package/es/DynamicGridList/index.d.ts +24 -0
- package/es/DynamicList/demo.d.ts +2 -0
- package/es/DynamicList/index.d.ts +22 -0
- package/es/DynamicList/utils.d.ts +4 -0
- package/es/ErrorFallback/index.d.ts +9 -0
- package/es/EventTools/index.d.ts +3 -0
- package/es/FrontendPlayer/index.d.ts +4 -0
- package/es/FullScreen/index.d.ts +22 -0
- package/es/GridList/Demo.d.ts +3 -0
- package/es/GridList/data.d.ts +16 -0
- package/es/GridList/hook.d.ts +13 -0
- package/es/GridList/index.d.ts +15 -0
- package/es/GridList/utils.d.ts +9 -0
- package/es/HightLevel/index.d.ts +9 -0
- package/es/IconFont/index.d.ts +12 -0
- package/es/ImageView/index.d.ts +20 -0
- package/es/InstanceHistory/index.d.ts +3 -0
- package/es/LabelPlayer/demo.d.ts +2 -0
- package/es/LabelPlayer/index.d.ts +21 -0
- package/es/LabelValue/index.d.ts +15 -0
- package/es/List/demo.d.ts +3 -0
- package/es/List/index.d.ts +28 -0
- package/es/ListWithSizeAnimate/demo.d.ts +2 -0
- package/es/ListWithSizeAnimate/index.d.ts +14 -0
- package/es/LoaderScript/index.d.ts +47 -0
- package/es/LoaderScript/utils.d.ts +13 -0
- package/es/Map/BasicMap/AMapInstance.d.ts +19 -0
- package/es/Map/BasicMap/AMapInstance.js +2 -0
- package/es/Map/BasicMap/LeafletInstance.d.ts +18 -0
- package/es/Map/BasicMap/LeafletInstance.js +4 -2
- package/es/Map/BasicMap/index.d.ts +9 -0
- package/es/Map/ClusterLayer/demo.d.ts +3 -0
- package/es/Map/ClusterLayer/hook.d.ts +5 -0
- package/es/Map/ClusterLayer/hook.js +6 -2
- package/es/Map/ClusterLayer/index.d.ts +6 -0
- package/es/Map/Config/index.d.ts +9 -0
- package/es/Map/Config/utils.d.ts +2 -0
- package/es/Map/Context/index.d.ts +11 -0
- package/es/Map/FindPio/index.d.ts +4 -0
- package/es/Map/InfoWindow/MakerLikeWindow.d.ts +4 -0
- package/es/Map/InfoWindow/MakerLikeWindow.js +27 -6
- package/es/Map/InfoWindow/demo.d.ts +3 -0
- package/es/Map/InfoWindow/index.d.ts +11 -0
- package/es/Map/InfoWindow/index.js +5 -1
- package/es/Map/LevelCenter/DragMarker/index.d.ts +10 -0
- package/es/Map/LevelCenter/DragMarker/index.js +1 -0
- package/es/Map/LevelCenter/demo.d.ts +3 -0
- package/es/Map/LevelCenter/index.d.ts +15 -0
- package/es/Map/LoaderMap/index.d.ts +7 -0
- package/es/Map/MapDrawSelect/demo.d.ts +3 -0
- package/es/Map/MapDrawSelect/index.d.ts +15 -0
- package/es/Map/MouseTool/index.d.ts +10 -0
- package/es/Map/MouseTool/useMouseTools.d.ts +7 -0
- package/es/Map/MouseTool/useMouseTools.js +2 -1
- package/es/Map/ResetTools/index.d.ts +10 -0
- package/es/Map/SinglePoint/demo.d.ts +3 -0
- package/es/Map/SinglePoint/index.d.ts +27 -0
- package/es/Map/SinglePoint/index.js +1 -0
- package/es/Map/hook/useMapEvent.d.ts +2 -0
- package/es/Map/hook/useMapType.d.ts +4 -0
- package/es/Map/icon.d.ts +2 -0
- package/es/Map/index.d.ts +24 -0
- package/es/Map/points.d.ts +74 -0
- package/es/Map/useMarker/index.d.ts +10 -0
- package/es/Map/withMap/index.d.ts +3 -0
- package/es/Picture/component/DefaultRects/RectInfo.d.ts +8 -0
- package/es/Picture/component/DefaultRects/RectInfo.js +3 -1
- package/es/Picture/component/DefaultRects/index.d.ts +13 -0
- package/es/Picture/component/DefaultRects/utils.d.ts +2 -0
- package/es/Picture/component/DefaultRects/utils.js +1 -1
- package/es/Picture/component/DrawRect/index.d.ts +13 -0
- package/es/Picture/component/RectMenu/index.d.ts +12 -0
- package/es/Picture/component/RectMenu/index.js +6 -0
- package/es/Picture/component/RectMenu/utils.d.ts +12 -0
- package/es/Picture/component/Tools/index.d.ts +12 -0
- package/es/Picture/component/WheelScale/index.d.ts +7 -0
- package/es/Picture/demo.d.ts +2 -0
- package/es/Picture/index.d.ts +5 -0
- package/es/Picture/loadCaptureRectImage.d.ts +3 -0
- package/es/Picture/useDraw.d.ts +1 -0
- package/es/Picture/utils.d.ts +26 -0
- package/es/Player/api/index.d.ts +68 -0
- package/es/Player/context.d.ts +17 -0
- package/es/Player/contraller_bar/bar.d.ts +8 -0
- package/es/Player/contraller_bar/contraller_event.d.ts +6 -0
- package/es/Player/contraller_bar/contraller_event.js +2 -0
- package/es/Player/contraller_bar/index.d.ts +14 -0
- package/es/Player/contraller_bar/left_bar.d.ts +10 -0
- package/es/Player/contraller_bar/right_bar.d.ts +8 -0
- package/es/Player/contraller_bar/time.d.ts +3 -0
- package/es/Player/contraller_bar/useBarStatus.d.ts +2 -0
- package/es/Player/contraller_bar/volume.d.ts +9 -0
- package/es/Player/contraller_bar/volume.js +1 -1
- package/es/Player/demo.d.ts +3 -0
- package/es/Player/empty.d.ts +2 -0
- package/es/Player/event/errorEvent.d.ts +14 -0
- package/es/Player/event/eventName.d.ts +18 -0
- package/es/Player/event/index.d.ts +24 -0
- package/es/Player/fps_play.d.ts +11 -0
- package/es/Player/frontend_player.d.ts +8 -0
- package/es/Player/frontend_timeline.d.ts +10 -0
- package/es/Player/iconfont.d.ts +5 -0
- package/es/Player/index.d.ts +2 -0
- package/es/Player/live_heart.d.ts +8 -0
- package/es/Player/message.d.ts +5 -0
- package/es/Player/message.js +4 -0
- package/es/Player/segment_player.d.ts +9 -0
- package/es/Player/segment_timeline.d.ts +12 -0
- package/es/Player/single_player.d.ts +5 -0
- package/es/Player/timeline.d.ts +5 -0
- package/es/Player/util.d.ts +43 -0
- package/es/PlayerExt/demo.d.ts +3 -0
- package/es/PlayerExt/index.d.ts +48 -0
- package/es/Progress/index.d.ts +7 -9
- package/es/ROI/demo.d.ts +3 -0
- package/es/ROI/index.d.ts +33 -0
- package/es/RefDrawer/Footer.d.ts +9 -0
- package/es/RefDrawer/demo.d.ts +3 -0
- package/es/RefDrawer/index.d.ts +26 -0
- package/es/RefModal/demo.d.ts +3 -0
- package/es/RefModal/index.d.ts +17 -0
- package/es/ScreenPlayer/Live.d.ts +5 -0
- package/es/ScreenPlayer/LiveTools.d.ts +29 -0
- package/es/ScreenPlayer/LiveTools.js +2 -2
- package/es/ScreenPlayer/PlayerWithExt.d.ts +34 -0
- package/es/ScreenPlayer/RatePick.d.ts +8 -0
- package/es/ScreenPlayer/Record.d.ts +10 -0
- package/es/ScreenPlayer/RecordTools.d.ts +38 -0
- package/es/ScreenPlayer/RecordTools.js +14 -14
- package/es/ScreenPlayer/ScreenSelect.d.ts +7 -0
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +17 -0
- package/es/ScreenPlayer/TimeMode.d.ts +7 -0
- package/es/ScreenPlayer/TimeSelect.d.ts +7 -0
- package/es/ScreenPlayer/demo.d.ts +2 -0
- package/es/ScreenPlayer/demo2.d.ts +2 -0
- package/es/ScreenPlayer/index.d.ts +6 -0
- package/es/ScreenPlayer/useTimeSlider.d.ts +25 -0
- package/es/ScreenPlayer/useTimeSlider.js +36 -36
- package/es/ScreenPlayer/useVideoFit.d.ts +5 -0
- package/es/ScreenPlayer/utils.d.ts +17 -0
- package/es/SegmentPlayer/index.d.ts +2 -0
- package/es/Service/http.d.ts +6 -0
- package/es/Service/index.d.ts +3 -0
- package/es/Service/middleware.d.ts +8 -0
- package/es/SocketEmitter/eventEmitter.d.ts +27 -0
- package/es/SocketEmitter/index.d.ts +24 -0
- package/es/TableLayout/index.d.ts +10 -0
- package/es/ThemeAntd/demo.d.ts +4 -0
- package/es/ThemeAntd/index.d.ts +7 -0
- package/es/Timeout/index.d.ts +26 -0
- package/es/bigNumberTransformCN/index.d.ts +5 -0
- package/es/cache/index.d.ts +34 -0
- package/es/copy/index.d.ts +1 -0
- package/es/getThemeStyle/index.d.ts +2 -0
- package/es/index.d.ts +62 -0
- package/es/likeGo/index.d.ts +2 -0
- package/es/likeGoSync/index.d.ts +2 -0
- package/es/logger/index.d.ts +7 -0
- package/es/nextTick/index.d.ts +1 -0
- package/es/recorder/demo.d.ts +3 -0
- package/es/recorder/index.d.ts +294 -0
- package/es/submidstr/index.d.ts +5 -0
- package/es/treeHelper/index.d.ts +11 -0
- package/es/useDrawROI/index.d.ts +16 -0
- package/es/useEventEmitterHandle/index.d.ts +2 -0
- package/es/useFullscreen/demo.d.ts +2 -0
- package/es/useFullscreen/index.d.ts +12 -0
- package/es/useHistory/index.d.ts +3 -0
- package/es/useInfiniteScroll/index.d.ts +16 -0
- package/es/useRafInterval/index.d.ts +5 -0
- package/es/useRafInterval/index.js +1 -0
- package/es/useSimpleState/index.d.ts +3 -0
- package/es/useVirtualList/index.d.ts +13 -0
- package/es/utils.d.ts +14 -0
- package/es/uuid/index.d.ts +1 -0
- package/package.json +1 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AppContextInterface, AppStoreType } from './interface';
|
|
3
|
+
interface ISyncProps {
|
|
4
|
+
stateChange: (options: AppContextInterface) => void;
|
|
5
|
+
storeChange: (store: AppStoreType) => void;
|
|
6
|
+
}
|
|
7
|
+
declare function Sync({ stateChange, storeChange }: ISyncProps): React.JSX.Element;
|
|
8
|
+
export default Sync;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AppContextInterface } from './interface';
|
|
3
|
+
declare function Provider({ children }: {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
Provider: typeof Provider;
|
|
8
|
+
Context: React.Context<AppContextInterface>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
package/es/AppContext/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import nextTick from "../nextTick";
|
|
|
17
17
|
import SocketEmitter from "../SocketEmitter";
|
|
18
18
|
import { _LOGIN_STATUS_EVENT_CHANGE_, _LOGIN_STATUS_SESSION_, _OPERATION_EVENT_CHANGE_, _OPERATION_SESSION_, _STORE_EVENT_CHANGE_, _STORE_SESSION_, _USER_EVENT_CHANGE_, _USER_SESSION_ } from "./static";
|
|
19
19
|
import Sync from "./Sync";
|
|
20
|
-
var Context = /*#__PURE__*/React.createContext(
|
|
20
|
+
var Context = /*#__PURE__*/React.createContext({});
|
|
21
21
|
function Provider(_ref) {
|
|
22
22
|
var children = _ref.children;
|
|
23
23
|
var _useState = useState({
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const _USER_EVENT_CHANGE_ = "_USER_EVENT_CHANGE_";
|
|
2
|
+
export declare const _OPERATION_EVENT_CHANGE_ = "_OPERATION_EVENT_CHANGE_";
|
|
3
|
+
export declare const _LOGIN_STATUS_EVENT_CHANGE_ = "_LOGIN_STATUS_EVENT_CHANGE_";
|
|
4
|
+
export declare const _STORE_EVENT_CHANGE_ = "_STORE_EVENT_CHANGE_";
|
|
5
|
+
export declare const _USER_SESSION_ = "_USER_SESSION_";
|
|
6
|
+
export declare const _OPERATION_SESSION_ = "_OPERATION_SESSION_";
|
|
7
|
+
export declare const _LOGIN_STATUS_SESSION_ = "_LOGIN_STATUS_SESSION_";
|
|
8
|
+
export declare const _STORE_SESSION_ = "_STORE_SESSION_";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface SourceDictType {
|
|
4
|
+
value?: string | number;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
}
|
|
8
|
+
interface ICheckGroupFixedProps {
|
|
9
|
+
/**
|
|
10
|
+
* label
|
|
11
|
+
*/
|
|
12
|
+
label: string;
|
|
13
|
+
/**
|
|
14
|
+
* 字典
|
|
15
|
+
*/
|
|
16
|
+
source: SourceDictType[];
|
|
17
|
+
onChange?: (keys: string[] & number[] & boolean[]) => void;
|
|
18
|
+
checboxSize?: number;
|
|
19
|
+
labelSize?: number;
|
|
20
|
+
cutRow?: number;
|
|
21
|
+
value?: string[] & number[] & boolean[];
|
|
22
|
+
}
|
|
23
|
+
declare function CheckGroupFixed({ label, source, checboxSize, cutRow, labelSize, value, onChange }: ICheckGroupFixedProps): React.JSX.Element;
|
|
24
|
+
export default CheckGroupFixed;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IConfigContextProps {
|
|
3
|
+
/**
|
|
4
|
+
* @description 用于获取微应用顶层的dom节点
|
|
5
|
+
*/
|
|
6
|
+
root: HTMLElement;
|
|
7
|
+
}
|
|
8
|
+
interface IProviderProps {
|
|
9
|
+
getContainer: () => HTMLElement;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare function Provider({ getContainer, children }: IProviderProps): React.JSX.Element;
|
|
13
|
+
declare const _default: {
|
|
14
|
+
Context: React.Context<IConfigContextProps>;
|
|
15
|
+
Provider: typeof Provider;
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SelectProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface ICustomRenderSelectProps extends SelectProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
value: any;
|
|
7
|
+
customRender: (value: any) => JSX.Element;
|
|
8
|
+
onChange: (value: any) => void;
|
|
9
|
+
selectAotoClose?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare function CustomRenderSelect({ children, value, customRender, popupClassName, getPopupContainer, onChange, selectAotoClose, ...props }: ICustomRenderSelectProps): React.JSX.Element;
|
|
12
|
+
export default CustomRenderSelect;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare class DBInstance {
|
|
2
|
+
LM_DB_SERVER: any;
|
|
3
|
+
schemaName: string;
|
|
4
|
+
version: number;
|
|
5
|
+
constructor(schemaName: string);
|
|
6
|
+
_init(): Promise<void>;
|
|
7
|
+
get isClosed(): any;
|
|
8
|
+
get({ id }: {
|
|
9
|
+
id: string;
|
|
10
|
+
}): Promise<{
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>;
|
|
13
|
+
put(data: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
id: string;
|
|
16
|
+
expireTime?: number;
|
|
17
|
+
} & any): Promise<null>;
|
|
18
|
+
remove(ids: string[]): Promise<any[]>;
|
|
19
|
+
removeExpireData(): Promise<any[]>;
|
|
20
|
+
clear(): Promise<any>;
|
|
21
|
+
count(): Promise<any>;
|
|
22
|
+
update(...args: any): Promise<any>;
|
|
23
|
+
query(): Promise<any>;
|
|
24
|
+
}
|
|
25
|
+
export default DBInstance;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface IDisableMarkProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
width?: string | number;
|
|
7
|
+
}
|
|
8
|
+
export default function DisableMark({ children, disabled, width }: IDisableMarkProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PositionType, SizeType } from '../Picture/interface';
|
|
3
|
+
interface IDomMoveProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
onDrag?: (e: MouseEvent, position: PositionType) => void;
|
|
6
|
+
onDragChange?: (position: PositionType) => void;
|
|
7
|
+
onDragEnd?: (e: MouseEvent, position: PositionType) => void;
|
|
8
|
+
position?: PositionType;
|
|
9
|
+
size?: SizeType;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
forwordRef?: React.MutableRefObject<any>;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: React.ForwardRefExoticComponent<IDomMoveProps & React.RefAttributes<unknown>>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IDragAndDropItemProps } from './interface';
|
|
3
|
+
declare function DragAndDropItem<T>({ children, dragData, dragId, style, onDropEnd, disabledCopyElement }: IDragAndDropItemProps<T>): React.FunctionComponentElement<any>;
|
|
4
|
+
export default DragAndDropItem;
|
package/es/Drag/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default IDragInterface;
|
|
1
|
+
import DragAndDropItem from './DragAndDropItem';
|
|
2
|
+
import DropItem from './DropItem';
|
|
3
|
+
declare const Drag: {
|
|
4
|
+
DragAndDropItem: typeof DragAndDropItem;
|
|
5
|
+
DropItem: typeof DropItem;
|
|
6
|
+
};
|
|
7
|
+
export default Drag;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridListCell } from '../GridList/interface';
|
|
3
|
+
import { TData } from '../useInfiniteScroll';
|
|
4
|
+
export interface IDynamicGridListProps<T> {
|
|
5
|
+
itemHeight?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 重载条件
|
|
9
|
+
*/
|
|
10
|
+
reloadDeps?: any[];
|
|
11
|
+
/**
|
|
12
|
+
* render列表
|
|
13
|
+
* @param options
|
|
14
|
+
*/
|
|
15
|
+
renderItem: (item: T, cell: GridListCell<T>) => React.ReactNode;
|
|
16
|
+
loadPage(d?: TData<T>): Promise<TData<T>>;
|
|
17
|
+
itemWidth?: number;
|
|
18
|
+
itemKey: string;
|
|
19
|
+
getGridGap?: (...args: any) => number;
|
|
20
|
+
isNoMore?: (data?: TData<T>) => boolean;
|
|
21
|
+
threshold?: number;
|
|
22
|
+
}
|
|
23
|
+
declare function DynamicGridList<T>({ renderItem, itemHeight, itemKey, itemWidth, reloadDeps, getGridGap, loadPage, isNoMore, threshold, ...props }: IDynamicGridListProps<T>): React.JSX.Element;
|
|
24
|
+
export default DynamicGridList;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TData } from '../useInfiniteScroll';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface IDynamicListProps<T> {
|
|
5
|
+
itemHeight?: number;
|
|
6
|
+
itemClassName?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 重载条件
|
|
9
|
+
*/
|
|
10
|
+
reloadDeps?: any[];
|
|
11
|
+
/**
|
|
12
|
+
* render列表
|
|
13
|
+
* @param options
|
|
14
|
+
*/
|
|
15
|
+
renderItem(options: {
|
|
16
|
+
index: number;
|
|
17
|
+
data: T;
|
|
18
|
+
}): JSX.Element;
|
|
19
|
+
loadPage(d?: TData<T>): Promise<TData<T>>;
|
|
20
|
+
}
|
|
21
|
+
declare function DynamicList<T>({ renderItem, itemHeight, itemClassName, reloadDeps, loadPage }: IDynamicListProps<T>): React.JSX.Element;
|
|
22
|
+
export default DynamicList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ErrorBoundaryProps } from './inerface';
|
|
3
|
+
interface IErrorFallbackProps {
|
|
4
|
+
error: Error;
|
|
5
|
+
resetErrorBoundary: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare function ErrorFallback({ error, resetErrorBoundary }: IErrorFallbackProps): React.JSX.Element;
|
|
8
|
+
export declare const errorBoundaryOptions: ErrorBoundaryProps;
|
|
9
|
+
export default ErrorFallback;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface IFullScrenProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description 类名
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @description 全屏dom对象
|
|
10
|
+
*/
|
|
11
|
+
getContainer: () => HTMLElement | Element;
|
|
12
|
+
/**
|
|
13
|
+
* @description 状态监听
|
|
14
|
+
*/
|
|
15
|
+
fullScreenChange?: (flag: boolean) => void;
|
|
16
|
+
/**
|
|
17
|
+
* @description 显示默认文本
|
|
18
|
+
*/
|
|
19
|
+
hasText?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare function FullScreen({ className, getContainer, fullScreenChange, hasText }: IFullScrenProps): React.JSX.Element;
|
|
22
|
+
export default FullScreen;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
code: number;
|
|
3
|
+
codeRemark: string;
|
|
4
|
+
data: {
|
|
5
|
+
list: {
|
|
6
|
+
id: string;
|
|
7
|
+
cid: number;
|
|
8
|
+
deviceName: string;
|
|
9
|
+
captureTime: number;
|
|
10
|
+
url: string;
|
|
11
|
+
}[];
|
|
12
|
+
totalCount: number;
|
|
13
|
+
totalPage: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { GridListProps } from '.';
|
|
3
|
+
import { ConstRef, ElementScroll, ElementSize, GridListConfigData, GridListContainerData, GridListLayoutData, GridListRenderData } from './interface';
|
|
4
|
+
export declare function useConstRef<T>(value: T): ConstRef<T>;
|
|
5
|
+
export declare function useWindowSize(): ElementSize;
|
|
6
|
+
export declare function useElementSize(ref: RefObject<Element>): ElementSize | null;
|
|
7
|
+
export declare function useWindowScroll(): ElementScroll;
|
|
8
|
+
export declare function useElementWindowOffset(ref: RefObject<HTMLElement>): number | null;
|
|
9
|
+
export declare function useIntersecting(ref: RefObject<HTMLElement>, rootMargin: string): boolean;
|
|
10
|
+
export declare function useGridListContainerData(ref: RefObject<HTMLElement>): GridListContainerData;
|
|
11
|
+
export declare function useGridListConfigData<P>(containerData: GridListContainerData, props: GridListProps<P>): GridListConfigData<P> | null;
|
|
12
|
+
export declare function useGridListLayoutData<P>(configData: GridListConfigData<P> | null): GridListLayoutData<P> | null;
|
|
13
|
+
export declare function useGridListRenderData<P>(containerData: GridListContainerData, configData: GridListConfigData<P> | null, layoutData: GridListLayoutData<P> | null): GridListRenderData<P> | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridListCell, GridListItemData } from './interface';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface GridListProps<P> {
|
|
5
|
+
items: P[];
|
|
6
|
+
getGridGap?: (elementWidth: number, windowHeight: number) => number;
|
|
7
|
+
getWindowMargin?: (windowHeight: number) => number;
|
|
8
|
+
getColumnCount: (elementWidth: number, gridGap: number) => number;
|
|
9
|
+
getItemData: (item: P, columnWidth: number) => GridListItemData;
|
|
10
|
+
renderItem: (item: P, cell: GridListCell<P>) => React.ReactNode;
|
|
11
|
+
fixedColumnWidth?: number;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const GridList: React.ForwardRefExoticComponent<GridListProps<unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export default GridList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementScroll, ElementSize, GridListCell, GridListRenderData } from './interface';
|
|
2
|
+
export declare function isSameElementSize(a: ElementSize, b: ElementSize): boolean;
|
|
3
|
+
export declare function getWindowSize(): ElementSize;
|
|
4
|
+
export declare function getElementSize(element: Element): ElementSize;
|
|
5
|
+
export declare function isSameElementScroll(a: ElementScroll, b: ElementScroll): boolean;
|
|
6
|
+
export declare function getWindowScroll(): ElementScroll;
|
|
7
|
+
export declare function getElementOffset(element: Element): number;
|
|
8
|
+
export declare function getColumnWidth(columnCount: number | null, gridGap: number | null, elementWidth: number | null): number | null;
|
|
9
|
+
export declare function getGridRowStart<P>(cell: GridListCell<P>, renderData: GridListRenderData<P> | null): string | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface HightLevelProps {
|
|
4
|
+
keyword: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
declare function HighLevel({ keyword, name }: HightLevelProps): React.JSX.Element;
|
|
8
|
+
declare const _default: React.MemoExoticComponent<typeof HighLevel>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IIconFontProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
type?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
declare function IconFont({ type, className, title, style, ...props }: IIconFontProps): React.JSX.Element;
|
|
9
|
+
declare namespace IconFont {
|
|
10
|
+
var registerIconFont: (scriptUrl: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export default IconFont;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface ImageViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* 默认占位图
|
|
6
|
+
*/
|
|
7
|
+
defaultSrc?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 图片真实地址
|
|
10
|
+
*/
|
|
11
|
+
src?: string;
|
|
12
|
+
/**
|
|
13
|
+
* title
|
|
14
|
+
*/
|
|
15
|
+
alt?: string;
|
|
16
|
+
onError?: (e: any) => void;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
declare function ImageView({ src, defaultSrc, alt, onError, className, ...props }: ImageViewProps): React.JSX.Element;
|
|
20
|
+
export default ImageView;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export type PositionType = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
};
|
|
7
|
+
export interface LabelType {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
id?: string;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
interface ILabelPlayerProps {
|
|
14
|
+
url?: string;
|
|
15
|
+
labels?: LabelType[];
|
|
16
|
+
renderLabel?: (item: LabelType) => JSX.Element;
|
|
17
|
+
onLabelMoveChange?: (item: LabelType) => void;
|
|
18
|
+
openDrop?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare function LabelPlayer({ url, labels, renderLabel, onLabelMoveChange, openDrop }: ILabelPlayerProps): React.JSX.Element;
|
|
21
|
+
export default LabelPlayer;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface ILabelValueProps {
|
|
4
|
+
label?: any;
|
|
5
|
+
value?: any;
|
|
6
|
+
emptyValue?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
noWrap?: boolean;
|
|
9
|
+
noColon?: boolean;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
labelStyle?: React.CSSProperties;
|
|
12
|
+
valueStyle?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
declare function LabelValue({ label, value, emptyValue, className, style, labelStyle, valueStyle, noWrap, noColon }: ILabelValueProps): React.JSX.Element;
|
|
15
|
+
export default LabelValue;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface ListProps<T> {
|
|
4
|
+
/**
|
|
5
|
+
* @description 列表数据
|
|
6
|
+
* @default []
|
|
7
|
+
*/
|
|
8
|
+
list: Array<T>;
|
|
9
|
+
/**
|
|
10
|
+
* @description 列表类名
|
|
11
|
+
* @default ''
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description 列表样式
|
|
16
|
+
* @default -
|
|
17
|
+
*/
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
/**
|
|
20
|
+
* @description 列表自定义渲染
|
|
21
|
+
* @default -
|
|
22
|
+
*/
|
|
23
|
+
renderItem: (item: T, index: number) => JSX.Element;
|
|
24
|
+
rowHeight?: number;
|
|
25
|
+
renderHeaderExt?: () => JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
declare function List<T>({ className, style, renderItem, list, rowHeight, renderHeaderExt }: ListProps<T>): React.JSX.Element;
|
|
28
|
+
export default List;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IDynamicGridListProps } from '../DynamicGridList';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface IListWithSizeAnimateProps<T> extends IDynamicGridListProps<T> {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
header?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface IListWithSizeAnimateRef {
|
|
9
|
+
open: () => void;
|
|
10
|
+
close: () => void;
|
|
11
|
+
backTop: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare const ListWithSizeAnimate: React.ForwardRefExoticComponent<IListWithSizeAnimateProps<unknown> & React.RefAttributes<IListWithSizeAnimateRef>>;
|
|
14
|
+
export default ListWithSizeAnimate;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IOptionsLoader {
|
|
3
|
+
scripts?: string[];
|
|
4
|
+
styles?: string[];
|
|
5
|
+
}
|
|
6
|
+
export interface ILoaderProps {
|
|
7
|
+
/**
|
|
8
|
+
* @description 脚本加载数据源
|
|
9
|
+
* @default []
|
|
10
|
+
* @type {scripts?:string[],styles?:string[]}
|
|
11
|
+
*/
|
|
12
|
+
options: IOptionsLoader[];
|
|
13
|
+
/**
|
|
14
|
+
* @description 加载后初始化组件
|
|
15
|
+
* @default null
|
|
16
|
+
*/
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* @description 加载后初始化组件
|
|
20
|
+
* @default null
|
|
21
|
+
*/
|
|
22
|
+
Spin?: React.ReactNode | null;
|
|
23
|
+
}
|
|
24
|
+
export interface ILoaderProps {
|
|
25
|
+
/**
|
|
26
|
+
* @description 脚本加载数据源
|
|
27
|
+
* @default []
|
|
28
|
+
*/
|
|
29
|
+
options: IOptionsLoader[];
|
|
30
|
+
/**
|
|
31
|
+
* @description 加载后初始化组件
|
|
32
|
+
* @default null
|
|
33
|
+
*/
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* @description 加载后初始化组件
|
|
37
|
+
* @default null
|
|
38
|
+
*/
|
|
39
|
+
Spin?: React.ReactNode | null;
|
|
40
|
+
/**
|
|
41
|
+
* @description 加载完成触发事件
|
|
42
|
+
* @default -
|
|
43
|
+
*/
|
|
44
|
+
onLoadEnd?: () => Promise<null>;
|
|
45
|
+
}
|
|
46
|
+
declare function LoaderScripts({ options, children, Spin, onLoadEnd }: ILoaderProps): React.JSX.Element;
|
|
47
|
+
export default LoaderScripts;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IOptionsLoader } from '.';
|
|
2
|
+
export declare const loadScript: (url: string) => Promise<unknown>;
|
|
3
|
+
export declare const loaderCss: (href: string) => Promise<unknown>;
|
|
4
|
+
export declare function createAsyncIterable(options: IOptionsLoader[]): {
|
|
5
|
+
[Symbol.asyncIterator](): {
|
|
6
|
+
i: number;
|
|
7
|
+
next(): Promise<{
|
|
8
|
+
value: number;
|
|
9
|
+
done: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare function runAsyncIterable(Iterables: any, runtime?: (conf: any) => void, callback?: () => void): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference path="../AMap.d.ts" />
|
|
2
|
+
import { IMapInstance, IMapOptions } from '../interface';
|
|
3
|
+
declare class AMapInstance implements IMapInstance {
|
|
4
|
+
map: AMap.Map;
|
|
5
|
+
config: IMapOptions;
|
|
6
|
+
mapContainer: HTMLDivElement;
|
|
7
|
+
constructor(ele: HTMLDivElement, config: IMapOptions);
|
|
8
|
+
createMap(): void;
|
|
9
|
+
destoryMap(): void;
|
|
10
|
+
mapReset(): void;
|
|
11
|
+
setZoom(zoom: number): void;
|
|
12
|
+
getZoom(): number;
|
|
13
|
+
setCenter(center: [number, number]): void;
|
|
14
|
+
setZoomAndCenter(zoom: number, center: [number, number]): void;
|
|
15
|
+
on(type: string, fn: (e: any) => void): void;
|
|
16
|
+
off(type: string, fn: (e: any) => void): void;
|
|
17
|
+
setCursor(cursor: string): void;
|
|
18
|
+
}
|
|
19
|
+
export default AMapInstance;
|