@progress/kendo-angular-toolbar 16.11.0-develop.2 → 16.11.0-develop.3

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.
@@ -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: ``, isInline: true });
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 { Component, Input } from '@angular/core';
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-block';
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.Component });
55
- ToolBarToolComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarToolComponent, isStandalone: true, selector: "toolbar-tool", inputs: { responsive: "responsive" }, ngImport: i0, template: ``, isInline: true });
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: Component,
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
@@ -209,3 +209,7 @@ export const getStylingClasses = (componentType, stylingOption, previousValue, n
209
209
  break;
210
210
  }
211
211
  };
212
+ /**
213
+ * @hidden
214
+ */
215
+ export const isElement = (element) => element instanceof Element || element instanceof Document;