@progress/kendo-angular-buttons 23.3.0-develop.20 → 23.3.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.
|
@@ -6,7 +6,7 @@ import * as i0 from '@angular/core';
|
|
|
6
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
|
-
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';
|
|
9
|
+
import { isDocumentAvailable, isFirefox, isSafari, isChanged, hasObservers, 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 { caretAltDownIcon, xCircleIcon, moreVerticalIcon, microphoneOutlineIcon, stopSmIcon, pasteSparkleIcon } from '@progress/kendo-svg-icons';
|
|
12
12
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
@@ -14,7 +14,7 @@ import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/k
|
|
|
14
14
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
15
15
|
import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
|
|
16
16
|
import { NgClass, NgTemplateOutlet, NgStyle } from '@angular/common';
|
|
17
|
-
import { filter, tap, take } from 'rxjs/operators';
|
|
17
|
+
import { filter, tap, take, debounceTime } from 'rxjs/operators';
|
|
18
18
|
import * as i3 from '@progress/kendo-angular-popup';
|
|
19
19
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
20
20
|
import * as i4 from '@angular/animations';
|
|
@@ -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: 1774881027,
|
|
53
|
+
version: '23.3.0-develop.21',
|
|
54
54
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -6623,7 +6623,6 @@ const SIZES_MAP = {
|
|
|
6623
6623
|
class SegmentedControlComponent {
|
|
6624
6624
|
renderer;
|
|
6625
6625
|
wrapper;
|
|
6626
|
-
cdr;
|
|
6627
6626
|
zone;
|
|
6628
6627
|
hostClass = true;
|
|
6629
6628
|
get stretchedClass() {
|
|
@@ -6634,6 +6633,7 @@ class SegmentedControlComponent {
|
|
|
6634
6633
|
}
|
|
6635
6634
|
hostRole = 'group';
|
|
6636
6635
|
thumb;
|
|
6636
|
+
resizeSensor;
|
|
6637
6637
|
/**
|
|
6638
6638
|
* Specifies the collection of items to render in the SegmentedControl.
|
|
6639
6639
|
*/
|
|
@@ -6693,10 +6693,9 @@ class SegmentedControlComponent {
|
|
|
6693
6693
|
_layoutMode = 'compact';
|
|
6694
6694
|
_direction;
|
|
6695
6695
|
subs = new Subscription();
|
|
6696
|
-
constructor(renderer, wrapper,
|
|
6696
|
+
constructor(renderer, wrapper, zone, localization) {
|
|
6697
6697
|
this.renderer = renderer;
|
|
6698
6698
|
this.wrapper = wrapper;
|
|
6699
|
-
this.cdr = cdr;
|
|
6700
6699
|
this.zone = zone;
|
|
6701
6700
|
validatePackage(packageMetadata);
|
|
6702
6701
|
this._direction = localization.rtl ? 'rtl' : 'ltr';
|
|
@@ -6706,6 +6705,13 @@ class SegmentedControlComponent {
|
|
|
6706
6705
|
}
|
|
6707
6706
|
ngAfterViewInit() {
|
|
6708
6707
|
this.handleSizeClass(this._size, null);
|
|
6708
|
+
if (this.resizeSensor) {
|
|
6709
|
+
this.subs.add(this.resizeSensor.resize.pipe(debounceTime(150)).subscribe(() => {
|
|
6710
|
+
this.zone.run(() => {
|
|
6711
|
+
this.showSelectionIndicator();
|
|
6712
|
+
});
|
|
6713
|
+
}));
|
|
6714
|
+
}
|
|
6709
6715
|
}
|
|
6710
6716
|
ngOnDestroy() {
|
|
6711
6717
|
this.subs.unsubscribe();
|
|
@@ -6764,14 +6770,15 @@ class SegmentedControlComponent {
|
|
|
6764
6770
|
this.renderer.setStyle(selectionIndicator, 'right', `${right}px`);
|
|
6765
6771
|
});
|
|
6766
6772
|
}
|
|
6767
|
-
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.
|
|
6773
|
+
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.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6768
6774
|
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: [
|
|
6769
6775
|
LocalizationService,
|
|
6770
6776
|
{
|
|
6771
6777
|
provide: L10N_PREFIX,
|
|
6772
6778
|
useValue: 'kendo.segmentedcontrol'
|
|
6773
6779
|
}
|
|
6774
|
-
], viewQueries: [{ propertyName: "thumb", first: true, predicate: ["thumb"], descendants: true }], ngImport: i0, template: `
|
|
6780
|
+
], viewQueries: [{ propertyName: "thumb", first: true, predicate: ["thumb"], descendants: true }, { propertyName: "resizeSensor", first: true, predicate: ["resizeSensor"], descendants: true }], ngImport: i0, template: `
|
|
6781
|
+
<kendo-resize-sensor #resizeSensor></kendo-resize-sensor>
|
|
6775
6782
|
<div class="k-segmented-control-thumb" #thumb [attr.aria-hidden]="true"></div>
|
|
6776
6783
|
@for (button of items; track $index; let idx = $index) {
|
|
6777
6784
|
<button type="button"
|
|
@@ -6796,7 +6803,7 @@ class SegmentedControlComponent {
|
|
|
6796
6803
|
}
|
|
6797
6804
|
</button>
|
|
6798
6805
|
}
|
|
6799
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6806
|
+
`, 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 });
|
|
6800
6807
|
}
|
|
6801
6808
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SegmentedControlComponent, decorators: [{
|
|
6802
6809
|
type: Component,
|
|
@@ -6804,7 +6811,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
6804
6811
|
selector: 'kendo-segmented-control',
|
|
6805
6812
|
standalone: true,
|
|
6806
6813
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6807
|
-
imports: [IconWrapperComponent],
|
|
6814
|
+
imports: [IconWrapperComponent, ResizeSensorComponent],
|
|
6808
6815
|
providers: [
|
|
6809
6816
|
LocalizationService,
|
|
6810
6817
|
{
|
|
@@ -6813,6 +6820,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
6813
6820
|
}
|
|
6814
6821
|
],
|
|
6815
6822
|
template: `
|
|
6823
|
+
<kendo-resize-sensor #resizeSensor></kendo-resize-sensor>
|
|
6816
6824
|
<div class="k-segmented-control-thumb" #thumb [attr.aria-hidden]="true"></div>
|
|
6817
6825
|
@for (button of items; track $index; let idx = $index) {
|
|
6818
6826
|
<button type="button"
|
|
@@ -6839,7 +6847,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
6839
6847
|
}
|
|
6840
6848
|
`
|
|
6841
6849
|
}]
|
|
6842
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.
|
|
6850
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.LocalizationService }], propDecorators: { hostClass: [{
|
|
6843
6851
|
type: HostBinding,
|
|
6844
6852
|
args: ['class.k-segmented-control']
|
|
6845
6853
|
}], stretchedClass: [{
|
|
@@ -6854,6 +6862,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
6854
6862
|
}], thumb: [{
|
|
6855
6863
|
type: ViewChild,
|
|
6856
6864
|
args: ['thumb']
|
|
6865
|
+
}], resizeSensor: [{
|
|
6866
|
+
type: ViewChild,
|
|
6867
|
+
args: ['resizeSensor']
|
|
6857
6868
|
}], items: [{
|
|
6858
6869
|
type: Input
|
|
6859
6870
|
}], layoutMode: [{
|
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": 1774881027,
|
|
11
|
+
"version": "23.3.0-develop.21",
|
|
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.21",
|
|
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": 1774881027,
|
|
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.21",
|
|
35
|
+
"@progress/kendo-angular-l10n": "23.3.0-develop.21",
|
|
36
|
+
"@progress/kendo-angular-popup": "23.3.0-develop.21",
|
|
37
|
+
"@progress/kendo-angular-icons": "23.3.0-develop.21",
|
|
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.21",
|
|
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"
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { AfterViewInit,
|
|
5
|
+
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy, Renderer2 } from '@angular/core';
|
|
6
|
+
import { ResizeSensorComponent } from '@progress/kendo-angular-common';
|
|
6
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
8
|
import { ButtonSize } from '../common/models';
|
|
8
9
|
import { SegmentedItemSettings, SegmentedControlLayout } from './models';
|
|
@@ -16,13 +17,13 @@ import * as i0 from "@angular/core";
|
|
|
16
17
|
export declare class SegmentedControlComponent implements AfterViewInit, OnDestroy {
|
|
17
18
|
private renderer;
|
|
18
19
|
private wrapper;
|
|
19
|
-
private cdr;
|
|
20
20
|
private zone;
|
|
21
21
|
hostClass: boolean;
|
|
22
22
|
get stretchedClass(): boolean;
|
|
23
23
|
get direction(): string;
|
|
24
24
|
hostRole: string;
|
|
25
25
|
thumb: ElementRef;
|
|
26
|
+
resizeSensor: ResizeSensorComponent;
|
|
26
27
|
/**
|
|
27
28
|
* Specifies the collection of items to render in the SegmentedControl.
|
|
28
29
|
*/
|
|
@@ -60,7 +61,7 @@ export declare class SegmentedControlComponent implements AfterViewInit, OnDestr
|
|
|
60
61
|
private _layoutMode;
|
|
61
62
|
private _direction;
|
|
62
63
|
private subs;
|
|
63
|
-
constructor(renderer: Renderer2, wrapper: ElementRef,
|
|
64
|
+
constructor(renderer: Renderer2, wrapper: ElementRef, zone: NgZone, localization: LocalizationService);
|
|
64
65
|
ngAfterViewInit(): void;
|
|
65
66
|
ngOnDestroy(): void;
|
|
66
67
|
/**
|