@progress/kendo-angular-buttons 7.0.0-dev.202201181837 → 7.0.1-dev.202201191229

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 @@ import { isDocumentAvailable, isChanged, hasObservers, Keys } from '@progress/ke
9
9
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
10
10
  import { validatePackage } from '@progress/kendo-licensing';
11
11
  import { packageMetadata } from '../package-metadata';
12
- import { getStylingClasses, getThemeColorClasses, isPresent } from '../util';
12
+ import { getStylingClasses, getThemeColorClasses } from '../util';
13
13
  var SPAN_TAG_NAME = 'SPAN';
14
14
  /**
15
15
  * Represents the Kendo UI Button component for Angular.
@@ -180,7 +180,7 @@ var ButtonDirective = /** @class */ (function () {
180
180
  return this._size;
181
181
  },
182
182
  /**
183
- * The size property specifies the width and height of the Button
183
+ * The size property specifies the padding of the Button
184
184
  * ([see example]({% slug appearance_buttondirective %}#toc-size)).
185
185
  *
186
186
  * The possible values are:
@@ -484,12 +484,7 @@ var ButtonDirective = /** @class */ (function () {
484
484
  }
485
485
  };
486
486
  ButtonDirective.prototype.hasText = function () {
487
- if (isDocumentAvailable()) {
488
- return this.element.textContent.trim().length > 0;
489
- }
490
- else {
491
- return false;
492
- }
487
+ return isDocumentAvailable() && this.element.textContent.trim().length > 0;
493
488
  };
494
489
  ButtonDirective.prototype.addImgIcon = function (imageUrl) {
495
490
  var renderer = this.renderer;
@@ -520,11 +515,13 @@ var ButtonDirective = /** @class */ (function () {
520
515
  }
521
516
  };
522
517
  ButtonDirective.prototype.addTextSpan = function () {
523
- if (isDocumentAvailable() && this.hasText() && isPresent(this.element.append)) {
524
- var span = this.renderer.createElement('span');
525
- this.renderer.addClass(span, 'k-button-text');
526
- span.append.apply(span, Array.from(this.element.childNodes));
527
- this.element.append(span);
518
+ var _this = this;
519
+ if (isDocumentAvailable() && this.hasText()) {
520
+ var span_1 = this.renderer.createElement('span');
521
+ this.renderer.addClass(span_1, 'k-button-text');
522
+ var buttonContentNodes = Array.from(this.element.childNodes);
523
+ buttonContentNodes.forEach(function (node) { return _this.renderer.appendChild(span_1, node); });
524
+ this.renderer.appendChild(this.element, span_1);
528
525
  }
529
526
  };
530
527
  ButtonDirective.prototype.prependChild = function (node) {
@@ -57,7 +57,7 @@ var ChipComponent = /** @class */ (function () {
57
57
  return this._size;
58
58
  },
59
59
  /**
60
- * The size property specifies the height, padding and line height of the Chip
60
+ * The size property specifies the padding of the Chip
61
61
  * ([see example]({% slug appearance_chip %}#toc-size)).
62
62
  *
63
63
  * The possible values are:
@@ -72,7 +72,7 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
72
72
  */
73
73
  _this.imageUrl = '';
74
74
  /**
75
- * The size property specifies the width and height of the DropDownButton
75
+ * The size property specifies the padding of the DropDownButton
76
76
  * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-size)).
77
77
  *
78
78
  * The possible values are:
@@ -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: 1642530954,
12
+ publishDate: 1642595280,
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
  };
@@ -98,7 +98,7 @@ var SplitButtonComponent = /** @class */ (function (_super) {
98
98
  */
99
99
  _this.imageUrl = '';
100
100
  /**
101
- * The size property specifies the width and height of the SplitButton
101
+ * The size property specifies the padding of the SplitButton
102
102
  * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-size)).
103
103
  *
104
104
  * The possible values are:
@@ -54,7 +54,7 @@ export declare class ButtonDirective implements OnDestroy, AfterViewInit {
54
54
  */
55
55
  disabled: boolean;
56
56
  /**
57
- * The size property specifies the width and height of the Button
57
+ * The size property specifies the padding of the Button
58
58
  * ([see example]({% slug appearance_buttondirective %}#toc-size)).
59
59
  *
60
60
  * The possible values are:
@@ -9,7 +9,7 @@ import { isDocumentAvailable, isChanged, hasObservers, Keys } from '@progress/ke
9
9
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
10
10
  import { validatePackage } from '@progress/kendo-licensing';
11
11
  import { packageMetadata } from '../package-metadata';
12
- import { getStylingClasses, getThemeColorClasses, isPresent } from '../util';
12
+ import { getStylingClasses, getThemeColorClasses } from '../util';
13
13
  const SPAN_TAG_NAME = 'SPAN';
14
14
  /**
15
15
  * Represents the Kendo UI Button component for Angular.
@@ -142,7 +142,7 @@ let ButtonDirective = class ButtonDirective {
142
142
  return this.isDisabled;
143
143
  }
144
144
  /**
145
- * The size property specifies the width and height of the Button
145
+ * The size property specifies the padding of the Button
146
146
  * ([see example]({% slug appearance_buttondirective %}#toc-size)).
147
147
  *
148
148
  * The possible values are:
@@ -391,12 +391,7 @@ let ButtonDirective = class ButtonDirective {
391
391
  }
392
392
  }
393
393
  hasText() {
394
- if (isDocumentAvailable()) {
395
- return this.element.textContent.trim().length > 0;
396
- }
397
- else {
398
- return false;
399
- }
394
+ return isDocumentAvailable() && this.element.textContent.trim().length > 0;
400
395
  }
401
396
  addImgIcon(imageUrl) {
402
397
  let renderer = this.renderer;
@@ -427,11 +422,12 @@ let ButtonDirective = class ButtonDirective {
427
422
  }
428
423
  }
429
424
  addTextSpan() {
430
- if (isDocumentAvailable() && this.hasText() && isPresent(this.element.append)) {
425
+ if (isDocumentAvailable() && this.hasText()) {
431
426
  const span = this.renderer.createElement('span');
432
427
  this.renderer.addClass(span, 'k-button-text');
433
- span.append(...Array.from(this.element.childNodes));
434
- this.element.append(span);
428
+ const buttonContentNodes = Array.from(this.element.childNodes);
429
+ buttonContentNodes.forEach(node => this.renderer.appendChild(span, node));
430
+ this.renderer.appendChild(this.element, span);
435
431
  }
436
432
  }
437
433
  prependChild(node) {
@@ -56,7 +56,7 @@ export declare class ChipComponent implements OnInit, AfterViewInit {
56
56
  */
57
57
  disabled: boolean;
58
58
  /**
59
- * The size property specifies the height, padding and line height of the Chip
59
+ * The size property specifies the padding of the Chip
60
60
  * ([see example]({% slug appearance_chip %}#toc-size)).
61
61
  *
62
62
  * The possible values are:
@@ -53,7 +53,7 @@ let ChipComponent = class ChipComponent {
53
53
  this.direction = localizationService.rtl ? 'rtl' : 'ltr';
54
54
  }
55
55
  /**
56
- * The size property specifies the height, padding and line height of the Chip
56
+ * The size property specifies the padding of the Chip
57
57
  * ([see example]({% slug appearance_chip %}#toc-size)).
58
58
  *
59
59
  * The possible values are:
@@ -83,7 +83,7 @@ export declare class DropDownButtonComponent extends ListButton implements OnCha
83
83
  */
84
84
  data: any;
85
85
  /**
86
- * The size property specifies the width and height of the DropDownButton
86
+ * The size property specifies the padding of the DropDownButton
87
87
  * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-size)).
88
88
  *
89
89
  * The possible values are:
@@ -71,7 +71,7 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
71
71
  */
72
72
  this.imageUrl = '';
73
73
  /**
74
- * The size property specifies the width and height of the DropDownButton
74
+ * The size property specifies the padding of the DropDownButton
75
75
  * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-size)).
76
76
  *
77
77
  * The possible values are:
@@ -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: 1642530954,
12
+ publishDate: 1642595280,
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
  };
@@ -82,7 +82,7 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
82
82
  */
83
83
  imageUrl: string;
84
84
  /**
85
- * The size property specifies the width and height of the SplitButton
85
+ * The size property specifies the padding of the SplitButton
86
86
  * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-size)).
87
87
  *
88
88
  * The possible values are:
@@ -97,7 +97,7 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
97
97
  */
98
98
  this.imageUrl = '';
99
99
  /**
100
- * The size property specifies the width and height of the SplitButton
100
+ * The size property specifies the padding of the SplitButton
101
101
  * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-size)).
102
102
  *
103
103
  * The possible values are:
@@ -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: 1642530954,
42
+ publishDate: 1642595280,
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
  };
@@ -268,7 +268,7 @@ let ButtonDirective = class ButtonDirective {
268
268
  return this.isDisabled;
269
269
  }
270
270
  /**
271
- * The size property specifies the width and height of the Button
271
+ * The size property specifies the padding of the Button
272
272
  * ([see example]({% slug appearance_buttondirective %}#toc-size)).
273
273
  *
274
274
  * The possible values are:
@@ -517,12 +517,7 @@ let ButtonDirective = class ButtonDirective {
517
517
  }
518
518
  }
519
519
  hasText() {
520
- if (isDocumentAvailable()) {
521
- return this.element.textContent.trim().length > 0;
522
- }
523
- else {
524
- return false;
525
- }
520
+ return isDocumentAvailable() && this.element.textContent.trim().length > 0;
526
521
  }
527
522
  addImgIcon(imageUrl) {
528
523
  let renderer = this.renderer;
@@ -553,11 +548,12 @@ let ButtonDirective = class ButtonDirective {
553
548
  }
554
549
  }
555
550
  addTextSpan() {
556
- if (isDocumentAvailable() && this.hasText() && isPresent(this.element.append)) {
551
+ if (isDocumentAvailable() && this.hasText()) {
557
552
  const span = this.renderer.createElement('span');
558
553
  this.renderer.addClass(span, 'k-button-text');
559
- span.append(...Array.from(this.element.childNodes));
560
- this.element.append(span);
554
+ const buttonContentNodes = Array.from(this.element.childNodes);
555
+ buttonContentNodes.forEach(node => this.renderer.appendChild(span, node));
556
+ this.renderer.appendChild(this.element, span);
561
557
  }
562
558
  }
563
559
  prependChild(node) {
@@ -1907,7 +1903,7 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
1907
1903
  */
1908
1904
  this.imageUrl = '';
1909
1905
  /**
1910
- * The size property specifies the width and height of the SplitButton
1906
+ * The size property specifies the padding of the SplitButton
1911
1907
  * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-size)).
1912
1908
  *
1913
1909
  * The possible values are:
@@ -2770,7 +2766,7 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2770
2766
  */
2771
2767
  this.imageUrl = '';
2772
2768
  /**
2773
- * The size property specifies the width and height of the DropDownButton
2769
+ * The size property specifies the padding of the DropDownButton
2774
2770
  * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-size)).
2775
2771
  *
2776
2772
  * The possible values are:
@@ -3445,7 +3441,7 @@ let ChipComponent = class ChipComponent {
3445
3441
  this.direction = localizationService.rtl ? 'rtl' : 'ltr';
3446
3442
  }
3447
3443
  /**
3448
- * The size property specifies the height, padding and line height of the Chip
3444
+ * The size property specifies the padding of the Chip
3449
3445
  * ([see example]({% slug appearance_chip %}#toc-size)).
3450
3446
  *
3451
3447
  * The possible values are:
@@ -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: 1642530954,
40
+ publishDate: 1642595280,
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
  };
@@ -306,7 +306,7 @@ var ButtonDirective = /** @class */ (function () {
306
306
  return this._size;
307
307
  },
308
308
  /**
309
- * The size property specifies the width and height of the Button
309
+ * The size property specifies the padding of the Button
310
310
  * ([see example]({% slug appearance_buttondirective %}#toc-size)).
311
311
  *
312
312
  * The possible values are:
@@ -610,12 +610,7 @@ var ButtonDirective = /** @class */ (function () {
610
610
  }
611
611
  };
612
612
  ButtonDirective.prototype.hasText = function () {
613
- if (isDocumentAvailable()) {
614
- return this.element.textContent.trim().length > 0;
615
- }
616
- else {
617
- return false;
618
- }
613
+ return isDocumentAvailable() && this.element.textContent.trim().length > 0;
619
614
  };
620
615
  ButtonDirective.prototype.addImgIcon = function (imageUrl) {
621
616
  var renderer = this.renderer;
@@ -646,11 +641,13 @@ var ButtonDirective = /** @class */ (function () {
646
641
  }
647
642
  };
648
643
  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);
644
+ var _this = this;
645
+ if (isDocumentAvailable() && this.hasText()) {
646
+ var span_1 = this.renderer.createElement('span');
647
+ this.renderer.addClass(span_1, 'k-button-text');
648
+ var buttonContentNodes = Array.from(this.element.childNodes);
649
+ buttonContentNodes.forEach(function (node) { return _this.renderer.appendChild(span_1, node); });
650
+ this.renderer.appendChild(this.element, span_1);
654
651
  }
655
652
  };
656
653
  ButtonDirective.prototype.prependChild = function (node) {
@@ -2058,7 +2055,7 @@ var SplitButtonComponent = /** @class */ (function (_super) {
2058
2055
  */
2059
2056
  _this.imageUrl = '';
2060
2057
  /**
2061
- * The size property specifies the width and height of the SplitButton
2058
+ * The size property specifies the padding of the SplitButton
2062
2059
  * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-size)).
2063
2060
  *
2064
2061
  * The possible values are:
@@ -2942,7 +2939,7 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
2942
2939
  */
2943
2940
  _this.imageUrl = '';
2944
2941
  /**
2945
- * The size property specifies the width and height of the DropDownButton
2942
+ * The size property specifies the padding of the DropDownButton
2946
2943
  * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-size)).
2947
2944
  *
2948
2945
  * The possible values are:
@@ -3641,7 +3638,7 @@ var ChipComponent = /** @class */ (function () {
3641
3638
  return this._size;
3642
3639
  },
3643
3640
  /**
3644
- * The size property specifies the height, padding and line height of the Chip
3641
+ * The size property specifies the padding of the Chip
3645
3642
  * ([see example]({% slug appearance_chip %}#toc-size)).
3646
3643
  *
3647
3644
  * The possible values are:
@@ -182,7 +182,7 @@ var ButtonDirective = /** @class */ (function () {
182
182
  return this._size;
183
183
  },
184
184
  /**
185
- * The size property specifies the width and height of the Button
185
+ * The size property specifies the padding of the Button
186
186
  * ([see example]({% slug appearance_buttondirective %}#toc-size)).
187
187
  *
188
188
  * The possible values are:
@@ -486,12 +486,7 @@ var ButtonDirective = /** @class */ (function () {
486
486
  }
487
487
  };
488
488
  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
- }
489
+ return kendo_angular_common_1.isDocumentAvailable() && this.element.textContent.trim().length > 0;
495
490
  };
496
491
  ButtonDirective.prototype.addImgIcon = function (imageUrl) {
497
492
  var renderer = this.renderer;
@@ -522,11 +517,13 @@ var ButtonDirective = /** @class */ (function () {
522
517
  }
523
518
  };
524
519
  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);
520
+ var _this = this;
521
+ if (kendo_angular_common_1.isDocumentAvailable() && this.hasText()) {
522
+ var span_1 = this.renderer.createElement('span');
523
+ this.renderer.addClass(span_1, 'k-button-text');
524
+ var buttonContentNodes = Array.from(this.element.childNodes);
525
+ buttonContentNodes.forEach(function (node) { return _this.renderer.appendChild(span_1, node); });
526
+ this.renderer.appendChild(this.element, span_1);
530
527
  }
531
528
  };
532
529
  ButtonDirective.prototype.prependChild = function (node) {
@@ -59,7 +59,7 @@ var ChipComponent = /** @class */ (function () {
59
59
  return this._size;
60
60
  },
61
61
  /**
62
- * The size property specifies the height, padding and line height of the Chip
62
+ * The size property specifies the padding of the Chip
63
63
  * ([see example]({% slug appearance_chip %}#toc-size)).
64
64
  *
65
65
  * The possible values are:
@@ -75,7 +75,7 @@ var DropDownButtonComponent = /** @class */ (function (_super) {
75
75
  */
76
76
  _this.imageUrl = '';
77
77
  /**
78
- * The size property specifies the width and height of the DropDownButton
78
+ * The size property specifies the padding of the DropDownButton
79
79
  * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-size)).
80
80
  *
81
81
  * The possible values are:
@@ -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: 1642530954,
14
+ publishDate: 1642595280,
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
  };
@@ -101,7 +101,7 @@ var SplitButtonComponent = /** @class */ (function (_super) {
101
101
  */
102
102
  _this.imageUrl = '';
103
103
  /**
104
- * The size property specifies the width and height of the SplitButton
104
+ * The size property specifies the padding of the SplitButton
105
105
  * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-size)).
106
106
  *
107
107
  * The possible values are: