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