@progress/kendo-angular-buttons 25.0.0-develop.2 → 25.0.0-develop.21
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 +433 -319
- package/index.d.ts +66 -39
- package/package-metadata.mjs +2 -2
- package/package.json +7 -7
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { Injectable, isDevMode, EventEmitter, HostListener, HostBinding, Output, Input, Optional, Component, ContentChildren, Directive, InjectionToken, Inject, ElementRef, ViewContainerRef, ViewChild, ContentChild, forwardRef, SkipSelf,
|
|
6
|
+
import { Injectable, isDevMode, EventEmitter, signal, HostListener, HostBinding, Output, Input, Optional, ChangeDetectionStrategy, Component, ContentChildren, Directive, InjectionToken, Inject, ElementRef, ViewContainerRef, ViewChild, ContentChild, forwardRef, SkipSelf, afterNextRender, NgModule } from '@angular/core';
|
|
7
7
|
import { Subject, Subscription, fromEvent, merge, of, Observable, from } from 'rxjs';
|
|
8
8
|
import * as i12 from '@progress/kendo-angular-common';
|
|
9
|
-
import { isDocumentAvailable, isFirefox, isSafari,
|
|
9
|
+
import { isDocumentAvailable, isFirefox, isSafari, hasObservers, KENDO_WEBMCP_HOST, provideComponentName, isChanged, normalizeKeys, Keys, TemplateContextDirective, MultiTabStop, guid, parseCSSClassNames, isPresent as isPresent$1, EventsOutsideAngularDirective, replaceMessagePlaceholder, anyChanged, PreventableEvent as PreventableEvent$1, ResizeSensorComponent, ToggleButtonTabStopDirective, ResizeBatchService, KENDO_TOGGLEBUTTONTABSTOP } from '@progress/kendo-angular-common';
|
|
10
10
|
export { ToggleButtonTabStopDirective } from '@progress/kendo-angular-common';
|
|
11
11
|
import { chevronDownIcon, xCircleIcon, moreVerticalIcon, microphoneIcon, stopIcon, pasteSparkleIcon } from '@progress/kendo-svg-icons';
|
|
12
12
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
@@ -34,10 +34,10 @@ class KendoButtonService {
|
|
|
34
34
|
click(button) {
|
|
35
35
|
this.buttonClicked.next(button);
|
|
36
36
|
}
|
|
37
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
38
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: KendoButtonService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
38
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: KendoButtonService });
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: KendoButtonService, decorators: [{
|
|
41
41
|
type: Injectable
|
|
42
42
|
}] });
|
|
43
43
|
|
|
@@ -49,8 +49,8 @@ const packageMetadata = {
|
|
|
49
49
|
productName: 'Kendo UI for Angular',
|
|
50
50
|
productCode: 'KENDOUIANGULAR',
|
|
51
51
|
productCodes: ['KENDOUIANGULAR'],
|
|
52
|
-
publishDate:
|
|
53
|
-
version: '25.0.0-develop.
|
|
52
|
+
publishDate: 1785852409,
|
|
53
|
+
version: '25.0.0-develop.21',
|
|
54
54
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -199,7 +199,13 @@ class ButtonComponent {
|
|
|
199
199
|
*
|
|
200
200
|
* @default false
|
|
201
201
|
*/
|
|
202
|
-
toggleable
|
|
202
|
+
set toggleable(value) {
|
|
203
|
+
this._toggleable.set(value);
|
|
204
|
+
this.toggleAriaPressed(value);
|
|
205
|
+
}
|
|
206
|
+
get toggleable() {
|
|
207
|
+
return this._toggleable();
|
|
208
|
+
}
|
|
203
209
|
/**
|
|
204
210
|
* Backwards-compatible alias
|
|
205
211
|
*
|
|
@@ -221,10 +227,10 @@ class ButtonComponent {
|
|
|
221
227
|
* @default false
|
|
222
228
|
*/
|
|
223
229
|
get selected() {
|
|
224
|
-
return this._selected || false;
|
|
230
|
+
return this._selected() || false;
|
|
225
231
|
}
|
|
226
232
|
set selected(value) {
|
|
227
|
-
this._selected
|
|
233
|
+
this._selected.set(value);
|
|
228
234
|
}
|
|
229
235
|
/**
|
|
230
236
|
* @hidden
|
|
@@ -292,10 +298,10 @@ class ButtonComponent {
|
|
|
292
298
|
*/
|
|
293
299
|
set size(size) {
|
|
294
300
|
this.handleClasses(size, 'size');
|
|
295
|
-
this._size
|
|
301
|
+
this._size.set(size);
|
|
296
302
|
}
|
|
297
303
|
get size() {
|
|
298
|
-
return this._size;
|
|
304
|
+
return this._size();
|
|
299
305
|
}
|
|
300
306
|
/**
|
|
301
307
|
* Sets the border radius of the Button.
|
|
@@ -303,10 +309,10 @@ class ButtonComponent {
|
|
|
303
309
|
*/
|
|
304
310
|
set rounded(rounded) {
|
|
305
311
|
this.handleClasses(rounded, 'rounded');
|
|
306
|
-
this._rounded
|
|
312
|
+
this._rounded.set(rounded);
|
|
307
313
|
}
|
|
308
314
|
get rounded() {
|
|
309
|
-
return this._rounded;
|
|
315
|
+
return this._rounded();
|
|
310
316
|
}
|
|
311
317
|
/**
|
|
312
318
|
* Sets the background and border styles of the Button.
|
|
@@ -314,10 +320,10 @@ class ButtonComponent {
|
|
|
314
320
|
*/
|
|
315
321
|
set fillMode(fillMode) {
|
|
316
322
|
this.handleClasses(fillMode, 'fillMode');
|
|
317
|
-
this._fillMode
|
|
323
|
+
this._fillMode.set(fillMode);
|
|
318
324
|
}
|
|
319
325
|
get fillMode() {
|
|
320
|
-
return this._fillMode;
|
|
326
|
+
return this._fillMode();
|
|
321
327
|
}
|
|
322
328
|
/**
|
|
323
329
|
* Sets a predefined theme color for the Button.
|
|
@@ -326,10 +332,10 @@ class ButtonComponent {
|
|
|
326
332
|
*/
|
|
327
333
|
set themeColor(themeColor) {
|
|
328
334
|
this.handleThemeColor(themeColor);
|
|
329
|
-
this._themeColor
|
|
335
|
+
this._themeColor.set(themeColor);
|
|
330
336
|
}
|
|
331
337
|
get themeColor() {
|
|
332
|
-
return this._themeColor;
|
|
338
|
+
return this._themeColor();
|
|
333
339
|
}
|
|
334
340
|
/**
|
|
335
341
|
* Sets an SVG icon to display inside the Button.
|
|
@@ -353,19 +359,26 @@ class ButtonComponent {
|
|
|
353
359
|
*/
|
|
354
360
|
click = new EventEmitter();
|
|
355
361
|
element;
|
|
356
|
-
isDisabled = false;
|
|
357
362
|
chevronDownIcon = chevronDownIcon;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
363
|
+
get isDisabled() {
|
|
364
|
+
return this._disabled();
|
|
365
|
+
}
|
|
366
|
+
set isDisabled(value) {
|
|
367
|
+
this._disabled.set(value);
|
|
368
|
+
}
|
|
369
|
+
_size = signal(undefined, ...(ngDevMode ? [{ debugName: "_size" }] : []));
|
|
370
|
+
_rounded = signal(undefined, ...(ngDevMode ? [{ debugName: "_rounded" }] : []));
|
|
371
|
+
_fillMode = signal(undefined, ...(ngDevMode ? [{ debugName: "_fillMode" }] : []));
|
|
372
|
+
_themeColor = signal(undefined, ...(ngDevMode ? [{ debugName: "_themeColor" }] : []));
|
|
362
373
|
_focused = false;
|
|
363
|
-
direction;
|
|
364
|
-
_selected;
|
|
365
374
|
subs = new Subscription();
|
|
366
375
|
_iconClass;
|
|
367
376
|
_icon;
|
|
368
377
|
_svgIcon;
|
|
378
|
+
_disabled = signal(false, ...(ngDevMode ? [{ debugName: "_disabled" }] : []));
|
|
379
|
+
_selected = signal(false, ...(ngDevMode ? [{ debugName: "_selected" }] : []));
|
|
380
|
+
_toggleable = signal(false, ...(ngDevMode ? [{ debugName: "_toggleable" }] : []));
|
|
381
|
+
_direction = signal('', ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
369
382
|
set isFocused(isFocused) {
|
|
370
383
|
toggleClass('k-focus', isFocused, this.renderer, this.element);
|
|
371
384
|
this._focused = isFocused;
|
|
@@ -381,10 +394,10 @@ class ButtonComponent {
|
|
|
381
394
|
return this.isDisabled;
|
|
382
395
|
}
|
|
383
396
|
get classActive() {
|
|
384
|
-
return this.
|
|
397
|
+
return this._selected();
|
|
385
398
|
}
|
|
386
399
|
get getDirection() {
|
|
387
|
-
return this.
|
|
400
|
+
return this._direction();
|
|
388
401
|
}
|
|
389
402
|
/**
|
|
390
403
|
* @hidden
|
|
@@ -412,8 +425,8 @@ class ButtonComponent {
|
|
|
412
425
|
this.service = service;
|
|
413
426
|
this.ngZone = ngZone;
|
|
414
427
|
validatePackage(packageMetadata);
|
|
415
|
-
this.
|
|
416
|
-
this.subs.add(localization.changes.subscribe(({ rtl }) =>
|
|
428
|
+
this._direction.set(localization.rtl ? 'rtl' : 'ltr');
|
|
429
|
+
this.subs.add(localization.changes.subscribe(({ rtl }) => this._direction.set(rtl ? 'rtl' : 'ltr')));
|
|
417
430
|
this.element = element.nativeElement;
|
|
418
431
|
this.renderer.addClass(this.element, 'k-button');
|
|
419
432
|
}
|
|
@@ -432,11 +445,6 @@ class ButtonComponent {
|
|
|
432
445
|
}));
|
|
433
446
|
});
|
|
434
447
|
}
|
|
435
|
-
ngOnChanges(change) {
|
|
436
|
-
if (isChanged('togglable', change) || isChanged('toggleable', change)) {
|
|
437
|
-
this.toggleAriaPressed(this.toggleable);
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
448
|
ngOnDestroy() {
|
|
441
449
|
this.subs.unsubscribe();
|
|
442
450
|
}
|
|
@@ -536,8 +544,8 @@ class ButtonComponent {
|
|
|
536
544
|
this.renderer.addClass(elem, themeColorClass.toAdd);
|
|
537
545
|
}
|
|
538
546
|
}
|
|
539
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
540
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
547
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: KendoButtonService, optional: true }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
548
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ButtonComponent, isStandalone: true, selector: "button[kendoButton]", inputs: { arrowIcon: "arrowIcon", toggleable: "toggleable", togglable: "togglable", selected: "selected", tabIndex: "tabIndex", imageUrl: "imageUrl", iconPosition: "iconPosition", iconClass: "iconClass", icon: "icon", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", svgIcon: "svgIcon" }, outputs: { selectedChange: "selectedChange", click: "click" }, host: { listeners: { "focus": "onFocus()", "blur": "onBlur()" }, properties: { "class.k-icon-button": "this.iconButtonClass", "class.k-disabled": "this.classDisabled", "class.k-selected": "this.classActive", "attr.dir": "this.getDirection" } }, providers: [
|
|
541
549
|
LocalizationService,
|
|
542
550
|
{
|
|
543
551
|
provide: L10N_PREFIX,
|
|
@@ -546,8 +554,9 @@ class ButtonComponent {
|
|
|
546
554
|
{
|
|
547
555
|
provide: KENDO_WEBMCP_HOST,
|
|
548
556
|
useExisting: ButtonComponent
|
|
549
|
-
}
|
|
550
|
-
|
|
557
|
+
},
|
|
558
|
+
provideComponentName('button')
|
|
559
|
+
], exportAs: ["kendoButton"], ngImport: i0, template: `
|
|
551
560
|
<ng-template #iconTemplate>
|
|
552
561
|
@if (icon || svgIcon) {
|
|
553
562
|
<kendo-icon-wrapper
|
|
@@ -586,11 +595,13 @@ class ButtonComponent {
|
|
|
586
595
|
</span>
|
|
587
596
|
}
|
|
588
597
|
|
|
589
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
598
|
+
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
590
599
|
}
|
|
591
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
600
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
592
601
|
type: Component,
|
|
593
602
|
args: [{
|
|
603
|
+
selector: 'button[kendoButton]',
|
|
604
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
594
605
|
exportAs: 'kendoButton',
|
|
595
606
|
providers: [
|
|
596
607
|
LocalizationService,
|
|
@@ -601,9 +612,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
601
612
|
{
|
|
602
613
|
provide: KENDO_WEBMCP_HOST,
|
|
603
614
|
useExisting: ButtonComponent
|
|
604
|
-
}
|
|
615
|
+
},
|
|
616
|
+
provideComponentName('button')
|
|
605
617
|
],
|
|
606
|
-
selector: 'button[kendoButton]',
|
|
607
618
|
template: `
|
|
608
619
|
<ng-template #iconTemplate>
|
|
609
620
|
@if (icon || svgIcon) {
|
|
@@ -772,7 +783,7 @@ class ButtonGroupComponent {
|
|
|
772
783
|
*/
|
|
773
784
|
set tabIndex(value) {
|
|
774
785
|
this._tabIndex = value;
|
|
775
|
-
this.
|
|
786
|
+
this._currentTabIndex.set(value);
|
|
776
787
|
}
|
|
777
788
|
get tabIndex() {
|
|
778
789
|
return this._tabIndex;
|
|
@@ -795,9 +806,9 @@ class ButtonGroupComponent {
|
|
|
795
806
|
navigate = new EventEmitter();
|
|
796
807
|
buttons;
|
|
797
808
|
_tabIndex = 0;
|
|
798
|
-
|
|
809
|
+
_currentTabIndex = signal(0, ...(ngDevMode ? [{ debugName: "_currentTabIndex" }] : []));
|
|
799
810
|
lastFocusedIndex = -1;
|
|
800
|
-
|
|
811
|
+
_direction = signal(undefined, ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
801
812
|
subs = new Subscription();
|
|
802
813
|
wrapperClasses = true;
|
|
803
814
|
get disabledClass() {
|
|
@@ -808,7 +819,7 @@ class ButtonGroupComponent {
|
|
|
808
819
|
}
|
|
809
820
|
role = 'group';
|
|
810
821
|
get dir() {
|
|
811
|
-
return this.
|
|
822
|
+
return this._direction();
|
|
812
823
|
}
|
|
813
824
|
get ariaDisabled() {
|
|
814
825
|
return this.disabled;
|
|
@@ -820,14 +831,14 @@ class ButtonGroupComponent {
|
|
|
820
831
|
if (this.disabled) {
|
|
821
832
|
return undefined;
|
|
822
833
|
}
|
|
823
|
-
return this.navigable ? this.
|
|
834
|
+
return this.navigable ? this._currentTabIndex() : undefined;
|
|
824
835
|
}
|
|
825
836
|
constructor(service, localization, renderer, element) {
|
|
826
837
|
this.service = service;
|
|
827
838
|
this.renderer = renderer;
|
|
828
839
|
this.element = element;
|
|
829
840
|
validatePackage(packageMetadata);
|
|
830
|
-
this.subs.add(localization.changes.subscribe(({ rtl }) => this.
|
|
841
|
+
this.subs.add(localization.changes.subscribe(({ rtl }) => this._direction.set(rtl ? 'rtl' : 'ltr')));
|
|
831
842
|
}
|
|
832
843
|
ngOnInit() {
|
|
833
844
|
this.subs.add(this.service.buttonClicked$.subscribe((button) => {
|
|
@@ -846,7 +857,7 @@ class ButtonGroupComponent {
|
|
|
846
857
|
button.setSelected(newSelectionValue);
|
|
847
858
|
}
|
|
848
859
|
if (this.navigable) {
|
|
849
|
-
this.
|
|
860
|
+
this._currentTabIndex.set(-1);
|
|
850
861
|
this.renderer.setAttribute(button, tabindex, '0');
|
|
851
862
|
}
|
|
852
863
|
}));
|
|
@@ -855,13 +866,13 @@ class ButtonGroupComponent {
|
|
|
855
866
|
this.handleSubs('focusout', (event) => this.navigable && event.relatedTarget && event.relatedTarget.parentNode !== this.element.nativeElement, () => {
|
|
856
867
|
this.lastFocusedIndex = this.buttons.toArray().findIndex(button => button.tabIndex !== -1);
|
|
857
868
|
this.defocus(this.buttons.toArray());
|
|
858
|
-
this.
|
|
869
|
+
this._currentTabIndex.set(this.tabIndex);
|
|
859
870
|
});
|
|
860
871
|
this.subs.add(fromEvent(this.element.nativeElement, 'focusout')
|
|
861
872
|
.pipe(filter((event) => this.navigable && event.relatedTarget && event.relatedTarget.parentNode !== this.element.nativeElement))
|
|
862
873
|
.subscribe(() => {
|
|
863
874
|
this.defocus(this.buttons.toArray());
|
|
864
|
-
this.
|
|
875
|
+
this._currentTabIndex.set(this.tabIndex);
|
|
865
876
|
}));
|
|
866
877
|
}
|
|
867
878
|
ngOnChanges(changes) {
|
|
@@ -875,10 +886,10 @@ class ButtonGroupComponent {
|
|
|
875
886
|
if (isChanged('navigable', changes)) {
|
|
876
887
|
if (changes['navigable'].currentValue) {
|
|
877
888
|
this.defocus(this.buttons.toArray());
|
|
878
|
-
this.
|
|
889
|
+
this._currentTabIndex.set(0);
|
|
879
890
|
}
|
|
880
891
|
else {
|
|
881
|
-
this.
|
|
892
|
+
this._currentTabIndex.set(-1);
|
|
882
893
|
this.buttons.forEach((button) => this.renderer.setAttribute(button, tabindex, '0'));
|
|
883
894
|
}
|
|
884
895
|
}
|
|
@@ -971,7 +982,7 @@ class ButtonGroupComponent {
|
|
|
971
982
|
.subscribe(handler));
|
|
972
983
|
}
|
|
973
984
|
focusHandler = () => {
|
|
974
|
-
this.
|
|
985
|
+
this._currentTabIndex.set(-1);
|
|
975
986
|
this.defocus(this.buttons.toArray());
|
|
976
987
|
const firstFocusableIndex = this.buttons.toArray().findIndex(current => !current.disabled);
|
|
977
988
|
const index = this.lastFocusedIndex === -1 ? firstFocusableIndex : this.lastFocusedIndex;
|
|
@@ -979,21 +990,24 @@ class ButtonGroupComponent {
|
|
|
979
990
|
return i === index;
|
|
980
991
|
}));
|
|
981
992
|
};
|
|
982
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
983
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
993
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonGroupComponent, deps: [{ token: KendoButtonService }, { token: i1.LocalizationService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
994
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", 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: [
|
|
984
995
|
KendoButtonService,
|
|
985
996
|
LocalizationService,
|
|
986
997
|
{
|
|
987
998
|
provide: L10N_PREFIX,
|
|
988
999
|
useValue: 'kendo.buttongroup'
|
|
989
|
-
}
|
|
1000
|
+
},
|
|
1001
|
+
provideComponentName('buttongroup')
|
|
990
1002
|
], queries: [{ propertyName: "buttons", predicate: ButtonComponent }], exportAs: ["kendoButtonGroup"], usesOnChanges: true, ngImport: i0, template: `
|
|
991
1003
|
<ng-content select="[kendoButton]"></ng-content>
|
|
992
|
-
`, isInline: true });
|
|
1004
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
993
1005
|
}
|
|
994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1006
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonGroupComponent, decorators: [{
|
|
995
1007
|
type: Component,
|
|
996
1008
|
args: [{
|
|
1009
|
+
selector: 'kendo-buttongroup',
|
|
1010
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
997
1011
|
exportAs: 'kendoButtonGroup',
|
|
998
1012
|
providers: [
|
|
999
1013
|
KendoButtonService,
|
|
@@ -1001,9 +1015,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
1001
1015
|
{
|
|
1002
1016
|
provide: L10N_PREFIX,
|
|
1003
1017
|
useValue: 'kendo.buttongroup'
|
|
1004
|
-
}
|
|
1018
|
+
},
|
|
1019
|
+
provideComponentName('buttongroup')
|
|
1005
1020
|
],
|
|
1006
|
-
selector: 'kendo-buttongroup',
|
|
1007
1021
|
template: `
|
|
1008
1022
|
<ng-content select="[kendoButton]"></ng-content>
|
|
1009
1023
|
`,
|
|
@@ -1064,8 +1078,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
1064
1078
|
class ChipComponent {
|
|
1065
1079
|
element;
|
|
1066
1080
|
renderer;
|
|
1067
|
-
ngZone;
|
|
1068
1081
|
localizationService;
|
|
1082
|
+
ngZone;
|
|
1069
1083
|
/**
|
|
1070
1084
|
* Sets the label text of the Chip.
|
|
1071
1085
|
*
|
|
@@ -1096,7 +1110,13 @@ class ChipComponent {
|
|
|
1096
1110
|
* Specifies the selected state of the Chip.
|
|
1097
1111
|
* @default false
|
|
1098
1112
|
*/
|
|
1099
|
-
selected
|
|
1113
|
+
set selected(value) {
|
|
1114
|
+
this._selected.set(value);
|
|
1115
|
+
this.setAriSelected(value);
|
|
1116
|
+
}
|
|
1117
|
+
get selected() {
|
|
1118
|
+
return this._selected();
|
|
1119
|
+
}
|
|
1100
1120
|
/**
|
|
1101
1121
|
* Specifies if the Chip is removable.
|
|
1102
1122
|
* If set to `true`, the Chip renders a remove icon.
|
|
@@ -1201,15 +1221,17 @@ class ChipComponent {
|
|
|
1201
1221
|
return this.disabled || null;
|
|
1202
1222
|
}
|
|
1203
1223
|
get selectedClass() {
|
|
1204
|
-
return this.
|
|
1224
|
+
return this._selected();
|
|
1205
1225
|
}
|
|
1206
1226
|
get focusedClass() {
|
|
1207
|
-
return this.
|
|
1227
|
+
return this._focused();
|
|
1208
1228
|
}
|
|
1209
1229
|
/**
|
|
1210
1230
|
* @hidden
|
|
1211
1231
|
*/
|
|
1212
|
-
direction
|
|
1232
|
+
get direction() {
|
|
1233
|
+
return this._direction();
|
|
1234
|
+
}
|
|
1213
1235
|
/**
|
|
1214
1236
|
* @hidden
|
|
1215
1237
|
*/
|
|
@@ -1226,33 +1248,27 @@ class ChipComponent {
|
|
|
1226
1248
|
_rounded = undefined;
|
|
1227
1249
|
_fillMode = undefined;
|
|
1228
1250
|
_themeColor = undefined;
|
|
1229
|
-
|
|
1251
|
+
_focused = signal(false, ...(ngDevMode ? [{ debugName: "_focused" }] : []));
|
|
1252
|
+
_selected = signal(false, ...(ngDevMode ? [{ debugName: "_selected" }] : []));
|
|
1253
|
+
_direction = signal('', ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
1230
1254
|
subs = new Subscription();
|
|
1231
|
-
constructor(element, renderer,
|
|
1255
|
+
constructor(element, renderer, localizationService, ngZone) {
|
|
1232
1256
|
this.element = element;
|
|
1233
1257
|
this.renderer = renderer;
|
|
1234
|
-
this.ngZone = ngZone;
|
|
1235
1258
|
this.localizationService = localizationService;
|
|
1259
|
+
this.ngZone = ngZone;
|
|
1236
1260
|
validatePackage(packageMetadata);
|
|
1237
|
-
this.
|
|
1261
|
+
this._direction.set(localizationService.rtl ? 'rtl' : 'ltr');
|
|
1238
1262
|
}
|
|
1239
1263
|
ngOnInit() {
|
|
1240
1264
|
this.subs.add(this.localizationService.changes
|
|
1241
|
-
.subscribe(({ rtl }) => this.
|
|
1265
|
+
.subscribe(({ rtl }) => this._direction.set(rtl ? 'rtl' : 'ltr')));
|
|
1242
1266
|
this.renderer.setAttribute(this.element.nativeElement, 'role', 'button');
|
|
1243
|
-
this.renderer.setAttribute(this.element.nativeElement, 'aria-pressed', `${this.
|
|
1267
|
+
this.renderer.setAttribute(this.element.nativeElement, 'aria-pressed', `${this._selected()}`);
|
|
1244
1268
|
}
|
|
1245
1269
|
ngOnDestroy() {
|
|
1246
1270
|
this.subs.unsubscribe();
|
|
1247
1271
|
}
|
|
1248
|
-
ngOnChanges(changes) {
|
|
1249
|
-
if (changes?.['selected']) {
|
|
1250
|
-
const hasAriaSelected = this.element.nativeElement.hasAttribute('aria-selected');
|
|
1251
|
-
if (!hasAriaSelected) {
|
|
1252
|
-
this.renderer.setAttribute(this.element.nativeElement, 'aria-pressed', `${this.selected}`);
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
1272
|
ngAfterViewInit() {
|
|
1257
1273
|
const chip = this.element.nativeElement;
|
|
1258
1274
|
this.attachElementEventHandlers(chip);
|
|
@@ -1380,14 +1396,21 @@ class ChipComponent {
|
|
|
1380
1396
|
});
|
|
1381
1397
|
}
|
|
1382
1398
|
}
|
|
1383
|
-
|
|
1384
|
-
|
|
1399
|
+
setAriSelected(value) {
|
|
1400
|
+
const hasAriaSelected = this.element?.nativeElement.hasAttribute('aria-selected');
|
|
1401
|
+
if (!hasAriaSelected) {
|
|
1402
|
+
this.renderer.setAttribute(this.element.nativeElement, 'aria-pressed', `${value}`);
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChipComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1406
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ChipComponent, isStandalone: true, selector: "kendo-chip", inputs: { label: "label", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", avatarSettings: "avatarSettings", selected: "selected", removable: "removable", removeIcon: "removeIcon", removeSvgIcon: "removeSvgIcon", hasMenu: "hasMenu", menuIcon: "menuIcon", menuSvgIcon: "menuSvgIcon", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor" }, outputs: { remove: "remove", menuToggle: "menuToggle", contentClick: "contentClick" }, host: { properties: { "attr.tabindex": "this.tabIndex", "class.k-chip": "this.hostClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "class.k-selected": "this.selectedClass", "class.k-focus": "this.focusedClass", "attr.dir": "this.direction" } }, providers: [
|
|
1385
1407
|
LocalizationService,
|
|
1386
1408
|
{
|
|
1387
1409
|
provide: L10N_PREFIX,
|
|
1388
1410
|
useValue: 'kendo.chip'
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1411
|
+
},
|
|
1412
|
+
provideComponentName('chip')
|
|
1413
|
+
], ngImport: i0, template: `
|
|
1391
1414
|
@if (icon || svgIcon) {
|
|
1392
1415
|
<kendo-icon-wrapper
|
|
1393
1416
|
size="small"
|
|
@@ -1452,12 +1475,13 @@ class ChipComponent {
|
|
|
1452
1475
|
}
|
|
1453
1476
|
</span>
|
|
1454
1477
|
}
|
|
1455
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
1478
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1456
1479
|
}
|
|
1457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChipComponent, decorators: [{
|
|
1458
1481
|
type: Component,
|
|
1459
1482
|
args: [{
|
|
1460
1483
|
selector: 'kendo-chip',
|
|
1484
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1461
1485
|
template: `
|
|
1462
1486
|
@if (icon || svgIcon) {
|
|
1463
1487
|
<kendo-icon-wrapper
|
|
@@ -1529,12 +1553,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
1529
1553
|
{
|
|
1530
1554
|
provide: L10N_PREFIX,
|
|
1531
1555
|
useValue: 'kendo.chip'
|
|
1532
|
-
}
|
|
1556
|
+
},
|
|
1557
|
+
provideComponentName('chip')
|
|
1533
1558
|
],
|
|
1534
1559
|
standalone: true,
|
|
1535
1560
|
imports: [NgStyle, IconWrapperComponent]
|
|
1536
1561
|
}]
|
|
1537
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type:
|
|
1562
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i0.NgZone }], propDecorators: { label: [{
|
|
1538
1563
|
type: Input
|
|
1539
1564
|
}], icon: [{
|
|
1540
1565
|
type: Input
|
|
@@ -1623,7 +1648,9 @@ class ChipListComponent {
|
|
|
1623
1648
|
/**
|
|
1624
1649
|
* @hidden
|
|
1625
1650
|
*/
|
|
1626
|
-
direction
|
|
1651
|
+
get direction() {
|
|
1652
|
+
return this._direction();
|
|
1653
|
+
}
|
|
1627
1654
|
/**
|
|
1628
1655
|
* Sets the selection mode of the ChipList.
|
|
1629
1656
|
*
|
|
@@ -1662,6 +1689,7 @@ class ChipListComponent {
|
|
|
1662
1689
|
_size = undefined;
|
|
1663
1690
|
subs = new Subscription();
|
|
1664
1691
|
_navigable = true;
|
|
1692
|
+
_direction = signal('', ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
1665
1693
|
/**
|
|
1666
1694
|
* @hidden
|
|
1667
1695
|
*/
|
|
@@ -1712,11 +1740,11 @@ class ChipListComponent {
|
|
|
1712
1740
|
this.element = element;
|
|
1713
1741
|
this.ngZone = ngZone;
|
|
1714
1742
|
validatePackage(packageMetadata);
|
|
1715
|
-
this.
|
|
1743
|
+
this._direction.set(localizationService.rtl ? 'rtl' : 'ltr');
|
|
1716
1744
|
}
|
|
1717
1745
|
ngOnInit() {
|
|
1718
1746
|
this.dynamicRTLSubscription = this.localizationService.changes
|
|
1719
|
-
.subscribe(({ rtl }) => this.
|
|
1747
|
+
.subscribe(({ rtl }) => this._direction.set(rtl ? 'rtl' : 'ltr'));
|
|
1720
1748
|
}
|
|
1721
1749
|
ngAfterViewInit() {
|
|
1722
1750
|
const stylingInputs = ['size'];
|
|
@@ -1871,8 +1899,8 @@ class ChipListComponent {
|
|
|
1871
1899
|
chip.sizeIsSet = false;
|
|
1872
1900
|
}
|
|
1873
1901
|
}
|
|
1874
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1875
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1902
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChipListComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1903
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: ChipListComponent, isStandalone: true, selector: "kendo-chiplist, kendo-chip-list", inputs: { orientation: "orientation", selection: "selection", size: "size", role: "role", navigable: "navigable" }, outputs: { selectedChange: "selectedChange", remove: "remove" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-chip-list": "this.hostClass", "attr.aria-orientation": "this.orientation", "attr.dir": "this.direction", "attr.aria-multiselectable": "this.multiple", "attr.role": "this.role" } }, providers: [
|
|
1876
1904
|
LocalizationService,
|
|
1877
1905
|
{
|
|
1878
1906
|
provide: L10N_PREFIX,
|
|
@@ -1880,12 +1908,13 @@ class ChipListComponent {
|
|
|
1880
1908
|
}
|
|
1881
1909
|
], queries: [{ propertyName: "chips", predicate: ChipComponent }], ngImport: i0, template: `
|
|
1882
1910
|
<ng-content></ng-content>
|
|
1883
|
-
`, isInline: true });
|
|
1911
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1884
1912
|
}
|
|
1885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChipListComponent, decorators: [{
|
|
1886
1914
|
type: Component,
|
|
1887
1915
|
args: [{
|
|
1888
1916
|
selector: 'kendo-chiplist, kendo-chip-list',
|
|
1917
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1889
1918
|
template: `
|
|
1890
1919
|
<ng-content></ng-content>
|
|
1891
1920
|
`,
|
|
@@ -1966,10 +1995,10 @@ class ButtonItemTemplateDirective {
|
|
|
1966
1995
|
constructor(templateRef) {
|
|
1967
1996
|
this.templateRef = templateRef;
|
|
1968
1997
|
}
|
|
1969
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1970
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
1998
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1999
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ButtonItemTemplateDirective, isStandalone: true, selector: "[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]", ngImport: i0 });
|
|
1971
2000
|
}
|
|
1972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2001
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonItemTemplateDirective, decorators: [{
|
|
1973
2002
|
type: Directive,
|
|
1974
2003
|
args: [{
|
|
1975
2004
|
selector: '[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]',
|
|
@@ -2003,10 +2032,10 @@ class FocusService {
|
|
|
2003
2032
|
this.focusedIndex = index;
|
|
2004
2033
|
this.onFocus.emit(index);
|
|
2005
2034
|
}
|
|
2006
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2007
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2035
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: FocusService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2036
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: FocusService });
|
|
2008
2037
|
}
|
|
2009
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: FocusService, decorators: [{
|
|
2010
2039
|
type: Injectable
|
|
2011
2040
|
}] });
|
|
2012
2041
|
|
|
@@ -2132,10 +2161,10 @@ class NavigationService {
|
|
|
2132
2161
|
return args.current !== args.end ? args.current + args.step : args.end;
|
|
2133
2162
|
}
|
|
2134
2163
|
}
|
|
2135
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2136
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2164
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: NavigationService, deps: [{ token: NAVIGATION_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2165
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: NavigationService });
|
|
2137
2166
|
}
|
|
2138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: NavigationService, decorators: [{
|
|
2139
2168
|
type: Injectable
|
|
2140
2169
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2141
2170
|
type: Inject,
|
|
@@ -2148,10 +2177,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
2148
2177
|
class PopupContainerService {
|
|
2149
2178
|
container;
|
|
2150
2179
|
template;
|
|
2151
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2152
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PopupContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2181
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PopupContainerService });
|
|
2153
2182
|
}
|
|
2154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PopupContainerService, decorators: [{
|
|
2155
2184
|
type: Injectable
|
|
2156
2185
|
}] });
|
|
2157
2186
|
|
|
@@ -2200,10 +2229,10 @@ class FocusableDirective {
|
|
|
2200
2229
|
}
|
|
2201
2230
|
}));
|
|
2202
2231
|
}
|
|
2203
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2204
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
2232
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: FocusableDirective, deps: [{ token: FocusService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2233
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: FocusableDirective, isStandalone: true, selector: "[kendoButtonFocusable]", inputs: { index: "index" }, ngImport: i0 });
|
|
2205
2234
|
}
|
|
2206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: FocusableDirective, decorators: [{
|
|
2207
2236
|
type: Directive,
|
|
2208
2237
|
args: [{
|
|
2209
2238
|
selector: '[kendoButtonFocusable]',
|
|
@@ -2252,8 +2281,8 @@ class ListComponent {
|
|
|
2252
2281
|
onBlur() {
|
|
2253
2282
|
this.onItemBlur.emit();
|
|
2254
2283
|
}
|
|
2255
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2256
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2284
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2285
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ListComponent, isStandalone: true, selector: "kendo-button-list", inputs: { data: "data", textField: "textField", itemTemplate: "itemTemplate", size: "size" }, outputs: { onItemClick: "onItemClick", onItemBlur: "onItemBlur" }, ngImport: i0, template: `
|
|
2257
2286
|
<ul class="k-menu-group" role="list" [ngClass]="sizeClass">
|
|
2258
2287
|
@for (dataItem of data; track dataItem; let index = $index; let isFirst = $first; let isLast = $last) {
|
|
2259
2288
|
<li kendoButtonFocusable
|
|
@@ -2307,7 +2336,7 @@ class ListComponent {
|
|
|
2307
2336
|
</ul>
|
|
2308
2337
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoButtonFocusable]", inputs: ["index"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
2309
2338
|
}
|
|
2310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ListComponent, decorators: [{
|
|
2311
2340
|
type: Component,
|
|
2312
2341
|
args: [{
|
|
2313
2342
|
selector: 'kendo-button-list',
|
|
@@ -2388,7 +2417,7 @@ class ListButton extends MultiTabStop {
|
|
|
2388
2417
|
focusService;
|
|
2389
2418
|
navigationService;
|
|
2390
2419
|
wrapperRef;
|
|
2391
|
-
|
|
2420
|
+
zone;
|
|
2392
2421
|
popupService;
|
|
2393
2422
|
elRef;
|
|
2394
2423
|
cdr;
|
|
@@ -2396,16 +2425,16 @@ class ListButton extends MultiTabStop {
|
|
|
2396
2425
|
listId = guid();
|
|
2397
2426
|
buttonId = guid();
|
|
2398
2427
|
_data;
|
|
2399
|
-
_open = false;
|
|
2400
|
-
_disabled = false;
|
|
2401
|
-
_active = false;
|
|
2428
|
+
_open = signal(false, ...(ngDevMode ? [{ debugName: "_open" }] : []));
|
|
2429
|
+
_disabled = signal(false, ...(ngDevMode ? [{ debugName: "_disabled" }] : []));
|
|
2430
|
+
_active = signal(false, ...(ngDevMode ? [{ debugName: "_active" }] : []));
|
|
2402
2431
|
_popupSettings = { animate: true, popupClass: '' };
|
|
2403
2432
|
_isFocused = false;
|
|
2404
2433
|
_itemClick;
|
|
2405
2434
|
_blur;
|
|
2406
2435
|
wrapper;
|
|
2407
2436
|
subs = new Subscription();
|
|
2408
|
-
direction;
|
|
2437
|
+
direction = signal(undefined, ...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
2409
2438
|
popupRef;
|
|
2410
2439
|
popupSubs = new Subscription();
|
|
2411
2440
|
button;
|
|
@@ -2420,10 +2449,10 @@ class ListButton extends MultiTabStop {
|
|
|
2420
2449
|
if (value && this.openState) {
|
|
2421
2450
|
this.openState = false;
|
|
2422
2451
|
}
|
|
2423
|
-
this._disabled
|
|
2452
|
+
this._disabled.set(value);
|
|
2424
2453
|
}
|
|
2425
2454
|
get disabled() {
|
|
2426
|
-
return this._disabled;
|
|
2455
|
+
return this._disabled();
|
|
2427
2456
|
}
|
|
2428
2457
|
/**
|
|
2429
2458
|
* Specifies the [`tabIndex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
@@ -2480,7 +2509,7 @@ class ListButton extends MultiTabStop {
|
|
|
2480
2509
|
*/
|
|
2481
2510
|
get anchorAlign() {
|
|
2482
2511
|
const align = { horizontal: this.popupSettings.align || 'left', vertical: 'bottom' };
|
|
2483
|
-
if (this.direction === 'rtl' && !isPresent(this.popupSettings.align)) {
|
|
2512
|
+
if (this.direction() === 'rtl' && !isPresent(this.popupSettings.align)) {
|
|
2484
2513
|
align.horizontal = 'right';
|
|
2485
2514
|
}
|
|
2486
2515
|
return align;
|
|
@@ -2490,18 +2519,18 @@ class ListButton extends MultiTabStop {
|
|
|
2490
2519
|
*/
|
|
2491
2520
|
get popupAlign() {
|
|
2492
2521
|
const align = { horizontal: this.popupSettings.align || 'left', vertical: 'top' };
|
|
2493
|
-
if (this.direction === 'rtl' && !isPresent(this.popupSettings.align)) {
|
|
2522
|
+
if (this.direction() === 'rtl' && !isPresent(this.popupSettings.align)) {
|
|
2494
2523
|
align.horizontal = 'right';
|
|
2495
2524
|
}
|
|
2496
2525
|
return align;
|
|
2497
2526
|
}
|
|
2498
2527
|
isClosePrevented = false;
|
|
2499
|
-
constructor(focusService, navigationService, wrapperRef,
|
|
2528
|
+
constructor(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr, containerService) {
|
|
2500
2529
|
super();
|
|
2501
2530
|
this.focusService = focusService;
|
|
2502
2531
|
this.navigationService = navigationService;
|
|
2503
2532
|
this.wrapperRef = wrapperRef;
|
|
2504
|
-
this.
|
|
2533
|
+
this.zone = zone;
|
|
2505
2534
|
this.popupService = popupService;
|
|
2506
2535
|
this.elRef = elRef;
|
|
2507
2536
|
this.cdr = cdr;
|
|
@@ -2510,7 +2539,7 @@ class ListButton extends MultiTabStop {
|
|
|
2510
2539
|
this.focusService = focusService;
|
|
2511
2540
|
this.navigationService = navigationService;
|
|
2512
2541
|
this.wrapper = wrapperRef.nativeElement;
|
|
2513
|
-
this.subs.add(localization.changes.subscribe(({ rtl }) => (this.direction
|
|
2542
|
+
this.subs.add(localization.changes.subscribe(({ rtl }) => (this.direction.set(rtl ? 'rtl' : 'ltr'))));
|
|
2514
2543
|
this.subscribeEvents();
|
|
2515
2544
|
}
|
|
2516
2545
|
ngOnChanges(changes) {
|
|
@@ -2534,7 +2563,7 @@ class ListButton extends MultiTabStop {
|
|
|
2534
2563
|
return popupClasses.join(' ');
|
|
2535
2564
|
}
|
|
2536
2565
|
get openState() {
|
|
2537
|
-
return this._open;
|
|
2566
|
+
return this._open();
|
|
2538
2567
|
}
|
|
2539
2568
|
/**
|
|
2540
2569
|
* @hidden
|
|
@@ -2543,19 +2572,19 @@ class ListButton extends MultiTabStop {
|
|
|
2543
2572
|
if (this.disabled) {
|
|
2544
2573
|
return;
|
|
2545
2574
|
}
|
|
2546
|
-
this._open
|
|
2575
|
+
this._open.set(open);
|
|
2547
2576
|
}
|
|
2548
2577
|
/**
|
|
2549
2578
|
* Returns the current open state of the popup.
|
|
2550
2579
|
*/
|
|
2551
2580
|
get isOpen() {
|
|
2552
|
-
return this._open;
|
|
2581
|
+
return this._open();
|
|
2553
2582
|
}
|
|
2554
2583
|
/**
|
|
2555
2584
|
* @hidden
|
|
2556
2585
|
*/
|
|
2557
2586
|
togglePopupVisibility() {
|
|
2558
|
-
if (this._disabled) {
|
|
2587
|
+
if (this._disabled()) {
|
|
2559
2588
|
return;
|
|
2560
2589
|
}
|
|
2561
2590
|
this._toggle(!this.openState, true);
|
|
@@ -2596,11 +2625,11 @@ class ListButton extends MultiTabStop {
|
|
|
2596
2625
|
}));
|
|
2597
2626
|
}
|
|
2598
2627
|
subscribeComponentBlurredEvent() {
|
|
2599
|
-
this.
|
|
2628
|
+
this.zone.runOutsideAngular(() => {
|
|
2600
2629
|
this.subs.add(this.navigationService.tab.pipe(filter(() => this._isFocused), tap(() => this.focusButton())).subscribe(this.handleTab.bind(this)));
|
|
2601
2630
|
this.subs.add(fromEvent(document, 'click')
|
|
2602
2631
|
.pipe(filter((event) => !this.wrapperContains(event.target)), filter(() => this._isFocused))
|
|
2603
|
-
.subscribe(() => this.
|
|
2632
|
+
.subscribe(() => this.zone.run(() => this.blurWrapper())));
|
|
2604
2633
|
});
|
|
2605
2634
|
}
|
|
2606
2635
|
subscribeNavigationEvents() {
|
|
@@ -2639,7 +2668,7 @@ class ListButton extends MultiTabStop {
|
|
|
2639
2668
|
* @hidden
|
|
2640
2669
|
*/
|
|
2641
2670
|
keyHandler(event, keyEvent, isHost) {
|
|
2642
|
-
if (this._disabled) {
|
|
2671
|
+
if (this._disabled()) {
|
|
2643
2672
|
return;
|
|
2644
2673
|
}
|
|
2645
2674
|
const eventData = event;
|
|
@@ -2706,8 +2735,8 @@ class ListButton extends MultiTabStop {
|
|
|
2706
2735
|
this.blurWrapper();
|
|
2707
2736
|
}
|
|
2708
2737
|
onNavigationEnterUp(_args) {
|
|
2709
|
-
if (!this._disabled && !this.openState) {
|
|
2710
|
-
this._active
|
|
2738
|
+
if (!this._disabled() && !this.openState) {
|
|
2739
|
+
this._active.set(false);
|
|
2711
2740
|
}
|
|
2712
2741
|
if (this.openState) {
|
|
2713
2742
|
const focused = this.focusService.focused;
|
|
@@ -2724,7 +2753,7 @@ class ListButton extends MultiTabStop {
|
|
|
2724
2753
|
}
|
|
2725
2754
|
}
|
|
2726
2755
|
onNavigationOpen() {
|
|
2727
|
-
if (!this._disabled && !this.openState) {
|
|
2756
|
+
if (!this._disabled() && !this.openState) {
|
|
2728
2757
|
this.togglePopupVisibility();
|
|
2729
2758
|
}
|
|
2730
2759
|
}
|
|
@@ -2787,12 +2816,13 @@ class ListButton extends MultiTabStop {
|
|
|
2787
2816
|
this.isClosePrevented = false;
|
|
2788
2817
|
}
|
|
2789
2818
|
}
|
|
2790
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2791
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
2819
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ListButton, deps: [{ token: FocusService }, { token: NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: PopupContainerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2820
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: ListButton, isStandalone: true, selector: "ng-component", inputs: { disabled: "disabled", tabIndex: "tabIndex", buttonClass: "buttonClass", popupSettings: "popupSettings" }, outputs: { open: "open", close: "close", escape: "escape" }, viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, read: ElementRef }, { propertyName: "buttonList", first: true, predicate: ["buttonList"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2792
2821
|
}
|
|
2793
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2822
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ListButton, decorators: [{
|
|
2794
2823
|
type: Component,
|
|
2795
2824
|
args: [{
|
|
2825
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2796
2826
|
template: ''
|
|
2797
2827
|
}]
|
|
2798
2828
|
}], ctorParameters: () => [{ type: FocusService }, { type: NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.PopupService }, { type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: PopupContainerService }], propDecorators: { button: [{
|
|
@@ -2897,24 +2927,39 @@ class DropDownButtonComponent extends ListButton {
|
|
|
2897
2927
|
/**
|
|
2898
2928
|
* Specifies the padding of the DropDownButton. See [DropDownButton Appearance](https://www.telerik.com/kendo-angular-ui/components/buttons/dropdownbutton/appearance#size). The default value is set by the Kendo theme.
|
|
2899
2929
|
*/
|
|
2900
|
-
size
|
|
2930
|
+
set size(size) {
|
|
2931
|
+
this._size.set(size);
|
|
2932
|
+
}
|
|
2933
|
+
get size() {
|
|
2934
|
+
return this._size();
|
|
2935
|
+
}
|
|
2901
2936
|
/**
|
|
2902
2937
|
* Specifies the border radius of the DropDownButton. See [DropDownButton Appearance](https://www.telerik.com/kendo-angular-ui/components/buttons/dropdownbutton/appearance#roundness). The default value is set by the Kendo theme.
|
|
2903
2938
|
*/
|
|
2904
|
-
rounded
|
|
2939
|
+
set rounded(rounded) {
|
|
2940
|
+
this._rounded.set(rounded);
|
|
2941
|
+
}
|
|
2942
|
+
get rounded() {
|
|
2943
|
+
return this._rounded();
|
|
2944
|
+
}
|
|
2905
2945
|
/**
|
|
2906
2946
|
* Specifies the background and border styles of the DropDownButton. See [DropDownButton Appearance](https://www.telerik.com/kendo-angular-ui/components/buttons/dropdownbutton/appearance#fill-mode). The default value is set by the Kendo theme.
|
|
2907
2947
|
*/
|
|
2908
2948
|
set fillMode(fillMode) {
|
|
2909
|
-
this._fillMode
|
|
2949
|
+
this._fillMode.set(fillMode === 'clear' ? 'flat' : fillMode);
|
|
2910
2950
|
}
|
|
2911
2951
|
get fillMode() {
|
|
2912
|
-
return this._fillMode;
|
|
2952
|
+
return this._fillMode();
|
|
2913
2953
|
}
|
|
2914
2954
|
/**
|
|
2915
2955
|
* Specifies predefined theme colors for the DropDownButton. See [DropDownButton Appearance](https://www.telerik.com/kendo-angular-ui/components/buttons/dropdownbutton/appearance#theme-colors).
|
|
2916
2956
|
*/
|
|
2917
|
-
themeColor
|
|
2957
|
+
set themeColor(themeColor) {
|
|
2958
|
+
this._themeColor.set(themeColor);
|
|
2959
|
+
}
|
|
2960
|
+
get themeColor() {
|
|
2961
|
+
return this._themeColor();
|
|
2962
|
+
}
|
|
2918
2963
|
/**
|
|
2919
2964
|
* Sets attributes for the main button.
|
|
2920
2965
|
*/
|
|
@@ -2940,20 +2985,23 @@ class DropDownButtonComponent extends ListButton {
|
|
|
2940
2985
|
*/
|
|
2941
2986
|
onBlur = new EventEmitter();
|
|
2942
2987
|
get focused() {
|
|
2943
|
-
return this._isFocused && !this._disabled;
|
|
2988
|
+
return this._isFocused && !this._disabled();
|
|
2944
2989
|
}
|
|
2945
2990
|
hostDisplayStyle = 'inline-flex';
|
|
2946
2991
|
get dir() {
|
|
2947
|
-
return this.direction;
|
|
2992
|
+
return this.direction();
|
|
2948
2993
|
}
|
|
2949
2994
|
/**
|
|
2950
2995
|
* @hidden
|
|
2951
2996
|
*/
|
|
2952
2997
|
get active() {
|
|
2953
|
-
return this._active;
|
|
2998
|
+
return this._active();
|
|
2954
2999
|
}
|
|
2955
3000
|
itemTemplate;
|
|
2956
|
-
|
|
3001
|
+
_size = signal(undefined, ...(ngDevMode ? [{ debugName: "_size" }] : []));
|
|
3002
|
+
_rounded = signal(undefined, ...(ngDevMode ? [{ debugName: "_rounded" }] : []));
|
|
3003
|
+
_fillMode = signal(undefined, ...(ngDevMode ? [{ debugName: "_fillMode" }] : []));
|
|
3004
|
+
_themeColor = signal(undefined, ...(ngDevMode ? [{ debugName: "_themeColor" }] : []));
|
|
2957
3005
|
_buttonAttributes = null;
|
|
2958
3006
|
documentMouseUpSub;
|
|
2959
3007
|
/**
|
|
@@ -2963,10 +3011,10 @@ class DropDownButtonComponent extends ListButton {
|
|
|
2963
3011
|
this.keyDownHandler(event, true);
|
|
2964
3012
|
const code = normalizeKeys(event);
|
|
2965
3013
|
if (code === Keys.Space) {
|
|
2966
|
-
this._active
|
|
3014
|
+
this._active.set(true);
|
|
2967
3015
|
}
|
|
2968
3016
|
if (code === Keys.Enter) {
|
|
2969
|
-
this._active
|
|
3017
|
+
this._active.set(true);
|
|
2970
3018
|
event.preventDefault();
|
|
2971
3019
|
}
|
|
2972
3020
|
}
|
|
@@ -2975,27 +3023,27 @@ class DropDownButtonComponent extends ListButton {
|
|
|
2975
3023
|
*/
|
|
2976
3024
|
keyup(event) {
|
|
2977
3025
|
this.keyUpHandler(event);
|
|
2978
|
-
this._active
|
|
3026
|
+
this._active.set(false);
|
|
2979
3027
|
}
|
|
2980
3028
|
/**
|
|
2981
3029
|
* @hidden
|
|
2982
3030
|
*/
|
|
2983
3031
|
mousedown(event) {
|
|
2984
|
-
if (this._disabled) {
|
|
3032
|
+
if (this._disabled()) {
|
|
2985
3033
|
event.preventDefault();
|
|
2986
3034
|
}
|
|
2987
3035
|
else {
|
|
2988
|
-
this._active
|
|
3036
|
+
this._active.set(true);
|
|
2989
3037
|
}
|
|
2990
3038
|
}
|
|
2991
3039
|
/**
|
|
2992
3040
|
* @hidden
|
|
2993
3041
|
*/
|
|
2994
3042
|
mouseup(event) {
|
|
2995
|
-
if (this._disabled) {
|
|
3043
|
+
if (this._disabled()) {
|
|
2996
3044
|
event.preventDefault();
|
|
2997
3045
|
}
|
|
2998
|
-
this._active
|
|
3046
|
+
this._active.set(false);
|
|
2999
3047
|
}
|
|
3000
3048
|
/**
|
|
3001
3049
|
* @hidden
|
|
@@ -3038,7 +3086,7 @@ class DropDownButtonComponent extends ListButton {
|
|
|
3038
3086
|
zone.runOutsideAngular(() => {
|
|
3039
3087
|
this.documentMouseUpSub = this.renderer.listen('document', 'mouseup', () => {
|
|
3040
3088
|
if (this.active) {
|
|
3041
|
-
zone.run(() => this._active
|
|
3089
|
+
zone.run(() => this._active.set(false));
|
|
3042
3090
|
}
|
|
3043
3091
|
});
|
|
3044
3092
|
});
|
|
@@ -3056,7 +3104,7 @@ class DropDownButtonComponent extends ListButton {
|
|
|
3056
3104
|
* @hidden
|
|
3057
3105
|
*/
|
|
3058
3106
|
handleFocus(event) {
|
|
3059
|
-
if (!this._disabled) {
|
|
3107
|
+
if (!this._disabled()) {
|
|
3060
3108
|
if (!this._isFocused) {
|
|
3061
3109
|
this.onFocus.emit();
|
|
3062
3110
|
}
|
|
@@ -3098,8 +3146,8 @@ class DropDownButtonComponent extends ListButton {
|
|
|
3098
3146
|
}
|
|
3099
3147
|
super.ngOnDestroy();
|
|
3100
3148
|
}
|
|
3101
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3102
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
3149
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: DropDownButtonComponent, deps: [{ token: FocusService }, { token: NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: PopupContainerService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
3150
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: DropDownButtonComponent, isStandalone: true, selector: "kendo-dropdownbutton", inputs: { arrowIcon: "arrowIcon", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", textField: "textField", data: "data", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", buttonAttributes: "buttonAttributes" }, outputs: { itemClick: "itemClick", onFocus: "focus", onBlur: "blur" }, host: { listeners: { "keydown": "keydown($event)", "keyup": "keyup($event)", "mousedown": "mousedown($event)", "mouseup": "mouseup($event)" }, properties: { "class.k-focus": "this.focused", "style.display": "this.hostDisplayStyle", "attr.dir": "this.dir" } }, providers: [
|
|
3103
3151
|
FocusService,
|
|
3104
3152
|
NavigationService,
|
|
3105
3153
|
NAVIGATION_SETTINGS_PROVIDER$2,
|
|
@@ -3108,7 +3156,8 @@ class DropDownButtonComponent extends ListButton {
|
|
|
3108
3156
|
provide: L10N_PREFIX,
|
|
3109
3157
|
useValue: 'kendo.dropdownbutton'
|
|
3110
3158
|
},
|
|
3111
|
-
PopupContainerService
|
|
3159
|
+
PopupContainerService,
|
|
3160
|
+
provideComponentName('dropdownbutton')
|
|
3112
3161
|
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], exportAs: ["kendoDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
3113
3162
|
<button kendoButton #button
|
|
3114
3163
|
type="button"
|
|
@@ -3153,11 +3202,13 @@ class DropDownButtonComponent extends ListButton {
|
|
|
3153
3202
|
</kendo-button-list>
|
|
3154
3203
|
</ng-template>
|
|
3155
3204
|
<ng-container #container></ng-container>
|
|
3156
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], 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"] }] });
|
|
3205
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3157
3206
|
}
|
|
3158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: DropDownButtonComponent, decorators: [{
|
|
3159
3208
|
type: Component,
|
|
3160
3209
|
args: [{
|
|
3210
|
+
selector: 'kendo-dropdownbutton',
|
|
3211
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3161
3212
|
exportAs: 'kendoDropDownButton',
|
|
3162
3213
|
providers: [
|
|
3163
3214
|
FocusService,
|
|
@@ -3168,9 +3219,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
3168
3219
|
provide: L10N_PREFIX,
|
|
3169
3220
|
useValue: 'kendo.dropdownbutton'
|
|
3170
3221
|
},
|
|
3171
|
-
PopupContainerService
|
|
3222
|
+
PopupContainerService,
|
|
3223
|
+
provideComponentName('dropdownbutton')
|
|
3172
3224
|
],
|
|
3173
|
-
selector: 'kendo-dropdownbutton',
|
|
3174
3225
|
template: `
|
|
3175
3226
|
<button kendoButton #button
|
|
3176
3227
|
type="button"
|
|
@@ -3360,10 +3411,10 @@ class DialItemTemplateDirective {
|
|
|
3360
3411
|
constructor(templateRef) {
|
|
3361
3412
|
this.templateRef = templateRef;
|
|
3362
3413
|
}
|
|
3363
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3364
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
3414
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: DialItemTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3415
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: DialItemTemplateDirective, isStandalone: true, selector: "[kendoDialItemTemplate]", ngImport: i0 });
|
|
3365
3416
|
}
|
|
3366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: DialItemTemplateDirective, decorators: [{
|
|
3367
3418
|
type: Directive,
|
|
3368
3419
|
args: [{
|
|
3369
3420
|
selector: '[kendoDialItemTemplate]',
|
|
@@ -3393,10 +3444,10 @@ class FloatingActionButtonTemplateDirective {
|
|
|
3393
3444
|
constructor(templateRef) {
|
|
3394
3445
|
this.templateRef = templateRef;
|
|
3395
3446
|
}
|
|
3396
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3397
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
3447
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: FloatingActionButtonTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3448
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: FloatingActionButtonTemplateDirective, isStandalone: true, selector: "[kendoFloatingActionButtonTemplate]", ngImport: i0 });
|
|
3398
3449
|
}
|
|
3399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: FloatingActionButtonTemplateDirective, decorators: [{
|
|
3400
3451
|
type: Directive,
|
|
3401
3452
|
args: [{
|
|
3402
3453
|
selector: '[kendoFloatingActionButtonTemplate]',
|
|
@@ -3467,8 +3518,8 @@ class DialItemComponent {
|
|
|
3467
3518
|
};
|
|
3468
3519
|
return directions[dir][align];
|
|
3469
3520
|
}
|
|
3470
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3471
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3521
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: DialItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3522
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: DialItemComponent, isStandalone: true, selector: "[kendoDialItem]", inputs: { cssClass: "cssClass", cssStyle: "cssStyle", isFocused: "isFocused", index: "index", item: "item", dialItemTemplate: "dialItemTemplate", align: "align" }, host: { properties: { "class.k-fab-item": "this.hostClass", "attr.role": "this.role", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.title": "this.title", "attr.aria-label": "this.title", "attr.data-fab-item-index": "this.indexAttr" } }, ngImport: i0, template: `
|
|
3472
3523
|
@if (dialItemTemplate) {
|
|
3473
3524
|
<ng-template
|
|
3474
3525
|
[ngTemplateOutlet]="dialItemTemplate"
|
|
@@ -3491,7 +3542,7 @@ class DialItemComponent {
|
|
|
3491
3542
|
}
|
|
3492
3543
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
3493
3544
|
}
|
|
3494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: DialItemComponent, decorators: [{
|
|
3495
3546
|
type: Component,
|
|
3496
3547
|
args: [{
|
|
3497
3548
|
selector: '[kendoDialItem]',
|
|
@@ -3585,8 +3636,8 @@ class DialListComponent {
|
|
|
3585
3636
|
ngOnDestroy() {
|
|
3586
3637
|
this.subscriptions.unsubscribe();
|
|
3587
3638
|
}
|
|
3588
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3589
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3639
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: DialListComponent, deps: [{ token: FocusService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3640
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: DialListComponent, isStandalone: true, selector: "[kendoDialList]", inputs: { dialItems: "dialItems", dialItemTemplate: "dialItemTemplate", align: "align" }, host: { properties: { "class.k-fab-items": "this.hostClass", "class.k-fab-items-bottom": "this.bottomClass", "class.k-fab-items-top": "this.topClass" } }, ngImport: i0, template: `
|
|
3590
3641
|
@for (item of dialItems; track item; let idx = $index) {
|
|
3591
3642
|
<li
|
|
3592
3643
|
kendoButtonFocusable
|
|
@@ -3603,7 +3654,7 @@ class DialListComponent {
|
|
|
3603
3654
|
}
|
|
3604
3655
|
`, isInline: true, dependencies: [{ kind: "directive", type: FocusableDirective, selector: "[kendoButtonFocusable]", inputs: ["index"] }, { kind: "component", type: DialItemComponent, selector: "[kendoDialItem]", inputs: ["cssClass", "cssStyle", "isFocused", "index", "item", "dialItemTemplate", "align"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
3605
3656
|
}
|
|
3606
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3657
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: DialListComponent, decorators: [{
|
|
3607
3658
|
type: Component,
|
|
3608
3659
|
args: [{
|
|
3609
3660
|
selector: '[kendoDialList]',
|
|
@@ -3684,17 +3735,19 @@ class FloatingActionButtonComponent {
|
|
|
3684
3735
|
element;
|
|
3685
3736
|
focusService;
|
|
3686
3737
|
navigationService;
|
|
3687
|
-
ngZone;
|
|
3688
3738
|
popupService;
|
|
3689
3739
|
builder;
|
|
3690
3740
|
localizationService;
|
|
3741
|
+
ngZone;
|
|
3691
3742
|
get fixedClass() {
|
|
3692
3743
|
return this.positionMode === 'fixed';
|
|
3693
3744
|
}
|
|
3694
3745
|
get absoluteClass() {
|
|
3695
3746
|
return this.positionMode === 'absolute';
|
|
3696
3747
|
}
|
|
3697
|
-
direction
|
|
3748
|
+
get direction() {
|
|
3749
|
+
return this._direction();
|
|
3750
|
+
}
|
|
3698
3751
|
button;
|
|
3699
3752
|
popupTemplate;
|
|
3700
3753
|
dialItemTemplate;
|
|
@@ -3734,10 +3787,10 @@ class FloatingActionButtonComponent {
|
|
|
3734
3787
|
* @default false
|
|
3735
3788
|
*/
|
|
3736
3789
|
set disabled(disabled) {
|
|
3737
|
-
this._disabled
|
|
3790
|
+
this._disabled.set(disabled);
|
|
3738
3791
|
}
|
|
3739
3792
|
get disabled() {
|
|
3740
|
-
return this._disabled;
|
|
3793
|
+
return this._disabled();
|
|
3741
3794
|
}
|
|
3742
3795
|
/**
|
|
3743
3796
|
* Specifies the alignment of the FloatingActionButton ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/positioning#alignment)).
|
|
@@ -3847,9 +3900,10 @@ class FloatingActionButtonComponent {
|
|
|
3847
3900
|
_themeColor = undefined;
|
|
3848
3901
|
_size = undefined;
|
|
3849
3902
|
_rounded = undefined;
|
|
3850
|
-
_disabled = false;
|
|
3903
|
+
_disabled = signal(false, ...(ngDevMode ? [{ debugName: "_disabled" }] : []));
|
|
3851
3904
|
_align = { horizontal: 'end', vertical: 'bottom' };
|
|
3852
3905
|
_offset = { x: DEFAULT_OFFSET, y: DEFAULT_OFFSET };
|
|
3906
|
+
_direction = signal(undefined, ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
3853
3907
|
subscriptions = new Subscription();
|
|
3854
3908
|
popupMouseDownListener;
|
|
3855
3909
|
rtl = false;
|
|
@@ -3857,20 +3911,21 @@ class FloatingActionButtonComponent {
|
|
|
3857
3911
|
popupRef;
|
|
3858
3912
|
initialSetup = true;
|
|
3859
3913
|
focusChangedProgrammatically = false;
|
|
3860
|
-
constructor(renderer, element, focusService, navigationService,
|
|
3914
|
+
constructor(renderer, element, focusService, navigationService, popupService, builder, localizationService, ngZone) {
|
|
3861
3915
|
this.renderer = renderer;
|
|
3862
3916
|
this.element = element;
|
|
3863
3917
|
this.focusService = focusService;
|
|
3864
3918
|
this.navigationService = navigationService;
|
|
3865
|
-
this.ngZone = ngZone;
|
|
3866
3919
|
this.popupService = popupService;
|
|
3867
3920
|
this.builder = builder;
|
|
3868
3921
|
this.localizationService = localizationService;
|
|
3922
|
+
this.ngZone = ngZone;
|
|
3869
3923
|
validatePackage(packageMetadata);
|
|
3870
3924
|
this.subscribeNavigationEvents();
|
|
3925
|
+
this._direction.set(this.localizationService.rtl ? 'rtl' : 'ltr');
|
|
3871
3926
|
this.subscriptions.add(this.localizationService.changes.subscribe(({ rtl }) => {
|
|
3872
3927
|
this.rtl = rtl;
|
|
3873
|
-
this.
|
|
3928
|
+
this._direction.set(rtl ? 'rtl' : 'ltr');
|
|
3874
3929
|
}));
|
|
3875
3930
|
}
|
|
3876
3931
|
ngAfterViewInit() {
|
|
@@ -3926,7 +3981,9 @@ class FloatingActionButtonComponent {
|
|
|
3926
3981
|
return;
|
|
3927
3982
|
}
|
|
3928
3983
|
if (shouldOpen) {
|
|
3929
|
-
|
|
3984
|
+
this.ngZone.runOutsideAngular(() => {
|
|
3985
|
+
setTimeout(() => this.openDial());
|
|
3986
|
+
});
|
|
3930
3987
|
}
|
|
3931
3988
|
else {
|
|
3932
3989
|
this.closeDial();
|
|
@@ -4337,8 +4394,8 @@ class FloatingActionButtonComponent {
|
|
|
4337
4394
|
}
|
|
4338
4395
|
return DEFAULT_DURATION;
|
|
4339
4396
|
}
|
|
4340
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4341
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
4397
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: FloatingActionButtonComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: FocusService }, { token: NavigationService }, { token: i3.PopupService }, { token: i4.AnimationBuilder }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
4398
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: FloatingActionButtonComponent, isStandalone: true, selector: "kendo-floatingactionbutton", inputs: { themeColor: "themeColor", size: "size", rounded: "rounded", disabled: "disabled", align: "align", offset: "offset", positionMode: "positionMode", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", buttonClass: "buttonClass", dialClass: "dialClass", text: "text", dialItemAnimation: "dialItemAnimation", tabIndex: "tabIndex", dialItems: "dialItems" }, outputs: { onBlur: "blur", onFocus: "focus", dialItemClick: "dialItemClick", open: "open", close: "close" }, host: { properties: { "class.k-pos-fixed": "this.fixedClass", "class.k-pos-absolute": "this.absoluteClass", "attr.dir": "this.direction" } }, providers: [
|
|
4342
4399
|
FocusService,
|
|
4343
4400
|
NavigationService,
|
|
4344
4401
|
NAVIGATION_SETTINGS_PROVIDER$1,
|
|
@@ -4346,7 +4403,8 @@ class FloatingActionButtonComponent {
|
|
|
4346
4403
|
{
|
|
4347
4404
|
provide: L10N_PREFIX,
|
|
4348
4405
|
useValue: 'kendo.floatingactionbutton'
|
|
4349
|
-
}
|
|
4406
|
+
},
|
|
4407
|
+
provideComponentName('floatingactionbutton')
|
|
4350
4408
|
], queries: [{ propertyName: "dialItemTemplate", first: true, predicate: DialItemTemplateDirective, descendants: true }, { propertyName: "fabTemplate", first: true, predicate: FloatingActionButtonTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], ngImport: i0, template: `
|
|
4351
4409
|
<button
|
|
4352
4410
|
#button
|
|
@@ -4409,12 +4467,13 @@ class FloatingActionButtonComponent {
|
|
|
4409
4467
|
>
|
|
4410
4468
|
</ul>
|
|
4411
4469
|
</ng-template>
|
|
4412
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: DialListComponent, selector: "[kendoDialList]", inputs: ["dialItems", "dialItemTemplate", "align"] }] });
|
|
4470
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: DialListComponent, selector: "[kendoDialList]", inputs: ["dialItems", "dialItemTemplate", "align"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4413
4471
|
}
|
|
4414
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: FloatingActionButtonComponent, decorators: [{
|
|
4415
4473
|
type: Component,
|
|
4416
4474
|
args: [{
|
|
4417
4475
|
selector: 'kendo-floatingactionbutton',
|
|
4476
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4418
4477
|
providers: [
|
|
4419
4478
|
FocusService,
|
|
4420
4479
|
NavigationService,
|
|
@@ -4423,7 +4482,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
4423
4482
|
{
|
|
4424
4483
|
provide: L10N_PREFIX,
|
|
4425
4484
|
useValue: 'kendo.floatingactionbutton'
|
|
4426
|
-
}
|
|
4485
|
+
},
|
|
4486
|
+
provideComponentName('floatingactionbutton')
|
|
4427
4487
|
],
|
|
4428
4488
|
template: `
|
|
4429
4489
|
<button
|
|
@@ -4491,7 +4551,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
4491
4551
|
standalone: true,
|
|
4492
4552
|
imports: [NgClass, EventsOutsideAngularDirective, NgTemplateOutlet, IconWrapperComponent, DialListComponent]
|
|
4493
4553
|
}]
|
|
4494
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: FocusService }, { type: NavigationService }, { type:
|
|
4554
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: FocusService }, { type: NavigationService }, { type: i3.PopupService }, { type: i4.AnimationBuilder }, { type: i1.LocalizationService }, { type: i0.NgZone }], propDecorators: { fixedClass: [{
|
|
4495
4555
|
type: HostBinding,
|
|
4496
4556
|
args: ['class.k-pos-fixed']
|
|
4497
4557
|
}], absoluteClass: [{
|
|
@@ -4583,15 +4643,27 @@ class Messages extends ComponentMessages {
|
|
|
4583
4643
|
* </kendo-splitbutton>
|
|
4584
4644
|
* ```
|
|
4585
4645
|
*/
|
|
4586
|
-
splitButtonLabel
|
|
4646
|
+
set splitButtonLabel(value) {
|
|
4647
|
+
this._splitButtonLabel.set(value);
|
|
4648
|
+
}
|
|
4649
|
+
get splitButtonLabel() {
|
|
4650
|
+
return this._splitButtonLabel();
|
|
4651
|
+
}
|
|
4587
4652
|
/**
|
|
4588
4653
|
* Specifies the text for the SplitButton toggle button `aria-label`.
|
|
4589
4654
|
*/
|
|
4590
|
-
toggleButtonLabel
|
|
4591
|
-
|
|
4592
|
-
|
|
4655
|
+
set toggleButtonLabel(value) {
|
|
4656
|
+
this._toggleButtonLabel.set(value);
|
|
4657
|
+
}
|
|
4658
|
+
get toggleButtonLabel() {
|
|
4659
|
+
return this._toggleButtonLabel();
|
|
4660
|
+
}
|
|
4661
|
+
_toggleButtonLabel = signal(undefined, ...(ngDevMode ? [{ debugName: "_toggleButtonLabel" }] : []));
|
|
4662
|
+
_splitButtonLabel = signal(undefined, ...(ngDevMode ? [{ debugName: "_splitButtonLabel" }] : []));
|
|
4663
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4664
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: Messages, isStandalone: true, selector: "kendo-splitbutton-messages-base", inputs: { splitButtonLabel: "splitButtonLabel", toggleButtonLabel: "toggleButtonLabel" }, usesInheritance: true, ngImport: i0 });
|
|
4593
4665
|
}
|
|
4594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: Messages, decorators: [{
|
|
4595
4667
|
type: Directive,
|
|
4596
4668
|
args: [{
|
|
4597
4669
|
selector: 'kendo-splitbutton-messages-base'
|
|
@@ -4615,13 +4687,13 @@ class SplitButtonCustomMessagesComponent extends Messages {
|
|
|
4615
4687
|
get override() {
|
|
4616
4688
|
return true;
|
|
4617
4689
|
}
|
|
4618
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4619
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
4690
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SplitButtonCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4691
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: SplitButtonCustomMessagesComponent, isStandalone: true, selector: "kendo-splitbutton-messages", providers: [{
|
|
4620
4692
|
provide: Messages,
|
|
4621
4693
|
useExisting: forwardRef(() => SplitButtonCustomMessagesComponent)
|
|
4622
4694
|
}], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
4623
4695
|
}
|
|
4624
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SplitButtonCustomMessagesComponent, decorators: [{
|
|
4625
4697
|
type: Component,
|
|
4626
4698
|
args: [{
|
|
4627
4699
|
providers: [{
|
|
@@ -4643,15 +4715,15 @@ class LocalizedSplitButtonMessagesDirective extends Messages {
|
|
|
4643
4715
|
super();
|
|
4644
4716
|
this.service = service;
|
|
4645
4717
|
}
|
|
4646
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4647
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
4718
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LocalizedSplitButtonMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4719
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: LocalizedSplitButtonMessagesDirective, isStandalone: true, selector: "[kendoSplitButtonLocalizedMessages]", providers: [
|
|
4648
4720
|
{
|
|
4649
4721
|
provide: Messages,
|
|
4650
4722
|
useExisting: forwardRef(() => LocalizedSplitButtonMessagesDirective)
|
|
4651
4723
|
}
|
|
4652
4724
|
], usesInheritance: true, ngImport: i0 });
|
|
4653
4725
|
}
|
|
4654
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LocalizedSplitButtonMessagesDirective, decorators: [{
|
|
4655
4727
|
type: Directive,
|
|
4656
4728
|
args: [{
|
|
4657
4729
|
providers: [
|
|
@@ -4734,30 +4806,40 @@ class SplitButtonComponent extends ListButton {
|
|
|
4734
4806
|
/**
|
|
4735
4807
|
* Configures the padding of the SplitButton ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/api/splitbuttoncomponent#size)). The default value is set by the Kendo theme.
|
|
4736
4808
|
*/
|
|
4737
|
-
size
|
|
4809
|
+
set size(size) {
|
|
4810
|
+
this._size.set(size);
|
|
4811
|
+
}
|
|
4812
|
+
get size() {
|
|
4813
|
+
return this._size();
|
|
4814
|
+
}
|
|
4738
4815
|
/**
|
|
4739
4816
|
* Configures the border radius of the SplitButton ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/api/splitbuttoncomponent#rounded)). The default value is set by the Kendo theme.
|
|
4740
4817
|
*/
|
|
4741
4818
|
set rounded(rounded) {
|
|
4742
4819
|
this.handleClasses(rounded, 'rounded');
|
|
4743
|
-
this._rounded
|
|
4820
|
+
this._rounded.set(rounded);
|
|
4744
4821
|
}
|
|
4745
4822
|
get rounded() {
|
|
4746
|
-
return this._rounded;
|
|
4823
|
+
return this._rounded();
|
|
4747
4824
|
}
|
|
4748
4825
|
/**
|
|
4749
4826
|
* Configures the background and border styles of the SplitButton ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/api/splitbuttoncomponent#fillmode)). The default value is set by the Kendo theme.
|
|
4750
4827
|
*/
|
|
4751
4828
|
set fillMode(fillMode) {
|
|
4752
|
-
this._fillMode
|
|
4829
|
+
this._fillMode.set(fillMode === 'clear' ? 'flat' : fillMode);
|
|
4753
4830
|
}
|
|
4754
4831
|
get fillMode() {
|
|
4755
|
-
return this._fillMode;
|
|
4832
|
+
return this._fillMode();
|
|
4756
4833
|
}
|
|
4757
4834
|
/**
|
|
4758
4835
|
* Configures the theme color of the SplitButton. The theme color applies to the background, border, and text ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/api/splitbuttoncomponent#themecolor)). The default value is set by the Kendo theme.
|
|
4759
4836
|
*/
|
|
4760
|
-
themeColor
|
|
4837
|
+
set themeColor(themeColor) {
|
|
4838
|
+
this._themeColor.set(themeColor);
|
|
4839
|
+
}
|
|
4840
|
+
get themeColor() {
|
|
4841
|
+
return this._themeColor();
|
|
4842
|
+
}
|
|
4761
4843
|
/**
|
|
4762
4844
|
* Disables the SplitButton when set to `true` ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/splitbutton/data-binding#arrays-of-complex-data)).
|
|
4763
4845
|
*/
|
|
@@ -4765,10 +4847,10 @@ class SplitButtonComponent extends ListButton {
|
|
|
4765
4847
|
if (this.isOpen) {
|
|
4766
4848
|
this.toggle(false);
|
|
4767
4849
|
}
|
|
4768
|
-
this._disabled
|
|
4850
|
+
this._disabled.set(value);
|
|
4769
4851
|
}
|
|
4770
4852
|
get disabled() {
|
|
4771
|
-
return this._disabled;
|
|
4853
|
+
return this._disabled();
|
|
4772
4854
|
}
|
|
4773
4855
|
/**
|
|
4774
4856
|
* Configures the popup settings of the SplitButton.
|
|
@@ -4853,7 +4935,9 @@ class SplitButtonComponent extends ListButton {
|
|
|
4853
4935
|
* Specifies a template to customize the content of the items in the drop-down list.
|
|
4854
4936
|
*/
|
|
4855
4937
|
itemTemplate;
|
|
4856
|
-
activeArrow
|
|
4938
|
+
get activeArrow() {
|
|
4939
|
+
return this._activeArrow();
|
|
4940
|
+
}
|
|
4857
4941
|
listId = guid();
|
|
4858
4942
|
/**
|
|
4859
4943
|
* @hidden
|
|
@@ -4865,7 +4949,7 @@ class SplitButtonComponent extends ListButton {
|
|
|
4865
4949
|
* @hidden
|
|
4866
4950
|
*/
|
|
4867
4951
|
get active() {
|
|
4868
|
-
return this._active;
|
|
4952
|
+
return this._active();
|
|
4869
4953
|
}
|
|
4870
4954
|
/**
|
|
4871
4955
|
* @hidden
|
|
@@ -4873,30 +4957,33 @@ class SplitButtonComponent extends ListButton {
|
|
|
4873
4957
|
get componentTabIndex() {
|
|
4874
4958
|
return this.disabled ? -1 : this.tabIndex;
|
|
4875
4959
|
}
|
|
4876
|
-
buttonText = '';
|
|
4960
|
+
buttonText = signal('', ...(ngDevMode ? [{ debugName: "buttonText" }] : []));
|
|
4877
4961
|
arrowButtonClicked = false;
|
|
4878
|
-
_rounded = undefined;
|
|
4879
|
-
_fillMode = undefined;
|
|
4962
|
+
_rounded = signal(undefined, ...(ngDevMode ? [{ debugName: "_rounded" }] : []));
|
|
4963
|
+
_fillMode = signal(undefined, ...(ngDevMode ? [{ debugName: "_fillMode" }] : []));
|
|
4964
|
+
_themeColor = signal(undefined, ...(ngDevMode ? [{ debugName: "_themeColor" }] : []));
|
|
4965
|
+
_size = signal(undefined, ...(ngDevMode ? [{ debugName: "_size" }] : []));
|
|
4880
4966
|
_buttonAttributes = null;
|
|
4967
|
+
_activeArrow = signal(false, ...(ngDevMode ? [{ debugName: "_activeArrow" }] : []));
|
|
4881
4968
|
documentMouseUpSub;
|
|
4882
4969
|
set isFocused(value) {
|
|
4883
4970
|
this._isFocused = value;
|
|
4884
4971
|
}
|
|
4885
4972
|
get isFocused() {
|
|
4886
|
-
return this._isFocused && !this._disabled && isDocumentAvailable() && this.wrapperContains(document.activeElement);
|
|
4973
|
+
return this._isFocused && !this._disabled() && isDocumentAvailable() && this.wrapperContains(document.activeElement);
|
|
4887
4974
|
}
|
|
4888
4975
|
get widgetClasses() {
|
|
4889
4976
|
return true;
|
|
4890
4977
|
}
|
|
4891
4978
|
get dir() {
|
|
4892
|
-
return this.direction;
|
|
4979
|
+
return this.direction();
|
|
4893
4980
|
}
|
|
4894
4981
|
/**
|
|
4895
4982
|
* @hidden
|
|
4896
4983
|
*/
|
|
4897
4984
|
get ariaLabel() {
|
|
4898
4985
|
const localizationMsg = this.messageFor('splitButtonLabel') || '';
|
|
4899
|
-
return replaceMessagePlaceholder(localizationMsg, 'buttonText', this.buttonText);
|
|
4986
|
+
return replaceMessagePlaceholder(localizationMsg, 'buttonText', this.buttonText());
|
|
4900
4987
|
}
|
|
4901
4988
|
/**
|
|
4902
4989
|
* @hidden
|
|
@@ -4908,7 +4995,7 @@ class SplitButtonComponent extends ListButton {
|
|
|
4908
4995
|
* @hidden
|
|
4909
4996
|
*/
|
|
4910
4997
|
onButtonFocus(event) {
|
|
4911
|
-
if (!this._disabled) {
|
|
4998
|
+
if (!this._disabled()) {
|
|
4912
4999
|
if (!this._isFocused) {
|
|
4913
5000
|
this.onFocus.emit();
|
|
4914
5001
|
}
|
|
@@ -4934,14 +5021,14 @@ class SplitButtonComponent extends ListButton {
|
|
|
4934
5021
|
* @hidden
|
|
4935
5022
|
*/
|
|
4936
5023
|
toggleButtonActiveState(enable) {
|
|
4937
|
-
this._active
|
|
5024
|
+
this._active.set(enable);
|
|
4938
5025
|
}
|
|
4939
5026
|
/**
|
|
4940
5027
|
* @hidden
|
|
4941
5028
|
*/
|
|
4942
5029
|
toggleArrowButtonActiveState(enable) {
|
|
4943
5030
|
this.arrowButtonClicked = true;
|
|
4944
|
-
this.
|
|
5031
|
+
this._activeArrow.set(enable);
|
|
4945
5032
|
}
|
|
4946
5033
|
/**
|
|
4947
5034
|
* @hidden
|
|
@@ -4963,14 +5050,14 @@ class SplitButtonComponent extends ListButton {
|
|
|
4963
5050
|
keydown(event) {
|
|
4964
5051
|
this.keyDownHandler(event, true);
|
|
4965
5052
|
if (event.code === Keys.Space) {
|
|
4966
|
-
this._active
|
|
5053
|
+
this._active.set(true);
|
|
4967
5054
|
}
|
|
4968
5055
|
}
|
|
4969
5056
|
/**
|
|
4970
5057
|
* @hidden
|
|
4971
5058
|
*/
|
|
4972
5059
|
keyup(event) {
|
|
4973
|
-
this._active
|
|
5060
|
+
this._active.set(false);
|
|
4974
5061
|
if (event.code !== Keys.Space) {
|
|
4975
5062
|
this.keyUpHandler(event);
|
|
4976
5063
|
}
|
|
@@ -5036,7 +5123,7 @@ class SplitButtonComponent extends ListButton {
|
|
|
5036
5123
|
*/
|
|
5037
5124
|
get anchorAlign() {
|
|
5038
5125
|
const align = { horizontal: this.popupSettings.align || 'left', vertical: 'bottom' };
|
|
5039
|
-
if (this.direction === 'rtl' && !isPresent(this.popupSettings.align)) {
|
|
5126
|
+
if (this.direction() === 'rtl' && !isPresent(this.popupSettings.align)) {
|
|
5040
5127
|
align.horizontal = 'right';
|
|
5041
5128
|
}
|
|
5042
5129
|
return align;
|
|
@@ -5046,7 +5133,7 @@ class SplitButtonComponent extends ListButton {
|
|
|
5046
5133
|
*/
|
|
5047
5134
|
get popupAlign() {
|
|
5048
5135
|
const align = { horizontal: this.popupSettings.align || 'left', vertical: 'top' };
|
|
5049
|
-
if (this.direction === 'rtl' && !isPresent(this.popupSettings.align)) {
|
|
5136
|
+
if (this.direction() === 'rtl' && !isPresent(this.popupSettings.align)) {
|
|
5050
5137
|
align.horizontal = 'right';
|
|
5051
5138
|
}
|
|
5052
5139
|
return align;
|
|
@@ -5085,10 +5172,10 @@ class SplitButtonComponent extends ListButton {
|
|
|
5085
5172
|
zone.runOutsideAngular(() => {
|
|
5086
5173
|
this.documentMouseUpSub = this.renderer.listen('document', 'mouseup', () => {
|
|
5087
5174
|
if (this.active) {
|
|
5088
|
-
zone.run(() => this._active
|
|
5175
|
+
zone.run(() => this._active.set(false));
|
|
5089
5176
|
}
|
|
5090
5177
|
if (this.activeArrow) {
|
|
5091
|
-
zone.run(() => this.
|
|
5178
|
+
zone.run(() => this._activeArrow.set(false));
|
|
5092
5179
|
}
|
|
5093
5180
|
});
|
|
5094
5181
|
});
|
|
@@ -5105,8 +5192,8 @@ class SplitButtonComponent extends ListButton {
|
|
|
5105
5192
|
.split('\n')
|
|
5106
5193
|
.join('')
|
|
5107
5194
|
.trim();
|
|
5108
|
-
if (innerText !== this.buttonText) {
|
|
5109
|
-
this.buttonText
|
|
5195
|
+
if (innerText !== this.buttonText()) {
|
|
5196
|
+
this.buttonText.set(innerText);
|
|
5110
5197
|
}
|
|
5111
5198
|
}
|
|
5112
5199
|
}
|
|
@@ -5136,8 +5223,8 @@ class SplitButtonComponent extends ListButton {
|
|
|
5136
5223
|
}
|
|
5137
5224
|
}
|
|
5138
5225
|
}
|
|
5139
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5140
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
5226
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SplitButtonComponent, deps: [{ token: FocusService }, { token: NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: PopupContainerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5227
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", 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: [
|
|
5141
5228
|
FocusService,
|
|
5142
5229
|
NavigationService,
|
|
5143
5230
|
NAVIGATION_SETTINGS_PROVIDER,
|
|
@@ -5150,11 +5237,12 @@ class SplitButtonComponent extends ListButton {
|
|
|
5150
5237
|
{
|
|
5151
5238
|
provide: MultiTabStop,
|
|
5152
5239
|
useExisting: forwardRef(() => SplitButtonComponent)
|
|
5153
|
-
}
|
|
5240
|
+
},
|
|
5241
|
+
provideComponentName('splitbutton')
|
|
5154
5242
|
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], exportAs: ["kendoSplitButton"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
5155
5243
|
<ng-container kendoSplitButtonLocalizedMessages
|
|
5156
5244
|
i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
|
|
5157
|
-
splitButtonLabel="
|
|
5245
|
+
splitButtonLabel="[[buttonText]] splitbutton"
|
|
5158
5246
|
i18n-toggleButtonLabel="kendo.splitbutton.toggleButtonLabel|The text for the SplitButton toggle button aria-label"
|
|
5159
5247
|
toggleButtonLabel="Toggle options"
|
|
5160
5248
|
></ng-container>
|
|
@@ -5201,6 +5289,7 @@ class SplitButtonComponent extends ListButton {
|
|
|
5201
5289
|
[attr.aria-label]="messageFor('toggleButtonLabel')"
|
|
5202
5290
|
[attr.aria-expanded]="openState"
|
|
5203
5291
|
[attr.aria-controls]="openState ? listId : null"
|
|
5292
|
+
[attr.aria-disabled]="disabled || null"
|
|
5204
5293
|
(click)="onArrowButtonClick()"
|
|
5205
5294
|
(mousedown)="toggleArrowButtonActiveState(true)"
|
|
5206
5295
|
(mouseup)="toggleArrowButtonActiveState(false)"
|
|
@@ -5220,11 +5309,13 @@ class SplitButtonComponent extends ListButton {
|
|
|
5220
5309
|
</kendo-button-list>
|
|
5221
5310
|
</ng-template>
|
|
5222
5311
|
<ng-container #container></ng-container>
|
|
5223
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedSplitButtonMessagesDirective, selector: "[kendoSplitButtonLocalizedMessages]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], 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"] }] });
|
|
5312
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedSplitButtonMessagesDirective, selector: "[kendoSplitButtonLocalizedMessages]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5224
5313
|
}
|
|
5225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SplitButtonComponent, decorators: [{
|
|
5226
5315
|
type: Component,
|
|
5227
5316
|
args: [{
|
|
5317
|
+
selector: 'kendo-splitbutton',
|
|
5318
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5228
5319
|
exportAs: 'kendoSplitButton',
|
|
5229
5320
|
providers: [
|
|
5230
5321
|
FocusService,
|
|
@@ -5239,13 +5330,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
5239
5330
|
{
|
|
5240
5331
|
provide: MultiTabStop,
|
|
5241
5332
|
useExisting: forwardRef(() => SplitButtonComponent)
|
|
5242
|
-
}
|
|
5333
|
+
},
|
|
5334
|
+
provideComponentName('splitbutton')
|
|
5243
5335
|
],
|
|
5244
|
-
selector: 'kendo-splitbutton',
|
|
5245
5336
|
template: `
|
|
5246
5337
|
<ng-container kendoSplitButtonLocalizedMessages
|
|
5247
5338
|
i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
|
|
5248
|
-
splitButtonLabel="
|
|
5339
|
+
splitButtonLabel="[[buttonText]] splitbutton"
|
|
5249
5340
|
i18n-toggleButtonLabel="kendo.splitbutton.toggleButtonLabel|The text for the SplitButton toggle button aria-label"
|
|
5250
5341
|
toggleButtonLabel="Toggle options"
|
|
5251
5342
|
></ng-container>
|
|
@@ -5292,6 +5383,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
5292
5383
|
[attr.aria-label]="messageFor('toggleButtonLabel')"
|
|
5293
5384
|
[attr.aria-expanded]="openState"
|
|
5294
5385
|
[attr.aria-controls]="openState ? listId : null"
|
|
5386
|
+
[attr.aria-disabled]="disabled || null"
|
|
5295
5387
|
(click)="onArrowButtonClick()"
|
|
5296
5388
|
(mousedown)="toggleArrowButtonActiveState(true)"
|
|
5297
5389
|
(mouseup)="toggleArrowButtonActiveState(false)"
|
|
@@ -5515,12 +5607,15 @@ class SpeechToTextButtonComponent {
|
|
|
5515
5607
|
get listeningClass() {
|
|
5516
5608
|
return this.isListening;
|
|
5517
5609
|
}
|
|
5610
|
+
get ariaPressed() {
|
|
5611
|
+
return this.isListening ? 'true' : 'false';
|
|
5612
|
+
}
|
|
5518
5613
|
speechToTextButtonClass = true;
|
|
5519
5614
|
get classDisabled() {
|
|
5520
5615
|
return this.isDisabled;
|
|
5521
5616
|
}
|
|
5522
5617
|
get getDirection() {
|
|
5523
|
-
return this.
|
|
5618
|
+
return this._direction();
|
|
5524
5619
|
}
|
|
5525
5620
|
/**
|
|
5526
5621
|
* @hidden
|
|
@@ -5600,15 +5695,20 @@ class SpeechToTextButtonComponent {
|
|
|
5600
5695
|
this.renderer = renderer;
|
|
5601
5696
|
this.ngZone = ngZone;
|
|
5602
5697
|
validatePackage(packageMetadata);
|
|
5603
|
-
this.
|
|
5604
|
-
this.subs.add(localization.changes.subscribe(({ rtl }) =>
|
|
5698
|
+
this._direction.set(localization.rtl ? 'rtl' : 'ltr');
|
|
5699
|
+
this.subs.add(localization.changes.subscribe(({ rtl }) => this._direction.set(rtl ? 'rtl' : 'ltr')));
|
|
5605
5700
|
this.element = element.nativeElement;
|
|
5606
5701
|
this.renderer.addClass(this.element, 'k-button');
|
|
5607
5702
|
}
|
|
5608
5703
|
/**
|
|
5609
5704
|
* Indicates whether the button is actively listening for incoming audio.
|
|
5610
5705
|
*/
|
|
5611
|
-
isListening
|
|
5706
|
+
get isListening() {
|
|
5707
|
+
return this._isListening();
|
|
5708
|
+
}
|
|
5709
|
+
set isListening(value) {
|
|
5710
|
+
this._isListening.set(value);
|
|
5711
|
+
}
|
|
5612
5712
|
/**
|
|
5613
5713
|
* Indicates whether web speech functionality is supported.
|
|
5614
5714
|
*/
|
|
@@ -5653,7 +5753,7 @@ class SpeechToTextButtonComponent {
|
|
|
5653
5753
|
}
|
|
5654
5754
|
const result = asyncFactory();
|
|
5655
5755
|
const observable = this.toObservable(result);
|
|
5656
|
-
observable.pipe(take(1)).subscribe(() => this.
|
|
5756
|
+
observable.pipe(take(1)).subscribe(() => this._isListening.set(!this._isListening()));
|
|
5657
5757
|
});
|
|
5658
5758
|
}
|
|
5659
5759
|
}
|
|
@@ -5688,8 +5788,9 @@ class SpeechToTextButtonComponent {
|
|
|
5688
5788
|
_rounded = undefined;
|
|
5689
5789
|
_fillMode = undefined;
|
|
5690
5790
|
_themeColor = undefined;
|
|
5791
|
+
_isListening = signal(false, ...(ngDevMode ? [{ debugName: "_isListening" }] : []));
|
|
5691
5792
|
_focused = false;
|
|
5692
|
-
|
|
5793
|
+
_direction = signal('', ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
5693
5794
|
handleClasses(value, input) {
|
|
5694
5795
|
const elem = this.element;
|
|
5695
5796
|
const classes = getStylingClasses('button', input, this[input], value);
|
|
@@ -5705,13 +5806,13 @@ class SpeechToTextButtonComponent {
|
|
|
5705
5806
|
}
|
|
5706
5807
|
handleStart() {
|
|
5707
5808
|
this.ngZone.run(() => {
|
|
5708
|
-
this.
|
|
5809
|
+
this._isListening.set(true);
|
|
5709
5810
|
this.start.emit();
|
|
5710
5811
|
});
|
|
5711
5812
|
}
|
|
5712
5813
|
handleEnd() {
|
|
5713
5814
|
this.ngZone.run(() => {
|
|
5714
|
-
this.
|
|
5815
|
+
this._isListening.set(false);
|
|
5715
5816
|
this.end.emit();
|
|
5716
5817
|
});
|
|
5717
5818
|
}
|
|
@@ -5756,7 +5857,7 @@ class SpeechToTextButtonComponent {
|
|
|
5756
5857
|
this.speechRecognition.stop();
|
|
5757
5858
|
this.speechRecognition.destroy();
|
|
5758
5859
|
this.speechRecognition = null;
|
|
5759
|
-
this.
|
|
5860
|
+
this._isListening.set(false);
|
|
5760
5861
|
}
|
|
5761
5862
|
}
|
|
5762
5863
|
createWebSpeech() {
|
|
@@ -5776,13 +5877,14 @@ class SpeechToTextButtonComponent {
|
|
|
5776
5877
|
}
|
|
5777
5878
|
});
|
|
5778
5879
|
}
|
|
5779
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5780
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
5880
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SpeechToTextButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
5881
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: SpeechToTextButtonComponent, isStandalone: true, selector: "button[kendoSpeechToTextButton]", inputs: { disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", integrationMode: "integrationMode", lang: "lang", continuous: "continuous", interimResults: "interimResults", maxAlternatives: "maxAlternatives" }, outputs: { start: "start", end: "end", result: "result", error: "error", click: "click" }, host: { listeners: { "focus": "onFocus()", "blur": "onBlur()" }, properties: { "class.k-icon-button": "this.iconButtonClass", "class.k-listening": "this.listeningClass", "attr.aria-pressed": "this.ariaPressed", "class.k-speech-to-text-button": "this.speechToTextButtonClass", "class.k-disabled": "this.classDisabled", "attr.dir": "this.getDirection" } }, providers: [
|
|
5781
5882
|
LocalizationService,
|
|
5782
5883
|
{
|
|
5783
5884
|
provide: L10N_PREFIX,
|
|
5784
5885
|
useValue: 'kendo.speechtotextbutton'
|
|
5785
|
-
}
|
|
5886
|
+
},
|
|
5887
|
+
provideComponentName('speechtotextbutton')
|
|
5786
5888
|
], exportAs: ["kendoSpeechToTextButton"], usesOnChanges: true, ngImport: i0, template: `
|
|
5787
5889
|
<kendo-icon-wrapper
|
|
5788
5890
|
innerCssClass="k-button-icon"
|
|
@@ -5790,20 +5892,22 @@ class SpeechToTextButtonComponent {
|
|
|
5790
5892
|
[svgIcon]="buttonSvgIcon">
|
|
5791
5893
|
</kendo-icon-wrapper>
|
|
5792
5894
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
5793
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
5895
|
+
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5794
5896
|
}
|
|
5795
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SpeechToTextButtonComponent, decorators: [{
|
|
5796
5898
|
type: Component,
|
|
5797
5899
|
args: [{
|
|
5900
|
+
selector: 'button[kendoSpeechToTextButton]',
|
|
5901
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5798
5902
|
exportAs: 'kendoSpeechToTextButton',
|
|
5799
5903
|
providers: [
|
|
5800
5904
|
LocalizationService,
|
|
5801
5905
|
{
|
|
5802
5906
|
provide: L10N_PREFIX,
|
|
5803
5907
|
useValue: 'kendo.speechtotextbutton'
|
|
5804
|
-
}
|
|
5908
|
+
},
|
|
5909
|
+
provideComponentName('speechtotextbutton')
|
|
5805
5910
|
],
|
|
5806
|
-
selector: 'button[kendoSpeechToTextButton]',
|
|
5807
5911
|
template: `
|
|
5808
5912
|
<kendo-icon-wrapper
|
|
5809
5913
|
innerCssClass="k-button-icon"
|
|
@@ -5851,6 +5955,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
5851
5955
|
}], listeningClass: [{
|
|
5852
5956
|
type: HostBinding,
|
|
5853
5957
|
args: ['class.k-listening']
|
|
5958
|
+
}], ariaPressed: [{
|
|
5959
|
+
type: HostBinding,
|
|
5960
|
+
args: ['attr.aria-pressed']
|
|
5854
5961
|
}], speechToTextButtonClass: [{
|
|
5855
5962
|
type: HostBinding,
|
|
5856
5963
|
args: ['class.k-speech-to-text-button']
|
|
@@ -6204,7 +6311,7 @@ class SmartPasteButtonComponent {
|
|
|
6204
6311
|
return this.isDisabled;
|
|
6205
6312
|
}
|
|
6206
6313
|
get getDirection() {
|
|
6207
|
-
return this.
|
|
6314
|
+
return this._direction();
|
|
6208
6315
|
}
|
|
6209
6316
|
onFocus() {
|
|
6210
6317
|
this.isFocused = true;
|
|
@@ -6248,7 +6355,7 @@ class SmartPasteButtonComponent {
|
|
|
6248
6355
|
_fillMode = undefined;
|
|
6249
6356
|
_themeColor = undefined;
|
|
6250
6357
|
_focused = false;
|
|
6251
|
-
|
|
6358
|
+
_direction = signal('', ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
6252
6359
|
_iconClass;
|
|
6253
6360
|
_icon = DEFAULT_ICON;
|
|
6254
6361
|
_svgIcon = DEFAULT_SVG_ICON;
|
|
@@ -6262,8 +6369,8 @@ class SmartPasteButtonComponent {
|
|
|
6262
6369
|
this.http = http;
|
|
6263
6370
|
this.controlContainer = controlContainer;
|
|
6264
6371
|
validatePackage(packageMetadata);
|
|
6265
|
-
this.
|
|
6266
|
-
this.subs.add(localization.changes.subscribe(({ rtl }) =>
|
|
6372
|
+
this._direction.set(localization.rtl ? 'rtl' : 'ltr');
|
|
6373
|
+
this.subs.add(localization.changes.subscribe(({ rtl }) => this._direction.set(rtl ? 'rtl' : 'ltr')));
|
|
6267
6374
|
this.element = elementRef.nativeElement;
|
|
6268
6375
|
this.renderer.addClass(this.element, 'k-button');
|
|
6269
6376
|
}
|
|
@@ -6295,7 +6402,7 @@ class SmartPasteButtonComponent {
|
|
|
6295
6402
|
* Reads clipboard content and sends it to the AI service for processing.
|
|
6296
6403
|
*/
|
|
6297
6404
|
async paste() {
|
|
6298
|
-
if (!this.nativeForm) {
|
|
6405
|
+
if (!this.nativeForm || this.isDisabled) {
|
|
6299
6406
|
return;
|
|
6300
6407
|
}
|
|
6301
6408
|
if (this.smartPasteBusy) {
|
|
@@ -6472,13 +6579,14 @@ class SmartPasteButtonComponent {
|
|
|
6472
6579
|
this.currentRequestSubscription = null;
|
|
6473
6580
|
});
|
|
6474
6581
|
}
|
|
6475
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6476
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6582
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SmartPasteButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.NgZone }, { token: i2.HttpClient }, { token: i3$1.ControlContainer, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
6583
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: SmartPasteButtonComponent, isStandalone: true, selector: "button[kendoSmartPasteButton]", inputs: { formFields: "formFields", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", svgIcon: "svgIcon", imageUrl: "imageUrl", iconClass: "iconClass", icon: "icon", requestUrl: "requestUrl", requestOptions: "requestOptions", smartPasteFormFields: "smartPasteFormFields" }, outputs: { requestStart: "requestStart", requestEnd: "requestEnd", requestCancel: "requestCancel" }, host: { listeners: { "focus": "onFocus()", "blur": "onBlur()" }, properties: { "class.k-icon-button": "this.iconButtonClass", "class.k-disabled": "this.classDisabled", "attr.dir": "this.getDirection" } }, providers: [
|
|
6477
6584
|
LocalizationService,
|
|
6478
6585
|
{
|
|
6479
6586
|
provide: L10N_PREFIX,
|
|
6480
6587
|
useValue: 'kendo.smartpastebutton'
|
|
6481
|
-
}
|
|
6588
|
+
},
|
|
6589
|
+
provideComponentName('smartpastebutton')
|
|
6482
6590
|
], exportAs: ["kendoSmartPasteButton"], ngImport: i0, template: `
|
|
6483
6591
|
@if (icon || svgIcon) {
|
|
6484
6592
|
<kendo-icon-wrapper
|
|
@@ -6495,20 +6603,22 @@ class SmartPasteButtonComponent {
|
|
|
6495
6603
|
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
6496
6604
|
}
|
|
6497
6605
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
6498
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
6606
|
+
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6499
6607
|
}
|
|
6500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6608
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SmartPasteButtonComponent, decorators: [{
|
|
6501
6609
|
type: Component,
|
|
6502
6610
|
args: [{
|
|
6611
|
+
selector: 'button[kendoSmartPasteButton]',
|
|
6612
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6503
6613
|
exportAs: 'kendoSmartPasteButton',
|
|
6504
6614
|
providers: [
|
|
6505
6615
|
LocalizationService,
|
|
6506
6616
|
{
|
|
6507
6617
|
provide: L10N_PREFIX,
|
|
6508
6618
|
useValue: 'kendo.smartpastebutton'
|
|
6509
|
-
}
|
|
6619
|
+
},
|
|
6620
|
+
provideComponentName('smartpastebutton')
|
|
6510
6621
|
],
|
|
6511
|
-
selector: 'button[kendoSmartPasteButton]',
|
|
6512
6622
|
standalone: true,
|
|
6513
6623
|
imports: [IconWrapperComponent, NgClass],
|
|
6514
6624
|
template: `
|
|
@@ -6597,12 +6707,13 @@ class SegmentedControlComponent {
|
|
|
6597
6707
|
renderer;
|
|
6598
6708
|
wrapper;
|
|
6599
6709
|
zone;
|
|
6710
|
+
injector;
|
|
6600
6711
|
hostClass = true;
|
|
6601
6712
|
get stretchedClass() {
|
|
6602
6713
|
return this._layoutMode === 'stretch';
|
|
6603
6714
|
}
|
|
6604
6715
|
get direction() {
|
|
6605
|
-
return this._direction;
|
|
6716
|
+
return this._direction();
|
|
6606
6717
|
}
|
|
6607
6718
|
hostRole = 'group';
|
|
6608
6719
|
thumb;
|
|
@@ -6664,16 +6775,17 @@ class SegmentedControlComponent {
|
|
|
6664
6775
|
_items = [];
|
|
6665
6776
|
_size;
|
|
6666
6777
|
_layoutMode = 'compact';
|
|
6667
|
-
_direction;
|
|
6778
|
+
_direction = signal('', ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
6668
6779
|
subs = new Subscription();
|
|
6669
|
-
constructor(renderer, wrapper, zone, localization) {
|
|
6780
|
+
constructor(renderer, wrapper, zone, injector, localization) {
|
|
6670
6781
|
this.renderer = renderer;
|
|
6671
6782
|
this.wrapper = wrapper;
|
|
6672
6783
|
this.zone = zone;
|
|
6784
|
+
this.injector = injector;
|
|
6673
6785
|
validatePackage(packageMetadata);
|
|
6674
|
-
this._direction
|
|
6786
|
+
this._direction.set(localization.rtl ? 'rtl' : 'ltr');
|
|
6675
6787
|
this.subs.add(localization.changes.subscribe(({ rtl }) => {
|
|
6676
|
-
this._direction
|
|
6788
|
+
this._direction.set(rtl ? 'rtl' : 'ltr');
|
|
6677
6789
|
}));
|
|
6678
6790
|
}
|
|
6679
6791
|
ngAfterViewInit() {
|
|
@@ -6725,7 +6837,7 @@ class SegmentedControlComponent {
|
|
|
6725
6837
|
if (!isDocumentAvailable()) {
|
|
6726
6838
|
return;
|
|
6727
6839
|
}
|
|
6728
|
-
|
|
6840
|
+
afterNextRender(() => {
|
|
6729
6841
|
const element = this.wrapper.nativeElement;
|
|
6730
6842
|
if (!element?.getBoundingClientRect) {
|
|
6731
6843
|
return;
|
|
@@ -6741,15 +6853,16 @@ class SegmentedControlComponent {
|
|
|
6741
6853
|
const right = controlRect.right - itemRect.right;
|
|
6742
6854
|
this.renderer.setStyle(selectionIndicator, 'left', `${left}px`);
|
|
6743
6855
|
this.renderer.setStyle(selectionIndicator, 'right', `${right}px`);
|
|
6744
|
-
});
|
|
6856
|
+
}, { injector: this.injector });
|
|
6745
6857
|
}
|
|
6746
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6747
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6858
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SegmentedControlComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6859
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: SegmentedControlComponent, isStandalone: true, selector: "kendo-segmented-control", inputs: { items: "items", layoutMode: "layoutMode", size: "size", selected: "selected" }, outputs: { selectedChange: "selectedChange" }, host: { properties: { "class.k-segmented-control": "this.hostClass", "class.k-segmented-control-stretched": "this.stretchedClass", "attr.dir": "this.direction", "attr.role": "this.hostRole" } }, providers: [
|
|
6748
6860
|
LocalizationService,
|
|
6749
6861
|
{
|
|
6750
6862
|
provide: L10N_PREFIX,
|
|
6751
6863
|
useValue: 'kendo.segmentedcontrol'
|
|
6752
|
-
}
|
|
6864
|
+
},
|
|
6865
|
+
provideComponentName('segmentedcontrol')
|
|
6753
6866
|
], viewQueries: [{ propertyName: "thumb", first: true, predicate: ["thumb"], descendants: true }, { propertyName: "resizeSensor", first: true, predicate: ["resizeSensor"], descendants: true }], ngImport: i0, template: `
|
|
6754
6867
|
<kendo-resize-sensor #resizeSensor></kendo-resize-sensor>
|
|
6755
6868
|
<div class="k-segmented-control-thumb" #thumb [attr.aria-hidden]="true"></div>
|
|
@@ -6778,7 +6891,7 @@ class SegmentedControlComponent {
|
|
|
6778
6891
|
}
|
|
6779
6892
|
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6780
6893
|
}
|
|
6781
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SegmentedControlComponent, decorators: [{
|
|
6782
6895
|
type: Component,
|
|
6783
6896
|
args: [{
|
|
6784
6897
|
selector: 'kendo-segmented-control',
|
|
@@ -6790,7 +6903,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
6790
6903
|
{
|
|
6791
6904
|
provide: L10N_PREFIX,
|
|
6792
6905
|
useValue: 'kendo.segmentedcontrol'
|
|
6793
|
-
}
|
|
6906
|
+
},
|
|
6907
|
+
provideComponentName('segmentedcontrol')
|
|
6794
6908
|
],
|
|
6795
6909
|
template: `
|
|
6796
6910
|
<kendo-resize-sensor #resizeSensor></kendo-resize-sensor>
|
|
@@ -6820,7 +6934,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
6820
6934
|
}
|
|
6821
6935
|
`
|
|
6822
6936
|
}]
|
|
6823
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.LocalizationService }], propDecorators: { hostClass: [{
|
|
6937
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }, { type: i1.LocalizationService }], propDecorators: { hostClass: [{
|
|
6824
6938
|
type: HostBinding,
|
|
6825
6939
|
args: ['class.k-segmented-control']
|
|
6826
6940
|
}], stretchedClass: [{
|
|
@@ -7071,11 +7185,11 @@ const KENDO_BUTTONS = [
|
|
|
7071
7185
|
* ```
|
|
7072
7186
|
*/
|
|
7073
7187
|
class ButtonGroupModule {
|
|
7074
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7075
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7076
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7188
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7189
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: ButtonGroupModule, imports: [ButtonComponent, ButtonGroupComponent], exports: [ButtonComponent, ButtonGroupComponent] });
|
|
7190
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonGroupModule, providers: [IconsService], imports: [ButtonComponent] });
|
|
7077
7191
|
}
|
|
7078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonGroupModule, decorators: [{
|
|
7079
7193
|
type: NgModule,
|
|
7080
7194
|
args: [{
|
|
7081
7195
|
exports: [...KENDO_BUTTONGROUP],
|
|
@@ -7107,11 +7221,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
7107
7221
|
* ```
|
|
7108
7222
|
*/
|
|
7109
7223
|
class ButtonModule {
|
|
7110
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7111
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7112
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7224
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7225
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: ButtonModule, imports: [ButtonComponent], exports: [ButtonComponent] });
|
|
7226
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonModule, providers: [IconsService], imports: [ButtonComponent] });
|
|
7113
7227
|
}
|
|
7114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonModule, decorators: [{
|
|
7115
7229
|
type: NgModule,
|
|
7116
7230
|
args: [{
|
|
7117
7231
|
imports: [ButtonComponent],
|
|
@@ -7143,11 +7257,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
7143
7257
|
* ```
|
|
7144
7258
|
*/
|
|
7145
7259
|
class ButtonsModule {
|
|
7146
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7147
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7148
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7260
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7261
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: ButtonsModule, imports: [ButtonComponent, ButtonComponent, ButtonGroupComponent, DropDownButtonComponent, ButtonItemTemplateDirective, ChipComponent, ChipComponent, ChipListComponent, FloatingActionButtonComponent, DialItemTemplateDirective, FloatingActionButtonTemplateDirective, SplitButtonComponent, SplitButtonCustomMessagesComponent, i12.ToggleButtonTabStopDirective, ButtonItemTemplateDirective, SpeechToTextButtonComponent, SmartPasteButtonComponent, SegmentedControlComponent, i12.ToggleButtonTabStopDirective], exports: [ButtonComponent, ButtonComponent, ButtonGroupComponent, DropDownButtonComponent, ButtonItemTemplateDirective, ChipComponent, ChipComponent, ChipListComponent, FloatingActionButtonComponent, DialItemTemplateDirective, FloatingActionButtonTemplateDirective, SplitButtonComponent, SplitButtonCustomMessagesComponent, i12.ToggleButtonTabStopDirective, ButtonItemTemplateDirective, SpeechToTextButtonComponent, SmartPasteButtonComponent, SegmentedControlComponent, i12.ToggleButtonTabStopDirective] });
|
|
7262
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonsModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [ButtonComponent, ButtonComponent, DropDownButtonComponent, ChipComponent, ChipComponent, FloatingActionButtonComponent, SplitButtonComponent, SpeechToTextButtonComponent, SmartPasteButtonComponent, SegmentedControlComponent] });
|
|
7149
7263
|
}
|
|
7150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ButtonsModule, decorators: [{
|
|
7151
7265
|
type: NgModule,
|
|
7152
7266
|
args: [{
|
|
7153
7267
|
imports: [...KENDO_BUTTONS, ...KENDO_TOGGLEBUTTONTABSTOP],
|
|
@@ -7167,11 +7281,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
7167
7281
|
* - `SplitButtonCustomMessagesComponent`—The SplitButton custom messages component class.
|
|
7168
7282
|
*/
|
|
7169
7283
|
class SplitButtonModule {
|
|
7170
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7171
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7172
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7284
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7285
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: SplitButtonModule, imports: [SplitButtonComponent, SplitButtonCustomMessagesComponent, i12.ToggleButtonTabStopDirective, ButtonItemTemplateDirective, i12.ToggleButtonTabStopDirective], exports: [SplitButtonComponent, SplitButtonCustomMessagesComponent, i12.ToggleButtonTabStopDirective, ButtonItemTemplateDirective, i12.ToggleButtonTabStopDirective] });
|
|
7286
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SplitButtonModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [SplitButtonComponent] });
|
|
7173
7287
|
}
|
|
7174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7288
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SplitButtonModule, decorators: [{
|
|
7175
7289
|
type: NgModule,
|
|
7176
7290
|
args: [{
|
|
7177
7291
|
exports: [...KENDO_SPLITBUTTON, ...KENDO_TOGGLEBUTTONTABSTOP],
|
|
@@ -7206,11 +7320,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
7206
7320
|
* ```
|
|
7207
7321
|
*/
|
|
7208
7322
|
class DropDownButtonModule {
|
|
7209
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7210
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7211
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7323
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: DropDownButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7324
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: DropDownButtonModule, imports: [DropDownButtonComponent, ButtonItemTemplateDirective], exports: [DropDownButtonComponent, ButtonItemTemplateDirective] });
|
|
7325
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: DropDownButtonModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [DropDownButtonComponent] });
|
|
7212
7326
|
}
|
|
7213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: DropDownButtonModule, decorators: [{
|
|
7214
7328
|
type: NgModule,
|
|
7215
7329
|
args: [{
|
|
7216
7330
|
exports: [...KENDO_DROPDOWNBUTTON],
|
|
@@ -7242,11 +7356,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
7242
7356
|
* ```
|
|
7243
7357
|
*/
|
|
7244
7358
|
class ChipModule {
|
|
7245
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7246
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7247
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7359
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7360
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: ChipModule, imports: [ChipComponent, ChipListComponent], exports: [ChipComponent, ChipListComponent] });
|
|
7361
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChipModule, providers: [IconsService], imports: [ChipComponent] });
|
|
7248
7362
|
}
|
|
7249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChipModule, decorators: [{
|
|
7250
7364
|
type: NgModule,
|
|
7251
7365
|
args: [{
|
|
7252
7366
|
exports: [...KENDO_CHIPLIST],
|
|
@@ -7277,11 +7391,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
7277
7391
|
* ```
|
|
7278
7392
|
*/
|
|
7279
7393
|
class FloatingActionButtonModule {
|
|
7280
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7281
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7282
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7394
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: FloatingActionButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7395
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: FloatingActionButtonModule, imports: [FloatingActionButtonComponent, DialItemTemplateDirective, FloatingActionButtonTemplateDirective], exports: [FloatingActionButtonComponent, DialItemTemplateDirective, FloatingActionButtonTemplateDirective] });
|
|
7396
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: FloatingActionButtonModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [FloatingActionButtonComponent] });
|
|
7283
7397
|
}
|
|
7284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: FloatingActionButtonModule, decorators: [{
|
|
7285
7399
|
type: NgModule,
|
|
7286
7400
|
args: [{
|
|
7287
7401
|
exports: [...KENDO_FLOATINGACTIONBUTTON],
|
|
@@ -7300,11 +7414,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
7300
7414
|
* - `SpeechToTextButtonComponent`—The SpeechToTextButton component class.
|
|
7301
7415
|
*/
|
|
7302
7416
|
class SpeechToTextButtonModule {
|
|
7303
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7304
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7305
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7417
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SpeechToTextButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7418
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: SpeechToTextButtonModule, imports: [SpeechToTextButtonComponent], exports: [SpeechToTextButtonComponent] });
|
|
7419
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SpeechToTextButtonModule, providers: [IconsService], imports: [KENDO_SPEECHTOTEXTBUTTON] });
|
|
7306
7420
|
}
|
|
7307
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SpeechToTextButtonModule, decorators: [{
|
|
7308
7422
|
type: NgModule,
|
|
7309
7423
|
args: [{
|
|
7310
7424
|
exports: [...KENDO_SPEECHTOTEXTBUTTON],
|
|
@@ -7330,11 +7444,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
7330
7444
|
* ```
|
|
7331
7445
|
*/
|
|
7332
7446
|
class SmartPasteButtonModule {
|
|
7333
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7334
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7335
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7447
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SmartPasteButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7448
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: SmartPasteButtonModule, imports: [SmartPasteButtonComponent], exports: [SmartPasteButtonComponent] });
|
|
7449
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SmartPasteButtonModule, imports: [SmartPasteButtonComponent] });
|
|
7336
7450
|
}
|
|
7337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SmartPasteButtonModule, decorators: [{
|
|
7338
7452
|
type: NgModule,
|
|
7339
7453
|
args: [{
|
|
7340
7454
|
exports: [SmartPasteButtonComponent],
|
|
@@ -7352,11 +7466,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
7352
7466
|
* - `SegmentedControlComponent`—The SegmentedControl component class.
|
|
7353
7467
|
*/
|
|
7354
7468
|
class SegmentedControlModule {
|
|
7355
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7356
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7357
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7469
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SegmentedControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7470
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: SegmentedControlModule, imports: [SegmentedControlComponent], exports: [SegmentedControlComponent] });
|
|
7471
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SegmentedControlModule, providers: [IconsService], imports: [KENDO_SEGMENTEDCONTROL] });
|
|
7358
7472
|
}
|
|
7359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SegmentedControlModule, decorators: [{
|
|
7360
7474
|
type: NgModule,
|
|
7361
7475
|
args: [{
|
|
7362
7476
|
exports: [...KENDO_SEGMENTEDCONTROL],
|