@cloud-app-dev/vidc 3.2.18 → 3.2.19

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.
Files changed (179) hide show
  1. package/es/Api/index.d.ts +12 -0
  2. package/es/AppContext/Sync.d.ts +7 -0
  3. package/es/AppContext/index.d.ts +10 -0
  4. package/es/AppContext/static.d.ts +8 -0
  5. package/es/Auth/index.d.ts +8 -0
  6. package/es/AutoExit/index.d.ts +6 -0
  7. package/es/Box/BetweenBox/index.d.ts +12 -0
  8. package/es/Box/InfoBox/index.d.ts +12 -0
  9. package/es/Box/TwoColumnBox/index.d.ts +10 -0
  10. package/es/Box/deps/content-grid.d.ts +9 -0
  11. package/es/Box/deps/grid-factory.d.ts +10 -0
  12. package/es/Box/deps/simple-grid.d.ts +9 -0
  13. package/es/Box/index.d.ts +14 -0
  14. package/es/CheckGroupFixed/demo.d.ts +2 -0
  15. package/es/CheckGroupFixed/index.d.ts +17 -0
  16. package/es/Config/index.d.ts +4 -0
  17. package/es/Config/utils.d.ts +4 -0
  18. package/es/ConfigContext/index.d.ts +22 -0
  19. package/es/CustomRenderSelect/index.d.ts +12 -0
  20. package/es/DisableMark/index.d.ts +9 -0
  21. package/es/DomMove/demo.d.ts +1 -0
  22. package/es/DomMove/index.d.ts +16 -0
  23. package/es/DomMove/utils.d.ts +8 -0
  24. package/es/Drag/DragAndDropItem.d.ts +4 -0
  25. package/es/Drag/DropItem.d.ts +4 -0
  26. package/es/Drag/index.d.ts +7 -9
  27. package/es/Drawer/Footer.d.ts +4 -0
  28. package/es/Drawer/demo.d.ts +3 -0
  29. package/es/Drawer/index.d.ts +38 -0
  30. package/es/DynamicGridList/Demo.d.ts +2 -0
  31. package/es/DynamicGridList/index.d.ts +27 -0
  32. package/es/DynamicList/demo.d.ts +1 -0
  33. package/es/DynamicList/index.d.ts +30 -0
  34. package/es/DynamicList/utils.d.ts +4 -0
  35. package/es/ErrorFallback/index.d.ts +8 -0
  36. package/es/FrontendPlayer/index.d.ts +2 -0
  37. package/es/FullScreen/index.d.ts +21 -0
  38. package/es/GridList/Demo.d.ts +2 -0
  39. package/es/GridList/data.d.ts +16 -0
  40. package/es/GridList/hook.d.ts +13 -0
  41. package/es/GridList/index.d.ts +15 -0
  42. package/es/GridList/utils.d.ts +9 -0
  43. package/es/HightLevel/index.d.ts +9 -0
  44. package/es/IconFont/index.d.ts +12 -0
  45. package/es/ImageView/index.d.ts +17 -0
  46. package/es/Input/demo.d.ts +2 -0
  47. package/es/Input/index.d.ts +18 -0
  48. package/es/InstanceHistory/index.d.ts +2 -0
  49. package/es/LabelValue/index.d.ts +23 -0
  50. package/es/List/demo.d.ts +2 -0
  51. package/es/List/index.d.ts +41 -0
  52. package/es/ListWithSizeAnimate/demo.d.ts +1 -0
  53. package/es/ListWithSizeAnimate/index.d.ts +14 -0
  54. package/es/LoaderApp/index.d.ts +31 -0
  55. package/es/LoaderApp/loader.d.ts +19 -0
  56. package/es/LoaderApp/sandbox.back.d.ts +18 -0
  57. package/es/LoaderApp/sandbox.d.ts +12 -0
  58. package/es/LoaderApp/utils.d.ts +19 -0
  59. package/es/LoaderScript/index.d.ts +26 -0
  60. package/es/LoaderScript/utils.d.ts +14 -0
  61. package/es/Map/BasicMap/AMapInstance.d.ts +19 -0
  62. package/es/Map/BasicMap/LeafletInstance.d.ts +18 -0
  63. package/es/Map/BasicMap/index.d.ts +9 -0
  64. package/es/Map/ClusterLayer/hook.d.ts +5 -0
  65. package/es/Map/ClusterLayer/index.d.ts +5 -0
  66. package/es/Map/Config/index.d.ts +7 -0
  67. package/es/Map/Config/utils.d.ts +2 -0
  68. package/es/Map/Context/index.d.ts +11 -0
  69. package/es/Map/FindPio/index.d.ts +3 -0
  70. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +3 -0
  71. package/es/Map/InfoWindow/demo.d.ts +2 -0
  72. package/es/Map/InfoWindow/index.d.ts +9 -0
  73. package/es/Map/LevelCenter/DragMarker/index.d.ts +9 -0
  74. package/es/Map/LevelCenter/demo.d.ts +2 -0
  75. package/es/Map/LevelCenter/index.d.ts +15 -0
  76. package/es/Map/LoaderMap/index.d.ts +12 -0
  77. package/es/Map/MapDrawSelect/demo.d.ts +2 -0
  78. package/es/Map/MapDrawSelect/index.d.ts +15 -0
  79. package/es/Map/MouseTool/index.d.ts +10 -0
  80. package/es/Map/MouseTool/useMouseTools.d.ts +7 -0
  81. package/es/Map/ResetTools/index.d.ts +9 -0
  82. package/es/Map/SinglePoint/index.d.ts +27 -0
  83. package/es/Map/hook/useMapEvent.d.ts +2 -0
  84. package/es/Map/hook/useMapType.d.ts +4 -0
  85. package/es/Map/icon.d.ts +2 -0
  86. package/es/Map/index.d.ts +14 -0
  87. package/es/Map/useMarker/index.d.ts +10 -0
  88. package/es/Map/withMap/index.d.ts +2 -0
  89. package/es/Modal/demo.d.ts +2 -0
  90. package/es/Modal/index.d.ts +44 -0
  91. package/es/Picture/component/DefaultRects/RectInfo.d.ts +7 -0
  92. package/es/Picture/component/DefaultRects/index.d.ts +12 -0
  93. package/es/Picture/component/DefaultRects/utils.d.ts +2 -0
  94. package/es/Picture/component/DrawRect/index.d.ts +12 -0
  95. package/es/Picture/component/RectMenu/index.d.ts +11 -0
  96. package/es/Picture/component/RectMenu/utils.d.ts +12 -0
  97. package/es/Picture/component/Tools/index.d.ts +13 -0
  98. package/es/Picture/component/WheelScale/index.d.ts +6 -0
  99. package/es/Picture/demo.d.ts +1 -0
  100. package/es/Picture/dragBound.d.ts +5 -0
  101. package/es/Picture/index.d.ts +18 -0
  102. package/es/Picture/loadCaptureRectImage.d.ts +8 -0
  103. package/es/Picture/useDraw.d.ts +1 -0
  104. package/es/Picture/utils.d.ts +21 -0
  105. package/es/Player/api/index.d.ts +68 -0
  106. package/es/Player/context.d.ts +21 -0
  107. package/es/Player/contraller_bar/bar.d.ts +8 -0
  108. package/es/Player/contraller_bar/contraller_event.d.ts +6 -0
  109. package/es/Player/contraller_bar/index.d.ts +14 -0
  110. package/es/Player/contraller_bar/left_bar.d.ts +10 -0
  111. package/es/Player/contraller_bar/right_bar.d.ts +8 -0
  112. package/es/Player/contraller_bar/time.d.ts +2 -0
  113. package/es/Player/contraller_bar/useBarStatus.d.ts +2 -0
  114. package/es/Player/contraller_bar/volume.d.ts +9 -0
  115. package/es/Player/demo.d.ts +2 -0
  116. package/es/Player/empty.d.ts +1 -0
  117. package/es/Player/event/errorEvent.d.ts +14 -0
  118. package/es/Player/event/eventName.d.ts +18 -0
  119. package/es/Player/event/index.d.ts +24 -0
  120. package/es/Player/fps_play.d.ts +10 -0
  121. package/es/Player/frontend_player.d.ts +7 -0
  122. package/es/Player/frontend_timeline.d.ts +9 -0
  123. package/es/Player/iconfont.d.ts +4 -0
  124. package/es/Player/index.d.ts +2 -0
  125. package/es/Player/live_heart.d.ts +8 -0
  126. package/es/Player/message.d.ts +4 -0
  127. package/es/Player/segment_player.d.ts +8 -0
  128. package/es/Player/segment_timeline.d.ts +11 -0
  129. package/es/Player/single_player.d.ts +5 -0
  130. package/es/Player/timeline.d.ts +4 -0
  131. package/es/Player/util.d.ts +42 -0
  132. package/es/PlayerExt/demo.d.ts +2 -0
  133. package/es/PlayerExt/index.d.ts +47 -0
  134. package/es/Progress/index.d.ts +10 -8
  135. package/es/ROI/demo.d.ts +2 -0
  136. package/es/ROI/index.d.ts +39 -0
  137. package/es/ROI/utils.d.ts +1 -0
  138. package/es/ScreenPlayer/Live.d.ts +9 -0
  139. package/es/ScreenPlayer/LiveTools.d.ts +29 -0
  140. package/es/ScreenPlayer/PlayerWithExt.d.ts +34 -0
  141. package/es/ScreenPlayer/RatePick.d.ts +6 -0
  142. package/es/ScreenPlayer/Record.d.ts +9 -0
  143. package/es/ScreenPlayer/RecordTools.d.ts +37 -0
  144. package/es/ScreenPlayer/ScreenSelect.d.ts +6 -0
  145. package/es/ScreenPlayer/SegmentTimeLine.d.ts +16 -0
  146. package/es/ScreenPlayer/TimeMode.d.ts +6 -0
  147. package/es/ScreenPlayer/TimeSelect.d.ts +6 -0
  148. package/es/ScreenPlayer/demo.d.ts +1 -0
  149. package/es/ScreenPlayer/demo2.d.ts +1 -0
  150. package/es/ScreenPlayer/index.d.ts +5 -0
  151. package/es/ScreenPlayer/useTimeSlider.d.ts +24 -0
  152. package/es/ScreenPlayer/useVideoFit.d.ts +5 -0
  153. package/es/ScreenPlayer/utils.d.ts +19 -0
  154. package/es/SegmentPlayer/index.d.ts +2 -0
  155. package/es/Service/fetch-adapter.d.ts +12 -0
  156. package/es/Service/http.d.ts +6 -0
  157. package/es/Service/index.d.ts +3 -0
  158. package/es/Service/middleware.d.ts +5 -0
  159. package/es/TableLayout/index.d.ts +13 -0
  160. package/es/ThemeAntd/demo.d.ts +3 -0
  161. package/es/ThemeAntd/index.d.ts +7 -0
  162. package/es/Timeout/index.d.ts +31 -0
  163. package/es/Tree/demo.d.ts +2 -0
  164. package/es/Tree/index.d.ts +24 -0
  165. package/es/VList/index.d.ts +17 -12
  166. package/es/VList/utils.d.ts +14 -0
  167. package/es/index.d.ts +52 -0
  168. package/es/useDrawROI/index.d.ts +16 -0
  169. package/es/useEventEmitterHandle/index.d.ts +2 -0
  170. package/es/useFullscreen/demo.d.ts +1 -0
  171. package/es/useFullscreen/index.d.ts +11 -0
  172. package/es/useHistory/index.d.ts +2 -0
  173. package/es/useInfiniteScroll/index.d.ts +16 -0
  174. package/es/useRafInterval/index.d.ts +5 -0
  175. package/es/useSimpleState/index.d.ts +3 -0
  176. package/es/useVirtualList/index.d.ts +13 -0
  177. package/es/utils.d.ts +25 -0
  178. package/package.json +1 -1
  179. package/tsconfig.json +0 -11
@@ -0,0 +1,12 @@
1
+ import { BzTreeItemType, PostItemType, OrgItemType } from '../core';
2
+ import { UserInfoType } from '../AppContext/interface';
3
+ declare class Api {
4
+ getOrgs(): Promise<OrgItemType[]>;
5
+ getUsers(organizationId: string, params?: any, filterUserIds?: string[]): Promise<UserInfoType[]>;
6
+ getPosts(orgId: string): Promise<PostItemType[]>;
7
+ getDeviceBzTree(): Promise<BzTreeItemType[]>;
8
+ getCustomDeviceGroup(): Promise<BzTreeItemType[]>;
9
+ getPlacesByHasDevice(): Promise<BzTreeItemType[]>;
10
+ }
11
+ declare const _default: Api;
12
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { AppContextInterface, AppStoreType } from './interface';
2
+ interface ISyncProps {
3
+ stateChange: (options: AppContextInterface) => void;
4
+ storeChange: (store: AppStoreType) => void;
5
+ }
6
+ declare function Sync({ stateChange, storeChange }: ISyncProps): JSX.Element;
7
+ 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
+ }): JSX.Element;
6
+ declare const _default: {
7
+ Provider: typeof Provider;
8
+ Context: React.Context<AppContextInterface>;
9
+ };
10
+ export default _default;
@@ -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,8 @@
1
+ import React from 'react';
2
+ interface IAuthProps {
3
+ featureId: string;
4
+ noAuthContent?: React.ReactNode;
5
+ children?: React.ReactNode;
6
+ }
7
+ declare function Auth({ featureId, noAuthContent, children }: IAuthProps): JSX.Element;
8
+ export default Auth;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IAutoExitProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ declare function AutoExit({ children }: IAutoExitProps): JSX.Element;
6
+ export default AutoExit;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface BetweentBoxProps {
4
+ className?: string;
5
+ children?: React.ReactNode;
6
+ extNode?: React.ReactNode;
7
+ style?: React.CSSProperties;
8
+ left?: React.ReactNode;
9
+ right?: React.ReactNode;
10
+ }
11
+ declare function BetweenBox({ className, left, right, style, children, extNode }: BetweentBoxProps): JSX.Element;
12
+ export default BetweenBox;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface InfoBoxProps {
4
+ className?: string;
5
+ title?: React.ReactNode;
6
+ titleExt?: React.ReactNode;
7
+ style?: React.CSSProperties;
8
+ contentStyle?: React.CSSProperties;
9
+ children?: React.ReactNode;
10
+ }
11
+ declare function InfoBox({ title, titleExt, children, className, style, contentStyle }: InfoBoxProps): JSX.Element;
12
+ export default InfoBox;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface TwoColumnBoxProps {
4
+ className?: string;
5
+ collapsible?: boolean;
6
+ leftContent?: React.ReactNode | JSX.Element;
7
+ children?: React.ReactNode;
8
+ }
9
+ declare function TwoColumnBox({ className, collapsible, leftContent, children }: TwoColumnBoxProps): JSX.Element;
10
+ export default TwoColumnBox;
@@ -0,0 +1,9 @@
1
+ declare const grid: {
2
+ xxl: number;
3
+ xl: number;
4
+ lg: number;
5
+ md: number;
6
+ sm: number;
7
+ xs: number;
8
+ };
9
+ export default grid;
@@ -0,0 +1,10 @@
1
+ export declare function getGridClassName(grid: any): never[];
2
+ export declare function computedGrid(grid: any): {
3
+ xxl: number;
4
+ xl: number;
5
+ lg: number;
6
+ md: number;
7
+ sm: number;
8
+ xs: number;
9
+ };
10
+ export declare function computedCuurentGrid(): "xxl" | "xl" | "lg" | "md" | "sm" | "xs" | undefined;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ xxl: number;
3
+ xl: number;
4
+ lg: number;
5
+ md: number;
6
+ sm: number;
7
+ xs: number;
8
+ };
9
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface ContentBoxProps {
4
+ className?: string;
5
+ contentGrid?: any;
6
+ children?: React.ReactNode;
7
+ }
8
+ declare function Box({ className, contentGrid, children }: ContentBoxProps): JSX.Element;
9
+ declare namespace Box {
10
+ var TwoColumnBox: any;
11
+ var InfoBox: any;
12
+ var BetweenBox: any;
13
+ }
14
+ export default Box;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,17 @@
1
+ import './index.less';
2
+ export interface SourceDictType {
3
+ value?: string | number;
4
+ label: string;
5
+ icon?: string;
6
+ }
7
+ interface ICheckGroupFixedProps {
8
+ label: string;
9
+ source: SourceDictType[];
10
+ onChange?: (keys: string[] & number[] & boolean[]) => void;
11
+ checboxSize?: number;
12
+ labelSize?: number;
13
+ cutRow?: number;
14
+ value?: string[] & number[] & boolean[];
15
+ }
16
+ declare function CheckGroupFixed({ label, source, checboxSize, cutRow, labelSize, value, onChange }: ICheckGroupFixedProps): JSX.Element;
17
+ export default CheckGroupFixed;
@@ -0,0 +1,4 @@
1
+ import { ConfigJOSN } from './interface';
2
+ declare const Config: ConfigJOSN;
3
+ declare const LMConfig: typeof Config;
4
+ export default LMConfig;
@@ -0,0 +1,4 @@
1
+ import { ThemeInfoType } from './interface';
2
+ export declare function insertThemeStyle(options: ThemeInfoType): void;
3
+ export declare function lock(): void;
4
+ export declare function unlock(): void;
@@ -0,0 +1,22 @@
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): JSX.Element;
13
+ declare namespace Provider {
14
+ var defaultProps: {
15
+ getContainer: () => HTMLElement;
16
+ };
17
+ }
18
+ declare const _default: {
19
+ Context: React.Context<IConfigContextProps>;
20
+ Provider: typeof Provider;
21
+ };
22
+ 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): JSX.Element;
12
+ export default CustomRenderSelect;
@@ -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): JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export default function App(): JSX.Element;
@@ -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,8 @@
1
+ export declare function getPosition(obj: any): {
2
+ left: any;
3
+ top: any;
4
+ };
5
+ export declare function getMouseXY(e: MouseEvent): {
6
+ x: number;
7
+ y: number;
8
+ };
@@ -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;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IDropItemProps } from './interface';
3
+ declare function DropItem<T>({ children, style, onDropEnd }: IDropItemProps<T>): React.FunctionComponentElement<any>;
4
+ export default DropItem;
@@ -1,9 +1,7 @@
1
- import React from 'react';
2
- import { IDragAndDropItemProps, IDropItemProps } from './interface';
3
-
4
- interface IDragInterface<T> {
5
- DragAndDropItemProps: React.FC<IDragAndDropItemProps<T>>;
6
- DropItem: React.FC<IDropItemProps<T>>;
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,4 @@
1
+ import { IFooterProps } from './interface';
2
+ import './index.less';
3
+ declare function Footer({ onClose, cancelText, okText, onOk }: IFooterProps): JSX.Element;
4
+ export default Footer;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import { IDrawerProps } from './interface';
3
+ import './index.less';
4
+ declare function Drawer({ style, getContainer, onClose, className, onOk, cancelText, okText, children, ...props }: IDrawerProps): JSX.Element;
5
+ declare namespace Drawer {
6
+ var defaultProps: {
7
+ getContainer: boolean;
8
+ className: string;
9
+ cancelText: string;
10
+ okText: string;
11
+ };
12
+ var useDrawer: (prefixCls?: string) => {
13
+ open: (options: IUseDrawerHookState) => void;
14
+ close: () => void;
15
+ };
16
+ var RefDrawer: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<IRefDrawerMethodsProps>>;
17
+ }
18
+ export interface IUseDrawerHookState {
19
+ content?: React.ReactNode;
20
+ visible?: boolean;
21
+ title?: React.ReactNode;
22
+ onOk?: () => void;
23
+ width?: number | string;
24
+ className?: string;
25
+ }
26
+ export interface IUseDrawerHookState {
27
+ content?: React.ReactNode;
28
+ visible?: boolean;
29
+ title?: React.ReactNode;
30
+ onOk?: () => void;
31
+ width?: number | string;
32
+ className?: string;
33
+ }
34
+ export interface IRefDrawerMethodsProps {
35
+ open: (options: IUseDrawerHookState) => void;
36
+ close: () => void;
37
+ }
38
+ export default Drawer;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,27 @@
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>): JSX.Element;
24
+ declare namespace DynamicGridList {
25
+ var defaultProps: any;
26
+ }
27
+ export default DynamicGridList;
@@ -0,0 +1 @@
1
+ export default function (): JSX.Element;
@@ -0,0 +1,30 @@
1
+ import type { TData } from '../useInfiniteScroll';
2
+ import './index.less';
3
+ export interface IDynamicListProps<T> {
4
+ itemHeight?: number;
5
+ itemClassName?: string;
6
+ /**
7
+ * 重载条件
8
+ */
9
+ reloadDeps?: any[];
10
+ /**
11
+ * render列表
12
+ * @param options
13
+ */
14
+ renderItem(options: {
15
+ index: number;
16
+ data: T;
17
+ }): JSX.Element;
18
+ loadPage(d?: TData<T>): Promise<TData<T>>;
19
+ }
20
+ declare function DynamicList<T>({ renderItem, itemHeight, itemClassName, reloadDeps, loadPage }: IDynamicListProps<T>): JSX.Element;
21
+ declare namespace DynamicList {
22
+ var defaultProps: {
23
+ limit: number;
24
+ itemHeight: number;
25
+ params: {};
26
+ itemKey: string;
27
+ itemClassName: string;
28
+ };
29
+ }
30
+ export default DynamicList;
@@ -0,0 +1,4 @@
1
+ export declare const LIMIT = 10;
2
+ export declare const skeletonList: {
3
+ skeleton: boolean;
4
+ }[];
@@ -0,0 +1,8 @@
1
+ import { ErrorBoundaryProps } from './inerface';
2
+ interface IErrorFallbackProps {
3
+ error: Error;
4
+ resetErrorBoundary: () => void;
5
+ }
6
+ declare function ErrorFallback({ error, resetErrorBoundary }: IErrorFallbackProps): JSX.Element;
7
+ export declare const errorBoundaryOptions: ErrorBoundaryProps;
8
+ export default ErrorFallback;
@@ -0,0 +1,2 @@
1
+ import FrontendPlayer from '../Player/frontend_player';
2
+ export default FrontendPlayer;
@@ -0,0 +1,21 @@
1
+ import './index.less';
2
+ interface IFullScrenProps {
3
+ /**
4
+ * @description 类名
5
+ */
6
+ className?: string;
7
+ /**
8
+ * @description 全屏dom对象
9
+ */
10
+ getContainer: () => HTMLElement | Element;
11
+ /**
12
+ * @description 状态监听
13
+ */
14
+ fullScreenChange?: (flag: boolean) => void;
15
+ /**
16
+ * @description 显示默认文本
17
+ */
18
+ hasText?: boolean;
19
+ }
20
+ declare function FullScreen({ className, getContainer, fullScreenChange, hasText }: IFullScrenProps): JSX.Element;
21
+ export default FullScreen;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -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 './index.less';
3
+ import { GridListCell, GridListItemData } from './interface';
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): 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): JSX.Element;
9
+ declare namespace IconFont {
10
+ var registerIconFont: (scriptUrl: string) => void;
11
+ }
12
+ export default IconFont;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface ImageViewProps extends React.HTMLAttributes<HTMLImageElement> {
4
+ defaultSrc?: string;
5
+ src?: string;
6
+ alt?: string;
7
+ onError?: (e: any) => void;
8
+ className?: string;
9
+ }
10
+ declare function ImageView({ src, defaultSrc, alt, onError, className, ...props }: ImageViewProps): JSX.Element;
11
+ declare namespace ImageView {
12
+ var defaultProps: {
13
+ className: string;
14
+ defaultSrc: string;
15
+ };
16
+ }
17
+ export default ImageView;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,18 @@
1
+ import { InputProps } from 'antd';
2
+ import './index.less';
3
+ interface IInputProps extends Omit<InputProps, 'onChange'> {
4
+ defaultValue?: string;
5
+ value?: string;
6
+ className?: string;
7
+ onEnter?: (val: string) => void;
8
+ onChange?: (val: string) => void;
9
+ }
10
+ declare function Input({ prefix, className, suffix, allowClear, defaultValue, value, onChange, onEnter, ...props }: IInputProps): JSX.Element;
11
+ declare namespace Input {
12
+ var defaultProps: {
13
+ className: string;
14
+ prefix: JSX.Element;
15
+ allowClear: boolean;
16
+ };
17
+ }
18
+ export default Input;
@@ -0,0 +1,2 @@
1
+ declare const InstanceHistory: History;
2
+ export default InstanceHistory;
@@ -0,0 +1,23 @@
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): JSX.Element;
15
+ declare namespace LabelValue {
16
+ var defaultProps: {
17
+ value: string;
18
+ emptyValue: string;
19
+ noWrap: boolean;
20
+ className: string;
21
+ };
22
+ }
23
+ export default LabelValue;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;