@verdocs/web-sdk 2.0.25 → 2.0.28
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-envelopes-list.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-sign.cjs.entry.js +3 -3
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +21 -35
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +2 -2
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.stories.js +3 -3
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +5 -4
- package/dist/components/verdocs-envelopes-list.js +3 -2
- package/dist/components/verdocs-sign.js +3 -3
- package/dist/docs.json +7 -7
- package/dist/esm/verdocs-envelopes-list.entry.js +3 -2
- package/dist/esm/verdocs-sign.entry.js +3 -3
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/types/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.d.ts +2 -3
- package/dist/types/components.d.ts +2 -2
- package/dist/verdocs-web-sdk/p-5786a569.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-647cdb84.system.js +1 -1
- package/dist/verdocs-web-sdk/p-690a485e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-31211dfc.entry.js → p-d5d751b7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-dd5460ea.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/verdocs-web-sdk/p-80843a19.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a7d7ccc7.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b4aefba1.system.entry.js +0 -1
@@ -51,7 +51,7 @@ const VerdocsEnvelopesList = class {
|
|
51
51
|
this.changeMatch = index.createEvent(this, "changeMatch", 7);
|
52
52
|
this.sdkError = index.createEvent(this, "sdkError", 7);
|
53
53
|
this.viewEnvelope = index.createEvent(this, "viewEnvelope", 7);
|
54
|
-
this.
|
54
|
+
this.finishEnvelope = index.createEvent(this, "finishEnvelope", 7);
|
55
55
|
this.endpoint = VerdocsEndpoint.VerdocsEndpoint.getDefault();
|
56
56
|
this.view = undefined;
|
57
57
|
this.status = 'all';
|
@@ -246,7 +246,7 @@ const VerdocsEnvelopesList = class {
|
|
246
246
|
(_a = this.viewEnvelope) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope });
|
247
247
|
break;
|
248
248
|
case 'finish':
|
249
|
-
(_b = this.
|
249
|
+
(_b = this.finishEnvelope) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope });
|
250
250
|
break;
|
251
251
|
case 'download':
|
252
252
|
this.downloadEnvelope(envelope);
|
@@ -256,6 +256,7 @@ const VerdocsEnvelopesList = class {
|
|
256
256
|
Envelopes.cancelEnvelope(this.endpoint, envelope.id)
|
257
257
|
.then(() => Toast.VerdocsToast('Envelope canceled'))
|
258
258
|
.catch(e => Toast.VerdocsToast('Unable to cancel envelope: ' + e.messabge, { style: 'error' }));
|
259
|
+
this.queryEnvelopes().catch(() => { });
|
259
260
|
}
|
260
261
|
break;
|
261
262
|
}
|
@@ -45,7 +45,7 @@ var createInitials = function (endpoint, name, initials) {
|
|
45
45
|
.then(function (r) { return r.data; });
|
46
46
|
};
|
47
47
|
|
48
|
-
const verdocsSignCss = "verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign
|
48
|
+
const verdocsSignCss = "verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:5000;position:absolute;padding-top:100px;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;background:rgba(0, 0, 0, 0.5)}verdocs-sign .agree{-ms-flex:0;flex:0;width:600px;display:-ms-flexbox;display:flex;max-width:90%;padding:30px 15px;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign .agree li{margin:0.5em 0}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}";
|
49
49
|
|
50
50
|
const inProgressMenuOptions = [
|
51
51
|
{ id: 'later', label: 'Finish Later' },
|
@@ -475,7 +475,7 @@ const VerdocsSign = class {
|
|
475
475
|
this.isDone = true;
|
476
476
|
} })), this.submitting && (index.h("div", { class: "loading-indicator" }, index.h("verdocs-loader", null)))));
|
477
477
|
}
|
478
|
-
return (index.h(index.Host, { class: { agreed: this.agreed } },
|
478
|
+
return (index.h(index.Host, { class: { agreed: this.agreed } }, index.h("div", { id: "verdocs-sign-header" }, index.h("div", { class: "inner" }, index.h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), index.h("div", { class: "title" }, this.envelope.name), index.h("div", { style: { flex: '1' } }), !this.finishLater && index.h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), index.h("div", { style: { marginLeft: '10px' } }), index.h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), index.h("div", { class: "document", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
479
479
|
const pageNumbers = Primitives.integerSequence(1, envelopeDocument.page_numbers);
|
480
480
|
return (index.h(index.Fragment, null, pageNumbers.map(pageNumber => {
|
481
481
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
@@ -499,7 +499,7 @@ const VerdocsSign = class {
|
|
499
499
|
}, onNext: () => {
|
500
500
|
this.showSubmitDialog = false;
|
501
501
|
return this.handleNext();
|
502
|
-
} })), this.submitting && (index.h("div", { class: "loading-indicator" }, index.h("verdocs-loader", null)))));
|
502
|
+
} })), this.submitting && (index.h("div", { class: "loading-indicator" }, index.h("verdocs-loader", null))), !this.agreed && (index.h("div", { class: "cover" }, index.h("div", { class: "agree" }, index.h("verdocs-checkbox", { name: "agree", label: "By checking this box, you:", onInput: () => this.handleClickAgree() }), index.h("ul", null, index.h("li", null, "Agree to use electronic records and signatures, and confirm you have read the", ' ', index.h("a", { href: "https://verdocs.com/en/electronic-record-signature-disclosure/", target: "_blank" }, "Electronic Record and Signatures Disclosure"), "."), index.h("li", null, "Agree to Verdocs", ' ', index.h("a", { href: "https://verdocs.com/en/eula", target: "_blank" }, "End User License Agreement"), ' ', "and confirm you have read Verdocs'", ' ', index.h("a", { href: "https://verdocs.com/en/privacy-policy/", target: "_blank" }, "Privacy Policy"), ".")))))));
|
503
503
|
}
|
504
504
|
};
|
505
505
|
VerdocsSign.style = verdocsSignCss;
|
@@ -14,35 +14,6 @@ verdocs-sign div {
|
|
14
14
|
verdocs-sign input {
|
15
15
|
vertical-align: top;
|
16
16
|
}
|
17
|
-
verdocs-sign .intro {
|
18
|
-
width: 100%;
|
19
|
-
display: flex;
|
20
|
-
flex: 0 0 60px;
|
21
|
-
color: #111111;
|
22
|
-
font-size: 18px;
|
23
|
-
font-weight: 500;
|
24
|
-
line-height: 28px;
|
25
|
-
flex-direction: row;
|
26
|
-
background: #ffffff;
|
27
|
-
}
|
28
|
-
verdocs-sign .intro .inner {
|
29
|
-
width: 100%;
|
30
|
-
display: flex;
|
31
|
-
margin: 0 auto;
|
32
|
-
padding: 0 20px;
|
33
|
-
max-width: 1200px;
|
34
|
-
flex-direction: row;
|
35
|
-
align-items: center;
|
36
|
-
}
|
37
|
-
verdocs-sign .cover {
|
38
|
-
top: 0;
|
39
|
-
left: 0;
|
40
|
-
right: 0;
|
41
|
-
bottom: 0;
|
42
|
-
z-index: 999;
|
43
|
-
position: absolute;
|
44
|
-
background: rgba(0, 0, 0, 0.5);
|
45
|
-
}
|
46
17
|
verdocs-sign > .document {
|
47
18
|
flex: 1;
|
48
19
|
width: 100%;
|
@@ -63,19 +34,34 @@ verdocs-sign > .document .inner {
|
|
63
34
|
width: 100%;
|
64
35
|
max-width: 1028px;
|
65
36
|
}
|
66
|
-
verdocs-sign .
|
67
|
-
|
37
|
+
verdocs-sign .cover {
|
38
|
+
top: 0;
|
39
|
+
left: 0;
|
40
|
+
right: 0;
|
41
|
+
bottom: 0;
|
68
42
|
display: flex;
|
69
|
-
|
43
|
+
z-index: 5000;
|
44
|
+
position: absolute;
|
45
|
+
padding-top: 100px;
|
70
46
|
align-items: center;
|
71
|
-
|
47
|
+
flex-direction: column;
|
48
|
+
background: rgba(0, 0, 0, 0.5);
|
72
49
|
}
|
73
|
-
verdocs-sign .agree
|
74
|
-
|
50
|
+
verdocs-sign .agree {
|
51
|
+
flex: 0;
|
52
|
+
width: 600px;
|
53
|
+
display: flex;
|
54
|
+
max-width: 90%;
|
55
|
+
padding: 30px 15px;
|
56
|
+
flex-direction: column;
|
57
|
+
background-color: #ffffff;
|
75
58
|
}
|
76
59
|
verdocs-sign .agree .header {
|
77
60
|
flex: 0 0 56px;
|
78
61
|
}
|
62
|
+
verdocs-sign .agree li {
|
63
|
+
margin: 0.5em 0;
|
64
|
+
}
|
79
65
|
verdocs-sign verdocs-ok-dialog .background-overlay {
|
80
66
|
align-items: flex-start;
|
81
67
|
padding-top: 100px;
|
@@ -454,7 +454,7 @@ export class VerdocsSign {
|
|
454
454
|
this.isDone = true;
|
455
455
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
456
456
|
}
|
457
|
-
return (h(Host, { class: { agreed: this.agreed } },
|
457
|
+
return (h(Host, { class: { agreed: this.agreed } }, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name), h("div", { style: { flex: '1' } }), !this.finishLater && h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), h("div", { style: { marginLeft: '10px' } }), h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), h("div", { class: "document", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
458
458
|
const pageNumbers = integerSequence(1, envelopeDocument.page_numbers);
|
459
459
|
return (h(Fragment, null, pageNumbers.map(pageNumber => {
|
460
460
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
@@ -478,7 +478,7 @@ export class VerdocsSign {
|
|
478
478
|
}, onNext: () => {
|
479
479
|
this.showSubmitDialog = false;
|
480
480
|
return this.handleNext();
|
481
|
-
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
481
|
+
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null))), !this.agreed && (h("div", { class: "cover" }, h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "By checking this box, you:", onInput: () => this.handleClickAgree() }), h("ul", null, h("li", null, "Agree to use electronic records and signatures, and confirm you have read the", ' ', h("a", { href: "https://verdocs.com/en/electronic-record-signature-disclosure/", target: "_blank" }, "Electronic Record and Signatures Disclosure"), "."), h("li", null, "Agree to Verdocs", ' ', h("a", { href: "https://verdocs.com/en/eula", target: "_blank" }, "End User License Agreement"), ' ', "and confirm you have read Verdocs'", ' ', h("a", { href: "https://verdocs.com/en/privacy-policy/", target: "_blank" }, "Privacy Policy"), ".")))))));
|
482
482
|
}
|
483
483
|
static get is() { return "verdocs-sign"; }
|
484
484
|
static get originalStyleUrls() {
|
@@ -3,9 +3,9 @@ export default {
|
|
3
3
|
title: 'Embeds/Sign',
|
4
4
|
component: 'verdocs-sign',
|
5
5
|
args: {
|
6
|
-
envelopeId: '',
|
7
|
-
roleId: '',
|
8
|
-
inviteCode: '',
|
6
|
+
envelopeId: '26651429-f023-4afc-b969-23ba68adad4b',
|
7
|
+
roleId: 'Buyer',
|
8
|
+
inviteCode: '44fcfa9435cdb855a7ddb0c3c2d7da9c',
|
9
9
|
},
|
10
10
|
argTypes: {
|
11
11
|
envelopeId: {
|
package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js
CHANGED
@@ -230,7 +230,7 @@ export class VerdocsEnvelopesList {
|
|
230
230
|
(_a = this.viewEnvelope) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope });
|
231
231
|
break;
|
232
232
|
case 'finish':
|
233
|
-
(_b = this.
|
233
|
+
(_b = this.finishEnvelope) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope });
|
234
234
|
break;
|
235
235
|
case 'download':
|
236
236
|
this.downloadEnvelope(envelope);
|
@@ -240,6 +240,7 @@ export class VerdocsEnvelopesList {
|
|
240
240
|
cancelEnvelope(this.endpoint, envelope.id)
|
241
241
|
.then(() => VerdocsToast('Envelope canceled'))
|
242
242
|
.catch(e => VerdocsToast('Unable to cancel envelope: ' + e.messabge, { style: 'error' }));
|
243
|
+
this.queryEnvelopes().catch(() => { });
|
243
244
|
}
|
244
245
|
break;
|
245
246
|
}
|
@@ -535,14 +536,14 @@ export class VerdocsEnvelopesList {
|
|
535
536
|
}
|
536
537
|
}
|
537
538
|
}, {
|
538
|
-
"method": "
|
539
|
-
"name": "
|
539
|
+
"method": "finishEnvelope",
|
540
|
+
"name": "finishEnvelope",
|
540
541
|
"bubbles": true,
|
541
542
|
"cancelable": true,
|
542
543
|
"composed": true,
|
543
544
|
"docs": {
|
544
545
|
"tags": [],
|
545
|
-
"text": "Event fired when the user clicks to finish
|
546
|
+
"text": "Event fired when the user clicks to finish the envelope."
|
546
547
|
},
|
547
548
|
"complexType": {
|
548
549
|
"original": "{endpoint: VerdocsEndpoint; envelope: IEnvelopeSummary}",
|
@@ -53,7 +53,7 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
53
53
|
this.changeMatch = createEvent(this, "changeMatch", 7);
|
54
54
|
this.sdkError = createEvent(this, "sdkError", 7);
|
55
55
|
this.viewEnvelope = createEvent(this, "viewEnvelope", 7);
|
56
|
-
this.
|
56
|
+
this.finishEnvelope = createEvent(this, "finishEnvelope", 7);
|
57
57
|
this.endpoint = VerdocsEndpoint.getDefault();
|
58
58
|
this.view = undefined;
|
59
59
|
this.status = 'all';
|
@@ -248,7 +248,7 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
248
248
|
(_a = this.viewEnvelope) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope });
|
249
249
|
break;
|
250
250
|
case 'finish':
|
251
|
-
(_b = this.
|
251
|
+
(_b = this.finishEnvelope) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope });
|
252
252
|
break;
|
253
253
|
case 'download':
|
254
254
|
this.downloadEnvelope(envelope);
|
@@ -258,6 +258,7 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
258
258
|
cancelEnvelope(this.endpoint, envelope.id)
|
259
259
|
.then(() => VerdocsToast('Envelope canceled'))
|
260
260
|
.catch(e => VerdocsToast('Unable to cancel envelope: ' + e.messabge, { style: 'error' }));
|
261
|
+
this.queryEnvelopes().catch(() => { });
|
261
262
|
}
|
262
263
|
break;
|
263
264
|
}
|
@@ -46,7 +46,7 @@ var createInitials = function (endpoint, name, initials) {
|
|
46
46
|
.then(function (r) { return r.data; });
|
47
47
|
};
|
48
48
|
|
49
|
-
const verdocsSignCss = "verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign
|
49
|
+
const verdocsSignCss = "verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:5000;position:absolute;padding-top:100px;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;background:rgba(0, 0, 0, 0.5)}verdocs-sign .agree{-ms-flex:0;flex:0;width:600px;display:-ms-flexbox;display:flex;max-width:90%;padding:30px 15px;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign .agree li{margin:0.5em 0}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}";
|
50
50
|
|
51
51
|
const inProgressMenuOptions = [
|
52
52
|
{ id: 'later', label: 'Finish Later' },
|
@@ -477,7 +477,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
477
477
|
this.isDone = true;
|
478
478
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
479
479
|
}
|
480
|
-
return (h(Host, { class: { agreed: this.agreed } },
|
480
|
+
return (h(Host, { class: { agreed: this.agreed } }, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name), h("div", { style: { flex: '1' } }), !this.finishLater && h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), h("div", { style: { marginLeft: '10px' } }), h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), h("div", { class: "document", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
481
481
|
const pageNumbers = integerSequence(1, envelopeDocument.page_numbers);
|
482
482
|
return (h(Fragment, null, pageNumbers.map(pageNumber => {
|
483
483
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
@@ -501,7 +501,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
501
501
|
}, onNext: () => {
|
502
502
|
this.showSubmitDialog = false;
|
503
503
|
return this.handleNext();
|
504
|
-
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
504
|
+
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null))), !this.agreed && (h("div", { class: "cover" }, h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "By checking this box, you:", onInput: () => this.handleClickAgree() }), h("ul", null, h("li", null, "Agree to use electronic records and signatures, and confirm you have read the", ' ', h("a", { href: "https://verdocs.com/en/electronic-record-signature-disclosure/", target: "_blank" }, "Electronic Record and Signatures Disclosure"), "."), h("li", null, "Agree to Verdocs", ' ', h("a", { href: "https://verdocs.com/en/eula", target: "_blank" }, "End User License Agreement"), ' ', "and confirm you have read Verdocs'", ' ', h("a", { href: "https://verdocs.com/en/privacy-policy/", target: "_blank" }, "Privacy Policy"), ".")))))));
|
505
505
|
}
|
506
506
|
static get style() { return verdocsSignCss; }
|
507
507
|
}, [0, "verdocs-sign", {
|
package/dist/docs.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2023-
|
2
|
+
"timestamp": "2023-09-07T14:18:11",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "2.20.0",
|
@@ -2070,12 +2070,12 @@
|
|
2070
2070
|
"docsTags": []
|
2071
2071
|
},
|
2072
2072
|
{
|
2073
|
-
"event": "
|
2073
|
+
"event": "finishEnvelope",
|
2074
2074
|
"detail": "{ endpoint: VerdocsEndpoint; envelope: IEnvelopeSummary; }",
|
2075
2075
|
"bubbles": true,
|
2076
2076
|
"cancelable": true,
|
2077
2077
|
"composed": true,
|
2078
|
-
"docs": "Event fired when the user clicks to finish
|
2078
|
+
"docs": "Event fired when the user clicks to finish the envelope.",
|
2079
2079
|
"docsTags": []
|
2080
2080
|
},
|
2081
2081
|
{
|
@@ -6831,20 +6831,20 @@
|
|
6831
6831
|
"verdocs-loader",
|
6832
6832
|
"verdocs-view",
|
6833
6833
|
"verdocs-ok-dialog",
|
6834
|
-
"verdocs-checkbox",
|
6835
6834
|
"verdocs-button",
|
6836
6835
|
"verdocs-dropdown",
|
6837
|
-
"verdocs-envelope-document-page"
|
6836
|
+
"verdocs-envelope-document-page",
|
6837
|
+
"verdocs-checkbox"
|
6838
6838
|
],
|
6839
6839
|
"dependencyGraph": {
|
6840
6840
|
"verdocs-sign": [
|
6841
6841
|
"verdocs-loader",
|
6842
6842
|
"verdocs-view",
|
6843
6843
|
"verdocs-ok-dialog",
|
6844
|
-
"verdocs-checkbox",
|
6845
6844
|
"verdocs-button",
|
6846
6845
|
"verdocs-dropdown",
|
6847
|
-
"verdocs-envelope-document-page"
|
6846
|
+
"verdocs-envelope-document-page",
|
6847
|
+
"verdocs-checkbox"
|
6848
6848
|
],
|
6849
6849
|
"verdocs-view": [
|
6850
6850
|
"verdocs-dropdown",
|
@@ -47,7 +47,7 @@ const VerdocsEnvelopesList = class {
|
|
47
47
|
this.changeMatch = createEvent(this, "changeMatch", 7);
|
48
48
|
this.sdkError = createEvent(this, "sdkError", 7);
|
49
49
|
this.viewEnvelope = createEvent(this, "viewEnvelope", 7);
|
50
|
-
this.
|
50
|
+
this.finishEnvelope = createEvent(this, "finishEnvelope", 7);
|
51
51
|
this.endpoint = VerdocsEndpoint.getDefault();
|
52
52
|
this.view = undefined;
|
53
53
|
this.status = 'all';
|
@@ -242,7 +242,7 @@ const VerdocsEnvelopesList = class {
|
|
242
242
|
(_a = this.viewEnvelope) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope });
|
243
243
|
break;
|
244
244
|
case 'finish':
|
245
|
-
(_b = this.
|
245
|
+
(_b = this.finishEnvelope) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope });
|
246
246
|
break;
|
247
247
|
case 'download':
|
248
248
|
this.downloadEnvelope(envelope);
|
@@ -252,6 +252,7 @@ const VerdocsEnvelopesList = class {
|
|
252
252
|
cancelEnvelope(this.endpoint, envelope.id)
|
253
253
|
.then(() => VerdocsToast('Envelope canceled'))
|
254
254
|
.catch(e => VerdocsToast('Unable to cancel envelope: ' + e.messabge, { style: 'error' }));
|
255
|
+
this.queryEnvelopes().catch(() => { });
|
255
256
|
}
|
256
257
|
break;
|
257
258
|
}
|
@@ -41,7 +41,7 @@ var createInitials = function (endpoint, name, initials) {
|
|
41
41
|
.then(function (r) { return r.data; });
|
42
42
|
};
|
43
43
|
|
44
|
-
const verdocsSignCss = "verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign
|
44
|
+
const verdocsSignCss = "verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:5000;position:absolute;padding-top:100px;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;background:rgba(0, 0, 0, 0.5)}verdocs-sign .agree{-ms-flex:0;flex:0;width:600px;display:-ms-flexbox;display:flex;max-width:90%;padding:30px 15px;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign .agree li{margin:0.5em 0}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}";
|
45
45
|
|
46
46
|
const inProgressMenuOptions = [
|
47
47
|
{ id: 'later', label: 'Finish Later' },
|
@@ -471,7 +471,7 @@ const VerdocsSign = class {
|
|
471
471
|
this.isDone = true;
|
472
472
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
473
473
|
}
|
474
|
-
return (h(Host, { class: { agreed: this.agreed } },
|
474
|
+
return (h(Host, { class: { agreed: this.agreed } }, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name), h("div", { style: { flex: '1' } }), !this.finishLater && h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), h("div", { style: { marginLeft: '10px' } }), h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), h("div", { class: "document", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
475
475
|
const pageNumbers = integerSequence(1, envelopeDocument.page_numbers);
|
476
476
|
return (h(Fragment, null, pageNumbers.map(pageNumber => {
|
477
477
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
@@ -495,7 +495,7 @@ const VerdocsSign = class {
|
|
495
495
|
}, onNext: () => {
|
496
496
|
this.showSubmitDialog = false;
|
497
497
|
return this.handleNext();
|
498
|
-
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
498
|
+
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null))), !this.agreed && (h("div", { class: "cover" }, h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "By checking this box, you:", onInput: () => this.handleClickAgree() }), h("ul", null, h("li", null, "Agree to use electronic records and signatures, and confirm you have read the", ' ', h("a", { href: "https://verdocs.com/en/electronic-record-signature-disclosure/", target: "_blank" }, "Electronic Record and Signatures Disclosure"), "."), h("li", null, "Agree to Verdocs", ' ', h("a", { href: "https://verdocs.com/en/eula", target: "_blank" }, "End User License Agreement"), ' ', "and confirm you have read Verdocs'", ' ', h("a", { href: "https://verdocs.com/en/privacy-policy/", target: "_blank" }, "Privacy Policy"), ".")))))));
|
499
499
|
}
|
500
500
|
};
|
501
501
|
VerdocsSign.style = verdocsSignCss;
|
@@ -1 +1 @@
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,s=1,n=arguments.length;s<n;s++){t=arguments[s];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,s,n){function i(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function r(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?s(e.value):i(e.value).then(a,r)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var s={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:s.label++;return{value:a[1],done:false};case 5:s.label++;i=a[1];a=[0];continue;case 7:a=s.ops.pop();s.trys.pop();continue;default:if(!(o=s.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){s=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(a[0]===6&&s.label<o[1]){s.label=o[1];o=a;break}if(o&&s.label<o[2]){s.label=o[2];s.ops.push(a);break}if(o[2])s.ops.pop();s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,s){if(s||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-151c0874.js";import{l as listEnvelopes,c as cancelEnvelope}from"./Envelopes-5e32159f.js";import{g as getRecipientsWithActions,a as userCanAct,b as userCanCancelEnvelope}from"./Permissions-f2eb0421.js";import"./Types-5f31149e.js";import{V as VerdocsEndpoint}from"./VerdocsEndpoint-d58d5544.js";import{i as integerSequence}from"./Primitives-054bc6e5.js";import{s as saveEnvelopesAsZip}from"./utils-51d998e2.js";import{V as VerdocsToast}from"./Toast-f3b8fd46.js";import{S as SDKError}from"./errors-9b5498c8.js";import"./_commonjsHelpers-5ec8f9b7.js";import"./Files-70a192df.js";import"./Types-de18e225.js";import"./index-914ed6f7.js";var verdocsEnvelopesListCss='verdocs-envelopes-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:14px;display:-ms-flexbox;display:flex;padding:8px 20px;border-radius:6px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;font-size:16px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;font-size:18px;overflow:hidden;line-height:28px;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{font-size:20px;text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}';var DocumentIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#000000" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>';var ViewFilters=[{value:"all",label:"All"},{value:"inbox",label:"Inbox"},{value:"sent",label:"Sent"},{value:"completed",label:"Completed"},{value:"action",label:"Action Required"},{value:"waiting",label:"Waiting on Others"}];var StatusFilters=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in progress",label:"In Progress"},{value:"complete",label:"Completed"},{value:"declined",label:"Declined"},{value:"canceled",label:"Canceled"}];var SortFilters=[{value:"created_at",label:"Created"},{value:"updated_at",label:"Updated"},{value:"canceled_at",label:"Canceled"},{value:"envelope_name",label:"Name"},{value:"envelope_status",label:"Status"}];var VerdocsEnvelopesList=function(){function e(e){registerInstance(this,e);this.changeView=createEvent(this,"changeView",7);this.changeStatus=createEvent(this,"changeStatus",7);this.changeSort=createEvent(this,"changeSort",7);this.changeMatch=createEvent(this,"changeMatch",7);this.sdkError=createEvent(this,"sdkError",7);this.viewEnvelope=createEvent(this,"viewEnvelope",7);this.finishLater=createEvent(this,"finishLater",7);this.endpoint=VerdocsEndpoint.getDefault();this.view=undefined;this.status="all";this.sort="created_at";this.match="";this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.selectedEnvelopes=[];this.envelopes=[]}e.prototype.handleViewUpdated=function(){return this.queryEnvelopes()};e.prototype.handleStatusUpdated=function(){return this.queryEnvelopes()};e.prototype.handleSortUpdated=function(){return this.queryEnvelopes()};e.prototype.handleMatchUpdated=function(){return this.queryEnvelopes()};e.prototype.handlePageUpdated=function(){return this.queryEnvelopes()};e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[ENVELOPES] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.queryEnvelopes()];case 1:e.sent();this.initiallyLoaded=true;return[2]}}))}))};e.prototype.queryEnvelopes=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,s,n,i,o;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,2,,3]);this.loading=true;n={page:this.selectedPage,sort:this.sort,rows:this.rowsPerPage};switch(this.view){case"all":n=__assign(__assign({},n),{sort:this.sort,direction:this.sort==="name"?"asc":"desc",status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]});break;case"inbox":n=__assign(__assign({},n),{is_recipient:true,sort:"updated_at",recipient_status:["invited","declined","opened","signed","submitted","canceled"]});break;case"sent":n=__assign(__assign({},n),{is_owner:true,sort:"updated_at"});break;case"action":n=__assign(__assign({},n),{sort:"updated_at",is_recipient:true,status:["pending","in progress"],recipient_status:["invited","opened","signed"]});break;case"waiting":n=__assign(__assign({},n),{is_owner:true,sort:"updated_at",direction:"desc",status:["pending","in progress"]});break;case"completed":n=__assign(__assign({},n),{sort:"updated_at",direction:"desc",status:["complete"]});break;default:n=__assign(__assign({},n),{sort:"updated_at",direction:"desc",status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]})}if(this.view==="all"){if(this.status!=="all"){n.status=[this.status]}}if(this.sort!=="updated_at"){n.sort=this.sort;n.direction=this.sort==="name"?"asc":"desc"}if(this.match.trim()){n.match=this.match.trim()}return[4,listEnvelopes(this.endpoint,n)];case 1:i=a.sent();this.envelopes=i.records;this.count=i.total;this.loading=false;return[3,3];case 2:o=a.sent();this.loading=false;console.log("[ENVELOPES] Error listing envelopes",o);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(o.message,(t=o.response)===null||t===void 0?void 0:t.status,(s=o.response)===null||s===void 0?void 0:s.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleDownload=function(){var e=this;saveEnvelopesAsZip(this.endpoint,this.selectedEnvelopes).then((function(){e.selectedEnvelopes=[]})).catch((function(e){console.log("[ENVELOPES] Download error",e);VerdocsToast("Download error: "+e.message,{style:"error"})}))};e.prototype.downloadEnvelope=function(e){saveEnvelopesAsZip(this.endpoint,[e]).catch((function(e){console.log("[ENVELOPES] Download error",e);VerdocsToast("Download error: "+e.message,{style:"error"})}))};e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"header"},h("div",{class:"filter"},h("verdocs-text-input",{id:"verdocs-filter-name",value:this.match,clearable:true,autocomplete:"off",placeholder:"Filter by Name, Recipient, or Field...",onFocusout:function(t){var s;e.match=t.target.value.trim();(s=e.changeMatch)===null||s===void 0?void 0:s.emit(e.match)}})),h("verdocs-quick-filter",{label:"View",value:this.view,options:ViewFilters,onOptionSelected:function(t){e.view=t.detail.value}}),this.view==="all"&&h("verdocs-quick-filter",{label:"Status",value:this.status,options:StatusFilters,onOptionSelected:function(t){e.status=t.detail.value}}),this.view==="all"&&h("verdocs-quick-filter",{label:"Sort By",value:this.sort,options:SortFilters,onOptionSelected:function(t){e.sort=t.detail.value}}),this.loading&&h("verdocs-spinner",{mode:"dark",size:24}),h("div",{style:{display:"flex",flex:"1"}}),this.selectedEnvelopes.length>0&&h("verdocs-button",{label:"Download (".concat(this.selectedEnvelopes.length,")"),onClick:function(){return e.handleDownload()}})),this.envelopes.map((function(t){var s;var n=getRecipientsWithActions(t);var i=userCanCancelEnvelope(e.endpoint.session,t);var o=n.find((function(t){var s;return t.email===((s=e.endpoint.session)===null||s===void 0?void 0:s.email)||""}));var a=o&&i&&userCanAct(((s=e.endpoint.session)===null||s===void 0?void 0:s.email)||"",n);var r=[{label:"View Envelope",id:"view"},{label:"Finish Envelope",id:"finish",disabled:!a},{label:"Download",id:"download"},{label:"Cancel",id:"cancel",disabled:!i}];return h("div",{class:"envelope",key:t.id,onClick:function(){var s;return(s=e.viewEnvelope)===null||s===void 0?void 0:s.emit({endpoint:e.endpoint,envelope:t})}},h("div",{class:"inner"},h("verdocs-checkbox",{checked:e.selectedEnvelopes.findIndex((function(e){return e.id===t.id}))!==-1,onClick:function(e){return e.stopPropagation()},onInput:function(s){if(s.target.checked){e.selectedEnvelopes=__spreadArray(__spreadArray([],e.selectedEnvelopes,true),[t],false)}else{e.selectedEnvelopes=e.selectedEnvelopes.filter((function(e){return e.id!==t.id}))}}}),h("div",{class:"vert-spacer"}),h("span",{innerHTML:DocumentIcon}),h("div",{class:"envelope-name"},t.name,": ",h("div",{class:"envelope-recipients"},t.recipients.map((function(e){return e.full_name})).join(", "))),h("div",{class:"vert-spacer"}),h("verdocs-status-indicator",{envelope:t,style:{width:"125px"}}),h("div",{class:"vert-spacer"}),h("div",{class:"last-modified"},new Date(t.updated_at).toLocaleString()),h("div",{class:"vert-spacer"}),h("verdocs-dropdown",{options:r,onOptionSelected:function(s){var n,i;switch(s.detail.id){case"view":(n=e.viewEnvelope)===null||n===void 0?void 0:n.emit({endpoint:e.endpoint,envelope:t});break;case"finish":(i=e.finishLater)===null||i===void 0?void 0:i.emit({endpoint:e.endpoint,envelope:t});break;case"download":e.downloadEnvelope(t);break;case"cancel":if(window.confirm("Are you sure you want to cancel this envelope?")){cancelEnvelope(e.endpoint,t.id).then((function(){return VerdocsToast("Envelope canceled")})).catch((function(e){return VerdocsToast("Unable to cancel envelope: "+e.messabge,{style:"error"})}))}break}}})))})),!this.initiallyLoaded&&h("div",{style:{width:"100%"}},integerSequence(0,this.rowsPerPage).map((function(){return h("div",{class:"envelope-placeholder"})}))),this.initiallyLoaded&&!this.envelopes.length&&h("div",{class:"empty-text"},"No matching envelopes found. Please adjust your filters and try again."),this.initiallyLoaded&&this.envelopes.length&&this.showPagination?h("div",{style:{marginTop:"20px"}},h("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:function(t){e.selectedPage=t.detail.selectedPage}})):h("div",null))};Object.defineProperty(e,"watchers",{get:function(){return{view:["handleViewUpdated"],status:["handleStatusUpdated"],sort:["handleSortUpdated"],match:["handleMatchUpdated"],selectedPage:["handlePageUpdated"]}},enumerable:false,configurable:true});return e}();VerdocsEnvelopesList.style=verdocsEnvelopesListCss;export{VerdocsEnvelopesList as verdocs_envelopes_list};
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,s){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(s.next(e))}catch(e){o(e)}}function r(e){try{l(s["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):i(e.value).then(a,r)}l((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,i,o,a;return a={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(e){return function(t){return l([e,t])}}function l(a){if(s)throw new TypeError("Generator is already executing.");while(n)try{if(s=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{s=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var s=0,i=t.length,o;s<i;s++){if(o||!(s in t)){if(!o)o=Array.prototype.slice.call(t,0,s);o[s]=t[s]}}return e.concat(o||Array.prototype.slice.call(t))};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-151c0874.js";import{l as listEnvelopes,c as cancelEnvelope}from"./Envelopes-5e32159f.js";import{g as getRecipientsWithActions,a as userCanAct,b as userCanCancelEnvelope}from"./Permissions-f2eb0421.js";import"./Types-5f31149e.js";import{V as VerdocsEndpoint}from"./VerdocsEndpoint-d58d5544.js";import{i as integerSequence}from"./Primitives-054bc6e5.js";import{s as saveEnvelopesAsZip}from"./utils-51d998e2.js";import{V as VerdocsToast}from"./Toast-f3b8fd46.js";import{S as SDKError}from"./errors-9b5498c8.js";import"./_commonjsHelpers-5ec8f9b7.js";import"./Files-70a192df.js";import"./Types-de18e225.js";import"./index-914ed6f7.js";var verdocsEnvelopesListCss='verdocs-envelopes-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:14px;display:-ms-flexbox;display:flex;padding:8px 20px;border-radius:6px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;font-size:16px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;font-size:18px;overflow:hidden;line-height:28px;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{font-size:20px;text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}';var DocumentIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#000000" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>';var ViewFilters=[{value:"all",label:"All"},{value:"inbox",label:"Inbox"},{value:"sent",label:"Sent"},{value:"completed",label:"Completed"},{value:"action",label:"Action Required"},{value:"waiting",label:"Waiting on Others"}];var StatusFilters=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in progress",label:"In Progress"},{value:"complete",label:"Completed"},{value:"declined",label:"Declined"},{value:"canceled",label:"Canceled"}];var SortFilters=[{value:"created_at",label:"Created"},{value:"updated_at",label:"Updated"},{value:"canceled_at",label:"Canceled"},{value:"envelope_name",label:"Name"},{value:"envelope_status",label:"Status"}];var VerdocsEnvelopesList=function(){function e(e){registerInstance(this,e);this.changeView=createEvent(this,"changeView",7);this.changeStatus=createEvent(this,"changeStatus",7);this.changeSort=createEvent(this,"changeSort",7);this.changeMatch=createEvent(this,"changeMatch",7);this.sdkError=createEvent(this,"sdkError",7);this.viewEnvelope=createEvent(this,"viewEnvelope",7);this.finishEnvelope=createEvent(this,"finishEnvelope",7);this.endpoint=VerdocsEndpoint.getDefault();this.view=undefined;this.status="all";this.sort="created_at";this.match="";this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.selectedEnvelopes=[];this.envelopes=[]}e.prototype.handleViewUpdated=function(){return this.queryEnvelopes()};e.prototype.handleStatusUpdated=function(){return this.queryEnvelopes()};e.prototype.handleSortUpdated=function(){return this.queryEnvelopes()};e.prototype.handleMatchUpdated=function(){return this.queryEnvelopes()};e.prototype.handlePageUpdated=function(){return this.queryEnvelopes()};e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[ENVELOPES] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.queryEnvelopes()];case 1:e.sent();this.initiallyLoaded=true;return[2]}}))}))};e.prototype.queryEnvelopes=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,s,i,o;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,2,,3]);this.loading=true;s={page:this.selectedPage,sort:this.sort,rows:this.rowsPerPage};switch(this.view){case"all":s=__assign(__assign({},s),{sort:this.sort,direction:this.sort==="name"?"asc":"desc",status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]});break;case"inbox":s=__assign(__assign({},s),{is_recipient:true,sort:"updated_at",recipient_status:["invited","declined","opened","signed","submitted","canceled"]});break;case"sent":s=__assign(__assign({},s),{is_owner:true,sort:"updated_at"});break;case"action":s=__assign(__assign({},s),{sort:"updated_at",is_recipient:true,status:["pending","in progress"],recipient_status:["invited","opened","signed"]});break;case"waiting":s=__assign(__assign({},s),{is_owner:true,sort:"updated_at",direction:"desc",status:["pending","in progress"]});break;case"completed":s=__assign(__assign({},s),{sort:"updated_at",direction:"desc",status:["complete"]});break;default:s=__assign(__assign({},s),{sort:"updated_at",direction:"desc",status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]})}if(this.view==="all"){if(this.status!=="all"){s.status=[this.status]}}if(this.sort!=="updated_at"){s.sort=this.sort;s.direction=this.sort==="name"?"asc":"desc"}if(this.match.trim()){s.match=this.match.trim()}return[4,listEnvelopes(this.endpoint,s)];case 1:i=a.sent();this.envelopes=i.records;this.count=i.total;this.loading=false;return[3,3];case 2:o=a.sent();this.loading=false;console.log("[ENVELOPES] Error listing envelopes",o);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(o.message,(t=o.response)===null||t===void 0?void 0:t.status,(n=o.response)===null||n===void 0?void 0:n.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleDownload=function(){var e=this;saveEnvelopesAsZip(this.endpoint,this.selectedEnvelopes).then((function(){e.selectedEnvelopes=[]})).catch((function(e){console.log("[ENVELOPES] Download error",e);VerdocsToast("Download error: "+e.message,{style:"error"})}))};e.prototype.downloadEnvelope=function(e){saveEnvelopesAsZip(this.endpoint,[e]).catch((function(e){console.log("[ENVELOPES] Download error",e);VerdocsToast("Download error: "+e.message,{style:"error"})}))};e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"header"},h("div",{class:"filter"},h("verdocs-text-input",{id:"verdocs-filter-name",value:this.match,clearable:true,autocomplete:"off",placeholder:"Filter by Name, Recipient, or Field...",onFocusout:function(t){var n;e.match=t.target.value.trim();(n=e.changeMatch)===null||n===void 0?void 0:n.emit(e.match)}})),h("verdocs-quick-filter",{label:"View",value:this.view,options:ViewFilters,onOptionSelected:function(t){e.view=t.detail.value}}),this.view==="all"&&h("verdocs-quick-filter",{label:"Status",value:this.status,options:StatusFilters,onOptionSelected:function(t){e.status=t.detail.value}}),this.view==="all"&&h("verdocs-quick-filter",{label:"Sort By",value:this.sort,options:SortFilters,onOptionSelected:function(t){e.sort=t.detail.value}}),this.loading&&h("verdocs-spinner",{mode:"dark",size:24}),h("div",{style:{display:"flex",flex:"1"}}),this.selectedEnvelopes.length>0&&h("verdocs-button",{label:"Download (".concat(this.selectedEnvelopes.length,")"),onClick:function(){return e.handleDownload()}})),this.envelopes.map((function(t){var n;var s=getRecipientsWithActions(t);var i=userCanCancelEnvelope(e.endpoint.session,t);var o=s.find((function(t){var n;return t.email===((n=e.endpoint.session)===null||n===void 0?void 0:n.email)||""}));var a=o&&i&&userCanAct(((n=e.endpoint.session)===null||n===void 0?void 0:n.email)||"",s);var r=[{label:"View Envelope",id:"view"},{label:"Finish Envelope",id:"finish",disabled:!a},{label:"Download",id:"download"},{label:"Cancel",id:"cancel",disabled:!i}];return h("div",{class:"envelope",key:t.id,onClick:function(){var n;return(n=e.viewEnvelope)===null||n===void 0?void 0:n.emit({endpoint:e.endpoint,envelope:t})}},h("div",{class:"inner"},h("verdocs-checkbox",{checked:e.selectedEnvelopes.findIndex((function(e){return e.id===t.id}))!==-1,onClick:function(e){return e.stopPropagation()},onInput:function(n){if(n.target.checked){e.selectedEnvelopes=__spreadArray(__spreadArray([],e.selectedEnvelopes,true),[t],false)}else{e.selectedEnvelopes=e.selectedEnvelopes.filter((function(e){return e.id!==t.id}))}}}),h("div",{class:"vert-spacer"}),h("span",{innerHTML:DocumentIcon}),h("div",{class:"envelope-name"},t.name,": ",h("div",{class:"envelope-recipients"},t.recipients.map((function(e){return e.full_name})).join(", "))),h("div",{class:"vert-spacer"}),h("verdocs-status-indicator",{envelope:t,style:{width:"125px"}}),h("div",{class:"vert-spacer"}),h("div",{class:"last-modified"},new Date(t.updated_at).toLocaleString()),h("div",{class:"vert-spacer"}),h("verdocs-dropdown",{options:r,onOptionSelected:function(n){var s,i;switch(n.detail.id){case"view":(s=e.viewEnvelope)===null||s===void 0?void 0:s.emit({endpoint:e.endpoint,envelope:t});break;case"finish":(i=e.finishEnvelope)===null||i===void 0?void 0:i.emit({endpoint:e.endpoint,envelope:t});break;case"download":e.downloadEnvelope(t);break;case"cancel":if(window.confirm("Are you sure you want to cancel this envelope?")){cancelEnvelope(e.endpoint,t.id).then((function(){return VerdocsToast("Envelope canceled")})).catch((function(e){return VerdocsToast("Unable to cancel envelope: "+e.messabge,{style:"error"})}));e.queryEnvelopes().catch((function(){}))}break}}})))})),!this.initiallyLoaded&&h("div",{style:{width:"100%"}},integerSequence(0,this.rowsPerPage).map((function(){return h("div",{class:"envelope-placeholder"})}))),this.initiallyLoaded&&!this.envelopes.length&&h("div",{class:"empty-text"},"No matching envelopes found. Please adjust your filters and try again."),this.initiallyLoaded&&this.envelopes.length&&this.showPagination?h("div",{style:{marginTop:"20px"}},h("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:function(t){e.selectedPage=t.detail.selectedPage}})):h("div",null))};Object.defineProperty(e,"watchers",{get:function(){return{view:["handleViewUpdated"],status:["handleStatusUpdated"],sort:["handleSortUpdated"],match:["handleMatchUpdated"],selectedPage:["handlePageUpdated"]}},enumerable:false,configurable:true});return e}();VerdocsEnvelopesList.style=verdocsEnvelopesListCss;export{VerdocsEnvelopesList as verdocs_envelopes_list};
|