@verdocs/web-sdk 2.2.46 → 2.2.48

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.
@@ -72,7 +72,7 @@ const VerdocsFieldInitial = class {
72
72
  // TemplateStore.updateCount++;
73
73
  }
74
74
  render() {
75
- var _a, _b;
75
+ var _a, _b, _c;
76
76
  const settings = utils.getFieldSettings(this.field);
77
77
  const value = settings.base64 || this.tempInitials;
78
78
  const disabled = (_b = (_a = this.disabled) !== null && _a !== void 0 ? _a : settings.disabled) !== null && _b !== void 0 ? _b : false;
@@ -80,7 +80,7 @@ const VerdocsFieldInitial = class {
80
80
  if (this.done) {
81
81
  return index.h(index.Host, { class: { done: this.done } }, value && index.h("img", { src: value, alt: "Initials" }));
82
82
  }
83
- return (index.h(index.Host, { class: { required: settings.required, disabled }, style: { backgroundColor } }, value ? (index.h("img", { src: value, alt: "Initials" })) : (index.h("button", { class: {}, onClick: () => !disabled && this.handleShow() }, "Initials")), this.editable && (index.h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, index.h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
83
+ return (index.h(index.Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled }, style: { backgroundColor } }, value ? (index.h("img", { src: value, alt: "Initials" })) : (index.h("button", { class: {}, onClick: () => !disabled && this.handleShow() }, "Initials")), this.editable && (index.h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, index.h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
84
84
  var _a;
85
85
  (_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
86
86
  return this.hideSettingsPanel();
@@ -414,7 +414,7 @@ const VerdocsSign = class {
414
414
  console.log('[SIGN] onfieldInput', e.detail, e.target.value);
415
415
  // These field types don't emit fieldChange. Should we standardize on that? We don't tap "input" for fields like
416
416
  // text boxes because we'd be updating the field on every keystroke. We do those on blur which fires fieldChange.
417
- if (e.target.name.includes('checkbox_group') || e.target.name.includes('radio_button_group')) {
417
+ if (e.target.name.includes('date') || e.target.name.includes('checkbox_group') || e.target.name.includes('radio_button_group')) {
418
418
  console.log('CB', e.target);
419
419
  this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());
420
420
  }
@@ -393,7 +393,7 @@ export class VerdocsSign {
393
393
  console.log('[SIGN] onfieldInput', e.detail, e.target.value);
394
394
  // These field types don't emit fieldChange. Should we standardize on that? We don't tap "input" for fields like
395
395
  // text boxes because we'd be updating the field on every keystroke. We do those on blur which fires fieldChange.
396
- if (e.target.name.includes('checkbox_group') || e.target.name.includes('radio_button_group')) {
396
+ if (e.target.name.includes('date') || e.target.name.includes('checkbox_group') || e.target.name.includes('radio_button_group')) {
397
397
  console.log('CB', e.target);
398
398
  this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());
399
399
  }
@@ -56,7 +56,7 @@ export class VerdocsFieldInitial {
56
56
  // TemplateStore.updateCount++;
57
57
  }
58
58
  render() {
59
- var _a, _b;
59
+ var _a, _b, _c;
60
60
  const settings = getFieldSettings(this.field);
61
61
  const value = settings.base64 || this.tempInitials;
62
62
  const disabled = (_b = (_a = this.disabled) !== null && _a !== void 0 ? _a : settings.disabled) !== null && _b !== void 0 ? _b : false;
@@ -64,7 +64,7 @@ export class VerdocsFieldInitial {
64
64
  if (this.done) {
65
65
  return h(Host, { class: { done: this.done } }, value && h("img", { src: value, alt: "Initials" }));
66
66
  }
67
- return (h(Host, { class: { required: settings.required, disabled }, style: { backgroundColor } }, value ? (h("img", { src: value, alt: "Initials" })) : (h("button", { class: {}, onClick: () => !disabled && this.handleShow() }, "Initials")), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
67
+ return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled }, style: { backgroundColor } }, value ? (h("img", { src: value, alt: "Initials" })) : (h("button", { class: {}, onClick: () => !disabled && this.handleShow() }, "Initials")), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
68
68
  var _a;
69
69
  (_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
70
70
  return this.hideSettingsPanel();
@@ -72,7 +72,7 @@ const VerdocsFieldInitial$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
72
72
  // TemplateStore.updateCount++;
73
73
  }
74
74
  render() {
75
- var _a, _b;
75
+ var _a, _b, _c;
76
76
  const settings = getFieldSettings(this.field);
77
77
  const value = settings.base64 || this.tempInitials;
78
78
  const disabled = (_b = (_a = this.disabled) !== null && _a !== void 0 ? _a : settings.disabled) !== null && _b !== void 0 ? _b : false;
@@ -80,7 +80,7 @@ const VerdocsFieldInitial$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
80
80
  if (this.done) {
81
81
  return h(Host, { class: { done: this.done } }, value && h("img", { src: value, alt: "Initials" }));
82
82
  }
83
- return (h(Host, { class: { required: settings.required, disabled }, style: { backgroundColor } }, value ? (h("img", { src: value, alt: "Initials" })) : (h("button", { class: {}, onClick: () => !disabled && this.handleShow() }, "Initials")), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
83
+ return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled }, style: { backgroundColor } }, value ? (h("img", { src: value, alt: "Initials" })) : (h("button", { class: {}, onClick: () => !disabled && this.handleShow() }, "Initials")), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
84
84
  var _a;
85
85
  (_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
86
86
  return this.hideSettingsPanel();
@@ -416,7 +416,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
416
416
  console.log('[SIGN] onfieldInput', e.detail, e.target.value);
417
417
  // These field types don't emit fieldChange. Should we standardize on that? We don't tap "input" for fields like
418
418
  // text boxes because we'd be updating the field on every keystroke. We do those on blur which fires fieldChange.
419
- if (e.target.name.includes('checkbox_group') || e.target.name.includes('radio_button_group')) {
419
+ if (e.target.name.includes('date') || e.target.name.includes('checkbox_group') || e.target.name.includes('radio_button_group')) {
420
420
  console.log('CB', e.target);
421
421
  this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());
422
422
  }