@progress/kendo-angular-pdfviewer 21.2.0-develop.1 → 21.2.0-develop.3
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/esm2022/localization/messages.mjs +7 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdfviewer.component.mjs +18 -2
- package/esm2022/toolbar/search.component.mjs +7 -1
- package/fesm2022/progress-kendo-angular-pdfviewer.mjs +34 -6
- package/localization/messages.d.ts +5 -1
- package/package.json +14 -14
- package/pdfviewer.component.d.ts +4 -0
- package/schematics/ngAdd/index.js +2 -2
- package/toolbar/search.component.d.ts +1 -0
|
@@ -157,8 +157,12 @@ export class Messages extends ComponentMessages {
|
|
|
157
157
|
* Sets the text of the **Color** section in the annotation editor dialog.
|
|
158
158
|
*/
|
|
159
159
|
annotationEditorColorTitle;
|
|
160
|
+
/**
|
|
161
|
+
* Sets the label for the PDF viewer canvas container.
|
|
162
|
+
*/
|
|
163
|
+
canvasLabel;
|
|
160
164
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
161
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: Messages, selector: "kendo-pdfviewer-messages-base", inputs: { zoomInTitle: "zoomInTitle", zoomOutTitle: "zoomOutTitle", selectionTitle: "selectionTitle", panningTitle: "panningTitle", searchTitle: "searchTitle", openTitle: "openTitle", downloadTitle: "downloadTitle", printTitle: "printTitle", pagerInputLabel: "pagerInputLabel", pagerInputTitle: "pagerInputTitle", pagerFirstPage: "pagerFirstPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerLastPage: "pagerLastPage", pagerOf: "pagerOf", pagerPage: "pagerPage", fitToPage: "fitToPage", fitToWidth: "fitToWidth", searchInputPlaceholder: "searchInputPlaceholder", searchMatchesOf: "searchMatchesOf", searchPreviousMatchTitle: "searchPreviousMatchTitle", searchNextMatchTitle: "searchNextMatchTitle", searchCloseTitle: "searchCloseTitle", searchMatchCaseTitle: "searchMatchCaseTitle", zoomInputPlaceholder: "zoomInputPlaceholder", annotationsTitle: "annotationsTitle", annotationEditorTitle: "annotationEditorTitle", deleteAnnotationTitle: "deleteAnnotationTitle", highlightAnnotationTitle: "highlightAnnotationTitle", freeTextAnnotationTitle: "freeTextAnnotationTitle", closeAnnotationsToolbarTitle: "closeAnnotationsToolbarTitle", deleteAnnotationConfirmationDialogTitle: "deleteAnnotationConfirmationDialogTitle", deleteAnnotationConfirmationDialogContent: "deleteAnnotationConfirmationDialogContent", deleteAnnotationConfirmationDialogConfirmText: "deleteAnnotationConfirmationDialogConfirmText", deleteAnnotationConfirmationDialogRejectText: "deleteAnnotationConfirmationDialogRejectText", annotationEditorFontSizeTitle: "annotationEditorFontSizeTitle", annotationEditorColorTitle: "annotationEditorColorTitle" }, usesInheritance: true, ngImport: i0 });
|
|
165
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: Messages, selector: "kendo-pdfviewer-messages-base", inputs: { zoomInTitle: "zoomInTitle", zoomOutTitle: "zoomOutTitle", selectionTitle: "selectionTitle", panningTitle: "panningTitle", searchTitle: "searchTitle", openTitle: "openTitle", downloadTitle: "downloadTitle", printTitle: "printTitle", pagerInputLabel: "pagerInputLabel", pagerInputTitle: "pagerInputTitle", pagerFirstPage: "pagerFirstPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerLastPage: "pagerLastPage", pagerOf: "pagerOf", pagerPage: "pagerPage", fitToPage: "fitToPage", fitToWidth: "fitToWidth", searchInputPlaceholder: "searchInputPlaceholder", searchMatchesOf: "searchMatchesOf", searchPreviousMatchTitle: "searchPreviousMatchTitle", searchNextMatchTitle: "searchNextMatchTitle", searchCloseTitle: "searchCloseTitle", searchMatchCaseTitle: "searchMatchCaseTitle", zoomInputPlaceholder: "zoomInputPlaceholder", annotationsTitle: "annotationsTitle", annotationEditorTitle: "annotationEditorTitle", deleteAnnotationTitle: "deleteAnnotationTitle", highlightAnnotationTitle: "highlightAnnotationTitle", freeTextAnnotationTitle: "freeTextAnnotationTitle", closeAnnotationsToolbarTitle: "closeAnnotationsToolbarTitle", deleteAnnotationConfirmationDialogTitle: "deleteAnnotationConfirmationDialogTitle", deleteAnnotationConfirmationDialogContent: "deleteAnnotationConfirmationDialogContent", deleteAnnotationConfirmationDialogConfirmText: "deleteAnnotationConfirmationDialogConfirmText", deleteAnnotationConfirmationDialogRejectText: "deleteAnnotationConfirmationDialogRejectText", annotationEditorFontSizeTitle: "annotationEditorFontSizeTitle", annotationEditorColorTitle: "annotationEditorColorTitle", canvasLabel: "canvasLabel" }, usesInheritance: true, ngImport: i0 });
|
|
162
166
|
}
|
|
163
167
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: Messages, decorators: [{
|
|
164
168
|
type: Directive,
|
|
@@ -240,4 +244,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
240
244
|
type: Input
|
|
241
245
|
}], annotationEditorColorTitle: [{
|
|
242
246
|
type: Input
|
|
247
|
+
}], canvasLabel: [{
|
|
248
|
+
type: Input
|
|
243
249
|
}] } });
|
|
@@ -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: '21.2.0-develop.
|
|
13
|
+
publishDate: 1764058504,
|
|
14
|
+
version: '21.2.0-develop.3',
|
|
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
|
};
|
|
@@ -330,6 +330,12 @@ export class PDFViewerComponent {
|
|
|
330
330
|
scrollToPage(page) {
|
|
331
331
|
this.pdfViewerWidget?.scrollToPage({ pageNumber: page });
|
|
332
332
|
}
|
|
333
|
+
/**
|
|
334
|
+
* @hidden
|
|
335
|
+
*/
|
|
336
|
+
messageFor(key) {
|
|
337
|
+
return this.localizationService.get(key);
|
|
338
|
+
}
|
|
333
339
|
/**
|
|
334
340
|
* @hidden
|
|
335
341
|
*/
|
|
@@ -790,7 +796,10 @@ export class PDFViewerComponent {
|
|
|
790
796
|
annotationEditorFontSizeTitle="Font size"
|
|
791
797
|
|
|
792
798
|
i18n-annotationEditorColorTitle="kendo.pdfviewer.annotationEditorColorTitle|The annotation editor color section title."
|
|
793
|
-
annotationEditorColorTitle="Color"
|
|
799
|
+
annotationEditorColorTitle="Color"
|
|
800
|
+
|
|
801
|
+
i18n-canvasLabel="kendo.pdfviewer.canvasLabel|The label for the PDF viewer canvas container."
|
|
802
|
+
canvasLabel="PDF document">
|
|
794
803
|
</ng-container>
|
|
795
804
|
@if (loading) {
|
|
796
805
|
<div kendoPDFViewerLoader
|
|
@@ -842,6 +851,8 @@ export class PDFViewerComponent {
|
|
|
842
851
|
[class.k-enable-text-select]="enabledSelection"
|
|
843
852
|
[class.k-enable-panning]="!enabledSelection"
|
|
844
853
|
[attr.aria-describedby]="activePageId"
|
|
854
|
+
[attr.aria-label]="messageFor('canvasLabel')"
|
|
855
|
+
role="document"
|
|
845
856
|
tabindex="0">
|
|
846
857
|
@if (searchActive) {
|
|
847
858
|
<div
|
|
@@ -992,7 +1003,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
992
1003
|
annotationEditorFontSizeTitle="Font size"
|
|
993
1004
|
|
|
994
1005
|
i18n-annotationEditorColorTitle="kendo.pdfviewer.annotationEditorColorTitle|The annotation editor color section title."
|
|
995
|
-
annotationEditorColorTitle="Color"
|
|
1006
|
+
annotationEditorColorTitle="Color"
|
|
1007
|
+
|
|
1008
|
+
i18n-canvasLabel="kendo.pdfviewer.canvasLabel|The label for the PDF viewer canvas container."
|
|
1009
|
+
canvasLabel="PDF document">
|
|
996
1010
|
</ng-container>
|
|
997
1011
|
@if (loading) {
|
|
998
1012
|
<div kendoPDFViewerLoader
|
|
@@ -1044,6 +1058,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1044
1058
|
[class.k-enable-text-select]="enabledSelection"
|
|
1045
1059
|
[class.k-enable-panning]="!enabledSelection"
|
|
1046
1060
|
[attr.aria-describedby]="activePageId"
|
|
1061
|
+
[attr.aria-label]="messageFor('canvasLabel')"
|
|
1062
|
+
role="document"
|
|
1047
1063
|
tabindex="0">
|
|
1048
1064
|
@if (searchActive) {
|
|
1049
1065
|
<div
|
|
@@ -17,6 +17,9 @@ export class PDFViewerSearchComponent {
|
|
|
17
17
|
textbox;
|
|
18
18
|
closeButton;
|
|
19
19
|
ariaRole = 'dialog';
|
|
20
|
+
get ariaLabel() {
|
|
21
|
+
return this.messageFor('searchTitle');
|
|
22
|
+
}
|
|
20
23
|
onEscape() {
|
|
21
24
|
this.close.emit();
|
|
22
25
|
}
|
|
@@ -48,7 +51,7 @@ export class PDFViewerSearchComponent {
|
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PDFViewerSearchComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: PDFViewerSearchComponent, isStandalone: true, selector: "[kendoPDFViewerSearch]", inputs: { matches: "matches", currentMatch: "currentMatch" }, outputs: { searchChange: "searchChange", prevMatch: "prevMatch", nextMatch: "nextMatch", close: "close" }, host: { listeners: { "keydown.escape": "onEscape()" }, properties: { "attr.role": "this.ariaRole" } }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }, { propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
54
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: PDFViewerSearchComponent, isStandalone: true, selector: "[kendoPDFViewerSearch]", inputs: { matches: "matches", currentMatch: "currentMatch" }, outputs: { searchChange: "searchChange", prevMatch: "prevMatch", nextMatch: "nextMatch", close: "close" }, host: { listeners: { "keydown.escape": "onEscape()" }, properties: { "attr.role": "this.ariaRole", "attr.aria-label": "this.ariaLabel" } }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }, { propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
52
55
|
<kendo-textbox
|
|
53
56
|
#textbox
|
|
54
57
|
[placeholder]="messageFor('searchInputPlaceholder')"
|
|
@@ -167,6 +170,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
167
170
|
}], ariaRole: [{
|
|
168
171
|
type: HostBinding,
|
|
169
172
|
args: ['attr.role']
|
|
173
|
+
}], ariaLabel: [{
|
|
174
|
+
type: HostBinding,
|
|
175
|
+
args: ['attr.aria-label']
|
|
170
176
|
}], onEscape: [{
|
|
171
177
|
type: HostListener,
|
|
172
178
|
args: ['keydown.escape']
|
|
@@ -179,8 +179,12 @@ class Messages extends ComponentMessages {
|
|
|
179
179
|
* Sets the text of the **Color** section in the annotation editor dialog.
|
|
180
180
|
*/
|
|
181
181
|
annotationEditorColorTitle;
|
|
182
|
+
/**
|
|
183
|
+
* Sets the label for the PDF viewer canvas container.
|
|
184
|
+
*/
|
|
185
|
+
canvasLabel;
|
|
182
186
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
183
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: Messages, selector: "kendo-pdfviewer-messages-base", inputs: { zoomInTitle: "zoomInTitle", zoomOutTitle: "zoomOutTitle", selectionTitle: "selectionTitle", panningTitle: "panningTitle", searchTitle: "searchTitle", openTitle: "openTitle", downloadTitle: "downloadTitle", printTitle: "printTitle", pagerInputLabel: "pagerInputLabel", pagerInputTitle: "pagerInputTitle", pagerFirstPage: "pagerFirstPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerLastPage: "pagerLastPage", pagerOf: "pagerOf", pagerPage: "pagerPage", fitToPage: "fitToPage", fitToWidth: "fitToWidth", searchInputPlaceholder: "searchInputPlaceholder", searchMatchesOf: "searchMatchesOf", searchPreviousMatchTitle: "searchPreviousMatchTitle", searchNextMatchTitle: "searchNextMatchTitle", searchCloseTitle: "searchCloseTitle", searchMatchCaseTitle: "searchMatchCaseTitle", zoomInputPlaceholder: "zoomInputPlaceholder", annotationsTitle: "annotationsTitle", annotationEditorTitle: "annotationEditorTitle", deleteAnnotationTitle: "deleteAnnotationTitle", highlightAnnotationTitle: "highlightAnnotationTitle", freeTextAnnotationTitle: "freeTextAnnotationTitle", closeAnnotationsToolbarTitle: "closeAnnotationsToolbarTitle", deleteAnnotationConfirmationDialogTitle: "deleteAnnotationConfirmationDialogTitle", deleteAnnotationConfirmationDialogContent: "deleteAnnotationConfirmationDialogContent", deleteAnnotationConfirmationDialogConfirmText: "deleteAnnotationConfirmationDialogConfirmText", deleteAnnotationConfirmationDialogRejectText: "deleteAnnotationConfirmationDialogRejectText", annotationEditorFontSizeTitle: "annotationEditorFontSizeTitle", annotationEditorColorTitle: "annotationEditorColorTitle" }, usesInheritance: true, ngImport: i0 });
|
|
187
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: Messages, selector: "kendo-pdfviewer-messages-base", inputs: { zoomInTitle: "zoomInTitle", zoomOutTitle: "zoomOutTitle", selectionTitle: "selectionTitle", panningTitle: "panningTitle", searchTitle: "searchTitle", openTitle: "openTitle", downloadTitle: "downloadTitle", printTitle: "printTitle", pagerInputLabel: "pagerInputLabel", pagerInputTitle: "pagerInputTitle", pagerFirstPage: "pagerFirstPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerLastPage: "pagerLastPage", pagerOf: "pagerOf", pagerPage: "pagerPage", fitToPage: "fitToPage", fitToWidth: "fitToWidth", searchInputPlaceholder: "searchInputPlaceholder", searchMatchesOf: "searchMatchesOf", searchPreviousMatchTitle: "searchPreviousMatchTitle", searchNextMatchTitle: "searchNextMatchTitle", searchCloseTitle: "searchCloseTitle", searchMatchCaseTitle: "searchMatchCaseTitle", zoomInputPlaceholder: "zoomInputPlaceholder", annotationsTitle: "annotationsTitle", annotationEditorTitle: "annotationEditorTitle", deleteAnnotationTitle: "deleteAnnotationTitle", highlightAnnotationTitle: "highlightAnnotationTitle", freeTextAnnotationTitle: "freeTextAnnotationTitle", closeAnnotationsToolbarTitle: "closeAnnotationsToolbarTitle", deleteAnnotationConfirmationDialogTitle: "deleteAnnotationConfirmationDialogTitle", deleteAnnotationConfirmationDialogContent: "deleteAnnotationConfirmationDialogContent", deleteAnnotationConfirmationDialogConfirmText: "deleteAnnotationConfirmationDialogConfirmText", deleteAnnotationConfirmationDialogRejectText: "deleteAnnotationConfirmationDialogRejectText", annotationEditorFontSizeTitle: "annotationEditorFontSizeTitle", annotationEditorColorTitle: "annotationEditorColorTitle", canvasLabel: "canvasLabel" }, usesInheritance: true, ngImport: i0 });
|
|
184
188
|
}
|
|
185
189
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: Messages, decorators: [{
|
|
186
190
|
type: Directive,
|
|
@@ -262,6 +266,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
262
266
|
type: Input
|
|
263
267
|
}], annotationEditorColorTitle: [{
|
|
264
268
|
type: Input
|
|
269
|
+
}], canvasLabel: [{
|
|
270
|
+
type: Input
|
|
265
271
|
}] } });
|
|
266
272
|
|
|
267
273
|
/**
|
|
@@ -315,8 +321,8 @@ const packageMetadata = {
|
|
|
315
321
|
productName: 'Kendo UI for Angular',
|
|
316
322
|
productCode: 'KENDOUIANGULAR',
|
|
317
323
|
productCodes: ['KENDOUIANGULAR'],
|
|
318
|
-
publishDate:
|
|
319
|
-
version: '21.2.0-develop.
|
|
324
|
+
publishDate: 1764058504,
|
|
325
|
+
version: '21.2.0-develop.3',
|
|
320
326
|
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',
|
|
321
327
|
};
|
|
322
328
|
|
|
@@ -1363,6 +1369,9 @@ class PDFViewerSearchComponent {
|
|
|
1363
1369
|
textbox;
|
|
1364
1370
|
closeButton;
|
|
1365
1371
|
ariaRole = 'dialog';
|
|
1372
|
+
get ariaLabel() {
|
|
1373
|
+
return this.messageFor('searchTitle');
|
|
1374
|
+
}
|
|
1366
1375
|
onEscape() {
|
|
1367
1376
|
this.close.emit();
|
|
1368
1377
|
}
|
|
@@ -1394,7 +1403,7 @@ class PDFViewerSearchComponent {
|
|
|
1394
1403
|
}
|
|
1395
1404
|
}
|
|
1396
1405
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PDFViewerSearchComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1397
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: PDFViewerSearchComponent, isStandalone: true, selector: "[kendoPDFViewerSearch]", inputs: { matches: "matches", currentMatch: "currentMatch" }, outputs: { searchChange: "searchChange", prevMatch: "prevMatch", nextMatch: "nextMatch", close: "close" }, host: { listeners: { "keydown.escape": "onEscape()" }, properties: { "attr.role": "this.ariaRole" } }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }, { propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
1406
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: PDFViewerSearchComponent, isStandalone: true, selector: "[kendoPDFViewerSearch]", inputs: { matches: "matches", currentMatch: "currentMatch" }, outputs: { searchChange: "searchChange", prevMatch: "prevMatch", nextMatch: "nextMatch", close: "close" }, host: { listeners: { "keydown.escape": "onEscape()" }, properties: { "attr.role": "this.ariaRole", "attr.aria-label": "this.ariaLabel" } }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }, { propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
1398
1407
|
<kendo-textbox
|
|
1399
1408
|
#textbox
|
|
1400
1409
|
[placeholder]="messageFor('searchInputPlaceholder')"
|
|
@@ -1513,6 +1522,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1513
1522
|
}], ariaRole: [{
|
|
1514
1523
|
type: HostBinding,
|
|
1515
1524
|
args: ['attr.role']
|
|
1525
|
+
}], ariaLabel: [{
|
|
1526
|
+
type: HostBinding,
|
|
1527
|
+
args: ['attr.aria-label']
|
|
1516
1528
|
}], onEscape: [{
|
|
1517
1529
|
type: HostListener,
|
|
1518
1530
|
args: ['keydown.escape']
|
|
@@ -2109,6 +2121,12 @@ class PDFViewerComponent {
|
|
|
2109
2121
|
scrollToPage(page) {
|
|
2110
2122
|
this.pdfViewerWidget?.scrollToPage({ pageNumber: page });
|
|
2111
2123
|
}
|
|
2124
|
+
/**
|
|
2125
|
+
* @hidden
|
|
2126
|
+
*/
|
|
2127
|
+
messageFor(key) {
|
|
2128
|
+
return this.localizationService.get(key);
|
|
2129
|
+
}
|
|
2112
2130
|
/**
|
|
2113
2131
|
* @hidden
|
|
2114
2132
|
*/
|
|
@@ -2569,7 +2587,10 @@ class PDFViewerComponent {
|
|
|
2569
2587
|
annotationEditorFontSizeTitle="Font size"
|
|
2570
2588
|
|
|
2571
2589
|
i18n-annotationEditorColorTitle="kendo.pdfviewer.annotationEditorColorTitle|The annotation editor color section title."
|
|
2572
|
-
annotationEditorColorTitle="Color"
|
|
2590
|
+
annotationEditorColorTitle="Color"
|
|
2591
|
+
|
|
2592
|
+
i18n-canvasLabel="kendo.pdfviewer.canvasLabel|The label for the PDF viewer canvas container."
|
|
2593
|
+
canvasLabel="PDF document">
|
|
2573
2594
|
</ng-container>
|
|
2574
2595
|
@if (loading) {
|
|
2575
2596
|
<div kendoPDFViewerLoader
|
|
@@ -2621,6 +2642,8 @@ class PDFViewerComponent {
|
|
|
2621
2642
|
[class.k-enable-text-select]="enabledSelection"
|
|
2622
2643
|
[class.k-enable-panning]="!enabledSelection"
|
|
2623
2644
|
[attr.aria-describedby]="activePageId"
|
|
2645
|
+
[attr.aria-label]="messageFor('canvasLabel')"
|
|
2646
|
+
role="document"
|
|
2624
2647
|
tabindex="0">
|
|
2625
2648
|
@if (searchActive) {
|
|
2626
2649
|
<div
|
|
@@ -2771,7 +2794,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2771
2794
|
annotationEditorFontSizeTitle="Font size"
|
|
2772
2795
|
|
|
2773
2796
|
i18n-annotationEditorColorTitle="kendo.pdfviewer.annotationEditorColorTitle|The annotation editor color section title."
|
|
2774
|
-
annotationEditorColorTitle="Color"
|
|
2797
|
+
annotationEditorColorTitle="Color"
|
|
2798
|
+
|
|
2799
|
+
i18n-canvasLabel="kendo.pdfviewer.canvasLabel|The label for the PDF viewer canvas container."
|
|
2800
|
+
canvasLabel="PDF document">
|
|
2775
2801
|
</ng-container>
|
|
2776
2802
|
@if (loading) {
|
|
2777
2803
|
<div kendoPDFViewerLoader
|
|
@@ -2823,6 +2849,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2823
2849
|
[class.k-enable-text-select]="enabledSelection"
|
|
2824
2850
|
[class.k-enable-panning]="!enabledSelection"
|
|
2825
2851
|
[attr.aria-describedby]="activePageId"
|
|
2852
|
+
[attr.aria-label]="messageFor('canvasLabel')"
|
|
2853
|
+
role="document"
|
|
2826
2854
|
tabindex="0">
|
|
2827
2855
|
@if (searchActive) {
|
|
2828
2856
|
<div
|
|
@@ -156,6 +156,10 @@ export declare class Messages extends ComponentMessages {
|
|
|
156
156
|
* Sets the text of the **Color** section in the annotation editor dialog.
|
|
157
157
|
*/
|
|
158
158
|
annotationEditorColorTitle: string;
|
|
159
|
+
/**
|
|
160
|
+
* Sets the label for the PDF viewer canvas container.
|
|
161
|
+
*/
|
|
162
|
+
canvasLabel: string;
|
|
159
163
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages, 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>;
|
|
164
|
+
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; }; "canvasLabel": { "alias": "canvasLabel"; "required": false; }; }, {}, never, never, false, never>;
|
|
161
165
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-pdfviewer",
|
|
3
|
-
"version": "21.2.0-develop.
|
|
3
|
+
"version": "21.2.0-develop.3",
|
|
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": 1764058504,
|
|
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,22 +29,22 @@
|
|
|
29
29
|
"@angular/core": "18 - 21",
|
|
30
30
|
"@angular/platform-browser": "18 - 21",
|
|
31
31
|
"@progress/kendo-licensing": "^1.7.0",
|
|
32
|
-
"@progress/kendo-angular-buttons": "21.2.0-develop.
|
|
33
|
-
"@progress/kendo-angular-common": "21.2.0-develop.
|
|
34
|
-
"@progress/kendo-angular-dialog": "21.2.0-develop.
|
|
35
|
-
"@progress/kendo-angular-dropdowns": "21.2.0-develop.
|
|
36
|
-
"@progress/kendo-angular-inputs": "21.2.0-develop.
|
|
37
|
-
"@progress/kendo-angular-intl": "21.2.0-develop.
|
|
38
|
-
"@progress/kendo-angular-l10n": "21.2.0-develop.
|
|
39
|
-
"@progress/kendo-angular-icons": "21.2.0-develop.
|
|
40
|
-
"@progress/kendo-angular-indicators": "21.2.0-develop.
|
|
41
|
-
"@progress/kendo-angular-pager": "21.2.0-develop.
|
|
42
|
-
"@progress/kendo-angular-popup": "21.2.0-develop.
|
|
32
|
+
"@progress/kendo-angular-buttons": "21.2.0-develop.3",
|
|
33
|
+
"@progress/kendo-angular-common": "21.2.0-develop.3",
|
|
34
|
+
"@progress/kendo-angular-dialog": "21.2.0-develop.3",
|
|
35
|
+
"@progress/kendo-angular-dropdowns": "21.2.0-develop.3",
|
|
36
|
+
"@progress/kendo-angular-inputs": "21.2.0-develop.3",
|
|
37
|
+
"@progress/kendo-angular-intl": "21.2.0-develop.3",
|
|
38
|
+
"@progress/kendo-angular-l10n": "21.2.0-develop.3",
|
|
39
|
+
"@progress/kendo-angular-icons": "21.2.0-develop.3",
|
|
40
|
+
"@progress/kendo-angular-indicators": "21.2.0-develop.3",
|
|
41
|
+
"@progress/kendo-angular-pager": "21.2.0-develop.3",
|
|
42
|
+
"@progress/kendo-angular-popup": "21.2.0-develop.3",
|
|
43
43
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"tslib": "^2.3.1",
|
|
47
|
-
"@progress/kendo-angular-schematics": "21.2.0-develop.
|
|
47
|
+
"@progress/kendo-angular-schematics": "21.2.0-develop.3",
|
|
48
48
|
"@progress/kendo-file-saver": "^1.0.1",
|
|
49
49
|
"@progress/kendo-pdfviewer-common": "0.6.2"
|
|
50
50
|
},
|
package/pdfviewer.component.d.ts
CHANGED
|
@@ -237,6 +237,10 @@ export declare class PDFViewerComponent implements OnInit, OnDestroy {
|
|
|
237
237
|
* ([see example](slug:tools_pdfviewer#programmatically-scrolling-the-pdfviewer)).
|
|
238
238
|
*/
|
|
239
239
|
scrollToPage(page: number): void;
|
|
240
|
+
/**
|
|
241
|
+
* @hidden
|
|
242
|
+
*/
|
|
243
|
+
messageFor(key: string): string;
|
|
240
244
|
/**
|
|
241
245
|
* @hidden
|
|
242
246
|
*/
|
|
@@ -9,8 +9,8 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'PDFViewerModule', package: 'pdfviewer', peerDependencies: {
|
|
11
11
|
// peers of the dropdowns
|
|
12
|
-
'@progress/kendo-angular-navigation': '21.2.0-develop.
|
|
13
|
-
'@progress/kendo-angular-treeview': '21.2.0-develop.
|
|
12
|
+
'@progress/kendo-angular-navigation': '21.2.0-develop.3',
|
|
13
|
+
'@progress/kendo-angular-treeview': '21.2.0-develop.3'
|
|
14
14
|
} });
|
|
15
15
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
16
16
|
}
|