@progress/kendo-angular-pdfviewer 13.0.0-develop.10

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.
Files changed (51) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +654 -0
  3. package/README.md +32 -0
  4. package/esm2020/index.mjs +16 -0
  5. package/esm2020/loader/loader.component.mjs +53 -0
  6. package/esm2020/localization/custom-messages.component.mjs +38 -0
  7. package/esm2020/localization/localized-messages.directive.mjs +37 -0
  8. package/esm2020/localization/messages.mjs +71 -0
  9. package/esm2020/models/events.mjs +21 -0
  10. package/esm2020/models/loader-settings.mjs +5 -0
  11. package/esm2020/models/pdfviewer-context.mjs +5 -0
  12. package/esm2020/models/toolbar-tool.mjs +5 -0
  13. package/esm2020/models/zoom-level.mjs +5 -0
  14. package/esm2020/package-metadata.mjs +15 -0
  15. package/esm2020/pdfviewer.component.mjs +801 -0
  16. package/esm2020/pdfviewer.module.mjs +81 -0
  17. package/esm2020/progress-kendo-angular-pdfviewer.mjs +8 -0
  18. package/esm2020/toolbar/input-wrapper.component.mjs +63 -0
  19. package/esm2020/toolbar/search.component.mjs +171 -0
  20. package/esm2020/toolbar/toolbar-combobox.directive.mjs +43 -0
  21. package/esm2020/toolbar/toolbar-focusable.directive.mjs +63 -0
  22. package/esm2020/toolbar/toolbar-navigation.service.mjs +52 -0
  23. package/esm2020/toolbar/toolbar.component.mjs +460 -0
  24. package/esm2020/util.mjs +72 -0
  25. package/fesm2015/progress-kendo-angular-pdfviewer.mjs +1943 -0
  26. package/fesm2020/progress-kendo-angular-pdfviewer.mjs +1938 -0
  27. package/index.d.ts +16 -0
  28. package/loader/loader.component.d.ts +17 -0
  29. package/localization/custom-messages.component.d.ts +18 -0
  30. package/localization/localized-messages.directive.d.ts +16 -0
  31. package/localization/messages.d.ts +113 -0
  32. package/models/events.d.ts +81 -0
  33. package/models/loader-settings.d.ts +48 -0
  34. package/models/pdfviewer-context.d.ts +27 -0
  35. package/models/toolbar-tool.d.ts +8 -0
  36. package/models/zoom-level.d.ts +14 -0
  37. package/package-metadata.d.ts +9 -0
  38. package/package.json +65 -0
  39. package/pdfviewer.component.d.ts +228 -0
  40. package/pdfviewer.module.d.ts +30 -0
  41. package/progress-kendo-angular-pdfviewer.d.ts +9 -0
  42. package/schematics/collection.json +12 -0
  43. package/schematics/ngAdd/index.js +8 -0
  44. package/schematics/ngAdd/schema.json +24 -0
  45. package/toolbar/input-wrapper.component.d.ts +21 -0
  46. package/toolbar/search.component.d.ts +39 -0
  47. package/toolbar/toolbar-combobox.directive.d.ts +21 -0
  48. package/toolbar/toolbar-focusable.directive.d.ts +21 -0
  49. package/toolbar/toolbar-navigation.service.d.ts +23 -0
  50. package/toolbar/toolbar.component.d.ts +65 -0
  51. package/util.d.ts +32 -0
@@ -0,0 +1,30 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "./pdfviewer.component";
7
+ import * as i2 from "./toolbar/toolbar.component";
8
+ import * as i3 from "./loader/loader.component";
9
+ import * as i4 from "./localization/custom-messages.component";
10
+ import * as i5 from "./localization/localized-messages.directive";
11
+ import * as i6 from "./toolbar/input-wrapper.component";
12
+ import * as i7 from "./toolbar/toolbar-focusable.directive";
13
+ import * as i8 from "./toolbar/toolbar-combobox.directive";
14
+ import * as i9 from "./toolbar/search.component";
15
+ import * as i10 from "@angular/common";
16
+ import * as i11 from "@progress/kendo-angular-icons";
17
+ import * as i12 from "@progress/kendo-angular-pager";
18
+ import * as i13 from "@progress/kendo-angular-buttons";
19
+ import * as i14 from "@progress/kendo-angular-inputs";
20
+ import * as i15 from "@progress/kendo-angular-dropdowns";
21
+ import * as i16 from "@progress/kendo-angular-indicators";
22
+ /**
23
+ * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
24
+ * definition for the PDFViewer component.
25
+ */
26
+ export declare class PDFViewerModule {
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<PDFViewerModule, never>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PDFViewerModule, [typeof i1.PDFViewerComponent, typeof i2.ToolbarComponent, typeof i3.LoaderComponent, typeof i4.PDFViewerCustomMessagesComponent, typeof i5.LocalizedPDFViewerMessagesDirective, typeof i6.ToolbarInputWrapperComponent, typeof i7.ToolbarFocusableDirective, typeof i8.ToolbarComboBoxDirective, typeof i9.PDFViewerSearchComponent], [typeof i10.CommonModule, typeof i11.IconsModule, typeof i12.PagerModule, typeof i13.ButtonsModule, typeof i14.TextBoxModule, typeof i15.ComboBoxModule, typeof i16.LoaderModule], [typeof i1.PDFViewerComponent, typeof i2.ToolbarComponent, typeof i3.LoaderComponent, typeof i4.PDFViewerCustomMessagesComponent, typeof i5.LocalizedPDFViewerMessagesDirective, typeof i6.ToolbarInputWrapperComponent, typeof i7.ToolbarFocusableDirective, typeof i8.ToolbarComboBoxDirective, typeof i9.PDFViewerSearchComponent]>;
29
+ static ɵinj: i0.ɵɵInjectorDeclaration<PDFViewerModule>;
30
+ }
@@ -0,0 +1,9 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Generated bundle index. Do not edit.
7
+ */
8
+ /// <amd-module name="@progress/kendo-angular-pdfviewer" />
9
+ export * from './index';
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Adds Kendo Angular Package to the application.",
6
+ "factory": "./ngAdd",
7
+ "schema": "./ngAdd/schema.json",
8
+ "hidden": true,
9
+ "private": true
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schematics_1 = require("@angular-devkit/schematics");
4
+ function default_1(options) {
5
+ const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'PdfviewerModule', package: 'pdfviewer' });
6
+ return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
7
+ }
8
+ exports.default = default_1;
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "SchematicsKendoAngularPdfviewer",
4
+ "title": "Kendo Angular Pdfviewer Options Schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "theme": {
8
+ "enum": ["default", "bootstrap", "material"],
9
+ "default": "default",
10
+ "description": "The theme to apply"
11
+ },
12
+ "export": {
13
+ "type": "boolean",
14
+ "default": false,
15
+ "description": "Specifies if declaring module exports the component."
16
+ },
17
+ "skipInstall": {
18
+ "description": "Skip installing Kendo dependency packages.",
19
+ "type": "boolean",
20
+ "default": false
21
+ }
22
+ },
23
+ "required": []
24
+ }
@@ -0,0 +1,21 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ElementRef, Renderer2 } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export declare class ToolbarInputWrapperComponent {
11
+ private host;
12
+ private renderer;
13
+ toolbarTool: any;
14
+ hostClass: boolean;
15
+ private subs;
16
+ constructor(host: ElementRef, renderer: Renderer2);
17
+ ngAfterViewInit(): void;
18
+ ngOnDestroy(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarInputWrapperComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarInputWrapperComponent, "kendo-toolbar-input-wrapper", never, { "toolbarTool": "toolbarTool"; }, {}, never, ["*"]>;
21
+ }
@@ -0,0 +1,39 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { AfterViewInit, EventEmitter } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { SVGIcon } from '@progress/kendo-svg-icons';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare class PDFViewerSearchComponent implements AfterViewInit {
13
+ private localization;
14
+ private textbox;
15
+ private closeButton;
16
+ ariaRole: string;
17
+ onEscape(): void;
18
+ matches: number;
19
+ currentMatch: number;
20
+ searchChange: EventEmitter<{
21
+ text: string;
22
+ matchCase: boolean;
23
+ }>;
24
+ prevMatch: EventEmitter<any>;
25
+ nextMatch: EventEmitter<any>;
26
+ close: EventEmitter<any>;
27
+ convertLowercaseIcon: SVGIcon;
28
+ arrowUpIcon: SVGIcon;
29
+ arrowDownIcon: SVGIcon;
30
+ xIcon: SVGIcon;
31
+ value: string;
32
+ matchCase: boolean;
33
+ constructor(localization: LocalizationService);
34
+ ngAfterViewInit(): void;
35
+ messageFor(key: string): string;
36
+ onShiftTab(e: Event): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<PDFViewerSearchComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<PDFViewerSearchComponent, "[kendoPDFViewerSearch]", never, { "matches": "matches"; "currentMatch": "currentMatch"; }, { "searchChange": "searchChange"; "prevMatch": "prevMatch"; "nextMatch": "nextMatch"; "close": "close"; }, never, never>;
39
+ }
@@ -0,0 +1,21 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ComboBoxComponent } from '@progress/kendo-angular-dropdowns';
6
+ import { ElementRef } from '@angular/core';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class ToolbarComboBoxDirective {
12
+ private combo;
13
+ private hostEl;
14
+ private inputElement;
15
+ constructor(combo: ComboBoxComponent, hostEl: ElementRef);
16
+ ngAfterViewInit(): void;
17
+ ngOnDestroy(): void;
18
+ private keydownHandler;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComboBoxDirective, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ToolbarComboBoxDirective, "[kendoPDFViewerComboBox]", never, {}, {}, never>;
21
+ }
@@ -0,0 +1,21 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ElementRef, Renderer2 } from '@angular/core';
6
+ import { ToolbarNavigationService } from './toolbar-navigation.service';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class ToolbarFocusableDirective {
12
+ private host;
13
+ private navigationService;
14
+ private renderer;
15
+ constructor(host: ElementRef, navigationService: ToolbarNavigationService, renderer: Renderer2);
16
+ ngAfterViewInit(): void;
17
+ ngOnDestroy(): void;
18
+ activate(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarFocusableDirective, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ToolbarFocusableDirective, "[kendoPDFViewerToolbarFocusable]", never, {}, {}, never>;
21
+ }
@@ -0,0 +1,23 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ToolbarFocusableDirective } from './toolbar-focusable.directive';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class ToolbarNavigationService {
12
+ private localizationService;
13
+ focusableTools: ToolbarFocusableDirective[];
14
+ currentFocusIndex: number;
15
+ constructor(localizationService: LocalizationService);
16
+ register(tool: ToolbarFocusableDirective): void;
17
+ unregister(tool: ToolbarFocusableDirective): void;
18
+ isActive(focusable: ToolbarFocusableDirective): boolean;
19
+ setActiveIndex(tool: ToolbarFocusableDirective): void;
20
+ move(direction: 'left' | 'right'): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarNavigationService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<ToolbarNavigationService>;
23
+ }
@@ -0,0 +1,65 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ElementRef, EventEmitter } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { PageChangeEvent, PagerType } from '@progress/kendo-angular-pager';
8
+ import { SVGIcon } from '@progress/kendo-svg-icons';
9
+ import { ToolbarNavigationService } from './toolbar-navigation.service';
10
+ import { PDFViewerTool } from '../models/toolbar-tool';
11
+ import { ZoomLevel } from '../models/zoom-level';
12
+ import * as i0 from "@angular/core";
13
+ /**
14
+ * @hidden
15
+ */
16
+ export declare class ToolbarComponent {
17
+ private localization;
18
+ private navigationService;
19
+ toolbarClass: boolean;
20
+ toolbarSizeClass: boolean;
21
+ fileSelectEl: ElementRef;
22
+ zoomLevel: ZoomLevel;
23
+ calculatedComboBoxValue: {
24
+ text: string;
25
+ displayValue: any;
26
+ value: any;
27
+ };
28
+ skip: number;
29
+ pageSize: number;
30
+ total: number;
31
+ zoomInDisabled: boolean;
32
+ zoomOutDisabled: boolean;
33
+ disabledTools: boolean;
34
+ zoomLevelChooserValue: ZoomLevel;
35
+ zoomOptionsData: ZoomLevel[];
36
+ pagesContainerId: string;
37
+ tools: PDFViewerTool[];
38
+ fileSelect: EventEmitter<string | ArrayBuffer>;
39
+ fileSelectError: EventEmitter<any>;
40
+ download: EventEmitter<any>;
41
+ selectionEnabled: EventEmitter<any>;
42
+ panningEnabled: EventEmitter<any>;
43
+ pageChange: EventEmitter<PageChangeEvent>;
44
+ zoomIn: EventEmitter<any>;
45
+ zoomOut: EventEmitter<any>;
46
+ zoomLevelChange: EventEmitter<ZoomLevel>;
47
+ print: EventEmitter<any>;
48
+ search: EventEmitter<any>;
49
+ zoomInIcon: SVGIcon;
50
+ zoomOutIcon: SVGIcon;
51
+ handIcon: SVGIcon;
52
+ pointerIcon: SVGIcon;
53
+ searchIcon: SVGIcon;
54
+ folderOpenIcon: SVGIcon;
55
+ downloadIcon: SVGIcon;
56
+ printIcon: SVGIcon;
57
+ pagerType: PagerType;
58
+ constructor(localization: LocalizationService, navigationService: ToolbarNavigationService);
59
+ messageFor(key: string): string;
60
+ onFileSelect(e: any): void;
61
+ onZoomLevelChooserValueChange(zoomLevel: ZoomLevel): void;
62
+ focus(): void;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "[toolbar]", never, { "zoomLevel": "zoomLevel"; "calculatedComboBoxValue": "calculatedComboBoxValue"; "skip": "skip"; "pageSize": "pageSize"; "total": "total"; "zoomInDisabled": "zoomInDisabled"; "zoomOutDisabled": "zoomOutDisabled"; "disabledTools": "disabledTools"; "zoomLevelChooserValue": "zoomLevelChooserValue"; "zoomOptionsData": "zoomOptionsData"; "pagesContainerId": "pagesContainerId"; "tools": "tools"; }, { "fileSelect": "fileSelect"; "fileSelectError": "fileSelectError"; "download": "download"; "selectionEnabled": "selectionEnabled"; "panningEnabled": "panningEnabled"; "pageChange": "pageChange"; "zoomIn": "zoomIn"; "zoomOut": "zoomOut"; "zoomLevelChange": "zoomLevelChange"; "print": "print"; "search": "search"; }, never, never>;
65
+ }
package/util.d.ts ADDED
@@ -0,0 +1,32 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare const INITIAL_ZOOM_LEVEL = 1.25;
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare const MIN_ZOOM_LEVEL = 0.5;
13
+ /**
14
+ * @hidden
15
+ */
16
+ export declare const MAX_ZOOM_LEVEL = 4;
17
+ /**
18
+ * @hidden
19
+ */
20
+ export declare const zoomOptionsData: ({
21
+ id: number;
22
+ text: string;
23
+ type: string;
24
+ displayValue: string;
25
+ value: number;
26
+ } | {
27
+ id: number;
28
+ text: string;
29
+ displayValue: string;
30
+ value: number;
31
+ type?: undefined;
32
+ })[];