@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.
@@ -13,7 +13,6 @@ import { ToolbarComboBoxDirective } from './toolbar-combobox.directive';
13
13
  import { ButtonComponent, ButtonGroupComponent } from '@progress/kendo-angular-buttons';
14
14
  import { ToolbarFocusableDirective } from './toolbar-focusable.directive';
15
15
  import { ToolbarInputWrapperComponent } from './input-wrapper.component';
16
- import { NgFor, NgSwitch, NgSwitchCase, NgIf } from '@angular/common';
17
16
  import { map } from 'rxjs/operators';
18
17
  import * as i0 from "@angular/core";
19
18
  import * as i1 from "@progress/kendo-angular-l10n";
@@ -128,257 +127,268 @@ export class ToolbarComponent {
128
127
  };
129
128
  }));
130
129
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, deps: [{ token: i1.LocalizationService }, { token: i2.ToolbarNavigationService }], target: i0.ɵɵFactoryTarget.Component });
131
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", 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: `
132
- <ng-container *ngIf="type === 'tools'">
133
- <ng-container *ngFor="let tool of tools">
134
- <ng-container [ngSwitch]="tool">
135
- <kendo-toolbar-input-wrapper
136
- *ngSwitchCase="'pager'"
137
- kendoPDFViewerToolbarFocusable
138
- [toolbarTool]="pager">
139
- <kendo-datapager
140
- #pager
141
- [attr.aria-controls]="pagesContainerId"
142
- [attr.aria-label]="messageFor('page') + ' ' + (skip + 1) + ' ' + messageFor('of') + total"
143
- [class.k-disabled]="disabledTools"
144
- [navigable]="true"
145
- [pageSize]="pageSize"
146
- [skip]="skip"
147
- [total]="total"
148
- [pageSizeValues]="false"
149
- [info]="false"
150
- [type]="pagerType"
151
- (pageChange)="pageChange.emit($event)">
152
- <kendo-datapager-messages
153
- [firstPage]="messageFor('pagerFirstPage')"
154
- [previousPage]="messageFor('pagerPreviousPage')"
155
- [nextPage]="messageFor('pagerNextPage')"
156
- [lastPage]="messageFor('pagerLastPage')"
157
- [inputLabel]="messageFor('pagerInputLabel')"
158
- [pageNumberInputTitle]="messageFor('pagerInputTitle')"
159
- [of]="messageFor('pagerOf')"
160
- [page]="messageFor('pagerPage')"></kendo-datapager-messages>
161
- </kendo-datapager>
162
- </kendo-toolbar-input-wrapper>
163
- <span
164
- *ngSwitchCase="'spacer'"
165
- class="k-spacer"></span>
166
- <kendo-buttongroup
167
- *ngSwitchCase="'zoomInOut'"
168
- [attr.aria-controls]="pagesContainerId"
169
- class="k-button-group-flat k-toolbar-button-group"
170
- [navigable]="false">
171
- <button
172
- type="button"
173
- kendoButton
174
- fillMode="flat"
175
- kendoPDFViewerToolbarFocusable
176
- icon="zoom-out"
177
- [disabled]="disabledTools || zoomOutDisabled"
178
- [svgIcon]="zoomOutIcon"
179
- [attr.title]="messageFor('zoomOutTitle')"
180
- [attr.aria-label]="messageFor('zoomOutTitle')"
181
- (click)="zoomOut.emit()"></button>
182
- <button
183
- type="button"
184
- kendoButton
185
- fillMode="flat"
186
- kendoPDFViewerToolbarFocusable
187
- icon="zoom-in"
188
- [disabled]="disabledTools || zoomInDisabled"
189
- [svgIcon]="zoomInIcon"
190
- [attr.title]="messageFor('zoomInTitle')"
191
- [attr.aria-label]="messageFor('zoomInTitle')"
192
- (click)="zoomIn.emit()"></button>
193
- </kendo-buttongroup>
194
- <kendo-toolbar-input-wrapper
195
- *ngSwitchCase="'zoom'"
196
- kendoPDFViewerToolbarFocusable
197
- [toolbarTool]="combobox">
198
- <kendo-combobox
199
- #combobox
200
- kendoPDFViewerComboBox
201
- class="k-toolbar-combobox"
202
- fillMode="flat"
203
- [attr.aria-controls]="pagesContainerId"
204
- [tabindex]="-1"
205
- [data]="zoomOptionsData"
206
- [disabled]="disabledTools"
207
- [placeholder]="messageFor('zoomInputPlaceholder')"
208
- textField="displayValue"
209
- valueField="id"
210
- [value]="zoomLevelChooserValue"
211
- [allowCustom]="true"
212
- [valueNormalizer]="valueNormalizer"
213
- [clearButton]="false"
214
- (valueChange)="onZoomLevelChooserValueChange($event)">
215
- <ng-template kendoComboBoxItemTemplate let-dataItem>
216
- {{ dataItem.type ? messageFor('f' + dataItem.type.slice(1)) : dataItem.text }}
217
- </ng-template>
218
- </kendo-combobox>
219
- </kendo-toolbar-input-wrapper>
220
- <kendo-buttongroup
221
- *ngSwitchCase="'selection'"
222
- [attr.aria-controls]="pagesContainerId"
223
- [navigable]="false"
224
- class="k-button-group-flat k-toolbar-button-group"
225
- selection="single">
226
- <button
227
- type="button"
228
- kendoButton
229
- kendoPDFViewerToolbarFocusable
230
- fillMode="flat"
231
- icon="pointer"
232
- [selected]="isSelectionEnabled"
233
- [toggleable]="true"
234
- [svgIcon]="pointerIcon"
235
- [attr.title]="messageFor('selectionTitle')"
236
- [attr.aria-label]="messageFor('selectionTitle')"
237
- (click)="selectionEnabled.emit(); isSelectionEnabled = true;"></button>
238
- <button
239
- type="button"
240
- kendoButton
241
- kendoPDFViewerToolbarFocusable
242
- fillMode="flat"
243
- icon="hand"
244
- [svgIcon]="handIcon"
245
- [toggleable]="true"
246
- [selected]="!isSelectionEnabled"
247
- [attr.title]="messageFor('panningTitle')"
248
- [attr.aria-label]="messageFor('panningTitle')"
249
- (click)="panningEnabled.emit(); isSelectionEnabled = false;"></button>
250
- </kendo-buttongroup>
251
- <button
252
- *ngSwitchCase="'search'"
253
- type="button"
254
- kendoPDFViewerToolbarFocusable
255
- kendoButton
256
- class="k-toolbar-button"
257
- fillMode="flat"
258
- icon="search"
259
- [disabled]="disabledTools"
260
- [attr.title]="messageFor('searchTitle')"
261
- [attr.aria-label]="messageFor('searchTitle')"
262
- aria-haspopup="dialog"
263
- [svgIcon]="searchIcon"
264
- (click)="search.emit()"></button>
265
- <button
266
- *ngSwitchCase="'open'"
267
- type="button"
268
- fillMode="flat"
269
- kendoPDFViewerToolbarFocusable
270
- kendoButton
271
- class="k-toolbar-button"
272
- fillMode="flat"
273
- icon="folder-open"
274
- [svgIcon]="folderOpenIcon"
275
- [attr.title]="messageFor('openTitle')"
276
- [attr.aria-label]="messageFor('openTitle')"
277
- [attr.aria-controls]="pagesContainerId"
278
- (click)="fileSelectEl?.nativeElement.click()">
279
- </button>
280
- <button
281
- *ngSwitchCase="'download'"
282
- type="button"
283
- fillMode="flat"
284
- kendoPDFViewerToolbarFocusable
285
- kendoButton
286
- class="k-toolbar-button"
287
- icon="download"
288
- [svgIcon]="downloadIcon"
289
- [disabled]="disabledTools"
290
- [attr.title]="messageFor('downloadTitle')"
291
- [attr.aria-label]="messageFor('downloadTitle')"
292
- (click)="download.emit()"></button>
293
- <button
294
- *ngSwitchCase="'print'"
295
- type="button"
296
- fillMode="flat"
297
- kendoPDFViewerToolbarFocusable
298
- kendoButton
299
- class="k-toolbar-button"
300
- icon="print"
301
- [svgIcon]="printIcon"
302
- [disabled]="disabledTools"
303
- [attr.title]="messageFor('printTitle')"
304
- [attr.aria-label]="messageFor('printTitle')"
305
- (click)="print.emit()"></button>
306
- <button
307
- *ngSwitchCase="'annotations'"
308
- type="button"
309
- [attr.id]="annotationsToolId"
310
- kendoPDFViewerToolbarFocusable
311
- kendoButton
312
- class="k-toolbar-button"
313
- fillMode="flat"
314
- icon="track-changes"
315
- [selected]="isAnnotationsToolbarVisible"
316
- [disabled]="disabledTools || !isSelectionEnabled"
317
- [attr.title]="messageFor('annotationsTitle')"
318
- [attr.aria-label]="messageFor('annotationsTitle')"
319
- [attr.aria-controls]="wrapperId"
320
- [attr.aria-expanded]="isAnnotationsToolbarVisible"
321
- [svgIcon]="trackChangesIcon"
322
- (click)="toggleAnnotationsToolbar.emit();"></button>
323
- </ng-container>
324
- </ng-container>
325
- </ng-container>
326
- <ng-container *ngIf="type === 'annotations'">
327
- <button
328
- type="button"
329
- kendoPDFViewerToolbarFocusable
330
- kendoButton
331
- class="k-toolbar-button"
332
- fillMode="flat"
333
- icon="highlight"
334
- [selected]="isHighlightMode"
335
- [disabled]="disabledTools"
336
- [attr.title]="messageFor('highlightAnnotationTitle')"
337
- [attr.aria-label]="messageFor('highlightAnnotationTitle')"
338
- aria-haspopup="dialog"
339
- [svgIcon]="highlightIcon"
340
- (click)="onHighlightClick()"></button>
341
- <div class="k-toolbar-separator k-separator"></div>
342
- <button
343
- type="button"
344
- fillMode="flat"
345
- kendoPDFViewerToolbarFocusable
346
- kendoButton
347
- [selected]="isFreeTextMode"
348
- class="k-toolbar-button"
349
- fillMode="flat"
350
- icon="free-text"
351
- [svgIcon]="freeTextIcon"
352
- [attr.title]="messageFor('freeTextAnnotationTitle')"
353
- [attr.aria-label]="messageFor('freeTextAnnotationTitle')"
354
- [attr.aria-controls]="pagesContainerId"
355
- (click)="onFreeTextClick()">
356
- </button>
357
- <span class="k-spacer"></span>
358
- <button
359
- type="button"
360
- fillMode="flat"
361
- kendoPDFViewerToolbarFocusable
362
- kendoButton
363
- class="k-toolbar-button"
364
- fillMode="flat"
365
- icon="x"
366
- [svgIcon]="xIcon"
367
- [attr.title]="messageFor('closeAnnotationsToolbarTitle')"
368
- [attr.aria-label]="messageFor('closeAnnotationsToolbarTitle')"
369
- [attr.aria-controls]="pagesContainerId"
370
- (click)="toggleAnnotationsToolbar.emit();">
371
- </button>
372
- </ng-container>
373
- <input
130
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", 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: `
131
+ @if (type === 'tools') {
132
+ @for (tool of tools; track tool) {
133
+ @switch (tool) {
134
+ @case ('pager') {
135
+ <kendo-toolbar-input-wrapper
136
+ kendoPDFViewerToolbarFocusable
137
+ [toolbarTool]="pager">
138
+ <kendo-datapager
139
+ #pager
140
+ [attr.aria-controls]="pagesContainerId"
141
+ [attr.aria-label]="messageFor('page') + ' ' + (skip + 1) + ' ' + messageFor('of') + total"
142
+ [class.k-disabled]="disabledTools"
143
+ [navigable]="true"
144
+ [pageSize]="pageSize"
145
+ [skip]="skip"
146
+ [total]="total"
147
+ [pageSizeValues]="false"
148
+ [info]="false"
149
+ [type]="pagerType"
150
+ (pageChange)="pageChange.emit($event)">
151
+ <kendo-datapager-messages
152
+ [firstPage]="messageFor('pagerFirstPage')"
153
+ [previousPage]="messageFor('pagerPreviousPage')"
154
+ [nextPage]="messageFor('pagerNextPage')"
155
+ [lastPage]="messageFor('pagerLastPage')"
156
+ [inputLabel]="messageFor('pagerInputLabel')"
157
+ [pageNumberInputTitle]="messageFor('pagerInputTitle')"
158
+ [of]="messageFor('pagerOf')"
159
+ [page]="messageFor('pagerPage')"></kendo-datapager-messages>
160
+ </kendo-datapager>
161
+ </kendo-toolbar-input-wrapper>
162
+ }
163
+ @case ('spacer') {
164
+ <span
165
+ class="k-spacer"></span>
166
+ }
167
+ @case ('zoomInOut') {
168
+ <kendo-buttongroup
169
+ [attr.aria-controls]="pagesContainerId"
170
+ class="k-button-group-flat k-toolbar-button-group"
171
+ [navigable]="false">
172
+ <button
173
+ type="button"
174
+ kendoButton
175
+ fillMode="flat"
176
+ kendoPDFViewerToolbarFocusable
177
+ icon="zoom-out"
178
+ [disabled]="disabledTools || zoomOutDisabled"
179
+ [svgIcon]="zoomOutIcon"
180
+ [attr.title]="messageFor('zoomOutTitle')"
181
+ [attr.aria-label]="messageFor('zoomOutTitle')"
182
+ (click)="zoomOut.emit()"></button>
183
+ <button
184
+ type="button"
185
+ kendoButton
186
+ fillMode="flat"
187
+ kendoPDFViewerToolbarFocusable
188
+ icon="zoom-in"
189
+ [disabled]="disabledTools || zoomInDisabled"
190
+ [svgIcon]="zoomInIcon"
191
+ [attr.title]="messageFor('zoomInTitle')"
192
+ [attr.aria-label]="messageFor('zoomInTitle')"
193
+ (click)="zoomIn.emit()"></button>
194
+ </kendo-buttongroup>
195
+ }
196
+ @case ('zoom') {
197
+ <kendo-toolbar-input-wrapper
198
+ kendoPDFViewerToolbarFocusable
199
+ [toolbarTool]="combobox">
200
+ <kendo-combobox
201
+ #combobox
202
+ kendoPDFViewerComboBox
203
+ class="k-toolbar-combobox"
204
+ fillMode="flat"
205
+ [attr.aria-controls]="pagesContainerId"
206
+ [tabindex]="-1"
207
+ [data]="zoomOptionsData"
208
+ [disabled]="disabledTools"
209
+ [placeholder]="messageFor('zoomInputPlaceholder')"
210
+ textField="displayValue"
211
+ valueField="id"
212
+ [value]="zoomLevelChooserValue"
213
+ [allowCustom]="true"
214
+ [valueNormalizer]="valueNormalizer"
215
+ [clearButton]="false"
216
+ (valueChange)="onZoomLevelChooserValueChange($event)">
217
+ <ng-template kendoComboBoxItemTemplate let-dataItem>
218
+ {{ dataItem.type ? messageFor('f' + dataItem.type.slice(1)) : dataItem.text }}
219
+ </ng-template>
220
+ </kendo-combobox>
221
+ </kendo-toolbar-input-wrapper>
222
+ }
223
+ @case ('selection') {
224
+ <kendo-buttongroup
225
+ [attr.aria-controls]="pagesContainerId"
226
+ [navigable]="false"
227
+ class="k-button-group-flat k-toolbar-button-group"
228
+ selection="single">
229
+ <button
230
+ type="button"
231
+ kendoButton
232
+ kendoPDFViewerToolbarFocusable
233
+ fillMode="flat"
234
+ icon="pointer"
235
+ [selected]="isSelectionEnabled"
236
+ [toggleable]="true"
237
+ [svgIcon]="pointerIcon"
238
+ [attr.title]="messageFor('selectionTitle')"
239
+ [attr.aria-label]="messageFor('selectionTitle')"
240
+ (click)="selectionEnabled.emit(); isSelectionEnabled = true;"></button>
241
+ <button
242
+ type="button"
243
+ kendoButton
244
+ kendoPDFViewerToolbarFocusable
245
+ fillMode="flat"
246
+ icon="hand"
247
+ [svgIcon]="handIcon"
248
+ [toggleable]="true"
249
+ [selected]="!isSelectionEnabled"
250
+ [attr.title]="messageFor('panningTitle')"
251
+ [attr.aria-label]="messageFor('panningTitle')"
252
+ (click)="panningEnabled.emit(); isSelectionEnabled = false;"></button>
253
+ </kendo-buttongroup>
254
+ }
255
+ @case ('search') {
256
+ <button
257
+ type="button"
258
+ kendoPDFViewerToolbarFocusable
259
+ kendoButton
260
+ class="k-toolbar-button"
261
+ fillMode="flat"
262
+ icon="search"
263
+ [disabled]="disabledTools"
264
+ [attr.title]="messageFor('searchTitle')"
265
+ [attr.aria-label]="messageFor('searchTitle')"
266
+ aria-haspopup="dialog"
267
+ [svgIcon]="searchIcon"
268
+ (click)="search.emit()"></button>
269
+ }
270
+ @case ('open') {
271
+ <button
272
+ type="button"
273
+ fillMode="flat"
274
+ kendoPDFViewerToolbarFocusable
275
+ kendoButton
276
+ class="k-toolbar-button"
277
+ fillMode="flat"
278
+ icon="folder-open"
279
+ [svgIcon]="folderOpenIcon"
280
+ [attr.title]="messageFor('openTitle')"
281
+ [attr.aria-label]="messageFor('openTitle')"
282
+ [attr.aria-controls]="pagesContainerId"
283
+ (click)="fileSelectEl?.nativeElement.click()">
284
+ </button>
285
+ }
286
+ @case ('download') {
287
+ <button
288
+ type="button"
289
+ fillMode="flat"
290
+ kendoPDFViewerToolbarFocusable
291
+ kendoButton
292
+ class="k-toolbar-button"
293
+ icon="download"
294
+ [svgIcon]="downloadIcon"
295
+ [disabled]="disabledTools"
296
+ [attr.title]="messageFor('downloadTitle')"
297
+ [attr.aria-label]="messageFor('downloadTitle')"
298
+ (click)="download.emit()"></button>
299
+ }
300
+ @case ('print') {
301
+ <button
302
+ type="button"
303
+ fillMode="flat"
304
+ kendoPDFViewerToolbarFocusable
305
+ kendoButton
306
+ class="k-toolbar-button"
307
+ icon="print"
308
+ [svgIcon]="printIcon"
309
+ [disabled]="disabledTools"
310
+ [attr.title]="messageFor('printTitle')"
311
+ [attr.aria-label]="messageFor('printTitle')"
312
+ (click)="print.emit()"></button>
313
+ }
314
+ @case ('annotations') {
315
+ <button
316
+ type="button"
317
+ [attr.id]="annotationsToolId"
318
+ kendoPDFViewerToolbarFocusable
319
+ kendoButton
320
+ class="k-toolbar-button"
321
+ fillMode="flat"
322
+ icon="track-changes"
323
+ [selected]="isAnnotationsToolbarVisible"
324
+ [disabled]="disabledTools || !isSelectionEnabled"
325
+ [attr.title]="messageFor('annotationsTitle')"
326
+ [attr.aria-label]="messageFor('annotationsTitle')"
327
+ [attr.aria-controls]="wrapperId"
328
+ [attr.aria-expanded]="isAnnotationsToolbarVisible"
329
+ [svgIcon]="trackChangesIcon"
330
+ (click)="toggleAnnotationsToolbar.emit();"></button>
331
+ }
332
+ }
333
+ }
334
+ }
335
+ @if (type === 'annotations') {
336
+ <button
337
+ type="button"
338
+ kendoPDFViewerToolbarFocusable
339
+ kendoButton
340
+ class="k-toolbar-button"
341
+ fillMode="flat"
342
+ icon="highlight"
343
+ [selected]="isHighlightMode"
344
+ [disabled]="disabledTools"
345
+ [attr.title]="messageFor('highlightAnnotationTitle')"
346
+ [attr.aria-label]="messageFor('highlightAnnotationTitle')"
347
+ aria-haspopup="dialog"
348
+ [svgIcon]="highlightIcon"
349
+ (click)="onHighlightClick()"></button>
350
+ <div class="k-toolbar-separator k-separator"></div>
351
+ <button
352
+ type="button"
353
+ fillMode="flat"
354
+ kendoPDFViewerToolbarFocusable
355
+ kendoButton
356
+ [selected]="isFreeTextMode"
357
+ class="k-toolbar-button"
358
+ fillMode="flat"
359
+ icon="free-text"
360
+ [svgIcon]="freeTextIcon"
361
+ [attr.title]="messageFor('freeTextAnnotationTitle')"
362
+ [attr.aria-label]="messageFor('freeTextAnnotationTitle')"
363
+ [attr.aria-controls]="pagesContainerId"
364
+ (click)="onFreeTextClick()">
365
+ </button>
366
+ <span class="k-spacer"></span>
367
+ <button
368
+ type="button"
369
+ fillMode="flat"
370
+ kendoPDFViewerToolbarFocusable
371
+ kendoButton
372
+ class="k-toolbar-button"
373
+ fillMode="flat"
374
+ icon="x"
375
+ [svgIcon]="xIcon"
376
+ [attr.title]="messageFor('closeAnnotationsToolbarTitle')"
377
+ [attr.aria-label]="messageFor('closeAnnotationsToolbarTitle')"
378
+ [attr.aria-controls]="pagesContainerId"
379
+ (click)="toggleAnnotationsToolbar.emit();">
380
+ </button>
381
+ }
382
+ @if (type === 'tools' &&tools?.indexOf('open') > -1;) {
383
+ <input
374
384
  #fileSelectEl
375
- *ngIf="type === 'tools' &&tools?.indexOf('open') > -1;"
376
385
  type="file"
377
386
  [style.display]="'none'"
378
387
  aria-hidden="true"
379
388
  accept=".pdf, .PDF"
380
389
  (change)="onFileSelect($event)" />
381
- `, 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, 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]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
390
+ }
391
+ `, 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]" }] });
382
392
  }
383
393
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, decorators: [{
384
394
  type: Component,
@@ -386,258 +396,269 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
386
396
  selector: '[kendoPDFViewerToolbar]',
387
397
  providers: [ToolbarNavigationService],
388
398
  template: `
389
- <ng-container *ngIf="type === 'tools'">
390
- <ng-container *ngFor="let tool of tools">
391
- <ng-container [ngSwitch]="tool">
392
- <kendo-toolbar-input-wrapper
393
- *ngSwitchCase="'pager'"
394
- kendoPDFViewerToolbarFocusable
395
- [toolbarTool]="pager">
396
- <kendo-datapager
397
- #pager
398
- [attr.aria-controls]="pagesContainerId"
399
- [attr.aria-label]="messageFor('page') + ' ' + (skip + 1) + ' ' + messageFor('of') + total"
400
- [class.k-disabled]="disabledTools"
401
- [navigable]="true"
402
- [pageSize]="pageSize"
403
- [skip]="skip"
404
- [total]="total"
405
- [pageSizeValues]="false"
406
- [info]="false"
407
- [type]="pagerType"
408
- (pageChange)="pageChange.emit($event)">
409
- <kendo-datapager-messages
410
- [firstPage]="messageFor('pagerFirstPage')"
411
- [previousPage]="messageFor('pagerPreviousPage')"
412
- [nextPage]="messageFor('pagerNextPage')"
413
- [lastPage]="messageFor('pagerLastPage')"
414
- [inputLabel]="messageFor('pagerInputLabel')"
415
- [pageNumberInputTitle]="messageFor('pagerInputTitle')"
416
- [of]="messageFor('pagerOf')"
417
- [page]="messageFor('pagerPage')"></kendo-datapager-messages>
418
- </kendo-datapager>
419
- </kendo-toolbar-input-wrapper>
420
- <span
421
- *ngSwitchCase="'spacer'"
422
- class="k-spacer"></span>
423
- <kendo-buttongroup
424
- *ngSwitchCase="'zoomInOut'"
425
- [attr.aria-controls]="pagesContainerId"
426
- class="k-button-group-flat k-toolbar-button-group"
427
- [navigable]="false">
428
- <button
429
- type="button"
430
- kendoButton
431
- fillMode="flat"
432
- kendoPDFViewerToolbarFocusable
433
- icon="zoom-out"
434
- [disabled]="disabledTools || zoomOutDisabled"
435
- [svgIcon]="zoomOutIcon"
436
- [attr.title]="messageFor('zoomOutTitle')"
437
- [attr.aria-label]="messageFor('zoomOutTitle')"
438
- (click)="zoomOut.emit()"></button>
439
- <button
440
- type="button"
441
- kendoButton
442
- fillMode="flat"
443
- kendoPDFViewerToolbarFocusable
444
- icon="zoom-in"
445
- [disabled]="disabledTools || zoomInDisabled"
446
- [svgIcon]="zoomInIcon"
447
- [attr.title]="messageFor('zoomInTitle')"
448
- [attr.aria-label]="messageFor('zoomInTitle')"
449
- (click)="zoomIn.emit()"></button>
450
- </kendo-buttongroup>
451
- <kendo-toolbar-input-wrapper
452
- *ngSwitchCase="'zoom'"
453
- kendoPDFViewerToolbarFocusable
454
- [toolbarTool]="combobox">
455
- <kendo-combobox
456
- #combobox
457
- kendoPDFViewerComboBox
458
- class="k-toolbar-combobox"
459
- fillMode="flat"
460
- [attr.aria-controls]="pagesContainerId"
461
- [tabindex]="-1"
462
- [data]="zoomOptionsData"
463
- [disabled]="disabledTools"
464
- [placeholder]="messageFor('zoomInputPlaceholder')"
465
- textField="displayValue"
466
- valueField="id"
467
- [value]="zoomLevelChooserValue"
468
- [allowCustom]="true"
469
- [valueNormalizer]="valueNormalizer"
470
- [clearButton]="false"
471
- (valueChange)="onZoomLevelChooserValueChange($event)">
472
- <ng-template kendoComboBoxItemTemplate let-dataItem>
473
- {{ dataItem.type ? messageFor('f' + dataItem.type.slice(1)) : dataItem.text }}
474
- </ng-template>
475
- </kendo-combobox>
476
- </kendo-toolbar-input-wrapper>
477
- <kendo-buttongroup
478
- *ngSwitchCase="'selection'"
479
- [attr.aria-controls]="pagesContainerId"
480
- [navigable]="false"
481
- class="k-button-group-flat k-toolbar-button-group"
482
- selection="single">
483
- <button
484
- type="button"
485
- kendoButton
486
- kendoPDFViewerToolbarFocusable
487
- fillMode="flat"
488
- icon="pointer"
489
- [selected]="isSelectionEnabled"
490
- [toggleable]="true"
491
- [svgIcon]="pointerIcon"
492
- [attr.title]="messageFor('selectionTitle')"
493
- [attr.aria-label]="messageFor('selectionTitle')"
494
- (click)="selectionEnabled.emit(); isSelectionEnabled = true;"></button>
495
- <button
496
- type="button"
497
- kendoButton
498
- kendoPDFViewerToolbarFocusable
499
- fillMode="flat"
500
- icon="hand"
501
- [svgIcon]="handIcon"
502
- [toggleable]="true"
503
- [selected]="!isSelectionEnabled"
504
- [attr.title]="messageFor('panningTitle')"
505
- [attr.aria-label]="messageFor('panningTitle')"
506
- (click)="panningEnabled.emit(); isSelectionEnabled = false;"></button>
507
- </kendo-buttongroup>
508
- <button
509
- *ngSwitchCase="'search'"
510
- type="button"
511
- kendoPDFViewerToolbarFocusable
512
- kendoButton
513
- class="k-toolbar-button"
514
- fillMode="flat"
515
- icon="search"
516
- [disabled]="disabledTools"
517
- [attr.title]="messageFor('searchTitle')"
518
- [attr.aria-label]="messageFor('searchTitle')"
519
- aria-haspopup="dialog"
520
- [svgIcon]="searchIcon"
521
- (click)="search.emit()"></button>
522
- <button
523
- *ngSwitchCase="'open'"
524
- type="button"
525
- fillMode="flat"
526
- kendoPDFViewerToolbarFocusable
527
- kendoButton
528
- class="k-toolbar-button"
529
- fillMode="flat"
530
- icon="folder-open"
531
- [svgIcon]="folderOpenIcon"
532
- [attr.title]="messageFor('openTitle')"
533
- [attr.aria-label]="messageFor('openTitle')"
534
- [attr.aria-controls]="pagesContainerId"
535
- (click)="fileSelectEl?.nativeElement.click()">
536
- </button>
537
- <button
538
- *ngSwitchCase="'download'"
539
- type="button"
540
- fillMode="flat"
541
- kendoPDFViewerToolbarFocusable
542
- kendoButton
543
- class="k-toolbar-button"
544
- icon="download"
545
- [svgIcon]="downloadIcon"
546
- [disabled]="disabledTools"
547
- [attr.title]="messageFor('downloadTitle')"
548
- [attr.aria-label]="messageFor('downloadTitle')"
549
- (click)="download.emit()"></button>
550
- <button
551
- *ngSwitchCase="'print'"
552
- type="button"
553
- fillMode="flat"
554
- kendoPDFViewerToolbarFocusable
555
- kendoButton
556
- class="k-toolbar-button"
557
- icon="print"
558
- [svgIcon]="printIcon"
559
- [disabled]="disabledTools"
560
- [attr.title]="messageFor('printTitle')"
561
- [attr.aria-label]="messageFor('printTitle')"
562
- (click)="print.emit()"></button>
563
- <button
564
- *ngSwitchCase="'annotations'"
565
- type="button"
566
- [attr.id]="annotationsToolId"
567
- kendoPDFViewerToolbarFocusable
568
- kendoButton
569
- class="k-toolbar-button"
570
- fillMode="flat"
571
- icon="track-changes"
572
- [selected]="isAnnotationsToolbarVisible"
573
- [disabled]="disabledTools || !isSelectionEnabled"
574
- [attr.title]="messageFor('annotationsTitle')"
575
- [attr.aria-label]="messageFor('annotationsTitle')"
576
- [attr.aria-controls]="wrapperId"
577
- [attr.aria-expanded]="isAnnotationsToolbarVisible"
578
- [svgIcon]="trackChangesIcon"
579
- (click)="toggleAnnotationsToolbar.emit();"></button>
580
- </ng-container>
581
- </ng-container>
582
- </ng-container>
583
- <ng-container *ngIf="type === 'annotations'">
584
- <button
585
- type="button"
586
- kendoPDFViewerToolbarFocusable
587
- kendoButton
588
- class="k-toolbar-button"
589
- fillMode="flat"
590
- icon="highlight"
591
- [selected]="isHighlightMode"
592
- [disabled]="disabledTools"
593
- [attr.title]="messageFor('highlightAnnotationTitle')"
594
- [attr.aria-label]="messageFor('highlightAnnotationTitle')"
595
- aria-haspopup="dialog"
596
- [svgIcon]="highlightIcon"
597
- (click)="onHighlightClick()"></button>
598
- <div class="k-toolbar-separator k-separator"></div>
599
- <button
600
- type="button"
601
- fillMode="flat"
602
- kendoPDFViewerToolbarFocusable
603
- kendoButton
604
- [selected]="isFreeTextMode"
605
- class="k-toolbar-button"
606
- fillMode="flat"
607
- icon="free-text"
608
- [svgIcon]="freeTextIcon"
609
- [attr.title]="messageFor('freeTextAnnotationTitle')"
610
- [attr.aria-label]="messageFor('freeTextAnnotationTitle')"
611
- [attr.aria-controls]="pagesContainerId"
612
- (click)="onFreeTextClick()">
613
- </button>
614
- <span class="k-spacer"></span>
615
- <button
616
- type="button"
617
- fillMode="flat"
618
- kendoPDFViewerToolbarFocusable
619
- kendoButton
620
- class="k-toolbar-button"
621
- fillMode="flat"
622
- icon="x"
623
- [svgIcon]="xIcon"
624
- [attr.title]="messageFor('closeAnnotationsToolbarTitle')"
625
- [attr.aria-label]="messageFor('closeAnnotationsToolbarTitle')"
626
- [attr.aria-controls]="pagesContainerId"
627
- (click)="toggleAnnotationsToolbar.emit();">
628
- </button>
629
- </ng-container>
630
- <input
399
+ @if (type === 'tools') {
400
+ @for (tool of tools; track tool) {
401
+ @switch (tool) {
402
+ @case ('pager') {
403
+ <kendo-toolbar-input-wrapper
404
+ kendoPDFViewerToolbarFocusable
405
+ [toolbarTool]="pager">
406
+ <kendo-datapager
407
+ #pager
408
+ [attr.aria-controls]="pagesContainerId"
409
+ [attr.aria-label]="messageFor('page') + ' ' + (skip + 1) + ' ' + messageFor('of') + total"
410
+ [class.k-disabled]="disabledTools"
411
+ [navigable]="true"
412
+ [pageSize]="pageSize"
413
+ [skip]="skip"
414
+ [total]="total"
415
+ [pageSizeValues]="false"
416
+ [info]="false"
417
+ [type]="pagerType"
418
+ (pageChange)="pageChange.emit($event)">
419
+ <kendo-datapager-messages
420
+ [firstPage]="messageFor('pagerFirstPage')"
421
+ [previousPage]="messageFor('pagerPreviousPage')"
422
+ [nextPage]="messageFor('pagerNextPage')"
423
+ [lastPage]="messageFor('pagerLastPage')"
424
+ [inputLabel]="messageFor('pagerInputLabel')"
425
+ [pageNumberInputTitle]="messageFor('pagerInputTitle')"
426
+ [of]="messageFor('pagerOf')"
427
+ [page]="messageFor('pagerPage')"></kendo-datapager-messages>
428
+ </kendo-datapager>
429
+ </kendo-toolbar-input-wrapper>
430
+ }
431
+ @case ('spacer') {
432
+ <span
433
+ class="k-spacer"></span>
434
+ }
435
+ @case ('zoomInOut') {
436
+ <kendo-buttongroup
437
+ [attr.aria-controls]="pagesContainerId"
438
+ class="k-button-group-flat k-toolbar-button-group"
439
+ [navigable]="false">
440
+ <button
441
+ type="button"
442
+ kendoButton
443
+ fillMode="flat"
444
+ kendoPDFViewerToolbarFocusable
445
+ icon="zoom-out"
446
+ [disabled]="disabledTools || zoomOutDisabled"
447
+ [svgIcon]="zoomOutIcon"
448
+ [attr.title]="messageFor('zoomOutTitle')"
449
+ [attr.aria-label]="messageFor('zoomOutTitle')"
450
+ (click)="zoomOut.emit()"></button>
451
+ <button
452
+ type="button"
453
+ kendoButton
454
+ fillMode="flat"
455
+ kendoPDFViewerToolbarFocusable
456
+ icon="zoom-in"
457
+ [disabled]="disabledTools || zoomInDisabled"
458
+ [svgIcon]="zoomInIcon"
459
+ [attr.title]="messageFor('zoomInTitle')"
460
+ [attr.aria-label]="messageFor('zoomInTitle')"
461
+ (click)="zoomIn.emit()"></button>
462
+ </kendo-buttongroup>
463
+ }
464
+ @case ('zoom') {
465
+ <kendo-toolbar-input-wrapper
466
+ kendoPDFViewerToolbarFocusable
467
+ [toolbarTool]="combobox">
468
+ <kendo-combobox
469
+ #combobox
470
+ kendoPDFViewerComboBox
471
+ class="k-toolbar-combobox"
472
+ fillMode="flat"
473
+ [attr.aria-controls]="pagesContainerId"
474
+ [tabindex]="-1"
475
+ [data]="zoomOptionsData"
476
+ [disabled]="disabledTools"
477
+ [placeholder]="messageFor('zoomInputPlaceholder')"
478
+ textField="displayValue"
479
+ valueField="id"
480
+ [value]="zoomLevelChooserValue"
481
+ [allowCustom]="true"
482
+ [valueNormalizer]="valueNormalizer"
483
+ [clearButton]="false"
484
+ (valueChange)="onZoomLevelChooserValueChange($event)">
485
+ <ng-template kendoComboBoxItemTemplate let-dataItem>
486
+ {{ dataItem.type ? messageFor('f' + dataItem.type.slice(1)) : dataItem.text }}
487
+ </ng-template>
488
+ </kendo-combobox>
489
+ </kendo-toolbar-input-wrapper>
490
+ }
491
+ @case ('selection') {
492
+ <kendo-buttongroup
493
+ [attr.aria-controls]="pagesContainerId"
494
+ [navigable]="false"
495
+ class="k-button-group-flat k-toolbar-button-group"
496
+ selection="single">
497
+ <button
498
+ type="button"
499
+ kendoButton
500
+ kendoPDFViewerToolbarFocusable
501
+ fillMode="flat"
502
+ icon="pointer"
503
+ [selected]="isSelectionEnabled"
504
+ [toggleable]="true"
505
+ [svgIcon]="pointerIcon"
506
+ [attr.title]="messageFor('selectionTitle')"
507
+ [attr.aria-label]="messageFor('selectionTitle')"
508
+ (click)="selectionEnabled.emit(); isSelectionEnabled = true;"></button>
509
+ <button
510
+ type="button"
511
+ kendoButton
512
+ kendoPDFViewerToolbarFocusable
513
+ fillMode="flat"
514
+ icon="hand"
515
+ [svgIcon]="handIcon"
516
+ [toggleable]="true"
517
+ [selected]="!isSelectionEnabled"
518
+ [attr.title]="messageFor('panningTitle')"
519
+ [attr.aria-label]="messageFor('panningTitle')"
520
+ (click)="panningEnabled.emit(); isSelectionEnabled = false;"></button>
521
+ </kendo-buttongroup>
522
+ }
523
+ @case ('search') {
524
+ <button
525
+ type="button"
526
+ kendoPDFViewerToolbarFocusable
527
+ kendoButton
528
+ class="k-toolbar-button"
529
+ fillMode="flat"
530
+ icon="search"
531
+ [disabled]="disabledTools"
532
+ [attr.title]="messageFor('searchTitle')"
533
+ [attr.aria-label]="messageFor('searchTitle')"
534
+ aria-haspopup="dialog"
535
+ [svgIcon]="searchIcon"
536
+ (click)="search.emit()"></button>
537
+ }
538
+ @case ('open') {
539
+ <button
540
+ type="button"
541
+ fillMode="flat"
542
+ kendoPDFViewerToolbarFocusable
543
+ kendoButton
544
+ class="k-toolbar-button"
545
+ fillMode="flat"
546
+ icon="folder-open"
547
+ [svgIcon]="folderOpenIcon"
548
+ [attr.title]="messageFor('openTitle')"
549
+ [attr.aria-label]="messageFor('openTitle')"
550
+ [attr.aria-controls]="pagesContainerId"
551
+ (click)="fileSelectEl?.nativeElement.click()">
552
+ </button>
553
+ }
554
+ @case ('download') {
555
+ <button
556
+ type="button"
557
+ fillMode="flat"
558
+ kendoPDFViewerToolbarFocusable
559
+ kendoButton
560
+ class="k-toolbar-button"
561
+ icon="download"
562
+ [svgIcon]="downloadIcon"
563
+ [disabled]="disabledTools"
564
+ [attr.title]="messageFor('downloadTitle')"
565
+ [attr.aria-label]="messageFor('downloadTitle')"
566
+ (click)="download.emit()"></button>
567
+ }
568
+ @case ('print') {
569
+ <button
570
+ type="button"
571
+ fillMode="flat"
572
+ kendoPDFViewerToolbarFocusable
573
+ kendoButton
574
+ class="k-toolbar-button"
575
+ icon="print"
576
+ [svgIcon]="printIcon"
577
+ [disabled]="disabledTools"
578
+ [attr.title]="messageFor('printTitle')"
579
+ [attr.aria-label]="messageFor('printTitle')"
580
+ (click)="print.emit()"></button>
581
+ }
582
+ @case ('annotations') {
583
+ <button
584
+ type="button"
585
+ [attr.id]="annotationsToolId"
586
+ kendoPDFViewerToolbarFocusable
587
+ kendoButton
588
+ class="k-toolbar-button"
589
+ fillMode="flat"
590
+ icon="track-changes"
591
+ [selected]="isAnnotationsToolbarVisible"
592
+ [disabled]="disabledTools || !isSelectionEnabled"
593
+ [attr.title]="messageFor('annotationsTitle')"
594
+ [attr.aria-label]="messageFor('annotationsTitle')"
595
+ [attr.aria-controls]="wrapperId"
596
+ [attr.aria-expanded]="isAnnotationsToolbarVisible"
597
+ [svgIcon]="trackChangesIcon"
598
+ (click)="toggleAnnotationsToolbar.emit();"></button>
599
+ }
600
+ }
601
+ }
602
+ }
603
+ @if (type === 'annotations') {
604
+ <button
605
+ type="button"
606
+ kendoPDFViewerToolbarFocusable
607
+ kendoButton
608
+ class="k-toolbar-button"
609
+ fillMode="flat"
610
+ icon="highlight"
611
+ [selected]="isHighlightMode"
612
+ [disabled]="disabledTools"
613
+ [attr.title]="messageFor('highlightAnnotationTitle')"
614
+ [attr.aria-label]="messageFor('highlightAnnotationTitle')"
615
+ aria-haspopup="dialog"
616
+ [svgIcon]="highlightIcon"
617
+ (click)="onHighlightClick()"></button>
618
+ <div class="k-toolbar-separator k-separator"></div>
619
+ <button
620
+ type="button"
621
+ fillMode="flat"
622
+ kendoPDFViewerToolbarFocusable
623
+ kendoButton
624
+ [selected]="isFreeTextMode"
625
+ class="k-toolbar-button"
626
+ fillMode="flat"
627
+ icon="free-text"
628
+ [svgIcon]="freeTextIcon"
629
+ [attr.title]="messageFor('freeTextAnnotationTitle')"
630
+ [attr.aria-label]="messageFor('freeTextAnnotationTitle')"
631
+ [attr.aria-controls]="pagesContainerId"
632
+ (click)="onFreeTextClick()">
633
+ </button>
634
+ <span class="k-spacer"></span>
635
+ <button
636
+ type="button"
637
+ fillMode="flat"
638
+ kendoPDFViewerToolbarFocusable
639
+ kendoButton
640
+ class="k-toolbar-button"
641
+ fillMode="flat"
642
+ icon="x"
643
+ [svgIcon]="xIcon"
644
+ [attr.title]="messageFor('closeAnnotationsToolbarTitle')"
645
+ [attr.aria-label]="messageFor('closeAnnotationsToolbarTitle')"
646
+ [attr.aria-controls]="pagesContainerId"
647
+ (click)="toggleAnnotationsToolbar.emit();">
648
+ </button>
649
+ }
650
+ @if (type === 'tools' &&tools?.indexOf('open') > -1;) {
651
+ <input
631
652
  #fileSelectEl
632
- *ngIf="type === 'tools' &&tools?.indexOf('open') > -1;"
633
653
  type="file"
634
654
  [style.display]="'none'"
635
655
  aria-hidden="true"
636
656
  accept=".pdf, .PDF"
637
657
  (change)="onFileSelect($event)" />
638
- `,
658
+ }
659
+ `,
639
660
  standalone: true,
640
- imports: [NgFor, NgSwitch, NgSwitchCase, ToolbarInputWrapperComponent, ToolbarFocusableDirective, PagerComponent, CustomMessagesComponent, ButtonGroupComponent, ButtonComponent, ComboBoxComponent, ToolbarComboBoxDirective, ItemTemplateDirective, NgIf]
661
+ imports: [ToolbarInputWrapperComponent, ToolbarFocusableDirective, PagerComponent, CustomMessagesComponent, ButtonGroupComponent, ButtonComponent, ComboBoxComponent, ToolbarComboBoxDirective, ItemTemplateDirective]
641
662
  }]
642
663
  }], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i2.ToolbarNavigationService }], propDecorators: { toolbarClasses: [{
643
664
  type: HostBinding,