Compare commits

..
Author SHA1 Message Date
DominikIwanek 079047702f Release 8.0.3 2026-08-24 16:35:30 +02:00
DominikIwanek 85e46c7007 Release 8.0.3 2026-08-24 16:26:07 +02:00
DominikIwanek f2a0b3f826 Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-21 09:33:26 +02:00
DominikIwanek 425b4bab67 Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-21 09:14:17 +02:00
DominikIwanek 97f1136f96 Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-21 09:04:42 +02:00
DominikIwanek 9cd94f8e39 Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-21 08:45:17 +02:00
DominikIwanek 48391f2db5 Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-21 08:23:01 +02:00
DominikIwanek b923e41b2f Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-20 15:52:17 +02:00
DominikIwanek 1e0c569f47 Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-20 15:47:34 +02:00
DominikIwanek 4e38d1d44c Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-20 15:34:44 +02:00
DominikIwanek 21a275a777 Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-20 15:30:05 +02:00
DominikIwanek 5ecc05a84f Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-20 15:08:46 +02:00
DominikIwanek c52a63485b Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-20 15:01:18 +02:00
DominikIwanek d4e0da26ac Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-20 14:47:02 +02:00
DominikIwanek 4d54d8512b Release 8.0.3 - Fix PNG signature images in PDF viewer 2026-08-20 14:29:26 +02:00
16 changed files with 40 additions and 40 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@alfresco/adf-cli",
"description": "Alfresco ADF cli and utils",
"version": "8.0.4",
"version": "8.0.3",
"author": "Hyland Software, Inc. and its affiliates",
"bin": {
"adf-cli": "bin/adf-cli",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@alfresco/adf-content-services",
"description": "Alfresco ADF content services",
"version": "8.0.4",
"version": "8.0.3",
"author": "Hyland Software, Inc. and its affiliates",
"repository": {
"type": "git",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@alfresco/adf-core",
"description": "Alfresco ADF core",
"version": "8.0.4",
"version": "8.0.3",
"author": "Hyland Software, Inc. and its affiliates",
"repository": {
"type": "git",
@@ -17,7 +17,7 @@
import { FocusableOption } from '@angular/cdk/a11y';
import { AsyncPipe, NgIf } from '@angular/common';
import { Component, ElementRef, Input, OnInit, ViewEncapsulation } from '@angular/core';
import { Component, ElementRef, Input, OnInit, ViewEncapsulation, inject } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { TranslatePipe } from '@ngx-translate/core';
@@ -29,13 +29,14 @@ import { TranslatePipe } from '@ngx-translate/core';
host: { tabindex: '0' }
})
export class PdfThumbComponent implements OnInit, FocusableOption {
private readonly sanitizer = inject(DomSanitizer);
private readonly element = inject(ElementRef);
@Input()
page: any = null;
page: any;
image$: Promise<string>;
constructor(private sanitizer: DomSanitizer, private element: ElementRef) {}
ngOnInit() {
this.image$ = this.page.getPage().then((page) => this.getThumb(page));
}
@@ -2,10 +2,12 @@
data-automation-id='adf-thumbnails-content'
[style.height.px]="virtualHeight"
[style.transform]="'translate(-50%, ' + translateY + 'px)'">
<adf-pdf-thumb *ngFor="let page of renderItems; trackBy: trackByFn"
class="adf-pdf-thumbnails__thumb"
[id]="page.id"
[ngClass]="{'adf-pdf-thumbnails__thumb--selected' : isSelected(page.id)}"
[page]="page"
(click)="goTo(page.id)" />
@for (page of renderItems; track page.id) {
<adf-pdf-thumb
class="adf-pdf-thumbnails__thumb"
[id]="page.id"
[ngClass]="{'adf-pdf-thumbnails__thumb--selected' : isSelected(page.id)}"
[page]="page"
(click)="goTo(page.id)" />
}
</div>
@@ -77,7 +77,7 @@ describe('PdfThumbListComponent', () => {
fixture = TestBed.createComponent(PdfThumbListComponent);
testingUtils = new UnitTestingUtils(fixture.debugElement);
component = fixture.componentInstance;
component.pdfViewer = viewerMock;
component.pdfViewer = viewerMock as any;
// provide scrollable container
fixture.nativeElement.style.display = 'block';
@@ -17,7 +17,7 @@
import { FocusKeyManager } from '@angular/cdk/a11y';
import { DOWN_ARROW, ESCAPE, TAB, UP_ARROW } from '@angular/cdk/keycodes';
import { DOCUMENT, NgClass, NgForOf } from '@angular/common';
import { DOCUMENT, NgClass } from '@angular/common';
import {
AfterViewInit,
Component,
@@ -25,7 +25,6 @@ import {
ElementRef,
EventEmitter,
HostListener,
Inject,
Input,
OnDestroy,
OnInit,
@@ -33,7 +32,8 @@ import {
QueryList,
TemplateRef,
ViewChildren,
ViewEncapsulation
ViewEncapsulation,
inject
} from '@angular/core';
import { delay } from 'rxjs/operators';
import { PdfThumbComponent } from '../pdf-viewer-thumb/pdf-viewer-thumb.component';
@@ -43,10 +43,13 @@ import { PdfThumbComponent } from '../pdf-viewer-thumb/pdf-viewer-thumb.componen
templateUrl: './pdf-viewer-thumbnails.component.html',
styleUrls: ['./pdf-viewer-thumbnails.component.scss'],
host: { class: 'adf-pdf-thumbnails' },
imports: [PdfThumbComponent, NgClass, NgForOf],
imports: [PdfThumbComponent, NgClass],
encapsulation: ViewEncapsulation.None
})
export class PdfThumbListComponent implements OnInit, AfterViewInit, OnDestroy {
private readonly element = inject(ElementRef);
private readonly document = inject(DOCUMENT);
@Input({ required: true }) pdfViewer: any;
@Output()
@@ -54,12 +57,12 @@ export class PdfThumbListComponent implements OnInit, AfterViewInit, OnDestroy {
virtualHeight: number = 0;
translateY: number = 0;
renderItems = [];
renderItems: any[] = [];
width: number = 91;
currentHeight: number = 0;
private items = [];
private margin: number = 15;
private items: any[] = [];
private readonly margin: number = 15;
private itemHeight: number = 114 + this.margin;
private previouslyFocusedElement: HTMLElement | null = null;
private keyManager: FocusKeyManager<PdfThumbComponent>;
@@ -103,12 +106,10 @@ export class PdfThumbListComponent implements OnInit, AfterViewInit, OnDestroy {
this.calculateItems();
}
constructor(private element: ElementRef, @Inject(DOCUMENT) private document: any) {
ngOnInit() {
this.calculateItems = this.calculateItems.bind(this);
this.onPageChange = this.onPageChange.bind(this);
}
ngOnInit() {
/* cspell:disable-next-line */
this.pdfViewer.eventBus.on('pagechanging', this.onPageChange);
this.element.nativeElement.addEventListener('scroll', this.calculateItems, true);
@@ -142,10 +143,6 @@ export class PdfThumbListComponent implements OnInit, AfterViewInit, OnDestroy {
}
}
trackByFn(_: number, item: any): number {
return item.id;
}
isSelected(pageNumber: number) {
return this.pdfViewer.currentPageNumber === pageNumber;
}
@@ -168,7 +165,7 @@ export class PdfThumbListComponent implements OnInit, AfterViewInit, OnDestroy {
}
}
getPages() {
getPages(): any[] {
// eslint-disable-next-line no-underscore-dangle
return this.pdfViewer._pages.map((page) => ({
id: page.id,
@@ -219,7 +216,7 @@ export class PdfThumbListComponent implements OnInit, AfterViewInit, OnDestroy {
};
}
private onPageChange(event) {
private onPageChange(event: any) {
const index = this.renderItems.findIndex((element) => element.id === event.pageNumber);
if (index < 0) {
@@ -288,7 +288,7 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
viewer,
renderingQueue: this.renderingQueueServices,
eventBus: this.eventBus,
annotationMode: 1
annotationMode: 0
});
// cspell: disable-next
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@alfresco/eslint-plugin-eslint-angular",
"version": "8.0.4",
"version": "8.0.3",
"description": "Alfresco ADF eslint angular custom rules",
"main": "main.js",
"author": "Hyland Software, Inc. and its affiliates",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@alfresco/adf-extensions",
"description": "Provides extensibility support for ADF applications.",
"version": "8.0.4",
"version": "8.0.3",
"license": "Apache-2.0",
"author": "Hyland Software, Inc. and its affiliates",
"repository": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@alfresco/adf-insights",
"description": "Alfresco ADF insights",
"version": "8.0.4",
"version": "8.0.3",
"author": "Hyland Software, Inc. and its affiliates",
"repository": {
"type": "git",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@alfresco/js-api",
"version": "9.0.4",
"version": "9.0.3",
"license": "Apache-2.0",
"description": "JavaScript client library for the Alfresco REST API",
"author": "Hyland Software, Inc. and its affiliates",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@alfresco/adf-process-services-cloud",
"description": "Alfresco ADF process services cloud",
"version": "8.0.4",
"version": "8.0.3",
"author": "Hyland Software, Inc. and its affiliates",
"repository": {
"type": "git",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@alfresco/adf-process-services",
"description": "Alfresco ADF process services",
"version": "8.0.4",
"version": "8.0.3",
"author": "Hyland Software, Inc. and its affiliates",
"repository": {
"type": "git",
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "alfresco-ng2-components",
"version": "8.0.4",
"version": "8.0.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "alfresco-ng2-components",
"version": "8.0.4",
"version": "8.0.3",
"license": "Apache-2.0",
"dependencies": {
"@angular/animations": "19.2.6",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "alfresco-ng2-components",
"description": "Alfresco Angular components",
"version": "8.0.4",
"version": "8.0.3",
"author": "Hyland Software, Inc. and its affiliates",
"scripts": {
"prepare": "husky install",