@progress/kendo-angular-pdfviewer 21.1.1-develop.1 → 21.2.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/annotations/annotation-editor.mjs +83 -84
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdfviewer.component.mjs +344 -333
- package/esm2022/toolbar/toolbar.component.mjs +512 -491
- package/fesm2022/progress-kendo-angular-pdfviewer.mjs +941 -908
- package/package.json +14 -14
- package/schematics/ngAdd/index.js +6 -2
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgIf } from '@angular/common';
|
|
6
5
|
import { Component, HostBinding, NgZone } from '@angular/core';
|
|
7
6
|
import { KENDO_BUTTON } from '@progress/kendo-angular-buttons';
|
|
8
7
|
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
@@ -90,50 +89,50 @@ export class AnnotationPopupToolbarContentComponent {
|
|
|
90
89
|
this.pdfViewerWidget[this.annotationEditorType === 'highlight' ? 'setHighlightColor' : 'setFreeTextColor'](value);
|
|
91
90
|
}
|
|
92
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 });
|
|
93
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<span class="k-column-menu-group-header">
|
|
117
|
-
<span id="text-font-size-label" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorFontSizeTitle') }}</span>
|
|
118
|
-
</span>
|
|
119
|
-
<kendo-dropdownlist
|
|
120
|
-
[data]="fontSizes"
|
|
121
|
-
[value]="initialFontSize"
|
|
122
|
-
(valueChange)="pdfViewerWidget.setFreeTextFontSize($event)"
|
|
123
|
-
fillMode="flat"
|
|
124
|
-
aria-labelledby="text-font-size-label"></kendo-dropdownlist>
|
|
125
|
-
</ng-container>
|
|
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') {
|
|
126
115
|
<span class="k-column-menu-group-header">
|
|
127
|
-
<
|
|
116
|
+
<span id="text-font-size-label" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorFontSizeTitle') }}</span>
|
|
128
117
|
</span>
|
|
129
|
-
<kendo-
|
|
130
|
-
|
|
131
|
-
[
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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"] }] });
|
|
137
136
|
}
|
|
138
137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AnnotationPopupToolbarContentComponent, decorators: [{
|
|
139
138
|
type: Component,
|
|
@@ -141,50 +140,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
141
140
|
selector: '[kendoPDFViewerAnnotationPopupToolbar]',
|
|
142
141
|
standalone: true,
|
|
143
142
|
providers: [DialogService],
|
|
144
|
-
imports: [KENDO_BUTTON, KENDO_FLATCOLORPICKER, KENDO_DROPDOWNLIST
|
|
143
|
+
imports: [KENDO_BUTTON, KENDO_FLATCOLORPICKER, KENDO_DROPDOWNLIST],
|
|
145
144
|
template: `
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
<span class="k-column-menu-group-header">
|
|
169
|
-
<span id="text-font-size-label" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorFontSizeTitle') }}</span>
|
|
170
|
-
</span>
|
|
171
|
-
<kendo-dropdownlist
|
|
172
|
-
[data]="fontSizes"
|
|
173
|
-
[value]="initialFontSize"
|
|
174
|
-
(valueChange)="pdfViewerWidget.setFreeTextFontSize($event)"
|
|
175
|
-
fillMode="flat"
|
|
176
|
-
aria-labelledby="text-font-size-label"></kendo-dropdownlist>
|
|
177
|
-
</ng-container>
|
|
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') {
|
|
178
167
|
<span class="k-column-menu-group-header">
|
|
179
|
-
<
|
|
168
|
+
<span id="text-font-size-label" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorFontSizeTitle') }}</span>
|
|
180
169
|
</span>
|
|
181
|
-
<kendo-
|
|
182
|
-
|
|
183
|
-
[
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
+
}
|
|
188
187
|
`
|
|
189
188
|
}]
|
|
190
189
|
}], ctorParameters: () => [{ type: i1.DialogService }, { type: i0.NgZone }], propDecorators: { hostClasses: [{
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '21.
|
|
13
|
+
publishDate: 1763998507,
|
|
14
|
+
version: '21.2.0-develop.1',
|
|
15
15
|
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',
|
|
16
16
|
};
|