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.
Files changed (65) hide show
  1. package/README.md +99 -6
  2. package/dist/index.tsx +1 -1
  3. package/dist/index.tsx.map +1 -1
  4. package/dist/src/applets/index.d.ts +34 -34
  5. package/dist/src/components/Checkbox/index.d.ts +9 -9
  6. package/dist/src/components/DatePicker/index.d.ts +6 -6
  7. package/dist/src/components/DatePicker/index.d.ts.map +1 -1
  8. package/dist/src/components/Duration/index.d.ts +7 -7
  9. package/dist/src/components/Editor/index.d.ts +6 -6
  10. package/dist/src/components/FormList/index.d.ts +18 -0
  11. package/dist/src/components/FormList/index.d.ts.map +1 -1
  12. package/dist/src/components/InputNumber/index.d.ts +6 -6
  13. package/dist/src/components/Label/index.d.ts +5 -5
  14. package/dist/src/components/Photo/index.d.ts +5 -5
  15. package/dist/src/components/Radio/index.d.ts +9 -9
  16. package/dist/src/components/Select/index.d.ts +10 -10
  17. package/dist/src/components/SuperUpload/index.d.ts +5 -5
  18. package/dist/src/components/Switch/index.d.ts +6 -6
  19. package/dist/src/components/Table/index.d.ts +6 -6
  20. package/dist/src/components/Text/index.d.ts +6 -6
  21. package/dist/src/components/TextArea/index.d.ts +6 -6
  22. package/dist/src/components/TimePicker/index.d.ts +6 -6
  23. package/dist/src/components/TimePicker/index.d.ts.map +1 -1
  24. package/dist/src/components/Tooltip/index.d.ts +5 -5
  25. package/dist/src/components/Upload/index.d.ts +5 -5
  26. package/dist/src/components/index.d.ts +18 -18
  27. package/dist/src/components/index.d.ts.map +1 -1
  28. package/dist/src/config.d.ts +35 -32
  29. package/dist/src/config.d.ts.map +1 -1
  30. package/dist/src/containers/Col/index.d.ts +2 -3
  31. package/dist/src/containers/Col/index.d.ts.map +1 -1
  32. package/dist/src/containers/Collapse/index.d.ts +3 -3
  33. package/dist/src/containers/Content/index.d.ts +3 -3
  34. package/dist/src/containers/Divider/index.d.ts +2 -3
  35. package/dist/src/containers/Divider/index.d.ts.map +1 -1
  36. package/dist/src/containers/Row/index.d.ts +2 -3
  37. package/dist/src/containers/Row/index.d.ts.map +1 -1
  38. package/dist/src/containers/Steps/index.d.ts +2 -3
  39. package/dist/src/containers/Steps/index.d.ts.map +1 -1
  40. package/dist/src/containers/index.d.ts +6 -6
  41. package/dist/src/context.d.ts +2 -2
  42. package/dist/src/entity/XML.d.ts +39 -39
  43. package/dist/src/form/index.d.ts +135 -135
  44. package/dist/src/form/index.d.ts.map +1 -1
  45. package/dist/src/index.d.ts +4 -4
  46. package/dist/src/preview/index.d.ts +18 -19
  47. package/dist/src/preview/index.d.ts.map +1 -1
  48. package/dist/src/service/ProComponent.d.ts +12 -12
  49. package/dist/src/service/ProComponent.d.ts.map +1 -1
  50. package/dist/src/service/UIComponent.d.ts +106 -99
  51. package/dist/src/service/UIComponent.d.ts.map +1 -1
  52. package/dist/src/service/UIListComponent.d.ts +25 -32
  53. package/dist/src/service/UIListComponent.d.ts.map +1 -1
  54. package/dist/src/service/WidgetComponent.d.ts +3 -3
  55. package/dist/src/service/index.d.ts +4 -4
  56. package/dist/src/utils/document.d.ts +44 -0
  57. package/dist/src/utils/document.d.ts.map +1 -0
  58. package/dist/src/utils/loading.d.ts +19 -19
  59. package/dist/src/utils/request.d.ts +3 -3
  60. package/dist/src/utils/style.d.ts +7 -7
  61. package/package.json +24 -24
  62. package/dist/src/components/Signature/index.d.ts +0 -7
  63. package/dist/src/components/Signature/index.d.ts.map +0 -1
  64. package/dist/src/utils/doc.d.ts +0 -8
  65. 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 remote
7
- * @returns
8
- */
9
- request: (remote: string, args?: object) => Promise<any>;
10
- /**
11
- * 选项列表
12
- *
13
- * @param children
14
- * @returns
15
- */
16
- optionList(): Design.ItemOption[] | undefined;
17
- /**
18
- * 添加校验规则
19
- *
20
- * @returns
21
- */
22
- plusRules(): Design.Rule[];
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;AAGxC,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,OAAO,WAAiB,MAAM,SAAS,MAAM,kBAoB5C;IAED;;;;;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
+ {"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.2.13",
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": "^4.7.0",
14
- "antd": "^4.24.8",
15
- "antd-img-crop": "^4.6.0",
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.18.13",
29
+ "@babel/core": "^7.21.4",
30
30
  "@babel/plugin-external-helpers": "^7.18.6",
31
- "@babel/plugin-transform-runtime": "^7.18.10",
32
- "@babel/preset-env": "^7.18.10",
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.18.6",
35
- "@rollup/plugin-babel": "^5.3.1",
36
- "@rollup/plugin-commonjs": "^22.0.2",
37
- "@rollup/plugin-eslint": "^8.0.2",
38
- "@rollup/plugin-json": "^4.1.0",
39
- "@rollup/plugin-node-resolve": "^13.3.0",
40
- "@types/lodash": "^4.14.184",
41
- "@types/react": "^18.0.17",
42
- "@types/react-dom": "^18.0.6",
43
- "babel-plugin-import": "^1.13.5",
44
- "core-js": "^3.25.0",
45
- "postcss": "^8.4.16",
46
- "rollup": "^2.78.1",
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.33.0",
51
- "tslib": "^2.4.0",
52
- "typescript": "^4.8.2"
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,7 +0,0 @@
1
- import React from "react";
2
- import { UIComponent } from '@/service';
3
- export default class Sign extends UIComponent<Design.Sign.Props> {
4
- componentDidMount(): void;
5
- render(): React.ReactNode;
6
- }
7
- //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -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"}