@progress/kendo-angular-toolbar 16.11.0-develop.2 → 16.11.0-develop.4
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 +69 -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 +182 -153
- package/fesm2020/progress-kendo-angular-toolbar.mjs +182 -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
|
@@ -43,14 +43,22 @@ export class ToolBarSpacerComponent extends ToolBarToolComponent {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
ToolBarSpacerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
-
ToolBarSpacerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarSpacerComponent, isStandalone: true, selector: "kendo-toolbar-spacer", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSpacerComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], exportAs: ["kendoToolBarSpacer"], usesInheritance: true, ngImport: i0, template:
|
|
46
|
+
ToolBarSpacerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarSpacerComponent, isStandalone: true, selector: "kendo-toolbar-spacer", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSpacerComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], exportAs: ["kendoToolBarSpacer"], usesInheritance: true, ngImport: i0, template: `
|
|
47
|
+
<ng-template #toolbarTemplate>
|
|
48
|
+
<div class="k-spacer"></div>
|
|
49
|
+
</ng-template>
|
|
50
|
+
`, isInline: true });
|
|
47
51
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarSpacerComponent, decorators: [{
|
|
48
52
|
type: Component,
|
|
49
53
|
args: [{
|
|
50
54
|
exportAs: 'kendoToolBarSpacer',
|
|
51
55
|
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSpacerComponent) }],
|
|
52
56
|
selector: 'kendo-toolbar-spacer',
|
|
53
|
-
template:
|
|
57
|
+
template: `
|
|
58
|
+
<ng-template #toolbarTemplate>
|
|
59
|
+
<div class="k-spacer"></div>
|
|
60
|
+
</ng-template>
|
|
61
|
+
`,
|
|
54
62
|
standalone: true
|
|
55
63
|
}]
|
|
56
64
|
}], ctorParameters: function () { return []; }, propDecorators: { toolbarTemplate: [{
|
|
@@ -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 {
|
|
5
|
+
import { Input, Directive, ElementRef, inject } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Represents the Base ToolBar Tool component for Angular.
|
|
@@ -17,9 +17,10 @@ export class ToolBarToolComponent {
|
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
19
19
|
this.responsive = true;
|
|
20
|
+
this.element = inject(ElementRef);
|
|
20
21
|
}
|
|
21
22
|
get toolbarDisplay() {
|
|
22
|
-
return this.overflows ? 'none' : 'inline-
|
|
23
|
+
return this.overflows ? 'none' : 'inline-flex';
|
|
23
24
|
}
|
|
24
25
|
get overflowDisplay() {
|
|
25
26
|
return this.overflows ? 'block' : 'none';
|
|
@@ -51,16 +52,13 @@ export class ToolBarToolComponent {
|
|
|
51
52
|
return false;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
ToolBarToolComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarToolComponent, deps: [], target: i0.ɵɵFactoryTarget.
|
|
55
|
-
ToolBarToolComponent.ɵ
|
|
55
|
+
ToolBarToolComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarToolComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
56
|
+
ToolBarToolComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarToolComponent, isStandalone: true, inputs: { responsive: "responsive" }, ngImport: i0 });
|
|
56
57
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarToolComponent, decorators: [{
|
|
57
|
-
type:
|
|
58
|
+
type: Directive,
|
|
58
59
|
args: [{
|
|
59
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
60
|
-
selector: 'toolbar-tool',
|
|
61
|
-
template: ``,
|
|
62
60
|
standalone: true
|
|
63
61
|
}]
|
|
64
|
-
}], propDecorators: { responsive: [{
|
|
62
|
+
}], ctorParameters: function () { return []; }, propDecorators: { responsive: [{
|
|
65
63
|
type: Input
|
|
66
64
|
}] } });
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { Injectable } from '@angular/core';
|
|
6
|
+
import { Subject } from 'rxjs';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export class ToolbarToolsService {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.renderedToolsChange = new Subject();
|
|
14
|
+
this.overflowToolsChange = new Subject();
|
|
15
|
+
this.renderedTools = [];
|
|
16
|
+
this.overflowTools = [];
|
|
17
|
+
this.allTools = [];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
ToolbarToolsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarToolsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
21
|
+
ToolbarToolsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarToolsService });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarToolsService, decorators: [{
|
|
23
|
+
type: Injectable
|
|
24
|
+
}] });
|
package/esm2020/util.mjs
CHANGED