cat-documents-ng 0.3.72 → 0.3.74

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
@@ -7425,7 +7425,7 @@ class DocumentContentViewerComponent {
7425
7425
  * @type {boolean}
7426
7426
  */
7427
7427
  get isPdf() {
7428
- const ext = this.getFileExtension(this.documentUrl || this.documentName);
7428
+ const ext = this.getFileExtension(this.documentName);
7429
7429
  return ext === SHARED.PDF || ext === SHARED.PDF2;
7430
7430
  }
7431
7431
  /**
@@ -7441,7 +7441,7 @@ class DocumentContentViewerComponent {
7441
7441
  * @type {boolean}
7442
7442
  */
7443
7443
  get isWord() {
7444
- const ext = this.getFileExtension(this.documentUrl || this.documentName);
7444
+ const ext = this.getFileExtension(this.documentName);
7445
7445
  return ext === SHARED.DOCX || ext === SHARED.DOC;
7446
7446
  }
7447
7447
  /**
@@ -7449,7 +7449,7 @@ class DocumentContentViewerComponent {
7449
7449
  * @type {boolean}
7450
7450
  */
7451
7451
  get isCsv() {
7452
- const ext = this.getFileExtension(this.documentUrl || this.documentName);
7452
+ const ext = this.getFileExtension(this.documentName);
7453
7453
  return ext === SHARED.CSV;
7454
7454
  }
7455
7455
  /**
@@ -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 });