@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
@@ -10,6 +10,8 @@ import { isChanged, Keys } from '@progress/kendo-angular-common';
10
10
  import { KendoButtonService } from '../button/button.service';
11
11
  import { isPresent } from '../util';
12
12
  import { PreventableEvent } from '../preventable-event';
13
+ import { packageMetadata } from '../package-metadata';
14
+ import { validatePackage } from '@progress/kendo-licensing';
13
15
  /**
14
16
  * @hidden
15
17
  */
@@ -32,6 +34,7 @@ var ButtonGroupComponent = /** @class */ (function () {
32
34
  this.navigate = new EventEmitter();
33
35
  this._tabIndex = 0;
34
36
  this.currentTabIndex = 0;
37
+ validatePackage(packageMetadata);
35
38
  this.localizationChangeSubscription = localization.changes.subscribe(function (_a) {
36
39
  var rtl = _a.rtl;
37
40
  return _this.direction = rtl ? 'rtl' : 'ltr';
@@ -150,7 +153,7 @@ var ButtonGroupComponent = /** @class */ (function () {
150
153
  if (button.togglable) {
151
154
  button.setSelected(newSelectionValue);
152
155
  }
153
- button.setAttribute(tabindex, "0");
156
+ button.setAttribute(tabindex, '0');
154
157
  });
155
158
  };
156
159
  ButtonGroupComponent.prototype.ngOnChanges = function (change) {
@@ -166,10 +169,10 @@ var ButtonGroupComponent = /** @class */ (function () {
166
169
  ButtonGroupComponent.prototype.ngAfterContentInit = function () {
167
170
  this.buttons.forEach(function (button) {
168
171
  if (button.selected) {
169
- button.setAttribute(tabindex, "0");
172
+ button.setAttribute(tabindex, '0');
170
173
  }
171
174
  else {
172
- button.setAttribute(tabindex, "-1");
175
+ button.setAttribute(tabindex, '-1');
173
176
  }
174
177
  });
175
178
  };
@@ -213,24 +216,24 @@ var ButtonGroupComponent = /** @class */ (function () {
213
216
  ButtonGroupComponent.prototype.deactivate = function (buttons) {
214
217
  buttons.forEach(function (button) {
215
218
  button.setSelected(false);
216
- button.setAttribute(tabindex, "-1");
219
+ button.setAttribute(tabindex, '-1');
217
220
  });
218
221
  };
219
222
  ButtonGroupComponent.prototype.activate = function (buttons) {
220
223
  buttons.forEach(function (button) {
221
224
  button.setSelected(true);
222
- button.setAttribute(tabindex, "0");
225
+ button.setAttribute(tabindex, '0');
223
226
  button.focus();
224
227
  });
225
228
  };
226
229
  ButtonGroupComponent.prototype.defocus = function (buttons) {
227
230
  buttons.forEach(function (button) {
228
- button.setAttribute(tabindex, "-1");
231
+ button.setAttribute(tabindex, '-1');
229
232
  });
230
233
  };
231
234
  ButtonGroupComponent.prototype.focus = function (buttons) {
232
235
  buttons.forEach(function (button) {
233
- button.setAttribute(tabindex, "0");
236
+ button.setAttribute(tabindex, '0');
234
237
  button.focus();
235
238
  });
236
239
  };
@@ -7,6 +7,8 @@ import { Component, Input, HostBinding, ContentChildren, QueryList, EventEmitter
7
7
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
8
8
  import { ChipComponent } from './chip.component';
9
9
  import { closest, getStylingClasses } from '../util';
10
+ import { validatePackage } from '@progress/kendo-licensing';
11
+ import { packageMetadata } from '../package-metadata';
10
12
  var ChipListComponent = /** @class */ (function () {
11
13
  function ChipListComponent(localizationService, renderer, element) {
12
14
  this.localizationService = localizationService;
@@ -32,6 +34,7 @@ var ChipListComponent = /** @class */ (function () {
32
34
  this.remove = new EventEmitter();
33
35
  this.role = 'listbox';
34
36
  this._size = 'medium';
37
+ validatePackage(packageMetadata);
35
38
  this.direction = localizationService.rtl ? 'rtl' : 'ltr';
36
39
  }
37
40
  Object.defineProperty(ChipListComponent.prototype, "size", {
@@ -104,18 +104,6 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
104
104
  * * `null`
105
105
  */
106
106
  _this.rounded = 'medium';
107
- /**
108
- * The fillMode property specifies the background and border styles of the DropDownButton
109
- * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
110
- *
111
- * The available values are:
112
- * * `solid` (default)
113
- * * `flat`
114
- * * `outline`
115
- * * `link`
116
- * * `null`
117
- */
118
- _this.fillMode = 'solid';
119
107
  /**
120
108
  * The DropDownButton allows you to specify predefined theme colors.
121
109
  * The theme color will be applied as a background and border color while also amending the text color accordingly
@@ -163,6 +151,7 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
163
151
  */
164
152
  _this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
165
153
  _this.listId = guid();
154
+ _this._fillMode = 'solid';
166
155
  _this._itemClick = _this.itemClick;
167
156
  _this._blur = _this.onBlur;
168
157
  return _this;
@@ -217,6 +206,28 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
217
206
  enumerable: true,
218
207
  configurable: true
219
208
  });
209
+ Object.defineProperty(DropDownButtonComponent.prototype, "fillMode", {
210
+ get: function () {
211
+ return this._fillMode;
212
+ },
213
+ /**
214
+ * The fillMode property specifies the background and border styles of the DropDownButton
215
+ * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
216
+ *
217
+ * The available values are:
218
+ * * `solid` (default)
219
+ * * `flat`
220
+ * * `outline`
221
+ * * `link`
222
+ * * `null`
223
+ */
224
+ set: function (fillMode) {
225
+ // Temporary workaround for missing 'clear' styles
226
+ this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
227
+ },
228
+ enumerable: true,
229
+ configurable: true
230
+ });
220
231
  Object.defineProperty(DropDownButtonComponent.prototype, "openState", {
221
232
  /**
222
233
  * @hidden
@@ -563,8 +574,9 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
563
574
  ], DropDownButtonComponent.prototype, "rounded", void 0);
564
575
  tslib_1.__decorate([
565
576
  Input(),
566
- tslib_1.__metadata("design:type", String)
567
- ], DropDownButtonComponent.prototype, "fillMode", void 0);
577
+ tslib_1.__metadata("design:type", String),
578
+ tslib_1.__metadata("design:paramtypes", [String])
579
+ ], DropDownButtonComponent.prototype, "fillMode", null);
568
580
  tslib_1.__decorate([
569
581
  Input(),
570
582
  tslib_1.__metadata("design:type", String)
@@ -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
  */
@@ -26,6 +28,7 @@ var ListButton = /** @class */ (function () {
26
28
  this._popupSettings = { animate: true, popupClass: '' };
27
29
  this.listId = guid();
28
30
  this._isFocused = false;
31
+ validatePackage(packageMetadata);
29
32
  this.focusService = focusService;
30
33
  this.navigationService = navigationService;
31
34
  this.wrapper = wrapperRef.nativeElement;
@@ -9,7 +9,7 @@ export var 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
  };
@@ -108,17 +108,6 @@ var SplitButtonComponent = /** @class */ (function (_super) {
108
108
  * * `null`
109
109
  */
110
110
  _this.size = 'medium';
111
- /**
112
- * The fillMode property specifies the background and border styles of the SplitButton
113
- * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
114
- *
115
- * The available values are:
116
- * * `solid` (default)
117
- * * `flat`
118
- * * `outline`
119
- * * `link`
120
- */
121
- _this.fillMode = 'solid';
122
111
  /**
123
112
  * The SplitButton allows you to specify predefined theme colors.
124
113
  * The theme color will be applied as a background and border color while also amending the text color accordingly
@@ -215,14 +204,15 @@ var SplitButtonComponent = /** @class */ (function (_super) {
215
204
  * This event is preventable. If you cancel the event, the popup will remain open.
216
205
  */
217
206
  _this.close = new EventEmitter();
218
- _this.listId = guid();
219
207
  /**
220
208
  * @hidden
221
209
  */
222
210
  _this.activeArrow = false;
211
+ _this.listId = guid();
223
212
  _this.buttonText = '';
224
213
  _this.lockFocus = false;
225
214
  _this._rounded = 'medium';
215
+ _this._fillMode = "solid";
226
216
  _this._itemClick = _this.itemClick;
227
217
  _this._blur = _this.onBlur;
228
218
  return _this;
@@ -249,6 +239,27 @@ var SplitButtonComponent = /** @class */ (function (_super) {
249
239
  enumerable: true,
250
240
  configurable: true
251
241
  });
242
+ Object.defineProperty(SplitButtonComponent.prototype, "fillMode", {
243
+ get: function () {
244
+ return this._fillMode;
245
+ },
246
+ /**
247
+ * The fillMode property specifies the background and border styles of the SplitButton
248
+ * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-fillMode)).
249
+ *
250
+ * The available values are:
251
+ * * `solid` (default)
252
+ * * `flat`
253
+ * * `outline`
254
+ * * `link`
255
+ */
256
+ set: function (fillMode) {
257
+ // Temporary workaround for missing 'clear' styles
258
+ this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
259
+ },
260
+ enumerable: true,
261
+ configurable: true
262
+ });
252
263
  Object.defineProperty(SplitButtonComponent.prototype, "disabled", {
253
264
  get: function () {
254
265
  return this._disabled;
@@ -668,8 +679,9 @@ var SplitButtonComponent = /** @class */ (function (_super) {
668
679
  ], SplitButtonComponent.prototype, "rounded", null);
669
680
  tslib_1.__decorate([
670
681
  Input(),
671
- tslib_1.__metadata("design:type", String)
672
- ], SplitButtonComponent.prototype, "fillMode", void 0);
682
+ tslib_1.__metadata("design:type", String),
683
+ tslib_1.__metadata("design:paramtypes", [String])
684
+ ], SplitButtonComponent.prototype, "fillMode", null);
673
685
  tslib_1.__decorate([
674
686
  Input(),
675
687
  tslib_1.__metadata("design:type", String)
@@ -285,9 +285,6 @@ let ButtonDirective = class ButtonDirective {
285
285
  case 'default':
286
286
  this.fillMode = 'solid';
287
287
  break;
288
- case 'clear':
289
- this.fillMode = 'flat';
290
- break;
291
288
  default:
292
289
  this.fillMode = value;
293
290
  break;
@@ -10,6 +10,8 @@ import { isChanged, Keys } from '@progress/kendo-angular-common';
10
10
  import { KendoButtonService } from '../button/button.service';
11
11
  import { isPresent } from '../util';
12
12
  import { PreventableEvent } from '../preventable-event';
13
+ import { packageMetadata } from '../package-metadata';
14
+ import { validatePackage } from '@progress/kendo-licensing';
13
15
  /**
14
16
  * @hidden
15
17
  */
@@ -31,6 +33,7 @@ let ButtonGroupComponent = class ButtonGroupComponent {
31
33
  this.navigate = new EventEmitter();
32
34
  this._tabIndex = 0;
33
35
  this.currentTabIndex = 0;
36
+ validatePackage(packageMetadata);
34
37
  this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr');
35
38
  }
36
39
  /**
@@ -109,7 +112,7 @@ let ButtonGroupComponent = class ButtonGroupComponent {
109
112
  if (button.togglable) {
110
113
  button.setSelected(newSelectionValue);
111
114
  }
112
- button.setAttribute(tabindex, "0");
115
+ button.setAttribute(tabindex, '0');
113
116
  });
114
117
  }
115
118
  ngOnChanges(change) {
@@ -124,10 +127,10 @@ let ButtonGroupComponent = class ButtonGroupComponent {
124
127
  ngAfterContentInit() {
125
128
  this.buttons.forEach((button) => {
126
129
  if (button.selected) {
127
- button.setAttribute(tabindex, "0");
130
+ button.setAttribute(tabindex, '0');
128
131
  }
129
132
  else {
130
- button.setAttribute(tabindex, "-1");
133
+ button.setAttribute(tabindex, '-1');
131
134
  }
132
135
  });
133
136
  }
@@ -171,24 +174,24 @@ let ButtonGroupComponent = class ButtonGroupComponent {
171
174
  deactivate(buttons) {
172
175
  buttons.forEach((button) => {
173
176
  button.setSelected(false);
174
- button.setAttribute(tabindex, "-1");
177
+ button.setAttribute(tabindex, '-1');
175
178
  });
176
179
  }
177
180
  activate(buttons) {
178
181
  buttons.forEach((button) => {
179
182
  button.setSelected(true);
180
- button.setAttribute(tabindex, "0");
183
+ button.setAttribute(tabindex, '0');
181
184
  button.focus();
182
185
  });
183
186
  }
184
187
  defocus(buttons) {
185
188
  buttons.forEach((button) => {
186
- button.setAttribute(tabindex, "-1");
189
+ button.setAttribute(tabindex, '-1');
187
190
  });
188
191
  }
189
192
  focus(buttons) {
190
193
  buttons.forEach((button) => {
191
- button.setAttribute(tabindex, "0");
194
+ button.setAttribute(tabindex, '0');
192
195
  button.focus();
193
196
  });
194
197
  }
@@ -7,6 +7,8 @@ import { Component, Input, HostBinding, ContentChildren, QueryList, EventEmitter
7
7
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
8
8
  import { ChipComponent } from './chip.component';
9
9
  import { closest, getStylingClasses } from '../util';
10
+ import { validatePackage } from '@progress/kendo-licensing';
11
+ import { packageMetadata } from '../package-metadata';
10
12
  let ChipListComponent = class ChipListComponent {
11
13
  constructor(localizationService, renderer, element) {
12
14
  this.localizationService = localizationService;
@@ -32,6 +34,7 @@ let ChipListComponent = class ChipListComponent {
32
34
  this.remove = new EventEmitter();
33
35
  this.role = 'listbox';
34
36
  this._size = 'medium';
37
+ validatePackage(packageMetadata);
35
38
  this.direction = localizationService.rtl ? 'rtl' : 'ltr';
36
39
  }
37
40
  /**
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Represents the possible fillMode options of the buttons.
7
7
  */
8
- export declare type ButtonFillMode = 'solid' | 'flat' | 'outline' | 'link';
8
+ export declare type ButtonFillMode = 'solid' | 'flat' | 'outline' | 'link' | 'clear';
9
9
  /**
10
10
  * Represents the possible fillMode options of the Chip.
11
11
  */
@@ -204,6 +204,7 @@ export declare class DropDownButtonComponent extends ListButton implements OnCha
204
204
  container: ViewContainerRef;
205
205
  popupRef: PopupRef;
206
206
  listId: string;
207
+ private _fillMode;
207
208
  /**
208
209
  * @hidden
209
210
  */
@@ -103,18 +103,6 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
103
103
  * * `null`
104
104
  */
105
105
  this.rounded = 'medium';
106
- /**
107
- * The fillMode property specifies the background and border styles of the DropDownButton
108
- * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
109
- *
110
- * The available values are:
111
- * * `solid` (default)
112
- * * `flat`
113
- * * `outline`
114
- * * `link`
115
- * * `null`
116
- */
117
- this.fillMode = 'solid';
118
106
  /**
119
107
  * The DropDownButton allows you to specify predefined theme colors.
120
108
  * The theme color will be applied as a background and border color while also amending the text color accordingly
@@ -162,6 +150,7 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
162
150
  */
163
151
  this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
164
152
  this.listId = guid();
153
+ this._fillMode = 'solid';
165
154
  this._itemClick = this.itemClick;
166
155
  this._blur = this.onBlur;
167
156
  }
@@ -203,6 +192,24 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
203
192
  get data() {
204
193
  return this._data;
205
194
  }
195
+ /**
196
+ * The fillMode property specifies the background and border styles of the DropDownButton
197
+ * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
198
+ *
199
+ * The available values are:
200
+ * * `solid` (default)
201
+ * * `flat`
202
+ * * `outline`
203
+ * * `link`
204
+ * * `null`
205
+ */
206
+ set fillMode(fillMode) {
207
+ // Temporary workaround for missing 'clear' styles
208
+ this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
209
+ }
210
+ get fillMode() {
211
+ return this._fillMode;
212
+ }
206
213
  /**
207
214
  * @hidden
208
215
  */
@@ -508,8 +515,9 @@ tslib_1.__decorate([
508
515
  ], DropDownButtonComponent.prototype, "rounded", void 0);
509
516
  tslib_1.__decorate([
510
517
  Input(),
511
- tslib_1.__metadata("design:type", String)
512
- ], DropDownButtonComponent.prototype, "fillMode", void 0);
518
+ tslib_1.__metadata("design:type", String),
519
+ tslib_1.__metadata("design:paramtypes", [String])
520
+ ], DropDownButtonComponent.prototype, "fillMode", null);
513
521
  tslib_1.__decorate([
514
522
  Input(),
515
523
  tslib_1.__metadata("design:type", String)