@progress/kendo-angular-buttons 21.4.1 → 22.0.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.
- package/fesm2022/progress-kendo-angular-buttons.mjs +105 -105
- package/listbutton/list-button.d.ts +1 -1
- package/package.json +11 -19
- package/splitbutton/localization/messages.d.ts +1 -1
- package/esm2022/button/button-settings.mjs +0 -5
- package/esm2022/button/button.component.mjs +0 -558
- package/esm2022/button/button.module.mjs +0 -43
- package/esm2022/button/button.service.mjs +0 -22
- package/esm2022/button/selection-settings.mjs +0 -5
- package/esm2022/buttongroup/buttongroup.component.mjs +0 -340
- package/esm2022/buttongroup/buttongroup.module.mjs +0 -49
- package/esm2022/buttons.module.mjs +0 -58
- package/esm2022/chip/chip-content-click-event-args.interface.mjs +0 -5
- package/esm2022/chip/chip-list-remove-event-args.interface.mjs +0 -5
- package/esm2022/chip/chip-list.component.mjs +0 -360
- package/esm2022/chip/chip-remove-event-args.interface.mjs +0 -5
- package/esm2022/chip/chip.component.mjs +0 -585
- package/esm2022/chip/chip.module.mjs +0 -45
- package/esm2022/chip/models/avatar-settings.interface.mjs +0 -5
- package/esm2022/chip/models/selection.mjs +0 -5
- package/esm2022/common/models/arrow-settings.mjs +0 -5
- package/esm2022/common/models/fillmode.mjs +0 -5
- package/esm2022/common/models/rounded.mjs +0 -5
- package/esm2022/common/models/size.mjs +0 -5
- package/esm2022/common/models/styling-classes.mjs +0 -5
- package/esm2022/common/models/theme-color.mjs +0 -5
- package/esm2022/common/models.mjs +0 -10
- package/esm2022/direction.mjs +0 -5
- package/esm2022/directives.mjs +0 -176
- package/esm2022/dropdownbutton/dropdownbutton.component.mjs +0 -482
- package/esm2022/dropdownbutton/dropdownbutton.module.mjs +0 -50
- package/esm2022/floatingactionbutton/animations/animations.mjs +0 -33
- package/esm2022/floatingactionbutton/dial-item.component.mjs +0 -161
- package/esm2022/floatingactionbutton/dial-list.component.mjs +0 -98
- package/esm2022/floatingactionbutton/floatingactionbutton.component.mjs +0 -954
- package/esm2022/floatingactionbutton/floatingactionbutton.module.mjs +0 -47
- package/esm2022/floatingactionbutton/models/align.mjs +0 -5
- package/esm2022/floatingactionbutton/models/item-animation.interface.mjs +0 -5
- package/esm2022/floatingactionbutton/models/item-click.event.mjs +0 -5
- package/esm2022/floatingactionbutton/models/item.interface.mjs +0 -5
- package/esm2022/floatingactionbutton/models/offset.mjs +0 -5
- package/esm2022/floatingactionbutton/models/position-mode.mjs +0 -5
- package/esm2022/floatingactionbutton/templates/dial-item-template.directive.mjs +0 -37
- package/esm2022/floatingactionbutton/templates/fab-template.directive.mjs +0 -38
- package/esm2022/floatingactionbutton/utils.mjs +0 -38
- package/esm2022/focusable/focus.service.mjs +0 -38
- package/esm2022/focusable/focusable.directive.mjs +0 -67
- package/esm2022/index.mjs +0 -33
- package/esm2022/listbutton/button-item-template.directive.mjs +0 -47
- package/esm2022/listbutton/container.service.mjs +0 -18
- package/esm2022/listbutton/list-button.mjs +0 -461
- package/esm2022/listbutton/list-item-model.mjs +0 -5
- package/esm2022/listbutton/list.component.mjs +0 -177
- package/esm2022/listbutton/popup-settings.mjs +0 -5
- package/esm2022/navigation/key-events.mjs +0 -13
- package/esm2022/navigation/navigation-action.mjs +0 -20
- package/esm2022/navigation/navigation-config.mjs +0 -9
- package/esm2022/navigation/navigation.service.mjs +0 -111
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/preventable-event.mjs +0 -25
- package/esm2022/progress-kendo-angular-buttons.mjs +0 -8
- package/esm2022/speechtotextbutton/models/error-event.mjs +0 -5
- package/esm2022/speechtotextbutton/models/integration-mode.mjs +0 -5
- package/esm2022/speechtotextbutton/models/result-event.mjs +0 -5
- package/esm2022/speechtotextbutton/models/speechtotextbutton-settings.mjs +0 -5
- package/esm2022/speechtotextbutton/speechtotextbutton.component.mjs +0 -532
- package/esm2022/speechtotextbutton/speechtotextbutton.module.mjs +0 -31
- package/esm2022/splitbutton/localization/custom-messages.component.mjs +0 -40
- package/esm2022/splitbutton/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/splitbutton/localization/messages.mjs +0 -50
- package/esm2022/splitbutton/splitbutton.component.mjs +0 -761
- package/esm2022/splitbutton/splitbutton.module.mjs +0 -37
- package/esm2022/util.mjs +0 -108
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Injectable } from '@angular/core';
|
|
6
|
-
import { Subject } from 'rxjs';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export class KendoButtonService {
|
|
12
|
-
buttonClicked = new Subject();
|
|
13
|
-
buttonClicked$ = this.buttonClicked.asObservable();
|
|
14
|
-
click(button) {
|
|
15
|
-
this.buttonClicked.next(button);
|
|
16
|
-
}
|
|
17
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: KendoButtonService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: KendoButtonService });
|
|
19
|
-
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: KendoButtonService, decorators: [{
|
|
21
|
-
type: Injectable
|
|
22
|
-
}] });
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ButtonComponent } from '../button/button.component';
|
|
6
|
-
import { Component, EventEmitter, Output, Input, ContentChildren, QueryList, HostBinding, isDevMode, ElementRef, Renderer2 } from '@angular/core';
|
|
7
|
-
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { isChanged, Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
9
|
-
import { KendoButtonService } from '../button/button.service';
|
|
10
|
-
import { fromEvent, Subscription } from 'rxjs';
|
|
11
|
-
import { filter } from 'rxjs/operators';
|
|
12
|
-
import { isPresent } from '../util';
|
|
13
|
-
import { PreventableEvent } from '../preventable-event';
|
|
14
|
-
import { packageMetadata } from '../package-metadata';
|
|
15
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
16
|
-
import * as i0 from "@angular/core";
|
|
17
|
-
import * as i1 from "../button/button.service";
|
|
18
|
-
import * as i2 from "@progress/kendo-angular-l10n";
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
const tabindex = 'tabindex';
|
|
23
|
-
/**
|
|
24
|
-
* Represents the Kendo UI ButtonGroup component for Angular.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```html
|
|
28
|
-
* <kendo-buttongroup>
|
|
29
|
-
* <button kendoButton>Left</button>
|
|
30
|
-
* <button kendoButton>Middle</button>
|
|
31
|
-
* <button kendoButton>Right</button>
|
|
32
|
-
* </kendo-buttongroup>
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* Supported children components are: {@link ButtonComponent}.
|
|
37
|
-
*/
|
|
38
|
-
export class ButtonGroupComponent {
|
|
39
|
-
service;
|
|
40
|
-
renderer;
|
|
41
|
-
element;
|
|
42
|
-
/**
|
|
43
|
-
* To disable a specific button, set **only** its `disabled` property to `true`.
|
|
44
|
-
* If you also set the ButtonGroup `disabled` property, it takes precedence over
|
|
45
|
-
* the `disabled` properties of the underlying buttons and they are ignored.
|
|
46
|
-
*/
|
|
47
|
-
disabled;
|
|
48
|
-
/**
|
|
49
|
-
* Sets the selection mode of the ButtonGroup.
|
|
50
|
-
*
|
|
51
|
-
* @default 'multiple'
|
|
52
|
-
*/
|
|
53
|
-
selection = 'multiple';
|
|
54
|
-
/**
|
|
55
|
-
* Sets the width of the ButtonGroup.
|
|
56
|
-
* When set, the buttons resize automatically to fill the full width of the group wrapper and acquire the same width.
|
|
57
|
-
*/
|
|
58
|
-
width;
|
|
59
|
-
/**
|
|
60
|
-
* Specifies the [`tabIndex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
61
|
-
*/
|
|
62
|
-
set tabIndex(value) {
|
|
63
|
-
this._tabIndex = value;
|
|
64
|
-
this.currentTabIndex = value;
|
|
65
|
-
}
|
|
66
|
-
get tabIndex() {
|
|
67
|
-
return this._tabIndex;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* When set to `true`, the component is a single tab-stop,
|
|
71
|
-
* and focus moves through the inner buttons using the arrow keys.
|
|
72
|
-
*
|
|
73
|
-
* When set to `false`, the inner buttons are part of the natural tab sequence of the page.
|
|
74
|
-
*
|
|
75
|
-
* @default true
|
|
76
|
-
*/
|
|
77
|
-
navigable = true;
|
|
78
|
-
/**
|
|
79
|
-
* Fires every time keyboard navigation occurs within the ButtonGroup.
|
|
80
|
-
*/
|
|
81
|
-
navigate = new EventEmitter();
|
|
82
|
-
buttons;
|
|
83
|
-
_tabIndex = 0;
|
|
84
|
-
currentTabIndex = 0;
|
|
85
|
-
lastFocusedIndex = -1;
|
|
86
|
-
direction;
|
|
87
|
-
subs = new Subscription();
|
|
88
|
-
wrapperClasses = true;
|
|
89
|
-
get disabledClass() {
|
|
90
|
-
return this.disabled;
|
|
91
|
-
}
|
|
92
|
-
get stretchedClass() {
|
|
93
|
-
return !!this.width;
|
|
94
|
-
}
|
|
95
|
-
role = 'group';
|
|
96
|
-
get dir() {
|
|
97
|
-
return this.direction;
|
|
98
|
-
}
|
|
99
|
-
get ariaDisabled() {
|
|
100
|
-
return this.disabled;
|
|
101
|
-
}
|
|
102
|
-
get wrapperWidth() {
|
|
103
|
-
return this.width;
|
|
104
|
-
}
|
|
105
|
-
get wrapperTabIndex() {
|
|
106
|
-
if (this.disabled) {
|
|
107
|
-
return undefined;
|
|
108
|
-
}
|
|
109
|
-
return this.navigable ? this.currentTabIndex : undefined;
|
|
110
|
-
}
|
|
111
|
-
constructor(service, localization, renderer, element) {
|
|
112
|
-
this.service = service;
|
|
113
|
-
this.renderer = renderer;
|
|
114
|
-
this.element = element;
|
|
115
|
-
validatePackage(packageMetadata);
|
|
116
|
-
this.subs.add(localization.changes.subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr'));
|
|
117
|
-
}
|
|
118
|
-
ngOnInit() {
|
|
119
|
-
this.subs.add(this.service.buttonClicked$.subscribe((button) => {
|
|
120
|
-
let newSelectionValue;
|
|
121
|
-
if (this.isSelectionSingle()) {
|
|
122
|
-
newSelectionValue = true;
|
|
123
|
-
this.deactivate(this.buttons.filter(current => current !== button));
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
if (this.navigable) {
|
|
127
|
-
this.defocus(this.buttons.toArray());
|
|
128
|
-
}
|
|
129
|
-
newSelectionValue = !button.selected;
|
|
130
|
-
}
|
|
131
|
-
if (button.togglable) {
|
|
132
|
-
button.setSelected(newSelectionValue);
|
|
133
|
-
}
|
|
134
|
-
if (this.navigable) {
|
|
135
|
-
this.currentTabIndex = -1;
|
|
136
|
-
this.renderer.setAttribute(button, tabindex, '0');
|
|
137
|
-
}
|
|
138
|
-
}));
|
|
139
|
-
this.handleSubs('focus', () => this.navigable, this.focusHandler);
|
|
140
|
-
this.handleSubs('keydown', () => this.navigable && !this.disabled, (event) => this.navigateFocus(event));
|
|
141
|
-
this.handleSubs('focusout', (event) => this.navigable && event.relatedTarget && event.relatedTarget.parentNode !== this.element.nativeElement, () => {
|
|
142
|
-
this.lastFocusedIndex = this.buttons.toArray().findIndex(button => button.tabIndex !== -1);
|
|
143
|
-
this.defocus(this.buttons.toArray());
|
|
144
|
-
this.currentTabIndex = this.tabIndex;
|
|
145
|
-
});
|
|
146
|
-
this.subs.add(fromEvent(this.element.nativeElement, 'focusout')
|
|
147
|
-
.pipe(filter((event) => this.navigable && event.relatedTarget && event.relatedTarget.parentNode !== this.element.nativeElement))
|
|
148
|
-
.subscribe(() => {
|
|
149
|
-
this.defocus(this.buttons.toArray());
|
|
150
|
-
this.currentTabIndex = this.tabIndex;
|
|
151
|
-
}));
|
|
152
|
-
}
|
|
153
|
-
ngOnChanges(changes) {
|
|
154
|
-
if (isChanged('disabled', changes)) {
|
|
155
|
-
this.buttons.forEach((button) => {
|
|
156
|
-
if (isPresent(this.disabled)) {
|
|
157
|
-
button.disabled = this.disabled;
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
if (isChanged('navigable', changes)) {
|
|
162
|
-
if (changes['navigable'].currentValue) {
|
|
163
|
-
this.defocus(this.buttons.toArray());
|
|
164
|
-
this.currentTabIndex = 0;
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
this.currentTabIndex = -1;
|
|
168
|
-
this.buttons.forEach((button) => this.renderer.setAttribute(button, tabindex, '0'));
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
ngAfterContentInit() {
|
|
173
|
-
if (!this.navigable) {
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
this.defocus(this.buttons.toArray());
|
|
177
|
-
}
|
|
178
|
-
ngAfterViewChecked() {
|
|
179
|
-
if (this.buttons.length) {
|
|
180
|
-
this.renderer.addClass(this.buttons.first.element, 'k-group-start');
|
|
181
|
-
this.renderer.addClass(this.buttons.last.element, 'k-group-end');
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
ngOnDestroy() {
|
|
185
|
-
this.subs.unsubscribe();
|
|
186
|
-
}
|
|
187
|
-
ngAfterContentChecked() {
|
|
188
|
-
this.verifySettings();
|
|
189
|
-
}
|
|
190
|
-
navigateFocus(event) {
|
|
191
|
-
const navigationButtons = this.buttons.toArray().filter(button => !button.disabled);
|
|
192
|
-
const focusedIndex = navigationButtons.findIndex(current => current.element.tabIndex !== -1);
|
|
193
|
-
const firstIndex = 0;
|
|
194
|
-
const lastIndex = navigationButtons.length - 1;
|
|
195
|
-
const eventArgs = new PreventableEvent();
|
|
196
|
-
const code = normalizeKeys(event);
|
|
197
|
-
if (code === Keys.ArrowRight && focusedIndex < lastIndex) {
|
|
198
|
-
this.navigate.emit(eventArgs);
|
|
199
|
-
if (!eventArgs.isDefaultPrevented()) {
|
|
200
|
-
this.defocus(navigationButtons);
|
|
201
|
-
this.focus(navigationButtons.filter((_current, index) => {
|
|
202
|
-
return index === focusedIndex + 1;
|
|
203
|
-
}));
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
if (code === Keys.ArrowLeft && focusedIndex > firstIndex) {
|
|
207
|
-
this.navigate.emit(eventArgs);
|
|
208
|
-
if (!eventArgs.isDefaultPrevented()) {
|
|
209
|
-
this.defocus(navigationButtons);
|
|
210
|
-
this.focus(navigationButtons.filter((_current, index) => {
|
|
211
|
-
return index === focusedIndex - 1;
|
|
212
|
-
}));
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
deactivate(buttons) {
|
|
217
|
-
buttons.forEach((button) => {
|
|
218
|
-
button.setSelected(false);
|
|
219
|
-
if (this.navigable) {
|
|
220
|
-
this.renderer.setAttribute(button, tabindex, '-1');
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
activate(buttons) {
|
|
225
|
-
buttons.forEach((button) => {
|
|
226
|
-
button.setSelected(true);
|
|
227
|
-
if (this.navigable) {
|
|
228
|
-
this.renderer.setAttribute(button, tabindex, '0');
|
|
229
|
-
}
|
|
230
|
-
button.focus();
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
defocus(buttons) {
|
|
234
|
-
buttons.forEach((button) => {
|
|
235
|
-
this.renderer.setAttribute(button, tabindex, '-1');
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
focus(buttons) {
|
|
239
|
-
buttons.forEach((button) => {
|
|
240
|
-
this.renderer.setAttribute(button, tabindex, '0');
|
|
241
|
-
button.focus();
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
verifySettings() {
|
|
245
|
-
if (isDevMode()) {
|
|
246
|
-
if (this.isSelectionSingle() && this.buttons.filter(button => button.selected).length > 1) {
|
|
247
|
-
throw new Error('Having multiple selected buttons with single selection mode is not supported');
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
isSelectionSingle() {
|
|
252
|
-
return this.selection === 'single';
|
|
253
|
-
}
|
|
254
|
-
handleSubs(eventName, predicate, handler) {
|
|
255
|
-
this.subs.add(fromEvent(this.element.nativeElement, eventName)
|
|
256
|
-
.pipe(filter(predicate))
|
|
257
|
-
.subscribe(handler));
|
|
258
|
-
}
|
|
259
|
-
focusHandler = () => {
|
|
260
|
-
this.currentTabIndex = -1;
|
|
261
|
-
this.defocus(this.buttons.toArray());
|
|
262
|
-
const firstFocusableIndex = this.buttons.toArray().findIndex(current => !current.disabled);
|
|
263
|
-
const index = this.lastFocusedIndex === -1 ? firstFocusableIndex : this.lastFocusedIndex;
|
|
264
|
-
this.focus(this.buttons.filter((_current, i) => {
|
|
265
|
-
return i === index;
|
|
266
|
-
}));
|
|
267
|
-
};
|
|
268
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ButtonGroupComponent, deps: [{ token: i1.KendoButtonService }, { token: i2.LocalizationService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
269
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ButtonGroupComponent, isStandalone: true, selector: "kendo-buttongroup", inputs: { disabled: "disabled", selection: "selection", width: "width", tabIndex: "tabIndex", navigable: "navigable" }, outputs: { navigate: "navigate" }, host: { properties: { "class.k-button-group": "this.wrapperClasses", "class.k-disabled": "this.disabledClass", "class.k-button-group-stretched": "this.stretchedClass", "attr.role": "this.role", "attr.dir": "this.dir", "attr.aria-disabled": "this.ariaDisabled", "style.width": "this.wrapperWidth", "attr.tabindex": "this.wrapperTabIndex" } }, providers: [
|
|
270
|
-
KendoButtonService,
|
|
271
|
-
LocalizationService,
|
|
272
|
-
{
|
|
273
|
-
provide: L10N_PREFIX,
|
|
274
|
-
useValue: 'kendo.buttongroup'
|
|
275
|
-
}
|
|
276
|
-
], queries: [{ propertyName: "buttons", predicate: ButtonComponent }], exportAs: ["kendoButtonGroup"], usesOnChanges: true, ngImport: i0, template: `
|
|
277
|
-
<ng-content select="[kendoButton]"></ng-content>
|
|
278
|
-
`, isInline: true });
|
|
279
|
-
}
|
|
280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ButtonGroupComponent, decorators: [{
|
|
281
|
-
type: Component,
|
|
282
|
-
args: [{
|
|
283
|
-
exportAs: 'kendoButtonGroup',
|
|
284
|
-
providers: [
|
|
285
|
-
KendoButtonService,
|
|
286
|
-
LocalizationService,
|
|
287
|
-
{
|
|
288
|
-
provide: L10N_PREFIX,
|
|
289
|
-
useValue: 'kendo.buttongroup'
|
|
290
|
-
}
|
|
291
|
-
],
|
|
292
|
-
selector: 'kendo-buttongroup',
|
|
293
|
-
template: `
|
|
294
|
-
<ng-content select="[kendoButton]"></ng-content>
|
|
295
|
-
`,
|
|
296
|
-
standalone: true
|
|
297
|
-
}]
|
|
298
|
-
}], ctorParameters: () => [{ type: i1.KendoButtonService }, { type: i2.LocalizationService }, { type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { disabled: [{
|
|
299
|
-
type: Input,
|
|
300
|
-
args: ['disabled']
|
|
301
|
-
}], selection: [{
|
|
302
|
-
type: Input,
|
|
303
|
-
args: ['selection']
|
|
304
|
-
}], width: [{
|
|
305
|
-
type: Input,
|
|
306
|
-
args: ['width']
|
|
307
|
-
}], tabIndex: [{
|
|
308
|
-
type: Input
|
|
309
|
-
}], navigable: [{
|
|
310
|
-
type: Input
|
|
311
|
-
}], navigate: [{
|
|
312
|
-
type: Output
|
|
313
|
-
}], buttons: [{
|
|
314
|
-
type: ContentChildren,
|
|
315
|
-
args: [ButtonComponent]
|
|
316
|
-
}], wrapperClasses: [{
|
|
317
|
-
type: HostBinding,
|
|
318
|
-
args: ['class.k-button-group']
|
|
319
|
-
}], disabledClass: [{
|
|
320
|
-
type: HostBinding,
|
|
321
|
-
args: ['class.k-disabled']
|
|
322
|
-
}], stretchedClass: [{
|
|
323
|
-
type: HostBinding,
|
|
324
|
-
args: ['class.k-button-group-stretched']
|
|
325
|
-
}], role: [{
|
|
326
|
-
type: HostBinding,
|
|
327
|
-
args: ['attr.role']
|
|
328
|
-
}], dir: [{
|
|
329
|
-
type: HostBinding,
|
|
330
|
-
args: ['attr.dir']
|
|
331
|
-
}], ariaDisabled: [{
|
|
332
|
-
type: HostBinding,
|
|
333
|
-
args: ['attr.aria-disabled']
|
|
334
|
-
}], wrapperWidth: [{
|
|
335
|
-
type: HostBinding,
|
|
336
|
-
args: ['style.width']
|
|
337
|
-
}], wrapperTabIndex: [{
|
|
338
|
-
type: HostBinding,
|
|
339
|
-
args: ['attr.tabindex']
|
|
340
|
-
}] } });
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgModule } from '@angular/core';
|
|
6
|
-
import { KENDO_BUTTONGROUP } from '../directives';
|
|
7
|
-
import { IconsService } from '@progress/kendo-angular-icons';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../button/button.component";
|
|
10
|
-
import * as i2 from "./buttongroup.component";
|
|
11
|
-
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
12
|
-
/**
|
|
13
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
|
|
14
|
-
* definition for the ButtonGroup directive.
|
|
15
|
-
*
|
|
16
|
-
* Required for adding ButtonGroup features in NgModule-based Angular applications.
|
|
17
|
-
*
|
|
18
|
-
* The package exports:
|
|
19
|
-
* - `ButtonGroupComponent`—The ButtonGroup component class.
|
|
20
|
-
* - `ButtonComponent`—The Button component class.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```typescript
|
|
24
|
-
* import { ButtonGroupModule } from '@progress/kendo-angular-buttons';
|
|
25
|
-
* import { NgModule } from '@angular/core';
|
|
26
|
-
* import { BrowserModule } from '@angular/platform-browser';
|
|
27
|
-
* import { AppComponent } from './app.component';
|
|
28
|
-
*
|
|
29
|
-
* @NgModule({
|
|
30
|
-
* declarations: [AppComponent],
|
|
31
|
-
* imports: [BrowserModule, ButtonGroupModule],
|
|
32
|
-
* bootstrap: [AppComponent]
|
|
33
|
-
* })
|
|
34
|
-
* export class AppModule {}
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export class ButtonGroupModule {
|
|
38
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
39
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ButtonGroupModule, imports: [i1.ButtonComponent, i2.ButtonGroupComponent], exports: [i1.ButtonComponent, i2.ButtonGroupComponent] });
|
|
40
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ButtonGroupModule, providers: [IconsService], imports: [i1.ButtonComponent] });
|
|
41
|
-
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ButtonGroupModule, decorators: [{
|
|
43
|
-
type: NgModule,
|
|
44
|
-
args: [{
|
|
45
|
-
exports: [...KENDO_BUTTONGROUP],
|
|
46
|
-
imports: [...KENDO_BUTTONGROUP],
|
|
47
|
-
providers: [IconsService]
|
|
48
|
-
}]
|
|
49
|
-
}] });
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgModule } from '@angular/core';
|
|
6
|
-
import { KENDO_BUTTONS } from './directives';
|
|
7
|
-
import { IconsService } from '@progress/kendo-angular-icons';
|
|
8
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
9
|
-
import { KENDO_TOGGLEBUTTONTABSTOP, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "./button/button.component";
|
|
12
|
-
import * as i2 from "./buttongroup/buttongroup.component";
|
|
13
|
-
import * as i3 from "./dropdownbutton/dropdownbutton.component";
|
|
14
|
-
import * as i4 from "./listbutton/button-item-template.directive";
|
|
15
|
-
import * as i5 from "./chip/chip.component";
|
|
16
|
-
import * as i6 from "./chip/chip-list.component";
|
|
17
|
-
import * as i7 from "./floatingactionbutton/floatingactionbutton.component";
|
|
18
|
-
import * as i8 from "./floatingactionbutton/templates/dial-item-template.directive";
|
|
19
|
-
import * as i9 from "./floatingactionbutton/templates/fab-template.directive";
|
|
20
|
-
import * as i10 from "./splitbutton/splitbutton.component";
|
|
21
|
-
import * as i11 from "./splitbutton/localization/custom-messages.component";
|
|
22
|
-
import * as i12 from "@progress/kendo-angular-common";
|
|
23
|
-
import * as i13 from "./speechtotextbutton/speechtotextbutton.component";
|
|
24
|
-
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
25
|
-
/**
|
|
26
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
|
|
27
|
-
* definition for the Buttons components.
|
|
28
|
-
*
|
|
29
|
-
* Required for adding all Button features in NgModule-based Angular applications.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
*
|
|
33
|
-
* ```ts-no-run
|
|
34
|
-
* import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
35
|
-
* import { NgModule } from '@angular/core';
|
|
36
|
-
* import { AppComponent } from './app.component';
|
|
37
|
-
*
|
|
38
|
-
* @NgModule({
|
|
39
|
-
* declarations: [AppComponent], // declare app component
|
|
40
|
-
* imports: [BrowserModule, ButtonsModule], // import Buttons module
|
|
41
|
-
* bootstrap: [AppComponent]
|
|
42
|
-
* })
|
|
43
|
-
* export class AppModule {}
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
export class ButtonsModule {
|
|
47
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ButtonsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
48
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", 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: "18.2.14", 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] });
|
|
50
|
-
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ButtonsModule, decorators: [{
|
|
52
|
-
type: NgModule,
|
|
53
|
-
args: [{
|
|
54
|
-
imports: [...KENDO_BUTTONS, ...KENDO_TOGGLEBUTTONTABSTOP],
|
|
55
|
-
exports: [...KENDO_BUTTONS, ...KENDO_TOGGLEBUTTONTABSTOP],
|
|
56
|
-
providers: [IconsService, PopupService, ResizeBatchService]
|
|
57
|
-
}]
|
|
58
|
-
}] });
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|