@progress/kendo-angular-toolbar 11.0.0-develop.102 → 11.0.0-develop.103
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/common/{constants.d.ts → size.d.ts} +3 -2
- package/esm2020/common/{constants.mjs → size.mjs} +1 -4
- package/esm2020/package-metadata.mjs +1 -1
- package/esm2020/renderer.component.mjs +5 -1
- package/esm2020/toolbar.component.mjs +88 -27
- package/esm2020/tools/toolbar-button.component.mjs +69 -44
- package/esm2020/tools/toolbar-buttongroup.component.mjs +82 -69
- package/esm2020/tools/toolbar-dropdownbutton.component.mjs +100 -55
- package/esm2020/tools/toolbar-separator.component.mjs +12 -0
- package/esm2020/tools/toolbar-splitbutton.component.mjs +103 -64
- package/esm2020/util.mjs +24 -0
- package/fesm2015/progress-kendo-angular-toolbar.mjs +569 -345
- package/fesm2020/progress-kendo-angular-toolbar.mjs +568 -345
- package/index.d.ts +1 -0
- package/package.json +6 -6
- package/renderer.component.d.ts +1 -0
- package/toolbar.component.d.ts +18 -2
- package/tools/toolbar-button.component.d.ts +18 -1
- package/tools/toolbar-buttongroup.component.d.ts +15 -4
- package/tools/toolbar-dropdownbutton.component.d.ts +14 -2
- package/tools/toolbar-splitbutton.component.d.ts +15 -3
- package/util.d.ts +21 -0
package/index.d.ts
CHANGED
|
@@ -17,3 +17,4 @@ export { ToolBarModule } from './toolbar.module';
|
|
|
17
17
|
export { LocalizedToolbarMessagesDirective } from './localization/localized-toolbar-messages.directive';
|
|
18
18
|
export { ToolbarCustomMessagesComponent } from './localization/custom-messages.component';
|
|
19
19
|
export { RefreshService } from './refresh.service';
|
|
20
|
+
export { ToolbarSize } from './common/size';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-toolbar",
|
|
3
|
-
"version": "11.0.0-develop.
|
|
3
|
+
"version": "11.0.0-develop.103",
|
|
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",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"@angular/core": "13 - 15",
|
|
30
30
|
"@angular/platform-browser": "13 - 15",
|
|
31
31
|
"@progress/kendo-licensing": "^1.0.2",
|
|
32
|
-
"@progress/kendo-angular-buttons": "11.0.0-develop.
|
|
33
|
-
"@progress/kendo-angular-common": "11.0.0-develop.
|
|
34
|
-
"@progress/kendo-angular-l10n": "11.0.0-develop.
|
|
35
|
-
"@progress/kendo-angular-popup": "11.0.0-develop.
|
|
36
|
-
"@progress/kendo-angular-schematics": "11.0.0-develop.
|
|
32
|
+
"@progress/kendo-angular-buttons": "11.0.0-develop.103",
|
|
33
|
+
"@progress/kendo-angular-common": "11.0.0-develop.103",
|
|
34
|
+
"@progress/kendo-angular-l10n": "11.0.0-develop.103",
|
|
35
|
+
"@progress/kendo-angular-popup": "11.0.0-develop.103",
|
|
36
|
+
"@progress/kendo-angular-schematics": "11.0.0-develop.103",
|
|
37
37
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
package/renderer.component.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare class ToolBarRendererComponent implements OnInit, OnDestroy {
|
|
|
32
32
|
rendererClick: EventEmitter<RendererClickPayload>;
|
|
33
33
|
template: TemplateRef<any>;
|
|
34
34
|
get spacerClass(): boolean;
|
|
35
|
+
hostClass: boolean;
|
|
35
36
|
private get isSpacer();
|
|
36
37
|
private refreshSubscription;
|
|
37
38
|
onClick(ev: any): void;
|
package/toolbar.component.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { RefreshService } from './refresh.service';
|
|
|
10
10
|
import { NavigationService } from './navigation.service';
|
|
11
11
|
import { PopupSettings } from './popup-settings';
|
|
12
12
|
import { ToolBarToolComponent } from './tools/toolbar-tool.component';
|
|
13
|
+
import { ToolbarSize } from './common/size';
|
|
13
14
|
import { PreventableEvent } from './common/preventable-event';
|
|
14
15
|
import { ToolBarRendererComponent } from './renderer.component';
|
|
15
16
|
import { Direction } from './direction';
|
|
@@ -27,6 +28,7 @@ export declare class ToolBarComponent {
|
|
|
27
28
|
private zone;
|
|
28
29
|
private renderer;
|
|
29
30
|
private _cdr;
|
|
31
|
+
get overflowClass(): string;
|
|
30
32
|
/**
|
|
31
33
|
* Hides the overflowing tools in a popup.
|
|
32
34
|
*/
|
|
@@ -49,6 +51,17 @@ export declare class ToolBarComponent {
|
|
|
49
51
|
* Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the ToolBar.
|
|
50
52
|
*/
|
|
51
53
|
tabindex: number;
|
|
54
|
+
/**
|
|
55
|
+
* Specifies the padding of all Toolbar elements.
|
|
56
|
+
*
|
|
57
|
+
* The possible values are:
|
|
58
|
+
* * `small`
|
|
59
|
+
* * `medium` (default)
|
|
60
|
+
* * `large`
|
|
61
|
+
* * `none`
|
|
62
|
+
*/
|
|
63
|
+
set size(size: ToolbarSize);
|
|
64
|
+
get size(): ToolbarSize;
|
|
52
65
|
/**
|
|
53
66
|
* @hidden
|
|
54
67
|
*/
|
|
@@ -74,7 +87,7 @@ export declare class ToolBarComponent {
|
|
|
74
87
|
get appendTo(): ViewContainerRef;
|
|
75
88
|
set popupOpen(open: boolean);
|
|
76
89
|
get popupOpen(): boolean;
|
|
77
|
-
|
|
90
|
+
hostClass: boolean;
|
|
78
91
|
private _popupSettings;
|
|
79
92
|
private cachedOverflowAnchorWidth;
|
|
80
93
|
private _open;
|
|
@@ -82,6 +95,7 @@ export declare class ToolBarComponent {
|
|
|
82
95
|
private overflowKeydownListener;
|
|
83
96
|
private cancelRenderedToolsSubscription$;
|
|
84
97
|
private cachedGap;
|
|
98
|
+
private _size;
|
|
85
99
|
private subscriptions;
|
|
86
100
|
private popupSubs;
|
|
87
101
|
/**
|
|
@@ -154,6 +168,8 @@ export declare class ToolBarComponent {
|
|
|
154
168
|
private showFirstHiddenTool;
|
|
155
169
|
private setPopupContentDimensions;
|
|
156
170
|
private destroyPopup;
|
|
171
|
+
private handleClasses;
|
|
172
|
+
private normalizePopupClasses;
|
|
157
173
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarComponent, never>;
|
|
158
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarComponent, "kendo-toolbar", ["kendoToolBar"], { "overflow": "overflow"; "resizable": "resizable"; "popupSettings": "popupSettings"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; }, { "open": "open"; "close": "close"; }, ["allTools"], never>;
|
|
174
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarComponent, "kendo-toolbar", ["kendoToolBar"], { "overflow": "overflow"; "resizable": "resizable"; "popupSettings": "popupSettings"; "tabindex": "tabindex"; "size": "size"; "tabIndex": "tabIndex"; }, { "open": "open"; "close": "close"; }, ["allTools"], never>;
|
|
159
175
|
}
|
|
@@ -12,6 +12,7 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
* Represents the [Kendo UI ToolBar Button tool for Angular]({% slug controltypes_toolbar %}#toc-buttons).
|
|
13
13
|
*/
|
|
14
14
|
export declare class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
15
|
+
element: ElementRef;
|
|
15
16
|
/**
|
|
16
17
|
* Specifies where button text should be displayed
|
|
17
18
|
*/
|
|
@@ -132,7 +133,7 @@ export declare class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
132
133
|
toolbarButtonElement: ElementRef;
|
|
133
134
|
private overflowButtonElement;
|
|
134
135
|
private _showText;
|
|
135
|
-
constructor();
|
|
136
|
+
constructor(element: ElementRef);
|
|
136
137
|
ngOnInit(): void;
|
|
137
138
|
/**
|
|
138
139
|
* @hidden
|
|
@@ -150,6 +151,22 @@ export declare class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
150
151
|
* @hidden
|
|
151
152
|
*/
|
|
152
153
|
handleKey(): boolean;
|
|
154
|
+
/**
|
|
155
|
+
* @hidden
|
|
156
|
+
*/
|
|
157
|
+
get toolbarButtonClass(): string;
|
|
158
|
+
/**
|
|
159
|
+
* @hidden
|
|
160
|
+
*/
|
|
161
|
+
handleClick(ev: Event): void;
|
|
162
|
+
/**
|
|
163
|
+
* @hidden
|
|
164
|
+
*/
|
|
165
|
+
getIconClasses(): string;
|
|
166
|
+
/**
|
|
167
|
+
* @hidden
|
|
168
|
+
*/
|
|
169
|
+
selectedChangeHandler(state: boolean): void;
|
|
153
170
|
private getButton;
|
|
154
171
|
private setTextDisplayMode;
|
|
155
172
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarButtonComponent, never>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef, QueryList } from '@angular/core';
|
|
5
|
+
import { TemplateRef, QueryList, ElementRef } from '@angular/core';
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
8
8
|
import { ToolBarButtonComponent } from './toolbar-button.component';
|
|
@@ -40,10 +40,10 @@ export declare class ToolBarButtonGroupComponent extends ToolBarToolComponent {
|
|
|
40
40
|
set look(look: 'default' | 'flat' | 'outline');
|
|
41
41
|
toolbarTemplate: TemplateRef<any>;
|
|
42
42
|
popupTemplate: TemplateRef<any>;
|
|
43
|
+
private toolbarButtonGroup;
|
|
44
|
+
overflowListItems: QueryList<ElementRef>;
|
|
43
45
|
buttonComponents: QueryList<ToolBarButtonComponent>;
|
|
44
46
|
private get buttonElements();
|
|
45
|
-
private toolbarButtonGroup;
|
|
46
|
-
private overflowButtonGroup;
|
|
47
47
|
private focusedIndex;
|
|
48
48
|
private getNextKey;
|
|
49
49
|
private getPrevKey;
|
|
@@ -60,6 +60,10 @@ export declare class ToolBarButtonGroupComponent extends ToolBarToolComponent {
|
|
|
60
60
|
* @hidden
|
|
61
61
|
*/
|
|
62
62
|
selectedChangeHandler(state: boolean, button: ToolBarButtonComponent): void;
|
|
63
|
+
/**
|
|
64
|
+
* @hidden
|
|
65
|
+
*/
|
|
66
|
+
overflowSelectedChangeHandler(button: ToolBarButtonComponent): void;
|
|
63
67
|
/**
|
|
64
68
|
* @hidden
|
|
65
69
|
*/
|
|
@@ -76,7 +80,14 @@ export declare class ToolBarButtonGroupComponent extends ToolBarToolComponent {
|
|
|
76
80
|
* @hidden
|
|
77
81
|
*/
|
|
78
82
|
handleKey(ev: any): boolean;
|
|
79
|
-
|
|
83
|
+
/**
|
|
84
|
+
* @hidden
|
|
85
|
+
*/
|
|
86
|
+
handleClick(ev: any, button: ToolBarButtonComponent): void;
|
|
87
|
+
/**
|
|
88
|
+
* @hidden
|
|
89
|
+
*/
|
|
90
|
+
getIconClasses(button: any): any;
|
|
80
91
|
private focusButton;
|
|
81
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarButtonGroupComponent, never>;
|
|
82
93
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarButtonGroupComponent, "kendo-toolbar-buttongroup", ["kendoToolBarButtonGroup"], { "disabled": "disabled"; "selection": "selection"; "width": "width"; "look": "look"; }, {}, ["buttonComponents"], never>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef, TemplateRef, EventEmitter, OnInit } from '@angular/core';
|
|
5
|
+
import { ElementRef, TemplateRef, EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
6
6
|
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
7
7
|
import { PopupSettings } from '../popup-settings';
|
|
8
8
|
import { ButtonFillMode, ButtonThemeColor, DropDownButtonComponent } from '@progress/kendo-angular-buttons';
|
|
@@ -129,12 +129,12 @@ export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent
|
|
|
129
129
|
popupTemplate: TemplateRef<any>;
|
|
130
130
|
dropdownButton: ElementRef;
|
|
131
131
|
dropDownButtonComponent: DropDownButtonComponent;
|
|
132
|
+
overflowListItems: QueryList<ElementRef>;
|
|
132
133
|
toolbarOptions: ToolOptions;
|
|
133
134
|
overflowOptions: ToolOptions;
|
|
134
135
|
ngOnInit(): void;
|
|
135
136
|
private get overflowButtons();
|
|
136
137
|
private toolbarDropDownButton;
|
|
137
|
-
private overflowDropDownButtonButtonList;
|
|
138
138
|
private _data;
|
|
139
139
|
private _popupSettings;
|
|
140
140
|
private focusedIndex;
|
|
@@ -158,6 +158,18 @@ export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent
|
|
|
158
158
|
* @hidden
|
|
159
159
|
*/
|
|
160
160
|
handleKey(ev: any): boolean;
|
|
161
|
+
/**
|
|
162
|
+
* @hidden
|
|
163
|
+
*/
|
|
164
|
+
getIconClasses(item?: any): any;
|
|
165
|
+
/**
|
|
166
|
+
* @hidden
|
|
167
|
+
*/
|
|
168
|
+
getText(dataItem: any): any;
|
|
169
|
+
/**
|
|
170
|
+
* @hidden
|
|
171
|
+
*/
|
|
172
|
+
handleClick(ev: any, item: any, index: number): void;
|
|
161
173
|
private focusButton;
|
|
162
174
|
private setTextDisplayMode;
|
|
163
175
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarDropDownButtonComponent, never>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef, EventEmitter, OnInit } from '@angular/core';
|
|
5
|
+
import { TemplateRef, ElementRef, EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
6
6
|
import { ButtonFillMode, ButtonThemeColor } from '@progress/kendo-angular-buttons';
|
|
7
7
|
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
8
8
|
import { PopupSettings } from '../popup-settings';
|
|
@@ -145,8 +145,8 @@ export declare class ToolBarSplitButtonComponent extends ToolBarToolComponent im
|
|
|
145
145
|
private getNextKey;
|
|
146
146
|
private getPrevKey;
|
|
147
147
|
private toolbarSplitButton;
|
|
148
|
-
private
|
|
149
|
-
|
|
148
|
+
private overflowMainButton;
|
|
149
|
+
overflowListItems: QueryList<ElementRef>;
|
|
150
150
|
constructor();
|
|
151
151
|
/**
|
|
152
152
|
* @hidden
|
|
@@ -168,6 +168,18 @@ export declare class ToolBarSplitButtonComponent extends ToolBarToolComponent im
|
|
|
168
168
|
* @hidden
|
|
169
169
|
*/
|
|
170
170
|
handleKey(ev: any): boolean;
|
|
171
|
+
/**
|
|
172
|
+
* @hidden
|
|
173
|
+
*/
|
|
174
|
+
getIconClasses(item?: any): any;
|
|
175
|
+
/**
|
|
176
|
+
* @hidden
|
|
177
|
+
*/
|
|
178
|
+
getText(dataItem: any): any;
|
|
179
|
+
/**
|
|
180
|
+
* @hidden
|
|
181
|
+
*/
|
|
182
|
+
handleClick(ev: any, item: any, index: number): void;
|
|
171
183
|
private focusButton;
|
|
172
184
|
private setTextDisplayMode;
|
|
173
185
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarSplitButtonComponent, never>;
|
package/util.d.ts
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Keys } from '@progress/kendo-angular-common';
|
|
6
6
|
import { DisplayMode } from './display-mode';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface ToolbarStylingClasses {
|
|
11
|
+
toRemove?: string;
|
|
12
|
+
toAdd?: string;
|
|
13
|
+
}
|
|
7
14
|
/**
|
|
8
15
|
* @hidden
|
|
9
16
|
*/
|
|
@@ -76,3 +83,17 @@ export declare const getPrevKey: (rtl?: boolean) => (overflows?: boolean) => Key
|
|
|
76
83
|
* @hidden
|
|
77
84
|
*/
|
|
78
85
|
export declare const getValueForLocation: (property: string, displayMode: DisplayMode, overflows: boolean) => string;
|
|
86
|
+
/**
|
|
87
|
+
* @hidden
|
|
88
|
+
*/
|
|
89
|
+
export declare const SIZES: {
|
|
90
|
+
small: string;
|
|
91
|
+
medium: string;
|
|
92
|
+
large: string;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* @hidden
|
|
96
|
+
*
|
|
97
|
+
* Returns the styling classes to be added and removed
|
|
98
|
+
*/
|
|
99
|
+
export declare const getStylingClasses: (componentType: any, stylingOption: string, previousValue: any, newValue: any) => ToolbarStylingClasses;
|