@progress/kendo-angular-buttons 21.1.1-develop.2 → 21.2.0-develop.10

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.
@@ -17,7 +17,7 @@ import { getStylingClasses } from '../util';
17
17
  import { PopupContainerService } from '../listbutton/container.service';
18
18
  import { caretAltDownIcon } from '@progress/kendo-svg-icons';
19
19
  import { ListComponent } from '../listbutton/list.component';
20
- import { NgClass, NgIf } from '@angular/common';
20
+ import { NgClass } from '@angular/common';
21
21
  import { ButtonComponent } from '../button/button.component';
22
22
  import { LocalizedSplitButtonMessagesDirective } from './localization/localized-messages.directive';
23
23
  import * as i0 from "@angular/core";
@@ -505,7 +505,7 @@ export class SplitButtonComponent extends ListButton {
505
505
  }
506
506
  }
507
507
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SplitButtonComponent, deps: [{ token: i1.FocusService }, { token: i2.NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i4.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i5.PopupContainerService }], target: i0.ɵɵFactoryTarget.Component });
508
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: SplitButtonComponent, isStandalone: true, selector: "kendo-splitbutton", inputs: { text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", type: "type", imageUrl: "imageUrl", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", disabled: "disabled", popupSettings: "popupSettings", tabIndex: "tabIndex", textField: "textField", data: "data", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon", arrowButtonSvgIcon: "arrowButtonSvgIcon", buttonAttributes: "buttonAttributes" }, outputs: { buttonClick: "buttonClick", itemClick: "itemClick", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { listeners: { "keydown": "keydown($event)", "keyup": "keyup($event)" }, properties: { "class.k-focus": "this.isFocused", "class.k-split-button": "this.widgetClasses", "class.k-button-group": "this.widgetClasses", "attr.dir": "this.dir" } }, providers: [
508
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SplitButtonComponent, isStandalone: true, selector: "kendo-splitbutton", inputs: { text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", type: "type", imageUrl: "imageUrl", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", disabled: "disabled", popupSettings: "popupSettings", tabIndex: "tabIndex", textField: "textField", data: "data", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon", arrowButtonSvgIcon: "arrowButtonSvgIcon", buttonAttributes: "buttonAttributes" }, outputs: { buttonClick: "buttonClick", itemClick: "itemClick", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { listeners: { "keydown": "keydown($event)", "keyup": "keyup($event)" }, properties: { "class.k-focus": "this.isFocused", "class.k-split-button": "this.widgetClasses", "class.k-button-group": "this.widgetClasses", "attr.dir": "this.dir" } }, providers: [
509
509
  FocusService,
510
510
  NavigationService,
511
511
  NAVIGATION_SETTINGS_PROVIDER,
@@ -521,40 +521,42 @@ export class SplitButtonComponent extends ListButton {
521
521
  }
522
522
  ], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], exportAs: ["kendoSplitButton"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
523
523
  <ng-container kendoSplitButtonLocalizedMessages
524
- i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
525
- splitButtonLabel="{{ '{buttonText} splitbutton' }}"
526
- i18n-toggleButtonLabel="kendo.splitbutton.toggleButtonLabel|The text for the SplitButton toggle button aria-label"
527
- toggleButtonLabel="Toggle options"
524
+ i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
525
+ splitButtonLabel="{{ '{buttonText} splitbutton' }}"
526
+ i18n-toggleButtonLabel="kendo.splitbutton.toggleButtonLabel|The text for the SplitButton toggle button aria-label"
527
+ toggleButtonLabel="Toggle options"
528
528
  ></ng-container>
529
529
  <button
530
- kendoButton
531
- #button
532
- [type]="type"
533
- [tabindex]="componentTabIndex"
534
- [disabled]="disabled"
535
- [size]="size"
536
- [rounded]="rounded"
537
- [fillMode]="fillMode"
538
- [themeColor]="themeColor"
539
- [icon]="icon"
540
- [svgIcon]="svgIcon"
541
- [class.k-active]="active"
542
- [iconClass]="iconClass"
543
- [imageUrl]="imageUrl"
544
- [ngClass]="buttonClass"
545
- (focus)="onButtonFocus($event)"
546
- (click)="onButtonClick()"
547
- (blur)="onButtonBlur()"
548
- (mousedown)="toggleButtonActiveState(true)"
549
- (mouseup)="toggleButtonActiveState(false)"
550
- [attr.aria-expanded]="openState"
551
- [attr.aria-controls]="listId"
552
- [attr.aria-label]="ariaLabel"
553
- >
554
- <span *ngIf="text" class="k-button-text">
555
- {{ text }} </span><ng-content></ng-content>
556
- </button>
557
- <button kendoButton #arrowButton type="button"
530
+ kendoButton
531
+ #button
532
+ [type]="type"
533
+ [tabindex]="componentTabIndex"
534
+ [disabled]="disabled"
535
+ [size]="size"
536
+ [rounded]="rounded"
537
+ [fillMode]="fillMode"
538
+ [themeColor]="themeColor"
539
+ [icon]="icon"
540
+ [svgIcon]="svgIcon"
541
+ [class.k-active]="active"
542
+ [iconClass]="iconClass"
543
+ [imageUrl]="imageUrl"
544
+ [ngClass]="buttonClass"
545
+ (focus)="onButtonFocus($event)"
546
+ (click)="onButtonClick()"
547
+ (blur)="onButtonBlur()"
548
+ (mousedown)="toggleButtonActiveState(true)"
549
+ (mouseup)="toggleButtonActiveState(false)"
550
+ [attr.aria-expanded]="openState"
551
+ [attr.aria-controls]="listId"
552
+ [attr.aria-label]="ariaLabel"
553
+ >
554
+ @if (text) {
555
+ <span class="k-button-text">
556
+ {{ text }} </span>
557
+ }<ng-content></ng-content>
558
+ </button>
559
+ <button kendoButton #arrowButton type="button"
558
560
  class="k-split-button-arrow"
559
561
  [class.k-active]="activeArrow"
560
562
  [ngClass]="arrowButtonClass"
@@ -571,23 +573,23 @@ export class SplitButtonComponent extends ListButton {
571
573
  (mousedown)="toggleArrowButtonActiveState(true)"
572
574
  (mouseup)="toggleArrowButtonActiveState(false)"
573
575
  (keydown.enter)="$event.stopImmediatePropagation(); $event.preventDefault();"
574
- ></button>
575
- <ng-template #popupTemplate>
576
+ ></button>
577
+ <ng-template #popupTemplate>
576
578
  <kendo-button-list
577
- [id]="listId"
578
- [data]="data"
579
- [textField]="textField"
580
- [itemTemplate]="itemTemplate"
581
- (onItemClick)="onItemClick($event)"
582
- (keydown)="keyDownHandler($event)"
583
- (keyup)="keyUpHandler($event)"
584
- [attr.dir]="dir"
585
- [size]="size"
586
- >
579
+ [id]="listId"
580
+ [data]="data"
581
+ [textField]="textField"
582
+ [itemTemplate]="itemTemplate"
583
+ (onItemClick)="onItemClick($event)"
584
+ (keydown)="keyDownHandler($event)"
585
+ (keyup)="keyUpHandler($event)"
586
+ [attr.dir]="dir"
587
+ [size]="size"
588
+ >
587
589
  </kendo-button-list>
588
- </ng-template>
589
- <ng-container #container></ng-container>
590
- `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedSplitButtonMessagesDirective, selector: "[kendoSplitButtonLocalizedMessages]" }, { 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: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ListComponent, selector: "kendo-button-list", inputs: ["data", "textField", "itemTemplate", "size"], outputs: ["onItemClick", "onItemBlur"] }] });
590
+ </ng-template>
591
+ <ng-container #container></ng-container>
592
+ `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedSplitButtonMessagesDirective, selector: "[kendoSplitButtonLocalizedMessages]" }, { 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: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ListComponent, selector: "kendo-button-list", inputs: ["data", "textField", "itemTemplate", "size"], outputs: ["onItemClick", "onItemBlur"] }] });
591
593
  }
592
594
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SplitButtonComponent, decorators: [{
593
595
  type: Component,
@@ -611,40 +613,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
611
613
  selector: 'kendo-splitbutton',
612
614
  template: `
613
615
  <ng-container kendoSplitButtonLocalizedMessages
614
- i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
615
- splitButtonLabel="{{ '{buttonText} splitbutton' }}"
616
- i18n-toggleButtonLabel="kendo.splitbutton.toggleButtonLabel|The text for the SplitButton toggle button aria-label"
617
- toggleButtonLabel="Toggle options"
616
+ i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
617
+ splitButtonLabel="{{ '{buttonText} splitbutton' }}"
618
+ i18n-toggleButtonLabel="kendo.splitbutton.toggleButtonLabel|The text for the SplitButton toggle button aria-label"
619
+ toggleButtonLabel="Toggle options"
618
620
  ></ng-container>
619
621
  <button
620
- kendoButton
621
- #button
622
- [type]="type"
623
- [tabindex]="componentTabIndex"
624
- [disabled]="disabled"
625
- [size]="size"
626
- [rounded]="rounded"
627
- [fillMode]="fillMode"
628
- [themeColor]="themeColor"
629
- [icon]="icon"
630
- [svgIcon]="svgIcon"
631
- [class.k-active]="active"
632
- [iconClass]="iconClass"
633
- [imageUrl]="imageUrl"
634
- [ngClass]="buttonClass"
635
- (focus)="onButtonFocus($event)"
636
- (click)="onButtonClick()"
637
- (blur)="onButtonBlur()"
638
- (mousedown)="toggleButtonActiveState(true)"
639
- (mouseup)="toggleButtonActiveState(false)"
640
- [attr.aria-expanded]="openState"
641
- [attr.aria-controls]="listId"
642
- [attr.aria-label]="ariaLabel"
643
- >
644
- <span *ngIf="text" class="k-button-text">
645
- {{ text }} </span><ng-content></ng-content>
646
- </button>
647
- <button kendoButton #arrowButton type="button"
622
+ kendoButton
623
+ #button
624
+ [type]="type"
625
+ [tabindex]="componentTabIndex"
626
+ [disabled]="disabled"
627
+ [size]="size"
628
+ [rounded]="rounded"
629
+ [fillMode]="fillMode"
630
+ [themeColor]="themeColor"
631
+ [icon]="icon"
632
+ [svgIcon]="svgIcon"
633
+ [class.k-active]="active"
634
+ [iconClass]="iconClass"
635
+ [imageUrl]="imageUrl"
636
+ [ngClass]="buttonClass"
637
+ (focus)="onButtonFocus($event)"
638
+ (click)="onButtonClick()"
639
+ (blur)="onButtonBlur()"
640
+ (mousedown)="toggleButtonActiveState(true)"
641
+ (mouseup)="toggleButtonActiveState(false)"
642
+ [attr.aria-expanded]="openState"
643
+ [attr.aria-controls]="listId"
644
+ [attr.aria-label]="ariaLabel"
645
+ >
646
+ @if (text) {
647
+ <span class="k-button-text">
648
+ {{ text }} </span>
649
+ }<ng-content></ng-content>
650
+ </button>
651
+ <button kendoButton #arrowButton type="button"
648
652
  class="k-split-button-arrow"
649
653
  [class.k-active]="activeArrow"
650
654
  [ngClass]="arrowButtonClass"
@@ -661,25 +665,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
661
665
  (mousedown)="toggleArrowButtonActiveState(true)"
662
666
  (mouseup)="toggleArrowButtonActiveState(false)"
663
667
  (keydown.enter)="$event.stopImmediatePropagation(); $event.preventDefault();"
664
- ></button>
665
- <ng-template #popupTemplate>
668
+ ></button>
669
+ <ng-template #popupTemplate>
666
670
  <kendo-button-list
667
- [id]="listId"
668
- [data]="data"
669
- [textField]="textField"
670
- [itemTemplate]="itemTemplate"
671
- (onItemClick)="onItemClick($event)"
672
- (keydown)="keyDownHandler($event)"
673
- (keyup)="keyUpHandler($event)"
674
- [attr.dir]="dir"
675
- [size]="size"
676
- >
671
+ [id]="listId"
672
+ [data]="data"
673
+ [textField]="textField"
674
+ [itemTemplate]="itemTemplate"
675
+ (onItemClick)="onItemClick($event)"
676
+ (keydown)="keyDownHandler($event)"
677
+ (keyup)="keyUpHandler($event)"
678
+ [attr.dir]="dir"
679
+ [size]="size"
680
+ >
677
681
  </kendo-button-list>
678
- </ng-template>
679
- <ng-container #container></ng-container>
680
- `,
682
+ </ng-template>
683
+ <ng-container #container></ng-container>
684
+ `,
681
685
  standalone: true,
682
- imports: [LocalizedSplitButtonMessagesDirective, ButtonComponent, NgClass, NgIf, ListComponent]
686
+ imports: [LocalizedSplitButtonMessagesDirective, ButtonComponent, NgClass, ListComponent]
683
687
  }]
684
688
  }], ctorParameters: () => [{ type: i1.FocusService }, { type: i2.NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.PopupService }, { type: i0.ElementRef }, { type: i4.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i5.PopupContainerService }], propDecorators: { text: [{
685
689
  type: Input