@verdocs/web-sdk 4.2.74 → 4.2.77
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/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +5 -6
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +9 -3
- package/dist/cjs/verdocs-preview_10.cjs.entry.js +7 -5
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +12 -6
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +7 -5
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +5 -6
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.css +0 -1710
- package/dist/components/verdocs-contact-picker2.js +5 -6
- package/dist/components/verdocs-field-date2.js +1 -1
- package/dist/components/verdocs-portal2.js +10 -4
- package/dist/components/verdocs-send2.js +7 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-contact-picker_2.entry.js +5 -6
- package/dist/esm/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm/verdocs-organization-card_2.entry.js +9 -3
- package/dist/esm/verdocs-preview_10.entry.js +7 -5
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_10.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/verdocs-web-sdk/p-12a60f9b.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-34325ad6.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-00e963de.system.entry.js → p-4275b4b5.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-73b7249a.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-18355fdc.system.entry.js → p-78d37e83.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-912f8ad2.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-7864e5d5.entry.js → p-d2ad8536.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-db46606c.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-fdd7fa4b.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -3
- package/dist/custom-elements.json +0 -2022
- package/dist/verdocs-web-sdk/p-20f34f2d.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3e750ce4.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-449f5d0a.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-821bd253.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-9b967885.entry.js +0 -1
@@ -27,7 +27,7 @@ export class VerdocsPortal {
|
|
27
27
|
this.align = 'left';
|
28
28
|
}
|
29
29
|
handleScroll() {
|
30
|
-
|
30
|
+
this.calculatePosition();
|
31
31
|
}
|
32
32
|
handleResize() {
|
33
33
|
this.calculatePosition();
|
@@ -56,7 +56,7 @@ export class VerdocsPortal {
|
|
56
56
|
if (!anchorEl)
|
57
57
|
return 0;
|
58
58
|
const anchorRect = anchorEl.getBoundingClientRect();
|
59
|
-
return anchorRect.bottom + this.voffset;
|
59
|
+
return anchorRect.bottom + this.voffset + document.documentElement.scrollTop;
|
60
60
|
}
|
61
61
|
calculatePosition() {
|
62
62
|
this.portal.style.top = `${this.calculateTop()}px`;
|
@@ -71,6 +71,12 @@ export class VerdocsPortal {
|
|
71
71
|
this.portal.style.zIndex = Z_INDEX;
|
72
72
|
this.portal.style.position = 'absolute';
|
73
73
|
document.body.append(this.portal);
|
74
|
+
// function debounce(method, delay) {
|
75
|
+
// clearTimeout(method._tId);
|
76
|
+
// method._tId = setTimeout(function () {
|
77
|
+
// method();
|
78
|
+
// }, delay);
|
79
|
+
// }
|
74
80
|
}
|
75
81
|
componentDidLoad() {
|
76
82
|
this.portal.appendChild(this.element);
|
@@ -80,7 +86,7 @@ export class VerdocsPortal {
|
|
80
86
|
this.moved ? this.portal.remove() : (this.moved = true);
|
81
87
|
}
|
82
88
|
render() {
|
83
|
-
return (h(Host, { key: '
|
89
|
+
return (h(Host, { key: '9929603a3ff04c0d2315b082cc23ec41394fad74', ref: el => (this.element = el) }, h("slot", { key: 'cbde23964359e4a9bbe7f41bd3ed13576c159aa5' })));
|
84
90
|
}
|
85
91
|
static get is() { return "verdocs-portal"; }
|
86
92
|
static get originalStyleUrls() {
|
@@ -179,13 +185,13 @@ export class VerdocsPortal {
|
|
179
185
|
"name": "resize",
|
180
186
|
"method": "handleResize",
|
181
187
|
"target": "window",
|
182
|
-
"capture":
|
188
|
+
"capture": false,
|
183
189
|
"passive": true
|
184
190
|
}, {
|
185
191
|
"name": "click",
|
186
192
|
"method": "handleClick",
|
187
|
-
"target": "
|
188
|
-
"capture":
|
193
|
+
"target": "document",
|
194
|
+
"capture": false,
|
189
195
|
"passive": false
|
190
196
|
}];
|
191
197
|
}
|
@@ -48,6 +48,9 @@ export class VerdocsSend {
|
|
48
48
|
var _a, _b, _c;
|
49
49
|
try {
|
50
50
|
this.endpoint.onSessionChanged((_endpoint, _session, profile) => {
|
51
|
+
if (!profile) {
|
52
|
+
return;
|
53
|
+
}
|
51
54
|
const me = {
|
52
55
|
id: profile.id,
|
53
56
|
first_name: profile.first_name,
|
@@ -59,11 +62,11 @@ export class VerdocsSend {
|
|
59
62
|
this.sessionContacts = [me];
|
60
63
|
getOrganizationContacts(this.endpoint)
|
61
64
|
.then(contacts => {
|
62
|
-
console.log('Got contacts', contacts);
|
65
|
+
console.log('[SEND] Got contacts', contacts);
|
63
66
|
this.sessionContacts = [...contacts, me];
|
64
67
|
})
|
65
68
|
.catch(e => {
|
66
|
-
console.log('Error getting contacts', e);
|
69
|
+
console.log('[SEND] Error getting contacts', e);
|
67
70
|
});
|
68
71
|
}
|
69
72
|
});
|
@@ -150,7 +153,6 @@ export class VerdocsSend {
|
|
150
153
|
}
|
151
154
|
}
|
152
155
|
handleSelectContact(e, role) {
|
153
|
-
console.log('selc', e.detail);
|
154
156
|
e.preventDefault();
|
155
157
|
this.rolesCompleted[role.id] = { ...role, ...e.detail };
|
156
158
|
this.showPickerForId = '';
|
@@ -162,10 +164,10 @@ export class VerdocsSend {
|
|
162
164
|
handleSend(e) {
|
163
165
|
var _a, _b, _c;
|
164
166
|
if (this.sending) {
|
165
|
-
console.log('Skipping duplicate send', e);
|
167
|
+
console.log('[SEND] Skipping duplicate send', e);
|
166
168
|
return;
|
167
169
|
}
|
168
|
-
console.log('Sending', e);
|
170
|
+
console.log('[SEND] Sending', e);
|
169
171
|
e.preventDefault();
|
170
172
|
e.stopPropagation();
|
171
173
|
this.sending = true;
|
package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js
CHANGED
@@ -97,7 +97,6 @@ export class VerdocsContactPicker {
|
|
97
97
|
}
|
98
98
|
handleSelectSuggestion(e, suggestion) {
|
99
99
|
e.stopPropagation();
|
100
|
-
console.log('Selected', suggestion);
|
101
100
|
this.first_name = suggestion.first_name;
|
102
101
|
this.last_name = suggestion.last_name;
|
103
102
|
this.email = suggestion.email;
|
@@ -107,26 +106,26 @@ export class VerdocsContactPicker {
|
|
107
106
|
// The reason for the random names/IDs is to disable browser autocomplete. We set the autocomplete tags but many browsers ignore them
|
108
107
|
// and show a duplicate autocomplete picker on top of our own.
|
109
108
|
render() {
|
110
|
-
return (h("form", { key: '
|
109
|
+
return (h("form", { key: 'dd02e23758d334495edb642f0f1513889eca5bbe', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("div", { key: 'f8594524ea492993227b07e0e8d5a71c847f1b64', class: "row" }, h("label", { key: 'fbbef02b5e11880c7c104b96de3a17537bc7ff8c', htmlFor: this.nameFieldId }, "Name:"), h("div", { key: '50d4ff03c47eb77865de05ffd247e7684e2cdbcf', class: "names-row" }, h("input", { key: 'dc52d17011643cbb25f9e5129aadacd1104365a9', id: this.firstNameFieldId, name: this.firstNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.first_name, placeholder: "First Name...", onFocus: () => { var _a; return (this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0); }, onInput: e => this.handleFirstNameChange(e) }), h("input", { key: 'f46f41f7eb915569ce6e202667873a0309d98d16', id: this.lastNameFieldId, name: this.lastNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.last_name, placeholder: "Last Name...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleLastNameChange(e) })), this.showSuggestions && (h("div", { key: 'b82ecccbf9fa1172af45f33595337a73589ac482', class: "dropdown" }, this.contactSuggestions
|
111
110
|
.filter(suggestion => !this.first_name || suggestion.first_name.toLowerCase().includes(this.first_name.toLowerCase()))
|
112
111
|
.map(suggestion => {
|
113
112
|
var _a;
|
114
113
|
return (h("div", { key: (_a = suggestion.id) !== null && _a !== void 0 ? _a : suggestion.email, class: "suggestion", onClick: e => this.handleSelectSuggestion(e, suggestion) }, suggestion.picture ? h("img", { alt: "Avatar", class: "avatar", src: suggestion.picture }) : h("div", { class: "avatar", innerHTML: addrBookIcon }), h("div", { class: "details" }, h("div", { class: "name" }, formatFullName(suggestion)), suggestion.email && h("div", { class: "destination" }, suggestion.email), suggestion.phone && h("div", { class: "destination" }, suggestion.phone))));
|
115
|
-
})))), h("div", { key: '
|
114
|
+
})))), h("div", { key: '7a3fc3c98c19a4a1bb07a6914f35eba61132294d', class: "row" }, h("label", { key: 'b2a589aae874fe69b8ae50569e14c6005344d8f3', htmlFor: this.emailFieldId }, "Email:"), h("input", { key: '39ee39af447b65d543492ebac6d199985aada563', id: this.emailFieldId, name: this.emailFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", value: this.email, placeholder: "Email Address...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleEmailChange(e) })), h("div", { key: 'c7420ac25ad40fb99a40212266efa3b564058b1d', class: "row" }, h("label", { key: 'bd4b4eaf87be10f5a34186b27fd4ee8239cfacc9', htmlFor: this.phoneFieldId }, "Phone:"), h("input", { key: 'abfa297fa18f57ef20313b1ac9e9cc866f0e37e9', id: this.phoneFieldId, name: this.phoneFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", value: this.phone, placeholder: "Phone Number...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handlePhoneChange(e) })), this.showKba && (h("div", { key: 'bea4383cd29e9c43b883c29b55f0e6cacf89c63f', class: "row" }, h("div", { key: '8ebacef0e2786a5a141ebc338fcaa062a25c5090', class: "label-with-icon" }, h("label", { key: '74c32c83aac8d0400726f4ef5d95c60b3eb12c99' }, "KBA:"), h("verdocs-help-icon", { key: 'be3777686a2a9d51ff91205f49e68b17d6fee18c', text: "Knowledge-Based Authentication adds additional authentication for this user either via a simple PIN code or full address validation. NOTE: There may be a fee for using this feature." })), h("verdocs-select-input", { key: '35a7918e94a09d78c5c5a43992bea92e19fd406b', value: this.kbaMethod, onInput: (e) => (this.kbaMethod = e.target.value), options: [
|
116
115
|
{ label: 'None', value: '' },
|
117
116
|
{ label: 'PIN Code', value: 'pin' },
|
118
117
|
{ label: 'Full Verification', value: 'kba' },
|
119
|
-
] }), this.kbaMethod === 'pin' && (h("input", { key: '
|
118
|
+
] }), this.kbaMethod === 'pin' && (h("input", { key: 'aeefe336a8461aa1ac41d3be0494f51b858b3810', id: "verdocs-pin-code", name: "verdocs-pin-code", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.pinCode, placeholder: "KBA PIN Code...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleMessageChange(e) })))), this.showMessage && (h("div", { key: '1c55a0f11426dbcf82ced0fe5291fcb14a70bb2f', class: "row" }, h("label", { key: 'c2c7f9dd66ed8fd9dae52175cba6e9b575aa64b5', htmlFor: "verdocs-contact-picker-message" }, "Message:"), h("input", { key: 'c63897c136a04b3feba02b6dde46d7f74c97f330', id: "verdocs-contact-picker-message", name: "verdocs-contact-picker-message", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.message, placeholder: "Invitation Message...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleMessageChange(e) }))), h("div", { key: '7e0d6e9b519a51988711cfca0f1392b39ae4eec1', class: "buttons" }, h("verdocs-toggle-button", { key: '3cae0b84394a5c8516599af788e2cb0568235582', icon: kbaIcon, size: "small", active: this.showKba, onToggle: e => {
|
120
119
|
this.showKba = e.detail.active;
|
121
120
|
if (!e.detail.active) {
|
122
121
|
this.pinCode = '';
|
123
122
|
this.kbaMethod = '';
|
124
123
|
}
|
125
124
|
this.showSuggestions = false;
|
126
|
-
} }), h("verdocs-toggle-button", { key: '
|
125
|
+
} }), h("verdocs-toggle-button", { key: '045544245ba967bd6ee43cb25a5fb8f2c9013da9', icon: messageIcon, size: "small", active: this.showMessage, onToggle: e => {
|
127
126
|
this.showMessage = e.detail.active;
|
128
127
|
this.showSuggestions = false;
|
129
|
-
} }), h("div", { key: '
|
128
|
+
} }), h("div", { key: '1363f8353900490ac9a98ccd1da36831b9c06469', class: "flex-fill" }), h("verdocs-button", { key: '5cf40a9d890ff67a96dff5913b76eb603e4e1702', variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: 'bfe86cdc15de884189f1ae342bef1be2f7887221', label: "OK", size: "small", onClick: e => this.handleSubmit(e) }))));
|
130
129
|
}
|
131
130
|
static get is() { return "verdocs-contact-picker"; }
|
132
131
|
static get originalStyleUrls() {
|