@progress/kendo-angular-toolbar 11.0.0-develop.99 → 11.0.0

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/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.99",
3
+ "version": "11.0.0",
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,15 +29,16 @@
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.99",
33
- "@progress/kendo-angular-common": "11.0.0-develop.99",
34
- "@progress/kendo-angular-l10n": "11.0.0-develop.99",
35
- "@progress/kendo-angular-popup": "11.0.0-develop.99",
36
- "@progress/kendo-angular-schematics": "11.0.0-develop.99",
32
+ "@progress/kendo-angular-buttons": "11.0.0",
33
+ "@progress/kendo-angular-common": "11.0.0",
34
+ "@progress/kendo-angular-l10n": "11.0.0",
35
+ "@progress/kendo-angular-icons": "11.0.0",
36
+ "@progress/kendo-angular-popup": "11.0.0",
37
37
  "rxjs": "^6.5.3 || ^7.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "tslib": "^2.3.1"
40
+ "tslib": "^2.3.1",
41
+ "@progress/kendo-angular-schematics": "11.0.0"
41
42
  },
42
43
  "schematics": "./schematics/collection.json",
43
44
  "module": "fesm2015/progress-kendo-angular-toolbar.mjs",
@@ -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;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const schematics_1 = require("@angular-devkit/schematics");
4
4
  function default_1(options) {
5
- const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'ToolBarModule', package: 'toolbar' //package name, e.g grid
6
- });
5
+ const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'ToolBarModule', package: 'toolbar', peerDependencies: {
6
+ // peer dep of the icons
7
+ '@progress/kendo-svg-icons': '^1.0.0'
8
+ } });
7
9
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
8
10
  }
9
11
  exports.default = default_1;
package/tool-options.d.ts CHANGED
@@ -2,6 +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 { SVGIcon } from "@progress/kendo-svg-icons";
5
6
  /**
6
7
  * @hidden
7
8
  */
@@ -9,5 +10,6 @@ export interface ToolOptions {
9
10
  text: string;
10
11
  icon: string;
11
12
  iconClass: string;
13
+ svgIcon: SVGIcon;
12
14
  imageUrl: string;
13
15
  }
@@ -10,10 +10,12 @@ 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';
16
17
  import { RendererClickPayload } from './common/renderer-click';
18
+ import { SVGIcon } from '@progress/kendo-svg-icons';
17
19
  import * as i0 from "@angular/core";
18
20
  /**
19
21
  * Represents the [Kendo UI ToolBar component for Angular]({% slug overview_toolbar %}).
@@ -23,10 +25,11 @@ export declare class ToolBarComponent {
23
25
  private popupService;
24
26
  private refreshService;
25
27
  private navigationService;
26
- private element;
28
+ element: ElementRef;
27
29
  private zone;
28
30
  private renderer;
29
31
  private _cdr;
32
+ get overflowClass(): string;
30
33
  /**
31
34
  * Hides the overflowing tools in a popup.
32
35
  */
@@ -49,6 +52,17 @@ export declare class ToolBarComponent {
49
52
  * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the ToolBar.
50
53
  */
51
54
  tabindex: number;
55
+ /**
56
+ * Specifies the padding of all Toolbar elements.
57
+ *
58
+ * The possible values are:
59
+ * * `small`
60
+ * * `medium` (default)
61
+ * * `large`
62
+ * * `none`
63
+ */
64
+ set size(size: ToolbarSize);
65
+ get size(): ToolbarSize;
52
66
  /**
53
67
  * @hidden
54
68
  */
@@ -74,7 +88,7 @@ export declare class ToolBarComponent {
74
88
  get appendTo(): ViewContainerRef;
75
89
  set popupOpen(open: boolean);
76
90
  get popupOpen(): boolean;
77
- hostClasses: boolean;
91
+ hostClass: boolean;
78
92
  private _popupSettings;
79
93
  private cachedOverflowAnchorWidth;
80
94
  private _open;
@@ -82,6 +96,7 @@ export declare class ToolBarComponent {
82
96
  private overflowKeydownListener;
83
97
  private cancelRenderedToolsSubscription$;
84
98
  private cachedGap;
99
+ private _size;
85
100
  private subscriptions;
86
101
  private popupSubs;
87
102
  /**
@@ -95,6 +110,7 @@ export declare class ToolBarComponent {
95
110
  role: string;
96
111
  get getDir(): string;
97
112
  get resizableClass(): boolean;
113
+ moreVerticalIcon: SVGIcon;
98
114
  constructor(localization: LocalizationService, popupService: PopupService, refreshService: RefreshService, navigationService: NavigationService, element: ElementRef, zone: NgZone, renderer: Renderer2, _cdr: ChangeDetectorRef);
99
115
  ngAfterViewInit(): void;
100
116
  ngOnInit(): void;
@@ -154,6 +170,8 @@ export declare class ToolBarComponent {
154
170
  private showFirstHiddenTool;
155
171
  private setPopupContentDimensions;
156
172
  private destroyPopup;
173
+ private handleClasses;
174
+ private normalizePopupClasses;
157
175
  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>;
176
+ 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
177
  }
@@ -19,6 +19,7 @@ import * as i13 from "@angular/common";
19
19
  import * as i14 from "@progress/kendo-angular-buttons";
20
20
  import * as i15 from "@progress/kendo-angular-popup";
21
21
  import * as i16 from "@progress/kendo-angular-common";
22
+ import * as i17 from "@progress/kendo-angular-icons";
22
23
  /**
23
24
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the ToolBar component.
24
25
  *
@@ -33,6 +34,6 @@ import * as i16 from "@progress/kendo-angular-common";
33
34
  */
34
35
  export declare class ToolBarModule {
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarModule, never>;
36
- static ɵmod: i0.ɵɵNgModuleDeclaration<ToolBarModule, [typeof i1.ToolBarComponent, typeof i2.ToolBarToolComponent, typeof i3.ToolBarButtonComponent, typeof i4.ToolBarButtonGroupComponent, typeof i5.ToolBarDropDownButtonComponent, typeof i6.ToolBarSplitButtonComponent, typeof i7.ToolBarSeparatorComponent, typeof i8.ToolBarSpacerComponent, typeof i9.ToolBarRendererComponent, typeof i10.ToolBarButtonListComponent, typeof i11.ToolbarCustomMessagesComponent, typeof i12.LocalizedToolbarMessagesDirective], [typeof i13.CommonModule, typeof i14.ButtonsModule, typeof i15.PopupModule, typeof i16.ResizeSensorModule], [typeof i1.ToolBarComponent, typeof i2.ToolBarToolComponent, typeof i3.ToolBarButtonComponent, typeof i4.ToolBarButtonGroupComponent, typeof i5.ToolBarDropDownButtonComponent, typeof i6.ToolBarSplitButtonComponent, typeof i7.ToolBarSeparatorComponent, typeof i8.ToolBarSpacerComponent, typeof i11.ToolbarCustomMessagesComponent, typeof i12.LocalizedToolbarMessagesDirective]>;
37
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ToolBarModule, [typeof i1.ToolBarComponent, typeof i2.ToolBarToolComponent, typeof i3.ToolBarButtonComponent, typeof i4.ToolBarButtonGroupComponent, typeof i5.ToolBarDropDownButtonComponent, typeof i6.ToolBarSplitButtonComponent, typeof i7.ToolBarSeparatorComponent, typeof i8.ToolBarSpacerComponent, typeof i9.ToolBarRendererComponent, typeof i10.ToolBarButtonListComponent, typeof i11.ToolbarCustomMessagesComponent, typeof i12.LocalizedToolbarMessagesDirective], [typeof i13.CommonModule, typeof i14.ButtonsModule, typeof i15.PopupModule, typeof i16.ResizeSensorModule, typeof i17.IconsModule], [typeof i1.ToolBarComponent, typeof i2.ToolBarToolComponent, typeof i3.ToolBarButtonComponent, typeof i4.ToolBarButtonGroupComponent, typeof i5.ToolBarDropDownButtonComponent, typeof i6.ToolBarSplitButtonComponent, typeof i7.ToolBarSeparatorComponent, typeof i8.ToolBarSpacerComponent, typeof i11.ToolbarCustomMessagesComponent, typeof i12.LocalizedToolbarMessagesDirective]>;
37
38
  static ɵinj: i0.ɵɵInjectorDeclaration<ToolBarModule>;
38
39
  }
@@ -2,16 +2,19 @@
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, ElementRef } from '@angular/core';
5
+ import { TemplateRef, EventEmitter, ElementRef, NgZone } from '@angular/core';
6
6
  import { ToolBarToolComponent } from './toolbar-tool.component';
7
7
  import { DisplayMode } from '../display-mode';
8
8
  import { ToolOptions } from '../tool-options';
9
9
  import { ButtonFillMode, ButtonThemeColor } from '@progress/kendo-angular-buttons';
10
+ import { SVGIcon } from '@progress/kendo-svg-icons';
10
11
  import * as i0 from "@angular/core";
11
12
  /**
12
13
  * Represents the [Kendo UI ToolBar Button tool for Angular]({% slug controltypes_toolbar %}#toc-buttons).
13
14
  */
14
15
  export declare class ToolBarButtonComponent extends ToolBarToolComponent {
16
+ element: ElementRef;
17
+ private zone;
15
18
  /**
16
19
  * Specifies where button text should be displayed
17
20
  */
@@ -107,6 +110,11 @@ export declare class ToolBarButtonComponent extends ToolBarToolComponent {
107
110
  * which are applied to a `span` element inside the Button. Allows the usage of custom icons.
108
111
  */
109
112
  set iconClass(iconClass: string);
113
+ /**
114
+ * Defines an SVGIcon to be rendered within the button.
115
+ * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
116
+ */
117
+ set svgIcon(icon: SVGIcon);
110
118
  /**
111
119
  * Defines a URL which is used for an `img` element inside the Button.
112
120
  * The URL can be relative or absolute. If relative, it is evaluated with relation to the web page URL.
@@ -132,7 +140,7 @@ export declare class ToolBarButtonComponent extends ToolBarToolComponent {
132
140
  toolbarButtonElement: ElementRef;
133
141
  private overflowButtonElement;
134
142
  private _showText;
135
- constructor();
143
+ constructor(element: ElementRef, zone: NgZone);
136
144
  ngOnInit(): void;
137
145
  /**
138
146
  * @hidden
@@ -150,8 +158,20 @@ export declare class ToolBarButtonComponent extends ToolBarToolComponent {
150
158
  * @hidden
151
159
  */
152
160
  handleKey(): boolean;
161
+ /**
162
+ * @hidden
163
+ */
164
+ get toolbarButtonClass(): string;
165
+ /**
166
+ * @hidden
167
+ */
168
+ handleClick(ev: Event): void;
169
+ /**
170
+ * @hidden
171
+ */
172
+ selectedChangeHandler(state: boolean): void;
153
173
  private getButton;
154
174
  private setTextDisplayMode;
155
175
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarButtonComponent, never>;
156
- static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarButtonComponent, "kendo-toolbar-button", ["kendoToolBarButton"], { "showText": "showText"; "showIcon": "showIcon"; "text": "text"; "style": "style"; "className": "className"; "title": "title"; "disabled": "disabled"; "toggleable": "toggleable"; "look": "look"; "togglable": "togglable"; "selected": "selected"; "fillMode": "fillMode"; "themeColor": "themeColor"; "icon": "icon"; "iconClass": "iconClass"; "imageUrl": "imageUrl"; }, { "click": "click"; "pointerdown": "pointerdown"; "selectedChange": "selectedChange"; }, never, never>;
176
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarButtonComponent, "kendo-toolbar-button", ["kendoToolBarButton"], { "showText": "showText"; "showIcon": "showIcon"; "text": "text"; "style": "style"; "className": "className"; "title": "title"; "disabled": "disabled"; "toggleable": "toggleable"; "look": "look"; "togglable": "togglable"; "selected": "selected"; "fillMode": "fillMode"; "themeColor": "themeColor"; "icon": "icon"; "iconClass": "iconClass"; "svgIcon": "svgIcon"; "imageUrl": "imageUrl"; }, { "click": "click"; "pointerdown": "pointerdown"; "selectedChange": "selectedChange"; }, never, never>;
157
177
  }
@@ -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
- private getButtonGroup;
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,14 @@ export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent
158
158
  * @hidden
159
159
  */
160
160
  handleKey(ev: any): boolean;
161
+ /**
162
+ * @hidden
163
+ */
164
+ getText(dataItem: any): any;
165
+ /**
166
+ * @hidden
167
+ */
168
+ handleClick(ev: any, item: any, index: number): void;
161
169
  private focusButton;
162
170
  private setTextDisplayMode;
163
171
  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 overflowSplitButton;
149
- private overflowSplitButtonButtonList;
148
+ private overflowMainButton;
149
+ overflowListItems: QueryList<ElementRef>;
150
150
  constructor();
151
151
  /**
152
152
  * @hidden
@@ -168,6 +168,14 @@ export declare class ToolBarSplitButtonComponent extends ToolBarToolComponent im
168
168
  * @hidden
169
169
  */
170
170
  handleKey(ev: any): boolean;
171
+ /**
172
+ * @hidden
173
+ */
174
+ getText(dataItem: any): any;
175
+ /**
176
+ * @hidden
177
+ */
178
+ handleClick(ev: any, item: any, index: number): void;
171
179
  private focusButton;
172
180
  private setTextDisplayMode;
173
181
  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
  */
@@ -75,4 +82,18 @@ export declare const getPrevKey: (rtl?: boolean) => (overflows?: boolean) => Key
75
82
  /**
76
83
  * @hidden
77
84
  */
78
- export declare const getValueForLocation: (property: string, displayMode: DisplayMode, overflows: boolean) => string;
85
+ export declare const getValueForLocation: (property: any, displayMode: DisplayMode, overflows: boolean) => any;
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;