@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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { LocalizationService, L10N_PREFIX, RTL } from "@progress/kendo-angular-l10n";
|
|
6
|
+
import { Inject, Injectable, Optional } from "@angular/core";
|
|
7
|
+
import { DIALOG_LOCALIZATION_SERVICE } from './dialog-localization.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export class TitleBarLocalizationService extends LocalizationService {
|
|
14
|
+
constructor(prefix, messageService, rtl, dialogLocalization) {
|
|
15
|
+
super(prefix, messageService, rtl);
|
|
16
|
+
this.dialogLocalization = dialogLocalization;
|
|
17
|
+
}
|
|
18
|
+
get(shortKey) {
|
|
19
|
+
if (this.dialogLocalization) {
|
|
20
|
+
return this.dialogLocalization.get(shortKey);
|
|
21
|
+
}
|
|
22
|
+
return super.get(shortKey);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
TitleBarLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TitleBarLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }, { token: DIALOG_LOCALIZATION_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
26
|
+
TitleBarLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TitleBarLocalizationService });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TitleBarLocalizationService, decorators: [{
|
|
28
|
+
type: Injectable
|
|
29
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
30
|
+
type: Inject,
|
|
31
|
+
args: [L10N_PREFIX]
|
|
32
|
+
}] }, { type: i1.MessageService, decorators: [{
|
|
33
|
+
type: Optional
|
|
34
|
+
}] }, { type: undefined, decorators: [{
|
|
35
|
+
type: Optional
|
|
36
|
+
}, {
|
|
37
|
+
type: Inject,
|
|
38
|
+
args: [RTL]
|
|
39
|
+
}] }, { type: i1.LocalizationService, decorators: [{
|
|
40
|
+
type: Optional
|
|
41
|
+
}, {
|
|
42
|
+
type: Inject,
|
|
43
|
+
args: [DIALOG_LOCALIZATION_SERVICE]
|
|
44
|
+
}] }]; } });
|
|
@@ -7,15 +7,21 @@ export { DialogTitleBarComponent } from './dialog/dialog-titlebar.component';
|
|
|
7
7
|
export { DialogContentBase } from './dialog/dialog-content-base';
|
|
8
8
|
export { DialogActionsComponent } from './dialog/dialog-actions.component';
|
|
9
9
|
export { DialogService } from './dialog/dialog.service';
|
|
10
|
-
export { DialogCloseResult, DialogRef, DialogSettings, DialogAction } from './dialog/
|
|
10
|
+
export { DialogCloseResult, DialogRef, DialogSettings, DialogAction } from './dialog/models/';
|
|
11
11
|
export { WindowComponent } from './window/window.component';
|
|
12
12
|
export { WindowTitleBarComponent } from './window/window-titlebar.component';
|
|
13
13
|
export { WindowMaximizeActionDirective } from './window/actions/window-maximize-action.directive';
|
|
14
14
|
export { WindowMinimizeActionDirective } from './window/actions/window-minimize-action.directive';
|
|
15
15
|
export { WindowCloseActionDirective } from './window/actions/window-close-action.directive';
|
|
16
16
|
export { WindowRestoreActionDirective } from './window/actions/window-restore-action.directive';
|
|
17
|
-
export { WindowSettings, WindowRef, WindowCloseResult } from './window/
|
|
17
|
+
export { WindowSettings, WindowRef, WindowCloseResult } from './window/models';
|
|
18
18
|
export { WindowService } from './window/window.service';
|
|
19
19
|
export { DialogModule } from './dialog.module';
|
|
20
20
|
export { WindowModule } from './window.module';
|
|
21
21
|
export { DialogsModule } from './dialogs.module';
|
|
22
|
+
// error NG3001: Unsupported private class
|
|
23
|
+
export { DialogContainerDirective } from './dialog/dialog-container.directive';
|
|
24
|
+
export { Messages } from './localization/messages';
|
|
25
|
+
export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
26
|
+
export { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
27
|
+
export { WindowContainerDirective } from './window/window-container.directive';
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-dialog',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1647536491,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { NgModule } from '@angular/core';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { DialogActionsComponent } from './dialog/dialog-actions.component';
|
|
8
|
+
import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
9
|
+
import { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export const SHARED_DIRECTIVES = [
|
|
15
|
+
DialogActionsComponent,
|
|
16
|
+
CustomMessagesComponent,
|
|
17
|
+
LocalizedMessagesDirective
|
|
18
|
+
];
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export class SharedModule {
|
|
23
|
+
}
|
|
24
|
+
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
25
|
+
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, declarations: [DialogActionsComponent,
|
|
26
|
+
CustomMessagesComponent,
|
|
27
|
+
LocalizedMessagesDirective], imports: [CommonModule], exports: [DialogActionsComponent,
|
|
28
|
+
CustomMessagesComponent,
|
|
29
|
+
LocalizedMessagesDirective, CommonModule] });
|
|
30
|
+
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, imports: [[CommonModule], CommonModule] });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, decorators: [{
|
|
32
|
+
type: NgModule,
|
|
33
|
+
args: [{
|
|
34
|
+
declarations: [SHARED_DIRECTIVES],
|
|
35
|
+
exports: [SHARED_DIRECTIVES, CommonModule],
|
|
36
|
+
imports: [CommonModule]
|
|
37
|
+
}]
|
|
38
|
+
}] });
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, HostBinding, HostListener, Input, Optional } from "@angular/core";
|
|
6
|
+
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
|
+
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../drag-resize.service";
|
|
10
|
+
import * as i2 from "@progress/kendo-angular-l10n";
|
|
11
|
+
export class WindowCloseActionDirective extends Button {
|
|
12
|
+
constructor(el, renderer, _service, localization, ngZone) {
|
|
13
|
+
super(el, renderer, null, localization, ngZone);
|
|
14
|
+
this.buttonType = 'button';
|
|
15
|
+
this.window = _service;
|
|
16
|
+
this.fillMode = 'flat';
|
|
17
|
+
this.icon = 'close';
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
onClick() {
|
|
23
|
+
if (!this.isDisabled) {
|
|
24
|
+
this.window.closeAction();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
WindowCloseActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowCloseActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.DragResizeService, optional: true }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
+
WindowCloseActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType" } }, providers: [
|
|
30
|
+
LocalizationService,
|
|
31
|
+
{
|
|
32
|
+
provide: L10N_PREFIX,
|
|
33
|
+
useValue: 'kendo.button'
|
|
34
|
+
}
|
|
35
|
+
], exportAs: ["kendoWindowCloseAction"], usesInheritance: true, ngImport: i0 });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowCloseActionDirective, decorators: [{
|
|
37
|
+
type: Directive,
|
|
38
|
+
args: [{
|
|
39
|
+
exportAs: 'kendoWindowCloseAction',
|
|
40
|
+
providers: [
|
|
41
|
+
LocalizationService,
|
|
42
|
+
{
|
|
43
|
+
provide: L10N_PREFIX,
|
|
44
|
+
useValue: 'kendo.button'
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
selector: 'button[kendoWindowCloseAction]' // eslint-disable-line
|
|
48
|
+
}]
|
|
49
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
|
|
50
|
+
type: Optional
|
|
51
|
+
}] }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], buttonType: [{
|
|
54
|
+
type: HostBinding,
|
|
55
|
+
args: ['attr.type']
|
|
56
|
+
}], onClick: [{
|
|
57
|
+
type: HostListener,
|
|
58
|
+
args: ['click']
|
|
59
|
+
}] } });
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, HostBinding, HostListener, Input, Optional } from "@angular/core";
|
|
6
|
+
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
|
+
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "./../drag-resize.service";
|
|
10
|
+
import * as i2 from "@progress/kendo-angular-l10n";
|
|
11
|
+
export class WindowMaximizeActionDirective extends Button {
|
|
12
|
+
constructor(el, renderer, _service, localization, ngZone) {
|
|
13
|
+
super(el, renderer, null, localization, ngZone);
|
|
14
|
+
this.buttonType = 'button';
|
|
15
|
+
this.window = _service;
|
|
16
|
+
this.fillMode = 'flat';
|
|
17
|
+
this.icon = 'window-maximize';
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
onClick() {
|
|
23
|
+
if (!this.isDisabled) {
|
|
24
|
+
this.window.maximizeAction();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
get visible() {
|
|
28
|
+
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
WindowMaximizeActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMaximizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.DragResizeService, optional: true }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
WindowMaximizeActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "style.display": "this.visible" } }, providers: [
|
|
33
|
+
LocalizationService,
|
|
34
|
+
{
|
|
35
|
+
provide: L10N_PREFIX,
|
|
36
|
+
useValue: 'kendo.button'
|
|
37
|
+
}
|
|
38
|
+
], exportAs: ["kendoWindowMaximizeAction"], usesInheritance: true, ngImport: i0 });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMaximizeActionDirective, decorators: [{
|
|
40
|
+
type: Directive,
|
|
41
|
+
args: [{
|
|
42
|
+
exportAs: 'kendoWindowMaximizeAction',
|
|
43
|
+
providers: [
|
|
44
|
+
LocalizationService,
|
|
45
|
+
{
|
|
46
|
+
provide: L10N_PREFIX,
|
|
47
|
+
useValue: 'kendo.button'
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
selector: 'button[kendoWindowMaximizeAction]' // eslint-disable-line
|
|
51
|
+
}]
|
|
52
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
|
|
53
|
+
type: Optional
|
|
54
|
+
}] }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], buttonType: [{
|
|
57
|
+
type: HostBinding,
|
|
58
|
+
args: ['attr.type']
|
|
59
|
+
}], onClick: [{
|
|
60
|
+
type: HostListener,
|
|
61
|
+
args: ['click']
|
|
62
|
+
}], visible: [{
|
|
63
|
+
type: HostBinding,
|
|
64
|
+
args: ['style.display']
|
|
65
|
+
}] } });
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, HostBinding, HostListener, Input, Optional } from "@angular/core";
|
|
6
|
+
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
|
+
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "./../drag-resize.service";
|
|
10
|
+
import * as i2 from "@progress/kendo-angular-l10n";
|
|
11
|
+
export class WindowMinimizeActionDirective extends Button {
|
|
12
|
+
constructor(el, renderer, _service, localization, ngZone) {
|
|
13
|
+
super(el, renderer, null, localization, ngZone);
|
|
14
|
+
this.buttonType = 'button';
|
|
15
|
+
this.window = _service;
|
|
16
|
+
this.fillMode = 'flat';
|
|
17
|
+
this.icon = 'window-minimize';
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
onClick() {
|
|
23
|
+
if (!this.isDisabled) {
|
|
24
|
+
this.window.minimizeAction();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
get visible() {
|
|
28
|
+
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
WindowMinimizeActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMinimizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.DragResizeService, optional: true }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
WindowMinimizeActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "style.display": "this.visible" } }, providers: [
|
|
33
|
+
LocalizationService,
|
|
34
|
+
{
|
|
35
|
+
provide: L10N_PREFIX,
|
|
36
|
+
useValue: 'kendo.button'
|
|
37
|
+
}
|
|
38
|
+
], exportAs: ["kendoWindowMinimizeAction"], usesInheritance: true, ngImport: i0 });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMinimizeActionDirective, decorators: [{
|
|
40
|
+
type: Directive,
|
|
41
|
+
args: [{
|
|
42
|
+
exportAs: 'kendoWindowMinimizeAction',
|
|
43
|
+
providers: [
|
|
44
|
+
LocalizationService,
|
|
45
|
+
{
|
|
46
|
+
provide: L10N_PREFIX,
|
|
47
|
+
useValue: 'kendo.button'
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
selector: 'button[kendoWindowMinimizeAction]' // eslint-disable-line
|
|
51
|
+
}]
|
|
52
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
|
|
53
|
+
type: Optional
|
|
54
|
+
}] }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], buttonType: [{
|
|
57
|
+
type: HostBinding,
|
|
58
|
+
args: ['attr.type']
|
|
59
|
+
}], onClick: [{
|
|
60
|
+
type: HostListener,
|
|
61
|
+
args: ['click']
|
|
62
|
+
}], visible: [{
|
|
63
|
+
type: HostBinding,
|
|
64
|
+
args: ['style.display']
|
|
65
|
+
}] } });
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, HostBinding, HostListener, Input, Optional } from "@angular/core";
|
|
6
|
+
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
|
+
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "./../drag-resize.service";
|
|
10
|
+
import * as i2 from "@progress/kendo-angular-l10n";
|
|
11
|
+
export class WindowRestoreActionDirective extends Button {
|
|
12
|
+
constructor(el, renderer, _service, localization, ngZone) {
|
|
13
|
+
super(el, renderer, null, localization, ngZone);
|
|
14
|
+
this.buttonType = 'button';
|
|
15
|
+
this.window = _service;
|
|
16
|
+
this.fillMode = 'flat';
|
|
17
|
+
this.icon = 'window-restore';
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
onClick() {
|
|
23
|
+
if (!this.isDisabled) {
|
|
24
|
+
this.window.restoreAction();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
get visible() {
|
|
28
|
+
return this.window.options.state === 'default' ? 'none' : 'inline-flex';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
WindowRestoreActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowRestoreActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.DragResizeService, optional: true }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
WindowRestoreActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "style.display": "this.visible" } }, providers: [
|
|
33
|
+
LocalizationService,
|
|
34
|
+
{
|
|
35
|
+
provide: L10N_PREFIX,
|
|
36
|
+
useValue: 'kendo.button'
|
|
37
|
+
}
|
|
38
|
+
], exportAs: ["kendoWindowRestoreAction"], usesInheritance: true, ngImport: i0 });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowRestoreActionDirective, decorators: [{
|
|
40
|
+
type: Directive,
|
|
41
|
+
args: [{
|
|
42
|
+
exportAs: 'kendoWindowRestoreAction',
|
|
43
|
+
providers: [
|
|
44
|
+
LocalizationService,
|
|
45
|
+
{
|
|
46
|
+
provide: L10N_PREFIX,
|
|
47
|
+
useValue: 'kendo.button'
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
selector: 'button[kendoWindowRestoreAction]' // eslint-disable-line
|
|
51
|
+
}]
|
|
52
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
|
|
53
|
+
type: Optional
|
|
54
|
+
}] }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], buttonType: [{
|
|
57
|
+
type: HostBinding,
|
|
58
|
+
args: ['attr.type']
|
|
59
|
+
}], onClick: [{
|
|
60
|
+
type: HostListener,
|
|
61
|
+
args: ['click']
|
|
62
|
+
}], visible: [{
|
|
63
|
+
type: HostBinding,
|
|
64
|
+
args: ['style.display']
|
|
65
|
+
}] } });
|
|
@@ -2,12 +2,12 @@
|
|
|
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 { Injectable, NgZone, EventEmitter } from "@angular/core";
|
|
5
|
+
import { Injectable, EventEmitter } from "@angular/core";
|
|
7
6
|
import { Subscription } from 'rxjs';
|
|
8
7
|
import { tap, map, switchMap, takeUntil } from 'rxjs/operators';
|
|
9
8
|
import { isPresent, OFFSET_STYLES, preventDefault } from '../common/util';
|
|
10
9
|
import { scrollPosition, offset, getDocumentElement, positionWithScroll, getWindowViewPort } from '@progress/kendo-popup-common';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
12
|
* @hidden
|
|
13
13
|
*/
|
|
@@ -39,11 +39,10 @@ const createMoveStream = (el, ev) => mouseDown => {
|
|
|
39
39
|
pageY
|
|
40
40
|
})));
|
|
41
41
|
};
|
|
42
|
-
const ɵ0 = createMoveStream;
|
|
43
42
|
/**
|
|
44
43
|
* @hidden
|
|
45
44
|
*/
|
|
46
|
-
|
|
45
|
+
export class DragResizeService {
|
|
47
46
|
constructor(ngZone) {
|
|
48
47
|
this.ngZone = ngZone;
|
|
49
48
|
this.close = new EventEmitter();
|
|
@@ -320,10 +319,9 @@ let DragResizeService = class DragResizeService {
|
|
|
320
319
|
get windowViewPort() {
|
|
321
320
|
return getWindowViewPort(this.window.nativeElement);
|
|
322
321
|
}
|
|
323
|
-
}
|
|
324
|
-
DragResizeService =
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
export { ɵ0 };
|
|
322
|
+
}
|
|
323
|
+
DragResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragResizeService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
324
|
+
DragResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragResizeService });
|
|
325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragResizeService, decorators: [{
|
|
326
|
+
type: Injectable
|
|
327
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export * from './window-close-result';
|
|
6
|
+
export * from './window-messages';
|
|
7
|
+
export * from './window-options';
|
|
8
|
+
export * from './window-ref';
|
|
9
|
+
export * from './window-settings';
|
|
10
|
+
export * from './window-types';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Indicates that the **Close** button of a Window that is opened through `WindowService` is clicked.
|
|
7
|
+
*/
|
|
8
|
+
export class WindowCloseResult {
|
|
9
|
+
}
|
|
@@ -2,3 +2,4 @@
|
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,17 +2,6 @@
|
|
|
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
|
-
/**
|
|
6
|
-
* The settings for the Window actions when the Window is opened through `WindowService`
|
|
7
|
-
* ([see example]({% slug api_dialog_windowservice %}#toc-open)).
|
|
8
|
-
*/
|
|
9
|
-
export class WindowSettings {
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Indicates that the **Close** button of a Window that is opened through `WindowService` is clicked.
|
|
13
|
-
*/
|
|
14
|
-
export class WindowCloseResult {
|
|
15
|
-
}
|
|
16
5
|
/**
|
|
17
6
|
* Holds references to the object instance of the Window.
|
|
18
7
|
* Controls the Windows that were opened through `WindowService`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* The settings for the Window actions when the Window is opened through `WindowService`
|
|
7
|
+
* ([see example]({% slug api_dialog_windowservice %}#toc-open)).
|
|
8
|
+
*/
|
|
9
|
+
export class WindowSettings {
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,14 +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 { Injectable, NgZone } from "@angular/core";
|
|
7
|
-
import { DragResizeService } from './drag-resize.service';
|
|
5
|
+
import { Injectable } from "@angular/core";
|
|
8
6
|
import { isPresent, OFFSET_STYLES, Keys } from '../common/util';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "./drag-resize.service";
|
|
9
9
|
/**
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
export class NavigationService {
|
|
13
13
|
constructor(window, ngZone) {
|
|
14
14
|
this.window = window;
|
|
15
15
|
this.ngZone = ngZone;
|
|
@@ -143,10 +143,9 @@ let NavigationService = class NavigationService {
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
}
|
|
147
|
-
NavigationService =
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
],
|
|
152
|
-
export { NavigationService };
|
|
146
|
+
}
|
|
147
|
+
NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, deps: [{ token: i1.DragResizeService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
148
|
+
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService });
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, decorators: [{
|
|
150
|
+
type: Injectable
|
|
151
|
+
}], ctorParameters: function () { return [{ type: i1.DragResizeService }, { type: i0.NgZone }]; } });
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "./window-container.service";
|
|
8
|
+
/**
|
|
9
|
+
* Provides an insertion point for the Windows which are created through the
|
|
10
|
+
* Window service ([see example]({% slug api_dialog_windowservice %}#toc-open)).
|
|
11
|
+
* Created Windows will be mounted after that element.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html-no-run
|
|
15
|
+
* <div kendoWindowContainer></div>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export class WindowContainerDirective {
|
|
19
|
+
constructor(container, service) {
|
|
20
|
+
service.container = container;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
WindowContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerDirective, deps: [{ token: i0.ViewContainerRef }, { token: i1.WindowContainerService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
+
WindowContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowContainerDirective, selector: "[kendoWindowContainer]", ngImport: i0 });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerDirective, decorators: [{
|
|
26
|
+
type: Directive,
|
|
27
|
+
args: [{
|
|
28
|
+
selector: '[kendoWindowContainer]'
|
|
29
|
+
}]
|
|
30
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i1.WindowContainerService }]; } });
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Injectable } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export class WindowContainerService {
|
|
11
|
+
set container(container) {
|
|
12
|
+
WindowContainerService.container = container;
|
|
13
|
+
}
|
|
14
|
+
get container() {
|
|
15
|
+
return WindowContainerService.container;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
WindowContainerService.container = null;
|
|
19
|
+
WindowContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20
|
+
WindowContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerService });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowContainerService, decorators: [{
|
|
22
|
+
type: Injectable
|
|
23
|
+
}] });
|
|
@@ -2,3 +2,4 @@
|
|
|
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
|
+
export {};
|