@progress/kendo-angular-toolbar 16.10.1-develop.3 → 16.11.0-develop.10
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/esm2020/navigation.service.mjs +3 -3
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/renderer.component.mjs +73 -68
- package/esm2020/toolbar.component.mjs +71 -66
- package/esm2020/toolbar.module.mjs +1 -1
- package/esm2020/tools/toolbar-buttongroup.component.mjs +6 -6
- package/esm2020/tools/toolbar-spacer.component.mjs +10 -2
- package/esm2020/tools/toolbar-tool.component.mjs +7 -9
- package/esm2020/tools/tools.service.mjs +24 -0
- package/esm2020/util.mjs +4 -0
- package/fesm2015/progress-kendo-angular-toolbar.mjs +188 -153
- package/fesm2020/progress-kendo-angular-toolbar.mjs +186 -153
- package/package.json +7 -7
- package/renderer.component.d.ts +12 -25
- package/toolbar.component.d.ts +6 -6
- package/tools/toolbar-tool.component.d.ts +4 -2
- package/tools/tools.service.d.ts +20 -0
- package/util.d.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-toolbar",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.11.0-develop.10",
|
|
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,16 +29,16 @@
|
|
|
29
29
|
"@angular/core": "15 - 18",
|
|
30
30
|
"@angular/platform-browser": "15 - 18",
|
|
31
31
|
"@progress/kendo-licensing": "^1.0.2",
|
|
32
|
-
"@progress/kendo-angular-buttons": "16.
|
|
33
|
-
"@progress/kendo-angular-common": "16.
|
|
34
|
-
"@progress/kendo-angular-l10n": "16.
|
|
35
|
-
"@progress/kendo-angular-icons": "16.
|
|
36
|
-
"@progress/kendo-angular-popup": "16.
|
|
32
|
+
"@progress/kendo-angular-buttons": "16.11.0-develop.10",
|
|
33
|
+
"@progress/kendo-angular-common": "16.11.0-develop.10",
|
|
34
|
+
"@progress/kendo-angular-l10n": "16.11.0-develop.10",
|
|
35
|
+
"@progress/kendo-angular-icons": "16.11.0-develop.10",
|
|
36
|
+
"@progress/kendo-angular-popup": "16.11.0-develop.10",
|
|
37
37
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"tslib": "^2.3.1",
|
|
41
|
-
"@progress/kendo-angular-schematics": "16.
|
|
41
|
+
"@progress/kendo-angular-schematics": "16.11.0-develop.10"
|
|
42
42
|
},
|
|
43
43
|
"schematics": "./schematics/collection.json",
|
|
44
44
|
"module": "fesm2015/progress-kendo-angular-toolbar.mjs",
|
package/renderer.component.d.ts
CHANGED
|
@@ -2,41 +2,35 @@
|
|
|
2
2
|
* Copyright © 2024 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, Renderer2 as Renderer, OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
5
|
+
import { ElementRef, TemplateRef, Renderer2 as Renderer, OnInit, OnDestroy, EventEmitter, ViewContainerRef } from '@angular/core';
|
|
6
6
|
import { RenderLocation } from './render-location';
|
|
7
7
|
import { ToolBarToolComponent } from './tools/toolbar-tool.component';
|
|
8
8
|
import { RefreshService } from './refresh.service';
|
|
9
9
|
import { RendererService } from './renderer.service';
|
|
10
10
|
import { RendererClickPayload } from './common/renderer-click';
|
|
11
|
+
import { ToolbarToolsService } from './tools/tools.service';
|
|
12
|
+
import { NavigationService } from './navigation.service';
|
|
11
13
|
import * as i0 from "@angular/core";
|
|
12
14
|
/**
|
|
13
15
|
* @hidden
|
|
14
16
|
*/
|
|
15
17
|
export declare class ToolBarRendererComponent implements OnInit, OnDestroy {
|
|
16
|
-
element: ElementRef;
|
|
17
18
|
private renderer;
|
|
18
19
|
private rendererService;
|
|
19
20
|
private refreshService;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
private toolsService;
|
|
22
|
+
private viewContainer;
|
|
23
|
+
private navigationService;
|
|
23
24
|
tool: ToolBarToolComponent;
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
25
|
location: RenderLocation;
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
26
|
resizable: boolean;
|
|
32
27
|
rendererClick: EventEmitter<RendererClickPayload>;
|
|
33
28
|
template: TemplateRef<any>;
|
|
34
|
-
|
|
35
|
-
hostClass: boolean;
|
|
29
|
+
element: ElementRef;
|
|
36
30
|
private get isSpacer();
|
|
37
31
|
private refreshSubscription;
|
|
38
|
-
|
|
39
|
-
constructor(
|
|
32
|
+
private internalComponentRef;
|
|
33
|
+
constructor(renderer: Renderer, rendererService: RendererService, refreshService: RefreshService, toolsService: ToolbarToolsService, viewContainer: ViewContainerRef, navigationService: NavigationService);
|
|
40
34
|
ngOnInit(): void;
|
|
41
35
|
ngOnDestroy(): void;
|
|
42
36
|
ngAfterViewInit(): void;
|
|
@@ -44,18 +38,11 @@ export declare class ToolBarRendererComponent implements OnInit, OnDestroy {
|
|
|
44
38
|
* @hidden
|
|
45
39
|
*/
|
|
46
40
|
get width(): number;
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
41
|
isDisplayed(): boolean;
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
42
|
refresh(): void;
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*/
|
|
58
43
|
setAttribute(element: HTMLElement, attr: string, value: string): void;
|
|
44
|
+
private onClick;
|
|
45
|
+
private updateTools;
|
|
59
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarRendererComponent, never>;
|
|
60
|
-
static
|
|
47
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToolBarRendererComponent, "[kendoToolbarRenderer]", never, { "tool": "tool"; "location": "location"; "resizable": "resizable"; }, { "rendererClick": "rendererClick"; }, never, never, true, never>;
|
|
61
48
|
}
|
package/toolbar.component.d.ts
CHANGED
|
@@ -12,10 +12,10 @@ import { PopupSettings } from './popup-settings';
|
|
|
12
12
|
import { ToolBarToolComponent } from './tools/toolbar-tool.component';
|
|
13
13
|
import { ToolbarSize } from './common/size';
|
|
14
14
|
import { PreventableEvent } from './common/preventable-event';
|
|
15
|
-
import { ToolBarRendererComponent } from './renderer.component';
|
|
16
15
|
import { Direction } from './direction';
|
|
17
16
|
import { RendererClickPayload } from './common/renderer-click';
|
|
18
17
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
18
|
+
import { ToolbarToolsService } from './tools/tools.service';
|
|
19
19
|
import * as i0 from "@angular/core";
|
|
20
20
|
/**
|
|
21
21
|
* Represents the [Kendo UI ToolBar component for Angular]({% slug overview_toolbar %}).
|
|
@@ -29,6 +29,7 @@ export declare class ToolBarComponent {
|
|
|
29
29
|
private zone;
|
|
30
30
|
private renderer;
|
|
31
31
|
private _cdr;
|
|
32
|
+
private toolsService;
|
|
32
33
|
get overflowClass(): string;
|
|
33
34
|
/**
|
|
34
35
|
* Hides the overflowing tools in a popup.
|
|
@@ -81,8 +82,6 @@ export declare class ToolBarComponent {
|
|
|
81
82
|
popupTemplate: TemplateRef<any>;
|
|
82
83
|
resizeSensor: ResizeSensorComponent;
|
|
83
84
|
container: ViewContainerRef;
|
|
84
|
-
renderedTools: QueryList<ToolBarRendererComponent>;
|
|
85
|
-
overflowRenderedTools: QueryList<ToolBarRendererComponent>;
|
|
86
85
|
popupRef: PopupRef;
|
|
87
86
|
direction: Direction;
|
|
88
87
|
get appendTo(): ViewContainerRef;
|
|
@@ -112,7 +111,8 @@ export declare class ToolBarComponent {
|
|
|
112
111
|
get getDir(): string;
|
|
113
112
|
get resizableClass(): boolean;
|
|
114
113
|
moreVerticalIcon: SVGIcon;
|
|
115
|
-
constructor(localization: LocalizationService, popupService: PopupService, refreshService: RefreshService, navigationService: NavigationService, element: ElementRef, zone: NgZone, renderer: Renderer2, _cdr: ChangeDetectorRef);
|
|
114
|
+
constructor(localization: LocalizationService, popupService: PopupService, refreshService: RefreshService, navigationService: NavigationService, element: ElementRef, zone: NgZone, renderer: Renderer2, _cdr: ChangeDetectorRef, toolsService: ToolbarToolsService);
|
|
115
|
+
ngAfterContentInit(): void;
|
|
116
116
|
ngAfterViewInit(): void;
|
|
117
117
|
ngOnInit(): void;
|
|
118
118
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -163,8 +163,8 @@ export declare class ToolBarComponent {
|
|
|
163
163
|
private get overflowAnchorWidth();
|
|
164
164
|
private get gap();
|
|
165
165
|
private get childrenWidth();
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
get visibleTools(): ToolBarToolComponent[];
|
|
167
|
+
get overflowTools(): ToolBarToolComponent[];
|
|
168
168
|
private shrink;
|
|
169
169
|
private stretch;
|
|
170
170
|
private hideLastVisibleTool;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2024 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 } from '@angular/core';
|
|
5
|
+
import { TemplateRef, ElementRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Represents the Base ToolBar Tool component for Angular.
|
|
@@ -14,6 +14,8 @@ export declare class ToolBarToolComponent {
|
|
|
14
14
|
visibility: string;
|
|
15
15
|
toolbarTemplate: TemplateRef<any>;
|
|
16
16
|
popupTemplate: TemplateRef<any>;
|
|
17
|
+
element: ElementRef;
|
|
18
|
+
constructor();
|
|
17
19
|
/**
|
|
18
20
|
* @hidden
|
|
19
21
|
*/
|
|
@@ -41,5 +43,5 @@ export declare class ToolBarToolComponent {
|
|
|
41
43
|
*/
|
|
42
44
|
handleKey(ev: KeyboardEvent): boolean;
|
|
43
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarToolComponent, never>;
|
|
44
|
-
static
|
|
46
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToolBarToolComponent, never, never, { "responsive": "responsive"; }, {}, never, never, true, never>;
|
|
45
47
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ToolBarRendererComponent } from '../renderer.component';
|
|
6
|
+
import { Subject } from 'rxjs';
|
|
7
|
+
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare class ToolbarToolsService {
|
|
13
|
+
renderedToolsChange: Subject<ToolBarRendererComponent[]>;
|
|
14
|
+
overflowToolsChange: Subject<ToolBarRendererComponent[]>;
|
|
15
|
+
renderedTools: ToolBarRendererComponent[];
|
|
16
|
+
overflowTools: ToolBarRendererComponent[];
|
|
17
|
+
allTools: ToolBarToolComponent[];
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarToolsService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ToolbarToolsService>;
|
|
20
|
+
}
|
package/util.d.ts
CHANGED
|
@@ -97,3 +97,7 @@ export declare const SIZES: {
|
|
|
97
97
|
* Returns the styling classes to be added and removed
|
|
98
98
|
*/
|
|
99
99
|
export declare const getStylingClasses: (componentType: any, stylingOption: string, previousValue: any, newValue: any) => ToolbarStylingClasses;
|
|
100
|
+
/**
|
|
101
|
+
* @hidden
|
|
102
|
+
*/
|
|
103
|
+
export declare const isElement: (element: any) => boolean;
|