@progress/kendo-angular-buttons 19.2.1-develop.4 → 19.3.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.
@@ -205,7 +205,6 @@ export declare class ButtonComponent implements OnDestroy, AfterViewInit {
205
205
  */
206
206
  setSelected(value: boolean): void;
207
207
  private toggleAriaPressed;
208
- private toggleClass;
209
208
  private _onButtonClick;
210
209
  private handleClasses;
211
210
  private handleThemeColor;
@@ -15,6 +15,7 @@ import * as i9 from "./floatingactionbutton/templates/fab-template.directive";
15
15
  import * as i10 from "./splitbutton/splitbutton.component";
16
16
  import * as i11 from "./splitbutton/localization/custom-messages.component";
17
17
  import * as i12 from "@progress/kendo-angular-common";
18
+ import * as i13 from "./speechtotextbutton/speechtotextbutton.component";
18
19
  /**
19
20
  * Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
20
21
  * definition for the Buttons components.
@@ -38,6 +39,6 @@ import * as i12 from "@progress/kendo-angular-common";
38
39
  */
39
40
  export declare class ButtonsModule {
40
41
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonsModule, never>;
41
- static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonsModule, never, [typeof i1.ButtonComponent, typeof i1.ButtonComponent, typeof i2.ButtonGroupComponent, typeof i3.DropDownButtonComponent, typeof i4.ButtonItemTemplateDirective, typeof i5.ChipComponent, typeof i5.ChipComponent, typeof i6.ChipListComponent, typeof i7.FloatingActionButtonComponent, typeof i8.DialItemTemplateDirective, typeof i9.FloatingActionButtonTemplateDirective, typeof i10.SplitButtonComponent, typeof i11.SplitButtonCustomMessagesComponent, typeof i12.ToggleButtonTabStopDirective, typeof i4.ButtonItemTemplateDirective, typeof i12.ToggleButtonTabStopDirective], [typeof i1.ButtonComponent, typeof i1.ButtonComponent, typeof i2.ButtonGroupComponent, typeof i3.DropDownButtonComponent, typeof i4.ButtonItemTemplateDirective, typeof i5.ChipComponent, typeof i5.ChipComponent, typeof i6.ChipListComponent, typeof i7.FloatingActionButtonComponent, typeof i8.DialItemTemplateDirective, typeof i9.FloatingActionButtonTemplateDirective, typeof i10.SplitButtonComponent, typeof i11.SplitButtonCustomMessagesComponent, typeof i12.ToggleButtonTabStopDirective, typeof i4.ButtonItemTemplateDirective, typeof i12.ToggleButtonTabStopDirective]>;
42
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonsModule, never, [typeof i1.ButtonComponent, typeof i1.ButtonComponent, typeof i2.ButtonGroupComponent, typeof i3.DropDownButtonComponent, typeof i4.ButtonItemTemplateDirective, typeof i5.ChipComponent, typeof i5.ChipComponent, typeof i6.ChipListComponent, typeof i7.FloatingActionButtonComponent, typeof i8.DialItemTemplateDirective, typeof i9.FloatingActionButtonTemplateDirective, typeof i10.SplitButtonComponent, typeof i11.SplitButtonCustomMessagesComponent, typeof i12.ToggleButtonTabStopDirective, typeof i4.ButtonItemTemplateDirective, typeof i13.SpeechToTextButtonComponent, typeof i12.ToggleButtonTabStopDirective], [typeof i1.ButtonComponent, typeof i1.ButtonComponent, typeof i2.ButtonGroupComponent, typeof i3.DropDownButtonComponent, typeof i4.ButtonItemTemplateDirective, typeof i5.ChipComponent, typeof i5.ChipComponent, typeof i6.ChipListComponent, typeof i7.FloatingActionButtonComponent, typeof i8.DialItemTemplateDirective, typeof i9.FloatingActionButtonTemplateDirective, typeof i10.SplitButtonComponent, typeof i11.SplitButtonCustomMessagesComponent, typeof i12.ToggleButtonTabStopDirective, typeof i4.ButtonItemTemplateDirective, typeof i13.SpeechToTextButtonComponent, typeof i12.ToggleButtonTabStopDirective]>;
42
43
  static ɵinj: i0.ɵɵInjectorDeclaration<ButtonsModule>;
43
44
  }
package/directives.d.ts CHANGED
@@ -2,6 +2,7 @@
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 { ToggleButtonTabStopDirective } from '@progress/kendo-angular-common';
5
6
  import { ButtonComponent } from './button/button.component';
6
7
  import { ButtonGroupComponent } from './buttongroup/buttongroup.component';
7
8
  import { ChipListComponent } from './chip/chip-list.component';
@@ -13,7 +14,7 @@ import { FloatingActionButtonTemplateDirective } from './floatingactionbutton/te
13
14
  import { SplitButtonCustomMessagesComponent } from './splitbutton/localization/custom-messages.component';
14
15
  import { SplitButtonComponent } from './splitbutton/splitbutton.component';
15
16
  import { ButtonItemTemplateDirective } from './listbutton/button-item-template.directive';
16
- import { ToggleButtonTabStopDirective } from '@progress/kendo-angular-common';
17
+ import { SpeechToTextButtonComponent } from './speechtotextbutton/speechtotextbutton.component';
17
18
  /**
18
19
  * Use the `KENDO_BUTTON` utility array to add all Button-related components and directives to a standalone Angular component.
19
20
  *
@@ -112,6 +113,20 @@ export declare const KENDO_FLOATINGACTIONBUTTON: readonly [typeof FloatingAction
112
113
  * ```
113
114
  */
114
115
  export declare const KENDO_SPLITBUTTON: readonly [typeof SplitButtonComponent, typeof SplitButtonCustomMessagesComponent, typeof ToggleButtonTabStopDirective, typeof ButtonItemTemplateDirective];
116
+ /**
117
+ * Use the `KENDO_SPEECHTOTEXTBUTTON` utility array to add all SpeechToTextButton-related components and directives to a standalone Angular component.
118
+ *
119
+ * @example
120
+ * ```typescript
121
+ * @Component({
122
+ * standalone: true,
123
+ * imports: [KENDO_SPEECHTOTEXTBUTTON],
124
+ * // ...
125
+ * })
126
+ * export class MyComponent {}
127
+ * ```
128
+ */
129
+ export declare const KENDO_SPEECHTOTEXTBUTTON: readonly [typeof SpeechToTextButtonComponent];
115
130
  /**
116
131
  * Use the `KENDO_BUTTONS` utility array to add all `@progress/kendo-angular-buttons`-related components and directives to a standalone Angular component.
117
132
  *
@@ -125,4 +140,4 @@ export declare const KENDO_SPLITBUTTON: readonly [typeof SplitButtonComponent, t
125
140
  * export class MyComponent {}
126
141
  * ```
127
142
  */
128
- export declare const KENDO_BUTTONS: readonly [typeof ButtonComponent, typeof ButtonComponent, typeof ButtonGroupComponent, typeof DropDownButtonComponent, typeof ButtonItemTemplateDirective, typeof ChipComponent, typeof ChipComponent, typeof ChipListComponent, typeof FloatingActionButtonComponent, typeof DialItemTemplateDirective, typeof FloatingActionButtonTemplateDirective, typeof SplitButtonComponent, typeof SplitButtonCustomMessagesComponent, typeof ToggleButtonTabStopDirective, typeof ButtonItemTemplateDirective];
143
+ export declare const KENDO_BUTTONS: readonly [typeof ButtonComponent, typeof ButtonComponent, typeof ButtonGroupComponent, typeof DropDownButtonComponent, typeof ButtonItemTemplateDirective, typeof ChipComponent, typeof ChipComponent, typeof ChipListComponent, typeof FloatingActionButtonComponent, typeof DialItemTemplateDirective, typeof FloatingActionButtonTemplateDirective, typeof SplitButtonComponent, typeof SplitButtonCustomMessagesComponent, typeof ToggleButtonTabStopDirective, typeof ButtonItemTemplateDirective, typeof SpeechToTextButtonComponent];
@@ -10,7 +10,7 @@ import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
10
10
  import { Subscription } from 'rxjs';
11
11
  import { validatePackage } from '@progress/kendo-licensing';
12
12
  import { packageMetadata } from '../package-metadata';
13
- import { getStylingClasses, getThemeColorClasses } from '../util';
13
+ import { getStylingClasses, getThemeColorClasses, toggleClass } from '../util';
14
14
  import { IconWrapperComponent } from '@progress/kendo-angular-icons';
15
15
  import { NgIf, NgClass } from '@angular/common';
16
16
  import * as i0 from "@angular/core";
@@ -220,7 +220,7 @@ export class ButtonComponent {
220
220
  _icon;
221
221
  _svgIcon;
222
222
  set isFocused(isFocused) {
223
- this.toggleClass('k-focus', isFocused);
223
+ toggleClass('k-focus', isFocused, this.renderer, this.element);
224
224
  this._focused = isFocused;
225
225
  }
226
226
  get isFocused() {
@@ -361,7 +361,7 @@ export class ButtonComponent {
361
361
  const changed = this.selected !== value;
362
362
  this.selected = value;
363
363
  this.setAttribute('aria-pressed', this.selected.toString());
364
- this.toggleClass('k-selected', this.selected);
364
+ toggleClass('k-selected', this.selected, this.renderer, this.element);
365
365
  if (changed && hasObservers(this.selectedChange)) {
366
366
  this.ngZone.run(() => {
367
367
  this.selectedChange.emit(value);
@@ -379,14 +379,6 @@ export class ButtonComponent {
379
379
  this.removeAttribute('aria-pressed');
380
380
  }
381
381
  }
382
- toggleClass(className, add) {
383
- if (add) {
384
- this.renderer.addClass(this.element, className);
385
- }
386
- else {
387
- this.renderer.removeClass(this.element, className);
388
- }
389
- }
390
382
  _onButtonClick() {
391
383
  if (!this.disabled && this.service) {
392
384
  this.ngZone.run(() => {
@@ -20,6 +20,7 @@ import * as i9 from "./floatingactionbutton/templates/fab-template.directive";
20
20
  import * as i10 from "./splitbutton/splitbutton.component";
21
21
  import * as i11 from "./splitbutton/localization/custom-messages.component";
22
22
  import * as i12 from "@progress/kendo-angular-common";
23
+ import * as i13 from "./speechtotextbutton/speechtotextbutton.component";
23
24
  //IMPORTANT: NgModule export kept for backwards compatibility
24
25
  /**
25
26
  * Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
@@ -44,8 +45,8 @@ import * as i12 from "@progress/kendo-angular-common";
44
45
  */
45
46
  export class ButtonsModule {
46
47
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ButtonsModule, imports: [i1.ButtonComponent, i1.ButtonComponent, i2.ButtonGroupComponent, i3.DropDownButtonComponent, i4.ButtonItemTemplateDirective, i5.ChipComponent, i5.ChipComponent, i6.ChipListComponent, i7.FloatingActionButtonComponent, i8.DialItemTemplateDirective, i9.FloatingActionButtonTemplateDirective, i10.SplitButtonComponent, i11.SplitButtonCustomMessagesComponent, i12.ToggleButtonTabStopDirective, i4.ButtonItemTemplateDirective, i12.ToggleButtonTabStopDirective], exports: [i1.ButtonComponent, i1.ButtonComponent, i2.ButtonGroupComponent, i3.DropDownButtonComponent, i4.ButtonItemTemplateDirective, i5.ChipComponent, i5.ChipComponent, i6.ChipListComponent, i7.FloatingActionButtonComponent, i8.DialItemTemplateDirective, i9.FloatingActionButtonTemplateDirective, i10.SplitButtonComponent, i11.SplitButtonCustomMessagesComponent, i12.ToggleButtonTabStopDirective, i4.ButtonItemTemplateDirective, i12.ToggleButtonTabStopDirective] });
48
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonsModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [i1.ButtonComponent, i1.ButtonComponent, i3.DropDownButtonComponent, i5.ChipComponent, i5.ChipComponent, i7.FloatingActionButtonComponent, i10.SplitButtonComponent] });
48
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ButtonsModule, imports: [i1.ButtonComponent, i1.ButtonComponent, i2.ButtonGroupComponent, i3.DropDownButtonComponent, i4.ButtonItemTemplateDirective, i5.ChipComponent, i5.ChipComponent, i6.ChipListComponent, i7.FloatingActionButtonComponent, i8.DialItemTemplateDirective, i9.FloatingActionButtonTemplateDirective, i10.SplitButtonComponent, i11.SplitButtonCustomMessagesComponent, i12.ToggleButtonTabStopDirective, i4.ButtonItemTemplateDirective, i13.SpeechToTextButtonComponent, i12.ToggleButtonTabStopDirective], exports: [i1.ButtonComponent, i1.ButtonComponent, i2.ButtonGroupComponent, i3.DropDownButtonComponent, i4.ButtonItemTemplateDirective, i5.ChipComponent, i5.ChipComponent, i6.ChipListComponent, i7.FloatingActionButtonComponent, i8.DialItemTemplateDirective, i9.FloatingActionButtonTemplateDirective, i10.SplitButtonComponent, i11.SplitButtonCustomMessagesComponent, i12.ToggleButtonTabStopDirective, i4.ButtonItemTemplateDirective, i13.SpeechToTextButtonComponent, i12.ToggleButtonTabStopDirective] });
49
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonsModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [i1.ButtonComponent, i1.ButtonComponent, i3.DropDownButtonComponent, i5.ChipComponent, i5.ChipComponent, i7.FloatingActionButtonComponent, i10.SplitButtonComponent, i13.SpeechToTextButtonComponent] });
49
50
  }
50
51
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonsModule, decorators: [{
51
52
  type: NgModule,
@@ -11,7 +11,7 @@ import { packageMetadata } from '../package-metadata';
11
11
  import { closest, getStylingClasses, getThemeColorClasses, isObjectEmpty } from '../util';
12
12
  import { moreVerticalIcon, xCircleIcon } from '@progress/kendo-svg-icons';
13
13
  import { IconWrapperComponent } from '@progress/kendo-angular-icons';
14
- import { NgIf, NgClass, NgStyle } from '@angular/common';
14
+ import { NgIf, NgStyle } from '@angular/common';
15
15
  import * as i0 from "@angular/core";
16
16
  import * as i1 from "@progress/kendo-angular-l10n";
17
17
  const DEFAULT_SIZE = 'medium';
@@ -493,7 +493,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
493
493
  }
494
494
  ],
495
495
  standalone: true,
496
- imports: [NgIf, NgStyle, IconWrapperComponent, NgClass]
496
+ imports: [NgIf, NgStyle, IconWrapperComponent]
497
497
  }]
498
498
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { label: [{
499
499
  type: Input
@@ -2,6 +2,7 @@
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 { ToggleButtonTabStopDirective } from '@progress/kendo-angular-common';
5
6
  import { ButtonComponent } from './button/button.component';
6
7
  import { ButtonGroupComponent } from './buttongroup/buttongroup.component';
7
8
  import { ChipListComponent } from './chip/chip-list.component';
@@ -13,7 +14,7 @@ import { FloatingActionButtonTemplateDirective } from './floatingactionbutton/te
13
14
  import { SplitButtonCustomMessagesComponent } from './splitbutton/localization/custom-messages.component';
14
15
  import { SplitButtonComponent } from './splitbutton/splitbutton.component';
15
16
  import { ButtonItemTemplateDirective } from './listbutton/button-item-template.directive';
16
- import { ToggleButtonTabStopDirective } from '@progress/kendo-angular-common';
17
+ import { SpeechToTextButtonComponent } from './speechtotextbutton/speechtotextbutton.component';
17
18
  /**
18
19
  * Use the `KENDO_BUTTON` utility array to add all Button-related components and directives to a standalone Angular component.
19
20
  *
@@ -134,6 +135,22 @@ export const KENDO_SPLITBUTTON = [
134
135
  ToggleButtonTabStopDirective,
135
136
  ButtonItemTemplateDirective
136
137
  ];
138
+ /**
139
+ * Use the `KENDO_SPEECHTOTEXTBUTTON` utility array to add all SpeechToTextButton-related components and directives to a standalone Angular component.
140
+ *
141
+ * @example
142
+ * ```typescript
143
+ * @Component({
144
+ * standalone: true,
145
+ * imports: [KENDO_SPEECHTOTEXTBUTTON],
146
+ * // ...
147
+ * })
148
+ * export class MyComponent {}
149
+ * ```
150
+ */
151
+ export const KENDO_SPEECHTOTEXTBUTTON = [
152
+ SpeechToTextButtonComponent
153
+ ];
137
154
  /**
138
155
  * Use the `KENDO_BUTTONS` utility array to add all `@progress/kendo-angular-buttons`-related components and directives to a standalone Angular component.
139
156
  *
@@ -154,5 +171,6 @@ export const KENDO_BUTTONS = [
154
171
  ...KENDO_CHIP,
155
172
  ...KENDO_CHIPLIST,
156
173
  ...KENDO_FLOATINGACTIONBUTTON,
157
- ...KENDO_SPLITBUTTON
174
+ ...KENDO_SPLITBUTTON,
175
+ ...KENDO_SPEECHTOTEXTBUTTON
158
176
  ];
package/esm2022/index.mjs CHANGED
@@ -23,6 +23,9 @@ export { FloatingActionButtonModule } from './floatingactionbutton/floatingactio
23
23
  export { FloatingActionButtonComponent } from './floatingactionbutton/floatingactionbutton.component';
24
24
  export { FloatingActionButtonTemplateDirective } from './floatingactionbutton/templates/fab-template.directive';
25
25
  export { DialItemTemplateDirective } from './floatingactionbutton/templates/dial-item-template.directive';
26
+ // SpeechToTextButton
27
+ export { SpeechToTextButtonComponent } from './speechtotextbutton/speechtotextbutton.component';
28
+ export { SpeechToTextButtonModule } from './speechtotextbutton/speechtotextbutton.module';
26
29
  export { FocusableDirective } from './focusable/focusable.directive';
27
30
  export { PreventableEvent } from './preventable-event';
28
31
  export { ToggleButtonTabStopDirective } from '@progress/kendo-angular-common';
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1751639440,
14
- version: '19.2.1-develop.4',
13
+ publishDate: 1751896251,
14
+ version: '19.3.0-develop.1',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};