@verdocs/web-sdk 2.3.51 → 2.3.52

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.
@@ -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);
@@ -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);
@@ -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);