@cloud-app-dev/vidc 2.0.0-alpha.16 → 2.0.0-alpha.17
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 +0 -1
- package/es/AppRedirect/index.d.ts +0 -1
- package/es/AppRoute/index.js +1 -1
- package/es/CheckGroupFixed/index.d.ts +0 -1
- package/es/DeviceSelect/TreeType.d.ts +0 -1
- package/es/DeviceSelect/demo.d.ts +0 -1
- package/es/DeviceSelect/index.d.ts +0 -1
- package/es/Dict/desc.js +1 -1
- package/es/Drawer/Footer.d.ts +0 -1
- package/es/Drawer/index.d.ts +0 -1
- package/es/Input/index.d.ts +0 -1
- package/es/List/CheckExt.d.ts +0 -1
- package/es/List/DynamicDeviceList/Demo.d.ts +0 -1
- package/es/List/DynamicDeviceList/index.d.ts +0 -1
- package/es/List/VList/index.d.ts +0 -1
- package/es/List/index.d.ts +0 -1
- package/es/LoaderApp/index.js +16 -5
- package/es/LoaderApp/utils.d.ts +2 -1
- package/es/LoaderApp/utils.js +4 -2
- package/es/Modal/index.d.ts +6 -7
- package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -1
- package/es/Picture/component/DefaultRects/index.d.ts +0 -1
- package/es/Picture/component/DrawRect/index.d.ts +0 -1
- package/es/Picture/component/MoveContent/index.js +1 -1
- package/es/Picture/component/RectMenu/index.d.ts +0 -1
- package/es/Picture/component/WheelScale/index.d.ts +0 -1
- package/es/Picture/index.d.ts +0 -1
- package/es/Progress/index.d.ts +0 -1
- package/es/Tree/BaseTree/demo.d.ts +0 -1
- package/es/Tree/demo.d.ts +0 -1
- package/es/UserSelect/demo.d.ts +0 -1
- package/es/WorkerFlow/Form/Approver.d.ts +0 -1
- package/es/WorkerFlow/Form/Condition.d.ts +0 -1
- package/es/WorkerFlow/Form/EmptyUserSet.d.ts +0 -1
- package/es/WorkerFlow/Form/FormAuth.d.ts +0 -1
- package/es/WorkerFlow/Form/GroupList.d.ts +0 -1
- package/es/WorkerFlow/Form/GroupSelect.d.ts +0 -1
- package/es/WorkerFlow/Form/Handle.d.ts +0 -1
- package/es/WorkerFlow/Form/LevelGroupSelect.d.ts +0 -1
- package/es/WorkerFlow/Form/Notifier.d.ts +0 -1
- package/es/WorkerFlow/Form/UserAndGroupSelect.d.ts +0 -1
- package/es/WorkerFlow/Form/UserSelect.d.ts +0 -1
- package/es/WorkerFlow/Form/UserSet.d.ts +0 -1
- package/es/WorkerFlow/Form/UsersHandleType.d.ts +0 -1
- package/es/WorkerFlow/Nodes/Add.d.ts +0 -1
- package/es/WorkerFlow/Nodes/AddOption.d.ts +0 -1
- package/es/WorkerFlow/Nodes/AddOptionList.d.ts +0 -1
- package/es/WorkerFlow/Nodes/Approver.d.ts +0 -1
- package/es/WorkerFlow/Nodes/Condition.d.ts +0 -1
- package/es/WorkerFlow/Nodes/End.d.ts +0 -1
- package/es/WorkerFlow/Nodes/Handle.d.ts +0 -1
- package/es/WorkerFlow/Nodes/Node.d.ts +0 -1
- package/es/WorkerFlow/Nodes/Notifier.d.ts +0 -1
- package/es/WorkerFlow/Nodes/Render.d.ts +0 -1
- package/es/WorkerFlow/Nodes/Start.d.ts +0 -1
- package/es/WorkerFlow/Nodes/TitleElement.d.ts +0 -1
- package/package.json +2 -2
package/es/AppContext/Sync.d.ts
CHANGED
package/es/AppRoute/index.js
CHANGED
|
@@ -9,7 +9,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9
9
|
|
|
10
10
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
11
11
|
|
|
12
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
12
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
13
13
|
|
|
14
14
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
15
15
|
|
package/es/Dict/desc.js
CHANGED
|
@@ -6,7 +6,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6
6
|
|
|
7
7
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
8
8
|
|
|
9
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
9
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10
10
|
|
|
11
11
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12
12
|
|
package/es/Drawer/Footer.d.ts
CHANGED
package/es/Drawer/index.d.ts
CHANGED
package/es/Input/index.d.ts
CHANGED
package/es/List/CheckExt.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IDynamicDeviceListProps } from './interface';
|
|
3
2
|
import './index.less';
|
|
4
3
|
declare function DynamicDeviceList({ onClick, checkedKeys, defaultCheckedIds, onChecked, params, title, onKeywordChange, limit, itemHeight }: IDynamicDeviceListProps): JSX.Element;
|
package/es/List/VList/index.d.ts
CHANGED
package/es/List/index.d.ts
CHANGED
package/es/LoaderApp/index.js
CHANGED
|
@@ -42,18 +42,29 @@ function LoaderApp(_ref) {
|
|
|
42
42
|
var config = getMicroConfig(appConfig, appProps, domRef.current);
|
|
43
43
|
|
|
44
44
|
if (!config) {
|
|
45
|
-
console.
|
|
45
|
+
console.error('微应用不存在', 'config ->', appConfig, 'appProps ->', appProps);
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (!domRef.current || !styleRef.current) {
|
|
50
|
+
console.error('LoaderApp组件未正常初始化!', 'config ->', appConfig, 'appProps ->', appProps);
|
|
46
51
|
return undefined;
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
var props = Object.assign(Object.assign({}, appProps), {
|
|
50
55
|
container: domRef.current
|
|
51
56
|
});
|
|
57
|
+
var routerPrefix = config.routerPrefix;
|
|
58
|
+
|
|
59
|
+
var _appConfig$resource = _slicedToArray(appConfig.resource, 2),
|
|
60
|
+
script = _appConfig$resource[0],
|
|
61
|
+
style = _appConfig$resource[1];
|
|
62
|
+
|
|
52
63
|
var options = {
|
|
53
|
-
script:
|
|
54
|
-
style:
|
|
55
|
-
name:
|
|
56
|
-
prefix: ".".concat(
|
|
64
|
+
script: script,
|
|
65
|
+
style: style,
|
|
66
|
+
name: routerPrefix,
|
|
67
|
+
prefix: ".".concat(routerPrefix, "-").concat(id),
|
|
57
68
|
styleNode: styleRef.current
|
|
58
69
|
};
|
|
59
70
|
LoaderModule(options).then(function (mod) {
|
package/es/LoaderApp/utils.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AppItemType } from '../Config/interface';
|
|
2
2
|
export declare const getMicroConfig: (appConfig: AppItemType, appProps: any, container: HTMLDivElement) => {
|
|
3
|
-
|
|
3
|
+
title: string;
|
|
4
|
+
routerPrefix: string;
|
|
4
5
|
container: HTMLDivElement;
|
|
5
6
|
props: any;
|
|
6
7
|
entry: {
|
package/es/LoaderApp/utils.js
CHANGED
|
@@ -3,14 +3,16 @@ export var getMicroConfig = function getMicroConfig() {
|
|
|
3
3
|
var appProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
4
4
|
var container = arguments.length > 2 ? arguments[2] : undefined;
|
|
5
5
|
var routerPrefix = appConfig.routerPrefix,
|
|
6
|
-
resource = appConfig.resource
|
|
6
|
+
resource = appConfig.resource,
|
|
7
|
+
name = appConfig.name;
|
|
7
8
|
var microAppEntry = {
|
|
8
9
|
scripts: [resource[0]],
|
|
9
10
|
styles: [resource[1]],
|
|
10
11
|
html: "<div id=\"".concat(routerPrefix, "\" style=\"height:100%\"></div>")
|
|
11
12
|
};
|
|
12
13
|
return {
|
|
13
|
-
|
|
14
|
+
title: name,
|
|
15
|
+
routerPrefix: routerPrefix,
|
|
14
16
|
container: container,
|
|
15
17
|
props: appProps,
|
|
16
18
|
entry: microAppEntry
|
package/es/Modal/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ModalProps } from './interface';
|
|
3
2
|
import './index.less';
|
|
4
3
|
declare function Modal({ children, className, style, getContainer, ...props }: ModalProps): JSX.Element;
|
|
@@ -7,12 +6,12 @@ declare namespace Modal {
|
|
|
7
6
|
className: string;
|
|
8
7
|
getContainer: boolean;
|
|
9
8
|
};
|
|
10
|
-
var info;
|
|
11
|
-
var success;
|
|
12
|
-
var error;
|
|
13
|
-
var warn;
|
|
14
|
-
var warning;
|
|
15
|
-
var confirm;
|
|
9
|
+
var info: import("antd/lib/modal/confirm").ModalFunc;
|
|
10
|
+
var success: import("antd/lib/modal/confirm").ModalFunc;
|
|
11
|
+
var error: import("antd/lib/modal/confirm").ModalFunc;
|
|
12
|
+
var warn: import("antd/lib/modal/confirm").ModalFunc;
|
|
13
|
+
var warning: import("antd/lib/modal/confirm").ModalFunc;
|
|
14
|
+
var confirm: import("antd/lib/modal/confirm").ModalFunc;
|
|
16
15
|
var destroyAll: () => void;
|
|
17
16
|
}
|
|
18
17
|
export default Modal;
|
|
@@ -6,7 +6,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6
6
|
|
|
7
7
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
8
8
|
|
|
9
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); }
|
|
9
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10
10
|
|
|
11
11
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12
12
|
|
package/es/Picture/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IPictureProps } from './interface';
|
|
3
2
|
import './index.less';
|
|
4
3
|
declare function Picture({ className, width, height, minHeight, disabledDrag, imagePath, rects, isOpenSelect, disabledDrawMenu, menus, hasTool, fullScreenEle, ...props }: IPictureProps): JSX.Element;
|
package/es/Progress/index.d.ts
CHANGED
package/es/Tree/demo.d.ts
CHANGED
package/es/UserSelect/demo.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@cloud-app-dev/vidc",
|
|
4
4
|
"description": "Video Image Data Componennts",
|
|
5
|
-
"version": "2.0.0-alpha.
|
|
5
|
+
"version": "2.0.0-alpha.17",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "dumi dev",
|
|
8
8
|
"docs:build": "dumi build",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@types/add-dom-event-listener": "^1.1.0",
|
|
44
44
|
"@types/chroma-js": "^2.1.3",
|
|
45
45
|
"@types/lodash-es": "^4.17.5",
|
|
46
|
-
"@types/node": "^
|
|
46
|
+
"@types/node": "^17.0.5",
|
|
47
47
|
"@umijs/test": "^3.0.5",
|
|
48
48
|
"antd": "^4.17.0",
|
|
49
49
|
"babel-plugin-import": "^1.13.3",
|