@progress/kendo-angular-buttons 7.0.0-dev.202201061631 → 7.0.0-dev.202201181837
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/LICENSE.md +1 -1
- package/NOTICE.txt +119 -79
- package/README.md +1 -1
- package/dist/cdn/js/kendo-angular-buttons.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/button/button.directive.js +6 -15
- package/dist/es/buttongroup/buttongroup.component.js +10 -7
- package/dist/es/chip/chip-list.component.js +3 -0
- package/dist/es/dropdownbutton/dropdownbutton.component.js +26 -14
- package/dist/es/listbutton/list-button.js +3 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/splitbutton/splitbutton.component.js +69 -32
- package/dist/es2015/button/button.directive.d.ts +0 -1
- package/dist/es2015/button/button.directive.js +6 -11
- package/dist/es2015/buttongroup/buttongroup.component.js +10 -7
- package/dist/es2015/chip/chip-list.component.js +3 -0
- package/dist/es2015/common/models/fillmode.d.ts +1 -1
- package/dist/es2015/dropdownbutton/dropdownbutton.component.d.ts +1 -0
- package/dist/es2015/dropdownbutton/dropdownbutton.component.js +22 -14
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/listbutton/list-button.js +3 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/splitbutton/splitbutton.component.d.ts +11 -7
- package/dist/es2015/splitbutton/splitbutton.component.js +61 -32
- package/dist/fesm2015/index.js +97 -62
- package/dist/fesm5/index.js +109 -66
- package/dist/npm/button/button.directive.js +5 -14
- package/dist/npm/buttongroup/buttongroup.component.js +10 -7
- package/dist/npm/chip/chip-list.component.js +3 -0
- package/dist/npm/dropdownbutton/dropdownbutton.component.js +26 -14
- package/dist/npm/listbutton/list-button.js +3 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/splitbutton/splitbutton.component.js +67 -30
- package/dist/systemjs/kendo-angular-buttons.js +1 -1
- package/package.json +4 -3
package/dist/fesm5/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var packageMetadata = {
|
|
|
37
37
|
name: '@progress/kendo-angular-buttons',
|
|
38
38
|
productName: 'Kendo UI for Angular',
|
|
39
39
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
40
|
-
publishDate:
|
|
40
|
+
publishDate: 1642530954,
|
|
41
41
|
version: '',
|
|
42
42
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
43
43
|
};
|
|
@@ -498,9 +498,6 @@ var ButtonDirective = /** @class */ (function () {
|
|
|
498
498
|
case 'default':
|
|
499
499
|
this.fillMode = 'solid';
|
|
500
500
|
break;
|
|
501
|
-
case 'clear':
|
|
502
|
-
this.fillMode = 'link';
|
|
503
|
-
break;
|
|
504
501
|
default:
|
|
505
502
|
this.fillMode = value;
|
|
506
503
|
break;
|
|
@@ -620,15 +617,6 @@ var ButtonDirective = /** @class */ (function () {
|
|
|
620
617
|
return false;
|
|
621
618
|
}
|
|
622
619
|
};
|
|
623
|
-
Object.defineProperty(ButtonDirective.prototype, "text", {
|
|
624
|
-
get: function () {
|
|
625
|
-
if (isDocumentAvailable()) {
|
|
626
|
-
return this.element.innerHTML.trim();
|
|
627
|
-
}
|
|
628
|
-
},
|
|
629
|
-
enumerable: true,
|
|
630
|
-
configurable: true
|
|
631
|
-
});
|
|
632
620
|
ButtonDirective.prototype.addImgIcon = function (imageUrl) {
|
|
633
621
|
var renderer = this.renderer;
|
|
634
622
|
this.iconSpanNode = renderer.createElement('span');
|
|
@@ -658,8 +646,11 @@ var ButtonDirective = /** @class */ (function () {
|
|
|
658
646
|
}
|
|
659
647
|
};
|
|
660
648
|
ButtonDirective.prototype.addTextSpan = function () {
|
|
661
|
-
if (isDocumentAvailable() && this.hasText()) {
|
|
662
|
-
|
|
649
|
+
if (isDocumentAvailable() && this.hasText() && isPresent(this.element.append)) {
|
|
650
|
+
var span = this.renderer.createElement('span');
|
|
651
|
+
this.renderer.addClass(span, 'k-button-text');
|
|
652
|
+
span.append.apply(span, Array.from(this.element.childNodes));
|
|
653
|
+
this.element.append(span);
|
|
663
654
|
}
|
|
664
655
|
};
|
|
665
656
|
ButtonDirective.prototype.prependChild = function (node) {
|
|
@@ -951,6 +942,7 @@ var ButtonGroupComponent = /** @class */ (function () {
|
|
|
951
942
|
this.navigate = new EventEmitter();
|
|
952
943
|
this._tabIndex = 0;
|
|
953
944
|
this.currentTabIndex = 0;
|
|
945
|
+
validatePackage(packageMetadata);
|
|
954
946
|
this.localizationChangeSubscription = localization.changes.subscribe(function (_a) {
|
|
955
947
|
var rtl = _a.rtl;
|
|
956
948
|
return _this.direction = rtl ? 'rtl' : 'ltr';
|
|
@@ -1069,7 +1061,7 @@ var ButtonGroupComponent = /** @class */ (function () {
|
|
|
1069
1061
|
if (button.togglable) {
|
|
1070
1062
|
button.setSelected(newSelectionValue);
|
|
1071
1063
|
}
|
|
1072
|
-
button.setAttribute(tabindex,
|
|
1064
|
+
button.setAttribute(tabindex, '0');
|
|
1073
1065
|
});
|
|
1074
1066
|
};
|
|
1075
1067
|
ButtonGroupComponent.prototype.ngOnChanges = function (change) {
|
|
@@ -1085,10 +1077,10 @@ var ButtonGroupComponent = /** @class */ (function () {
|
|
|
1085
1077
|
ButtonGroupComponent.prototype.ngAfterContentInit = function () {
|
|
1086
1078
|
this.buttons.forEach(function (button) {
|
|
1087
1079
|
if (button.selected) {
|
|
1088
|
-
button.setAttribute(tabindex,
|
|
1080
|
+
button.setAttribute(tabindex, '0');
|
|
1089
1081
|
}
|
|
1090
1082
|
else {
|
|
1091
|
-
button.setAttribute(tabindex,
|
|
1083
|
+
button.setAttribute(tabindex, '-1');
|
|
1092
1084
|
}
|
|
1093
1085
|
});
|
|
1094
1086
|
};
|
|
@@ -1132,24 +1124,24 @@ var ButtonGroupComponent = /** @class */ (function () {
|
|
|
1132
1124
|
ButtonGroupComponent.prototype.deactivate = function (buttons) {
|
|
1133
1125
|
buttons.forEach(function (button) {
|
|
1134
1126
|
button.setSelected(false);
|
|
1135
|
-
button.setAttribute(tabindex,
|
|
1127
|
+
button.setAttribute(tabindex, '-1');
|
|
1136
1128
|
});
|
|
1137
1129
|
};
|
|
1138
1130
|
ButtonGroupComponent.prototype.activate = function (buttons) {
|
|
1139
1131
|
buttons.forEach(function (button) {
|
|
1140
1132
|
button.setSelected(true);
|
|
1141
|
-
button.setAttribute(tabindex,
|
|
1133
|
+
button.setAttribute(tabindex, '0');
|
|
1142
1134
|
button.focus();
|
|
1143
1135
|
});
|
|
1144
1136
|
};
|
|
1145
1137
|
ButtonGroupComponent.prototype.defocus = function (buttons) {
|
|
1146
1138
|
buttons.forEach(function (button) {
|
|
1147
|
-
button.setAttribute(tabindex,
|
|
1139
|
+
button.setAttribute(tabindex, '-1');
|
|
1148
1140
|
});
|
|
1149
1141
|
};
|
|
1150
1142
|
ButtonGroupComponent.prototype.focus = function (buttons) {
|
|
1151
1143
|
buttons.forEach(function (button) {
|
|
1152
|
-
button.setAttribute(tabindex,
|
|
1144
|
+
button.setAttribute(tabindex, '0');
|
|
1153
1145
|
button.focus();
|
|
1154
1146
|
});
|
|
1155
1147
|
};
|
|
@@ -1664,6 +1656,7 @@ var ListButton = /** @class */ (function () {
|
|
|
1664
1656
|
this._popupSettings = { animate: true, popupClass: '' };
|
|
1665
1657
|
this.listId = guid();
|
|
1666
1658
|
this._isFocused = false;
|
|
1659
|
+
validatePackage(packageMetadata);
|
|
1667
1660
|
this.focusService = focusService;
|
|
1668
1661
|
this.navigationService = navigationService;
|
|
1669
1662
|
this.wrapper = wrapperRef.nativeElement;
|
|
@@ -2035,11 +2028,12 @@ var NAVIGATION_SETTINGS_PROVIDER = {
|
|
|
2035
2028
|
*/
|
|
2036
2029
|
var SplitButtonComponent = /** @class */ (function (_super) {
|
|
2037
2030
|
__extends(SplitButtonComponent, _super);
|
|
2038
|
-
function SplitButtonComponent(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr) {
|
|
2031
|
+
function SplitButtonComponent(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr, renderer) {
|
|
2039
2032
|
var _this = _super.call(this, focusService, navigationService, wrapperRef, zone, localization, cdr) || this;
|
|
2040
2033
|
_this.popupService = popupService;
|
|
2041
2034
|
_this.elRef = elRef;
|
|
2042
2035
|
_this.localization = localization;
|
|
2036
|
+
_this.renderer = renderer;
|
|
2043
2037
|
/**
|
|
2044
2038
|
* Sets the text of the SplitButton.
|
|
2045
2039
|
*/
|
|
@@ -2074,29 +2068,6 @@ var SplitButtonComponent = /** @class */ (function (_super) {
|
|
|
2074
2068
|
* * `null`
|
|
2075
2069
|
*/
|
|
2076
2070
|
_this.size = 'medium';
|
|
2077
|
-
/**
|
|
2078
|
-
* The rounded property specifies the border radius of the SplitButton
|
|
2079
|
-
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-rounded)).
|
|
2080
|
-
*
|
|
2081
|
-
* The possible values are:
|
|
2082
|
-
* * `'small'`
|
|
2083
|
-
* * `'medium'` (default)
|
|
2084
|
-
* * `'large'`
|
|
2085
|
-
* * `'full'`
|
|
2086
|
-
* * `null`
|
|
2087
|
-
*/
|
|
2088
|
-
_this.rounded = 'medium';
|
|
2089
|
-
/**
|
|
2090
|
-
* The fillMode property specifies the background and border styles of the SplitButton
|
|
2091
|
-
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
|
|
2092
|
-
*
|
|
2093
|
-
* The available values are:
|
|
2094
|
-
* * `solid` (default)
|
|
2095
|
-
* * `flat`
|
|
2096
|
-
* * `outline`
|
|
2097
|
-
* * `link`
|
|
2098
|
-
*/
|
|
2099
|
-
_this.fillMode = 'solid';
|
|
2100
2071
|
/**
|
|
2101
2072
|
* The SplitButton allows you to specify predefined theme colors.
|
|
2102
2073
|
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
@@ -2193,17 +2164,62 @@ var SplitButtonComponent = /** @class */ (function (_super) {
|
|
|
2193
2164
|
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
2194
2165
|
*/
|
|
2195
2166
|
_this.close = new EventEmitter();
|
|
2196
|
-
_this.listId = guid();
|
|
2197
2167
|
/**
|
|
2198
2168
|
* @hidden
|
|
2199
2169
|
*/
|
|
2200
2170
|
_this.activeArrow = false;
|
|
2171
|
+
_this.listId = guid();
|
|
2201
2172
|
_this.buttonText = '';
|
|
2202
2173
|
_this.lockFocus = false;
|
|
2174
|
+
_this._rounded = 'medium';
|
|
2175
|
+
_this._fillMode = "solid";
|
|
2203
2176
|
_this._itemClick = _this.itemClick;
|
|
2204
2177
|
_this._blur = _this.onBlur;
|
|
2205
2178
|
return _this;
|
|
2206
2179
|
}
|
|
2180
|
+
Object.defineProperty(SplitButtonComponent.prototype, "rounded", {
|
|
2181
|
+
get: function () {
|
|
2182
|
+
return this._rounded;
|
|
2183
|
+
},
|
|
2184
|
+
/**
|
|
2185
|
+
* The rounded property specifies the border radius of the SplitButton
|
|
2186
|
+
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-rounded)).
|
|
2187
|
+
*
|
|
2188
|
+
* The possible values are:
|
|
2189
|
+
* * `'small'`
|
|
2190
|
+
* * `'medium'` (default)
|
|
2191
|
+
* * `'large'`
|
|
2192
|
+
* * `'full'`
|
|
2193
|
+
* * `null`
|
|
2194
|
+
*/
|
|
2195
|
+
set: function (rounded) {
|
|
2196
|
+
this.handleClasses(rounded, 'rounded');
|
|
2197
|
+
this._rounded = rounded;
|
|
2198
|
+
},
|
|
2199
|
+
enumerable: true,
|
|
2200
|
+
configurable: true
|
|
2201
|
+
});
|
|
2202
|
+
Object.defineProperty(SplitButtonComponent.prototype, "fillMode", {
|
|
2203
|
+
get: function () {
|
|
2204
|
+
return this._fillMode;
|
|
2205
|
+
},
|
|
2206
|
+
/**
|
|
2207
|
+
* The fillMode property specifies the background and border styles of the SplitButton
|
|
2208
|
+
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
|
|
2209
|
+
*
|
|
2210
|
+
* The available values are:
|
|
2211
|
+
* * `solid` (default)
|
|
2212
|
+
* * `flat`
|
|
2213
|
+
* * `outline`
|
|
2214
|
+
* * `link`
|
|
2215
|
+
*/
|
|
2216
|
+
set: function (fillMode) {
|
|
2217
|
+
// Temporary workaround for missing 'clear' styles
|
|
2218
|
+
this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
|
|
2219
|
+
},
|
|
2220
|
+
enumerable: true,
|
|
2221
|
+
configurable: true
|
|
2222
|
+
});
|
|
2207
2223
|
Object.defineProperty(SplitButtonComponent.prototype, "disabled", {
|
|
2208
2224
|
get: function () {
|
|
2209
2225
|
return this._disabled;
|
|
@@ -2415,6 +2431,7 @@ var SplitButtonComponent = /** @class */ (function (_super) {
|
|
|
2415
2431
|
*/
|
|
2416
2432
|
SplitButtonComponent.prototype.ngAfterViewInit = function () {
|
|
2417
2433
|
this.updateButtonText();
|
|
2434
|
+
this.handleClasses(this.rounded, 'rounded');
|
|
2418
2435
|
};
|
|
2419
2436
|
/**
|
|
2420
2437
|
* @hidden
|
|
@@ -2581,6 +2598,16 @@ var SplitButtonComponent = /** @class */ (function (_super) {
|
|
|
2581
2598
|
this.popupRef = null;
|
|
2582
2599
|
}
|
|
2583
2600
|
};
|
|
2601
|
+
SplitButtonComponent.prototype.handleClasses = function (value, input) {
|
|
2602
|
+
var elem = this.wrapperRef.nativeElement;
|
|
2603
|
+
var classes = getStylingClasses('button', input, this[input], value);
|
|
2604
|
+
if (classes.toRemove) {
|
|
2605
|
+
this.renderer.removeClass(elem, classes.toRemove);
|
|
2606
|
+
}
|
|
2607
|
+
if (classes.toAdd) {
|
|
2608
|
+
this.renderer.addClass(elem, classes.toAdd);
|
|
2609
|
+
}
|
|
2610
|
+
};
|
|
2584
2611
|
__decorate([
|
|
2585
2612
|
Input(),
|
|
2586
2613
|
__metadata("design:type", String)
|
|
@@ -2607,12 +2634,14 @@ var SplitButtonComponent = /** @class */ (function (_super) {
|
|
|
2607
2634
|
], SplitButtonComponent.prototype, "size", void 0);
|
|
2608
2635
|
__decorate([
|
|
2609
2636
|
Input(),
|
|
2610
|
-
__metadata("design:type", String)
|
|
2611
|
-
|
|
2637
|
+
__metadata("design:type", String),
|
|
2638
|
+
__metadata("design:paramtypes", [String])
|
|
2639
|
+
], SplitButtonComponent.prototype, "rounded", null);
|
|
2612
2640
|
__decorate([
|
|
2613
2641
|
Input(),
|
|
2614
|
-
__metadata("design:type", String)
|
|
2615
|
-
|
|
2642
|
+
__metadata("design:type", String),
|
|
2643
|
+
__metadata("design:paramtypes", [String])
|
|
2644
|
+
], SplitButtonComponent.prototype, "fillMode", null);
|
|
2616
2645
|
__decorate([
|
|
2617
2646
|
Input(),
|
|
2618
2647
|
__metadata("design:type", String)
|
|
@@ -2753,7 +2782,8 @@ var SplitButtonComponent = /** @class */ (function (_super) {
|
|
|
2753
2782
|
PopupService,
|
|
2754
2783
|
ElementRef,
|
|
2755
2784
|
LocalizationService,
|
|
2756
|
-
ChangeDetectorRef
|
|
2785
|
+
ChangeDetectorRef,
|
|
2786
|
+
Renderer2])
|
|
2757
2787
|
], SplitButtonComponent);
|
|
2758
2788
|
return SplitButtonComponent;
|
|
2759
2789
|
}(ListButton));
|
|
@@ -2944,18 +2974,6 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
2944
2974
|
* * `null`
|
|
2945
2975
|
*/
|
|
2946
2976
|
_this.rounded = 'medium';
|
|
2947
|
-
/**
|
|
2948
|
-
* The fillMode property specifies the background and border styles of the DropDownButton
|
|
2949
|
-
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
|
|
2950
|
-
*
|
|
2951
|
-
* The available values are:
|
|
2952
|
-
* * `solid` (default)
|
|
2953
|
-
* * `flat`
|
|
2954
|
-
* * `outline`
|
|
2955
|
-
* * `link`
|
|
2956
|
-
* * `null`
|
|
2957
|
-
*/
|
|
2958
|
-
_this.fillMode = 'solid';
|
|
2959
2977
|
/**
|
|
2960
2978
|
* The DropDownButton allows you to specify predefined theme colors.
|
|
2961
2979
|
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
@@ -3003,6 +3021,7 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
3003
3021
|
*/
|
|
3004
3022
|
_this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
|
|
3005
3023
|
_this.listId = guid();
|
|
3024
|
+
_this._fillMode = 'solid';
|
|
3006
3025
|
_this._itemClick = _this.itemClick;
|
|
3007
3026
|
_this._blur = _this.onBlur;
|
|
3008
3027
|
return _this;
|
|
@@ -3057,6 +3076,28 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
3057
3076
|
enumerable: true,
|
|
3058
3077
|
configurable: true
|
|
3059
3078
|
});
|
|
3079
|
+
Object.defineProperty(DropDownButtonComponent.prototype, "fillMode", {
|
|
3080
|
+
get: function () {
|
|
3081
|
+
return this._fillMode;
|
|
3082
|
+
},
|
|
3083
|
+
/**
|
|
3084
|
+
* The fillMode property specifies the background and border styles of the DropDownButton
|
|
3085
|
+
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
|
|
3086
|
+
*
|
|
3087
|
+
* The available values are:
|
|
3088
|
+
* * `solid` (default)
|
|
3089
|
+
* * `flat`
|
|
3090
|
+
* * `outline`
|
|
3091
|
+
* * `link`
|
|
3092
|
+
* * `null`
|
|
3093
|
+
*/
|
|
3094
|
+
set: function (fillMode) {
|
|
3095
|
+
// Temporary workaround for missing 'clear' styles
|
|
3096
|
+
this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
|
|
3097
|
+
},
|
|
3098
|
+
enumerable: true,
|
|
3099
|
+
configurable: true
|
|
3100
|
+
});
|
|
3060
3101
|
Object.defineProperty(DropDownButtonComponent.prototype, "openState", {
|
|
3061
3102
|
/**
|
|
3062
3103
|
* @hidden
|
|
@@ -3403,8 +3444,9 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
3403
3444
|
], DropDownButtonComponent.prototype, "rounded", void 0);
|
|
3404
3445
|
__decorate([
|
|
3405
3446
|
Input(),
|
|
3406
|
-
__metadata("design:type", String)
|
|
3407
|
-
|
|
3447
|
+
__metadata("design:type", String),
|
|
3448
|
+
__metadata("design:paramtypes", [String])
|
|
3449
|
+
], DropDownButtonComponent.prototype, "fillMode", null);
|
|
3408
3450
|
__decorate([
|
|
3409
3451
|
Input(),
|
|
3410
3452
|
__metadata("design:type", String)
|
|
@@ -4014,6 +4056,7 @@ var ChipListComponent = /** @class */ (function () {
|
|
|
4014
4056
|
this.remove = new EventEmitter();
|
|
4015
4057
|
this.role = 'listbox';
|
|
4016
4058
|
this._size = 'medium';
|
|
4059
|
+
validatePackage(packageMetadata);
|
|
4017
4060
|
this.direction = localizationService.rtl ? 'rtl' : 'ltr';
|
|
4018
4061
|
}
|
|
4019
4062
|
Object.defineProperty(ChipListComponent.prototype, "size", {
|
|
@@ -374,9 +374,6 @@ var ButtonDirective = /** @class */ (function () {
|
|
|
374
374
|
case 'default':
|
|
375
375
|
this.fillMode = 'solid';
|
|
376
376
|
break;
|
|
377
|
-
case 'clear':
|
|
378
|
-
this.fillMode = 'link';
|
|
379
|
-
break;
|
|
380
377
|
default:
|
|
381
378
|
this.fillMode = value;
|
|
382
379
|
break;
|
|
@@ -496,15 +493,6 @@ var ButtonDirective = /** @class */ (function () {
|
|
|
496
493
|
return false;
|
|
497
494
|
}
|
|
498
495
|
};
|
|
499
|
-
Object.defineProperty(ButtonDirective.prototype, "text", {
|
|
500
|
-
get: function () {
|
|
501
|
-
if (kendo_angular_common_1.isDocumentAvailable()) {
|
|
502
|
-
return this.element.innerHTML.trim();
|
|
503
|
-
}
|
|
504
|
-
},
|
|
505
|
-
enumerable: true,
|
|
506
|
-
configurable: true
|
|
507
|
-
});
|
|
508
496
|
ButtonDirective.prototype.addImgIcon = function (imageUrl) {
|
|
509
497
|
var renderer = this.renderer;
|
|
510
498
|
this.iconSpanNode = renderer.createElement('span');
|
|
@@ -534,8 +522,11 @@ var ButtonDirective = /** @class */ (function () {
|
|
|
534
522
|
}
|
|
535
523
|
};
|
|
536
524
|
ButtonDirective.prototype.addTextSpan = function () {
|
|
537
|
-
if (kendo_angular_common_1.isDocumentAvailable() && this.hasText()) {
|
|
538
|
-
|
|
525
|
+
if (kendo_angular_common_1.isDocumentAvailable() && this.hasText() && util_1.isPresent(this.element.append)) {
|
|
526
|
+
var span = this.renderer.createElement('span');
|
|
527
|
+
this.renderer.addClass(span, 'k-button-text');
|
|
528
|
+
span.append.apply(span, Array.from(this.element.childNodes));
|
|
529
|
+
this.element.append(span);
|
|
539
530
|
}
|
|
540
531
|
};
|
|
541
532
|
ButtonDirective.prototype.prependChild = function (node) {
|
|
@@ -12,6 +12,8 @@ var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
|
12
12
|
var button_service_1 = require("../button/button.service");
|
|
13
13
|
var util_1 = require("../util");
|
|
14
14
|
var preventable_event_1 = require("../preventable-event");
|
|
15
|
+
var package_metadata_1 = require("../package-metadata");
|
|
16
|
+
var kendo_licensing_1 = require("@progress/kendo-licensing");
|
|
15
17
|
/**
|
|
16
18
|
* @hidden
|
|
17
19
|
*/
|
|
@@ -34,6 +36,7 @@ var ButtonGroupComponent = /** @class */ (function () {
|
|
|
34
36
|
this.navigate = new core_1.EventEmitter();
|
|
35
37
|
this._tabIndex = 0;
|
|
36
38
|
this.currentTabIndex = 0;
|
|
39
|
+
kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
|
|
37
40
|
this.localizationChangeSubscription = localization.changes.subscribe(function (_a) {
|
|
38
41
|
var rtl = _a.rtl;
|
|
39
42
|
return _this.direction = rtl ? 'rtl' : 'ltr';
|
|
@@ -152,7 +155,7 @@ var ButtonGroupComponent = /** @class */ (function () {
|
|
|
152
155
|
if (button.togglable) {
|
|
153
156
|
button.setSelected(newSelectionValue);
|
|
154
157
|
}
|
|
155
|
-
button.setAttribute(tabindex,
|
|
158
|
+
button.setAttribute(tabindex, '0');
|
|
156
159
|
});
|
|
157
160
|
};
|
|
158
161
|
ButtonGroupComponent.prototype.ngOnChanges = function (change) {
|
|
@@ -168,10 +171,10 @@ var ButtonGroupComponent = /** @class */ (function () {
|
|
|
168
171
|
ButtonGroupComponent.prototype.ngAfterContentInit = function () {
|
|
169
172
|
this.buttons.forEach(function (button) {
|
|
170
173
|
if (button.selected) {
|
|
171
|
-
button.setAttribute(tabindex,
|
|
174
|
+
button.setAttribute(tabindex, '0');
|
|
172
175
|
}
|
|
173
176
|
else {
|
|
174
|
-
button.setAttribute(tabindex,
|
|
177
|
+
button.setAttribute(tabindex, '-1');
|
|
175
178
|
}
|
|
176
179
|
});
|
|
177
180
|
};
|
|
@@ -215,24 +218,24 @@ var ButtonGroupComponent = /** @class */ (function () {
|
|
|
215
218
|
ButtonGroupComponent.prototype.deactivate = function (buttons) {
|
|
216
219
|
buttons.forEach(function (button) {
|
|
217
220
|
button.setSelected(false);
|
|
218
|
-
button.setAttribute(tabindex,
|
|
221
|
+
button.setAttribute(tabindex, '-1');
|
|
219
222
|
});
|
|
220
223
|
};
|
|
221
224
|
ButtonGroupComponent.prototype.activate = function (buttons) {
|
|
222
225
|
buttons.forEach(function (button) {
|
|
223
226
|
button.setSelected(true);
|
|
224
|
-
button.setAttribute(tabindex,
|
|
227
|
+
button.setAttribute(tabindex, '0');
|
|
225
228
|
button.focus();
|
|
226
229
|
});
|
|
227
230
|
};
|
|
228
231
|
ButtonGroupComponent.prototype.defocus = function (buttons) {
|
|
229
232
|
buttons.forEach(function (button) {
|
|
230
|
-
button.setAttribute(tabindex,
|
|
233
|
+
button.setAttribute(tabindex, '-1');
|
|
231
234
|
});
|
|
232
235
|
};
|
|
233
236
|
ButtonGroupComponent.prototype.focus = function (buttons) {
|
|
234
237
|
buttons.forEach(function (button) {
|
|
235
|
-
button.setAttribute(tabindex,
|
|
238
|
+
button.setAttribute(tabindex, '0');
|
|
236
239
|
button.focus();
|
|
237
240
|
});
|
|
238
241
|
};
|
|
@@ -9,6 +9,8 @@ var core_1 = require("@angular/core");
|
|
|
9
9
|
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
10
10
|
var chip_component_1 = require("./chip.component");
|
|
11
11
|
var util_1 = require("../util");
|
|
12
|
+
var kendo_licensing_1 = require("@progress/kendo-licensing");
|
|
13
|
+
var package_metadata_1 = require("../package-metadata");
|
|
12
14
|
var ChipListComponent = /** @class */ (function () {
|
|
13
15
|
function ChipListComponent(localizationService, renderer, element) {
|
|
14
16
|
this.localizationService = localizationService;
|
|
@@ -34,6 +36,7 @@ var ChipListComponent = /** @class */ (function () {
|
|
|
34
36
|
this.remove = new core_1.EventEmitter();
|
|
35
37
|
this.role = 'listbox';
|
|
36
38
|
this._size = 'medium';
|
|
39
|
+
kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
|
|
37
40
|
this.direction = localizationService.rtl ? 'rtl' : 'ltr';
|
|
38
41
|
}
|
|
39
42
|
Object.defineProperty(ChipListComponent.prototype, "size", {
|
|
@@ -107,18 +107,6 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
107
107
|
* * `null`
|
|
108
108
|
*/
|
|
109
109
|
_this.rounded = 'medium';
|
|
110
|
-
/**
|
|
111
|
-
* The fillMode property specifies the background and border styles of the DropDownButton
|
|
112
|
-
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
|
|
113
|
-
*
|
|
114
|
-
* The available values are:
|
|
115
|
-
* * `solid` (default)
|
|
116
|
-
* * `flat`
|
|
117
|
-
* * `outline`
|
|
118
|
-
* * `link`
|
|
119
|
-
* * `null`
|
|
120
|
-
*/
|
|
121
|
-
_this.fillMode = 'solid';
|
|
122
110
|
/**
|
|
123
111
|
* The DropDownButton allows you to specify predefined theme colors.
|
|
124
112
|
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
@@ -166,6 +154,7 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
166
154
|
*/
|
|
167
155
|
_this.onBlur = new core_1.EventEmitter(); //tslint:disable-line:no-output-rename
|
|
168
156
|
_this.listId = kendo_angular_common_1.guid();
|
|
157
|
+
_this._fillMode = 'solid';
|
|
169
158
|
_this._itemClick = _this.itemClick;
|
|
170
159
|
_this._blur = _this.onBlur;
|
|
171
160
|
return _this;
|
|
@@ -220,6 +209,28 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
220
209
|
enumerable: true,
|
|
221
210
|
configurable: true
|
|
222
211
|
});
|
|
212
|
+
Object.defineProperty(DropDownButtonComponent.prototype, "fillMode", {
|
|
213
|
+
get: function () {
|
|
214
|
+
return this._fillMode;
|
|
215
|
+
},
|
|
216
|
+
/**
|
|
217
|
+
* The fillMode property specifies the background and border styles of the DropDownButton
|
|
218
|
+
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
|
|
219
|
+
*
|
|
220
|
+
* The available values are:
|
|
221
|
+
* * `solid` (default)
|
|
222
|
+
* * `flat`
|
|
223
|
+
* * `outline`
|
|
224
|
+
* * `link`
|
|
225
|
+
* * `null`
|
|
226
|
+
*/
|
|
227
|
+
set: function (fillMode) {
|
|
228
|
+
// Temporary workaround for missing 'clear' styles
|
|
229
|
+
this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
|
|
230
|
+
},
|
|
231
|
+
enumerable: true,
|
|
232
|
+
configurable: true
|
|
233
|
+
});
|
|
223
234
|
Object.defineProperty(DropDownButtonComponent.prototype, "openState", {
|
|
224
235
|
/**
|
|
225
236
|
* @hidden
|
|
@@ -566,8 +577,9 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
566
577
|
], DropDownButtonComponent.prototype, "rounded", void 0);
|
|
567
578
|
tslib_1.__decorate([
|
|
568
579
|
core_1.Input(),
|
|
569
|
-
tslib_1.__metadata("design:type", String)
|
|
570
|
-
|
|
580
|
+
tslib_1.__metadata("design:type", String),
|
|
581
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
582
|
+
], DropDownButtonComponent.prototype, "fillMode", null);
|
|
571
583
|
tslib_1.__decorate([
|
|
572
584
|
core_1.Input(),
|
|
573
585
|
tslib_1.__metadata("design:type", String)
|
|
@@ -11,6 +11,8 @@ var key_events_1 = require("./../navigation/key-events");
|
|
|
11
11
|
var navigation_action_1 = require("./../navigation/navigation-action");
|
|
12
12
|
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
13
13
|
var util_1 = require("./../util");
|
|
14
|
+
var kendo_licensing_1 = require("@progress/kendo-licensing");
|
|
15
|
+
var package_metadata_1 = require("../package-metadata");
|
|
14
16
|
/**
|
|
15
17
|
* @hidden
|
|
16
18
|
*/
|
|
@@ -28,6 +30,7 @@ var ListButton = /** @class */ (function () {
|
|
|
28
30
|
this._popupSettings = { animate: true, popupClass: '' };
|
|
29
31
|
this.listId = kendo_angular_common_1.guid();
|
|
30
32
|
this._isFocused = false;
|
|
33
|
+
kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
|
|
31
34
|
this.focusService = focusService;
|
|
32
35
|
this.navigationService = navigationService;
|
|
33
36
|
this.wrapper = wrapperRef.nativeElement;
|
|
@@ -11,7 +11,7 @@ exports.packageMetadata = {
|
|
|
11
11
|
name: '@progress/kendo-angular-buttons',
|
|
12
12
|
productName: 'Kendo UI for Angular',
|
|
13
13
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
14
|
-
publishDate:
|
|
14
|
+
publishDate: 1642530954,
|
|
15
15
|
version: '',
|
|
16
16
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
17
17
|
};
|