ydb-components-material 0.1.122 → 0.1.123

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.
@@ -104,9 +104,13 @@ var FileItem = function FileItem(_ref) {
104
104
  setNeedOtherSign(otherSign);
105
105
  setIsNeedOtherSign(otherSignature);
106
106
  setIsNeedOtherSeal(otherSeal);
107
- setSignBtnText(otherSign ? '联合签署' : '签署文件');
108
- setReSignBtnText(otherSign ? '重新联合签署' : '重新签署');
109
- }, [signatureSelfRole, signatureAgentRole, signSelfRole, signAgentRole]);
107
+ // 按钮文字按 signerInfo 区分场景:
108
+ // 代办 signatureAgentRole/signAgentRole 含 OTHER
109
+ // 本人 signatureSelfRole/signSelfRole 含 OTHER
110
+ var signBtnOtherSign = Object.keys(signerInfo).length ? (signatureAgentRole !== null && signatureAgentRole !== void 0 ? signatureAgentRole : []).includes(OTHER) || (signAgentRole !== null && signAgentRole !== void 0 ? signAgentRole : []).includes(OTHER) : (signatureSelfRole !== null && signatureSelfRole !== void 0 ? signatureSelfRole : []).includes(OTHER) || (signSelfRole !== null && signSelfRole !== void 0 ? signSelfRole : []).includes(OTHER);
111
+ setSignBtnText(signBtnOtherSign ? '联合签署' : '签署文件');
112
+ setReSignBtnText(signBtnOtherSign ? '重新联合签署' : '重新签署');
113
+ }, [signatureSelfRole, signatureAgentRole, signSelfRole, signAgentRole, signerInfo]);
110
114
 
111
115
  // 是否展示签署按钮
112
116
  // 大前提: signatureEnable 或签章能力开启
@@ -110,9 +110,13 @@ var FileItem = function FileItem(_ref) {
110
110
  setNeedOtherSign(otherSign);
111
111
  setIsNeedOtherSign(otherSignature);
112
112
  setIsNeedOtherSeal(otherSeal);
113
- setSignBtnText(otherSign ? '联合签署' : '签署文件');
114
- setReSignBtnText(otherSign ? '重新联合签署' : '重新签署');
115
- }, [signatureSelfRole, signatureAgentRole, signSelfRole, signAgentRole]);
113
+ // 按钮文字按 signerInfo 区分场景:
114
+ // 代办 signatureAgentRole/signAgentRole 含 OTHER
115
+ // 本人 signatureSelfRole/signSelfRole 含 OTHER
116
+ var signBtnOtherSign = Object.keys(signerInfo).length ? (signatureAgentRole !== null && signatureAgentRole !== void 0 ? signatureAgentRole : []).includes(OTHER) || (signAgentRole !== null && signAgentRole !== void 0 ? signAgentRole : []).includes(OTHER) : (signatureSelfRole !== null && signatureSelfRole !== void 0 ? signatureSelfRole : []).includes(OTHER) || (signSelfRole !== null && signSelfRole !== void 0 ? signSelfRole : []).includes(OTHER);
117
+ setSignBtnText(signBtnOtherSign ? '联合签署' : '签署文件');
118
+ setReSignBtnText(signBtnOtherSign ? '重新联合签署' : '重新签署');
119
+ }, [signatureSelfRole, signatureAgentRole, signSelfRole, signAgentRole, signerInfo]);
116
120
 
117
121
  // 是否展示签署按钮
118
122
  // 大前提: signatureEnable 或签章能力开启
@@ -98,7 +98,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
98
98
  packageName = 'ydb-components-material';
99
99
  }
100
100
  if (version === void 0) {
101
- version = '0.1.122';
101
+ version = '0.1.123';
102
102
  }
103
103
  if (basicLibraryVersion === void 0) {
104
104
  basicLibraryVersion = {
@@ -103,7 +103,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
103
103
  packageName = 'ydb-components-material';
104
104
  }
105
105
  if (version === void 0) {
106
- version = '0.1.122';
106
+ version = '0.1.123';
107
107
  }
108
108
  if (basicLibraryVersion === void 0) {
109
109
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-components-material",
3
- "version": "0.1.122",
3
+ "version": "0.1.123",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -101,10 +101,10 @@
101
101
  },
102
102
  "componentConfig": {
103
103
  "isComponentLibrary": true,
104
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.122/build/lowcode/assets-prod.json"
104
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.123/build/lowcode/assets-prod.json"
105
105
  },
106
106
  "lcMeta": {
107
107
  "type": "component"
108
108
  },
109
- "homepage": "https://unpkg.com/ydb-components-material@0.1.122/build/index.html"
109
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.123/build/index.html"
110
110
  }