@progress/kendo-angular-toolbar 19.0.0-develop.9 → 19.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-toolbar",
3
- "version": "19.0.0-develop.9",
3
+ "version": "19.0.1-develop.1",
4
4
  "description": "Kendo UI Angular Toolbar component - a single UI element that organizes buttons and other navigation elements",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -22,10 +22,30 @@
22
22
  ],
23
23
  "@progress": {
24
24
  "friendlyName": "ToolBar",
25
+ "migrations": {
26
+ "options": {
27
+ "parser": "tsx",
28
+ "pattern": "*.{ts,html}"
29
+ },
30
+ "codemods": {
31
+ "19": [
32
+ {
33
+ "description": "Migrate showIcon's overflow value to menu and both value to always",
34
+ "file": "codemods/v19/toolbar-button-showicon.js",
35
+ "prompt": "true"
36
+ },
37
+ {
38
+ "description": "Migrate showText's overflow value to menu and both value to always",
39
+ "file": "codemods/v19/toolbar-button-showtext.js",
40
+ "prompt": "true"
41
+ }
42
+ ]
43
+ }
44
+ },
25
45
  "package": {
26
46
  "productName": "Kendo UI for Angular",
27
47
  "productCode": "KENDOUIANGULAR",
28
- "publishDate": 1746776454,
48
+ "publishDate": 1748425301,
29
49
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
30
50
  }
31
51
  },
@@ -35,16 +55,17 @@
35
55
  "@angular/core": "16 - 19",
36
56
  "@angular/platform-browser": "16 - 19",
37
57
  "@progress/kendo-licensing": "^1.5.0",
38
- "@progress/kendo-angular-buttons": "19.0.0-develop.9",
39
- "@progress/kendo-angular-common": "19.0.0-develop.9",
40
- "@progress/kendo-angular-l10n": "19.0.0-develop.9",
41
- "@progress/kendo-angular-icons": "19.0.0-develop.9",
42
- "@progress/kendo-angular-popup": "19.0.0-develop.9",
58
+ "@progress/kendo-angular-buttons": "19.0.1-develop.1",
59
+ "@progress/kendo-angular-common": "19.0.1-develop.1",
60
+ "@progress/kendo-angular-l10n": "19.0.1-develop.1",
61
+ "@progress/kendo-angular-icons": "19.0.1-develop.1",
62
+ "@progress/kendo-angular-indicators": "19.0.1-develop.1",
63
+ "@progress/kendo-angular-popup": "19.0.1-develop.1",
43
64
  "rxjs": "^6.5.3 || ^7.0.0"
44
65
  },
45
66
  "dependencies": {
46
67
  "tslib": "^2.3.1",
47
- "@progress/kendo-angular-schematics": "19.0.0-develop.9"
68
+ "@progress/kendo-angular-schematics": "19.0.1-develop.1"
48
69
  },
49
70
  "schematics": "./schematics/collection.json",
50
71
  "module": "fesm2022/progress-kendo-angular-toolbar.mjs",
@@ -41,6 +41,7 @@ export declare class ToolBarRendererComponent implements OnInit, OnDestroy {
41
41
  setAttribute(element: HTMLElement, attr: string, value: string): void;
42
42
  private onClick;
43
43
  private updateTools;
44
+ private hideTool;
44
45
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarRendererComponent, never>;
45
46
  static ɵdir: i0.ɵɵDirectiveDeclaration<ToolBarRendererComponent, "[kendoToolbarRenderer]", never, { "tool": { "alias": "tool"; "required": false; }; "location": { "alias": "location"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; }, { "rendererClick": "rendererClick"; }, never, never, true, never>;
46
47
  }
@@ -21,6 +21,7 @@ import { OverflowMode } from './common/overflow-mode';
21
21
  import { ToolbarOverflowSettings } from './common/overflow-settings';
22
22
  import { ToolbarScrollButtonsPosition } from './common/scroll-buttons';
23
23
  import { ScrollService } from './scroll.service';
24
+ import { DisplayMode } from './display-mode';
24
25
  import * as i0 from "@angular/core";
25
26
  /**
26
27
  * Represents the [Kendo UI ToolBar component for Angular]({% slug overview_toolbar %}).
@@ -28,7 +29,7 @@ import * as i0 from "@angular/core";
28
29
  export declare class ToolBarComponent {
29
30
  localization: LocalizationService;
30
31
  private popupService;
31
- private refreshService;
32
+ refreshService: RefreshService;
32
33
  private navigationService;
33
34
  element: ElementRef;
34
35
  private zone;
@@ -105,6 +106,16 @@ export declare class ToolBarComponent {
105
106
  */
106
107
  set tabIndex(tabIndex: number);
107
108
  get tabIndex(): number;
109
+ /**
110
+ * Specifies the icons visibility for all tools in the ToolBar.
111
+ * This can be overridden by the `showIcon` property of each tool.
112
+ */
113
+ set showIcon(value: DisplayMode | boolean);
114
+ /**
115
+ * Specifies the text visibility for all tools in the ToolBar.
116
+ * This can be overridden by the `showText` property of each tool.
117
+ */
118
+ set showText(value: DisplayMode | boolean);
108
119
  /**
109
120
  * Fires when the overflow popup of the ToolBar is opened.
110
121
  */
@@ -138,6 +149,13 @@ export declare class ToolBarComponent {
138
149
  * @hidden
139
150
  */
140
151
  nextButtonIcon: SVGIcon;
152
+ /**
153
+ * @hidden
154
+ */
155
+ propertyChange: EventEmitter<{
156
+ property: string;
157
+ value: any;
158
+ }>;
141
159
  hostClass: boolean;
142
160
  get scrollableClass(): boolean;
143
161
  get sectionClass(): boolean;
@@ -152,6 +170,8 @@ export declare class ToolBarComponent {
152
170
  private cachedGap;
153
171
  private _size;
154
172
  private _fillMode;
173
+ private _showText;
174
+ private _showIcon;
155
175
  private overflowButtonClickedTime;
156
176
  private showAutoButtons;
157
177
  private scrollButtonStateChangeSub;
@@ -259,6 +279,7 @@ export declare class ToolBarComponent {
259
279
  private setScrollableOverlayClasses;
260
280
  private handleScrollModeUpdates;
261
281
  private removeSubscriptions;
282
+ private normalizeDisplayValue;
262
283
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarComponent, never>;
263
- static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarComponent, "kendo-toolbar", ["kendoToolBar"], { "overflow": { "alias": "overflow"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "size": { "alias": "size"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "open": "open"; "close": "close"; }, ["allTools"], never, true, never>;
284
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarComponent, "kendo-toolbar", ["kendoToolBar"], { "overflow": { "alias": "overflow"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "size": { "alias": "size"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; }, { "open": "open"; "close": "close"; }, ["allTools"], never, true, never>;
264
285
  }
@@ -8,6 +8,7 @@ import { DisplayMode } from '../display-mode';
8
8
  import { ToolOptions } from '../tool-options';
9
9
  import { ButtonFillMode, ButtonThemeColor } from '@progress/kendo-angular-buttons';
10
10
  import { SVGIcon } from '@progress/kendo-svg-icons';
11
+ import { ToolBarComponent } from '../toolbar.component';
11
12
  import * as i0 from "@angular/core";
12
13
  /**
13
14
  * Represents the [Kendo UI ToolBar Button tool for Angular]({% slug controltypes_toolbar %}#toc-buttons).
@@ -15,20 +16,26 @@ import * as i0 from "@angular/core";
15
16
  export declare class ToolBarButtonComponent extends ToolBarToolComponent {
16
17
  element: ElementRef;
17
18
  private zone;
19
+ host: ToolBarComponent;
18
20
  /**
19
- * Specifies where button text should be displayed
21
+ * Specifies the button text visibility.
20
22
  */
21
23
  set showText(value: DisplayMode);
22
24
  get showText(): DisplayMode;
23
25
  /**
24
- * Specifies where button icon should be displayed
26
+ * Specifies the button icon visibility.
25
27
  */
26
- showIcon: DisplayMode;
28
+ set showIcon(value: DisplayMode);
29
+ get showIcon(): DisplayMode;
27
30
  /**
28
31
  * Specifies the text of the Button ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
29
32
  */
30
33
  set text(text: string);
31
34
  get text(): string;
35
+ /**
36
+ * @hidden
37
+ */
38
+ get size(): any;
32
39
  /**
33
40
  * Specifies custom inline CSS styles of the Button.
34
41
  */
@@ -136,6 +143,10 @@ export declare class ToolBarButtonComponent extends ToolBarToolComponent {
136
143
  selectedChange: EventEmitter<any>;
137
144
  toolbarOptions: ToolOptions;
138
145
  overflowOptions: ToolOptions;
146
+ /**
147
+ * @hidden
148
+ */
149
+ hasBadgeContainer: boolean;
139
150
  /**
140
151
  * @hidden
141
152
  */
@@ -144,9 +155,12 @@ export declare class ToolBarButtonComponent extends ToolBarToolComponent {
144
155
  sectionButtonElement: ElementRef;
145
156
  private overflowButtonElement;
146
157
  private _showText;
158
+ private _showIcon;
147
159
  private _text;
148
- constructor(element: ElementRef, zone: NgZone);
160
+ private propertyChangeSub;
161
+ constructor(element: ElementRef, zone: NgZone, host: ToolBarComponent);
149
162
  ngOnInit(): void;
163
+ ngOnDestroy(): void;
150
164
  /**
151
165
  * @hidden
152
166
  */
@@ -171,7 +185,10 @@ export declare class ToolBarButtonComponent extends ToolBarToolComponent {
171
185
  * @hidden
172
186
  */
173
187
  selectedChangeHandler(state: boolean): void;
174
- private getButton;
188
+ /**
189
+ * @hidden
190
+ */
191
+ getButton(): HTMLElement;
175
192
  private setTextDisplayMode;
176
193
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarButtonComponent, never>;
177
194
  static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarButtonComponent, "kendo-toolbar-button", ["kendoToolBarButton"], { "showText": { "alias": "showText"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "text": { "alias": "text"; "required": false; }; "style": { "alias": "style"; "required": false; }; "className": { "alias": "className"; "required": false; }; "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; "look": { "alias": "look"; "required": false; }; "togglable": { "alias": "togglable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; }, { "click": "click"; "pointerdown": "pointerdown"; "selectedChange": "selectedChange"; }, never, never, true, never>;
@@ -8,12 +8,14 @@ import { ToolBarToolComponent } from './toolbar-tool.component';
8
8
  import { ToolBarButtonComponent } from './toolbar-button.component';
9
9
  import { ButtonGroupSelection } from '../group-selection-settings';
10
10
  import { PreventableEvent } from '@progress/kendo-angular-buttons';
11
+ import { ToolBarComponent } from '../toolbar.component';
11
12
  import * as i0 from "@angular/core";
12
13
  /**
13
14
  * Represents the Kendo UI Toolbar ButtonGroup for Angular.
14
15
  */
15
16
  export declare class ToolBarButtonGroupComponent extends ToolBarToolComponent {
16
17
  private localization;
18
+ private host;
17
19
  /**
18
20
  * By default, the ButtonGroup is enabled. To disable the whole group of buttons, set its `disabled`
19
21
  * attribute to `true`. To disable a specific button, set the `disabled` attribute of the button to
@@ -52,7 +54,7 @@ export declare class ToolBarButtonGroupComponent extends ToolBarToolComponent {
52
54
  private focusedIndex;
53
55
  private getNextKey;
54
56
  private getPrevKey;
55
- constructor(localization: LocalizationService);
57
+ constructor(localization: LocalizationService, host: ToolBarComponent);
56
58
  /**
57
59
  * @hidden
58
60
  */
@@ -93,6 +95,10 @@ export declare class ToolBarButtonGroupComponent extends ToolBarToolComponent {
93
95
  * @hidden
94
96
  */
95
97
  getIconClasses(button: any): any;
98
+ /**
99
+ * @hidden
100
+ */
101
+ get size(): any;
96
102
  private focusButton;
97
103
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarButtonGroupComponent, never>;
98
104
  static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarButtonGroupComponent, "kendo-toolbar-buttongroup", ["kendoToolBarButtonGroup"], { "disabled": { "alias": "disabled"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "width": { "alias": "width"; "required": false; }; "look": { "alias": "look"; "required": false; }; }, {}, ["buttonComponents"], never, true, never>;
@@ -10,6 +10,7 @@ import { DisplayMode } from '../display-mode';
10
10
  import { ToolOptions } from '../tool-options';
11
11
  import { PreventableEvent } from '@progress/kendo-angular-buttons';
12
12
  import { SVGIcon } from '@progress/kendo-svg-icons';
13
+ import { ToolBarComponent } from '../toolbar.component';
13
14
  import * as i0 from "@angular/core";
14
15
  /**
15
16
  * Represents the [Kendo UI ToolBar DropDownButton for Angular](slug:controltypes_toolbar#drop-down-buttons).
@@ -17,6 +18,7 @@ import * as i0 from "@angular/core";
17
18
  export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent implements OnInit {
18
19
  private zone;
19
20
  private renderer;
21
+ private host;
20
22
  /**
21
23
  * Allows showing the default arrow icon or providing alternative one instead.
22
24
  * @default false
@@ -28,14 +30,15 @@ export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent
28
30
  */
29
31
  title: string;
30
32
  /**
31
- * Defines the location of the button text that will be displayed.
33
+ * Specifies the button text visibility.
32
34
  */
33
35
  set showText(value: DisplayMode);
34
36
  get showText(): DisplayMode;
35
37
  /**
36
- * Defines the location of the button icon that will be displayed.
38
+ * Specifies the button icon visibility.
37
39
  */
38
- showIcon: DisplayMode;
40
+ set showIcon(value: DisplayMode);
41
+ get showIcon(): DisplayMode;
39
42
  /**
40
43
  * Sets the text of the DropDownButton
41
44
  * ([see example](slug:controltypes_toolbar#toc-drop-down-buttons)).
@@ -155,16 +158,23 @@ export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent
155
158
  private _popupSettings;
156
159
  private focusedIndex;
157
160
  private _showText;
161
+ private _showIcon;
158
162
  private _text;
163
+ private propertyChangeSub;
159
164
  private getNextKey;
160
165
  private getPrevKey;
161
- constructor(zone: NgZone, renderer: Renderer2);
166
+ constructor(zone: NgZone, renderer: Renderer2, host: ToolBarComponent);
162
167
  ngOnInit(): void;
168
+ ngOnDestroy(): void;
163
169
  ngAfterViewInit(): void;
164
170
  /**
165
171
  * @hidden
166
172
  */
167
173
  onButtonListClick(ev: MouseEvent): void;
174
+ /**
175
+ * @hidden
176
+ */
177
+ get size(): any;
168
178
  /**
169
179
  * @hidden
170
180
  */
@@ -10,20 +10,23 @@ import { DisplayMode } from '../display-mode';
10
10
  import { ToolOptions } from '../tool-options';
11
11
  import { PreventableEvent } from '@progress/kendo-angular-buttons';
12
12
  import { SVGIcon } from '@progress/kendo-svg-icons';
13
+ import { ToolBarComponent } from '../toolbar.component';
13
14
  import * as i0 from "@angular/core";
14
15
  /**
15
16
  * Represents the [Kendo UI ToolBar SplitButton for Angular](slug:controltypes_toolbar#toc-split-buttons).
16
17
  */
17
18
  export declare class ToolBarSplitButtonComponent extends ToolBarToolComponent implements OnInit {
19
+ private host;
18
20
  /**
19
- * Specifies where button text should be displayed
21
+ * Specifies the button text visibility.
20
22
  */
21
23
  set showText(value: DisplayMode);
22
24
  get showText(): DisplayMode;
23
25
  /**
24
- * Specifies where button icon should be displayed
26
+ * Specifies the button icon visibility.
25
27
  */
26
- showIcon: DisplayMode;
28
+ set showIcon(value: DisplayMode);
29
+ get showIcon(): DisplayMode;
27
30
  /**
28
31
  * Sets the text of the SplitButton ([see example](slug:controltypes_toolbar#toc-split-buttons)).
29
32
  */
@@ -147,19 +150,22 @@ export declare class ToolBarSplitButtonComponent extends ToolBarToolComponent im
147
150
  toolbarOptions: ToolOptions;
148
151
  overflowOptions: ToolOptions;
149
152
  ngOnInit(): void;
153
+ ngOnDestroy(): void;
150
154
  private get overflowButtons();
151
155
  private _data;
152
156
  private _popupSettings;
153
157
  private focusedIndex;
154
158
  private _showText;
159
+ private _showIcon;
155
160
  private _text;
161
+ private propertyChangeSub;
156
162
  private getNextKey;
157
163
  private getPrevKey;
158
164
  private toolbarSplitButton;
159
165
  private sectionSplitButton;
160
166
  private overflowMainButton;
161
167
  overflowListItems: QueryList<ElementRef>;
162
- constructor();
168
+ constructor(host: ToolBarComponent);
163
169
  /**
164
170
  * @hidden
165
171
  */
@@ -172,6 +178,10 @@ export declare class ToolBarSplitButtonComponent extends ToolBarToolComponent im
172
178
  * @hidden
173
179
  */
174
180
  canFocus(): boolean;
181
+ /**
182
+ * @hidden
183
+ */
184
+ get size(): any;
175
185
  /**
176
186
  * @hidden
177
187
  */
@@ -18,6 +18,10 @@ export declare class ToolBarToolComponent {
18
18
  visibility: string;
19
19
  element: ElementRef;
20
20
  isBuiltInTool: boolean;
21
+ /**
22
+ * @hidden
23
+ */
24
+ isHidden: boolean;
21
25
  /**
22
26
  * @hidden
23
27
  */