@progress/kendo-angular-layout 6.4.0 → 6.4.2-dev.202201271101

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.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-layout',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1642588031,
12
+ publishDate: 1643281164,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2021 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 { OnDestroy, OnInit } from '@angular/core';
5
+ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { Orientation } from '../common/orientation';
8
8
  import { DraggableDirective } from '@progress/kendo-angular-common';
@@ -12,6 +12,7 @@ import { SplitterService } from './splitter.service';
12
12
  */
13
13
  export declare class SplitterBarComponent implements OnInit, OnDestroy {
14
14
  draggable: DraggableDirective;
15
+ element: ElementRef<HTMLElement>;
15
16
  private splitter;
16
17
  private localization;
17
18
  orientation: Orientation;
@@ -28,7 +29,7 @@ export declare class SplitterBarComponent implements OnInit, OnDestroy {
28
29
  onFocusOut(): void;
29
30
  onKeyDown(event: any): void;
30
31
  private readonly expandLast;
31
- constructor(draggable: DraggableDirective, splitter: SplitterService, localization: LocalizationService);
32
+ constructor(draggable: DraggableDirective, element: ElementRef<HTMLElement>, splitter: SplitterService, localization: LocalizationService);
32
33
  ngOnInit(): void;
33
34
  ngOnDestroy(): void;
34
35
  togglePrevious(): void;
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
6
- import { Component, Host, HostBinding, HostListener, Input } from '@angular/core';
6
+ import { Component, ElementRef, Host, HostBinding, HostListener, Input } from '@angular/core';
7
7
  import { LocalizationService } from '@progress/kendo-angular-l10n';
8
8
  import { DraggableDirective, Keys } from '@progress/kendo-angular-common';
9
9
  import { SplitterService } from './splitter.service';
@@ -30,8 +30,9 @@ const ɵ3 = createMoveStream;
30
30
  * @hidden
31
31
  */
32
32
  let SplitterBarComponent = class SplitterBarComponent {
33
- constructor(draggable, splitter, localization) {
33
+ constructor(draggable, element, splitter, localization) {
34
34
  this.draggable = draggable;
35
+ this.element = element;
35
36
  this.splitter = splitter;
36
37
  this.localization = localization;
37
38
  this.orientation = 'horizontal';
@@ -245,6 +246,7 @@ SplitterBarComponent = tslib_1.__decorate([
245
246
  }),
246
247
  tslib_1.__param(0, Host()),
247
248
  tslib_1.__metadata("design:paramtypes", [DraggableDirective,
249
+ ElementRef,
248
250
  SplitterService,
249
251
  LocalizationService])
250
252
  ], SplitterBarComponent);
@@ -8,7 +8,7 @@ import { Orientation } from '../common/orientation';
8
8
  * Represents the pane component of the Splitter.
9
9
  */
10
10
  export declare class SplitterPaneComponent implements AfterViewChecked {
11
- private element;
11
+ element: ElementRef<HTMLElement>;
12
12
  private renderer;
13
13
  private cdr;
14
14
  /**
@@ -83,7 +83,7 @@ export declare class SplitterPaneComponent implements AfterViewChecked {
83
83
  isResized: boolean;
84
84
  private _size;
85
85
  private _order;
86
- constructor(element: ElementRef, renderer: Renderer2, cdr: ChangeDetectorRef);
86
+ constructor(element: ElementRef<HTMLElement>, renderer: Renderer2, cdr: ChangeDetectorRef);
87
87
  ngAfterViewChecked(): void;
88
88
  /**
89
89
  * @hidden
@@ -2,10 +2,11 @@
2
2
  * Copyright © 2021 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, EventEmitter, AfterContentInit, QueryList } from '@angular/core';
5
+ import { ElementRef, EventEmitter, AfterContentInit, QueryList, Renderer2 } from '@angular/core';
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { Orientation } from '../common/orientation';
8
8
  import { SplitterPaneComponent } from './splitter-pane.component';
9
+ import { SplitterBarComponent } from './splitter-bar.component';
9
10
  import { SplitterService } from './splitter.service';
10
11
  /**
11
12
  * Represents the [Kendo UI Splitter component for Angular]({% slug overview_splitter %}).
@@ -43,9 +44,10 @@ import { SplitterService } from './splitter.service';
43
44
  * ```
44
45
  */
45
46
  export declare class SplitterComponent implements AfterContentInit {
46
- protected element: ElementRef;
47
+ protected element: ElementRef<HTMLElement>;
47
48
  protected splitterService: SplitterService;
48
49
  private localization;
50
+ private renderer;
49
51
  private enclosingPane?;
50
52
  /**
51
53
  * Specifies the orientation of the panes within the Splitter.
@@ -64,12 +66,13 @@ export declare class SplitterComponent implements AfterContentInit {
64
66
  readonly verticalHostClasses: boolean;
65
67
  readonly dir: string;
66
68
  ariaRole: string;
69
+ splitbars: QueryList<SplitterBarComponent>;
67
70
  /**
68
71
  * @hidden
69
72
  */
70
73
  panes: QueryList<SplitterPaneComponent>;
71
74
  private paneChangesSubscription;
72
- constructor(element: ElementRef, splitterService: SplitterService, localization: LocalizationService, enclosingPane?: SplitterPaneComponent);
75
+ constructor(element: ElementRef<HTMLElement>, splitterService: SplitterService, localization: LocalizationService, renderer: Renderer2, enclosingPane?: SplitterPaneComponent);
73
76
  ngAfterContentInit(): void;
74
77
  ngOnChanges(changes: any): void;
75
78
  ngOnDestroy(): void;
@@ -3,12 +3,14 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
6
- import { Component, ElementRef, EventEmitter, ContentChildren, Host, HostBinding, Inject, Input, Optional, Output, QueryList } from '@angular/core';
6
+ import { Component, ElementRef, EventEmitter, ContentChildren, Host, HostBinding, Inject, Input, Optional, Output, QueryList, ViewChildren, Renderer2 } from '@angular/core';
7
7
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
8
8
  import { validatePackage } from '@progress/kendo-licensing';
9
9
  import { packageMetadata } from '../package-metadata';
10
10
  import { SplitterPaneComponent } from './splitter-pane.component';
11
+ import { SplitterBarComponent } from './splitter-bar.component';
11
12
  import { SplitterService } from './splitter.service';
13
+ import { isPresent } from '../common/util';
12
14
  /**
13
15
  * Represents the [Kendo UI Splitter component for Angular]({% slug overview_splitter %}).
14
16
  *
@@ -45,10 +47,11 @@ import { SplitterService } from './splitter.service';
45
47
  * ```
46
48
  */
47
49
  let SplitterComponent = class SplitterComponent {
48
- constructor(element, splitterService, localization, enclosingPane) {
50
+ constructor(element, splitterService, localization, renderer, enclosingPane) {
49
51
  this.element = element;
50
52
  this.splitterService = splitterService;
51
53
  this.localization = localization;
54
+ this.renderer = renderer;
52
55
  this.enclosingPane = enclosingPane;
53
56
  /**
54
57
  * Specifies the orientation of the panes within the Splitter.
@@ -78,6 +81,15 @@ let SplitterComponent = class SplitterComponent {
78
81
  get dir() {
79
82
  return this.direction;
80
83
  }
84
+ set splitbars(splitbars) {
85
+ if (!isPresent(splitbars) || !isPresent(this.panes)) {
86
+ return;
87
+ }
88
+ const components = [...this.panes.toArray(), ...splitbars.toArray()]
89
+ .sort((a, b) => a.order - b.order);
90
+ const elements = components.map(component => component.element.nativeElement);
91
+ elements.forEach(element => this.renderer.appendChild(this.element.nativeElement, element));
92
+ }
81
93
  ngAfterContentInit() {
82
94
  this.reconfigure();
83
95
  }
@@ -155,6 +167,11 @@ tslib_1.__decorate([
155
167
  HostBinding('attr.role'),
156
168
  tslib_1.__metadata("design:type", String)
157
169
  ], SplitterComponent.prototype, "ariaRole", void 0);
170
+ tslib_1.__decorate([
171
+ ViewChildren(SplitterBarComponent),
172
+ tslib_1.__metadata("design:type", QueryList),
173
+ tslib_1.__metadata("design:paramtypes", [QueryList])
174
+ ], SplitterComponent.prototype, "splitbars", null);
158
175
  tslib_1.__decorate([
159
176
  ContentChildren(SplitterPaneComponent),
160
177
  tslib_1.__metadata("design:type", QueryList)
@@ -187,10 +204,11 @@ SplitterComponent = tslib_1.__decorate([
187
204
  </ng-container>
188
205
  `
189
206
  }),
190
- tslib_1.__param(3, Optional()), tslib_1.__param(3, Host()), tslib_1.__param(3, Inject(SplitterPaneComponent)),
207
+ tslib_1.__param(4, Optional()), tslib_1.__param(4, Host()), tslib_1.__param(4, Inject(SplitterPaneComponent)),
191
208
  tslib_1.__metadata("design:paramtypes", [ElementRef,
192
209
  SplitterService,
193
210
  LocalizationService,
211
+ Renderer2,
194
212
  SplitterPaneComponent])
195
213
  ], SplitterComponent);
196
214
  export { SplitterComponent };
@@ -69,8 +69,11 @@ let TabStripScrollableButtonComponent = class TabStripScrollableButtonComponent
69
69
  };
70
70
  tslib_1.__decorate([
71
71
  HostBinding('class.k-button'),
72
- HostBinding('class.k-button-icon'),
73
- HostBinding('class.k-flat'),
72
+ HostBinding('class.k-button-md'),
73
+ HostBinding('class.k-icon-button'),
74
+ HostBinding('class.k-rounded-md'),
75
+ HostBinding('class.k-button-flat'),
76
+ HostBinding('class.k-button-flat-base'),
74
77
  tslib_1.__metadata("design:type", Boolean)
75
78
  ], TabStripScrollableButtonComponent.prototype, "btnClasses", void 0);
76
79
  tslib_1.__decorate([
@@ -95,7 +98,7 @@ tslib_1.__decorate([
95
98
  TabStripScrollableButtonComponent = tslib_1.__decorate([
96
99
  Component({
97
100
  template: `
98
- <span class="k-icon" [ngClass]="iconClass"></span>
101
+ <span class="k-icon k-button-icon" [ngClass]="iconClass"></span>
99
102
  `,
100
103
  selector: '[kendoTabStripScrollableButton]'
101
104
  }),