@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.
- package/dialog/dialog-content-base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-dialog.mjs +84 -84
- package/localization/messages.d.ts +1 -1
- package/package.json +11 -19
- package/schematics/ngAdd/index.js +1 -1
- package/esm2022/common/actions-layout.mjs +0 -5
- package/esm2022/common/animation-types.mjs +0 -5
- package/esm2022/common/dialog-animation-direction.mjs +0 -5
- package/esm2022/common/preventable-event.mjs +0 -30
- package/esm2022/common/util.mjs +0 -167
- package/esm2022/dialog/dialog-actions.component.mjs +0 -182
- package/esm2022/dialog/dialog-animations/animate-content.mjs +0 -19
- package/esm2022/dialog/dialog-animations/animations.mjs +0 -69
- package/esm2022/dialog/dialog-animations/create-animation-player.mjs +0 -18
- package/esm2022/dialog/dialog-container.directive.mjs +0 -31
- package/esm2022/dialog/dialog-container.service.mjs +0 -26
- package/esm2022/dialog/dialog-content-base.mjs +0 -57
- package/esm2022/dialog/dialog-titlebar.component.mjs +0 -170
- package/esm2022/dialog/dialog.component.mjs +0 -650
- package/esm2022/dialog/dialog.service.mjs +0 -210
- package/esm2022/dialog/models/dialog-action-divider.mjs +0 -5
- package/esm2022/dialog/models/dialog-action.mjs +0 -40
- package/esm2022/dialog/models/dialog-animation.mjs +0 -5
- package/esm2022/dialog/models/dialog-close-result.mjs +0 -12
- package/esm2022/dialog/models/dialog-ref.mjs +0 -39
- package/esm2022/dialog/models/dialog-result.mjs +0 -5
- package/esm2022/dialog/models/dialog-settings.mjs +0 -95
- package/esm2022/dialog/models/index.mjs +0 -12
- package/esm2022/dialog/models/theme-color.mjs +0 -5
- package/esm2022/dialog.module.mjs +0 -49
- package/esm2022/dialogs.module.mjs +0 -59
- package/esm2022/directives.mjs +0 -95
- package/esm2022/index.mjs +0 -33
- package/esm2022/localization/custom-messages.component.mjs +0 -65
- package/esm2022/localization/dialog-localization.service.mjs +0 -9
- package/esm2022/localization/localized-messages.directive.mjs +0 -43
- package/esm2022/localization/messages.mjs +0 -45
- package/esm2022/localization/titlebar-localization.service.mjs +0 -45
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/progress-kendo-angular-dialog.mjs +0 -8
- package/esm2022/window/actions/window-close-action.directive.mjs +0 -119
- package/esm2022/window/actions/window-maximize-action.directive.mjs +0 -125
- package/esm2022/window/actions/window-minimize-action.directive.mjs +0 -125
- package/esm2022/window/actions/window-restore-action.directive.mjs +0 -125
- package/esm2022/window/drag-resize.service.mjs +0 -335
- package/esm2022/window/models/index.mjs +0 -11
- package/esm2022/window/models/theme-color.mjs +0 -5
- package/esm2022/window/models/window-close-result.mjs +0 -10
- package/esm2022/window/models/window-messages.mjs +0 -5
- package/esm2022/window/models/window-options.mjs +0 -5
- package/esm2022/window/models/window-ref.mjs +0 -25
- package/esm2022/window/models/window-settings.mjs +0 -92
- package/esm2022/window/models/window-types.mjs +0 -5
- package/esm2022/window/navigation.service.mjs +0 -160
- package/esm2022/window/window-container.directive.mjs +0 -31
- package/esm2022/window/window-container.service.mjs +0 -26
- package/esm2022/window/window-events.mjs +0 -5
- package/esm2022/window/window-resize-handle.directive.mjs +0 -74
- package/esm2022/window/window-titlebar.component.mjs +0 -173
- package/esm2022/window/window.component.mjs +0 -831
- package/esm2022/window/window.service.mjs +0 -206
- package/esm2022/window.module.mjs +0 -53
|
@@ -1,170 +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, EventEmitter, HostBinding, Output, Input, ElementRef, Optional, NgZone } from '@angular/core';
|
|
6
|
-
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { take } from 'rxjs/operators';
|
|
8
|
-
import { PreventableEvent } from '../common/preventable-event';
|
|
9
|
-
import { TitleBarLocalizationService } from '../localization/titlebar-localization.service';
|
|
10
|
-
import { xIcon } from '@progress/kendo-svg-icons';
|
|
11
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
12
|
-
import { LocalizedMessagesDirective } from '../localization/localized-messages.directive';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
|
15
|
-
/**
|
|
16
|
-
* Represents the [Kendo UI DialogTitleBar component for Angular]({% slug api_dialog_dialogtitlebarcomponent %}).
|
|
17
|
-
*
|
|
18
|
-
* Use this component as part of the Dialog content when you create the Dialog dynamically with an [Angular service]({% slug service_dialog %}).
|
|
19
|
-
*
|
|
20
|
-
* ```html
|
|
21
|
-
* <kendo-dialog>
|
|
22
|
-
* <kendo-dialog-titlebar [id]="dialogId" (close)="onClose()">
|
|
23
|
-
* Dialog Title
|
|
24
|
-
* </kendo-dialog-titlebar>
|
|
25
|
-
* </kendo-dialog>
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
export class DialogTitleBarComponent {
|
|
30
|
-
zone;
|
|
31
|
-
hostElement;
|
|
32
|
-
localizationService;
|
|
33
|
-
/**
|
|
34
|
-
* Fires when the close button in the title bar is clicked.
|
|
35
|
-
*/
|
|
36
|
-
close = new EventEmitter();
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
id;
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
closeTitle;
|
|
45
|
-
get className() {
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
xIcon = xIcon;
|
|
52
|
-
constructor(zone, hostElement, localizationService) {
|
|
53
|
-
this.zone = zone;
|
|
54
|
-
this.hostElement = hostElement;
|
|
55
|
-
this.localizationService = localizationService;
|
|
56
|
-
}
|
|
57
|
-
get closeButtonTitle() {
|
|
58
|
-
return this.closeTitle || this.localizationService.get('closeTitle');
|
|
59
|
-
}
|
|
60
|
-
ngAfterViewInit() {
|
|
61
|
-
this.zone.onStable.pipe(take(1)).subscribe(() => {
|
|
62
|
-
const element = this.hostElement.nativeElement.querySelector('.k-dialog-title');
|
|
63
|
-
element.setAttribute('id', this.id);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @hidden
|
|
68
|
-
*/
|
|
69
|
-
onCloseClick(e) {
|
|
70
|
-
e.preventDefault();
|
|
71
|
-
const eventArgs = new PreventableEvent();
|
|
72
|
-
this.close.emit(eventArgs);
|
|
73
|
-
}
|
|
74
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DialogTitleBarComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i1.LocalizationService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
75
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: DialogTitleBarComponent, isStandalone: true, selector: "kendo-dialog-titlebar", inputs: { id: "id", closeTitle: "closeTitle" }, outputs: { close: "close" }, host: { properties: { "class.k-window-titlebar": "this.className", "class.k-dialog-titlebar": "this.className" } }, providers: [
|
|
76
|
-
TitleBarLocalizationService,
|
|
77
|
-
{
|
|
78
|
-
provide: LocalizationService,
|
|
79
|
-
useExisting: TitleBarLocalizationService
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
provide: L10N_PREFIX,
|
|
83
|
-
useValue: 'kendo.dialog'
|
|
84
|
-
}
|
|
85
|
-
], ngImport: i0, template: `
|
|
86
|
-
<ng-container
|
|
87
|
-
kendoDialogTitleBarLocalizedMessages
|
|
88
|
-
i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
|
|
89
|
-
closeTitle="Close"
|
|
90
|
-
>
|
|
91
|
-
<span class="k-window-title k-dialog-title">
|
|
92
|
-
<ng-content></ng-content>
|
|
93
|
-
</span>
|
|
94
|
-
|
|
95
|
-
<div class="k-window-titlebar-actions k-dialog-titlebar-actions">
|
|
96
|
-
<button
|
|
97
|
-
kendoButton
|
|
98
|
-
fillMode="flat"
|
|
99
|
-
type="button"
|
|
100
|
-
[attr.title]="closeButtonTitle"
|
|
101
|
-
[attr.aria-label]="closeButtonTitle"
|
|
102
|
-
icon="close"
|
|
103
|
-
[svgIcon]="xIcon"
|
|
104
|
-
class="k-window-titlebar-action k-dialog-titlebar-action"
|
|
105
|
-
(click)="onCloseClick($event)"
|
|
106
|
-
>
|
|
107
|
-
</button>
|
|
108
|
-
</div>
|
|
109
|
-
</ng-container>
|
|
110
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
111
|
-
}
|
|
112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DialogTitleBarComponent, decorators: [{
|
|
113
|
-
type: Component,
|
|
114
|
-
args: [{
|
|
115
|
-
selector: 'kendo-dialog-titlebar',
|
|
116
|
-
providers: [
|
|
117
|
-
TitleBarLocalizationService,
|
|
118
|
-
{
|
|
119
|
-
provide: LocalizationService,
|
|
120
|
-
useExisting: TitleBarLocalizationService
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
provide: L10N_PREFIX,
|
|
124
|
-
useValue: 'kendo.dialog'
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
template: `
|
|
128
|
-
<ng-container
|
|
129
|
-
kendoDialogTitleBarLocalizedMessages
|
|
130
|
-
i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
|
|
131
|
-
closeTitle="Close"
|
|
132
|
-
>
|
|
133
|
-
<span class="k-window-title k-dialog-title">
|
|
134
|
-
<ng-content></ng-content>
|
|
135
|
-
</span>
|
|
136
|
-
|
|
137
|
-
<div class="k-window-titlebar-actions k-dialog-titlebar-actions">
|
|
138
|
-
<button
|
|
139
|
-
kendoButton
|
|
140
|
-
fillMode="flat"
|
|
141
|
-
type="button"
|
|
142
|
-
[attr.title]="closeButtonTitle"
|
|
143
|
-
[attr.aria-label]="closeButtonTitle"
|
|
144
|
-
icon="close"
|
|
145
|
-
[svgIcon]="xIcon"
|
|
146
|
-
class="k-window-titlebar-action k-dialog-titlebar-action"
|
|
147
|
-
(click)="onCloseClick($event)"
|
|
148
|
-
>
|
|
149
|
-
</button>
|
|
150
|
-
</div>
|
|
151
|
-
</ng-container>
|
|
152
|
-
`,
|
|
153
|
-
standalone: true,
|
|
154
|
-
imports: [LocalizedMessagesDirective, ButtonComponent]
|
|
155
|
-
}]
|
|
156
|
-
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i1.LocalizationService, decorators: [{
|
|
157
|
-
type: Optional
|
|
158
|
-
}] }], propDecorators: { close: [{
|
|
159
|
-
type: Output
|
|
160
|
-
}], id: [{
|
|
161
|
-
type: Input
|
|
162
|
-
}], closeTitle: [{
|
|
163
|
-
type: Input
|
|
164
|
-
}], className: [{
|
|
165
|
-
type: HostBinding,
|
|
166
|
-
args: ['class.k-window-titlebar']
|
|
167
|
-
}, {
|
|
168
|
-
type: HostBinding,
|
|
169
|
-
args: ['class.k-dialog-titlebar']
|
|
170
|
-
}] } });
|