@progress/kendo-angular-dialog 7.1.5 → 11.0.0-develop.101
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/LICENSE.md +1 -1
- package/NOTICE.txt +4 -4
- package/README.md +1 -1
- package/common/actions-layout.d.ts +2 -2
- package/common/animation-types.d.ts +1 -1
- package/common/dialog-animation-direction.d.ts +1 -1
- package/common/preventable-event.d.ts +1 -1
- package/common/util.d.ts +3 -3
- package/dialog/dialog-actions.component.d.ts +4 -3
- package/dialog/dialog-animations/animate-content.d.ts +1 -1
- package/dialog/dialog-animations/animations.d.ts +1 -1
- package/dialog/dialog-animations/create-animation-player.d.ts +1 -1
- package/dialog/dialog-container.directive.d.ts +1 -1
- package/dialog/dialog-container.service.d.ts +1 -1
- package/dialog/dialog-content-base.d.ts +1 -1
- package/dialog/dialog-titlebar.component.d.ts +6 -1
- package/dialog/dialog.component.d.ts +16 -2
- package/dialog/dialog.service.d.ts +1 -1
- package/dialog/models/dialog-action.d.ts +1 -1
- package/dialog/models/dialog-animation.d.ts +1 -1
- package/dialog/models/dialog-close-result.d.ts +1 -1
- package/dialog/models/dialog-ref.d.ts +1 -1
- package/dialog/models/dialog-result.d.ts +1 -1
- package/dialog/models/dialog-settings.d.ts +1 -1
- package/dialog/models/index.d.ts +2 -1
- package/dialog/models/theme-color.d.ts +13 -0
- package/dialog.module.d.ts +1 -1
- package/dialogs.module.d.ts +1 -1
- package/{esm2015/dialog/models/dialog-animation.js → esm2020/common/actions-layout.mjs} +1 -1
- package/{esm2015/common/actions-layout.js → esm2020/common/animation-types.mjs} +1 -1
- package/{esm2015/common/animation-types.js → esm2020/common/dialog-animation-direction.mjs} +1 -1
- package/{esm2015/common/preventable-event.js → esm2020/common/preventable-event.mjs} +1 -1
- package/{esm2015/common/util.js → esm2020/common/util.mjs} +3 -3
- package/{esm2015/dialog/dialog-actions.component.js → esm2020/dialog/dialog-actions.component.mjs} +23 -11
- package/{esm2015/dialog/dialog-animations/animate-content.js → esm2020/dialog/dialog-animations/animate-content.mjs} +1 -1
- package/{esm2015/dialog/dialog-animations/animations.js → esm2020/dialog/dialog-animations/animations.mjs} +9 -5
- package/{esm2015/dialog/dialog-animations/create-animation-player.js → esm2020/dialog/dialog-animations/create-animation-player.mjs} +1 -1
- package/{esm2015/dialog/dialog-container.directive.js → esm2020/dialog/dialog-container.directive.mjs} +6 -5
- package/{esm2015/dialog/dialog-container.service.js → esm2020/dialog/dialog-container.service.mjs} +4 -4
- package/{esm2015/dialog/dialog-content-base.js → esm2020/dialog/dialog-content-base.mjs} +5 -4
- package/{esm2015/dialog/dialog-titlebar.component.js → esm2020/dialog/dialog-titlebar.component.mjs} +29 -17
- package/{esm2015/dialog/dialog.component.js → esm2020/dialog/dialog.component.mjs} +43 -8
- package/{esm2015/dialog/dialog.service.js → esm2020/dialog/dialog.service.mjs} +5 -5
- package/{esm2015/dialog/models/dialog-action.js → esm2020/dialog/models/dialog-action.mjs} +1 -1
- package/{esm2015/common/dialog-animation-direction.js → esm2020/dialog/models/dialog-animation.mjs} +1 -1
- package/{esm2015/dialog/models/dialog-close-result.js → esm2020/dialog/models/dialog-close-result.mjs} +1 -1
- package/{esm2015/dialog/models/dialog-ref.js → esm2020/dialog/models/dialog-ref.mjs} +1 -1
- package/esm2020/dialog/models/dialog-result.mjs +5 -0
- package/{esm2015/dialog/models/dialog-settings.js → esm2020/dialog/models/dialog-settings.mjs} +1 -1
- package/{esm2015/dialog/models/index.js → esm2020/dialog/models/index.mjs} +2 -1
- package/esm2020/dialog/models/theme-color.mjs +5 -0
- package/{esm2015/dialog.module.js → esm2020/dialog.module.mjs} +5 -5
- package/{esm2015/dialogs.module.js → esm2020/dialogs.module.mjs} +5 -5
- package/{esm2015/main.js → esm2020/index.mjs} +2 -1
- package/{esm2015/localization/custom-messages.component.js → esm2020/localization/custom-messages.component.mjs} +5 -4
- package/{esm2015/localization/dialog-localization.service.js → esm2020/localization/dialog-localization.service.mjs} +1 -1
- package/{esm2015/localization/localized-messages.directive.js → esm2020/localization/localized-messages.directive.mjs} +5 -4
- package/{esm2015/localization/messages.js → esm2020/localization/messages.mjs} +4 -4
- package/{esm2015/localization/titlebar-localization.service.js → esm2020/localization/titlebar-localization.service.mjs} +5 -5
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/{esm2015/kendo-angular-dialog.js → esm2020/progress-kendo-angular-dialog.mjs} +2 -2
- package/{esm2015/shared.module.js → esm2020/shared.module.mjs} +11 -9
- package/{esm2015/window/actions/window-close-action.directive.js → esm2020/window/actions/window-close-action.directive.mjs} +42 -9
- package/{esm2015/window/actions/window-maximize-action.directive.js → esm2020/window/actions/window-maximize-action.directive.mjs} +42 -9
- package/{esm2015/window/actions/window-minimize-action.directive.js → esm2020/window/actions/window-minimize-action.directive.mjs} +42 -9
- package/{esm2015/window/actions/window-restore-action.directive.js → esm2020/window/actions/window-restore-action.directive.mjs} +42 -9
- package/{esm2015/window/drag-resize.service.js → esm2020/window/drag-resize.service.mjs} +13 -13
- package/{esm2015/window/models/index.js → esm2020/window/models/index.mjs} +2 -1
- package/esm2020/window/models/theme-color.mjs +5 -0
- package/{esm2015/window/models/window-close-result.js → esm2020/window/models/window-close-result.mjs} +1 -1
- package/esm2020/window/models/window-messages.mjs +5 -0
- package/esm2020/window/models/window-options.mjs +5 -0
- package/{esm2015/window/models/window-ref.js → esm2020/window/models/window-ref.mjs} +1 -1
- package/{esm2015/window/models/window-settings.js → esm2020/window/models/window-settings.mjs} +1 -1
- package/esm2020/window/models/window-types.mjs +5 -0
- package/{esm2015/window/navigation.service.js → esm2020/window/navigation.service.mjs} +10 -9
- package/{esm2015/window/window-container.directive.js → esm2020/window/window-container.directive.mjs} +6 -5
- package/{esm2015/window/window-container.service.js → esm2020/window/window-container.service.mjs} +4 -4
- package/esm2020/window/window-events.mjs +5 -0
- package/{esm2015/window/window-resize-handle.directive.js → esm2020/window/window-resize-handle.directive.mjs} +7 -5
- package/{esm2015/window/window-titlebar.component.js → esm2020/window/window-titlebar.component.mjs} +6 -8
- package/{esm2015/window/window.component.js → esm2020/window/window.component.mjs} +55 -23
- package/{esm2015/window/window.service.js → esm2020/window/window.service.mjs} +5 -5
- package/{esm2015/window.module.js → esm2020/window.module.mjs} +5 -5
- package/fesm2015/progress-kendo-angular-dialog.mjs +3765 -0
- package/{fesm2015/kendo-angular-dialog.js → fesm2020/progress-kendo-angular-dialog.mjs} +378 -169
- package/{main.d.ts → index.d.ts} +4 -3
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/dialog-localization.service.d.ts +1 -1
- package/localization/localized-messages.directive.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/localization/titlebar-localization.service.d.ts +1 -1
- package/package-metadata.d.ts +1 -1
- package/package.json +30 -56
- package/{kendo-angular-dialog.d.ts → progress-kendo-angular-dialog.d.ts} +2 -2
- package/schematics/ngAdd/index.js +4 -6
- package/shared.module.d.ts +4 -2
- package/window/actions/window-close-action.directive.d.ts +7 -2
- package/window/actions/window-maximize-action.directive.d.ts +7 -2
- package/window/actions/window-minimize-action.directive.d.ts +7 -2
- package/window/actions/window-restore-action.directive.d.ts +7 -2
- package/window/drag-resize.service.d.ts +1 -1
- package/window/models/index.d.ts +2 -1
- package/window/models/theme-color.d.ts +13 -0
- package/window/models/window-close-result.d.ts +1 -1
- package/window/models/window-messages.d.ts +1 -1
- package/window/models/window-options.d.ts +1 -1
- package/window/models/window-ref.d.ts +1 -1
- package/window/models/window-settings.d.ts +1 -1
- package/window/models/window-types.d.ts +1 -1
- package/window/navigation.service.d.ts +1 -1
- package/window/window-container.directive.d.ts +1 -1
- package/window/window-container.service.d.ts +1 -1
- package/window/window-events.d.ts +1 -1
- package/window/window-resize-handle.directive.d.ts +1 -1
- package/window/window-titlebar.component.d.ts +1 -1
- package/window/window.component.d.ts +17 -3
- package/window/window.service.d.ts +1 -1
- package/window.module.d.ts +1 -1
- package/bundles/kendo-angular-dialog.umd.js +0 -5
- package/esm2015/dialog/models/dialog-result.js +0 -5
- package/esm2015/window/models/window-messages.js +0 -5
- package/esm2015/window/models/window-options.js +0 -5
- package/esm2015/window/models/window-types.js +0 -5
- package/esm2015/window/window-events.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { Directive } from '@angular/core';
|
|
5
|
+
import { Directive, ViewContainerRef } from '@angular/core';
|
|
6
|
+
import { WindowContainerService } from './window-container.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
import * as i1 from "./window-container.service";
|
|
8
9
|
/**
|
|
@@ -20,9 +21,9 @@ export class WindowContainerDirective {
|
|
|
20
21
|
service.container = container;
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
|
-
WindowContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
24
|
-
WindowContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
+
WindowContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowContainerDirective, deps: [{ token: i0.ViewContainerRef }, { token: i1.WindowContainerService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
+
WindowContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: WindowContainerDirective, selector: "[kendoWindowContainer]", ngImport: i0 });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowContainerDirective, decorators: [{
|
|
26
27
|
type: Directive,
|
|
27
28
|
args: [{
|
|
28
29
|
selector: '[kendoWindowContainer]'
|
package/{esm2015/window/window-container.service.js → esm2020/window/window-container.service.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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
5
|
import { Injectable } from '@angular/core';
|
|
@@ -16,8 +16,8 @@ export class WindowContainerService {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
WindowContainerService.container = null;
|
|
19
|
-
WindowContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
WindowContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
19
|
+
WindowContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20
|
+
WindowContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowContainerService });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowContainerService, decorators: [{
|
|
22
22
|
type: Injectable
|
|
23
23
|
}] });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { Directive, Host, Input, HostBinding } from '@angular/core';
|
|
5
|
+
import { Directive, Host, ElementRef, Input, HostBinding, Renderer2 } from '@angular/core';
|
|
6
|
+
import { DraggableDirective } from '@progress/kendo-angular-common';
|
|
7
|
+
import { DragResizeService } from './drag-resize.service';
|
|
6
8
|
import { Subscription, of, merge } from 'rxjs';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
import * as i1 from "@progress/kendo-angular-common";
|
|
@@ -49,9 +51,9 @@ export class ResizeHandleDirective {
|
|
|
49
51
|
this.renderer.setStyle(this.el.nativeElement, 'display', this.service.options.state === 'default' ? value : 'none');
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
|
-
ResizeHandleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
53
|
-
ResizeHandleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
54
|
+
ResizeHandleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeHandleDirective, deps: [{ token: i1.DraggableDirective, host: true }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.DragResizeService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
55
|
+
ResizeHandleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: { direction: "direction" }, host: { properties: { "class.k-resize-handle": "this.hostClass" } }, ngImport: i0 });
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeHandleDirective, decorators: [{
|
|
55
57
|
type: Directive,
|
|
56
58
|
args: [{
|
|
57
59
|
selector: '[kendoWindowResizeHandle]'
|
package/{esm2015/window/window-titlebar.component.js → esm2020/window/window-titlebar.component.mjs}
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { Component, HostBinding, HostListener, Input } from '@angular/core';
|
|
5
|
+
import { Component, HostBinding, HostListener, ElementRef, NgZone, TemplateRef, Input } from '@angular/core';
|
|
6
6
|
import { DraggableDirective } from '@progress/kendo-angular-common';
|
|
7
|
+
import { DragResizeService } from './drag-resize.service';
|
|
7
8
|
import { of } from 'rxjs';
|
|
8
9
|
import { hasClasses, isFocusable, isPresent } from '../common/util';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
@@ -105,15 +106,15 @@ export class WindowTitleBarComponent {
|
|
|
105
106
|
return options.draggable && options.state !== 'maximized';
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
|
-
WindowTitleBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
109
|
-
WindowTitleBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
109
|
+
WindowTitleBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowTitleBarComponent, deps: [{ token: i0.ElementRef }, { token: i1.DragResizeService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
110
|
+
WindowTitleBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: { template: "template", id: "id" }, host: { listeners: { "dblclick": "handle($event)" }, properties: { "class.k-window-titlebar": "this.className", "style.touch-action": "this.touchAction" } }, ngImport: i0, template: `
|
|
110
111
|
<ng-content *ngIf="!template"></ng-content>
|
|
111
112
|
<ng-template
|
|
112
113
|
[ngTemplateOutlet]="template"
|
|
113
114
|
[ngTemplateOutletContext]="{'$implicit': service}" *ngIf="template">
|
|
114
115
|
</ng-template>
|
|
115
116
|
`, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowTitleBarComponent, decorators: [{
|
|
117
118
|
type: Component,
|
|
118
119
|
args: [{
|
|
119
120
|
selector: 'kendo-window-titlebar',
|
|
@@ -132,9 +133,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
132
133
|
}], className: [{
|
|
133
134
|
type: HostBinding,
|
|
134
135
|
args: ['class.k-window-titlebar']
|
|
135
|
-
}, {
|
|
136
|
-
type: HostBinding,
|
|
137
|
-
args: ['class.k-dialog-titlebar']
|
|
138
136
|
}], touchAction: [{
|
|
139
137
|
type: HostBinding,
|
|
140
138
|
args: ['style.touch-action']
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { Component, Input, Output, HostBinding, EventEmitter, ContentChild, ViewChildren, HostListener, ViewChild } from '@angular/core';
|
|
5
|
+
import { Component, Input, Output, HostBinding, EventEmitter, ContentChild, ElementRef, Renderer2, ViewChildren, QueryList, HostListener, NgZone, ViewChild } from '@angular/core';
|
|
6
6
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { isChanged, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
8
8
|
import { Subscription } from 'rxjs';
|
|
@@ -19,12 +19,12 @@ import * as i1 from "./drag-resize.service";
|
|
|
19
19
|
import * as i2 from "./navigation.service";
|
|
20
20
|
import * as i3 from "@progress/kendo-angular-l10n";
|
|
21
21
|
import * as i4 from "./window-titlebar.component";
|
|
22
|
-
import * as i5 from "
|
|
23
|
-
import * as i6 from "
|
|
24
|
-
import * as i7 from "./actions/window-
|
|
25
|
-
import * as i8 from "./actions/window-
|
|
26
|
-
import * as i9 from "
|
|
27
|
-
import * as i10 from "
|
|
22
|
+
import * as i5 from "./actions/window-minimize-action.directive";
|
|
23
|
+
import * as i6 from "./actions/window-maximize-action.directive";
|
|
24
|
+
import * as i7 from "./actions/window-restore-action.directive";
|
|
25
|
+
import * as i8 from "./actions/window-close-action.directive";
|
|
26
|
+
import * as i9 from "../localization/localized-messages.directive";
|
|
27
|
+
import * as i10 from "@angular/common";
|
|
28
28
|
import * as i11 from "./window-resize-handle.directive";
|
|
29
29
|
import * as i12 from "@progress/kendo-angular-common";
|
|
30
30
|
/**
|
|
@@ -94,10 +94,12 @@ export class WindowComponent {
|
|
|
94
94
|
this.messages = {};
|
|
95
95
|
this.tabIndex = 0;
|
|
96
96
|
this.role = 'dialog';
|
|
97
|
+
this.hostClass = true;
|
|
97
98
|
/**
|
|
98
99
|
* @hidden
|
|
99
100
|
*/
|
|
100
101
|
this.titleId = null;
|
|
102
|
+
this._themeColor = null;
|
|
101
103
|
this.draged = false;
|
|
102
104
|
this.resized = false;
|
|
103
105
|
this.windowSubscription = new Subscription();
|
|
@@ -130,6 +132,22 @@ export class WindowComponent {
|
|
|
130
132
|
get resizable() {
|
|
131
133
|
return this.options.resizable;
|
|
132
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* The Window allows you to specify predefined theme colors.
|
|
137
|
+
* The theme color will be applied as a background and border color to the titlebar while also amending the text color accordingly.
|
|
138
|
+
*
|
|
139
|
+
* The possible values are:
|
|
140
|
+
* * `primary`
|
|
141
|
+
* * `dark`
|
|
142
|
+
* * `light`
|
|
143
|
+
*/
|
|
144
|
+
set themeColor(themeColor) {
|
|
145
|
+
this.handleThemeColorClass(this.themeColor, themeColor);
|
|
146
|
+
this._themeColor = themeColor;
|
|
147
|
+
}
|
|
148
|
+
get themeColor() {
|
|
149
|
+
return this._themeColor;
|
|
150
|
+
}
|
|
133
151
|
/**
|
|
134
152
|
* @hidden
|
|
135
153
|
*/
|
|
@@ -260,13 +278,13 @@ export class WindowComponent {
|
|
|
260
278
|
}
|
|
261
279
|
return this.localization.get('minimizeTitle');
|
|
262
280
|
}
|
|
263
|
-
get hostClasses() {
|
|
264
|
-
return true;
|
|
265
|
-
}
|
|
266
281
|
get dir() {
|
|
267
282
|
return this.direction;
|
|
268
283
|
}
|
|
269
284
|
ngAfterViewInit() {
|
|
285
|
+
if (!isDocumentAvailable()) {
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
270
288
|
this.setNextZIndex();
|
|
271
289
|
this.handleInitialFocus();
|
|
272
290
|
this.ngZone.runOutsideAngular(() => Promise.resolve(null).then(() => this.setInitialOffset()));
|
|
@@ -274,6 +292,7 @@ export class WindowComponent {
|
|
|
274
292
|
if (this.titleBarView || this.titleBarContent) {
|
|
275
293
|
this.renderer.setAttribute(this.el.nativeElement, 'aria-labelledby', this.titleId);
|
|
276
294
|
}
|
|
295
|
+
this.handleThemeColorClass(null, this.themeColor);
|
|
277
296
|
}
|
|
278
297
|
ngOnInit() {
|
|
279
298
|
this.renderer.removeAttribute(this.el.nativeElement, 'title');
|
|
@@ -287,7 +306,7 @@ export class WindowComponent {
|
|
|
287
306
|
});
|
|
288
307
|
if (isChanged('draggable', changes)) {
|
|
289
308
|
const titleBar = isPresent(this.titleBarContent) ? this.titleBarContent : this.titleBarView;
|
|
290
|
-
if (isTruthy(changes
|
|
309
|
+
if (isTruthy(changes['draggable'].currentValue)) {
|
|
291
310
|
titleBar.subscribeDrag();
|
|
292
311
|
}
|
|
293
312
|
else {
|
|
@@ -540,9 +559,20 @@ export class WindowComponent {
|
|
|
540
559
|
generateTitleId() {
|
|
541
560
|
return 'kendo-window-title-' + Math.ceil(Math.random() * 1000000).toString();
|
|
542
561
|
}
|
|
562
|
+
handleThemeColorClass(previousValue, currentValue) {
|
|
563
|
+
const wrapper = this.el.nativeElement;
|
|
564
|
+
if (previousValue) {
|
|
565
|
+
const classToRemove = `k-window-${previousValue}`;
|
|
566
|
+
this.renderer.removeClass(wrapper, classToRemove);
|
|
567
|
+
}
|
|
568
|
+
if (currentValue) {
|
|
569
|
+
const classToAdd = `k-window-${currentValue}`;
|
|
570
|
+
this.renderer.addClass(wrapper, classToAdd);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
543
573
|
}
|
|
544
|
-
WindowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
545
|
-
WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
574
|
+
WindowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.DragResizeService }, { token: i2.NavigationService }, { token: i0.NgZone }, { token: i3.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
575
|
+
WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: WindowComponent, selector: "kendo-window", inputs: { autoFocusedElement: "autoFocusedElement", title: "title", draggable: "draggable", resizable: "resizable", themeColor: "themeColor", keepContent: "keepContent", state: "state", minWidth: "minWidth", minHeight: "minHeight", width: "width", height: "height", top: "top", left: "left" }, outputs: { dragStart: "dragStart", dragEnd: "dragEnd", resizeStart: "resizeStart", resizeEnd: "resizeEnd", close: "close", widthChange: "widthChange", heightChange: "heightChange", topChange: "topChange", leftChange: "leftChange", stateChange: "stateChange" }, host: { listeners: { "focus": "onComponentFocus()", "blur": "onComponentBlur()" }, properties: { "attr.tabIndex": "this.tabIndex", "attr.role": "this.role", "class.k-window": "this.hostClass", "attr.dir": "this.dir", "style.minWidth": "this.styleMinWidth", "style.minHeight": "this.styleMinHeight", "style.position": "this.stylePosition", "class.k-window-maximized": "this.wrapperMaximizedClass", "class.k-window-minimized": "this.wrapperMinimizedClass" } }, providers: [
|
|
546
576
|
DragResizeService,
|
|
547
577
|
NavigationService,
|
|
548
578
|
LocalizationService,
|
|
@@ -567,8 +597,8 @@ WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
567
597
|
<ng-container>
|
|
568
598
|
|
|
569
599
|
<kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate" [id]="titleId">
|
|
570
|
-
<
|
|
571
|
-
<div class="k-window-actions">
|
|
600
|
+
<span class="k-window-title">{{ title }}</span>
|
|
601
|
+
<div class="k-window-titlebar-actions">
|
|
572
602
|
<button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>
|
|
573
603
|
<button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>
|
|
574
604
|
<button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>
|
|
@@ -579,7 +609,7 @@ WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
579
609
|
|
|
580
610
|
<div *ngIf="state !== 'minimized' || keepContent"
|
|
581
611
|
[hidden]="state === 'minimized' && keepContent"
|
|
582
|
-
class="k-
|
|
612
|
+
class="k-window-content"
|
|
583
613
|
>
|
|
584
614
|
<ng-content *ngIf="!contentTemplate"></ng-content>
|
|
585
615
|
<ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
|
|
@@ -592,8 +622,8 @@ WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
592
622
|
kendoDraggable>
|
|
593
623
|
</div>
|
|
594
624
|
</ng-template>
|
|
595
|
-
`, isInline: true, components: [{ type: i4.WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template", "id"] }
|
|
596
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
625
|
+
`, isInline: true, components: [{ type: i4.WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template", "id"] }, { type: i5.WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { type: i6.WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { type: i7.WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { type: i8.WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }], directives: [{ type: i9.LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i11.ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: ["direction"] }, { type: i12.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
|
|
626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowComponent, decorators: [{
|
|
597
627
|
type: Component,
|
|
598
628
|
args: [{
|
|
599
629
|
exportAs: 'kendoWindow',
|
|
@@ -624,8 +654,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
624
654
|
<ng-container>
|
|
625
655
|
|
|
626
656
|
<kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate" [id]="titleId">
|
|
627
|
-
<
|
|
628
|
-
<div class="k-window-actions">
|
|
657
|
+
<span class="k-window-title">{{ title }}</span>
|
|
658
|
+
<div class="k-window-titlebar-actions">
|
|
629
659
|
<button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>
|
|
630
660
|
<button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>
|
|
631
661
|
<button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>
|
|
@@ -636,7 +666,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
636
666
|
|
|
637
667
|
<div *ngIf="state !== 'minimized' || keepContent"
|
|
638
668
|
[hidden]="state === 'minimized' && keepContent"
|
|
639
|
-
class="k-
|
|
669
|
+
class="k-window-content"
|
|
640
670
|
>
|
|
641
671
|
<ng-content *ngIf="!contentTemplate"></ng-content>
|
|
642
672
|
<ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
|
|
@@ -659,6 +689,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
659
689
|
type: Input
|
|
660
690
|
}], resizable: [{
|
|
661
691
|
type: Input
|
|
692
|
+
}], themeColor: [{
|
|
693
|
+
type: Input
|
|
662
694
|
}], keepContent: [{
|
|
663
695
|
type: Input
|
|
664
696
|
}], state: [{
|
|
@@ -701,7 +733,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
701
733
|
}], role: [{
|
|
702
734
|
type: HostBinding,
|
|
703
735
|
args: ['attr.role']
|
|
704
|
-
}],
|
|
736
|
+
}], hostClass: [{
|
|
705
737
|
type: HostBinding,
|
|
706
738
|
args: ['class.k-window']
|
|
707
739
|
}], dir: [{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { Injectable, Renderer2, TemplateRef, Inject } from '@angular/core';
|
|
5
|
+
import { ComponentFactoryResolver, Injectable, Renderer2, TemplateRef, Inject } from '@angular/core';
|
|
6
6
|
import { merge, Subject } from 'rxjs';
|
|
7
7
|
import { filter, map, share, take } from 'rxjs/operators';
|
|
8
8
|
import { WindowComponent } from './window.component';
|
|
@@ -206,9 +206,9 @@ export class WindowService {
|
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
WindowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
210
|
-
WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
209
|
+
WindowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService, deps: [{ token: i0.ComponentFactoryResolver }, { token: WindowContainerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
210
|
+
WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService });
|
|
211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService, decorators: [{
|
|
212
212
|
type: Injectable
|
|
213
213
|
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i1.WindowContainerService, decorators: [{
|
|
214
214
|
type: Inject,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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
5
|
import { NgModule } from "@angular/core";
|
|
@@ -64,8 +64,8 @@ const exportedModules = [
|
|
|
64
64
|
*/
|
|
65
65
|
export class WindowModule {
|
|
66
66
|
}
|
|
67
|
-
WindowModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
68
|
-
WindowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
67
|
+
WindowModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
68
|
+
WindowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowModule, declarations: [ResizeHandleDirective,
|
|
69
69
|
WindowComponent,
|
|
70
70
|
WindowTitleBarComponent,
|
|
71
71
|
WindowCloseActionDirective,
|
|
@@ -77,8 +77,8 @@ WindowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
77
77
|
WindowMaximizeActionDirective,
|
|
78
78
|
WindowRestoreActionDirective,
|
|
79
79
|
WindowTitleBarComponent, i1.DialogActionsComponent, i2.CustomMessagesComponent, i3.LocalizedMessagesDirective, WindowContainerDirective] });
|
|
80
|
-
WindowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
80
|
+
WindowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService], imports: [[SharedModule, DraggableModule]] });
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowModule, decorators: [{
|
|
82
82
|
type: NgModule,
|
|
83
83
|
args: [{
|
|
84
84
|
declarations: [WINDOW_DIRECTIVES, WindowContainerDirective],
|