ydb-components-material 0.1.78 → 0.1.80

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 (38) hide show
  1. package/build/docs/404.html +3 -3
  2. package/build/docs/_demos/:uuid +3 -3
  3. package/build/docs/colorful-button.html +3 -3
  4. package/build/docs/colorful-input.html +3 -3
  5. package/build/docs/index.html +3 -3
  6. package/build/docs/{umi.a6c45e4f.css → umi.111d5bd3.css} +1 -1
  7. package/build/docs/umi.1c99ba62.js +1 -0
  8. package/build/docs/~demos/:uuid.html +3 -3
  9. package/build/docs/~demos/colorful-button-demo.html +3 -3
  10. package/build/docs/~demos/colorful-input-demo.html +3 -3
  11. package/build/lowcode/assets-daily.json +11 -11
  12. package/build/lowcode/assets-dev.json +2 -2
  13. package/build/lowcode/assets-prod.json +11 -11
  14. package/build/lowcode/meta.js +1 -1
  15. package/build/lowcode/render/default/view.css +1 -1
  16. package/build/lowcode/render/default/view.js +1 -1
  17. package/build/lowcode/view.css +1 -1
  18. package/build/lowcode/view.js +1 -1
  19. package/dist/BizComps.css +1 -1
  20. package/dist/BizComps.js +1 -1
  21. package/dist/BizComps.js.map +1 -1
  22. package/es/components/file-item/checkPoint.scss +1 -1
  23. package/es/components/file-item/index.d.ts +2 -0
  24. package/es/components/file-item/index.js +15 -11
  25. package/es/components/file-item/seal.js +2 -2
  26. package/es/components/file-item/sign.js +2 -2
  27. package/lib/components/file-item/checkPoint.scss +1 -1
  28. package/lib/components/file-item/index.d.ts +2 -0
  29. package/lib/components/file-item/index.js +15 -11
  30. package/lib/components/file-item/seal.js +2 -2
  31. package/lib/components/file-item/sign.js +2 -2
  32. package/lowcode/file-item/meta.ts +17 -0
  33. package/lowcode_es/file-item/meta.js +16 -0
  34. package/lowcode_es/meta.js +1 -1
  35. package/lowcode_lib/file-item/meta.js +16 -0
  36. package/lowcode_lib/meta.js +1 -1
  37. package/package.json +3 -3
  38. package/build/docs/umi.42993f56.js +0 -1
@@ -7,7 +7,7 @@
7
7
  z-index: 999;
8
8
  left: 0;
9
9
  top: 0;
10
- // background: #ffffff;
10
+ background: #919191;
11
11
  // padding-top: 100px;
12
12
  #file_check_point {
13
13
  overflow: visible !important;
@@ -5,6 +5,7 @@ export interface FileItemProps {
5
5
  * 标题
6
6
  */
7
7
  fileUrl: string;
8
+ originalFileUrl: string;
8
9
  fileName: string;
9
10
  fileId: string;
10
11
  fileType: string;
@@ -26,6 +27,7 @@ export interface FileItemProps {
26
27
  isPC?: boolean;
27
28
  disabled?: boolean;
28
29
  checkPoint?: object;
30
+ style?: object;
29
31
  del: () => void;
30
32
  valChange: (value: any) => void;
31
33
  download: (value: any) => void;
@@ -25,6 +25,7 @@ import "./index.scss";
25
25
  var RadioGroup = _Radio.Group;
26
26
  var FileItem = function FileItem(_ref) {
27
27
  var fileUrl = _ref.fileUrl,
28
+ originalFileUrl = _ref.originalFileUrl,
28
29
  guideImg = _ref.guideImg,
29
30
  fileId = _ref.fileId,
30
31
  signatureEnable = _ref.signatureEnable,
@@ -46,6 +47,7 @@ var FileItem = function FileItem(_ref) {
46
47
  isPC = _ref.isPC,
47
48
  disabled = _ref.disabled,
48
49
  checkPoint = _ref.checkPoint,
50
+ style = _ref.style,
49
51
  valChange = _ref.valChange,
50
52
  download = _ref.download,
51
53
  del = _ref.del;
@@ -200,10 +202,9 @@ var FileItem = function FileItem(_ref) {
200
202
  // handleSeal()
201
203
  setIsShowSealPage(true);
202
204
  };
203
-
204
- // const signAndSeal = () => {
205
- // seal()
206
- // }
205
+ var signAndSeal = function signAndSeal() {
206
+ seal();
207
+ };
207
208
 
208
209
  // 获取签pi结果
209
210
  var getRes = function getRes(val) {
@@ -336,7 +337,8 @@ var FileItem = function FileItem(_ref) {
336
337
  window.accessToken = accessToken;
337
338
  }, [env, baseUrl, token, tokenTY, isPC, accessToken]);
338
339
  return /*#__PURE__*/React.createElement("div", {
339
- className: "file_item"
340
+ className: "file_item",
341
+ style: style
340
342
  }, /*#__PURE__*/React.createElement("div", {
341
343
  className: "file"
342
344
  }, /*#__PURE__*/React.createElement("div", {
@@ -516,7 +518,8 @@ var FileItem = function FileItem(_ref) {
516
518
  file: {
517
519
  name: fileName,
518
520
  url: fileUrl,
519
- type: fileType
521
+ type: fileType,
522
+ oldUrl: originalFileUrl
520
523
  },
521
524
  token: token,
522
525
  tokenTY: tokenTY,
@@ -532,7 +535,8 @@ var FileItem = function FileItem(_ref) {
532
535
  name: fileName,
533
536
  url: fileUrl,
534
537
  type: fileType,
535
- fileId: fileId
538
+ fileId: fileId,
539
+ oldUrl: originalFileUrl
536
540
  },
537
541
  token: token,
538
542
  tokenTY: tokenTY,
@@ -580,11 +584,11 @@ var FileItem = function FileItem(_ref) {
580
584
  onClick: function onClick() {
581
585
  return setIsShowGuide(false);
582
586
  }
583
- }), /*#__PURE__*/React.createElement("iframe", {
587
+ }), /*#__PURE__*/React.createElement("img", {
584
588
  src: guideurl,
585
- frameborder: "0",
586
- height: "90%",
587
- width: "100%"
589
+ style: {
590
+ height: '90%'
591
+ }
588
592
  })), checkPointData && /*#__PURE__*/React.createElement(CheckPoint, {
589
593
  checkPointData: checkPointData,
590
594
  handleClose: function handleClose() {
@@ -26,12 +26,12 @@ function SealPage(props) {
26
26
  while (1) switch (_context.prev = _context.next) {
27
27
  case 0:
28
28
  console.log('file', file, userInfo);
29
- fileObj = file;
29
+ fileObj = file; // 有旧的URL说明是重新签章 旧的是原始的空白的 重新签需要签在原始的空白文件
30
30
  if (file.oldUrl) {
31
31
  fileObj.url = file.oldUrl;
32
32
  }
33
33
  _context.next = 1;
34
- return initSealPageMethod(file, userInfo);
34
+ return initSealPageMethod(fileObj, userInfo);
35
35
  case 1:
36
36
  res = _context.sent;
37
37
  if (res) {
@@ -27,12 +27,12 @@ function SignPage(props) {
27
27
  return _regeneratorRuntime.wrap(function (_context) {
28
28
  while (1) switch (_context.prev = _context.next) {
29
29
  case 0:
30
- fileObj = file;
30
+ fileObj = file; // 有旧的URL说明是重新签章 旧的是原始的空白的 重新签需要签在原始的空白文件
31
31
  if (file.oldUrl) {
32
32
  fileObj.url = file.oldUrl;
33
33
  }
34
34
  _context.next = 1;
35
- return initSignPageMethod(file, userInfo);
35
+ return initSignPageMethod(fileObj, userInfo);
36
36
  case 1:
37
37
  res = _context.sent;
38
38
  documentIdVal = res.documentId, contractIdVal = res.contractId, pageUrl = res.pageUrl, nameVal = res.name;
@@ -7,7 +7,7 @@
7
7
  z-index: 999;
8
8
  left: 0;
9
9
  top: 0;
10
- // background: #ffffff;
10
+ background: #919191;
11
11
  // padding-top: 100px;
12
12
  #file_check_point {
13
13
  overflow: visible !important;
@@ -5,6 +5,7 @@ export interface FileItemProps {
5
5
  * 标题
6
6
  */
7
7
  fileUrl: string;
8
+ originalFileUrl: string;
8
9
  fileName: string;
9
10
  fileId: string;
10
11
  fileType: string;
@@ -26,6 +27,7 @@ export interface FileItemProps {
26
27
  isPC?: boolean;
27
28
  disabled?: boolean;
28
29
  checkPoint?: object;
30
+ style?: object;
29
31
  del: () => void;
30
32
  valChange: (value: any) => void;
31
33
  download: (value: any) => void;
@@ -31,6 +31,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
31
31
  var RadioGroup = _radio["default"].Group;
32
32
  var FileItem = function FileItem(_ref) {
33
33
  var fileUrl = _ref.fileUrl,
34
+ originalFileUrl = _ref.originalFileUrl,
34
35
  guideImg = _ref.guideImg,
35
36
  fileId = _ref.fileId,
36
37
  signatureEnable = _ref.signatureEnable,
@@ -52,6 +53,7 @@ var FileItem = function FileItem(_ref) {
52
53
  isPC = _ref.isPC,
53
54
  disabled = _ref.disabled,
54
55
  checkPoint = _ref.checkPoint,
56
+ style = _ref.style,
55
57
  valChange = _ref.valChange,
56
58
  download = _ref.download,
57
59
  del = _ref.del;
@@ -206,10 +208,9 @@ var FileItem = function FileItem(_ref) {
206
208
  // handleSeal()
207
209
  setIsShowSealPage(true);
208
210
  };
209
-
210
- // const signAndSeal = () => {
211
- // seal()
212
- // }
211
+ var signAndSeal = function signAndSeal() {
212
+ seal();
213
+ };
213
214
 
214
215
  // 获取签pi结果
215
216
  var getRes = function getRes(val) {
@@ -342,7 +343,8 @@ var FileItem = function FileItem(_ref) {
342
343
  window.accessToken = accessToken;
343
344
  }, [env, baseUrl, token, tokenTY, isPC, accessToken]);
344
345
  return /*#__PURE__*/_react["default"].createElement("div", {
345
- className: "file_item"
346
+ className: "file_item",
347
+ style: style
346
348
  }, /*#__PURE__*/_react["default"].createElement("div", {
347
349
  className: "file"
348
350
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -522,7 +524,8 @@ var FileItem = function FileItem(_ref) {
522
524
  file: {
523
525
  name: fileName,
524
526
  url: fileUrl,
525
- type: fileType
527
+ type: fileType,
528
+ oldUrl: originalFileUrl
526
529
  },
527
530
  token: token,
528
531
  tokenTY: tokenTY,
@@ -538,7 +541,8 @@ var FileItem = function FileItem(_ref) {
538
541
  name: fileName,
539
542
  url: fileUrl,
540
543
  type: fileType,
541
- fileId: fileId
544
+ fileId: fileId,
545
+ oldUrl: originalFileUrl
542
546
  },
543
547
  token: token,
544
548
  tokenTY: tokenTY,
@@ -586,11 +590,11 @@ var FileItem = function FileItem(_ref) {
586
590
  onClick: function onClick() {
587
591
  return setIsShowGuide(false);
588
592
  }
589
- }), /*#__PURE__*/_react["default"].createElement("iframe", {
593
+ }), /*#__PURE__*/_react["default"].createElement("img", {
590
594
  src: guideurl,
591
- frameborder: "0",
592
- height: "90%",
593
- width: "100%"
595
+ style: {
596
+ height: '90%'
597
+ }
594
598
  })), checkPointData && /*#__PURE__*/_react["default"].createElement(_checkPoint["default"], {
595
599
  checkPointData: checkPointData,
596
600
  handleClose: function handleClose() {
@@ -32,12 +32,12 @@ function SealPage(props) {
32
32
  while (1) switch (_context.prev = _context.next) {
33
33
  case 0:
34
34
  console.log('file', file, userInfo);
35
- fileObj = file;
35
+ fileObj = file; // 有旧的URL说明是重新签章 旧的是原始的空白的 重新签需要签在原始的空白文件
36
36
  if (file.oldUrl) {
37
37
  fileObj.url = file.oldUrl;
38
38
  }
39
39
  _context.next = 1;
40
- return (0, _sealUtil.initSealPageMethod)(file, userInfo);
40
+ return (0, _sealUtil.initSealPageMethod)(fileObj, userInfo);
41
41
  case 1:
42
42
  res = _context.sent;
43
43
  if (res) {
@@ -33,12 +33,12 @@ function SignPage(props) {
33
33
  return _regenerator["default"].wrap(function (_context) {
34
34
  while (1) switch (_context.prev = _context.next) {
35
35
  case 0:
36
- fileObj = file;
36
+ fileObj = file; // 有旧的URL说明是重新签章 旧的是原始的空白的 重新签需要签在原始的空白文件
37
37
  if (file.oldUrl) {
38
38
  fileObj.url = file.oldUrl;
39
39
  }
40
40
  _context.next = 1;
41
- return (0, _signUtil.initSignPageMethod)(file, userInfo);
41
+ return (0, _signUtil.initSignPageMethod)(fileObj, userInfo);
42
42
  case 1:
43
43
  res = _context.sent;
44
44
  documentIdVal = res.documentId, contractIdVal = res.contractId, pageUrl = res.pageUrl, nameVal = res.name;
@@ -49,6 +49,23 @@ const FileItemMeta: IPublicTypeComponentMetadata = {
49
49
  "initialValue": ""
50
50
  }
51
51
  },
52
+ {
53
+ "title": {
54
+ "label": {
55
+ "type": "i18n",
56
+ "en-US": "originalFileUrl",
57
+ "zh-CN": "原始文件地址"
58
+ },
59
+ "tip": "originalFileUrl | 原始文件地址"
60
+ },
61
+ "name": "originalFileUrl",
62
+ "description": "原始文件地址",
63
+ "setter": {
64
+ "componentName": "StringSetter",
65
+ "isRequired": true,
66
+ "initialValue": ""
67
+ }
68
+ },
52
69
  {
53
70
  "title": {
54
71
  "label": {
@@ -44,6 +44,22 @@ var FileItemMeta = {
44
44
  "isRequired": true,
45
45
  "initialValue": ""
46
46
  }
47
+ }, {
48
+ "title": {
49
+ "label": {
50
+ "type": "i18n",
51
+ "en-US": "originalFileUrl",
52
+ "zh-CN": "原始文件地址"
53
+ },
54
+ "tip": "originalFileUrl | 原始文件地址"
55
+ },
56
+ "name": "originalFileUrl",
57
+ "description": "原始文件地址",
58
+ "setter": {
59
+ "componentName": "StringSetter",
60
+ "isRequired": true,
61
+ "initialValue": ""
62
+ }
47
63
  }, {
48
64
  "title": {
49
65
  "label": {
@@ -89,7 +89,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
89
89
  packageName = 'ydb-components-material';
90
90
  }
91
91
  if (version === void 0) {
92
- version = '0.1.78';
92
+ version = '0.1.80';
93
93
  }
94
94
  if (basicLibraryVersion === void 0) {
95
95
  basicLibraryVersion = {
@@ -49,6 +49,22 @@ var FileItemMeta = {
49
49
  "isRequired": true,
50
50
  "initialValue": ""
51
51
  }
52
+ }, {
53
+ "title": {
54
+ "label": {
55
+ "type": "i18n",
56
+ "en-US": "originalFileUrl",
57
+ "zh-CN": "原始文件地址"
58
+ },
59
+ "tip": "originalFileUrl | 原始文件地址"
60
+ },
61
+ "name": "originalFileUrl",
62
+ "description": "原始文件地址",
63
+ "setter": {
64
+ "componentName": "StringSetter",
65
+ "isRequired": true,
66
+ "initialValue": ""
67
+ }
52
68
  }, {
53
69
  "title": {
54
70
  "label": {
@@ -94,7 +94,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
94
94
  packageName = 'ydb-components-material';
95
95
  }
96
96
  if (version === void 0) {
97
- version = '0.1.78';
97
+ version = '0.1.80';
98
98
  }
99
99
  if (basicLibraryVersion === void 0) {
100
100
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-components-material",
3
- "version": "0.1.78",
3
+ "version": "0.1.80",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -97,10 +97,10 @@
97
97
  },
98
98
  "componentConfig": {
99
99
  "isComponentLibrary": true,
100
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.78/build/lowcode/assets-prod.json"
100
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.80/build/lowcode/assets-prod.json"
101
101
  },
102
102
  "lcMeta": {
103
103
  "type": "component"
104
104
  },
105
- "homepage": "https://unpkg.com/ydb-components-material@0.1.78/build/index.html"
105
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.80/build/index.html"
106
106
  }