@progress/kendo-angular-pdfviewer 19.1.2-develop.1 → 19.1.2-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.
- package/directives.d.ts +15 -1
- package/esm2022/directives.mjs +15 -1
- package/esm2022/localization/custom-messages.component.mjs +5 -1
- package/esm2022/localization/messages.mjs +25 -25
- package/esm2022/models/events.mjs +5 -6
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdfviewer.component.mjs +20 -11
- package/esm2022/pdfviewer.module.mjs +16 -2
- package/fesm2022/progress-kendo-angular-pdfviewer.mjs +88 -48
- package/localization/custom-messages.component.d.ts +5 -1
- package/localization/messages.d.ts +25 -25
- package/models/events.d.ts +12 -13
- package/models/loader-settings.d.ts +2 -28
- package/models/pdfviewer-context.d.ts +4 -4
- package/models/toolbar-tool.d.ts +1 -1
- package/package.json +13 -13
- package/pdfviewer.component.d.ts +20 -11
- package/pdfviewer.module.d.ts +16 -2
- package/schematics/ngAdd/index.js +2 -2
package/directives.d.ts
CHANGED
@@ -5,6 +5,20 @@
|
|
5
5
|
import { PDFViewerCustomMessagesComponent } from "./localization/custom-messages.component";
|
6
6
|
import { PDFViewerComponent } from "./pdfviewer.component";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Use the `KENDO_PDFVIEWER` utility array to add all `@progress/kendo-angular-pdf-viewer`-related components and directives to a standalone Angular component.
|
9
|
+
*
|
10
|
+
* @example
|
11
|
+
* ```typescript
|
12
|
+
* import { Component } from '@angular/core';
|
13
|
+
* import { KENDO_PDFVIEWER } from "@progress/kendo-angular-pdf-viewer";
|
14
|
+
*
|
15
|
+
* @Component({
|
16
|
+
* standalone: true,
|
17
|
+
* imports: [KENDO_PDFVIEWER],
|
18
|
+
* selector: 'my-app',
|
19
|
+
* template: `<kendo-pdf-viewer [url]="pdfUrl"></kendo-pdf-viewer>`
|
20
|
+
* })
|
21
|
+
* export class AppComponent {}
|
22
|
+
* ```
|
9
23
|
*/
|
10
24
|
export declare const KENDO_PDFVIEWER: readonly [typeof PDFViewerComponent, typeof PDFViewerCustomMessagesComponent];
|
package/esm2022/directives.mjs
CHANGED
@@ -5,7 +5,21 @@
|
|
5
5
|
import { PDFViewerCustomMessagesComponent } from "./localization/custom-messages.component";
|
6
6
|
import { PDFViewerComponent } from "./pdfviewer.component";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* Use the `KENDO_PDFVIEWER` utility array to add all `@progress/kendo-angular-pdf-viewer`-related components and directives to a standalone Angular component.
|
9
|
+
*
|
10
|
+
* @example
|
11
|
+
* ```typescript
|
12
|
+
* import { Component } from '@angular/core';
|
13
|
+
* import { KENDO_PDFVIEWER } from "@progress/kendo-angular-pdf-viewer";
|
14
|
+
*
|
15
|
+
* @Component({
|
16
|
+
* standalone: true,
|
17
|
+
* imports: [KENDO_PDFVIEWER],
|
18
|
+
* selector: 'my-app',
|
19
|
+
* template: `<kendo-pdf-viewer [url]="pdfUrl"></kendo-pdf-viewer>`
|
20
|
+
* })
|
21
|
+
* export class AppComponent {}
|
22
|
+
* ```
|
9
23
|
*/
|
10
24
|
export const KENDO_PDFVIEWER = [
|
11
25
|
PDFViewerComponent,
|
@@ -8,7 +8,11 @@ import { Messages } from './messages';
|
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
10
10
|
/**
|
11
|
-
*
|
11
|
+
* Represents the custom messages component of the PDFViewer.
|
12
|
+
*
|
13
|
+
* Use this component to override default messages for the PDFViewer.
|
14
|
+
*
|
15
|
+
*
|
12
16
|
*/
|
13
17
|
export class PDFViewerCustomMessagesComponent extends Messages {
|
14
18
|
service;
|
@@ -10,103 +10,103 @@ import * as i0 from "@angular/core";
|
|
10
10
|
*/
|
11
11
|
export class Messages extends ComponentMessages {
|
12
12
|
/**
|
13
|
-
*
|
13
|
+
* Sets the title and label for the **ZoomIn** tool.
|
14
14
|
*/
|
15
15
|
zoomInTitle;
|
16
16
|
/**
|
17
|
-
*
|
17
|
+
* Sets the title and label for the **ZoomOut** tool.
|
18
18
|
*/
|
19
19
|
zoomOutTitle;
|
20
20
|
/**
|
21
|
-
*
|
21
|
+
* Sets the title and label for the **Selection** tool.
|
22
22
|
*/
|
23
23
|
selectionTitle;
|
24
24
|
/**
|
25
|
-
*
|
25
|
+
* Sets the title and label for the **Panning** tool.
|
26
26
|
*/
|
27
27
|
panningTitle;
|
28
28
|
/**
|
29
|
-
*
|
29
|
+
* Sets the title and label for the **Search** tool.
|
30
30
|
*/
|
31
31
|
searchTitle;
|
32
32
|
/**
|
33
|
-
*
|
33
|
+
* Sets the title and label for the **Open** tool.
|
34
34
|
*/
|
35
35
|
openTitle;
|
36
36
|
/**
|
37
|
-
*
|
37
|
+
* Sets the title and label for the **Download** tool.
|
38
38
|
*/
|
39
39
|
downloadTitle;
|
40
40
|
/**
|
41
|
-
*
|
41
|
+
* Sets the title and label for the **Print** tool.
|
42
42
|
*/
|
43
43
|
printTitle;
|
44
44
|
/**
|
45
|
-
*
|
45
|
+
* Sets the `aria-label` attribute for the Pager input element.
|
46
46
|
*/
|
47
47
|
pagerInputLabel;
|
48
48
|
/**
|
49
|
-
*
|
49
|
+
* Sets the `title` attribute for the Pager input element.
|
50
50
|
*/
|
51
51
|
pagerInputTitle;
|
52
52
|
/**
|
53
|
-
*
|
53
|
+
* Sets the label for the Pager **First page** button.
|
54
54
|
*/
|
55
55
|
pagerFirstPage;
|
56
56
|
/**
|
57
|
-
*
|
57
|
+
* Sets the label for the Pager **Previous page** button.
|
58
58
|
*/
|
59
59
|
pagerPreviousPage;
|
60
60
|
/**
|
61
|
-
*
|
61
|
+
* Sets the label for the Pager **Next page** button.
|
62
62
|
*/
|
63
63
|
pagerNextPage;
|
64
64
|
/**
|
65
|
-
*
|
65
|
+
* Sets the label for the Pager **Last page** button.
|
66
66
|
*/
|
67
67
|
pagerLastPage;
|
68
68
|
/**
|
69
|
-
*
|
69
|
+
* Sets the text before the Pager total-page number.
|
70
70
|
*/
|
71
71
|
pagerOf;
|
72
72
|
/**
|
73
|
-
*
|
73
|
+
* Sets the text before the Pager input.
|
74
74
|
*/
|
75
75
|
pagerPage;
|
76
76
|
/**
|
77
|
-
*
|
77
|
+
* Sets the text for the zoom level chooser **Fit to page** option.
|
78
78
|
*/
|
79
79
|
fitToPage;
|
80
80
|
/**
|
81
|
-
*
|
81
|
+
* Sets the text for the zoom level chooser **Fit to width** option.
|
82
82
|
*/
|
83
83
|
fitToWidth;
|
84
84
|
/**
|
85
|
-
*
|
85
|
+
* Sets the placeholder text for the search input.
|
86
86
|
*/
|
87
87
|
searchInputPlaceholder;
|
88
88
|
/**
|
89
|
-
*
|
89
|
+
* Sets the text before the total number of matches in the **Search** tool.
|
90
90
|
*/
|
91
91
|
searchMatchesOf;
|
92
92
|
/**
|
93
|
-
*
|
93
|
+
* Sets the title for the **Search** previous match button.
|
94
94
|
*/
|
95
95
|
searchPreviousMatchTitle;
|
96
96
|
/**
|
97
|
-
*
|
97
|
+
* Sets the title for the **Search** next match button.
|
98
98
|
*/
|
99
99
|
searchNextMatchTitle;
|
100
100
|
/**
|
101
|
-
*
|
101
|
+
* Sets the title for the **Search** close button.
|
102
102
|
*/
|
103
103
|
searchCloseTitle;
|
104
104
|
/**
|
105
|
-
*
|
105
|
+
* Sets the title for the **Search** match case button.
|
106
106
|
*/
|
107
107
|
searchMatchCaseTitle;
|
108
108
|
/**
|
109
|
-
*
|
109
|
+
* Sets the placeholder text for the zoom tool input.
|
110
110
|
*/
|
111
111
|
zoomInputPlaceholder;
|
112
112
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
@@ -4,24 +4,23 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { PreventableEvent } from "@progress/kendo-angular-common";
|
6
6
|
/**
|
7
|
-
*
|
8
|
-
* If you cancel the event, the downloading of the file is prevented.
|
7
|
+
* Represents the arguments for the PDFViewer `download` event. The event fires when the user clicks the **Download** tool. Canceling the event prevents the download.
|
9
8
|
*/
|
10
9
|
export class PDFViewerDownloadEvent extends PreventableEvent {
|
11
10
|
/**
|
12
|
-
*
|
11
|
+
* Provides the Blob object to be saved.
|
13
12
|
*/
|
14
13
|
blob;
|
15
14
|
/**
|
16
|
-
*
|
15
|
+
* Provides the file name for saving.
|
17
16
|
*/
|
18
17
|
fileName;
|
19
18
|
/**
|
20
|
-
*
|
19
|
+
* Provides the save options.
|
21
20
|
*/
|
22
21
|
saveOptions;
|
23
22
|
/**
|
24
|
-
* Represents the
|
23
|
+
* Represents the loaded `PDF.js` document, its pages, and their DOM element wrapper.
|
25
24
|
*/
|
26
25
|
context;
|
27
26
|
/**
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
13
|
-
publishDate:
|
14
|
-
version: '19.1.2-develop.
|
13
|
+
publishDate: 1749820762,
|
14
|
+
version: '19.1.2-develop.2',
|
15
15
|
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',
|
16
16
|
};
|
@@ -22,7 +22,16 @@ import * as i0 from "@angular/core";
|
|
22
22
|
import * as i1 from "@progress/kendo-angular-l10n";
|
23
23
|
let counter = 0;
|
24
24
|
/**
|
25
|
-
* Represents the [Kendo UI PDFViewer component for Angular](
|
25
|
+
* Represents the [Kendo UI PDFViewer component for Angular](slug:overview_pdfviewer).
|
26
|
+
*
|
27
|
+
* @example
|
28
|
+
* ```html
|
29
|
+
* <kendo-pdfviewer
|
30
|
+
* [url]="pdfUrl"
|
31
|
+
* [zoom]="1.25"
|
32
|
+
* [tools]="['pager', 'zoomInOut', 'zoom', 'download', 'print']">
|
33
|
+
* </kendo-pdfviewer>
|
34
|
+
* ```
|
26
35
|
*/
|
27
36
|
export class PDFViewerComponent {
|
28
37
|
ngZone;
|
@@ -84,7 +93,7 @@ export class PDFViewerComponent {
|
|
84
93
|
*/
|
85
94
|
typedArray;
|
86
95
|
/**
|
87
|
-
*
|
96
|
+
* Sets the initial zoom level of the PDF document
|
88
97
|
* ([see example](slug:tools_pdfviewer#zooming-tools)).
|
89
98
|
*
|
90
99
|
* @default 1.25
|
@@ -105,7 +114,7 @@ export class PDFViewerComponent {
|
|
105
114
|
return this._zoom;
|
106
115
|
}
|
107
116
|
/**
|
108
|
-
* Represents the step the zoom level will be changed with when using the ZoomIn and ZoomOut tools.
|
117
|
+
* Represents the step the zoom level will be changed with when using the **ZoomIn** and **ZoomOut** tools.
|
109
118
|
* @default 0.25
|
110
119
|
*/
|
111
120
|
zoomRate = 0.25;
|
@@ -120,35 +129,35 @@ export class PDFViewerComponent {
|
|
120
129
|
*/
|
121
130
|
maxZoom = 4;
|
122
131
|
/**
|
123
|
-
*
|
132
|
+
* Sets whether the component loads all PDF document pages at once or loads new pages on demand when needed.
|
124
133
|
*
|
125
134
|
* @default false
|
126
135
|
*/
|
127
136
|
loadOnDemand = false;
|
128
137
|
/**
|
129
|
-
*
|
138
|
+
* Sets the number of pages to load on demand when the `loadOnDemand` property is `true`.
|
130
139
|
*
|
131
140
|
* @default 1
|
132
141
|
*/
|
133
142
|
loadOnDemandPageSize = 1;
|
134
143
|
/**
|
135
|
-
*
|
144
|
+
* Fires when the component loads a PDF document successfully.
|
136
145
|
*/
|
137
146
|
load = new EventEmitter();
|
138
147
|
/**
|
139
|
-
*
|
148
|
+
* Fires when an error occurs while loading or downloading the PDF document.
|
140
149
|
*/
|
141
150
|
error = new EventEmitter();
|
142
151
|
/**
|
143
|
-
*
|
152
|
+
* Fires when the user clicks the **Download** tool of the loaded PDF document.
|
144
153
|
*/
|
145
154
|
download = new EventEmitter();
|
146
155
|
/**
|
147
|
-
*
|
156
|
+
* Fires when the user changes the page of the loaded PDF document.
|
148
157
|
*/
|
149
158
|
pageChange = new EventEmitter();
|
150
159
|
/**
|
151
|
-
*
|
160
|
+
* Fires when the user changes the zoom level of the loaded PDF document.
|
152
161
|
*/
|
153
162
|
zoomLevelChange = new EventEmitter();
|
154
163
|
pagesContainer;
|
@@ -163,7 +172,7 @@ export class PDFViewerComponent {
|
|
163
172
|
this._pdfContext = doc;
|
164
173
|
}
|
165
174
|
/**
|
166
|
-
* Exposes the
|
175
|
+
* Exposes the loaded `PDF.js` document, its pages, and their DOM element wrapper.
|
167
176
|
*/
|
168
177
|
get pdfContext() {
|
169
178
|
return this._pdfContext;
|
@@ -12,8 +12,22 @@ import * as i1 from "./pdfviewer.component";
|
|
12
12
|
import * as i2 from "./localization/custom-messages.component";
|
13
13
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
14
14
|
/**
|
15
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
16
|
-
*
|
15
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the PDFViewer component.
|
16
|
+
*
|
17
|
+
* @example
|
18
|
+
* ```typescript
|
19
|
+
* import { NgModule } from '@angular/core';
|
20
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
21
|
+
* import { PDFViewerModule } from '@progress/kendo-angular-pdf-viewer';
|
22
|
+
* import { AppComponent } from './app.component';
|
23
|
+
*
|
24
|
+
* @NgModule({
|
25
|
+
* declarations: [AppComponent],
|
26
|
+
* imports: [BrowserModule, PDFViewerModule],
|
27
|
+
* bootstrap: [AppComponent]
|
28
|
+
* })
|
29
|
+
* export class AppModule {}
|
30
|
+
* ```
|
17
31
|
*/
|
18
32
|
export class PDFViewerModule {
|
19
33
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -29,103 +29,103 @@ import { PopupService } from '@progress/kendo-angular-popup';
|
|
29
29
|
*/
|
30
30
|
class Messages extends ComponentMessages {
|
31
31
|
/**
|
32
|
-
*
|
32
|
+
* Sets the title and label for the **ZoomIn** tool.
|
33
33
|
*/
|
34
34
|
zoomInTitle;
|
35
35
|
/**
|
36
|
-
*
|
36
|
+
* Sets the title and label for the **ZoomOut** tool.
|
37
37
|
*/
|
38
38
|
zoomOutTitle;
|
39
39
|
/**
|
40
|
-
*
|
40
|
+
* Sets the title and label for the **Selection** tool.
|
41
41
|
*/
|
42
42
|
selectionTitle;
|
43
43
|
/**
|
44
|
-
*
|
44
|
+
* Sets the title and label for the **Panning** tool.
|
45
45
|
*/
|
46
46
|
panningTitle;
|
47
47
|
/**
|
48
|
-
*
|
48
|
+
* Sets the title and label for the **Search** tool.
|
49
49
|
*/
|
50
50
|
searchTitle;
|
51
51
|
/**
|
52
|
-
*
|
52
|
+
* Sets the title and label for the **Open** tool.
|
53
53
|
*/
|
54
54
|
openTitle;
|
55
55
|
/**
|
56
|
-
*
|
56
|
+
* Sets the title and label for the **Download** tool.
|
57
57
|
*/
|
58
58
|
downloadTitle;
|
59
59
|
/**
|
60
|
-
*
|
60
|
+
* Sets the title and label for the **Print** tool.
|
61
61
|
*/
|
62
62
|
printTitle;
|
63
63
|
/**
|
64
|
-
*
|
64
|
+
* Sets the `aria-label` attribute for the Pager input element.
|
65
65
|
*/
|
66
66
|
pagerInputLabel;
|
67
67
|
/**
|
68
|
-
*
|
68
|
+
* Sets the `title` attribute for the Pager input element.
|
69
69
|
*/
|
70
70
|
pagerInputTitle;
|
71
71
|
/**
|
72
|
-
*
|
72
|
+
* Sets the label for the Pager **First page** button.
|
73
73
|
*/
|
74
74
|
pagerFirstPage;
|
75
75
|
/**
|
76
|
-
*
|
76
|
+
* Sets the label for the Pager **Previous page** button.
|
77
77
|
*/
|
78
78
|
pagerPreviousPage;
|
79
79
|
/**
|
80
|
-
*
|
80
|
+
* Sets the label for the Pager **Next page** button.
|
81
81
|
*/
|
82
82
|
pagerNextPage;
|
83
83
|
/**
|
84
|
-
*
|
84
|
+
* Sets the label for the Pager **Last page** button.
|
85
85
|
*/
|
86
86
|
pagerLastPage;
|
87
87
|
/**
|
88
|
-
*
|
88
|
+
* Sets the text before the Pager total-page number.
|
89
89
|
*/
|
90
90
|
pagerOf;
|
91
91
|
/**
|
92
|
-
*
|
92
|
+
* Sets the text before the Pager input.
|
93
93
|
*/
|
94
94
|
pagerPage;
|
95
95
|
/**
|
96
|
-
*
|
96
|
+
* Sets the text for the zoom level chooser **Fit to page** option.
|
97
97
|
*/
|
98
98
|
fitToPage;
|
99
99
|
/**
|
100
|
-
*
|
100
|
+
* Sets the text for the zoom level chooser **Fit to width** option.
|
101
101
|
*/
|
102
102
|
fitToWidth;
|
103
103
|
/**
|
104
|
-
*
|
104
|
+
* Sets the placeholder text for the search input.
|
105
105
|
*/
|
106
106
|
searchInputPlaceholder;
|
107
107
|
/**
|
108
|
-
*
|
108
|
+
* Sets the text before the total number of matches in the **Search** tool.
|
109
109
|
*/
|
110
110
|
searchMatchesOf;
|
111
111
|
/**
|
112
|
-
*
|
112
|
+
* Sets the title for the **Search** previous match button.
|
113
113
|
*/
|
114
114
|
searchPreviousMatchTitle;
|
115
115
|
/**
|
116
|
-
*
|
116
|
+
* Sets the title for the **Search** next match button.
|
117
117
|
*/
|
118
118
|
searchNextMatchTitle;
|
119
119
|
/**
|
120
|
-
*
|
120
|
+
* Sets the title for the **Search** close button.
|
121
121
|
*/
|
122
122
|
searchCloseTitle;
|
123
123
|
/**
|
124
|
-
*
|
124
|
+
* Sets the title for the **Search** match case button.
|
125
125
|
*/
|
126
126
|
searchMatchCaseTitle;
|
127
127
|
/**
|
128
|
-
*
|
128
|
+
* Sets the placeholder text for the zoom tool input.
|
129
129
|
*/
|
130
130
|
zoomInputPlaceholder;
|
131
131
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
@@ -190,7 +190,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
190
190
|
}] } });
|
191
191
|
|
192
192
|
/**
|
193
|
-
*
|
193
|
+
* Represents the custom messages component of the PDFViewer.
|
194
|
+
*
|
195
|
+
* Use this component to override default messages for the PDFViewer.
|
196
|
+
*
|
197
|
+
*
|
194
198
|
*/
|
195
199
|
class PDFViewerCustomMessagesComponent extends Messages {
|
196
200
|
service;
|
@@ -228,8 +232,8 @@ const packageMetadata = {
|
|
228
232
|
productName: 'Kendo UI for Angular',
|
229
233
|
productCode: 'KENDOUIANGULAR',
|
230
234
|
productCodes: ['KENDOUIANGULAR'],
|
231
|
-
publishDate:
|
232
|
-
version: '19.1.2-develop.
|
235
|
+
publishDate: 1749820762,
|
236
|
+
version: '19.1.2-develop.2',
|
233
237
|
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',
|
234
238
|
};
|
235
239
|
|
@@ -310,24 +314,23 @@ const zoomToFitOptions = {
|
|
310
314
|
};
|
311
315
|
|
312
316
|
/**
|
313
|
-
*
|
314
|
-
* If you cancel the event, the downloading of the file is prevented.
|
317
|
+
* Represents the arguments for the PDFViewer `download` event. The event fires when the user clicks the **Download** tool. Canceling the event prevents the download.
|
315
318
|
*/
|
316
319
|
class PDFViewerDownloadEvent extends PreventableEvent {
|
317
320
|
/**
|
318
|
-
*
|
321
|
+
* Provides the Blob object to be saved.
|
319
322
|
*/
|
320
323
|
blob;
|
321
324
|
/**
|
322
|
-
*
|
325
|
+
* Provides the file name for saving.
|
323
326
|
*/
|
324
327
|
fileName;
|
325
328
|
/**
|
326
|
-
*
|
329
|
+
* Provides the save options.
|
327
330
|
*/
|
328
331
|
saveOptions;
|
329
332
|
/**
|
330
|
-
* Represents the
|
333
|
+
* Represents the loaded `PDF.js` document, its pages, and their DOM element wrapper.
|
331
334
|
*/
|
332
335
|
context;
|
333
336
|
/**
|
@@ -1332,7 +1335,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
1332
1335
|
|
1333
1336
|
let counter = 0;
|
1334
1337
|
/**
|
1335
|
-
* Represents the [Kendo UI PDFViewer component for Angular](
|
1338
|
+
* Represents the [Kendo UI PDFViewer component for Angular](slug:overview_pdfviewer).
|
1339
|
+
*
|
1340
|
+
* @example
|
1341
|
+
* ```html
|
1342
|
+
* <kendo-pdfviewer
|
1343
|
+
* [url]="pdfUrl"
|
1344
|
+
* [zoom]="1.25"
|
1345
|
+
* [tools]="['pager', 'zoomInOut', 'zoom', 'download', 'print']">
|
1346
|
+
* </kendo-pdfviewer>
|
1347
|
+
* ```
|
1336
1348
|
*/
|
1337
1349
|
class PDFViewerComponent {
|
1338
1350
|
ngZone;
|
@@ -1394,7 +1406,7 @@ class PDFViewerComponent {
|
|
1394
1406
|
*/
|
1395
1407
|
typedArray;
|
1396
1408
|
/**
|
1397
|
-
*
|
1409
|
+
* Sets the initial zoom level of the PDF document
|
1398
1410
|
* ([see example](slug:tools_pdfviewer#zooming-tools)).
|
1399
1411
|
*
|
1400
1412
|
* @default 1.25
|
@@ -1415,7 +1427,7 @@ class PDFViewerComponent {
|
|
1415
1427
|
return this._zoom;
|
1416
1428
|
}
|
1417
1429
|
/**
|
1418
|
-
* Represents the step the zoom level will be changed with when using the ZoomIn and ZoomOut tools.
|
1430
|
+
* Represents the step the zoom level will be changed with when using the **ZoomIn** and **ZoomOut** tools.
|
1419
1431
|
* @default 0.25
|
1420
1432
|
*/
|
1421
1433
|
zoomRate = 0.25;
|
@@ -1430,35 +1442,35 @@ class PDFViewerComponent {
|
|
1430
1442
|
*/
|
1431
1443
|
maxZoom = 4;
|
1432
1444
|
/**
|
1433
|
-
*
|
1445
|
+
* Sets whether the component loads all PDF document pages at once or loads new pages on demand when needed.
|
1434
1446
|
*
|
1435
1447
|
* @default false
|
1436
1448
|
*/
|
1437
1449
|
loadOnDemand = false;
|
1438
1450
|
/**
|
1439
|
-
*
|
1451
|
+
* Sets the number of pages to load on demand when the `loadOnDemand` property is `true`.
|
1440
1452
|
*
|
1441
1453
|
* @default 1
|
1442
1454
|
*/
|
1443
1455
|
loadOnDemandPageSize = 1;
|
1444
1456
|
/**
|
1445
|
-
*
|
1457
|
+
* Fires when the component loads a PDF document successfully.
|
1446
1458
|
*/
|
1447
1459
|
load = new EventEmitter();
|
1448
1460
|
/**
|
1449
|
-
*
|
1461
|
+
* Fires when an error occurs while loading or downloading the PDF document.
|
1450
1462
|
*/
|
1451
1463
|
error = new EventEmitter();
|
1452
1464
|
/**
|
1453
|
-
*
|
1465
|
+
* Fires when the user clicks the **Download** tool of the loaded PDF document.
|
1454
1466
|
*/
|
1455
1467
|
download = new EventEmitter();
|
1456
1468
|
/**
|
1457
|
-
*
|
1469
|
+
* Fires when the user changes the page of the loaded PDF document.
|
1458
1470
|
*/
|
1459
1471
|
pageChange = new EventEmitter();
|
1460
1472
|
/**
|
1461
|
-
*
|
1473
|
+
* Fires when the user changes the zoom level of the loaded PDF document.
|
1462
1474
|
*/
|
1463
1475
|
zoomLevelChange = new EventEmitter();
|
1464
1476
|
pagesContainer;
|
@@ -1473,7 +1485,7 @@ class PDFViewerComponent {
|
|
1473
1485
|
this._pdfContext = doc;
|
1474
1486
|
}
|
1475
1487
|
/**
|
1476
|
-
* Exposes the
|
1488
|
+
* Exposes the loaded `PDF.js` document, its pages, and their DOM element wrapper.
|
1477
1489
|
*/
|
1478
1490
|
get pdfContext() {
|
1479
1491
|
return this._pdfContext;
|
@@ -2155,7 +2167,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
2155
2167
|
}] } });
|
2156
2168
|
|
2157
2169
|
/**
|
2158
|
-
*
|
2170
|
+
* Use the `KENDO_PDFVIEWER` utility array to add all `@progress/kendo-angular-pdf-viewer`-related components and directives to a standalone Angular component.
|
2171
|
+
*
|
2172
|
+
* @example
|
2173
|
+
* ```typescript
|
2174
|
+
* import { Component } from '@angular/core';
|
2175
|
+
* import { KENDO_PDFVIEWER } from "@progress/kendo-angular-pdf-viewer";
|
2176
|
+
*
|
2177
|
+
* @Component({
|
2178
|
+
* standalone: true,
|
2179
|
+
* imports: [KENDO_PDFVIEWER],
|
2180
|
+
* selector: 'my-app',
|
2181
|
+
* template: `<kendo-pdf-viewer [url]="pdfUrl"></kendo-pdf-viewer>`
|
2182
|
+
* })
|
2183
|
+
* export class AppComponent {}
|
2184
|
+
* ```
|
2159
2185
|
*/
|
2160
2186
|
const KENDO_PDFVIEWER = [
|
2161
2187
|
PDFViewerComponent,
|
@@ -2164,8 +2190,22 @@ const KENDO_PDFVIEWER = [
|
|
2164
2190
|
|
2165
2191
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
2166
2192
|
/**
|
2167
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
2168
|
-
*
|
2193
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the PDFViewer component.
|
2194
|
+
*
|
2195
|
+
* @example
|
2196
|
+
* ```typescript
|
2197
|
+
* import { NgModule } from '@angular/core';
|
2198
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
2199
|
+
* import { PDFViewerModule } from '@progress/kendo-angular-pdf-viewer';
|
2200
|
+
* import { AppComponent } from './app.component';
|
2201
|
+
*
|
2202
|
+
* @NgModule({
|
2203
|
+
* declarations: [AppComponent],
|
2204
|
+
* imports: [BrowserModule, PDFViewerModule],
|
2205
|
+
* bootstrap: [AppComponent]
|
2206
|
+
* })
|
2207
|
+
* export class AppModule {}
|
2208
|
+
* ```
|
2169
2209
|
*/
|
2170
2210
|
class PDFViewerModule {
|
2171
2211
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -6,7 +6,11 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
6
|
import { Messages } from './messages';
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
/**
|
9
|
-
*
|
9
|
+
* Represents the custom messages component of the PDFViewer.
|
10
|
+
*
|
11
|
+
* Use this component to override default messages for the PDFViewer.
|
12
|
+
*
|
13
|
+
*
|
10
14
|
*/
|
11
15
|
export declare class PDFViewerCustomMessagesComponent extends Messages {
|
12
16
|
protected service: LocalizationService;
|
@@ -9,103 +9,103 @@ import * as i0 from "@angular/core";
|
|
9
9
|
*/
|
10
10
|
export declare class Messages extends ComponentMessages {
|
11
11
|
/**
|
12
|
-
*
|
12
|
+
* Sets the title and label for the **ZoomIn** tool.
|
13
13
|
*/
|
14
14
|
zoomInTitle: string;
|
15
15
|
/**
|
16
|
-
*
|
16
|
+
* Sets the title and label for the **ZoomOut** tool.
|
17
17
|
*/
|
18
18
|
zoomOutTitle: string;
|
19
19
|
/**
|
20
|
-
*
|
20
|
+
* Sets the title and label for the **Selection** tool.
|
21
21
|
*/
|
22
22
|
selectionTitle: string;
|
23
23
|
/**
|
24
|
-
*
|
24
|
+
* Sets the title and label for the **Panning** tool.
|
25
25
|
*/
|
26
26
|
panningTitle: string;
|
27
27
|
/**
|
28
|
-
*
|
28
|
+
* Sets the title and label for the **Search** tool.
|
29
29
|
*/
|
30
30
|
searchTitle: string;
|
31
31
|
/**
|
32
|
-
*
|
32
|
+
* Sets the title and label for the **Open** tool.
|
33
33
|
*/
|
34
34
|
openTitle: string;
|
35
35
|
/**
|
36
|
-
*
|
36
|
+
* Sets the title and label for the **Download** tool.
|
37
37
|
*/
|
38
38
|
downloadTitle: string;
|
39
39
|
/**
|
40
|
-
*
|
40
|
+
* Sets the title and label for the **Print** tool.
|
41
41
|
*/
|
42
42
|
printTitle: string;
|
43
43
|
/**
|
44
|
-
*
|
44
|
+
* Sets the `aria-label` attribute for the Pager input element.
|
45
45
|
*/
|
46
46
|
pagerInputLabel: string;
|
47
47
|
/**
|
48
|
-
*
|
48
|
+
* Sets the `title` attribute for the Pager input element.
|
49
49
|
*/
|
50
50
|
pagerInputTitle: string;
|
51
51
|
/**
|
52
|
-
*
|
52
|
+
* Sets the label for the Pager **First page** button.
|
53
53
|
*/
|
54
54
|
pagerFirstPage: string;
|
55
55
|
/**
|
56
|
-
*
|
56
|
+
* Sets the label for the Pager **Previous page** button.
|
57
57
|
*/
|
58
58
|
pagerPreviousPage: string;
|
59
59
|
/**
|
60
|
-
*
|
60
|
+
* Sets the label for the Pager **Next page** button.
|
61
61
|
*/
|
62
62
|
pagerNextPage: string;
|
63
63
|
/**
|
64
|
-
*
|
64
|
+
* Sets the label for the Pager **Last page** button.
|
65
65
|
*/
|
66
66
|
pagerLastPage: string;
|
67
67
|
/**
|
68
|
-
*
|
68
|
+
* Sets the text before the Pager total-page number.
|
69
69
|
*/
|
70
70
|
pagerOf: string;
|
71
71
|
/**
|
72
|
-
*
|
72
|
+
* Sets the text before the Pager input.
|
73
73
|
*/
|
74
74
|
pagerPage: string;
|
75
75
|
/**
|
76
|
-
*
|
76
|
+
* Sets the text for the zoom level chooser **Fit to page** option.
|
77
77
|
*/
|
78
78
|
fitToPage: string;
|
79
79
|
/**
|
80
|
-
*
|
80
|
+
* Sets the text for the zoom level chooser **Fit to width** option.
|
81
81
|
*/
|
82
82
|
fitToWidth: string;
|
83
83
|
/**
|
84
|
-
*
|
84
|
+
* Sets the placeholder text for the search input.
|
85
85
|
*/
|
86
86
|
searchInputPlaceholder: string;
|
87
87
|
/**
|
88
|
-
*
|
88
|
+
* Sets the text before the total number of matches in the **Search** tool.
|
89
89
|
*/
|
90
90
|
searchMatchesOf: string;
|
91
91
|
/**
|
92
|
-
*
|
92
|
+
* Sets the title for the **Search** previous match button.
|
93
93
|
*/
|
94
94
|
searchPreviousMatchTitle: string;
|
95
95
|
/**
|
96
|
-
*
|
96
|
+
* Sets the title for the **Search** next match button.
|
97
97
|
*/
|
98
98
|
searchNextMatchTitle: string;
|
99
99
|
/**
|
100
|
-
*
|
100
|
+
* Sets the title for the **Search** close button.
|
101
101
|
*/
|
102
102
|
searchCloseTitle: string;
|
103
103
|
/**
|
104
|
-
*
|
104
|
+
* Sets the title for the **Search** match case button.
|
105
105
|
*/
|
106
106
|
searchMatchCaseTitle: string;
|
107
107
|
/**
|
108
|
-
*
|
108
|
+
* Sets the placeholder text for the zoom tool input.
|
109
109
|
*/
|
110
110
|
zoomInputPlaceholder: string;
|
111
111
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
|
package/models/events.d.ts
CHANGED
@@ -10,7 +10,7 @@ import { SaveOptions } from "@progress/kendo-file-saver";
|
|
10
10
|
*/
|
11
11
|
export interface PDFViewerLoadEvent {
|
12
12
|
/**
|
13
|
-
* Represents the
|
13
|
+
* Represents the loaded `PDF.js` document, its pages, and their DOM element wrapper.
|
14
14
|
*/
|
15
15
|
context: PDFViewerContext;
|
16
16
|
}
|
@@ -19,33 +19,32 @@ export interface PDFViewerLoadEvent {
|
|
19
19
|
*/
|
20
20
|
export interface PDFViewerErrorEvent {
|
21
21
|
/**
|
22
|
-
*
|
22
|
+
* Provides the original `Error` object.
|
23
23
|
*/
|
24
24
|
error: Error;
|
25
25
|
/**
|
26
|
-
* Represents the
|
26
|
+
* Represents the loaded `PDF.js` document, its pages, and their DOM element wrapper.
|
27
27
|
*/
|
28
28
|
context: PDFViewerContext;
|
29
29
|
}
|
30
30
|
/**
|
31
|
-
*
|
32
|
-
* If you cancel the event, the downloading of the file is prevented.
|
31
|
+
* Represents the arguments for the PDFViewer `download` event. The event fires when the user clicks the **Download** tool. Canceling the event prevents the download.
|
33
32
|
*/
|
34
33
|
export declare class PDFViewerDownloadEvent extends PreventableEvent {
|
35
34
|
/**
|
36
|
-
*
|
35
|
+
* Provides the Blob object to be saved.
|
37
36
|
*/
|
38
37
|
readonly blob: Blob;
|
39
38
|
/**
|
40
|
-
*
|
39
|
+
* Provides the file name for saving.
|
41
40
|
*/
|
42
41
|
readonly fileName: string;
|
43
42
|
/**
|
44
|
-
*
|
43
|
+
* Provides the save options.
|
45
44
|
*/
|
46
45
|
readonly saveOptions: SaveOptions;
|
47
46
|
/**
|
48
|
-
* Represents the
|
47
|
+
* Represents the loaded `PDF.js` document, its pages, and their DOM element wrapper.
|
49
48
|
*/
|
50
49
|
readonly context: PDFViewerContext;
|
51
50
|
/**
|
@@ -58,11 +57,11 @@ export declare class PDFViewerDownloadEvent extends PreventableEvent {
|
|
58
57
|
*/
|
59
58
|
export interface PDFViewerPageChangeEvent {
|
60
59
|
/**
|
61
|
-
*
|
60
|
+
* Provides the previous active page before triggering the event.
|
62
61
|
*/
|
63
62
|
previousPage: number;
|
64
63
|
/**
|
65
|
-
*
|
64
|
+
* Provides the current active page after triggering the event.
|
66
65
|
*/
|
67
66
|
currentPage: number;
|
68
67
|
}
|
@@ -71,11 +70,11 @@ export interface PDFViewerPageChangeEvent {
|
|
71
70
|
*/
|
72
71
|
export interface PDFViewerZoomChangeEvent {
|
73
72
|
/**
|
74
|
-
*
|
73
|
+
* Provides the previous zoom level.
|
75
74
|
*/
|
76
75
|
previousZoomLevel: number;
|
77
76
|
/**
|
78
|
-
*
|
77
|
+
* Provides the current zoom level.
|
79
78
|
*/
|
80
79
|
currentZoomLevel: number;
|
81
80
|
}
|
@@ -4,45 +4,19 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { LoaderSize, LoaderThemeColor, LoaderType } from "@progress/kendo-angular-indicators";
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* Defines the configuration options for the Loader component displayed while loading a PDF document.
|
8
8
|
*/
|
9
9
|
export interface LoaderSettings {
|
10
10
|
/**
|
11
11
|
* Specifies the size of the Loader.
|
12
|
-
*
|
13
|
-
* The possible values are:
|
14
|
-
* * `small`
|
15
|
-
* * `medium` (Default)
|
16
|
-
* * `large`
|
17
|
-
*
|
18
12
|
*/
|
19
13
|
size: LoaderSize;
|
20
14
|
/**
|
21
15
|
* Specifies the Loader animation type.
|
22
|
-
*
|
23
|
-
* The possible values are:
|
24
|
-
* - `pulsing` (default)
|
25
|
-
* - `infinite-spinner`
|
26
|
-
* - `converging-spinner`
|
27
|
-
*
|
28
16
|
*/
|
29
17
|
type: LoaderType;
|
30
18
|
/**
|
31
|
-
* Specifies the theme color
|
32
|
-
* ([see example]({% slug appearance_loader %}#toc-theme-color)).
|
33
|
-
*
|
34
|
-
* The possible values are:
|
35
|
-
* * `primary` (Default)—Applies coloring based on primary theme color.
|
36
|
-
* * `secondary`—Applies coloring based on secondary theme color.
|
37
|
-
* * `tertiary`— Applies coloring based on tertiary theme color.
|
38
|
-
* * `info`—Applies coloring based on info theme color.
|
39
|
-
* * `success`— Applies coloring based on success theme color.
|
40
|
-
* * `warning`— Applies coloring based on warning theme color.
|
41
|
-
* * `error`— Applies coloring based on error theme color.
|
42
|
-
* * `dark`— Applies coloring based on dark theme color.
|
43
|
-
* * `light`— Applies coloring based on light theme color.
|
44
|
-
* * `inverse`— Applies coloring based on inverted theme color.
|
45
|
-
*
|
19
|
+
* Specifies the Loader theme color.
|
46
20
|
*/
|
47
21
|
themeColor: LoaderThemeColor;
|
48
22
|
}
|
@@ -9,19 +9,19 @@ import { PDFPageProxy } from 'pdfjs-dist';
|
|
9
9
|
*/
|
10
10
|
export interface PDFViewerContext {
|
11
11
|
/**
|
12
|
-
*
|
12
|
+
* Represents the loaded `PDF.js` document.
|
13
13
|
*/
|
14
14
|
pdfDoc: PDFDocumentProxy;
|
15
15
|
/**
|
16
|
-
*
|
16
|
+
* Defines the root DOM element wrapper for the PDF document.
|
17
17
|
*/
|
18
18
|
element: HTMLDivElement;
|
19
19
|
/**
|
20
|
-
*
|
20
|
+
* Defines the loaded `PDF.js` pages.
|
21
21
|
*/
|
22
22
|
pdfPages: PDFPageProxy[];
|
23
23
|
/**
|
24
|
-
*
|
24
|
+
* Represents the current zoom level.
|
25
25
|
*/
|
26
26
|
zoom: number;
|
27
27
|
}
|
package/models/toolbar-tool.d.ts
CHANGED
@@ -3,6 +3,6 @@
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
/**
|
6
|
-
*
|
6
|
+
* Defines the possible types of PDFViewer toolbar tools.
|
7
7
|
*/
|
8
8
|
export type PDFViewerTool = 'pager' | 'spacer' | 'zoomInOut' | 'zoom' | 'selection' | 'search' | 'open' | 'download' | 'print';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@progress/kendo-angular-pdfviewer",
|
3
|
-
"version": "19.1.2-develop.
|
3
|
+
"version": "19.1.2-develop.2",
|
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": 1749820762,
|
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
|
},
|
@@ -29,21 +29,21 @@
|
|
29
29
|
"@angular/core": "16 - 20",
|
30
30
|
"@angular/platform-browser": "16 - 20",
|
31
31
|
"@progress/kendo-licensing": "^1.5.0",
|
32
|
-
"@progress/kendo-angular-buttons": "19.1.2-develop.
|
33
|
-
"@progress/kendo-angular-common": "19.1.2-develop.
|
34
|
-
"@progress/kendo-angular-dropdowns": "19.1.2-develop.
|
35
|
-
"@progress/kendo-angular-inputs": "19.1.2-develop.
|
36
|
-
"@progress/kendo-angular-intl": "19.1.2-develop.
|
37
|
-
"@progress/kendo-angular-l10n": "19.1.2-develop.
|
38
|
-
"@progress/kendo-angular-icons": "19.1.2-develop.
|
39
|
-
"@progress/kendo-angular-indicators": "19.1.2-develop.
|
40
|
-
"@progress/kendo-angular-pager": "19.1.2-develop.
|
41
|
-
"@progress/kendo-angular-popup": "19.1.2-develop.
|
32
|
+
"@progress/kendo-angular-buttons": "19.1.2-develop.2",
|
33
|
+
"@progress/kendo-angular-common": "19.1.2-develop.2",
|
34
|
+
"@progress/kendo-angular-dropdowns": "19.1.2-develop.2",
|
35
|
+
"@progress/kendo-angular-inputs": "19.1.2-develop.2",
|
36
|
+
"@progress/kendo-angular-intl": "19.1.2-develop.2",
|
37
|
+
"@progress/kendo-angular-l10n": "19.1.2-develop.2",
|
38
|
+
"@progress/kendo-angular-icons": "19.1.2-develop.2",
|
39
|
+
"@progress/kendo-angular-indicators": "19.1.2-develop.2",
|
40
|
+
"@progress/kendo-angular-pager": "19.1.2-develop.2",
|
41
|
+
"@progress/kendo-angular-popup": "19.1.2-develop.2",
|
42
42
|
"rxjs": "^6.5.3 || ^7.0.0"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
45
|
"tslib": "^2.3.1",
|
46
|
-
"@progress/kendo-angular-schematics": "19.1.2-develop.
|
46
|
+
"@progress/kendo-angular-schematics": "19.1.2-develop.2",
|
47
47
|
"@progress/kendo-file-saver": "^1.0.1",
|
48
48
|
"@progress/kendo-pdfviewer-common": "0.4.1"
|
49
49
|
},
|
package/pdfviewer.component.d.ts
CHANGED
@@ -16,7 +16,16 @@ import { ToolbarComponent } from './toolbar/toolbar.component';
|
|
16
16
|
import 'pdfjs-dist/build/pdf.worker.min.mjs';
|
17
17
|
import * as i0 from "@angular/core";
|
18
18
|
/**
|
19
|
-
* Represents the [Kendo UI PDFViewer component for Angular](
|
19
|
+
* Represents the [Kendo UI PDFViewer component for Angular](slug:overview_pdfviewer).
|
20
|
+
*
|
21
|
+
* @example
|
22
|
+
* ```html
|
23
|
+
* <kendo-pdfviewer
|
24
|
+
* [url]="pdfUrl"
|
25
|
+
* [zoom]="1.25"
|
26
|
+
* [tools]="['pager', 'zoomInOut', 'zoom', 'download', 'print']">
|
27
|
+
* </kendo-pdfviewer>
|
28
|
+
* ```
|
20
29
|
*/
|
21
30
|
export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
22
31
|
private ngZone;
|
@@ -63,7 +72,7 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
63
72
|
*/
|
64
73
|
typedArray: TypedArray | undefined;
|
65
74
|
/**
|
66
|
-
*
|
75
|
+
* Sets the initial zoom level of the PDF document
|
67
76
|
* ([see example](slug:tools_pdfviewer#zooming-tools)).
|
68
77
|
*
|
69
78
|
* @default 1.25
|
@@ -71,7 +80,7 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
71
80
|
set zoom(value: number | 'fitToPage' | 'fitToWidth');
|
72
81
|
get zoom(): number;
|
73
82
|
/**
|
74
|
-
* Represents the step the zoom level will be changed with when using the ZoomIn and ZoomOut tools.
|
83
|
+
* Represents the step the zoom level will be changed with when using the **ZoomIn** and **ZoomOut** tools.
|
75
84
|
* @default 0.25
|
76
85
|
*/
|
77
86
|
zoomRate: number;
|
@@ -86,35 +95,35 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
86
95
|
*/
|
87
96
|
maxZoom: number;
|
88
97
|
/**
|
89
|
-
*
|
98
|
+
* Sets whether the component loads all PDF document pages at once or loads new pages on demand when needed.
|
90
99
|
*
|
91
100
|
* @default false
|
92
101
|
*/
|
93
102
|
loadOnDemand: boolean;
|
94
103
|
/**
|
95
|
-
*
|
104
|
+
* Sets the number of pages to load on demand when the `loadOnDemand` property is `true`.
|
96
105
|
*
|
97
106
|
* @default 1
|
98
107
|
*/
|
99
108
|
loadOnDemandPageSize: number;
|
100
109
|
/**
|
101
|
-
*
|
110
|
+
* Fires when the component loads a PDF document successfully.
|
102
111
|
*/
|
103
112
|
load: EventEmitter<PDFViewerLoadEvent>;
|
104
113
|
/**
|
105
|
-
*
|
114
|
+
* Fires when an error occurs while loading or downloading the PDF document.
|
106
115
|
*/
|
107
116
|
error: EventEmitter<PDFViewerErrorEvent>;
|
108
117
|
/**
|
109
|
-
*
|
118
|
+
* Fires when the user clicks the **Download** tool of the loaded PDF document.
|
110
119
|
*/
|
111
120
|
download: EventEmitter<PDFViewerDownloadEvent>;
|
112
121
|
/**
|
113
|
-
*
|
122
|
+
* Fires when the user changes the page of the loaded PDF document.
|
114
123
|
*/
|
115
124
|
pageChange: EventEmitter<PDFViewerPageChangeEvent>;
|
116
125
|
/**
|
117
|
-
*
|
126
|
+
* Fires when the user changes the zoom level of the loaded PDF document.
|
118
127
|
*/
|
119
128
|
zoomLevelChange: EventEmitter<PDFViewerZoomChangeEvent>;
|
120
129
|
private pagesContainer;
|
@@ -124,7 +133,7 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
124
133
|
get currentPage(): number;
|
125
134
|
set pdfContext(doc: PDFViewerContext);
|
126
135
|
/**
|
127
|
-
* Exposes the
|
136
|
+
* Exposes the loaded `PDF.js` document, its pages, and their DOM element wrapper.
|
128
137
|
*/
|
129
138
|
get pdfContext(): PDFViewerContext;
|
130
139
|
/**
|
package/pdfviewer.module.d.ts
CHANGED
@@ -6,8 +6,22 @@ import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "./pdfviewer.component";
|
7
7
|
import * as i2 from "./localization/custom-messages.component";
|
8
8
|
/**
|
9
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
10
|
-
*
|
9
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the PDFViewer component.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* ```typescript
|
13
|
+
* import { NgModule } from '@angular/core';
|
14
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
15
|
+
* import { PDFViewerModule } from '@progress/kendo-angular-pdf-viewer';
|
16
|
+
* import { AppComponent } from './app.component';
|
17
|
+
*
|
18
|
+
* @NgModule({
|
19
|
+
* declarations: [AppComponent],
|
20
|
+
* imports: [BrowserModule, PDFViewerModule],
|
21
|
+
* bootstrap: [AppComponent]
|
22
|
+
* })
|
23
|
+
* export class AppModule {}
|
24
|
+
* ```
|
11
25
|
*/
|
12
26
|
export declare class PDFViewerModule {
|
13
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<PDFViewerModule, never>;
|
@@ -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.1.2-develop.
|
8
|
-
'@progress/kendo-angular-treeview': '19.1.2-develop.
|
7
|
+
'@progress/kendo-angular-navigation': '19.1.2-develop.2',
|
8
|
+
'@progress/kendo-angular-treeview': '19.1.2-develop.2'
|
9
9
|
} });
|
10
10
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
11
11
|
}
|