@cloud-app-dev/vidc 4.0.11 → 4.0.13
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.js +1 -1
- package/es/DBTools/index.js +1 -1
- package/es/EventTools/index.d.ts +1 -1
- package/es/LoaderScript/index.d.ts +22 -1
- package/es/LoaderScript/utils.d.ts +1 -1
- package/es/Map/ClusterLayer/demo.js +1 -1
- package/es/Map/InfoWindow/demo.js +1 -1
- package/es/Map/LevelCenter/demo.js +2 -2
- package/es/Map/MapDrawSelect/demo.js +1 -1
- package/es/Map/points.d.ts +74 -0
- package/es/Map/points.js +1 -0
- package/es/Player/event/errorEvent.js +2 -2
- package/es/Player/event/index.js +1 -1
- package/es/PlayerExt/index.d.ts +1 -1
- package/es/ScreenPlayer/RatePick.d.ts +2 -1
- package/es/ScreenPlayer/RatePick.js +10 -24
- package/es/ScreenPlayer/Record.d.ts +1 -1
- package/es/ScreenPlayer/Record.js +4 -2
- package/es/ScreenPlayer/RecordTools.d.ts +2 -1
- package/es/ScreenPlayer/RecordTools.js +3 -1
- package/es/ScreenPlayer/interface.d.ts +5 -0
- package/es/SocketEmitter/eventEmitter.js +1 -0
- package/es/SocketEmitter/index.js +3 -3
- package/es/SocketEmitter/interface.d.ts +1 -1
- package/es/submidstr/index.d.ts +1 -1
- package/es/treeHelper/index.d.ts +3 -3
- package/es/treeHelper/index.js +29 -13
- package/package.json +3 -3
- package/es/LoaderScript/interface.d.ts +0 -26
- package/es/Map/points.json +0 -61247
package/es/AppContext/Sync.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import { _LOGIN_STATUS_EVENT_CHANGE_, _OPERATION_EVENT_CHANGE_, _USER_EVENT_CHANGE_, _STORE_EVENT_CHANGE_ } from "./static";
|
|
3
2
|
import SocketEmitter from "../SocketEmitter";
|
|
3
|
+
import { _LOGIN_STATUS_EVENT_CHANGE_, _OPERATION_EVENT_CHANGE_, _STORE_EVENT_CHANGE_, _USER_EVENT_CHANGE_ } from "./static";
|
|
4
4
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
function Sync(_ref) {
|
package/es/DBTools/index.js
CHANGED
|
@@ -14,8 +14,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
14
14
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
15
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
16
|
import db from 'db.js';
|
|
17
|
-
import logger from "../logger";
|
|
18
17
|
import cache from "../cache";
|
|
18
|
+
import logger from "../logger";
|
|
19
19
|
var schema = {
|
|
20
20
|
key: {
|
|
21
21
|
keyPath: 'id',
|
package/es/EventTools/index.d.ts
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
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
|
+
}
|
|
3
24
|
export interface ILoaderProps {
|
|
4
25
|
/**
|
|
5
26
|
* @description 脚本加载数据源
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IOptionsLoader } from '
|
|
1
|
+
import { IOptionsLoader } from '.';
|
|
2
2
|
export declare const loadScript: (url: string) => Promise<unknown>;
|
|
3
3
|
export declare const loaderCss: (href: string) => Promise<unknown>;
|
|
4
4
|
export declare function createAsyncIterable(options: IOptionsLoader[]): {
|
|
@@ -12,7 +12,7 @@ import React, { useState } from 'react';
|
|
|
12
12
|
import Player from "../../Player";
|
|
13
13
|
import Map from "../BasicMap";
|
|
14
14
|
import ClusterLayer from "../ClusterLayer";
|
|
15
|
-
import deviceList from "../points
|
|
15
|
+
import deviceList from "../points";
|
|
16
16
|
import InfoWindow from "./MakerLikeWindow";
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -10,10 +10,10 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
11
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { ConfigProvider } from 'antd';
|
|
13
14
|
import React, { useEffect, useState } from 'react';
|
|
15
|
+
import deviceList from "../points";
|
|
14
16
|
import LevelCenter from "./index";
|
|
15
|
-
import deviceList from "../points.json";
|
|
16
|
-
import { ConfigProvider } from 'antd';
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
var App = function App() {
|
|
19
19
|
var _useState = useState({
|
|
@@ -5,8 +5,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
|
+
import deviceList from "../points";
|
|
8
9
|
import MapDrawSelect from "./index";
|
|
9
|
-
import deviceList from "../points.json";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
var App = function App() {
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
declare const data: ({
|
|
2
|
+
cid: string;
|
|
3
|
+
deviceName: string;
|
|
4
|
+
deviceStatus: string;
|
|
5
|
+
deviceType: string;
|
|
6
|
+
id: string;
|
|
7
|
+
latitude: string;
|
|
8
|
+
longitude: string;
|
|
9
|
+
manufacturerDeviceId: string;
|
|
10
|
+
manufacturerDeviceType: string;
|
|
11
|
+
organizationIds: string[];
|
|
12
|
+
pathId: number[];
|
|
13
|
+
placeId: string;
|
|
14
|
+
sn: string;
|
|
15
|
+
boxNum: string;
|
|
16
|
+
cameraType: number;
|
|
17
|
+
hasFrontEnd: boolean;
|
|
18
|
+
hasStorage: boolean;
|
|
19
|
+
parentId: string;
|
|
20
|
+
accessType: string;
|
|
21
|
+
villageLocationType: string;
|
|
22
|
+
placeTags: string[];
|
|
23
|
+
createTime: string;
|
|
24
|
+
lygroupId?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
cid: string;
|
|
27
|
+
deviceName: string;
|
|
28
|
+
deviceStatus: string;
|
|
29
|
+
deviceType: string;
|
|
30
|
+
id: string;
|
|
31
|
+
latitude: string;
|
|
32
|
+
longitude: string;
|
|
33
|
+
lygroupId: string;
|
|
34
|
+
manufacturerDeviceId: string;
|
|
35
|
+
manufacturerDeviceType: string;
|
|
36
|
+
organizationIds: string[];
|
|
37
|
+
pathId: number[];
|
|
38
|
+
placeId: string;
|
|
39
|
+
sn: string;
|
|
40
|
+
boxNum: string;
|
|
41
|
+
cameraType: number;
|
|
42
|
+
hasFrontEnd: boolean;
|
|
43
|
+
hasStorage: boolean;
|
|
44
|
+
parentId: string;
|
|
45
|
+
accessType: string;
|
|
46
|
+
villageLocationType: string;
|
|
47
|
+
placeTags: string[];
|
|
48
|
+
createTime: string;
|
|
49
|
+
} | {
|
|
50
|
+
cid: string;
|
|
51
|
+
deviceName: string;
|
|
52
|
+
deviceStatus: string;
|
|
53
|
+
deviceType: string;
|
|
54
|
+
id: string;
|
|
55
|
+
latitude: string;
|
|
56
|
+
longitude: string;
|
|
57
|
+
manufacturerDeviceId: string;
|
|
58
|
+
manufacturerDeviceType: string;
|
|
59
|
+
organizationIds: string[];
|
|
60
|
+
pathId: number[];
|
|
61
|
+
placeId: string;
|
|
62
|
+
sn: string;
|
|
63
|
+
boxNum: string;
|
|
64
|
+
cameraType: null;
|
|
65
|
+
hasFrontEnd: boolean;
|
|
66
|
+
hasStorage: boolean;
|
|
67
|
+
parentId: string;
|
|
68
|
+
accessType: string;
|
|
69
|
+
villageLocationType: string;
|
|
70
|
+
placeTags: string[];
|
|
71
|
+
createTime: string;
|
|
72
|
+
lygroupId?: undefined;
|
|
73
|
+
})[];
|
|
74
|
+
export default data;
|