@progress/kendo-angular-buttons 24.2.0-develop.1 → 24.2.0-develop.11
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.
|
@@ -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: '24.2.0-develop.
|
|
52
|
+
publishDate: 1782467289,
|
|
53
|
+
version: '24.2.0-develop.11',
|
|
54
54
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -415,9 +415,9 @@ class ButtonComponent {
|
|
|
415
415
|
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
416
416
|
this.subs.add(localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
|
|
417
417
|
this.element = element.nativeElement;
|
|
418
|
+
this.renderer.addClass(this.element, 'k-button');
|
|
418
419
|
}
|
|
419
420
|
ngOnInit() {
|
|
420
|
-
this.renderer.addClass(this.element, 'k-button');
|
|
421
421
|
if (!this.element.hasAttribute('role') && this.togglable) {
|
|
422
422
|
this.toggleAriaPressed(this.toggleable);
|
|
423
423
|
}
|
|
@@ -1678,11 +1678,11 @@ class ChipListComponent {
|
|
|
1678
1678
|
});
|
|
1679
1679
|
this.renderer.setAttribute(chip.element.nativeElement, 'tabindex', '0');
|
|
1680
1680
|
}
|
|
1681
|
-
if (isRemoveClicked && clickedChip) {
|
|
1681
|
+
if (isRemoveClicked && clickedChip && chip) {
|
|
1682
1682
|
const removeEventArgs = { sender: this, originalEvent: $event, removedChip: chip };
|
|
1683
1683
|
this.remove.emit(removeEventArgs);
|
|
1684
1684
|
}
|
|
1685
|
-
if (this.selection !== 'none' && clickedChip && !isRemoveClicked) {
|
|
1685
|
+
if (this.selection !== 'none' && clickedChip && chip && !isRemoveClicked) {
|
|
1686
1686
|
this.setSelection(chip);
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
@@ -1786,7 +1786,7 @@ class ChipListComponent {
|
|
|
1786
1786
|
const clickedChip = closest(target, '.k-chip');
|
|
1787
1787
|
const chip = this.chips.find((chip) => clickedChip === chip.element.nativeElement);
|
|
1788
1788
|
this.currentActiveIndex = this.chips.toArray().findIndex((chip) => clickedChip === chip.element.nativeElement);
|
|
1789
|
-
if (this.selection !== 'none' && clickedChip) {
|
|
1789
|
+
if (this.selection !== 'none' && clickedChip && chip) {
|
|
1790
1790
|
this.ngZone.run(() => {
|
|
1791
1791
|
this.setSelection(chip);
|
|
1792
1792
|
});
|
|
@@ -2567,6 +2567,10 @@ class ListButton extends MultiTabStop {
|
|
|
2567
2567
|
* @hidden
|
|
2568
2568
|
*/
|
|
2569
2569
|
onItemClick(index) {
|
|
2570
|
+
if (this._data?.[index]?.disabled) {
|
|
2571
|
+
this.focusService.focus(index);
|
|
2572
|
+
return;
|
|
2573
|
+
}
|
|
2570
2574
|
this.emitItemClickHandler(index);
|
|
2571
2575
|
this.togglePopupVisibility();
|
|
2572
2576
|
if (isDocumentAvailable() && !this.isClosePrevented) {
|
|
@@ -2708,6 +2712,9 @@ class ListButton extends MultiTabStop {
|
|
|
2708
2712
|
if (this.openState) {
|
|
2709
2713
|
const focused = this.focusService.focused;
|
|
2710
2714
|
if (isPresent(focused) && focused !== -1) {
|
|
2715
|
+
if (this._data?.[focused]?.disabled) {
|
|
2716
|
+
return;
|
|
2717
|
+
}
|
|
2711
2718
|
this.emitItemClickHandler(focused);
|
|
2712
2719
|
}
|
|
2713
2720
|
}
|
|
@@ -5509,7 +5516,6 @@ class SpeechToTextButtonComponent {
|
|
|
5509
5516
|
return this.isListening;
|
|
5510
5517
|
}
|
|
5511
5518
|
speechToTextButtonClass = true;
|
|
5512
|
-
classButton = true;
|
|
5513
5519
|
get classDisabled() {
|
|
5514
5520
|
return this.isDisabled;
|
|
5515
5521
|
}
|
|
@@ -5597,6 +5603,7 @@ class SpeechToTextButtonComponent {
|
|
|
5597
5603
|
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
5598
5604
|
this.subs.add(localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
|
|
5599
5605
|
this.element = element.nativeElement;
|
|
5606
|
+
this.renderer.addClass(this.element, 'k-button');
|
|
5600
5607
|
}
|
|
5601
5608
|
/**
|
|
5602
5609
|
* Indicates whether the button is actively listening for incoming audio.
|
|
@@ -5770,7 +5777,7 @@ class SpeechToTextButtonComponent {
|
|
|
5770
5777
|
});
|
|
5771
5778
|
}
|
|
5772
5779
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SpeechToTextButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
5773
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", 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", "class.k-speech-to-text-button": "this.speechToTextButtonClass", "class.k-
|
|
5780
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", 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", "class.k-speech-to-text-button": "this.speechToTextButtonClass", "class.k-disabled": "this.classDisabled", "attr.dir": "this.getDirection" } }, providers: [
|
|
5774
5781
|
LocalizationService,
|
|
5775
5782
|
{
|
|
5776
5783
|
provide: L10N_PREFIX,
|
|
@@ -5847,9 +5854,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
5847
5854
|
}], speechToTextButtonClass: [{
|
|
5848
5855
|
type: HostBinding,
|
|
5849
5856
|
args: ['class.k-speech-to-text-button']
|
|
5850
|
-
}], classButton: [{
|
|
5851
|
-
type: HostBinding,
|
|
5852
|
-
args: ['class.k-button']
|
|
5853
5857
|
}], classDisabled: [{
|
|
5854
5858
|
type: HostBinding,
|
|
5855
5859
|
args: ['class.k-disabled']
|
|
@@ -6196,7 +6200,6 @@ class SmartPasteButtonComponent {
|
|
|
6196
6200
|
get iconButtonClass() {
|
|
6197
6201
|
return !this.hasText;
|
|
6198
6202
|
}
|
|
6199
|
-
classButton = true;
|
|
6200
6203
|
get classDisabled() {
|
|
6201
6204
|
return this.isDisabled;
|
|
6202
6205
|
}
|
|
@@ -6262,6 +6265,7 @@ class SmartPasteButtonComponent {
|
|
|
6262
6265
|
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
6263
6266
|
this.subs.add(localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
|
|
6264
6267
|
this.element = elementRef.nativeElement;
|
|
6268
|
+
this.renderer.addClass(this.element, 'k-button');
|
|
6265
6269
|
}
|
|
6266
6270
|
ngOnInit() {
|
|
6267
6271
|
this.nativeForm = this.element.form;
|
|
@@ -6469,7 +6473,7 @@ class SmartPasteButtonComponent {
|
|
|
6469
6473
|
});
|
|
6470
6474
|
}
|
|
6471
6475
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", 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 });
|
|
6472
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", 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-
|
|
6476
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", 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: [
|
|
6473
6477
|
LocalizationService,
|
|
6474
6478
|
{
|
|
6475
6479
|
provide: L10N_PREFIX,
|
|
@@ -6564,9 +6568,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
6564
6568
|
}], iconButtonClass: [{
|
|
6565
6569
|
type: HostBinding,
|
|
6566
6570
|
args: ['class.k-icon-button']
|
|
6567
|
-
}], classButton: [{
|
|
6568
|
-
type: HostBinding,
|
|
6569
|
-
args: ['class.k-button']
|
|
6570
6571
|
}], classDisabled: [{
|
|
6571
6572
|
type: HostBinding,
|
|
6572
6573
|
args: ['class.k-disabled']
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "24.2.0-develop.
|
|
10
|
+
"publishDate": 1782467289,
|
|
11
|
+
"version": "24.2.0-develop.11",
|
|
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": "24.2.0-develop.
|
|
3
|
+
"version": "24.2.0-develop.11",
|
|
4
4
|
"description": "Buttons Package for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"package": {
|
|
57
57
|
"productName": "Kendo UI for Angular",
|
|
58
58
|
"productCode": "KENDOUIANGULAR",
|
|
59
|
-
"publishDate":
|
|
59
|
+
"publishDate": 1782467289,
|
|
60
60
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
61
61
|
}
|
|
62
62
|
},
|
|
@@ -66,15 +66,15 @@
|
|
|
66
66
|
"@angular/core": "19 - 22",
|
|
67
67
|
"@angular/platform-browser": "19 - 22",
|
|
68
68
|
"@progress/kendo-licensing": "^1.11.0",
|
|
69
|
-
"@progress/kendo-angular-common": "24.2.0-develop.
|
|
70
|
-
"@progress/kendo-angular-l10n": "24.2.0-develop.
|
|
71
|
-
"@progress/kendo-angular-popup": "24.2.0-develop.
|
|
72
|
-
"@progress/kendo-angular-icons": "24.2.0-develop.
|
|
69
|
+
"@progress/kendo-angular-common": "24.2.0-develop.11",
|
|
70
|
+
"@progress/kendo-angular-l10n": "24.2.0-develop.11",
|
|
71
|
+
"@progress/kendo-angular-popup": "24.2.0-develop.11",
|
|
72
|
+
"@progress/kendo-angular-icons": "24.2.0-develop.11",
|
|
73
73
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"tslib": "^2.3.1",
|
|
77
|
-
"@progress/kendo-angular-schematics": "24.2.0-develop.
|
|
77
|
+
"@progress/kendo-angular-schematics": "24.2.0-develop.11",
|
|
78
78
|
"@progress/kendo-common": "^1.0.1",
|
|
79
79
|
"@progress/kendo-webspeech-common": "1.0.1",
|
|
80
80
|
"@progress/kendo-smartpaste-common": "1.0.0"
|
|
@@ -122,7 +122,6 @@ export declare class SmartPasteButtonComponent implements OnInit, OnDestroy {
|
|
|
122
122
|
*/
|
|
123
123
|
requestCancel: EventEmitter<void>;
|
|
124
124
|
get iconButtonClass(): boolean;
|
|
125
|
-
classButton: boolean;
|
|
126
125
|
get classDisabled(): boolean;
|
|
127
126
|
get getDirection(): string;
|
|
128
127
|
onFocus(): void;
|
|
@@ -104,7 +104,6 @@ export declare class SpeechToTextButtonComponent implements OnInit, OnDestroy {
|
|
|
104
104
|
get iconButtonClass(): boolean;
|
|
105
105
|
get listeningClass(): boolean;
|
|
106
106
|
speechToTextButtonClass: boolean;
|
|
107
|
-
classButton: boolean;
|
|
108
107
|
get classDisabled(): boolean;
|
|
109
108
|
get getDirection(): string;
|
|
110
109
|
/**
|