@progress/kendo-angular-pdfviewer 19.3.0-develop.3 → 19.3.0-develop.31
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.
- package/annotations/annotation-editor.d.ts +41 -0
- package/esm2022/annotations/annotation-editor.mjs +199 -0
- package/esm2022/localization/messages.mjs +73 -1
- package/esm2022/models/annotation-editor.type.mjs +13 -0
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdfviewer.component.mjs +317 -62
- package/esm2022/toolbar/toolbar.component.mjs +477 -310
- package/esm2022/util.mjs +4 -0
- package/fesm2022/progress-kendo-angular-pdfviewer.mjs +1071 -380
- package/localization/messages.d.ts +49 -1
- package/models/annotation-editor.type.d.ts +17 -0
- package/models/toolbar-tool.d.ts +1 -1
- package/package.json +15 -14
- package/pdfviewer.component.d.ts +51 -4
- package/schematics/ngAdd/index.js +2 -2
- package/toolbar/toolbar.component.d.ts +17 -1
- package/util.d.ts +4 -0
@@ -108,6 +108,54 @@ export declare class Messages extends ComponentMessages {
|
|
108
108
|
* Sets the placeholder text for the zoom tool input.
|
109
109
|
*/
|
110
110
|
zoomInputPlaceholder: string;
|
111
|
+
/**
|
112
|
+
* Sets the title and label for the **Annotation Editor** tool.
|
113
|
+
*/
|
114
|
+
annotationsTitle: string;
|
115
|
+
/**
|
116
|
+
* Sets the title and label for the **Annotation Editor** tool.
|
117
|
+
*/
|
118
|
+
annotationEditorTitle: string;
|
119
|
+
/**
|
120
|
+
* Sets the title and label for the **Delete Annotation** tool.
|
121
|
+
*/
|
122
|
+
deleteAnnotationTitle: string;
|
123
|
+
/**
|
124
|
+
* Sets the title and label for the **Highligh Annotation** tool.
|
125
|
+
*/
|
126
|
+
highlightAnnotationTitle: string;
|
127
|
+
/**
|
128
|
+
* Sets the title and label for the **Free Text Annotation** tool.
|
129
|
+
*/
|
130
|
+
freeTextAnnotationTitle: string;
|
131
|
+
/**
|
132
|
+
* Sets the title and label for the **Close Annotations Toolbar** tool.
|
133
|
+
*/
|
134
|
+
closeAnnotationsToolbarTitle: string;
|
135
|
+
/**
|
136
|
+
* Sets the title of the **Delete Annotation** confirmation dialog.
|
137
|
+
*/
|
138
|
+
deleteAnnotationConfirmationDialogTitle: string;
|
139
|
+
/**
|
140
|
+
* Sets the content text of the **Delete Annotation** confirmation dialog.
|
141
|
+
*/
|
142
|
+
deleteAnnotationConfirmationDialogContent: string;
|
143
|
+
/**
|
144
|
+
* Sets the text of the **Delete Annotation** confirmation dialog confirm action button.
|
145
|
+
*/
|
146
|
+
deleteAnnotationConfirmationDialogConfirmText: string;
|
147
|
+
/**
|
148
|
+
* Sets the text of the **Delete Annotation** confirmation dialog reject action button.
|
149
|
+
*/
|
150
|
+
deleteAnnotationConfirmationDialogRejectText: string;
|
151
|
+
/**
|
152
|
+
* Sets the text of the **Font Size** section in the annotation editor dialog.
|
153
|
+
*/
|
154
|
+
annotationEditorFontSizeTitle: string;
|
155
|
+
/**
|
156
|
+
* Sets the text of the **Color** section in the annotation editor dialog.
|
157
|
+
*/
|
158
|
+
annotationEditorColorTitle: string;
|
111
159
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
|
112
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, "kendo-pdfviewer-messages-base", never, { "zoomInTitle": { "alias": "zoomInTitle"; "required": false; }; "zoomOutTitle": { "alias": "zoomOutTitle"; "required": false; }; "selectionTitle": { "alias": "selectionTitle"; "required": false; }; "panningTitle": { "alias": "panningTitle"; "required": false; }; "searchTitle": { "alias": "searchTitle"; "required": false; }; "openTitle": { "alias": "openTitle"; "required": false; }; "downloadTitle": { "alias": "downloadTitle"; "required": false; }; "printTitle": { "alias": "printTitle"; "required": false; }; "pagerInputLabel": { "alias": "pagerInputLabel"; "required": false; }; "pagerInputTitle": { "alias": "pagerInputTitle"; "required": false; }; "pagerFirstPage": { "alias": "pagerFirstPage"; "required": false; }; "pagerPreviousPage": { "alias": "pagerPreviousPage"; "required": false; }; "pagerNextPage": { "alias": "pagerNextPage"; "required": false; }; "pagerLastPage": { "alias": "pagerLastPage"; "required": false; }; "pagerOf": { "alias": "pagerOf"; "required": false; }; "pagerPage": { "alias": "pagerPage"; "required": false; }; "fitToPage": { "alias": "fitToPage"; "required": false; }; "fitToWidth": { "alias": "fitToWidth"; "required": false; }; "searchInputPlaceholder": { "alias": "searchInputPlaceholder"; "required": false; }; "searchMatchesOf": { "alias": "searchMatchesOf"; "required": false; }; "searchPreviousMatchTitle": { "alias": "searchPreviousMatchTitle"; "required": false; }; "searchNextMatchTitle": { "alias": "searchNextMatchTitle"; "required": false; }; "searchCloseTitle": { "alias": "searchCloseTitle"; "required": false; }; "searchMatchCaseTitle": { "alias": "searchMatchCaseTitle"; "required": false; }; "zoomInputPlaceholder": { "alias": "zoomInputPlaceholder"; "required": false; }; }, {}, never, never, false, never>;
|
160
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, "kendo-pdfviewer-messages-base", never, { "zoomInTitle": { "alias": "zoomInTitle"; "required": false; }; "zoomOutTitle": { "alias": "zoomOutTitle"; "required": false; }; "selectionTitle": { "alias": "selectionTitle"; "required": false; }; "panningTitle": { "alias": "panningTitle"; "required": false; }; "searchTitle": { "alias": "searchTitle"; "required": false; }; "openTitle": { "alias": "openTitle"; "required": false; }; "downloadTitle": { "alias": "downloadTitle"; "required": false; }; "printTitle": { "alias": "printTitle"; "required": false; }; "pagerInputLabel": { "alias": "pagerInputLabel"; "required": false; }; "pagerInputTitle": { "alias": "pagerInputTitle"; "required": false; }; "pagerFirstPage": { "alias": "pagerFirstPage"; "required": false; }; "pagerPreviousPage": { "alias": "pagerPreviousPage"; "required": false; }; "pagerNextPage": { "alias": "pagerNextPage"; "required": false; }; "pagerLastPage": { "alias": "pagerLastPage"; "required": false; }; "pagerOf": { "alias": "pagerOf"; "required": false; }; "pagerPage": { "alias": "pagerPage"; "required": false; }; "fitToPage": { "alias": "fitToPage"; "required": false; }; "fitToWidth": { "alias": "fitToWidth"; "required": false; }; "searchInputPlaceholder": { "alias": "searchInputPlaceholder"; "required": false; }; "searchMatchesOf": { "alias": "searchMatchesOf"; "required": false; }; "searchPreviousMatchTitle": { "alias": "searchPreviousMatchTitle"; "required": false; }; "searchNextMatchTitle": { "alias": "searchNextMatchTitle"; "required": false; }; "searchCloseTitle": { "alias": "searchCloseTitle"; "required": false; }; "searchMatchCaseTitle": { "alias": "searchMatchCaseTitle"; "required": false; }; "zoomInputPlaceholder": { "alias": "zoomInputPlaceholder"; "required": false; }; "annotationsTitle": { "alias": "annotationsTitle"; "required": false; }; "annotationEditorTitle": { "alias": "annotationEditorTitle"; "required": false; }; "deleteAnnotationTitle": { "alias": "deleteAnnotationTitle"; "required": false; }; "highlightAnnotationTitle": { "alias": "highlightAnnotationTitle"; "required": false; }; "freeTextAnnotationTitle": { "alias": "freeTextAnnotationTitle"; "required": false; }; "closeAnnotationsToolbarTitle": { "alias": "closeAnnotationsToolbarTitle"; "required": false; }; "deleteAnnotationConfirmationDialogTitle": { "alias": "deleteAnnotationConfirmationDialogTitle"; "required": false; }; "deleteAnnotationConfirmationDialogContent": { "alias": "deleteAnnotationConfirmationDialogContent"; "required": false; }; "deleteAnnotationConfirmationDialogConfirmText": { "alias": "deleteAnnotationConfirmationDialogConfirmText"; "required": false; }; "deleteAnnotationConfirmationDialogRejectText": { "alias": "deleteAnnotationConfirmationDialogRejectText"; "required": false; }; "annotationEditorFontSizeTitle": { "alias": "annotationEditorFontSizeTitle"; "required": false; }; "annotationEditorColorTitle": { "alias": "annotationEditorColorTitle"; "required": false; }; }, {}, never, never, false, never>;
|
113
161
|
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
5
|
+
/**
|
6
|
+
* @hidden
|
7
|
+
*/
|
8
|
+
export declare const AnnotationEditorTypes: {
|
9
|
+
disable: number;
|
10
|
+
none: number;
|
11
|
+
freeText: number;
|
12
|
+
highlight: number;
|
13
|
+
};
|
14
|
+
/**
|
15
|
+
* @hidden
|
16
|
+
*/
|
17
|
+
export type AnnotationEditorType = keyof typeof AnnotationEditorTypes;
|
package/models/toolbar-tool.d.ts
CHANGED
@@ -5,4 +5,4 @@
|
|
5
5
|
/**
|
6
6
|
* Defines the possible types of PDFViewer toolbar tools.
|
7
7
|
*/
|
8
|
-
export type PDFViewerTool = 'pager' | 'spacer' | 'zoomInOut' | 'zoom' | 'selection' | 'search' | 'open' | 'download' | 'print';
|
8
|
+
export type PDFViewerTool = 'pager' | 'spacer' | 'zoomInOut' | 'zoom' | 'selection' | 'search' | 'open' | 'download' | 'print' | 'annotations';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@progress/kendo-angular-pdfviewer",
|
3
|
-
"version": "19.3.0-develop.
|
3
|
+
"version": "19.3.0-develop.31",
|
4
4
|
"description": "Kendo UI PDFViewer for Angular",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
6
6
|
"author": "Progress",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"package": {
|
20
20
|
"productName": "Kendo UI for Angular",
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
22
|
-
"publishDate":
|
22
|
+
"publishDate": 1754576893,
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
|
24
24
|
}
|
25
25
|
},
|
@@ -28,22 +28,23 @@
|
|
28
28
|
"@angular/common": "16 - 20",
|
29
29
|
"@angular/core": "16 - 20",
|
30
30
|
"@angular/platform-browser": "16 - 20",
|
31
|
-
"@progress/kendo-licensing": "^1.
|
32
|
-
"@progress/kendo-angular-buttons": "19.3.0-develop.
|
33
|
-
"@progress/kendo-angular-common": "19.3.0-develop.
|
34
|
-
"@progress/kendo-angular-
|
35
|
-
"@progress/kendo-angular-
|
36
|
-
"@progress/kendo-angular-
|
37
|
-
"@progress/kendo-angular-
|
38
|
-
"@progress/kendo-angular-
|
39
|
-
"@progress/kendo-angular-
|
40
|
-
"@progress/kendo-angular-
|
41
|
-
"@progress/kendo-angular-
|
31
|
+
"@progress/kendo-licensing": "^1.7.0",
|
32
|
+
"@progress/kendo-angular-buttons": "19.3.0-develop.31",
|
33
|
+
"@progress/kendo-angular-common": "19.3.0-develop.31",
|
34
|
+
"@progress/kendo-angular-dialog": "19.3.0-develop.31",
|
35
|
+
"@progress/kendo-angular-dropdowns": "19.3.0-develop.31",
|
36
|
+
"@progress/kendo-angular-inputs": "19.3.0-develop.31",
|
37
|
+
"@progress/kendo-angular-intl": "19.3.0-develop.31",
|
38
|
+
"@progress/kendo-angular-l10n": "19.3.0-develop.31",
|
39
|
+
"@progress/kendo-angular-icons": "19.3.0-develop.31",
|
40
|
+
"@progress/kendo-angular-indicators": "19.3.0-develop.31",
|
41
|
+
"@progress/kendo-angular-pager": "19.3.0-develop.31",
|
42
|
+
"@progress/kendo-angular-popup": "19.3.0-develop.31",
|
42
43
|
"rxjs": "^6.5.3 || ^7.0.0"
|
43
44
|
},
|
44
45
|
"dependencies": {
|
45
46
|
"tslib": "^2.3.1",
|
46
|
-
"@progress/kendo-angular-schematics": "19.3.0-develop.
|
47
|
+
"@progress/kendo-angular-schematics": "19.3.0-develop.31",
|
47
48
|
"@progress/kendo-file-saver": "^1.0.1",
|
48
49
|
"@progress/kendo-pdfviewer-common": "0.5.0"
|
49
50
|
},
|
package/pdfviewer.component.d.ts
CHANGED
@@ -14,6 +14,8 @@ import { ZoomLevel } from './models/zoom-level';
|
|
14
14
|
import { PDFViewerTool } from './models/toolbar-tool';
|
15
15
|
import { ToolbarComponent } from './toolbar/toolbar.component';
|
16
16
|
import 'pdfjs-dist/build/pdf.worker.min.mjs';
|
17
|
+
import { AnnotationEditorType } from './models/annotation-editor.type';
|
18
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
17
19
|
import * as i0 from "@angular/core";
|
18
20
|
/**
|
19
21
|
* Represents the [Kendo UI PDFViewer component for Angular](slug:overview_pdfviewer).
|
@@ -36,11 +38,13 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
36
38
|
private localizationService;
|
37
39
|
private cdr;
|
38
40
|
private host;
|
41
|
+
private popupService;
|
39
42
|
hostClass: boolean;
|
40
43
|
direction: string;
|
44
|
+
display: string;
|
41
45
|
/**
|
42
46
|
* Represents the tools collection rendered in the toolbar.
|
43
|
-
* @default ['pager', 'spacer', 'zoomInOut', 'zoom', 'selection', 'spacer', 'search', 'open', 'download', 'print' ]
|
47
|
+
* @default ['pager', 'spacer', 'zoomInOut', 'zoom', 'selection', 'spacer', 'search', 'open', 'download', 'print', 'annotations' ]
|
44
48
|
*/
|
45
49
|
tools: PDFViewerTool[];
|
46
50
|
/**
|
@@ -109,6 +113,12 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
109
113
|
* @default 1
|
110
114
|
*/
|
111
115
|
loadOnDemandPageSize: number;
|
116
|
+
/**
|
117
|
+
* Determines whether a confirmation dialog is shown when the user tries to delete an annotation.
|
118
|
+
*
|
119
|
+
* @default true
|
120
|
+
*/
|
121
|
+
removeAnnotationConfirmation: boolean;
|
112
122
|
/**
|
113
123
|
* Fires when the component loads a PDF document successfully.
|
114
124
|
*/
|
@@ -130,6 +140,8 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
130
140
|
*/
|
131
141
|
zoomLevelChange: EventEmitter<PDFViewerZoomChangeEvent>;
|
132
142
|
private pagesContainer;
|
143
|
+
private pagesContainerViewContainerRef;
|
144
|
+
private dialogContainerViewContainerRef;
|
133
145
|
/**
|
134
146
|
* Returns the current page number of the loaded PDF document.
|
135
147
|
*/
|
@@ -147,11 +159,20 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
147
159
|
* @hidden
|
148
160
|
*/
|
149
161
|
get pagesContainerId(): string;
|
162
|
+
/**
|
163
|
+
* @hidden
|
164
|
+
*/
|
165
|
+
get annotationsToolbarId(): string;
|
166
|
+
/**
|
167
|
+
* @hidden
|
168
|
+
*/
|
169
|
+
get annotationsToolId(): string;
|
150
170
|
loading: boolean;
|
151
171
|
searchActive: boolean;
|
152
172
|
matchCase: boolean;
|
153
173
|
currentMatches: any[];
|
154
174
|
currentMatch: number;
|
175
|
+
showAnnotationsToolbar: boolean;
|
155
176
|
/**
|
156
177
|
* @hidden
|
157
178
|
*/
|
@@ -160,10 +181,18 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
160
181
|
* @hidden
|
161
182
|
*/
|
162
183
|
get enabledSelection(): boolean;
|
184
|
+
/**
|
185
|
+
* @hidden
|
186
|
+
*/
|
187
|
+
onSetAnnotationMode(mode: AnnotationEditorType): void;
|
163
188
|
/**
|
164
189
|
* @hidden
|
165
190
|
*/
|
166
191
|
showLicenseWatermark: boolean;
|
192
|
+
/**
|
193
|
+
* @hidden
|
194
|
+
*/
|
195
|
+
licenseMessage?: string;
|
167
196
|
skip: number;
|
168
197
|
zoomOptionsData: ({
|
169
198
|
id: number;
|
@@ -185,8 +214,10 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
185
214
|
private _fitType;
|
186
215
|
private _zoomToFit;
|
187
216
|
private subs;
|
217
|
+
private popupSub;
|
188
218
|
private emitLoad;
|
189
|
-
|
219
|
+
private pdfViewerWidget;
|
220
|
+
constructor(ngZone: NgZone, renderer: Renderer2, localizationService: LocalizationService, cdr: ChangeDetectorRef, host: ElementRef, popupService: PopupService);
|
190
221
|
ngOnInit(): void;
|
191
222
|
ngOnDestroy(): void;
|
192
223
|
ngOnChanges(changes: SimpleChanges): void;
|
@@ -207,6 +238,14 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
207
238
|
* @hidden
|
208
239
|
*/
|
209
240
|
onPageChange(e: PageChangeEvent): void;
|
241
|
+
/**
|
242
|
+
* @hidden
|
243
|
+
*/
|
244
|
+
onPanningEnabled(): void;
|
245
|
+
/**
|
246
|
+
* @hidden
|
247
|
+
*/
|
248
|
+
onSelectionEnabled(): void;
|
210
249
|
/**
|
211
250
|
* @hidden
|
212
251
|
*/
|
@@ -254,7 +293,10 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
254
293
|
* @hidden
|
255
294
|
*/
|
256
295
|
onPreviousMatch(): void;
|
257
|
-
|
296
|
+
/**
|
297
|
+
* @hidden
|
298
|
+
*/
|
299
|
+
toggleAnnotationsToolbar(): void;
|
258
300
|
private loadPdf;
|
259
301
|
private assignPageIds;
|
260
302
|
private setZoomLevel;
|
@@ -264,7 +306,12 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
264
306
|
private loadHandler;
|
265
307
|
private zoomEndHandler;
|
266
308
|
private errorHandler;
|
309
|
+
private annotationPopup;
|
310
|
+
private observer;
|
311
|
+
private onAnnotationEditorToolBarShowHandler;
|
312
|
+
private onAnnotationEditorToolBarHideHandler;
|
267
313
|
private zoneAwareEmitter;
|
314
|
+
private classMutationObserver;
|
268
315
|
static ɵfac: i0.ɵɵFactoryDeclaration<PDFViewerComponent, never>;
|
269
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PDFViewerComponent, "kendo-pdfviewer", ["kendo-pdfviewer"], { "tools": { "alias": "tools"; "required": false; }; "loaderSettings": { "alias": "loaderSettings"; "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; }; }, { "load": "load"; "error": "error"; "download": "download"; "pageChange": "pageChange"; "zoomLevelChange": "zoomLevelChange"; }, never, never, true, never>;
|
316
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PDFViewerComponent, "kendo-pdfviewer", ["kendo-pdfviewer"], { "tools": { "alias": "tools"; "required": false; }; "loaderSettings": { "alias": "loaderSettings"; "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; }; }, { "load": "load"; "error": "error"; "download": "download"; "pageChange": "pageChange"; "zoomLevelChange": "zoomLevelChange"; }, never, never, true, never>;
|
270
317
|
}
|
@@ -4,8 +4,8 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
4
4
|
function default_1(options) {
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'PDFViewerModule', package: 'pdfviewer', peerDependencies: {
|
6
6
|
// peers of the dropdowns
|
7
|
-
'@progress/kendo-angular-navigation': '19.3.0-develop.
|
8
|
-
'@progress/kendo-angular-treeview': '19.3.0-develop.
|
7
|
+
'@progress/kendo-angular-navigation': '19.3.0-develop.31',
|
8
|
+
'@progress/kendo-angular-treeview': '19.3.0-develop.31'
|
9
9
|
} });
|
10
10
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
11
11
|
}
|
@@ -10,6 +10,7 @@ import { ToolbarNavigationService } from './toolbar-navigation.service';
|
|
10
10
|
import { PDFViewerTool } from '../models/toolbar-tool';
|
11
11
|
import { ZoomLevel } from '../models/zoom-level';
|
12
12
|
import { Observable } from 'rxjs';
|
13
|
+
import { AnnotationEditorType } from '../models/annotation-editor.type';
|
13
14
|
import * as i0 from "@angular/core";
|
14
15
|
/**
|
15
16
|
* @hidden
|
@@ -35,6 +36,10 @@ export declare class ToolbarComponent {
|
|
35
36
|
zoomOptionsData: ZoomLevel[];
|
36
37
|
pagesContainerId: string;
|
37
38
|
tools: PDFViewerTool[];
|
39
|
+
type: 'tools' | 'annotations';
|
40
|
+
wrapperId: string;
|
41
|
+
isAnnotationsToolbarVisible: boolean;
|
42
|
+
annotationsToolId: string;
|
38
43
|
fileSelect: EventEmitter<string | ArrayBuffer>;
|
39
44
|
fileSelectStart: EventEmitter<any>;
|
40
45
|
fileSelectError: EventEmitter<any>;
|
@@ -47,6 +52,8 @@ export declare class ToolbarComponent {
|
|
47
52
|
zoomLevelChange: EventEmitter<ZoomLevel>;
|
48
53
|
print: EventEmitter<any>;
|
49
54
|
search: EventEmitter<any>;
|
55
|
+
toggleAnnotationsToolbar: EventEmitter<any>;
|
56
|
+
setAnnotationMode: EventEmitter<AnnotationEditorType>;
|
50
57
|
zoomInIcon: SVGIcon;
|
51
58
|
zoomOutIcon: SVGIcon;
|
52
59
|
handIcon: SVGIcon;
|
@@ -55,17 +62,26 @@ export declare class ToolbarComponent {
|
|
55
62
|
folderOpenIcon: SVGIcon;
|
56
63
|
downloadIcon: SVGIcon;
|
57
64
|
printIcon: SVGIcon;
|
65
|
+
trackChangesIcon: SVGIcon;
|
66
|
+
highlightIcon: SVGIcon;
|
67
|
+
freeTextIcon: SVGIcon;
|
68
|
+
xIcon: SVGIcon;
|
58
69
|
pagerType: PagerType;
|
70
|
+
isSelectionEnabled: boolean;
|
71
|
+
isHighlightMode: boolean;
|
72
|
+
isFreeTextMode: boolean;
|
59
73
|
constructor(localization: LocalizationService, navigationService: ToolbarNavigationService);
|
60
74
|
messageFor(key: string): string;
|
61
75
|
onFileSelect(e: any): void;
|
62
76
|
onZoomLevelChooserValueChange(zoomLevel: ZoomLevel): void;
|
63
77
|
focus(): void;
|
78
|
+
onHighlightClick(): void;
|
79
|
+
onFreeTextClick(): void;
|
64
80
|
valueNormalizer: (text: Observable<string>) => Observable<{
|
65
81
|
value: number;
|
66
82
|
displayValue: string;
|
67
83
|
text: string;
|
68
84
|
}>;
|
69
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
|
70
|
-
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; }; }, { "fileSelect": "fileSelect"; "fileSelectStart": "fileSelectStart"; "fileSelectError": "fileSelectError"; "download": "download"; "selectionEnabled": "selectionEnabled"; "panningEnabled": "panningEnabled"; "pageChange": "pageChange"; "zoomIn": "zoomIn"; "zoomOut": "zoomOut"; "zoomLevelChange": "zoomLevelChange"; "print": "print"; "search": "search"; }, never, never, true, 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; }; }, { "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>;
|
71
87
|
}
|