@progress/kendo-angular-toolbar 19.1.0-develop.2 → 19.1.1-develop.1

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 (33) hide show
  1. package/common/fillmode.d.ts +1 -1
  2. package/common/overflow-mode.d.ts +1 -1
  3. package/common/overflow-settings.d.ts +8 -16
  4. package/common/scroll-buttons.d.ts +12 -2
  5. package/common/size.d.ts +1 -1
  6. package/display-mode.d.ts +5 -5
  7. package/esm2022/localization/custom-messages.component.mjs +14 -1
  8. package/esm2022/localization/messages.mjs +3 -3
  9. package/esm2022/package-metadata.mjs +2 -2
  10. package/esm2022/toolbar.component.mjs +28 -22
  11. package/esm2022/toolbar.module.mjs +2 -2
  12. package/esm2022/tools/toolbar-button.component.mjs +38 -39
  13. package/esm2022/tools/toolbar-buttongroup.component.mjs +20 -11
  14. package/esm2022/tools/toolbar-dropdownbutton.component.mjs +39 -47
  15. package/esm2022/tools/toolbar-separator.component.mjs +11 -0
  16. package/esm2022/tools/toolbar-spacer.component.mjs +11 -0
  17. package/esm2022/tools/toolbar-splitbutton.component.mjs +45 -54
  18. package/esm2022/tools/toolbar-tool.component.mjs +31 -12
  19. package/fesm2022/progress-kendo-angular-toolbar.mjs +244 -193
  20. package/group-selection-settings.d.ts +2 -2
  21. package/localization/custom-messages.component.d.ts +14 -1
  22. package/localization/messages.d.ts +3 -3
  23. package/package.json +9 -9
  24. package/popup-settings.d.ts +23 -20
  25. package/toolbar.component.d.ts +28 -22
  26. package/toolbar.module.d.ts +2 -2
  27. package/tools/toolbar-button.component.d.ts +38 -39
  28. package/tools/toolbar-buttongroup.component.d.ts +20 -11
  29. package/tools/toolbar-dropdownbutton.component.d.ts +39 -47
  30. package/tools/toolbar-separator.component.d.ts +11 -0
  31. package/tools/toolbar-spacer.component.d.ts +11 -0
  32. package/tools/toolbar-splitbutton.component.d.ts +45 -54
  33. package/tools/toolbar-tool.component.d.ts +31 -12
@@ -14,13 +14,24 @@ import { ToolBarComponent } from '../toolbar.component';
14
14
  import * as i0 from "@angular/core";
15
15
  /**
16
16
  * Represents the [Kendo UI ToolBar DropDownButton for Angular](slug:controltypes_toolbar#drop-down-buttons).
17
+ *
18
+ * Use this component to add a button that opens a popup with a list of items in the ToolBar.
19
+ *
20
+ * @example
21
+ * ```html
22
+ * <kendo-toolbar>
23
+ * <kendo-toolbar-dropdownbutton text="Paste Variations" [data]="data">
24
+ * </kendo-toolbar-dropdownbutton>
25
+ * </kendo-toolbar>
26
+ * ```
27
+ *
17
28
  */
18
29
  export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent implements OnInit {
19
30
  private zone;
20
31
  private renderer;
21
32
  private host;
22
33
  /**
23
- * Allows showing the default arrow icon or providing alternative one instead.
34
+ * Shows the default arrow icon or lets you provide a custom one.
24
35
  * @default false
25
36
  */
26
37
  arrowIcon: boolean | ArrowIconSettings;
@@ -30,12 +41,14 @@ export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent
30
41
  */
31
42
  title: string;
32
43
  /**
33
- * Specifies the button text visibility.
44
+ * Controls the button text visibility.
45
+ * @default 'always'
34
46
  */
35
47
  set showText(value: DisplayMode);
36
48
  get showText(): DisplayMode;
37
49
  /**
38
- * Specifies the button icon visibility.
50
+ * Controls the button icon visibility.
51
+ * @default 'always'
39
52
  */
40
53
  set showIcon(value: DisplayMode);
41
54
  get showIcon(): DisplayMode;
@@ -46,28 +59,25 @@ export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent
46
59
  set text(text: string);
47
60
  get text(): string;
48
61
  /**
49
- * Defines an icon that will be rendered next to the button text.
62
+ * Sets the icon rendered next to the button text.
50
63
  */
51
64
  set icon(icon: string);
52
65
  /**
53
- * Defines an SVGIcon to be rendered within the button.
54
- * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
66
+ * Sets the `SVGIcon` rendered in the button.
67
+ * Accepts an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
55
68
  */
56
69
  set svgIcon(icon: SVGIcon);
57
70
  /**
58
- * Defines an icon with a custom CSS class that will be rendered next to the button text.
71
+ * Sets a custom CSS class icon rendered next to the button text.
59
72
  */
60
73
  set iconClass(iconClass: string);
61
74
  /**
62
- * Defines the location of an image that will be displayed next to the button text.
75
+ * Sets a URL for the image displayed next to the button text.
63
76
  */
64
77
  set imageUrl(imageUrl: string);
65
78
  /**
66
79
  * Configures the popup of the DropDownButton.
67
- *
68
- * The available options are:
69
- * - `animate:Boolean`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
70
- * - `popupClass:String`&mdash;Specifies a list of CSS classes that are used to style the popup.
80
+ * Accepts a `PopupSettings` object that allows you to customize the popup behavior and appearance.
71
81
  */
72
82
  set popupSettings(settings: PopupSettings);
73
83
  get popupSettings(): PopupSettings;
@@ -80,71 +90,53 @@ export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent
80
90
  */
81
91
  set primary(primary: boolean);
82
92
  /**
83
- * The fillMode property specifies the background and border styles of the Button.
84
- *
85
- * The available values are:
86
- * * `solid` (default)
87
- * * `flat`
88
- * * `outline`
89
- * * `link`
90
- * * `null`
93
+ * Sets the fill mode for the button.
94
+ * The fill mode represents the background and border styles.
95
+ * @default 'solid'
91
96
  */
92
97
  fillMode: ButtonFillMode;
93
98
  /**
94
- * The Button allows you to specify predefined theme colors.
95
- * The theme color will be applied as a background and border color while also amending the text color accordingly
99
+ * Sets the predefined theme color for the button.
100
+ * The theme color applies to the background, border, and text
96
101
  * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
97
- *
98
- * The possible values are:
99
- * * `base` &mdash;Applies coloring based on the `base` theme color. (default)
100
- * * `primary` &mdash;Applies coloring based on the `primary` theme color.
101
- * * `secondary`&mdash;Applies coloring based on the `secondary` theme color.
102
- * * `tertiary`&mdash; Applies coloring based on the `tertiary` theme color.
103
- * * `info`&mdash;Applies coloring based on the `info` theme color.
104
- * * `success`&mdash; Applies coloring based on the `success` theme color.
105
- * * `warning`&mdash; Applies coloring based on the `warning` theme color.
106
- * * `error`&mdash; Applies coloring based on the `error` theme color.
107
- * * `dark`&mdash; Applies coloring based on the `dark` theme color.
108
- * * `light`&mdash; Applies coloring based on the `light` theme color.
109
- * * `inverse`&mdash; Applies coloring based on the `inverse` theme color.
110
- * * `null` &mdash;Removes the default CSS class (no class would be rendered).
102
+ * @default 'base'
111
103
  */
112
104
  themeColor: ButtonThemeColor;
113
105
  /**
114
- * The CSS classes that will be rendered on the main button.
115
- * Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
106
+ * Sets the CSS classes for the main button.
107
+ * Accepts values supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
116
108
  */
117
109
  buttonClass: string;
118
110
  /**
119
- * Sets the data item field that represents the item text.
120
- * If the data contains only primitive values, do not define it.
111
+ * Sets the data item field that repesents the item text.
112
+ * If the data contains only primitive values, do not set this property.
121
113
  */
122
114
  textField: string;
123
115
  /**
124
- * Sets the disabled state of the DropDownButton.
116
+ * When `true`, disables the DropDownButton.
125
117
  */
126
118
  disabled: boolean;
127
119
  /**
128
120
  * Sets the data of the DropDownButton
129
121
  * ([see example](slug:controltypes_toolbar#drop-down-buttons)).
130
122
  *
131
- * > The data has to be provided in an array-like list.
123
+ * > Provide the data as an array-like list.
132
124
  */
133
125
  set data(data: any[]);
134
126
  get data(): any[];
135
127
  /**
136
128
  * Fires each time the user clicks a DropDownButton item.
137
- * The event data contains the data item that is bound to the clicked list item.
129
+ * The event data contains the clicked item's data.
138
130
  */
139
131
  itemClick: EventEmitter<any>;
140
132
  /**
141
- * Fires each time the popup is about to open.
142
- * This event is preventable. If you cancel the event, the popup will remain closed.
133
+ * Fires when the popup is about to open.
134
+ * This event is preventable. If you cancel the event, the popup stays closed.
143
135
  */
144
136
  open: EventEmitter<PreventableEvent>;
145
137
  /**
146
- * Fires each time the popup is about to close.
147
- * This event is preventable. If you cancel the event, the popup will remain open.
138
+ * Fires when the popup is about to close.
139
+ * This event is preventable. If you cancel the event, the popup stays open.
148
140
  */
149
141
  close: EventEmitter<PreventableEvent>;
150
142
  dropdownButton: ElementRef;
@@ -7,6 +7,17 @@ import { ToolBarToolComponent } from './toolbar-tool.component';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Represents the [Kendo UI ToolBar Separator for Angular]({% slug controltypes_toolbar %}#toc-separators).
10
+ *
11
+ * Use this component to add a visual separator between ToolBar tools.
12
+ *
13
+ * @example
14
+ * ```html
15
+ * <kendo-toolbar>
16
+ * <kendo-toolbar-button text="Button 1"></kendo-toolbar-button>
17
+ * <kendo-toolbar-separator></kendo-toolbar-separator>
18
+ * <kendo-toolbar-button text="Button 2"></kendo-toolbar-button>
19
+ * </kendo-toolbar>
20
+ * ```
10
21
  */
11
22
  export declare class ToolBarSeparatorComponent extends ToolBarToolComponent implements AfterViewInit {
12
23
  separator: ElementRef;
@@ -7,6 +7,17 @@ import { ToolBarToolComponent } from './toolbar-tool.component';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Represents the [Kendo UI ToolBar Spacer for Angular]({% slug controltypes_toolbar %}#toc-separators).
10
+ *
11
+ * Use the ToolBar Spacer to add flexible space between ToolBar tools.
12
+ *
13
+ * @example
14
+ * ```html
15
+ * <kendo-toolbar>
16
+ * <kendo-toolbar-button text="Button 1"></kendo-toolbar-button>
17
+ * <kendo-toolbar-spacer></kendo-toolbar-spacer>
18
+ * <kendo-toolbar-button text="Button 2"></kendo-toolbar-button>
19
+ * </kendo-toolbar>
20
+ * ```
10
21
  */
11
22
  export declare class ToolBarSpacerComponent extends ToolBarToolComponent implements AfterViewInit {
12
23
  /**
@@ -13,17 +13,29 @@ import { SVGIcon } from '@progress/kendo-svg-icons';
13
13
  import { ToolBarComponent } from '../toolbar.component';
14
14
  import * as i0 from "@angular/core";
15
15
  /**
16
- * Represents the [Kendo UI ToolBar SplitButton for Angular](slug:controltypes_toolbar#toc-split-buttons).
16
+ * Represents the [Kendo UI ToolBar SplitButton for Angular](slug:controltypes_toolbar#split-buttons).
17
+ *
18
+ * Use the ToolBar SplitButton to create a split button with a main button and a drop-down list of actions in the ToolBar.
19
+ *
20
+ * @example
21
+ * ```html
22
+ * <kendo-toolbar>
23
+ * <kendo-toolbar-splitbutton text="Paste" [data]="data">
24
+ * </kendo-toolbar-splitbutton>
25
+ * </kendo-toolbar>
26
+ * ```
17
27
  */
18
28
  export declare class ToolBarSplitButtonComponent extends ToolBarToolComponent implements OnInit {
19
29
  private host;
20
30
  /**
21
- * Specifies the button text visibility.
31
+ * Controls the button text visibility.
32
+ * @default 'always'
22
33
  */
23
34
  set showText(value: DisplayMode);
24
35
  get showText(): DisplayMode;
25
36
  /**
26
- * Specifies the button icon visibility.
37
+ * Controls the button icon visibility.
38
+ * @default 'always'
27
39
  */
28
40
  set showIcon(value: DisplayMode);
29
41
  get showIcon(): DisplayMode;
@@ -33,64 +45,44 @@ export declare class ToolBarSplitButtonComponent extends ToolBarToolComponent im
33
45
  set text(text: string);
34
46
  get text(): string;
35
47
  /**
36
- * Defines the icon that will be rendered next to the button text
48
+ * Sets the icon rendered next to the button text
37
49
  * ([see example](slug:controltypes_toolbar#toc-split-buttons)).
38
50
  */
39
51
  set icon(icon: string);
40
52
  /**
41
- * Defines an SVGIcon to be rendered within the main button.
42
- * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
53
+ * Sets the `SVGIcon` rendered in the main button.
54
+ * Accepts an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
43
55
  */
44
56
  set svgIcon(icon: SVGIcon);
45
57
  /**
46
- * Defines an icon with a custom CSS class that will be rendered next to the button text.
58
+ * Sets a custom CSS class icon rendered next to the button text.
47
59
  */
48
60
  set iconClass(iconClass: string);
49
61
  /**
50
- * Defines the location of an image that will be displayed next to the button text.
62
+ * Sets a URL for the image displayed next to the button text.
51
63
  */
52
64
  set imageUrl(imageUrl: string);
53
65
  /**
54
- * When set to `true`, disables a SplitButton item.
66
+ * When `true`, disables a SplitButton item.
55
67
  */
56
68
  disabled: boolean;
57
69
  /**
58
70
  * Configures the popup of the SplitButton.
59
- *
60
- * The available options are:
61
- * - `animate:Boolean`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
62
- * - `popupClass:String`&mdash;Specifies a list of CSS classes that are used to style the popup.
71
+ * Accepts a `PopupSettings` object that allows you to customize the popup behavior and appearance.
72
+
63
73
  */
64
74
  set popupSettings(value: PopupSettings);
65
75
  get popupSettings(): PopupSettings;
66
76
  /**
67
- * The fillMode property specifies the background and border styles of the Button.
68
- *
69
- * The available values are:
70
- * * `solid` (default)
71
- * * `flat`
72
- * * `outline`
73
- * * `link`
74
- * * `null`
77
+ * Sets the fill mode for the button.
78
+ * The fill mode represents the background and border styles.
79
+ * @default 'solid'
75
80
  */
76
81
  fillMode: ButtonFillMode;
77
82
  /**
78
- * The Button allows you to specify predefined theme colors.
79
- * The theme color will be applied as a background and border color while also amending the text color accordingly.
80
- *
81
- * The possible values are:
82
- * * `base` &mdash;Applies coloring based on the `base` theme color. (default)
83
- * * `primary` &mdash;Applies coloring based on the `primary` theme color.
84
- * * `secondary`&mdash;Applies coloring based on the `secondary` theme color.
85
- * * `tertiary`&mdash; Applies coloring based on the `tertiary` theme color.
86
- * * `info`&mdash;Applies coloring based on the `info` theme color.
87
- * * `success`&mdash; Applies coloring based on the `success` theme color.
88
- * * `warning`&mdash; Applies coloring based on the `warning` theme color.
89
- * * `error`&mdash; Applies coloring based on the `error` theme color.
90
- * * `dark`&mdash; Applies coloring based on the `dark` theme color.
91
- * * `light`&mdash; Applies coloring based on the `light` theme color.
92
- * * `inverse`&mdash; Applies coloring based on the `inverse` theme color.
93
- * * `null` &mdash;Removes the default CSS class (no class would be rendered).
83
+ * Sets the predefined theme color for the button.
84
+ * The theme color applies to the background, border, and text.
85
+ * @default 'base'
94
86
  */
95
87
  themeColor: ButtonThemeColor;
96
88
  /**
@@ -98,53 +90,52 @@ export declare class ToolBarSplitButtonComponent extends ToolBarToolComponent im
98
90
  */
99
91
  set look(look: 'default' | 'flat' | 'outline');
100
92
  /**
101
- * The CSS classes that will be rendered on the main button.
102
- * Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
93
+ * Sets the CSS classes for the main button.
94
+ * Accepts values supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
103
95
  */
104
96
  buttonClass: string;
105
97
  /**
106
- * The CSS classes that will be rendered on the button which opens the popup.
107
- * Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
98
+ * Sets the CSS classes for the arrow button that opens the popup.
99
+ * Accepts values supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
108
100
  */
109
101
  arrowButtonClass: any;
110
102
  /**
111
- * Specifies the name of the [font icon](slug:icons#icons-list) that will
112
- * be rendered for the button which opens the popup.
103
+ * Sets the name of the [font icon](slug:icons#icons-list) for the arrow button.
113
104
  */
114
105
  arrowButtonIcon: string;
115
106
  /**
116
- * Specifies the [`SVGIcon`](slug:api_icons_svgicon) that will
117
- * be rendered for the button which opens the popup.
107
+ * Sets the [`SVGIcon`](slug:api_icons_svgicon) for the arrow button.
118
108
  */
119
109
  arrowButtonSvgIcon: SVGIcon;
120
110
  /**
121
- * Configures the text field of the button-list popup.
111
+ * Sets the text field for the button-list popup.
112
+ * @default 'text'
122
113
  */
123
114
  textField: string;
124
115
  /**
125
116
  * Sets the data of the SplitButton ([see example](slug:controltypes_toolbar#toc-split-buttons)).
126
117
  *
127
- * > The data has to be provided in an array-like list.
118
+ * > Provide the data as an array-like list.
128
119
  */
129
120
  set data(data: any[]);
130
121
  get data(): any[];
131
122
  /**
132
- * Fires each time the user clicks the main button.
123
+ * Fires when the user clicks the main button.
133
124
  */
134
125
  buttonClick: EventEmitter<any>;
135
126
  /**
136
- * Fires each time the user clicks the drop-down list.
137
- * The event data contains the data item that is bound to the clicked list item.
127
+ * Fires when the user clicks a drop-down list item.
128
+ * The event data contains the clicked item's data.
138
129
  */
139
130
  itemClick: EventEmitter<any>;
140
131
  /**
141
- * Fires each time the popup is about to open.
142
- * This event is preventable. If you cancel the event, the popup will remain closed.
132
+ * Fires when the popup is about to open.
133
+ * This event is preventable. If you cancel the event, the popup stays closed.
143
134
  */
144
135
  open: EventEmitter<PreventableEvent>;
145
136
  /**
146
- * Fires each time the popup is about to close.
147
- * This event is preventable. If you cancel the event, the popup will remain open.
137
+ * Fires when the popup is about to close.
138
+ * This event is preventable. If you cancel the event, the popup stays open.
148
139
  */
149
140
  close: EventEmitter<PreventableEvent>;
150
141
  toolbarOptions: ToolOptions;
@@ -6,8 +6,27 @@ import { TemplateRef, ElementRef } from '@angular/core';
6
6
  import { RenderLocation } from '../render-location';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
- * Represents the Base ToolBar Tool component for Angular.
10
- * Extend this class to create custom tools.
9
+ * Represents the base ToolBar Tool component for Angular.
10
+ *
11
+ * Extend this class to create a custom tool for the ToolBar.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * import { Component } from '@angular/core';
16
+ * import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
17
+ *
18
+ * @Component({
19
+ * providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => CustomToolComponent) }],
20
+ * selector: 'custom-tool',
21
+ * })
22
+ *
23
+ * export class CustomToolComponent extends ToolBarToolComponent {
24
+ *
25
+ * constructor() {
26
+ * super();
27
+ * }
28
+ * }
29
+ * ```
11
30
  */
12
31
  export declare class ToolBarToolComponent {
13
32
  toolbarTemplate: TemplateRef<any>;
@@ -34,23 +53,23 @@ export declare class ToolBarToolComponent {
34
53
  get toolbarDisplay(): string;
35
54
  get overflowDisplay(): string;
36
55
  /**
37
- * Determines if the tool can be focused.
38
- * If the returned value is `false`, the tool will not be part of the keyboard navigation.
39
- * @returns `true` if the tool should take part in keyboard navigation.
56
+ * Determines if the tool can receive focus.
57
+ * Returns `true` if the tool participates in keyboard navigation.
58
+ * @returns `true` if the tool is focusable.
40
59
  */
41
60
  canFocus(): boolean;
42
61
  /**
43
- * Called when the tool is focused.
44
- * The method accepts as argument the original browser event, which can be a `KeyboardEvent`, `MouseEvent` or `FocusEvent`.
45
- * @param {Event} _ev - This is the event that caused the tool to be focused.
62
+ * Called when the tool receives focus.
63
+ * Accepts the original browser event, which can be a `KeyboardEvent`, `MouseEvent`, or `FocusEvent`.
64
+ * @param {Event} _ev - The event that triggers focus for the tool.
46
65
  */
47
66
  focus(_ev?: Event): void;
48
67
  /**
49
- * Called when the tool is focused and one of the arrow keys is pressed.
50
- * The returned boolean value determines whether the `ToolBarComponent` will move the focus to the next/previous `ToolBarToolComponent`
68
+ * Called when the tool is focused and an arrow key is pressed.
69
+ * Returns a boolean value that determines if the `ToolBarComponent` moves focus to the next or previous tool
51
70
  * ([see example]({% slug customcontroltypes_toolbar %}#toc-adding-keyboard-navigation)).
52
- * @param {KeyboardEvent} _ev - The last pressed arrow key
53
- * @returns a boolean value determines whether the focus will move to the next/previous component.
71
+ * @param {KeyboardEvent} _ev - The last pressed arrow key.
72
+ * @returns `true` if focus moves to another tool.
54
73
  */
55
74
  handleKey(_ev: KeyboardEvent): boolean;
56
75
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarToolComponent, never>;