@progress/kendo-angular-toolbar 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.
@@ -7,7 +7,7 @@ import { ToolBarToolComponent } from './toolbar-tool.component';
7
7
  import { DropDownButtonComponent } from '@progress/kendo-angular-buttons';
8
8
  import { getValueForLocation, makePeeker, getIndexOfFocused, getPrevKey, getNextKey, seekFocusedIndex, areEqual } from '../util';
9
9
  import { IconWrapperComponent } from '@progress/kendo-angular-icons';
10
- import { NgClass, NgIf, NgFor } from '@angular/common';
10
+ import { NgClass } from '@angular/common';
11
11
  import { take } from 'rxjs/operators';
12
12
  import { ToolBarComponent } from '../toolbar.component';
13
13
  import { normalizeNumpadKeys } from '@progress/kendo-angular-common';
@@ -332,98 +332,104 @@ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
332
332
  this.overflowOptions.text = this.showText === 'toolbar' || this.showText === 'never' ? undefined : this.text;
333
333
  }
334
334
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarDropDownButtonComponent, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
335
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ToolBarDropDownButtonComponent, isStandalone: true, selector: "kendo-toolbar-dropdownbutton", inputs: { arrowIcon: "arrowIcon", title: "title", showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "sectionDropDownButton", first: true, predicate: ["sectionDropDownButton"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
335
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolBarDropDownButtonComponent, isStandalone: true, selector: "kendo-toolbar-dropdownbutton", inputs: { arrowIcon: "arrowIcon", title: "title", showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "sectionDropDownButton", first: true, predicate: ["sectionDropDownButton"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
336
336
  <ng-template #toolbarTemplate>
337
- <kendo-dropdownbutton #toolbarDropDownButton
338
- [icon]="toolbarOptions.icon"
339
- [iconClass]="toolbarOptions.iconClass"
340
- [svgIcon]="toolbarOptions.svgIcon"
341
- [imageUrl]="toolbarOptions.imageUrl"
342
- [arrowIcon]="arrowIcon"
343
- [buttonClass]="buttonClass"
344
- [disabled]="disabled"
345
- [size]="size"
346
- [tabIndex]="-1"
347
- [data]="data"
348
- [buttonAttributes]="{'title': title}"
349
- [textField]="textField"
350
- [popupSettings]="popupSettings"
351
- [fillMode]="fillMode"
352
- [themeColor]="fillMode ? themeColor : null"
353
- (open)="open.emit($event)"
354
- (close)="close.emit($event)"
355
- (itemClick)="itemClick.emit($event)"
337
+ <kendo-dropdownbutton #toolbarDropDownButton
338
+ [icon]="toolbarOptions.icon"
339
+ [iconClass]="toolbarOptions.iconClass"
340
+ [svgIcon]="toolbarOptions.svgIcon"
341
+ [imageUrl]="toolbarOptions.imageUrl"
342
+ [arrowIcon]="arrowIcon"
343
+ [buttonClass]="buttonClass"
344
+ [disabled]="disabled"
345
+ [size]="size"
346
+ [tabIndex]="-1"
347
+ [data]="data"
348
+ [buttonAttributes]="{'title': title}"
349
+ [textField]="textField"
350
+ [popupSettings]="popupSettings"
351
+ [fillMode]="fillMode"
352
+ [themeColor]="fillMode ? themeColor : null"
353
+ (open)="open.emit($event)"
354
+ (close)="close.emit($event)"
355
+ (itemClick)="itemClick.emit($event)"
356
356
  >
357
- {{ toolbarOptions.text }}
358
- </kendo-dropdownbutton>
357
+ {{ toolbarOptions.text }}
358
+ </kendo-dropdownbutton>
359
359
  </ng-template>
360
-
360
+
361
361
  <ng-template #popupTemplate>
362
- <div
363
- tabindex="-1"
364
- role="menuitem"
365
- class="k-item k-menu-item k-disabled"
366
- [ngClass]="buttonClass">
367
- <span
368
- [ngClass]="{'k-link': true, 'k-menu-link': true}"
362
+ <div
363
+ tabindex="-1"
364
+ role="menuitem"
365
+ class="k-item k-menu-item k-disabled"
366
+ [ngClass]="buttonClass">
367
+ <span
368
+ [ngClass]="{'k-link': true, 'k-menu-link': true}"
369
+ >
370
+ @if (overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon) {
371
+ <kendo-icon-wrapper
372
+ [name]="overflowOptions.icon"
373
+ [customFontClass]="overflowOptions.iconClass"
374
+ [svgIcon]="overflowOptions.svgIcon"
375
+ ></kendo-icon-wrapper>
376
+ }
377
+ @if (overflowOptions.text) {
378
+ <span class="k-menu-link-text">{{overflowOptions.text}}</span>
379
+ }
380
+ </span>
381
+ </div>
382
+ @for (item of data; track item; let i = $index) {
383
+ <div #listItem
384
+ tabindex="-1"
385
+ role="menuitem"
386
+ class="k-item k-menu-item"
387
+ [class.k-disabled]="disabled || item.disabled"
388
+ (click)="handleClick($event, item, i)">
389
+ <span
390
+ class="k-link k-menu-link"
391
+ [ngClass]="item.cssClass"
369
392
  >
370
- <kendo-icon-wrapper
371
- *ngIf="overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon"
372
- [name]="overflowOptions.icon"
373
- [customFontClass]="overflowOptions.iconClass"
374
- [svgIcon]="overflowOptions.svgIcon"
375
- ></kendo-icon-wrapper>
376
- <span *ngIf="overflowOptions.text" class="k-menu-link-text">{{overflowOptions.text}}</span>
377
- </span>
393
+ @if (item.icon || item.iconClass || item.svgIcon) {
394
+ <kendo-icon-wrapper
395
+ [name]="item.icon"
396
+ [customFontClass]="item.iconClass"
397
+ [svgIcon]="item.svgIcon"
398
+ ></kendo-icon-wrapper>
399
+ }
400
+ @if (getText(item)) {
401
+ <span class="k-menu-link-text">{{ getText(item) }}</span>
402
+ }
403
+ </span>
378
404
  </div>
379
- <ng-container *ngFor="let item of data; let i = index">
380
- <div #listItem
381
- tabindex="-1"
382
- role="menuitem"
383
- class="k-item k-menu-item"
384
- [class.k-disabled]="disabled || item.disabled"
385
- (click)="handleClick($event, item, i)">
386
- <span
387
- class="k-link k-menu-link"
388
- [ngClass]="item.cssClass"
389
- >
390
- <kendo-icon-wrapper
391
- *ngIf="item.icon || item.iconClass || item.svgIcon"
392
- [name]="item.icon"
393
- [customFontClass]="item.iconClass"
394
- [svgIcon]="item.svgIcon"
395
- ></kendo-icon-wrapper>
396
- <span *ngIf="getText(item)" class="k-menu-link-text">{{ getText(item) }}</span>
397
- </span>
398
- </div>
399
- </ng-container>
405
+ }
400
406
  </ng-template>
401
-
407
+
402
408
  <ng-template #sectionTemplate>
403
- <kendo-dropdownbutton #sectionDropDownButton
404
- [icon]="toolbarOptions.icon"
405
- [iconClass]="toolbarOptions.iconClass"
406
- [svgIcon]="toolbarOptions.svgIcon"
407
- [imageUrl]="toolbarOptions.imageUrl"
408
- [arrowIcon]="arrowIcon"
409
- [buttonClass]="buttonClass"
410
- [disabled]="disabled"
411
- [size]="size"
412
- [tabIndex]="-1"
413
- [data]="data"
414
- [buttonAttributes]="{'title': title}"
415
- [textField]="textField"
416
- [popupSettings]="popupSettings"
417
- [fillMode]="fillMode"
418
- [themeColor]="fillMode ? themeColor : null"
419
- (open)="open.emit($event)"
420
- (close)="close.emit($event)"
421
- (itemClick)="itemClick.emit($event)"
409
+ <kendo-dropdownbutton #sectionDropDownButton
410
+ [icon]="toolbarOptions.icon"
411
+ [iconClass]="toolbarOptions.iconClass"
412
+ [svgIcon]="toolbarOptions.svgIcon"
413
+ [imageUrl]="toolbarOptions.imageUrl"
414
+ [arrowIcon]="arrowIcon"
415
+ [buttonClass]="buttonClass"
416
+ [disabled]="disabled"
417
+ [size]="size"
418
+ [tabIndex]="-1"
419
+ [data]="data"
420
+ [buttonAttributes]="{'title': title}"
421
+ [textField]="textField"
422
+ [popupSettings]="popupSettings"
423
+ [fillMode]="fillMode"
424
+ [themeColor]="fillMode ? themeColor : null"
425
+ (open)="open.emit($event)"
426
+ (close)="close.emit($event)"
427
+ (itemClick)="itemClick.emit($event)"
422
428
  >
423
- {{ toolbarOptions.text }}
424
- </kendo-dropdownbutton>
429
+ {{ toolbarOptions.text }}
430
+ </kendo-dropdownbutton>
425
431
  </ng-template>
426
- `, isInline: true, dependencies: [{ kind: "component", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
432
+ `, isInline: true, dependencies: [{ kind: "component", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
427
433
  }
428
434
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
429
435
  type: Component,
@@ -433,98 +439,104 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
433
439
  selector: 'kendo-toolbar-dropdownbutton',
434
440
  template: `
435
441
  <ng-template #toolbarTemplate>
436
- <kendo-dropdownbutton #toolbarDropDownButton
437
- [icon]="toolbarOptions.icon"
438
- [iconClass]="toolbarOptions.iconClass"
439
- [svgIcon]="toolbarOptions.svgIcon"
440
- [imageUrl]="toolbarOptions.imageUrl"
441
- [arrowIcon]="arrowIcon"
442
- [buttonClass]="buttonClass"
443
- [disabled]="disabled"
444
- [size]="size"
445
- [tabIndex]="-1"
446
- [data]="data"
447
- [buttonAttributes]="{'title': title}"
448
- [textField]="textField"
449
- [popupSettings]="popupSettings"
450
- [fillMode]="fillMode"
451
- [themeColor]="fillMode ? themeColor : null"
452
- (open)="open.emit($event)"
453
- (close)="close.emit($event)"
454
- (itemClick)="itemClick.emit($event)"
442
+ <kendo-dropdownbutton #toolbarDropDownButton
443
+ [icon]="toolbarOptions.icon"
444
+ [iconClass]="toolbarOptions.iconClass"
445
+ [svgIcon]="toolbarOptions.svgIcon"
446
+ [imageUrl]="toolbarOptions.imageUrl"
447
+ [arrowIcon]="arrowIcon"
448
+ [buttonClass]="buttonClass"
449
+ [disabled]="disabled"
450
+ [size]="size"
451
+ [tabIndex]="-1"
452
+ [data]="data"
453
+ [buttonAttributes]="{'title': title}"
454
+ [textField]="textField"
455
+ [popupSettings]="popupSettings"
456
+ [fillMode]="fillMode"
457
+ [themeColor]="fillMode ? themeColor : null"
458
+ (open)="open.emit($event)"
459
+ (close)="close.emit($event)"
460
+ (itemClick)="itemClick.emit($event)"
455
461
  >
456
- {{ toolbarOptions.text }}
457
- </kendo-dropdownbutton>
462
+ {{ toolbarOptions.text }}
463
+ </kendo-dropdownbutton>
458
464
  </ng-template>
459
-
465
+
460
466
  <ng-template #popupTemplate>
461
- <div
462
- tabindex="-1"
463
- role="menuitem"
464
- class="k-item k-menu-item k-disabled"
465
- [ngClass]="buttonClass">
466
- <span
467
- [ngClass]="{'k-link': true, 'k-menu-link': true}"
467
+ <div
468
+ tabindex="-1"
469
+ role="menuitem"
470
+ class="k-item k-menu-item k-disabled"
471
+ [ngClass]="buttonClass">
472
+ <span
473
+ [ngClass]="{'k-link': true, 'k-menu-link': true}"
474
+ >
475
+ @if (overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon) {
476
+ <kendo-icon-wrapper
477
+ [name]="overflowOptions.icon"
478
+ [customFontClass]="overflowOptions.iconClass"
479
+ [svgIcon]="overflowOptions.svgIcon"
480
+ ></kendo-icon-wrapper>
481
+ }
482
+ @if (overflowOptions.text) {
483
+ <span class="k-menu-link-text">{{overflowOptions.text}}</span>
484
+ }
485
+ </span>
486
+ </div>
487
+ @for (item of data; track item; let i = $index) {
488
+ <div #listItem
489
+ tabindex="-1"
490
+ role="menuitem"
491
+ class="k-item k-menu-item"
492
+ [class.k-disabled]="disabled || item.disabled"
493
+ (click)="handleClick($event, item, i)">
494
+ <span
495
+ class="k-link k-menu-link"
496
+ [ngClass]="item.cssClass"
468
497
  >
469
- <kendo-icon-wrapper
470
- *ngIf="overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon"
471
- [name]="overflowOptions.icon"
472
- [customFontClass]="overflowOptions.iconClass"
473
- [svgIcon]="overflowOptions.svgIcon"
474
- ></kendo-icon-wrapper>
475
- <span *ngIf="overflowOptions.text" class="k-menu-link-text">{{overflowOptions.text}}</span>
476
- </span>
498
+ @if (item.icon || item.iconClass || item.svgIcon) {
499
+ <kendo-icon-wrapper
500
+ [name]="item.icon"
501
+ [customFontClass]="item.iconClass"
502
+ [svgIcon]="item.svgIcon"
503
+ ></kendo-icon-wrapper>
504
+ }
505
+ @if (getText(item)) {
506
+ <span class="k-menu-link-text">{{ getText(item) }}</span>
507
+ }
508
+ </span>
477
509
  </div>
478
- <ng-container *ngFor="let item of data; let i = index">
479
- <div #listItem
480
- tabindex="-1"
481
- role="menuitem"
482
- class="k-item k-menu-item"
483
- [class.k-disabled]="disabled || item.disabled"
484
- (click)="handleClick($event, item, i)">
485
- <span
486
- class="k-link k-menu-link"
487
- [ngClass]="item.cssClass"
488
- >
489
- <kendo-icon-wrapper
490
- *ngIf="item.icon || item.iconClass || item.svgIcon"
491
- [name]="item.icon"
492
- [customFontClass]="item.iconClass"
493
- [svgIcon]="item.svgIcon"
494
- ></kendo-icon-wrapper>
495
- <span *ngIf="getText(item)" class="k-menu-link-text">{{ getText(item) }}</span>
496
- </span>
497
- </div>
498
- </ng-container>
510
+ }
499
511
  </ng-template>
500
-
512
+
501
513
  <ng-template #sectionTemplate>
502
- <kendo-dropdownbutton #sectionDropDownButton
503
- [icon]="toolbarOptions.icon"
504
- [iconClass]="toolbarOptions.iconClass"
505
- [svgIcon]="toolbarOptions.svgIcon"
506
- [imageUrl]="toolbarOptions.imageUrl"
507
- [arrowIcon]="arrowIcon"
508
- [buttonClass]="buttonClass"
509
- [disabled]="disabled"
510
- [size]="size"
511
- [tabIndex]="-1"
512
- [data]="data"
513
- [buttonAttributes]="{'title': title}"
514
- [textField]="textField"
515
- [popupSettings]="popupSettings"
516
- [fillMode]="fillMode"
517
- [themeColor]="fillMode ? themeColor : null"
518
- (open)="open.emit($event)"
519
- (close)="close.emit($event)"
520
- (itemClick)="itemClick.emit($event)"
514
+ <kendo-dropdownbutton #sectionDropDownButton
515
+ [icon]="toolbarOptions.icon"
516
+ [iconClass]="toolbarOptions.iconClass"
517
+ [svgIcon]="toolbarOptions.svgIcon"
518
+ [imageUrl]="toolbarOptions.imageUrl"
519
+ [arrowIcon]="arrowIcon"
520
+ [buttonClass]="buttonClass"
521
+ [disabled]="disabled"
522
+ [size]="size"
523
+ [tabIndex]="-1"
524
+ [data]="data"
525
+ [buttonAttributes]="{'title': title}"
526
+ [textField]="textField"
527
+ [popupSettings]="popupSettings"
528
+ [fillMode]="fillMode"
529
+ [themeColor]="fillMode ? themeColor : null"
530
+ (open)="open.emit($event)"
531
+ (close)="close.emit($event)"
532
+ (itemClick)="itemClick.emit($event)"
521
533
  >
522
- {{ toolbarOptions.text }}
523
- </kendo-dropdownbutton>
534
+ {{ toolbarOptions.text }}
535
+ </kendo-dropdownbutton>
524
536
  </ng-template>
525
- `,
537
+ `,
526
538
  standalone: true,
527
- imports: [DropDownButtonComponent, NgClass, NgIf, IconWrapperComponent, NgFor]
539
+ imports: [DropDownButtonComponent, NgClass, IconWrapperComponent]
528
540
  }]
529
541
  }], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.ToolBarComponent }], propDecorators: { arrowIcon: [{
530
542
  type: Input