@progress/kendo-angular-dialog 21.4.1-develop.1 → 22.0.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dialog/dialog-content-base.d.ts +1 -1
  2. package/fesm2022/progress-kendo-angular-dialog.mjs +84 -84
  3. package/localization/messages.d.ts +1 -1
  4. package/package.json +11 -19
  5. package/schematics/ngAdd/index.js +1 -1
  6. package/esm2022/common/actions-layout.mjs +0 -5
  7. package/esm2022/common/animation-types.mjs +0 -5
  8. package/esm2022/common/dialog-animation-direction.mjs +0 -5
  9. package/esm2022/common/preventable-event.mjs +0 -30
  10. package/esm2022/common/util.mjs +0 -167
  11. package/esm2022/dialog/dialog-actions.component.mjs +0 -182
  12. package/esm2022/dialog/dialog-animations/animate-content.mjs +0 -19
  13. package/esm2022/dialog/dialog-animations/animations.mjs +0 -69
  14. package/esm2022/dialog/dialog-animations/create-animation-player.mjs +0 -18
  15. package/esm2022/dialog/dialog-container.directive.mjs +0 -31
  16. package/esm2022/dialog/dialog-container.service.mjs +0 -26
  17. package/esm2022/dialog/dialog-content-base.mjs +0 -57
  18. package/esm2022/dialog/dialog-titlebar.component.mjs +0 -170
  19. package/esm2022/dialog/dialog.component.mjs +0 -650
  20. package/esm2022/dialog/dialog.service.mjs +0 -210
  21. package/esm2022/dialog/models/dialog-action-divider.mjs +0 -5
  22. package/esm2022/dialog/models/dialog-action.mjs +0 -40
  23. package/esm2022/dialog/models/dialog-animation.mjs +0 -5
  24. package/esm2022/dialog/models/dialog-close-result.mjs +0 -12
  25. package/esm2022/dialog/models/dialog-ref.mjs +0 -39
  26. package/esm2022/dialog/models/dialog-result.mjs +0 -5
  27. package/esm2022/dialog/models/dialog-settings.mjs +0 -95
  28. package/esm2022/dialog/models/index.mjs +0 -12
  29. package/esm2022/dialog/models/theme-color.mjs +0 -5
  30. package/esm2022/dialog.module.mjs +0 -49
  31. package/esm2022/dialogs.module.mjs +0 -59
  32. package/esm2022/directives.mjs +0 -95
  33. package/esm2022/index.mjs +0 -33
  34. package/esm2022/localization/custom-messages.component.mjs +0 -65
  35. package/esm2022/localization/dialog-localization.service.mjs +0 -9
  36. package/esm2022/localization/localized-messages.directive.mjs +0 -43
  37. package/esm2022/localization/messages.mjs +0 -45
  38. package/esm2022/localization/titlebar-localization.service.mjs +0 -45
  39. package/esm2022/package-metadata.mjs +0 -16
  40. package/esm2022/progress-kendo-angular-dialog.mjs +0 -8
  41. package/esm2022/window/actions/window-close-action.directive.mjs +0 -119
  42. package/esm2022/window/actions/window-maximize-action.directive.mjs +0 -125
  43. package/esm2022/window/actions/window-minimize-action.directive.mjs +0 -125
  44. package/esm2022/window/actions/window-restore-action.directive.mjs +0 -125
  45. package/esm2022/window/drag-resize.service.mjs +0 -335
  46. package/esm2022/window/models/index.mjs +0 -11
  47. package/esm2022/window/models/theme-color.mjs +0 -5
  48. package/esm2022/window/models/window-close-result.mjs +0 -10
  49. package/esm2022/window/models/window-messages.mjs +0 -5
  50. package/esm2022/window/models/window-options.mjs +0 -5
  51. package/esm2022/window/models/window-ref.mjs +0 -25
  52. package/esm2022/window/models/window-settings.mjs +0 -92
  53. package/esm2022/window/models/window-types.mjs +0 -5
  54. package/esm2022/window/navigation.service.mjs +0 -160
  55. package/esm2022/window/window-container.directive.mjs +0 -31
  56. package/esm2022/window/window-container.service.mjs +0 -26
  57. package/esm2022/window/window-events.mjs +0 -5
  58. package/esm2022/window/window-resize-handle.directive.mjs +0 -74
  59. package/esm2022/window/window-titlebar.component.mjs +0 -173
  60. package/esm2022/window/window.component.mjs +0 -831
  61. package/esm2022/window/window.service.mjs +0 -206
  62. package/esm2022/window.module.mjs +0 -53
package/esm2022/index.mjs DELETED
@@ -1,33 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export { DialogComponent } from './dialog/dialog.component';
6
- export { DialogTitleBarComponent } from './dialog/dialog-titlebar.component';
7
- export { DialogContentBase } from './dialog/dialog-content-base';
8
- export { DialogActionsComponent } from './dialog/dialog-actions.component';
9
- export { DialogService } from './dialog/dialog.service';
10
- export { DialogContainerService } from './dialog/dialog-container.service';
11
- export { DialogCloseResult, DialogRef, DialogSettings, DialogAction } from './dialog/models/';
12
- export { WindowComponent } from './window/window.component';
13
- export { WindowTitleBarComponent } from './window/window-titlebar.component';
14
- export { WindowMaximizeActionDirective } from './window/actions/window-maximize-action.directive';
15
- export { WindowMinimizeActionDirective } from './window/actions/window-minimize-action.directive';
16
- export { WindowCloseActionDirective } from './window/actions/window-close-action.directive';
17
- export { WindowRestoreActionDirective } from './window/actions/window-restore-action.directive';
18
- export { WindowSettings, WindowRef, WindowCloseResult } from './window/models';
19
- export { WindowService } from './window/window.service';
20
- export { WindowContainerService } from './window/window-container.service';
21
- export { DragResizeService } from './window/drag-resize.service';
22
- export { NavigationService } from './window/navigation.service';
23
- export { DialogModule } from './dialog.module';
24
- export { WindowModule } from './window.module';
25
- export { DialogsModule } from './dialogs.module';
26
- // error NG3001: Unsupported private class
27
- export { DialogContainerDirective } from './dialog/dialog-container.directive';
28
- export { Messages } from './localization/messages';
29
- export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
30
- export { CustomMessagesComponent } from './localization/custom-messages.component';
31
- export { WindowContainerDirective } from './window/window-container.directive';
32
- export { PreventableEvent } from './common/preventable-event';
33
- export * from './directives';
@@ -1,65 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 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, forwardRef } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { Messages } from './messages';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@progress/kendo-angular-l10n";
10
- /**
11
- * Represents a component for customizing the messages in Dialog and Window components.
12
- *
13
- * Use the `CustomMessagesComponent` to override default messages with custom text. ([See example.](slug:globalization_dialogs#toc-internationalization)).
14
- *
15
- * @example
16
- * ```typescript
17
- * import { CustomMessagesComponent } from './custom-messages.component';
18
- *
19
- * @Component({
20
- * selector: 'my-dialog',
21
- * template: `
22
- * <kendo-dialog>
23
- * <kendo-dialog-messages
24
- * [closeTitle]="'Close dialog'"
25
- * [restoreTitle]="'Restore dialog'"
26
- * [maximizeTitle]="'Maximize dialog'"
27
- * [minimizeTitle]="'Minimize dialog'">
28
- * </kendo-dialog-messages>
29
- * </kendo-dialog>
30
- * `
31
- * })
32
- * export class MyDialogComponent {}
33
- * ```
34
- */
35
- export class CustomMessagesComponent extends Messages {
36
- service;
37
- constructor(service) {
38
- super();
39
- this.service = service;
40
- }
41
- get override() {
42
- return true;
43
- }
44
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
45
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-dialog-messages, kendo-window-messages", providers: [
46
- {
47
- provide: Messages,
48
- useExisting: forwardRef(() => CustomMessagesComponent)
49
- }
50
- ], usesInheritance: true, ngImport: i0 });
51
- }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CustomMessagesComponent, decorators: [{
53
- type: Directive,
54
- args: [{
55
- providers: [
56
- {
57
- provide: Messages,
58
- useExisting: forwardRef(() => CustomMessagesComponent)
59
- }
60
- ],
61
- // eslint-disable-next-line @angular-eslint/directive-selector
62
- selector: 'kendo-dialog-messages, kendo-window-messages',
63
- standalone: true
64
- }]
65
- }], ctorParameters: () => [{ type: i1.LocalizationService }] });
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { InjectionToken } from '@angular/core';
6
- /**
7
- * @hidden
8
- */
9
- export const DIALOG_LOCALIZATION_SERVICE = new InjectionToken('Dialog LocalizationService');
@@ -1,43 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 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, forwardRef } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { Messages } from './messages';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@progress/kendo-angular-l10n";
10
- /**
11
- * @hidden
12
- */
13
- export class LocalizedMessagesDirective extends Messages {
14
- service;
15
- constructor(service) {
16
- super();
17
- this.service = service;
18
- }
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: LocalizedMessagesDirective, isStandalone: true, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ", providers: [
21
- {
22
- provide: Messages,
23
- useExisting: forwardRef(() => LocalizedMessagesDirective)
24
- }
25
- ], usesInheritance: true, ngImport: i0 });
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
28
- type: Directive,
29
- args: [{
30
- providers: [
31
- {
32
- provide: Messages,
33
- useExisting: forwardRef(() => LocalizedMessagesDirective)
34
- }
35
- ],
36
- selector: `
37
- [kendoDialogLocalizedMessages],
38
- [kendoWindowLocalizedMessages],
39
- [kendoDialogTitleBarLocalizedMessages]
40
- `,
41
- standalone: true
42
- }]
43
- }], ctorParameters: () => [{ type: i1.LocalizationService }] });
@@ -1,45 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 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, Input } from '@angular/core';
6
- import { ComponentMessages } from '@progress/kendo-angular-l10n';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @hidden
10
- */
11
- export class Messages extends ComponentMessages {
12
- /**
13
- * Sets the title for the **Close** button.
14
- */
15
- closeTitle;
16
- /**
17
- * Sets the title for the **Restore** button.
18
- */
19
- restoreTitle;
20
- /**
21
- * Sets the title for the **Maximize** button.
22
- */
23
- maximizeTitle;
24
- /**
25
- * Sets the title for the **Minimize** button.
26
- */
27
- minimizeTitle;
28
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
29
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: Messages, selector: "kendo-dialog-messages-base", inputs: { closeTitle: "closeTitle", restoreTitle: "restoreTitle", maximizeTitle: "maximizeTitle", minimizeTitle: "minimizeTitle" }, usesInheritance: true, ngImport: i0 });
30
- }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: Messages, decorators: [{
32
- type: Directive,
33
- args: [{
34
- // eslint-disable-next-line @angular-eslint/directive-selector
35
- selector: 'kendo-dialog-messages-base'
36
- }]
37
- }], propDecorators: { closeTitle: [{
38
- type: Input
39
- }], restoreTitle: [{
40
- type: Input
41
- }], maximizeTitle: [{
42
- type: Input
43
- }], minimizeTitle: [{
44
- type: Input
45
- }] } });
@@ -1,45 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 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, MessageService, 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
- dialogLocalization;
15
- constructor(prefix, messageService, rtl, dialogLocalization) {
16
- super(prefix, messageService, rtl);
17
- this.dialogLocalization = dialogLocalization;
18
- }
19
- get(shortKey) {
20
- if (this.dialogLocalization) {
21
- return this.dialogLocalization.get(shortKey);
22
- }
23
- return super.get(shortKey);
24
- }
25
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", 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
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TitleBarLocalizationService });
27
- }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TitleBarLocalizationService, decorators: [{
29
- type: Injectable
30
- }], ctorParameters: () => [{ type: undefined, decorators: [{
31
- type: Inject,
32
- args: [L10N_PREFIX]
33
- }] }, { type: i1.MessageService, decorators: [{
34
- type: Optional
35
- }] }, { type: undefined, decorators: [{
36
- type: Optional
37
- }, {
38
- type: Inject,
39
- args: [RTL]
40
- }] }, { type: i1.LocalizationService, decorators: [{
41
- type: Optional
42
- }, {
43
- type: Inject,
44
- args: [DIALOG_LOCALIZATION_SERVICE]
45
- }] }] });
@@ -1,16 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export const packageMetadata = {
9
- name: '@progress/kendo-angular-dialog',
10
- productName: 'Kendo UI for Angular',
11
- productCode: 'KENDOUIANGULAR',
12
- productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1768386398,
14
- version: '21.4.1-develop.1',
15
- licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
- };
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Generated bundle index. Do not edit.
7
- */
8
- export * from './index';
@@ -1,119 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
6
- import { NgClass } from "@angular/common";
7
- import { Button } from '@progress/kendo-angular-buttons';
8
- import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
9
- import { xIcon } from '@progress/kendo-svg-icons';
10
- import { IconWrapperComponent } from "@progress/kendo-angular-icons";
11
- import { DragResizeService } from '../drag-resize.service';
12
- import * as i0 from "@angular/core";
13
- import * as i1 from "../drag-resize.service";
14
- import * as i2 from "@progress/kendo-angular-l10n";
15
- /**
16
- * Represents the close action directive of the Window component.
17
- *
18
- * ```html
19
- * <button kendoWindowCloseAction>Close</button>
20
- * ```
21
- */
22
- export class WindowCloseActionDirective extends Button {
23
- /**
24
- * @hidden
25
- */
26
- window;
27
- /**
28
- * @hidden
29
- */
30
- xIcon = xIcon;
31
- buttonType = 'button';
32
- buttonClass = true;
33
- constructor(el, renderer, _service, localization, ngZone) {
34
- super(el, renderer, null, localization, ngZone);
35
- this.window = _service;
36
- this.fillMode = 'flat';
37
- this.icon = 'x';
38
- }
39
- /**
40
- * @hidden
41
- */
42
- onClick() {
43
- if (!this.isDisabled) {
44
- this.window.closeAction();
45
- }
46
- }
47
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", 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 });
48
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: WindowCloseActionDirective, isStandalone: true, selector: "button[kendoWindowCloseAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass" } }, providers: [
49
- LocalizationService,
50
- {
51
- provide: L10N_PREFIX,
52
- useValue: 'kendo.button'
53
- }
54
- ], exportAs: ["kendoWindowCloseAction"], usesInheritance: true, ngImport: i0, template: `
55
- @if (!imageUrl && !iconClass) {
56
- <kendo-icon-wrapper
57
- innerCssClass="k-button-icon"
58
- name="close"
59
- [svgIcon]="xIcon">
60
- </kendo-icon-wrapper>
61
- }
62
- @if (imageUrl) {
63
- <span class="k-button-icon k-icon">
64
- <img [src]="imageUrl" class="k-image" role="presentation" />
65
- </span>
66
- }
67
- @if (iconClass) {
68
- <span class="k-button-icon" [ngClass]="iconClass"></span>
69
- }
70
- <span class="k-button-text"><ng-content></ng-content></span>
71
- `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
72
- }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WindowCloseActionDirective, decorators: [{
74
- type: Component,
75
- args: [{
76
- exportAs: 'kendoWindowCloseAction',
77
- providers: [
78
- LocalizationService,
79
- {
80
- provide: L10N_PREFIX,
81
- useValue: 'kendo.button'
82
- }
83
- ],
84
- selector: 'button[kendoWindowCloseAction]',
85
- template: `
86
- @if (!imageUrl && !iconClass) {
87
- <kendo-icon-wrapper
88
- innerCssClass="k-button-icon"
89
- name="close"
90
- [svgIcon]="xIcon">
91
- </kendo-icon-wrapper>
92
- }
93
- @if (imageUrl) {
94
- <span class="k-button-icon k-icon">
95
- <img [src]="imageUrl" class="k-image" role="presentation" />
96
- </span>
97
- }
98
- @if (iconClass) {
99
- <span class="k-button-icon" [ngClass]="iconClass"></span>
100
- }
101
- <span class="k-button-text"><ng-content></ng-content></span>
102
- `,
103
- standalone: true,
104
- imports: [IconWrapperComponent, NgClass]
105
- }]
106
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
107
- type: Optional
108
- }] }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { window: [{
109
- type: Input
110
- }], buttonType: [{
111
- type: HostBinding,
112
- args: ['attr.type']
113
- }], buttonClass: [{
114
- type: HostBinding,
115
- args: ['class.k-window-titlebar-action']
116
- }], onClick: [{
117
- type: HostListener,
118
- args: ['click']
119
- }] } });
@@ -1,125 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
6
- import { NgClass } from "@angular/common";
7
- import { Button } from '@progress/kendo-angular-buttons';
8
- import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
9
- import { windowIcon } from '@progress/kendo-svg-icons';
10
- import { IconWrapperComponent } from "@progress/kendo-angular-icons";
11
- import { DragResizeService } from './../drag-resize.service';
12
- import * as i0 from "@angular/core";
13
- import * as i1 from "./../drag-resize.service";
14
- import * as i2 from "@progress/kendo-angular-l10n";
15
- /**
16
- * Represents the maximize action directive of the Window component.
17
- *
18
- * ```html
19
- * <button kendoWindowMaximizeAction>Maximize</button>
20
- * ```
21
- */
22
- export class WindowMaximizeActionDirective extends Button {
23
- /**
24
- * @hidden
25
- */
26
- window;
27
- buttonType = 'button';
28
- buttonClass = true;
29
- /**
30
- * @hidden
31
- */
32
- windowIcon = windowIcon;
33
- constructor(el, renderer, _service, localization, ngZone) {
34
- super(el, renderer, null, localization, ngZone);
35
- this.window = _service;
36
- this.fillMode = 'flat';
37
- this.icon = 'window';
38
- }
39
- /**
40
- * @hidden
41
- */
42
- onClick() {
43
- if (!this.isDisabled) {
44
- this.window.maximizeAction();
45
- }
46
- }
47
- get visible() {
48
- return this.window.options.state === 'default' ? 'inline-flex' : 'none';
49
- }
50
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", 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 });
51
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: WindowMaximizeActionDirective, isStandalone: true, 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: [
52
- LocalizationService,
53
- {
54
- provide: L10N_PREFIX,
55
- useValue: 'kendo.button'
56
- }
57
- ], exportAs: ["kendoWindowMaximizeAction"], usesInheritance: true, ngImport: i0, template: `
58
- @if (!imageUrl && !iconClass) {
59
- <kendo-icon-wrapper
60
- innerCssClass="k-button-icon"
61
- name="window"
62
- [svgIcon]="windowIcon">
63
- </kendo-icon-wrapper>
64
- }
65
- @if (imageUrl) {
66
- <span class="k-button-icon k-icon">
67
- <img [src]="imageUrl" class="k-image" role="presentation" />
68
- </span>
69
- }
70
- @if (iconClass) {
71
- <span class="k-button-icon" [ngClass]="iconClass"></span>
72
- }
73
- <span class="k-button-text"><ng-content></ng-content></span>
74
- `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
75
- }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WindowMaximizeActionDirective, decorators: [{
77
- type: Component,
78
- args: [{
79
- exportAs: 'kendoWindowMaximizeAction',
80
- providers: [
81
- LocalizationService,
82
- {
83
- provide: L10N_PREFIX,
84
- useValue: 'kendo.button'
85
- }
86
- ],
87
- selector: 'button[kendoWindowMaximizeAction]',
88
- template: `
89
- @if (!imageUrl && !iconClass) {
90
- <kendo-icon-wrapper
91
- innerCssClass="k-button-icon"
92
- name="window"
93
- [svgIcon]="windowIcon">
94
- </kendo-icon-wrapper>
95
- }
96
- @if (imageUrl) {
97
- <span class="k-button-icon k-icon">
98
- <img [src]="imageUrl" class="k-image" role="presentation" />
99
- </span>
100
- }
101
- @if (iconClass) {
102
- <span class="k-button-icon" [ngClass]="iconClass"></span>
103
- }
104
- <span class="k-button-text"><ng-content></ng-content></span>
105
- `,
106
- standalone: true,
107
- imports: [IconWrapperComponent, NgClass]
108
- }]
109
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
110
- type: Optional
111
- }] }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { window: [{
112
- type: Input
113
- }], buttonType: [{
114
- type: HostBinding,
115
- args: ['attr.type']
116
- }], buttonClass: [{
117
- type: HostBinding,
118
- args: ['class.k-window-titlebar-action']
119
- }], onClick: [{
120
- type: HostListener,
121
- args: ['click']
122
- }], visible: [{
123
- type: HostBinding,
124
- args: ['style.display']
125
- }] } });
@@ -1,125 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
6
- import { NgClass } from "@angular/common";
7
- import { Button } from '@progress/kendo-angular-buttons';
8
- import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
9
- import { windowMinimizeIcon } from "@progress/kendo-svg-icons";
10
- import { IconWrapperComponent } from "@progress/kendo-angular-icons";
11
- import { DragResizeService } from './../drag-resize.service';
12
- import * as i0 from "@angular/core";
13
- import * as i1 from "./../drag-resize.service";
14
- import * as i2 from "@progress/kendo-angular-l10n";
15
- /**
16
- * Represents the minimize action directive of the Window component.
17
- *
18
- * ```html
19
- * <button kendoWindowMinimizeAction>Minimize</button>
20
- * ```
21
- */
22
- export class WindowMinimizeActionDirective extends Button {
23
- /**
24
- * @hidden
25
- */
26
- window;
27
- buttonType = 'button';
28
- buttonClass = true;
29
- /**
30
- * @hidden
31
- */
32
- windowMinimizeIcon = windowMinimizeIcon;
33
- constructor(el, renderer, _service, localization, ngZone) {
34
- super(el, renderer, null, localization, ngZone);
35
- this.window = _service;
36
- this.fillMode = 'flat';
37
- this.icon = 'window-minimize';
38
- }
39
- /**
40
- * @hidden
41
- */
42
- onClick() {
43
- if (!this.isDisabled) {
44
- this.window.minimizeAction();
45
- }
46
- }
47
- get visible() {
48
- return this.window.options.state === 'default' ? 'inline-flex' : 'none';
49
- }
50
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", 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 });
51
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: WindowMinimizeActionDirective, isStandalone: true, 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: [
52
- LocalizationService,
53
- {
54
- provide: L10N_PREFIX,
55
- useValue: 'kendo.button'
56
- }
57
- ], exportAs: ["kendoWindowMinimizeAction"], usesInheritance: true, ngImport: i0, template: `
58
- @if (!imageUrl && !iconClass) {
59
- <kendo-icon-wrapper
60
- innerCssClass="k-button-icon"
61
- name="window-minimize"
62
- [svgIcon]="windowMinimizeIcon">
63
- </kendo-icon-wrapper>
64
- }
65
- @if (imageUrl) {
66
- <span class="k-button-icon k-icon">
67
- <img [src]="imageUrl" class="k-image" role="presentation" />
68
- </span>
69
- }
70
- @if (iconClass) {
71
- <span class="k-button-icon" [ngClass]="iconClass"></span>
72
- }
73
- <span class="k-button-text"><ng-content></ng-content></span>
74
- `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
75
- }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WindowMinimizeActionDirective, decorators: [{
77
- type: Component,
78
- args: [{
79
- exportAs: 'kendoWindowMinimizeAction',
80
- providers: [
81
- LocalizationService,
82
- {
83
- provide: L10N_PREFIX,
84
- useValue: 'kendo.button'
85
- }
86
- ],
87
- selector: 'button[kendoWindowMinimizeAction]',
88
- template: `
89
- @if (!imageUrl && !iconClass) {
90
- <kendo-icon-wrapper
91
- innerCssClass="k-button-icon"
92
- name="window-minimize"
93
- [svgIcon]="windowMinimizeIcon">
94
- </kendo-icon-wrapper>
95
- }
96
- @if (imageUrl) {
97
- <span class="k-button-icon k-icon">
98
- <img [src]="imageUrl" class="k-image" role="presentation" />
99
- </span>
100
- }
101
- @if (iconClass) {
102
- <span class="k-button-icon" [ngClass]="iconClass"></span>
103
- }
104
- <span class="k-button-text"><ng-content></ng-content></span>
105
- `,
106
- standalone: true,
107
- imports: [IconWrapperComponent, NgClass]
108
- }]
109
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
110
- type: Optional
111
- }] }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { window: [{
112
- type: Input
113
- }], buttonType: [{
114
- type: HostBinding,
115
- args: ['attr.type']
116
- }], buttonClass: [{
117
- type: HostBinding,
118
- args: ['class.k-window-titlebar-action']
119
- }], onClick: [{
120
- type: HostListener,
121
- args: ['click']
122
- }], visible: [{
123
- type: HostBinding,
124
- args: ['style.display']
125
- }] } });