@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.
@@ -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: "14.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: [
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
- i18n-pagerFirstPage="kendo.pdfviewer.pagerFirstPage|The label for the first page button in the Pager"
686
- pagerFirstPage="Go to the first page"
687
-
688
- i18n-pagerPreviousPage="kendo.pdfviewer.pagerPreviousPage|The label for the previous page button in the Pager"
689
- pagerPreviousPage="Go to the previous page"
690
-
691
- i18n-pagerNextPage="kendo.pdfviewer.pagerNextPage|The label for the next page button in the Pager"
692
- pagerNextPage="Go to the next page"
693
-
694
- i18n-pagerLastPage="kendo.pdfviewer.pagerLastPage|The label for the last page button in the Pager"
695
- pagerLastPage="Go to the last page"
696
-
697
- i18n-pagerPage="kendo.pdfviewer.pagerPage|The text before the current page number in the Pager"
698
- pagerPage="Page"
699
-
700
- i18n-pagerOf="kendo.pdfviewer.pagerOf|The text before the total pages number in the Pager"
701
- pagerOf="of"
702
-
703
- i18n-pagerInputTitle="kendo.pdfviewer.pagerInputTitle|The label of the pager input element"
704
- pagerInputTitle="Page Number"
705
-
706
- i18n-pagerInputLabel="kendo.pdfviewer.pagerInputLabel|The text of the aria-label attribute applied to the input element for entering the page number."
707
- pagerInputLabel="Type a page number"
708
-
709
- i18n-zoomInTitle="kendo.pdfviewer.zoomInTitle|The ZoomIn tool title and label."
710
- zoomInTitle="Zoom in"
711
-
712
- i18n-zoomOutTitle="kendo.pdfviewer.zoomOutTitle|The ZoomOut tool title and label."
713
- zoomOutTitle="Zoom out"
714
-
715
- i18n-selectionTitle="kendo.pdfviewer.selectionTitle|The Selection tool title and label."
716
- selectionTitle="Enable selection"
717
-
718
- i18n-panningTitle="kendo.pdfviewer.panningTitle|The Panning tool title and label."
719
- panningTitle="Enable panning"
720
-
721
- i18n-searchTitle="kendo.pdfviewer.searchTitle|The Search tool title and label."
722
- searchTitle="Search"
723
-
724
- i18n-openTitle="kendo.pdfviewer.openTitle|The Open tool title and label."
725
- openTitle="Open"
726
-
727
- i18n-downloadTitle="kendo.pdfviewer.downloadTitle|The Download tool title and label."
728
- downloadTitle="Download"
729
-
730
- i18n-printTitle="kendo.pdfviewer.printTitle|The Print tool title and label."
731
- printTitle="Print"
732
-
733
- i18n-fitToPage="kendo.pdfviewer.fitToPage|The text for the zoom level chooser Fit to page option."
734
- fitToPage="Fit to page"
735
-
736
- i18n-fitToWidth="kendo.pdfviewer.fitToWidth|The text for the zoom level chooser Fit to width option."
737
- fitToWidth="Fit to width"
738
-
739
- i18n-searchInputPlaceholder="kendo.pdfviewer.searchInputPlaceholder|The text for the search input placeholder."
740
- searchInputPlaceholder="Search"
741
-
742
- i18n-searchMatchesOf="kendo.pdfviewer.searchMatchesOf|The text before the total number of matches in the Search tool."
743
- searchMatchesOf="of"
744
-
745
- i18n-searchPreviousMatchTitle="kendo.pdfviewer.searchPreviousMatchTitle|The title of the Search tool previous match button."
746
- searchPreviousMatchTitle="Previous match"
747
-
748
- i18n-searchNextMatchTitle="kendo.pdfviewer.searchNextMatchTitle|The title of the Search tool next match button."
749
- searchNextMatchTitle="Next match"
750
-
751
- i18n-searchCloseTitle="kendo.pdfviewer.searchCloseTitle|The title of the Search tool close button."
752
- searchCloseTitle="Close"
753
-
754
- i18n-searchMatchCaseTitle="kendo.pdfviewer.searchMatchCaseTitle|The title of the Search tool match case button."
755
- searchMatchCaseTitle="Match case"
756
-
757
- i18n-zoomInputPlaceholder="kendo.pdfviewer.zoomInputPlaceholder|The text for the zoom tool input placeholder."
758
- zoomInputPlaceholder="Choose zoom level"
759
-
760
- i18n-annotationsTitle="kendo.pdfviewer.annotationsTitle|The Annotations tool title and label."
761
- annotationsTitle="Annotations"
762
-
763
- i18n-annotationEditorTitle="kendo.pdfviewer.annotationEditorTitle|The annotation editor tool title and label."
764
- annotationEditorTitle="Annotation editor"
765
-
766
- i18n-deleteAnnotationTitle="kendo.pdfviewer.deleteAnnotationTitle|The delete annotation tool title and label."
767
- deleteAnnotationTitle="Delete annotation"
768
-
769
- i18n-highlightAnnotationTitle="kendo.pdfviewer.highlightAnnotationTitle|The highlight annotation tool title and label."
770
- highlightAnnotationTitle="Highlight"
771
-
772
- i18n-freeTextAnnotationTitle="kendo.pdfviewer.freeTextAnnotationTitle|The free text annotation tool title and label."
773
- freeTextAnnotationTitle="Free text"
774
-
775
- i18n-closeAnnotationsToolbarTitle="kendo.pdfviewer.closeAnnotationsToolbarTitle|The close annotations toolbar tool title and label."
776
- closeAnnotationsToolbarTitle="Close"
777
-
778
- i18n-deleteAnnotationConfirmationDialogTitle="kendo.pdfviewer.deleteAnnotationConfirmationDialogTitle|The delete annotation confirmation dialog title."
779
- deleteAnnotationConfirmationDialogTitle="Delete annotation"
780
-
781
- i18n-deleteAnnotationConfirmationDialogContent="kendo.pdfviewer.deleteAnnotationConfirmationDialogContent|The delete annotation confirmation dialog content."
782
- deleteAnnotationConfirmationDialogContent="Are you sure you want to delete this annotation?"
783
-
784
- i18n-deleteAnnotationConfirmationDialogConfirmText="kendo.pdfviewer.deleteAnnotationConfirmationDialogConfirmText|The delete annotation confirmation dialog confirm button text."
785
- deleteAnnotationConfirmationDialogConfirmText="Delete"
786
-
787
- i18n-deleteAnnotationConfirmationDialogRejectText="kendo.pdfviewer.deleteAnnotationConfirmationDialogRejectText|The delete annotation confirmation dialog reject button text."
788
- deleteAnnotationConfirmationDialogRejectText="Cancel"
789
-
790
- i18n-annotationEditorFontSizeTitle="kendo.pdfviewer.annotationEditorFontSizeTitle|The annotation editor font size section title."
791
- annotationEditorFontSizeTitle="Font size"
792
-
793
- i18n-annotationEditorColorTitle="kendo.pdfviewer.annotationEditorColorTitle|The annotation editor color section title."
794
- annotationEditorColorTitle="Color">
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
- <div kendoPDFViewerLoader
797
- *ngIf="loading"
798
- [settings]="loaderSettings"></div>
804
+ @if (loading) {
805
+ <div kendoPDFViewerLoader
806
+ [settings]="loaderSettings"></div>
807
+ }
799
808
  <div kendoPDFViewerToolbar
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
- <div *ngIf="showAnnotationsToolbar"
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
- (toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
847
+ (toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
848
+ }
838
849
  <div
839
- class="k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto"
840
- [class.k-enable-text-select]="enabledSelection"
841
- [class.k-enable-panning]="!enabledSelection"
842
- [attr.aria-describedby]="activePageId"
843
- tabindex="0">
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
- 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>
854
- <div
855
- #pagesContainer
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
- class="k-pdf-viewer-pages"
860
- [attr.id]="pagesContainerId"></div>
873
+ class="k-pdf-viewer-pages"
874
+ [attr.id]="pagesContainerId"></div>
861
875
  </div>
862
-
876
+
863
877
  <div #dialogContainer></div>
864
- <div kendoWatermarkOverlay *ngIf="showLicenseWatermark" [licenseMessage]="licenseMessage"></div>
865
- `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedPDFViewerMessagesDirective, selector: "[kendoPDFViewerLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }] });
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
- i18n-pagerFirstPage="kendo.pdfviewer.pagerFirstPage|The label for the first page button in the Pager"
882
- pagerFirstPage="Go to the first page"
883
-
884
- i18n-pagerPreviousPage="kendo.pdfviewer.pagerPreviousPage|The label for the previous page button in the Pager"
885
- pagerPreviousPage="Go to the previous page"
886
-
887
- i18n-pagerNextPage="kendo.pdfviewer.pagerNextPage|The label for the next page button in the Pager"
888
- pagerNextPage="Go to the next page"
889
-
890
- i18n-pagerLastPage="kendo.pdfviewer.pagerLastPage|The label for the last page button in the Pager"
891
- pagerLastPage="Go to the last page"
892
-
893
- i18n-pagerPage="kendo.pdfviewer.pagerPage|The text before the current page number in the Pager"
894
- pagerPage="Page"
895
-
896
- i18n-pagerOf="kendo.pdfviewer.pagerOf|The text before the total pages number in the Pager"
897
- pagerOf="of"
898
-
899
- i18n-pagerInputTitle="kendo.pdfviewer.pagerInputTitle|The label of the pager input element"
900
- pagerInputTitle="Page Number"
901
-
902
- i18n-pagerInputLabel="kendo.pdfviewer.pagerInputLabel|The text of the aria-label attribute applied to the input element for entering the page number."
903
- pagerInputLabel="Type a page number"
904
-
905
- i18n-zoomInTitle="kendo.pdfviewer.zoomInTitle|The ZoomIn tool title and label."
906
- zoomInTitle="Zoom in"
907
-
908
- i18n-zoomOutTitle="kendo.pdfviewer.zoomOutTitle|The ZoomOut tool title and label."
909
- zoomOutTitle="Zoom out"
910
-
911
- i18n-selectionTitle="kendo.pdfviewer.selectionTitle|The Selection tool title and label."
912
- selectionTitle="Enable selection"
913
-
914
- i18n-panningTitle="kendo.pdfviewer.panningTitle|The Panning tool title and label."
915
- panningTitle="Enable panning"
916
-
917
- i18n-searchTitle="kendo.pdfviewer.searchTitle|The Search tool title and label."
918
- searchTitle="Search"
919
-
920
- i18n-openTitle="kendo.pdfviewer.openTitle|The Open tool title and label."
921
- openTitle="Open"
922
-
923
- i18n-downloadTitle="kendo.pdfviewer.downloadTitle|The Download tool title and label."
924
- downloadTitle="Download"
925
-
926
- i18n-printTitle="kendo.pdfviewer.printTitle|The Print tool title and label."
927
- printTitle="Print"
928
-
929
- i18n-fitToPage="kendo.pdfviewer.fitToPage|The text for the zoom level chooser Fit to page option."
930
- fitToPage="Fit to page"
931
-
932
- i18n-fitToWidth="kendo.pdfviewer.fitToWidth|The text for the zoom level chooser Fit to width option."
933
- fitToWidth="Fit to width"
934
-
935
- i18n-searchInputPlaceholder="kendo.pdfviewer.searchInputPlaceholder|The text for the search input placeholder."
936
- searchInputPlaceholder="Search"
937
-
938
- i18n-searchMatchesOf="kendo.pdfviewer.searchMatchesOf|The text before the total number of matches in the Search tool."
939
- searchMatchesOf="of"
940
-
941
- i18n-searchPreviousMatchTitle="kendo.pdfviewer.searchPreviousMatchTitle|The title of the Search tool previous match button."
942
- searchPreviousMatchTitle="Previous match"
943
-
944
- i18n-searchNextMatchTitle="kendo.pdfviewer.searchNextMatchTitle|The title of the Search tool next match button."
945
- searchNextMatchTitle="Next match"
946
-
947
- i18n-searchCloseTitle="kendo.pdfviewer.searchCloseTitle|The title of the Search tool close button."
948
- searchCloseTitle="Close"
949
-
950
- i18n-searchMatchCaseTitle="kendo.pdfviewer.searchMatchCaseTitle|The title of the Search tool match case button."
951
- searchMatchCaseTitle="Match case"
952
-
953
- i18n-zoomInputPlaceholder="kendo.pdfviewer.zoomInputPlaceholder|The text for the zoom tool input placeholder."
954
- zoomInputPlaceholder="Choose zoom level"
955
-
956
- i18n-annotationsTitle="kendo.pdfviewer.annotationsTitle|The Annotations tool title and label."
957
- annotationsTitle="Annotations"
958
-
959
- i18n-annotationEditorTitle="kendo.pdfviewer.annotationEditorTitle|The annotation editor tool title and label."
960
- annotationEditorTitle="Annotation editor"
961
-
962
- i18n-deleteAnnotationTitle="kendo.pdfviewer.deleteAnnotationTitle|The delete annotation tool title and label."
963
- deleteAnnotationTitle="Delete annotation"
964
-
965
- i18n-highlightAnnotationTitle="kendo.pdfviewer.highlightAnnotationTitle|The highlight annotation tool title and label."
966
- highlightAnnotationTitle="Highlight"
967
-
968
- i18n-freeTextAnnotationTitle="kendo.pdfviewer.freeTextAnnotationTitle|The free text annotation tool title and label."
969
- freeTextAnnotationTitle="Free text"
970
-
971
- i18n-closeAnnotationsToolbarTitle="kendo.pdfviewer.closeAnnotationsToolbarTitle|The close annotations toolbar tool title and label."
972
- closeAnnotationsToolbarTitle="Close"
973
-
974
- i18n-deleteAnnotationConfirmationDialogTitle="kendo.pdfviewer.deleteAnnotationConfirmationDialogTitle|The delete annotation confirmation dialog title."
975
- deleteAnnotationConfirmationDialogTitle="Delete annotation"
976
-
977
- i18n-deleteAnnotationConfirmationDialogContent="kendo.pdfviewer.deleteAnnotationConfirmationDialogContent|The delete annotation confirmation dialog content."
978
- deleteAnnotationConfirmationDialogContent="Are you sure you want to delete this annotation?"
979
-
980
- i18n-deleteAnnotationConfirmationDialogConfirmText="kendo.pdfviewer.deleteAnnotationConfirmationDialogConfirmText|The delete annotation confirmation dialog confirm button text."
981
- deleteAnnotationConfirmationDialogConfirmText="Delete"
982
-
983
- i18n-deleteAnnotationConfirmationDialogRejectText="kendo.pdfviewer.deleteAnnotationConfirmationDialogRejectText|The delete annotation confirmation dialog reject button text."
984
- deleteAnnotationConfirmationDialogRejectText="Cancel"
985
-
986
- i18n-annotationEditorFontSizeTitle="kendo.pdfviewer.annotationEditorFontSizeTitle|The annotation editor font size section title."
987
- annotationEditorFontSizeTitle="Font size"
988
-
989
- i18n-annotationEditorColorTitle="kendo.pdfviewer.annotationEditorColorTitle|The annotation editor color section title."
990
- annotationEditorColorTitle="Color">
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
- <div kendoPDFViewerLoader
993
- *ngIf="loading"
994
- [settings]="loaderSettings"></div>
1011
+ @if (loading) {
1012
+ <div kendoPDFViewerLoader
1013
+ [settings]="loaderSettings"></div>
1014
+ }
995
1015
  <div kendoPDFViewerToolbar
996
- #toolbar
997
- role="toolbar"
998
- [attr.aria-controls]="pagesContainerId"
999
- [tools]="tools"
1000
- [skip]="skip"
1001
- [total]="pdfContext?.pdfPages.length ? pdfContext?.pdfPages.length : 1"
1002
- [pageSize]="1"
1003
- [zoomInDisabled]="zoom >= maxZoom || !pdfContext?.pdfDoc"
1004
- [zoomOutDisabled]="zoom <= minZoom || !pdfContext?.pdfDoc"
1005
- [zoomOptionsData]="zoomOptionsData"
1006
- [zoomLevelChooserValue]="zoomLevel"
1007
- [disabledTools]="!pdfContext?.pdfDoc"
1008
- [isAnnotationsToolbarVisible]="showAnnotationsToolbar"
1009
- [wrapperId]="showAnnotationsToolbar ? annotationsToolbarId : undefined"
1010
- [annotationsToolId]="annotationsToolId"
1011
- [isSelectionEnabled]="enabledSelection"
1012
- (pageChange)="onPageChange($event)"
1013
- (fileSelect)="onFileSelect($event)"
1014
- (fileSelectStart)="loading = true;"
1015
- (fileSelectError)="onFileSelectError($event)"
1016
- (download)="onDownload()"
1017
- (panningEnabled)="onPanningEnabled();"
1018
- (selectionEnabled)="onSelectionEnabled();"
1019
- (zoomIn)="onZoomIn()"
1020
- (zoomOut)="onZoomOut()"
1021
- (zoomLevelChange)="onZoomLevelChange($event)"
1022
- (print)="onPrint()"
1023
- (search)="onSearch()"
1024
- (toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
1025
- <div *ngIf="showAnnotationsToolbar"
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
- (toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
1054
+ (toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
1055
+ }
1034
1056
  <div
1035
- class="k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto"
1036
- [class.k-enable-text-select]="enabledSelection"
1037
- [class.k-enable-panning]="!enabledSelection"
1038
- [attr.aria-describedby]="activePageId"
1039
- tabindex="0">
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
- 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>
1050
- <div
1051
- #pagesContainer
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
- class="k-pdf-viewer-pages"
1056
- [attr.id]="pagesContainerId"></div>
1080
+ class="k-pdf-viewer-pages"
1081
+ [attr.id]="pagesContainerId"></div>
1057
1082
  </div>
1058
-
1083
+
1059
1084
  <div #dialogContainer></div>
1060
- <div kendoWatermarkOverlay *ngIf="showLicenseWatermark" [licenseMessage]="licenseMessage"></div>
1061
- `,
1085
+ @if (showLicenseWatermark) {
1086
+ <div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
1087
+ }
1088
+ `,
1062
1089
  standalone: true,
1063
- imports: [LocalizedPDFViewerMessagesDirective, NgIf, EventsOutsideAngularDirective, LoaderComponent, ToolbarComponent, PDFViewerSearchComponent, WatermarkOverlayComponent]
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,