@progress/kendo-angular-pdfviewer 24.2.2 → 25.0.0-develop.2

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.
@@ -1,361 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
6
- import { LicenseMessage } from '@progress/kendo-licensing';
7
- import { LoaderSettings } from './models/loader-settings';
8
- import { TypedArray } from '@progress/kendo-pdfviewer-common';
9
- import { PDFViewerContext } from './models/pdfviewer-context';
10
- import { LocalizationService } from '@progress/kendo-angular-l10n';
11
- import { PDFViewerDownloadEvent, PDFViewerErrorEvent, PDFViewerLoadEvent, PDFViewerPageChangeEvent, PDFViewerZoomChangeEvent } from './models/events';
12
- import { SaveOptions } from '@progress/kendo-file-saver';
13
- import { PageChangeEvent } from '@progress/kendo-angular-pager';
14
- import { SelectEvent } from '@progress/kendo-angular-upload';
15
- import { ZoomLevel } from './models/zoom-level';
16
- import { PDFViewerTool } from './models/toolbar-tool';
17
- import { ToolbarComponent } from './toolbar/toolbar.component';
18
- import { BlankPageTemplateDirective } from './templates/blank-page-template.directive';
19
- import 'pdfjs-dist/build/pdf.worker.min.mjs';
20
- import { AnnotationEditorType } from './models/annotation-editor.type';
21
- import { PopupService } from '@progress/kendo-angular-popup';
22
- import * as i0 from "@angular/core";
23
- /**
24
- * Represents the [Kendo UI PDFViewer component for Angular](https://www.telerik.com/kendo-angular-ui/components/pdfviewer).
25
- *
26
- * @example
27
- * ```html
28
- * <kendo-pdfviewer
29
- * [url]="pdfUrl"
30
- * [zoom]="1.25"
31
- * [tools]="['pager', 'zoomInOut', 'zoom', 'download', 'print']">
32
- * </kendo-pdfviewer>
33
- * ```
34
- *
35
- * @remarks
36
- * Supported children components are: {@link PDFViewerCustomMessagesComponent}
37
- */
38
- export declare class PDFViewerComponent implements OnInit, OnDestroy {
39
- private ngZone;
40
- private renderer;
41
- private localizationService;
42
- private cdr;
43
- private host;
44
- private popupService;
45
- hostClass: boolean;
46
- direction: string;
47
- display: string;
48
- /**
49
- * Represents the tools collection rendered in the toolbar.
50
- * @default ['pager', 'spacer', 'zoomInOut', 'zoom', 'selection', 'spacer', 'search', 'open', 'download', 'print', 'annotations' ]
51
- */
52
- tools: PDFViewerTool[];
53
- /**
54
- * The configuration of the internal Loader component.
55
- * @default { size: 'large', type: 'pulsing', themeColor: 'primary' }
56
- */
57
- loaderSettings: LoaderSettings;
58
- /**
59
- * Enables form filling capabilities by rendering widgets such as:
60
- *
61
- * - Text Box&mdash;Enables users to input and edit text within designated form fields.
62
- * - Password Box&mdash;Provides secure entry of sensitive information through password-protected fields.
63
- * - Check Box&mdash;Lets users toggle between selected and deselected states for predefined options.
64
- * - Radio Button&mdash;Implements radio button functionality for selecting exclusive options within a group.
65
- * - Select&mdash;Allows users to select one or multiple options from a list of predefined items.
66
- * @default false
67
- */
68
- renderForms: boolean;
69
- /**
70
- * The name of the file that will be saved when the end user clicks the Download tool.
71
- * @default 'Download'
72
- */
73
- saveFileName: string;
74
- /**
75
- * Represents the options for saving the file when the end user clicks the Download tool.
76
- * @default {}
77
- */
78
- saveOptions: SaveOptions;
79
- /**
80
- * Represents the url of the PDF file.
81
- */
82
- url: string | undefined;
83
- /**
84
- * Represents the data of the PDF file in [Base64 format](https://developer.mozilla.org/en-US/docs/Glossary/Base64).
85
- */
86
- data: string | undefined;
87
- /**
88
- * Represents the raw [binary data buffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) of the PDF file.
89
- */
90
- arrayBuffer: ArrayBuffer | undefined;
91
- /**
92
- * Represents the data of the PDF file in [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) format.
93
- */
94
- typedArray: TypedArray | undefined;
95
- /**
96
- * Sets the initial zoom level of the PDF document
97
- * ([see example](https://www.telerik.com/kendo-angular-ui/components/pdfviewer/tools#zooming-tools)).
98
- *
99
- * @default 1.25
100
- */
101
- set zoom(value: number | 'fitToPage' | 'fitToWidth');
102
- get zoom(): number;
103
- /**
104
- * Represents the step the zoom level will be changed with when using the **ZoomIn** and **ZoomOut** tools.
105
- * @default 0.25
106
- */
107
- zoomRate: number;
108
- /**
109
- * Represents minimum allowed zoom value.
110
- * @default 0.5
111
- */
112
- minZoom: number;
113
- /**
114
- * Represents maximum allowed zoom value.
115
- * @default 4
116
- */
117
- maxZoom: number;
118
- /**
119
- * Sets whether the component loads all PDF document pages at once or loads new pages on demand when needed.
120
- *
121
- * @default false
122
- */
123
- loadOnDemand: boolean;
124
- /**
125
- * Sets the number of pages to load on demand when the `loadOnDemand` property is `true`.
126
- *
127
- * @default 1
128
- */
129
- loadOnDemandPageSize: number;
130
- /**
131
- * Determines whether a confirmation dialog is shown when the user tries to delete an annotation.
132
- *
133
- * @default true
134
- */
135
- removeAnnotationConfirmation: boolean;
136
- /**
137
- * Fires when the user selects a file, from the blank page, to be loaded in the PDFViewer.
138
- */
139
- fileSelect: EventEmitter<SelectEvent>;
140
- /**
141
- * Fires when the component loads a PDF document successfully.
142
- */
143
- load: EventEmitter<PDFViewerLoadEvent>;
144
- /**
145
- * Fires when an error occurs while loading or downloading the PDF document.
146
- */
147
- error: EventEmitter<PDFViewerErrorEvent>;
148
- /**
149
- * Fires when the user clicks the **Download** tool of the loaded PDF document.
150
- */
151
- download: EventEmitter<PDFViewerDownloadEvent>;
152
- /**
153
- * Fires when the user changes the page of the loaded PDF document.
154
- */
155
- pageChange: EventEmitter<PDFViewerPageChangeEvent>;
156
- /**
157
- * Fires when the user changes the zoom level of the loaded PDF document.
158
- */
159
- zoomLevelChange: EventEmitter<PDFViewerZoomChangeEvent>;
160
- private pagesContainer;
161
- private pagesContainerViewContainerRef;
162
- private dialogContainerViewContainerRef;
163
- /**
164
- * The template for the blank page displayed before a PDF document is loaded.
165
- * Use this to customize the appearance of the blank page.
166
- */
167
- blankPageTemplate: BlankPageTemplateDirective;
168
- /**
169
- * Returns the current page number of the loaded PDF document.
170
- */
171
- get currentPage(): number;
172
- set pdfContext(doc: PDFViewerContext);
173
- /**
174
- * Exposes the loaded `PDF.js` document, its pages, and their DOM element wrapper.
175
- */
176
- get pdfContext(): PDFViewerContext;
177
- /**
178
- * @hidden
179
- */
180
- get activePageId(): string;
181
- /**
182
- * @hidden
183
- */
184
- get pagesContainerId(): string;
185
- /**
186
- * @hidden
187
- */
188
- get annotationsToolbarId(): string;
189
- /**
190
- * @hidden
191
- */
192
- get annotationsToolId(): string;
193
- /**
194
- * @hidden
195
- */
196
- get pdfId(): string;
197
- loading: boolean;
198
- searchActive: boolean;
199
- matchCase: boolean;
200
- currentMatches: any[];
201
- currentMatch: number;
202
- showAnnotationsToolbar: boolean;
203
- /**
204
- * @hidden
205
- */
206
- set enabledSelection(value: boolean);
207
- /**
208
- * @hidden
209
- */
210
- get enabledSelection(): boolean;
211
- /**
212
- * @hidden
213
- */
214
- get isBlankPage(): boolean;
215
- /**
216
- * @hidden
217
- */
218
- onSetAnnotationMode(mode: AnnotationEditorType): void;
219
- /**
220
- * @hidden
221
- */
222
- showLicenseWatermark: boolean;
223
- /**
224
- * @hidden
225
- */
226
- licenseMessage?: LicenseMessage;
227
- skip: number;
228
- zoomOptionsData: ({
229
- id: number;
230
- text: string;
231
- type: string;
232
- displayValue: string;
233
- value: number;
234
- } | {
235
- id: number;
236
- text: string;
237
- displayValue: string;
238
- value: number;
239
- type?: undefined;
240
- })[];
241
- zoomLevel: ZoomLevel;
242
- private _pdfContext;
243
- private _enabledSelection;
244
- private _zoom;
245
- private _fitType;
246
- private _zoomToFit;
247
- private subs;
248
- private popupSub;
249
- private emitLoad;
250
- private pdfViewerWidget;
251
- constructor(ngZone: NgZone, renderer: Renderer2, localizationService: LocalizationService, cdr: ChangeDetectorRef, host: ElementRef, popupService: PopupService);
252
- ngOnInit(): void;
253
- ngOnDestroy(): void;
254
- ngOnChanges(changes: SimpleChanges): void;
255
- /**
256
- * Scrolls the PDFViewer document to the specified page number, treating 0 as the first page
257
- * ([see example](https://www.telerik.com/kendo-angular-ui/components/pdfviewer/tools#programmatically-scrolling-the-pdfviewer)).
258
- */
259
- scrollToPage(page: number): void;
260
- /**
261
- * Unloads the PDF document and displays a blank page.
262
- */
263
- unloadDocument(): void;
264
- /**
265
- * @hidden
266
- */
267
- messageFor(key: string): string;
268
- /**
269
- * @hidden
270
- */
271
- onFileSelect(e: string | ArrayBuffer): void;
272
- /**
273
- * @hidden
274
- */
275
- onFileSelectError(e: any): void;
276
- /**
277
- * @hidden
278
- */
279
- onPageChange(e: PageChangeEvent): void;
280
- /**
281
- * @hidden
282
- */
283
- onPanningEnabled(): void;
284
- /**
285
- * @hidden
286
- */
287
- onSelectionEnabled(): void;
288
- /**
289
- * @hidden
290
- */
291
- onDownload(): void;
292
- /**
293
- * @hidden
294
- */
295
- stopPropagation: (e: any) => void;
296
- /**
297
- * @hidden
298
- */
299
- onZoomIn(): void;
300
- /**
301
- * @hidden
302
- */
303
- onZoomOut(): void;
304
- /**
305
- * @hidden
306
- */
307
- onZoomLevelChange(zoomLevel: ZoomLevel, emit?: boolean): void;
308
- /**
309
- * @hidden
310
- */
311
- onSearch(): void;
312
- /**
313
- * @hidden
314
- */
315
- onPrint(): void;
316
- /**
317
- * @hidden
318
- */
319
- onSearchChange(e: {
320
- text: string;
321
- matchCase: boolean;
322
- }): void;
323
- /**
324
- * @hidden
325
- */
326
- closeSearch(toolbar: ToolbarComponent): void;
327
- /**
328
- * @hidden
329
- */
330
- onNextMatch(): void;
331
- /**
332
- * @hidden
333
- */
334
- onPreviousMatch(): void;
335
- /**
336
- * @hidden
337
- */
338
- onSelectFile(e: SelectEvent): void;
339
- /**
340
- * @hidden
341
- */
342
- toggleAnnotationsToolbar(): void;
343
- private loadPdf;
344
- private removePdfPageElements;
345
- private assignPageIds;
346
- private setZoomLevel;
347
- private verifySettings;
348
- private isSet;
349
- private scrollHandler;
350
- private loadHandler;
351
- private zoomEndHandler;
352
- private errorHandler;
353
- private annotationPopup;
354
- private observer;
355
- private onAnnotationEditorToolBarShowHandler;
356
- private onAnnotationEditorToolBarHideHandler;
357
- private zoneAwareEmitter;
358
- private classMutationObserver;
359
- static ɵfac: i0.ɵɵFactoryDeclaration<PDFViewerComponent, never>;
360
- static ɵcmp: i0.ɵɵComponentDeclaration<PDFViewerComponent, "kendo-pdfviewer", ["kendo-pdfviewer"], { "tools": { "alias": "tools"; "required": false; }; "loaderSettings": { "alias": "loaderSettings"; "required": false; }; "renderForms": { "alias": "renderForms"; "required": false; }; "saveFileName": { "alias": "saveFileName"; "required": false; }; "saveOptions": { "alias": "saveOptions"; "required": false; }; "url": { "alias": "url"; "required": false; }; "data": { "alias": "data"; "required": false; }; "arrayBuffer": { "alias": "arrayBuffer"; "required": false; }; "typedArray": { "alias": "typedArray"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "zoomRate": { "alias": "zoomRate"; "required": false; }; "minZoom": { "alias": "minZoom"; "required": false; }; "maxZoom": { "alias": "maxZoom"; "required": false; }; "loadOnDemand": { "alias": "loadOnDemand"; "required": false; }; "loadOnDemandPageSize": { "alias": "loadOnDemandPageSize"; "required": false; }; "removeAnnotationConfirmation": { "alias": "removeAnnotationConfirmation"; "required": false; }; }, { "fileSelect": "fileSelect"; "load": "load"; "error": "error"; "download": "download"; "pageChange": "pageChange"; "zoomLevelChange": "zoomLevelChange"; }, ["blankPageTemplate"], never, true, never>;
361
- }
@@ -1,31 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "./pdfviewer.component";
7
- import * as i2 from "./localization/custom-messages.component";
8
- import * as i3 from "./templates/blank-page-template.directive";
9
- /**
10
- * Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the PDFViewer component.
11
- *
12
- * @example
13
- * ```typescript
14
- * import { NgModule } from '@angular/core';
15
- * import { BrowserModule } from '@angular/platform-browser';
16
- * import { PDFViewerModule } from '@progress/kendo-angular-pdf-viewer';
17
- * import { AppComponent } from './app.component';
18
- *
19
- * @NgModule({
20
- * declarations: [AppComponent],
21
- * imports: [BrowserModule, PDFViewerModule],
22
- * bootstrap: [AppComponent]
23
- * })
24
- * export class AppModule {}
25
- * ```
26
- */
27
- export declare class PDFViewerModule {
28
- static ɵfac: i0.ɵɵFactoryDeclaration<PDFViewerModule, never>;
29
- static ɵmod: i0.ɵɵNgModuleDeclaration<PDFViewerModule, never, [typeof i1.PDFViewerComponent, typeof i2.PDFViewerCustomMessagesComponent, typeof i3.BlankPageTemplateDirective], [typeof i1.PDFViewerComponent, typeof i2.PDFViewerCustomMessagesComponent, typeof i3.BlankPageTemplateDirective]>;
30
- static ɵinj: i0.ɵɵInjectorDeclaration<PDFViewerModule>;
31
- }
@@ -1,28 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { TemplateRef } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Renders the content of the blank page in the PDFViewer component.
9
- *
10
- * To define a blank page template, nest an `<ng-template>` tag with the `kendoPdfViewerBlankPageTemplate` directive inside the `<kendo-pdfviewer>` tag.
11
- *
12
- * @example
13
- * ```html
14
- * <kendo-pdfviewer>
15
- * <ng-template kendoPdfViewerBlankPageTemplate>
16
- * <div class="custom-blank-page">
17
- * <p>Drop a PDF file here or click to select</p>
18
- * </div>
19
- * </ng-template>
20
- * </kendo-pdfviewer>
21
- * ```
22
- */
23
- export declare class BlankPageTemplateDirective {
24
- templateRef: TemplateRef<any>;
25
- constructor(templateRef: TemplateRef<any>);
26
- static ɵfac: i0.ɵɵFactoryDeclaration<BlankPageTemplateDirective, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<BlankPageTemplateDirective, "[kendoPdfViewerBlankPageTemplate]", never, {}, {}, never, never, true, never>;
28
- }
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ElementRef, Renderer2 } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @hidden
9
- */
10
- export declare class ToolbarInputWrapperComponent {
11
- private host;
12
- private renderer;
13
- toolbarTool: any;
14
- hostClass: boolean;
15
- private subs;
16
- constructor(host: ElementRef, renderer: Renderer2);
17
- ngAfterViewInit(): void;
18
- ngOnDestroy(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarInputWrapperComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarInputWrapperComponent, "kendo-toolbar-input-wrapper", never, { "toolbarTool": { "alias": "toolbarTool"; "required": false; }; }, {}, never, ["*"], true, never>;
21
- }
@@ -1,40 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { AfterViewInit, EventEmitter } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { SVGIcon } from '@progress/kendo-svg-icons';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * @hidden
11
- */
12
- export declare class PDFViewerSearchComponent implements AfterViewInit {
13
- private localization;
14
- private textbox;
15
- private closeButton;
16
- ariaRole: string;
17
- get ariaLabel(): string;
18
- onEscape(): void;
19
- matches: number;
20
- currentMatch: number;
21
- searchChange: EventEmitter<{
22
- text: string;
23
- matchCase: boolean;
24
- }>;
25
- prevMatch: EventEmitter<any>;
26
- nextMatch: EventEmitter<any>;
27
- close: EventEmitter<any>;
28
- convertLowercaseIcon: SVGIcon;
29
- arrowUpIcon: SVGIcon;
30
- arrowDownIcon: SVGIcon;
31
- xIcon: SVGIcon;
32
- value: string;
33
- matchCase: boolean;
34
- constructor(localization: LocalizationService);
35
- ngAfterViewInit(): void;
36
- messageFor(key: string): string;
37
- onShiftTab(e: Event): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<PDFViewerSearchComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<PDFViewerSearchComponent, "[kendoPDFViewerSearch]", never, { "matches": { "alias": "matches"; "required": false; }; "currentMatch": { "alias": "currentMatch"; "required": false; }; }, { "searchChange": "searchChange"; "prevMatch": "prevMatch"; "nextMatch": "nextMatch"; "close": "close"; }, never, never, true, never>;
40
- }
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ComboBoxComponent } from '@progress/kendo-angular-dropdowns';
6
- import { ElementRef } from '@angular/core';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @hidden
10
- */
11
- export declare class ToolbarComboBoxDirective {
12
- private combo;
13
- private hostEl;
14
- private inputElement;
15
- constructor(combo: ComboBoxComponent, hostEl: ElementRef);
16
- ngAfterViewInit(): void;
17
- ngOnDestroy(): void;
18
- private keydownHandler;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComboBoxDirective, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<ToolbarComboBoxDirective, "[kendoPDFViewerComboBox]", never, {}, {}, never, never, true, never>;
21
- }
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ElementRef, Renderer2 } from '@angular/core';
6
- import { ToolbarNavigationService } from './toolbar-navigation.service';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @hidden
10
- */
11
- export declare class ToolbarFocusableDirective {
12
- private host;
13
- private navigationService;
14
- private renderer;
15
- constructor(host: ElementRef, navigationService: ToolbarNavigationService, renderer: Renderer2);
16
- ngAfterViewInit(): void;
17
- ngOnDestroy(): void;
18
- activate(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarFocusableDirective, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<ToolbarFocusableDirective, "[kendoPDFViewerToolbarFocusable]", never, {}, {}, never, never, true, never>;
21
- }
@@ -1,23 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ToolbarFocusableDirective } from './toolbar-focusable.directive';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @hidden
10
- */
11
- export declare class ToolbarNavigationService {
12
- private localizationService;
13
- focusableTools: ToolbarFocusableDirective[];
14
- currentFocusIndex: number;
15
- constructor(localizationService: LocalizationService);
16
- register(tool: ToolbarFocusableDirective): void;
17
- unregister(tool: ToolbarFocusableDirective): void;
18
- isActive(focusable: ToolbarFocusableDirective): boolean;
19
- setActiveIndex(tool: ToolbarFocusableDirective): void;
20
- move(direction: 'left' | 'right'): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarNavigationService, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<ToolbarNavigationService>;
23
- }
@@ -1,87 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ElementRef, EventEmitter } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { PageChangeEvent, PagerType } from '@progress/kendo-angular-pager';
8
- import { SVGIcon } from '@progress/kendo-svg-icons';
9
- import { ToolbarNavigationService } from './toolbar-navigation.service';
10
- import { PDFViewerTool } from '../models/toolbar-tool';
11
- import { ZoomLevel } from '../models/zoom-level';
12
- import { Observable } from 'rxjs';
13
- import { AnnotationEditorType } from '../models/annotation-editor.type';
14
- import * as i0 from "@angular/core";
15
- /**
16
- * @hidden
17
- */
18
- export declare class ToolbarComponent {
19
- private localization;
20
- private navigationService;
21
- toolbarClasses: boolean;
22
- fileSelectEl: ElementRef;
23
- zoomLevel: ZoomLevel;
24
- calculatedComboBoxValue: {
25
- text: string;
26
- displayValue: any;
27
- value: any;
28
- };
29
- skip: number;
30
- pageSize: number;
31
- total: number;
32
- zoomInDisabled: boolean;
33
- zoomOutDisabled: boolean;
34
- disabledTools: boolean;
35
- zoomLevelChooserValue: ZoomLevel;
36
- zoomOptionsData: ZoomLevel[];
37
- pagesContainerId: string;
38
- tools: PDFViewerTool[];
39
- type: 'tools' | 'annotations';
40
- wrapperId: string;
41
- isAnnotationsToolbarVisible: boolean;
42
- annotationsToolId: string;
43
- isSelectionEnabled: boolean;
44
- fileSelect: EventEmitter<string | ArrayBuffer>;
45
- fileSelectStart: EventEmitter<any>;
46
- fileSelectError: EventEmitter<any>;
47
- download: EventEmitter<any>;
48
- selectionEnabled: EventEmitter<any>;
49
- panningEnabled: EventEmitter<any>;
50
- pageChange: EventEmitter<PageChangeEvent>;
51
- zoomIn: EventEmitter<any>;
52
- zoomOut: EventEmitter<any>;
53
- zoomLevelChange: EventEmitter<ZoomLevel>;
54
- print: EventEmitter<any>;
55
- search: EventEmitter<any>;
56
- toggleAnnotationsToolbar: EventEmitter<any>;
57
- setAnnotationMode: EventEmitter<AnnotationEditorType>;
58
- zoomInIcon: SVGIcon;
59
- zoomOutIcon: SVGIcon;
60
- handIcon: SVGIcon;
61
- pointerIcon: SVGIcon;
62
- searchIcon: SVGIcon;
63
- folderOpenIcon: SVGIcon;
64
- downloadIcon: SVGIcon;
65
- printIcon: SVGIcon;
66
- trackChangesIcon: SVGIcon;
67
- highlightIcon: SVGIcon;
68
- freeTextIcon: SVGIcon;
69
- xIcon: SVGIcon;
70
- pagerType: PagerType;
71
- isHighlightMode: boolean;
72
- isFreeTextMode: boolean;
73
- constructor(localization: LocalizationService, navigationService: ToolbarNavigationService);
74
- messageFor(key: string): string;
75
- onFileSelect(e: any): void;
76
- onZoomLevelChooserValueChange(zoomLevel: ZoomLevel): void;
77
- focus(): void;
78
- onHighlightClick(): void;
79
- onFreeTextClick(): void;
80
- valueNormalizer: (text: Observable<string>) => Observable<{
81
- value: number;
82
- displayValue: string;
83
- text: string;
84
- }>;
85
- static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
86
- static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "[kendoPDFViewerToolbar]", never, { "zoomLevel": { "alias": "zoomLevel"; "required": false; }; "calculatedComboBoxValue": { "alias": "calculatedComboBoxValue"; "required": false; }; "skip": { "alias": "skip"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "total": { "alias": "total"; "required": false; }; "zoomInDisabled": { "alias": "zoomInDisabled"; "required": false; }; "zoomOutDisabled": { "alias": "zoomOutDisabled"; "required": false; }; "disabledTools": { "alias": "disabledTools"; "required": false; }; "zoomLevelChooserValue": { "alias": "zoomLevelChooserValue"; "required": false; }; "zoomOptionsData": { "alias": "zoomOptionsData"; "required": false; }; "pagesContainerId": { "alias": "pagesContainerId"; "required": false; }; "tools": { "alias": "tools"; "required": false; }; "type": { "alias": "type"; "required": false; }; "wrapperId": { "alias": "wrapperId"; "required": false; }; "isAnnotationsToolbarVisible": { "alias": "isAnnotationsToolbarVisible"; "required": false; }; "annotationsToolId": { "alias": "annotationsToolId"; "required": false; }; "isSelectionEnabled": { "alias": "isSelectionEnabled"; "required": false; }; }, { "fileSelect": "fileSelect"; "fileSelectStart": "fileSelectStart"; "fileSelectError": "fileSelectError"; "download": "download"; "selectionEnabled": "selectionEnabled"; "panningEnabled": "panningEnabled"; "pageChange": "pageChange"; "zoomIn": "zoomIn"; "zoomOut": "zoomOut"; "zoomLevelChange": "zoomLevelChange"; "print": "print"; "search": "search"; "toggleAnnotationsToolbar": "toggleAnnotationsToolbar"; "setAnnotationMode": "setAnnotationMode"; }, never, never, true, never>;
87
- }