@progress/kendo-angular-buttons 8.0.0-next.202204011456 → 8.0.0-next.202204131126

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 (35) hide show
  1. package/bundles/kendo-angular-buttons.umd.js +1 -1
  2. package/button/button.directive.d.ts +30 -43
  3. package/buttongroup/buttongroup.component.d.ts +1 -2
  4. package/chip/chip-list.component.d.ts +1 -1
  5. package/chip/chip.component.d.ts +19 -20
  6. package/common/models/fillmode.d.ts +2 -2
  7. package/common/models/rounded.d.ts +2 -2
  8. package/common/models/size.d.ts +2 -2
  9. package/common/models/theme-color.d.ts +2 -2
  10. package/common/models.d.ts +0 -1
  11. package/dropdownbutton/dropdownbutton.component.d.ts +14 -25
  12. package/esm2015/button/button.directive.js +55 -65
  13. package/esm2015/buttongroup/buttongroup.component.js +6 -5
  14. package/esm2015/chip/chip-list.component.js +4 -3
  15. package/esm2015/chip/chip.component.js +47 -47
  16. package/esm2015/common/models.js +0 -1
  17. package/esm2015/dropdownbutton/dropdownbutton.component.js +25 -36
  18. package/esm2015/floatingactionbutton/dial-item.component.js +1 -0
  19. package/esm2015/floatingactionbutton/dial-list.component.js +1 -0
  20. package/esm2015/floatingactionbutton/floatingactionbutton.component.js +55 -52
  21. package/esm2015/focusable/focusable.directive.js +5 -11
  22. package/esm2015/listbutton/list-button.js +15 -35
  23. package/esm2015/package-metadata.js +1 -1
  24. package/esm2015/splitbutton/localization/messages.js +1 -0
  25. package/esm2015/splitbutton/splitbutton.component.js +27 -19
  26. package/esm2015/util.js +4 -4
  27. package/fesm2015/kendo-angular-buttons.js +240 -276
  28. package/floatingactionbutton/floatingactionbutton.component.d.ts +22 -35
  29. package/focusable/focusable.directive.d.ts +1 -2
  30. package/listbutton/list-button.d.ts +1 -11
  31. package/main.d.ts +0 -1
  32. package/package.json +4 -4
  33. package/splitbutton/splitbutton.component.d.ts +11 -9
  34. package/common/models/shape.d.ts +0 -11
  35. package/esm2015/common/models/shape.js +0 -5
@@ -16,7 +16,6 @@ import { FabPositionMode } from './models/position-mode';
16
16
  import { DialItemClickEvent } from './models/item-click.event';
17
17
  import { ButtonSize } from '../common/models/size';
18
18
  import { ButtonThemeColor } from '../common/models/theme-color';
19
- import { ButtonShape } from '../common/models/shape';
20
19
  import { PreventableEvent } from '../preventable-event';
21
20
  import { DialItemTemplateDirective } from './templates/dial-item-template.directive';
22
21
  import { FloatingActionButtonTemplateDirective } from './templates/fab-template.directive';
@@ -50,16 +49,17 @@ export declare class FloatingActionButtonComponent implements AfterViewInit, OnD
50
49
  * The theme color will be applied as background color of the component.
51
50
  *
52
51
  * The possible values are:
53
- * * `'primary'` (Default)—Applies coloring based on the `primary` theme color.
54
- * * `'secondary'`—Applies coloring based on the `secondary` theme color.
55
- * * `'tertiary'`— Applies coloring based on the `tertiary` theme color.
56
- * * `'info'`—Applies coloring based on the `info` theme color.
57
- * * `'success'`— Applies coloring based on the `success` theme color.
58
- * * `'warning'`— Applies coloring based on the `warning` theme color.
59
- * * `'error'`— Applies coloring based on the `error` theme color.
60
- * * `'dark'`— Applies coloring based on the `dark` theme color.
61
- * * `'light'`— Applies coloring based on the `light` theme color.
62
- * * `'inverse'`— Applies coloring based on the `inverse` theme color.
52
+ * * `primary` (Default)—Applies coloring based on the `primary` theme color.
53
+ * * `secondary`—Applies coloring based on the `secondary` theme color.
54
+ * * `tertiary`— Applies coloring based on the `tertiary` theme color.
55
+ * * `info`—Applies coloring based on the `info` theme color.
56
+ * * `success`— Applies coloring based on the `success` theme color.
57
+ * * `warning`— Applies coloring based on the `warning` theme color.
58
+ * * `error`— Applies coloring based on the `error` theme color.
59
+ * * `dark`— Applies coloring based on the `dark` theme color.
60
+ * * `light`— Applies coloring based on the `light` theme color.
61
+ * * `inverse`— Applies coloring based on the `inverse` theme color.
62
+ * * `none`— Removes the built in theme color.
63
63
  */
64
64
  set themeColor(themeColor: ButtonThemeColor);
65
65
  get themeColor(): ButtonThemeColor;
@@ -68,9 +68,10 @@ export declare class FloatingActionButtonComponent implements AfterViewInit, OnD
68
68
  * ([see example]({% slug appearance_floatingactionbutton %}#toc-size)).
69
69
  *
70
70
  * The possible values are:
71
- * * `'small'`
72
- * * `'medium'` (Default)
73
- * * `'large'`
71
+ * * `small`
72
+ * * `medium` (Default)
73
+ * * `large`
74
+ * * `none`
74
75
  */
75
76
  set size(size: ButtonSize);
76
77
  get size(): ButtonSize;
@@ -78,27 +79,14 @@ export declare class FloatingActionButtonComponent implements AfterViewInit, OnD
78
79
  * The rounded property specifies the border radius of the FloatingActionButton.
79
80
  *
80
81
  * The possible values are:
81
- * * `'small'`
82
- * * `'medium'`
83
- * * `'large'`
84
- * * `'full'` (default)
85
- * * `null`
82
+ * * `small`
83
+ * * `medium`
84
+ * * `large`
85
+ * * `full` (default)
86
+ * * `none`
86
87
  */
87
88
  set rounded(rounded: ButtonRounded);
88
89
  get rounded(): ButtonRounded;
89
- /**
90
- * @hidden
91
- *
92
- * Specifies the shape of the FloatingActionButton
93
- * ([see example]({% slug appearance_floatingactionbutton %}#toc-shape)).
94
- *
95
- * The possible values are:
96
- * * `rectangle` (Default)—Applies rectangular shape on the FloatingActionButton.
97
- * * `square`—Applies square shape on the FloatingActionButton.
98
- *
99
- */
100
- set shape(shape: ButtonShape);
101
- get shape(): ButtonShape;
102
90
  /**
103
91
  * Specifies whether the FloatingActionButton is disabled.
104
92
  */
@@ -214,11 +202,10 @@ export declare class FloatingActionButtonComponent implements AfterViewInit, OnD
214
202
  id: string;
215
203
  private _themeColor;
216
204
  private _size;
217
- private _shape;
205
+ private _rounded;
218
206
  private _disabled;
219
207
  private _align;
220
208
  private _offset;
221
- private _rounded;
222
209
  private subscriptions;
223
210
  private popupMouseDownListener;
224
211
  private rtl;
@@ -328,5 +315,5 @@ export declare class FloatingActionButtonComponent implements AfterViewInit, OnD
328
315
  private animationGap;
329
316
  private animationDuration;
330
317
  static ɵfac: i0.ɵɵFactoryDeclaration<FloatingActionButtonComponent, never>;
331
- static ɵcmp: i0.ɵɵComponentDeclaration<FloatingActionButtonComponent, "kendo-floatingactionbutton", never, { "themeColor": "themeColor"; "size": "size"; "rounded": "rounded"; "shape": "shape"; "disabled": "disabled"; "align": "align"; "offset": "offset"; "positionMode": "positionMode"; "icon": "icon"; "iconClass": "iconClass"; "buttonClass": "buttonClass"; "dialClass": "dialClass"; "text": "text"; "dialItemAnimation": "dialItemAnimation"; "tabIndex": "tabIndex"; "dialItems": "dialItems"; }, { "onBlur": "blur"; "onFocus": "focus"; "dialItemClick": "dialItemClick"; "open": "open"; "close": "close"; }, ["dialItemTemplate", "fabTemplate"], never>;
318
+ static ɵcmp: i0.ɵɵComponentDeclaration<FloatingActionButtonComponent, "kendo-floatingactionbutton", never, { "themeColor": "themeColor"; "size": "size"; "rounded": "rounded"; "disabled": "disabled"; "align": "align"; "offset": "offset"; "positionMode": "positionMode"; "icon": "icon"; "iconClass": "iconClass"; "buttonClass": "buttonClass"; "dialClass": "dialClass"; "text": "text"; "dialItemAnimation": "dialItemAnimation"; "tabIndex": "tabIndex"; "dialItems": "dialItems"; }, { "onBlur": "blur"; "onFocus": "focus"; "dialItemClick": "dialItemClick"; "open": "open"; "close": "close"; }, ["dialItemTemplate", "fabTemplate"], never>;
332
319
  }
@@ -13,7 +13,7 @@ export declare class FocusableDirective implements OnInit, OnDestroy {
13
13
  private renderer;
14
14
  index: number;
15
15
  private element;
16
- private focusSubscription;
16
+ private subs;
17
17
  constructor(focusService: FocusService, elementRef: ElementRef, renderer: Renderer2);
18
18
  ngOnInit(): void;
19
19
  /**
@@ -21,7 +21,6 @@ export declare class FocusableDirective implements OnInit, OnDestroy {
21
21
  */
22
22
  ngOnDestroy(): void;
23
23
  private subscribeEvents;
24
- private unsubscribeEvents;
25
24
  static ɵfac: i0.ɵɵFactoryDeclaration<FocusableDirective, never>;
26
25
  static ɵdir: i0.ɵɵDirectiveDeclaration<FocusableDirective, "[kendoButtonFocusable]", never, { "index": "index"; }, {}, never>;
27
26
  }
@@ -31,18 +31,10 @@ export declare class ListButton implements OnDestroy {
31
31
  protected _blur: EventEmitter<any>;
32
32
  protected wrapper: HTMLElement;
33
33
  protected button: ElementRef;
34
- protected focusSubscription: Subscription;
35
- protected navigationSubscription: Subscription;
36
- protected enterPressSubscription: Subscription;
37
- protected enterUpSubscription: Subscription;
38
- protected openSubscription: Subscription;
39
- protected closeSubscription: Subscription;
40
- protected componentBlurredSubscription: Subscription;
41
- protected tabSubscription: Subscription;
34
+ protected subs: Subscription;
42
35
  protected direction: Direction;
43
36
  protected focusFirstTimeout: any;
44
37
  protected blurTimeout: any;
45
- private localizationChangeSubscription;
46
38
  constructor(focusService: FocusService, navigationService: NavigationService, wrapperRef: ElementRef, _zone: NgZone, localization: LocalizationService, cdr: ChangeDetectorRef);
47
39
  get popupClasses(): string;
48
40
  get openState(): boolean;
@@ -61,8 +53,6 @@ export declare class ListButton implements OnDestroy {
61
53
  protected subscribeComponentBlurredEvent(): void;
62
54
  protected subscribeNavigationEvents(): void;
63
55
  protected enterHandler(): void;
64
- protected unsubscribeEvents(): void;
65
- protected unsubscribe(subscription: Subscription): void;
66
56
  /**
67
57
  * @hidden
68
58
  */
package/main.d.ts CHANGED
@@ -39,6 +39,5 @@ export { ButtonSize, ChipSize } from './common/models/size';
39
39
  export { ButtonRounded, ChipRounded } from './common/models/rounded';
40
40
  export { ButtonFillMode, ChipFillMode } from './common/models/fillmode';
41
41
  export { ButtonThemeColor, ChipThemeColor } from './common/models/theme-color';
42
- export { ButtonShape } from './common/models/shape';
43
42
  export { FocusableDirective } from './focusable/focusable.directive';
44
43
  export { PreventableEvent } from './preventable-event';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-buttons",
3
- "version": "8.0.0-next.202204011456",
3
+ "version": "8.0.0-next.202204131126",
4
4
  "description": "Buttons Package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -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
  },
@@ -87,10 +87,10 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
87
87
  * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-size)).
88
88
  *
89
89
  * The possible values are:
90
- * * `'small'`
91
- * * `'medium'` (default)
92
- * * `'large'`
93
- * * `null`
90
+ * * `small`
91
+ * * `medium` (default)
92
+ * * `large`
93
+ * * `none`
94
94
  */
95
95
  size: ButtonSize;
96
96
  /**
@@ -98,11 +98,11 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
98
98
  * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-rounded)).
99
99
  *
100
100
  * The possible values are:
101
- * * `'small'`
102
- * * `'medium'` (default)
103
- * * `'large'`
104
- * * `'full'`
105
- * * `null`
101
+ * * `small`
102
+ * * `medium` (default)
103
+ * * `large`
104
+ * * `full`
105
+ * * `none`
106
106
  */
107
107
  set rounded(rounded: ButtonRounded);
108
108
  get rounded(): ButtonRounded;
@@ -135,6 +135,7 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
135
135
  * * `dark`&mdash; Applies coloring based on the `dark` theme color.
136
136
  * * `light`&mdash; Applies coloring based on the `light` theme color.
137
137
  * * `inverse`&mdash; Applies coloring based on the `inverse` theme color.
138
+ * * `none`&mdash; Removes the built in theme color.
138
139
  */
139
140
  themeColor: ButtonThemeColor;
140
141
  /**
@@ -286,6 +287,7 @@ export declare class SplitButtonComponent extends ListButton implements AfterVie
286
287
  private lockFocus;
287
288
  private _rounded;
288
289
  private _fillMode;
290
+ private popupSubs;
289
291
  set isFocused(value: boolean);
290
292
  get isFocused(): boolean;
291
293
  get widgetClasses(): boolean;
@@ -1,11 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- *
8
- * Represents the possible shapes of the buttons.
9
- *
10
- */
11
- export declare type ButtonShape = 'rectangle' | 'square';
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};