@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,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';
|
|
@@ -7,6 +7,8 @@ import { CommonModule } from '@angular/common';
|
|
|
7
7
|
import { DialogActionsComponent } from './dialog/dialog-actions.component';
|
|
8
8
|
import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
9
9
|
import { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
10
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
11
|
+
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
10
12
|
import * as i0 from "@angular/core";
|
|
11
13
|
/**
|
|
12
14
|
* @hidden
|
|
@@ -21,18 +23,18 @@ export const SHARED_DIRECTIVES = [
|
|
|
21
23
|
*/
|
|
22
24
|
export class SharedModule {
|
|
23
25
|
}
|
|
24
|
-
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
26
|
+
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
27
|
+
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, declarations: [DialogActionsComponent,
|
|
26
28
|
CustomMessagesComponent,
|
|
27
|
-
LocalizedMessagesDirective], imports: [CommonModule], exports: [DialogActionsComponent,
|
|
29
|
+
LocalizedMessagesDirective], imports: [CommonModule, IconsModule, ButtonModule], exports: [DialogActionsComponent,
|
|
28
30
|
CustomMessagesComponent,
|
|
29
|
-
LocalizedMessagesDirective, CommonModule] });
|
|
30
|
-
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
31
|
+
LocalizedMessagesDirective, CommonModule, IconsModule, ButtonModule] });
|
|
32
|
+
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[CommonModule, IconsModule, ButtonModule], CommonModule, IconsModule, ButtonModule] });
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
32
34
|
type: NgModule,
|
|
33
35
|
args: [{
|
|
34
36
|
declarations: [SHARED_DIRECTIVES],
|
|
35
|
-
exports: [SHARED_DIRECTIVES, CommonModule],
|
|
36
|
-
imports: [CommonModule]
|
|
37
|
+
exports: [SHARED_DIRECTIVES, CommonModule, IconsModule, ButtonModule],
|
|
38
|
+
imports: [CommonModule, IconsModule, ButtonModule]
|
|
37
39
|
}]
|
|
38
40
|
}] });
|
|
@@ -1,16 +1,24 @@
|
|
|
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 {
|
|
5
|
+
import { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
|
|
6
|
+
import { DragResizeService } from '../drag-resize.service';
|
|
6
7
|
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
8
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import { xIcon } from '@progress/kendo-svg-icons';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
import * as i1 from "../drag-resize.service";
|
|
10
12
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
13
|
+
import * as i3 from "@progress/kendo-angular-icons";
|
|
14
|
+
import * as i4 from "@angular/common";
|
|
11
15
|
export class WindowCloseActionDirective extends Button {
|
|
12
16
|
constructor(el, renderer, _service, localization, ngZone) {
|
|
13
17
|
super(el, renderer, null, localization, ngZone);
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
this.xIcon = xIcon;
|
|
14
22
|
this.buttonType = 'button';
|
|
15
23
|
this.buttonClass = true;
|
|
16
24
|
this.window = _service;
|
|
@@ -26,16 +34,28 @@ export class WindowCloseActionDirective extends Button {
|
|
|
26
34
|
}
|
|
27
35
|
}
|
|
28
36
|
}
|
|
29
|
-
WindowCloseActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
30
|
-
WindowCloseActionDirective.ɵ
|
|
37
|
+
WindowCloseActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", 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.Component });
|
|
38
|
+
WindowCloseActionDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass" } }, providers: [
|
|
31
39
|
LocalizationService,
|
|
32
40
|
{
|
|
33
41
|
provide: L10N_PREFIX,
|
|
34
42
|
useValue: 'kendo.button'
|
|
35
43
|
}
|
|
36
|
-
], exportAs: ["kendoWindowCloseAction"], usesInheritance: true, ngImport: i0
|
|
37
|
-
|
|
38
|
-
|
|
44
|
+
], exportAs: ["kendoWindowCloseAction"], usesInheritance: true, ngImport: i0, template: `
|
|
45
|
+
<kendo-icon-wrapper
|
|
46
|
+
*ngIf="!imageUrl && !iconClass"
|
|
47
|
+
innerCssClass="k-button-icon"
|
|
48
|
+
name="close"
|
|
49
|
+
[svgIcon]="xIcon">
|
|
50
|
+
</kendo-icon-wrapper>
|
|
51
|
+
<span *ngIf="imageUrl" class="k-button-icon k-icon">
|
|
52
|
+
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
53
|
+
</span>
|
|
54
|
+
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
55
|
+
<span class="k-button-text"><ng-content></ng-content></span>
|
|
56
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowCloseActionDirective, decorators: [{
|
|
58
|
+
type: Component,
|
|
39
59
|
args: [{
|
|
40
60
|
exportAs: 'kendoWindowCloseAction',
|
|
41
61
|
providers: [
|
|
@@ -45,7 +65,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
45
65
|
useValue: 'kendo.button'
|
|
46
66
|
}
|
|
47
67
|
],
|
|
48
|
-
selector: 'button[kendoWindowCloseAction]'
|
|
68
|
+
selector: 'button[kendoWindowCloseAction]',
|
|
69
|
+
template: `
|
|
70
|
+
<kendo-icon-wrapper
|
|
71
|
+
*ngIf="!imageUrl && !iconClass"
|
|
72
|
+
innerCssClass="k-button-icon"
|
|
73
|
+
name="close"
|
|
74
|
+
[svgIcon]="xIcon">
|
|
75
|
+
</kendo-icon-wrapper>
|
|
76
|
+
<span *ngIf="imageUrl" class="k-button-icon k-icon">
|
|
77
|
+
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
78
|
+
</span>
|
|
79
|
+
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
80
|
+
<span class="k-button-text"><ng-content></ng-content></span>
|
|
81
|
+
`
|
|
49
82
|
}]
|
|
50
83
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
|
|
51
84
|
type: Optional
|
|
@@ -56,7 +89,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
56
89
|
args: ['attr.type']
|
|
57
90
|
}], buttonClass: [{
|
|
58
91
|
type: HostBinding,
|
|
59
|
-
args: ['class.k-window-action']
|
|
92
|
+
args: ['class.k-window-titlebar-action']
|
|
60
93
|
}], onClick: [{
|
|
61
94
|
type: HostListener,
|
|
62
95
|
args: ['click']
|
|
@@ -1,18 +1,26 @@
|
|
|
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 {
|
|
5
|
+
import { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
|
|
6
|
+
import { DragResizeService } from './../drag-resize.service';
|
|
6
7
|
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
8
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import { windowIcon } from '@progress/kendo-svg-icons';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
import * as i1 from "./../drag-resize.service";
|
|
10
12
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
13
|
+
import * as i3 from "@progress/kendo-angular-icons";
|
|
14
|
+
import * as i4 from "@angular/common";
|
|
11
15
|
export class WindowMaximizeActionDirective extends Button {
|
|
12
16
|
constructor(el, renderer, _service, localization, ngZone) {
|
|
13
17
|
super(el, renderer, null, localization, ngZone);
|
|
14
18
|
this.buttonType = 'button';
|
|
15
19
|
this.buttonClass = true;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
this.windowIcon = windowIcon;
|
|
16
24
|
this.window = _service;
|
|
17
25
|
this.fillMode = 'flat';
|
|
18
26
|
this.icon = 'window';
|
|
@@ -29,16 +37,28 @@ export class WindowMaximizeActionDirective extends Button {
|
|
|
29
37
|
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
|
-
WindowMaximizeActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
WindowMaximizeActionDirective.ɵ
|
|
40
|
+
WindowMaximizeActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", 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.Component });
|
|
41
|
+
WindowMaximizeActionDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass", "style.display": "this.visible" } }, providers: [
|
|
34
42
|
LocalizationService,
|
|
35
43
|
{
|
|
36
44
|
provide: L10N_PREFIX,
|
|
37
45
|
useValue: 'kendo.button'
|
|
38
46
|
}
|
|
39
|
-
], exportAs: ["kendoWindowMaximizeAction"], usesInheritance: true, ngImport: i0
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
], exportAs: ["kendoWindowMaximizeAction"], usesInheritance: true, ngImport: i0, template: `
|
|
48
|
+
<kendo-icon-wrapper
|
|
49
|
+
*ngIf="!imageUrl && !iconClass"
|
|
50
|
+
innerCssClass="k-button-icon"
|
|
51
|
+
name="window"
|
|
52
|
+
[svgIcon]="windowIcon">
|
|
53
|
+
</kendo-icon-wrapper>
|
|
54
|
+
<span *ngIf="imageUrl" class="k-button-icon k-icon">
|
|
55
|
+
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
56
|
+
</span>
|
|
57
|
+
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
58
|
+
<span class="k-button-text"><ng-content></ng-content></span>
|
|
59
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowMaximizeActionDirective, decorators: [{
|
|
61
|
+
type: Component,
|
|
42
62
|
args: [{
|
|
43
63
|
exportAs: 'kendoWindowMaximizeAction',
|
|
44
64
|
providers: [
|
|
@@ -48,7 +68,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
48
68
|
useValue: 'kendo.button'
|
|
49
69
|
}
|
|
50
70
|
],
|
|
51
|
-
selector: 'button[kendoWindowMaximizeAction]'
|
|
71
|
+
selector: 'button[kendoWindowMaximizeAction]',
|
|
72
|
+
template: `
|
|
73
|
+
<kendo-icon-wrapper
|
|
74
|
+
*ngIf="!imageUrl && !iconClass"
|
|
75
|
+
innerCssClass="k-button-icon"
|
|
76
|
+
name="window"
|
|
77
|
+
[svgIcon]="windowIcon">
|
|
78
|
+
</kendo-icon-wrapper>
|
|
79
|
+
<span *ngIf="imageUrl" class="k-button-icon k-icon">
|
|
80
|
+
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
81
|
+
</span>
|
|
82
|
+
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
83
|
+
<span class="k-button-text"><ng-content></ng-content></span>
|
|
84
|
+
`
|
|
52
85
|
}]
|
|
53
86
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
|
|
54
87
|
type: Optional
|
|
@@ -59,7 +92,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
59
92
|
args: ['attr.type']
|
|
60
93
|
}], buttonClass: [{
|
|
61
94
|
type: HostBinding,
|
|
62
|
-
args: ['class.k-window-action']
|
|
95
|
+
args: ['class.k-window-titlebar-action']
|
|
63
96
|
}], onClick: [{
|
|
64
97
|
type: HostListener,
|
|
65
98
|
args: ['click']
|
|
@@ -1,18 +1,26 @@
|
|
|
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 {
|
|
5
|
+
import { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
|
|
6
|
+
import { DragResizeService } from './../drag-resize.service';
|
|
6
7
|
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
8
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import { windowMinimizeIcon } from "@progress/kendo-svg-icons";
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
import * as i1 from "./../drag-resize.service";
|
|
10
12
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
13
|
+
import * as i3 from "@progress/kendo-angular-icons";
|
|
14
|
+
import * as i4 from "@angular/common";
|
|
11
15
|
export class WindowMinimizeActionDirective extends Button {
|
|
12
16
|
constructor(el, renderer, _service, localization, ngZone) {
|
|
13
17
|
super(el, renderer, null, localization, ngZone);
|
|
14
18
|
this.buttonType = 'button';
|
|
15
19
|
this.buttonClass = true;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
this.windowMinimizeIcon = windowMinimizeIcon;
|
|
16
24
|
this.window = _service;
|
|
17
25
|
this.fillMode = 'flat';
|
|
18
26
|
this.icon = 'window-minimize';
|
|
@@ -29,16 +37,28 @@ export class WindowMinimizeActionDirective extends Button {
|
|
|
29
37
|
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
|
-
WindowMinimizeActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
WindowMinimizeActionDirective.ɵ
|
|
40
|
+
WindowMinimizeActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", 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.Component });
|
|
41
|
+
WindowMinimizeActionDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass", "style.display": "this.visible" } }, providers: [
|
|
34
42
|
LocalizationService,
|
|
35
43
|
{
|
|
36
44
|
provide: L10N_PREFIX,
|
|
37
45
|
useValue: 'kendo.button'
|
|
38
46
|
}
|
|
39
|
-
], exportAs: ["kendoWindowMinimizeAction"], usesInheritance: true, ngImport: i0
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
], exportAs: ["kendoWindowMinimizeAction"], usesInheritance: true, ngImport: i0, template: `
|
|
48
|
+
<kendo-icon-wrapper
|
|
49
|
+
*ngIf="!imageUrl && !iconClass"
|
|
50
|
+
innerCssClass="k-button-icon"
|
|
51
|
+
name="window-minimize"
|
|
52
|
+
[svgIcon]="windowMinimizeIcon">
|
|
53
|
+
</kendo-icon-wrapper>
|
|
54
|
+
<span *ngIf="imageUrl" class="k-button-icon k-icon">
|
|
55
|
+
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
56
|
+
</span>
|
|
57
|
+
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
58
|
+
<span class="k-button-text"><ng-content></ng-content></span>
|
|
59
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowMinimizeActionDirective, decorators: [{
|
|
61
|
+
type: Component,
|
|
42
62
|
args: [{
|
|
43
63
|
exportAs: 'kendoWindowMinimizeAction',
|
|
44
64
|
providers: [
|
|
@@ -48,7 +68,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
48
68
|
useValue: 'kendo.button'
|
|
49
69
|
}
|
|
50
70
|
],
|
|
51
|
-
selector: 'button[kendoWindowMinimizeAction]'
|
|
71
|
+
selector: 'button[kendoWindowMinimizeAction]',
|
|
72
|
+
template: `
|
|
73
|
+
<kendo-icon-wrapper
|
|
74
|
+
*ngIf="!imageUrl && !iconClass"
|
|
75
|
+
innerCssClass="k-button-icon"
|
|
76
|
+
name="window-minimize"
|
|
77
|
+
[svgIcon]="windowMinimizeIcon">
|
|
78
|
+
</kendo-icon-wrapper>
|
|
79
|
+
<span *ngIf="imageUrl" class="k-button-icon k-icon">
|
|
80
|
+
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
81
|
+
</span>
|
|
82
|
+
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
83
|
+
<span class="k-button-text"><ng-content></ng-content></span>
|
|
84
|
+
`
|
|
52
85
|
}]
|
|
53
86
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
|
|
54
87
|
type: Optional
|
|
@@ -59,7 +92,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
59
92
|
args: ['attr.type']
|
|
60
93
|
}], buttonClass: [{
|
|
61
94
|
type: HostBinding,
|
|
62
|
-
args: ['class.k-window-action']
|
|
95
|
+
args: ['class.k-window-titlebar-action']
|
|
63
96
|
}], onClick: [{
|
|
64
97
|
type: HostListener,
|
|
65
98
|
args: ['click']
|
|
@@ -1,16 +1,24 @@
|
|
|
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 {
|
|
5
|
+
import { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
|
|
6
|
+
import { DragResizeService } from './../drag-resize.service';
|
|
6
7
|
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
8
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import { windowRestoreIcon } from '@progress/kendo-svg-icons';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
import * as i1 from "./../drag-resize.service";
|
|
10
12
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
13
|
+
import * as i3 from "@progress/kendo-angular-icons";
|
|
14
|
+
import * as i4 from "@angular/common";
|
|
11
15
|
export class WindowRestoreActionDirective extends Button {
|
|
12
16
|
constructor(el, renderer, _service, localization, ngZone) {
|
|
13
17
|
super(el, renderer, null, localization, ngZone);
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
this.windowRestoreIcon = windowRestoreIcon;
|
|
14
22
|
this.buttonType = 'button';
|
|
15
23
|
this.buttonClass = true;
|
|
16
24
|
this.window = _service;
|
|
@@ -29,16 +37,28 @@ export class WindowRestoreActionDirective extends Button {
|
|
|
29
37
|
return this.window.options.state === 'default' ? 'none' : 'inline-flex';
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
|
-
WindowRestoreActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
WindowRestoreActionDirective.ɵ
|
|
40
|
+
WindowRestoreActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", 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.Component });
|
|
41
|
+
WindowRestoreActionDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass", "style.display": "this.visible" } }, providers: [
|
|
34
42
|
LocalizationService,
|
|
35
43
|
{
|
|
36
44
|
provide: L10N_PREFIX,
|
|
37
45
|
useValue: 'kendo.button'
|
|
38
46
|
}
|
|
39
|
-
], exportAs: ["kendoWindowRestoreAction"], usesInheritance: true, ngImport: i0
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
], exportAs: ["kendoWindowRestoreAction"], usesInheritance: true, ngImport: i0, template: `
|
|
48
|
+
<kendo-icon-wrapper
|
|
49
|
+
*ngIf="!imageUrl && !iconClass"
|
|
50
|
+
innerCssClass="k-button-icon"
|
|
51
|
+
name="window-restore"
|
|
52
|
+
[svgIcon]="windowRestoreIcon">
|
|
53
|
+
</kendo-icon-wrapper>
|
|
54
|
+
<span *ngIf="imageUrl" class="k-button-icon k-icon">
|
|
55
|
+
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
56
|
+
</span>
|
|
57
|
+
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
58
|
+
<span class="k-button-text"><ng-content></ng-content></span>
|
|
59
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowRestoreActionDirective, decorators: [{
|
|
61
|
+
type: Component,
|
|
42
62
|
args: [{
|
|
43
63
|
exportAs: 'kendoWindowRestoreAction',
|
|
44
64
|
providers: [
|
|
@@ -48,7 +68,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
48
68
|
useValue: 'kendo.button'
|
|
49
69
|
}
|
|
50
70
|
],
|
|
51
|
-
selector: 'button[kendoWindowRestoreAction]'
|
|
71
|
+
selector: 'button[kendoWindowRestoreAction]',
|
|
72
|
+
template: `
|
|
73
|
+
<kendo-icon-wrapper
|
|
74
|
+
*ngIf="!imageUrl && !iconClass"
|
|
75
|
+
innerCssClass="k-button-icon"
|
|
76
|
+
name="window-restore"
|
|
77
|
+
[svgIcon]="windowRestoreIcon">
|
|
78
|
+
</kendo-icon-wrapper>
|
|
79
|
+
<span *ngIf="imageUrl" class="k-button-icon k-icon">
|
|
80
|
+
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
81
|
+
</span>
|
|
82
|
+
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
83
|
+
<span class="k-button-text"><ng-content></ng-content></span>
|
|
84
|
+
`
|
|
52
85
|
}]
|
|
53
86
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
|
|
54
87
|
type: Optional
|
|
@@ -59,7 +92,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
59
92
|
args: ['attr.type']
|
|
60
93
|
}], buttonClass: [{
|
|
61
94
|
type: HostBinding,
|
|
62
|
-
args: ['class.k-window-action']
|
|
95
|
+
args: ['class.k-window-titlebar-action']
|
|
63
96
|
}], onClick: [{
|
|
64
97
|
type: HostListener,
|
|
65
98
|
args: ['click']
|
|
@@ -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, EventEmitter } from "@angular/core";
|
|
5
|
+
import { Injectable, NgZone, EventEmitter } from "@angular/core";
|
|
6
6
|
import { Subscription } from 'rxjs';
|
|
7
7
|
import { tap, map, switchMap, takeUntil } from 'rxjs/operators';
|
|
8
8
|
import { isPresent, OFFSET_STYLES, preventDefault } from '../common/util';
|
|
@@ -68,7 +68,7 @@ export class DragResizeService {
|
|
|
68
68
|
}
|
|
69
69
|
init(el) {
|
|
70
70
|
const state = this.options.state;
|
|
71
|
-
|
|
71
|
+
const options = this.options;
|
|
72
72
|
this.window = el;
|
|
73
73
|
if (state !== 'default') {
|
|
74
74
|
this.restoreOptions = Object.assign({}, options);
|
|
@@ -134,15 +134,15 @@ export class DragResizeService {
|
|
|
134
134
|
this.resizeStart.emit(direction);
|
|
135
135
|
resizeStarted = true;
|
|
136
136
|
}
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
const deltaX = pageX - originalX;
|
|
138
|
+
const deltaY = pageY - originalY;
|
|
139
139
|
this.handleResize(startOffsetAndPosition, direction, deltaX, deltaY);
|
|
140
140
|
});
|
|
141
141
|
}));
|
|
142
142
|
}
|
|
143
143
|
handleResize(initial, dir, deltaX, deltaY) {
|
|
144
144
|
const old = this.options;
|
|
145
|
-
|
|
145
|
+
const ev = {};
|
|
146
146
|
if (dir.indexOf('e') >= 0) {
|
|
147
147
|
const newWidth = initial.width + deltaX;
|
|
148
148
|
if (newWidth !== old.width && newWidth >= old.minWidth) {
|
|
@@ -268,10 +268,10 @@ export class DragResizeService {
|
|
|
268
268
|
if (this.options.state === 'maximized') {
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
271
|
+
const scroll = scrollPosition(this.window.nativeElement);
|
|
272
|
+
const wnd = this.windowViewPort;
|
|
273
|
+
const wrapper = offset(this.window.nativeElement);
|
|
274
|
+
const ev = {};
|
|
275
275
|
if (!isPresent(this.options.left)) {
|
|
276
276
|
this.options.left = scroll.x + Math.max(0, (wnd.width - wrapper.width) / 2);
|
|
277
277
|
ev.left = this.options.left;
|
|
@@ -320,8 +320,8 @@ export class DragResizeService {
|
|
|
320
320
|
return getWindowViewPort(this.window.nativeElement);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
DragResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
324
|
-
DragResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
323
|
+
DragResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragResizeService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
324
|
+
DragResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragResizeService });
|
|
325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DragResizeService, decorators: [{
|
|
326
326
|
type: Injectable
|
|
327
327
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
@@ -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
|
export * from './window-close-result';
|
|
@@ -8,3 +8,4 @@ export * from './window-options';
|
|
|
8
8
|
export * from './window-ref';
|
|
9
9
|
export * from './window-settings';
|
|
10
10
|
export * from './window-types';
|
|
11
|
+
export * from './theme-color';
|
|
@@ -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,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
|
/**
|
|
@@ -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 {};
|
|
@@ -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,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
|
/**
|
package/{esm2015/window/models/window-settings.js → esm2020/window/models/window-settings.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
|
/**
|
|
@@ -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,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 { Injectable } from "@angular/core";
|
|
5
|
+
import { Injectable, NgZone } from "@angular/core";
|
|
6
|
+
import { DragResizeService } from './drag-resize.service';
|
|
6
7
|
import { isPresent, OFFSET_STYLES, Keys } from '../common/util';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
import * as i1 from "./drag-resize.service";
|
|
@@ -53,13 +54,13 @@ export class NavigationService {
|
|
|
53
54
|
this.window.closeAction();
|
|
54
55
|
}
|
|
55
56
|
handleDrag(key) {
|
|
56
|
-
|
|
57
|
+
const options = this.window.options;
|
|
57
58
|
if (!options.draggable) {
|
|
58
59
|
return;
|
|
59
60
|
}
|
|
60
61
|
const offset = this.window.currentOffsetAndPosition();
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
const restoreOptions = this.window.restoreOptions;
|
|
63
|
+
const ev = {};
|
|
63
64
|
let delta = 10;
|
|
64
65
|
if (key === Keys.left || key === Keys.up) {
|
|
65
66
|
delta *= -1;
|
|
@@ -94,7 +95,7 @@ export class NavigationService {
|
|
|
94
95
|
const offset = this.window.currentOffsetAndPosition();
|
|
95
96
|
let newWidth;
|
|
96
97
|
let newHeight;
|
|
97
|
-
|
|
98
|
+
const ev = {};
|
|
98
99
|
let delta = 10;
|
|
99
100
|
if (key === Keys.left || key === Keys.up) {
|
|
100
101
|
delta *= -1;
|
|
@@ -144,8 +145,8 @@ export class NavigationService {
|
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
|
-
NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
148
|
-
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
148
|
+
NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NavigationService, deps: [{ token: i1.DragResizeService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
149
|
+
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NavigationService });
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NavigationService, decorators: [{
|
|
150
151
|
type: Injectable
|
|
151
152
|
}], ctorParameters: function () { return [{ type: i1.DragResizeService }, { type: i0.NgZone }]; } });
|