@progress/kendo-angular-pdfviewer 16.5.0-develop.6 → 16.6.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/directives.d.ts +10 -0
- package/esm2020/directives.mjs +13 -0
- package/esm2020/index.mjs +1 -0
- package/esm2020/loader/loader.component.mjs +6 -4
- package/esm2020/localization/custom-messages.component.mjs +3 -2
- package/esm2020/localization/localized-messages.directive.mjs +3 -2
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pdfviewer.component.mjs +10 -9
- package/esm2020/pdfviewer.module.mjs +20 -66
- package/esm2020/toolbar/input-wrapper.component.mjs +3 -2
- package/esm2020/toolbar/search.component.mjs +7 -6
- package/esm2020/toolbar/toolbar-combobox.directive.mjs +5 -2
- package/esm2020/toolbar/toolbar-focusable.directive.mjs +5 -2
- package/esm2020/toolbar/toolbar.component.mjs +12 -10
- package/fesm2015/progress-kendo-angular-pdfviewer.mjs +299 -314
- package/fesm2020/progress-kendo-angular-pdfviewer.mjs +299 -314
- package/index.d.ts +1 -0
- package/loader/loader.component.d.ts +1 -1
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/localized-messages.directive.d.ts +1 -1
- package/package.json +12 -12
- package/pdfviewer.component.d.ts +1 -1
- package/pdfviewer.module.d.ts +2 -17
- package/schematics/ngAdd/index.js +2 -2
- package/toolbar/input-wrapper.component.d.ts +1 -1
- package/toolbar/search.component.d.ts +1 -1
- package/toolbar/toolbar-combobox.directive.d.ts +1 -1
- package/toolbar/toolbar-focusable.directive.d.ts +1 -1
- package/toolbar/toolbar.component.d.ts +1 -1
package/directives.d.ts
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
5
|
+
import { PDFViewerCustomMessagesComponent } from "./localization/custom-messages.component";
|
6
|
+
import { PDFViewerComponent } from "./pdfviewer.component";
|
7
|
+
/**
|
8
|
+
* Utility array that contains all `@progress/kendo-angular-pdfviewer` related components and directives
|
9
|
+
*/
|
10
|
+
export declare const KENDO_PDFVIEWER: readonly [typeof PDFViewerComponent, typeof PDFViewerCustomMessagesComponent];
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
5
|
+
import { PDFViewerCustomMessagesComponent } from "./localization/custom-messages.component";
|
6
|
+
import { PDFViewerComponent } from "./pdfviewer.component";
|
7
|
+
/**
|
8
|
+
* Utility array that contains all `@progress/kendo-angular-pdfviewer` related components and directives
|
9
|
+
*/
|
10
|
+
export const KENDO_PDFVIEWER = [
|
11
|
+
PDFViewerComponent,
|
12
|
+
PDFViewerCustomMessagesComponent
|
13
|
+
];
|
package/esm2020/index.mjs
CHANGED
@@ -14,3 +14,4 @@ export { LocalizedPDFViewerMessagesDirective } from './localization/localized-me
|
|
14
14
|
export { ToolbarFocusableDirective } from './toolbar/toolbar-focusable.directive';
|
15
15
|
export { ToolbarInputWrapperComponent } from './toolbar/input-wrapper.component';
|
16
16
|
export { ToolbarComboBoxDirective } from './toolbar/toolbar-combobox.directive';
|
17
|
+
export * from './directives';
|
@@ -3,8 +3,8 @@
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { Component, HostBinding, Input } from '@angular/core';
|
6
|
+
import { LoaderComponent as LoaderIndicatorComponent } from '@progress/kendo-angular-indicators';
|
6
7
|
import * as i0 from "@angular/core";
|
7
|
-
import * as i1 from "@progress/kendo-angular-indicators";
|
8
8
|
/**
|
9
9
|
* @hidden
|
10
10
|
*/
|
@@ -16,7 +16,7 @@ export class LoaderComponent {
|
|
16
16
|
}
|
17
17
|
}
|
18
18
|
LoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
19
|
-
LoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: LoaderComponent, selector: "[kendoPDFViewerLoader]", 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: `
|
19
|
+
LoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: LoaderComponent, isStandalone: true, selector: "[kendoPDFViewerLoader]", 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
20
|
<div class="k-loader-container-overlay k-overlay-light"></div>
|
21
21
|
<div class="k-loader-container-inner">
|
22
22
|
<kendo-loader
|
@@ -24,7 +24,7 @@ LoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
24
24
|
[type]="settings?.type"
|
25
25
|
[themeColor]="settings?.themeColor"></kendo-loader>
|
26
26
|
</div>
|
27
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
27
|
+
`, isInline: true, dependencies: [{ kind: "component", type: LoaderIndicatorComponent, selector: "kendo-loader", inputs: ["type", "themeColor", "size"] }] });
|
28
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LoaderComponent, decorators: [{
|
29
29
|
type: Component,
|
30
30
|
args: [{
|
@@ -37,7 +37,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
37
37
|
[type]="settings?.type"
|
38
38
|
[themeColor]="settings?.themeColor"></kendo-loader>
|
39
39
|
</div>
|
40
|
-
|
40
|
+
`,
|
41
|
+
standalone: true,
|
42
|
+
imports: [LoaderIndicatorComponent]
|
41
43
|
}]
|
42
44
|
}], propDecorators: { settings: [{
|
43
45
|
type: Input
|
@@ -20,7 +20,7 @@ export class PDFViewerCustomMessagesComponent extends Messages {
|
|
20
20
|
}
|
21
21
|
}
|
22
22
|
PDFViewerCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFViewerCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
23
|
-
PDFViewerCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PDFViewerCustomMessagesComponent, selector: "kendo-pdfviewer-messages", providers: [{
|
23
|
+
PDFViewerCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PDFViewerCustomMessagesComponent, isStandalone: true, selector: "kendo-pdfviewer-messages", providers: [{
|
24
24
|
provide: Messages,
|
25
25
|
useExisting: forwardRef(() => PDFViewerCustomMessagesComponent)
|
26
26
|
}], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
@@ -32,6 +32,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
32
32
|
useExisting: forwardRef(() => PDFViewerCustomMessagesComponent)
|
33
33
|
}],
|
34
34
|
selector: 'kendo-pdfviewer-messages',
|
35
|
-
template:
|
35
|
+
template: ``,
|
36
|
+
standalone: true
|
36
37
|
}]
|
37
38
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
@@ -17,7 +17,7 @@ export class LocalizedPDFViewerMessagesDirective extends Messages {
|
|
17
17
|
}
|
18
18
|
}
|
19
19
|
LocalizedPDFViewerMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedPDFViewerMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
20
|
-
LocalizedPDFViewerMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedPDFViewerMessagesDirective, selector: "[kendoPDFViewerLocalizedMessages]", providers: [
|
20
|
+
LocalizedPDFViewerMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedPDFViewerMessagesDirective, isStandalone: true, selector: "[kendoPDFViewerLocalizedMessages]", providers: [
|
21
21
|
{
|
22
22
|
provide: Messages,
|
23
23
|
useExisting: forwardRef(() => LocalizedPDFViewerMessagesDirective)
|
@@ -32,6 +32,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
32
32
|
useExisting: forwardRef(() => LocalizedPDFViewerMessagesDirective)
|
33
33
|
}
|
34
34
|
],
|
35
|
-
selector: '[kendoPDFViewerLocalizedMessages]'
|
35
|
+
selector: '[kendoPDFViewerLocalizedMessages]',
|
36
|
+
standalone: true
|
36
37
|
}]
|
37
38
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
9
9
|
name: '@progress/kendo-angular-pdfviewer',
|
10
10
|
productName: 'Kendo UI for Angular',
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
12
|
-
publishDate:
|
13
|
-
version: '16.
|
12
|
+
publishDate: 1721828055,
|
13
|
+
version: '16.6.0-develop.1',
|
14
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
15
|
};
|
@@ -7,20 +7,19 @@ import { validatePackage } from '@progress/kendo-licensing';
|
|
7
7
|
import { packageMetadata } from './package-metadata';
|
8
8
|
import { INITIAL_ZOOM_LEVEL, zoomOptionsData } from './util';
|
9
9
|
import { scrollToPage, Scroller, SearchService, goToNextSearchMatch, goToPreviousSearchMatch, calculateZoomLevel, removeChildren, print, loadPDF, reloadDocument, currentPage } from '@progress/kendo-pdfviewer-common';
|
10
|
-
import { hasObservers, shouldShowValidationUI } from '@progress/kendo-angular-common';
|
10
|
+
import { hasObservers, shouldShowValidationUI, WatermarkOverlayComponent } from '@progress/kendo-angular-common';
|
11
11
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
12
12
|
import { PDFViewerDownloadEvent } from './models/events';
|
13
13
|
import { saveAs } from '@progress/kendo-file-saver';
|
14
14
|
import { Subscription } from 'rxjs';
|
15
|
+
import { ToolbarComponent } from './toolbar/toolbar.component';
|
16
|
+
import { PDFViewerSearchComponent } from './toolbar/search.component';
|
17
|
+
import { LoaderComponent } from './loader/loader.component';
|
18
|
+
import { NgIf } from '@angular/common';
|
19
|
+
import { LocalizedPDFViewerMessagesDirective } from './localization/localized-messages.directive';
|
15
20
|
import 'pdfjs-dist/build/pdf.worker.entry';
|
16
21
|
import * as i0 from "@angular/core";
|
17
22
|
import * as i1 from "@progress/kendo-angular-l10n";
|
18
|
-
import * as i2 from "@angular/common";
|
19
|
-
import * as i3 from "@progress/kendo-angular-common";
|
20
|
-
import * as i4 from "./toolbar/toolbar.component";
|
21
|
-
import * as i5 from "./loader/loader.component";
|
22
|
-
import * as i6 from "./localization/localized-messages.directive";
|
23
|
-
import * as i7 from "./toolbar/search.component";
|
24
23
|
let counter = 0;
|
25
24
|
/**
|
26
25
|
* Represents the [Kendo UI PDFViewer component for Angular]({% slug overview_pdfviewer %}).
|
@@ -482,7 +481,7 @@ export class PDFViewerComponent {
|
|
482
481
|
}
|
483
482
|
}
|
484
483
|
PDFViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFViewerComponent, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
485
|
-
PDFViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PDFViewerComponent, selector: "kendo-pdfviewer", inputs: { tools: "tools", loaderSettings: "loaderSettings", saveFileName: "saveFileName", saveOptions: "saveOptions", url: "url", data: "data", arrayBuffer: "arrayBuffer", typedArray: "typedArray", zoom: "zoom", zoomRate: "zoomRate", minZoom: "minZoom", maxZoom: "maxZoom" }, outputs: { load: "load", error: "error", download: "download", pageChange: "pageChange", zoomLevelChange: "zoomLevelChange" }, host: { properties: { "class.k-pdf-viewer": "this.hostClass", "attr.dir": "this.direction" } }, providers: [
|
484
|
+
PDFViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PDFViewerComponent, isStandalone: true, selector: "kendo-pdfviewer", inputs: { tools: "tools", loaderSettings: "loaderSettings", saveFileName: "saveFileName", saveOptions: "saveOptions", url: "url", data: "data", arrayBuffer: "arrayBuffer", typedArray: "typedArray", zoom: "zoom", zoomRate: "zoomRate", minZoom: "minZoom", maxZoom: "maxZoom" }, outputs: { load: "load", error: "error", download: "download", pageChange: "pageChange", zoomLevelChange: "zoomLevelChange" }, host: { properties: { "class.k-pdf-viewer": "this.hostClass", "attr.dir": "this.direction" } }, providers: [
|
486
485
|
LocalizationService,
|
487
486
|
{
|
488
487
|
provide: L10N_PREFIX,
|
@@ -621,7 +620,7 @@ PDFViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
621
620
|
</div>
|
622
621
|
|
623
622
|
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
624
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
623
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedPDFViewerMessagesDirective, selector: "[kendoPDFViewerLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"], outputs: ["fileSelect", "fileSelectStart", "fileSelectError", "download", "selectionEnabled", "panningEnabled", "pageChange", "zoomIn", "zoomOut", "zoomLevelChange", "print", "search"] }, { kind: "component", type: PDFViewerSearchComponent, selector: "[kendoPDFViewerSearch]", inputs: ["matches", "currentMatch"], outputs: ["searchChange", "prevMatch", "nextMatch", "close"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }] });
|
625
624
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFViewerComponent, decorators: [{
|
626
625
|
type: Component,
|
627
626
|
args: [{
|
@@ -768,6 +767,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
768
767
|
|
769
768
|
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
770
769
|
`,
|
770
|
+
standalone: true,
|
771
|
+
imports: [LocalizedPDFViewerMessagesDirective, NgIf, LoaderComponent, ToolbarComponent, PDFViewerSearchComponent, WatermarkOverlayComponent]
|
771
772
|
}]
|
772
773
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { hostClass: [{
|
773
774
|
type: HostBinding,
|
@@ -3,45 +3,14 @@
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { NgModule } from '@angular/core';
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import { ToolbarComponent } from './toolbar/toolbar.component';
|
11
|
-
import { IconsModule } from '@progress/kendo-angular-icons';
|
12
|
-
import { ComboBoxModule } from '@progress/kendo-angular-dropdowns';
|
13
|
-
import { LoaderModule } from '@progress/kendo-angular-indicators';
|
14
|
-
import { LoaderComponent } from './loader/loader.component';
|
15
|
-
import { PDFViewerCustomMessagesComponent } from './localization/custom-messages.component';
|
16
|
-
import { LocalizedPDFViewerMessagesDirective } from './localization/localized-messages.directive';
|
17
|
-
import { ToolbarInputWrapperComponent } from './toolbar/input-wrapper.component';
|
18
|
-
import { ToolbarFocusableDirective } from './toolbar/toolbar-focusable.directive';
|
19
|
-
import { ToolbarComboBoxDirective } from './toolbar/toolbar-combobox.directive';
|
20
|
-
import { PDFViewerSearchComponent } from './toolbar/search.component';
|
21
|
-
import { TextBoxModule } from '@progress/kendo-angular-inputs';
|
22
|
-
import { WatermarkModule } from '@progress/kendo-angular-common';
|
6
|
+
import { KENDO_PDFVIEWER } from './directives';
|
7
|
+
import { IconsService } from '@progress/kendo-angular-icons';
|
8
|
+
import { ResizeBatchService } from '@progress/kendo-angular-common';
|
9
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
23
10
|
import * as i0 from "@angular/core";
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
LoaderComponent,
|
28
|
-
PDFViewerCustomMessagesComponent,
|
29
|
-
LocalizedPDFViewerMessagesDirective,
|
30
|
-
ToolbarInputWrapperComponent,
|
31
|
-
ToolbarFocusableDirective,
|
32
|
-
ToolbarComboBoxDirective,
|
33
|
-
PDFViewerSearchComponent
|
34
|
-
];
|
35
|
-
const IMPORTS = [
|
36
|
-
CommonModule,
|
37
|
-
IconsModule,
|
38
|
-
PagerModule,
|
39
|
-
ButtonsModule,
|
40
|
-
TextBoxModule,
|
41
|
-
ComboBoxModule,
|
42
|
-
LoaderModule,
|
43
|
-
WatermarkModule
|
44
|
-
];
|
11
|
+
import * as i1 from "./pdfviewer.component";
|
12
|
+
import * as i2 from "./localization/custom-messages.component";
|
13
|
+
// IMPORTANT: NgModule export kept for backwards compatibility
|
45
14
|
/**
|
46
15
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
47
16
|
* definition for the PDFViewer component.
|
@@ -49,36 +18,21 @@ const IMPORTS = [
|
|
49
18
|
export class PDFViewerModule {
|
50
19
|
}
|
51
20
|
PDFViewerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
52
|
-
PDFViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PDFViewerModule,
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
ToolbarFocusableDirective,
|
59
|
-
ToolbarComboBoxDirective,
|
60
|
-
PDFViewerSearchComponent], imports: [CommonModule,
|
61
|
-
IconsModule,
|
62
|
-
PagerModule,
|
63
|
-
ButtonsModule,
|
64
|
-
TextBoxModule,
|
65
|
-
ComboBoxModule,
|
66
|
-
LoaderModule,
|
67
|
-
WatermarkModule], exports: [PDFViewerComponent,
|
68
|
-
ToolbarComponent,
|
69
|
-
LoaderComponent,
|
70
|
-
PDFViewerCustomMessagesComponent,
|
71
|
-
LocalizedPDFViewerMessagesDirective,
|
72
|
-
ToolbarInputWrapperComponent,
|
73
|
-
ToolbarFocusableDirective,
|
74
|
-
ToolbarComboBoxDirective,
|
75
|
-
PDFViewerSearchComponent] });
|
76
|
-
PDFViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFViewerModule, imports: [IMPORTS] });
|
21
|
+
PDFViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PDFViewerModule, imports: [i1.PDFViewerComponent, i2.PDFViewerCustomMessagesComponent], exports: [i1.PDFViewerComponent, i2.PDFViewerCustomMessagesComponent] });
|
22
|
+
PDFViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFViewerModule, providers: [
|
23
|
+
IconsService,
|
24
|
+
PopupService,
|
25
|
+
ResizeBatchService
|
26
|
+
], imports: [KENDO_PDFVIEWER] });
|
77
27
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFViewerModule, decorators: [{
|
78
28
|
type: NgModule,
|
79
29
|
args: [{
|
80
|
-
|
81
|
-
|
82
|
-
|
30
|
+
exports: [...KENDO_PDFVIEWER],
|
31
|
+
imports: [...KENDO_PDFVIEWER],
|
32
|
+
providers: [
|
33
|
+
IconsService,
|
34
|
+
PopupService,
|
35
|
+
ResizeBatchService
|
36
|
+
]
|
83
37
|
}]
|
84
38
|
}] });
|
@@ -43,7 +43,7 @@ export class ToolbarInputWrapperComponent {
|
|
43
43
|
}
|
44
44
|
}
|
45
45
|
ToolbarInputWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarInputWrapperComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
46
|
-
ToolbarInputWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarInputWrapperComponent, selector: "kendo-toolbar-input-wrapper", inputs: { toolbarTool: "toolbarTool" }, host: { properties: { "class.k-toolbar-item": "this.hostClass" } }, ngImport: i0, template: `
|
46
|
+
ToolbarInputWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarInputWrapperComponent, isStandalone: true, selector: "kendo-toolbar-input-wrapper", inputs: { toolbarTool: "toolbarTool" }, host: { properties: { "class.k-toolbar-item": "this.hostClass" } }, ngImport: i0, template: `
|
47
47
|
<ng-content></ng-content>
|
48
48
|
`, isInline: true });
|
49
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarInputWrapperComponent, decorators: [{
|
@@ -52,7 +52,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
52
52
|
selector: 'kendo-toolbar-input-wrapper',
|
53
53
|
template: `
|
54
54
|
<ng-content></ng-content>
|
55
|
-
|
55
|
+
`,
|
56
|
+
standalone: true
|
56
57
|
}]
|
57
58
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { toolbarTool: [{
|
58
59
|
type: Input
|
@@ -3,13 +3,12 @@
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { Component, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, ViewChild } from '@angular/core';
|
6
|
-
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
6
|
+
import { TextBoxComponent, TextBoxSuffixTemplateDirective } from '@progress/kendo-angular-inputs';
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
8
8
|
import { arrowDownIcon, arrowUpIcon, convertLowercaseIcon, xIcon } from '@progress/kendo-svg-icons';
|
9
|
+
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
9
10
|
import * as i0 from "@angular/core";
|
10
11
|
import * as i1 from "@progress/kendo-angular-l10n";
|
11
|
-
import * as i2 from "@progress/kendo-angular-buttons";
|
12
|
-
import * as i3 from "@progress/kendo-angular-inputs";
|
13
12
|
/**
|
14
13
|
* @hidden
|
15
14
|
*/
|
@@ -45,7 +44,7 @@ export class PDFViewerSearchComponent {
|
|
45
44
|
}
|
46
45
|
}
|
47
46
|
PDFViewerSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFViewerSearchComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
48
|
-
PDFViewerSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PDFViewerSearchComponent, selector: "[kendoPDFViewerSearch]", inputs: { matches: "matches", currentMatch: "currentMatch" }, outputs: { searchChange: "searchChange", prevMatch: "prevMatch", nextMatch: "nextMatch", close: "close" }, host: { listeners: { "keydown.escape": "onEscape()" }, properties: { "attr.role": "this.ariaRole" } }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }, { propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
47
|
+
PDFViewerSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PDFViewerSearchComponent, isStandalone: true, selector: "[kendoPDFViewerSearch]", inputs: { matches: "matches", currentMatch: "currentMatch" }, outputs: { searchChange: "searchChange", prevMatch: "prevMatch", nextMatch: "nextMatch", close: "close" }, host: { listeners: { "keydown.escape": "onEscape()" }, properties: { "attr.role": "this.ariaRole" } }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }, { propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
49
48
|
<kendo-textbox
|
50
49
|
#textbox
|
51
50
|
[placeholder]="messageFor('searchInputPlaceholder')"
|
@@ -95,7 +94,7 @@ PDFViewerSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0
|
|
95
94
|
(keydown.tab)="$event.preventDefault(); textbox.focus();"
|
96
95
|
icon='x'
|
97
96
|
[svgIcon]="xIcon"></button>
|
98
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
97
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "directive", type: TextBoxSuffixTemplateDirective, selector: "[kendoTextBoxSuffixTemplate]", inputs: ["showSeparator"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
99
98
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFViewerSearchComponent, decorators: [{
|
100
99
|
type: Component,
|
101
100
|
args: [{
|
@@ -150,7 +149,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
150
149
|
(keydown.tab)="$event.preventDefault(); textbox.focus();"
|
151
150
|
icon='x'
|
152
151
|
[svgIcon]="xIcon"></button>
|
153
|
-
|
152
|
+
`,
|
153
|
+
standalone: true,
|
154
|
+
imports: [TextBoxComponent, TextBoxSuffixTemplateDirective, ButtonComponent]
|
154
155
|
}]
|
155
156
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { textbox: [{
|
156
157
|
type: ViewChild,
|
@@ -36,8 +36,11 @@ export class ToolbarComboBoxDirective {
|
|
36
36
|
}
|
37
37
|
}
|
38
38
|
ToolbarComboBoxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarComboBoxDirective, deps: [{ token: i1.ComboBoxComponent }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
39
|
-
ToolbarComboBoxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarComboBoxDirective, selector: "[kendoPDFViewerComboBox]", ngImport: i0 });
|
39
|
+
ToolbarComboBoxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarComboBoxDirective, isStandalone: true, selector: "[kendoPDFViewerComboBox]", ngImport: i0 });
|
40
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarComboBoxDirective, decorators: [{
|
41
41
|
type: Directive,
|
42
|
-
args: [{
|
42
|
+
args: [{
|
43
|
+
selector: '[kendoPDFViewerComboBox]',
|
44
|
+
standalone: true
|
45
|
+
}]
|
43
46
|
}], ctorParameters: function () { return [{ type: i1.ComboBoxComponent }, { type: i0.ElementRef }]; } });
|
@@ -56,8 +56,11 @@ export class ToolbarFocusableDirective {
|
|
56
56
|
}
|
57
57
|
}
|
58
58
|
ToolbarFocusableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarFocusableDirective, deps: [{ token: i0.ElementRef }, { token: i1.ToolbarNavigationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
59
|
-
ToolbarFocusableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarFocusableDirective, selector: "[kendoPDFViewerToolbarFocusable]", ngImport: i0 });
|
59
|
+
ToolbarFocusableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarFocusableDirective, isStandalone: true, selector: "[kendoPDFViewerToolbarFocusable]", ngImport: i0 });
|
60
60
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarFocusableDirective, decorators: [{
|
61
61
|
type: Directive,
|
62
|
-
args: [{
|
62
|
+
args: [{
|
63
|
+
selector: '[kendoPDFViewerToolbarFocusable]',
|
64
|
+
standalone: true
|
65
|
+
}]
|
63
66
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.ToolbarNavigationService }, { type: i0.Renderer2 }]; } });
|
@@ -5,18 +5,18 @@
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
6
6
|
import { Component, ElementRef, EventEmitter, HostBinding, Input, Output, ViewChild } from '@angular/core';
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
8
|
+
import { PagerComponent, CustomMessagesComponent } from '@progress/kendo-angular-pager';
|
8
9
|
import { searchIcon, zoomInIcon, zoomOutIcon, pointerIcon, handIcon, folderOpenIcon, downloadIcon, printIcon } from '@progress/kendo-svg-icons';
|
9
10
|
import { ToolbarNavigationService } from './toolbar-navigation.service';
|
11
|
+
import { ComboBoxComponent, ItemTemplateDirective } from '@progress/kendo-angular-dropdowns';
|
12
|
+
import { ToolbarComboBoxDirective } from './toolbar-combobox.directive';
|
13
|
+
import { ButtonComponent, ButtonGroupComponent } from '@progress/kendo-angular-buttons';
|
14
|
+
import { ToolbarFocusableDirective } from './toolbar-focusable.directive';
|
15
|
+
import { ToolbarInputWrapperComponent } from './input-wrapper.component';
|
16
|
+
import { NgFor, NgSwitch, NgSwitchCase, NgIf } from '@angular/common';
|
10
17
|
import * as i0 from "@angular/core";
|
11
18
|
import * as i1 from "@progress/kendo-angular-l10n";
|
12
19
|
import * as i2 from "./toolbar-navigation.service";
|
13
|
-
import * as i3 from "@angular/common";
|
14
|
-
import * as i4 from "@progress/kendo-angular-pager";
|
15
|
-
import * as i5 from "@progress/kendo-angular-buttons";
|
16
|
-
import * as i6 from "@progress/kendo-angular-dropdowns";
|
17
|
-
import * as i7 from "./input-wrapper.component";
|
18
|
-
import * as i8 from "./toolbar-focusable.directive";
|
19
|
-
import * as i9 from "./toolbar-combobox.directive";
|
20
20
|
/**
|
21
21
|
* @hidden
|
22
22
|
*/
|
@@ -86,7 +86,7 @@ export class ToolbarComponent {
|
|
86
86
|
}
|
87
87
|
}
|
88
88
|
ToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarComponent, deps: [{ token: i1.LocalizationService }, { token: i2.ToolbarNavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
89
|
-
ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarComponent, 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" }, 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" }, host: { properties: { "class.k-toolbar": "this.toolbarClass", "class.k-toolbar-md": "this.toolbarSizeClass" } }, providers: [ToolbarNavigationService], viewQueries: [{ propertyName: "fileSelectEl", first: true, predicate: ["fileSelectEl"], descendants: true }], ngImport: i0, template: `
|
89
|
+
ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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" }, 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" }, host: { properties: { "class.k-toolbar": "this.toolbarClass", "class.k-toolbar-md": "this.toolbarSizeClass" } }, providers: [ToolbarNavigationService], viewQueries: [{ propertyName: "fileSelectEl", first: true, predicate: ["fileSelectEl"], descendants: true }], ngImport: i0, template: `
|
90
90
|
<ng-container *ngFor="let tool of tools">
|
91
91
|
<ng-container [ngSwitch]="tool">
|
92
92
|
<kendo-toolbar-input-wrapper
|
@@ -250,7 +250,7 @@ ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
250
250
|
aria-hidden="true"
|
251
251
|
accept=".pdf, .PDF"
|
252
252
|
(change)="onFileSelect($event)" />
|
253
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
253
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: ToolbarInputWrapperComponent, selector: "kendo-toolbar-input-wrapper", inputs: ["toolbarTool"] }, { kind: "directive", type: ToolbarFocusableDirective, selector: "[kendoPDFViewerToolbarFocusable]" }, { kind: "component", type: PagerComponent, selector: "kendo-datapager", inputs: ["total", "skip", "pageSize", "buttonCount", "info", "type", "pageSizeValues", "previousNext", "navigable", "size"], outputs: ["pageChange", "pageSizeChange"], exportAs: ["kendoDataPager"] }, { kind: "component", type: CustomMessagesComponent, selector: "kendo-datapager-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], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "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", "title", "subtitle", "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]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
254
254
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarComponent, decorators: [{
|
255
255
|
type: Component,
|
256
256
|
args: [{
|
@@ -420,7 +420,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
420
420
|
aria-hidden="true"
|
421
421
|
accept=".pdf, .PDF"
|
422
422
|
(change)="onFileSelect($event)" />
|
423
|
-
|
423
|
+
`,
|
424
|
+
standalone: true,
|
425
|
+
imports: [NgFor, NgSwitch, NgSwitchCase, ToolbarInputWrapperComponent, ToolbarFocusableDirective, PagerComponent, CustomMessagesComponent, ButtonGroupComponent, ButtonComponent, ComboBoxComponent, ToolbarComboBoxDirective, ItemTemplateDirective, NgIf]
|
424
426
|
}]
|
425
427
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.ToolbarNavigationService }]; }, propDecorators: { toolbarClass: [{
|
426
428
|
type: HostBinding,
|