@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
@@ -4,42 +4,6 @@
|
|
4
4
|
*
|
5
5
|
* @module
|
6
6
|
*/
|
7
|
-
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
14
|
-
});
|
15
|
-
};
|
16
|
-
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
17
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
18
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
19
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
20
|
-
function step(op) {
|
21
|
-
if (f) throw new TypeError("Generator is already executing.");
|
22
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
23
|
-
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;
|
24
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
25
|
-
switch (op[0]) {
|
26
|
-
case 0: case 1: t = op; break;
|
27
|
-
case 4: _.label++; return { value: op[1], done: false };
|
28
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
29
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
30
|
-
default:
|
31
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
32
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
33
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
34
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
35
|
-
if (t[2]) _.ops.pop();
|
36
|
-
_.trys.pop(); continue;
|
37
|
-
}
|
38
|
-
op = body.call(thisArg, _);
|
39
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
40
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
41
|
-
}
|
42
|
-
};
|
43
7
|
/**
|
44
8
|
* Get all templates accessible by the caller, with optional filters.
|
45
9
|
*
|
@@ -57,6 +21,20 @@ var getTemplates = function (endpoint, params) {
|
|
57
21
|
.post('/templates', { params: params })
|
58
22
|
.then(function (r) { return r.data; });
|
59
23
|
};
|
24
|
+
/**
|
25
|
+
* Lists all templates accessible by the caller, with optional filters.
|
26
|
+
*
|
27
|
+
* ```typescript
|
28
|
+
* import {Templates} from '@verdocs/js-sdk/Templates';
|
29
|
+
*
|
30
|
+
* await Templates.listTemplates((VerdocsEndpoint.getDefault(), { sharing: 'personal', sort: 'last_used_at' });
|
31
|
+
* ```
|
32
|
+
*/
|
33
|
+
var listTemplates = function (endpoint, params) {
|
34
|
+
return endpoint.api //
|
35
|
+
.post('/templates/list', params, { baseURL: endpoint.getBaseURLv2() })
|
36
|
+
.then(function (r) { return r.data; });
|
37
|
+
};
|
60
38
|
/**
|
61
39
|
* Get one template by its ID.
|
62
40
|
*
|
@@ -145,24 +123,5 @@ var deleteTemplate = function (endpoint, templateId) {
|
|
145
123
|
.delete("/templates/".concat(templateId))
|
146
124
|
.then(function (r) { return r.data; });
|
147
125
|
};
|
148
|
-
/**
|
149
|
-
* Get a summary of template data, typically used to populate admin panel dashboard pages.
|
150
|
-
*
|
151
|
-
* ```typescript
|
152
|
-
* import {Templates} from '@verdocs/js-sdk/Templates';
|
153
|
-
*
|
154
|
-
* const summary = await Templates.getSummary((VerdocsEndpoint.getDefault(), 0);
|
155
|
-
* ```
|
156
|
-
*/
|
157
|
-
var getSummary = function (endpoint, params) {
|
158
|
-
if (params === void 0) { params = {}; }
|
159
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
160
|
-
return __generator(this, function (_a) {
|
161
|
-
return [2 /*return*/, endpoint.api //
|
162
|
-
.post('/templates/summary', params)
|
163
|
-
.then(function (r) { return r.data; })];
|
164
|
-
});
|
165
|
-
});
|
166
|
-
};
|
167
126
|
|
168
|
-
export {
|
127
|
+
export { getTemplate as a, createTemplate as c, deleteTemplate as d, getTemplates as g, listTemplates as l, updateTemplate as u };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
2
2
|
|
3
|
-
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}";
|
3
|
+
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}";
|
4
4
|
|
5
5
|
const VerdocsCheckbox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
6
6
|
constructor() {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
2
|
-
import {
|
2
|
+
import { g as getTemplates } from './Templates.js';
|
3
3
|
import './Types.js';
|
4
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
5
5
|
|
@@ -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' },
|
@@ -458,7 +458,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
458
458
|
this.isDone = true;
|
459
459
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
460
460
|
}
|
461
|
-
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 => {
|
461
|
+
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 => {
|
462
462
|
const pageNumbers = integerSequence(1, envelopeDocument.page_numbers);
|
463
463
|
return (h(Fragment, null, pageNumbers.map(pageNumber => {
|
464
464
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
@@ -41,7 +41,6 @@ const VerdocsTemplateStar = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
41
41
|
toggleStar(VerdocsEndpoint.getDefault(), this.template.id)
|
42
42
|
.then(r => {
|
43
43
|
this.updating = false;
|
44
|
-
this.template.is_starred = r.is_starred;
|
45
44
|
this.template.star_counter = r.star_counter;
|
46
45
|
this.starChange.emit({
|
47
46
|
templateId: this.template.id,
|
@@ -56,7 +55,7 @@ const VerdocsTemplateStar = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
56
55
|
});
|
57
56
|
}
|
58
57
|
render() {
|
59
|
-
return (h(Host, null, h("div", { class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.
|
58
|
+
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 || '--')));
|
60
59
|
}
|
61
60
|
static get style() { return verdocsTemplateStarCss; }
|
62
61
|
}, [0, "verdocs-template-star", {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
2
|
import './Types.js';
|
3
3
|
import { V as VerdocsEndpoint, c as canPerformTemplateAction } from './VerdocsEndpoint.js';
|
4
|
-
import {
|
4
|
+
import { l as listTemplates, d as deleteTemplate } from './Templates.js';
|
5
5
|
import { V as VerdocsToast } from './Toast.js';
|
6
6
|
import { S as SDKError } from './errors.js';
|
7
7
|
import { d as defineCustomElement$a } from './verdocs-button2.js';
|
@@ -595,22 +595,17 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
595
595
|
var _a, _b, _c;
|
596
596
|
try {
|
597
597
|
let queryParams = {
|
598
|
+
sharing: this.sharing,
|
599
|
+
starred: this.starred,
|
598
600
|
page: this.selectedPage,
|
599
|
-
|
600
|
-
|
601
|
+
sort: this.sort,
|
602
|
+
// ascending: this.sort === 'name' || this.sort === 'star_counter',
|
601
603
|
};
|
602
|
-
if (this.sharing !== 'all') {
|
603
|
-
queryParams.is_personal = this.sharing === 'personal';
|
604
|
-
queryParams.is_public = this.sharing === 'public';
|
605
|
-
}
|
606
|
-
if (this.starred !== 'all') {
|
607
|
-
queryParams.is_starred = this.starred === 'starred';
|
608
|
-
}
|
609
604
|
if (this.name.trim() !== '') {
|
610
605
|
queryParams.name = this.name.trim();
|
611
606
|
}
|
612
|
-
const response = await
|
613
|
-
this.templates = response.
|
607
|
+
const response = await listTemplates(this.endpoint, queryParams);
|
608
|
+
this.templates = response.records;
|
614
609
|
this.count = response.total;
|
615
610
|
this.loading = false;
|
616
611
|
}
|
@@ -657,20 +652,16 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
657
652
|
render() {
|
658
653
|
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) => {
|
659
654
|
this.name = e.target.value;
|
660
|
-
return this.queryTemplates();
|
661
655
|
} })), h("verdocs-quick-filter", { label: "Sharing", value: this.sharing, options: SharingFilters, onOptionSelected: e => {
|
662
656
|
this.sharing = e.detail.value;
|
663
|
-
return this.queryTemplates();
|
664
657
|
} }), h("verdocs-quick-filter", { label: "Starred", value: this.starred, options: StarredFilters, onOptionSelected: e => {
|
665
658
|
this.starred = e.detail.value;
|
666
|
-
return this.queryTemplates();
|
667
659
|
} }), h("verdocs-quick-filter", { label: "Sort By", value: this.sort, options: SortOptions, onOptionSelected: e => {
|
668
660
|
this.sort = e.detail.value;
|
669
|
-
|
670
|
-
} }), this.loading && h("verdocs-spinner", { mode: "dark", size: 24 }), h("div", { style: { display: 'flex', flex: '1' } })), this.templates.map(summary => {
|
661
|
+
} }), this.loading && h("verdocs-spinner", { mode: "dark", size: 24 }), h("div", { style: { display: 'flex', flex: '1' } })), this.templates.map(template => {
|
671
662
|
const MENU_OPTIONS = [];
|
672
663
|
if (this.allowedActions.includes('send')) {
|
673
|
-
MENU_OPTIONS.push({ label: 'Send', id: 'send', disabled: !this.canPreview(
|
664
|
+
MENU_OPTIONS.push({ label: 'Send', id: 'send', disabled: !this.canPreview(template) });
|
674
665
|
}
|
675
666
|
if (this.allowedActions.includes('createlink')) {
|
676
667
|
MENU_OPTIONS.push({ label: 'Create Link', id: 'createlink', disabled: true });
|
@@ -685,19 +676,19 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
685
676
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
686
677
|
MENU_OPTIONS.push({ label: '' });
|
687
678
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
688
|
-
MENU_OPTIONS.push({ label: 'Get Preview Link', id: 'link', disabled: !this.canPreview(
|
679
|
+
MENU_OPTIONS.push({ label: 'Get Preview Link', id: 'link', disabled: !this.canPreview(template) });
|
689
680
|
}
|
690
681
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
691
|
-
MENU_OPTIONS.push({ label: 'Edit', id: 'edit', disabled: !this.canEdit(
|
682
|
+
MENU_OPTIONS.push({ label: 'Edit', id: 'edit', disabled: !this.canEdit(template) });
|
692
683
|
}
|
693
684
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
694
|
-
MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !this.canDelete(
|
685
|
+
MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !this.canDelete(template) });
|
695
686
|
}
|
696
687
|
}
|
697
688
|
return (h("div", { class: "template", onClick: () => {
|
698
689
|
var _a;
|
699
|
-
(_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template
|
700
|
-
} }, h("div", { class: "inner" }, h("verdocs-template-star", { template:
|
690
|
+
(_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template });
|
691
|
+
} }, 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) }))));
|
701
692
|
}), !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 => {
|
702
693
|
this.selectedPage = e.detail.selectedPage;
|
703
694
|
return this.queryTemplates();
|
package/dist/docs.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2023-07-
|
2
|
+
"timestamp": "2023-07-25T22:12:56",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "2.20.0",
|
@@ -8248,14 +8248,14 @@
|
|
8248
8248
|
},
|
8249
8249
|
{
|
8250
8250
|
"name": "template",
|
8251
|
-
"type": "
|
8251
|
+
"type": "ITemplate",
|
8252
8252
|
"mutable": true,
|
8253
8253
|
"reflectToAttr": false,
|
8254
8254
|
"docs": "The template to display the star for.",
|
8255
8255
|
"docsTags": [],
|
8256
8256
|
"values": [
|
8257
8257
|
{
|
8258
|
-
"type": "
|
8258
|
+
"type": "ITemplate"
|
8259
8259
|
}
|
8260
8260
|
],
|
8261
8261
|
"optional": false,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { c as createStore } from './index-38d7bc0b.js';
|
2
|
-
import { g as getTemplate } from './Templates-
|
2
|
+
import { g as getTemplate } from './Templates-f90883f7.js';
|
3
3
|
import { T as TemplateSenderTypes } from './VerdocsEndpoint-e447b318.js';
|
4
4
|
|
5
5
|
const createTemplateStore = (templateId) => {
|
@@ -4,42 +4,6 @@
|
|
4
4
|
*
|
5
5
|
* @module
|
6
6
|
*/
|
7
|
-
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
14
|
-
});
|
15
|
-
};
|
16
|
-
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
17
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
18
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
19
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
20
|
-
function step(op) {
|
21
|
-
if (f) throw new TypeError("Generator is already executing.");
|
22
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
23
|
-
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;
|
24
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
25
|
-
switch (op[0]) {
|
26
|
-
case 0: case 1: t = op; break;
|
27
|
-
case 4: _.label++; return { value: op[1], done: false };
|
28
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
29
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
30
|
-
default:
|
31
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
32
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
33
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
34
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
35
|
-
if (t[2]) _.ops.pop();
|
36
|
-
_.trys.pop(); continue;
|
37
|
-
}
|
38
|
-
op = body.call(thisArg, _);
|
39
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
40
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
41
|
-
}
|
42
|
-
};
|
43
7
|
/**
|
44
8
|
* Get all templates accessible by the caller, with optional filters.
|
45
9
|
*
|
@@ -57,6 +21,20 @@ var getTemplates = function (endpoint, params) {
|
|
57
21
|
.post('/templates', { params: params })
|
58
22
|
.then(function (r) { return r.data; });
|
59
23
|
};
|
24
|
+
/**
|
25
|
+
* Lists all templates accessible by the caller, with optional filters.
|
26
|
+
*
|
27
|
+
* ```typescript
|
28
|
+
* import {Templates} from '@verdocs/js-sdk/Templates';
|
29
|
+
*
|
30
|
+
* await Templates.listTemplates((VerdocsEndpoint.getDefault(), { sharing: 'personal', sort: 'last_used_at' });
|
31
|
+
* ```
|
32
|
+
*/
|
33
|
+
var listTemplates = function (endpoint, params) {
|
34
|
+
return endpoint.api //
|
35
|
+
.post('/templates/list', params, { baseURL: endpoint.getBaseURLv2() })
|
36
|
+
.then(function (r) { return r.data; });
|
37
|
+
};
|
60
38
|
/**
|
61
39
|
* Get one template by its ID.
|
62
40
|
*
|
@@ -145,24 +123,5 @@ var deleteTemplate = function (endpoint, templateId) {
|
|
145
123
|
.delete("/templates/".concat(templateId))
|
146
124
|
.then(function (r) { return r.data; });
|
147
125
|
};
|
148
|
-
/**
|
149
|
-
* Get a summary of template data, typically used to populate admin panel dashboard pages.
|
150
|
-
*
|
151
|
-
* ```typescript
|
152
|
-
* import {Templates} from '@verdocs/js-sdk/Templates';
|
153
|
-
*
|
154
|
-
* const summary = await Templates.getSummary((VerdocsEndpoint.getDefault(), 0);
|
155
|
-
* ```
|
156
|
-
*/
|
157
|
-
var getSummary = function (endpoint, params) {
|
158
|
-
if (params === void 0) { params = {}; }
|
159
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
160
|
-
return __generator(this, function (_a) {
|
161
|
-
return [2 /*return*/, endpoint.api //
|
162
|
-
.post('/templates/summary', params)
|
163
|
-
.then(function (r) { return r.data; })];
|
164
|
-
});
|
165
|
-
});
|
166
|
-
};
|
167
126
|
|
168
|
-
export {
|
127
|
+
export { getTemplates as a, createTemplate as c, deleteTemplate as d, getTemplate as g, listTemplates as l, updateTemplate as u };
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-151c0874.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-e447b318.js';
|
4
|
-
import { g as getTemplateStore } from './TemplateStore-
|
4
|
+
import { g as getTemplateStore } from './TemplateStore-17700116.js';
|
5
5
|
import './index-38d7bc0b.js';
|
6
|
-
import './Templates-
|
6
|
+
import './Templates-f90883f7.js';
|
7
7
|
|
8
8
|
const ipcTestCss = "ipc-test{max-width:800px;display:block}";
|
9
9
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-151c0874.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-e447b318.js';
|
4
|
-
import { g as getTemplateStore } from './TemplateStore-
|
4
|
+
import { g as getTemplateStore } from './TemplateStore-17700116.js';
|
5
5
|
import { S as SDKError } from './errors-9b5498c8.js';
|
6
6
|
import './index-38d7bc0b.js';
|
7
|
-
import './Templates-
|
7
|
+
import './Templates-f90883f7.js';
|
8
8
|
|
9
9
|
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}";
|
10
10
|
|
@@ -4,10 +4,10 @@ import { a as commonjsGlobal } from './_commonjsHelpers-5ec8f9b7.js';
|
|
4
4
|
import './Types-5f31149e.js';
|
5
5
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-e447b318.js';
|
6
6
|
import { u as updateField, d as deleteField } from './Fields-c82e6df3.js';
|
7
|
-
import { g as getTemplateStore } from './TemplateStore-
|
7
|
+
import { g as getTemplateStore } from './TemplateStore-17700116.js';
|
8
8
|
import { S as SDKError } from './errors-9b5498c8.js';
|
9
9
|
import './index-38d7bc0b.js';
|
10
|
-
import './Templates-
|
10
|
+
import './Templates-f90883f7.js';
|
11
11
|
|
12
12
|
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}";
|
13
13
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-151c0874.js';
|
2
2
|
import { c as createPopper } from './popper-15e448b4.js';
|
3
3
|
|
4
|
-
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}";
|
4
|
+
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}";
|
5
5
|
|
6
6
|
const VerdocsCheckbox = class {
|
7
7
|
constructor(hostRef) {
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-1
|
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-e447b318.js';
|
4
4
|
import { r as renderDocumentField, a as getRoleIndex } from './utils-51c8f6c7.js';
|
5
|
-
import { g as getTemplateStore, a as getRoleNames } from './TemplateStore-
|
5
|
+
import { g as getTemplateStore, a as getRoleNames } from './TemplateStore-17700116.js';
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
7
7
|
import './_commonjsHelpers-5ec8f9b7.js';
|
8
8
|
import './Envelopes-290f96cc.js';
|
@@ -11,7 +11,7 @@ import './Types-de18e225.js';
|
|
11
11
|
import './index-2685d184.js';
|
12
12
|
import './index-8dc8fdc4.js';
|
13
13
|
import './index-38d7bc0b.js';
|
14
|
-
import './Templates-
|
14
|
+
import './Templates-f90883f7.js';
|
15
15
|
|
16
16
|
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}";
|
17
17
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-151c0874.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-e447b318.js';
|
4
|
-
import {
|
4
|
+
import { a as getTemplates } from './Templates-f90883f7.js';
|
5
5
|
|
6
6
|
/**
|
7
7
|
* Verdocs provides a range of search functions to help find and retrieve content. This module provides generic functions intended
|
@@ -3,11 +3,11 @@ import './Types-5f31149e.js';
|
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-e447b318.js';
|
4
4
|
import { i as isValidEmail, a as isValidPhone } from './Validators-f110bae2.js';
|
5
5
|
import { g as getRGBA } from './Colors-1b298092.js';
|
6
|
-
import { g as getTemplateStore } from './TemplateStore-
|
6
|
+
import { g as getTemplateStore } from './TemplateStore-17700116.js';
|
7
7
|
import { a as getRoleIndex } from './utils-51c8f6c7.js';
|
8
8
|
import { S as SDKError } from './errors-9b5498c8.js';
|
9
9
|
import './index-38d7bc0b.js';
|
10
|
-
import './Templates-
|
10
|
+
import './Templates-f90883f7.js';
|
11
11
|
import './_commonjsHelpers-5ec8f9b7.js';
|
12
12
|
import './Envelopes-290f96cc.js';
|
13
13
|
import './Files-70a192df.js';
|
@@ -42,7 +42,7 @@ var createInitials = function (endpoint, name, initials) {
|
|
42
42
|
.then(function (r) { return r.data; });
|
43
43
|
};
|
44
44
|
|
45
|
-
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}";
|
45
|
+
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}";
|
46
46
|
|
47
47
|
const inProgressMenuOptions = [
|
48
48
|
{ id: 'later', label: 'Finish Later' },
|
@@ -453,7 +453,7 @@ const VerdocsSign = class {
|
|
453
453
|
this.isDone = true;
|
454
454
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
455
455
|
}
|
456
|
-
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 => {
|
456
|
+
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 => {
|
457
457
|
const pageNumbers = integerSequence(1, envelopeDocument.page_numbers);
|
458
458
|
return (h(Fragment, null, pageNumbers.map(pageNumber => {
|
459
459
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
@@ -3,9 +3,9 @@ import './Types-5f31149e.js';
|
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-e447b318.js';
|
4
4
|
import { c as createTemplateDocument, d as deleteTemplateDocument } from './TemplateDocuments-6fd2f4e2.js';
|
5
5
|
import { D as DocIcon, P as PngIcon, J as JpgIcon, a as PdfIcon, F as FileIcon$1, b as PageCountIcon, T as TrashIcon } from './Icons-c29eb0fa.js';
|
6
|
-
import { g as getTemplateStore } from './TemplateStore-
|
6
|
+
import { g as getTemplateStore } from './TemplateStore-17700116.js';
|
7
7
|
import { S as SDKError } from './errors-9b5498c8.js';
|
8
|
-
import { c as createTemplate } from './Templates-
|
8
|
+
import { c as createTemplate } from './Templates-f90883f7.js';
|
9
9
|
import './index-38d7bc0b.js';
|
10
10
|
|
11
11
|
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}";
|
@@ -5,10 +5,10 @@ import { V as VerdocsEndpoint, T as TemplateSenderTypes } from './VerdocsEndpoin
|
|
5
5
|
import { u as updateField, c as createField } from './Fields-c82e6df3.js';
|
6
6
|
import { i as integerSequence } from './Primitives-054bc6e5.js';
|
7
7
|
import { a as getRoleIndex, r as renderDocumentField, h as updateCssTransform, i as defaultWidth, j as defaultHeight } from './utils-51c8f6c7.js';
|
8
|
-
import { g as getTemplateStore, a as getRoleNames } from './TemplateStore-
|
8
|
+
import { g as getTemplateStore, a as getRoleNames } from './TemplateStore-17700116.js';
|
9
9
|
import { S as SDKError } from './errors-9b5498c8.js';
|
10
10
|
import { g as getRGBA } from './Colors-1b298092.js';
|
11
|
-
import { u as updateTemplate } from './Templates-
|
11
|
+
import { u as updateTemplate } from './Templates-f90883f7.js';
|
12
12
|
import './_commonjsHelpers-5ec8f9b7.js';
|
13
13
|
import './Envelopes-290f96cc.js';
|
14
14
|
import './Files-70a192df.js';
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-151c0874.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-e447b318.js';
|
4
|
-
import { u as updateTemplate } from './Templates-
|
5
|
-
import { g as getTemplateStore } from './TemplateStore-
|
4
|
+
import { u as updateTemplate } from './Templates-f90883f7.js';
|
5
|
+
import { g as getTemplateStore } from './TemplateStore-17700116.js';
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
7
7
|
import './index-38d7bc0b.js';
|
8
8
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-151c0874.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-e447b318.js';
|
4
|
-
import { g as getTemplateStore } from './TemplateStore-
|
4
|
+
import { g as getTemplateStore } from './TemplateStore-17700116.js';
|
5
5
|
import { S as SDKError } from './errors-9b5498c8.js';
|
6
6
|
import { V as VerdocsToast } from './Toast-f3b8fd46.js';
|
7
7
|
import './index-38d7bc0b.js';
|
8
|
-
import './Templates-
|
8
|
+
import './Templates-f90883f7.js';
|
9
9
|
|
10
10
|
/**
|
11
11
|
* Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
|
@@ -40,7 +40,6 @@ const VerdocsTemplateStar = class {
|
|
40
40
|
toggleStar(VerdocsEndpoint.getDefault(), this.template.id)
|
41
41
|
.then(r => {
|
42
42
|
this.updating = false;
|
43
|
-
this.template.is_starred = r.is_starred;
|
44
43
|
this.template.star_counter = r.star_counter;
|
45
44
|
this.starChange.emit({
|
46
45
|
templateId: this.template.id,
|
@@ -55,7 +54,7 @@ const VerdocsTemplateStar = class {
|
|
55
54
|
});
|
56
55
|
}
|
57
56
|
render() {
|
58
|
-
return (h(Host, null, h("div", { class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.
|
57
|
+
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 || '--')));
|
59
58
|
}
|
60
59
|
};
|
61
60
|
VerdocsTemplateStar.style = verdocsTemplateStarCss;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-151c0874.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-e447b318.js';
|
4
|
-
import { u as updateTemplate } from './Templates-
|
5
|
-
import { g as getTemplateStore } from './TemplateStore-
|
4
|
+
import { u as updateTemplate } from './Templates-f90883f7.js';
|
5
|
+
import { g as getTemplateStore } from './TemplateStore-17700116.js';
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
7
7
|
import './index-38d7bc0b.js';
|
8
8
|
|