@progress/kendo-angular-pdfviewer 21.1.1-develop.2 → 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.
@@ -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: "14.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: `
94
- <ng-container *ngIf="showToolbar">
95
- <button
96
- kendoButton
97
- [attr.title]="localizationService?.get('annotationEditorTitle')"
98
- [attr.aria-label]="localizationService?.get('annotationEditorTitle')"
99
- [svgIcon]="paletteIcon"
100
- icon="palette"
101
- fillMode="flat"
102
- type="button"
103
- (click)="editAnnotation()"></button>
104
- <button
105
- kendoButton
106
- [attr.title]="localizationService?.get('deleteAnnotationTitle')"
107
- [attr.aria-label]="localizationService?.get('deleteAnnotationTitle')"
108
- [svgIcon]="trashIcon"
109
- icon="trash"
110
- fillMode="flat"
111
- type="button"
112
- (click)="deleteAnnotation()"></button>
113
- </ng-container>
114
- <ng-container *ngIf="!showToolbar">
115
- <ng-container *ngIf="annotationEditorType === 'freeText'">
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
- <label [for]="flatColorPicker" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorColorTitle') }}</label>
116
+ <span id="text-font-size-label" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorFontSizeTitle') }}</span>
128
117
  </span>
129
- <kendo-flatcolorpicker
130
- #flatColorPicker
131
- [preview]="false"
132
- [value]="initialColor"
133
- (valueChange)="onColorValueChange($event)"
134
- fillMode="flat"></kendo-flatcolorpicker>
135
- <ng-container>
136
- `, 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"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
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, NgIf],
143
+ imports: [KENDO_BUTTON, KENDO_FLATCOLORPICKER, KENDO_DROPDOWNLIST],
145
144
  template: `
146
- <ng-container *ngIf="showToolbar">
147
- <button
148
- kendoButton
149
- [attr.title]="localizationService?.get('annotationEditorTitle')"
150
- [attr.aria-label]="localizationService?.get('annotationEditorTitle')"
151
- [svgIcon]="paletteIcon"
152
- icon="palette"
153
- fillMode="flat"
154
- type="button"
155
- (click)="editAnnotation()"></button>
156
- <button
157
- kendoButton
158
- [attr.title]="localizationService?.get('deleteAnnotationTitle')"
159
- [attr.aria-label]="localizationService?.get('deleteAnnotationTitle')"
160
- [svgIcon]="trashIcon"
161
- icon="trash"
162
- fillMode="flat"
163
- type="button"
164
- (click)="deleteAnnotation()"></button>
165
- </ng-container>
166
- <ng-container *ngIf="!showToolbar">
167
- <ng-container *ngIf="annotationEditorType === 'freeText'">
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
- <label [for]="flatColorPicker" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorColorTitle') }}</label>
168
+ <span id="text-font-size-label" class="k-column-menu-group-header-text">{{ localizationService?.get('annotationEditorFontSizeTitle') }}</span>
180
169
  </span>
181
- <kendo-flatcolorpicker
182
- #flatColorPicker
183
- [preview]="false"
184
- [value]="initialColor"
185
- (valueChange)="onColorValueChange($event)"
186
- fillMode="flat"></kendo-flatcolorpicker>
187
- <ng-container>
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: 1763729385,
14
- version: '21.1.1-develop.2',
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
  };