cat-documents-ng 0.3.72 → 0.3.73

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.
@@ -763,14 +763,14 @@ const COUNTRIES = [
763
763
  * @type {{}}
764
764
  */
765
765
  const SUPPORTED_IMAGE_TYPES = [
766
- 'image/PNG',
767
- 'image/png',
768
- 'image/jpeg',
769
- 'image/jpg',
770
- 'image/gif',
771
- 'image/bmp',
772
- 'image/tiff',
773
- 'image/webp',
766
+ 'PNG',
767
+ 'png',
768
+ 'jpeg',
769
+ 'jpg',
770
+ 'gif',
771
+ 'bmp',
772
+ 'tiff',
773
+ 'webp',
774
774
  ];
775
775
  /**
776
776
  * @constant {Array<{label: string, value: string, files: string[]}>} DOCUMENTTYPES
@@ -7832,7 +7832,7 @@ class DocumentContentViewerComponent {
7832
7832
  return urlOrName.substring(lastDot + 1).toLowerCase();
7833
7833
  }
7834
7834
  get isImage() {
7835
- const ext = this.getFileExtension(this.documentUrl || this.documentName);
7835
+ const ext = this.getFileExtension(this.documentName);
7836
7836
  return SUPPORTED_IMAGE_TYPES.includes(ext);
7837
7837
  }
7838
7838
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DocumentContentViewerComponent, deps: [{ token: ExcelParserService }, { token: CsvParserService }, { token: DocumentHttpService }, { token: DocumentZoomService }], target: i0.ɵɵFactoryTarget.Component });