@progress/kendo-angular-pdfviewer 21.4.1-develop.1 → 22.0.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/fesm2022/progress-kendo-angular-pdfviewer.mjs +43 -43
- package/localization/messages.d.ts +1 -1
- package/package.json +18 -26
- package/schematics/ngAdd/index.js +2 -2
- package/esm2022/annotations/annotation-editor.mjs +0 -198
- package/esm2022/directives.mjs +0 -27
- package/esm2022/index.mjs +0 -17
- package/esm2022/loader/loader.component.mjs +0 -54
- package/esm2022/localization/custom-messages.component.mjs +0 -51
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -249
- package/esm2022/models/annotation-editor.type.mjs +0 -13
- package/esm2022/models/events.mjs +0 -31
- package/esm2022/models/loader-settings.mjs +0 -5
- package/esm2022/models/pdfviewer-context.mjs +0 -5
- package/esm2022/models/toolbar-tool.mjs +0 -5
- package/esm2022/models/zoom-level.mjs +0 -5
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pdfviewer.component.mjs +0 -1152
- package/esm2022/pdfviewer.module.mjs +0 -52
- package/esm2022/progress-kendo-angular-pdfviewer.mjs +0 -8
- package/esm2022/toolbar/input-wrapper.component.mjs +0 -66
- package/esm2022/toolbar/search.component.mjs +0 -191
- package/esm2022/toolbar/toolbar-combobox.directive.mjs +0 -49
- package/esm2022/toolbar/toolbar-focusable.directive.mjs +0 -70
- package/esm2022/toolbar/toolbar-navigation.service.mjs +0 -53
- package/esm2022/toolbar/toolbar.component.mjs +0 -737
- package/esm2022/util.mjs +0 -83
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { Input, Directive, forwardRef, Component, Injectable, HostBinding, EventEmitter, Output, ViewChild, ElementRef, HostListener, isDevMode, ViewContainerRef, NgModule } from '@angular/core';
|
|
7
7
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
@@ -183,10 +183,10 @@ class Messages extends ComponentMessages {
|
|
|
183
183
|
* Sets the label for the PDF viewer canvas container.
|
|
184
184
|
*/
|
|
185
185
|
canvasLabel;
|
|
186
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
187
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
186
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
187
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: Messages, isStandalone: true, 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", annotationsTitle: "annotationsTitle", annotationEditorTitle: "annotationEditorTitle", deleteAnnotationTitle: "deleteAnnotationTitle", highlightAnnotationTitle: "highlightAnnotationTitle", freeTextAnnotationTitle: "freeTextAnnotationTitle", closeAnnotationsToolbarTitle: "closeAnnotationsToolbarTitle", deleteAnnotationConfirmationDialogTitle: "deleteAnnotationConfirmationDialogTitle", deleteAnnotationConfirmationDialogContent: "deleteAnnotationConfirmationDialogContent", deleteAnnotationConfirmationDialogConfirmText: "deleteAnnotationConfirmationDialogConfirmText", deleteAnnotationConfirmationDialogRejectText: "deleteAnnotationConfirmationDialogRejectText", annotationEditorFontSizeTitle: "annotationEditorFontSizeTitle", annotationEditorColorTitle: "annotationEditorColorTitle", canvasLabel: "canvasLabel" }, usesInheritance: true, ngImport: i0 });
|
|
188
188
|
}
|
|
189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: Messages, decorators: [{
|
|
190
190
|
type: Directive,
|
|
191
191
|
args: [{
|
|
192
192
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -294,13 +294,13 @@ class PDFViewerCustomMessagesComponent extends Messages {
|
|
|
294
294
|
get override() {
|
|
295
295
|
return true;
|
|
296
296
|
}
|
|
297
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
298
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
297
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PDFViewerCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
298
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: PDFViewerCustomMessagesComponent, isStandalone: true, selector: "kendo-pdfviewer-messages", providers: [{
|
|
299
299
|
provide: Messages,
|
|
300
300
|
useExisting: forwardRef(() => PDFViewerCustomMessagesComponent)
|
|
301
301
|
}], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
302
302
|
}
|
|
303
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PDFViewerCustomMessagesComponent, decorators: [{
|
|
304
304
|
type: Component,
|
|
305
305
|
args: [{
|
|
306
306
|
providers: [{
|
|
@@ -321,8 +321,8 @@ const packageMetadata = {
|
|
|
321
321
|
productName: 'Kendo UI for Angular',
|
|
322
322
|
productCode: 'KENDOUIANGULAR',
|
|
323
323
|
productCodes: ['KENDOUIANGULAR'],
|
|
324
|
-
publishDate:
|
|
325
|
-
version: '
|
|
324
|
+
publishDate: 1768396045,
|
|
325
|
+
version: '22.0.0-develop.1',
|
|
326
326
|
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',
|
|
327
327
|
};
|
|
328
328
|
|
|
@@ -472,10 +472,10 @@ class ToolbarNavigationService {
|
|
|
472
472
|
}
|
|
473
473
|
this.focusableTools[this.currentFocusIndex].activate();
|
|
474
474
|
}
|
|
475
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
476
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
475
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToolbarNavigationService, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
476
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToolbarNavigationService });
|
|
477
477
|
}
|
|
478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToolbarNavigationService, decorators: [{
|
|
479
479
|
type: Injectable
|
|
480
480
|
}], ctorParameters: () => [{ type: i1.LocalizationService }] });
|
|
481
481
|
|
|
@@ -509,10 +509,10 @@ class ToolbarComboBoxDirective {
|
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
};
|
|
512
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
513
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
512
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToolbarComboBoxDirective, deps: [{ token: i1$1.ComboBoxComponent }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
513
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: ToolbarComboBoxDirective, isStandalone: true, selector: "[kendoPDFViewerComboBox]", ngImport: i0 });
|
|
514
514
|
}
|
|
515
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToolbarComboBoxDirective, decorators: [{
|
|
516
516
|
type: Directive,
|
|
517
517
|
args: [{
|
|
518
518
|
selector: '[kendoPDFViewerComboBox]',
|
|
@@ -571,10 +571,10 @@ class ToolbarFocusableDirective {
|
|
|
571
571
|
this.renderer.setAttribute(element, 'tabindex', '0');
|
|
572
572
|
element.focus();
|
|
573
573
|
}
|
|
574
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
575
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
574
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToolbarFocusableDirective, deps: [{ token: i0.ElementRef }, { token: ToolbarNavigationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
575
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: ToolbarFocusableDirective, isStandalone: true, selector: "[kendoPDFViewerToolbarFocusable]", ngImport: i0 });
|
|
576
576
|
}
|
|
577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToolbarFocusableDirective, decorators: [{
|
|
578
578
|
type: Directive,
|
|
579
579
|
args: [{
|
|
580
580
|
selector: '[kendoPDFViewerToolbarFocusable]',
|
|
@@ -620,12 +620,12 @@ class ToolbarInputWrapperComponent {
|
|
|
620
620
|
ngOnDestroy() {
|
|
621
621
|
this.subs.unsubscribe();
|
|
622
622
|
}
|
|
623
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
624
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
623
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToolbarInputWrapperComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
624
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: ToolbarInputWrapperComponent, isStandalone: true, selector: "kendo-toolbar-input-wrapper", inputs: { toolbarTool: "toolbarTool" }, host: { properties: { "class.k-toolbar-item": "this.hostClass" } }, ngImport: i0, template: `
|
|
625
625
|
<ng-content></ng-content>
|
|
626
626
|
`, isInline: true });
|
|
627
627
|
}
|
|
628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToolbarInputWrapperComponent, decorators: [{
|
|
629
629
|
type: Component,
|
|
630
630
|
args: [{
|
|
631
631
|
selector: 'kendo-toolbar-input-wrapper',
|
|
@@ -751,8 +751,8 @@ class ToolbarComponent {
|
|
|
751
751
|
text: `${Math.round(newValue * 100)}%`
|
|
752
752
|
};
|
|
753
753
|
}));
|
|
754
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
755
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
754
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToolbarComponent, deps: [{ token: i1.LocalizationService }, { token: ToolbarNavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
755
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", 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: `
|
|
756
756
|
@if (type === 'tools') {
|
|
757
757
|
@for (tool of tools; track tool) {
|
|
758
758
|
@switch (tool) {
|
|
@@ -1015,7 +1015,7 @@ class ToolbarComponent {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
`, 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]" }] });
|
|
1017
1017
|
}
|
|
1018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
1019
1019
|
type: Component,
|
|
1020
1020
|
args: [{
|
|
1021
1021
|
selector: '[kendoPDFViewerToolbar]',
|
|
@@ -1402,8 +1402,8 @@ class PDFViewerSearchComponent {
|
|
|
1402
1402
|
this.closeButton.nativeElement.focus();
|
|
1403
1403
|
}
|
|
1404
1404
|
}
|
|
1405
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1406
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1405
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PDFViewerSearchComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1406
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", 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", "attr.aria-label": "this.ariaLabel" } }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }, { propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
1407
1407
|
<kendo-textbox
|
|
1408
1408
|
#textbox
|
|
1409
1409
|
[placeholder]="messageFor('searchInputPlaceholder')"
|
|
@@ -1455,7 +1455,7 @@ class PDFViewerSearchComponent {
|
|
|
1455
1455
|
[svgIcon]="xIcon"></button>
|
|
1456
1456
|
`, 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]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
1457
1457
|
}
|
|
1458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PDFViewerSearchComponent, decorators: [{
|
|
1459
1459
|
type: Component,
|
|
1460
1460
|
args: [{
|
|
1461
1461
|
selector: '[kendoPDFViewerSearch]',
|
|
@@ -1550,8 +1550,8 @@ class LoaderComponent {
|
|
|
1550
1550
|
loaderContainerClass = true;
|
|
1551
1551
|
loaderContainerSizingClass = true;
|
|
1552
1552
|
loaderPositionClass = true;
|
|
1553
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1554
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1553
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1554
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", 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: `
|
|
1555
1555
|
<div class="k-loader-container-overlay k-overlay-light"></div>
|
|
1556
1556
|
<div class="k-loader-container-inner">
|
|
1557
1557
|
<kendo-loader
|
|
@@ -1561,7 +1561,7 @@ class LoaderComponent {
|
|
|
1561
1561
|
</div>
|
|
1562
1562
|
`, isInline: true, dependencies: [{ kind: "component", type: LoaderComponent$1, selector: "kendo-loader", inputs: ["type", "themeColor", "size"] }] });
|
|
1563
1563
|
}
|
|
1564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LoaderComponent, decorators: [{
|
|
1565
1565
|
type: Component,
|
|
1566
1566
|
args: [{
|
|
1567
1567
|
selector: '[kendoPDFViewerLoader]',
|
|
@@ -1599,15 +1599,15 @@ class LocalizedPDFViewerMessagesDirective extends Messages {
|
|
|
1599
1599
|
super();
|
|
1600
1600
|
this.service = service;
|
|
1601
1601
|
}
|
|
1602
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1603
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1602
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LocalizedPDFViewerMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1603
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: LocalizedPDFViewerMessagesDirective, isStandalone: true, selector: "[kendoPDFViewerLocalizedMessages]", providers: [
|
|
1604
1604
|
{
|
|
1605
1605
|
provide: Messages,
|
|
1606
1606
|
useExisting: forwardRef(() => LocalizedPDFViewerMessagesDirective)
|
|
1607
1607
|
}
|
|
1608
1608
|
], usesInheritance: true, ngImport: i0 });
|
|
1609
1609
|
}
|
|
1610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LocalizedPDFViewerMessagesDirective, decorators: [{
|
|
1611
1611
|
type: Directive,
|
|
1612
1612
|
args: [{
|
|
1613
1613
|
providers: [
|
|
@@ -1704,8 +1704,8 @@ class AnnotationPopupToolbarContentComponent {
|
|
|
1704
1704
|
onColorValueChange(value) {
|
|
1705
1705
|
this.pdfViewerWidget[this.annotationEditorType === 'highlight' ? 'setHighlightColor' : 'setFreeTextColor'](value);
|
|
1706
1706
|
}
|
|
1707
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1708
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1707
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AnnotationPopupToolbarContentComponent, deps: [{ token: i1$2.DialogService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1708
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", 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: `
|
|
1709
1709
|
@if (showToolbar) {
|
|
1710
1710
|
<button
|
|
1711
1711
|
kendoButton
|
|
@@ -1750,7 +1750,7 @@ class AnnotationPopupToolbarContentComponent {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
`, 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"] }] });
|
|
1752
1752
|
}
|
|
1753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AnnotationPopupToolbarContentComponent, decorators: [{
|
|
1754
1754
|
type: Component,
|
|
1755
1755
|
args: [{
|
|
1756
1756
|
selector: '[kendoPDFViewerAnnotationPopupToolbar]',
|
|
@@ -2469,8 +2469,8 @@ class PDFViewerComponent {
|
|
|
2469
2469
|
observer.observe(element, { attributeFilter: ['class'] });
|
|
2470
2470
|
return observer;
|
|
2471
2471
|
};
|
|
2472
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2473
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2472
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", 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 });
|
|
2473
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", 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: [
|
|
2474
2474
|
LocalizationService,
|
|
2475
2475
|
{
|
|
2476
2476
|
provide: L10N_PREFIX,
|
|
@@ -2671,7 +2671,7 @@ class PDFViewerComponent {
|
|
|
2671
2671
|
}
|
|
2672
2672
|
`, 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"] }] });
|
|
2673
2673
|
}
|
|
2674
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PDFViewerComponent, decorators: [{
|
|
2675
2675
|
type: Component,
|
|
2676
2676
|
args: [{
|
|
2677
2677
|
exportAs: 'kendo-pdfviewer',
|
|
@@ -2984,15 +2984,15 @@ const KENDO_PDFVIEWER = [
|
|
|
2984
2984
|
* ```
|
|
2985
2985
|
*/
|
|
2986
2986
|
class PDFViewerModule {
|
|
2987
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2988
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2989
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2987
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PDFViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2988
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: PDFViewerModule, imports: [PDFViewerComponent, PDFViewerCustomMessagesComponent], exports: [PDFViewerComponent, PDFViewerCustomMessagesComponent] });
|
|
2989
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PDFViewerModule, providers: [
|
|
2990
2990
|
IconsService,
|
|
2991
2991
|
PopupService,
|
|
2992
2992
|
ResizeBatchService
|
|
2993
2993
|
], imports: [PDFViewerComponent] });
|
|
2994
2994
|
}
|
|
2995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PDFViewerModule, decorators: [{
|
|
2996
2996
|
type: NgModule,
|
|
2997
2997
|
args: [{
|
|
2998
2998
|
exports: [...KENDO_PDFVIEWER],
|
|
@@ -161,5 +161,5 @@ export declare class Messages extends ComponentMessages {
|
|
|
161
161
|
*/
|
|
162
162
|
canvasLabel: string;
|
|
163
163
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
|
|
164
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, "kendo-pdfviewer-messages-base", never, { "zoomInTitle": { "alias": "zoomInTitle"; "required": false; }; "zoomOutTitle": { "alias": "zoomOutTitle"; "required": false; }; "selectionTitle": { "alias": "selectionTitle"; "required": false; }; "panningTitle": { "alias": "panningTitle"; "required": false; }; "searchTitle": { "alias": "searchTitle"; "required": false; }; "openTitle": { "alias": "openTitle"; "required": false; }; "downloadTitle": { "alias": "downloadTitle"; "required": false; }; "printTitle": { "alias": "printTitle"; "required": false; }; "pagerInputLabel": { "alias": "pagerInputLabel"; "required": false; }; "pagerInputTitle": { "alias": "pagerInputTitle"; "required": false; }; "pagerFirstPage": { "alias": "pagerFirstPage"; "required": false; }; "pagerPreviousPage": { "alias": "pagerPreviousPage"; "required": false; }; "pagerNextPage": { "alias": "pagerNextPage"; "required": false; }; "pagerLastPage": { "alias": "pagerLastPage"; "required": false; }; "pagerOf": { "alias": "pagerOf"; "required": false; }; "pagerPage": { "alias": "pagerPage"; "required": false; }; "fitToPage": { "alias": "fitToPage"; "required": false; }; "fitToWidth": { "alias": "fitToWidth"; "required": false; }; "searchInputPlaceholder": { "alias": "searchInputPlaceholder"; "required": false; }; "searchMatchesOf": { "alias": "searchMatchesOf"; "required": false; }; "searchPreviousMatchTitle": { "alias": "searchPreviousMatchTitle"; "required": false; }; "searchNextMatchTitle": { "alias": "searchNextMatchTitle"; "required": false; }; "searchCloseTitle": { "alias": "searchCloseTitle"; "required": false; }; "searchMatchCaseTitle": { "alias": "searchMatchCaseTitle"; "required": false; }; "zoomInputPlaceholder": { "alias": "zoomInputPlaceholder"; "required": false; }; "annotationsTitle": { "alias": "annotationsTitle"; "required": false; }; "annotationEditorTitle": { "alias": "annotationEditorTitle"; "required": false; }; "deleteAnnotationTitle": { "alias": "deleteAnnotationTitle"; "required": false; }; "highlightAnnotationTitle": { "alias": "highlightAnnotationTitle"; "required": false; }; "freeTextAnnotationTitle": { "alias": "freeTextAnnotationTitle"; "required": false; }; "closeAnnotationsToolbarTitle": { "alias": "closeAnnotationsToolbarTitle"; "required": false; }; "deleteAnnotationConfirmationDialogTitle": { "alias": "deleteAnnotationConfirmationDialogTitle"; "required": false; }; "deleteAnnotationConfirmationDialogContent": { "alias": "deleteAnnotationConfirmationDialogContent"; "required": false; }; "deleteAnnotationConfirmationDialogConfirmText": { "alias": "deleteAnnotationConfirmationDialogConfirmText"; "required": false; }; "deleteAnnotationConfirmationDialogRejectText": { "alias": "deleteAnnotationConfirmationDialogRejectText"; "required": false; }; "annotationEditorFontSizeTitle": { "alias": "annotationEditorFontSizeTitle"; "required": false; }; "annotationEditorColorTitle": { "alias": "annotationEditorColorTitle"; "required": false; }; "canvasLabel": { "alias": "canvasLabel"; "required": false; }; }, {}, never, never,
|
|
164
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, "kendo-pdfviewer-messages-base", never, { "zoomInTitle": { "alias": "zoomInTitle"; "required": false; }; "zoomOutTitle": { "alias": "zoomOutTitle"; "required": false; }; "selectionTitle": { "alias": "selectionTitle"; "required": false; }; "panningTitle": { "alias": "panningTitle"; "required": false; }; "searchTitle": { "alias": "searchTitle"; "required": false; }; "openTitle": { "alias": "openTitle"; "required": false; }; "downloadTitle": { "alias": "downloadTitle"; "required": false; }; "printTitle": { "alias": "printTitle"; "required": false; }; "pagerInputLabel": { "alias": "pagerInputLabel"; "required": false; }; "pagerInputTitle": { "alias": "pagerInputTitle"; "required": false; }; "pagerFirstPage": { "alias": "pagerFirstPage"; "required": false; }; "pagerPreviousPage": { "alias": "pagerPreviousPage"; "required": false; }; "pagerNextPage": { "alias": "pagerNextPage"; "required": false; }; "pagerLastPage": { "alias": "pagerLastPage"; "required": false; }; "pagerOf": { "alias": "pagerOf"; "required": false; }; "pagerPage": { "alias": "pagerPage"; "required": false; }; "fitToPage": { "alias": "fitToPage"; "required": false; }; "fitToWidth": { "alias": "fitToWidth"; "required": false; }; "searchInputPlaceholder": { "alias": "searchInputPlaceholder"; "required": false; }; "searchMatchesOf": { "alias": "searchMatchesOf"; "required": false; }; "searchPreviousMatchTitle": { "alias": "searchPreviousMatchTitle"; "required": false; }; "searchNextMatchTitle": { "alias": "searchNextMatchTitle"; "required": false; }; "searchCloseTitle": { "alias": "searchCloseTitle"; "required": false; }; "searchMatchCaseTitle": { "alias": "searchMatchCaseTitle"; "required": false; }; "zoomInputPlaceholder": { "alias": "zoomInputPlaceholder"; "required": false; }; "annotationsTitle": { "alias": "annotationsTitle"; "required": false; }; "annotationEditorTitle": { "alias": "annotationEditorTitle"; "required": false; }; "deleteAnnotationTitle": { "alias": "deleteAnnotationTitle"; "required": false; }; "highlightAnnotationTitle": { "alias": "highlightAnnotationTitle"; "required": false; }; "freeTextAnnotationTitle": { "alias": "freeTextAnnotationTitle"; "required": false; }; "closeAnnotationsToolbarTitle": { "alias": "closeAnnotationsToolbarTitle"; "required": false; }; "deleteAnnotationConfirmationDialogTitle": { "alias": "deleteAnnotationConfirmationDialogTitle"; "required": false; }; "deleteAnnotationConfirmationDialogContent": { "alias": "deleteAnnotationConfirmationDialogContent"; "required": false; }; "deleteAnnotationConfirmationDialogConfirmText": { "alias": "deleteAnnotationConfirmationDialogConfirmText"; "required": false; }; "deleteAnnotationConfirmationDialogRejectText": { "alias": "deleteAnnotationConfirmationDialogRejectText"; "required": false; }; "annotationEditorFontSizeTitle": { "alias": "annotationEditorFontSizeTitle"; "required": false; }; "annotationEditorColorTitle": { "alias": "annotationEditorColorTitle"; "required": false; }; "canvasLabel": { "alias": "canvasLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
165
165
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-pdfviewer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0-develop.1",
|
|
4
4
|
"description": "Kendo UI PDFViewer for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -15,36 +15,30 @@
|
|
|
15
15
|
"Progress"
|
|
16
16
|
],
|
|
17
17
|
"@progress": {
|
|
18
|
-
"friendlyName": "Pdfviewer"
|
|
19
|
-
"package": {
|
|
20
|
-
"productName": "Kendo UI for Angular",
|
|
21
|
-
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate": 1768386635,
|
|
23
|
-
"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"
|
|
24
|
-
}
|
|
18
|
+
"friendlyName": "Pdfviewer"
|
|
25
19
|
},
|
|
26
20
|
"peerDependencies": {
|
|
27
|
-
"@angular/animations": "
|
|
28
|
-
"@angular/common": "
|
|
29
|
-
"@angular/core": "
|
|
30
|
-
"@angular/platform-browser": "
|
|
21
|
+
"@angular/animations": "19 - 21",
|
|
22
|
+
"@angular/common": "19 - 21",
|
|
23
|
+
"@angular/core": "19 - 21",
|
|
24
|
+
"@angular/platform-browser": "19 - 21",
|
|
31
25
|
"@progress/kendo-licensing": "^1.7.0",
|
|
32
|
-
"@progress/kendo-angular-buttons": "
|
|
33
|
-
"@progress/kendo-angular-common": "
|
|
34
|
-
"@progress/kendo-angular-dialog": "
|
|
35
|
-
"@progress/kendo-angular-dropdowns": "
|
|
36
|
-
"@progress/kendo-angular-inputs": "
|
|
37
|
-
"@progress/kendo-angular-intl": "
|
|
38
|
-
"@progress/kendo-angular-l10n": "
|
|
39
|
-
"@progress/kendo-angular-icons": "
|
|
40
|
-
"@progress/kendo-angular-indicators": "
|
|
41
|
-
"@progress/kendo-angular-pager": "
|
|
42
|
-
"@progress/kendo-angular-popup": "
|
|
26
|
+
"@progress/kendo-angular-buttons": "22.0.0-develop.1",
|
|
27
|
+
"@progress/kendo-angular-common": "22.0.0-develop.1",
|
|
28
|
+
"@progress/kendo-angular-dialog": "22.0.0-develop.1",
|
|
29
|
+
"@progress/kendo-angular-dropdowns": "22.0.0-develop.1",
|
|
30
|
+
"@progress/kendo-angular-inputs": "22.0.0-develop.1",
|
|
31
|
+
"@progress/kendo-angular-intl": "22.0.0-develop.1",
|
|
32
|
+
"@progress/kendo-angular-l10n": "22.0.0-develop.1",
|
|
33
|
+
"@progress/kendo-angular-icons": "22.0.0-develop.1",
|
|
34
|
+
"@progress/kendo-angular-indicators": "22.0.0-develop.1",
|
|
35
|
+
"@progress/kendo-angular-pager": "22.0.0-develop.1",
|
|
36
|
+
"@progress/kendo-angular-popup": "22.0.0-develop.1",
|
|
43
37
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
44
38
|
},
|
|
45
39
|
"dependencies": {
|
|
46
40
|
"tslib": "^2.3.1",
|
|
47
|
-
"@progress/kendo-angular-schematics": "
|
|
41
|
+
"@progress/kendo-angular-schematics": "22.0.0-develop.1",
|
|
48
42
|
"@progress/kendo-file-saver": "^1.0.1",
|
|
49
43
|
"@progress/kendo-pdfviewer-common": "0.6.2"
|
|
50
44
|
},
|
|
@@ -57,8 +51,6 @@
|
|
|
57
51
|
},
|
|
58
52
|
".": {
|
|
59
53
|
"types": "./index.d.ts",
|
|
60
|
-
"esm2022": "./esm2022/progress-kendo-angular-pdfviewer.mjs",
|
|
61
|
-
"esm": "./esm2022/progress-kendo-angular-pdfviewer.mjs",
|
|
62
54
|
"default": "./fesm2022/progress-kendo-angular-pdfviewer.mjs"
|
|
63
55
|
}
|
|
64
56
|
},
|
|
@@ -9,8 +9,8 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'PDFViewerModule', package: 'pdfviewer', peerDependencies: {
|
|
11
11
|
// peers of the dropdowns
|
|
12
|
-
'@progress/kendo-angular-navigation': '
|
|
13
|
-
'@progress/kendo-angular-treeview': '
|
|
12
|
+
'@progress/kendo-angular-navigation': '22.0.0-develop.1',
|
|
13
|
+
'@progress/kendo-angular-treeview': '22.0.0-develop.1'
|
|
14
14
|
} });
|
|
15
15
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
16
16
|
}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 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, NgZone } from '@angular/core';
|
|
6
|
-
import { KENDO_BUTTON } from '@progress/kendo-angular-buttons';
|
|
7
|
-
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
8
|
-
import { KENDO_DROPDOWNLIST } from '@progress/kendo-angular-dropdowns';
|
|
9
|
-
import { KENDO_FLATCOLORPICKER } from '@progress/kendo-angular-inputs';
|
|
10
|
-
import { checkIcon, paletteIcon, trashIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
11
|
-
import { take } from 'rxjs/operators';
|
|
12
|
-
import { fontSizes } from './../util';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "@progress/kendo-angular-dialog";
|
|
15
|
-
import * as i2 from "@progress/kendo-angular-buttons";
|
|
16
|
-
import * as i3 from "@progress/kendo-angular-inputs";
|
|
17
|
-
import * as i4 from "@progress/kendo-angular-dropdowns";
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export class AnnotationPopupToolbarContentComponent {
|
|
22
|
-
dialogService;
|
|
23
|
-
ngZone;
|
|
24
|
-
hostClasses = true;
|
|
25
|
-
paletteIcon = paletteIcon;
|
|
26
|
-
trashIcon = trashIcon;
|
|
27
|
-
localizationService;
|
|
28
|
-
pdfViewerWidget;
|
|
29
|
-
anchor;
|
|
30
|
-
annotationEditorType;
|
|
31
|
-
popupRef;
|
|
32
|
-
showToolbar = true;
|
|
33
|
-
initialColor;
|
|
34
|
-
fontSizes = fontSizes;
|
|
35
|
-
initialFontSize;
|
|
36
|
-
dialogContainer;
|
|
37
|
-
removeAnnotationConfirmation;
|
|
38
|
-
dialogResultSub;
|
|
39
|
-
constructor(dialogService, ngZone) {
|
|
40
|
-
this.dialogService = dialogService;
|
|
41
|
-
this.ngZone = ngZone;
|
|
42
|
-
}
|
|
43
|
-
ngOnDestroy() {
|
|
44
|
-
if (this.dialogResultSub) {
|
|
45
|
-
this.dialogResultSub.unsubscribe();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
editAnnotation() {
|
|
49
|
-
this.popupRef.popup.setInput('popupClass', 'k-pdf-viewer-annotation-editor');
|
|
50
|
-
this.hostClasses = false;
|
|
51
|
-
this.ngZone.run(() => this.showToolbar = false);
|
|
52
|
-
}
|
|
53
|
-
deleteAnnotation() {
|
|
54
|
-
const removeItem = (shouldRemove) => {
|
|
55
|
-
if (shouldRemove) {
|
|
56
|
-
this.pdfViewerWidget.deleteAnnotation();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
if (this.removeAnnotationConfirmation) {
|
|
60
|
-
this.ngZone.run(() => {
|
|
61
|
-
const dialog = this.dialogService.open({
|
|
62
|
-
appendTo: this.dialogContainer,
|
|
63
|
-
title: this.localizationService.get('deleteAnnotationConfirmationDialogTitle'),
|
|
64
|
-
content: this.localizationService.get('deleteAnnotationConfirmationDialogContent'),
|
|
65
|
-
actions: [{
|
|
66
|
-
text: this.localizationService.get('deleteAnnotationConfirmationDialogConfirmText'),
|
|
67
|
-
themeColor: 'primary',
|
|
68
|
-
svgIcon: checkIcon,
|
|
69
|
-
icon: 'check'
|
|
70
|
-
}, {
|
|
71
|
-
text: this.localizationService.get('deleteAnnotationConfirmationDialogRejectText'),
|
|
72
|
-
svgIcon: xIcon,
|
|
73
|
-
icon: 'x'
|
|
74
|
-
}],
|
|
75
|
-
});
|
|
76
|
-
this.dialogResultSub = dialog.result.pipe(take(1)).subscribe((e) => {
|
|
77
|
-
const shouldRemove = e.text === (this.localizationService.get('deleteAnnotationConfirmationDialogConfirmText'));
|
|
78
|
-
removeItem(shouldRemove);
|
|
79
|
-
this.dialogResultSub.unsubscribe();
|
|
80
|
-
this.dialogResultSub = null;
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
removeItem(true);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
onColorValueChange(value) {
|
|
89
|
-
this.pdfViewerWidget[this.annotationEditorType === 'highlight' ? 'setHighlightColor' : 'setFreeTextColor'](value);
|
|
90
|
-
}
|
|
91
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AnnotationPopupToolbarContentComponent, deps: [{ token: i1.DialogService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
92
|
-
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: `
|
|
93
|
-
@if (showToolbar) {
|
|
94
|
-
<button
|
|
95
|
-
kendoButton
|
|
96
|
-
[attr.title]="localizationService?.get('annotationEditorTitle')"
|
|
97
|
-
[attr.aria-label]="localizationService?.get('annotationEditorTitle')"
|
|
98
|
-
[svgIcon]="paletteIcon"
|
|
99
|
-
icon="palette"
|
|
100
|
-
fillMode="flat"
|
|
101
|
-
type="button"
|
|
102
|
-
(click)="editAnnotation()"></button>
|
|
103
|
-
<button
|
|
104
|
-
kendoButton
|
|
105
|
-
[attr.title]="localizationService?.get('deleteAnnotationTitle')"
|
|
106
|
-
[attr.aria-label]="localizationService?.get('deleteAnnotationTitle')"
|
|
107
|
-
[svgIcon]="trashIcon"
|
|
108
|
-
icon="trash"
|
|
109
|
-
fillMode="flat"
|
|
110
|
-
type="button"
|
|
111
|
-
(click)="deleteAnnotation()"></button>
|
|
112
|
-
}
|
|
113
|
-
@if (!showToolbar) {
|
|
114
|
-
@if (annotationEditorType === 'freeText') {
|
|
115
|
-
<span class="k-column-menu-group-header">
|
|
116
|
-
<span id="text-font-size-label" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorFontSizeTitle') }}</span>
|
|
117
|
-
</span>
|
|
118
|
-
<kendo-dropdownlist
|
|
119
|
-
[data]="fontSizes"
|
|
120
|
-
[value]="initialFontSize"
|
|
121
|
-
(valueChange)="pdfViewerWidget.setFreeTextFontSize($event)"
|
|
122
|
-
fillMode="flat"
|
|
123
|
-
aria-labelledby="text-font-size-label"></kendo-dropdownlist>
|
|
124
|
-
}
|
|
125
|
-
<span class="k-column-menu-group-header">
|
|
126
|
-
<label [for]="flatColorPicker" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorColorTitle') }}</label>
|
|
127
|
-
</span>
|
|
128
|
-
<kendo-flatcolorpicker
|
|
129
|
-
#flatColorPicker
|
|
130
|
-
[preview]="false"
|
|
131
|
-
[value]="initialColor"
|
|
132
|
-
(valueChange)="onColorValueChange($event)"
|
|
133
|
-
fillMode="flat"></kendo-flatcolorpicker>
|
|
134
|
-
}
|
|
135
|
-
`, 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: i4.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"] }] });
|
|
136
|
-
}
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AnnotationPopupToolbarContentComponent, decorators: [{
|
|
138
|
-
type: Component,
|
|
139
|
-
args: [{
|
|
140
|
-
selector: '[kendoPDFViewerAnnotationPopupToolbar]',
|
|
141
|
-
standalone: true,
|
|
142
|
-
providers: [DialogService],
|
|
143
|
-
imports: [KENDO_BUTTON, KENDO_FLATCOLORPICKER, KENDO_DROPDOWNLIST],
|
|
144
|
-
template: `
|
|
145
|
-
@if (showToolbar) {
|
|
146
|
-
<button
|
|
147
|
-
kendoButton
|
|
148
|
-
[attr.title]="localizationService?.get('annotationEditorTitle')"
|
|
149
|
-
[attr.aria-label]="localizationService?.get('annotationEditorTitle')"
|
|
150
|
-
[svgIcon]="paletteIcon"
|
|
151
|
-
icon="palette"
|
|
152
|
-
fillMode="flat"
|
|
153
|
-
type="button"
|
|
154
|
-
(click)="editAnnotation()"></button>
|
|
155
|
-
<button
|
|
156
|
-
kendoButton
|
|
157
|
-
[attr.title]="localizationService?.get('deleteAnnotationTitle')"
|
|
158
|
-
[attr.aria-label]="localizationService?.get('deleteAnnotationTitle')"
|
|
159
|
-
[svgIcon]="trashIcon"
|
|
160
|
-
icon="trash"
|
|
161
|
-
fillMode="flat"
|
|
162
|
-
type="button"
|
|
163
|
-
(click)="deleteAnnotation()"></button>
|
|
164
|
-
}
|
|
165
|
-
@if (!showToolbar) {
|
|
166
|
-
@if (annotationEditorType === 'freeText') {
|
|
167
|
-
<span class="k-column-menu-group-header">
|
|
168
|
-
<span id="text-font-size-label" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorFontSizeTitle') }}</span>
|
|
169
|
-
</span>
|
|
170
|
-
<kendo-dropdownlist
|
|
171
|
-
[data]="fontSizes"
|
|
172
|
-
[value]="initialFontSize"
|
|
173
|
-
(valueChange)="pdfViewerWidget.setFreeTextFontSize($event)"
|
|
174
|
-
fillMode="flat"
|
|
175
|
-
aria-labelledby="text-font-size-label"></kendo-dropdownlist>
|
|
176
|
-
}
|
|
177
|
-
<span class="k-column-menu-group-header">
|
|
178
|
-
<label [for]="flatColorPicker" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorColorTitle') }}</label>
|
|
179
|
-
</span>
|
|
180
|
-
<kendo-flatcolorpicker
|
|
181
|
-
#flatColorPicker
|
|
182
|
-
[preview]="false"
|
|
183
|
-
[value]="initialColor"
|
|
184
|
-
(valueChange)="onColorValueChange($event)"
|
|
185
|
-
fillMode="flat"></kendo-flatcolorpicker>
|
|
186
|
-
}
|
|
187
|
-
`
|
|
188
|
-
}]
|
|
189
|
-
}], ctorParameters: () => [{ type: i1.DialogService }, { type: i0.NgZone }], propDecorators: { hostClasses: [{
|
|
190
|
-
type: HostBinding,
|
|
191
|
-
args: ['class.k-toolbar']
|
|
192
|
-
}, {
|
|
193
|
-
type: HostBinding,
|
|
194
|
-
args: ['class.k-toolbar-md']
|
|
195
|
-
}, {
|
|
196
|
-
type: HostBinding,
|
|
197
|
-
args: ['class.k-toolbar-flat']
|
|
198
|
-
}] } });
|