@verdocs/web-sdk 4.2.70 → 4.2.76

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.
Files changed (42) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +5 -6
  3. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +1 -1
  4. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +9 -3
  5. package/dist/cjs/verdocs-preview_10.cjs.entry.js +4 -5
  6. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  7. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +12 -6
  8. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +4 -5
  9. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +5 -6
  10. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.css +0 -1710
  11. package/dist/components/verdocs-contact-picker2.js +5 -6
  12. package/dist/components/verdocs-field-date2.js +1 -1
  13. package/dist/components/verdocs-portal2.js +10 -4
  14. package/dist/components/verdocs-send2.js +4 -5
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/verdocs-contact-picker_2.entry.js +5 -6
  17. package/dist/esm/verdocs-field-attachment_13.entry.js +1 -1
  18. package/dist/esm/verdocs-organization-card_2.entry.js +9 -3
  19. package/dist/esm/verdocs-preview_10.entry.js +4 -5
  20. package/dist/esm/verdocs-web-sdk.js +1 -1
  21. package/dist/esm-es5/loader.js +1 -1
  22. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  23. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  24. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  25. package/dist/esm-es5/verdocs-preview_10.entry.js +1 -1
  26. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  27. package/dist/verdocs-web-sdk/p-1dc77449.entry.js +1 -0
  28. package/dist/verdocs-web-sdk/p-34325ad6.system.js +1 -1
  29. package/dist/verdocs-web-sdk/{p-00e963de.system.entry.js → p-4275b4b5.system.entry.js} +1 -1
  30. package/dist/verdocs-web-sdk/p-73b7249a.system.entry.js +1 -0
  31. package/dist/verdocs-web-sdk/{p-18355fdc.system.entry.js → p-78d37e83.system.entry.js} +1 -1
  32. package/dist/verdocs-web-sdk/p-912f8ad2.entry.js +1 -0
  33. package/dist/verdocs-web-sdk/{p-7864e5d5.entry.js → p-d2ad8536.entry.js} +1 -1
  34. package/dist/verdocs-web-sdk/p-db46606c.entry.js +1 -0
  35. package/dist/verdocs-web-sdk/p-e3a7db09.system.entry.js +1 -0
  36. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  37. package/package.json +3 -4
  38. package/dist/verdocs-web-sdk/p-20f34f2d.system.entry.js +0 -1
  39. package/dist/verdocs-web-sdk/p-3e750ce4.entry.js +0 -1
  40. package/dist/verdocs-web-sdk/p-449f5d0a.system.entry.js +0 -1
  41. package/dist/verdocs-web-sdk/p-821bd253.entry.js +0 -1
  42. 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
- // this.calculatePosition();
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: '6ca1f82e243b2f1892595a9e0f7127a9c5c0e018', ref: el => (this.element = el) }, h("slot", { key: 'e16bdeda7ac210db095242e94e0128f4bab8010f' })));
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": true,
188
+ "capture": false,
183
189
  "passive": true
184
190
  }, {
185
191
  "name": "click",
186
192
  "method": "handleClick",
187
- "target": "window",
188
- "capture": true,
193
+ "target": "document",
194
+ "capture": false,
189
195
  "passive": false
190
196
  }];
191
197
  }
@@ -59,11 +59,11 @@ export class VerdocsSend {
59
59
  this.sessionContacts = [me];
60
60
  getOrganizationContacts(this.endpoint)
61
61
  .then(contacts => {
62
- console.log('Got contacts', contacts);
62
+ console.log('[SEND] Got contacts', contacts);
63
63
  this.sessionContacts = [...contacts, me];
64
64
  })
65
65
  .catch(e => {
66
- console.log('Error getting contacts', e);
66
+ console.log('[SEND] Error getting contacts', e);
67
67
  });
68
68
  }
69
69
  });
@@ -150,7 +150,6 @@ export class VerdocsSend {
150
150
  }
151
151
  }
152
152
  handleSelectContact(e, role) {
153
- console.log('selc', e.detail);
154
153
  e.preventDefault();
155
154
  this.rolesCompleted[role.id] = { ...role, ...e.detail };
156
155
  this.showPickerForId = '';
@@ -162,10 +161,10 @@ export class VerdocsSend {
162
161
  handleSend(e) {
163
162
  var _a, _b, _c;
164
163
  if (this.sending) {
165
- console.log('Skipping duplicate send', e);
164
+ console.log('[SEND] Skipping duplicate send', e);
166
165
  return;
167
166
  }
168
- console.log('Sending', e);
167
+ console.log('[SEND] Sending', e);
169
168
  e.preventDefault();
170
169
  e.stopPropagation();
171
170
  this.sending = true;
@@ -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: 'afe87589323a6c7bbc20378c4b697087dfa698c4', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("div", { key: 'cd1821c3dbfdc2223fe6d6455d3f89d6ad3afa3b', class: "row" }, h("label", { key: '130729c3ad6a6a06cad020a8cd2e6ef7dc62ed2e', htmlFor: this.nameFieldId }, "Name:"), h("div", { key: 'b5c0d7563deb878ceb273137b247588a5012051a', class: "names-row" }, h("input", { key: 'dfec098bf5c5b6a3e17eb8aa6070ffa9bcc46db5', 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: 'f490230827f9b520a1038622ffb2a47dba821e7f', 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: '9e7bda8af69abfe6402e0ada80e40fe9a190835f', class: "dropdown" }, this.contactSuggestions
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: 'f50e03a0b1532f78c0a98be0bbbeb5c488d06b7e', class: "row" }, h("label", { key: '847a03964705042059143471be35a46d5e2b2b12', htmlFor: this.emailFieldId }, "Email:"), h("input", { key: 'a7c27cc87a25041a2a3668929b4752afe9195d3b', 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: 'a389528718e46e959b73a86630bd7f69fb620de1', class: "row" }, h("label", { key: '4d4acda8e933a8edd2d2f5c52ca77a2a72aef512', htmlFor: this.phoneFieldId }, "Phone:"), h("input", { key: 'e0dbdfa1c347f475c811a6d5f1d640f733856592', 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: '343bdf9658583cac02155b17362fc291571deae7', class: "row" }, h("div", { key: 'bfa7496f29db14a0e4ac069d17bb91050bfbd113', class: "label-with-icon" }, h("label", { key: 'e2cac18062f6aaf62af08f4e966cde31759d6dcb' }, "KBA:"), h("verdocs-help-icon", { key: '0a80c66ecbfb487efa15ab6a4c184df061db9076', 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: 'ee90cd3cd7e026ba5fd4ad2c9ee5f8e8a1479b1a', value: this.kbaMethod, onInput: (e) => (this.kbaMethod = e.target.value), options: [
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: 'abc4447e13083bcf303638726e4fee9a72626ee7', 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: '891957c01d85c52da2d245d46e4f58515072814e', class: "row" }, h("label", { key: 'a606f013a2add41a5c1040ff3078e83a744bc1d0', htmlFor: "verdocs-contact-picker-message" }, "Message:"), h("input", { key: '92d6a7991e6a912886d91517d90396d61cd56c7f', 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: 'ce3c2403b493aba7a9b4e470425595ee06679f40', class: "buttons" }, h("verdocs-toggle-button", { key: '9799719ced528476bccabfff28dc26be2ea414ee', icon: kbaIcon, size: "small", active: this.showKba, onToggle: e => {
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: 'b7cd508f79e2d98919a698466d2e9ca475935271', icon: messageIcon, size: "small", active: this.showMessage, onToggle: e => {
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: '1e6ab34550a4ff72216f67fa24be01febbf9df27', class: "flex-fill" }), h("verdocs-button", { key: '009de03c3a09b96c832a6a063dde93b80d9fe992', variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '8f014ed5ad0e970ac8b2f417c666a4ea9f052115', label: "OK", size: "small", onClick: e => this.handleSubmit(e) }))));
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() {