@alfresco/adf-core 8.0.3 → 8.0.5

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.
@@ -112,6 +112,15 @@ export declare class PdfViewerComponent implements OnChanges, OnDestroy {
112
112
  * @param ticks number of ticks to scale
113
113
  */
114
114
  zoomOut(ticks?: number): void;
115
+ /**
116
+ * Rotate the currently displayed page 90 degrees counter-clockwise.
117
+ *
118
+ * Only the current page is affected; every other page keeps its own rotation.
119
+ * The angle wraps around, so four consecutive calls return the page to its
120
+ * original orientation (0 → 270 → 180 → 90 → 0). The document overflow state
121
+ * is recomputed afterwards, since rotation swaps the page width and height.
122
+ */
123
+ rotatePage(): void;
115
124
  /**
116
125
  * load the previous page
117
126
  */
@@ -15,13 +15,15 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { FocusableOption } from '@angular/cdk/a11y';
18
- import { OnInit } from '@angular/core';
18
+ import { ElementRef, OnInit } from '@angular/core';
19
+ import { DomSanitizer } from '@angular/platform-browser';
19
20
  import * as i0 from "@angular/core";
20
21
  export declare class PdfThumbComponent implements OnInit, FocusableOption {
21
- private readonly sanitizer;
22
- private readonly element;
22
+ private sanitizer;
23
+ private element;
23
24
  page: any;
24
25
  image$: Promise<string>;
26
+ constructor(sanitizer: DomSanitizer, element: ElementRef);
25
27
  ngOnInit(): void;
26
28
  focus(): void;
27
29
  private getThumb;
@@ -1,9 +1,9 @@
1
- import { AfterViewInit, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
2
2
  import { PdfThumbComponent } from '../pdf-viewer-thumb/pdf-viewer-thumb.component';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class PdfThumbListComponent implements OnInit, AfterViewInit, OnDestroy {
5
- private readonly element;
6
- private readonly document;
5
+ private element;
6
+ private document;
7
7
  pdfViewer: any;
8
8
  close: EventEmitter<void>;
9
9
  virtualHeight: number;
@@ -12,7 +12,7 @@ export declare class PdfThumbListComponent implements OnInit, AfterViewInit, OnD
12
12
  width: number;
13
13
  currentHeight: number;
14
14
  private items;
15
- private readonly margin;
15
+ private margin;
16
16
  private itemHeight;
17
17
  private previouslyFocusedElement;
18
18
  private keyManager;
@@ -20,13 +20,15 @@ export declare class PdfThumbListComponent implements OnInit, AfterViewInit, OnD
20
20
  thumbsList: QueryList<PdfThumbComponent>;
21
21
  onKeydown(event: KeyboardEvent): void;
22
22
  onResize(): void;
23
+ constructor(element: ElementRef, document: any);
23
24
  ngOnInit(): void;
24
25
  ngAfterViewInit(): void;
25
26
  ngOnDestroy(): void;
27
+ trackByFn(_: number, item: any): number;
26
28
  isSelected(pageNumber: number): boolean;
27
29
  goTo(pageNumber: number): void;
28
30
  scrollInto(pageNumber: number): void;
29
- getPages(): any[];
31
+ getPages(): any;
30
32
  private setHeight;
31
33
  private calculateHeight;
32
34
  private calculateItems;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfresco/adf-core",
3
3
  "description": "Alfresco ADF core",
4
- "version": "8.0.3",
4
+ "version": "8.0.5",
5
5
  "author": "Hyland Software, Inc. and its affiliates",
6
6
  "repository": {
7
7
  "type": "git",
@@ -63,8 +63,8 @@
63
63
  "@angular/router": ">=16.0.0",
64
64
  "@mat-datetimepicker/core": ">=12.0.1",
65
65
  "@ngx-translate/core": ">=16.0.0",
66
- "@alfresco/js-api": ">=9.0.2",
67
- "@alfresco/adf-extensions": ">=8.0.2",
66
+ "@alfresco/js-api": ">=9.0.5",
67
+ "@alfresco/adf-extensions": ">=8.0.5",
68
68
  "minimatch": ">=10.0.0",
69
69
  "pdfjs-dist": ">=3.3.122",
70
70
  "ts-morph": ">=20.0.0"