antd-form-document 0.2.13 → 5.0.0
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/README.md +99 -6
- package/dist/index.tsx +1 -1
- package/dist/index.tsx.map +1 -1
- package/dist/src/applets/index.d.ts +34 -34
- package/dist/src/components/Checkbox/index.d.ts +9 -9
- package/dist/src/components/DatePicker/index.d.ts +6 -6
- package/dist/src/components/DatePicker/index.d.ts.map +1 -1
- package/dist/src/components/Duration/index.d.ts +7 -7
- package/dist/src/components/Editor/index.d.ts +6 -6
- package/dist/src/components/FormList/index.d.ts +18 -0
- package/dist/src/components/FormList/index.d.ts.map +1 -1
- package/dist/src/components/InputNumber/index.d.ts +6 -6
- package/dist/src/components/Label/index.d.ts +5 -5
- package/dist/src/components/Photo/index.d.ts +5 -5
- package/dist/src/components/Radio/index.d.ts +9 -9
- package/dist/src/components/Select/index.d.ts +10 -10
- package/dist/src/components/SuperUpload/index.d.ts +5 -5
- package/dist/src/components/Switch/index.d.ts +6 -6
- package/dist/src/components/Table/index.d.ts +6 -6
- package/dist/src/components/Text/index.d.ts +6 -6
- package/dist/src/components/TextArea/index.d.ts +6 -6
- package/dist/src/components/TimePicker/index.d.ts +6 -6
- package/dist/src/components/TimePicker/index.d.ts.map +1 -1
- package/dist/src/components/Tooltip/index.d.ts +5 -5
- package/dist/src/components/Upload/index.d.ts +5 -5
- package/dist/src/components/index.d.ts +18 -18
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/config.d.ts +35 -32
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/containers/Col/index.d.ts +2 -3
- package/dist/src/containers/Col/index.d.ts.map +1 -1
- package/dist/src/containers/Collapse/index.d.ts +3 -3
- package/dist/src/containers/Content/index.d.ts +3 -3
- package/dist/src/containers/Divider/index.d.ts +2 -3
- package/dist/src/containers/Divider/index.d.ts.map +1 -1
- package/dist/src/containers/Row/index.d.ts +2 -3
- package/dist/src/containers/Row/index.d.ts.map +1 -1
- package/dist/src/containers/Steps/index.d.ts +2 -3
- package/dist/src/containers/Steps/index.d.ts.map +1 -1
- package/dist/src/containers/index.d.ts +6 -6
- package/dist/src/context.d.ts +2 -2
- package/dist/src/entity/XML.d.ts +39 -39
- package/dist/src/form/index.d.ts +135 -135
- package/dist/src/form/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -4
- package/dist/src/preview/index.d.ts +18 -19
- package/dist/src/preview/index.d.ts.map +1 -1
- package/dist/src/service/ProComponent.d.ts +12 -12
- package/dist/src/service/ProComponent.d.ts.map +1 -1
- package/dist/src/service/UIComponent.d.ts +106 -99
- package/dist/src/service/UIComponent.d.ts.map +1 -1
- package/dist/src/service/UIListComponent.d.ts +25 -32
- package/dist/src/service/UIListComponent.d.ts.map +1 -1
- package/dist/src/service/WidgetComponent.d.ts +3 -3
- package/dist/src/service/index.d.ts +4 -4
- package/dist/src/utils/document.d.ts +44 -0
- package/dist/src/utils/document.d.ts.map +1 -0
- package/dist/src/utils/loading.d.ts +19 -19
- package/dist/src/utils/request.d.ts +3 -3
- package/dist/src/utils/style.d.ts +7 -7
- package/package.json +24 -24
- package/dist/src/components/Signature/index.d.ts +0 -7
- package/dist/src/components/Signature/index.d.ts.map +0 -1
- package/dist/src/utils/doc.d.ts +0 -8
- package/dist/src/utils/doc.d.ts.map +0 -1
|
@@ -1,33 +1,26 @@
|
|
|
1
|
-
import UIComponent from "./UIComponent";
|
|
2
|
-
export default class UIListComponent<P extends Design.ComponentProps, S = {}> extends UIComponent<P, S> {
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* @param
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* @
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
* @param list
|
|
27
|
-
* @param itemList
|
|
28
|
-
* @param reset
|
|
29
|
-
* @returns
|
|
30
|
-
*/
|
|
31
|
-
getList: (list: Design.ItemOption[], itemList: string[] | undefined, reset: (plist: Design.ItemOption[]) => void) => Design.ItemOption[];
|
|
32
|
-
}
|
|
1
|
+
import UIComponent from "./UIComponent";
|
|
2
|
+
export default class UIListComponent<P extends Design.ComponentProps, S = {}> extends UIComponent<P, S> {
|
|
3
|
+
/**
|
|
4
|
+
* 选项列表
|
|
5
|
+
*
|
|
6
|
+
* @param children
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
optionList(): Design.ItemOption[] | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* 添加校验规则
|
|
12
|
+
*
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
plusRules(): Design.Rule[];
|
|
16
|
+
/**
|
|
17
|
+
* 获得资源列表
|
|
18
|
+
*
|
|
19
|
+
* @param list
|
|
20
|
+
* @param itemList
|
|
21
|
+
* @param reset
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
getList: (list: Design.ItemOption[], itemList: string[] | undefined, reset: (plist: Design.ItemOption[]) => void) => Design.ItemOption[];
|
|
25
|
+
}
|
|
33
26
|
//# sourceMappingURL=UIListComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UIListComponent.d.ts","sourceRoot":"","sources":["../../../src/service/UIListComponent.tsx"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"UIListComponent.d.ts","sourceRoot":"","sources":["../../../src/service/UIListComponent.tsx"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,eAAe,CAAC,CAAC,SAAS,MAAM,CAAC,cAAc,EAAE,CAAC,GAAG,EAAE,CAAE,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAErG;;;;;OAKG;IACH,UAAU,IAAI,MAAM,CAAC,UAAU,EAAE,GAAG,SAAS;IAK7C;;;;OAIG;IACH,SAAS,IAAI,MAAM,CAAC,IAAI,EAAE;IAe1B;;;;;;;OAOG;IACH,OAAO,SAAU,OAAO,UAAU,EAAE,YAAY,MAAM,EAAE,GAAG,SAAS,iBAAiB,OAAO,UAAU,EAAE,KAAK,IAAI,yBAOhH;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
export default class WidgetComponent<P = {}, S = {}> extends PureComponent<P, S> {
|
|
3
|
-
}
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
export default class WidgetComponent<P = {}, S = {}> extends PureComponent<P, S> {
|
|
3
|
+
}
|
|
4
4
|
//# sourceMappingURL=WidgetComponent.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as ProComponent } from "./ProComponent";
|
|
2
|
-
export { default as UIComponent } from "./UIComponent";
|
|
3
|
-
export { default as UIListComponent } from "./UIListComponent";
|
|
4
|
-
export { default as WidgetComponent } from "./WidgetComponent";
|
|
1
|
+
export { default as ProComponent } from "./ProComponent";
|
|
2
|
+
export { default as UIComponent } from "./UIComponent";
|
|
3
|
+
export { default as UIListComponent } from "./UIListComponent";
|
|
4
|
+
export { default as WidgetComponent } from "./WidgetComponent";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import XML from "@/entity/XML";
|
|
2
|
+
/**
|
|
3
|
+
* xml 解析类
|
|
4
|
+
*/
|
|
5
|
+
export default class XMLDocument {
|
|
6
|
+
/**
|
|
7
|
+
* document 解析 xml对象
|
|
8
|
+
*
|
|
9
|
+
* @param document
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
static parser(document: Document): XML;
|
|
13
|
+
/**
|
|
14
|
+
* document字符串 转换 document对象
|
|
15
|
+
*
|
|
16
|
+
* @param documentString
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
static toDocument(documentString: string): Document;
|
|
20
|
+
/**
|
|
21
|
+
* document字符串 转换 xml对象
|
|
22
|
+
*
|
|
23
|
+
* @param documentString
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
static getRoot(documentString: string): XML;
|
|
27
|
+
/**
|
|
28
|
+
* 选择单个元素
|
|
29
|
+
*
|
|
30
|
+
* @param document
|
|
31
|
+
* @param selectors
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
static selector(document: Document | Element, selectors: string): Element | null;
|
|
35
|
+
/**
|
|
36
|
+
* 选择多个元素
|
|
37
|
+
*
|
|
38
|
+
* @param document
|
|
39
|
+
* @param selectors
|
|
40
|
+
* @returns
|
|
41
|
+
*/
|
|
42
|
+
static selectors(document: Document | Element, selectors: string): NodeListOf<Element>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/utils/document.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,WAAW;IAE9B;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ;IAKhC;;;;;OAKG;IACH,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,MAAM,GAAG,QAAQ;IAInD;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,GAAG;IAK3C;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI;IAIhF;;;;;;OAMG;IACH,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC;CAGvF"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 注册loading
|
|
3
|
-
*
|
|
4
|
-
* @param payload
|
|
5
|
-
*/
|
|
6
|
-
export declare const regrister: (payload: (loading: boolean) => void) => void;
|
|
7
|
-
/**
|
|
8
|
-
* 开始加载loading
|
|
9
|
-
*/
|
|
10
|
-
export declare const begin: () => Promise<void>;
|
|
11
|
-
/**
|
|
12
|
-
* 结束加载loading
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
export declare const end: () => Promise<void>;
|
|
16
|
-
/**
|
|
17
|
-
* 错误loading
|
|
18
|
-
*/
|
|
19
|
-
export declare const error: () => Promise<void>;
|
|
1
|
+
/**
|
|
2
|
+
* 注册loading
|
|
3
|
+
*
|
|
4
|
+
* @param payload
|
|
5
|
+
*/
|
|
6
|
+
export declare const regrister: (payload: (loading: boolean) => void) => void;
|
|
7
|
+
/**
|
|
8
|
+
* 开始加载loading
|
|
9
|
+
*/
|
|
10
|
+
export declare const begin: () => Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* 结束加载loading
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export declare const end: () => Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* 错误loading
|
|
18
|
+
*/
|
|
19
|
+
export declare const error: () => Promise<void>;
|
|
20
20
|
//# sourceMappingURL=loading.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** request **/
|
|
2
|
-
declare const _default: (uri: string) => (data?: any) => Promise<any>;
|
|
3
|
-
export default _default;
|
|
1
|
+
/** request **/
|
|
2
|
+
declare const _default: (uri: string) => (data?: any) => Promise<any>;
|
|
3
|
+
export default _default;
|
|
4
4
|
//# sourceMappingURL=request.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 转换样式对象
|
|
3
|
-
*
|
|
4
|
-
* @param style string
|
|
5
|
-
* @returns styles
|
|
6
|
-
*/
|
|
7
|
-
export declare const toStyles: (style: string | undefined) => {};
|
|
1
|
+
/**
|
|
2
|
+
* 转换样式对象
|
|
3
|
+
*
|
|
4
|
+
* @param style string
|
|
5
|
+
* @returns styles
|
|
6
|
+
*/
|
|
7
|
+
export declare const toStyles: (style: string | undefined) => {};
|
|
8
8
|
//# sourceMappingURL=style.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-form-document",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"main": "dist/index.tsx",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"description": "antd-form-document",
|
|
7
8
|
"scripts": {
|
|
@@ -10,9 +11,9 @@
|
|
|
10
11
|
"ts": "tsc --init"
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
|
-
"@ant-design/icons": "^
|
|
14
|
-
"antd": "^
|
|
15
|
-
"antd-img-crop": "^4.
|
|
14
|
+
"@ant-design/icons": "^5.0.1",
|
|
15
|
+
"antd": "^5.5.0",
|
|
16
|
+
"antd-img-crop": "^4.12.2",
|
|
16
17
|
"bytes": "^3.1.2",
|
|
17
18
|
"file-block-upload": "^1.1.10",
|
|
18
19
|
"lodash": "^4.17.21",
|
|
@@ -21,35 +22,34 @@
|
|
|
21
22
|
"path-to-regexp": "^6.2.1",
|
|
22
23
|
"react": "^18.2.0",
|
|
23
24
|
"react-dom": "^18.2.0",
|
|
24
|
-
"react-signature-canvas": "^1.0.6",
|
|
25
25
|
"umi-request": "^1.4.0",
|
|
26
26
|
"wangeditor-for-react": "^1.5.6"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@babel/core": "^7.
|
|
29
|
+
"@babel/core": "^7.21.4",
|
|
30
30
|
"@babel/plugin-external-helpers": "^7.18.6",
|
|
31
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
32
|
-
"@babel/preset-env": "^7.
|
|
31
|
+
"@babel/plugin-transform-runtime": "^7.21.4",
|
|
32
|
+
"@babel/preset-env": "^7.21.4",
|
|
33
33
|
"@babel/preset-react": "^7.18.6",
|
|
34
|
-
"@babel/preset-typescript": "^7.
|
|
35
|
-
"@rollup/plugin-babel": "^
|
|
36
|
-
"@rollup/plugin-commonjs": "^
|
|
37
|
-
"@rollup/plugin-eslint": "^
|
|
38
|
-
"@rollup/plugin-json": "^
|
|
39
|
-
"@rollup/plugin-node-resolve": "^
|
|
40
|
-
"@types/lodash": "^4.14.
|
|
41
|
-
"@types/react": "^18.
|
|
42
|
-
"@types/react-dom": "^18.
|
|
43
|
-
"babel-plugin-import": "^1.13.
|
|
44
|
-
"core-js": "^3.
|
|
45
|
-
"postcss": "^8.4.
|
|
46
|
-
"rollup": "^
|
|
34
|
+
"@babel/preset-typescript": "^7.21.4",
|
|
35
|
+
"@rollup/plugin-babel": "^6.0.3",
|
|
36
|
+
"@rollup/plugin-commonjs": "^24.1.0",
|
|
37
|
+
"@rollup/plugin-eslint": "^9.0.3",
|
|
38
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
39
|
+
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
40
|
+
"@types/lodash": "^4.14.194",
|
|
41
|
+
"@types/react": "^18.2.6",
|
|
42
|
+
"@types/react-dom": "^18.2.4",
|
|
43
|
+
"babel-plugin-import": "^1.13.6",
|
|
44
|
+
"core-js": "^3.30.1",
|
|
45
|
+
"postcss": "^8.4.23",
|
|
46
|
+
"rollup": "^3.20.2",
|
|
47
47
|
"rollup-plugin-clear": "^2.0.7",
|
|
48
48
|
"rollup-plugin-postcss": "^4.0.2",
|
|
49
49
|
"rollup-plugin-terser": "^7.0.2",
|
|
50
|
-
"rollup-plugin-typescript2": "^0.
|
|
51
|
-
"tslib": "^2.
|
|
52
|
-
"typescript": "^
|
|
50
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
51
|
+
"tslib": "^2.5.0",
|
|
52
|
+
"typescript": "^5.0.4"
|
|
53
53
|
},
|
|
54
54
|
"keywords": [
|
|
55
55
|
"react",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Signature/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAmB,MAAM,WAAW,CAAC;AAGzD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;IAE9D,iBAAiB,IAAI,IAAI;IAIzB,MAAM,IAAI,KAAK,CAAC,SAAS;CAyB1B"}
|
package/dist/src/utils/doc.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import XML from "@/entity/XML";
|
|
2
|
-
export default class XMLDocument {
|
|
3
|
-
static parser(document: Document): XML;
|
|
4
|
-
static toDocument(documentString: string): Document;
|
|
5
|
-
static getRoot(documentString: string): XML;
|
|
6
|
-
static xpath(path: string): Node | null;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=doc.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"doc.d.ts","sourceRoot":"","sources":["../../../src/utils/doc.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ;IAKhC,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,MAAM,GAAG,QAAQ;IAInD,MAAM,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,GAAG;IAK3C,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;CAGxC"}
|