@rangertechnologies/ngnxt 2.1.309 → 2.1.310

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.
@@ -50238,10 +50238,10 @@ class NxtFileUpload {
50238
50238
  this.copyOfInputAllFiles = [...inputFiles];
50239
50239
  this.cdRef.markForCheck(); // Trigger change detection
50240
50240
  let change = {};
50241
- change['fromQuestionId'] = this.config.id;
50241
+ change['fromQuestionId'] = this.config?.id;
50242
50242
  change['valueObj'] = inputFiles;
50243
- change['field'] = this.config.subText.defaultField || (Array.isArray(this.config.subText?.field) ? this.config.subText?.field?.[0] : this.config.subText?.field);
50244
- change['referenceField'] = this.config.referenceField;
50243
+ change['field'] = this.config?.subText?.defaultField || (Array.isArray(this.config?.subText?.field) ? this.config?.subText?.field?.[0] : this.config?.subText?.field);
50244
+ change['referenceField'] = this.config?.referenceField;
50245
50245
  this.selectedFileData.emit({ config: this.config, value: change });
50246
50246
  }).catch(() => {
50247
50247
  // console.error('Error reading files');
@@ -50259,10 +50259,10 @@ class NxtFileUpload {
50259
50259
  this.copyOfInputAllFiles.length > 0 ? this.viewFile(this.copyOfInputAllFiles[0]) : this.viewFile(null);
50260
50260
  this.deletedFileData.emit(deletedFile[0]);
50261
50261
  let change;
50262
- change['fromQuestionId'] = this.config.id;
50262
+ change['fromQuestionId'] = this.config?.id;
50263
50263
  change['valueObj'] = this.copyOfInputAllFiles;
50264
- change['field'] = this.config.subText.defaultField || (Array.isArray(this.config.subText?.field) ? this.config.subText?.field?.[0] : this.config.subText?.field);
50265
- change['referenceField'] = this.config.referenceField;
50264
+ change['field'] = this.config?.subText?.defaultField || (Array.isArray(this.config?.subText?.field) ? this.config?.subText?.field?.[0] : this.config?.subText?.field);
50265
+ change['referenceField'] = this.config?.referenceField;
50266
50266
  this.selectedFileData.emit({ config: this.config, value: change });
50267
50267
  this.cdRef.markForCheck(); // Trigger change detection
50268
50268
  }
@@ -50354,10 +50354,10 @@ class NxtFileUpload {
50354
50354
  let ques = this.config;
50355
50355
  ques['singleFieldChange'] = true;
50356
50356
  let change = {};
50357
- change['fromQuestionId'] = this.config.id;
50357
+ change['fromQuestionId'] = this.config?.id;
50358
50358
  change['valueObj'] = this.copyOfInputAllFiles;
50359
- change['field'] = this.config.subText.defaultField || (Array.isArray(this.config.subText?.field) ? this.config.subText?.field?.[0] : this.config.subText?.field);
50360
- change['referenceField'] = this.config.referenceField;
50359
+ change['field'] = this.config?.subText?.defaultField || (Array.isArray(this.config?.subText?.field) ? this.config?.subText?.field?.[0] : this.config?.subText?.field);
50360
+ change['referenceField'] = this.config?.referenceField;
50361
50361
  this.selectedFileData.emit({ config: ques, value: change });
50362
50362
  this.viewEdit = false; // Exit view edit mode
50363
50363
  this.mode = 'view'; // Switch back to view mode
@@ -50377,7 +50377,7 @@ class NxtFileUpload {
50377
50377
  }
50378
50378
  else if (file?.id && this.config?.subText?.downloadEndpoint) {
50379
50379
  // API download case
50380
- const endpoint = this.config.subText.downloadEndpoint;
50380
+ const endpoint = this.config?.subText?.downloadEndpoint;
50381
50381
  const url = `${endpoint}?id=${file.id}`;
50382
50382
  window.open(url, '_blank');
50383
50383
  }
@@ -50548,10 +50548,10 @@ class NxtFileUpload {
50548
50548
  this.copyOfInputAllFiles = [...inputFiles];
50549
50549
  this.cdRef.markForCheck();
50550
50550
  let change = {};
50551
- change['fromQuestionId'] = this.config.id;
50551
+ change['fromQuestionId'] = this.config?.id;
50552
50552
  change['valueObj'] = inputFiles;
50553
- change['field'] = this.config.subText.defaultField || (Array.isArray(this.config.subText?.field) ? this.config.subText?.field?.[0] : this.config.subText?.field);
50554
- change['referenceField'] = this.config.referenceField;
50553
+ change['field'] = this.config?.subText?.defaultField || (Array.isArray(this.config?.subText?.field) ? this.config?.subText?.field?.[0] : this.config?.subText?.field);
50554
+ change['referenceField'] = this.config?.referenceField;
50555
50555
  this.selectedFileData.emit({ config: this.config, value: change });
50556
50556
  }).catch(() => {
50557
50557
  // console.error('Error reading files');
@@ -58353,7 +58353,7 @@ const VERSION = {
58353
58353
  "semver": null,
58354
58354
  "suffix": "68a4eb8b-dirty",
58355
58355
  "semverString": null,
58356
- "version": "2.1.309"
58356
+ "version": "2.1.310"
58357
58357
  };
58358
58358
  /* tslint:enable */
58359
58359