@progress/kendo-angular-dialog 17.0.0-develop.8 → 17.0.0
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/README.md +38 -21
- package/common/actions-layout.d.ts +1 -1
- package/common/animation-types.d.ts +1 -1
- package/common/dialog-animation-direction.d.ts +1 -1
- package/dialog/dialog-actions.component.d.ts +1 -1
- package/dialog/dialog-titlebar.component.d.ts +1 -1
- package/dialog/dialog.component.d.ts +1 -1
- package/dialog/models/dialog-action-divider.d.ts +1 -1
- package/dialog/models/dialog-result.d.ts +1 -1
- package/dialog/models/theme-color.d.ts +1 -1
- package/dialog.module.d.ts +0 -4
- package/{esm2020 → esm2022}/common/preventable-event.mjs +2 -3
- package/{esm2020 → esm2022}/dialog/dialog-actions.component.mjs +26 -17
- package/{esm2020 → esm2022}/dialog/dialog-container.directive.mjs +3 -3
- package/{esm2020 → esm2022}/dialog/dialog-container.service.mjs +4 -4
- package/{esm2020 → esm2022}/dialog/dialog-content-base.mjs +12 -3
- package/{esm2020 → esm2022}/dialog/dialog-titlebar.component.mjs +36 -25
- package/{esm2020 → esm2022}/dialog/dialog.component.mjs +139 -71
- package/{esm2020 → esm2022}/dialog/dialog.service.mjs +7 -3
- package/esm2022/dialog/models/dialog-action.mjs +27 -0
- package/esm2022/dialog/models/dialog-ref.mjs +34 -0
- package/esm2022/dialog/models/dialog-settings.mjs +106 -0
- package/{esm2020 → esm2022}/dialog.module.mjs +4 -13
- package/{esm2020 → esm2022}/dialogs.module.mjs +4 -4
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/localization/messages.mjs +19 -3
- package/{esm2020 → esm2022}/localization/titlebar-localization.service.mjs +4 -3
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/window/actions/window-close-action.directive.mjs +20 -16
- package/{esm2020 → esm2022}/window/actions/window-maximize-action.directive.mjs +20 -16
- package/{esm2020 → esm2022}/window/actions/window-minimize-action.directive.mjs +20 -16
- package/{esm2020 → esm2022}/window/actions/window-restore-action.directive.mjs +20 -16
- package/{esm2020 → esm2022}/window/drag-resize.service.mjs +18 -15
- package/esm2022/window/models/window-ref.mjs +36 -0
- package/esm2022/window/models/window-settings.mjs +101 -0
- package/{esm2020 → esm2022}/window/navigation.service.mjs +5 -3
- package/{esm2020 → esm2022}/window/window-container.directive.mjs +3 -3
- package/{esm2020 → esm2022}/window/window-container.service.mjs +4 -4
- package/{esm2020 → esm2022}/window/window-resize-handle.directive.mjs +12 -7
- package/{esm2020 → esm2022}/window/window-titlebar.component.mjs +21 -4
- package/{esm2020 → esm2022}/window/window.component.mjs +128 -98
- package/{esm2020 → esm2022}/window/window.service.mjs +7 -3
- package/{esm2020 → esm2022}/window.module.mjs +4 -10
- package/{fesm2020 → fesm2022}/progress-kendo-angular-dialog.mjs +816 -379
- package/localization/messages.d.ts +1 -1
- package/package.json +14 -20
- package/schematics/ngAdd/index.js +2 -2
- package/window/actions/window-close-action.directive.d.ts +1 -1
- package/window/actions/window-maximize-action.directive.d.ts +1 -1
- package/window/actions/window-minimize-action.directive.d.ts +1 -1
- package/window/actions/window-restore-action.directive.d.ts +1 -1
- package/window/models/theme-color.d.ts +1 -1
- package/window/models/window-types.d.ts +4 -4
- 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 +1 -1
- package/esm2020/dialog/models/dialog-action.mjs +0 -10
- package/esm2020/dialog/models/dialog-ref.mjs +0 -11
- package/esm2020/dialog/models/dialog-settings.mjs +0 -10
- package/esm2020/window/models/window-ref.mjs +0 -11
- package/esm2020/window/models/window-settings.mjs +0 -10
- package/fesm2015/progress-kendo-angular-dialog.mjs +0 -3807
- /package/{esm2020 → esm2022}/common/actions-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animation-types.mjs +0 -0
- /package/{esm2020 → esm2022}/common/dialog-animation-direction.mjs +0 -0
- /package/{esm2020 → esm2022}/common/util.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/dialog-animations/animate-content.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/dialog-animations/animations.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/dialog-animations/create-animation-player.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/models/dialog-action-divider.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/models/dialog-animation.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/models/dialog-close-result.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/models/dialog-result.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/models/theme-color.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/localization/dialog-localization.service.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-dialog.mjs +0 -0
- /package/{esm2020 → esm2022}/window/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/window/models/theme-color.mjs +0 -0
- /package/{esm2020 → esm2022}/window/models/window-close-result.mjs +0 -0
- /package/{esm2020 → esm2022}/window/models/window-messages.mjs +0 -0
- /package/{esm2020 → esm2022}/window/models/window-options.mjs +0 -0
- /package/{esm2020 → esm2022}/window/models/window-types.mjs +0 -0
- /package/{esm2020 → esm2022}/window/window-events.mjs +0 -0
package/README.md
CHANGED
|
@@ -1,34 +1,51 @@
|
|
|
1
|
-
<a href="https://www.telerik.com/kendo-angular-ui/" target="_blank">
|
|
1
|
+
<a href="https://www.telerik.com/kendo-angular-ui/components/dialogs" target="_blank">
|
|
2
2
|
<img width="631" src="https://www.telerik.com/kendo-angular-ui/npm-banner.svg">
|
|
3
3
|
</a>
|
|
4
4
|
|
|
5
|
-
## Kendo UI for Angular Dialogs
|
|
5
|
+
## Kendo UI for Angular Dialogs Package
|
|
6
6
|
|
|
7
|
-
>
|
|
8
|
-
> *
|
|
9
|
-
> *
|
|
10
|
-
> * To receive a license key, you need to either [purchase a license](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-dialogs) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-dialogs). Doing so indicates that you [accept the Kendo UI for Angular License Agreement](https://www.telerik.com/purchase/license-agreement/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-dialogs).
|
|
11
|
-
> * The 30-day free trial gives you access to all the Kendo UI for Angular components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI for Angular dev team!
|
|
12
|
-
>
|
|
13
|
-
> [Start using Kendo UI for Angular](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-dialogs) and speed up your development process!
|
|
7
|
+
> * This package is part of the [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/)—a commercial UI library.
|
|
8
|
+
> * You must [install a license key](https://www.telerik.com/kendo-angular-ui/my-license) when adding the package to your project. To receive a license key, either [purchase a license](https://www.telerik.com/purchase/kendo-ui) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-angular-ui).
|
|
9
|
+
> * The 30-day free trial gives you access to all the Kendo UI for Angular components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI for Angular team!
|
|
14
10
|
|
|
15
|
-
The Kendo UI for Angular
|
|
11
|
+
The Kendo UI for Angular Dialogs components communicate specific information to the users, and prompt them to take actions.
|
|
16
12
|
|
|
17
|
-
|
|
13
|
+
## What's Included in the Angular Dialogs Package
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
The [Angular Dialogs](https://www.telerik.com/kendo-angular-ui/components/dialogs) package includes two built-in components:
|
|
20
16
|
|
|
21
|
-
* [
|
|
22
|
-
* [
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
* [Angular Dialog Component](https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog)
|
|
18
|
+
* [Angular Window Component](https://www.telerik.com/kendo-angular-ui/components/dialogs/window)
|
|
19
|
+
|
|
20
|
+
## Key Features
|
|
21
|
+
|
|
22
|
+
Among the many features which the Kendo UI for Angular Dialogs deliver are:
|
|
23
|
+
|
|
24
|
+
* Action Buttons—The Dialogs support different approaches for rendering action buttons and also for customizing their content and appearance. [Read more about the action buttons of the Dialog...](https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/action-buttons)
|
|
25
|
+
* Initial Focus—You can use the options provided by the Dialogs components to define which element will be focused upon their initial loading. [Read more about the initial element focus of the Dialog...](https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/initial-focus)
|
|
26
|
+
* State Management—The Kendo UI for Angular Dialogs support various rendering states. The Dialog always displays an overlay element preventing the interaction with other elements on the page, while the Window supports maximized and minimized state. [Read more about the maximized and minizimed state of the Window...](https://www.telerik.com/kendo-angular-ui/components/dialogs/window/minimizing-maximizing)
|
|
27
|
+
* Sizing—All Kendo UI for Angular Dialogs allow you to customize their dimensions. By default, the components automatically calculate their height so they can fit the displayed content. Read more about the dimensions of the [Dialog](https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/dimensions) and [Window](https://www.telerik.com/kendo-angular-ui/components/dialogs/window/dimensions-resizing).
|
|
28
|
+
* Angular Service Support—All Kendo UI for Angular Dialogs enable you to create their instances dynamically avoiding, in this way, the necessity for defining the components in templates. [Read more about the service implementation in the Dialog...](https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service)
|
|
29
|
+
* Appearance—You can use the options provided by the Dialogs components to customize their appearance. Read more about the customizable appearance of the [Dialog](https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/appearance) and [Window...](https://www.telerik.com/kendo-angular-ui/components/dialogs/window/appearance).
|
|
30
|
+
* Globalization—The Kendo UI for Angular Dialogs support globalization to ensure that each Dialogs component can fit well in any application, no matter what languages and locales need to be supported. Additionally, the Dialogs support rendering in a right-to-left (RTL) direction. [Read more about Dialogs globalization...](https://www.telerik.com/kendo-angular-ui/components/dialogs/globalization)
|
|
31
|
+
* Accessibility—The Dialogs are accessible for screen readers and support WAI-ARIA attributes. [Read more about accessibility support of the Dialog...](https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/accessibility)
|
|
32
|
+
* Keyboard Navigation—The Dialogs support a number of keyboard shortcuts which alow users to accomplish various commands. [Read more about the keyboard navigation of the Dialog...](https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/keyboard-navigation)
|
|
25
33
|
|
|
26
|
-
##
|
|
34
|
+
## Support Options
|
|
27
35
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
* [
|
|
31
|
-
* [
|
|
36
|
+
For any issues you might encounter while working with the Kendo UI for Angular Dialogs, you have the following support channels available:
|
|
37
|
+
|
|
38
|
+
* Industry-leading technical support—Kendo UI for Angular paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use the [dedicated Kendo UI for Angular support system](https://www.telerik.com/account/support-center/contact-us/technical-support).
|
|
39
|
+
* Product forums—The [Kendo UI for Angular forums](https://www.telerik.com/forums/kendo-angular-ui) are part of the free support you can get from the community and from the Kendo UI for Angular team.
|
|
40
|
+
* Feedback portal—The [Kendo UI for Angular feedback portal](https://feedback.telerik.com/kendo-angular-ui) is where you can request and vote for new features to be added.
|
|
41
|
+
|
|
42
|
+
## Resources
|
|
43
|
+
|
|
44
|
+
* [Getting Started with Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/getting-started)
|
|
45
|
+
* [Getting Started with the Kendo UI for Angular Dialogs](https://www.telerik.com/kendo-angular-ui/components/dialogs/installation/getting-started)
|
|
46
|
+
* [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components)
|
|
47
|
+
* [Blogs](http://www.telerik.com/blogs/kendo-ui)
|
|
48
|
+
* [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui)
|
|
32
49
|
|
|
33
50
|
*Copyright © 2024 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
|
|
34
51
|
|
|
@@ -53,5 +53,5 @@ export declare class DialogActionsComponent {
|
|
|
53
53
|
*/
|
|
54
54
|
isDivider(action: DialogAction | DialogActionDivider): boolean;
|
|
55
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogActionsComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogActionsComponent, "kendo-dialog-actions", never, { "actions": "actions"; "layout": "layout"; }, { "action": "action"; }, never, ["*"], true, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogActionsComponent, "kendo-dialog-actions", never, { "actions": { "alias": "actions"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; }, { "action": "action"; }, never, ["*"], true, never>;
|
|
57
57
|
}
|
|
@@ -41,5 +41,5 @@ export declare class DialogTitleBarComponent implements AfterViewInit {
|
|
|
41
41
|
*/
|
|
42
42
|
onCloseClick(e: Event): void;
|
|
43
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogTitleBarComponent, [null, null, { optional: true; }]>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogTitleBarComponent, "kendo-dialog-titlebar", never, { "id": "id"; "closeTitle": "closeTitle"; }, { "close": "close"; }, never, ["*"], true, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogTitleBarComponent, "kendo-dialog-titlebar", never, { "id": { "alias": "id"; "required": false; }; "closeTitle": { "alias": "closeTitle"; "required": false; }; }, { "close": "close"; }, never, ["*"], true, never>;
|
|
45
45
|
}
|
|
@@ -202,5 +202,5 @@ export declare class DialogComponent implements AfterContentInit, AfterViewInit,
|
|
|
202
202
|
private bubble;
|
|
203
203
|
private handleThemeColorClass;
|
|
204
204
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
205
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "kendo-dialog", ["kendoDialog"], { "actions": "actions"; "actionsLayout": "actionsLayout"; "autoFocusedElement": "autoFocusedElement"; "title": "title"; "width": "width"; "minWidth": "minWidth"; "maxWidth": "maxWidth"; "height": "height"; "minHeight": "minHeight"; "maxHeight": "maxHeight"; "animation": "animation"; "themeColor": "themeColor"; }, { "action": "action"; "close": "close"; }, ["titlebarContent"], ["kendo-dialog-titlebar", "*", "kendo-dialog-actions"], true, never>;
|
|
205
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "kendo-dialog", ["kendoDialog"], { "actions": { "alias": "actions"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; "autoFocusedElement": { "alias": "autoFocusedElement"; "required": false; }; "title": { "alias": "title"; "required": false; }; "width": { "alias": "width"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "height": { "alias": "height"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; }, { "action": "action"; "close": "close"; }, ["titlebarContent"], ["kendo-dialog-titlebar", "*", "kendo-dialog-actions"], true, never>;
|
|
206
206
|
}
|
|
@@ -11,4 +11,4 @@ import { DialogCloseResult } from "./dialog-close-result";
|
|
|
11
11
|
* ([see example]({% slug api_dialog_dialogservice %}#toc-open).
|
|
12
12
|
* Otherwise, the value is the configuration of the action button that was clicked.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type DialogResult = DialogCloseResult | DialogAction;
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
* * `light`— Applies coloring based on the `light` theme color.
|
|
11
11
|
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type DialogThemeColor = 'primary' | 'light' | 'dark';
|
package/dialog.module.d.ts
CHANGED
|
@@ -8,10 +8,6 @@ import * as i2 from "./dialog/dialog-titlebar.component";
|
|
|
8
8
|
import * as i3 from "./dialog/dialog-container.directive";
|
|
9
9
|
import * as i4 from "./dialog/dialog-actions.component";
|
|
10
10
|
import * as i5 from "./localization/custom-messages.component";
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export declare const DIALOG_DIRECTIVES: any[];
|
|
15
11
|
/**
|
|
16
12
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
17
13
|
* definition for the Dialog component that includes all Dialog components and directives.
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
export class PreventableEvent {
|
|
6
|
+
prevented = false;
|
|
6
7
|
/**
|
|
7
8
|
* @hidden
|
|
8
9
|
*/
|
|
9
|
-
constructor() {
|
|
10
|
-
this.prevented = false;
|
|
11
|
-
}
|
|
10
|
+
constructor() { }
|
|
12
11
|
/**
|
|
13
12
|
* Prevents the default action for a specified event.
|
|
14
13
|
* In this way, the source component suppresses the built-in behavior that follows the event.
|
|
@@ -11,19 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* ([see example]({% slug actionbuttons_dialog %})).
|
|
12
12
|
*/
|
|
13
13
|
export class DialogActionsComponent {
|
|
14
|
-
|
|
15
|
-
this.el = el;
|
|
16
|
-
/**
|
|
17
|
-
* Specifies the possible layout of the action buttons.
|
|
18
|
-
* @default 'stretched'
|
|
19
|
-
*/
|
|
20
|
-
this.layout = 'stretched';
|
|
21
|
-
/**
|
|
22
|
-
* Fires when the user clicks an action button.
|
|
23
|
-
*/
|
|
24
|
-
this.action = new EventEmitter();
|
|
25
|
-
this.hostClasses = true;
|
|
26
|
-
}
|
|
14
|
+
el;
|
|
27
15
|
/**
|
|
28
16
|
* Allows the declarative specification of the actions.
|
|
29
17
|
*/
|
|
@@ -38,6 +26,24 @@ export class DialogActionsComponent {
|
|
|
38
26
|
throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');
|
|
39
27
|
}
|
|
40
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
actionsArray;
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
actionsTemplate;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the possible layout of the action buttons.
|
|
39
|
+
* @default 'stretched'
|
|
40
|
+
*/
|
|
41
|
+
layout = 'stretched';
|
|
42
|
+
/**
|
|
43
|
+
* Fires when the user clicks an action button.
|
|
44
|
+
*/
|
|
45
|
+
action = new EventEmitter();
|
|
46
|
+
hostClasses = true;
|
|
41
47
|
get startClassName() {
|
|
42
48
|
return this.layout === 'start';
|
|
43
49
|
}
|
|
@@ -50,6 +56,9 @@ export class DialogActionsComponent {
|
|
|
50
56
|
get stretchedClassName() {
|
|
51
57
|
return this.layout === 'stretched';
|
|
52
58
|
}
|
|
59
|
+
constructor(el) {
|
|
60
|
+
this.el = el;
|
|
61
|
+
}
|
|
53
62
|
/**
|
|
54
63
|
* @hidden
|
|
55
64
|
*/
|
|
@@ -76,9 +85,8 @@ export class DialogActionsComponent {
|
|
|
76
85
|
isDivider(action) {
|
|
77
86
|
return action === 'spacer';
|
|
78
87
|
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
DialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DialogActionsComponent, isStandalone: true, selector: "kendo-dialog-actions", inputs: { actions: "actions", layout: "layout" }, outputs: { action: "action" }, host: { properties: { "class.k-actions": "this.hostClasses", "class.k-actions-horizontal": "this.hostClasses", "class.k-window-actions": "this.hostClasses", "class.k-dialog-actions": "this.hostClasses", "class.k-actions-start": "this.startClassName", "class.k-actions-center": "this.centerClassName", "class.k-actions-end": "this.endClassName", "class.k-actions-stretched": "this.stretchedClassName" } }, ngImport: i0, template: `
|
|
88
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogActionsComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
89
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DialogActionsComponent, isStandalone: true, selector: "kendo-dialog-actions", inputs: { actions: "actions", layout: "layout" }, outputs: { action: "action" }, host: { properties: { "class.k-actions": "this.hostClasses", "class.k-actions-horizontal": "this.hostClasses", "class.k-window-actions": "this.hostClasses", "class.k-dialog-actions": "this.hostClasses", "class.k-actions-start": "this.startClassName", "class.k-actions-center": "this.centerClassName", "class.k-actions-end": "this.endClassName", "class.k-actions-stretched": "this.stretchedClassName" } }, ngImport: i0, template: `
|
|
82
90
|
<ng-content *ngIf="!actions"></ng-content>
|
|
83
91
|
<ng-container *ngIf="actionsArray; else actionTemplate">
|
|
84
92
|
<ng-container *ngFor="let action of actionsArray">
|
|
@@ -99,7 +107,8 @@ DialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
99
107
|
</ng-container>
|
|
100
108
|
<ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
|
|
101
109
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
102
|
-
|
|
110
|
+
}
|
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogActionsComponent, decorators: [{
|
|
103
112
|
type: Component,
|
|
104
113
|
args: [{
|
|
105
114
|
selector: 'kendo-dialog-actions',
|
|
@@ -20,10 +20,10 @@ export class DialogContainerDirective {
|
|
|
20
20
|
constructor(container, service) {
|
|
21
21
|
service.container = container;
|
|
22
22
|
}
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContainerDirective, deps: [{ token: i0.ViewContainerRef }, { token: i1.DialogContainerService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DialogContainerDirective, isStandalone: true, selector: "[kendoDialogContainer]", ngImport: i0 });
|
|
23
25
|
}
|
|
24
|
-
|
|
25
|
-
DialogContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DialogContainerDirective, isStandalone: true, selector: "[kendoDialogContainer]", ngImport: i0 });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogContainerDirective, decorators: [{
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContainerDirective, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{
|
|
29
29
|
selector: '[kendoDialogContainer]',
|
|
@@ -8,17 +8,17 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
export class DialogContainerService {
|
|
11
|
+
static container = null;
|
|
11
12
|
set container(container) {
|
|
12
13
|
DialogContainerService.container = container;
|
|
13
14
|
}
|
|
14
15
|
get container() {
|
|
15
16
|
return DialogContainerService.container;
|
|
16
17
|
}
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContainerService, providedIn: 'root' });
|
|
17
20
|
}
|
|
18
|
-
|
|
19
|
-
DialogContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20
|
-
DialogContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogContainerService, providedIn: 'root' });
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogContainerService, decorators: [{
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContainerService, decorators: [{
|
|
22
22
|
type: Injectable,
|
|
23
23
|
args: [{
|
|
24
24
|
providedIn: 'root'
|
|
@@ -14,6 +14,15 @@ import * as i1 from "./models/dialog-ref";
|
|
|
14
14
|
* ([see example](slug:service_dialog#toc-single-component-rendering)).
|
|
15
15
|
*/
|
|
16
16
|
export class DialogContentBase {
|
|
17
|
+
dialog;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
dialogTitleBar;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
dialogActions;
|
|
17
26
|
constructor(dialog) {
|
|
18
27
|
this.dialog = dialog;
|
|
19
28
|
}
|
|
@@ -33,10 +42,10 @@ export class DialogContentBase {
|
|
|
33
42
|
}
|
|
34
43
|
}
|
|
35
44
|
}
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContentBase, deps: [{ token: i1.DialogRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
46
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DialogContentBase, viewQueries: [{ propertyName: "dialogTitleBar", first: true, predicate: DialogTitleBarComponent, descendants: true }, { propertyName: "dialogActions", first: true, predicate: DialogActionsComponent, descendants: true }], ngImport: i0 });
|
|
36
47
|
}
|
|
37
|
-
|
|
38
|
-
DialogContentBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DialogContentBase, viewQueries: [{ propertyName: "dialogTitleBar", first: true, predicate: DialogTitleBarComponent, descendants: true }, { propertyName: "dialogActions", first: true, predicate: DialogActionsComponent, descendants: true }], ngImport: i0 });
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogContentBase, decorators: [{
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContentBase, decorators: [{
|
|
40
49
|
type: Directive
|
|
41
50
|
}], ctorParameters: function () { return [{ type: i1.DialogRef }]; }, propDecorators: { dialogTitleBar: [{
|
|
42
51
|
type: ViewChild,
|
|
@@ -18,21 +18,32 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
18
18
|
* It is used as part of the Dialog content when the component is created dynamically by using an [Angular service]({% slug service_dialog %}).
|
|
19
19
|
*/
|
|
20
20
|
export class DialogTitleBarComponent {
|
|
21
|
+
zone;
|
|
22
|
+
hostElement;
|
|
23
|
+
localizationService;
|
|
24
|
+
/**
|
|
25
|
+
* Fires when the close button of the title-bar is clicked.
|
|
26
|
+
*/
|
|
27
|
+
close = new EventEmitter();
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
id;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
closeTitle;
|
|
36
|
+
get className() {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
xIcon = xIcon;
|
|
21
43
|
constructor(zone, hostElement, localizationService) {
|
|
22
44
|
this.zone = zone;
|
|
23
45
|
this.hostElement = hostElement;
|
|
24
46
|
this.localizationService = localizationService;
|
|
25
|
-
/**
|
|
26
|
-
* Fires when the close button of the title-bar is clicked.
|
|
27
|
-
*/
|
|
28
|
-
this.close = new EventEmitter();
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
this.xIcon = xIcon;
|
|
33
|
-
}
|
|
34
|
-
get className() {
|
|
35
|
-
return true;
|
|
36
47
|
}
|
|
37
48
|
get closeButtonTitle() {
|
|
38
49
|
return this.closeTitle || this.localizationService.get('closeTitle');
|
|
@@ -51,19 +62,18 @@ export class DialogTitleBarComponent {
|
|
|
51
62
|
const eventArgs = new PreventableEvent();
|
|
52
63
|
this.close.emit(eventArgs);
|
|
53
64
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
], ngImport: i0, template: `
|
|
65
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogTitleBarComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i1.LocalizationService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: [
|
|
67
|
+
TitleBarLocalizationService,
|
|
68
|
+
{
|
|
69
|
+
provide: LocalizationService,
|
|
70
|
+
useExisting: TitleBarLocalizationService
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
provide: L10N_PREFIX,
|
|
74
|
+
useValue: 'kendo.dialog'
|
|
75
|
+
}
|
|
76
|
+
], ngImport: i0, template: `
|
|
67
77
|
<ng-container
|
|
68
78
|
kendoDialogTitleBarLocalizedMessages
|
|
69
79
|
i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
|
|
@@ -89,7 +99,8 @@ DialogTitleBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
89
99
|
</div>
|
|
90
100
|
</ng-container>
|
|
91
101
|
`, 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"] }] });
|
|
92
|
-
|
|
102
|
+
}
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogTitleBarComponent, decorators: [{
|
|
93
104
|
type: Component,
|
|
94
105
|
args: [{
|
|
95
106
|
selector: 'kendo-dialog-titlebar',
|