@progress/kendo-angular-pdfviewer 21.1.1-develop.2 → 21.2.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/annotations/annotation-editor.mjs +83 -84
- package/esm2022/localization/messages.mjs +7 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdfviewer.component.mjs +360 -333
- package/esm2022/toolbar/search.component.mjs +7 -1
- package/esm2022/toolbar/toolbar.component.mjs +512 -491
- package/fesm2022/progress-kendo-angular-pdfviewer.mjs +971 -910
- 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
|
@@ -14,7 +14,6 @@ import { Subscription } from 'rxjs';
|
|
|
14
14
|
import { ToolbarComponent } from './toolbar/toolbar.component';
|
|
15
15
|
import { PDFViewerSearchComponent } from './toolbar/search.component';
|
|
16
16
|
import { LoaderComponent } from './loader/loader.component';
|
|
17
|
-
import { NgIf } from '@angular/common';
|
|
18
17
|
import { LocalizedPDFViewerMessagesDirective } from './localization/localized-messages.directive';
|
|
19
18
|
import 'pdfjs-dist/build/pdf.worker.min.mjs';
|
|
20
19
|
import { AnnotationEditorTypes } from './models/annotation-editor.type';
|
|
@@ -331,6 +330,12 @@ export class PDFViewerComponent {
|
|
|
331
330
|
scrollToPage(page) {
|
|
332
331
|
this.pdfViewerWidget?.scrollToPage({ pageNumber: page });
|
|
333
332
|
}
|
|
333
|
+
/**
|
|
334
|
+
* @hidden
|
|
335
|
+
*/
|
|
336
|
+
messageFor(key) {
|
|
337
|
+
return this.localizationService.get(key);
|
|
338
|
+
}
|
|
334
339
|
/**
|
|
335
340
|
* @hidden
|
|
336
341
|
*/
|
|
@@ -674,7 +679,7 @@ export class PDFViewerComponent {
|
|
|
674
679
|
return observer;
|
|
675
680
|
};
|
|
676
681
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PDFViewerComponent, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i2.PopupService }], target: i0.ɵɵFactoryTarget.Component });
|
|
677
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
682
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: PDFViewerComponent, isStandalone: true, selector: "kendo-pdfviewer", inputs: { tools: "tools", loaderSettings: "loaderSettings", renderForms: "renderForms", saveFileName: "saveFileName", saveOptions: "saveOptions", url: "url", data: "data", arrayBuffer: "arrayBuffer", typedArray: "typedArray", zoom: "zoom", zoomRate: "zoomRate", minZoom: "minZoom", maxZoom: "maxZoom", loadOnDemand: "loadOnDemand", loadOnDemandPageSize: "loadOnDemandPageSize", removeAnnotationConfirmation: "removeAnnotationConfirmation" }, outputs: { load: "load", error: "error", download: "download", pageChange: "pageChange", zoomLevelChange: "zoomLevelChange" }, host: { properties: { "class.k-pdf-viewer": "this.hostClass", "attr.dir": "this.direction", "attr.display": "this.display" } }, providers: [
|
|
678
683
|
LocalizationService,
|
|
679
684
|
{
|
|
680
685
|
provide: L10N_PREFIX,
|
|
@@ -682,151 +687,156 @@ export class PDFViewerComponent {
|
|
|
682
687
|
}
|
|
683
688
|
], viewQueries: [{ propertyName: "pagesContainer", first: true, predicate: ["pagesContainer"], descendants: true }, { propertyName: "pagesContainerViewContainerRef", first: true, predicate: ["pagesContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "dialogContainerViewContainerRef", first: true, predicate: ["dialogContainer"], descendants: true, read: ViewContainerRef }], exportAs: ["kendo-pdfviewer"], usesOnChanges: true, ngImport: i0, template: `
|
|
684
689
|
<ng-container kendoPDFViewerLocalizedMessages
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
690
|
+
i18n-pagerFirstPage="kendo.pdfviewer.pagerFirstPage|The label for the first page button in the Pager"
|
|
691
|
+
pagerFirstPage="Go to the first page"
|
|
692
|
+
|
|
693
|
+
i18n-pagerPreviousPage="kendo.pdfviewer.pagerPreviousPage|The label for the previous page button in the Pager"
|
|
694
|
+
pagerPreviousPage="Go to the previous page"
|
|
695
|
+
|
|
696
|
+
i18n-pagerNextPage="kendo.pdfviewer.pagerNextPage|The label for the next page button in the Pager"
|
|
697
|
+
pagerNextPage="Go to the next page"
|
|
698
|
+
|
|
699
|
+
i18n-pagerLastPage="kendo.pdfviewer.pagerLastPage|The label for the last page button in the Pager"
|
|
700
|
+
pagerLastPage="Go to the last page"
|
|
701
|
+
|
|
702
|
+
i18n-pagerPage="kendo.pdfviewer.pagerPage|The text before the current page number in the Pager"
|
|
703
|
+
pagerPage="Page"
|
|
704
|
+
|
|
705
|
+
i18n-pagerOf="kendo.pdfviewer.pagerOf|The text before the total pages number in the Pager"
|
|
706
|
+
pagerOf="of"
|
|
707
|
+
|
|
708
|
+
i18n-pagerInputTitle="kendo.pdfviewer.pagerInputTitle|The label of the pager input element"
|
|
709
|
+
pagerInputTitle="Page Number"
|
|
710
|
+
|
|
711
|
+
i18n-pagerInputLabel="kendo.pdfviewer.pagerInputLabel|The text of the aria-label attribute applied to the input element for entering the page number."
|
|
712
|
+
pagerInputLabel="Type a page number"
|
|
713
|
+
|
|
714
|
+
i18n-zoomInTitle="kendo.pdfviewer.zoomInTitle|The ZoomIn tool title and label."
|
|
715
|
+
zoomInTitle="Zoom in"
|
|
716
|
+
|
|
717
|
+
i18n-zoomOutTitle="kendo.pdfviewer.zoomOutTitle|The ZoomOut tool title and label."
|
|
718
|
+
zoomOutTitle="Zoom out"
|
|
719
|
+
|
|
720
|
+
i18n-selectionTitle="kendo.pdfviewer.selectionTitle|The Selection tool title and label."
|
|
721
|
+
selectionTitle="Enable selection"
|
|
722
|
+
|
|
723
|
+
i18n-panningTitle="kendo.pdfviewer.panningTitle|The Panning tool title and label."
|
|
724
|
+
panningTitle="Enable panning"
|
|
725
|
+
|
|
726
|
+
i18n-searchTitle="kendo.pdfviewer.searchTitle|The Search tool title and label."
|
|
727
|
+
searchTitle="Search"
|
|
728
|
+
|
|
729
|
+
i18n-openTitle="kendo.pdfviewer.openTitle|The Open tool title and label."
|
|
730
|
+
openTitle="Open"
|
|
731
|
+
|
|
732
|
+
i18n-downloadTitle="kendo.pdfviewer.downloadTitle|The Download tool title and label."
|
|
733
|
+
downloadTitle="Download"
|
|
734
|
+
|
|
735
|
+
i18n-printTitle="kendo.pdfviewer.printTitle|The Print tool title and label."
|
|
736
|
+
printTitle="Print"
|
|
737
|
+
|
|
738
|
+
i18n-fitToPage="kendo.pdfviewer.fitToPage|The text for the zoom level chooser Fit to page option."
|
|
739
|
+
fitToPage="Fit to page"
|
|
740
|
+
|
|
741
|
+
i18n-fitToWidth="kendo.pdfviewer.fitToWidth|The text for the zoom level chooser Fit to width option."
|
|
742
|
+
fitToWidth="Fit to width"
|
|
743
|
+
|
|
744
|
+
i18n-searchInputPlaceholder="kendo.pdfviewer.searchInputPlaceholder|The text for the search input placeholder."
|
|
745
|
+
searchInputPlaceholder="Search"
|
|
746
|
+
|
|
747
|
+
i18n-searchMatchesOf="kendo.pdfviewer.searchMatchesOf|The text before the total number of matches in the Search tool."
|
|
748
|
+
searchMatchesOf="of"
|
|
749
|
+
|
|
750
|
+
i18n-searchPreviousMatchTitle="kendo.pdfviewer.searchPreviousMatchTitle|The title of the Search tool previous match button."
|
|
751
|
+
searchPreviousMatchTitle="Previous match"
|
|
752
|
+
|
|
753
|
+
i18n-searchNextMatchTitle="kendo.pdfviewer.searchNextMatchTitle|The title of the Search tool next match button."
|
|
754
|
+
searchNextMatchTitle="Next match"
|
|
755
|
+
|
|
756
|
+
i18n-searchCloseTitle="kendo.pdfviewer.searchCloseTitle|The title of the Search tool close button."
|
|
757
|
+
searchCloseTitle="Close"
|
|
758
|
+
|
|
759
|
+
i18n-searchMatchCaseTitle="kendo.pdfviewer.searchMatchCaseTitle|The title of the Search tool match case button."
|
|
760
|
+
searchMatchCaseTitle="Match case"
|
|
761
|
+
|
|
762
|
+
i18n-zoomInputPlaceholder="kendo.pdfviewer.zoomInputPlaceholder|The text for the zoom tool input placeholder."
|
|
763
|
+
zoomInputPlaceholder="Choose zoom level"
|
|
764
|
+
|
|
765
|
+
i18n-annotationsTitle="kendo.pdfviewer.annotationsTitle|The Annotations tool title and label."
|
|
766
|
+
annotationsTitle="Annotations"
|
|
767
|
+
|
|
768
|
+
i18n-annotationEditorTitle="kendo.pdfviewer.annotationEditorTitle|The annotation editor tool title and label."
|
|
769
|
+
annotationEditorTitle="Annotation editor"
|
|
770
|
+
|
|
771
|
+
i18n-deleteAnnotationTitle="kendo.pdfviewer.deleteAnnotationTitle|The delete annotation tool title and label."
|
|
772
|
+
deleteAnnotationTitle="Delete annotation"
|
|
773
|
+
|
|
774
|
+
i18n-highlightAnnotationTitle="kendo.pdfviewer.highlightAnnotationTitle|The highlight annotation tool title and label."
|
|
775
|
+
highlightAnnotationTitle="Highlight"
|
|
776
|
+
|
|
777
|
+
i18n-freeTextAnnotationTitle="kendo.pdfviewer.freeTextAnnotationTitle|The free text annotation tool title and label."
|
|
778
|
+
freeTextAnnotationTitle="Free text"
|
|
779
|
+
|
|
780
|
+
i18n-closeAnnotationsToolbarTitle="kendo.pdfviewer.closeAnnotationsToolbarTitle|The close annotations toolbar tool title and label."
|
|
781
|
+
closeAnnotationsToolbarTitle="Close"
|
|
782
|
+
|
|
783
|
+
i18n-deleteAnnotationConfirmationDialogTitle="kendo.pdfviewer.deleteAnnotationConfirmationDialogTitle|The delete annotation confirmation dialog title."
|
|
784
|
+
deleteAnnotationConfirmationDialogTitle="Delete annotation"
|
|
785
|
+
|
|
786
|
+
i18n-deleteAnnotationConfirmationDialogContent="kendo.pdfviewer.deleteAnnotationConfirmationDialogContent|The delete annotation confirmation dialog content."
|
|
787
|
+
deleteAnnotationConfirmationDialogContent="Are you sure you want to delete this annotation?"
|
|
788
|
+
|
|
789
|
+
i18n-deleteAnnotationConfirmationDialogConfirmText="kendo.pdfviewer.deleteAnnotationConfirmationDialogConfirmText|The delete annotation confirmation dialog confirm button text."
|
|
790
|
+
deleteAnnotationConfirmationDialogConfirmText="Delete"
|
|
791
|
+
|
|
792
|
+
i18n-deleteAnnotationConfirmationDialogRejectText="kendo.pdfviewer.deleteAnnotationConfirmationDialogRejectText|The delete annotation confirmation dialog reject button text."
|
|
793
|
+
deleteAnnotationConfirmationDialogRejectText="Cancel"
|
|
794
|
+
|
|
795
|
+
i18n-annotationEditorFontSizeTitle="kendo.pdfviewer.annotationEditorFontSizeTitle|The annotation editor font size section title."
|
|
796
|
+
annotationEditorFontSizeTitle="Font size"
|
|
797
|
+
|
|
798
|
+
i18n-annotationEditorColorTitle="kendo.pdfviewer.annotationEditorColorTitle|The annotation editor color section title."
|
|
799
|
+
annotationEditorColorTitle="Color"
|
|
800
|
+
|
|
801
|
+
i18n-canvasLabel="kendo.pdfviewer.canvasLabel|The label for the PDF viewer canvas container."
|
|
802
|
+
canvasLabel="PDF document">
|
|
795
803
|
</ng-container>
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
804
|
+
@if (loading) {
|
|
805
|
+
<div kendoPDFViewerLoader
|
|
806
|
+
[settings]="loaderSettings"></div>
|
|
807
|
+
}
|
|
799
808
|
<div kendoPDFViewerToolbar
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
809
|
+
#toolbar
|
|
810
|
+
role="toolbar"
|
|
811
|
+
[attr.aria-controls]="pagesContainerId"
|
|
812
|
+
[tools]="tools"
|
|
813
|
+
[skip]="skip"
|
|
814
|
+
[total]="pdfContext?.pdfPages.length ? pdfContext?.pdfPages.length : 1"
|
|
815
|
+
[pageSize]="1"
|
|
816
|
+
[zoomInDisabled]="zoom >= maxZoom || !pdfContext?.pdfDoc"
|
|
817
|
+
[zoomOutDisabled]="zoom <= minZoom || !pdfContext?.pdfDoc"
|
|
818
|
+
[zoomOptionsData]="zoomOptionsData"
|
|
819
|
+
[zoomLevelChooserValue]="zoomLevel"
|
|
820
|
+
[disabledTools]="!pdfContext?.pdfDoc"
|
|
821
|
+
[isAnnotationsToolbarVisible]="showAnnotationsToolbar"
|
|
822
|
+
[wrapperId]="showAnnotationsToolbar ? annotationsToolbarId : undefined"
|
|
823
|
+
[annotationsToolId]="annotationsToolId"
|
|
824
|
+
[isSelectionEnabled]="enabledSelection"
|
|
825
|
+
(pageChange)="onPageChange($event)"
|
|
826
|
+
(fileSelect)="onFileSelect($event)"
|
|
827
|
+
(fileSelectStart)="loading = true;"
|
|
828
|
+
(fileSelectError)="onFileSelectError($event)"
|
|
829
|
+
(download)="onDownload()"
|
|
830
|
+
(panningEnabled)="onPanningEnabled();"
|
|
831
|
+
(selectionEnabled)="onSelectionEnabled();"
|
|
832
|
+
(zoomIn)="onZoomIn()"
|
|
833
|
+
(zoomOut)="onZoomOut()"
|
|
834
|
+
(zoomLevelChange)="onZoomLevelChange($event)"
|
|
835
|
+
(print)="onPrint()"
|
|
836
|
+
(search)="onSearch()"
|
|
837
|
+
(toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
|
|
838
|
+
@if (showAnnotationsToolbar) {
|
|
839
|
+
<div
|
|
830
840
|
[attr.id]="annotationsToolbarId"
|
|
831
841
|
kendoPDFViewerToolbar
|
|
832
842
|
role="toolbar"
|
|
@@ -834,35 +844,41 @@ export class PDFViewerComponent {
|
|
|
834
844
|
(setAnnotationMode)="onSetAnnotationMode($event)"
|
|
835
845
|
[attr.aria-controls]="pagesContainerId"
|
|
836
846
|
[disabledTools]="!pdfContext?.pdfDoc"
|
|
837
|
-
|
|
847
|
+
(toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
|
|
848
|
+
}
|
|
838
849
|
<div
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
850
|
+
class="k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto"
|
|
851
|
+
[class.k-enable-text-select]="enabledSelection"
|
|
852
|
+
[class.k-enable-panning]="!enabledSelection"
|
|
853
|
+
[attr.aria-describedby]="activePageId"
|
|
854
|
+
[attr.aria-label]="messageFor('canvasLabel')"
|
|
855
|
+
role="document"
|
|
856
|
+
tabindex="0">
|
|
857
|
+
@if (searchActive) {
|
|
844
858
|
<div
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
859
|
+
kendoPDFViewerSearch
|
|
860
|
+
[currentMatch]="currentMatch"
|
|
861
|
+
[matches]="currentMatches.length"
|
|
862
|
+
class="k-search-panel k-pos-sticky k-top-center"
|
|
863
|
+
(searchChange)="onSearchChange($event)"
|
|
864
|
+
(prevMatch)="onPreviousMatch()"
|
|
865
|
+
(nextMatch)="onNextMatch()"
|
|
866
|
+
(close)="closeSearch(toolbar)"></div>
|
|
867
|
+
}
|
|
868
|
+
<div
|
|
869
|
+
#pagesContainer
|
|
856
870
|
[kendoEventsOutsideAngular]="{
|
|
857
871
|
wheel: stopPropagation
|
|
858
872
|
}"
|
|
859
|
-
|
|
860
|
-
|
|
873
|
+
class="k-pdf-viewer-pages"
|
|
874
|
+
[attr.id]="pagesContainerId"></div>
|
|
861
875
|
</div>
|
|
862
|
-
|
|
876
|
+
|
|
863
877
|
<div #dialogContainer></div>
|
|
864
|
-
|
|
865
|
-
|
|
878
|
+
@if (showLicenseWatermark) {
|
|
879
|
+
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
880
|
+
}
|
|
881
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedPDFViewerMessagesDirective, selector: "[kendoPDFViewerLocalizedMessages]" }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: LoaderComponent, selector: "[kendoPDFViewerLoader]", inputs: ["settings"] }, { kind: "component", type: ToolbarComponent, selector: "[kendoPDFViewerToolbar]", inputs: ["zoomLevel", "calculatedComboBoxValue", "skip", "pageSize", "total", "zoomInDisabled", "zoomOutDisabled", "disabledTools", "zoomLevelChooserValue", "zoomOptionsData", "pagesContainerId", "tools", "type", "wrapperId", "isAnnotationsToolbarVisible", "annotationsToolId", "isSelectionEnabled"], outputs: ["fileSelect", "fileSelectStart", "fileSelectError", "download", "selectionEnabled", "panningEnabled", "pageChange", "zoomIn", "zoomOut", "zoomLevelChange", "print", "search", "toggleAnnotationsToolbar", "setAnnotationMode"] }, { kind: "component", type: PDFViewerSearchComponent, selector: "[kendoPDFViewerSearch]", inputs: ["matches", "currentMatch"], outputs: ["searchChange", "prevMatch", "nextMatch", "close"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }] });
|
|
866
882
|
}
|
|
867
883
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PDFViewerComponent, decorators: [{
|
|
868
884
|
type: Component,
|
|
@@ -878,151 +894,156 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
878
894
|
],
|
|
879
895
|
template: `
|
|
880
896
|
<ng-container kendoPDFViewerLocalizedMessages
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
897
|
+
i18n-pagerFirstPage="kendo.pdfviewer.pagerFirstPage|The label for the first page button in the Pager"
|
|
898
|
+
pagerFirstPage="Go to the first page"
|
|
899
|
+
|
|
900
|
+
i18n-pagerPreviousPage="kendo.pdfviewer.pagerPreviousPage|The label for the previous page button in the Pager"
|
|
901
|
+
pagerPreviousPage="Go to the previous page"
|
|
902
|
+
|
|
903
|
+
i18n-pagerNextPage="kendo.pdfviewer.pagerNextPage|The label for the next page button in the Pager"
|
|
904
|
+
pagerNextPage="Go to the next page"
|
|
905
|
+
|
|
906
|
+
i18n-pagerLastPage="kendo.pdfviewer.pagerLastPage|The label for the last page button in the Pager"
|
|
907
|
+
pagerLastPage="Go to the last page"
|
|
908
|
+
|
|
909
|
+
i18n-pagerPage="kendo.pdfviewer.pagerPage|The text before the current page number in the Pager"
|
|
910
|
+
pagerPage="Page"
|
|
911
|
+
|
|
912
|
+
i18n-pagerOf="kendo.pdfviewer.pagerOf|The text before the total pages number in the Pager"
|
|
913
|
+
pagerOf="of"
|
|
914
|
+
|
|
915
|
+
i18n-pagerInputTitle="kendo.pdfviewer.pagerInputTitle|The label of the pager input element"
|
|
916
|
+
pagerInputTitle="Page Number"
|
|
917
|
+
|
|
918
|
+
i18n-pagerInputLabel="kendo.pdfviewer.pagerInputLabel|The text of the aria-label attribute applied to the input element for entering the page number."
|
|
919
|
+
pagerInputLabel="Type a page number"
|
|
920
|
+
|
|
921
|
+
i18n-zoomInTitle="kendo.pdfviewer.zoomInTitle|The ZoomIn tool title and label."
|
|
922
|
+
zoomInTitle="Zoom in"
|
|
923
|
+
|
|
924
|
+
i18n-zoomOutTitle="kendo.pdfviewer.zoomOutTitle|The ZoomOut tool title and label."
|
|
925
|
+
zoomOutTitle="Zoom out"
|
|
926
|
+
|
|
927
|
+
i18n-selectionTitle="kendo.pdfviewer.selectionTitle|The Selection tool title and label."
|
|
928
|
+
selectionTitle="Enable selection"
|
|
929
|
+
|
|
930
|
+
i18n-panningTitle="kendo.pdfviewer.panningTitle|The Panning tool title and label."
|
|
931
|
+
panningTitle="Enable panning"
|
|
932
|
+
|
|
933
|
+
i18n-searchTitle="kendo.pdfviewer.searchTitle|The Search tool title and label."
|
|
934
|
+
searchTitle="Search"
|
|
935
|
+
|
|
936
|
+
i18n-openTitle="kendo.pdfviewer.openTitle|The Open tool title and label."
|
|
937
|
+
openTitle="Open"
|
|
938
|
+
|
|
939
|
+
i18n-downloadTitle="kendo.pdfviewer.downloadTitle|The Download tool title and label."
|
|
940
|
+
downloadTitle="Download"
|
|
941
|
+
|
|
942
|
+
i18n-printTitle="kendo.pdfviewer.printTitle|The Print tool title and label."
|
|
943
|
+
printTitle="Print"
|
|
944
|
+
|
|
945
|
+
i18n-fitToPage="kendo.pdfviewer.fitToPage|The text for the zoom level chooser Fit to page option."
|
|
946
|
+
fitToPage="Fit to page"
|
|
947
|
+
|
|
948
|
+
i18n-fitToWidth="kendo.pdfviewer.fitToWidth|The text for the zoom level chooser Fit to width option."
|
|
949
|
+
fitToWidth="Fit to width"
|
|
950
|
+
|
|
951
|
+
i18n-searchInputPlaceholder="kendo.pdfviewer.searchInputPlaceholder|The text for the search input placeholder."
|
|
952
|
+
searchInputPlaceholder="Search"
|
|
953
|
+
|
|
954
|
+
i18n-searchMatchesOf="kendo.pdfviewer.searchMatchesOf|The text before the total number of matches in the Search tool."
|
|
955
|
+
searchMatchesOf="of"
|
|
956
|
+
|
|
957
|
+
i18n-searchPreviousMatchTitle="kendo.pdfviewer.searchPreviousMatchTitle|The title of the Search tool previous match button."
|
|
958
|
+
searchPreviousMatchTitle="Previous match"
|
|
959
|
+
|
|
960
|
+
i18n-searchNextMatchTitle="kendo.pdfviewer.searchNextMatchTitle|The title of the Search tool next match button."
|
|
961
|
+
searchNextMatchTitle="Next match"
|
|
962
|
+
|
|
963
|
+
i18n-searchCloseTitle="kendo.pdfviewer.searchCloseTitle|The title of the Search tool close button."
|
|
964
|
+
searchCloseTitle="Close"
|
|
965
|
+
|
|
966
|
+
i18n-searchMatchCaseTitle="kendo.pdfviewer.searchMatchCaseTitle|The title of the Search tool match case button."
|
|
967
|
+
searchMatchCaseTitle="Match case"
|
|
968
|
+
|
|
969
|
+
i18n-zoomInputPlaceholder="kendo.pdfviewer.zoomInputPlaceholder|The text for the zoom tool input placeholder."
|
|
970
|
+
zoomInputPlaceholder="Choose zoom level"
|
|
971
|
+
|
|
972
|
+
i18n-annotationsTitle="kendo.pdfviewer.annotationsTitle|The Annotations tool title and label."
|
|
973
|
+
annotationsTitle="Annotations"
|
|
974
|
+
|
|
975
|
+
i18n-annotationEditorTitle="kendo.pdfviewer.annotationEditorTitle|The annotation editor tool title and label."
|
|
976
|
+
annotationEditorTitle="Annotation editor"
|
|
977
|
+
|
|
978
|
+
i18n-deleteAnnotationTitle="kendo.pdfviewer.deleteAnnotationTitle|The delete annotation tool title and label."
|
|
979
|
+
deleteAnnotationTitle="Delete annotation"
|
|
980
|
+
|
|
981
|
+
i18n-highlightAnnotationTitle="kendo.pdfviewer.highlightAnnotationTitle|The highlight annotation tool title and label."
|
|
982
|
+
highlightAnnotationTitle="Highlight"
|
|
983
|
+
|
|
984
|
+
i18n-freeTextAnnotationTitle="kendo.pdfviewer.freeTextAnnotationTitle|The free text annotation tool title and label."
|
|
985
|
+
freeTextAnnotationTitle="Free text"
|
|
986
|
+
|
|
987
|
+
i18n-closeAnnotationsToolbarTitle="kendo.pdfviewer.closeAnnotationsToolbarTitle|The close annotations toolbar tool title and label."
|
|
988
|
+
closeAnnotationsToolbarTitle="Close"
|
|
989
|
+
|
|
990
|
+
i18n-deleteAnnotationConfirmationDialogTitle="kendo.pdfviewer.deleteAnnotationConfirmationDialogTitle|The delete annotation confirmation dialog title."
|
|
991
|
+
deleteAnnotationConfirmationDialogTitle="Delete annotation"
|
|
992
|
+
|
|
993
|
+
i18n-deleteAnnotationConfirmationDialogContent="kendo.pdfviewer.deleteAnnotationConfirmationDialogContent|The delete annotation confirmation dialog content."
|
|
994
|
+
deleteAnnotationConfirmationDialogContent="Are you sure you want to delete this annotation?"
|
|
995
|
+
|
|
996
|
+
i18n-deleteAnnotationConfirmationDialogConfirmText="kendo.pdfviewer.deleteAnnotationConfirmationDialogConfirmText|The delete annotation confirmation dialog confirm button text."
|
|
997
|
+
deleteAnnotationConfirmationDialogConfirmText="Delete"
|
|
998
|
+
|
|
999
|
+
i18n-deleteAnnotationConfirmationDialogRejectText="kendo.pdfviewer.deleteAnnotationConfirmationDialogRejectText|The delete annotation confirmation dialog reject button text."
|
|
1000
|
+
deleteAnnotationConfirmationDialogRejectText="Cancel"
|
|
1001
|
+
|
|
1002
|
+
i18n-annotationEditorFontSizeTitle="kendo.pdfviewer.annotationEditorFontSizeTitle|The annotation editor font size section title."
|
|
1003
|
+
annotationEditorFontSizeTitle="Font size"
|
|
1004
|
+
|
|
1005
|
+
i18n-annotationEditorColorTitle="kendo.pdfviewer.annotationEditorColorTitle|The annotation editor color section title."
|
|
1006
|
+
annotationEditorColorTitle="Color"
|
|
1007
|
+
|
|
1008
|
+
i18n-canvasLabel="kendo.pdfviewer.canvasLabel|The label for the PDF viewer canvas container."
|
|
1009
|
+
canvasLabel="PDF document">
|
|
991
1010
|
</ng-container>
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1011
|
+
@if (loading) {
|
|
1012
|
+
<div kendoPDFViewerLoader
|
|
1013
|
+
[settings]="loaderSettings"></div>
|
|
1014
|
+
}
|
|
995
1015
|
<div kendoPDFViewerToolbar
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1016
|
+
#toolbar
|
|
1017
|
+
role="toolbar"
|
|
1018
|
+
[attr.aria-controls]="pagesContainerId"
|
|
1019
|
+
[tools]="tools"
|
|
1020
|
+
[skip]="skip"
|
|
1021
|
+
[total]="pdfContext?.pdfPages.length ? pdfContext?.pdfPages.length : 1"
|
|
1022
|
+
[pageSize]="1"
|
|
1023
|
+
[zoomInDisabled]="zoom >= maxZoom || !pdfContext?.pdfDoc"
|
|
1024
|
+
[zoomOutDisabled]="zoom <= minZoom || !pdfContext?.pdfDoc"
|
|
1025
|
+
[zoomOptionsData]="zoomOptionsData"
|
|
1026
|
+
[zoomLevelChooserValue]="zoomLevel"
|
|
1027
|
+
[disabledTools]="!pdfContext?.pdfDoc"
|
|
1028
|
+
[isAnnotationsToolbarVisible]="showAnnotationsToolbar"
|
|
1029
|
+
[wrapperId]="showAnnotationsToolbar ? annotationsToolbarId : undefined"
|
|
1030
|
+
[annotationsToolId]="annotationsToolId"
|
|
1031
|
+
[isSelectionEnabled]="enabledSelection"
|
|
1032
|
+
(pageChange)="onPageChange($event)"
|
|
1033
|
+
(fileSelect)="onFileSelect($event)"
|
|
1034
|
+
(fileSelectStart)="loading = true;"
|
|
1035
|
+
(fileSelectError)="onFileSelectError($event)"
|
|
1036
|
+
(download)="onDownload()"
|
|
1037
|
+
(panningEnabled)="onPanningEnabled();"
|
|
1038
|
+
(selectionEnabled)="onSelectionEnabled();"
|
|
1039
|
+
(zoomIn)="onZoomIn()"
|
|
1040
|
+
(zoomOut)="onZoomOut()"
|
|
1041
|
+
(zoomLevelChange)="onZoomLevelChange($event)"
|
|
1042
|
+
(print)="onPrint()"
|
|
1043
|
+
(search)="onSearch()"
|
|
1044
|
+
(toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
|
|
1045
|
+
@if (showAnnotationsToolbar) {
|
|
1046
|
+
<div
|
|
1026
1047
|
[attr.id]="annotationsToolbarId"
|
|
1027
1048
|
kendoPDFViewerToolbar
|
|
1028
1049
|
role="toolbar"
|
|
@@ -1030,37 +1051,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1030
1051
|
(setAnnotationMode)="onSetAnnotationMode($event)"
|
|
1031
1052
|
[attr.aria-controls]="pagesContainerId"
|
|
1032
1053
|
[disabledTools]="!pdfContext?.pdfDoc"
|
|
1033
|
-
|
|
1054
|
+
(toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
|
|
1055
|
+
}
|
|
1034
1056
|
<div
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1057
|
+
class="k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto"
|
|
1058
|
+
[class.k-enable-text-select]="enabledSelection"
|
|
1059
|
+
[class.k-enable-panning]="!enabledSelection"
|
|
1060
|
+
[attr.aria-describedby]="activePageId"
|
|
1061
|
+
[attr.aria-label]="messageFor('canvasLabel')"
|
|
1062
|
+
role="document"
|
|
1063
|
+
tabindex="0">
|
|
1064
|
+
@if (searchActive) {
|
|
1040
1065
|
<div
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1066
|
+
kendoPDFViewerSearch
|
|
1067
|
+
[currentMatch]="currentMatch"
|
|
1068
|
+
[matches]="currentMatches.length"
|
|
1069
|
+
class="k-search-panel k-pos-sticky k-top-center"
|
|
1070
|
+
(searchChange)="onSearchChange($event)"
|
|
1071
|
+
(prevMatch)="onPreviousMatch()"
|
|
1072
|
+
(nextMatch)="onNextMatch()"
|
|
1073
|
+
(close)="closeSearch(toolbar)"></div>
|
|
1074
|
+
}
|
|
1075
|
+
<div
|
|
1076
|
+
#pagesContainer
|
|
1052
1077
|
[kendoEventsOutsideAngular]="{
|
|
1053
1078
|
wheel: stopPropagation
|
|
1054
1079
|
}"
|
|
1055
|
-
|
|
1056
|
-
|
|
1080
|
+
class="k-pdf-viewer-pages"
|
|
1081
|
+
[attr.id]="pagesContainerId"></div>
|
|
1057
1082
|
</div>
|
|
1058
|
-
|
|
1083
|
+
|
|
1059
1084
|
<div #dialogContainer></div>
|
|
1060
|
-
|
|
1061
|
-
|
|
1085
|
+
@if (showLicenseWatermark) {
|
|
1086
|
+
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
1087
|
+
}
|
|
1088
|
+
`,
|
|
1062
1089
|
standalone: true,
|
|
1063
|
-
imports: [LocalizedPDFViewerMessagesDirective,
|
|
1090
|
+
imports: [LocalizedPDFViewerMessagesDirective, EventsOutsideAngularDirective, LoaderComponent, ToolbarComponent, PDFViewerSearchComponent, WatermarkOverlayComponent]
|
|
1064
1091
|
}]
|
|
1065
1092
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i2.PopupService }], propDecorators: { hostClass: [{
|
|
1066
1093
|
type: HostBinding,
|