@verdocs/web-sdk 1.15.2 → 1.15.3
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/dist/cjs/verdocs-activity-box.cjs.entry.js +6 -7
- package/dist/collection/components/envelopes/verdocs-activity-box/verdocs-activity-box.js +1 -1
- package/dist/components/verdocs-activity-box.js +6 -7
- package/dist/custom-elements.json +1890 -0
- package/dist/docs.json +1 -1
- package/dist/esm/verdocs-activity-box.entry.js +6 -7
- package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
- package/dist/verdocs-web-sdk/p-1cf38cea.system.js +1 -1
- package/dist/verdocs-web-sdk/p-80f083a4.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-812ed1e7.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/verdocs-web-sdk/p-3ad85ae0.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3d80bb1e.entry.js +0 -1
@@ -11,7 +11,6 @@ const Primitives = require('./Primitives-be5088cb.js');
|
|
11
11
|
const errors = require('./errors-0396da3d.js');
|
12
12
|
|
13
13
|
var YEAR = 365 * 24 * 60 * 60;
|
14
|
-
var MONTH = 30 * 24 * 60 * 60;
|
15
14
|
var WEEK = 7 * 24 * 60 * 60;
|
16
15
|
var DAY = 24 * 60 * 60;
|
17
16
|
var HOUR = 60 * 60;
|
@@ -34,20 +33,20 @@ var formatShortTimeAgo = function (val) {
|
|
34
33
|
if (timeDiff >= YEAR) {
|
35
34
|
return Math.floor(timeDiff / YEAR) + 'Y';
|
36
35
|
}
|
37
|
-
if (timeDiff >= MONTH) {
|
38
|
-
|
39
|
-
}
|
36
|
+
// if (timeDiff >= MONTH) {
|
37
|
+
// return Math.floor(timeDiff / MONTH) + 'M';
|
38
|
+
// }
|
40
39
|
if (timeDiff >= WEEK) {
|
41
40
|
return Math.floor(timeDiff / WEEK) + 'W';
|
42
41
|
}
|
43
42
|
if (timeDiff >= DAY) {
|
44
|
-
return Math.floor(timeDiff / DAY) + '
|
43
|
+
return Math.floor(timeDiff / DAY) + 'D';
|
45
44
|
}
|
46
45
|
if (timeDiff >= HOUR) {
|
47
|
-
return Math.floor(timeDiff / HOUR) + '
|
46
|
+
return Math.floor(timeDiff / HOUR) + 'H';
|
48
47
|
}
|
49
48
|
if (timeDiff >= MINUTE) {
|
50
|
-
return Math.floor(timeDiff / MINUTE) + '
|
49
|
+
return Math.floor(timeDiff / MINUTE) + 'M';
|
51
50
|
}
|
52
51
|
return "".concat(timeDiff, "S");
|
53
52
|
};
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
2
2
|
import { Envelopes } from '@verdocs/js-sdk/Envelopes';
|
3
|
+
import { integerSequence } from '@verdocs/js-sdk/Utils/Primitives';
|
3
4
|
import { formatShortTimeAgo } from '@verdocs/js-sdk/Utils/DateTime';
|
4
5
|
import { getNextRecipient } from '@verdocs/js-sdk/Envelopes/Permissions';
|
5
6
|
import { Host, h } from '@stencil/core';
|
6
7
|
import { SDKError } from '../../../utils/errors';
|
7
|
-
import { integerSequence } from '@verdocs/js-sdk/Utils/Primitives';
|
8
8
|
const EmptyImage = 'https://verdocs-public-assets.s3.amazonaws.com/no-verdocs.png';
|
9
9
|
/**
|
10
10
|
* Displays a box showing summaries of envelopes matching specified conditions. Activity Boxes show a fixed number
|
@@ -8,7 +8,6 @@ import { S as SDKError } from './errors.js';
|
|
8
8
|
import { d as defineCustomElement$2 } from './verdocs-button2.js';
|
9
9
|
|
10
10
|
var YEAR = 365 * 24 * 60 * 60;
|
11
|
-
var MONTH = 30 * 24 * 60 * 60;
|
12
11
|
var WEEK = 7 * 24 * 60 * 60;
|
13
12
|
var DAY = 24 * 60 * 60;
|
14
13
|
var HOUR = 60 * 60;
|
@@ -31,20 +30,20 @@ var formatShortTimeAgo = function (val) {
|
|
31
30
|
if (timeDiff >= YEAR) {
|
32
31
|
return Math.floor(timeDiff / YEAR) + 'Y';
|
33
32
|
}
|
34
|
-
if (timeDiff >= MONTH) {
|
35
|
-
|
36
|
-
}
|
33
|
+
// if (timeDiff >= MONTH) {
|
34
|
+
// return Math.floor(timeDiff / MONTH) + 'M';
|
35
|
+
// }
|
37
36
|
if (timeDiff >= WEEK) {
|
38
37
|
return Math.floor(timeDiff / WEEK) + 'W';
|
39
38
|
}
|
40
39
|
if (timeDiff >= DAY) {
|
41
|
-
return Math.floor(timeDiff / DAY) + '
|
40
|
+
return Math.floor(timeDiff / DAY) + 'D';
|
42
41
|
}
|
43
42
|
if (timeDiff >= HOUR) {
|
44
|
-
return Math.floor(timeDiff / HOUR) + '
|
43
|
+
return Math.floor(timeDiff / HOUR) + 'H';
|
45
44
|
}
|
46
45
|
if (timeDiff >= MINUTE) {
|
47
|
-
return Math.floor(timeDiff / MINUTE) + '
|
46
|
+
return Math.floor(timeDiff / MINUTE) + 'M';
|
48
47
|
}
|
49
48
|
return "".concat(timeDiff, "S");
|
50
49
|
};
|