@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
|
@@ -71,11 +71,12 @@ var NAVIGATION_SETTINGS_PROVIDER = {
|
|
|
71
71
|
*/
|
|
72
72
|
var SplitButtonComponent = /** @class */ (function (_super) {
|
|
73
73
|
tslib_1.__extends(SplitButtonComponent, _super);
|
|
74
|
-
function SplitButtonComponent(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr) {
|
|
74
|
+
function SplitButtonComponent(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr, renderer) {
|
|
75
75
|
var _this = _super.call(this, focusService, navigationService, wrapperRef, zone, localization, cdr) || this;
|
|
76
76
|
_this.popupService = popupService;
|
|
77
77
|
_this.elRef = elRef;
|
|
78
78
|
_this.localization = localization;
|
|
79
|
+
_this.renderer = renderer;
|
|
79
80
|
/**
|
|
80
81
|
* Sets the text of the SplitButton.
|
|
81
82
|
*/
|
|
@@ -110,29 +111,6 @@ var SplitButtonComponent = /** @class */ (function (_super) {
|
|
|
110
111
|
* * `null`
|
|
111
112
|
*/
|
|
112
113
|
_this.size = 'medium';
|
|
113
|
-
/**
|
|
114
|
-
* The rounded property specifies the border radius of the SplitButton
|
|
115
|
-
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-rounded)).
|
|
116
|
-
*
|
|
117
|
-
* The possible values are:
|
|
118
|
-
* * `'small'`
|
|
119
|
-
* * `'medium'` (default)
|
|
120
|
-
* * `'large'`
|
|
121
|
-
* * `'full'`
|
|
122
|
-
* * `null`
|
|
123
|
-
*/
|
|
124
|
-
_this.rounded = 'medium';
|
|
125
|
-
/**
|
|
126
|
-
* The fillMode property specifies the background and border styles of the SplitButton
|
|
127
|
-
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
|
|
128
|
-
*
|
|
129
|
-
* The available values are:
|
|
130
|
-
* * `solid` (default)
|
|
131
|
-
* * `flat`
|
|
132
|
-
* * `outline`
|
|
133
|
-
* * `link`
|
|
134
|
-
*/
|
|
135
|
-
_this.fillMode = 'solid';
|
|
136
114
|
/**
|
|
137
115
|
* The SplitButton allows you to specify predefined theme colors.
|
|
138
116
|
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
@@ -229,17 +207,62 @@ var SplitButtonComponent = /** @class */ (function (_super) {
|
|
|
229
207
|
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
230
208
|
*/
|
|
231
209
|
_this.close = new core_1.EventEmitter();
|
|
232
|
-
_this.listId = kendo_angular_common_1.guid();
|
|
233
210
|
/**
|
|
234
211
|
* @hidden
|
|
235
212
|
*/
|
|
236
213
|
_this.activeArrow = false;
|
|
214
|
+
_this.listId = kendo_angular_common_1.guid();
|
|
237
215
|
_this.buttonText = '';
|
|
238
216
|
_this.lockFocus = false;
|
|
217
|
+
_this._rounded = 'medium';
|
|
218
|
+
_this._fillMode = "solid";
|
|
239
219
|
_this._itemClick = _this.itemClick;
|
|
240
220
|
_this._blur = _this.onBlur;
|
|
241
221
|
return _this;
|
|
242
222
|
}
|
|
223
|
+
Object.defineProperty(SplitButtonComponent.prototype, "rounded", {
|
|
224
|
+
get: function () {
|
|
225
|
+
return this._rounded;
|
|
226
|
+
},
|
|
227
|
+
/**
|
|
228
|
+
* The rounded property specifies the border radius of the SplitButton
|
|
229
|
+
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-rounded)).
|
|
230
|
+
*
|
|
231
|
+
* The possible values are:
|
|
232
|
+
* * `'small'`
|
|
233
|
+
* * `'medium'` (default)
|
|
234
|
+
* * `'large'`
|
|
235
|
+
* * `'full'`
|
|
236
|
+
* * `null`
|
|
237
|
+
*/
|
|
238
|
+
set: function (rounded) {
|
|
239
|
+
this.handleClasses(rounded, 'rounded');
|
|
240
|
+
this._rounded = rounded;
|
|
241
|
+
},
|
|
242
|
+
enumerable: true,
|
|
243
|
+
configurable: true
|
|
244
|
+
});
|
|
245
|
+
Object.defineProperty(SplitButtonComponent.prototype, "fillMode", {
|
|
246
|
+
get: function () {
|
|
247
|
+
return this._fillMode;
|
|
248
|
+
},
|
|
249
|
+
/**
|
|
250
|
+
* The fillMode property specifies the background and border styles of the SplitButton
|
|
251
|
+
* ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
|
|
252
|
+
*
|
|
253
|
+
* The available values are:
|
|
254
|
+
* * `solid` (default)
|
|
255
|
+
* * `flat`
|
|
256
|
+
* * `outline`
|
|
257
|
+
* * `link`
|
|
258
|
+
*/
|
|
259
|
+
set: function (fillMode) {
|
|
260
|
+
// Temporary workaround for missing 'clear' styles
|
|
261
|
+
this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
|
|
262
|
+
},
|
|
263
|
+
enumerable: true,
|
|
264
|
+
configurable: true
|
|
265
|
+
});
|
|
243
266
|
Object.defineProperty(SplitButtonComponent.prototype, "disabled", {
|
|
244
267
|
get: function () {
|
|
245
268
|
return this._disabled;
|
|
@@ -451,6 +474,7 @@ var SplitButtonComponent = /** @class */ (function (_super) {
|
|
|
451
474
|
*/
|
|
452
475
|
SplitButtonComponent.prototype.ngAfterViewInit = function () {
|
|
453
476
|
this.updateButtonText();
|
|
477
|
+
this.handleClasses(this.rounded, 'rounded');
|
|
454
478
|
};
|
|
455
479
|
/**
|
|
456
480
|
* @hidden
|
|
@@ -617,6 +641,16 @@ var SplitButtonComponent = /** @class */ (function (_super) {
|
|
|
617
641
|
this.popupRef = null;
|
|
618
642
|
}
|
|
619
643
|
};
|
|
644
|
+
SplitButtonComponent.prototype.handleClasses = function (value, input) {
|
|
645
|
+
var elem = this.wrapperRef.nativeElement;
|
|
646
|
+
var classes = util_2.getStylingClasses('button', input, this[input], value);
|
|
647
|
+
if (classes.toRemove) {
|
|
648
|
+
this.renderer.removeClass(elem, classes.toRemove);
|
|
649
|
+
}
|
|
650
|
+
if (classes.toAdd) {
|
|
651
|
+
this.renderer.addClass(elem, classes.toAdd);
|
|
652
|
+
}
|
|
653
|
+
};
|
|
620
654
|
tslib_1.__decorate([
|
|
621
655
|
core_1.Input(),
|
|
622
656
|
tslib_1.__metadata("design:type", String)
|
|
@@ -643,12 +677,14 @@ var SplitButtonComponent = /** @class */ (function (_super) {
|
|
|
643
677
|
], SplitButtonComponent.prototype, "size", void 0);
|
|
644
678
|
tslib_1.__decorate([
|
|
645
679
|
core_1.Input(),
|
|
646
|
-
tslib_1.__metadata("design:type", String)
|
|
647
|
-
|
|
680
|
+
tslib_1.__metadata("design:type", String),
|
|
681
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
682
|
+
], SplitButtonComponent.prototype, "rounded", null);
|
|
648
683
|
tslib_1.__decorate([
|
|
649
684
|
core_1.Input(),
|
|
650
|
-
tslib_1.__metadata("design:type", String)
|
|
651
|
-
|
|
685
|
+
tslib_1.__metadata("design:type", String),
|
|
686
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
687
|
+
], SplitButtonComponent.prototype, "fillMode", null);
|
|
652
688
|
tslib_1.__decorate([
|
|
653
689
|
core_1.Input(),
|
|
654
690
|
tslib_1.__metadata("design:type", String)
|
|
@@ -789,7 +825,8 @@ var SplitButtonComponent = /** @class */ (function (_super) {
|
|
|
789
825
|
kendo_angular_popup_1.PopupService,
|
|
790
826
|
core_1.ElementRef,
|
|
791
827
|
kendo_angular_l10n_1.LocalizationService,
|
|
792
|
-
core_1.ChangeDetectorRef
|
|
828
|
+
core_1.ChangeDetectorRef,
|
|
829
|
+
core_1.Renderer2])
|
|
793
830
|
], SplitButtonComponent);
|
|
794
831
|
return SplitButtonComponent;
|
|
795
832
|
}(list_button_1.ListButton));
|