@verdocs/web-sdk 4.2.110 → 4.2.112
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/index-a27a7f77.js +4 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +6 -6
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +27 -15
- package/dist/cjs/{verdocs-view.cjs.entry.js → verdocs-kba-dialog_2.cjs.entry.js} +39 -0
- package/dist/cjs/verdocs-sign.cjs.entry.js +24 -3
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +18 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +27 -5
- package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +6 -6
- package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js +28 -15
- package/dist/components/verdocs-auth.js +1 -1
- package/dist/components/verdocs-envelope-sidebar.js +6 -6
- package/dist/components/verdocs-field-attachment2.js +28 -15
- package/dist/components/verdocs-kba-dialog.js +1 -69
- package/dist/{esm/verdocs-kba-dialog.entry.js → components/verdocs-kba-dialog2.js} +37 -7
- package/dist/components/verdocs-sign.js +41 -13
- package/dist/custom-elements.json +2044 -0
- package/dist/esm/index-a68c7262.js +4 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +6 -6
- package/dist/esm/verdocs-field-attachment_13.entry.js +27 -15
- package/dist/esm/{verdocs-view.entry.js → verdocs-kba-dialog_2.entry.js} +40 -2
- package/dist/esm/verdocs-sign.entry.js +25 -4
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/index-a68c7262.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +4 -1
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +1 -0
- package/dist/types/components/fields/verdocs-field-attachment/verdocs-field-attachment.d.ts +3 -2
- package/dist/types/components.d.ts +8 -0
- package/dist/verdocs-web-sdk/p-0dc92b1c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-12f6450a.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-267df026.system.js +1 -1
- package/dist/verdocs-web-sdk/p-2c43aa85.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-43d82aaa.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-707322d0.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-85114f35.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-a7c89171.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-ecd14df7.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +0 -45
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +0 -1
- package/dist/esm-es5/verdocs-view.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-0be3e7a7.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-21481ed6.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3a69494d.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4755c31a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4c7da20d.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-545dda43.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5cc1a52a.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5fc9541b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-9c496734.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c00c794f.entry.js +0 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Host, Fragment, h } from "@stencil/core";
|
2
|
-
import { getEnvelope, integerSequence, isValidEmail, isValidPhone, updateEnvelopeFieldInitials } from "@verdocs/js-sdk";
|
2
|
+
import { getEnvelope, integerSequence, isValidEmail, isValidPhone, submitKbaPin, updateEnvelopeFieldInitials } from "@verdocs/js-sdk";
|
3
3
|
import { updateEnvelopeFieldSignature, uploadEnvelopeFieldAttachment, VerdocsEndpoint, updateEnvelopeField } from "@verdocs/js-sdk";
|
4
4
|
import { fullNameToInitials, startSigningSession, deleteEnvelopeFieldAttachment, getKbaStep } from "@verdocs/js-sdk";
|
5
5
|
import { createInitials, createSignature, envelopeRecipientAgree, envelopeRecipientDecline, envelopeRecipientSubmit, formatFullName } from "@verdocs/js-sdk";
|
@@ -63,6 +63,7 @@ export class VerdocsSign {
|
|
63
63
|
this.showFinishLater = false;
|
64
64
|
this.agreed = false;
|
65
65
|
this.documentsSingularPlural = 'document';
|
66
|
+
this.kbaStep = '';
|
66
67
|
}
|
67
68
|
componentWillLoad() {
|
68
69
|
if (!this.endpoint) {
|
@@ -120,6 +121,7 @@ export class VerdocsSign {
|
|
120
121
|
getKbaStep(this.endpoint, this.envelopeId, this.roleId)
|
121
122
|
.then(r => {
|
122
123
|
console.log('[SIGN] KBA Step', r);
|
124
|
+
this.kbaStep = r.kba_step;
|
123
125
|
})
|
124
126
|
.catch(e => console.log('Error getting KBA step', e));
|
125
127
|
}
|
@@ -550,7 +552,26 @@ export class VerdocsSign {
|
|
550
552
|
this.isDone = true;
|
551
553
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
552
554
|
}
|
553
|
-
|
555
|
+
if (!this.agreed) {
|
556
|
+
return (h(Host, { class: "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", { class: "document", style: { paddingTop: '15px' } }, h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })), 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"), "."))))));
|
557
|
+
}
|
558
|
+
if (this.kbaStep === 'pin') {
|
559
|
+
return (h(Host, { class: "kba" }, 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", { class: "document", style: { paddingTop: '15px' } }, h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })), h("div", { class: "cover" }, h("div", { class: "kba" }, h("verdocs-kba-dialog", { mode: "text", step: 1, steps: 1, helptitle: "Document is protected by a PIN code", helptext: "Please enter your PIN code to proceed. If you do not have one, please contact the sender.", label: "PIN Code", onNext: async (e) => {
|
560
|
+
submitKbaPin(this.endpoint, this.envelopeId, this.roleId, e.detail)
|
561
|
+
.then(r => {
|
562
|
+
console.log('[SIGN] PIN code submission result', r);
|
563
|
+
if (r.kba_step === 'complete') {
|
564
|
+
this.kbaStep = '';
|
565
|
+
}
|
566
|
+
})
|
567
|
+
.catch(e => {
|
568
|
+
var _a, _b;
|
569
|
+
console.log('[SIGN] Error submitting PIN', e);
|
570
|
+
VerdocsToast(((_b = (_a = e.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) || 'Unable to verify PIN code. Please try again.', { style: 'error' });
|
571
|
+
});
|
572
|
+
} })))));
|
573
|
+
}
|
574
|
+
return (h(Host, null, 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: '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
554
575
|
const pageNumbers = integerSequence(1, envelopeDocument.pages);
|
555
576
|
return (h(Fragment, null, pageNumbers.map(pageNumber => {
|
556
577
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
@@ -566,10 +587,10 @@ export class VerdocsSign {
|
|
566
587
|
{ name: 'controls', type: 'div' },
|
567
588
|
] }));
|
568
589
|
})));
|
569
|
-
}))
|
590
|
+
})), this.showFinishLater && (h("verdocs-ok-dialog", { heading: "You've saved your document to finish later.", message: `To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`, onNext: () => (this.showFinishLater = false) })), this.errorMessage && h("verdocs-ok-dialog", { heading: "Network Error", message: this.errorMessage, onNext: () => (this.errorMessage = '') }), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: () => {
|
570
591
|
this.showDone = false;
|
571
592
|
this.isDone = true;
|
572
|
-
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))
|
593
|
+
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
573
594
|
}
|
574
595
|
static get is() { return "verdocs-sign"; }
|
575
596
|
static get originalStyleUrls() {
|
@@ -701,7 +722,8 @@ export class VerdocsSign {
|
|
701
722
|
"finishLater": {},
|
702
723
|
"showFinishLater": {},
|
703
724
|
"agreed": {},
|
704
|
-
"documentsSingularPlural": {}
|
725
|
+
"documentsSingularPlural": {},
|
726
|
+
"kbaStep": {}
|
705
727
|
};
|
706
728
|
}
|
707
729
|
static get events() {
|
package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js
CHANGED
@@ -5,7 +5,7 @@ import { getEnvelopeStore, updateStoreEnvelope } from "../../../utils/EnvelopeSt
|
|
5
5
|
import { FORMAT_TIMESTAMP } from "../../../utils/Types";
|
6
6
|
import { VerdocsToast } from "../../../utils/Toast";
|
7
7
|
import { SDKError } from "../../../utils/errors";
|
8
|
-
const
|
8
|
+
const MS_PER_DAY = 24 * 60 * 60 * 1000;
|
9
9
|
const InformationCircle = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>`;
|
10
10
|
const Users = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>`;
|
11
11
|
const ClipboardDocuments = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><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>`;
|
@@ -274,7 +274,7 @@ export class VerdocsEnvelopeSidebar {
|
|
274
274
|
return this.handleSetReminders(null, null);
|
275
275
|
}
|
276
276
|
else {
|
277
|
-
return this.handleSetReminders(24 *
|
277
|
+
return this.handleSetReminders(24 * MS_PER_DAY, 48 * MS_PER_DAY);
|
278
278
|
}
|
279
279
|
}
|
280
280
|
handleSetReminders(initial_reminder, followup_reminders) {
|
@@ -319,11 +319,11 @@ export class VerdocsEnvelopeSidebar {
|
|
319
319
|
// TODO: Details dialog
|
320
320
|
// {id:'details',label: 'View Details'},
|
321
321
|
] }))), h("dic", { class: "recipient-content" }, h("div", { class: "recipient-name" }, fullName), h("div", { class: "recipient-name" }, recipient.email), h("div", { class: "recipient-name" }, recipient.phone))));
|
322
|
-
}), isEnvelopeOwner && (h("div", { class: "reminders" }, h("div", { class: "form-row" }, h("div", { class: "reminders-label" }, "Reminders"), h("verdocs-switch", { disabled: functionsDisabled || this.updatingReminders, checked: this.remindersEnabled, onCheckedChange: () => this.handleToggleReminders() })), this.remindersEnabled && (h(Fragment, null, h("div", { class: "form-row" }, h("div", { class: "form-label" }, "Initial Reminder:"), h("verdocs-text-input", { placeholder: "In hours...", disabled: functionsDisabled || this.updatingReminders, value: String(Math.floor(this.initialReminder /
|
323
|
-
this.initialReminder = Number(e.target.value) *
|
322
|
+
}), isEnvelopeOwner && (h("div", { class: "reminders" }, h("div", { class: "form-row" }, h("div", { class: "reminders-label" }, "Reminders"), h("verdocs-switch", { disabled: functionsDisabled || this.updatingReminders, checked: this.remindersEnabled, onCheckedChange: () => this.handleToggleReminders() })), this.remindersEnabled && (h(Fragment, null, h("div", { class: "form-row" }, "NOTE: Reminders will only be sent for up to 14 days."), h("div", { class: "form-row" }, h("div", { class: "form-label" }, "Initial Reminder:"), h("verdocs-text-input", { placeholder: "In hours...", disabled: functionsDisabled || this.updatingReminders, value: String(Math.floor(this.initialReminder / MS_PER_DAY)), onBlur: (e) => {
|
323
|
+
this.initialReminder = Number(e.target.value) * MS_PER_DAY;
|
324
324
|
this.handleSetReminders(this.initialReminder, this.followupReminders);
|
325
|
-
} })), h("div", { class: "form-row" }, h("div", { class: "form-label" }, "Follow-up Reminders:"), h("verdocs-text-input", { placeholder: "In hours...", disabled: functionsDisabled || this.updatingReminders, value: String(Math.floor(this.followupReminders /
|
326
|
-
this.followupReminders = Number(e.target.value) *
|
325
|
+
} })), h("div", { class: "form-row" }, h("div", { class: "form-label" }, "Follow-up Reminders:"), h("verdocs-text-input", { placeholder: "In hours...", disabled: functionsDisabled || this.updatingReminders, value: String(Math.floor(this.followupReminders / MS_PER_DAY)), onBlur: (e) => {
|
326
|
+
this.followupReminders = Number(e.target.value) * MS_PER_DAY;
|
327
327
|
this.handleSetReminders(this.initialReminder, this.followupReminders);
|
328
328
|
} })), h("div", { class: "form-row" }, h("div", { class: "form-label" }, "Next Reminder:"), h("div", { style: { color: '#dddddd' } }, format(new Date((_y = (_x = this.store) === null || _x === void 0 ? void 0 : _x.state) === null || _y === void 0 ? void 0 : _y.next_reminder), 'P p'))))))), isEnvelopeOwner && (h("verdocs-button", { class: "manage-recipients-button", variant: "standard", label: "Cancel Envelope", onClick: () => (this.showCancelDialog = !functionsDisabled), disabled: functionsDisabled })))), this.activeTab === 3 && (h("div", { class: "content" }, h("div", { class: "title" }, "History"), historyEntries.map(entry => (h("div", { class: "history-entry" }, h("div", { class: "activity-icon", innerHTML: ActivityIcons[entry.icon] || entry.icon }), h("div", { class: "activity-details" }, h("div", { class: "activity-text" }, entry.message), h("div", { class: "activity-date" }, format(entry.date, FORMAT_TIMESTAMP)))))))), this.showRecipientDialog && (h("verdocs-envelope-recipient-link", { envelopeId: this.envelopeId, roleName: this.showRecipientDialog, onNext: () => (this.showRecipientDialog = '') })), this.showCancelDialog && (h("verdocs-ok-dialog", { heading: "Cancel Envelope?", message: 'Are you sure you want to cancel this Envelope? This action cannot be undone.', onNext: () => {
|
329
329
|
this.showCancelDialog = false;
|
package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { getRGBA, VerdocsEndpoint } from "@verdocs/js-sdk";
|
2
2
|
import { h, Host, Fragment } from "@stencil/core";
|
3
|
-
import { getTemplateFieldStore } from "../../../utils/TemplateFieldStore";
|
4
3
|
import { getRoleIndex, getTemplateRoleStore } from "../../../utils/TemplateRoleStore";
|
4
|
+
import { getTemplateFieldStore } from "../../../utils/TemplateFieldStore";
|
5
5
|
import { SettingsIcon } from "../../../utils/Icons";
|
6
6
|
const PaperclipIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" /></svg>`;
|
7
7
|
const AttachedIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 104.69 122.88"><g><path d="M31.54,86.95c-1.74,0-3.16-1.43-3.16-3.19c0-1.76,1.41-3.19,3.16-3.19h20.5c1.74,0,3.16,1.43,3.16,3.19 c0,1.76-1.41,3.19-3.16,3.19H31.54L31.54,86.95z M31.54,42.27c-1.74,0-3.15-1.41-3.15-3.15c0-1.74,1.41-3.15,3.15-3.15h41.61 c1.74,0,3.15,1.41,3.15,3.15c0,1.74-1.41,3.15-3.15,3.15H31.54L31.54,42.27z M66.57,108.66c-1.36-1.08-1.59-3.06-0.5-4.42 c1.08-1.36,3.06-1.59,4.42-0.5l9.57,7.59l18.21-22.27c1.1-1.35,3.09-1.54,4.43-0.44c1.35,1.1,1.54,3.09,0.44,4.43l-20.17,24.67l0,0 c-1.09,1.33-3.04,1.54-4.39,0.47L66.57,108.66L66.57,108.66z M56.85,116.58c1.74,0,3.15,1.41,3.15,3.15c0,1.74-1.41,3.15-3.15,3.15 H7.33c-2.02,0-3.85-0.82-5.18-2.15C0.82,119.4,0,117.57,0,115.55V7.33c0-2.02,0.82-3.85,2.15-5.18C3.48,0.82,5.31,0,7.33,0h90.02 c2.02,0,3.85,0.82,5.18,2.15c1.33,1.33,2.15,3.16,2.15,5.18V72.6c0,1.74-1.41,3.15-3.15,3.15c-1.74,0-3.15-1.41-3.15-3.15V7.33 c0-0.28-0.12-0.54-0.3-0.73c-0.19-0.19-0.45-0.3-0.73-0.3H7.33c-0.28,0-0.54,0.12-0.73,0.3C6.42,6.8,6.3,7.05,6.3,7.33v108.21 c0,0.28,0.12,0.54,0.3,0.73c0.19,0.19,0.45,0.3,0.73,0.3H56.85L56.85,116.58z M31.54,64.59c-1.74,0-3.15-1.41-3.15-3.15 c0-1.74,1.41-3.15,3.15-3.15h41.61c1.74,0,3.15,1.41,3.15,3.15c0,1.74-1.41,3.15-3.15,3.15H31.54L31.54,64.59z"/></g></svg>`;
|
@@ -12,6 +12,12 @@ export class VerdocsFieldAttachment {
|
|
12
12
|
constructor() {
|
13
13
|
this.fieldStore = null;
|
14
14
|
this.roleStore = null;
|
15
|
+
this.handleUploadNext = (e) => {
|
16
|
+
var _a;
|
17
|
+
console.log('Upload next', e);
|
18
|
+
this.selectedFile = e.detail[0];
|
19
|
+
(_a = this.attached) === null || _a === void 0 ? void 0 : _a.emit(e.detail[0]);
|
20
|
+
};
|
15
21
|
this.endpoint = VerdocsEndpoint.getDefault();
|
16
22
|
this.templateid = '';
|
17
23
|
this.fieldname = '';
|
@@ -23,6 +29,7 @@ export class VerdocsFieldAttachment {
|
|
23
29
|
this.yscale = 1;
|
24
30
|
this.pagenumber = 1;
|
25
31
|
this.showingProperties = false;
|
32
|
+
this.dialogOpen = false;
|
26
33
|
this.selectedFile = null;
|
27
34
|
}
|
28
35
|
async focusField() {
|
@@ -45,19 +52,19 @@ export class VerdocsFieldAttachment {
|
|
45
52
|
this.roleStore = getTemplateRoleStore(this.templateid);
|
46
53
|
}
|
47
54
|
handleShow() {
|
48
|
-
this.
|
49
|
-
this.dialog
|
50
|
-
this.dialog.
|
51
|
-
this.dialog.
|
52
|
-
this.dialog.addEventListener('
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
});
|
60
|
-
document.body.append(this.dialog);
|
55
|
+
this.dialogOpen = true;
|
56
|
+
// this.dialog = document.createElement('verdocs-upload-dialog');
|
57
|
+
// this.dialog.open = true;
|
58
|
+
// this.dialog.existingFile = {name: 'image.png', size: 1000, type: 'image/png', lastModified: Date.now(), data: ''};
|
59
|
+
// this.dialog.addEventListener('exit', () => this.dialog?.remove());
|
60
|
+
// this.dialog.addEventListener('remove', () => this.remove?.emit());
|
61
|
+
// document.addEventListener('next', (e: any) => {
|
62
|
+
// console.log('attach onNext', e.detail[0]);
|
63
|
+
// this.selectedFile = e.detail[0];
|
64
|
+
// this.attached?.emit(e.detail[0]);
|
65
|
+
// this.dialog.open = false;
|
66
|
+
// });
|
67
|
+
// document.body.append(this.dialog);
|
61
68
|
}
|
62
69
|
render() {
|
63
70
|
const { templateid, fieldname = '', editable = false, done = false, disabled = false, xscale = 1, yscale = 1 } = this;
|
@@ -79,7 +86,12 @@ export class VerdocsFieldAttachment {
|
|
79
86
|
var _a;
|
80
87
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
81
88
|
return this.hideSettingsPanel();
|
82
|
-
}, helpText: 'Attachments allow the user to attach their own documents (e.g. resumes or disclosures) to a signing flow.' })))))
|
89
|
+
}, helpText: 'Attachments allow the user to attach their own documents (e.g. resumes or disclosures) to a signing flow.' }))))), this.dialogOpen && (h("verdocs-upload-dialog", {
|
90
|
+
// existingFile={{name: 'image.png', size: 1000, type: 'image/png', lastModified: Date.now(), data: ''}}
|
91
|
+
onNext: e => this.handleUploadNext(e), onExit: () => (this.dialogOpen = false), onRemove: e => {
|
92
|
+
console.log('remove', e);
|
93
|
+
}
|
94
|
+
}))));
|
83
95
|
}
|
84
96
|
static get is() { return "verdocs-field-attachment"; }
|
85
97
|
static get originalStyleUrls() {
|
@@ -283,6 +295,7 @@ export class VerdocsFieldAttachment {
|
|
283
295
|
static get states() {
|
284
296
|
return {
|
285
297
|
"showingProperties": {},
|
298
|
+
"dialogOpen": {},
|
286
299
|
"selectedFile": {}
|
287
300
|
};
|
288
301
|
}
|
@@ -300,7 +300,7 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsAuth extends
|
|
300
300
|
"endpoint": [16],
|
301
301
|
"visible": [4],
|
302
302
|
"logo": [1],
|
303
|
-
"displayMode": [
|
303
|
+
"displayMode": [1025, "display-mode"],
|
304
304
|
"org_name": [32],
|
305
305
|
"first_name": [32],
|
306
306
|
"last_name": [32],
|
@@ -17,7 +17,7 @@ import { d as dateFns } from './index2.js';
|
|
17
17
|
const verdocsEnvelopeSidebarCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-sidebar{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;max-width:100%;width:400px}@media screen and (max-width: 500px){verdocs-envelope-sidebar.open{-ms-flex:0 0 300px;flex:0 0 300px;width:300px}}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400}verdocs-envelope-sidebar .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;font-size:14px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;gap:6px;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-name{-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:0 0 100px;flex:0 0 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}@media screen and (max-width: 500px){verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 60px;flex:1 1 60px;max-width:60px;min-width:60px}}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .recipient-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}verdocs-envelope-sidebar .reminders{margin:15px 0 30px 0}verdocs-envelope-sidebar .reminders .form-row{margin:8px 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-sidebar .reminders .form-row .reminders-label{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row .form-label{-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row verdocs-text-input{margin:0;width:100px}";
|
18
18
|
const VerdocsEnvelopeSidebarStyle0 = verdocsEnvelopeSidebarCss;
|
19
19
|
|
20
|
-
const
|
20
|
+
const MS_PER_DAY = 24 * 60 * 60 * 1000;
|
21
21
|
const InformationCircle = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>`;
|
22
22
|
const Users = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>`;
|
23
23
|
const ClipboardDocuments = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><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>`;
|
@@ -288,7 +288,7 @@ const VerdocsEnvelopeSidebar$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsE
|
|
288
288
|
return this.handleSetReminders(null, null);
|
289
289
|
}
|
290
290
|
else {
|
291
|
-
return this.handleSetReminders(24 *
|
291
|
+
return this.handleSetReminders(24 * MS_PER_DAY, 48 * MS_PER_DAY);
|
292
292
|
}
|
293
293
|
}
|
294
294
|
handleSetReminders(initial_reminder, followup_reminders) {
|
@@ -333,11 +333,11 @@ const VerdocsEnvelopeSidebar$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsE
|
|
333
333
|
// TODO: Details dialog
|
334
334
|
// {id:'details',label: 'View Details'},
|
335
335
|
] }))), h("dic", { class: "recipient-content" }, h("div", { class: "recipient-name" }, fullName), h("div", { class: "recipient-name" }, recipient.email), h("div", { class: "recipient-name" }, recipient.phone))));
|
336
|
-
}), isEnvelopeOwner && (h("div", { class: "reminders" }, h("div", { class: "form-row" }, h("div", { class: "reminders-label" }, "Reminders"), h("verdocs-switch", { disabled: functionsDisabled || this.updatingReminders, checked: this.remindersEnabled, onCheckedChange: () => this.handleToggleReminders() })), this.remindersEnabled && (h(Fragment, null, h("div", { class: "form-row" }, h("div", { class: "form-label" }, "Initial Reminder:"), h("verdocs-text-input", { placeholder: "In hours...", disabled: functionsDisabled || this.updatingReminders, value: String(Math.floor(this.initialReminder /
|
337
|
-
this.initialReminder = Number(e.target.value) *
|
336
|
+
}), isEnvelopeOwner && (h("div", { class: "reminders" }, h("div", { class: "form-row" }, h("div", { class: "reminders-label" }, "Reminders"), h("verdocs-switch", { disabled: functionsDisabled || this.updatingReminders, checked: this.remindersEnabled, onCheckedChange: () => this.handleToggleReminders() })), this.remindersEnabled && (h(Fragment, null, h("div", { class: "form-row" }, "NOTE: Reminders will only be sent for up to 14 days."), h("div", { class: "form-row" }, h("div", { class: "form-label" }, "Initial Reminder:"), h("verdocs-text-input", { placeholder: "In hours...", disabled: functionsDisabled || this.updatingReminders, value: String(Math.floor(this.initialReminder / MS_PER_DAY)), onBlur: (e) => {
|
337
|
+
this.initialReminder = Number(e.target.value) * MS_PER_DAY;
|
338
338
|
this.handleSetReminders(this.initialReminder, this.followupReminders);
|
339
|
-
} })), h("div", { class: "form-row" }, h("div", { class: "form-label" }, "Follow-up Reminders:"), h("verdocs-text-input", { placeholder: "In hours...", disabled: functionsDisabled || this.updatingReminders, value: String(Math.floor(this.followupReminders /
|
340
|
-
this.followupReminders = Number(e.target.value) *
|
339
|
+
} })), h("div", { class: "form-row" }, h("div", { class: "form-label" }, "Follow-up Reminders:"), h("verdocs-text-input", { placeholder: "In hours...", disabled: functionsDisabled || this.updatingReminders, value: String(Math.floor(this.followupReminders / MS_PER_DAY)), onBlur: (e) => {
|
340
|
+
this.followupReminders = Number(e.target.value) * MS_PER_DAY;
|
341
341
|
this.handleSetReminders(this.initialReminder, this.followupReminders);
|
342
342
|
} })), h("div", { class: "form-row" }, h("div", { class: "form-label" }, "Next Reminder:"), h("div", { style: { color: '#dddddd' } }, dateFns.format(new Date((_y = (_x = this.store) === null || _x === void 0 ? void 0 : _x.state) === null || _y === void 0 ? void 0 : _y.next_reminder), 'P p'))))))), isEnvelopeOwner && (h("verdocs-button", { class: "manage-recipients-button", variant: "standard", label: "Cancel Envelope", onClick: () => (this.showCancelDialog = !functionsDisabled), disabled: functionsDisabled })))), this.activeTab === 3 && (h("div", { class: "content" }, h("div", { class: "title" }, "History"), historyEntries.map(entry => (h("div", { class: "history-entry" }, h("div", { class: "activity-icon", innerHTML: ActivityIcons[entry.icon] || entry.icon }), h("div", { class: "activity-details" }, h("div", { class: "activity-text" }, entry.message), h("div", { class: "activity-date" }, dateFns.format(entry.date, FORMAT_TIMESTAMP)))))))), this.showRecipientDialog && (h("verdocs-envelope-recipient-link", { envelopeId: this.envelopeId, roleName: this.showRecipientDialog, onNext: () => (this.showRecipientDialog = '') })), this.showCancelDialog && (h("verdocs-ok-dialog", { heading: "Cancel Envelope?", message: 'Are you sure you want to cancel this Envelope? This action cannot be undone.', onNext: () => {
|
343
343
|
this.showCancelDialog = false;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
|
2
2
|
import { VerdocsEndpoint, getRGBA } from '@verdocs/js-sdk';
|
3
|
-
import { g as getTemplateFieldStore } from './TemplateFieldStore.js';
|
4
3
|
import { g as getTemplateRoleStore, a as getRoleIndex } from './TemplateRoleStore.js';
|
4
|
+
import { g as getTemplateFieldStore } from './TemplateFieldStore.js';
|
5
5
|
import { S as SettingsIcon } from './Icons.js';
|
6
6
|
import { d as defineCustomElement$9 } from './verdocs-button2.js';
|
7
7
|
import { d as defineCustomElement$8 } from './verdocs-checkbox2.js';
|
@@ -28,6 +28,12 @@ const VerdocsFieldAttachment = /*@__PURE__*/ proxyCustomElement(class VerdocsFie
|
|
28
28
|
this.remove = createEvent(this, "remove", 7);
|
29
29
|
this.fieldStore = null;
|
30
30
|
this.roleStore = null;
|
31
|
+
this.handleUploadNext = (e) => {
|
32
|
+
var _a;
|
33
|
+
console.log('Upload next', e);
|
34
|
+
this.selectedFile = e.detail[0];
|
35
|
+
(_a = this.attached) === null || _a === void 0 ? void 0 : _a.emit(e.detail[0]);
|
36
|
+
};
|
31
37
|
this.endpoint = VerdocsEndpoint.getDefault();
|
32
38
|
this.templateid = '';
|
33
39
|
this.fieldname = '';
|
@@ -39,6 +45,7 @@ const VerdocsFieldAttachment = /*@__PURE__*/ proxyCustomElement(class VerdocsFie
|
|
39
45
|
this.yscale = 1;
|
40
46
|
this.pagenumber = 1;
|
41
47
|
this.showingProperties = false;
|
48
|
+
this.dialogOpen = false;
|
42
49
|
this.selectedFile = null;
|
43
50
|
}
|
44
51
|
async focusField() {
|
@@ -61,19 +68,19 @@ const VerdocsFieldAttachment = /*@__PURE__*/ proxyCustomElement(class VerdocsFie
|
|
61
68
|
this.roleStore = getTemplateRoleStore(this.templateid);
|
62
69
|
}
|
63
70
|
handleShow() {
|
64
|
-
this.
|
65
|
-
this.dialog
|
66
|
-
this.dialog.
|
67
|
-
this.dialog.
|
68
|
-
this.dialog.addEventListener('
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
});
|
76
|
-
document.body.append(this.dialog);
|
71
|
+
this.dialogOpen = true;
|
72
|
+
// this.dialog = document.createElement('verdocs-upload-dialog');
|
73
|
+
// this.dialog.open = true;
|
74
|
+
// this.dialog.existingFile = {name: 'image.png', size: 1000, type: 'image/png', lastModified: Date.now(), data: ''};
|
75
|
+
// this.dialog.addEventListener('exit', () => this.dialog?.remove());
|
76
|
+
// this.dialog.addEventListener('remove', () => this.remove?.emit());
|
77
|
+
// document.addEventListener('next', (e: any) => {
|
78
|
+
// console.log('attach onNext', e.detail[0]);
|
79
|
+
// this.selectedFile = e.detail[0];
|
80
|
+
// this.attached?.emit(e.detail[0]);
|
81
|
+
// this.dialog.open = false;
|
82
|
+
// });
|
83
|
+
// document.body.append(this.dialog);
|
77
84
|
}
|
78
85
|
render() {
|
79
86
|
const { templateid, fieldname = '', editable = false, done = false, disabled = false, xscale = 1, yscale = 1 } = this;
|
@@ -95,7 +102,12 @@ const VerdocsFieldAttachment = /*@__PURE__*/ proxyCustomElement(class VerdocsFie
|
|
95
102
|
var _a;
|
96
103
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
97
104
|
return this.hideSettingsPanel();
|
98
|
-
}, helpText: 'Attachments allow the user to attach their own documents (e.g. resumes or disclosures) to a signing flow.' })))))
|
105
|
+
}, helpText: 'Attachments allow the user to attach their own documents (e.g. resumes or disclosures) to a signing flow.' }))))), this.dialogOpen && (h("verdocs-upload-dialog", {
|
106
|
+
// existingFile={{name: 'image.png', size: 1000, type: 'image/png', lastModified: Date.now(), data: ''}}
|
107
|
+
onNext: e => this.handleUploadNext(e), onExit: () => (this.dialogOpen = false), onRemove: e => {
|
108
|
+
console.log('remove', e);
|
109
|
+
}
|
110
|
+
}))));
|
99
111
|
}
|
100
112
|
get el() { return this; }
|
101
113
|
static get style() { return VerdocsFieldAttachmentStyle0; }
|
@@ -111,6 +123,7 @@ const VerdocsFieldAttachment = /*@__PURE__*/ proxyCustomElement(class VerdocsFie
|
|
111
123
|
"yscale": [514],
|
112
124
|
"pagenumber": [514],
|
113
125
|
"showingProperties": [32],
|
126
|
+
"dialogOpen": [32],
|
114
127
|
"selectedFile": [32],
|
115
128
|
"focusField": [64],
|
116
129
|
"showSettingsPanel": [64],
|
@@ -1,72 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { d as defineCustomElement$2 } from './verdocs-button2.js';
|
3
|
-
|
4
|
-
const verdocsKbaDialogCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:14px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}";
|
5
|
-
const VerdocsKbaDialogStyle0 = verdocsKbaDialogCss;
|
6
|
-
|
7
|
-
const QuestionIcon = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;
|
8
|
-
const VerdocsKbaDialog$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsKbaDialog extends HTMLElement {
|
9
|
-
constructor() {
|
10
|
-
super();
|
11
|
-
this.__registerHost();
|
12
|
-
this.exit = createEvent(this, "exit", 7);
|
13
|
-
this.next = createEvent(this, "next", 7);
|
14
|
-
this.step = 1;
|
15
|
-
this.steps = 3;
|
16
|
-
this.helptitle = 'Previous Addresses';
|
17
|
-
this.helptext = 'Please select the address below that you have most recently lived at.';
|
18
|
-
this.mode = 'choice';
|
19
|
-
this.label = 'PIN';
|
20
|
-
this.placeholder = 'Enter your PIN...';
|
21
|
-
this.choices = ['553 Arbor Dr', '18 Lacey Ln', '23A Ball Ct', '2375 Cavallo Blvd', '23-1 RR-7', '151 Boulder Rd'];
|
22
|
-
this.response = '';
|
23
|
-
}
|
24
|
-
handleCancel() {
|
25
|
-
this.exit.emit();
|
26
|
-
}
|
27
|
-
// We need a separate event handler for clicking the background because it can receive events "through" other child components
|
28
|
-
handleDismiss(e) {
|
29
|
-
if (e.target.className === 'background-overlay') {
|
30
|
-
e.preventDefault();
|
31
|
-
this.handleCancel();
|
32
|
-
}
|
33
|
-
}
|
34
|
-
handleDone() {
|
35
|
-
this.next.emit(this.response);
|
36
|
-
}
|
37
|
-
render() {
|
38
|
-
return (h(Host, { key: 'f9a083bccfb6207ec3be7e30e9555df493ceabe4' }, h("div", { key: '3bf629c7e6e0fd1e42f11748c8e0137df77271a1', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '9d422b2e5895311095251d9cc538803ec9225a9f', class: "dialog" }, h("div", { key: 'acc9993b406f7dfef86cd59699afaf2157c59df6', class: "heading" }, "Confirm Your Identity", this.steps > 1 ? (h("span", { class: "step" }, "(", this.step, "/", this.steps, ")")) : (h(Fragment, null))), !!this.helptitle && (h("div", { key: '46eda39009fab8d07eaa48d90b1a6492792ab42a', class: "help-box" }, h("div", { key: '29c1540850ccdb8cca5ad84dc8e25de37cac7202', class: "help-icon", innerHTML: QuestionIcon }), h("div", { key: '4d9d5b06f5b6f98c2584e520d1a88103eac108bb', class: "help-details" }, h("div", { key: '127cd0963876ca5674f8233685857b5a90d4331f', class: "help-title" }, this.helptitle), h("div", { key: '8104f492a91470844fa2cc2cfd3727aa84d74d59', class: "help-text" }, this.helptext)))), this.mode === 'choice' ? (h("div", { class: "choices" }, this.choices.map(choice => (h("div", { class: `choice ${choice === this.response ? 'selected' : ''}`, onClick: () => (this.response = choice) }, choice))))) : (h("div", { class: "input" }, h("label", { htmlFor: "verdocs-kba-input" }, this.label), h("input", { type: "text", id: "verdocs-kba-input", name: "verdocs-kba-input", placeholder: this.placeholder, value: this.response, onInput: (e) => (this.response = e.target.value) }))), h("div", { key: '6f65266320dd0f9ca8ff2a0abe8b0c75cadf2bcb', class: "buttons" }, h("verdocs-button", { key: '5baa530487b8264910f9cc3927479271bdef428d', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: '7a64f46c176edaa9e82872d5ef6226b8bfd3e0f2', label: "Done", onClick: () => this.handleDone(), disabled: !this.response }))))));
|
39
|
-
}
|
40
|
-
static get style() { return VerdocsKbaDialogStyle0; }
|
41
|
-
}, [0, "verdocs-kba-dialog", {
|
42
|
-
"step": [2],
|
43
|
-
"steps": [2],
|
44
|
-
"helptitle": [1],
|
45
|
-
"helptext": [1],
|
46
|
-
"mode": [1],
|
47
|
-
"label": [1],
|
48
|
-
"placeholder": [1],
|
49
|
-
"choices": [16],
|
50
|
-
"response": [32]
|
51
|
-
}]);
|
52
|
-
function defineCustomElement$1() {
|
53
|
-
if (typeof customElements === "undefined") {
|
54
|
-
return;
|
55
|
-
}
|
56
|
-
const components = ["verdocs-kba-dialog", "verdocs-button"];
|
57
|
-
components.forEach(tagName => { switch (tagName) {
|
58
|
-
case "verdocs-kba-dialog":
|
59
|
-
if (!customElements.get(tagName)) {
|
60
|
-
customElements.define(tagName, VerdocsKbaDialog$1);
|
61
|
-
}
|
62
|
-
break;
|
63
|
-
case "verdocs-button":
|
64
|
-
if (!customElements.get(tagName)) {
|
65
|
-
defineCustomElement$2();
|
66
|
-
}
|
67
|
-
break;
|
68
|
-
} });
|
69
|
-
}
|
1
|
+
import { V as VerdocsKbaDialog$1, d as defineCustomElement$1 } from './verdocs-kba-dialog2.js';
|
70
2
|
|
71
3
|
const VerdocsKbaDialog = VerdocsKbaDialog$1;
|
72
4
|
const defineCustomElement = defineCustomElement$1;
|
@@ -1,12 +1,14 @@
|
|
1
|
-
import {
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
|
2
|
+
import { d as defineCustomElement$1 } from './verdocs-button2.js';
|
2
3
|
|
3
4
|
const verdocsKbaDialogCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:14px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}";
|
4
5
|
const VerdocsKbaDialogStyle0 = verdocsKbaDialogCss;
|
5
6
|
|
6
7
|
const QuestionIcon = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;
|
7
|
-
const VerdocsKbaDialog = class {
|
8
|
-
constructor(
|
9
|
-
|
8
|
+
const VerdocsKbaDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsKbaDialog extends HTMLElement {
|
9
|
+
constructor() {
|
10
|
+
super();
|
11
|
+
this.__registerHost();
|
10
12
|
this.exit = createEvent(this, "exit", 7);
|
11
13
|
this.next = createEvent(this, "next", 7);
|
12
14
|
this.step = 1;
|
@@ -35,7 +37,35 @@ const VerdocsKbaDialog = class {
|
|
35
37
|
render() {
|
36
38
|
return (h(Host, { key: 'f9a083bccfb6207ec3be7e30e9555df493ceabe4' }, h("div", { key: '3bf629c7e6e0fd1e42f11748c8e0137df77271a1', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '9d422b2e5895311095251d9cc538803ec9225a9f', class: "dialog" }, h("div", { key: 'acc9993b406f7dfef86cd59699afaf2157c59df6', class: "heading" }, "Confirm Your Identity", this.steps > 1 ? (h("span", { class: "step" }, "(", this.step, "/", this.steps, ")")) : (h(Fragment, null))), !!this.helptitle && (h("div", { key: '46eda39009fab8d07eaa48d90b1a6492792ab42a', class: "help-box" }, h("div", { key: '29c1540850ccdb8cca5ad84dc8e25de37cac7202', class: "help-icon", innerHTML: QuestionIcon }), h("div", { key: '4d9d5b06f5b6f98c2584e520d1a88103eac108bb', class: "help-details" }, h("div", { key: '127cd0963876ca5674f8233685857b5a90d4331f', class: "help-title" }, this.helptitle), h("div", { key: '8104f492a91470844fa2cc2cfd3727aa84d74d59', class: "help-text" }, this.helptext)))), this.mode === 'choice' ? (h("div", { class: "choices" }, this.choices.map(choice => (h("div", { class: `choice ${choice === this.response ? 'selected' : ''}`, onClick: () => (this.response = choice) }, choice))))) : (h("div", { class: "input" }, h("label", { htmlFor: "verdocs-kba-input" }, this.label), h("input", { type: "text", id: "verdocs-kba-input", name: "verdocs-kba-input", placeholder: this.placeholder, value: this.response, onInput: (e) => (this.response = e.target.value) }))), h("div", { key: '6f65266320dd0f9ca8ff2a0abe8b0c75cadf2bcb', class: "buttons" }, h("verdocs-button", { key: '5baa530487b8264910f9cc3927479271bdef428d', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: '7a64f46c176edaa9e82872d5ef6226b8bfd3e0f2', label: "Done", onClick: () => this.handleDone(), disabled: !this.response }))))));
|
37
39
|
}
|
38
|
-
}
|
39
|
-
|
40
|
+
static get style() { return VerdocsKbaDialogStyle0; }
|
41
|
+
}, [0, "verdocs-kba-dialog", {
|
42
|
+
"step": [2],
|
43
|
+
"steps": [2],
|
44
|
+
"helptitle": [1],
|
45
|
+
"helptext": [1],
|
46
|
+
"mode": [1],
|
47
|
+
"label": [1],
|
48
|
+
"placeholder": [1],
|
49
|
+
"choices": [16],
|
50
|
+
"response": [32]
|
51
|
+
}]);
|
52
|
+
function defineCustomElement() {
|
53
|
+
if (typeof customElements === "undefined") {
|
54
|
+
return;
|
55
|
+
}
|
56
|
+
const components = ["verdocs-kba-dialog", "verdocs-button"];
|
57
|
+
components.forEach(tagName => { switch (tagName) {
|
58
|
+
case "verdocs-kba-dialog":
|
59
|
+
if (!customElements.get(tagName)) {
|
60
|
+
customElements.define(tagName, VerdocsKbaDialog);
|
61
|
+
}
|
62
|
+
break;
|
63
|
+
case "verdocs-button":
|
64
|
+
if (!customElements.get(tagName)) {
|
65
|
+
defineCustomElement$1();
|
66
|
+
}
|
67
|
+
break;
|
68
|
+
} });
|
69
|
+
}
|
40
70
|
|
41
|
-
export { VerdocsKbaDialog as
|
71
|
+
export { VerdocsKbaDialog as V, defineCustomElement as d };
|