@verdocs/web-sdk 2.0.5 → 2.0.7
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/{TemplateStore-cd05c035.js → TemplateStore-07e274ab.js} +1 -1
- package/dist/cjs/{Templates-6fb62dcd.js → Templates-f6e75719.js} +15 -56
- package/dist/cjs/ipc-test.cjs.entry.js +2 -2
- 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-checkbox_5.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-send.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-sign.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-attachments_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-templates-list.cjs.entry.js +14 -23
- package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.css +1 -0
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +2 -0
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +1 -1
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +4 -5
- package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +13 -22
- package/dist/components/TemplateStore.js +1 -1
- package/dist/components/Templates.js +15 -56
- package/dist/components/verdocs-checkbox2.js +1 -1
- package/dist/components/verdocs-search-activity2.js +1 -1
- package/dist/components/verdocs-sign.js +2 -2
- package/dist/components/verdocs-template-star2.js +1 -2
- package/dist/components/verdocs-templates-list.js +14 -23
- package/dist/docs.json +3 -3
- package/dist/esm/{TemplateStore-dcfb68c3.js → TemplateStore-17700116.js} +1 -1
- package/dist/esm/{Templates-1893bda7.js → Templates-f90883f7.js} +15 -56
- package/dist/esm/ipc-test.entry.js +2 -2
- package/dist/esm/verdocs-build.entry.js +2 -2
- package/dist/esm/verdocs-button-panel_2.entry.js +2 -2
- package/dist/esm/verdocs-checkbox_5.entry.js +1 -1
- package/dist/esm/verdocs-preview.entry.js +2 -2
- package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm/verdocs-send.entry.js +2 -2
- package/dist/esm/verdocs-sign.entry.js +2 -2
- package/dist/esm/verdocs-template-attachments_2.entry.js +2 -2
- package/dist/esm/verdocs-template-fields_4.entry.js +2 -2
- package/dist/esm/verdocs-template-name.entry.js +2 -2
- package/dist/esm/verdocs-template-reminders.entry.js +2 -2
- package/dist/esm/verdocs-template-star.entry.js +1 -2
- package/dist/esm/verdocs-template-visibility.entry.js +2 -2
- package/dist/esm/verdocs-templates-list.entry.js +14 -23
- package/dist/esm-es5/{TemplateStore-dcfb68c3.js → TemplateStore-17700116.js} +1 -1
- package/dist/esm-es5/Templates-f90883f7.js +1 -0
- package/dist/esm-es5/ipc-test.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-checkbox_5.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-attachments_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
- package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
- package/dist/types/components/templates/verdocs-template-star/verdocs-template-star.d.ts +2 -2
- package/dist/types/components/templates/verdocs-templates-list/verdocs-templates-list.d.ts +8 -8
- package/dist/types/components.d.ts +3 -3
- package/dist/verdocs-web-sdk/{p-2a130b90.entry.js → p-0385e501.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-abfb25bc.system.entry.js → p-05b23b9a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ee6f2dd3.js → p-0bda34c0.js} +1 -1
- package/dist/verdocs-web-sdk/{p-78b7499c.system.entry.js → p-0c5da644.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-2fdb7348.system.js +1 -0
- package/dist/verdocs-web-sdk/p-3a0ba0b8.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-006dd4da.entry.js → p-455c136c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1f592fb0.entry.js → p-4ea9eedc.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ac58a89b.system.entry.js → p-54654ee0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-118a14fe.system.entry.js → p-5e92d526.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2b7b500b.system.entry.js → p-63bb14bc.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-647cdb84.system.js +1 -1
- package/dist/verdocs-web-sdk/p-657dacc4.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-6a67a872.system.entry.js → p-669b845b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6c60927e.system.entry.js → p-6e8b1251.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-787289cc.system.entry.js → p-789424cb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-899f9d42.entry.js → p-7fc89f46.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-dd7ffe56.entry.js → p-91b8a076.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-92e1ea05.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-81bfb9ee.entry.js → p-9606946c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-976ec9e8.js +1 -0
- package/dist/verdocs-web-sdk/{p-4eb26d56.system.entry.js → p-a106413b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-13baed19.system.entry.js → p-a4dd68fd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-a9f25162.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-e63f1a46.system.entry.js → p-b6c642af.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1ade993c.entry.js → p-b7764fbf.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-268fe01c.entry.js → p-bd3405ab.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a4129b09.system.js → p-c97a7232.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8909269f.entry.js → p-d2b86b2e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9488e048.system.entry.js → p-d45ea55d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2b404e29.entry.js → p-d6c341c4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-d95adf62.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d583e91b.entry.js → p-db748ddf.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-189606f5.entry.js → p-febca9d8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-25fdc669.system.entry.js → p-ff71a7ed.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +3 -3
- package/dist/esm-es5/Templates-1893bda7.js +0 -1
- package/dist/verdocs-web-sdk/p-0527ab90.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-11de0d75.system.js +0 -1
- package/dist/verdocs-web-sdk/p-6570268f.js +0 -1
- package/dist/verdocs-web-sdk/p-9044fd88.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-9c25c1d4.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c212eac2.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c893c9e3.entry.js +0 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
const index = require('./index-f664e4d0.js');
|
4
|
-
const Templates = require('./Templates-
|
4
|
+
const Templates = require('./Templates-f6e75719.js');
|
5
5
|
const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
6
6
|
|
7
7
|
const createTemplateStore = (templateId) => {
|
@@ -6,42 +6,6 @@
|
|
6
6
|
*
|
7
7
|
* @module
|
8
8
|
*/
|
9
|
-
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
10
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
11
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
12
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
13
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
14
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
15
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
16
|
-
});
|
17
|
-
};
|
18
|
-
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
19
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
20
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
21
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
22
|
-
function step(op) {
|
23
|
-
if (f) throw new TypeError("Generator is already executing.");
|
24
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
25
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
26
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
27
|
-
switch (op[0]) {
|
28
|
-
case 0: case 1: t = op; break;
|
29
|
-
case 4: _.label++; return { value: op[1], done: false };
|
30
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
31
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
32
|
-
default:
|
33
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
34
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
35
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
36
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
37
|
-
if (t[2]) _.ops.pop();
|
38
|
-
_.trys.pop(); continue;
|
39
|
-
}
|
40
|
-
op = body.call(thisArg, _);
|
41
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
42
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
43
|
-
}
|
44
|
-
};
|
45
9
|
/**
|
46
10
|
* Get all templates accessible by the caller, with optional filters.
|
47
11
|
*
|
@@ -59,6 +23,20 @@ var getTemplates = function (endpoint, params) {
|
|
59
23
|
.post('/templates', { params: params })
|
60
24
|
.then(function (r) { return r.data; });
|
61
25
|
};
|
26
|
+
/**
|
27
|
+
* Lists all templates accessible by the caller, with optional filters.
|
28
|
+
*
|
29
|
+
* ```typescript
|
30
|
+
* import {Templates} from '@verdocs/js-sdk/Templates';
|
31
|
+
*
|
32
|
+
* await Templates.listTemplates((VerdocsEndpoint.getDefault(), { sharing: 'personal', sort: 'last_used_at' });
|
33
|
+
* ```
|
34
|
+
*/
|
35
|
+
var listTemplates = function (endpoint, params) {
|
36
|
+
return endpoint.api //
|
37
|
+
.post('/templates/list', params, { baseURL: endpoint.getBaseURLv2() })
|
38
|
+
.then(function (r) { return r.data; });
|
39
|
+
};
|
62
40
|
/**
|
63
41
|
* Get one template by its ID.
|
64
42
|
*
|
@@ -147,29 +125,10 @@ var deleteTemplate = function (endpoint, templateId) {
|
|
147
125
|
.delete("/templates/".concat(templateId))
|
148
126
|
.then(function (r) { return r.data; });
|
149
127
|
};
|
150
|
-
/**
|
151
|
-
* Get a summary of template data, typically used to populate admin panel dashboard pages.
|
152
|
-
*
|
153
|
-
* ```typescript
|
154
|
-
* import {Templates} from '@verdocs/js-sdk/Templates';
|
155
|
-
*
|
156
|
-
* const summary = await Templates.getSummary((VerdocsEndpoint.getDefault(), 0);
|
157
|
-
* ```
|
158
|
-
*/
|
159
|
-
var getSummary = function (endpoint, params) {
|
160
|
-
if (params === void 0) { params = {}; }
|
161
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
162
|
-
return __generator(this, function (_a) {
|
163
|
-
return [2 /*return*/, endpoint.api //
|
164
|
-
.post('/templates/summary', params)
|
165
|
-
.then(function (r) { return r.data; })];
|
166
|
-
});
|
167
|
-
});
|
168
|
-
};
|
169
128
|
|
170
129
|
exports.createTemplate = createTemplate;
|
171
130
|
exports.deleteTemplate = deleteTemplate;
|
172
|
-
exports.getSummary = getSummary;
|
173
131
|
exports.getTemplate = getTemplate;
|
174
132
|
exports.getTemplates = getTemplates;
|
133
|
+
exports.listTemplates = listTemplates;
|
175
134
|
exports.updateTemplate = updateTemplate;
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-1d5fc518.js');
|
6
6
|
require('./Types-f89f9116.js');
|
7
7
|
const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
8
|
-
const TemplateStore = require('./TemplateStore-
|
8
|
+
const TemplateStore = require('./TemplateStore-07e274ab.js');
|
9
9
|
require('./index-f664e4d0.js');
|
10
|
-
require('./Templates-
|
10
|
+
require('./Templates-f6e75719.js');
|
11
11
|
|
12
12
|
const ipcTestCss = "ipc-test{max-width:800px;display:block}";
|
13
13
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-1d5fc518.js');
|
6
6
|
require('./Types-f89f9116.js');
|
7
7
|
const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
8
|
-
const TemplateStore = require('./TemplateStore-
|
8
|
+
const TemplateStore = require('./TemplateStore-07e274ab.js');
|
9
9
|
const errors = require('./errors-0396da3d.js');
|
10
10
|
require('./index-f664e4d0.js');
|
11
|
-
require('./Templates-
|
11
|
+
require('./Templates-f6e75719.js');
|
12
12
|
|
13
13
|
const verdocsBuildCss = "verdocs-build{display:-ms-flexbox;display:flex;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}";
|
14
14
|
|
@@ -8,10 +8,10 @@ const _commonjsHelpers = require('./_commonjsHelpers-0c557e26.js');
|
|
8
8
|
require('./Types-f89f9116.js');
|
9
9
|
const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
10
10
|
const Fields = require('./Fields-705a2168.js');
|
11
|
-
const TemplateStore = require('./TemplateStore-
|
11
|
+
const TemplateStore = require('./TemplateStore-07e274ab.js');
|
12
12
|
const errors = require('./errors-0396da3d.js');
|
13
13
|
require('./index-f664e4d0.js');
|
14
|
-
require('./Templates-
|
14
|
+
require('./Templates-f6e75719.js');
|
15
15
|
|
16
16
|
const verdocsButtonPanelCss = "verdocs-button-panel{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:inline-block}verdocs-button-panel .icon{display:inline-block;cursor:pointer;opacity:0.6}verdocs-button-panel .icon svg{fill:#707ae5}verdocs-button-panel .icon:hover{opacity:1}.verdocs-button-panel-content{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;display:none;background:#ffffff;color:#33364b;width:320px;font-weight:bold;padding:15px;font-size:14px;position:relative;border-radius:4px;z-index:10000}.verdocs-button-panel-content .arrow,.verdocs-button-panel-content .arrow::before{position:absolute;width:8px;height:8px;background:inherit}.verdocs-button-panel-content .arrow{visibility:hidden;top:-4px}.verdocs-button-panel-content .arrow::before{visibility:visible;content:\"\";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.verdocs-button-panel-content[data-show]{display:block}.verdocs-button-panel-content[data-popper-placement^=top]>.arrow{bottom:-4px}.verdocs-button-panel-content[data-popper-placement^=bottom]>.arrow{top:-4px}.verdocs-button-panel-content[data-popper-placement^=left]>.arrow{right:-4px}.verdocs-button-panel-content[data-popper-placement^=right]>.arrow{left:-4px}.verdocs-button-panel-content h6{font-size:16px;font-weight:bold;margin:0 0 16px 0;color:#092c4c;border-bottom:1px solid #cccccc}";
|
17
17
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-1d5fc518.js');
|
6
6
|
const popper = require('./popper-d7adcfc6.js');
|
7
7
|
|
8
|
-
const verdocsCheckboxCss = "@charset \"UTF-8\";verdocs-checkbox{line-height:18px;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-checkbox label>input[type=checkbox]{display:none}verdocs-checkbox label>input[type=checkbox]+*::before{content:\"\";width:20px;height:20px;-ms-flex-negative:0;flex-shrink:0;line-height:20px;border-radius:2px;border-style:solid;border-width:0.1rem;display:inline-block;vertical-align:bottom;border-color:#aeb4bf}verdocs-checkbox label>input[type=checkbox]:checked+*{color:#55bc81}verdocs-checkbox label>input[type=checkbox]:checked+*::before{content:\"✓\";color:white;text-align:center;background:#55bc81;border-color:#55bc81}verdocs-checkbox.dark label>input[type=checkbox]+*::before{border-color:#ffffff}verdocs-checkbox.dark label>input[type=checkbox]:checked+*::before{background:#55bc81;border-color:#55bc81}";
|
8
|
+
const verdocsCheckboxCss = "@charset \"UTF-8\";verdocs-checkbox{line-height:18px;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-checkbox label>input[type=checkbox]{display:none}verdocs-checkbox label>input[type=checkbox]+*::before{content:\"\";width:20px;height:20px;-ms-flex-negative:0;flex-shrink:0;margin-right:8px;line-height:20px;border-radius:2px;border-style:solid;border-width:0.1rem;display:inline-block;vertical-align:bottom;border-color:#aeb4bf}verdocs-checkbox label>input[type=checkbox]:checked+*{color:#55bc81}verdocs-checkbox label>input[type=checkbox]:checked+*::before{content:\"✓\";color:white;text-align:center;background:#55bc81;border-color:#55bc81}verdocs-checkbox.dark label>input[type=checkbox]+*::before{border-color:#ffffff}verdocs-checkbox.dark label>input[type=checkbox]:checked+*::before{background:#55bc81;border-color:#55bc81}";
|
9
9
|
|
10
10
|
const VerdocsCheckbox = class {
|
11
11
|
constructor(hostRef) {
|
@@ -6,7 +6,7 @@ const index = require('./index-1d5fc518.js');
|
|
6
6
|
require('./Types-f89f9116.js');
|
7
7
|
const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
8
8
|
const utils = require('./utils-ce815868.js');
|
9
|
-
const TemplateStore = require('./TemplateStore-
|
9
|
+
const TemplateStore = require('./TemplateStore-07e274ab.js');
|
10
10
|
const errors = require('./errors-0396da3d.js');
|
11
11
|
require('./_commonjsHelpers-0c557e26.js');
|
12
12
|
require('./Envelopes-dba86ae4.js');
|
@@ -15,7 +15,7 @@ require('./Types-ee5afdf8.js');
|
|
15
15
|
require('./index-961181ce.js');
|
16
16
|
require('./index-db620f37.js');
|
17
17
|
require('./index-f664e4d0.js');
|
18
|
-
require('./Templates-
|
18
|
+
require('./Templates-f6e75719.js');
|
19
19
|
|
20
20
|
const verdocsPreviewCss = "verdocs-preview{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-preview div,verdocs-preview canvas{-webkit-box-sizing:border-box;box-sizing:border-box}";
|
21
21
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-1d5fc518.js');
|
6
6
|
require('./Types-f89f9116.js');
|
7
7
|
const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
8
|
-
const Templates = require('./Templates-
|
8
|
+
const Templates = require('./Templates-f6e75719.js');
|
9
9
|
|
10
10
|
/**
|
11
11
|
* Verdocs provides a range of search functions to help find and retrieve content. This module provides generic functions intended
|
@@ -7,11 +7,11 @@ require('./Types-f89f9116.js');
|
|
7
7
|
const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
8
8
|
const Validators = require('./Validators-16e6d7d1.js');
|
9
9
|
const Colors = require('./Colors-e809dcc9.js');
|
10
|
-
const TemplateStore = require('./TemplateStore-
|
10
|
+
const TemplateStore = require('./TemplateStore-07e274ab.js');
|
11
11
|
const utils = require('./utils-ce815868.js');
|
12
12
|
const errors = require('./errors-0396da3d.js');
|
13
13
|
require('./index-f664e4d0.js');
|
14
|
-
require('./Templates-
|
14
|
+
require('./Templates-f6e75719.js');
|
15
15
|
require('./_commonjsHelpers-0c557e26.js');
|
16
16
|
require('./Envelopes-dba86ae4.js');
|
17
17
|
require('./Files-4bdc0c0f.js');
|
@@ -46,7 +46,7 @@ var createInitials = function (endpoint, name, initials) {
|
|
46
46
|
.then(function (r) { return r.data; });
|
47
47
|
};
|
48
48
|
|
49
|
-
const verdocsSignCss = "verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign .intro{width:100%;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;color:#111111;font-size:18px;font-weight:500;line-height:28px;-ms-flex-direction:row;flex-direction:row;background:#ffffff}verdocs-sign .intro .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .agree{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:0 15px}verdocs-sign .agree .intro{display:none}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}";
|
49
|
+
const verdocsSignCss = "verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign .intro{width:100%;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;color:#111111;font-size:18px;font-weight:500;line-height:28px;-ms-flex-direction:row;flex-direction:row;background:#ffffff}verdocs-sign .intro .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .agree{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:0 15px}verdocs-sign .agree .intro{display:none}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}";
|
50
50
|
|
51
51
|
const inProgressMenuOptions = [
|
52
52
|
{ id: 'later', label: 'Finish Later' },
|
@@ -457,7 +457,7 @@ const VerdocsSign = class {
|
|
457
457
|
this.isDone = true;
|
458
458
|
} })), this.submitting && (index.h("div", { class: "loading-indicator" }, index.h("verdocs-loader", null)))));
|
459
459
|
}
|
460
|
-
return (index.h(index.Host, { class: { agreed: this.agreed } }, !this.finishLater && (index.h("div", { class: "intro" }, index.h("div", { class: "inner" }, "Please review and act on these documents."))), index.h("div", { id: "verdocs-sign-header" }, index.h("div", { class: "inner" }, !this.agreed ? (index.h("div", { class: "agree" }, index.h("verdocs-checkbox", { name: "agree", label: "I agree to use electronic records and signatures.", onInput: () => this.handleClickAgree() }))) : (index.h(index.Fragment, null, index.h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), index.h("div", { class: "title" }, this.envelope.name), index.h("div", { style: { flex: '1' } }))), !this.finishLater && index.h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), index.h("div", { style: { marginLeft: '10px' } }), index.h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), !this.agreed ? index.h("div", { class: "cover" }) : index.h("div", { style: { display: 'none' } }), index.h("div", { class: "document", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
460
|
+
return (index.h(index.Host, { class: { agreed: this.agreed } }, !this.agreed && !this.finishLater && (index.h("div", { class: "intro" }, index.h("div", { class: "inner" }, "Please review and act on these documents."))), index.h("div", { id: "verdocs-sign-header" }, index.h("div", { class: "inner" }, !this.agreed ? (index.h("div", { class: "agree" }, index.h("verdocs-checkbox", { name: "agree", label: "I agree to use electronic records and signatures.", onInput: () => this.handleClickAgree() }))) : (index.h(index.Fragment, null, index.h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), index.h("div", { class: "title" }, this.envelope.name), index.h("div", { style: { flex: '1' } }))), !this.finishLater && index.h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), index.h("div", { style: { marginLeft: '10px' } }), index.h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), !this.agreed ? index.h("div", { class: "cover" }) : index.h("div", { style: { display: 'none' } }), index.h("div", { class: "document", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
461
461
|
const pageNumbers = Primitives.integerSequence(1, envelopeDocument.page_numbers);
|
462
462
|
return (index.h(index.Fragment, null, pageNumbers.map(pageNumber => {
|
463
463
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
@@ -7,9 +7,9 @@ require('./Types-f89f9116.js');
|
|
7
7
|
const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
8
8
|
const TemplateDocuments = require('./TemplateDocuments-e2e0e6b7.js');
|
9
9
|
const Icons = require('./Icons-a11fb3fc.js');
|
10
|
-
const TemplateStore = require('./TemplateStore-
|
10
|
+
const TemplateStore = require('./TemplateStore-07e274ab.js');
|
11
11
|
const errors = require('./errors-0396da3d.js');
|
12
|
-
const Templates = require('./Templates-
|
12
|
+
const Templates = require('./Templates-f6e75719.js');
|
13
13
|
require('./index-f664e4d0.js');
|
14
14
|
|
15
15
|
const verdocsTemplateAttachmentsCss = "verdocs-template-attachments{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-attachments h5{font-size:16px;font-weight:bold;margin:0 0 10px 0;color:#46497d}verdocs-template-attachments .attachments{margin:0 0 40px 0}verdocs-template-attachments .attachment{display:-ms-flexbox;display:flex;padding:5px 0;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#33364b}verdocs-template-attachments .attachment:hover .trash-icon{display:-ms-flexbox;display:flex}verdocs-template-attachments .attachment:hover .pages{display:none}verdocs-template-attachments svg{width:28px;height:28px;fill:#5c6575;margin:2px 0 0 0}verdocs-template-attachments .file-icon{-ms-flex:0;flex:0}verdocs-template-attachments .pages{width:24px;height:24px;-ms-flex:0 0 24px;flex:0 0 24px;padding-left:4px;position:relative;margin:-10px 0 0 0}verdocs-template-attachments .pages .pages-icon{top:0;left:0;width:24px;height:24px;position:absolute}verdocs-template-attachments .pages .count{top:11px;left:7px;z-index:1;width:18px;font-size:12px;font-weight:500;position:absolute;text-align:center;letter-spacing:-2px}verdocs-template-attachments .filename{-ms-flex:1;flex:1;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px dotted #cccccc}verdocs-template-attachments .trash-icon{-ms-flex:0;flex:0;display:none}verdocs-template-attachments .trash-icon:hover{cursor:pointer}verdocs-template-attachments verdocs-file-chooser{margin:10px 0;border:2px dashed #979797}verdocs-template-attachments .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-attachments .progress-wrapper{padding:20px}verdocs-template-attachments .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-attachments .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-attachments ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-attachments ::-moz-placeholder{color:#aaaaaa}verdocs-template-attachments :-ms-input-placeholder{color:#aaaaaa}verdocs-template-attachments ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-attachments ::placeholder{color:#aaaaaa}";
|
@@ -9,10 +9,10 @@ const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
|
9
9
|
const Fields = require('./Fields-705a2168.js');
|
10
10
|
const Primitives = require('./Primitives-be5088cb.js');
|
11
11
|
const utils = require('./utils-ce815868.js');
|
12
|
-
const TemplateStore = require('./TemplateStore-
|
12
|
+
const TemplateStore = require('./TemplateStore-07e274ab.js');
|
13
13
|
const errors = require('./errors-0396da3d.js');
|
14
14
|
const Colors = require('./Colors-e809dcc9.js');
|
15
|
-
const Templates = require('./Templates-
|
15
|
+
const Templates = require('./Templates-f6e75719.js');
|
16
16
|
require('./_commonjsHelpers-0c557e26.js');
|
17
17
|
require('./Envelopes-dba86ae4.js');
|
18
18
|
require('./Files-4bdc0c0f.js');
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-1d5fc518.js');
|
6
6
|
require('./Types-f89f9116.js');
|
7
7
|
const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
8
|
-
const Templates = require('./Templates-
|
9
|
-
const TemplateStore = require('./TemplateStore-
|
8
|
+
const Templates = require('./Templates-f6e75719.js');
|
9
|
+
const TemplateStore = require('./TemplateStore-07e274ab.js');
|
10
10
|
const errors = require('./errors-0396da3d.js');
|
11
11
|
require('./index-f664e4d0.js');
|
12
12
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-1d5fc518.js');
|
6
6
|
require('./Types-f89f9116.js');
|
7
7
|
const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
8
|
-
const TemplateStore = require('./TemplateStore-
|
8
|
+
const TemplateStore = require('./TemplateStore-07e274ab.js');
|
9
9
|
const errors = require('./errors-0396da3d.js');
|
10
10
|
const Toast = require('./Toast-06880504.js');
|
11
11
|
require('./index-f664e4d0.js');
|
12
|
-
require('./Templates-
|
12
|
+
require('./Templates-f6e75719.js');
|
13
13
|
|
14
14
|
/**
|
15
15
|
* Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
|
@@ -44,7 +44,6 @@ const VerdocsTemplateStar = class {
|
|
44
44
|
toggleStar(VerdocsEndpoint.VerdocsEndpoint.getDefault(), this.template.id)
|
45
45
|
.then(r => {
|
46
46
|
this.updating = false;
|
47
|
-
this.template.is_starred = r.is_starred;
|
48
47
|
this.template.star_counter = r.star_counter;
|
49
48
|
this.starChange.emit({
|
50
49
|
templateId: this.template.id,
|
@@ -59,7 +58,7 @@ const VerdocsTemplateStar = class {
|
|
59
58
|
});
|
60
59
|
}
|
61
60
|
render() {
|
62
|
-
return (index.h(index.Host, null, index.h("div", { class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.
|
61
|
+
return (index.h(index.Host, null, index.h("div", { class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), index.h("div", { class: "count" }, this.template.star_counter || '--')));
|
63
62
|
}
|
64
63
|
};
|
65
64
|
VerdocsTemplateStar.style = verdocsTemplateStarCss;
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-1d5fc518.js');
|
6
6
|
require('./Types-f89f9116.js');
|
7
7
|
const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
8
|
-
const Templates = require('./Templates-
|
9
|
-
const TemplateStore = require('./TemplateStore-
|
8
|
+
const Templates = require('./Templates-f6e75719.js');
|
9
|
+
const TemplateStore = require('./TemplateStore-07e274ab.js');
|
10
10
|
const errors = require('./errors-0396da3d.js');
|
11
11
|
require('./index-f664e4d0.js');
|
12
12
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index$1 = require('./index-1d5fc518.js');
|
6
6
|
require('./Types-f89f9116.js');
|
7
7
|
const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
|
8
|
-
const Templates = require('./Templates-
|
8
|
+
const Templates = require('./Templates-f6e75719.js');
|
9
9
|
const Toast = require('./Toast-06880504.js');
|
10
10
|
const errors = require('./errors-0396da3d.js');
|
11
11
|
const index = require('./index-db620f37.js');
|
@@ -589,22 +589,17 @@ const VerdocsTemplatesList = class {
|
|
589
589
|
var _a, _b, _c;
|
590
590
|
try {
|
591
591
|
let queryParams = {
|
592
|
+
sharing: this.sharing,
|
593
|
+
starred: this.starred,
|
592
594
|
page: this.selectedPage,
|
593
|
-
|
594
|
-
|
595
|
+
sort: this.sort,
|
596
|
+
// ascending: this.sort === 'name' || this.sort === 'star_counter',
|
595
597
|
};
|
596
|
-
if (this.sharing !== 'all') {
|
597
|
-
queryParams.is_personal = this.sharing === 'personal';
|
598
|
-
queryParams.is_public = this.sharing === 'public';
|
599
|
-
}
|
600
|
-
if (this.starred !== 'all') {
|
601
|
-
queryParams.is_starred = this.starred === 'starred';
|
602
|
-
}
|
603
598
|
if (this.name.trim() !== '') {
|
604
599
|
queryParams.name = this.name.trim();
|
605
600
|
}
|
606
|
-
const response = await Templates.
|
607
|
-
this.templates = response.
|
601
|
+
const response = await Templates.listTemplates(this.endpoint, queryParams);
|
602
|
+
this.templates = response.records;
|
608
603
|
this.count = response.total;
|
609
604
|
this.loading = false;
|
610
605
|
}
|
@@ -651,20 +646,16 @@ const VerdocsTemplatesList = class {
|
|
651
646
|
render() {
|
652
647
|
return (index$1.h(index$1.Host, null, index$1.h("div", { class: "header" }, index$1.h("div", { class: "filter" }, index$1.h("verdocs-text-input", { id: "verdocs-filter-name", value: this.name, autocomplete: "off", placeholder: "Filter by Name...", onFocusout: (e) => {
|
653
648
|
this.name = e.target.value;
|
654
|
-
return this.queryTemplates();
|
655
649
|
} })), index$1.h("verdocs-quick-filter", { label: "Sharing", value: this.sharing, options: SharingFilters, onOptionSelected: e => {
|
656
650
|
this.sharing = e.detail.value;
|
657
|
-
return this.queryTemplates();
|
658
651
|
} }), index$1.h("verdocs-quick-filter", { label: "Starred", value: this.starred, options: StarredFilters, onOptionSelected: e => {
|
659
652
|
this.starred = e.detail.value;
|
660
|
-
return this.queryTemplates();
|
661
653
|
} }), index$1.h("verdocs-quick-filter", { label: "Sort By", value: this.sort, options: SortOptions, onOptionSelected: e => {
|
662
654
|
this.sort = e.detail.value;
|
663
|
-
|
664
|
-
} }), this.loading && index$1.h("verdocs-spinner", { mode: "dark", size: 24 }), index$1.h("div", { style: { display: 'flex', flex: '1' } })), this.templates.map(summary => {
|
655
|
+
} }), this.loading && index$1.h("verdocs-spinner", { mode: "dark", size: 24 }), index$1.h("div", { style: { display: 'flex', flex: '1' } })), this.templates.map(template => {
|
665
656
|
const MENU_OPTIONS = [];
|
666
657
|
if (this.allowedActions.includes('send')) {
|
667
|
-
MENU_OPTIONS.push({ label: 'Send', id: 'send', disabled: !this.canPreview(
|
658
|
+
MENU_OPTIONS.push({ label: 'Send', id: 'send', disabled: !this.canPreview(template) });
|
668
659
|
}
|
669
660
|
if (this.allowedActions.includes('createlink')) {
|
670
661
|
MENU_OPTIONS.push({ label: 'Create Link', id: 'createlink', disabled: true });
|
@@ -679,19 +670,19 @@ const VerdocsTemplatesList = class {
|
|
679
670
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
680
671
|
MENU_OPTIONS.push({ label: '' });
|
681
672
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
682
|
-
MENU_OPTIONS.push({ label: 'Get Preview Link', id: 'link', disabled: !this.canPreview(
|
673
|
+
MENU_OPTIONS.push({ label: 'Get Preview Link', id: 'link', disabled: !this.canPreview(template) });
|
683
674
|
}
|
684
675
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
685
|
-
MENU_OPTIONS.push({ label: 'Edit', id: 'edit', disabled: !this.canEdit(
|
676
|
+
MENU_OPTIONS.push({ label: 'Edit', id: 'edit', disabled: !this.canEdit(template) });
|
686
677
|
}
|
687
678
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
688
|
-
MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !this.canDelete(
|
679
|
+
MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !this.canDelete(template) });
|
689
680
|
}
|
690
681
|
}
|
691
682
|
return (index$1.h("div", { class: "template", onClick: () => {
|
692
683
|
var _a;
|
693
|
-
(_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template
|
694
|
-
} }, index$1.h("div", { class: "inner" }, index$1.h("verdocs-template-star", { template:
|
684
|
+
(_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template });
|
685
|
+
} }, index$1.h("div", { class: "inner" }, index$1.h("verdocs-template-star", { template: template, endpoint: this.endpoint }), index$1.h("div", { class: "spacer icon-spacer" }), index$1.h("span", { innerHTML: TemplateIcon }), index$1.h("div", { class: "name" }, template.name), index$1.h("div", { class: "spacer usage-spacer" }), index$1.h("div", { class: "usage" }, index$1.h("span", { innerHTML: EnvelopeIcon }), template.counter || '--'), index$1.h("div", { class: "spacer last-used-spacer" }), index$1.h("div", { class: "last-used" }, index$1.h("span", { innerHTML: CalendarIcon }), index$1.h("span", { style: { marginRight: '5px' } }, "Last Used:"), template.last_used_at ? formatDistance(new Date(template.last_used_at), new Date()) : 'Never'), index$1.h("div", { class: "spacer ownership-spacer" }), template.is_public && (index$1.h("div", { class: "ownership" }, index$1.h("span", { innerHTML: GlobeAltIcon }), " Public")), !template.is_public && !template.is_personal && (index$1.h("div", { class: "ownership" }, index$1.h("span", { innerHTML: LockClosedIcon }), " Private")), !template.is_public && template.is_personal && (index$1.h("div", { class: "ownership" }, index$1.h("span", { innerHTML: BuildingOfficeIcon }), " Shared")), index$1.h("verdocs-dropdown", { options: MENU_OPTIONS, onOptionSelected: e => this.handleOptionSelected(e.detail.id, template) }))));
|
695
686
|
}), !this.templates.length ? (index$1.h("div", { class: "empty-text" }, "No matching templates found. Please adjust your filters and try again.")) : (index$1.h("div", { style: { marginTop: '10px' } }, index$1.h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: 10, itemCount: this.count, onSelectPage: e => {
|
696
687
|
this.selectedPage = e.detail.selectedPage;
|
697
688
|
return this.queryTemplates();
|
@@ -435,7 +435,7 @@ export class VerdocsSign {
|
|
435
435
|
this.isDone = true;
|
436
436
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
437
437
|
}
|
438
|
-
return (h(Host, { class: { agreed: this.agreed } }, !this.finishLater && (h("div", { class: "intro" }, h("div", { class: "inner" }, "Please review and act on these documents."))), h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, !this.agreed ? (h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "I agree to use electronic records and signatures.", onInput: () => this.handleClickAgree() }))) : (h(Fragment, null, 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) }))), !this.agreed ? h("div", { class: "cover" }) : h("div", { style: { display: 'none' } }), h("div", { class: "document", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
438
|
+
return (h(Host, { class: { agreed: this.agreed } }, !this.agreed && !this.finishLater && (h("div", { class: "intro" }, h("div", { class: "inner" }, "Please review and act on these documents."))), h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, !this.agreed ? (h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "I agree to use electronic records and signatures.", onInput: () => this.handleClickAgree() }))) : (h(Fragment, null, 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) }))), !this.agreed ? h("div", { class: "cover" }) : h("div", { style: { display: 'none' } }), h("div", { class: "document", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
439
439
|
const pageNumbers = integerSequence(1, envelopeDocument.page_numbers);
|
440
440
|
return (h(Fragment, null, pageNumbers.map(pageNumber => {
|
441
441
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
@@ -25,7 +25,6 @@ export class VerdocsTemplateStar {
|
|
25
25
|
Stars.toggleStar(VerdocsEndpoint.getDefault(), this.template.id)
|
26
26
|
.then(r => {
|
27
27
|
this.updating = false;
|
28
|
-
this.template.is_starred = r.is_starred;
|
29
28
|
this.template.star_counter = r.star_counter;
|
30
29
|
this.starChange.emit({
|
31
30
|
templateId: this.template.id,
|
@@ -40,7 +39,7 @@ export class VerdocsTemplateStar {
|
|
40
39
|
});
|
41
40
|
}
|
42
41
|
render() {
|
43
|
-
return (h(Host, null, h("div", { class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.
|
42
|
+
return (h(Host, null, h("div", { class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { class: "count" }, this.template.star_counter || '--')));
|
44
43
|
}
|
45
44
|
static get is() { return "verdocs-template-star"; }
|
46
45
|
static get originalStyleUrls() {
|
@@ -80,10 +79,10 @@ export class VerdocsTemplateStar {
|
|
80
79
|
"type": "unknown",
|
81
80
|
"mutable": true,
|
82
81
|
"complexType": {
|
83
|
-
"original": "
|
84
|
-
"resolved": "
|
82
|
+
"original": "ITemplate",
|
83
|
+
"resolved": "ITemplate",
|
85
84
|
"references": {
|
86
|
-
"
|
85
|
+
"ITemplate": {
|
87
86
|
"location": "import",
|
88
87
|
"path": "@verdocs/js-sdk/Templates/Types"
|
89
88
|
}
|
package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js
CHANGED
@@ -95,22 +95,17 @@ export class VerdocsTemplatesList {
|
|
95
95
|
var _a, _b, _c;
|
96
96
|
try {
|
97
97
|
let queryParams = {
|
98
|
+
sharing: this.sharing,
|
99
|
+
starred: this.starred,
|
98
100
|
page: this.selectedPage,
|
99
|
-
|
100
|
-
|
101
|
+
sort: this.sort,
|
102
|
+
// ascending: this.sort === 'name' || this.sort === 'star_counter',
|
101
103
|
};
|
102
|
-
if (this.sharing !== 'all') {
|
103
|
-
queryParams.is_personal = this.sharing === 'personal';
|
104
|
-
queryParams.is_public = this.sharing === 'public';
|
105
|
-
}
|
106
|
-
if (this.starred !== 'all') {
|
107
|
-
queryParams.is_starred = this.starred === 'starred';
|
108
|
-
}
|
109
104
|
if (this.name.trim() !== '') {
|
110
105
|
queryParams.name = this.name.trim();
|
111
106
|
}
|
112
|
-
const response = await Templates.
|
113
|
-
this.templates = response.
|
107
|
+
const response = await Templates.listTemplates(this.endpoint, queryParams);
|
108
|
+
this.templates = response.records;
|
114
109
|
this.count = response.total;
|
115
110
|
this.loading = false;
|
116
111
|
}
|
@@ -157,20 +152,16 @@ export class VerdocsTemplatesList {
|
|
157
152
|
render() {
|
158
153
|
return (h(Host, null, h("div", { class: "header" }, h("div", { class: "filter" }, h("verdocs-text-input", { id: "verdocs-filter-name", value: this.name, autocomplete: "off", placeholder: "Filter by Name...", onFocusout: (e) => {
|
159
154
|
this.name = e.target.value;
|
160
|
-
return this.queryTemplates();
|
161
155
|
} })), h("verdocs-quick-filter", { label: "Sharing", value: this.sharing, options: SharingFilters, onOptionSelected: e => {
|
162
156
|
this.sharing = e.detail.value;
|
163
|
-
return this.queryTemplates();
|
164
157
|
} }), h("verdocs-quick-filter", { label: "Starred", value: this.starred, options: StarredFilters, onOptionSelected: e => {
|
165
158
|
this.starred = e.detail.value;
|
166
|
-
return this.queryTemplates();
|
167
159
|
} }), h("verdocs-quick-filter", { label: "Sort By", value: this.sort, options: SortOptions, onOptionSelected: e => {
|
168
160
|
this.sort = e.detail.value;
|
169
|
-
|
170
|
-
} }), this.loading && h("verdocs-spinner", { mode: "dark", size: 24 }), h("div", { style: { display: 'flex', flex: '1' } })), this.templates.map(summary => {
|
161
|
+
} }), this.loading && h("verdocs-spinner", { mode: "dark", size: 24 }), h("div", { style: { display: 'flex', flex: '1' } })), this.templates.map(template => {
|
171
162
|
const MENU_OPTIONS = [];
|
172
163
|
if (this.allowedActions.includes('send')) {
|
173
|
-
MENU_OPTIONS.push({ label: 'Send', id: 'send', disabled: !this.canPreview(
|
164
|
+
MENU_OPTIONS.push({ label: 'Send', id: 'send', disabled: !this.canPreview(template) });
|
174
165
|
}
|
175
166
|
if (this.allowedActions.includes('createlink')) {
|
176
167
|
MENU_OPTIONS.push({ label: 'Create Link', id: 'createlink', disabled: true });
|
@@ -185,19 +176,19 @@ export class VerdocsTemplatesList {
|
|
185
176
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
186
177
|
MENU_OPTIONS.push({ label: '' });
|
187
178
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
188
|
-
MENU_OPTIONS.push({ label: 'Get Preview Link', id: 'link', disabled: !this.canPreview(
|
179
|
+
MENU_OPTIONS.push({ label: 'Get Preview Link', id: 'link', disabled: !this.canPreview(template) });
|
189
180
|
}
|
190
181
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
191
|
-
MENU_OPTIONS.push({ label: 'Edit', id: 'edit', disabled: !this.canEdit(
|
182
|
+
MENU_OPTIONS.push({ label: 'Edit', id: 'edit', disabled: !this.canEdit(template) });
|
192
183
|
}
|
193
184
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
194
|
-
MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !this.canDelete(
|
185
|
+
MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !this.canDelete(template) });
|
195
186
|
}
|
196
187
|
}
|
197
188
|
return (h("div", { class: "template", onClick: () => {
|
198
189
|
var _a;
|
199
|
-
(_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template
|
200
|
-
} }, h("div", { class: "inner" }, h("verdocs-template-star", { template:
|
190
|
+
(_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template });
|
191
|
+
} }, h("div", { class: "inner" }, h("verdocs-template-star", { template: template, endpoint: this.endpoint }), h("div", { class: "spacer icon-spacer" }), h("span", { innerHTML: TemplateIcon }), h("div", { class: "name" }, template.name), h("div", { class: "spacer usage-spacer" }), h("div", { class: "usage" }, h("span", { innerHTML: EnvelopeIcon }), template.counter || '--'), h("div", { class: "spacer last-used-spacer" }), h("div", { class: "last-used" }, h("span", { innerHTML: CalendarIcon }), h("span", { style: { marginRight: '5px' } }, "Last Used:"), template.last_used_at ? formatDistance(new Date(template.last_used_at), new Date()) : 'Never'), h("div", { class: "spacer ownership-spacer" }), template.is_public && (h("div", { class: "ownership" }, h("span", { innerHTML: GlobeAltIcon }), " Public")), !template.is_public && !template.is_personal && (h("div", { class: "ownership" }, h("span", { innerHTML: LockClosedIcon }), " Private")), !template.is_public && template.is_personal && (h("div", { class: "ownership" }, h("span", { innerHTML: BuildingOfficeIcon }), " Shared")), h("verdocs-dropdown", { options: MENU_OPTIONS, onOptionSelected: e => this.handleOptionSelected(e.detail.id, template) }))));
|
201
192
|
}), !this.templates.length ? (h("div", { class: "empty-text" }, "No matching templates found. Please adjust your filters and try again.")) : (h("div", { style: { marginTop: '10px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: 10, itemCount: this.count, onSelectPage: e => {
|
202
193
|
this.selectedPage = e.detail.selectedPage;
|
203
194
|
return this.queryTemplates();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { c as createStore } from './index3.js';
|
2
|
-
import {
|
2
|
+
import { a as getTemplate } from './Templates.js';
|
3
3
|
import { T as TemplateSenderTypes } from './VerdocsEndpoint.js';
|
4
4
|
|
5
5
|
const createTemplateStore = (templateId) => {
|