@progress/kendo-angular-layout 13.4.1-develop.3 → 13.5.0-develop.1
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/drawer/drawer.component.d.ts +4 -0
- package/drawer.module.d.ts +2 -1
- package/esm2020/drawer/drawer.component.mjs +14 -3
- package/esm2020/drawer.module.mjs +4 -3
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/panelbar/panelbar.component.mjs +22 -9
- package/esm2020/panelbar.module.mjs +4 -3
- package/esm2020/tabstrip/tabstrip.component.mjs +16 -6
- package/esm2020/tabstrip.module.mjs +4 -4
- package/esm2020/tilelayout/dragging-service.mjs +5 -5
- package/esm2020/tilelayout/tilelayout.component.mjs +20 -6
- package/esm2020/tilelayout.module.mjs +4 -3
- package/fesm2015/progress-kendo-angular-layout.mjs +82 -39
- package/fesm2020/progress-kendo-angular-layout.mjs +82 -39
- package/package.json +7 -7
- package/panelbar/panelbar.component.d.ts +5 -1
- package/panelbar.module.d.ts +2 -1
- package/tabstrip/tabstrip.component.d.ts +5 -1
- package/tabstrip.module.d.ts +1 -1
- package/tilelayout/tilelayout.component.d.ts +4 -0
- package/tilelayout.module.d.ts +2 -1
|
@@ -154,6 +154,10 @@ export declare class DrawerComponent implements OnDestroy {
|
|
|
154
154
|
* @hidden
|
|
155
155
|
*/
|
|
156
156
|
itemTemplate: DrawerItemTemplateDirective;
|
|
157
|
+
/**
|
|
158
|
+
* @hidden
|
|
159
|
+
*/
|
|
160
|
+
showLicenseWatermark: boolean;
|
|
157
161
|
viewItems: DrawerViewItem[];
|
|
158
162
|
private animationEnd;
|
|
159
163
|
private dynamicRTLSubscription;
|
package/drawer.module.d.ts
CHANGED
|
@@ -14,12 +14,13 @@ import * as i8 from "./drawer/template-directives/footer-template.directive";
|
|
|
14
14
|
import * as i9 from "./drawer/template-directives/item-template.directive";
|
|
15
15
|
import * as i10 from "@angular/common";
|
|
16
16
|
import * as i11 from "@progress/kendo-angular-icons";
|
|
17
|
+
import * as i12 from "@progress/kendo-angular-common";
|
|
17
18
|
/**
|
|
18
19
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
19
20
|
* definition for the Drawer component.
|
|
20
21
|
*/
|
|
21
22
|
export declare class DrawerModule {
|
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerModule, never>;
|
|
23
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DrawerModule, [typeof i1.DrawerItemComponent, typeof i2.DrawerListComponent, typeof i3.DrawerComponent, typeof i4.DrawerContainerComponent, typeof i5.DrawerContentComponent, typeof i6.DrawerTemplateDirective, typeof i7.DrawerHeaderTemplateDirective, typeof i8.DrawerFooterTemplateDirective, typeof i9.DrawerItemTemplateDirective], [typeof i10.CommonModule, typeof i11.IconsModule], [typeof i3.DrawerComponent, typeof i4.DrawerContainerComponent, typeof i5.DrawerContentComponent, typeof i6.DrawerTemplateDirective, typeof i7.DrawerHeaderTemplateDirective, typeof i8.DrawerFooterTemplateDirective, typeof i9.DrawerItemTemplateDirective]>;
|
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DrawerModule, [typeof i1.DrawerItemComponent, typeof i2.DrawerListComponent, typeof i3.DrawerComponent, typeof i4.DrawerContainerComponent, typeof i5.DrawerContentComponent, typeof i6.DrawerTemplateDirective, typeof i7.DrawerHeaderTemplateDirective, typeof i8.DrawerFooterTemplateDirective, typeof i9.DrawerItemTemplateDirective], [typeof i10.CommonModule, typeof i11.IconsModule, typeof i12.WatermarkModule], [typeof i3.DrawerComponent, typeof i4.DrawerContainerComponent, typeof i5.DrawerContentComponent, typeof i6.DrawerTemplateDirective, typeof i7.DrawerHeaderTemplateDirective, typeof i8.DrawerFooterTemplateDirective, typeof i9.DrawerItemTemplateDirective]>;
|
|
24
25
|
static ɵinj: i0.ɵɵInjectorDeclaration<DrawerModule>;
|
|
25
26
|
}
|
|
@@ -13,12 +13,14 @@ import { AnimationBuilder } from '@angular/animations';
|
|
|
13
13
|
import { collapseAnimation, expandAnimation } from './animations';
|
|
14
14
|
import { take } from 'rxjs/operators';
|
|
15
15
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
16
|
+
import { shouldShowValidationUI } from '@progress/kendo-angular-common';
|
|
16
17
|
import * as i0 from "@angular/core";
|
|
17
18
|
import * as i1 from "@angular/animations";
|
|
18
19
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
19
20
|
import * as i3 from "./drawer.service";
|
|
20
21
|
import * as i4 from "./list.component";
|
|
21
|
-
import * as i5 from "@angular
|
|
22
|
+
import * as i5 from "@progress/kendo-angular-common";
|
|
23
|
+
import * as i6 from "@angular/common";
|
|
22
24
|
const DEFAULT_ANIMATION = { type: 'slide', duration: 200 };
|
|
23
25
|
/**
|
|
24
26
|
* Represents the [Kendo UI Drawer component for Angular]({% slug overview_drawer %}).
|
|
@@ -133,9 +135,14 @@ export class DrawerComponent {
|
|
|
133
135
|
* Used to provide a two-way binding for the `expanded` property.
|
|
134
136
|
*/
|
|
135
137
|
this.expandedChange = new EventEmitter();
|
|
138
|
+
/**
|
|
139
|
+
* @hidden
|
|
140
|
+
*/
|
|
141
|
+
this.showLicenseWatermark = false;
|
|
136
142
|
this.animationEnd = new EventEmitter();
|
|
137
143
|
this.rtl = false;
|
|
138
|
-
validatePackage(packageMetadata);
|
|
144
|
+
const isValid = validatePackage(packageMetadata);
|
|
145
|
+
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
139
146
|
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
|
|
140
147
|
this.rtl = rtl;
|
|
141
148
|
this.direction = this.rtl ? 'rtl' : 'ltr';
|
|
@@ -309,7 +316,9 @@ DrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
309
316
|
[ngTemplateOutlet]="drawerTemplate?.templateRef">
|
|
310
317
|
</ng-template>
|
|
311
318
|
</div>
|
|
312
|
-
|
|
319
|
+
|
|
320
|
+
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
321
|
+
`, isInline: true, components: [{ type: i4.DrawerListComponent, selector: "[kendoDrawerList]", inputs: ["itemTemplate", "mini", "expanded", "view"], outputs: ["select"] }, { type: i5.WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
313
322
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DrawerComponent, decorators: [{
|
|
314
323
|
type: Component,
|
|
315
324
|
args: [{
|
|
@@ -350,6 +359,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
350
359
|
[ngTemplateOutlet]="drawerTemplate?.templateRef">
|
|
351
360
|
</ng-template>
|
|
352
361
|
</div>
|
|
362
|
+
|
|
363
|
+
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
353
364
|
`
|
|
354
365
|
}]
|
|
355
366
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.AnimationBuilder }, { type: i2.LocalizationService }, { type: i3.DrawerService }]; }, propDecorators: { hostClasses: [{
|
|
@@ -10,6 +10,7 @@ import { DrawerContentComponent } from './drawer/drawer-content.component';
|
|
|
10
10
|
import { DrawerItemComponent } from './drawer/item.component';
|
|
11
11
|
import { DrawerListComponent } from './drawer/list.component';
|
|
12
12
|
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
13
|
+
import { WatermarkModule } from '@progress/kendo-angular-common';
|
|
13
14
|
import { DrawerTemplateDirective, DrawerItemTemplateDirective, DrawerHeaderTemplateDirective, DrawerFooterTemplateDirective } from './drawer/template-directives';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
const templateDirectives = [
|
|
@@ -42,18 +43,18 @@ DrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
42
43
|
DrawerContentComponent, DrawerTemplateDirective,
|
|
43
44
|
DrawerHeaderTemplateDirective,
|
|
44
45
|
DrawerFooterTemplateDirective,
|
|
45
|
-
DrawerItemTemplateDirective], imports: [CommonModule, IconsModule], exports: [DrawerComponent,
|
|
46
|
+
DrawerItemTemplateDirective], imports: [CommonModule, IconsModule, WatermarkModule], exports: [DrawerComponent,
|
|
46
47
|
DrawerContainerComponent,
|
|
47
48
|
DrawerContentComponent, DrawerTemplateDirective,
|
|
48
49
|
DrawerHeaderTemplateDirective,
|
|
49
50
|
DrawerFooterTemplateDirective,
|
|
50
51
|
DrawerItemTemplateDirective] });
|
|
51
|
-
DrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DrawerModule, imports: [[CommonModule, IconsModule]] });
|
|
52
|
+
DrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DrawerModule, imports: [[CommonModule, IconsModule, WatermarkModule]] });
|
|
52
53
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DrawerModule, decorators: [{
|
|
53
54
|
type: NgModule,
|
|
54
55
|
args: [{
|
|
55
56
|
declarations: [declarations],
|
|
56
57
|
exports: [exportedModules],
|
|
57
|
-
imports: [CommonModule, IconsModule]
|
|
58
|
+
imports: [CommonModule, IconsModule, WatermarkModule]
|
|
58
59
|
}]
|
|
59
60
|
}] });
|
|
@@ -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:
|
|
13
|
-
version: '13.
|
|
12
|
+
publishDate: 1694187013,
|
|
13
|
+
version: '13.5.0-develop.1',
|
|
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
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, ContentChild, ContentChildren, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, QueryList, ViewChildren, isDevMode } from '@angular/core';
|
|
6
6
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { Keys } from '@progress/kendo-angular-common';
|
|
7
|
+
import { Keys, shouldShowValidationUI } from '@progress/kendo-angular-common';
|
|
8
8
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
9
9
|
import { packageMetadata } from '../package-metadata';
|
|
10
10
|
import { PanelBarExpandMode } from './panelbar-expand-mode';
|
|
@@ -18,7 +18,8 @@ import * as i0 from "@angular/core";
|
|
|
18
18
|
import * as i1 from "./panelbar.service";
|
|
19
19
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
20
20
|
import * as i3 from "./panelbar-item.component";
|
|
21
|
-
import * as i4 from "@angular
|
|
21
|
+
import * as i4 from "@progress/kendo-angular-common";
|
|
22
|
+
import * as i5 from "@angular/common";
|
|
22
23
|
/**
|
|
23
24
|
* Represents the [Kendo UI PanelBar component for Angular]({% slug overview_panelbar %}).
|
|
24
25
|
*/
|
|
@@ -74,10 +75,14 @@ export class PanelBarComponent {
|
|
|
74
75
|
* This event is preventable. If you cancel it, the item will remain expanded.
|
|
75
76
|
*/
|
|
76
77
|
this.collapse = new EventEmitter();
|
|
78
|
+
this.hostClasses = true;
|
|
77
79
|
this.tabIndex = 0;
|
|
78
80
|
this.role = 'tree';
|
|
79
|
-
this.hostClass = true;
|
|
80
81
|
this.activeDescendant = '';
|
|
82
|
+
/**
|
|
83
|
+
* @hidden
|
|
84
|
+
*/
|
|
85
|
+
this.showLicenseWatermark = false;
|
|
81
86
|
this.isViewInit = true;
|
|
82
87
|
this.focused = false;
|
|
83
88
|
this._keepItemContent = false;
|
|
@@ -93,7 +98,8 @@ export class PanelBarComponent {
|
|
|
93
98
|
item.contentOverflow = contentOverflow;
|
|
94
99
|
});
|
|
95
100
|
};
|
|
96
|
-
validatePackage(packageMetadata);
|
|
101
|
+
const isValid = validatePackage(packageMetadata);
|
|
102
|
+
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
97
103
|
/* eslint-disable-line*/
|
|
98
104
|
this.keyBindings = this.computedKeys;
|
|
99
105
|
this.elementRef = elementRef;
|
|
@@ -483,7 +489,7 @@ export class PanelBarComponent {
|
|
|
483
489
|
}
|
|
484
490
|
}
|
|
485
491
|
PanelBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PanelBarComponent, deps: [{ token: i0.ElementRef }, { token: i1.PanelBarService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
486
|
-
PanelBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: PanelBarComponent, selector: "kendo-panelbar", inputs: { expandMode: "expandMode", selectable: "selectable", animate: "animate", height: "height", keepItemContent: "keepItemContent", items: "items" }, outputs: { stateChange: "stateChange", select: "select", expand: "expand", collapse: "collapse" }, host: { listeners: { "click": "onComponentClick($event)", "focus": "onComponentFocus()", "blur": "onComponentBlur()", "keydown": "onComponentKeyDown($event)" }, properties: { "
|
|
492
|
+
PanelBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: PanelBarComponent, selector: "kendo-panelbar", inputs: { expandMode: "expandMode", selectable: "selectable", animate: "animate", height: "height", keepItemContent: "keepItemContent", items: "items" }, outputs: { stateChange: "stateChange", select: "select", expand: "expand", collapse: "collapse" }, host: { listeners: { "click": "onComponentClick($event)", "focus": "onComponentFocus()", "blur": "onComponentBlur()", "keydown": "onComponentKeyDown($event)" }, properties: { "class.k-panelbar": "this.hostClasses", "class.k-pos-relative": "this.hostClasses", "attr.tabIndex": "this.tabIndex", "attr.role": "this.role", "attr.aria-activedescendant": "this.activeDescendant", "style.height": "this.hostHeight", "style.overflow": "this.overflow", "attr.dir": "this.dir" } }, providers: [
|
|
487
493
|
PanelBarService,
|
|
488
494
|
LocalizationService,
|
|
489
495
|
{
|
|
@@ -511,7 +517,9 @@ PanelBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
511
517
|
</kendo-panelbar-item>
|
|
512
518
|
</ng-container>
|
|
513
519
|
</ng-template>
|
|
514
|
-
|
|
520
|
+
|
|
521
|
+
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
522
|
+
`, isInline: true, components: [{ type: i3.PanelBarItemComponent, selector: "kendo-panelbar-item", inputs: ["title", "id", "icon", "iconClass", "svgIcon", "imageUrl", "disabled", "expanded", "selected", "content", "items", "template"], exportAs: ["kendoPanelbarItem"] }, { type: i4.WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
515
523
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PanelBarComponent, decorators: [{
|
|
516
524
|
type: Component,
|
|
517
525
|
args: [{
|
|
@@ -546,6 +554,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
546
554
|
</kendo-panelbar-item>
|
|
547
555
|
</ng-container>
|
|
548
556
|
</ng-template>
|
|
557
|
+
|
|
558
|
+
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
549
559
|
`
|
|
550
560
|
}]
|
|
551
561
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.PanelBarService }, { type: i2.LocalizationService }]; }, propDecorators: { expandMode: [{
|
|
@@ -568,15 +578,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
568
578
|
type: Output
|
|
569
579
|
}], collapse: [{
|
|
570
580
|
type: Output
|
|
581
|
+
}], hostClasses: [{
|
|
582
|
+
type: HostBinding,
|
|
583
|
+
args: ['class.k-panelbar']
|
|
584
|
+
}, {
|
|
585
|
+
type: HostBinding,
|
|
586
|
+
args: ['class.k-pos-relative']
|
|
571
587
|
}], tabIndex: [{
|
|
572
588
|
type: HostBinding,
|
|
573
589
|
args: ['attr.tabIndex']
|
|
574
590
|
}], role: [{
|
|
575
591
|
type: HostBinding,
|
|
576
592
|
args: ['attr.role']
|
|
577
|
-
}], hostClass: [{
|
|
578
|
-
type: HostBinding,
|
|
579
|
-
args: ['class.k-panelbar']
|
|
580
593
|
}], activeDescendant: [{
|
|
581
594
|
type: HostBinding,
|
|
582
595
|
args: ['attr.aria-activedescendant']
|
|
@@ -10,6 +10,7 @@ import { PanelBarContentDirective } from './panelbar/panelbar-content.directive'
|
|
|
10
10
|
import { PanelBarItemTemplateDirective } from './panelbar/panelbar-item-template.directive';
|
|
11
11
|
import { PanelBarItemTitleDirective } from './panelbar/panelbar-item-title.directive';
|
|
12
12
|
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
13
|
+
import { WatermarkModule } from '@progress/kendo-angular-common';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
const exportedModules = [
|
|
15
16
|
PanelBarComponent,
|
|
@@ -39,17 +40,17 @@ PanelBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
39
40
|
PanelBarItemComponent,
|
|
40
41
|
PanelBarContentDirective,
|
|
41
42
|
PanelBarItemTemplateDirective,
|
|
42
|
-
PanelBarItemTitleDirective], imports: [CommonModule, IconsModule], exports: [PanelBarComponent,
|
|
43
|
+
PanelBarItemTitleDirective], imports: [CommonModule, IconsModule, WatermarkModule], exports: [PanelBarComponent,
|
|
43
44
|
PanelBarItemComponent,
|
|
44
45
|
PanelBarContentDirective,
|
|
45
46
|
PanelBarItemTemplateDirective,
|
|
46
47
|
PanelBarItemTitleDirective] });
|
|
47
|
-
PanelBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PanelBarModule, imports: [[CommonModule, IconsModule]] });
|
|
48
|
+
PanelBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PanelBarModule, imports: [[CommonModule, IconsModule, WatermarkModule]] });
|
|
48
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PanelBarModule, decorators: [{
|
|
49
50
|
type: NgModule,
|
|
50
51
|
args: [{
|
|
51
52
|
declarations: [declarations],
|
|
52
53
|
exports: [exportedModules],
|
|
53
|
-
imports: [CommonModule, IconsModule]
|
|
54
|
+
imports: [CommonModule, IconsModule, WatermarkModule]
|
|
54
55
|
}]
|
|
55
56
|
}] });
|
|
@@ -18,7 +18,7 @@ import { normalizeScrollableSettings } from './models/scrollable-settings';
|
|
|
18
18
|
import { TabScrollEvent } from './events/tabscroll-event';
|
|
19
19
|
import { TabStripScrollableButtonComponent } from './scrollable-button.component';
|
|
20
20
|
import { take } from 'rxjs/operators';
|
|
21
|
-
import { guid, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
21
|
+
import { guid, isDocumentAvailable, shouldShowValidationUI } from '@progress/kendo-angular-common';
|
|
22
22
|
import * as i0 from "@angular/core";
|
|
23
23
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
24
24
|
import * as i2 from "./tabstrip.service";
|
|
@@ -84,16 +84,21 @@ export class TabStripComponent {
|
|
|
84
84
|
* The event is preventable.
|
|
85
85
|
*/
|
|
86
86
|
this.tabScroll = new EventEmitter();
|
|
87
|
-
this.
|
|
87
|
+
this.hostClasses = true;
|
|
88
88
|
/**
|
|
89
89
|
* A query list of all declared tabs.
|
|
90
90
|
*/
|
|
91
91
|
this.tabs = new QueryList();
|
|
92
|
+
/**
|
|
93
|
+
* @hidden
|
|
94
|
+
*/
|
|
95
|
+
this.showLicenseWatermark = false;
|
|
92
96
|
this._scrollableSettings = normalizeScrollableSettings(false);
|
|
93
97
|
this.subscriptions = new Subscription();
|
|
94
98
|
this.subscriptionsArePresent = false;
|
|
95
99
|
this.tabStripId = guid();
|
|
96
|
-
validatePackage(packageMetadata);
|
|
100
|
+
const isValid = validatePackage(packageMetadata);
|
|
101
|
+
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
97
102
|
this.tabstripService.owner = this;
|
|
98
103
|
this.scrollService.owner = this;
|
|
99
104
|
this.subscriptions.add(this.scrollService.scrollButtonActiveStateChange.subscribe((activeButtonSettings) => {
|
|
@@ -384,7 +389,7 @@ export class TabStripComponent {
|
|
|
384
389
|
}
|
|
385
390
|
}
|
|
386
391
|
TabStripComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TabStripComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i2.TabStripService }, { token: i3.ScrollService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
387
|
-
TabStripComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: TabStripComponent, selector: "kendo-tabstrip", inputs: { height: "height", animate: "animate", tabAlignment: "tabAlignment", tabPosition: "tabPosition", keepTabContent: "keepTabContent", closable: "closable", scrollable: "scrollable", closeIcon: "closeIcon", closeIconClass: "closeIconClass", closeSVGIcon: "closeSVGIcon" }, outputs: { tabSelect: "tabSelect", tabClose: "tabClose", tabScroll: "tabScroll" }, host: { properties: { "class.k-tabstrip": "this.
|
|
392
|
+
TabStripComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: TabStripComponent, selector: "kendo-tabstrip", inputs: { height: "height", animate: "animate", tabAlignment: "tabAlignment", tabPosition: "tabPosition", keepTabContent: "keepTabContent", closable: "closable", scrollable: "scrollable", closeIcon: "closeIcon", closeIconClass: "closeIconClass", closeSVGIcon: "closeSVGIcon" }, outputs: { tabSelect: "tabSelect", tabClose: "tabClose", tabScroll: "tabScroll" }, host: { properties: { "class.k-tabstrip": "this.hostClasses", "class.k-pos-relative": "this.hostClasses", "class.k-tabstrip-top": "this.tabsAtTop", "class.k-tabstrip-right": "this.tabsAtRight", "class.k-tabstrip-bottom": "this.tabsAtBottom", "class.k-tabstrip-left": "this.tabsAtLeft", "attr.dir": "this.dir", "class.k-tabstrip-scrollable": "this.tabStripScrollable" } }, providers: [
|
|
388
393
|
TabStripService,
|
|
389
394
|
ScrollService,
|
|
390
395
|
LocalizationService,
|
|
@@ -492,7 +497,8 @@ TabStripComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
492
497
|
</ng-template>
|
|
493
498
|
</ng-template>
|
|
494
499
|
<kendo-resize-sensor *ngIf="isScrollable" (resize)="onResize()"></kendo-resize-sensor>
|
|
495
|
-
|
|
500
|
+
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
501
|
+
`, isInline: true, components: [{ type: i4.TabStripScrollableButtonComponent, selector: "[kendoTabStripScrollableButton]", inputs: ["prev", "tabPosition", "scrollable"], outputs: ["tabScroll", "onClick"] }, { type: i5.TabComponent, selector: "[kendoTabStripTab]", inputs: ["tab", "index", "tabStripClosable", "tabStripCloseIcon", "customTabstripCloseIcon", "closeSVGIcon"], outputs: ["tabClose"] }, { type: i6.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { type: i6.WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], directives: [{ type: i7.LocalizedTabStripMessagesDirective, selector: "[kendoTabStripLocalizedMessages]" }, { type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], animations: [
|
|
496
502
|
trigger('state', [
|
|
497
503
|
state('active', style({ opacity: 1 })),
|
|
498
504
|
transition('* => active', [
|
|
@@ -624,6 +630,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
624
630
|
</ng-template>
|
|
625
631
|
</ng-template>
|
|
626
632
|
<kendo-resize-sensor *ngIf="isScrollable" (resize)="onResize()"></kendo-resize-sensor>
|
|
633
|
+
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
627
634
|
`
|
|
628
635
|
}]
|
|
629
636
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i2.TabStripService }, { type: i3.ScrollService }, { type: i0.NgZone }]; }, propDecorators: { height: [{
|
|
@@ -652,9 +659,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
652
659
|
type: Output
|
|
653
660
|
}], tabScroll: [{
|
|
654
661
|
type: Output
|
|
655
|
-
}],
|
|
662
|
+
}], hostClasses: [{
|
|
656
663
|
type: HostBinding,
|
|
657
664
|
args: ['class.k-tabstrip']
|
|
665
|
+
}, {
|
|
666
|
+
type: HostBinding,
|
|
667
|
+
args: ['class.k-pos-relative']
|
|
658
668
|
}], tabsAtTop: [{
|
|
659
669
|
type: HostBinding,
|
|
660
670
|
args: ['class.k-tabstrip-top']
|
|
@@ -11,7 +11,7 @@ import { TabContentDirective } from './tabstrip/directives/tab-content.directive
|
|
|
11
11
|
import { TabTitleDirective } from './tabstrip/directives/tab-title.directive';
|
|
12
12
|
import { TabStripCustomMessagesComponent } from './tabstrip/localization/custom-messages.component';
|
|
13
13
|
import { LocalizedTabStripMessagesDirective } from './tabstrip/localization/localized-messages.directive';
|
|
14
|
-
import { ResizeSensorModule } from '@progress/kendo-angular-common';
|
|
14
|
+
import { ResizeSensorModule, WatermarkModule } from '@progress/kendo-angular-common';
|
|
15
15
|
import { TabStripScrollableButtonComponent } from './tabstrip/scrollable-button.component';
|
|
16
16
|
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
17
17
|
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
@@ -48,19 +48,19 @@ TabStripModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
48
48
|
TabTitleDirective,
|
|
49
49
|
TabComponent,
|
|
50
50
|
TabStripCustomMessagesComponent,
|
|
51
|
-
LocalizedTabStripMessagesDirective, TabStripScrollableButtonComponent], imports: [CommonModule, ResizeSensorModule, IconsModule, ButtonModule], exports: [TabStripComponent,
|
|
51
|
+
LocalizedTabStripMessagesDirective, TabStripScrollableButtonComponent], imports: [CommonModule, ResizeSensorModule, IconsModule, ButtonModule, WatermarkModule], exports: [TabStripComponent,
|
|
52
52
|
TabStripTabComponent,
|
|
53
53
|
TabContentDirective,
|
|
54
54
|
TabTitleDirective,
|
|
55
55
|
TabComponent,
|
|
56
56
|
TabStripCustomMessagesComponent,
|
|
57
57
|
LocalizedTabStripMessagesDirective] });
|
|
58
|
-
TabStripModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TabStripModule, imports: [[CommonModule, ResizeSensorModule, IconsModule, ButtonModule]] });
|
|
58
|
+
TabStripModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TabStripModule, imports: [[CommonModule, ResizeSensorModule, IconsModule, ButtonModule, WatermarkModule]] });
|
|
59
59
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TabStripModule, decorators: [{
|
|
60
60
|
type: NgModule,
|
|
61
61
|
args: [{
|
|
62
62
|
declarations: [declarations],
|
|
63
63
|
exports: [exportedModules],
|
|
64
|
-
imports: [CommonModule, ResizeSensorModule, IconsModule, ButtonModule]
|
|
64
|
+
imports: [CommonModule, ResizeSensorModule, IconsModule, ButtonModule, WatermarkModule]
|
|
65
65
|
}]
|
|
66
66
|
}] });
|
|
@@ -94,8 +94,8 @@ export class TileLayoutDraggingService {
|
|
|
94
94
|
};
|
|
95
95
|
});
|
|
96
96
|
setElementStyles(this.renderer, this.draggedItemWrapper, {
|
|
97
|
-
left: tileRect.left + window.pageXOffset + 'px',
|
|
98
|
-
top: tileRect.top + window.pageYOffset + 'px',
|
|
97
|
+
left: tileRect.left + window.pageXOffset - window.scrollX + 'px',
|
|
98
|
+
top: tileRect.top + window.pageYOffset - window.scrollY + 'px',
|
|
99
99
|
width: tileRect.width + 'px',
|
|
100
100
|
height: tileRect.height + 'px',
|
|
101
101
|
zIndex: DRAGGED_ZINDEX
|
|
@@ -106,7 +106,7 @@ export class TileLayoutDraggingService {
|
|
|
106
106
|
});
|
|
107
107
|
this.zone.run(() => this.targetOrder = this.draggedItem.order);
|
|
108
108
|
setElementStyles(this.renderer, this.draggedItemWrapper, {
|
|
109
|
-
position: '
|
|
109
|
+
position: 'fixed'
|
|
110
110
|
});
|
|
111
111
|
if (this.reorderable.getValue() && !resizing) {
|
|
112
112
|
this.zone.run(() => {
|
|
@@ -244,8 +244,8 @@ export class TileLayoutDraggingService {
|
|
|
244
244
|
this.tileLayoutSettings.tileLayoutElement.appendChild(this.tileLayoutSettings.hintElement);
|
|
245
245
|
}
|
|
246
246
|
setElementStyles(this.renderer, this.draggedItemWrapper, {
|
|
247
|
-
top: (event.pageY - this.offset.top) + 'px',
|
|
248
|
-
left: (event.pageX - this.offset.left) + 'px'
|
|
247
|
+
top: (event.pageY - this.offset.top - window.scrollY) + 'px',
|
|
248
|
+
left: (event.pageX - this.offset.left - window.scrollX) + 'px'
|
|
249
249
|
});
|
|
250
250
|
this.cdr.markForCheck();
|
|
251
251
|
}
|
|
@@ -8,7 +8,7 @@ import { Subscription } from 'rxjs';
|
|
|
8
8
|
import { Draggable } from '@progress/kendo-draggable';
|
|
9
9
|
import { TileLayoutItemComponent } from './tilelayout-item.component';
|
|
10
10
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
11
|
-
import { hasObservers, isChanged } from '@progress/kendo-angular-common';
|
|
11
|
+
import { hasObservers, isChanged, shouldShowValidationUI } from '@progress/kendo-angular-common';
|
|
12
12
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
13
13
|
import { packageMetadata } from '../package-metadata';
|
|
14
14
|
import { isPresent } from '../common/util';
|
|
@@ -17,6 +17,8 @@ import * as i0 from "@angular/core";
|
|
|
17
17
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
18
18
|
import * as i2 from "./dragging-service";
|
|
19
19
|
import * as i3 from "./keyboard-navigation.service";
|
|
20
|
+
import * as i4 from "@progress/kendo-angular-common";
|
|
21
|
+
import * as i5 from "@angular/common";
|
|
20
22
|
const autoFlowClasses = {
|
|
21
23
|
column: 'k-grid-flow-col',
|
|
22
24
|
row: 'k-grid-flow-row',
|
|
@@ -91,12 +93,17 @@ export class TileLayoutComponent {
|
|
|
91
93
|
this.resize = new EventEmitter();
|
|
92
94
|
this.hostClass = true;
|
|
93
95
|
this.hostRole = 'list';
|
|
96
|
+
/**
|
|
97
|
+
* @hidden
|
|
98
|
+
*/
|
|
99
|
+
this.showLicenseWatermark = false;
|
|
94
100
|
this.subs = new Subscription();
|
|
95
101
|
this._gap = {
|
|
96
102
|
rows: 16,
|
|
97
103
|
columns: 16
|
|
98
104
|
};
|
|
99
|
-
validatePackage(packageMetadata);
|
|
105
|
+
const isValid = validatePackage(packageMetadata);
|
|
106
|
+
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
100
107
|
}
|
|
101
108
|
/**
|
|
102
109
|
* The numeric values which determine the spacing in pixels between the layout items horizontally and vertically.
|
|
@@ -248,7 +255,7 @@ export class TileLayoutComponent {
|
|
|
248
255
|
}
|
|
249
256
|
}
|
|
250
257
|
TileLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TileLayoutComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i2.TileLayoutDraggingService }, { token: i3.TileLayoutKeyboardNavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
251
|
-
TileLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: TileLayoutComponent, selector: "kendo-tilelayout", inputs: { columns: "columns", columnWidth: "columnWidth", gap: "gap", reorderable: "reorderable", resizable: "resizable", rowHeight: "rowHeight", autoFlow: "autoFlow", navigable: "navigable" }, outputs: { reorder: "reorder", resize: "resize" }, host: { properties: { "class.k-tilelayout": "this.hostClass", "attr.role": "this.hostRole", "style.gap": "this.gapStyle", "style.padding": "this.gapStyle", "attr.dir": "this.direction" } }, providers: [
|
|
258
|
+
TileLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: TileLayoutComponent, selector: "kendo-tilelayout", inputs: { columns: "columns", columnWidth: "columnWidth", gap: "gap", reorderable: "reorderable", resizable: "resizable", rowHeight: "rowHeight", autoFlow: "autoFlow", navigable: "navigable" }, outputs: { reorder: "reorder", resize: "resize" }, host: { properties: { "class.k-tilelayout": "this.hostClass", "class.k-pos-relative": "this.hostClass", "attr.role": "this.hostRole", "style.gap": "this.gapStyle", "style.padding": "this.gapStyle", "attr.dir": "this.direction" } }, providers: [
|
|
252
259
|
LocalizationService,
|
|
253
260
|
TileLayoutDraggingService,
|
|
254
261
|
TileLayoutKeyboardNavigationService,
|
|
@@ -265,8 +272,10 @@ TileLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
265
272
|
[style.gridRowEnd]="draggedItemWrapper?.style.gridRowEnd"
|
|
266
273
|
[style.gridColumnStart]="currentColStart"
|
|
267
274
|
[style.gridRowStart]="currentRowStart"
|
|
268
|
-
[style.zIndex]="'1'"
|
|
269
|
-
|
|
275
|
+
[style.zIndex]="'1'">
|
|
276
|
+
</div>
|
|
277
|
+
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
278
|
+
`, isInline: true, components: [{ type: i4.WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
270
279
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TileLayoutComponent, decorators: [{
|
|
271
280
|
type: Component,
|
|
272
281
|
args: [{
|
|
@@ -289,7 +298,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
289
298
|
[style.gridRowEnd]="draggedItemWrapper?.style.gridRowEnd"
|
|
290
299
|
[style.gridColumnStart]="currentColStart"
|
|
291
300
|
[style.gridRowStart]="currentRowStart"
|
|
292
|
-
[style.zIndex]="'1'"
|
|
301
|
+
[style.zIndex]="'1'">
|
|
302
|
+
</div>
|
|
303
|
+
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
293
304
|
`
|
|
294
305
|
}]
|
|
295
306
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i2.TileLayoutDraggingService }, { type: i3.TileLayoutKeyboardNavigationService }]; }, propDecorators: { columns: [{
|
|
@@ -315,6 +326,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
315
326
|
}], hostClass: [{
|
|
316
327
|
type: HostBinding,
|
|
317
328
|
args: ['class.k-tilelayout']
|
|
329
|
+
}, {
|
|
330
|
+
type: HostBinding,
|
|
331
|
+
args: ['class.k-pos-relative']
|
|
318
332
|
}], hostRole: [{
|
|
319
333
|
type: HostBinding,
|
|
320
334
|
args: ['attr.role']
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { WatermarkModule } from '@progress/kendo-angular-common';
|
|
7
8
|
import { TileLayoutComponent } from './tilelayout/tilelayout.component';
|
|
8
9
|
import { TileLayoutItemComponent } from './tilelayout/tilelayout-item.component';
|
|
9
10
|
import { TileLayoutItemHeaderComponent } from './tilelayout/tilelayout-item-header.component';
|
|
@@ -37,17 +38,17 @@ TileLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
|
|
|
37
38
|
TileLayoutItemComponent,
|
|
38
39
|
TileLayoutItemHeaderComponent,
|
|
39
40
|
TileLayoutItemBodyComponent,
|
|
40
|
-
TileLayoutResizeHandleDirective], imports: [CommonModule], exports: [TileLayoutComponent,
|
|
41
|
+
TileLayoutResizeHandleDirective], imports: [CommonModule, WatermarkModule], exports: [TileLayoutComponent,
|
|
41
42
|
TileLayoutItemComponent,
|
|
42
43
|
TileLayoutItemHeaderComponent,
|
|
43
44
|
TileLayoutItemBodyComponent,
|
|
44
45
|
TileLayoutResizeHandleDirective] });
|
|
45
|
-
TileLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TileLayoutModule, imports: [[CommonModule]] });
|
|
46
|
+
TileLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TileLayoutModule, imports: [[CommonModule, WatermarkModule]] });
|
|
46
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TileLayoutModule, decorators: [{
|
|
47
48
|
type: NgModule,
|
|
48
49
|
args: [{
|
|
49
50
|
declarations: [declarations],
|
|
50
51
|
exports: [exportedModules],
|
|
51
|
-
imports: [CommonModule]
|
|
52
|
+
imports: [CommonModule, WatermarkModule]
|
|
52
53
|
}]
|
|
53
54
|
}] });
|