@progress/kendo-angular-buttons 7.0.0-dev.202201101733 → 7.0.0-dev.202201121347

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.
Files changed (31) hide show
  1. package/dist/cdn/js/kendo-angular-buttons.js +2 -2
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/button/button.directive.js +0 -3
  4. package/dist/es/buttongroup/buttongroup.component.js +10 -7
  5. package/dist/es/chip/chip-list.component.js +3 -0
  6. package/dist/es/dropdownbutton/dropdownbutton.component.js +26 -14
  7. package/dist/es/listbutton/list-button.js +3 -0
  8. package/dist/es/package-metadata.js +1 -1
  9. package/dist/es/splitbutton/splitbutton.component.js +26 -14
  10. package/dist/es2015/button/button.directive.js +0 -3
  11. package/dist/es2015/buttongroup/buttongroup.component.js +10 -7
  12. package/dist/es2015/chip/chip-list.component.js +3 -0
  13. package/dist/es2015/common/models/fillmode.d.ts +1 -1
  14. package/dist/es2015/dropdownbutton/dropdownbutton.component.d.ts +1 -0
  15. package/dist/es2015/dropdownbutton/dropdownbutton.component.js +22 -14
  16. package/dist/es2015/index.metadata.json +1 -1
  17. package/dist/es2015/listbutton/list-button.js +3 -0
  18. package/dist/es2015/package-metadata.js +1 -1
  19. package/dist/es2015/splitbutton/splitbutton.component.d.ts +6 -5
  20. package/dist/es2015/splitbutton/splitbutton.component.js +22 -14
  21. package/dist/fesm2015/index.js +55 -39
  22. package/dist/fesm5/index.js +63 -39
  23. package/dist/npm/button/button.directive.js +0 -3
  24. package/dist/npm/buttongroup/buttongroup.component.js +10 -7
  25. package/dist/npm/chip/chip-list.component.js +3 -0
  26. package/dist/npm/dropdownbutton/dropdownbutton.component.js +26 -14
  27. package/dist/npm/listbutton/list-button.js +3 -0
  28. package/dist/npm/package-metadata.js +1 -1
  29. package/dist/npm/splitbutton/splitbutton.component.js +26 -14
  30. package/dist/systemjs/kendo-angular-buttons.js +1 -1
  31. package/package.json +1 -1
@@ -9,6 +9,8 @@ import { KeyEvents } from './../navigation/key-events';
9
9
  import { NavigationAction } from './../navigation/navigation-action';
10
10
  import { isDocumentAvailable, guid, Keys } from '@progress/kendo-angular-common';
11
11
  import { isPresent } from './../util';
12
+ import { validatePackage } from '@progress/kendo-licensing';
13
+ import { packageMetadata } from '../package-metadata';
12
14
  /**
13
15
  * @hidden
14
16
  */
@@ -25,6 +27,7 @@ export class ListButton {
25
27
  this._popupSettings = { animate: true, popupClass: '' };
26
28
  this.listId = guid();
27
29
  this._isFocused = false;
30
+ validatePackage(packageMetadata);
28
31
  this.focusService = focusService;
29
32
  this.navigationService = navigationService;
30
33
  this.wrapper = wrapperRef.nativeElement;
@@ -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: 1641835943,
12
+ publishDate: 1641995114,
13
13
  version: '',
14
14
  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'
15
15
  };
@@ -254,7 +254,12 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
254
254
  arrowButton: ElementRef<HTMLButtonElement>;
255
255
  popupTemplate: TemplateRef<any>;
256
256
  containerRef: ViewContainerRef;
257
+ /**
258
+ * @hidden
259
+ */
260
+ activeArrow: boolean;
257
261
  popupRef: PopupRef;
262
+ listId: string;
258
263
  /**
259
264
  * @hidden
260
265
  */
@@ -262,7 +267,6 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
262
267
  * @hidden
263
268
  */
264
269
  openState: boolean;
265
- listId: string;
266
270
  /**
267
271
  * @hidden
268
272
  */
@@ -271,13 +275,10 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
271
275
  * @hidden
272
276
  */
273
277
  readonly componentTabIndex: number;
274
- /**
275
- * @hidden
276
- */
277
- activeArrow: boolean;
278
278
  private buttonText;
279
279
  private lockFocus;
280
280
  private _rounded;
281
+ private _fillMode;
281
282
  isFocused: boolean;
282
283
  readonly widgetClasses: boolean;
283
284
  readonly dir: string;
@@ -107,17 +107,6 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
107
107
  * * `null`
108
108
  */
109
109
  this.size = 'medium';
110
- /**
111
- * The fillMode property specifies the background and border styles of the SplitButton
112
- * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
113
- *
114
- * The available values are:
115
- * * `solid` (default)
116
- * * `flat`
117
- * * `outline`
118
- * * `link`
119
- */
120
- this.fillMode = 'solid';
121
110
  /**
122
111
  * The SplitButton allows you to specify predefined theme colors.
123
112
  * The theme color will be applied as a background and border color while also amending the text color accordingly
@@ -214,14 +203,15 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
214
203
  * This event is preventable. If you cancel the event, the popup will remain open.
215
204
  */
216
205
  this.close = new EventEmitter();
217
- this.listId = guid();
218
206
  /**
219
207
  * @hidden
220
208
  */
221
209
  this.activeArrow = false;
210
+ this.listId = guid();
222
211
  this.buttonText = '';
223
212
  this.lockFocus = false;
224
213
  this._rounded = 'medium';
214
+ this._fillMode = "solid";
225
215
  this._itemClick = this.itemClick;
226
216
  this._blur = this.onBlur;
227
217
  }
@@ -243,6 +233,23 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
243
233
  get rounded() {
244
234
  return this._rounded;
245
235
  }
236
+ /**
237
+ * The fillMode property specifies the background and border styles of the SplitButton
238
+ * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
239
+ *
240
+ * The available values are:
241
+ * * `solid` (default)
242
+ * * `flat`
243
+ * * `outline`
244
+ * * `link`
245
+ */
246
+ set fillMode(fillMode) {
247
+ // Temporary workaround for missing 'clear' styles
248
+ this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
249
+ }
250
+ get fillMode() {
251
+ return this._fillMode;
252
+ }
246
253
  /**
247
254
  * When set to `true`, disables a SplitButton item
248
255
  * ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
@@ -604,8 +611,9 @@ tslib_1.__decorate([
604
611
  ], SplitButtonComponent.prototype, "rounded", null);
605
612
  tslib_1.__decorate([
606
613
  Input(),
607
- tslib_1.__metadata("design:type", String)
608
- ], SplitButtonComponent.prototype, "fillMode", void 0);
614
+ tslib_1.__metadata("design:type", String),
615
+ tslib_1.__metadata("design:paramtypes", [String])
616
+ ], SplitButtonComponent.prototype, "fillMode", null);
609
617
  tslib_1.__decorate([
610
618
  Input(),
611
619
  tslib_1.__metadata("design:type", String)
@@ -39,7 +39,7 @@ const packageMetadata = {
39
39
  name: '@progress/kendo-angular-buttons',
40
40
  productName: 'Kendo UI for Angular',
41
41
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
42
- publishDate: 1641835943,
42
+ publishDate: 1641995114,
43
43
  version: '',
44
44
  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'
45
45
  };
@@ -411,9 +411,6 @@ let ButtonDirective = class ButtonDirective {
411
411
  case 'default':
412
412
  this.fillMode = 'solid';
413
413
  break;
414
- case 'clear':
415
- this.fillMode = 'flat';
416
- break;
417
414
  default:
418
415
  this.fillMode = value;
419
416
  break;
@@ -848,6 +845,7 @@ let ButtonGroupComponent = class ButtonGroupComponent {
848
845
  this.navigate = new EventEmitter();
849
846
  this._tabIndex = 0;
850
847
  this.currentTabIndex = 0;
848
+ validatePackage(packageMetadata);
851
849
  this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr');
852
850
  }
853
851
  /**
@@ -926,7 +924,7 @@ let ButtonGroupComponent = class ButtonGroupComponent {
926
924
  if (button.togglable) {
927
925
  button.setSelected(newSelectionValue);
928
926
  }
929
- button.setAttribute(tabindex, "0");
927
+ button.setAttribute(tabindex, '0');
930
928
  });
931
929
  }
932
930
  ngOnChanges(change) {
@@ -941,10 +939,10 @@ let ButtonGroupComponent = class ButtonGroupComponent {
941
939
  ngAfterContentInit() {
942
940
  this.buttons.forEach((button) => {
943
941
  if (button.selected) {
944
- button.setAttribute(tabindex, "0");
942
+ button.setAttribute(tabindex, '0');
945
943
  }
946
944
  else {
947
- button.setAttribute(tabindex, "-1");
945
+ button.setAttribute(tabindex, '-1');
948
946
  }
949
947
  });
950
948
  }
@@ -988,24 +986,24 @@ let ButtonGroupComponent = class ButtonGroupComponent {
988
986
  deactivate(buttons) {
989
987
  buttons.forEach((button) => {
990
988
  button.setSelected(false);
991
- button.setAttribute(tabindex, "-1");
989
+ button.setAttribute(tabindex, '-1');
992
990
  });
993
991
  }
994
992
  activate(buttons) {
995
993
  buttons.forEach((button) => {
996
994
  button.setSelected(true);
997
- button.setAttribute(tabindex, "0");
995
+ button.setAttribute(tabindex, '0');
998
996
  button.focus();
999
997
  });
1000
998
  }
1001
999
  defocus(buttons) {
1002
1000
  buttons.forEach((button) => {
1003
- button.setAttribute(tabindex, "-1");
1001
+ button.setAttribute(tabindex, '-1');
1004
1002
  });
1005
1003
  }
1006
1004
  focus(buttons) {
1007
1005
  buttons.forEach((button) => {
1008
- button.setAttribute(tabindex, "0");
1006
+ button.setAttribute(tabindex, '0');
1009
1007
  button.focus();
1010
1008
  });
1011
1009
  }
@@ -1529,6 +1527,7 @@ class ListButton {
1529
1527
  this._popupSettings = { animate: true, popupClass: '' };
1530
1528
  this.listId = guid();
1531
1529
  this._isFocused = false;
1530
+ validatePackage(packageMetadata);
1532
1531
  this.focusService = focusService;
1533
1532
  this.navigationService = navigationService;
1534
1533
  this.wrapper = wrapperRef.nativeElement;
@@ -1920,17 +1919,6 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
1920
1919
  * * `null`
1921
1920
  */
1922
1921
  this.size = 'medium';
1923
- /**
1924
- * The fillMode property specifies the background and border styles of the SplitButton
1925
- * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
1926
- *
1927
- * The available values are:
1928
- * * `solid` (default)
1929
- * * `flat`
1930
- * * `outline`
1931
- * * `link`
1932
- */
1933
- this.fillMode = 'solid';
1934
1922
  /**
1935
1923
  * The SplitButton allows you to specify predefined theme colors.
1936
1924
  * The theme color will be applied as a background and border color while also amending the text color accordingly
@@ -2027,14 +2015,15 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
2027
2015
  * This event is preventable. If you cancel the event, the popup will remain open.
2028
2016
  */
2029
2017
  this.close = new EventEmitter();
2030
- this.listId = guid();
2031
2018
  /**
2032
2019
  * @hidden
2033
2020
  */
2034
2021
  this.activeArrow = false;
2022
+ this.listId = guid();
2035
2023
  this.buttonText = '';
2036
2024
  this.lockFocus = false;
2037
2025
  this._rounded = 'medium';
2026
+ this._fillMode = "solid";
2038
2027
  this._itemClick = this.itemClick;
2039
2028
  this._blur = this.onBlur;
2040
2029
  }
@@ -2056,6 +2045,23 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
2056
2045
  get rounded() {
2057
2046
  return this._rounded;
2058
2047
  }
2048
+ /**
2049
+ * The fillMode property specifies the background and border styles of the SplitButton
2050
+ * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
2051
+ *
2052
+ * The available values are:
2053
+ * * `solid` (default)
2054
+ * * `flat`
2055
+ * * `outline`
2056
+ * * `link`
2057
+ */
2058
+ set fillMode(fillMode) {
2059
+ // Temporary workaround for missing 'clear' styles
2060
+ this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
2061
+ }
2062
+ get fillMode() {
2063
+ return this._fillMode;
2064
+ }
2059
2065
  /**
2060
2066
  * When set to `true`, disables a SplitButton item
2061
2067
  * ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
@@ -2417,8 +2423,9 @@ __decorate([
2417
2423
  ], SplitButtonComponent.prototype, "rounded", null);
2418
2424
  __decorate([
2419
2425
  Input(),
2420
- __metadata("design:type", String)
2421
- ], SplitButtonComponent.prototype, "fillMode", void 0);
2426
+ __metadata("design:type", String),
2427
+ __metadata("design:paramtypes", [String])
2428
+ ], SplitButtonComponent.prototype, "fillMode", null);
2422
2429
  __decorate([
2423
2430
  Input(),
2424
2431
  __metadata("design:type", String)
@@ -2797,18 +2804,6 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2797
2804
  * * `null`
2798
2805
  */
2799
2806
  this.rounded = 'medium';
2800
- /**
2801
- * The fillMode property specifies the background and border styles of the DropDownButton
2802
- * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
2803
- *
2804
- * The available values are:
2805
- * * `solid` (default)
2806
- * * `flat`
2807
- * * `outline`
2808
- * * `link`
2809
- * * `null`
2810
- */
2811
- this.fillMode = 'solid';
2812
2807
  /**
2813
2808
  * The DropDownButton allows you to specify predefined theme colors.
2814
2809
  * The theme color will be applied as a background and border color while also amending the text color accordingly
@@ -2856,6 +2851,7 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2856
2851
  */
2857
2852
  this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
2858
2853
  this.listId = guid();
2854
+ this._fillMode = 'solid';
2859
2855
  this._itemClick = this.itemClick;
2860
2856
  this._blur = this.onBlur;
2861
2857
  }
@@ -2897,6 +2893,24 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2897
2893
  get data() {
2898
2894
  return this._data;
2899
2895
  }
2896
+ /**
2897
+ * The fillMode property specifies the background and border styles of the DropDownButton
2898
+ * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
2899
+ *
2900
+ * The available values are:
2901
+ * * `solid` (default)
2902
+ * * `flat`
2903
+ * * `outline`
2904
+ * * `link`
2905
+ * * `null`
2906
+ */
2907
+ set fillMode(fillMode) {
2908
+ // Temporary workaround for missing 'clear' styles
2909
+ this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
2910
+ }
2911
+ get fillMode() {
2912
+ return this._fillMode;
2913
+ }
2900
2914
  /**
2901
2915
  * @hidden
2902
2916
  */
@@ -3202,8 +3216,9 @@ __decorate([
3202
3216
  ], DropDownButtonComponent.prototype, "rounded", void 0);
3203
3217
  __decorate([
3204
3218
  Input(),
3205
- __metadata("design:type", String)
3206
- ], DropDownButtonComponent.prototype, "fillMode", void 0);
3219
+ __metadata("design:type", String),
3220
+ __metadata("design:paramtypes", [String])
3221
+ ], DropDownButtonComponent.prototype, "fillMode", null);
3207
3222
  __decorate([
3208
3223
  Input(),
3209
3224
  __metadata("design:type", String)
@@ -3833,6 +3848,7 @@ let ChipListComponent = class ChipListComponent {
3833
3848
  this.remove = new EventEmitter();
3834
3849
  this.role = 'listbox';
3835
3850
  this._size = 'medium';
3851
+ validatePackage(packageMetadata);
3836
3852
  this.direction = localizationService.rtl ? 'rtl' : 'ltr';
3837
3853
  }
3838
3854
  /**
@@ -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: 1641835943,
40
+ publishDate: 1641995114,
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 = 'flat';
503
- break;
504
501
  default:
505
502
  this.fillMode = value;
506
503
  break;
@@ -951,6 +948,7 @@ var ButtonGroupComponent = /** @class */ (function () {
951
948
  this.navigate = new EventEmitter();
952
949
  this._tabIndex = 0;
953
950
  this.currentTabIndex = 0;
951
+ validatePackage(packageMetadata);
954
952
  this.localizationChangeSubscription = localization.changes.subscribe(function (_a) {
955
953
  var rtl = _a.rtl;
956
954
  return _this.direction = rtl ? 'rtl' : 'ltr';
@@ -1069,7 +1067,7 @@ var ButtonGroupComponent = /** @class */ (function () {
1069
1067
  if (button.togglable) {
1070
1068
  button.setSelected(newSelectionValue);
1071
1069
  }
1072
- button.setAttribute(tabindex, "0");
1070
+ button.setAttribute(tabindex, '0');
1073
1071
  });
1074
1072
  };
1075
1073
  ButtonGroupComponent.prototype.ngOnChanges = function (change) {
@@ -1085,10 +1083,10 @@ var ButtonGroupComponent = /** @class */ (function () {
1085
1083
  ButtonGroupComponent.prototype.ngAfterContentInit = function () {
1086
1084
  this.buttons.forEach(function (button) {
1087
1085
  if (button.selected) {
1088
- button.setAttribute(tabindex, "0");
1086
+ button.setAttribute(tabindex, '0');
1089
1087
  }
1090
1088
  else {
1091
- button.setAttribute(tabindex, "-1");
1089
+ button.setAttribute(tabindex, '-1');
1092
1090
  }
1093
1091
  });
1094
1092
  };
@@ -1132,24 +1130,24 @@ var ButtonGroupComponent = /** @class */ (function () {
1132
1130
  ButtonGroupComponent.prototype.deactivate = function (buttons) {
1133
1131
  buttons.forEach(function (button) {
1134
1132
  button.setSelected(false);
1135
- button.setAttribute(tabindex, "-1");
1133
+ button.setAttribute(tabindex, '-1');
1136
1134
  });
1137
1135
  };
1138
1136
  ButtonGroupComponent.prototype.activate = function (buttons) {
1139
1137
  buttons.forEach(function (button) {
1140
1138
  button.setSelected(true);
1141
- button.setAttribute(tabindex, "0");
1139
+ button.setAttribute(tabindex, '0');
1142
1140
  button.focus();
1143
1141
  });
1144
1142
  };
1145
1143
  ButtonGroupComponent.prototype.defocus = function (buttons) {
1146
1144
  buttons.forEach(function (button) {
1147
- button.setAttribute(tabindex, "-1");
1145
+ button.setAttribute(tabindex, '-1');
1148
1146
  });
1149
1147
  };
1150
1148
  ButtonGroupComponent.prototype.focus = function (buttons) {
1151
1149
  buttons.forEach(function (button) {
1152
- button.setAttribute(tabindex, "0");
1150
+ button.setAttribute(tabindex, '0');
1153
1151
  button.focus();
1154
1152
  });
1155
1153
  };
@@ -1664,6 +1662,7 @@ var ListButton = /** @class */ (function () {
1664
1662
  this._popupSettings = { animate: true, popupClass: '' };
1665
1663
  this.listId = guid();
1666
1664
  this._isFocused = false;
1665
+ validatePackage(packageMetadata);
1667
1666
  this.focusService = focusService;
1668
1667
  this.navigationService = navigationService;
1669
1668
  this.wrapper = wrapperRef.nativeElement;
@@ -2075,17 +2074,6 @@ var SplitButtonComponent = /** @class */ (function (_super) {
2075
2074
  * * `null`
2076
2075
  */
2077
2076
  _this.size = 'medium';
2078
- /**
2079
- * The fillMode property specifies the background and border styles of the SplitButton
2080
- * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
2081
- *
2082
- * The available values are:
2083
- * * `solid` (default)
2084
- * * `flat`
2085
- * * `outline`
2086
- * * `link`
2087
- */
2088
- _this.fillMode = 'solid';
2089
2077
  /**
2090
2078
  * The SplitButton allows you to specify predefined theme colors.
2091
2079
  * The theme color will be applied as a background and border color while also amending the text color accordingly
@@ -2182,14 +2170,15 @@ var SplitButtonComponent = /** @class */ (function (_super) {
2182
2170
  * This event is preventable. If you cancel the event, the popup will remain open.
2183
2171
  */
2184
2172
  _this.close = new EventEmitter();
2185
- _this.listId = guid();
2186
2173
  /**
2187
2174
  * @hidden
2188
2175
  */
2189
2176
  _this.activeArrow = false;
2177
+ _this.listId = guid();
2190
2178
  _this.buttonText = '';
2191
2179
  _this.lockFocus = false;
2192
2180
  _this._rounded = 'medium';
2181
+ _this._fillMode = "solid";
2193
2182
  _this._itemClick = _this.itemClick;
2194
2183
  _this._blur = _this.onBlur;
2195
2184
  return _this;
@@ -2216,6 +2205,27 @@ var SplitButtonComponent = /** @class */ (function (_super) {
2216
2205
  enumerable: true,
2217
2206
  configurable: true
2218
2207
  });
2208
+ Object.defineProperty(SplitButtonComponent.prototype, "fillMode", {
2209
+ get: function () {
2210
+ return this._fillMode;
2211
+ },
2212
+ /**
2213
+ * The fillMode property specifies the background and border styles of the SplitButton
2214
+ * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
2215
+ *
2216
+ * The available values are:
2217
+ * * `solid` (default)
2218
+ * * `flat`
2219
+ * * `outline`
2220
+ * * `link`
2221
+ */
2222
+ set: function (fillMode) {
2223
+ // Temporary workaround for missing 'clear' styles
2224
+ this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
2225
+ },
2226
+ enumerable: true,
2227
+ configurable: true
2228
+ });
2219
2229
  Object.defineProperty(SplitButtonComponent.prototype, "disabled", {
2220
2230
  get: function () {
2221
2231
  return this._disabled;
@@ -2635,8 +2645,9 @@ var SplitButtonComponent = /** @class */ (function (_super) {
2635
2645
  ], SplitButtonComponent.prototype, "rounded", null);
2636
2646
  __decorate([
2637
2647
  Input(),
2638
- __metadata("design:type", String)
2639
- ], SplitButtonComponent.prototype, "fillMode", void 0);
2648
+ __metadata("design:type", String),
2649
+ __metadata("design:paramtypes", [String])
2650
+ ], SplitButtonComponent.prototype, "fillMode", null);
2640
2651
  __decorate([
2641
2652
  Input(),
2642
2653
  __metadata("design:type", String)
@@ -2969,18 +2980,6 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
2969
2980
  * * `null`
2970
2981
  */
2971
2982
  _this.rounded = 'medium';
2972
- /**
2973
- * The fillMode property specifies the background and border styles of the DropDownButton
2974
- * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
2975
- *
2976
- * The available values are:
2977
- * * `solid` (default)
2978
- * * `flat`
2979
- * * `outline`
2980
- * * `link`
2981
- * * `null`
2982
- */
2983
- _this.fillMode = 'solid';
2984
2983
  /**
2985
2984
  * The DropDownButton allows you to specify predefined theme colors.
2986
2985
  * The theme color will be applied as a background and border color while also amending the text color accordingly
@@ -3028,6 +3027,7 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
3028
3027
  */
3029
3028
  _this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
3030
3029
  _this.listId = guid();
3030
+ _this._fillMode = 'solid';
3031
3031
  _this._itemClick = _this.itemClick;
3032
3032
  _this._blur = _this.onBlur;
3033
3033
  return _this;
@@ -3082,6 +3082,28 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
3082
3082
  enumerable: true,
3083
3083
  configurable: true
3084
3084
  });
3085
+ Object.defineProperty(DropDownButtonComponent.prototype, "fillMode", {
3086
+ get: function () {
3087
+ return this._fillMode;
3088
+ },
3089
+ /**
3090
+ * The fillMode property specifies the background and border styles of the DropDownButton
3091
+ * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
3092
+ *
3093
+ * The available values are:
3094
+ * * `solid` (default)
3095
+ * * `flat`
3096
+ * * `outline`
3097
+ * * `link`
3098
+ * * `null`
3099
+ */
3100
+ set: function (fillMode) {
3101
+ // Temporary workaround for missing 'clear' styles
3102
+ this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
3103
+ },
3104
+ enumerable: true,
3105
+ configurable: true
3106
+ });
3085
3107
  Object.defineProperty(DropDownButtonComponent.prototype, "openState", {
3086
3108
  /**
3087
3109
  * @hidden
@@ -3428,8 +3450,9 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
3428
3450
  ], DropDownButtonComponent.prototype, "rounded", void 0);
3429
3451
  __decorate([
3430
3452
  Input(),
3431
- __metadata("design:type", String)
3432
- ], DropDownButtonComponent.prototype, "fillMode", void 0);
3453
+ __metadata("design:type", String),
3454
+ __metadata("design:paramtypes", [String])
3455
+ ], DropDownButtonComponent.prototype, "fillMode", null);
3433
3456
  __decorate([
3434
3457
  Input(),
3435
3458
  __metadata("design:type", String)
@@ -4039,6 +4062,7 @@ var ChipListComponent = /** @class */ (function () {
4039
4062
  this.remove = new EventEmitter();
4040
4063
  this.role = 'listbox';
4041
4064
  this._size = 'medium';
4065
+ validatePackage(packageMetadata);
4042
4066
  this.direction = localizationService.rtl ? 'rtl' : 'ltr';
4043
4067
  }
4044
4068
  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 = 'flat';
379
- break;
380
377
  default:
381
378
  this.fillMode = value;
382
379
  break;
@@ -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, "0");
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, "0");
174
+ button.setAttribute(tabindex, '0');
172
175
  }
173
176
  else {
174
- button.setAttribute(tabindex, "-1");
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, "-1");
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, "0");
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, "-1");
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, "0");
238
+ button.setAttribute(tabindex, '0');
236
239
  button.focus();
237
240
  });
238
241
  };