@progress/kendo-angular-buttons 7.0.0 → 7.0.2

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.
@@ -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: 1642569714,
12
+ publishDate: 1642682315,
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
  };
@@ -244,7 +244,6 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
244
244
  * * `link`
245
245
  */
246
246
  set fillMode(fillMode) {
247
- // Temporary workaround for missing 'clear' styles
248
247
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
249
248
  }
250
249
  get fillMode() {
@@ -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: 1642569714,
42
+ publishDate: 1642682315,
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
  };
@@ -269,7 +269,7 @@ let ButtonDirective = class ButtonDirective {
269
269
  }
270
270
  /**
271
271
  * The size property specifies the padding of the Button
272
- * ([see example]({% slug appearance_buttondirective %}#toc-size)).
272
+ * ([see example]({% slug appearance_button %}#toc-size)).
273
273
  *
274
274
  * The possible values are:
275
275
  * * `'small'`
@@ -286,7 +286,7 @@ let ButtonDirective = class ButtonDirective {
286
286
  }
287
287
  /**
288
288
  * The rounded property specifies the border radius of the Button
289
- * ([see example]({% slug appearance_buttondirective %}#toc-rounded)).
289
+ * ([see example]({% slug appearance_button %}#toc-rounded)).
290
290
  *
291
291
  * The possible values are:
292
292
  * * `'small'`
@@ -304,12 +304,13 @@ let ButtonDirective = class ButtonDirective {
304
304
  }
305
305
  /**
306
306
  * The fillMode property specifies the background and border styles of the Button
307
- * ([see example]({% slug appearance_buttondirective %}#toc-fillMode)).
307
+ * ([see example]({% slug appearance_button %}#toc-fillMode)).
308
308
  *
309
309
  * The possible values are:
310
310
  * * `'flat'`
311
311
  * * `'solid'` (default)
312
312
  * * `'outline'`
313
+ * * `'clear'`
313
314
  * * `'link'`
314
315
  * * `null`
315
316
  */
@@ -323,7 +324,7 @@ let ButtonDirective = class ButtonDirective {
323
324
  /**
324
325
  * The Button allows you to specify predefined theme colors.
325
326
  * The theme color will be applied as a background and border color while also amending the text color accordingly
326
- * ([see example]({% slug appearance_buttondirective %}#toc-themeColor)).
327
+ * ([see example]({% slug appearance_button %}#toc-themeColor)).
327
328
  *
328
329
  * The possible values are:
329
330
  * * `'base'` (default)
@@ -347,7 +348,7 @@ let ButtonDirective = class ButtonDirective {
347
348
  }
348
349
  /**
349
350
  * The shape property specifies if the Button will form a rectangle or square.
350
- * ([see example]({% slug appearance_buttondirective %}#toc-shape)).
351
+ * ([see example]({% slug appearance_button %}#toc-shape)).
351
352
  *
352
353
  * The possible values are:
353
354
  * * `'square'`
@@ -517,12 +518,7 @@ let ButtonDirective = class ButtonDirective {
517
518
  }
518
519
  }
519
520
  hasText() {
520
- if (isDocumentAvailable()) {
521
- return this.element.textContent.trim().length > 0;
522
- }
523
- else {
524
- return false;
525
- }
521
+ return isDocumentAvailable() && this.element.textContent.trim().length > 0;
526
522
  }
527
523
  addImgIcon(imageUrl) {
528
524
  let renderer = this.renderer;
@@ -553,11 +549,12 @@ let ButtonDirective = class ButtonDirective {
553
549
  }
554
550
  }
555
551
  addTextSpan() {
556
- if (isDocumentAvailable() && this.hasText() && isPresent(this.element.append)) {
552
+ if (isDocumentAvailable() && this.hasText()) {
557
553
  const span = this.renderer.createElement('span');
558
554
  this.renderer.addClass(span, 'k-button-text');
559
- span.append(...Array.from(this.element.childNodes));
560
- this.element.append(span);
555
+ const buttonContentNodes = Array.from(this.element.childNodes);
556
+ buttonContentNodes.forEach(node => this.renderer.appendChild(span, node));
557
+ this.renderer.appendChild(this.element, span);
561
558
  }
562
559
  }
563
560
  prependChild(node) {
@@ -2054,7 +2051,6 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
2054
2051
  * * `link`
2055
2052
  */
2056
2053
  set fillMode(fillMode) {
2057
- // Temporary workaround for missing 'clear' styles
2058
2054
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
2059
2055
  }
2060
2056
  get fillMode() {
@@ -2903,7 +2899,6 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2903
2899
  * * `null`
2904
2900
  */
2905
2901
  set fillMode(fillMode) {
2906
- // Temporary workaround for missing 'clear' styles
2907
2902
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
2908
2903
  }
2909
2904
  get fillMode() {
@@ -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: 1642569714,
40
+ publishDate: 1642682315,
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
  };
@@ -307,7 +307,7 @@ var ButtonDirective = /** @class */ (function () {
307
307
  },
308
308
  /**
309
309
  * The size property specifies the padding of the Button
310
- * ([see example]({% slug appearance_buttondirective %}#toc-size)).
310
+ * ([see example]({% slug appearance_button %}#toc-size)).
311
311
  *
312
312
  * The possible values are:
313
313
  * * `'small'`
@@ -328,7 +328,7 @@ var ButtonDirective = /** @class */ (function () {
328
328
  },
329
329
  /**
330
330
  * The rounded property specifies the border radius of the Button
331
- * ([see example]({% slug appearance_buttondirective %}#toc-rounded)).
331
+ * ([see example]({% slug appearance_button %}#toc-rounded)).
332
332
  *
333
333
  * The possible values are:
334
334
  * * `'small'`
@@ -350,12 +350,13 @@ var ButtonDirective = /** @class */ (function () {
350
350
  },
351
351
  /**
352
352
  * The fillMode property specifies the background and border styles of the Button
353
- * ([see example]({% slug appearance_buttondirective %}#toc-fillMode)).
353
+ * ([see example]({% slug appearance_button %}#toc-fillMode)).
354
354
  *
355
355
  * The possible values are:
356
356
  * * `'flat'`
357
357
  * * `'solid'` (default)
358
358
  * * `'outline'`
359
+ * * `'clear'`
359
360
  * * `'link'`
360
361
  * * `null`
361
362
  */
@@ -373,7 +374,7 @@ var ButtonDirective = /** @class */ (function () {
373
374
  /**
374
375
  * The Button allows you to specify predefined theme colors.
375
376
  * The theme color will be applied as a background and border color while also amending the text color accordingly
376
- * ([see example]({% slug appearance_buttondirective %}#toc-themeColor)).
377
+ * ([see example]({% slug appearance_button %}#toc-themeColor)).
377
378
  *
378
379
  * The possible values are:
379
380
  * * `'base'` (default)
@@ -401,7 +402,7 @@ var ButtonDirective = /** @class */ (function () {
401
402
  },
402
403
  /**
403
404
  * The shape property specifies if the Button will form a rectangle or square.
404
- * ([see example]({% slug appearance_buttondirective %}#toc-shape)).
405
+ * ([see example]({% slug appearance_button %}#toc-shape)).
405
406
  *
406
407
  * The possible values are:
407
408
  * * `'square'`
@@ -610,12 +611,7 @@ var ButtonDirective = /** @class */ (function () {
610
611
  }
611
612
  };
612
613
  ButtonDirective.prototype.hasText = function () {
613
- if (isDocumentAvailable()) {
614
- return this.element.textContent.trim().length > 0;
615
- }
616
- else {
617
- return false;
618
- }
614
+ return isDocumentAvailable() && this.element.textContent.trim().length > 0;
619
615
  };
620
616
  ButtonDirective.prototype.addImgIcon = function (imageUrl) {
621
617
  var renderer = this.renderer;
@@ -646,11 +642,13 @@ var ButtonDirective = /** @class */ (function () {
646
642
  }
647
643
  };
648
644
  ButtonDirective.prototype.addTextSpan = function () {
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);
645
+ var _this = this;
646
+ if (isDocumentAvailable() && this.hasText()) {
647
+ var span_1 = this.renderer.createElement('span');
648
+ this.renderer.addClass(span_1, 'k-button-text');
649
+ var buttonContentNodes = Array.from(this.element.childNodes);
650
+ buttonContentNodes.forEach(function (node) { return _this.renderer.appendChild(span_1, node); });
651
+ this.renderer.appendChild(this.element, span_1);
654
652
  }
655
653
  };
656
654
  ButtonDirective.prototype.prependChild = function (node) {
@@ -2214,7 +2212,6 @@ var SplitButtonComponent = /** @class */ (function (_super) {
2214
2212
  * * `link`
2215
2213
  */
2216
2214
  set: function (fillMode) {
2217
- // Temporary workaround for missing 'clear' styles
2218
2215
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
2219
2216
  },
2220
2217
  enumerable: true,
@@ -3092,7 +3089,6 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
3092
3089
  * * `null`
3093
3090
  */
3094
3091
  set: function (fillMode) {
3095
- // Temporary workaround for missing 'clear' styles
3096
3092
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
3097
3093
  },
3098
3094
  enumerable: true,
@@ -183,7 +183,7 @@ var ButtonDirective = /** @class */ (function () {
183
183
  },
184
184
  /**
185
185
  * The size property specifies the padding of the Button
186
- * ([see example]({% slug appearance_buttondirective %}#toc-size)).
186
+ * ([see example]({% slug appearance_button %}#toc-size)).
187
187
  *
188
188
  * The possible values are:
189
189
  * * `'small'`
@@ -204,7 +204,7 @@ var ButtonDirective = /** @class */ (function () {
204
204
  },
205
205
  /**
206
206
  * The rounded property specifies the border radius of the Button
207
- * ([see example]({% slug appearance_buttondirective %}#toc-rounded)).
207
+ * ([see example]({% slug appearance_button %}#toc-rounded)).
208
208
  *
209
209
  * The possible values are:
210
210
  * * `'small'`
@@ -226,12 +226,13 @@ var ButtonDirective = /** @class */ (function () {
226
226
  },
227
227
  /**
228
228
  * The fillMode property specifies the background and border styles of the Button
229
- * ([see example]({% slug appearance_buttondirective %}#toc-fillMode)).
229
+ * ([see example]({% slug appearance_button %}#toc-fillMode)).
230
230
  *
231
231
  * The possible values are:
232
232
  * * `'flat'`
233
233
  * * `'solid'` (default)
234
234
  * * `'outline'`
235
+ * * `'clear'`
235
236
  * * `'link'`
236
237
  * * `null`
237
238
  */
@@ -249,7 +250,7 @@ var ButtonDirective = /** @class */ (function () {
249
250
  /**
250
251
  * The Button allows you to specify predefined theme colors.
251
252
  * The theme color will be applied as a background and border color while also amending the text color accordingly
252
- * ([see example]({% slug appearance_buttondirective %}#toc-themeColor)).
253
+ * ([see example]({% slug appearance_button %}#toc-themeColor)).
253
254
  *
254
255
  * The possible values are:
255
256
  * * `'base'` (default)
@@ -277,7 +278,7 @@ var ButtonDirective = /** @class */ (function () {
277
278
  },
278
279
  /**
279
280
  * The shape property specifies if the Button will form a rectangle or square.
280
- * ([see example]({% slug appearance_buttondirective %}#toc-shape)).
281
+ * ([see example]({% slug appearance_button %}#toc-shape)).
281
282
  *
282
283
  * The possible values are:
283
284
  * * `'square'`
@@ -486,12 +487,7 @@ var ButtonDirective = /** @class */ (function () {
486
487
  }
487
488
  };
488
489
  ButtonDirective.prototype.hasText = function () {
489
- if (kendo_angular_common_1.isDocumentAvailable()) {
490
- return this.element.textContent.trim().length > 0;
491
- }
492
- else {
493
- return false;
494
- }
490
+ return kendo_angular_common_1.isDocumentAvailable() && this.element.textContent.trim().length > 0;
495
491
  };
496
492
  ButtonDirective.prototype.addImgIcon = function (imageUrl) {
497
493
  var renderer = this.renderer;
@@ -522,11 +518,13 @@ var ButtonDirective = /** @class */ (function () {
522
518
  }
523
519
  };
524
520
  ButtonDirective.prototype.addTextSpan = function () {
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);
521
+ var _this = this;
522
+ if (kendo_angular_common_1.isDocumentAvailable() && this.hasText()) {
523
+ var span_1 = this.renderer.createElement('span');
524
+ this.renderer.addClass(span_1, 'k-button-text');
525
+ var buttonContentNodes = Array.from(this.element.childNodes);
526
+ buttonContentNodes.forEach(function (node) { return _this.renderer.appendChild(span_1, node); });
527
+ this.renderer.appendChild(this.element, span_1);
530
528
  }
531
529
  };
532
530
  ButtonDirective.prototype.prependChild = function (node) {
@@ -225,7 +225,6 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
225
225
  * * `null`
226
226
  */
227
227
  set: function (fillMode) {
228
- // Temporary workaround for missing 'clear' styles
229
228
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
230
229
  },
231
230
  enumerable: true,
@@ -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: 1642569714,
14
+ publishDate: 1642682315,
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
  };
@@ -257,7 +257,6 @@ var SplitButtonComponent = /** @class */ (function (_super) {
257
257
  * * `link`
258
258
  */
259
259
  set: function (fillMode) {
260
- // Temporary workaround for missing 'clear' styles
261
260
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
262
261
  },
263
262
  enumerable: true,