@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
|
@@ -16,7 +16,6 @@ import * as i1$1 from '@progress/kendo-angular-dropdowns';
|
|
|
16
16
|
import { ComboBoxComponent, ItemTemplateDirective, KENDO_DROPDOWNLIST } from '@progress/kendo-angular-dropdowns';
|
|
17
17
|
import * as i2 from '@progress/kendo-angular-buttons';
|
|
18
18
|
import { ButtonGroupComponent, ButtonComponent, KENDO_BUTTON } from '@progress/kendo-angular-buttons';
|
|
19
|
-
import { NgFor, NgSwitch, NgSwitchCase, NgIf } from '@angular/common';
|
|
20
19
|
import { map, take } from 'rxjs/operators';
|
|
21
20
|
import * as i3 from '@progress/kendo-angular-inputs';
|
|
22
21
|
import { TextBoxComponent, TextBoxSuffixTemplateDirective, KENDO_FLATCOLORPICKER } from '@progress/kendo-angular-inputs';
|
|
@@ -316,8 +315,8 @@ const packageMetadata = {
|
|
|
316
315
|
productName: 'Kendo UI for Angular',
|
|
317
316
|
productCode: 'KENDOUIANGULAR',
|
|
318
317
|
productCodes: ['KENDOUIANGULAR'],
|
|
319
|
-
publishDate:
|
|
320
|
-
version: '21.
|
|
318
|
+
publishDate: 1763998507,
|
|
319
|
+
version: '21.2.0-develop.1',
|
|
321
320
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
|
|
322
321
|
};
|
|
323
322
|
|
|
@@ -747,257 +746,268 @@ class ToolbarComponent {
|
|
|
747
746
|
};
|
|
748
747
|
}));
|
|
749
748
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, deps: [{ token: i1.LocalizationService }, { token: ToolbarNavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
750
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
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
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
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
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
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
|
-
|
|
991
|
-
|
|
992
|
-
|
|
749
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolbarComponent, isStandalone: true, selector: "[kendoPDFViewerToolbar]", inputs: { zoomLevel: "zoomLevel", calculatedComboBoxValue: "calculatedComboBoxValue", skip: "skip", pageSize: "pageSize", total: "total", zoomInDisabled: "zoomInDisabled", zoomOutDisabled: "zoomOutDisabled", disabledTools: "disabledTools", zoomLevelChooserValue: "zoomLevelChooserValue", zoomOptionsData: "zoomOptionsData", pagesContainerId: "pagesContainerId", tools: "tools", type: "type", wrapperId: "wrapperId", isAnnotationsToolbarVisible: "isAnnotationsToolbarVisible", annotationsToolId: "annotationsToolId", isSelectionEnabled: "isSelectionEnabled" }, outputs: { fileSelect: "fileSelect", fileSelectStart: "fileSelectStart", fileSelectError: "fileSelectError", download: "download", selectionEnabled: "selectionEnabled", panningEnabled: "panningEnabled", pageChange: "pageChange", zoomIn: "zoomIn", zoomOut: "zoomOut", zoomLevelChange: "zoomLevelChange", print: "print", search: "search", toggleAnnotationsToolbar: "toggleAnnotationsToolbar", setAnnotationMode: "setAnnotationMode" }, host: { properties: { "class.k-toolbar": "this.toolbarClasses", "class.k-toolbar-md": "this.toolbarClasses", "class.k-toolbar-flat": "this.toolbarClasses" } }, providers: [ToolbarNavigationService], viewQueries: [{ propertyName: "fileSelectEl", first: true, predicate: ["fileSelectEl"], descendants: true }], ngImport: i0, template: `
|
|
750
|
+
@if (type === 'tools') {
|
|
751
|
+
@for (tool of tools; track tool) {
|
|
752
|
+
@switch (tool) {
|
|
753
|
+
@case ('pager') {
|
|
754
|
+
<kendo-toolbar-input-wrapper
|
|
755
|
+
kendoPDFViewerToolbarFocusable
|
|
756
|
+
[toolbarTool]="pager">
|
|
757
|
+
<kendo-datapager
|
|
758
|
+
#pager
|
|
759
|
+
[attr.aria-controls]="pagesContainerId"
|
|
760
|
+
[attr.aria-label]="messageFor('page') + ' ' + (skip + 1) + ' ' + messageFor('of') + total"
|
|
761
|
+
[class.k-disabled]="disabledTools"
|
|
762
|
+
[navigable]="true"
|
|
763
|
+
[pageSize]="pageSize"
|
|
764
|
+
[skip]="skip"
|
|
765
|
+
[total]="total"
|
|
766
|
+
[pageSizeValues]="false"
|
|
767
|
+
[info]="false"
|
|
768
|
+
[type]="pagerType"
|
|
769
|
+
(pageChange)="pageChange.emit($event)">
|
|
770
|
+
<kendo-datapager-messages
|
|
771
|
+
[firstPage]="messageFor('pagerFirstPage')"
|
|
772
|
+
[previousPage]="messageFor('pagerPreviousPage')"
|
|
773
|
+
[nextPage]="messageFor('pagerNextPage')"
|
|
774
|
+
[lastPage]="messageFor('pagerLastPage')"
|
|
775
|
+
[inputLabel]="messageFor('pagerInputLabel')"
|
|
776
|
+
[pageNumberInputTitle]="messageFor('pagerInputTitle')"
|
|
777
|
+
[of]="messageFor('pagerOf')"
|
|
778
|
+
[page]="messageFor('pagerPage')"></kendo-datapager-messages>
|
|
779
|
+
</kendo-datapager>
|
|
780
|
+
</kendo-toolbar-input-wrapper>
|
|
781
|
+
}
|
|
782
|
+
@case ('spacer') {
|
|
783
|
+
<span
|
|
784
|
+
class="k-spacer"></span>
|
|
785
|
+
}
|
|
786
|
+
@case ('zoomInOut') {
|
|
787
|
+
<kendo-buttongroup
|
|
788
|
+
[attr.aria-controls]="pagesContainerId"
|
|
789
|
+
class="k-button-group-flat k-toolbar-button-group"
|
|
790
|
+
[navigable]="false">
|
|
791
|
+
<button
|
|
792
|
+
type="button"
|
|
793
|
+
kendoButton
|
|
794
|
+
fillMode="flat"
|
|
795
|
+
kendoPDFViewerToolbarFocusable
|
|
796
|
+
icon="zoom-out"
|
|
797
|
+
[disabled]="disabledTools || zoomOutDisabled"
|
|
798
|
+
[svgIcon]="zoomOutIcon"
|
|
799
|
+
[attr.title]="messageFor('zoomOutTitle')"
|
|
800
|
+
[attr.aria-label]="messageFor('zoomOutTitle')"
|
|
801
|
+
(click)="zoomOut.emit()"></button>
|
|
802
|
+
<button
|
|
803
|
+
type="button"
|
|
804
|
+
kendoButton
|
|
805
|
+
fillMode="flat"
|
|
806
|
+
kendoPDFViewerToolbarFocusable
|
|
807
|
+
icon="zoom-in"
|
|
808
|
+
[disabled]="disabledTools || zoomInDisabled"
|
|
809
|
+
[svgIcon]="zoomInIcon"
|
|
810
|
+
[attr.title]="messageFor('zoomInTitle')"
|
|
811
|
+
[attr.aria-label]="messageFor('zoomInTitle')"
|
|
812
|
+
(click)="zoomIn.emit()"></button>
|
|
813
|
+
</kendo-buttongroup>
|
|
814
|
+
}
|
|
815
|
+
@case ('zoom') {
|
|
816
|
+
<kendo-toolbar-input-wrapper
|
|
817
|
+
kendoPDFViewerToolbarFocusable
|
|
818
|
+
[toolbarTool]="combobox">
|
|
819
|
+
<kendo-combobox
|
|
820
|
+
#combobox
|
|
821
|
+
kendoPDFViewerComboBox
|
|
822
|
+
class="k-toolbar-combobox"
|
|
823
|
+
fillMode="flat"
|
|
824
|
+
[attr.aria-controls]="pagesContainerId"
|
|
825
|
+
[tabindex]="-1"
|
|
826
|
+
[data]="zoomOptionsData"
|
|
827
|
+
[disabled]="disabledTools"
|
|
828
|
+
[placeholder]="messageFor('zoomInputPlaceholder')"
|
|
829
|
+
textField="displayValue"
|
|
830
|
+
valueField="id"
|
|
831
|
+
[value]="zoomLevelChooserValue"
|
|
832
|
+
[allowCustom]="true"
|
|
833
|
+
[valueNormalizer]="valueNormalizer"
|
|
834
|
+
[clearButton]="false"
|
|
835
|
+
(valueChange)="onZoomLevelChooserValueChange($event)">
|
|
836
|
+
<ng-template kendoComboBoxItemTemplate let-dataItem>
|
|
837
|
+
{{ dataItem.type ? messageFor('f' + dataItem.type.slice(1)) : dataItem.text }}
|
|
838
|
+
</ng-template>
|
|
839
|
+
</kendo-combobox>
|
|
840
|
+
</kendo-toolbar-input-wrapper>
|
|
841
|
+
}
|
|
842
|
+
@case ('selection') {
|
|
843
|
+
<kendo-buttongroup
|
|
844
|
+
[attr.aria-controls]="pagesContainerId"
|
|
845
|
+
[navigable]="false"
|
|
846
|
+
class="k-button-group-flat k-toolbar-button-group"
|
|
847
|
+
selection="single">
|
|
848
|
+
<button
|
|
849
|
+
type="button"
|
|
850
|
+
kendoButton
|
|
851
|
+
kendoPDFViewerToolbarFocusable
|
|
852
|
+
fillMode="flat"
|
|
853
|
+
icon="pointer"
|
|
854
|
+
[selected]="isSelectionEnabled"
|
|
855
|
+
[toggleable]="true"
|
|
856
|
+
[svgIcon]="pointerIcon"
|
|
857
|
+
[attr.title]="messageFor('selectionTitle')"
|
|
858
|
+
[attr.aria-label]="messageFor('selectionTitle')"
|
|
859
|
+
(click)="selectionEnabled.emit(); isSelectionEnabled = true;"></button>
|
|
860
|
+
<button
|
|
861
|
+
type="button"
|
|
862
|
+
kendoButton
|
|
863
|
+
kendoPDFViewerToolbarFocusable
|
|
864
|
+
fillMode="flat"
|
|
865
|
+
icon="hand"
|
|
866
|
+
[svgIcon]="handIcon"
|
|
867
|
+
[toggleable]="true"
|
|
868
|
+
[selected]="!isSelectionEnabled"
|
|
869
|
+
[attr.title]="messageFor('panningTitle')"
|
|
870
|
+
[attr.aria-label]="messageFor('panningTitle')"
|
|
871
|
+
(click)="panningEnabled.emit(); isSelectionEnabled = false;"></button>
|
|
872
|
+
</kendo-buttongroup>
|
|
873
|
+
}
|
|
874
|
+
@case ('search') {
|
|
875
|
+
<button
|
|
876
|
+
type="button"
|
|
877
|
+
kendoPDFViewerToolbarFocusable
|
|
878
|
+
kendoButton
|
|
879
|
+
class="k-toolbar-button"
|
|
880
|
+
fillMode="flat"
|
|
881
|
+
icon="search"
|
|
882
|
+
[disabled]="disabledTools"
|
|
883
|
+
[attr.title]="messageFor('searchTitle')"
|
|
884
|
+
[attr.aria-label]="messageFor('searchTitle')"
|
|
885
|
+
aria-haspopup="dialog"
|
|
886
|
+
[svgIcon]="searchIcon"
|
|
887
|
+
(click)="search.emit()"></button>
|
|
888
|
+
}
|
|
889
|
+
@case ('open') {
|
|
890
|
+
<button
|
|
891
|
+
type="button"
|
|
892
|
+
fillMode="flat"
|
|
893
|
+
kendoPDFViewerToolbarFocusable
|
|
894
|
+
kendoButton
|
|
895
|
+
class="k-toolbar-button"
|
|
896
|
+
fillMode="flat"
|
|
897
|
+
icon="folder-open"
|
|
898
|
+
[svgIcon]="folderOpenIcon"
|
|
899
|
+
[attr.title]="messageFor('openTitle')"
|
|
900
|
+
[attr.aria-label]="messageFor('openTitle')"
|
|
901
|
+
[attr.aria-controls]="pagesContainerId"
|
|
902
|
+
(click)="fileSelectEl?.nativeElement.click()">
|
|
903
|
+
</button>
|
|
904
|
+
}
|
|
905
|
+
@case ('download') {
|
|
906
|
+
<button
|
|
907
|
+
type="button"
|
|
908
|
+
fillMode="flat"
|
|
909
|
+
kendoPDFViewerToolbarFocusable
|
|
910
|
+
kendoButton
|
|
911
|
+
class="k-toolbar-button"
|
|
912
|
+
icon="download"
|
|
913
|
+
[svgIcon]="downloadIcon"
|
|
914
|
+
[disabled]="disabledTools"
|
|
915
|
+
[attr.title]="messageFor('downloadTitle')"
|
|
916
|
+
[attr.aria-label]="messageFor('downloadTitle')"
|
|
917
|
+
(click)="download.emit()"></button>
|
|
918
|
+
}
|
|
919
|
+
@case ('print') {
|
|
920
|
+
<button
|
|
921
|
+
type="button"
|
|
922
|
+
fillMode="flat"
|
|
923
|
+
kendoPDFViewerToolbarFocusable
|
|
924
|
+
kendoButton
|
|
925
|
+
class="k-toolbar-button"
|
|
926
|
+
icon="print"
|
|
927
|
+
[svgIcon]="printIcon"
|
|
928
|
+
[disabled]="disabledTools"
|
|
929
|
+
[attr.title]="messageFor('printTitle')"
|
|
930
|
+
[attr.aria-label]="messageFor('printTitle')"
|
|
931
|
+
(click)="print.emit()"></button>
|
|
932
|
+
}
|
|
933
|
+
@case ('annotations') {
|
|
934
|
+
<button
|
|
935
|
+
type="button"
|
|
936
|
+
[attr.id]="annotationsToolId"
|
|
937
|
+
kendoPDFViewerToolbarFocusable
|
|
938
|
+
kendoButton
|
|
939
|
+
class="k-toolbar-button"
|
|
940
|
+
fillMode="flat"
|
|
941
|
+
icon="track-changes"
|
|
942
|
+
[selected]="isAnnotationsToolbarVisible"
|
|
943
|
+
[disabled]="disabledTools || !isSelectionEnabled"
|
|
944
|
+
[attr.title]="messageFor('annotationsTitle')"
|
|
945
|
+
[attr.aria-label]="messageFor('annotationsTitle')"
|
|
946
|
+
[attr.aria-controls]="wrapperId"
|
|
947
|
+
[attr.aria-expanded]="isAnnotationsToolbarVisible"
|
|
948
|
+
[svgIcon]="trackChangesIcon"
|
|
949
|
+
(click)="toggleAnnotationsToolbar.emit();"></button>
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
@if (type === 'annotations') {
|
|
955
|
+
<button
|
|
956
|
+
type="button"
|
|
957
|
+
kendoPDFViewerToolbarFocusable
|
|
958
|
+
kendoButton
|
|
959
|
+
class="k-toolbar-button"
|
|
960
|
+
fillMode="flat"
|
|
961
|
+
icon="highlight"
|
|
962
|
+
[selected]="isHighlightMode"
|
|
963
|
+
[disabled]="disabledTools"
|
|
964
|
+
[attr.title]="messageFor('highlightAnnotationTitle')"
|
|
965
|
+
[attr.aria-label]="messageFor('highlightAnnotationTitle')"
|
|
966
|
+
aria-haspopup="dialog"
|
|
967
|
+
[svgIcon]="highlightIcon"
|
|
968
|
+
(click)="onHighlightClick()"></button>
|
|
969
|
+
<div class="k-toolbar-separator k-separator"></div>
|
|
970
|
+
<button
|
|
971
|
+
type="button"
|
|
972
|
+
fillMode="flat"
|
|
973
|
+
kendoPDFViewerToolbarFocusable
|
|
974
|
+
kendoButton
|
|
975
|
+
[selected]="isFreeTextMode"
|
|
976
|
+
class="k-toolbar-button"
|
|
977
|
+
fillMode="flat"
|
|
978
|
+
icon="free-text"
|
|
979
|
+
[svgIcon]="freeTextIcon"
|
|
980
|
+
[attr.title]="messageFor('freeTextAnnotationTitle')"
|
|
981
|
+
[attr.aria-label]="messageFor('freeTextAnnotationTitle')"
|
|
982
|
+
[attr.aria-controls]="pagesContainerId"
|
|
983
|
+
(click)="onFreeTextClick()">
|
|
984
|
+
</button>
|
|
985
|
+
<span class="k-spacer"></span>
|
|
986
|
+
<button
|
|
987
|
+
type="button"
|
|
988
|
+
fillMode="flat"
|
|
989
|
+
kendoPDFViewerToolbarFocusable
|
|
990
|
+
kendoButton
|
|
991
|
+
class="k-toolbar-button"
|
|
992
|
+
fillMode="flat"
|
|
993
|
+
icon="x"
|
|
994
|
+
[svgIcon]="xIcon"
|
|
995
|
+
[attr.title]="messageFor('closeAnnotationsToolbarTitle')"
|
|
996
|
+
[attr.aria-label]="messageFor('closeAnnotationsToolbarTitle')"
|
|
997
|
+
[attr.aria-controls]="pagesContainerId"
|
|
998
|
+
(click)="toggleAnnotationsToolbar.emit();">
|
|
999
|
+
</button>
|
|
1000
|
+
}
|
|
1001
|
+
@if (type === 'tools' &&tools?.indexOf('open') > -1;) {
|
|
1002
|
+
<input
|
|
993
1003
|
#fileSelectEl
|
|
994
|
-
*ngIf="type === 'tools' &&tools?.indexOf('open') > -1;"
|
|
995
1004
|
type="file"
|
|
996
1005
|
[style.display]="'none'"
|
|
997
1006
|
aria-hidden="true"
|
|
998
1007
|
accept=".pdf, .PDF"
|
|
999
1008
|
(change)="onFileSelect($event)" />
|
|
1000
|
-
|
|
1009
|
+
}
|
|
1010
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ToolbarInputWrapperComponent, selector: "kendo-toolbar-input-wrapper", inputs: ["toolbarTool"] }, { kind: "directive", type: ToolbarFocusableDirective, selector: "[kendoPDFViewerToolbarFocusable]" }, { kind: "component", type: PagerComponent, selector: "kendo-datapager, kendo-pager", inputs: ["externalTemplate", "total", "skip", "pageSize", "buttonCount", "info", "type", "pageSizeValues", "previousNext", "navigable", "size", "responsive", "adaptiveMode"], outputs: ["pageChange", "pageSizeChange", "pagerInputVisibilityChange", "pageTextVisibilityChange", "itemsTextVisibilityChange"], exportAs: ["kendoDataPager", "kendoPager"] }, { kind: "component", type: CustomMessagesComponent, selector: "kendo-datapager-messages, kendo-pager-messages" }, { kind: "component", type: ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: ComboBoxComponent, selector: "kendo-combobox", inputs: ["icon", "svgIcon", "inputAttributes", "showStickyHeader", "focusableId", "allowCustom", "data", "value", "textField", "valueField", "valuePrimitive", "valueNormalizer", "placeholder", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "loading", "suggest", "clearButton", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "selectionChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur", "inputFocus", "inputBlur", "escape"], exportAs: ["kendoComboBox"] }, { kind: "directive", type: ToolbarComboBoxDirective, selector: "[kendoPDFViewerComboBox]" }, { kind: "directive", type: ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }] });
|
|
1001
1011
|
}
|
|
1002
1012
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
1003
1013
|
type: Component,
|
|
@@ -1005,258 +1015,269 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1005
1015
|
selector: '[kendoPDFViewerToolbar]',
|
|
1006
1016
|
providers: [ToolbarNavigationService],
|
|
1007
1017
|
template: `
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1018
|
+
@if (type === 'tools') {
|
|
1019
|
+
@for (tool of tools; track tool) {
|
|
1020
|
+
@switch (tool) {
|
|
1021
|
+
@case ('pager') {
|
|
1022
|
+
<kendo-toolbar-input-wrapper
|
|
1023
|
+
kendoPDFViewerToolbarFocusable
|
|
1024
|
+
[toolbarTool]="pager">
|
|
1025
|
+
<kendo-datapager
|
|
1026
|
+
#pager
|
|
1027
|
+
[attr.aria-controls]="pagesContainerId"
|
|
1028
|
+
[attr.aria-label]="messageFor('page') + ' ' + (skip + 1) + ' ' + messageFor('of') + total"
|
|
1029
|
+
[class.k-disabled]="disabledTools"
|
|
1030
|
+
[navigable]="true"
|
|
1031
|
+
[pageSize]="pageSize"
|
|
1032
|
+
[skip]="skip"
|
|
1033
|
+
[total]="total"
|
|
1034
|
+
[pageSizeValues]="false"
|
|
1035
|
+
[info]="false"
|
|
1036
|
+
[type]="pagerType"
|
|
1037
|
+
(pageChange)="pageChange.emit($event)">
|
|
1038
|
+
<kendo-datapager-messages
|
|
1039
|
+
[firstPage]="messageFor('pagerFirstPage')"
|
|
1040
|
+
[previousPage]="messageFor('pagerPreviousPage')"
|
|
1041
|
+
[nextPage]="messageFor('pagerNextPage')"
|
|
1042
|
+
[lastPage]="messageFor('pagerLastPage')"
|
|
1043
|
+
[inputLabel]="messageFor('pagerInputLabel')"
|
|
1044
|
+
[pageNumberInputTitle]="messageFor('pagerInputTitle')"
|
|
1045
|
+
[of]="messageFor('pagerOf')"
|
|
1046
|
+
[page]="messageFor('pagerPage')"></kendo-datapager-messages>
|
|
1047
|
+
</kendo-datapager>
|
|
1048
|
+
</kendo-toolbar-input-wrapper>
|
|
1049
|
+
}
|
|
1050
|
+
@case ('spacer') {
|
|
1051
|
+
<span
|
|
1052
|
+
class="k-spacer"></span>
|
|
1053
|
+
}
|
|
1054
|
+
@case ('zoomInOut') {
|
|
1055
|
+
<kendo-buttongroup
|
|
1056
|
+
[attr.aria-controls]="pagesContainerId"
|
|
1057
|
+
class="k-button-group-flat k-toolbar-button-group"
|
|
1058
|
+
[navigable]="false">
|
|
1059
|
+
<button
|
|
1060
|
+
type="button"
|
|
1061
|
+
kendoButton
|
|
1062
|
+
fillMode="flat"
|
|
1063
|
+
kendoPDFViewerToolbarFocusable
|
|
1064
|
+
icon="zoom-out"
|
|
1065
|
+
[disabled]="disabledTools || zoomOutDisabled"
|
|
1066
|
+
[svgIcon]="zoomOutIcon"
|
|
1067
|
+
[attr.title]="messageFor('zoomOutTitle')"
|
|
1068
|
+
[attr.aria-label]="messageFor('zoomOutTitle')"
|
|
1069
|
+
(click)="zoomOut.emit()"></button>
|
|
1070
|
+
<button
|
|
1071
|
+
type="button"
|
|
1072
|
+
kendoButton
|
|
1073
|
+
fillMode="flat"
|
|
1074
|
+
kendoPDFViewerToolbarFocusable
|
|
1075
|
+
icon="zoom-in"
|
|
1076
|
+
[disabled]="disabledTools || zoomInDisabled"
|
|
1077
|
+
[svgIcon]="zoomInIcon"
|
|
1078
|
+
[attr.title]="messageFor('zoomInTitle')"
|
|
1079
|
+
[attr.aria-label]="messageFor('zoomInTitle')"
|
|
1080
|
+
(click)="zoomIn.emit()"></button>
|
|
1081
|
+
</kendo-buttongroup>
|
|
1082
|
+
}
|
|
1083
|
+
@case ('zoom') {
|
|
1084
|
+
<kendo-toolbar-input-wrapper
|
|
1085
|
+
kendoPDFViewerToolbarFocusable
|
|
1086
|
+
[toolbarTool]="combobox">
|
|
1087
|
+
<kendo-combobox
|
|
1088
|
+
#combobox
|
|
1089
|
+
kendoPDFViewerComboBox
|
|
1090
|
+
class="k-toolbar-combobox"
|
|
1091
|
+
fillMode="flat"
|
|
1092
|
+
[attr.aria-controls]="pagesContainerId"
|
|
1093
|
+
[tabindex]="-1"
|
|
1094
|
+
[data]="zoomOptionsData"
|
|
1095
|
+
[disabled]="disabledTools"
|
|
1096
|
+
[placeholder]="messageFor('zoomInputPlaceholder')"
|
|
1097
|
+
textField="displayValue"
|
|
1098
|
+
valueField="id"
|
|
1099
|
+
[value]="zoomLevelChooserValue"
|
|
1100
|
+
[allowCustom]="true"
|
|
1101
|
+
[valueNormalizer]="valueNormalizer"
|
|
1102
|
+
[clearButton]="false"
|
|
1103
|
+
(valueChange)="onZoomLevelChooserValueChange($event)">
|
|
1104
|
+
<ng-template kendoComboBoxItemTemplate let-dataItem>
|
|
1105
|
+
{{ dataItem.type ? messageFor('f' + dataItem.type.slice(1)) : dataItem.text }}
|
|
1106
|
+
</ng-template>
|
|
1107
|
+
</kendo-combobox>
|
|
1108
|
+
</kendo-toolbar-input-wrapper>
|
|
1109
|
+
}
|
|
1110
|
+
@case ('selection') {
|
|
1111
|
+
<kendo-buttongroup
|
|
1112
|
+
[attr.aria-controls]="pagesContainerId"
|
|
1113
|
+
[navigable]="false"
|
|
1114
|
+
class="k-button-group-flat k-toolbar-button-group"
|
|
1115
|
+
selection="single">
|
|
1116
|
+
<button
|
|
1117
|
+
type="button"
|
|
1118
|
+
kendoButton
|
|
1119
|
+
kendoPDFViewerToolbarFocusable
|
|
1120
|
+
fillMode="flat"
|
|
1121
|
+
icon="pointer"
|
|
1122
|
+
[selected]="isSelectionEnabled"
|
|
1123
|
+
[toggleable]="true"
|
|
1124
|
+
[svgIcon]="pointerIcon"
|
|
1125
|
+
[attr.title]="messageFor('selectionTitle')"
|
|
1126
|
+
[attr.aria-label]="messageFor('selectionTitle')"
|
|
1127
|
+
(click)="selectionEnabled.emit(); isSelectionEnabled = true;"></button>
|
|
1128
|
+
<button
|
|
1129
|
+
type="button"
|
|
1130
|
+
kendoButton
|
|
1131
|
+
kendoPDFViewerToolbarFocusable
|
|
1132
|
+
fillMode="flat"
|
|
1133
|
+
icon="hand"
|
|
1134
|
+
[svgIcon]="handIcon"
|
|
1135
|
+
[toggleable]="true"
|
|
1136
|
+
[selected]="!isSelectionEnabled"
|
|
1137
|
+
[attr.title]="messageFor('panningTitle')"
|
|
1138
|
+
[attr.aria-label]="messageFor('panningTitle')"
|
|
1139
|
+
(click)="panningEnabled.emit(); isSelectionEnabled = false;"></button>
|
|
1140
|
+
</kendo-buttongroup>
|
|
1141
|
+
}
|
|
1142
|
+
@case ('search') {
|
|
1143
|
+
<button
|
|
1144
|
+
type="button"
|
|
1145
|
+
kendoPDFViewerToolbarFocusable
|
|
1146
|
+
kendoButton
|
|
1147
|
+
class="k-toolbar-button"
|
|
1148
|
+
fillMode="flat"
|
|
1149
|
+
icon="search"
|
|
1150
|
+
[disabled]="disabledTools"
|
|
1151
|
+
[attr.title]="messageFor('searchTitle')"
|
|
1152
|
+
[attr.aria-label]="messageFor('searchTitle')"
|
|
1153
|
+
aria-haspopup="dialog"
|
|
1154
|
+
[svgIcon]="searchIcon"
|
|
1155
|
+
(click)="search.emit()"></button>
|
|
1156
|
+
}
|
|
1157
|
+
@case ('open') {
|
|
1158
|
+
<button
|
|
1159
|
+
type="button"
|
|
1160
|
+
fillMode="flat"
|
|
1161
|
+
kendoPDFViewerToolbarFocusable
|
|
1162
|
+
kendoButton
|
|
1163
|
+
class="k-toolbar-button"
|
|
1164
|
+
fillMode="flat"
|
|
1165
|
+
icon="folder-open"
|
|
1166
|
+
[svgIcon]="folderOpenIcon"
|
|
1167
|
+
[attr.title]="messageFor('openTitle')"
|
|
1168
|
+
[attr.aria-label]="messageFor('openTitle')"
|
|
1169
|
+
[attr.aria-controls]="pagesContainerId"
|
|
1170
|
+
(click)="fileSelectEl?.nativeElement.click()">
|
|
1171
|
+
</button>
|
|
1172
|
+
}
|
|
1173
|
+
@case ('download') {
|
|
1174
|
+
<button
|
|
1175
|
+
type="button"
|
|
1176
|
+
fillMode="flat"
|
|
1177
|
+
kendoPDFViewerToolbarFocusable
|
|
1178
|
+
kendoButton
|
|
1179
|
+
class="k-toolbar-button"
|
|
1180
|
+
icon="download"
|
|
1181
|
+
[svgIcon]="downloadIcon"
|
|
1182
|
+
[disabled]="disabledTools"
|
|
1183
|
+
[attr.title]="messageFor('downloadTitle')"
|
|
1184
|
+
[attr.aria-label]="messageFor('downloadTitle')"
|
|
1185
|
+
(click)="download.emit()"></button>
|
|
1186
|
+
}
|
|
1187
|
+
@case ('print') {
|
|
1188
|
+
<button
|
|
1189
|
+
type="button"
|
|
1190
|
+
fillMode="flat"
|
|
1191
|
+
kendoPDFViewerToolbarFocusable
|
|
1192
|
+
kendoButton
|
|
1193
|
+
class="k-toolbar-button"
|
|
1194
|
+
icon="print"
|
|
1195
|
+
[svgIcon]="printIcon"
|
|
1196
|
+
[disabled]="disabledTools"
|
|
1197
|
+
[attr.title]="messageFor('printTitle')"
|
|
1198
|
+
[attr.aria-label]="messageFor('printTitle')"
|
|
1199
|
+
(click)="print.emit()"></button>
|
|
1200
|
+
}
|
|
1201
|
+
@case ('annotations') {
|
|
1202
|
+
<button
|
|
1203
|
+
type="button"
|
|
1204
|
+
[attr.id]="annotationsToolId"
|
|
1205
|
+
kendoPDFViewerToolbarFocusable
|
|
1206
|
+
kendoButton
|
|
1207
|
+
class="k-toolbar-button"
|
|
1208
|
+
fillMode="flat"
|
|
1209
|
+
icon="track-changes"
|
|
1210
|
+
[selected]="isAnnotationsToolbarVisible"
|
|
1211
|
+
[disabled]="disabledTools || !isSelectionEnabled"
|
|
1212
|
+
[attr.title]="messageFor('annotationsTitle')"
|
|
1213
|
+
[attr.aria-label]="messageFor('annotationsTitle')"
|
|
1214
|
+
[attr.aria-controls]="wrapperId"
|
|
1215
|
+
[attr.aria-expanded]="isAnnotationsToolbarVisible"
|
|
1216
|
+
[svgIcon]="trackChangesIcon"
|
|
1217
|
+
(click)="toggleAnnotationsToolbar.emit();"></button>
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
@if (type === 'annotations') {
|
|
1223
|
+
<button
|
|
1224
|
+
type="button"
|
|
1225
|
+
kendoPDFViewerToolbarFocusable
|
|
1226
|
+
kendoButton
|
|
1227
|
+
class="k-toolbar-button"
|
|
1228
|
+
fillMode="flat"
|
|
1229
|
+
icon="highlight"
|
|
1230
|
+
[selected]="isHighlightMode"
|
|
1231
|
+
[disabled]="disabledTools"
|
|
1232
|
+
[attr.title]="messageFor('highlightAnnotationTitle')"
|
|
1233
|
+
[attr.aria-label]="messageFor('highlightAnnotationTitle')"
|
|
1234
|
+
aria-haspopup="dialog"
|
|
1235
|
+
[svgIcon]="highlightIcon"
|
|
1236
|
+
(click)="onHighlightClick()"></button>
|
|
1237
|
+
<div class="k-toolbar-separator k-separator"></div>
|
|
1238
|
+
<button
|
|
1239
|
+
type="button"
|
|
1240
|
+
fillMode="flat"
|
|
1241
|
+
kendoPDFViewerToolbarFocusable
|
|
1242
|
+
kendoButton
|
|
1243
|
+
[selected]="isFreeTextMode"
|
|
1244
|
+
class="k-toolbar-button"
|
|
1245
|
+
fillMode="flat"
|
|
1246
|
+
icon="free-text"
|
|
1247
|
+
[svgIcon]="freeTextIcon"
|
|
1248
|
+
[attr.title]="messageFor('freeTextAnnotationTitle')"
|
|
1249
|
+
[attr.aria-label]="messageFor('freeTextAnnotationTitle')"
|
|
1250
|
+
[attr.aria-controls]="pagesContainerId"
|
|
1251
|
+
(click)="onFreeTextClick()">
|
|
1252
|
+
</button>
|
|
1253
|
+
<span class="k-spacer"></span>
|
|
1254
|
+
<button
|
|
1255
|
+
type="button"
|
|
1256
|
+
fillMode="flat"
|
|
1257
|
+
kendoPDFViewerToolbarFocusable
|
|
1258
|
+
kendoButton
|
|
1259
|
+
class="k-toolbar-button"
|
|
1260
|
+
fillMode="flat"
|
|
1261
|
+
icon="x"
|
|
1262
|
+
[svgIcon]="xIcon"
|
|
1263
|
+
[attr.title]="messageFor('closeAnnotationsToolbarTitle')"
|
|
1264
|
+
[attr.aria-label]="messageFor('closeAnnotationsToolbarTitle')"
|
|
1265
|
+
[attr.aria-controls]="pagesContainerId"
|
|
1266
|
+
(click)="toggleAnnotationsToolbar.emit();">
|
|
1267
|
+
</button>
|
|
1268
|
+
}
|
|
1269
|
+
@if (type === 'tools' &&tools?.indexOf('open') > -1;) {
|
|
1270
|
+
<input
|
|
1250
1271
|
#fileSelectEl
|
|
1251
|
-
*ngIf="type === 'tools' &&tools?.indexOf('open') > -1;"
|
|
1252
1272
|
type="file"
|
|
1253
1273
|
[style.display]="'none'"
|
|
1254
1274
|
aria-hidden="true"
|
|
1255
1275
|
accept=".pdf, .PDF"
|
|
1256
1276
|
(change)="onFileSelect($event)" />
|
|
1257
|
-
|
|
1277
|
+
}
|
|
1278
|
+
`,
|
|
1258
1279
|
standalone: true,
|
|
1259
|
-
imports: [
|
|
1280
|
+
imports: [ToolbarInputWrapperComponent, ToolbarFocusableDirective, PagerComponent, CustomMessagesComponent, ButtonGroupComponent, ButtonComponent, ComboBoxComponent, ToolbarComboBoxDirective, ItemTemplateDirective]
|
|
1260
1281
|
}]
|
|
1261
1282
|
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: ToolbarNavigationService }], propDecorators: { toolbarClasses: [{
|
|
1262
1283
|
type: HostBinding,
|
|
@@ -1672,50 +1693,50 @@ class AnnotationPopupToolbarContentComponent {
|
|
|
1672
1693
|
this.pdfViewerWidget[this.annotationEditorType === 'highlight' ? 'setHighlightColor' : 'setFreeTextColor'](value);
|
|
1673
1694
|
}
|
|
1674
1695
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AnnotationPopupToolbarContentComponent, deps: [{ token: i1$2.DialogService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1675
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
<span class="k-column-menu-group-header">
|
|
1699
|
-
<span id="text-font-size-label" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorFontSizeTitle') }}</span>
|
|
1700
|
-
</span>
|
|
1701
|
-
<kendo-dropdownlist
|
|
1702
|
-
[data]="fontSizes"
|
|
1703
|
-
[value]="initialFontSize"
|
|
1704
|
-
(valueChange)="pdfViewerWidget.setFreeTextFontSize($event)"
|
|
1705
|
-
fillMode="flat"
|
|
1706
|
-
aria-labelledby="text-font-size-label"></kendo-dropdownlist>
|
|
1707
|
-
</ng-container>
|
|
1696
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AnnotationPopupToolbarContentComponent, isStandalone: true, selector: "[kendoPDFViewerAnnotationPopupToolbar]", host: { properties: { "class.k-toolbar": "this.hostClasses", "class.k-toolbar-md": "this.hostClasses", "class.k-toolbar-flat": "this.hostClasses" } }, providers: [DialogService], ngImport: i0, template: `
|
|
1697
|
+
@if (showToolbar) {
|
|
1698
|
+
<button
|
|
1699
|
+
kendoButton
|
|
1700
|
+
[attr.title]="localizationService?.get('annotationEditorTitle')"
|
|
1701
|
+
[attr.aria-label]="localizationService?.get('annotationEditorTitle')"
|
|
1702
|
+
[svgIcon]="paletteIcon"
|
|
1703
|
+
icon="palette"
|
|
1704
|
+
fillMode="flat"
|
|
1705
|
+
type="button"
|
|
1706
|
+
(click)="editAnnotation()"></button>
|
|
1707
|
+
<button
|
|
1708
|
+
kendoButton
|
|
1709
|
+
[attr.title]="localizationService?.get('deleteAnnotationTitle')"
|
|
1710
|
+
[attr.aria-label]="localizationService?.get('deleteAnnotationTitle')"
|
|
1711
|
+
[svgIcon]="trashIcon"
|
|
1712
|
+
icon="trash"
|
|
1713
|
+
fillMode="flat"
|
|
1714
|
+
type="button"
|
|
1715
|
+
(click)="deleteAnnotation()"></button>
|
|
1716
|
+
}
|
|
1717
|
+
@if (!showToolbar) {
|
|
1718
|
+
@if (annotationEditorType === 'freeText') {
|
|
1708
1719
|
<span class="k-column-menu-group-header">
|
|
1709
|
-
<
|
|
1720
|
+
<span id="text-font-size-label" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorFontSizeTitle') }}</span>
|
|
1710
1721
|
</span>
|
|
1711
|
-
<kendo-
|
|
1712
|
-
|
|
1713
|
-
[
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1722
|
+
<kendo-dropdownlist
|
|
1723
|
+
[data]="fontSizes"
|
|
1724
|
+
[value]="initialFontSize"
|
|
1725
|
+
(valueChange)="pdfViewerWidget.setFreeTextFontSize($event)"
|
|
1726
|
+
fillMode="flat"
|
|
1727
|
+
aria-labelledby="text-font-size-label"></kendo-dropdownlist>
|
|
1728
|
+
}
|
|
1729
|
+
<span class="k-column-menu-group-header">
|
|
1730
|
+
<label [for]="flatColorPicker" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorColorTitle') }}</label>
|
|
1731
|
+
</span>
|
|
1732
|
+
<kendo-flatcolorpicker
|
|
1733
|
+
#flatColorPicker
|
|
1734
|
+
[preview]="false"
|
|
1735
|
+
[value]="initialColor"
|
|
1736
|
+
(valueChange)="onColorValueChange($event)"
|
|
1737
|
+
fillMode="flat"></kendo-flatcolorpicker>
|
|
1738
|
+
}
|
|
1739
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i2.ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: i3.FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: ["readonly", "disabled", "format", "value", "tabindex", "clearButton", "preview", "actionsLayout", "activeView", "views", "gradientSettings", "adaptiveMode", "paletteSettings", "size"], outputs: ["valueChange", "cancel", "activeViewChange", "clearButtonClick", "actionButtonClick"], exportAs: ["kendoFlatColorPicker"] }, { kind: "component", type: i1$1.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }] });
|
|
1719
1740
|
}
|
|
1720
1741
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AnnotationPopupToolbarContentComponent, decorators: [{
|
|
1721
1742
|
type: Component,
|
|
@@ -1723,50 +1744,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1723
1744
|
selector: '[kendoPDFViewerAnnotationPopupToolbar]',
|
|
1724
1745
|
standalone: true,
|
|
1725
1746
|
providers: [DialogService],
|
|
1726
|
-
imports: [KENDO_BUTTON, KENDO_FLATCOLORPICKER, KENDO_DROPDOWNLIST
|
|
1747
|
+
imports: [KENDO_BUTTON, KENDO_FLATCOLORPICKER, KENDO_DROPDOWNLIST],
|
|
1727
1748
|
template: `
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
<span class="k-column-menu-group-header">
|
|
1751
|
-
<span id="text-font-size-label" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorFontSizeTitle') }}</span>
|
|
1752
|
-
</span>
|
|
1753
|
-
<kendo-dropdownlist
|
|
1754
|
-
[data]="fontSizes"
|
|
1755
|
-
[value]="initialFontSize"
|
|
1756
|
-
(valueChange)="pdfViewerWidget.setFreeTextFontSize($event)"
|
|
1757
|
-
fillMode="flat"
|
|
1758
|
-
aria-labelledby="text-font-size-label"></kendo-dropdownlist>
|
|
1759
|
-
</ng-container>
|
|
1749
|
+
@if (showToolbar) {
|
|
1750
|
+
<button
|
|
1751
|
+
kendoButton
|
|
1752
|
+
[attr.title]="localizationService?.get('annotationEditorTitle')"
|
|
1753
|
+
[attr.aria-label]="localizationService?.get('annotationEditorTitle')"
|
|
1754
|
+
[svgIcon]="paletteIcon"
|
|
1755
|
+
icon="palette"
|
|
1756
|
+
fillMode="flat"
|
|
1757
|
+
type="button"
|
|
1758
|
+
(click)="editAnnotation()"></button>
|
|
1759
|
+
<button
|
|
1760
|
+
kendoButton
|
|
1761
|
+
[attr.title]="localizationService?.get('deleteAnnotationTitle')"
|
|
1762
|
+
[attr.aria-label]="localizationService?.get('deleteAnnotationTitle')"
|
|
1763
|
+
[svgIcon]="trashIcon"
|
|
1764
|
+
icon="trash"
|
|
1765
|
+
fillMode="flat"
|
|
1766
|
+
type="button"
|
|
1767
|
+
(click)="deleteAnnotation()"></button>
|
|
1768
|
+
}
|
|
1769
|
+
@if (!showToolbar) {
|
|
1770
|
+
@if (annotationEditorType === 'freeText') {
|
|
1760
1771
|
<span class="k-column-menu-group-header">
|
|
1761
|
-
<
|
|
1772
|
+
<span id="text-font-size-label" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorFontSizeTitle') }}</span>
|
|
1762
1773
|
</span>
|
|
1763
|
-
<kendo-
|
|
1764
|
-
|
|
1765
|
-
[
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1774
|
+
<kendo-dropdownlist
|
|
1775
|
+
[data]="fontSizes"
|
|
1776
|
+
[value]="initialFontSize"
|
|
1777
|
+
(valueChange)="pdfViewerWidget.setFreeTextFontSize($event)"
|
|
1778
|
+
fillMode="flat"
|
|
1779
|
+
aria-labelledby="text-font-size-label"></kendo-dropdownlist>
|
|
1780
|
+
}
|
|
1781
|
+
<span class="k-column-menu-group-header">
|
|
1782
|
+
<label [for]="flatColorPicker" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorColorTitle') }}</label>
|
|
1783
|
+
</span>
|
|
1784
|
+
<kendo-flatcolorpicker
|
|
1785
|
+
#flatColorPicker
|
|
1786
|
+
[preview]="false"
|
|
1787
|
+
[value]="initialColor"
|
|
1788
|
+
(valueChange)="onColorValueChange($event)"
|
|
1789
|
+
fillMode="flat"></kendo-flatcolorpicker>
|
|
1790
|
+
}
|
|
1770
1791
|
`
|
|
1771
1792
|
}]
|
|
1772
1793
|
}], ctorParameters: () => [{ type: i1$2.DialogService }, { type: i0.NgZone }], propDecorators: { hostClasses: [{
|
|
@@ -2431,7 +2452,7 @@ class PDFViewerComponent {
|
|
|
2431
2452
|
return observer;
|
|
2432
2453
|
};
|
|
2433
2454
|
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$1.PopupService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2434
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2455
|
+
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: [
|
|
2435
2456
|
LocalizationService,
|
|
2436
2457
|
{
|
|
2437
2458
|
provide: L10N_PREFIX,
|
|
@@ -2439,151 +2460,153 @@ class PDFViewerComponent {
|
|
|
2439
2460
|
}
|
|
2440
2461
|
], 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: `
|
|
2441
2462
|
<ng-container kendoPDFViewerLocalizedMessages
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2463
|
+
i18n-pagerFirstPage="kendo.pdfviewer.pagerFirstPage|The label for the first page button in the Pager"
|
|
2464
|
+
pagerFirstPage="Go to the first page"
|
|
2465
|
+
|
|
2466
|
+
i18n-pagerPreviousPage="kendo.pdfviewer.pagerPreviousPage|The label for the previous page button in the Pager"
|
|
2467
|
+
pagerPreviousPage="Go to the previous page"
|
|
2468
|
+
|
|
2469
|
+
i18n-pagerNextPage="kendo.pdfviewer.pagerNextPage|The label for the next page button in the Pager"
|
|
2470
|
+
pagerNextPage="Go to the next page"
|
|
2471
|
+
|
|
2472
|
+
i18n-pagerLastPage="kendo.pdfviewer.pagerLastPage|The label for the last page button in the Pager"
|
|
2473
|
+
pagerLastPage="Go to the last page"
|
|
2474
|
+
|
|
2475
|
+
i18n-pagerPage="kendo.pdfviewer.pagerPage|The text before the current page number in the Pager"
|
|
2476
|
+
pagerPage="Page"
|
|
2477
|
+
|
|
2478
|
+
i18n-pagerOf="kendo.pdfviewer.pagerOf|The text before the total pages number in the Pager"
|
|
2479
|
+
pagerOf="of"
|
|
2480
|
+
|
|
2481
|
+
i18n-pagerInputTitle="kendo.pdfviewer.pagerInputTitle|The label of the pager input element"
|
|
2482
|
+
pagerInputTitle="Page Number"
|
|
2483
|
+
|
|
2484
|
+
i18n-pagerInputLabel="kendo.pdfviewer.pagerInputLabel|The text of the aria-label attribute applied to the input element for entering the page number."
|
|
2485
|
+
pagerInputLabel="Type a page number"
|
|
2486
|
+
|
|
2487
|
+
i18n-zoomInTitle="kendo.pdfviewer.zoomInTitle|The ZoomIn tool title and label."
|
|
2488
|
+
zoomInTitle="Zoom in"
|
|
2489
|
+
|
|
2490
|
+
i18n-zoomOutTitle="kendo.pdfviewer.zoomOutTitle|The ZoomOut tool title and label."
|
|
2491
|
+
zoomOutTitle="Zoom out"
|
|
2492
|
+
|
|
2493
|
+
i18n-selectionTitle="kendo.pdfviewer.selectionTitle|The Selection tool title and label."
|
|
2494
|
+
selectionTitle="Enable selection"
|
|
2495
|
+
|
|
2496
|
+
i18n-panningTitle="kendo.pdfviewer.panningTitle|The Panning tool title and label."
|
|
2497
|
+
panningTitle="Enable panning"
|
|
2498
|
+
|
|
2499
|
+
i18n-searchTitle="kendo.pdfviewer.searchTitle|The Search tool title and label."
|
|
2500
|
+
searchTitle="Search"
|
|
2501
|
+
|
|
2502
|
+
i18n-openTitle="kendo.pdfviewer.openTitle|The Open tool title and label."
|
|
2503
|
+
openTitle="Open"
|
|
2504
|
+
|
|
2505
|
+
i18n-downloadTitle="kendo.pdfviewer.downloadTitle|The Download tool title and label."
|
|
2506
|
+
downloadTitle="Download"
|
|
2507
|
+
|
|
2508
|
+
i18n-printTitle="kendo.pdfviewer.printTitle|The Print tool title and label."
|
|
2509
|
+
printTitle="Print"
|
|
2510
|
+
|
|
2511
|
+
i18n-fitToPage="kendo.pdfviewer.fitToPage|The text for the zoom level chooser Fit to page option."
|
|
2512
|
+
fitToPage="Fit to page"
|
|
2513
|
+
|
|
2514
|
+
i18n-fitToWidth="kendo.pdfviewer.fitToWidth|The text for the zoom level chooser Fit to width option."
|
|
2515
|
+
fitToWidth="Fit to width"
|
|
2516
|
+
|
|
2517
|
+
i18n-searchInputPlaceholder="kendo.pdfviewer.searchInputPlaceholder|The text for the search input placeholder."
|
|
2518
|
+
searchInputPlaceholder="Search"
|
|
2519
|
+
|
|
2520
|
+
i18n-searchMatchesOf="kendo.pdfviewer.searchMatchesOf|The text before the total number of matches in the Search tool."
|
|
2521
|
+
searchMatchesOf="of"
|
|
2522
|
+
|
|
2523
|
+
i18n-searchPreviousMatchTitle="kendo.pdfviewer.searchPreviousMatchTitle|The title of the Search tool previous match button."
|
|
2524
|
+
searchPreviousMatchTitle="Previous match"
|
|
2525
|
+
|
|
2526
|
+
i18n-searchNextMatchTitle="kendo.pdfviewer.searchNextMatchTitle|The title of the Search tool next match button."
|
|
2527
|
+
searchNextMatchTitle="Next match"
|
|
2528
|
+
|
|
2529
|
+
i18n-searchCloseTitle="kendo.pdfviewer.searchCloseTitle|The title of the Search tool close button."
|
|
2530
|
+
searchCloseTitle="Close"
|
|
2531
|
+
|
|
2532
|
+
i18n-searchMatchCaseTitle="kendo.pdfviewer.searchMatchCaseTitle|The title of the Search tool match case button."
|
|
2533
|
+
searchMatchCaseTitle="Match case"
|
|
2534
|
+
|
|
2535
|
+
i18n-zoomInputPlaceholder="kendo.pdfviewer.zoomInputPlaceholder|The text for the zoom tool input placeholder."
|
|
2536
|
+
zoomInputPlaceholder="Choose zoom level"
|
|
2537
|
+
|
|
2538
|
+
i18n-annotationsTitle="kendo.pdfviewer.annotationsTitle|The Annotations tool title and label."
|
|
2539
|
+
annotationsTitle="Annotations"
|
|
2540
|
+
|
|
2541
|
+
i18n-annotationEditorTitle="kendo.pdfviewer.annotationEditorTitle|The annotation editor tool title and label."
|
|
2542
|
+
annotationEditorTitle="Annotation editor"
|
|
2543
|
+
|
|
2544
|
+
i18n-deleteAnnotationTitle="kendo.pdfviewer.deleteAnnotationTitle|The delete annotation tool title and label."
|
|
2545
|
+
deleteAnnotationTitle="Delete annotation"
|
|
2546
|
+
|
|
2547
|
+
i18n-highlightAnnotationTitle="kendo.pdfviewer.highlightAnnotationTitle|The highlight annotation tool title and label."
|
|
2548
|
+
highlightAnnotationTitle="Highlight"
|
|
2549
|
+
|
|
2550
|
+
i18n-freeTextAnnotationTitle="kendo.pdfviewer.freeTextAnnotationTitle|The free text annotation tool title and label."
|
|
2551
|
+
freeTextAnnotationTitle="Free text"
|
|
2552
|
+
|
|
2553
|
+
i18n-closeAnnotationsToolbarTitle="kendo.pdfviewer.closeAnnotationsToolbarTitle|The close annotations toolbar tool title and label."
|
|
2554
|
+
closeAnnotationsToolbarTitle="Close"
|
|
2555
|
+
|
|
2556
|
+
i18n-deleteAnnotationConfirmationDialogTitle="kendo.pdfviewer.deleteAnnotationConfirmationDialogTitle|The delete annotation confirmation dialog title."
|
|
2557
|
+
deleteAnnotationConfirmationDialogTitle="Delete annotation"
|
|
2558
|
+
|
|
2559
|
+
i18n-deleteAnnotationConfirmationDialogContent="kendo.pdfviewer.deleteAnnotationConfirmationDialogContent|The delete annotation confirmation dialog content."
|
|
2560
|
+
deleteAnnotationConfirmationDialogContent="Are you sure you want to delete this annotation?"
|
|
2561
|
+
|
|
2562
|
+
i18n-deleteAnnotationConfirmationDialogConfirmText="kendo.pdfviewer.deleteAnnotationConfirmationDialogConfirmText|The delete annotation confirmation dialog confirm button text."
|
|
2563
|
+
deleteAnnotationConfirmationDialogConfirmText="Delete"
|
|
2564
|
+
|
|
2565
|
+
i18n-deleteAnnotationConfirmationDialogRejectText="kendo.pdfviewer.deleteAnnotationConfirmationDialogRejectText|The delete annotation confirmation dialog reject button text."
|
|
2566
|
+
deleteAnnotationConfirmationDialogRejectText="Cancel"
|
|
2567
|
+
|
|
2568
|
+
i18n-annotationEditorFontSizeTitle="kendo.pdfviewer.annotationEditorFontSizeTitle|The annotation editor font size section title."
|
|
2569
|
+
annotationEditorFontSizeTitle="Font size"
|
|
2570
|
+
|
|
2571
|
+
i18n-annotationEditorColorTitle="kendo.pdfviewer.annotationEditorColorTitle|The annotation editor color section title."
|
|
2572
|
+
annotationEditorColorTitle="Color">
|
|
2552
2573
|
</ng-container>
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2574
|
+
@if (loading) {
|
|
2575
|
+
<div kendoPDFViewerLoader
|
|
2576
|
+
[settings]="loaderSettings"></div>
|
|
2577
|
+
}
|
|
2556
2578
|
<div kendoPDFViewerToolbar
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2579
|
+
#toolbar
|
|
2580
|
+
role="toolbar"
|
|
2581
|
+
[attr.aria-controls]="pagesContainerId"
|
|
2582
|
+
[tools]="tools"
|
|
2583
|
+
[skip]="skip"
|
|
2584
|
+
[total]="pdfContext?.pdfPages.length ? pdfContext?.pdfPages.length : 1"
|
|
2585
|
+
[pageSize]="1"
|
|
2586
|
+
[zoomInDisabled]="zoom >= maxZoom || !pdfContext?.pdfDoc"
|
|
2587
|
+
[zoomOutDisabled]="zoom <= minZoom || !pdfContext?.pdfDoc"
|
|
2588
|
+
[zoomOptionsData]="zoomOptionsData"
|
|
2589
|
+
[zoomLevelChooserValue]="zoomLevel"
|
|
2590
|
+
[disabledTools]="!pdfContext?.pdfDoc"
|
|
2591
|
+
[isAnnotationsToolbarVisible]="showAnnotationsToolbar"
|
|
2592
|
+
[wrapperId]="showAnnotationsToolbar ? annotationsToolbarId : undefined"
|
|
2593
|
+
[annotationsToolId]="annotationsToolId"
|
|
2594
|
+
[isSelectionEnabled]="enabledSelection"
|
|
2595
|
+
(pageChange)="onPageChange($event)"
|
|
2596
|
+
(fileSelect)="onFileSelect($event)"
|
|
2597
|
+
(fileSelectStart)="loading = true;"
|
|
2598
|
+
(fileSelectError)="onFileSelectError($event)"
|
|
2599
|
+
(download)="onDownload()"
|
|
2600
|
+
(panningEnabled)="onPanningEnabled();"
|
|
2601
|
+
(selectionEnabled)="onSelectionEnabled();"
|
|
2602
|
+
(zoomIn)="onZoomIn()"
|
|
2603
|
+
(zoomOut)="onZoomOut()"
|
|
2604
|
+
(zoomLevelChange)="onZoomLevelChange($event)"
|
|
2605
|
+
(print)="onPrint()"
|
|
2606
|
+
(search)="onSearch()"
|
|
2607
|
+
(toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
|
|
2608
|
+
@if (showAnnotationsToolbar) {
|
|
2609
|
+
<div
|
|
2587
2610
|
[attr.id]="annotationsToolbarId"
|
|
2588
2611
|
kendoPDFViewerToolbar
|
|
2589
2612
|
role="toolbar"
|
|
@@ -2591,35 +2614,39 @@ class PDFViewerComponent {
|
|
|
2591
2614
|
(setAnnotationMode)="onSetAnnotationMode($event)"
|
|
2592
2615
|
[attr.aria-controls]="pagesContainerId"
|
|
2593
2616
|
[disabledTools]="!pdfContext?.pdfDoc"
|
|
2594
|
-
|
|
2617
|
+
(toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
|
|
2618
|
+
}
|
|
2595
2619
|
<div
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
kendoPDFViewerSearch
|
|
2603
|
-
*ngIf="searchActive"
|
|
2604
|
-
[currentMatch]="currentMatch"
|
|
2605
|
-
[matches]="currentMatches.length"
|
|
2606
|
-
class="k-search-panel k-pos-sticky k-top-center"
|
|
2607
|
-
(searchChange)="onSearchChange($event)"
|
|
2608
|
-
(prevMatch)="onPreviousMatch()"
|
|
2609
|
-
(nextMatch)="onNextMatch()"
|
|
2610
|
-
(close)="closeSearch(toolbar)"></div>
|
|
2620
|
+
class="k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto"
|
|
2621
|
+
[class.k-enable-text-select]="enabledSelection"
|
|
2622
|
+
[class.k-enable-panning]="!enabledSelection"
|
|
2623
|
+
[attr.aria-describedby]="activePageId"
|
|
2624
|
+
tabindex="0">
|
|
2625
|
+
@if (searchActive) {
|
|
2611
2626
|
<div
|
|
2612
|
-
|
|
2627
|
+
kendoPDFViewerSearch
|
|
2628
|
+
[currentMatch]="currentMatch"
|
|
2629
|
+
[matches]="currentMatches.length"
|
|
2630
|
+
class="k-search-panel k-pos-sticky k-top-center"
|
|
2631
|
+
(searchChange)="onSearchChange($event)"
|
|
2632
|
+
(prevMatch)="onPreviousMatch()"
|
|
2633
|
+
(nextMatch)="onNextMatch()"
|
|
2634
|
+
(close)="closeSearch(toolbar)"></div>
|
|
2635
|
+
}
|
|
2636
|
+
<div
|
|
2637
|
+
#pagesContainer
|
|
2613
2638
|
[kendoEventsOutsideAngular]="{
|
|
2614
2639
|
wheel: stopPropagation
|
|
2615
2640
|
}"
|
|
2616
|
-
|
|
2617
|
-
|
|
2641
|
+
class="k-pdf-viewer-pages"
|
|
2642
|
+
[attr.id]="pagesContainerId"></div>
|
|
2618
2643
|
</div>
|
|
2619
|
-
|
|
2644
|
+
|
|
2620
2645
|
<div #dialogContainer></div>
|
|
2621
|
-
|
|
2622
|
-
|
|
2646
|
+
@if (showLicenseWatermark) {
|
|
2647
|
+
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
2648
|
+
}
|
|
2649
|
+
`, 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"] }] });
|
|
2623
2650
|
}
|
|
2624
2651
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PDFViewerComponent, decorators: [{
|
|
2625
2652
|
type: Component,
|
|
@@ -2635,151 +2662,153 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2635
2662
|
],
|
|
2636
2663
|
template: `
|
|
2637
2664
|
<ng-container kendoPDFViewerLocalizedMessages
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2665
|
+
i18n-pagerFirstPage="kendo.pdfviewer.pagerFirstPage|The label for the first page button in the Pager"
|
|
2666
|
+
pagerFirstPage="Go to the first page"
|
|
2667
|
+
|
|
2668
|
+
i18n-pagerPreviousPage="kendo.pdfviewer.pagerPreviousPage|The label for the previous page button in the Pager"
|
|
2669
|
+
pagerPreviousPage="Go to the previous page"
|
|
2670
|
+
|
|
2671
|
+
i18n-pagerNextPage="kendo.pdfviewer.pagerNextPage|The label for the next page button in the Pager"
|
|
2672
|
+
pagerNextPage="Go to the next page"
|
|
2673
|
+
|
|
2674
|
+
i18n-pagerLastPage="kendo.pdfviewer.pagerLastPage|The label for the last page button in the Pager"
|
|
2675
|
+
pagerLastPage="Go to the last page"
|
|
2676
|
+
|
|
2677
|
+
i18n-pagerPage="kendo.pdfviewer.pagerPage|The text before the current page number in the Pager"
|
|
2678
|
+
pagerPage="Page"
|
|
2679
|
+
|
|
2680
|
+
i18n-pagerOf="kendo.pdfviewer.pagerOf|The text before the total pages number in the Pager"
|
|
2681
|
+
pagerOf="of"
|
|
2682
|
+
|
|
2683
|
+
i18n-pagerInputTitle="kendo.pdfviewer.pagerInputTitle|The label of the pager input element"
|
|
2684
|
+
pagerInputTitle="Page Number"
|
|
2685
|
+
|
|
2686
|
+
i18n-pagerInputLabel="kendo.pdfviewer.pagerInputLabel|The text of the aria-label attribute applied to the input element for entering the page number."
|
|
2687
|
+
pagerInputLabel="Type a page number"
|
|
2688
|
+
|
|
2689
|
+
i18n-zoomInTitle="kendo.pdfviewer.zoomInTitle|The ZoomIn tool title and label."
|
|
2690
|
+
zoomInTitle="Zoom in"
|
|
2691
|
+
|
|
2692
|
+
i18n-zoomOutTitle="kendo.pdfviewer.zoomOutTitle|The ZoomOut tool title and label."
|
|
2693
|
+
zoomOutTitle="Zoom out"
|
|
2694
|
+
|
|
2695
|
+
i18n-selectionTitle="kendo.pdfviewer.selectionTitle|The Selection tool title and label."
|
|
2696
|
+
selectionTitle="Enable selection"
|
|
2697
|
+
|
|
2698
|
+
i18n-panningTitle="kendo.pdfviewer.panningTitle|The Panning tool title and label."
|
|
2699
|
+
panningTitle="Enable panning"
|
|
2700
|
+
|
|
2701
|
+
i18n-searchTitle="kendo.pdfviewer.searchTitle|The Search tool title and label."
|
|
2702
|
+
searchTitle="Search"
|
|
2703
|
+
|
|
2704
|
+
i18n-openTitle="kendo.pdfviewer.openTitle|The Open tool title and label."
|
|
2705
|
+
openTitle="Open"
|
|
2706
|
+
|
|
2707
|
+
i18n-downloadTitle="kendo.pdfviewer.downloadTitle|The Download tool title and label."
|
|
2708
|
+
downloadTitle="Download"
|
|
2709
|
+
|
|
2710
|
+
i18n-printTitle="kendo.pdfviewer.printTitle|The Print tool title and label."
|
|
2711
|
+
printTitle="Print"
|
|
2712
|
+
|
|
2713
|
+
i18n-fitToPage="kendo.pdfviewer.fitToPage|The text for the zoom level chooser Fit to page option."
|
|
2714
|
+
fitToPage="Fit to page"
|
|
2715
|
+
|
|
2716
|
+
i18n-fitToWidth="kendo.pdfviewer.fitToWidth|The text for the zoom level chooser Fit to width option."
|
|
2717
|
+
fitToWidth="Fit to width"
|
|
2718
|
+
|
|
2719
|
+
i18n-searchInputPlaceholder="kendo.pdfviewer.searchInputPlaceholder|The text for the search input placeholder."
|
|
2720
|
+
searchInputPlaceholder="Search"
|
|
2721
|
+
|
|
2722
|
+
i18n-searchMatchesOf="kendo.pdfviewer.searchMatchesOf|The text before the total number of matches in the Search tool."
|
|
2723
|
+
searchMatchesOf="of"
|
|
2724
|
+
|
|
2725
|
+
i18n-searchPreviousMatchTitle="kendo.pdfviewer.searchPreviousMatchTitle|The title of the Search tool previous match button."
|
|
2726
|
+
searchPreviousMatchTitle="Previous match"
|
|
2727
|
+
|
|
2728
|
+
i18n-searchNextMatchTitle="kendo.pdfviewer.searchNextMatchTitle|The title of the Search tool next match button."
|
|
2729
|
+
searchNextMatchTitle="Next match"
|
|
2730
|
+
|
|
2731
|
+
i18n-searchCloseTitle="kendo.pdfviewer.searchCloseTitle|The title of the Search tool close button."
|
|
2732
|
+
searchCloseTitle="Close"
|
|
2733
|
+
|
|
2734
|
+
i18n-searchMatchCaseTitle="kendo.pdfviewer.searchMatchCaseTitle|The title of the Search tool match case button."
|
|
2735
|
+
searchMatchCaseTitle="Match case"
|
|
2736
|
+
|
|
2737
|
+
i18n-zoomInputPlaceholder="kendo.pdfviewer.zoomInputPlaceholder|The text for the zoom tool input placeholder."
|
|
2738
|
+
zoomInputPlaceholder="Choose zoom level"
|
|
2739
|
+
|
|
2740
|
+
i18n-annotationsTitle="kendo.pdfviewer.annotationsTitle|The Annotations tool title and label."
|
|
2741
|
+
annotationsTitle="Annotations"
|
|
2742
|
+
|
|
2743
|
+
i18n-annotationEditorTitle="kendo.pdfviewer.annotationEditorTitle|The annotation editor tool title and label."
|
|
2744
|
+
annotationEditorTitle="Annotation editor"
|
|
2745
|
+
|
|
2746
|
+
i18n-deleteAnnotationTitle="kendo.pdfviewer.deleteAnnotationTitle|The delete annotation tool title and label."
|
|
2747
|
+
deleteAnnotationTitle="Delete annotation"
|
|
2748
|
+
|
|
2749
|
+
i18n-highlightAnnotationTitle="kendo.pdfviewer.highlightAnnotationTitle|The highlight annotation tool title and label."
|
|
2750
|
+
highlightAnnotationTitle="Highlight"
|
|
2751
|
+
|
|
2752
|
+
i18n-freeTextAnnotationTitle="kendo.pdfviewer.freeTextAnnotationTitle|The free text annotation tool title and label."
|
|
2753
|
+
freeTextAnnotationTitle="Free text"
|
|
2754
|
+
|
|
2755
|
+
i18n-closeAnnotationsToolbarTitle="kendo.pdfviewer.closeAnnotationsToolbarTitle|The close annotations toolbar tool title and label."
|
|
2756
|
+
closeAnnotationsToolbarTitle="Close"
|
|
2757
|
+
|
|
2758
|
+
i18n-deleteAnnotationConfirmationDialogTitle="kendo.pdfviewer.deleteAnnotationConfirmationDialogTitle|The delete annotation confirmation dialog title."
|
|
2759
|
+
deleteAnnotationConfirmationDialogTitle="Delete annotation"
|
|
2760
|
+
|
|
2761
|
+
i18n-deleteAnnotationConfirmationDialogContent="kendo.pdfviewer.deleteAnnotationConfirmationDialogContent|The delete annotation confirmation dialog content."
|
|
2762
|
+
deleteAnnotationConfirmationDialogContent="Are you sure you want to delete this annotation?"
|
|
2763
|
+
|
|
2764
|
+
i18n-deleteAnnotationConfirmationDialogConfirmText="kendo.pdfviewer.deleteAnnotationConfirmationDialogConfirmText|The delete annotation confirmation dialog confirm button text."
|
|
2765
|
+
deleteAnnotationConfirmationDialogConfirmText="Delete"
|
|
2766
|
+
|
|
2767
|
+
i18n-deleteAnnotationConfirmationDialogRejectText="kendo.pdfviewer.deleteAnnotationConfirmationDialogRejectText|The delete annotation confirmation dialog reject button text."
|
|
2768
|
+
deleteAnnotationConfirmationDialogRejectText="Cancel"
|
|
2769
|
+
|
|
2770
|
+
i18n-annotationEditorFontSizeTitle="kendo.pdfviewer.annotationEditorFontSizeTitle|The annotation editor font size section title."
|
|
2771
|
+
annotationEditorFontSizeTitle="Font size"
|
|
2772
|
+
|
|
2773
|
+
i18n-annotationEditorColorTitle="kendo.pdfviewer.annotationEditorColorTitle|The annotation editor color section title."
|
|
2774
|
+
annotationEditorColorTitle="Color">
|
|
2748
2775
|
</ng-container>
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2776
|
+
@if (loading) {
|
|
2777
|
+
<div kendoPDFViewerLoader
|
|
2778
|
+
[settings]="loaderSettings"></div>
|
|
2779
|
+
}
|
|
2752
2780
|
<div kendoPDFViewerToolbar
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2781
|
+
#toolbar
|
|
2782
|
+
role="toolbar"
|
|
2783
|
+
[attr.aria-controls]="pagesContainerId"
|
|
2784
|
+
[tools]="tools"
|
|
2785
|
+
[skip]="skip"
|
|
2786
|
+
[total]="pdfContext?.pdfPages.length ? pdfContext?.pdfPages.length : 1"
|
|
2787
|
+
[pageSize]="1"
|
|
2788
|
+
[zoomInDisabled]="zoom >= maxZoom || !pdfContext?.pdfDoc"
|
|
2789
|
+
[zoomOutDisabled]="zoom <= minZoom || !pdfContext?.pdfDoc"
|
|
2790
|
+
[zoomOptionsData]="zoomOptionsData"
|
|
2791
|
+
[zoomLevelChooserValue]="zoomLevel"
|
|
2792
|
+
[disabledTools]="!pdfContext?.pdfDoc"
|
|
2793
|
+
[isAnnotationsToolbarVisible]="showAnnotationsToolbar"
|
|
2794
|
+
[wrapperId]="showAnnotationsToolbar ? annotationsToolbarId : undefined"
|
|
2795
|
+
[annotationsToolId]="annotationsToolId"
|
|
2796
|
+
[isSelectionEnabled]="enabledSelection"
|
|
2797
|
+
(pageChange)="onPageChange($event)"
|
|
2798
|
+
(fileSelect)="onFileSelect($event)"
|
|
2799
|
+
(fileSelectStart)="loading = true;"
|
|
2800
|
+
(fileSelectError)="onFileSelectError($event)"
|
|
2801
|
+
(download)="onDownload()"
|
|
2802
|
+
(panningEnabled)="onPanningEnabled();"
|
|
2803
|
+
(selectionEnabled)="onSelectionEnabled();"
|
|
2804
|
+
(zoomIn)="onZoomIn()"
|
|
2805
|
+
(zoomOut)="onZoomOut()"
|
|
2806
|
+
(zoomLevelChange)="onZoomLevelChange($event)"
|
|
2807
|
+
(print)="onPrint()"
|
|
2808
|
+
(search)="onSearch()"
|
|
2809
|
+
(toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
|
|
2810
|
+
@if (showAnnotationsToolbar) {
|
|
2811
|
+
<div
|
|
2783
2812
|
[attr.id]="annotationsToolbarId"
|
|
2784
2813
|
kendoPDFViewerToolbar
|
|
2785
2814
|
role="toolbar"
|
|
@@ -2787,37 +2816,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2787
2816
|
(setAnnotationMode)="onSetAnnotationMode($event)"
|
|
2788
2817
|
[attr.aria-controls]="pagesContainerId"
|
|
2789
2818
|
[disabledTools]="!pdfContext?.pdfDoc"
|
|
2790
|
-
|
|
2819
|
+
(toggleAnnotationsToolbar)="toggleAnnotationsToolbar()"></div>
|
|
2820
|
+
}
|
|
2791
2821
|
<div
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
kendoPDFViewerSearch
|
|
2799
|
-
*ngIf="searchActive"
|
|
2800
|
-
[currentMatch]="currentMatch"
|
|
2801
|
-
[matches]="currentMatches.length"
|
|
2802
|
-
class="k-search-panel k-pos-sticky k-top-center"
|
|
2803
|
-
(searchChange)="onSearchChange($event)"
|
|
2804
|
-
(prevMatch)="onPreviousMatch()"
|
|
2805
|
-
(nextMatch)="onNextMatch()"
|
|
2806
|
-
(close)="closeSearch(toolbar)"></div>
|
|
2822
|
+
class="k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto"
|
|
2823
|
+
[class.k-enable-text-select]="enabledSelection"
|
|
2824
|
+
[class.k-enable-panning]="!enabledSelection"
|
|
2825
|
+
[attr.aria-describedby]="activePageId"
|
|
2826
|
+
tabindex="0">
|
|
2827
|
+
@if (searchActive) {
|
|
2807
2828
|
<div
|
|
2808
|
-
|
|
2829
|
+
kendoPDFViewerSearch
|
|
2830
|
+
[currentMatch]="currentMatch"
|
|
2831
|
+
[matches]="currentMatches.length"
|
|
2832
|
+
class="k-search-panel k-pos-sticky k-top-center"
|
|
2833
|
+
(searchChange)="onSearchChange($event)"
|
|
2834
|
+
(prevMatch)="onPreviousMatch()"
|
|
2835
|
+
(nextMatch)="onNextMatch()"
|
|
2836
|
+
(close)="closeSearch(toolbar)"></div>
|
|
2837
|
+
}
|
|
2838
|
+
<div
|
|
2839
|
+
#pagesContainer
|
|
2809
2840
|
[kendoEventsOutsideAngular]="{
|
|
2810
2841
|
wheel: stopPropagation
|
|
2811
2842
|
}"
|
|
2812
|
-
|
|
2813
|
-
|
|
2843
|
+
class="k-pdf-viewer-pages"
|
|
2844
|
+
[attr.id]="pagesContainerId"></div>
|
|
2814
2845
|
</div>
|
|
2815
|
-
|
|
2846
|
+
|
|
2816
2847
|
<div #dialogContainer></div>
|
|
2817
|
-
|
|
2818
|
-
|
|
2848
|
+
@if (showLicenseWatermark) {
|
|
2849
|
+
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
2850
|
+
}
|
|
2851
|
+
`,
|
|
2819
2852
|
standalone: true,
|
|
2820
|
-
imports: [LocalizedPDFViewerMessagesDirective,
|
|
2853
|
+
imports: [LocalizedPDFViewerMessagesDirective, EventsOutsideAngularDirective, LoaderComponent, ToolbarComponent, PDFViewerSearchComponent, WatermarkOverlayComponent]
|
|
2821
2854
|
}]
|
|
2822
2855
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i2$1.PopupService }], propDecorators: { hostClass: [{
|
|
2823
2856
|
type: HostBinding,
|