@verdocs/web-sdk 2.3.8 → 2.3.10
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/{Profiles-54271244.js → Profiles-1a26e4eb.js} +0 -34
- package/dist/cjs/{TemplateStore-0ed8cd92.js → TemplateStore-1adfba8c.js} +1 -1
- package/dist/cjs/{VerdocsEndpoint-7a8bf79c.js → VerdocsEndpoint-b9ed9603.js} +1 -43
- package/dist/cjs/ipc-test.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-activity-box.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +4 -27
- package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-contact-picker_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -1
- package/dist/cjs/verdocs-preview_8.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +79 -0
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +26 -4
- package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +7 -4
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-view.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +20 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +2 -27
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +7 -3
- package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +2 -1
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.css +1 -1
- package/dist/components/TemplateStore.js +1 -1
- package/dist/components/VerdocsEndpoint.js +2 -43
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +0 -1
- package/dist/components/verdocs-auth.js +8 -39
- package/dist/components/verdocs-field-textarea.js +2 -1
- package/dist/components/verdocs-field-textbox.js +1 -1
- package/dist/components/verdocs-ok-dialog2.js +3 -1
- package/dist/components/verdocs-search.js +2 -8
- package/dist/components/verdocs-settings-organization2.js +22 -1
- package/dist/components/verdocs-sign.js +7 -3
- package/dist/docs.json +18 -108
- package/dist/esm/{Profiles-4cc942ef.js → Profiles-d4df4d1c.js} +1 -32
- package/dist/esm/{TemplateStore-0ecf6e55.js → TemplateStore-09d1ae9f.js} +1 -1
- package/dist/esm/{VerdocsEndpoint-a18c0968.js → VerdocsEndpoint-3add43eb.js} +2 -43
- package/dist/esm/ipc-test.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-activity-box.entry.js +1 -1
- package/dist/esm/verdocs-auth.entry.js +4 -27
- package/dist/esm/verdocs-build.entry.js +2 -2
- package/dist/esm/verdocs-button-panel_2.entry.js +2 -2
- package/dist/esm/verdocs-contact-picker_3.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm/verdocs-field-textarea.entry.js +3 -2
- package/dist/esm/verdocs-field-textbox.entry.js +2 -2
- package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +2 -1
- package/dist/esm/verdocs-preview_8.entry.js +2 -2
- package/dist/esm/verdocs-quick-functions_2.entry.js +74 -0
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-settings-api-keys_4.entry.js +24 -2
- package/dist/esm/verdocs-settings.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +7 -4
- package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-template-fields_4.entry.js +2 -2
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-templates-list.entry.js +1 -1
- package/dist/esm/verdocs-view.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/Profiles-d4df4d1c.js +1 -0
- package/dist/esm-es5/{TemplateStore-0ecf6e55.js → TemplateStore-09d1ae9f.js} +1 -1
- package/dist/esm-es5/VerdocsEndpoint-3add43eb.js +1 -0
- package/dist/esm-es5/ipc-test.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_8.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-settings.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.d.ts +4 -0
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +0 -2
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +1 -0
- package/dist/types/components.d.ts +8 -34
- package/dist/types/utils/utils.d.ts +1 -1
- package/dist/verdocs-web-sdk/{p-cc962212.system.entry.js → p-048cfdb5.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-0bf08021.js +1 -0
- package/dist/verdocs-web-sdk/p-0cf6b69a.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-58f28d9f.system.entry.js → p-13936429.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9b1c719d.system.entry.js → p-13ae6d98.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fce1bc9e.entry.js → p-15b3184c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7c61d1b4.system.entry.js → p-2fc54023.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-30fecb02.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-315e20ac.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-318a7887.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-26388fe4.entry.js → p-33077795.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2ca76aa5.system.entry.js → p-387580cd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f9889d9a.entry.js → p-3950200c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-3e607686.js +1 -0
- package/dist/verdocs-web-sdk/{p-eb8029ba.entry.js → p-3edde2fa.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-acba9950.entry.js → p-4490750d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c18362fd.entry.js → p-459510cf.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-45bc9865.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-f77c6153.system.entry.js → p-52cd4ee2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b5972878.entry.js → p-532e4fc1.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cf19be3a.system.entry.js → p-5ba1045a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3070cc3b.system.js → p-5d1fecb5.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-05b000c0.entry.js → p-66507ccf.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2a9669b6.entry.js → p-6ce14c63.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6da61008.entry.js → p-73cbe09b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d844ab61.system.entry.js → p-76cadb98.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-7bad61b5.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-f25a6c17.system.entry.js → p-87040b70.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4e43fd86.entry.js → p-a1ef2dd4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-31e97ef4.system.entry.js → p-a4749aeb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5d32e0a5.system.entry.js → p-a4cec3d0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-a4e0b977.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-f16c85f8.entry.js → p-b33ab87b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-03105a2e.system.entry.js → p-b4c4335f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2af999c9.entry.js → p-b63fb3e8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f7fd08bb.system.entry.js → p-b70ad4db.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f709b7d9.entry.js → p-c4140ec7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-c50a3992.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-1c7c6ec7.entry.js → p-c8135ff6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-c9ad6362.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-cd20fb77.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-91fd5faa.system.entry.js → p-d0acae0f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-013d1556.system.entry.js → p-d1ea580b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6bc1c9f2.system.entry.js → p-d8fc5f12.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-304cf5b0.system.entry.js → p-dcb0e6ae.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e2ae3679.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-6aef8042.js → p-e429f3bd.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9adda357.system.entry.js → p-e5cf9dd1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e7755198.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d5e82bfc.entry.js → p-eccbfc3a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-85abbfc9.entry.js → p-f07340cd.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b77a743c.system.entry.js → p-f2aec486.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-aac84ce0.system.entry.js → p-f368f4f3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9b1cb5bd.entry.js → p-f5778ebb.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f7510858.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-a15df083.system.entry.js → p-ff80d211.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +0 -220
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +0 -66
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.js +0 -187
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.stories.js +0 -14
- package/dist/components/Organizations.js +0 -32
- package/dist/components/verdocs-search-activity.d.ts +0 -11
- package/dist/components/verdocs-search-activity.js +0 -6
- package/dist/components/verdocs-search-activity2.js +0 -170
- package/dist/esm/verdocs-quick-functions_3.entry.js +0 -214
- package/dist/esm-es5/Profiles-4cc942ef.js +0 -1
- package/dist/esm-es5/VerdocsEndpoint-a18c0968.js +0 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +0 -1
- package/dist/types/components/elements/verdocs-search-activity/verdocs-search-activity.d.ts +0 -33
- package/dist/types/components/elements/verdocs-search-activity/verdocs-search-activity.stories.d.ts +0 -10
- package/dist/verdocs-web-sdk/p-04580be0.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-0f06edcc.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1674c703.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-16d0f4e6.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-21126597.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-23617458.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-23c7d6bb.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4bf88541.system.js +0 -1
- package/dist/verdocs-web-sdk/p-5d51cf54.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8941fee6.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8ff245c9.js +0 -1
- package/dist/verdocs-web-sdk/p-983da2f6.js +0 -1
- package/dist/verdocs-web-sdk/p-a5ac349f.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cc05162a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f65a1b9e.system.js +0 -1
@@ -87,11 +87,12 @@ export class VerdocsFieldTextarea {
|
|
87
87
|
var _a, _b, _c, _d;
|
88
88
|
const settings = getFieldSettings(this.field);
|
89
89
|
const disabled = (_b = (_a = this.disabled) !== null && _a !== void 0 ? _a : settings.disabled) !== null && _b !== void 0 ? _b : false;
|
90
|
+
const value = (settings === null || settings === void 0 ? void 0 : settings.result) || '';
|
90
91
|
const backgroundColor = this.field['rgba'] || getRGBA(this.roleindex);
|
91
92
|
if (this.done) {
|
92
93
|
return h(Host, { class: { done: this.done } }, settings.value);
|
93
94
|
}
|
94
|
-
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled, done: this.done }, style: { backgroundColor } }, h("textarea", { placeholder: settings.placeholder || '', tabIndex: settings.order,
|
95
|
+
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled, done: this.done }, style: { backgroundColor } }, h("textarea", { placeholder: settings.placeholder || '', tabIndex: settings.order, disabled: disabled, name: this.field.name, required: (_d = this.field) === null || _d === void 0 ? void 0 : _d.required, ref: el => (this.inputEl = el) }, value), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
95
96
|
var _a;
|
96
97
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
|
97
98
|
return this.hideSettingsPanel();
|
@@ -5,7 +5,6 @@ verdocs-field-textbox {
|
|
5
5
|
height: 15px;
|
6
6
|
display: block;
|
7
7
|
font-size: 11px;
|
8
|
-
position: relative;
|
9
8
|
letter-spacing: -0.2px;
|
10
9
|
background-color: transparent;
|
11
10
|
transform-origin: bottom left;
|
@@ -24,6 +23,7 @@ verdocs-field-textbox input {
|
|
24
23
|
font-size: 11px;
|
25
24
|
background: none;
|
26
25
|
font-weight: 500;
|
26
|
+
position: absolute;
|
27
27
|
transform-origin: 0 0;
|
28
28
|
box-sizing: border-box;
|
29
29
|
color: rgba(0, 0, 0, 0.87);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { c as createStore } from './index4.js';
|
2
|
-
import {
|
2
|
+
import { g as getTemplate, b as TemplateSenderTypes } from './VerdocsEndpoint.js';
|
3
3
|
|
4
4
|
const createTemplateStore = (templateId) => {
|
5
5
|
const now = new Date().toISOString();
|
@@ -147,23 +147,6 @@ var __generator = (undefined && undefined.__generator) || function (thisArg, bod
|
|
147
147
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
148
148
|
}
|
149
149
|
};
|
150
|
-
/**
|
151
|
-
* Get all templates accessible by the caller, with optional filters.
|
152
|
-
*
|
153
|
-
* ```typescript
|
154
|
-
* import {Templates} from '@verdocs/js-sdk/Templates';
|
155
|
-
*
|
156
|
-
* await Templates.getTemplates((VerdocsEndpoint.getDefault());
|
157
|
-
* await Templates.getTemplates((VerdocsEndpoint.getDefault(), { is_starred: true });
|
158
|
-
* await Templates.getTemplates((VerdocsEndpoint.getDefault(), { is_creator: true });
|
159
|
-
* await Templates.getTemplates((VerdocsEndpoint.getDefault(), { is_organization: true });
|
160
|
-
* ```
|
161
|
-
*/
|
162
|
-
var getTemplates = function (endpoint, params) {
|
163
|
-
return endpoint.api //
|
164
|
-
.post('/templates', { params: params })
|
165
|
-
.then(function (r) { return r.data; });
|
166
|
-
};
|
167
150
|
// export interface IListTemplatesParams {
|
168
151
|
// name?: string;
|
169
152
|
// sharing?: 'all' | 'personal' | 'shared' | 'public';
|
@@ -3867,7 +3850,6 @@ var VerdocsEndpoint = /** @class */ (function () {
|
|
3867
3850
|
this.baseURL = (window.location.origin === 'https://beta.verdocs.com'
|
3868
3851
|
? 'https://stage-api.verdocs.com'
|
3869
3852
|
: 'https://api.verdocs.com');
|
3870
|
-
this.baseURLv2 = 'https://api-v2.verdocs.com';
|
3871
3853
|
this.clientID = 'not-set';
|
3872
3854
|
this.timeout = 60000;
|
3873
3855
|
this.token = null;
|
@@ -3881,7 +3863,6 @@ var VerdocsEndpoint = /** @class */ (function () {
|
|
3881
3863
|
*/
|
3882
3864
|
this.session = null;
|
3883
3865
|
this.baseURL = (options === null || options === void 0 ? void 0 : options.baseURL) || 'https://api.verdocs.com';
|
3884
|
-
this.baseURLv2 = (options === null || options === void 0 ? void 0 : options.baseURLv2) || 'https://api-v2.verdocs.com';
|
3885
3866
|
this.timeout = (options === null || options === void 0 ? void 0 : options.timeout) || 60000;
|
3886
3867
|
this.environment = (options === null || options === void 0 ? void 0 : options.environment) || 'verdocs';
|
3887
3868
|
this.sessionType = (options === null || options === void 0 ? void 0 : options.sessionType) || 'user';
|
@@ -3902,7 +3883,7 @@ var VerdocsEndpoint = /** @class */ (function () {
|
|
3902
3883
|
VerdocsEndpoint.getDefault = function () {
|
3903
3884
|
if (!globalThis_1[ENDPOINT_KEY]) {
|
3904
3885
|
globalThis_1[ENDPOINT_KEY] = new VerdocsEndpoint();
|
3905
|
-
window.console.debug('[JS_SDK] Created default endpoint', globalThis_1[ENDPOINT_KEY]);
|
3886
|
+
window.console.debug('[JS_SDK] Created default endpoint', globalThis_1[ENDPOINT_KEY].baseURL);
|
3906
3887
|
}
|
3907
3888
|
return globalThis_1[ENDPOINT_KEY];
|
3908
3889
|
};
|
@@ -3924,13 +3905,6 @@ var VerdocsEndpoint = /** @class */ (function () {
|
|
3924
3905
|
VerdocsEndpoint.prototype.getBaseURL = function () {
|
3925
3906
|
return this.baseURL;
|
3926
3907
|
};
|
3927
|
-
/**
|
3928
|
-
* Get the current base URL for the v2 APIs.
|
3929
|
-
* This should rarely be anything other than 'https://api-v2.verdocs.com'.
|
3930
|
-
*/
|
3931
|
-
VerdocsEndpoint.prototype.getBaseURLv2 = function () {
|
3932
|
-
return this.baseURLv2;
|
3933
|
-
};
|
3934
3908
|
/**
|
3935
3909
|
* Get the current client ID, if set.
|
3936
3910
|
*/
|
@@ -3998,21 +3972,6 @@ var VerdocsEndpoint = /** @class */ (function () {
|
|
3998
3972
|
this.api.defaults.baseURL = url;
|
3999
3973
|
return this;
|
4000
3974
|
};
|
4001
|
-
/**
|
4002
|
-
* Set the base URL for API calls. Should be called only upon direction from Verdocs Customer Solutions Engineering.
|
4003
|
-
*
|
4004
|
-
* ```typescript
|
4005
|
-
* import {VerdocsEndpoint} from '@verdocs/js-sdk/HTTP';
|
4006
|
-
*
|
4007
|
-
* const endpoint = new VerdocsEndpoint();
|
4008
|
-
* endpoint.setBaseURL('https://api.verdocs.com');
|
4009
|
-
* ```
|
4010
|
-
*/
|
4011
|
-
VerdocsEndpoint.prototype.setBaseURLv2 = function (url) {
|
4012
|
-
this.baseURLv2 = url;
|
4013
|
-
// NOTE: We do not set this on the Axios instance because v1 is still the standard.
|
4014
|
-
return this;
|
4015
|
-
};
|
4016
3975
|
/**
|
4017
3976
|
* Set the Client ID for Verdocs API calls.
|
4018
3977
|
*
|
@@ -4171,4 +4130,4 @@ var VerdocsEndpoint = /** @class */ (function () {
|
|
4171
4130
|
return VerdocsEndpoint;
|
4172
4131
|
}());
|
4173
4132
|
|
4174
|
-
export { TemplateActions as T, VerdocsEndpoint as V, createTemplatev2 as a, TemplateSenderTypes as b, canPerformTemplateAction as c, deleteTemplate as d, getTemplate as
|
4133
|
+
export { TemplateActions as T, VerdocsEndpoint as V, createTemplatev2 as a, TemplateSenderTypes as b, canPerformTemplateAction as c, deleteTemplate as d, getTemplate as g, listTemplates as l, updateTemplate as u };
|
@@ -42,7 +42,6 @@ export { VerdocsQuickFilter as VerdocsQuickFilter } from '../types/components/co
|
|
42
42
|
export { VerdocsQuickFunctions as VerdocsQuickFunctions } from '../types/components/elements/verdocs-quick-functions/verdocs-quick-functions';
|
43
43
|
export { VerdocsRadioButton as VerdocsRadioButton } from '../types/components/controls/verdocs-radio-button/verdocs-radio-button';
|
44
44
|
export { VerdocsSearch as VerdocsSearch } from '../types/components/embeds/verdocs-search/verdocs-search';
|
45
|
-
export { VerdocsSearchActivity as VerdocsSearchActivity } from '../types/components/elements/verdocs-search-activity/verdocs-search-activity';
|
46
45
|
export { VerdocsSearchBox as VerdocsSearchBox } from '../types/components/elements/verdocs-search-box/verdocs-search-box';
|
47
46
|
export { VerdocsSearchTabs as VerdocsSearchTabs } from '../types/components/elements/verdocs-search-tabs/verdocs-search-tabs';
|
48
47
|
export { VerdocsSelectInput as VerdocsSelectInput } from '../types/components/controls/verdocs-select-input/verdocs-select-input';
|
package/dist/components/index.js
CHANGED
@@ -42,7 +42,6 @@ export { VerdocsQuickFilter, defineCustomElement as defineCustomElementVerdocsQu
|
|
42
42
|
export { VerdocsQuickFunctions, defineCustomElement as defineCustomElementVerdocsQuickFunctions } from './verdocs-quick-functions.js';
|
43
43
|
export { VerdocsRadioButton, defineCustomElement as defineCustomElementVerdocsRadioButton } from './verdocs-radio-button.js';
|
44
44
|
export { VerdocsSearch, defineCustomElement as defineCustomElementVerdocsSearch } from './verdocs-search.js';
|
45
|
-
export { VerdocsSearchActivity, defineCustomElement as defineCustomElementVerdocsSearchActivity } from './verdocs-search-activity.js';
|
46
45
|
export { VerdocsSearchBox, defineCustomElement as defineCustomElementVerdocsSearchBox } from './verdocs-search-box.js';
|
47
46
|
export { VerdocsSearchTabs, defineCustomElement as defineCustomElementVerdocsSearchTabs } from './verdocs-search-tabs.js';
|
48
47
|
export { VerdocsSelectInput, defineCustomElement as defineCustomElementVerdocsSelectInput } from './verdocs-select-input.js';
|
@@ -1,14 +1,12 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
2
2
|
import { d as decodeAccessTokenBody } from './Types.js';
|
3
|
-
import { i as isOrgAvailable } from './Organizations.js';
|
4
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
5
4
|
import { c as createBusinessAccount } from './Profiles.js';
|
6
5
|
import { V as VerdocsToast } from './Toast.js';
|
7
6
|
import { S as SDKError } from './errors.js';
|
8
|
-
import { d as defineCustomElement$
|
9
|
-
import { d as defineCustomElement$
|
10
|
-
import { d as defineCustomElement$
|
11
|
-
import { d as defineCustomElement$3 } from './verdocs-spinner2.js';
|
7
|
+
import { d as defineCustomElement$5 } from './verdocs-button2.js';
|
8
|
+
import { d as defineCustomElement$4 } from './verdocs-help-icon2.js';
|
9
|
+
import { d as defineCustomElement$3 } from './verdocs-select-input2.js';
|
12
10
|
import { d as defineCustomElement$2 } from './verdocs-text-input2.js';
|
13
11
|
|
14
12
|
/**
|
@@ -66,9 +64,6 @@ var resendVerification = function (endpoint, accessToken) {
|
|
66
64
|
const verdocsAuthCss = "verdocs-auth{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth h4 verdocs-button button.normal .button-label{padding:0}verdocs-auth .buttons{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}";
|
67
65
|
|
68
66
|
const RECHECK_INTERVAL = 5000;
|
69
|
-
const OkIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="green"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>`;
|
70
|
-
const TakenIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="red"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>`;
|
71
|
-
const InfoIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="#4a4a4a"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 01-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 01-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 01-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584zM12 18a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>`;
|
72
67
|
const Industries = [
|
73
68
|
{ value: '', label: '' },
|
74
69
|
{ value: 'Accounting & Tax', label: 'Accounting & Tax' },
|
@@ -124,7 +119,6 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
124
119
|
this.isAuthenticated = false;
|
125
120
|
this.displayMode = 'login';
|
126
121
|
this.orgname = '';
|
127
|
-
this.orgAvailable = 'UNKNOWN';
|
128
122
|
this.first = '';
|
129
123
|
this.last = '';
|
130
124
|
this.username = '';
|
@@ -284,23 +278,6 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
284
278
|
this.submitting = false;
|
285
279
|
});
|
286
280
|
}
|
287
|
-
async checkAvailability(name) {
|
288
|
-
this.checkingOrg = true;
|
289
|
-
try {
|
290
|
-
this.orgname = name;
|
291
|
-
const r = await isOrgAvailable(this.endpoint, name);
|
292
|
-
this.orgAvailable = r.result;
|
293
|
-
console.log('response', this.orgAvailable);
|
294
|
-
// Stage: POST - https://2r8pilqa44.execute-api.us-east-1.amazonaws.com/organizations/check-availability
|
295
|
-
// Prod: POST - https://lb1is9fxoc.execute-api.us-east-1.amazonaws.com/organizations/check-availability
|
296
|
-
}
|
297
|
-
catch (e) {
|
298
|
-
// NOP
|
299
|
-
// We need to trap this error because we get a 400 if the org name is invalid.
|
300
|
-
this.orgAvailable = 'UNKNOWN';
|
301
|
-
}
|
302
|
-
this.checkingOrg = false;
|
303
|
-
}
|
304
281
|
render() {
|
305
282
|
if (!this.visible) {
|
306
283
|
return h("div", { style: { display: 'none' } }, "Authenticated");
|
@@ -309,10 +286,8 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
309
286
|
return (h("verdocs-button", { label: "Sign Out", disabled: this.submitting, onClick: () => this.handleLogout(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }));
|
310
287
|
}
|
311
288
|
if (this.displayMode === 'signup') {
|
312
|
-
const step1Invalid = this.submitting || !this.first || !this.last || !this.username || !this.password || !this.orgname
|
313
|
-
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("
|
314
|
-
console.log('blur');
|
315
|
-
} }), !this.checkingOrg && this.orgAvailable === 'AVAILABLE' && h("verdocs-help-icon", { icon: OkIcon, text: "Organization name is available." }), !this.checkingOrg && this.orgAvailable === 'TAKEN' && h("verdocs-help-icon", { icon: TakenIcon, text: "Organization already registered." }), !this.checkingOrg && this.orgAvailable === 'UNKNOWN' && h("verdocs-help-icon", { icon: InfoIcon, text: "Organization name must be unique." }), this.checkingOrg && h("verdocs-spinner", { mode: "dark", size: 24 })), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: step1Invalid, onClick: () => (this.signupStep = 2), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 2 && (h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "How did you hear about Verdocs?", value: this.howHear, onInput: (e) => (this.howHear = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Your Industry", options: Industries, value: this.industry, onInput: (e) => (this.industry = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Company Size", options: CompanySizes, value: this.companySize, onInput: (e) => (this.companySize = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Purpose", options: Reasons, value: this.reason, onInput: (e) => (this.reason = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Create Account", disabled: this.submitting, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 3 && (h("form", { onSubmit: () => this.handleSignup() }, h("p", null, "Please check your e-mail inbox for a verification code and follow the instructions provided."), h("p", null, h("em", null, "Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ", h("a", { href: "#" }, "Click Here"), " to resend it. Be sure to check your spam folder.")), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '20px' } }, h("verdocs-button", { label: "Back", disabled: this.submitting, onClick: () => {
|
289
|
+
const step1Invalid = this.submitting || !this.first || !this.last || !this.username || !this.password || !this.orgname;
|
290
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.orgname, onInput: (e) => (this.orgname = e.target.value), disabled: this.submitting, style: { flex: '1' } }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: step1Invalid, onClick: () => (this.signupStep = 2), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 2 && (h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "How did you hear about Verdocs?", value: this.howHear, onInput: (e) => (this.howHear = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Your Industry", options: Industries, value: this.industry, onInput: (e) => (this.industry = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Company Size", options: CompanySizes, value: this.companySize, onInput: (e) => (this.companySize = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Purpose", options: Reasons, value: this.reason, onInput: (e) => (this.reason = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Create Account", disabled: this.submitting, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 3 && (h("form", { onSubmit: () => this.handleSignup() }, h("p", null, "Please check your e-mail inbox for a verification code and follow the instructions provided."), h("p", null, h("em", null, "Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ", h("a", { href: "#" }, "Click Here"), " to resend it. Be sure to check your spam folder.")), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '20px' } }, h("verdocs-button", { label: "Back", disabled: this.submitting, onClick: () => {
|
316
291
|
this.signupStep = 2;
|
317
292
|
}, style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }), h("verdocs-button", { label: "Go to Dashboard", disabled: true, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))))));
|
318
293
|
}
|
@@ -340,7 +315,6 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
340
315
|
"isAuthenticated": [32],
|
341
316
|
"displayMode": [32],
|
342
317
|
"orgname": [32],
|
343
|
-
"orgAvailable": [32],
|
344
318
|
"first": [32],
|
345
319
|
"last": [32],
|
346
320
|
"username": [32],
|
@@ -361,7 +335,7 @@ function defineCustomElement$1() {
|
|
361
335
|
if (typeof customElements === "undefined") {
|
362
336
|
return;
|
363
337
|
}
|
364
|
-
const components = ["verdocs-auth", "verdocs-button", "verdocs-help-icon", "verdocs-select-input", "verdocs-
|
338
|
+
const components = ["verdocs-auth", "verdocs-button", "verdocs-help-icon", "verdocs-select-input", "verdocs-text-input"];
|
365
339
|
components.forEach(tagName => { switch (tagName) {
|
366
340
|
case "verdocs-auth":
|
367
341
|
if (!customElements.get(tagName)) {
|
@@ -369,21 +343,16 @@ function defineCustomElement$1() {
|
|
369
343
|
}
|
370
344
|
break;
|
371
345
|
case "verdocs-button":
|
372
|
-
if (!customElements.get(tagName)) {
|
373
|
-
defineCustomElement$6();
|
374
|
-
}
|
375
|
-
break;
|
376
|
-
case "verdocs-help-icon":
|
377
346
|
if (!customElements.get(tagName)) {
|
378
347
|
defineCustomElement$5();
|
379
348
|
}
|
380
349
|
break;
|
381
|
-
case "verdocs-
|
350
|
+
case "verdocs-help-icon":
|
382
351
|
if (!customElements.get(tagName)) {
|
383
352
|
defineCustomElement$4();
|
384
353
|
}
|
385
354
|
break;
|
386
|
-
case "verdocs-
|
355
|
+
case "verdocs-select-input":
|
387
356
|
if (!customElements.get(tagName)) {
|
388
357
|
defineCustomElement$3();
|
389
358
|
}
|
@@ -100,11 +100,12 @@ const VerdocsFieldTextarea$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
100
100
|
var _a, _b, _c, _d;
|
101
101
|
const settings = getFieldSettings(this.field);
|
102
102
|
const disabled = (_b = (_a = this.disabled) !== null && _a !== void 0 ? _a : settings.disabled) !== null && _b !== void 0 ? _b : false;
|
103
|
+
const value = (settings === null || settings === void 0 ? void 0 : settings.result) || '';
|
103
104
|
const backgroundColor = this.field['rgba'] || getRGBA(this.roleindex);
|
104
105
|
if (this.done) {
|
105
106
|
return h(Host, { class: { done: this.done } }, settings.value);
|
106
107
|
}
|
107
|
-
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled, done: this.done }, style: { backgroundColor } }, h("textarea", { placeholder: settings.placeholder || '', tabIndex: settings.order,
|
108
|
+
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled, done: this.done }, style: { backgroundColor } }, h("textarea", { placeholder: settings.placeholder || '', tabIndex: settings.order, disabled: disabled, name: this.field.name, required: (_d = this.field) === null || _d === void 0 ? void 0 : _d.required, ref: el => (this.inputEl = el) }, value), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
108
109
|
var _a;
|
109
110
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
|
110
111
|
return this.hideSettingsPanel();
|
@@ -14,7 +14,7 @@ import { d as defineCustomElement$4 } from './verdocs-select-input2.js';
|
|
14
14
|
import { d as defineCustomElement$3 } from './verdocs-template-field-properties2.js';
|
15
15
|
import { d as defineCustomElement$2 } from './verdocs-text-input2.js';
|
16
16
|
|
17
|
-
const verdocsFieldTextboxCss = "verdocs-field-textbox{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;width:150px;height:15px;display:block;font-size:11px;
|
17
|
+
const verdocsFieldTextboxCss = "verdocs-field-textbox{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;width:150px;height:15px;display:block;font-size:11px;letter-spacing:-0.2px;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border:1px solid rgba(0, 0, 0, 0.2)}verdocs-field-textbox.disabled{opacity:0.5}verdocs-field-textbox input{cursor:inherit;width:100%;height:100%;border:none;outline:none;padding:0 3px;font-size:11px;background:none;font-weight:500;position:absolute;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0, 0, 0, 0.87)}verdocs-field-textbox input.hide{display:none}verdocs-field-textbox.required{border:1px solid #cc0000}verdocs-field-textbox.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-textbox verdocs-button-panel{top:-3px;left:-2px;opacity:0.5;z-index:1000;cursor:pointer;position:absolute;-webkit-transform:scale(0.6);transform:scale(0.6)}verdocs-field-textbox verdocs-button-panel[data-active],verdocs-field-textbox verdocs-button-panel:hover{opacity:1}verdocs-field-textbox verdocs-button-panel .icon svg{fill:#333333}verdocs-field-textbox verdocs-button-panel .icon:hover svg{fill:#000000}verdocs-field-textbox [data-lastpass-icon-root]{display:none !important}";
|
18
18
|
|
19
19
|
const settingsIcon = '<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20"><path d="m7.5 18.5-.312-2.667q-.188-.125-.396-.25-.209-.125-.396-.229l-2.479 1.063-2.521-4.334 2.125-1.625q.021-.104.021-.229v-.458q0-.125-.021-.229L1.396 7.917l2.521-4.313 2.5 1.042q.166-.104.375-.229.208-.125.396-.229L7.5 1.5h5l.312 2.688q.188.104.396.229.209.125.396.229l2.479-1.042 2.521 4.313-2.125 1.625v.916l2.125 1.625-2.521 4.334-2.5-1.063q-.166.104-.375.229-.208.125-.396.25L12.5 18.5Zm2.479-5.521q1.229 0 2.104-.875T12.958 10q0-1.229-.875-2.104t-2.104-.875q-1.208 0-2.094.875Q7 8.771 7 10t.885 2.104q.886.875 2.094.875Zm0-1.75q-.5 0-.864-.364Q8.75 10.5 8.75 10t.365-.865q.364-.364.864-.364t.865.364q.364.365.364.865t-.364.865q-.365.364-.865.364ZM10.021 10Zm-.792 6.521h1.542l.25-2.146q.625-.167 1.198-.51.573-.344 1.031-.823l2.021.854.771-1.271-1.771-1.354q.104-.292.156-.615.052-.323.052-.656 0-.292-.052-.604-.052-.313-.135-.646l1.77-1.375-.77-1.271-2.021.875q-.479-.5-1.042-.833-.562-.334-1.187-.5l-.271-2.167H9.208l-.25 2.167q-.625.166-1.187.5-.563.333-1.042.812l-2-.854-.771 1.271 1.73 1.354q-.084.333-.136.656Q5.5 9.708 5.5 10t.052.604q.052.313.136.667l-1.73 1.354.771 1.271 2-.834q.479.459 1.042.792.562.334 1.187.5Z"/></svg>';
|
20
20
|
const VerdocsFieldTextbox$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
@@ -11,6 +11,7 @@ const VerdocsOkDialog = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
11
11
|
this.exit = createEvent(this, "exit", 7);
|
12
12
|
this.heading = '';
|
13
13
|
this.message = '';
|
14
|
+
this.buttonLabel = 'OK';
|
14
15
|
this.showCancel = false;
|
15
16
|
this.closed = false;
|
16
17
|
}
|
@@ -29,12 +30,13 @@ const VerdocsOkDialog = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
29
30
|
}
|
30
31
|
}
|
31
32
|
render() {
|
32
|
-
return (h(Host, { class: this.closed ? 'closed' : '' }, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "heading" }, this.heading), h("div", { class: "content" }, h("div", { class: "message", innerHTML: this.message }), h("div", { class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { label:
|
33
|
+
return (h(Host, { class: this.closed ? 'closed' : '' }, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "heading" }, this.heading), h("div", { class: "content" }, h("div", { class: "message", innerHTML: this.message }), h("div", { class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { label: this.buttonLabel, onClick: () => this.handleOk() })))))));
|
33
34
|
}
|
34
35
|
static get style() { return verdocsOkDialogCss; }
|
35
36
|
}, [0, "verdocs-ok-dialog", {
|
36
37
|
"heading": [1],
|
37
38
|
"message": [1],
|
39
|
+
"buttonLabel": [1, "button-label"],
|
38
40
|
"showCancel": [4, "show-cancel"],
|
39
41
|
"closed": [32]
|
40
42
|
}]);
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
2
2
|
import './Types.js';
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
4
|
-
import { d as defineCustomElement$
|
5
|
-
import { d as defineCustomElement$3 } from './verdocs-search-activity2.js';
|
4
|
+
import { d as defineCustomElement$3 } from './verdocs-quick-functions2.js';
|
6
5
|
import { d as defineCustomElement$2 } from './verdocs-search-box2.js';
|
7
6
|
|
8
7
|
const verdocsSearchCss = "verdocs-search{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:-ms-flexbox;display:flex;background-color:#1e2031}verdocs-search search-box{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:20px 10px}verdocs-search .boxes{-ms-flex-wrap:wrap;flex-wrap:wrap;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:20px 0}verdocs-search search-recent,verdocs-search search-saved,verdocs-search search-quick-functions,verdocs-search search-starred{display:-ms-flexbox;display:flex;margin:0 20px 20px 0}";
|
@@ -24,7 +23,7 @@ function defineCustomElement$1() {
|
|
24
23
|
if (typeof customElements === "undefined") {
|
25
24
|
return;
|
26
25
|
}
|
27
|
-
const components = ["verdocs-search", "verdocs-quick-functions", "verdocs-search-
|
26
|
+
const components = ["verdocs-search", "verdocs-quick-functions", "verdocs-search-box"];
|
28
27
|
components.forEach(tagName => { switch (tagName) {
|
29
28
|
case "verdocs-search":
|
30
29
|
if (!customElements.get(tagName)) {
|
@@ -32,11 +31,6 @@ function defineCustomElement$1() {
|
|
32
31
|
}
|
33
32
|
break;
|
34
33
|
case "verdocs-quick-functions":
|
35
|
-
if (!customElements.get(tagName)) {
|
36
|
-
defineCustomElement$4();
|
37
|
-
}
|
38
|
-
break;
|
39
|
-
case "verdocs-search-activity":
|
40
34
|
if (!customElements.get(tagName)) {
|
41
35
|
defineCustomElement$3();
|
42
36
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
2
|
import { z } from './index3.js';
|
3
3
|
import './Types.js';
|
4
|
-
import { g as getOrganization, u as updateOrganization } from './Organizations.js';
|
5
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
6
5
|
import { d as convertToE164 } from './utils.js';
|
7
6
|
import { V as VerdocsToast } from './Toast.js';
|
@@ -10,6 +9,28 @@ import { d as defineCustomElement$3 } from './verdocs-help-icon2.js';
|
|
10
9
|
import { d as defineCustomElement$2 } from './verdocs-select-input2.js';
|
11
10
|
import { d as defineCustomElement$1 } from './verdocs-text-input2.js';
|
12
11
|
|
12
|
+
/**
|
13
|
+
* An Organization is the top level object for ownership for Members, Documents, and Templates.
|
14
|
+
*
|
15
|
+
* @module
|
16
|
+
*/
|
17
|
+
/**
|
18
|
+
* Get an organization by ID.
|
19
|
+
*/
|
20
|
+
var getOrganization = function (endpoint, organizationId) {
|
21
|
+
return endpoint.api //
|
22
|
+
.get("/organizations/".concat(organizationId))
|
23
|
+
.then(function (r) { return r.data; });
|
24
|
+
};
|
25
|
+
/**
|
26
|
+
* Update an organization.
|
27
|
+
*/
|
28
|
+
var updateOrganization = function (endpoint, organizationId, params) {
|
29
|
+
return endpoint.api //
|
30
|
+
.patch("/organizations/".concat(organizationId), params)
|
31
|
+
.then(function (r) { return r.data; });
|
32
|
+
};
|
33
|
+
|
13
34
|
const TimeZones = [
|
14
35
|
['International Date Line West', 'GMT-11:00', '(GMT-11:00) International Date Line West'],
|
15
36
|
['Midway Island', 'GMT-11:00', '(GMT-11:00) Midway Island'],
|
@@ -85,6 +85,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
85
85
|
this.submitting = false;
|
86
86
|
this.isDone = false;
|
87
87
|
this.showDone = false;
|
88
|
+
this.showLoadError = false;
|
88
89
|
this.finishLater = false;
|
89
90
|
this.showFinishLater = false;
|
90
91
|
this.agreed = false;
|
@@ -150,6 +151,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
150
151
|
catch (e) {
|
151
152
|
console.log('Error with signing session', e);
|
152
153
|
(_e = this.sdkError) === null || _e === void 0 ? void 0 : _e.emit(new SDKError(e.message, (_f = e.response) === null || _f === void 0 ? void 0 : _f.status, (_g = e.response) === null || _g === void 0 ? void 0 : _g.data));
|
154
|
+
this.showLoadError = true;
|
153
155
|
}
|
154
156
|
}
|
155
157
|
componentDidRender() {
|
@@ -276,9 +278,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
276
278
|
if (!e.detail) {
|
277
279
|
return;
|
278
280
|
}
|
279
|
-
console.log('Creating signature blob', e.detail);
|
280
281
|
const signatureBlob = await (await fetch(e.detail)).blob();
|
281
|
-
console.log('Created signature blob', signatureBlob);
|
282
282
|
return createSignature(this.endpoint, 'signature', signatureBlob) //
|
283
283
|
.then(async (newSignature) => {
|
284
284
|
console.log('Signature update result', newSignature);
|
@@ -326,6 +326,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
326
326
|
case 'textarea':
|
327
327
|
case 'date':
|
328
328
|
case 'attachment':
|
329
|
+
console.log('Date-type field valid', { required, result, output: !required || result !== '' });
|
329
330
|
return !required || result !== '';
|
330
331
|
case 'dropdown':
|
331
332
|
return !required || value !== '';
|
@@ -400,7 +401,6 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
400
401
|
if (invalidFields.length < 1) {
|
401
402
|
this.nextButtonLabel = 'Finish';
|
402
403
|
if (!this.nextSubmits) {
|
403
|
-
// this.showSubmitDialog = true;
|
404
404
|
this.nextSubmits = true;
|
405
405
|
}
|
406
406
|
}
|
@@ -513,6 +513,9 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
513
513
|
})), 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: () => {
|
514
514
|
this.showDone = false;
|
515
515
|
this.isDone = true;
|
516
|
+
} })), this.showLoadError && (h("verdocs-ok-dialog", { heading: "Error Loading Document", message: `Please check with the sender to ensure it has not been canceled, and try again later.`, buttonLabel: "Retry", onNext: () => {
|
517
|
+
this.showLoadError = false;
|
518
|
+
window.location.reload();
|
516
519
|
} })), 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"), ".")))))));
|
517
520
|
}
|
518
521
|
static get style() { return verdocsSignCss; }
|
@@ -534,6 +537,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
534
537
|
"submitting": [32],
|
535
538
|
"isDone": [32],
|
536
539
|
"showDone": [32],
|
540
|
+
"showLoadError": [32],
|
537
541
|
"finishLater": [32],
|
538
542
|
"showFinishLater": [32],
|
539
543
|
"agreed": [32],
|