@progress/kendo-angular-buttons 8.0.0-next.202204010825 → 8.0.0-next.202204060705

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.
@@ -26,7 +26,7 @@ const packageMetadata = {
26
26
  name: '@progress/kendo-angular-buttons',
27
27
  productName: 'Kendo UI for Angular',
28
28
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
29
- publishDate: 1648801456,
29
+ publishDate: 1649228657,
30
30
  version: '',
31
31
  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'
32
32
  };
@@ -95,17 +95,17 @@ const getStylingClasses = (componentType, stylingOption, previousValue, newValue
95
95
  case 'size':
96
96
  return {
97
97
  toRemove: `k-${componentType}-${SIZES[previousValue]}`,
98
- toAdd: newValue ? `k-${componentType}-${SIZES[newValue]}` : null
98
+ toAdd: newValue !== 'none' ? `k-${componentType}-${SIZES[newValue]}` : ''
99
99
  };
100
100
  case 'rounded':
101
101
  return {
102
102
  toRemove: `k-rounded-${ROUNDNESS[previousValue]}`,
103
- toAdd: newValue ? `k-rounded-${ROUNDNESS[newValue]}` : null
103
+ toAdd: newValue !== 'none' ? `k-rounded-${ROUNDNESS[newValue]}` : ''
104
104
  };
105
105
  case 'fillMode':
106
106
  return {
107
107
  toRemove: `k-${componentType}-${previousValue}`,
108
- toAdd: newValue ? `k-${componentType}-${newValue}` : null
108
+ toAdd: newValue !== 'none' ? `k-${componentType}-${newValue}` : ''
109
109
  };
110
110
  default:
111
111
  break;
@@ -119,7 +119,7 @@ const getStylingClasses = (componentType, stylingOption, previousValue, newValue
119
119
  const getThemeColorClasses = (componentType, prevFillMode, fillMode, previousValue, newValue) => {
120
120
  return {
121
121
  toRemove: `k-${componentType}-${prevFillMode}-${previousValue}`,
122
- toAdd: newValue ? `k-${componentType}-${fillMode}-${newValue}` : null
122
+ toAdd: newValue !== 'none' ? `k-${componentType}-${fillMode}-${newValue}` : ''
123
123
  };
124
124
  };
125
125
  /**
@@ -294,11 +294,12 @@ class ButtonDirective {
294
294
  * * `'small'`
295
295
  * * `'medium'` (default)
296
296
  * * `'large'`
297
- * * `null`
297
+ * * `none`
298
298
  */
299
299
  set size(size) {
300
- this.handleClasses(size, 'size');
301
- this._size = size;
300
+ const sizeValue = size ? size : 'medium';
301
+ this.handleClasses(sizeValue, 'size');
302
+ this._size = sizeValue;
302
303
  }
303
304
  get size() {
304
305
  return this._size;
@@ -312,11 +313,12 @@ class ButtonDirective {
312
313
  * * `'medium'` (default)
313
314
  * * `'large'`
314
315
  * * `'full'`
315
- * * `null`
316
+ * * `none`
316
317
  */
317
318
  set rounded(rounded) {
318
- this.handleClasses(rounded, 'rounded');
319
- this._rounded = rounded;
319
+ const roundedValue = rounded ? rounded : 'medium';
320
+ this.handleClasses(roundedValue, 'rounded');
321
+ this._rounded = roundedValue;
320
322
  }
321
323
  get rounded() {
322
324
  return this._rounded;
@@ -331,11 +333,12 @@ class ButtonDirective {
331
333
  * * `'outline'`
332
334
  * * `'clear'`
333
335
  * * `'link'`
334
- * * `null`
336
+ * * `none`
335
337
  */
336
338
  set fillMode(fillMode) {
337
- this.handleClasses(fillMode, 'fillMode');
338
- this._fillMode = fillMode;
339
+ const fillModeValue = fillMode ? fillMode : 'solid';
340
+ this.handleClasses(fillModeValue, 'fillMode');
341
+ this._fillMode = fillModeValue;
339
342
  }
340
343
  get fillMode() {
341
344
  return this._fillMode;
@@ -359,8 +362,9 @@ class ButtonDirective {
359
362
  * * `'inverse'`
360
363
  */
361
364
  set themeColor(themeColor) {
362
- this.handleThemeColor(themeColor);
363
- this._themeColor = themeColor;
365
+ const themeColorValue = themeColor ? themeColor : 'base';
366
+ this.handleThemeColor(themeColorValue);
367
+ this._themeColor = themeColorValue;
364
368
  }
365
369
  get themeColor() {
366
370
  return this._themeColor;
@@ -661,7 +665,7 @@ class ButtonDirective {
661
665
  const addFillMode = fillMode ? fillMode : this.fillMode;
662
666
  const themeColorClass = getThemeColorClasses('button', removeFillMode, addFillMode, this.themeColor, value);
663
667
  this.renderer.removeClass(elem, themeColorClass.toRemove);
664
- if (addFillMode !== null && fillMode !== null) {
668
+ if (addFillMode !== 'none' && fillMode !== 'none') {
665
669
  if (themeColorClass.toAdd) {
666
670
  this.renderer.addClass(elem, themeColorClass.toAdd);
667
671
  }
@@ -1826,6 +1830,7 @@ Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
1826
1830
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
1827
1831
  type: Directive,
1828
1832
  args: [{
1833
+ // eslint-disable-next-line @angular-eslint/directive-selector
1829
1834
  selector: 'kendo-splitbutton-messages-base'
1830
1835
  }]
1831
1836
  }], propDecorators: { splitButtonLabel: [{
@@ -1947,7 +1952,7 @@ class SplitButtonComponent extends ListButton {
1947
1952
  * * `'small'`
1948
1953
  * * `'medium'` (default)
1949
1954
  * * `'large'`
1950
- * * `null`
1955
+ * * `none`
1951
1956
  */
1952
1957
  this.size = 'medium';
1953
1958
  /**
@@ -2067,11 +2072,12 @@ class SplitButtonComponent extends ListButton {
2067
2072
  * * `'medium'` (default)
2068
2073
  * * `'large'`
2069
2074
  * * `'full'`
2070
- * * `null`
2075
+ * * `none`
2071
2076
  */
2072
2077
  set rounded(rounded) {
2073
- this.handleClasses(rounded, 'rounded');
2074
- this._rounded = rounded;
2078
+ const roundedValue = rounded ? rounded : 'medium';
2079
+ this.handleClasses(roundedValue, 'rounded');
2080
+ this._rounded = roundedValue;
2075
2081
  }
2076
2082
  get rounded() {
2077
2083
  return this._rounded;
@@ -2087,7 +2093,8 @@ class SplitButtonComponent extends ListButton {
2087
2093
  * * `link`
2088
2094
  */
2089
2095
  set fillMode(fillMode) {
2090
- this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
2096
+ const fillModeValue = fillMode ? fillMode : 'solid';
2097
+ this._fillMode = fillMode === 'clear' ? 'flat' : fillModeValue;
2091
2098
  }
2092
2099
  get fillMode() {
2093
2100
  return this._fillMode;
@@ -2269,6 +2276,16 @@ class SplitButtonComponent extends ListButton {
2269
2276
  * @hidden
2270
2277
  */
2271
2278
  ngOnChanges(changes) {
2279
+ if (changes.size) {
2280
+ if (!changes.size.currentValue) {
2281
+ this.size = 'medium';
2282
+ }
2283
+ }
2284
+ if (changes.themeColor) {
2285
+ if (!changes.themeColor.currentValue) {
2286
+ this.themeColor = 'base';
2287
+ }
2288
+ }
2272
2289
  if (changes.hasOwnProperty('text')) {
2273
2290
  this.updateButtonText();
2274
2291
  }
@@ -2782,7 +2799,7 @@ class DropDownButtonComponent extends ListButton {
2782
2799
  * * `'small'`
2783
2800
  * * `'medium'` (default)
2784
2801
  * * `'large'`
2785
- * * `null`
2802
+ * * `none`
2786
2803
  */
2787
2804
  this.size = 'medium';
2788
2805
  /**
@@ -2794,7 +2811,7 @@ class DropDownButtonComponent extends ListButton {
2794
2811
  * The possible values are:
2795
2812
  * * `'rectangle'` (default)
2796
2813
  * * `'square'`
2797
- * * `null`
2814
+ * * `none`
2798
2815
  */
2799
2816
  this.shape = 'rectangle';
2800
2817
  /**
@@ -2806,7 +2823,7 @@ class DropDownButtonComponent extends ListButton {
2806
2823
  * * `'medium'` (default)
2807
2824
  * * `'large'`
2808
2825
  * * `'full'`
2809
- * * `null`
2826
+ * * `none`
2810
2827
  */
2811
2828
  this.rounded = 'medium';
2812
2829
  /**
@@ -2826,7 +2843,7 @@ class DropDownButtonComponent extends ListButton {
2826
2843
  * * `dark`— Applies coloring based on the `dark` theme color.
2827
2844
  * * `light`— Applies coloring based on the `light` theme color.
2828
2845
  * * `inverse`— Applies coloring based on the `inverse` theme color.
2829
- * * `null` —Removes the default CSS class (no class would be rendered).
2846
+ * * `none` —Removes the default CSS class (no class would be rendered).
2830
2847
  */
2831
2848
  this.themeColor = 'base';
2832
2849
  /**
@@ -2907,7 +2924,7 @@ class DropDownButtonComponent extends ListButton {
2907
2924
  * * `flat`
2908
2925
  * * `outline`
2909
2926
  * * `link`
2910
- * * `null`
2927
+ * * `none`
2911
2928
  */
2912
2929
  set fillMode(fillMode) {
2913
2930
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
@@ -3441,11 +3458,12 @@ class ChipComponent {
3441
3458
  * * `'small'`
3442
3459
  * * `'medium'` (default)
3443
3460
  * * `'large'`
3444
- * * `null`
3461
+ * * `none`
3445
3462
  */
3446
3463
  set size(size) {
3447
- this.handleClasses(size, 'size');
3448
- this._size = size;
3464
+ const sizeValue = size ? size : 'medium';
3465
+ this.handleClasses(sizeValue, 'size');
3466
+ this._size = sizeValue;
3449
3467
  }
3450
3468
  get size() {
3451
3469
  return this._size;
@@ -3459,11 +3477,12 @@ class ChipComponent {
3459
3477
  * * `'medium'` (default)
3460
3478
  * * `'large'`
3461
3479
  * * `'full'`
3462
- * * `null`
3480
+ * * `none`
3463
3481
  */
3464
3482
  set rounded(rounded) {
3465
- this.handleClasses(rounded, 'rounded');
3466
- this._rounded = rounded;
3483
+ const roundedValue = rounded ? rounded : 'medium';
3484
+ this.handleClasses(roundedValue, 'rounded');
3485
+ this._rounded = roundedValue;
3467
3486
  }
3468
3487
  get rounded() {
3469
3488
  return this._rounded;
@@ -3475,11 +3494,12 @@ class ChipComponent {
3475
3494
  * The possible values are:
3476
3495
  * * `'solid'` (default)
3477
3496
  * * `'outline'`
3478
- * * `null`
3497
+ * * `none`
3479
3498
  */
3480
3499
  set fillMode(fillMode) {
3481
- this.handleClasses(fillMode, 'fillMode');
3482
- this._fillMode = fillMode;
3500
+ const fillModeValue = fillMode ? fillMode : 'solid';
3501
+ this.handleClasses(fillModeValue, 'fillMode');
3502
+ this._fillMode = fillModeValue;
3483
3503
  }
3484
3504
  get fillMode() {
3485
3505
  return this._fillMode;
@@ -3495,11 +3515,12 @@ class ChipComponent {
3495
3515
  * * `'success'`
3496
3516
  * * `'warning'`
3497
3517
  * * `'error'`
3498
- * * `null`
3518
+ * * `none`
3499
3519
  */
3500
3520
  set themeColor(themeColor) {
3501
- this.handleThemeColor(themeColor);
3502
- this._themeColor = themeColor;
3521
+ const themeColorValue = themeColor ? themeColor : 'base';
3522
+ this.handleThemeColor(themeColorValue);
3523
+ this._themeColor = themeColorValue;
3503
3524
  }
3504
3525
  get themeColor() {
3505
3526
  return this._themeColor;
@@ -3646,7 +3667,7 @@ class ChipComponent {
3646
3667
  const addFillMode = fillMode ? fillMode : this.fillMode;
3647
3668
  const themeColorClass = getThemeColorClasses('chip', removeFillMode, addFillMode, this.themeColor, value);
3648
3669
  this.renderer.removeClass(elem, themeColorClass.toRemove);
3649
- if (addFillMode !== null && fillMode !== null) {
3670
+ if (addFillMode !== 'none' && fillMode !== 'none') {
3650
3671
  if (themeColorClass.toAdd) {
3651
3672
  this.renderer.addClass(elem, themeColorClass.toAdd);
3652
3673
  }
@@ -3849,11 +3870,12 @@ class ChipListComponent {
3849
3870
  * * `'small'`
3850
3871
  * * `'medium'` (default)
3851
3872
  * * `'large'`
3852
- * * `null`
3873
+ * * `none`
3853
3874
  */
3854
3875
  set size(size) {
3855
- this.handleClasses(size, 'size');
3856
- this._size = size;
3876
+ const sizeValue = size ? size : 'medium';
3877
+ this.handleClasses(sizeValue, 'size');
3878
+ this._size = sizeValue;
3857
3879
  }
3858
3880
  get size() {
3859
3881
  return this._size;
@@ -4214,6 +4236,7 @@ DialItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
4214
4236
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemComponent, decorators: [{
4215
4237
  type: Component,
4216
4238
  args: [{
4239
+ // eslint-disable-next-line @angular-eslint/component-selector
4217
4240
  selector: '[kendoDialItem]',
4218
4241
  template: `
4219
4242
  <ng-template *ngIf="dialItemTemplate"
@@ -4309,6 +4332,7 @@ DialListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
4309
4332
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialListComponent, decorators: [{
4310
4333
  type: Component,
4311
4334
  args: [{
4335
+ // eslint-disable-next-line @angular-eslint/component-selector
4312
4336
  selector: '[kendoDialList]',
4313
4337
  template: `
4314
4338
  <ng-container *ngFor='let item of dialItems; let idx = index'>
@@ -4482,8 +4506,9 @@ class FloatingActionButtonComponent {
4482
4506
  * * `'inverse'`&mdash; Applies coloring based on the `inverse` theme color.
4483
4507
  */
4484
4508
  set themeColor(themeColor) {
4485
- this.handleClasses(themeColor, 'themeColor');
4486
- this._themeColor = themeColor;
4509
+ const themeColorValue = themeColor ? themeColor : 'primary';
4510
+ this.handleClasses(themeColorValue, 'themeColor');
4511
+ this._themeColor = themeColorValue;
4487
4512
  }
4488
4513
  get themeColor() {
4489
4514
  return this._themeColor;
@@ -4498,8 +4523,9 @@ class FloatingActionButtonComponent {
4498
4523
  * * `'large'`
4499
4524
  */
4500
4525
  set size(size) {
4501
- this.handleClasses(size, 'size');
4502
- this._size = size;
4526
+ const sizeValue = size ? size : 'medium';
4527
+ this.handleClasses(sizeValue, 'size');
4528
+ this._size = sizeValue;
4503
4529
  }
4504
4530
  get size() {
4505
4531
  return this._size;
@@ -4512,11 +4538,12 @@ class FloatingActionButtonComponent {
4512
4538
  * * `'medium'`
4513
4539
  * * `'large'`
4514
4540
  * * `'full'` (default)
4515
- * * `null`
4541
+ * * `none`
4516
4542
  */
4517
4543
  set rounded(rounded) {
4518
- this.handleClasses(rounded, 'rounded');
4519
- this._rounded = rounded;
4544
+ const roundedValue = rounded ? rounded : 'medium';
4545
+ this.handleClasses(roundedValue, 'rounded');
4546
+ this._rounded = roundedValue;
4520
4547
  }
4521
4548
  get rounded() {
4522
4549
  return this._rounded;
@@ -4629,7 +4656,12 @@ class FloatingActionButtonComponent {
4629
4656
  if (this.disabled || shouldOpen === this.isOpen) {
4630
4657
  return;
4631
4658
  }
4632
- shouldOpen ? setTimeout(() => this.openDial()) : this.closeDial();
4659
+ if (shouldOpen) {
4660
+ setTimeout(() => this.openDial());
4661
+ }
4662
+ else {
4663
+ this.closeDial();
4664
+ }
4633
4665
  }
4634
4666
  /**
4635
4667
  * @hidden
@@ -4738,7 +4770,7 @@ class FloatingActionButtonComponent {
4738
4770
  rounded: ROUNDED_CLASSES[this.rounded]
4739
4771
  };
4740
4772
  const classesToAdd = {
4741
- themeColor: inputValue ? `${FILLMODE_CLASS}-${inputValue}` : null,
4773
+ themeColor: inputValue !== 'none' ? `${FILLMODE_CLASS}-${inputValue}` : '',
4742
4774
  size: SIZE_CLASSES[inputValue],
4743
4775
  rounded: ROUNDED_CLASSES[inputValue]
4744
4776
  };
@@ -4805,11 +4837,21 @@ class FloatingActionButtonComponent {
4805
4837
  return;
4806
4838
  }
4807
4839
  const event = new PreventableEvent();
4808
- open ? this.open.emit(event) : this.close.emit(event);
4840
+ if (open) {
4841
+ this.open.emit(event);
4842
+ }
4843
+ else {
4844
+ this.close.emit(event);
4845
+ }
4809
4846
  if (event.isDefaultPrevented()) {
4810
4847
  return;
4811
4848
  }
4812
- open ? this.openDial() : this.closeDial();
4849
+ if (open) {
4850
+ this.openDial();
4851
+ }
4852
+ else {
4853
+ this.closeDial();
4854
+ }
4813
4855
  }
4814
4856
  openPopup() {
4815
4857
  if (this.isOpen) {
@@ -82,7 +82,7 @@ export declare class FloatingActionButtonComponent implements AfterViewInit, OnD
82
82
  * * `'medium'`
83
83
  * * `'large'`
84
84
  * * `'full'` (default)
85
- * * `null`
85
+ * * `none`
86
86
  */
87
87
  set rounded(rounded: ButtonRounded);
88
88
  get rounded(): ButtonRounded;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-buttons",
3
- "version": "8.0.0-next.202204010825",
3
+ "version": "8.0.0-next.202204060705",
4
4
  "description": "Buttons Package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@progress/kendo-common": "^0.2.1",
28
- "@progress/kendo-schematics": "^2.0.0",
28
+ "@progress/kendo-schematics": "^3.0.0",
29
29
  "tslib": "^2.3.1"
30
30
  },
31
31
  "peerDependencies": {
@@ -33,9 +33,9 @@
33
33
  "@angular/common": "^12.0.0 || ^13.0.0",
34
34
  "@angular/core": "^12.0.0 || ^13.0.0",
35
35
  "@angular/forms": "^12.0.0 || ^13.0.0",
36
- "@progress/kendo-angular-common": "next",
37
- "@progress/kendo-angular-l10n": "next",
38
- "@progress/kendo-angular-popup": "next",
36
+ "@progress/kendo-angular-common": ">3.0.0-next",
37
+ "@progress/kendo-angular-l10n": ">4.0.0-next",
38
+ "@progress/kendo-angular-popup": ">5.0.0-next",
39
39
  "@progress/kendo-licensing": "^1.0.2",
40
40
  "rxjs": "^6.5.3 || ^7.0.0"
41
41
  },
@@ -90,7 +90,7 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
90
90
  * * `'small'`
91
91
  * * `'medium'` (default)
92
92
  * * `'large'`
93
- * * `null`
93
+ * * `none`
94
94
  */
95
95
  size: ButtonSize;
96
96
  /**
@@ -102,7 +102,7 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
102
102
  * * `'medium'` (default)
103
103
  * * `'large'`
104
104
  * * `'full'`
105
- * * `null`
105
+ * * `none`
106
106
  */
107
107
  set rounded(rounded: ButtonRounded);
108
108
  get rounded(): ButtonRounded;