ydb-components-material 0.1.173 → 0.1.174

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.
@@ -15,6 +15,8 @@ export interface SignFileProps {
15
15
  style?: object;
16
16
  parentPageUrl: string;
17
17
  applySeal: () => void;
18
+ openLoading: () => void;
19
+ closeLoading: () => void;
18
20
  download: (value: any) => void;
19
21
  valChange: (value: any) => void;
20
22
  toSign?: (url: string) => void;
@@ -33,6 +33,8 @@ var SignFile = function SignFile(_ref) {
33
33
  valChange = _ref.valChange,
34
34
  applySeal = _ref.applySeal,
35
35
  toSign = _ref.toSign,
36
+ openLoading = _ref.openLoading,
37
+ closeLoading = _ref.closeLoading,
36
38
  parentPageUrl = _ref.parentPageUrl;
37
39
  var fileName = file.fileName,
38
40
  fileUrl = file.fileUrl,
@@ -465,7 +467,7 @@ var SignFile = function SignFile(_ref) {
465
467
  clearInterval(timerRef.current);
466
468
  timerRef.current = null;
467
469
  localStorage.removeItem(fileId);
468
- // closeLoading()
470
+ closeLoading();
469
471
  getRes(_extends({}, file, {
470
472
  fileId: newFile.fileId,
471
473
  fileName: nameVal,
@@ -507,7 +509,7 @@ var SignFile = function SignFile(_ref) {
507
509
  localStorage.removeItem(fileId);
508
510
  originalUrlRef.current = originalUrl || '';
509
511
  if (docId && contrId && nameVal) {
510
- // openLoading()
512
+ openLoading();
511
513
  // 兜底:连续 10 次轮询仍未成功则结束轮询,避免无限请求
512
514
  var pollCount = 0;
513
515
  timerRef.current = setInterval(function () {
@@ -518,7 +520,7 @@ var SignFile = function SignFile(_ref) {
518
520
  if (pollCount >= 10) {
519
521
  clearInterval(timerRef.current);
520
522
  timerRef.current = null;
521
- // closeLoading()
523
+ closeLoading();
522
524
  }
523
525
  }
524
526
  });
@@ -15,6 +15,8 @@ export interface SignFileProps {
15
15
  style?: object;
16
16
  parentPageUrl: string;
17
17
  applySeal: () => void;
18
+ openLoading: () => void;
19
+ closeLoading: () => void;
18
20
  download: (value: any) => void;
19
21
  valChange: (value: any) => void;
20
22
  toSign?: (url: string) => void;
@@ -39,6 +39,8 @@ var SignFile = function SignFile(_ref) {
39
39
  valChange = _ref.valChange,
40
40
  applySeal = _ref.applySeal,
41
41
  toSign = _ref.toSign,
42
+ openLoading = _ref.openLoading,
43
+ closeLoading = _ref.closeLoading,
42
44
  parentPageUrl = _ref.parentPageUrl;
43
45
  var fileName = file.fileName,
44
46
  fileUrl = file.fileUrl,
@@ -471,7 +473,7 @@ var SignFile = function SignFile(_ref) {
471
473
  clearInterval(timerRef.current);
472
474
  timerRef.current = null;
473
475
  localStorage.removeItem(fileId);
474
- // closeLoading()
476
+ closeLoading();
475
477
  getRes((0, _extends2["default"])({}, file, {
476
478
  fileId: newFile.fileId,
477
479
  fileName: nameVal,
@@ -513,7 +515,7 @@ var SignFile = function SignFile(_ref) {
513
515
  localStorage.removeItem(fileId);
514
516
  originalUrlRef.current = originalUrl || '';
515
517
  if (docId && contrId && nameVal) {
516
- // openLoading()
518
+ openLoading();
517
519
  // 兜底:连续 10 次轮询仍未成功则结束轮询,避免无限请求
518
520
  var pollCount = 0;
519
521
  timerRef.current = setInterval(function () {
@@ -524,7 +526,7 @@ var SignFile = function SignFile(_ref) {
524
526
  if (pollCount >= 10) {
525
527
  clearInterval(timerRef.current);
526
528
  timerRef.current = null;
527
- // closeLoading()
529
+ closeLoading();
528
530
  }
529
531
  }
530
532
  });
@@ -214,6 +214,34 @@ const SignFileMeta: IPublicTypeComponentMetadata = {
214
214
  "initialValue": ""
215
215
  }
216
216
  },
217
+ {
218
+ "title": {
219
+ "label": {
220
+ "type": "i18n",
221
+ "en-US": "openLoading",
222
+ "zh-CN": "openLoading"
223
+ }
224
+ },
225
+ "name": "openLoading",
226
+ "setter": {
227
+ "componentName": "FunctionSetter",
228
+ "isRequired": true
229
+ }
230
+ },
231
+ {
232
+ "title": {
233
+ "label": {
234
+ "type": "i18n",
235
+ "en-US": "closeLoading",
236
+ "zh-CN": "closeLoading"
237
+ }
238
+ },
239
+ "name": "closeLoading",
240
+ "setter": {
241
+ "componentName": "FunctionSetter",
242
+ "isRequired": true
243
+ }
244
+ },
217
245
  ],
218
246
  "supports": {
219
247
  "style": true
@@ -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.173';
101
+ version = '0.1.174';
102
102
  }
103
103
  if (basicLibraryVersion === void 0) {
104
104
  basicLibraryVersion = {
@@ -199,6 +199,32 @@ var SignFileMeta = {
199
199
  "isRequired": true,
200
200
  "initialValue": ""
201
201
  }
202
+ }, {
203
+ "title": {
204
+ "label": {
205
+ "type": "i18n",
206
+ "en-US": "openLoading",
207
+ "zh-CN": "openLoading"
208
+ }
209
+ },
210
+ "name": "openLoading",
211
+ "setter": {
212
+ "componentName": "FunctionSetter",
213
+ "isRequired": true
214
+ }
215
+ }, {
216
+ "title": {
217
+ "label": {
218
+ "type": "i18n",
219
+ "en-US": "closeLoading",
220
+ "zh-CN": "closeLoading"
221
+ }
222
+ },
223
+ "name": "closeLoading",
224
+ "setter": {
225
+ "componentName": "FunctionSetter",
226
+ "isRequired": true
227
+ }
202
228
  }],
203
229
  "supports": {
204
230
  "style": true
@@ -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.173';
106
+ version = '0.1.174';
107
107
  }
108
108
  if (basicLibraryVersion === void 0) {
109
109
  basicLibraryVersion = {
@@ -204,6 +204,32 @@ var SignFileMeta = {
204
204
  "isRequired": true,
205
205
  "initialValue": ""
206
206
  }
207
+ }, {
208
+ "title": {
209
+ "label": {
210
+ "type": "i18n",
211
+ "en-US": "openLoading",
212
+ "zh-CN": "openLoading"
213
+ }
214
+ },
215
+ "name": "openLoading",
216
+ "setter": {
217
+ "componentName": "FunctionSetter",
218
+ "isRequired": true
219
+ }
220
+ }, {
221
+ "title": {
222
+ "label": {
223
+ "type": "i18n",
224
+ "en-US": "closeLoading",
225
+ "zh-CN": "closeLoading"
226
+ }
227
+ },
228
+ "name": "closeLoading",
229
+ "setter": {
230
+ "componentName": "FunctionSetter",
231
+ "isRequired": true
232
+ }
207
233
  }],
208
234
  "supports": {
209
235
  "style": true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-components-material",
3
- "version": "0.1.173",
3
+ "version": "0.1.174",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -102,10 +102,10 @@
102
102
  },
103
103
  "componentConfig": {
104
104
  "isComponentLibrary": true,
105
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.173/build/lowcode/assets-prod.json"
105
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.174/build/lowcode/assets-prod.json"
106
106
  },
107
107
  "lcMeta": {
108
108
  "type": "component"
109
109
  },
110
- "homepage": "https://unpkg.com/ydb-components-material@0.1.173/build/index.html"
110
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.174/build/index.html"
111
111
  }