@progress/kendo-angular-dialog 6.0.3-dev.202203091004 → 7.0.0-next.202203171702
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/bundles/kendo-angular-dialog.umd.js +5 -0
- package/{dist/es2015/common → common}/actions-layout.d.ts +0 -0
- package/{dist/es2015/common → common}/preventable-event.d.ts +0 -0
- package/{dist/es2015/common → common}/util.d.ts +1 -1
- package/{dist/es2015/dialog → dialog}/dialog-actions.component.d.ts +14 -7
- package/{dist/es2015/dialog → dialog}/dialog-container.directive.d.ts +3 -0
- package/dialog/dialog-container.service.d.ts +16 -0
- package/{dist/es2015/dialog → dialog}/dialog-content-base.d.ts +4 -1
- package/{dist/es2015/dialog → dialog}/dialog-titlebar.component.d.ts +5 -2
- package/{dist/es2015/dialog → dialog}/dialog.component.d.ts +13 -6
- package/{dist/es2015/dialog → dialog}/dialog.service.d.ts +5 -1
- package/dialog/models/dialog-action.d.ts +28 -0
- package/dialog/models/dialog-close-result.d.ts +11 -0
- package/dialog/models/dialog-ref.d.ts +38 -0
- package/dialog/models/dialog-result.d.ts +14 -0
- package/{dist/es2015/dialog → dialog/models}/dialog-settings.d.ts +5 -73
- package/{dist/es/localization/dialog-localization.service.js → dialog/models/index.d.ts} +5 -5
- package/{dist/es2015/dialog.module.d.ts → dialog.module.d.ts} +11 -0
- package/{dist/es2015/dialogs.module.d.ts → dialogs.module.d.ts} +6 -0
- package/{dist/es2015 → esm2015}/common/actions-layout.js +1 -0
- package/{dist/es2015 → esm2015}/common/preventable-event.js +0 -0
- package/{dist/es2015 → esm2015}/common/util.js +0 -5
- package/esm2015/dialog/dialog-actions.component.js +115 -0
- package/esm2015/dialog/dialog-container.directive.js +30 -0
- package/esm2015/dialog/dialog-container.service.js +23 -0
- package/{dist/es2015 → esm2015}/dialog/dialog-content-base.js +18 -10
- package/esm2015/dialog/dialog-titlebar.component.js +136 -0
- package/{dist/es2015 → esm2015}/dialog/dialog.component.js +123 -113
- package/{dist/es2015 → esm2015}/dialog/dialog.service.js +16 -15
- package/{dist/es2015/window/window-container.service.d.ts → esm2015/dialog/models/dialog-action.js} +3 -5
- package/esm2015/dialog/models/dialog-close-result.js +11 -0
- package/esm2015/dialog/models/dialog-ref.js +11 -0
- package/{dist/es/common/actions-layout.js → esm2015/dialog/models/dialog-result.js} +1 -0
- package/{dist/es2015/dialog/dialog-container.service.d.ts → esm2015/dialog/models/dialog-settings.js} +3 -5
- package/esm2015/dialog/models/index.js +9 -0
- package/{dist/es2015 → esm2015}/dialog.module.js +20 -13
- package/{dist/es → esm2015}/dialogs.module.js +12 -12
- package/esm2015/kendo-angular-dialog.js +8 -0
- package/esm2015/localization/custom-messages.component.js +41 -0
- package/{dist/es2015 → esm2015}/localization/dialog-localization.service.js +0 -0
- package/esm2015/localization/localized-messages.directive.js +40 -0
- package/esm2015/localization/messages.js +28 -0
- package/esm2015/localization/titlebar-localization.service.js +44 -0
- package/{dist/es2015 → esm2015}/main.js +8 -2
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/esm2015/shared.module.js +38 -0
- package/esm2015/window/actions/window-close-action.directive.js +59 -0
- package/esm2015/window/actions/window-maximize-action.directive.js +65 -0
- package/esm2015/window/actions/window-minimize-action.directive.js +65 -0
- package/esm2015/window/actions/window-restore-action.directive.js +65 -0
- package/{dist/es2015 → esm2015}/window/drag-resize.service.js +9 -11
- package/esm2015/window/models/index.js +10 -0
- package/esm2015/window/models/window-close-result.js +9 -0
- package/{dist/es2015/window/window-events.js → esm2015/window/models/window-messages.js} +1 -0
- package/esm2015/window/models/window-options.js +5 -0
- package/{dist/es2015/window/window-settings.js → esm2015/window/models/window-ref.js} +0 -11
- package/esm2015/window/models/window-settings.js +10 -0
- package/esm2015/window/models/window-types.js +5 -0
- package/{dist/es2015 → esm2015}/window/navigation.service.js +10 -11
- package/esm2015/window/window-container.directive.js +30 -0
- package/esm2015/window/window-container.service.js +23 -0
- package/{dist/es → esm2015}/window/window-events.js +1 -0
- package/{dist/es2015 → esm2015}/window/window-resize-handle.directive.js +21 -26
- package/{dist/es2015 → esm2015}/window/window-titlebar.component.js +35 -34
- package/{dist/es2015 → esm2015}/window/window.component.js +168 -187
- package/{dist/es2015 → esm2015}/window/window.service.js +15 -14
- package/{dist/es2015 → esm2015}/window.module.js +29 -17
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dialog.js} +1023 -926
- package/{dist/es2015/shared.module.d.ts → kendo-angular-dialog.d.ts} +3 -7
- package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/localization → localization}/dialog-localization.service.d.ts +0 -0
- package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
- package/{dist/es2015/localization → localization}/titlebar-localization.service.d.ts +3 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +7 -2
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +33 -105
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/shared.module.d.ts +21 -0
- package/{dist/es2015/window → window}/actions/window-close-action.directive.d.ts +3 -0
- package/{dist/es2015/window → window}/actions/window-maximize-action.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/actions/window-minimize-action.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/actions/window-restore-action.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/drag-resize.service.d.ts +8 -4
- package/window/models/index.d.ts +10 -0
- package/window/models/window-close-result.d.ts +9 -0
- package/window/models/window-messages.d.ts +26 -0
- package/window/models/window-options.d.ts +20 -0
- package/window/models/window-ref.d.ts +40 -0
- package/{dist/es2015/window → window/models}/window-settings.d.ts +4 -84
- package/window/models/window-types.d.ts +11 -0
- package/{dist/es2015/window → window}/navigation.service.d.ts +4 -1
- package/{dist/es2015/window → window}/window-container.directive.d.ts +3 -0
- package/window/window-container.service.d.ts +16 -0
- package/{dist/es2015/window → window}/window-events.d.ts +0 -0
- package/{dist/es2015/window → window}/window-resize-handle.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/window-titlebar.component.d.ts +6 -3
- package/{dist/es2015/window → window}/window.component.d.ts +42 -25
- package/{dist/es2015/window → window}/window.service.d.ts +5 -1
- package/window.module.d.ts +45 -0
- package/dist/cdn/js/kendo-angular-dialog.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/common/preventable-event.js +0 -29
- package/dist/es/common/util.js +0 -214
- package/dist/es/dialog/dialog-actions.component.js +0 -89
- package/dist/es/dialog/dialog-container.directive.js +0 -31
- package/dist/es/dialog/dialog-container.service.js +0 -31
- package/dist/es/dialog/dialog-content-base.js +0 -45
- package/dist/es/dialog/dialog-settings.js +0 -46
- package/dist/es/dialog/dialog-titlebar.component.js +0 -94
- package/dist/es/dialog/dialog.component.js +0 -462
- package/dist/es/dialog/dialog.service.js +0 -214
- package/dist/es/dialog.module.js +0 -56
- package/dist/es/index.js +0 -22
- package/dist/es/localization/custom-messages.component.js +0 -44
- package/dist/es/localization/localized-messages.directive.js +0 -35
- package/dist/es/localization/messages.js +0 -34
- package/dist/es/localization/titlebar-localization.service.js +0 -34
- package/dist/es/main.js +0 -21
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/shared.module.js +0 -34
- package/dist/es/window/actions/window-close-action.directive.js +0 -63
- package/dist/es/window/actions/window-maximize-action.directive.js +0 -75
- package/dist/es/window/actions/window-minimize-action.directive.js +0 -75
- package/dist/es/window/actions/window-restore-action.directive.js +0 -75
- package/dist/es/window/drag-resize.service.js +0 -351
- package/dist/es/window/navigation.service.js +0 -155
- package/dist/es/window/window-container.directive.js +0 -31
- package/dist/es/window/window-container.service.js +0 -31
- package/dist/es/window/window-resize-handle.directive.js +0 -78
- package/dist/es/window/window-settings.js +0 -34
- package/dist/es/window/window-titlebar.component.js +0 -144
- package/dist/es/window/window.component.js +0 -808
- package/dist/es/window/window.service.js +0 -214
- package/dist/es/window.module.js +0 -76
- package/dist/es2015/dialog/dialog-actions.component.js +0 -98
- package/dist/es2015/dialog/dialog-container.directive.js +0 -30
- package/dist/es2015/dialog/dialog-container.service.js +0 -23
- package/dist/es2015/dialog/dialog-settings.js +0 -30
- package/dist/es2015/dialog/dialog-titlebar.component.js +0 -106
- package/dist/es2015/dialogs.module.js +0 -41
- package/dist/es2015/index.d.ts +0 -22
- package/dist/es2015/index.js +0 -22
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/custom-messages.component.js +0 -36
- package/dist/es2015/localization/localized-messages.directive.js +0 -35
- package/dist/es2015/localization/messages.js +0 -28
- package/dist/es2015/localization/titlebar-localization.service.js +0 -31
- package/dist/es2015/shared.module.js +0 -31
- package/dist/es2015/window/actions/window-close-action.directive.js +0 -60
- package/dist/es2015/window/actions/window-maximize-action.directive.js +0 -68
- package/dist/es2015/window/actions/window-minimize-action.directive.js +0 -68
- package/dist/es2015/window/actions/window-restore-action.directive.js +0 -68
- package/dist/es2015/window/window-container.directive.js +0 -30
- package/dist/es2015/window/window-container.service.js +0 -23
- package/dist/es2015/window.module.d.ts +0 -28
- package/dist/fesm5/index.js +0 -3474
- package/dist/npm/common/actions-layout.js +0 -6
- package/dist/npm/common/preventable-event.js +0 -31
- package/dist/npm/common/util.js +0 -219
- package/dist/npm/dialog/dialog-actions.component.js +0 -91
- package/dist/npm/dialog/dialog-container.directive.js +0 -33
- package/dist/npm/dialog/dialog-container.service.js +0 -33
- package/dist/npm/dialog/dialog-content-base.js +0 -47
- package/dist/npm/dialog/dialog-settings.js +0 -48
- package/dist/npm/dialog/dialog-titlebar.component.js +0 -96
- package/dist/npm/dialog/dialog.component.js +0 -464
- package/dist/npm/dialog/dialog.service.js +0 -216
- package/dist/npm/dialog.module.js +0 -58
- package/dist/npm/dialogs.module.js +0 -46
- package/dist/npm/index.js +0 -40
- package/dist/npm/localization/custom-messages.component.js +0 -46
- package/dist/npm/localization/dialog-localization.service.js +0 -11
- package/dist/npm/localization/localized-messages.directive.js +0 -37
- package/dist/npm/localization/messages.js +0 -36
- package/dist/npm/localization/titlebar-localization.service.js +0 -36
- package/dist/npm/main.js +0 -45
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/shared.module.js +0 -36
- package/dist/npm/window/actions/window-close-action.directive.js +0 -65
- package/dist/npm/window/actions/window-maximize-action.directive.js +0 -77
- package/dist/npm/window/actions/window-minimize-action.directive.js +0 -77
- package/dist/npm/window/actions/window-restore-action.directive.js +0 -77
- package/dist/npm/window/drag-resize.service.js +0 -353
- package/dist/npm/window/navigation.service.js +0 -157
- package/dist/npm/window/window-container.directive.js +0 -33
- package/dist/npm/window/window-container.service.js +0 -33
- package/dist/npm/window/window-events.js +0 -6
- package/dist/npm/window/window-resize-handle.directive.js +0 -80
- package/dist/npm/window/window-settings.js +0 -36
- package/dist/npm/window/window-titlebar.component.js +0 -146
- package/dist/npm/window/window.component.js +0 -810
- package/dist/npm/window/window.service.js +0 -216
- package/dist/npm/window.module.js +0 -78
- package/dist/systemjs/kendo-angular-dialog.js +0 -5
|
@@ -2,15 +2,15 @@
|
|
|
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
|
|
6
|
-
import { Directive, Host, ElementRef, Input, HostBinding, Renderer2 } from '@angular/core';
|
|
7
|
-
import { DraggableDirective } from '@progress/kendo-angular-common';
|
|
8
|
-
import { DragResizeService } from './drag-resize.service';
|
|
5
|
+
import { Directive, Host, Input, HostBinding } from '@angular/core';
|
|
9
6
|
import { Subscription, of, merge } from 'rxjs';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@progress/kendo-angular-common";
|
|
9
|
+
import * as i2 from "./drag-resize.service";
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
export class ResizeHandleDirective {
|
|
14
14
|
constructor(draggable, el, renderer, service) {
|
|
15
15
|
this.draggable = draggable;
|
|
16
16
|
this.el = el;
|
|
@@ -48,24 +48,19 @@ let ResizeHandleDirective = class ResizeHandleDirective {
|
|
|
48
48
|
setDisplay(value = 'block') {
|
|
49
49
|
this.renderer.setStyle(this.el.nativeElement, 'display', this.service.options.state === 'default' ? value : 'none');
|
|
50
50
|
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
ElementRef,
|
|
68
|
-
Renderer2,
|
|
69
|
-
DragResizeService])
|
|
70
|
-
], ResizeHandleDirective);
|
|
71
|
-
export { ResizeHandleDirective };
|
|
51
|
+
}
|
|
52
|
+
ResizeHandleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeHandleDirective, deps: [{ token: i1.DraggableDirective, host: true }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.DragResizeService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
53
|
+
ResizeHandleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: { direction: "direction" }, host: { properties: { "class.k-resize-handle": "this.hostClass" } }, ngImport: i0 });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeHandleDirective, decorators: [{
|
|
55
|
+
type: Directive,
|
|
56
|
+
args: [{
|
|
57
|
+
selector: '[kendoWindowResizeHandle]'
|
|
58
|
+
}]
|
|
59
|
+
}], ctorParameters: function () { return [{ type: i1.DraggableDirective, decorators: [{
|
|
60
|
+
type: Host
|
|
61
|
+
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.DragResizeService }]; }, propDecorators: { direction: [{
|
|
62
|
+
type: Input
|
|
63
|
+
}], hostClass: [{
|
|
64
|
+
type: HostBinding,
|
|
65
|
+
args: ['class.k-resize-handle']
|
|
66
|
+
}] } });
|
|
@@ -2,13 +2,14 @@
|
|
|
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
|
|
6
|
-
import { Component, HostBinding, HostListener, ElementRef, NgZone, TemplateRef, Input } from '@angular/core';
|
|
5
|
+
import { Component, HostBinding, HostListener, Input } from '@angular/core';
|
|
7
6
|
import { DraggableDirective } from '@progress/kendo-angular-common';
|
|
8
|
-
import { DragResizeService } from './drag-resize.service';
|
|
9
7
|
import { of } from 'rxjs';
|
|
10
8
|
import { hasClasses, isFocusable } from '../common/util';
|
|
11
|
-
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "./drag-resize.service";
|
|
11
|
+
import * as i2 from "@angular/common";
|
|
12
|
+
export class WindowTitleBarComponent {
|
|
12
13
|
constructor(el, service, ngZone) {
|
|
13
14
|
this.el = el;
|
|
14
15
|
this.ngZone = ngZone;
|
|
@@ -97,39 +98,39 @@ let WindowTitleBarComponent = class WindowTitleBarComponent {
|
|
|
97
98
|
const options = this.service.options;
|
|
98
99
|
return options.draggable && options.state !== 'maximized';
|
|
99
100
|
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
115
|
-
], WindowTitleBarComponent.prototype, "touchAction", null);
|
|
116
|
-
tslib_1.__decorate([
|
|
117
|
-
HostListener('dblclick', ['$event']),
|
|
118
|
-
tslib_1.__metadata("design:type", Function),
|
|
119
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
120
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
121
|
-
], WindowTitleBarComponent.prototype, "handle", null);
|
|
122
|
-
WindowTitleBarComponent = tslib_1.__decorate([
|
|
123
|
-
Component({
|
|
124
|
-
selector: 'kendo-window-titlebar',
|
|
125
|
-
template: `
|
|
101
|
+
}
|
|
102
|
+
WindowTitleBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowTitleBarComponent, deps: [{ token: i0.ElementRef }, { token: i1.DragResizeService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
103
|
+
WindowTitleBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: { template: "template" }, host: { listeners: { "dblclick": "handle($event)" }, properties: { "class.k-window-titlebar": "this.className", "class.k-dialog-titlebar": "this.className", "style.touch-action": "this.touchAction" } }, ngImport: i0, template: `
|
|
104
|
+
<ng-content *ngIf="!template"></ng-content>
|
|
105
|
+
<ng-template
|
|
106
|
+
[ngTemplateOutlet]="template"
|
|
107
|
+
[ngTemplateOutletContext]="{'$implicit': service}" *ngIf="template">
|
|
108
|
+
</ng-template>
|
|
109
|
+
`, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowTitleBarComponent, decorators: [{
|
|
111
|
+
type: Component,
|
|
112
|
+
args: [{
|
|
113
|
+
selector: 'kendo-window-titlebar',
|
|
114
|
+
template: `
|
|
126
115
|
<ng-content *ngIf="!template"></ng-content>
|
|
127
116
|
<ng-template
|
|
128
117
|
[ngTemplateOutlet]="template"
|
|
129
118
|
[ngTemplateOutletContext]="{'$implicit': service}" *ngIf="template">
|
|
130
119
|
</ng-template>
|
|
131
120
|
`
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
121
|
+
}]
|
|
122
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.DragResizeService }, { type: i0.NgZone }]; }, propDecorators: { template: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], className: [{
|
|
125
|
+
type: HostBinding,
|
|
126
|
+
args: ['class.k-window-titlebar']
|
|
127
|
+
}, {
|
|
128
|
+
type: HostBinding,
|
|
129
|
+
args: ['class.k-dialog-titlebar']
|
|
130
|
+
}], touchAction: [{
|
|
131
|
+
type: HostBinding,
|
|
132
|
+
args: ['style.touch-action']
|
|
133
|
+
}], handle: [{
|
|
134
|
+
type: HostListener,
|
|
135
|
+
args: ['dblclick', ['$event']]
|
|
136
|
+
}] } });
|
|
@@ -2,8 +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
|
|
6
|
-
import { Component, Input, Output, HostBinding, EventEmitter, ContentChild, ElementRef, Renderer2, ViewChildren, QueryList, HostListener, NgZone, ViewChild } from '@angular/core';
|
|
5
|
+
import { Component, Input, Output, HostBinding, EventEmitter, ContentChild, ViewChildren, HostListener, ViewChild } from '@angular/core';
|
|
7
6
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
7
|
import { isChanged, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
9
8
|
import { Subscription } from 'rxjs';
|
|
@@ -15,10 +14,23 @@ import { RESIZE_DIRECTIONS } from "../common/util";
|
|
|
15
14
|
import { ResizeHandleDirective } from './window-resize-handle.directive';
|
|
16
15
|
import { WindowTitleBarComponent } from './window-titlebar.component';
|
|
17
16
|
import { NavigationService } from './navigation.service';
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
import * as i1 from "./drag-resize.service";
|
|
19
|
+
import * as i2 from "./navigation.service";
|
|
20
|
+
import * as i3 from "@progress/kendo-angular-l10n";
|
|
21
|
+
import * as i4 from "./window-titlebar.component";
|
|
22
|
+
import * as i5 from "../localization/localized-messages.directive";
|
|
23
|
+
import * as i6 from "@angular/common";
|
|
24
|
+
import * as i7 from "./actions/window-minimize-action.directive";
|
|
25
|
+
import * as i8 from "./actions/window-maximize-action.directive";
|
|
26
|
+
import * as i9 from "./actions/window-restore-action.directive";
|
|
27
|
+
import * as i10 from "./actions/window-close-action.directive";
|
|
28
|
+
import * as i11 from "./window-resize-handle.directive";
|
|
29
|
+
import * as i12 from "@progress/kendo-angular-common";
|
|
18
30
|
/**
|
|
19
31
|
* Represents the [Kendo UI Window component for Angular]({% slug overview_window_dialogs %}).
|
|
20
32
|
*/
|
|
21
|
-
|
|
33
|
+
export class WindowComponent {
|
|
22
34
|
constructor(el, renderer, service, navigation, ngZone, localization) {
|
|
23
35
|
this.el = el;
|
|
24
36
|
this.renderer = renderer;
|
|
@@ -513,181 +525,74 @@ let WindowComponent = class WindowComponent {
|
|
|
513
525
|
this.focus();
|
|
514
526
|
}
|
|
515
527
|
}
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
]
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
]
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
]
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
],
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
],
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
585
|
-
], WindowComponent.prototype, "resizeStart", void 0);
|
|
586
|
-
tslib_1.__decorate([
|
|
587
|
-
Output(),
|
|
588
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
589
|
-
], WindowComponent.prototype, "resizeEnd", void 0);
|
|
590
|
-
tslib_1.__decorate([
|
|
591
|
-
Output(),
|
|
592
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
593
|
-
], WindowComponent.prototype, "close", void 0);
|
|
594
|
-
tslib_1.__decorate([
|
|
595
|
-
Output(),
|
|
596
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
597
|
-
], WindowComponent.prototype, "widthChange", void 0);
|
|
598
|
-
tslib_1.__decorate([
|
|
599
|
-
Output(),
|
|
600
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
601
|
-
], WindowComponent.prototype, "heightChange", void 0);
|
|
602
|
-
tslib_1.__decorate([
|
|
603
|
-
Output(),
|
|
604
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
605
|
-
], WindowComponent.prototype, "topChange", void 0);
|
|
606
|
-
tslib_1.__decorate([
|
|
607
|
-
Output(),
|
|
608
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
609
|
-
], WindowComponent.prototype, "leftChange", void 0);
|
|
610
|
-
tslib_1.__decorate([
|
|
611
|
-
Output(),
|
|
612
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
613
|
-
], WindowComponent.prototype, "stateChange", void 0);
|
|
614
|
-
tslib_1.__decorate([
|
|
615
|
-
HostBinding('attr.tabIndex'),
|
|
616
|
-
tslib_1.__metadata("design:type", Number)
|
|
617
|
-
], WindowComponent.prototype, "tabIndex", void 0);
|
|
618
|
-
tslib_1.__decorate([
|
|
619
|
-
HostBinding('class.k-window'),
|
|
620
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
621
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
622
|
-
], WindowComponent.prototype, "hostClasses", null);
|
|
623
|
-
tslib_1.__decorate([
|
|
624
|
-
HostBinding('attr.dir'),
|
|
625
|
-
tslib_1.__metadata("design:type", String),
|
|
626
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
627
|
-
], WindowComponent.prototype, "dir", null);
|
|
628
|
-
tslib_1.__decorate([
|
|
629
|
-
ViewChild(WindowTitleBarComponent, { static: false }),
|
|
630
|
-
tslib_1.__metadata("design:type", WindowTitleBarComponent)
|
|
631
|
-
], WindowComponent.prototype, "titleBarView", void 0);
|
|
632
|
-
tslib_1.__decorate([
|
|
633
|
-
ContentChild(WindowTitleBarComponent, { static: false }),
|
|
634
|
-
tslib_1.__metadata("design:type", WindowTitleBarComponent)
|
|
635
|
-
], WindowComponent.prototype, "titleBarContent", void 0);
|
|
636
|
-
tslib_1.__decorate([
|
|
637
|
-
ViewChildren(ResizeHandleDirective),
|
|
638
|
-
tslib_1.__metadata("design:type", QueryList)
|
|
639
|
-
], WindowComponent.prototype, "resizeHandles", void 0);
|
|
640
|
-
tslib_1.__decorate([
|
|
641
|
-
HostBinding('style.minWidth'),
|
|
642
|
-
tslib_1.__metadata("design:type", String),
|
|
643
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
644
|
-
], WindowComponent.prototype, "styleMinWidth", null);
|
|
645
|
-
tslib_1.__decorate([
|
|
646
|
-
HostBinding('style.minHeight'),
|
|
647
|
-
tslib_1.__metadata("design:type", String),
|
|
648
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
649
|
-
], WindowComponent.prototype, "styleMinHeight", null);
|
|
650
|
-
tslib_1.__decorate([
|
|
651
|
-
HostBinding('style.position'),
|
|
652
|
-
tslib_1.__metadata("design:type", String),
|
|
653
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
654
|
-
], WindowComponent.prototype, "stylePosition", null);
|
|
655
|
-
tslib_1.__decorate([
|
|
656
|
-
HostBinding('class.k-window-maximized'),
|
|
657
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
658
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
659
|
-
], WindowComponent.prototype, "wrapperMaximizedClass", null);
|
|
660
|
-
tslib_1.__decorate([
|
|
661
|
-
HostBinding('class.k-window-minimized'),
|
|
662
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
663
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
664
|
-
], WindowComponent.prototype, "wrapperMinimizedClass", null);
|
|
665
|
-
tslib_1.__decorate([
|
|
666
|
-
HostListener('focus'),
|
|
667
|
-
tslib_1.__metadata("design:type", Function),
|
|
668
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
669
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
670
|
-
], WindowComponent.prototype, "onComponentFocus", null);
|
|
671
|
-
tslib_1.__decorate([
|
|
672
|
-
HostListener('blur'),
|
|
673
|
-
tslib_1.__metadata("design:type", Function),
|
|
674
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
675
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
676
|
-
], WindowComponent.prototype, "onComponentBlur", null);
|
|
677
|
-
WindowComponent = tslib_1.__decorate([
|
|
678
|
-
Component({
|
|
679
|
-
exportAs: 'kendoWindow',
|
|
680
|
-
providers: [
|
|
681
|
-
DragResizeService,
|
|
682
|
-
NavigationService,
|
|
683
|
-
LocalizationService,
|
|
684
|
-
{
|
|
685
|
-
provide: L10N_PREFIX,
|
|
686
|
-
useValue: 'kendo.window'
|
|
687
|
-
}
|
|
688
|
-
],
|
|
689
|
-
selector: 'kendo-window',
|
|
690
|
-
template: `
|
|
528
|
+
}
|
|
529
|
+
WindowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", 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 });
|
|
530
|
+
WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: WindowComponent, selector: "kendo-window", inputs: { autoFocusedElement: "autoFocusedElement", title: "title", draggable: "draggable", resizable: "resizable", 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", "class.k-window": "this.hostClasses", "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: [
|
|
531
|
+
DragResizeService,
|
|
532
|
+
NavigationService,
|
|
533
|
+
LocalizationService,
|
|
534
|
+
{
|
|
535
|
+
provide: L10N_PREFIX,
|
|
536
|
+
useValue: 'kendo.window'
|
|
537
|
+
}
|
|
538
|
+
], queries: [{ propertyName: "titleBarContent", first: true, predicate: WindowTitleBarComponent, descendants: true }], viewQueries: [{ propertyName: "titleBarView", first: true, predicate: WindowTitleBarComponent, descendants: true }, { propertyName: "resizeHandles", predicate: ResizeHandleDirective, descendants: true }], exportAs: ["kendoWindow"], usesOnChanges: true, ngImport: i0, template: `
|
|
539
|
+
<ng-container kendoWindowLocalizedMessages
|
|
540
|
+
i18n-closeTitle="kendo.window.closeTitle|The title of the close button"
|
|
541
|
+
closeTitle="Close"
|
|
542
|
+
|
|
543
|
+
i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"
|
|
544
|
+
restoreTitle="Restore"
|
|
545
|
+
|
|
546
|
+
i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"
|
|
547
|
+
maximizeTitle="Maximize"
|
|
548
|
+
|
|
549
|
+
i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"
|
|
550
|
+
minimizeTitle="Minimize"
|
|
551
|
+
>
|
|
552
|
+
<ng-container>
|
|
553
|
+
|
|
554
|
+
<kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">
|
|
555
|
+
<div class="k-window-title">{{ title }}</div>
|
|
556
|
+
<div class="k-window-actions">
|
|
557
|
+
<button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>
|
|
558
|
+
<button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>
|
|
559
|
+
<button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>
|
|
560
|
+
<button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>
|
|
561
|
+
</div>
|
|
562
|
+
</kendo-window-titlebar>
|
|
563
|
+
<ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>
|
|
564
|
+
|
|
565
|
+
<div *ngIf="state !== 'minimized' || keepContent"
|
|
566
|
+
[hidden]="state === 'minimized' && keepContent"
|
|
567
|
+
class="k-content k-window-content"
|
|
568
|
+
>
|
|
569
|
+
<ng-content *ngIf="!contentTemplate"></ng-content>
|
|
570
|
+
<ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
|
|
571
|
+
</div>
|
|
572
|
+
|
|
573
|
+
<ng-template [ngIf]='resizable'>
|
|
574
|
+
<div *ngFor='let dir of resizeDirections'
|
|
575
|
+
[direction]="dir"
|
|
576
|
+
kendoWindowResizeHandle
|
|
577
|
+
kendoDraggable>
|
|
578
|
+
</div>
|
|
579
|
+
</ng-template>
|
|
580
|
+
`, isInline: true, components: [{ type: i4.WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template"] }], directives: [{ type: i5.LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { type: i8.WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { type: i9.WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { type: i10.WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i6.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"] }] });
|
|
581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowComponent, decorators: [{
|
|
582
|
+
type: Component,
|
|
583
|
+
args: [{
|
|
584
|
+
exportAs: 'kendoWindow',
|
|
585
|
+
providers: [
|
|
586
|
+
DragResizeService,
|
|
587
|
+
NavigationService,
|
|
588
|
+
LocalizationService,
|
|
589
|
+
{
|
|
590
|
+
provide: L10N_PREFIX,
|
|
591
|
+
useValue: 'kendo.window'
|
|
592
|
+
}
|
|
593
|
+
],
|
|
594
|
+
selector: 'kendo-window',
|
|
595
|
+
template: `
|
|
691
596
|
<ng-container kendoWindowLocalizedMessages
|
|
692
597
|
i18n-closeTitle="kendo.window.closeTitle|The title of the close button"
|
|
693
598
|
closeTitle="Close"
|
|
@@ -730,12 +635,88 @@ WindowComponent = tslib_1.__decorate([
|
|
|
730
635
|
</div>
|
|
731
636
|
</ng-template>
|
|
732
637
|
`
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
],
|
|
741
|
-
|
|
638
|
+
}]
|
|
639
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService }, { type: i2.NavigationService }, { type: i0.NgZone }, { type: i3.LocalizationService }]; }, propDecorators: { autoFocusedElement: [{
|
|
640
|
+
type: Input
|
|
641
|
+
}], title: [{
|
|
642
|
+
type: Input
|
|
643
|
+
}], draggable: [{
|
|
644
|
+
type: Input
|
|
645
|
+
}], resizable: [{
|
|
646
|
+
type: Input
|
|
647
|
+
}], keepContent: [{
|
|
648
|
+
type: Input
|
|
649
|
+
}], state: [{
|
|
650
|
+
type: Input
|
|
651
|
+
}], minWidth: [{
|
|
652
|
+
type: Input
|
|
653
|
+
}], minHeight: [{
|
|
654
|
+
type: Input
|
|
655
|
+
}], width: [{
|
|
656
|
+
type: Input
|
|
657
|
+
}], height: [{
|
|
658
|
+
type: Input
|
|
659
|
+
}], top: [{
|
|
660
|
+
type: Input
|
|
661
|
+
}], left: [{
|
|
662
|
+
type: Input
|
|
663
|
+
}], dragStart: [{
|
|
664
|
+
type: Output
|
|
665
|
+
}], dragEnd: [{
|
|
666
|
+
type: Output
|
|
667
|
+
}], resizeStart: [{
|
|
668
|
+
type: Output
|
|
669
|
+
}], resizeEnd: [{
|
|
670
|
+
type: Output
|
|
671
|
+
}], close: [{
|
|
672
|
+
type: Output
|
|
673
|
+
}], widthChange: [{
|
|
674
|
+
type: Output
|
|
675
|
+
}], heightChange: [{
|
|
676
|
+
type: Output
|
|
677
|
+
}], topChange: [{
|
|
678
|
+
type: Output
|
|
679
|
+
}], leftChange: [{
|
|
680
|
+
type: Output
|
|
681
|
+
}], stateChange: [{
|
|
682
|
+
type: Output
|
|
683
|
+
}], tabIndex: [{
|
|
684
|
+
type: HostBinding,
|
|
685
|
+
args: ['attr.tabIndex']
|
|
686
|
+
}], hostClasses: [{
|
|
687
|
+
type: HostBinding,
|
|
688
|
+
args: ['class.k-window']
|
|
689
|
+
}], dir: [{
|
|
690
|
+
type: HostBinding,
|
|
691
|
+
args: ['attr.dir']
|
|
692
|
+
}], titleBarView: [{
|
|
693
|
+
type: ViewChild,
|
|
694
|
+
args: [WindowTitleBarComponent, { static: false }]
|
|
695
|
+
}], titleBarContent: [{
|
|
696
|
+
type: ContentChild,
|
|
697
|
+
args: [WindowTitleBarComponent, { static: false }]
|
|
698
|
+
}], resizeHandles: [{
|
|
699
|
+
type: ViewChildren,
|
|
700
|
+
args: [ResizeHandleDirective]
|
|
701
|
+
}], styleMinWidth: [{
|
|
702
|
+
type: HostBinding,
|
|
703
|
+
args: ['style.minWidth']
|
|
704
|
+
}], styleMinHeight: [{
|
|
705
|
+
type: HostBinding,
|
|
706
|
+
args: ['style.minHeight']
|
|
707
|
+
}], stylePosition: [{
|
|
708
|
+
type: HostBinding,
|
|
709
|
+
args: ['style.position']
|
|
710
|
+
}], wrapperMaximizedClass: [{
|
|
711
|
+
type: HostBinding,
|
|
712
|
+
args: ['class.k-window-maximized']
|
|
713
|
+
}], wrapperMinimizedClass: [{
|
|
714
|
+
type: HostBinding,
|
|
715
|
+
args: ['class.k-window-minimized']
|
|
716
|
+
}], onComponentFocus: [{
|
|
717
|
+
type: HostListener,
|
|
718
|
+
args: ['focus']
|
|
719
|
+
}], onComponentBlur: [{
|
|
720
|
+
type: HostListener,
|
|
721
|
+
args: ['blur']
|
|
722
|
+
}] } });
|
|
@@ -2,16 +2,17 @@
|
|
|
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
|
|
6
|
-
import { ComponentFactoryResolver, Injectable, Renderer2, TemplateRef, Inject } from '@angular/core';
|
|
5
|
+
import { Injectable, Renderer2, TemplateRef, Inject } from '@angular/core';
|
|
7
6
|
import { merge, Subject } from 'rxjs';
|
|
8
7
|
import { filter, map, share, take } from 'rxjs/operators';
|
|
9
|
-
import { WindowCloseResult, WindowRef } from './window-settings';
|
|
10
8
|
import { WindowComponent } from './window.component';
|
|
11
9
|
import { isPresent, isString } from '../common/util';
|
|
12
10
|
import { WindowContainerService } from '../window/window-container.service';
|
|
11
|
+
import { WindowRef } from './models/window-ref';
|
|
12
|
+
import { WindowCloseResult } from './models/window-close-result';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
import * as i1 from "../window/window-container.service";
|
|
13
15
|
const isNotComponent = (component) => isString(component) || component instanceof TemplateRef;
|
|
14
|
-
const ɵ0 = isNotComponent;
|
|
15
16
|
class WindowInjector {
|
|
16
17
|
constructor(getWindowRef, parentInjector) {
|
|
17
18
|
this.getWindowRef = getWindowRef;
|
|
@@ -28,7 +29,7 @@ class WindowInjector {
|
|
|
28
29
|
* A service for opening Windows dynamically
|
|
29
30
|
* ([see example]({% slug service_window %})).
|
|
30
31
|
*/
|
|
31
|
-
|
|
32
|
+
export class WindowService {
|
|
32
33
|
constructor(
|
|
33
34
|
/**
|
|
34
35
|
* @hidden
|
|
@@ -204,12 +205,12 @@ let WindowService = class WindowService {
|
|
|
204
205
|
]
|
|
205
206
|
};
|
|
206
207
|
}
|
|
207
|
-
}
|
|
208
|
-
WindowService =
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
208
|
+
}
|
|
209
|
+
WindowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService, deps: [{ token: i0.ComponentFactoryResolver }, { token: WindowContainerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
210
|
+
WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService });
|
|
211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowService, decorators: [{
|
|
212
|
+
type: Injectable
|
|
213
|
+
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i1.WindowContainerService, decorators: [{
|
|
214
|
+
type: Inject,
|
|
215
|
+
args: [WindowContainerService]
|
|
216
|
+
}] }]; } });
|