@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
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ <a href="https://www.telerik.com/kendo-angular-ui/" target="_blank">
2
+ <img width="631" src="https://www.telerik.com/kendo-angular-ui/npm-banner.svg">
3
+ </a>
4
+
5
+ ## Kendo UI for Angular Pdfviewer Component
6
+
7
+ > **Important**
8
+ >
9
+ > - This package is part of [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-pdfviewer)&mdash;a commercial library designed and built for developing business applications with Angular. Every UI component in the Kendo UI for Angular suite has been built from the ground-up specifically for Angular.
10
+ > - You will need to install a license key when adding the package to your project. For more information, please refer to the [Kendo UI for Angular My License page](https://www.telerik.com/kendo-angular-ui/my-license?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-pdfviewer).
11
+ > - To receive a license key, you need to either [purchase a license](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-pdfviewer) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-pdfviewer). Doing so indicates that you [accept the Kendo UI for Angular License Agreement](https://www.telerik.com/purchase/license-agreement/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-pdfviewer).
12
+ > - The 30-day free trial gives you access to all the Kendo UI for Angular components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI for Angular dev team!
13
+ >
14
+ > [Start using Kendo UI for Angular](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-pdfviewer) and speed up your development process!
15
+
16
+ ## Resources
17
+
18
+ - [Get Started with Kendo UI for Angular (requires trial registration)](https://www.telerik.com/kendo-angular-ui/getting-started)
19
+ - [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components)
20
+ - [Blogs](http://www.telerik.com/blogs/kendo-ui)
21
+ - [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui)
22
+
23
+ ## Questions and Feedback
24
+
25
+ - [Official Forums](https://www.telerik.com/forums/kendo-angular-ui)
26
+ - [GitHub Issues](https://github.com/telerik/kendo-angular/issues)
27
+ - [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui)
28
+ - [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2)
29
+
30
+ _Copyright © 2023 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved._
31
+
32
+ _Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries._
@@ -0,0 +1,16 @@
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
+ export { PDFViewerModule } from './pdfviewer.module';
6
+ export { PDFViewerComponent } from './pdfviewer.component';
7
+ export { ToolbarComponent } from './toolbar/toolbar.component';
8
+ export { LoaderComponent } from './loader/loader.component';
9
+ export { PDFViewerSearchComponent } from './toolbar/search.component';
10
+ export { PDFViewerDownloadEvent } from './models/events';
11
+ export { PDFViewerCustomMessagesComponent } from './localization/custom-messages.component';
12
+ export { LocalizedPDFViewerMessagesDirective } from './localization/localized-messages.directive';
13
+ // Because of Unsupported private class error
14
+ export { ToolbarFocusableDirective } from './toolbar/toolbar-focusable.directive';
15
+ export { ToolbarInputWrapperComponent } from './toolbar/input-wrapper.component';
16
+ export { ToolbarComboBoxDirective } from './toolbar/toolbar-combobox.directive';
@@ -0,0 +1,53 @@
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 { Component, HostBinding, Input } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "@progress/kendo-angular-indicators";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export class LoaderComponent {
12
+ constructor() {
13
+ this.loaderContainerClass = true;
14
+ this.loaderContainerSizingClass = true;
15
+ this.loaderPositionClass = true;
16
+ }
17
+ }
18
+ LoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
+ LoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: LoaderComponent, selector: "[loader]", inputs: { settings: "settings" }, host: { properties: { "class.k-loader-container": "this.loaderContainerClass", "class.k-loader-container-md": "this.loaderContainerSizingClass", "class.k-loader-top": "this.loaderPositionClass" } }, ngImport: i0, template: `
20
+ <div class="k-loader-container-overlay k-overlay-light"></div>
21
+ <div class="k-loader-container-inner">
22
+ <kendo-loader
23
+ [size]="settings?.size"
24
+ [type]="settings?.type"
25
+ [themeColor]="settings?.themeColor"></kendo-loader>
26
+ </div>
27
+ `, isInline: true, components: [{ type: i1.LoaderComponent, selector: "kendo-loader", inputs: ["type", "themeColor", "size"] }] });
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LoaderComponent, decorators: [{
29
+ type: Component,
30
+ args: [{
31
+ selector: '[loader]',
32
+ template: `
33
+ <div class="k-loader-container-overlay k-overlay-light"></div>
34
+ <div class="k-loader-container-inner">
35
+ <kendo-loader
36
+ [size]="settings?.size"
37
+ [type]="settings?.type"
38
+ [themeColor]="settings?.themeColor"></kendo-loader>
39
+ </div>
40
+ `
41
+ }]
42
+ }], propDecorators: { settings: [{
43
+ type: Input
44
+ }], loaderContainerClass: [{
45
+ type: HostBinding,
46
+ args: ['class.k-loader-container']
47
+ }], loaderContainerSizingClass: [{
48
+ type: HostBinding,
49
+ args: ['class.k-loader-container-md']
50
+ }], loaderPositionClass: [{
51
+ type: HostBinding,
52
+ args: ['class.k-loader-top']
53
+ }] } });
@@ -0,0 +1,38 @@
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 { Component, forwardRef } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { Messages } from './messages';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@progress/kendo-angular-l10n";
10
+ /**
11
+ * Custom component messages override default component messages
12
+ * ([see example]({% slug rtl_pdfviewer %}).
13
+ */
14
+ export class PDFViewerCustomMessagesComponent extends Messages {
15
+ constructor(service) {
16
+ super();
17
+ this.service = service;
18
+ }
19
+ get override() {
20
+ return true;
21
+ }
22
+ }
23
+ PDFViewerCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PDFViewerCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
24
+ PDFViewerCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: PDFViewerCustomMessagesComponent, selector: "kendo-pdfviewer-messages", providers: [{
25
+ provide: Messages,
26
+ useExisting: forwardRef(() => PDFViewerCustomMessagesComponent)
27
+ }], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PDFViewerCustomMessagesComponent, decorators: [{
29
+ type: Component,
30
+ args: [{
31
+ providers: [{
32
+ provide: Messages,
33
+ useExisting: forwardRef(() => PDFViewerCustomMessagesComponent)
34
+ }],
35
+ selector: 'kendo-pdfviewer-messages',
36
+ template: ``
37
+ }]
38
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
@@ -0,0 +1,37 @@
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 { Directive, forwardRef } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { Messages } from './messages';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@progress/kendo-angular-l10n";
10
+ /**
11
+ * @hidden
12
+ */
13
+ export class LocalizedPDFViewerMessagesDirective extends Messages {
14
+ constructor(service) {
15
+ super();
16
+ this.service = service;
17
+ }
18
+ }
19
+ LocalizedPDFViewerMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LocalizedPDFViewerMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
+ LocalizedPDFViewerMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: LocalizedPDFViewerMessagesDirective, selector: "[kendoPDFViewerLocalizedMessages]", providers: [
21
+ {
22
+ provide: Messages,
23
+ useExisting: forwardRef(() => LocalizedPDFViewerMessagesDirective)
24
+ }
25
+ ], usesInheritance: true, ngImport: i0 });
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LocalizedPDFViewerMessagesDirective, decorators: [{
27
+ type: Directive,
28
+ args: [{
29
+ providers: [
30
+ {
31
+ provide: Messages,
32
+ useExisting: forwardRef(() => LocalizedPDFViewerMessagesDirective)
33
+ }
34
+ ],
35
+ selector: '[kendoPDFViewerLocalizedMessages]'
36
+ }]
37
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
@@ -0,0 +1,71 @@
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 { Directive, Input } from '@angular/core';
6
+ import { ComponentMessages } from '@progress/kendo-angular-l10n';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export class Messages extends ComponentMessages {
12
+ }
13
+ Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
+ Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: Messages, selector: "kendo-pdfviewer-messages-base", inputs: { zoomInTitle: "zoomInTitle", zoomOutTitle: "zoomOutTitle", selectionTitle: "selectionTitle", panningTitle: "panningTitle", searchTitle: "searchTitle", openTitle: "openTitle", downloadTitle: "downloadTitle", printTitle: "printTitle", pagerInputLabel: "pagerInputLabel", pagerInputTitle: "pagerInputTitle", pagerFirstPage: "pagerFirstPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerLastPage: "pagerLastPage", pagerOf: "pagerOf", pagerPage: "pagerPage", fitToPage: "fitToPage", fitToWidth: "fitToWidth", searchInputPlaceholder: "searchInputPlaceholder", searchMatchesOf: "searchMatchesOf", searchPreviousMatchTitle: "searchPreviousMatchTitle", searchNextMatchTitle: "searchNextMatchTitle", searchCloseTitle: "searchCloseTitle", searchMatchCaseTitle: "searchMatchCaseTitle", zoomInputPlaceholder: "zoomInputPlaceholder" }, usesInheritance: true, ngImport: i0 });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: Messages, decorators: [{
16
+ type: Directive,
17
+ args: [{
18
+ // eslint-disable-next-line @angular-eslint/directive-selector
19
+ selector: 'kendo-pdfviewer-messages-base'
20
+ }]
21
+ }], propDecorators: { zoomInTitle: [{
22
+ type: Input
23
+ }], zoomOutTitle: [{
24
+ type: Input
25
+ }], selectionTitle: [{
26
+ type: Input
27
+ }], panningTitle: [{
28
+ type: Input
29
+ }], searchTitle: [{
30
+ type: Input
31
+ }], openTitle: [{
32
+ type: Input
33
+ }], downloadTitle: [{
34
+ type: Input
35
+ }], printTitle: [{
36
+ type: Input
37
+ }], pagerInputLabel: [{
38
+ type: Input
39
+ }], pagerInputTitle: [{
40
+ type: Input
41
+ }], pagerFirstPage: [{
42
+ type: Input
43
+ }], pagerPreviousPage: [{
44
+ type: Input
45
+ }], pagerNextPage: [{
46
+ type: Input
47
+ }], pagerLastPage: [{
48
+ type: Input
49
+ }], pagerOf: [{
50
+ type: Input
51
+ }], pagerPage: [{
52
+ type: Input
53
+ }], fitToPage: [{
54
+ type: Input
55
+ }], fitToWidth: [{
56
+ type: Input
57
+ }], searchInputPlaceholder: [{
58
+ type: Input
59
+ }], searchMatchesOf: [{
60
+ type: Input
61
+ }], searchPreviousMatchTitle: [{
62
+ type: Input
63
+ }], searchNextMatchTitle: [{
64
+ type: Input
65
+ }], searchCloseTitle: [{
66
+ type: Input
67
+ }], searchMatchCaseTitle: [{
68
+ type: Input
69
+ }], zoomInputPlaceholder: [{
70
+ type: Input
71
+ }] } });
@@ -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 { PreventableEvent } from "@progress/kendo-angular-common";
6
+ /**
7
+ * Arguments for the `download` event. The event fires when the end user clicks the Download tool.
8
+ * If you cancel the event, the downloading of the file is prevented.
9
+ */
10
+ export class PDFViewerDownloadEvent extends PreventableEvent {
11
+ /**
12
+ * @hidden
13
+ */
14
+ constructor(blob, fileName, saveOptions, context) {
15
+ super();
16
+ this.blob = blob;
17
+ this.fileName = fileName;
18
+ this.saveOptions = saveOptions;
19
+ this.context = context;
20
+ }
21
+ }
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,15 @@
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 const packageMetadata = {
9
+ name: '@progress/kendo-angular-pdfviewer',
10
+ productName: 'Kendo UI for Angular',
11
+ productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
+ publishDate: 1685119777,
13
+ version: '13.0.0-develop.10',
14
+ 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',
15
+ };