@progress/kendo-angular-buttons 23.3.0-develop.11 → 23.3.0-develop.13
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/buttons.module.d.ts +2 -1
- package/directives.d.ts +16 -1
- package/fesm2022/progress-kendo-angular-buttons.mjs +298 -7
- package/index.d.ts +3 -0
- package/package-metadata.mjs +2 -2
- package/package.json +7 -7
- package/segmentedcontrol/models.d.ts +37 -0
- package/segmentedcontrol/segmented-control.component.d.ts +81 -0
- package/segmentedcontrol/segmented-control.module.d.ts +19 -0
package/buttons.module.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import * as i11 from "./splitbutton/localization/custom-messages.component";
|
|
|
17
17
|
import * as i12 from "@progress/kendo-angular-common";
|
|
18
18
|
import * as i13 from "./speechtotextbutton/speechtotextbutton.component";
|
|
19
19
|
import * as i14 from "./smartpastebutton/smartpastebutton.component";
|
|
20
|
+
import * as i15 from "./segmentedcontrol/segmented-control.component";
|
|
20
21
|
/**
|
|
21
22
|
* Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
|
|
22
23
|
* definition for the Buttons components.
|
|
@@ -40,6 +41,6 @@ import * as i14 from "./smartpastebutton/smartpastebutton.component";
|
|
|
40
41
|
*/
|
|
41
42
|
export declare class ButtonsModule {
|
|
42
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonsModule, never>;
|
|
43
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonsModule, never, [typeof i1.ButtonComponent, typeof i1.ButtonComponent, typeof i2.ButtonGroupComponent, typeof i3.DropDownButtonComponent, typeof i4.ButtonItemTemplateDirective, typeof i5.ChipComponent, typeof i5.ChipComponent, typeof i6.ChipListComponent, typeof i7.FloatingActionButtonComponent, typeof i8.DialItemTemplateDirective, typeof i9.FloatingActionButtonTemplateDirective, typeof i10.SplitButtonComponent, typeof i11.SplitButtonCustomMessagesComponent, typeof i12.ToggleButtonTabStopDirective, typeof i4.ButtonItemTemplateDirective, typeof i13.SpeechToTextButtonComponent, typeof i14.SmartPasteButtonComponent, typeof i12.ToggleButtonTabStopDirective], [typeof i1.ButtonComponent, typeof i1.ButtonComponent, typeof i2.ButtonGroupComponent, typeof i3.DropDownButtonComponent, typeof i4.ButtonItemTemplateDirective, typeof i5.ChipComponent, typeof i5.ChipComponent, typeof i6.ChipListComponent, typeof i7.FloatingActionButtonComponent, typeof i8.DialItemTemplateDirective, typeof i9.FloatingActionButtonTemplateDirective, typeof i10.SplitButtonComponent, typeof i11.SplitButtonCustomMessagesComponent, typeof i12.ToggleButtonTabStopDirective, typeof i4.ButtonItemTemplateDirective, typeof i13.SpeechToTextButtonComponent, typeof i14.SmartPasteButtonComponent, typeof i12.ToggleButtonTabStopDirective]>;
|
|
44
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonsModule, never, [typeof i1.ButtonComponent, typeof i1.ButtonComponent, typeof i2.ButtonGroupComponent, typeof i3.DropDownButtonComponent, typeof i4.ButtonItemTemplateDirective, typeof i5.ChipComponent, typeof i5.ChipComponent, typeof i6.ChipListComponent, typeof i7.FloatingActionButtonComponent, typeof i8.DialItemTemplateDirective, typeof i9.FloatingActionButtonTemplateDirective, typeof i10.SplitButtonComponent, typeof i11.SplitButtonCustomMessagesComponent, typeof i12.ToggleButtonTabStopDirective, typeof i4.ButtonItemTemplateDirective, typeof i13.SpeechToTextButtonComponent, typeof i14.SmartPasteButtonComponent, typeof i15.SegmentedControlComponent, typeof i12.ToggleButtonTabStopDirective], [typeof i1.ButtonComponent, typeof i1.ButtonComponent, typeof i2.ButtonGroupComponent, typeof i3.DropDownButtonComponent, typeof i4.ButtonItemTemplateDirective, typeof i5.ChipComponent, typeof i5.ChipComponent, typeof i6.ChipListComponent, typeof i7.FloatingActionButtonComponent, typeof i8.DialItemTemplateDirective, typeof i9.FloatingActionButtonTemplateDirective, typeof i10.SplitButtonComponent, typeof i11.SplitButtonCustomMessagesComponent, typeof i12.ToggleButtonTabStopDirective, typeof i4.ButtonItemTemplateDirective, typeof i13.SpeechToTextButtonComponent, typeof i14.SmartPasteButtonComponent, typeof i15.SegmentedControlComponent, typeof i12.ToggleButtonTabStopDirective]>;
|
|
44
45
|
static ɵinj: i0.ɵɵInjectorDeclaration<ButtonsModule>;
|
|
45
46
|
}
|
package/directives.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { SplitButtonComponent } from './splitbutton/splitbutton.component';
|
|
|
16
16
|
import { ButtonItemTemplateDirective } from './listbutton/button-item-template.directive';
|
|
17
17
|
import { SpeechToTextButtonComponent } from './speechtotextbutton/speechtotextbutton.component';
|
|
18
18
|
import { SmartPasteButtonComponent } from './smartpastebutton/smartpastebutton.component';
|
|
19
|
+
import { SegmentedControlComponent } from './segmentedcontrol/segmented-control.component';
|
|
19
20
|
/**
|
|
20
21
|
* Use the `KENDO_BUTTON` utility array to add all Button-related components and directives to a standalone Angular component.
|
|
21
22
|
*
|
|
@@ -142,6 +143,20 @@ export declare const KENDO_SPEECHTOTEXTBUTTON: readonly [typeof SpeechToTextButt
|
|
|
142
143
|
* ```
|
|
143
144
|
*/
|
|
144
145
|
export declare const KENDO_SMARTPASTEBUTTON: readonly [typeof SmartPasteButtonComponent];
|
|
146
|
+
/**
|
|
147
|
+
* Use the `KENDO_SEGMENTEDCONTROL` utility array to add all SegmentedControl-related components and directives to a standalone Angular component.
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* ```typescript
|
|
151
|
+
* @Component({
|
|
152
|
+
* standalone: true,
|
|
153
|
+
* imports: [KENDO_SEGMENTEDCONTROL],
|
|
154
|
+
* // ...
|
|
155
|
+
* })
|
|
156
|
+
* export class MyComponent {}
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
export declare const KENDO_SEGMENTEDCONTROL: readonly [typeof SegmentedControlComponent];
|
|
145
160
|
/**
|
|
146
161
|
* Use the `KENDO_BUTTONS` utility array to add all `@progress/kendo-angular-buttons`-related components and directives to a standalone Angular component.
|
|
147
162
|
*
|
|
@@ -155,4 +170,4 @@ export declare const KENDO_SMARTPASTEBUTTON: readonly [typeof SmartPasteButtonCo
|
|
|
155
170
|
* export class MyComponent {}
|
|
156
171
|
* ```
|
|
157
172
|
*/
|
|
158
|
-
export declare const KENDO_BUTTONS: readonly [typeof ButtonComponent, typeof ButtonComponent, typeof ButtonGroupComponent, typeof DropDownButtonComponent, typeof ButtonItemTemplateDirective, typeof ChipComponent, typeof ChipComponent, typeof ChipListComponent, typeof FloatingActionButtonComponent, typeof DialItemTemplateDirective, typeof FloatingActionButtonTemplateDirective, typeof SplitButtonComponent, typeof SplitButtonCustomMessagesComponent, typeof ToggleButtonTabStopDirective, typeof ButtonItemTemplateDirective, typeof SpeechToTextButtonComponent, typeof SmartPasteButtonComponent];
|
|
173
|
+
export declare const KENDO_BUTTONS: readonly [typeof ButtonComponent, typeof ButtonComponent, typeof ButtonGroupComponent, typeof DropDownButtonComponent, typeof ButtonItemTemplateDirective, typeof ChipComponent, typeof ChipComponent, typeof ChipListComponent, typeof FloatingActionButtonComponent, typeof DialItemTemplateDirective, typeof FloatingActionButtonTemplateDirective, typeof SplitButtonComponent, typeof SplitButtonCustomMessagesComponent, typeof ToggleButtonTabStopDirective, typeof ButtonItemTemplateDirective, typeof SpeechToTextButtonComponent, typeof SmartPasteButtonComponent, typeof SegmentedControlComponent];
|
|
@@ -3,7 +3,7 @@
|
|
|
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, Input, HostListener, HostBinding, Output, Optional, Component, ContentChildren, Directive, InjectionToken, Inject, ElementRef, ViewContainerRef, ViewChild, ContentChild, forwardRef, SkipSelf, NgModule } from '@angular/core';
|
|
6
|
+
import { Injectable, isDevMode, EventEmitter, Input, HostListener, HostBinding, Output, Optional, Component, ContentChildren, Directive, InjectionToken, Inject, ElementRef, ViewContainerRef, ViewChild, ContentChild, forwardRef, SkipSelf, ChangeDetectionStrategy, 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
9
|
import { isDocumentAvailable, isFirefox, isSafari, isChanged, hasObservers, normalizeKeys, Keys, TemplateContextDirective, MultiTabStop, guid, parseCSSClassNames, isPresent as isPresent$1, EventsOutsideAngularDirective, replaceMessagePlaceholder, anyChanged, PreventableEvent as PreventableEvent$1, ToggleButtonTabStopDirective, ResizeBatchService, KENDO_TOGGLEBUTTONTABSTOP } from '@progress/kendo-angular-common';
|
|
@@ -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: '23.3.0-develop.
|
|
52
|
+
publishDate: 1774449930,
|
|
53
|
+
version: '23.3.0-develop.13',
|
|
54
54
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -6609,6 +6609,257 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
6609
6609
|
args: ['blur']
|
|
6610
6610
|
}] } });
|
|
6611
6611
|
|
|
6612
|
+
const SIZES_MAP = {
|
|
6613
|
+
small: 'sm',
|
|
6614
|
+
medium: 'md',
|
|
6615
|
+
large: 'lg'
|
|
6616
|
+
};
|
|
6617
|
+
/**
|
|
6618
|
+
* Represents the Kendo UI SegmentedControl component for Angular.
|
|
6619
|
+
*
|
|
6620
|
+
* Renders a group of buttons where only one can be selected at a time,
|
|
6621
|
+
* with a sliding selection indicator.
|
|
6622
|
+
*/
|
|
6623
|
+
class SegmentedControlComponent {
|
|
6624
|
+
renderer;
|
|
6625
|
+
wrapper;
|
|
6626
|
+
cdr;
|
|
6627
|
+
zone;
|
|
6628
|
+
hostClass = true;
|
|
6629
|
+
get stretchedClass() {
|
|
6630
|
+
return this._layoutMode === 'stretch';
|
|
6631
|
+
}
|
|
6632
|
+
get direction() {
|
|
6633
|
+
return this._direction;
|
|
6634
|
+
}
|
|
6635
|
+
hostRole = 'group';
|
|
6636
|
+
thumb;
|
|
6637
|
+
/**
|
|
6638
|
+
* Specifies the collection of items to render in the SegmentedControl.
|
|
6639
|
+
*/
|
|
6640
|
+
set items(value) {
|
|
6641
|
+
this._items = value;
|
|
6642
|
+
this.showSelectionIndicator();
|
|
6643
|
+
}
|
|
6644
|
+
get items() {
|
|
6645
|
+
return this._items;
|
|
6646
|
+
}
|
|
6647
|
+
/**
|
|
6648
|
+
* Specifies the layout mode of the SegmentedControl.
|
|
6649
|
+
*
|
|
6650
|
+
* @default 'compact'
|
|
6651
|
+
*/
|
|
6652
|
+
set layoutMode(value) {
|
|
6653
|
+
this._layoutMode = value;
|
|
6654
|
+
this.showSelectionIndicator();
|
|
6655
|
+
}
|
|
6656
|
+
get layoutMode() {
|
|
6657
|
+
return this._layoutMode;
|
|
6658
|
+
}
|
|
6659
|
+
/**
|
|
6660
|
+
* Specifies the size of the SegmentedControl.
|
|
6661
|
+
*/
|
|
6662
|
+
set size(size) {
|
|
6663
|
+
const newSize = size;
|
|
6664
|
+
this.handleSizeClass(newSize, this._size);
|
|
6665
|
+
this._size = newSize;
|
|
6666
|
+
this.showSelectionIndicator();
|
|
6667
|
+
}
|
|
6668
|
+
get size() {
|
|
6669
|
+
return this._size;
|
|
6670
|
+
}
|
|
6671
|
+
/**
|
|
6672
|
+
* Specifies the index of the selected button in the `items` array.
|
|
6673
|
+
*
|
|
6674
|
+
* @default 0
|
|
6675
|
+
*/
|
|
6676
|
+
set selected(value) {
|
|
6677
|
+
this.selectedButtonIndex = value;
|
|
6678
|
+
this.showSelectionIndicator();
|
|
6679
|
+
}
|
|
6680
|
+
get selected() {
|
|
6681
|
+
return this.selectedButtonIndex;
|
|
6682
|
+
}
|
|
6683
|
+
/**
|
|
6684
|
+
* Fires when the selected button changes. Emits the index of the selected button.
|
|
6685
|
+
*/
|
|
6686
|
+
selectedChange = new EventEmitter();
|
|
6687
|
+
/**
|
|
6688
|
+
* @hidden
|
|
6689
|
+
*/
|
|
6690
|
+
selectedButtonIndex = 0;
|
|
6691
|
+
_items = [];
|
|
6692
|
+
_size;
|
|
6693
|
+
_layoutMode = 'compact';
|
|
6694
|
+
_direction;
|
|
6695
|
+
subs = new Subscription();
|
|
6696
|
+
constructor(renderer, wrapper, cdr, zone, localization) {
|
|
6697
|
+
this.renderer = renderer;
|
|
6698
|
+
this.wrapper = wrapper;
|
|
6699
|
+
this.cdr = cdr;
|
|
6700
|
+
this.zone = zone;
|
|
6701
|
+
validatePackage(packageMetadata);
|
|
6702
|
+
this._direction = localization.rtl ? 'rtl' : 'ltr';
|
|
6703
|
+
this.subs.add(localization.changes.subscribe(({ rtl }) => {
|
|
6704
|
+
this._direction = rtl ? 'rtl' : 'ltr';
|
|
6705
|
+
}));
|
|
6706
|
+
}
|
|
6707
|
+
ngAfterViewInit() {
|
|
6708
|
+
this.handleSizeClass(this._size, null);
|
|
6709
|
+
}
|
|
6710
|
+
ngOnDestroy() {
|
|
6711
|
+
this.subs.unsubscribe();
|
|
6712
|
+
}
|
|
6713
|
+
/**
|
|
6714
|
+
* @hidden
|
|
6715
|
+
*/
|
|
6716
|
+
handleClick(button, index) {
|
|
6717
|
+
if (button.disabled || index === this.selectedButtonIndex) {
|
|
6718
|
+
return;
|
|
6719
|
+
}
|
|
6720
|
+
this.selectedButtonIndex = index;
|
|
6721
|
+
this.selectedChange.emit(index);
|
|
6722
|
+
this.showSelectionIndicator();
|
|
6723
|
+
}
|
|
6724
|
+
/**
|
|
6725
|
+
* @hidden
|
|
6726
|
+
*/
|
|
6727
|
+
handleKeydown(event, button) {
|
|
6728
|
+
if (button.disabled && (event.code === Keys.Enter || event.code === Keys.NumpadEnter || event.code === Keys.Space)) {
|
|
6729
|
+
event.preventDefault();
|
|
6730
|
+
}
|
|
6731
|
+
}
|
|
6732
|
+
handleSizeClass(newValue, prevValue) {
|
|
6733
|
+
if (!this.wrapper) {
|
|
6734
|
+
return;
|
|
6735
|
+
}
|
|
6736
|
+
const elem = this.wrapper.nativeElement;
|
|
6737
|
+
const classToRemove = prevValue ? `k-segmented-control-${SIZES_MAP[prevValue]}` : null;
|
|
6738
|
+
const classToAdd = newValue ? `k-segmented-control-${SIZES_MAP[newValue]}` : null;
|
|
6739
|
+
classToRemove && this.renderer.removeClass(elem, classToRemove);
|
|
6740
|
+
classToAdd && this.renderer.addClass(elem, classToAdd);
|
|
6741
|
+
}
|
|
6742
|
+
/**
|
|
6743
|
+
* Updates the thumb position to reflect the currently selected button.
|
|
6744
|
+
*/
|
|
6745
|
+
showSelectionIndicator() {
|
|
6746
|
+
this.zone.onStable.pipe(take(1)).subscribe(() => {
|
|
6747
|
+
const element = this.wrapper.nativeElement;
|
|
6748
|
+
const controlRect = element.getBoundingClientRect();
|
|
6749
|
+
const selectedItem = element.querySelector('.k-segmented-control-button.k-selected');
|
|
6750
|
+
const selectionIndicator = this.thumb ? this.thumb.nativeElement : null;
|
|
6751
|
+
if (!selectedItem || !selectionIndicator) {
|
|
6752
|
+
return;
|
|
6753
|
+
}
|
|
6754
|
+
const itemRect = selectedItem.getBoundingClientRect();
|
|
6755
|
+
const left = itemRect.left - controlRect.left;
|
|
6756
|
+
const right = controlRect.right - itemRect.right;
|
|
6757
|
+
this.renderer.setStyle(selectionIndicator, 'left', `${left}px`);
|
|
6758
|
+
this.renderer.setStyle(selectionIndicator, 'right', `${right}px`);
|
|
6759
|
+
});
|
|
6760
|
+
}
|
|
6761
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SegmentedControlComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6762
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", 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: [
|
|
6763
|
+
LocalizationService,
|
|
6764
|
+
{
|
|
6765
|
+
provide: L10N_PREFIX,
|
|
6766
|
+
useValue: 'kendo.segmentedcontrol'
|
|
6767
|
+
}
|
|
6768
|
+
], viewQueries: [{ propertyName: "thumb", first: true, predicate: ["thumb"], descendants: true }], ngImport: i0, template: `
|
|
6769
|
+
<div class="k-segmented-control-thumb" #thumb [attr.aria-hidden]="true"></div>
|
|
6770
|
+
@for (button of items; track $index; let idx = $index) {
|
|
6771
|
+
<button type="button"
|
|
6772
|
+
class="k-segmented-control-button"
|
|
6773
|
+
[class.k-disabled]="button.disabled"
|
|
6774
|
+
[attr.aria-disabled]="button.disabled ? true : null"
|
|
6775
|
+
[attr.title]="button.title"
|
|
6776
|
+
[attr.aria-label]="button.title && !button.text ? button.title : null"
|
|
6777
|
+
(click)="handleClick(button, idx)"
|
|
6778
|
+
(keydown)="handleKeydown($event, button)"
|
|
6779
|
+
[class.k-selected]="selectedButtonIndex === idx"
|
|
6780
|
+
[attr.aria-pressed]="selectedButtonIndex === idx ? 'true' : 'false'">
|
|
6781
|
+
@if (button.icon || button.svgIcon) {
|
|
6782
|
+
<kendo-icon-wrapper
|
|
6783
|
+
[innerCssClass]="button['iconInnerCssClass'] ? 'k-segmented-control-button-icon ' + button['iconInnerCssClass'] : 'k-segmented-control-button-icon'"
|
|
6784
|
+
[name]="button.icon"
|
|
6785
|
+
[svgIcon]="button.svgIcon">
|
|
6786
|
+
</kendo-icon-wrapper>
|
|
6787
|
+
}
|
|
6788
|
+
@if (button.text) {
|
|
6789
|
+
<span class="k-segmented-control-button-text">{{button.text}}</span>
|
|
6790
|
+
}
|
|
6791
|
+
</button>
|
|
6792
|
+
}
|
|
6793
|
+
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6794
|
+
}
|
|
6795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SegmentedControlComponent, decorators: [{
|
|
6796
|
+
type: Component,
|
|
6797
|
+
args: [{
|
|
6798
|
+
selector: 'kendo-segmented-control',
|
|
6799
|
+
standalone: true,
|
|
6800
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6801
|
+
imports: [IconWrapperComponent],
|
|
6802
|
+
providers: [
|
|
6803
|
+
LocalizationService,
|
|
6804
|
+
{
|
|
6805
|
+
provide: L10N_PREFIX,
|
|
6806
|
+
useValue: 'kendo.segmentedcontrol'
|
|
6807
|
+
}
|
|
6808
|
+
],
|
|
6809
|
+
template: `
|
|
6810
|
+
<div class="k-segmented-control-thumb" #thumb [attr.aria-hidden]="true"></div>
|
|
6811
|
+
@for (button of items; track $index; let idx = $index) {
|
|
6812
|
+
<button type="button"
|
|
6813
|
+
class="k-segmented-control-button"
|
|
6814
|
+
[class.k-disabled]="button.disabled"
|
|
6815
|
+
[attr.aria-disabled]="button.disabled ? true : null"
|
|
6816
|
+
[attr.title]="button.title"
|
|
6817
|
+
[attr.aria-label]="button.title && !button.text ? button.title : null"
|
|
6818
|
+
(click)="handleClick(button, idx)"
|
|
6819
|
+
(keydown)="handleKeydown($event, button)"
|
|
6820
|
+
[class.k-selected]="selectedButtonIndex === idx"
|
|
6821
|
+
[attr.aria-pressed]="selectedButtonIndex === idx ? 'true' : 'false'">
|
|
6822
|
+
@if (button.icon || button.svgIcon) {
|
|
6823
|
+
<kendo-icon-wrapper
|
|
6824
|
+
[innerCssClass]="button['iconInnerCssClass'] ? 'k-segmented-control-button-icon ' + button['iconInnerCssClass'] : 'k-segmented-control-button-icon'"
|
|
6825
|
+
[name]="button.icon"
|
|
6826
|
+
[svgIcon]="button.svgIcon">
|
|
6827
|
+
</kendo-icon-wrapper>
|
|
6828
|
+
}
|
|
6829
|
+
@if (button.text) {
|
|
6830
|
+
<span class="k-segmented-control-button-text">{{button.text}}</span>
|
|
6831
|
+
}
|
|
6832
|
+
</button>
|
|
6833
|
+
}
|
|
6834
|
+
`
|
|
6835
|
+
}]
|
|
6836
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.LocalizationService }], propDecorators: { hostClass: [{
|
|
6837
|
+
type: HostBinding,
|
|
6838
|
+
args: ['class.k-segmented-control']
|
|
6839
|
+
}], stretchedClass: [{
|
|
6840
|
+
type: HostBinding,
|
|
6841
|
+
args: ['class.k-segmented-control-stretched']
|
|
6842
|
+
}], direction: [{
|
|
6843
|
+
type: HostBinding,
|
|
6844
|
+
args: ['attr.dir']
|
|
6845
|
+
}], hostRole: [{
|
|
6846
|
+
type: HostBinding,
|
|
6847
|
+
args: ['attr.role']
|
|
6848
|
+
}], thumb: [{
|
|
6849
|
+
type: ViewChild,
|
|
6850
|
+
args: ['thumb']
|
|
6851
|
+
}], items: [{
|
|
6852
|
+
type: Input
|
|
6853
|
+
}], layoutMode: [{
|
|
6854
|
+
type: Input
|
|
6855
|
+
}], size: [{
|
|
6856
|
+
type: Input
|
|
6857
|
+
}], selected: [{
|
|
6858
|
+
type: Input
|
|
6859
|
+
}], selectedChange: [{
|
|
6860
|
+
type: Output
|
|
6861
|
+
}] } });
|
|
6862
|
+
|
|
6612
6863
|
/**
|
|
6613
6864
|
* Use the `KENDO_BUTTON` utility array to add all Button-related components and directives to a standalone Angular component.
|
|
6614
6865
|
*
|
|
@@ -6761,6 +7012,22 @@ const KENDO_SPEECHTOTEXTBUTTON = [
|
|
|
6761
7012
|
const KENDO_SMARTPASTEBUTTON = [
|
|
6762
7013
|
SmartPasteButtonComponent
|
|
6763
7014
|
];
|
|
7015
|
+
/**
|
|
7016
|
+
* Use the `KENDO_SEGMENTEDCONTROL` utility array to add all SegmentedControl-related components and directives to a standalone Angular component.
|
|
7017
|
+
*
|
|
7018
|
+
* @example
|
|
7019
|
+
* ```typescript
|
|
7020
|
+
* @Component({
|
|
7021
|
+
* standalone: true,
|
|
7022
|
+
* imports: [KENDO_SEGMENTEDCONTROL],
|
|
7023
|
+
* // ...
|
|
7024
|
+
* })
|
|
7025
|
+
* export class MyComponent {}
|
|
7026
|
+
* ```
|
|
7027
|
+
*/
|
|
7028
|
+
const KENDO_SEGMENTEDCONTROL = [
|
|
7029
|
+
SegmentedControlComponent
|
|
7030
|
+
];
|
|
6764
7031
|
/**
|
|
6765
7032
|
* Use the `KENDO_BUTTONS` utility array to add all `@progress/kendo-angular-buttons`-related components and directives to a standalone Angular component.
|
|
6766
7033
|
*
|
|
@@ -6783,7 +7050,8 @@ const KENDO_BUTTONS = [
|
|
|
6783
7050
|
...KENDO_FLOATINGACTIONBUTTON,
|
|
6784
7051
|
...KENDO_SPLITBUTTON,
|
|
6785
7052
|
...KENDO_SPEECHTOTEXTBUTTON,
|
|
6786
|
-
...KENDO_SMARTPASTEBUTTON
|
|
7053
|
+
...KENDO_SMARTPASTEBUTTON,
|
|
7054
|
+
...KENDO_SEGMENTEDCONTROL
|
|
6787
7055
|
];
|
|
6788
7056
|
|
|
6789
7057
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
@@ -6886,8 +7154,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
6886
7154
|
*/
|
|
6887
7155
|
class ButtonsModule {
|
|
6888
7156
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ButtonsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6889
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: ButtonsModule, imports: [ButtonComponent, ButtonComponent, ButtonGroupComponent, DropDownButtonComponent, ButtonItemTemplateDirective, ChipComponent, ChipComponent, ChipListComponent, FloatingActionButtonComponent, DialItemTemplateDirective, FloatingActionButtonTemplateDirective, SplitButtonComponent, SplitButtonCustomMessagesComponent, i12.ToggleButtonTabStopDirective, ButtonItemTemplateDirective, SpeechToTextButtonComponent, SmartPasteButtonComponent, i12.ToggleButtonTabStopDirective], exports: [ButtonComponent, ButtonComponent, ButtonGroupComponent, DropDownButtonComponent, ButtonItemTemplateDirective, ChipComponent, ChipComponent, ChipListComponent, FloatingActionButtonComponent, DialItemTemplateDirective, FloatingActionButtonTemplateDirective, SplitButtonComponent, SplitButtonCustomMessagesComponent, i12.ToggleButtonTabStopDirective, ButtonItemTemplateDirective, SpeechToTextButtonComponent, SmartPasteButtonComponent, i12.ToggleButtonTabStopDirective] });
|
|
6890
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ButtonsModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [ButtonComponent, ButtonComponent, DropDownButtonComponent, ChipComponent, ChipComponent, FloatingActionButtonComponent, SplitButtonComponent, SpeechToTextButtonComponent, SmartPasteButtonComponent] });
|
|
7157
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", 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] });
|
|
7158
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ButtonsModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [ButtonComponent, ButtonComponent, DropDownButtonComponent, ChipComponent, ChipComponent, FloatingActionButtonComponent, SplitButtonComponent, SpeechToTextButtonComponent, SmartPasteButtonComponent, SegmentedControlComponent] });
|
|
6891
7159
|
}
|
|
6892
7160
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ButtonsModule, decorators: [{
|
|
6893
7161
|
type: NgModule,
|
|
@@ -7084,9 +7352,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
7084
7352
|
}]
|
|
7085
7353
|
}] });
|
|
7086
7354
|
|
|
7355
|
+
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
7356
|
+
/**
|
|
7357
|
+
* Represents the exported package module.
|
|
7358
|
+
*
|
|
7359
|
+
* Required for adding SegmentedControl features in NgModule-based Angular applications.
|
|
7360
|
+
*
|
|
7361
|
+
* The package exports:
|
|
7362
|
+
* - `SegmentedControlComponent`—The SegmentedControl component class.
|
|
7363
|
+
*/
|
|
7364
|
+
class SegmentedControlModule {
|
|
7365
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SegmentedControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7366
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: SegmentedControlModule, imports: [SegmentedControlComponent], exports: [SegmentedControlComponent] });
|
|
7367
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SegmentedControlModule, providers: [IconsService], imports: [KENDO_SEGMENTEDCONTROL] });
|
|
7368
|
+
}
|
|
7369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SegmentedControlModule, decorators: [{
|
|
7370
|
+
type: NgModule,
|
|
7371
|
+
args: [{
|
|
7372
|
+
exports: [...KENDO_SEGMENTEDCONTROL],
|
|
7373
|
+
imports: [...KENDO_SEGMENTEDCONTROL],
|
|
7374
|
+
providers: [IconsService]
|
|
7375
|
+
}]
|
|
7376
|
+
}] });
|
|
7377
|
+
|
|
7087
7378
|
/**
|
|
7088
7379
|
* Generated bundle index. Do not edit.
|
|
7089
7380
|
*/
|
|
7090
7381
|
|
|
7091
|
-
export { ButtonComponent as Button, ButtonComponent, ButtonComponent as ButtonDirective, ButtonGroupComponent as ButtonGroup, ButtonGroupComponent, ButtonGroupModule, ButtonItemTemplateDirective, ButtonModule, ButtonsModule, ChipComponent, ChipListComponent, ChipModule, DialItemTemplateDirective, DropDownButtonComponent as DropDownButton, DropDownButtonComponent, DropDownButtonModule, FloatingActionButtonComponent, FloatingActionButtonModule, FloatingActionButtonTemplateDirective, FocusableDirective, KENDO_BUTTON, KENDO_BUTTONGROUP, KENDO_BUTTONS, KENDO_CHIP, KENDO_CHIPLIST, KENDO_DROPDOWNBUTTON, KENDO_FLOATINGACTIONBUTTON, KENDO_SMARTPASTEBUTTON, KENDO_SPEECHTOTEXTBUTTON, KENDO_SPLITBUTTON, KendoButtonService, ListComponent, LocalizedSplitButtonMessagesDirective, PreventableEvent, SmartPasteButtonComponent, SmartPasteButtonModule, SmartPasteRequestEndEvent, SmartPasteRequestStartEvent, SpeechToTextButtonComponent, SpeechToTextButtonModule, SplitButtonComponent as SplitButton, SplitButtonComponent, SplitButtonCustomMessagesComponent, SplitButtonModule };
|
|
7382
|
+
export { ButtonComponent as Button, ButtonComponent, ButtonComponent as ButtonDirective, ButtonGroupComponent as ButtonGroup, ButtonGroupComponent, ButtonGroupModule, ButtonItemTemplateDirective, ButtonModule, ButtonsModule, ChipComponent, ChipListComponent, ChipModule, DialItemTemplateDirective, DropDownButtonComponent as DropDownButton, DropDownButtonComponent, DropDownButtonModule, FloatingActionButtonComponent, FloatingActionButtonModule, FloatingActionButtonTemplateDirective, FocusableDirective, KENDO_BUTTON, KENDO_BUTTONGROUP, KENDO_BUTTONS, KENDO_CHIP, KENDO_CHIPLIST, KENDO_DROPDOWNBUTTON, KENDO_FLOATINGACTIONBUTTON, KENDO_SEGMENTEDCONTROL, KENDO_SMARTPASTEBUTTON, KENDO_SPEECHTOTEXTBUTTON, KENDO_SPLITBUTTON, KendoButtonService, ListComponent, LocalizedSplitButtonMessagesDirective, PreventableEvent, SegmentedControlComponent, SegmentedControlModule, SmartPasteButtonComponent, SmartPasteButtonModule, SmartPasteRequestEndEvent, SmartPasteRequestStartEvent, SpeechToTextButtonComponent, SpeechToTextButtonModule, SplitButtonComponent as SplitButton, SplitButtonComponent, SplitButtonCustomMessagesComponent, SplitButtonModule };
|
|
7092
7383
|
|
package/index.d.ts
CHANGED
|
@@ -47,6 +47,9 @@ export { SpeechToTextButtonModule } from './speechtotextbutton/speechtotextbutto
|
|
|
47
47
|
export { SmartPasteButtonComponent } from './smartpastebutton/smartpastebutton.component';
|
|
48
48
|
export { SmartPasteButtonModule } from './smartpastebutton/smartpastebutton.module';
|
|
49
49
|
export { SmartPasteFormField, SmartPasteType, SmartPasteAIRequestData, SmartPasteAIResponse, SmartPasteAIRequestOptions, SmartPasteRequestStartEvent, SmartPasteRequestEndEvent } from './smartpastebutton/models';
|
|
50
|
+
export { SegmentedControlComponent } from './segmentedcontrol/segmented-control.component';
|
|
51
|
+
export { SegmentedControlModule } from './segmentedcontrol/segmented-control.module';
|
|
52
|
+
export { SegmentedItemSettings, SegmentedControlLayout } from './segmentedcontrol/models';
|
|
50
53
|
export { ButtonSize, ChipSize, ButtonRounded, ChipRounded, ButtonFillMode, ChipFillMode, ButtonThemeColor, ChipThemeColor, ArrowIconSettings, ButtonIconPosition } from './common/models';
|
|
51
54
|
export { FocusableDirective } from './focusable/focusable.directive';
|
|
52
55
|
export { PreventableEvent } from './preventable-event';
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "23.3.0-develop.
|
|
10
|
+
"publishDate": 1774449930,
|
|
11
|
+
"version": "23.3.0-develop.13",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-buttons",
|
|
3
|
-
"version": "23.3.0-develop.
|
|
3
|
+
"version": "23.3.0-develop.13",
|
|
4
4
|
"description": "Buttons Package for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"package": {
|
|
22
22
|
"productName": "Kendo UI for Angular",
|
|
23
23
|
"productCode": "KENDOUIANGULAR",
|
|
24
|
-
"publishDate":
|
|
24
|
+
"publishDate": 1774449930,
|
|
25
25
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"@angular/core": "19 - 21",
|
|
32
32
|
"@angular/platform-browser": "19 - 21",
|
|
33
33
|
"@progress/kendo-licensing": "^1.10.0",
|
|
34
|
-
"@progress/kendo-angular-common": "23.3.0-develop.
|
|
35
|
-
"@progress/kendo-angular-l10n": "23.3.0-develop.
|
|
36
|
-
"@progress/kendo-angular-popup": "23.3.0-develop.
|
|
37
|
-
"@progress/kendo-angular-icons": "23.3.0-develop.
|
|
34
|
+
"@progress/kendo-angular-common": "23.3.0-develop.13",
|
|
35
|
+
"@progress/kendo-angular-l10n": "23.3.0-develop.13",
|
|
36
|
+
"@progress/kendo-angular-popup": "23.3.0-develop.13",
|
|
37
|
+
"@progress/kendo-angular-icons": "23.3.0-develop.13",
|
|
38
38
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"tslib": "^2.3.1",
|
|
42
|
-
"@progress/kendo-angular-schematics": "23.3.0-develop.
|
|
42
|
+
"@progress/kendo-angular-schematics": "23.3.0-develop.13",
|
|
43
43
|
"@progress/kendo-common": "^1.0.1",
|
|
44
44
|
"@progress/kendo-webspeech-common": "1.0.1",
|
|
45
45
|
"@progress/kendo-smartpaste-common": "1.0.0"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
6
|
+
/**
|
|
7
|
+
* Specifies how the items are sized within the SegmentedControl.
|
|
8
|
+
* - `compact`—Items take up only the space they need.
|
|
9
|
+
* - `stretch`—Items stretch to fill the full width of the control.
|
|
10
|
+
*/
|
|
11
|
+
export type SegmentedControlLayout = 'compact' | 'stretch';
|
|
12
|
+
/**
|
|
13
|
+
* Represents the settings for an item in the `SegmentedControlComponent`.
|
|
14
|
+
*/
|
|
15
|
+
export interface SegmentedItemSettings {
|
|
16
|
+
/**
|
|
17
|
+
* Specifies the name of an existing font icon in the Kendo UI theme.
|
|
18
|
+
*/
|
|
19
|
+
icon?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the SVG icon to render inside the button.
|
|
22
|
+
*/
|
|
23
|
+
svgIcon?: SVGIcon;
|
|
24
|
+
/**
|
|
25
|
+
* Specifies the text content of the button.
|
|
26
|
+
*/
|
|
27
|
+
text?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Determines whether the button is disabled.
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Sets the `title` attribute of the button. When no `text` is provided,
|
|
34
|
+
* the `title` value also renders as the `aria-label` attribute.
|
|
35
|
+
*/
|
|
36
|
+
title?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, Renderer2 } from '@angular/core';
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import { ButtonSize } from '../common/models';
|
|
8
|
+
import { SegmentedItemSettings, SegmentedControlLayout } from './models';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* Represents the Kendo UI SegmentedControl component for Angular.
|
|
12
|
+
*
|
|
13
|
+
* Renders a group of buttons where only one can be selected at a time,
|
|
14
|
+
* with a sliding selection indicator.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SegmentedControlComponent implements AfterViewInit, OnDestroy {
|
|
17
|
+
private renderer;
|
|
18
|
+
private wrapper;
|
|
19
|
+
private cdr;
|
|
20
|
+
private zone;
|
|
21
|
+
hostClass: boolean;
|
|
22
|
+
get stretchedClass(): boolean;
|
|
23
|
+
get direction(): string;
|
|
24
|
+
hostRole: string;
|
|
25
|
+
thumb: ElementRef;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the collection of items to render in the SegmentedControl.
|
|
28
|
+
*/
|
|
29
|
+
set items(value: Array<SegmentedItemSettings>);
|
|
30
|
+
get items(): Array<SegmentedItemSettings>;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the layout mode of the SegmentedControl.
|
|
33
|
+
*
|
|
34
|
+
* @default 'compact'
|
|
35
|
+
*/
|
|
36
|
+
set layoutMode(value: SegmentedControlLayout);
|
|
37
|
+
get layoutMode(): SegmentedControlLayout;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the size of the SegmentedControl.
|
|
40
|
+
*/
|
|
41
|
+
set size(size: ButtonSize);
|
|
42
|
+
get size(): ButtonSize;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the index of the selected button in the `items` array.
|
|
45
|
+
*
|
|
46
|
+
* @default 0
|
|
47
|
+
*/
|
|
48
|
+
set selected(value: number);
|
|
49
|
+
get selected(): number;
|
|
50
|
+
/**
|
|
51
|
+
* Fires when the selected button changes. Emits the index of the selected button.
|
|
52
|
+
*/
|
|
53
|
+
selectedChange: EventEmitter<number>;
|
|
54
|
+
/**
|
|
55
|
+
* @hidden
|
|
56
|
+
*/
|
|
57
|
+
selectedButtonIndex: number;
|
|
58
|
+
private _items;
|
|
59
|
+
private _size;
|
|
60
|
+
private _layoutMode;
|
|
61
|
+
private _direction;
|
|
62
|
+
private subs;
|
|
63
|
+
constructor(renderer: Renderer2, wrapper: ElementRef, cdr: ChangeDetectorRef, zone: NgZone, localization: LocalizationService);
|
|
64
|
+
ngAfterViewInit(): void;
|
|
65
|
+
ngOnDestroy(): void;
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
handleClick(button: SegmentedItemSettings, index: number): void;
|
|
70
|
+
/**
|
|
71
|
+
* @hidden
|
|
72
|
+
*/
|
|
73
|
+
handleKeydown(event: KeyboardEvent, button: SegmentedItemSettings): void;
|
|
74
|
+
private handleSizeClass;
|
|
75
|
+
/**
|
|
76
|
+
* Updates the thumb position to reflect the currently selected button.
|
|
77
|
+
*/
|
|
78
|
+
private showSelectionIndicator;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentedControlComponent, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentedControlComponent, "kendo-segmented-control", never, { "items": { "alias": "items"; "required": false; }; "layoutMode": { "alias": "layoutMode"; "required": false; }; "size": { "alias": "size"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./segmented-control.component";
|
|
7
|
+
/**
|
|
8
|
+
* Represents the exported package module.
|
|
9
|
+
*
|
|
10
|
+
* Required for adding SegmentedControl features in NgModule-based Angular applications.
|
|
11
|
+
*
|
|
12
|
+
* The package exports:
|
|
13
|
+
* - `SegmentedControlComponent`—The SegmentedControl component class.
|
|
14
|
+
*/
|
|
15
|
+
export declare class SegmentedControlModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentedControlModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SegmentedControlModule, never, [typeof i1.SegmentedControlComponent], [typeof i1.SegmentedControlComponent]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SegmentedControlModule>;
|
|
19
|
+
}
|