@verdocs/web-sdk 2.3.51 → 2.3.53
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/verdocs-field-date.cjs.entry.js +2 -1
- package/dist/cjs/verdocs-portal_2.cjs.entry.js +6 -3
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +2 -1
- package/dist/collection/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.js +6 -3
- package/dist/components/verdocs-field-date.js +2 -1
- package/dist/components/verdocs-template-field-properties2.js +6 -3
- package/dist/docs.json +1 -1
- package/dist/esm/verdocs-field-date.entry.js +2 -1
- package/dist/esm/verdocs-portal_2.entry.js +6 -3
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
- package/dist/esm-es5/verdocs-portal_2.entry.js +1 -1
- package/dist/verdocs-web-sdk/p-4a418cd6.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-c2bbccaf.system.entry.js → p-6d9b0e86.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9af29090.entry.js → p-d92d4464.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-e07c9d66.system.entry.js → p-f50b3d8f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/verdocs-web-sdk/p-480f7293.entry.js +0 -1
@@ -2631,6 +2631,7 @@ const VerdocsFieldDate = class {
|
|
2631
2631
|
const field = this.fieldStore.get('fields').find(field => field.name === this.fieldname);
|
2632
2632
|
const roleIndex = TemplateRoleStore.getRoleIndex(this.roleStore, field.role_name);
|
2633
2633
|
const backgroundColor = field['rgba'] || Colors.getRGBA(roleIndex);
|
2634
|
+
console.log('role index', roleIndex, field, backgroundColor);
|
2634
2635
|
if (!field) {
|
2635
2636
|
return index.h(index.Fragment, null);
|
2636
2637
|
}
|
@@ -2640,7 +2641,7 @@ const VerdocsFieldDate = class {
|
|
2640
2641
|
const formatted = (settings === null || settings === void 0 ? void 0 : settings.result) ? index$1.format(new Date(settings === null || settings === void 0 ? void 0 : settings.result), Types.FORMAT_DATE) : '';
|
2641
2642
|
return index.h(index.Host, { class: { done: this.done } }, formatted);
|
2642
2643
|
}
|
2643
|
-
return (index.h(index.Host, { class: { required: field === null || field === void 0 ? void 0 : field.required, disabled }, style: { backgroundColor } },
|
2644
|
+
return (index.h(index.Host, { class: { required: field === null || field === void 0 ? void 0 : field.required, disabled }, style: { backgroundColor } }, this.editable && (index.h(index.Fragment, null, index.h("div", { id: `verdocs-settings-panel-trigger-${field.name}`, style: { transform: `scale(${Math.floor((1 / this.xscale) * 1000) / 1000}, ${Math.floor((1 / this.yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: Icons.SettingsIcon, onClick: (e) => {
|
2644
2645
|
e.stopPropagation();
|
2645
2646
|
this.showingProperties = !this.showingProperties;
|
2646
2647
|
} }), this.showingProperties && (index.h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${field.name}`, onClickAway: () => (this.showingProperties = false) }, index.h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: field.name, onClose: () => (this.showingProperties = false), onDelete: () => {
|
@@ -360,7 +360,7 @@ const VerdocsTemplateFieldProperties = class {
|
|
360
360
|
}
|
361
361
|
}
|
362
362
|
handleCancel(e) {
|
363
|
-
var _a, _b, _c, _d;
|
363
|
+
var _a, _b, _c, _d, _e;
|
364
364
|
e.stopPropagation();
|
365
365
|
const field = this.fieldStore.get('fields').find(field => field.name === this.fieldName);
|
366
366
|
if (field) {
|
@@ -375,6 +375,7 @@ const VerdocsTemplateFieldProperties = class {
|
|
375
375
|
}
|
376
376
|
this.dirty = false;
|
377
377
|
(_d = this.close) === null || _d === void 0 ? void 0 : _d.emit();
|
378
|
+
(_e = document.getElementById('verdocs-template-field-properties')) === null || _e === void 0 ? void 0 : _e.remove();
|
378
379
|
}
|
379
380
|
handleSave(e) {
|
380
381
|
e.stopPropagation();
|
@@ -403,7 +404,7 @@ const VerdocsTemplateFieldProperties = class {
|
|
403
404
|
console.log('FP: Will update', this.fieldName, newProperties);
|
404
405
|
Fields.updateField(this.endpoint, this.templateId, this.fieldName, newProperties)
|
405
406
|
.then(updated => {
|
406
|
-
var _a, _b;
|
407
|
+
var _a, _b, _c;
|
407
408
|
this.dirty = false;
|
408
409
|
const newFields = [
|
409
410
|
...this.fieldStore.get('fields').map(field => {
|
@@ -416,6 +417,7 @@ const VerdocsTemplateFieldProperties = class {
|
|
416
417
|
this.fieldStore.set('fields', newFields);
|
417
418
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldName, settings: newProperties, field: updated });
|
418
419
|
(_b = this.close) === null || _b === void 0 ? void 0 : _b.emit();
|
420
|
+
(_c = document.getElementById('verdocs-template-field-properties')) === null || _c === void 0 ? void 0 : _c.remove();
|
419
421
|
})
|
420
422
|
.catch(() => {
|
421
423
|
console.log('Field update failed', e);
|
@@ -449,12 +451,13 @@ const VerdocsTemplateFieldProperties = class {
|
|
449
451
|
newProperties.setting.options = [...this.options];
|
450
452
|
Fields.updateField(this.endpoint, this.templateId, this.fieldName, newProperties)
|
451
453
|
.then(updated => {
|
452
|
-
var _a, _b;
|
454
|
+
var _a, _b, _c;
|
453
455
|
this.dirty = false;
|
454
456
|
TemplateFieldStore.updateStoreField(this.fieldStore, this.fieldName, updated);
|
455
457
|
this.fieldName = updated.name;
|
456
458
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldName, settings: newProperties, field: updated });
|
457
459
|
(_b = this.close) === null || _b === void 0 ? void 0 : _b.emit();
|
460
|
+
(_c = document.getElementById('verdocs-template-field-properties')) === null || _c === void 0 ? void 0 : _c.remove();
|
458
461
|
})
|
459
462
|
.catch(() => {
|
460
463
|
console.log('Field update failed', e);
|
@@ -70,6 +70,7 @@ export class VerdocsFieldDate {
|
|
70
70
|
const field = this.fieldStore.get('fields').find(field => field.name === this.fieldname);
|
71
71
|
const roleIndex = getRoleIndex(this.roleStore, field.role_name);
|
72
72
|
const backgroundColor = field['rgba'] || getRGBA(roleIndex);
|
73
|
+
console.log('role index', roleIndex, field, backgroundColor);
|
73
74
|
if (!field) {
|
74
75
|
return h(Fragment, null);
|
75
76
|
}
|
@@ -79,7 +80,7 @@ export class VerdocsFieldDate {
|
|
79
80
|
const formatted = (settings === null || settings === void 0 ? void 0 : settings.result) ? format(new Date(settings === null || settings === void 0 ? void 0 : settings.result), FORMAT_DATE) : '';
|
80
81
|
return h(Host, { class: { done: this.done } }, formatted);
|
81
82
|
}
|
82
|
-
return (h(Host, { class: { required: field === null || field === void 0 ? void 0 : field.required, disabled }, style: { backgroundColor } },
|
83
|
+
return (h(Host, { class: { required: field === null || field === void 0 ? void 0 : field.required, disabled }, style: { backgroundColor } }, this.editable && (h(Fragment, null, h("div", { id: `verdocs-settings-panel-trigger-${field.name}`, style: { transform: `scale(${Math.floor((1 / this.xscale) * 1000) / 1000}, ${Math.floor((1 / this.yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: SettingsIcon, onClick: (e) => {
|
83
84
|
e.stopPropagation();
|
84
85
|
this.showingProperties = !this.showingProperties;
|
85
86
|
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${field.name}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: field.name, onClose: () => (this.showingProperties = false), onDelete: () => {
|
@@ -89,7 +89,7 @@ export class VerdocsTemplateFieldProperties {
|
|
89
89
|
}
|
90
90
|
}
|
91
91
|
handleCancel(e) {
|
92
|
-
var _a, _b, _c, _d;
|
92
|
+
var _a, _b, _c, _d, _e;
|
93
93
|
e.stopPropagation();
|
94
94
|
const field = this.fieldStore.get('fields').find(field => field.name === this.fieldName);
|
95
95
|
if (field) {
|
@@ -104,6 +104,7 @@ export class VerdocsTemplateFieldProperties {
|
|
104
104
|
}
|
105
105
|
this.dirty = false;
|
106
106
|
(_d = this.close) === null || _d === void 0 ? void 0 : _d.emit();
|
107
|
+
(_e = document.getElementById('verdocs-template-field-properties')) === null || _e === void 0 ? void 0 : _e.remove();
|
107
108
|
}
|
108
109
|
handleSave(e) {
|
109
110
|
e.stopPropagation();
|
@@ -132,7 +133,7 @@ export class VerdocsTemplateFieldProperties {
|
|
132
133
|
console.log('FP: Will update', this.fieldName, newProperties);
|
133
134
|
updateField(this.endpoint, this.templateId, this.fieldName, newProperties)
|
134
135
|
.then(updated => {
|
135
|
-
var _a, _b;
|
136
|
+
var _a, _b, _c;
|
136
137
|
this.dirty = false;
|
137
138
|
const newFields = [
|
138
139
|
...this.fieldStore.get('fields').map(field => {
|
@@ -145,6 +146,7 @@ export class VerdocsTemplateFieldProperties {
|
|
145
146
|
this.fieldStore.set('fields', newFields);
|
146
147
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldName, settings: newProperties, field: updated });
|
147
148
|
(_b = this.close) === null || _b === void 0 ? void 0 : _b.emit();
|
149
|
+
(_c = document.getElementById('verdocs-template-field-properties')) === null || _c === void 0 ? void 0 : _c.remove();
|
148
150
|
})
|
149
151
|
.catch(() => {
|
150
152
|
console.log('Field update failed', e);
|
@@ -178,12 +180,13 @@ export class VerdocsTemplateFieldProperties {
|
|
178
180
|
newProperties.setting.options = [...this.options];
|
179
181
|
updateField(this.endpoint, this.templateId, this.fieldName, newProperties)
|
180
182
|
.then(updated => {
|
181
|
-
var _a, _b;
|
183
|
+
var _a, _b, _c;
|
182
184
|
this.dirty = false;
|
183
185
|
updateStoreField(this.fieldStore, this.fieldName, updated);
|
184
186
|
this.fieldName = updated.name;
|
185
187
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldName, settings: newProperties, field: updated });
|
186
188
|
(_b = this.close) === null || _b === void 0 ? void 0 : _b.emit();
|
189
|
+
(_c = document.getElementById('verdocs-template-field-properties')) === null || _c === void 0 ? void 0 : _c.remove();
|
187
190
|
})
|
188
191
|
.catch(() => {
|
189
192
|
console.log('Field update failed', e);
|
@@ -2631,6 +2631,7 @@ const VerdocsFieldDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
2631
2631
|
const field = this.fieldStore.get('fields').find(field => field.name === this.fieldname);
|
2632
2632
|
const roleIndex = getRoleIndex(this.roleStore, field.role_name);
|
2633
2633
|
const backgroundColor = field['rgba'] || getRGBA(roleIndex);
|
2634
|
+
console.log('role index', roleIndex, field, backgroundColor);
|
2634
2635
|
if (!field) {
|
2635
2636
|
return h(Fragment, null);
|
2636
2637
|
}
|
@@ -2640,7 +2641,7 @@ const VerdocsFieldDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
2640
2641
|
const formatted = (settings === null || settings === void 0 ? void 0 : settings.result) ? format(new Date(settings === null || settings === void 0 ? void 0 : settings.result), FORMAT_DATE) : '';
|
2641
2642
|
return h(Host, { class: { done: this.done } }, formatted);
|
2642
2643
|
}
|
2643
|
-
return (h(Host, { class: { required: field === null || field === void 0 ? void 0 : field.required, disabled }, style: { backgroundColor } },
|
2644
|
+
return (h(Host, { class: { required: field === null || field === void 0 ? void 0 : field.required, disabled }, style: { backgroundColor } }, this.editable && (h(Fragment, null, h("div", { id: `verdocs-settings-panel-trigger-${field.name}`, style: { transform: `scale(${Math.floor((1 / this.xscale) * 1000) / 1000}, ${Math.floor((1 / this.yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: SettingsIcon, onClick: (e) => {
|
2644
2645
|
e.stopPropagation();
|
2645
2646
|
this.showingProperties = !this.showingProperties;
|
2646
2647
|
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${field.name}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: field.name, onClose: () => (this.showingProperties = false), onDelete: () => {
|
@@ -291,7 +291,7 @@ const VerdocsTemplateFieldProperties = /*@__PURE__*/ proxyCustomElement(class ex
|
|
291
291
|
}
|
292
292
|
}
|
293
293
|
handleCancel(e) {
|
294
|
-
var _a, _b, _c, _d;
|
294
|
+
var _a, _b, _c, _d, _e;
|
295
295
|
e.stopPropagation();
|
296
296
|
const field = this.fieldStore.get('fields').find(field => field.name === this.fieldName);
|
297
297
|
if (field) {
|
@@ -306,6 +306,7 @@ const VerdocsTemplateFieldProperties = /*@__PURE__*/ proxyCustomElement(class ex
|
|
306
306
|
}
|
307
307
|
this.dirty = false;
|
308
308
|
(_d = this.close) === null || _d === void 0 ? void 0 : _d.emit();
|
309
|
+
(_e = document.getElementById('verdocs-template-field-properties')) === null || _e === void 0 ? void 0 : _e.remove();
|
309
310
|
}
|
310
311
|
handleSave(e) {
|
311
312
|
e.stopPropagation();
|
@@ -334,7 +335,7 @@ const VerdocsTemplateFieldProperties = /*@__PURE__*/ proxyCustomElement(class ex
|
|
334
335
|
console.log('FP: Will update', this.fieldName, newProperties);
|
335
336
|
updateField(this.endpoint, this.templateId, this.fieldName, newProperties)
|
336
337
|
.then(updated => {
|
337
|
-
var _a, _b;
|
338
|
+
var _a, _b, _c;
|
338
339
|
this.dirty = false;
|
339
340
|
const newFields = [
|
340
341
|
...this.fieldStore.get('fields').map(field => {
|
@@ -347,6 +348,7 @@ const VerdocsTemplateFieldProperties = /*@__PURE__*/ proxyCustomElement(class ex
|
|
347
348
|
this.fieldStore.set('fields', newFields);
|
348
349
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldName, settings: newProperties, field: updated });
|
349
350
|
(_b = this.close) === null || _b === void 0 ? void 0 : _b.emit();
|
351
|
+
(_c = document.getElementById('verdocs-template-field-properties')) === null || _c === void 0 ? void 0 : _c.remove();
|
350
352
|
})
|
351
353
|
.catch(() => {
|
352
354
|
console.log('Field update failed', e);
|
@@ -380,12 +382,13 @@ const VerdocsTemplateFieldProperties = /*@__PURE__*/ proxyCustomElement(class ex
|
|
380
382
|
newProperties.setting.options = [...this.options];
|
381
383
|
updateField(this.endpoint, this.templateId, this.fieldName, newProperties)
|
382
384
|
.then(updated => {
|
383
|
-
var _a, _b;
|
385
|
+
var _a, _b, _c;
|
384
386
|
this.dirty = false;
|
385
387
|
updateStoreField(this.fieldStore, this.fieldName, updated);
|
386
388
|
this.fieldName = updated.name;
|
387
389
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldName, settings: newProperties, field: updated });
|
388
390
|
(_b = this.close) === null || _b === void 0 ? void 0 : _b.emit();
|
391
|
+
(_c = document.getElementById('verdocs-template-field-properties')) === null || _c === void 0 ? void 0 : _c.remove();
|
389
392
|
})
|
390
393
|
.catch(() => {
|
391
394
|
console.log('Field update failed', e);
|
package/dist/docs.json
CHANGED
@@ -2627,6 +2627,7 @@ const VerdocsFieldDate = class {
|
|
2627
2627
|
const field = this.fieldStore.get('fields').find(field => field.name === this.fieldname);
|
2628
2628
|
const roleIndex = getRoleIndex(this.roleStore, field.role_name);
|
2629
2629
|
const backgroundColor = field['rgba'] || getRGBA(roleIndex);
|
2630
|
+
console.log('role index', roleIndex, field, backgroundColor);
|
2630
2631
|
if (!field) {
|
2631
2632
|
return h(Fragment, null);
|
2632
2633
|
}
|
@@ -2636,7 +2637,7 @@ const VerdocsFieldDate = class {
|
|
2636
2637
|
const formatted = (settings === null || settings === void 0 ? void 0 : settings.result) ? format(new Date(settings === null || settings === void 0 ? void 0 : settings.result), FORMAT_DATE) : '';
|
2637
2638
|
return h(Host, { class: { done: this.done } }, formatted);
|
2638
2639
|
}
|
2639
|
-
return (h(Host, { class: { required: field === null || field === void 0 ? void 0 : field.required, disabled }, style: { backgroundColor } },
|
2640
|
+
return (h(Host, { class: { required: field === null || field === void 0 ? void 0 : field.required, disabled }, style: { backgroundColor } }, this.editable && (h(Fragment, null, h("div", { id: `verdocs-settings-panel-trigger-${field.name}`, style: { transform: `scale(${Math.floor((1 / this.xscale) * 1000) / 1000}, ${Math.floor((1 / this.yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: SettingsIcon, onClick: (e) => {
|
2640
2641
|
e.stopPropagation();
|
2641
2642
|
this.showingProperties = !this.showingProperties;
|
2642
2643
|
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${field.name}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: field.name, onClose: () => (this.showingProperties = false), onDelete: () => {
|
@@ -356,7 +356,7 @@ const VerdocsTemplateFieldProperties = class {
|
|
356
356
|
}
|
357
357
|
}
|
358
358
|
handleCancel(e) {
|
359
|
-
var _a, _b, _c, _d;
|
359
|
+
var _a, _b, _c, _d, _e;
|
360
360
|
e.stopPropagation();
|
361
361
|
const field = this.fieldStore.get('fields').find(field => field.name === this.fieldName);
|
362
362
|
if (field) {
|
@@ -371,6 +371,7 @@ const VerdocsTemplateFieldProperties = class {
|
|
371
371
|
}
|
372
372
|
this.dirty = false;
|
373
373
|
(_d = this.close) === null || _d === void 0 ? void 0 : _d.emit();
|
374
|
+
(_e = document.getElementById('verdocs-template-field-properties')) === null || _e === void 0 ? void 0 : _e.remove();
|
374
375
|
}
|
375
376
|
handleSave(e) {
|
376
377
|
e.stopPropagation();
|
@@ -399,7 +400,7 @@ const VerdocsTemplateFieldProperties = class {
|
|
399
400
|
console.log('FP: Will update', this.fieldName, newProperties);
|
400
401
|
updateField(this.endpoint, this.templateId, this.fieldName, newProperties)
|
401
402
|
.then(updated => {
|
402
|
-
var _a, _b;
|
403
|
+
var _a, _b, _c;
|
403
404
|
this.dirty = false;
|
404
405
|
const newFields = [
|
405
406
|
...this.fieldStore.get('fields').map(field => {
|
@@ -412,6 +413,7 @@ const VerdocsTemplateFieldProperties = class {
|
|
412
413
|
this.fieldStore.set('fields', newFields);
|
413
414
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldName, settings: newProperties, field: updated });
|
414
415
|
(_b = this.close) === null || _b === void 0 ? void 0 : _b.emit();
|
416
|
+
(_c = document.getElementById('verdocs-template-field-properties')) === null || _c === void 0 ? void 0 : _c.remove();
|
415
417
|
})
|
416
418
|
.catch(() => {
|
417
419
|
console.log('Field update failed', e);
|
@@ -445,12 +447,13 @@ const VerdocsTemplateFieldProperties = class {
|
|
445
447
|
newProperties.setting.options = [...this.options];
|
446
448
|
updateField(this.endpoint, this.templateId, this.fieldName, newProperties)
|
447
449
|
.then(updated => {
|
448
|
-
var _a, _b;
|
450
|
+
var _a, _b, _c;
|
449
451
|
this.dirty = false;
|
450
452
|
updateStoreField(this.fieldStore, this.fieldName, updated);
|
451
453
|
this.fieldName = updated.name;
|
452
454
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldName, settings: newProperties, field: updated });
|
453
455
|
(_b = this.close) === null || _b === void 0 ? void 0 : _b.emit();
|
456
|
+
(_c = document.getElementById('verdocs-template-field-properties')) === null || _c === void 0 ? void 0 : _c.remove();
|
454
457
|
})
|
455
458
|
.catch(() => {
|
456
459
|
console.log('Field update failed', e);
|