@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.
Files changed (197) hide show
  1. package/es/AppContext/Sync.d.ts +8 -0
  2. package/es/AppContext/index.d.ts +10 -0
  3. package/es/AppContext/index.js +1 -1
  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/CheckGroupFixed/demo.d.ts +3 -0
  8. package/es/CheckGroupFixed/index.d.ts +24 -0
  9. package/es/Config/index.d.ts +4 -0
  10. package/es/Config/utils.d.ts +4 -0
  11. package/es/ConfigContext/index.d.ts +17 -0
  12. package/es/CustomRenderSelect/index.d.ts +12 -0
  13. package/es/DBTools/index.d.ts +25 -0
  14. package/es/DisableMark/index.d.ts +9 -0
  15. package/es/DomMove/demo.d.ts +2 -0
  16. package/es/DomMove/index.d.ts +16 -0
  17. package/es/DomMove/utils.d.ts +8 -0
  18. package/es/Drag/DragAndDropItem.d.ts +4 -0
  19. package/es/Drag/DropItem.d.ts +4 -0
  20. package/es/Drag/index.d.ts +7 -9
  21. package/es/DynamicGridList/Demo.d.ts +3 -0
  22. package/es/DynamicGridList/index.d.ts +24 -0
  23. package/es/DynamicList/demo.d.ts +2 -0
  24. package/es/DynamicList/index.d.ts +22 -0
  25. package/es/DynamicList/utils.d.ts +4 -0
  26. package/es/ErrorFallback/index.d.ts +9 -0
  27. package/es/EventTools/index.d.ts +3 -0
  28. package/es/FrontendPlayer/index.d.ts +4 -0
  29. package/es/FullScreen/index.d.ts +22 -0
  30. package/es/GridList/Demo.d.ts +3 -0
  31. package/es/GridList/data.d.ts +16 -0
  32. package/es/GridList/hook.d.ts +13 -0
  33. package/es/GridList/index.d.ts +15 -0
  34. package/es/GridList/utils.d.ts +9 -0
  35. package/es/HightLevel/index.d.ts +9 -0
  36. package/es/IconFont/index.d.ts +12 -0
  37. package/es/ImageView/index.d.ts +20 -0
  38. package/es/InstanceHistory/index.d.ts +3 -0
  39. package/es/LabelPlayer/demo.d.ts +2 -0
  40. package/es/LabelPlayer/index.d.ts +21 -0
  41. package/es/LabelValue/index.d.ts +15 -0
  42. package/es/List/demo.d.ts +3 -0
  43. package/es/List/index.d.ts +28 -0
  44. package/es/ListWithSizeAnimate/demo.d.ts +2 -0
  45. package/es/ListWithSizeAnimate/index.d.ts +14 -0
  46. package/es/LoaderScript/index.d.ts +47 -0
  47. package/es/LoaderScript/utils.d.ts +13 -0
  48. package/es/Map/BasicMap/AMapInstance.d.ts +19 -0
  49. package/es/Map/BasicMap/AMapInstance.js +2 -0
  50. package/es/Map/BasicMap/LeafletInstance.d.ts +18 -0
  51. package/es/Map/BasicMap/LeafletInstance.js +4 -2
  52. package/es/Map/BasicMap/index.d.ts +9 -0
  53. package/es/Map/ClusterLayer/demo.d.ts +3 -0
  54. package/es/Map/ClusterLayer/hook.d.ts +5 -0
  55. package/es/Map/ClusterLayer/hook.js +6 -2
  56. package/es/Map/ClusterLayer/index.d.ts +6 -0
  57. package/es/Map/Config/index.d.ts +9 -0
  58. package/es/Map/Config/utils.d.ts +2 -0
  59. package/es/Map/Context/index.d.ts +11 -0
  60. package/es/Map/FindPio/index.d.ts +4 -0
  61. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +4 -0
  62. package/es/Map/InfoWindow/MakerLikeWindow.js +27 -6
  63. package/es/Map/InfoWindow/demo.d.ts +3 -0
  64. package/es/Map/InfoWindow/index.d.ts +11 -0
  65. package/es/Map/InfoWindow/index.js +5 -1
  66. package/es/Map/LevelCenter/DragMarker/index.d.ts +10 -0
  67. package/es/Map/LevelCenter/DragMarker/index.js +1 -0
  68. package/es/Map/LevelCenter/demo.d.ts +3 -0
  69. package/es/Map/LevelCenter/index.d.ts +15 -0
  70. package/es/Map/LoaderMap/index.d.ts +7 -0
  71. package/es/Map/MapDrawSelect/demo.d.ts +3 -0
  72. package/es/Map/MapDrawSelect/index.d.ts +15 -0
  73. package/es/Map/MouseTool/index.d.ts +10 -0
  74. package/es/Map/MouseTool/useMouseTools.d.ts +7 -0
  75. package/es/Map/MouseTool/useMouseTools.js +2 -1
  76. package/es/Map/ResetTools/index.d.ts +10 -0
  77. package/es/Map/SinglePoint/demo.d.ts +3 -0
  78. package/es/Map/SinglePoint/index.d.ts +27 -0
  79. package/es/Map/SinglePoint/index.js +1 -0
  80. package/es/Map/hook/useMapEvent.d.ts +2 -0
  81. package/es/Map/hook/useMapType.d.ts +4 -0
  82. package/es/Map/icon.d.ts +2 -0
  83. package/es/Map/index.d.ts +24 -0
  84. package/es/Map/points.d.ts +74 -0
  85. package/es/Map/useMarker/index.d.ts +10 -0
  86. package/es/Map/withMap/index.d.ts +3 -0
  87. package/es/Picture/component/DefaultRects/RectInfo.d.ts +8 -0
  88. package/es/Picture/component/DefaultRects/RectInfo.js +3 -1
  89. package/es/Picture/component/DefaultRects/index.d.ts +13 -0
  90. package/es/Picture/component/DefaultRects/utils.d.ts +2 -0
  91. package/es/Picture/component/DefaultRects/utils.js +1 -1
  92. package/es/Picture/component/DrawRect/index.d.ts +13 -0
  93. package/es/Picture/component/RectMenu/index.d.ts +12 -0
  94. package/es/Picture/component/RectMenu/index.js +6 -0
  95. package/es/Picture/component/RectMenu/utils.d.ts +12 -0
  96. package/es/Picture/component/Tools/index.d.ts +12 -0
  97. package/es/Picture/component/WheelScale/index.d.ts +7 -0
  98. package/es/Picture/demo.d.ts +2 -0
  99. package/es/Picture/index.d.ts +5 -0
  100. package/es/Picture/loadCaptureRectImage.d.ts +3 -0
  101. package/es/Picture/useDraw.d.ts +1 -0
  102. package/es/Picture/utils.d.ts +26 -0
  103. package/es/Player/api/index.d.ts +68 -0
  104. package/es/Player/context.d.ts +17 -0
  105. package/es/Player/contraller_bar/bar.d.ts +8 -0
  106. package/es/Player/contraller_bar/contraller_event.d.ts +6 -0
  107. package/es/Player/contraller_bar/contraller_event.js +2 -0
  108. package/es/Player/contraller_bar/index.d.ts +14 -0
  109. package/es/Player/contraller_bar/left_bar.d.ts +10 -0
  110. package/es/Player/contraller_bar/right_bar.d.ts +8 -0
  111. package/es/Player/contraller_bar/time.d.ts +3 -0
  112. package/es/Player/contraller_bar/useBarStatus.d.ts +2 -0
  113. package/es/Player/contraller_bar/volume.d.ts +9 -0
  114. package/es/Player/contraller_bar/volume.js +1 -1
  115. package/es/Player/demo.d.ts +3 -0
  116. package/es/Player/empty.d.ts +2 -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 +11 -0
  121. package/es/Player/frontend_player.d.ts +8 -0
  122. package/es/Player/frontend_timeline.d.ts +10 -0
  123. package/es/Player/iconfont.d.ts +5 -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 +5 -0
  127. package/es/Player/message.js +4 -0
  128. package/es/Player/segment_player.d.ts +9 -0
  129. package/es/Player/segment_timeline.d.ts +12 -0
  130. package/es/Player/single_player.d.ts +5 -0
  131. package/es/Player/timeline.d.ts +5 -0
  132. package/es/Player/util.d.ts +43 -0
  133. package/es/PlayerExt/demo.d.ts +3 -0
  134. package/es/PlayerExt/index.d.ts +48 -0
  135. package/es/Progress/index.d.ts +7 -9
  136. package/es/ROI/demo.d.ts +3 -0
  137. package/es/ROI/index.d.ts +33 -0
  138. package/es/RefDrawer/Footer.d.ts +9 -0
  139. package/es/RefDrawer/demo.d.ts +3 -0
  140. package/es/RefDrawer/index.d.ts +26 -0
  141. package/es/RefModal/demo.d.ts +3 -0
  142. package/es/RefModal/index.d.ts +17 -0
  143. package/es/ScreenPlayer/Live.d.ts +5 -0
  144. package/es/ScreenPlayer/LiveTools.d.ts +29 -0
  145. package/es/ScreenPlayer/LiveTools.js +2 -2
  146. package/es/ScreenPlayer/PlayerWithExt.d.ts +34 -0
  147. package/es/ScreenPlayer/RatePick.d.ts +8 -0
  148. package/es/ScreenPlayer/Record.d.ts +10 -0
  149. package/es/ScreenPlayer/RecordTools.d.ts +38 -0
  150. package/es/ScreenPlayer/RecordTools.js +14 -14
  151. package/es/ScreenPlayer/ScreenSelect.d.ts +7 -0
  152. package/es/ScreenPlayer/SegmentTimeLine.d.ts +17 -0
  153. package/es/ScreenPlayer/TimeMode.d.ts +7 -0
  154. package/es/ScreenPlayer/TimeSelect.d.ts +7 -0
  155. package/es/ScreenPlayer/demo.d.ts +2 -0
  156. package/es/ScreenPlayer/demo2.d.ts +2 -0
  157. package/es/ScreenPlayer/index.d.ts +6 -0
  158. package/es/ScreenPlayer/useTimeSlider.d.ts +25 -0
  159. package/es/ScreenPlayer/useTimeSlider.js +36 -36
  160. package/es/ScreenPlayer/useVideoFit.d.ts +5 -0
  161. package/es/ScreenPlayer/utils.d.ts +17 -0
  162. package/es/SegmentPlayer/index.d.ts +2 -0
  163. package/es/Service/http.d.ts +6 -0
  164. package/es/Service/index.d.ts +3 -0
  165. package/es/Service/middleware.d.ts +8 -0
  166. package/es/SocketEmitter/eventEmitter.d.ts +27 -0
  167. package/es/SocketEmitter/index.d.ts +24 -0
  168. package/es/TableLayout/index.d.ts +10 -0
  169. package/es/ThemeAntd/demo.d.ts +4 -0
  170. package/es/ThemeAntd/index.d.ts +7 -0
  171. package/es/Timeout/index.d.ts +26 -0
  172. package/es/bigNumberTransformCN/index.d.ts +5 -0
  173. package/es/cache/index.d.ts +34 -0
  174. package/es/copy/index.d.ts +1 -0
  175. package/es/getThemeStyle/index.d.ts +2 -0
  176. package/es/index.d.ts +62 -0
  177. package/es/likeGo/index.d.ts +2 -0
  178. package/es/likeGoSync/index.d.ts +2 -0
  179. package/es/logger/index.d.ts +7 -0
  180. package/es/nextTick/index.d.ts +1 -0
  181. package/es/recorder/demo.d.ts +3 -0
  182. package/es/recorder/index.d.ts +294 -0
  183. package/es/submidstr/index.d.ts +5 -0
  184. package/es/treeHelper/index.d.ts +11 -0
  185. package/es/useDrawROI/index.d.ts +16 -0
  186. package/es/useEventEmitterHandle/index.d.ts +2 -0
  187. package/es/useFullscreen/demo.d.ts +2 -0
  188. package/es/useFullscreen/index.d.ts +12 -0
  189. package/es/useHistory/index.d.ts +3 -0
  190. package/es/useInfiniteScroll/index.d.ts +16 -0
  191. package/es/useRafInterval/index.d.ts +5 -0
  192. package/es/useRafInterval/index.js +1 -0
  193. package/es/useSimpleState/index.d.ts +3 -0
  194. package/es/useVirtualList/index.d.ts +13 -0
  195. package/es/utils.d.ts +14 -0
  196. package/es/uuid/index.d.ts +1 -0
  197. 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;
@@ -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(null);
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,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): React.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): React.JSX.Element;
6
+ export default AutoExit;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: () => React.JSX.Element;
3
+ export default App;
@@ -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,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,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,2 @@
1
+ import React from 'react';
2
+ export default function App(): React.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,3 @@
1
+ import React from 'react';
2
+ declare const App: () => React.JSX.Element;
3
+ export default App;
@@ -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,2 @@
1
+ import React from 'react';
2
+ export default function (): React.JSX.Element;
@@ -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,4 @@
1
+ export declare const LIMIT = 10;
2
+ export declare const skeletonList: {
3
+ skeleton: boolean;
4
+ }[];
@@ -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,3 @@
1
+ import EventEmitter from '../SocketEmitter/eventEmitter';
2
+ declare const EventTools: EventEmitter;
3
+ export default EventTools;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IFrontendPlayerProps } from '../Player/player';
3
+ declare const _default: import("react").FC<IFrontendPlayerProps>;
4
+ export default _default;
@@ -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,3 @@
1
+ import React from 'react';
2
+ declare const App: () => React.JSX.Element;
3
+ 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 { 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,3 @@
1
+ import { VHistory } from '../useHistory/interface';
2
+ declare const InstanceHistory: VHistory;
3
+ export default InstanceHistory;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function App(): React.JSX.Element;
@@ -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,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -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,2 @@
1
+ import React from 'react';
2
+ export default function App(): React.JSX.Element;
@@ -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;