@progress/kendo-angular-buttons 17.0.0-develop.22 → 17.0.0-develop.24
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/dropdownbutton/dropdownbutton.component.d.ts +5 -0
- package/esm2022/dropdownbutton/dropdownbutton.component.mjs +14 -0
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/splitbutton/splitbutton.component.mjs +23 -6
- package/fesm2022/progress-kendo-angular-buttons.mjs +39 -8
- package/package.json +6 -6
- package/splitbutton/splitbutton.component.d.ts +5 -0
|
@@ -164,6 +164,7 @@ export declare class DropDownButtonComponent extends ListButton implements After
|
|
|
164
164
|
itemTemplate: ButtonItemTemplateDirective;
|
|
165
165
|
private _fillMode;
|
|
166
166
|
private _buttonAttributes;
|
|
167
|
+
private documentMouseUpSub;
|
|
167
168
|
/**
|
|
168
169
|
* @hidden
|
|
169
170
|
*/
|
|
@@ -207,6 +208,10 @@ export declare class DropDownButtonComponent extends ListButton implements After
|
|
|
207
208
|
*/
|
|
208
209
|
wrapperContains(element: any): boolean;
|
|
209
210
|
private handleButtonAttributes;
|
|
211
|
+
/**
|
|
212
|
+
* @hidden
|
|
213
|
+
*/
|
|
214
|
+
ngOnDestroy(): void;
|
|
210
215
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropDownButtonComponent, never>;
|
|
211
216
|
static ɵcmp: i0.ɵɵComponentDeclaration<DropDownButtonComponent, "kendo-dropdownbutton", ["kendoDropDownButton"], { "arrowIcon": { "alias": "arrowIcon"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "data": { "alias": "data"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "buttonAttributes": { "alias": "buttonAttributes"; "required": false; }; }, { "itemClick": "itemClick"; "onFocus": "focus"; "onBlur": "blur"; }, ["itemTemplate"], ["*"], true, never>;
|
|
212
217
|
}
|
|
@@ -196,6 +196,7 @@ export class DropDownButtonComponent extends ListButton {
|
|
|
196
196
|
itemTemplate;
|
|
197
197
|
_fillMode = DEFAULT_FILL_MODE;
|
|
198
198
|
_buttonAttributes = null;
|
|
199
|
+
documentMouseUpSub;
|
|
199
200
|
/**
|
|
200
201
|
* @hidden
|
|
201
202
|
*/
|
|
@@ -271,6 +272,11 @@ export class DropDownButtonComponent extends ListButton {
|
|
|
271
272
|
this.renderer = renderer;
|
|
272
273
|
this._itemClick = this.itemClick;
|
|
273
274
|
this._blur = this.onBlur;
|
|
275
|
+
this.documentMouseUpSub = this.renderer.listen('document', 'mouseup', () => {
|
|
276
|
+
if (this.active) {
|
|
277
|
+
this._active = false;
|
|
278
|
+
}
|
|
279
|
+
});
|
|
274
280
|
}
|
|
275
281
|
ngAfterViewInit() {
|
|
276
282
|
this.containerService.container = this.container;
|
|
@@ -317,6 +323,14 @@ export class DropDownButtonComponent extends ListButton {
|
|
|
317
323
|
}
|
|
318
324
|
}
|
|
319
325
|
}
|
|
326
|
+
/**
|
|
327
|
+
* @hidden
|
|
328
|
+
*/
|
|
329
|
+
ngOnDestroy() {
|
|
330
|
+
if (this.documentMouseUpSub) {
|
|
331
|
+
this.documentMouseUpSub();
|
|
332
|
+
}
|
|
333
|
+
}
|
|
320
334
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownButtonComponent, deps: [{ token: i1.FocusService }, { token: i2.NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i4.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i5.PopupContainerService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
321
335
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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", "attr.dir": "this.dir" } }, providers: [
|
|
322
336
|
FocusService,
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-buttons',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '17.0.0-develop.
|
|
12
|
+
publishDate: 1730130015,
|
|
13
|
+
version: '17.0.0-develop.24',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -346,6 +346,7 @@ export class SplitButtonComponent extends ListButton {
|
|
|
346
346
|
_rounded = DEFAULT_ROUNDED;
|
|
347
347
|
_fillMode = DEFAULT_FILL_MODE;
|
|
348
348
|
_buttonAttributes = null;
|
|
349
|
+
documentMouseUpSub;
|
|
349
350
|
set isFocused(value) {
|
|
350
351
|
this._isFocused = value;
|
|
351
352
|
}
|
|
@@ -463,6 +464,14 @@ export class SplitButtonComponent extends ListButton {
|
|
|
463
464
|
popup.popupAlign = this.popupAlign;
|
|
464
465
|
}
|
|
465
466
|
}
|
|
467
|
+
/**
|
|
468
|
+
* @hidden
|
|
469
|
+
*/
|
|
470
|
+
ngOnDestroy() {
|
|
471
|
+
if (this.documentMouseUpSub) {
|
|
472
|
+
this.documentMouseUpSub();
|
|
473
|
+
}
|
|
474
|
+
}
|
|
466
475
|
/**
|
|
467
476
|
* @hidden
|
|
468
477
|
*/
|
|
@@ -537,6 +546,14 @@ export class SplitButtonComponent extends ListButton {
|
|
|
537
546
|
this.renderer = renderer;
|
|
538
547
|
this._itemClick = this.itemClick;
|
|
539
548
|
this._blur = this.onBlur;
|
|
549
|
+
this.documentMouseUpSub = this.renderer.listen('document', 'mouseup', () => {
|
|
550
|
+
if (this.active) {
|
|
551
|
+
this._active = false;
|
|
552
|
+
}
|
|
553
|
+
if (this.activeArrow) {
|
|
554
|
+
this.activeArrow = false;
|
|
555
|
+
}
|
|
556
|
+
});
|
|
540
557
|
}
|
|
541
558
|
/**
|
|
542
559
|
* Returns the current open state of the popup.
|
|
@@ -598,7 +615,8 @@ export class SplitButtonComponent extends ListButton {
|
|
|
598
615
|
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], exportAs: ["kendoSplitButton"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
599
616
|
<ng-container kendoSplitButtonLocalizedMessages
|
|
600
617
|
i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
|
|
601
|
-
splitButtonLabel="{{ '{buttonText} splitbutton' }}"
|
|
618
|
+
splitButtonLabel="{{ '{buttonText} splitbutton' }}"
|
|
619
|
+
>
|
|
602
620
|
</ng-container>
|
|
603
621
|
<button
|
|
604
622
|
kendoButton
|
|
@@ -626,8 +644,7 @@ export class SplitButtonComponent extends ListButton {
|
|
|
626
644
|
[attr.aria-label]="ariaLabel"
|
|
627
645
|
>
|
|
628
646
|
<span *ngIf="text" class="k-button-text">
|
|
629
|
-
{{ text }}
|
|
630
|
-
</span><ng-content></ng-content>
|
|
647
|
+
{{ text }} </span><ng-content></ng-content>
|
|
631
648
|
</button>
|
|
632
649
|
<button kendoButton #arrowButton type="button"
|
|
633
650
|
class="k-split-button-arrow"
|
|
@@ -687,7 +704,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
687
704
|
template: `
|
|
688
705
|
<ng-container kendoSplitButtonLocalizedMessages
|
|
689
706
|
i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
|
|
690
|
-
splitButtonLabel="{{ '{buttonText} splitbutton' }}"
|
|
707
|
+
splitButtonLabel="{{ '{buttonText} splitbutton' }}"
|
|
708
|
+
>
|
|
691
709
|
</ng-container>
|
|
692
710
|
<button
|
|
693
711
|
kendoButton
|
|
@@ -715,8 +733,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
715
733
|
[attr.aria-label]="ariaLabel"
|
|
716
734
|
>
|
|
717
735
|
<span *ngIf="text" class="k-button-text">
|
|
718
|
-
{{ text }}
|
|
719
|
-
</span><ng-content></ng-content>
|
|
736
|
+
{{ text }} </span><ng-content></ng-content>
|
|
720
737
|
</button>
|
|
721
738
|
<button kendoButton #arrowButton type="button"
|
|
722
739
|
class="k-split-button-arrow"
|
|
@@ -42,8 +42,8 @@ const packageMetadata = {
|
|
|
42
42
|
name: '@progress/kendo-angular-buttons',
|
|
43
43
|
productName: 'Kendo UI for Angular',
|
|
44
44
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
45
|
-
publishDate:
|
|
46
|
-
version: '17.0.0-develop.
|
|
45
|
+
publishDate: 1730130015,
|
|
46
|
+
version: '17.0.0-develop.24',
|
|
47
47
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
48
48
|
};
|
|
49
49
|
|
|
@@ -2951,6 +2951,7 @@ class DropDownButtonComponent extends ListButton {
|
|
|
2951
2951
|
itemTemplate;
|
|
2952
2952
|
_fillMode = DEFAULT_FILL_MODE$1;
|
|
2953
2953
|
_buttonAttributes = null;
|
|
2954
|
+
documentMouseUpSub;
|
|
2954
2955
|
/**
|
|
2955
2956
|
* @hidden
|
|
2956
2957
|
*/
|
|
@@ -3026,6 +3027,11 @@ class DropDownButtonComponent extends ListButton {
|
|
|
3026
3027
|
this.renderer = renderer;
|
|
3027
3028
|
this._itemClick = this.itemClick;
|
|
3028
3029
|
this._blur = this.onBlur;
|
|
3030
|
+
this.documentMouseUpSub = this.renderer.listen('document', 'mouseup', () => {
|
|
3031
|
+
if (this.active) {
|
|
3032
|
+
this._active = false;
|
|
3033
|
+
}
|
|
3034
|
+
});
|
|
3029
3035
|
}
|
|
3030
3036
|
ngAfterViewInit() {
|
|
3031
3037
|
this.containerService.container = this.container;
|
|
@@ -3072,6 +3078,14 @@ class DropDownButtonComponent extends ListButton {
|
|
|
3072
3078
|
}
|
|
3073
3079
|
}
|
|
3074
3080
|
}
|
|
3081
|
+
/**
|
|
3082
|
+
* @hidden
|
|
3083
|
+
*/
|
|
3084
|
+
ngOnDestroy() {
|
|
3085
|
+
if (this.documentMouseUpSub) {
|
|
3086
|
+
this.documentMouseUpSub();
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3075
3089
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", 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 });
|
|
3076
3090
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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", "attr.dir": "this.dir" } }, providers: [
|
|
3077
3091
|
FocusService,
|
|
@@ -4956,6 +4970,7 @@ class SplitButtonComponent extends ListButton {
|
|
|
4956
4970
|
_rounded = DEFAULT_ROUNDED;
|
|
4957
4971
|
_fillMode = DEFAULT_FILL_MODE;
|
|
4958
4972
|
_buttonAttributes = null;
|
|
4973
|
+
documentMouseUpSub;
|
|
4959
4974
|
set isFocused(value) {
|
|
4960
4975
|
this._isFocused = value;
|
|
4961
4976
|
}
|
|
@@ -5073,6 +5088,14 @@ class SplitButtonComponent extends ListButton {
|
|
|
5073
5088
|
popup.popupAlign = this.popupAlign;
|
|
5074
5089
|
}
|
|
5075
5090
|
}
|
|
5091
|
+
/**
|
|
5092
|
+
* @hidden
|
|
5093
|
+
*/
|
|
5094
|
+
ngOnDestroy() {
|
|
5095
|
+
if (this.documentMouseUpSub) {
|
|
5096
|
+
this.documentMouseUpSub();
|
|
5097
|
+
}
|
|
5098
|
+
}
|
|
5076
5099
|
/**
|
|
5077
5100
|
* @hidden
|
|
5078
5101
|
*/
|
|
@@ -5147,6 +5170,14 @@ class SplitButtonComponent extends ListButton {
|
|
|
5147
5170
|
this.renderer = renderer;
|
|
5148
5171
|
this._itemClick = this.itemClick;
|
|
5149
5172
|
this._blur = this.onBlur;
|
|
5173
|
+
this.documentMouseUpSub = this.renderer.listen('document', 'mouseup', () => {
|
|
5174
|
+
if (this.active) {
|
|
5175
|
+
this._active = false;
|
|
5176
|
+
}
|
|
5177
|
+
if (this.activeArrow) {
|
|
5178
|
+
this.activeArrow = false;
|
|
5179
|
+
}
|
|
5180
|
+
});
|
|
5150
5181
|
}
|
|
5151
5182
|
/**
|
|
5152
5183
|
* Returns the current open state of the popup.
|
|
@@ -5208,7 +5239,8 @@ class SplitButtonComponent extends ListButton {
|
|
|
5208
5239
|
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], exportAs: ["kendoSplitButton"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
5209
5240
|
<ng-container kendoSplitButtonLocalizedMessages
|
|
5210
5241
|
i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
|
|
5211
|
-
splitButtonLabel="{{ '{buttonText} splitbutton' }}"
|
|
5242
|
+
splitButtonLabel="{{ '{buttonText} splitbutton' }}"
|
|
5243
|
+
>
|
|
5212
5244
|
</ng-container>
|
|
5213
5245
|
<button
|
|
5214
5246
|
kendoButton
|
|
@@ -5236,8 +5268,7 @@ class SplitButtonComponent extends ListButton {
|
|
|
5236
5268
|
[attr.aria-label]="ariaLabel"
|
|
5237
5269
|
>
|
|
5238
5270
|
<span *ngIf="text" class="k-button-text">
|
|
5239
|
-
{{ text }}
|
|
5240
|
-
</span><ng-content></ng-content>
|
|
5271
|
+
{{ text }} </span><ng-content></ng-content>
|
|
5241
5272
|
</button>
|
|
5242
5273
|
<button kendoButton #arrowButton type="button"
|
|
5243
5274
|
class="k-split-button-arrow"
|
|
@@ -5297,7 +5328,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5297
5328
|
template: `
|
|
5298
5329
|
<ng-container kendoSplitButtonLocalizedMessages
|
|
5299
5330
|
i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
|
|
5300
|
-
splitButtonLabel="{{ '{buttonText} splitbutton' }}"
|
|
5331
|
+
splitButtonLabel="{{ '{buttonText} splitbutton' }}"
|
|
5332
|
+
>
|
|
5301
5333
|
</ng-container>
|
|
5302
5334
|
<button
|
|
5303
5335
|
kendoButton
|
|
@@ -5325,8 +5357,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
5325
5357
|
[attr.aria-label]="ariaLabel"
|
|
5326
5358
|
>
|
|
5327
5359
|
<span *ngIf="text" class="k-button-text">
|
|
5328
|
-
{{ text }}
|
|
5329
|
-
</span><ng-content></ng-content>
|
|
5360
|
+
{{ text }} </span><ng-content></ng-content>
|
|
5330
5361
|
</button>
|
|
5331
5362
|
<button kendoButton #arrowButton type="button"
|
|
5332
5363
|
class="k-split-button-arrow"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-buttons",
|
|
3
|
-
"version": "17.0.0-develop.
|
|
3
|
+
"version": "17.0.0-develop.24",
|
|
4
4
|
"description": "Buttons Package for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"@angular/core": "16 - 18",
|
|
26
26
|
"@angular/platform-browser": "16 - 18",
|
|
27
27
|
"@progress/kendo-licensing": "^1.0.2",
|
|
28
|
-
"@progress/kendo-angular-common": "17.0.0-develop.
|
|
29
|
-
"@progress/kendo-angular-l10n": "17.0.0-develop.
|
|
30
|
-
"@progress/kendo-angular-popup": "17.0.0-develop.
|
|
31
|
-
"@progress/kendo-angular-icons": "17.0.0-develop.
|
|
28
|
+
"@progress/kendo-angular-common": "17.0.0-develop.24",
|
|
29
|
+
"@progress/kendo-angular-l10n": "17.0.0-develop.24",
|
|
30
|
+
"@progress/kendo-angular-popup": "17.0.0-develop.24",
|
|
31
|
+
"@progress/kendo-angular-icons": "17.0.0-develop.24",
|
|
32
32
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"tslib": "^2.3.1",
|
|
36
|
-
"@progress/kendo-angular-schematics": "17.0.0-develop.
|
|
36
|
+
"@progress/kendo-angular-schematics": "17.0.0-develop.24",
|
|
37
37
|
"@progress/kendo-common": "^0.2.1"
|
|
38
38
|
},
|
|
39
39
|
"schematics": "./schematics/collection.json",
|
|
@@ -289,6 +289,7 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
|
|
|
289
289
|
private _rounded;
|
|
290
290
|
private _fillMode;
|
|
291
291
|
private _buttonAttributes;
|
|
292
|
+
private documentMouseUpSub;
|
|
292
293
|
set isFocused(value: boolean);
|
|
293
294
|
get isFocused(): boolean;
|
|
294
295
|
get widgetClasses(): boolean;
|
|
@@ -337,6 +338,10 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
|
|
|
337
338
|
* @hidden
|
|
338
339
|
*/
|
|
339
340
|
ngOnChanges(changes: SimpleChanges): void;
|
|
341
|
+
/**
|
|
342
|
+
* @hidden
|
|
343
|
+
*/
|
|
344
|
+
ngOnDestroy(): void;
|
|
340
345
|
/**
|
|
341
346
|
* @hidden
|
|
342
347
|
*/
|