@progress/kendo-angular-dialog 21.1.1-develop.1 → 21.2.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/esm2022/dialog/dialog-actions.component.mjs +57 -55
- package/esm2022/dialog/dialog.component.mjs +71 -43
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/window/actions/window-close-action.directive.mjs +27 -17
- package/esm2022/window/actions/window-maximize-action.directive.mjs +27 -17
- package/esm2022/window/actions/window-minimize-action.directive.mjs +27 -17
- package/esm2022/window/actions/window-restore-action.directive.mjs +27 -17
- package/esm2022/window/window-titlebar.component.mjs +22 -14
- package/esm2022/window/window.component.mjs +117 -89
- package/fesm2022/progress-kendo-angular-dialog.mjs +370 -264
- package/package.json +7 -7
- package/schematics/ngAdd/index.js +5 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, EventEmitter, HostBinding, TemplateRef, Input, Output, ElementRef } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { NgClass, NgTemplateOutlet } from '@angular/common';
|
|
7
7
|
import { KENDO_BUTTON } from '@progress/kendo-angular-buttons';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-buttons";
|
|
@@ -83,67 +83,69 @@ export class DialogActionsComponent {
|
|
|
83
83
|
return action === 'spacer';
|
|
84
84
|
}
|
|
85
85
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DialogActionsComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
86
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
86
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", 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: `
|
|
87
|
+
@if (!actions) {
|
|
88
|
+
<ng-content></ng-content>
|
|
89
|
+
}
|
|
90
|
+
@if (actionsArray) {
|
|
91
|
+
@for (action of actionsArray; track action) {
|
|
92
|
+
@if (isDivider(action)) {
|
|
93
|
+
<span class="k-spacer"></span>
|
|
94
|
+
} @else {
|
|
95
|
+
<button
|
|
96
|
+
type="button"
|
|
97
|
+
kendoButton
|
|
98
|
+
[disabled]="action.disabled"
|
|
99
|
+
[fillMode]="action.fillMode"
|
|
100
|
+
[themeColor]="action.themeColor"
|
|
101
|
+
[ngClass]="action.cssClass"
|
|
102
|
+
(click)="onButtonClick(action, $event)"
|
|
103
|
+
[attr.aria-label]="action.text"
|
|
104
|
+
[svgIcon]="action.svgIcon"
|
|
105
|
+
[icon]="action.icon"
|
|
106
|
+
>
|
|
107
|
+
{{ action.text }}
|
|
108
|
+
</button>
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
} @else {
|
|
112
|
+
}
|
|
113
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i1.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"] }] });
|
|
113
114
|
}
|
|
114
115
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DialogActionsComponent, decorators: [{
|
|
115
116
|
type: Component,
|
|
116
117
|
args: [{
|
|
117
118
|
selector: 'kendo-dialog-actions',
|
|
118
119
|
template: `
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
120
|
+
@if (!actions) {
|
|
121
|
+
<ng-content></ng-content>
|
|
122
|
+
}
|
|
123
|
+
@if (actionsArray) {
|
|
124
|
+
@for (action of actionsArray; track action) {
|
|
125
|
+
@if (isDivider(action)) {
|
|
126
|
+
<span class="k-spacer"></span>
|
|
127
|
+
} @else {
|
|
128
|
+
<button
|
|
129
|
+
type="button"
|
|
130
|
+
kendoButton
|
|
131
|
+
[disabled]="action.disabled"
|
|
132
|
+
[fillMode]="action.fillMode"
|
|
133
|
+
[themeColor]="action.themeColor"
|
|
134
|
+
[ngClass]="action.cssClass"
|
|
135
|
+
(click)="onButtonClick(action, $event)"
|
|
136
|
+
[attr.aria-label]="action.text"
|
|
137
|
+
[svgIcon]="action.svgIcon"
|
|
138
|
+
[icon]="action.icon"
|
|
139
|
+
>
|
|
140
|
+
{{ action.text }}
|
|
141
|
+
</button>
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
} @else {
|
|
145
|
+
}
|
|
146
|
+
`,
|
|
145
147
|
standalone: true,
|
|
146
|
-
imports: [
|
|
148
|
+
imports: [NgClass, NgTemplateOutlet, KENDO_BUTTON]
|
|
147
149
|
}]
|
|
148
150
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { actions: [{
|
|
149
151
|
type: Input
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, EventEmitter, HostBinding, Input, ViewChild, Output, ElementRef, Renderer2, ChangeDetectorRef, NgZone, ContentChildren, QueryList, ViewChildren } from '@angular/core';
|
|
6
|
-
import { NgStyle,
|
|
6
|
+
import { NgStyle, NgTemplateOutlet } from '@angular/common';
|
|
7
7
|
import { animate, AnimationBuilder, state, style, transition, trigger } from '@angular/animations';
|
|
8
8
|
import { DialogActionsComponent } from './dialog-actions.component';
|
|
9
9
|
import { DialogTitleBarComponent } from './dialog-titlebar.component';
|
|
@@ -481,7 +481,7 @@ export class DialogComponent {
|
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
483
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i2.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
484
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
484
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DialogComponent, isStandalone: true, selector: "kendo-dialog", inputs: { actions: "actions", actionsLayout: "actionsLayout", autoFocusedElement: "autoFocusedElement", title: "title", width: "width", minWidth: "minWidth", maxWidth: "maxWidth", height: "height", minHeight: "minHeight", maxHeight: "maxHeight", animation: "animation", themeColor: "themeColor" }, outputs: { action: "action", close: "close" }, host: { properties: { "attr.dir": "this.dir", "attr.tabIndex": "this.tabIndex", "class.k-dialog-wrapper": "this.wrapperClass" } }, providers: [
|
|
485
485
|
LocalizationService,
|
|
486
486
|
{
|
|
487
487
|
provide: DIALOG_LOCALIZATION_SERVICE,
|
|
@@ -493,28 +493,42 @@ export class DialogComponent {
|
|
|
493
493
|
}
|
|
494
494
|
], queries: [{ propertyName: "titlebarContent", predicate: DialogTitleBarComponent }], viewQueries: [{ propertyName: "actionsView", first: true, predicate: DialogActionsComponent, descendants: true }, { propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, static: true }, { propertyName: "titlebarView", predicate: DialogTitleBarComponent, descendants: true }], exportAs: ["kendoDialog"], ngImport: i0, template: `
|
|
495
495
|
<ng-container
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
<
|
|
513
|
-
|
|
514
|
-
|
|
496
|
+
kendoDialogLocalizedMessages
|
|
497
|
+
i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
|
|
498
|
+
closeTitle="Close"
|
|
499
|
+
>
|
|
500
|
+
<div class="k-overlay" @overlayAppear></div>
|
|
501
|
+
|
|
502
|
+
<div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
|
|
503
|
+
@if (title) {
|
|
504
|
+
<kendo-dialog-titlebar [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
|
|
505
|
+
}
|
|
506
|
+
@if (!title) {
|
|
507
|
+
<ng-content select="kendo-dialog-titlebar"></ng-content>
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
<div [id]="contentId" class="k-window-content k-dialog-content">
|
|
511
|
+
@if (!contentTemplate) {
|
|
512
|
+
<ng-content></ng-content>
|
|
513
|
+
}
|
|
514
|
+
@if (contentTemplate) {
|
|
515
|
+
<ng-template [ngTemplateOutlet]="contentTemplate"></ng-template>
|
|
516
|
+
}
|
|
515
517
|
</div>
|
|
518
|
+
|
|
519
|
+
@if (!actions) {
|
|
520
|
+
<ng-content select="kendo-dialog-actions"></ng-content>
|
|
521
|
+
}
|
|
522
|
+
@if (actions) {
|
|
523
|
+
<kendo-dialog-actions [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
@if (showLicenseWatermark) {
|
|
527
|
+
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
528
|
+
}
|
|
529
|
+
</div>
|
|
516
530
|
</ng-container>
|
|
517
|
-
|
|
531
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }], animations: [
|
|
518
532
|
trigger('overlayAppear', [
|
|
519
533
|
state('in', style({ opacity: 1 })),
|
|
520
534
|
transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
|
|
@@ -545,30 +559,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
545
559
|
selector: 'kendo-dialog',
|
|
546
560
|
template: `
|
|
547
561
|
<ng-container
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
<
|
|
565
|
-
|
|
566
|
-
|
|
562
|
+
kendoDialogLocalizedMessages
|
|
563
|
+
i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
|
|
564
|
+
closeTitle="Close"
|
|
565
|
+
>
|
|
566
|
+
<div class="k-overlay" @overlayAppear></div>
|
|
567
|
+
|
|
568
|
+
<div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
|
|
569
|
+
@if (title) {
|
|
570
|
+
<kendo-dialog-titlebar [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
|
|
571
|
+
}
|
|
572
|
+
@if (!title) {
|
|
573
|
+
<ng-content select="kendo-dialog-titlebar"></ng-content>
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
<div [id]="contentId" class="k-window-content k-dialog-content">
|
|
577
|
+
@if (!contentTemplate) {
|
|
578
|
+
<ng-content></ng-content>
|
|
579
|
+
}
|
|
580
|
+
@if (contentTemplate) {
|
|
581
|
+
<ng-template [ngTemplateOutlet]="contentTemplate"></ng-template>
|
|
582
|
+
}
|
|
567
583
|
</div>
|
|
584
|
+
|
|
585
|
+
@if (!actions) {
|
|
586
|
+
<ng-content select="kendo-dialog-actions"></ng-content>
|
|
587
|
+
}
|
|
588
|
+
@if (actions) {
|
|
589
|
+
<kendo-dialog-actions [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
@if (showLicenseWatermark) {
|
|
593
|
+
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
594
|
+
}
|
|
595
|
+
</div>
|
|
568
596
|
</ng-container>
|
|
569
|
-
|
|
597
|
+
`,
|
|
570
598
|
standalone: true,
|
|
571
|
-
imports: [LocalizedMessagesDirective, NgStyle,
|
|
599
|
+
imports: [LocalizedMessagesDirective, NgStyle, DialogTitleBarComponent, NgTemplateOutlet, DialogActionsComponent, WatermarkOverlayComponent]
|
|
572
600
|
}]
|
|
573
601
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2.AnimationBuilder }], propDecorators: { actions: [{
|
|
574
602
|
type: Input
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '21.
|
|
13
|
+
publishDate: 1763998126,
|
|
14
|
+
version: '21.2.0-develop.1',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
|
|
6
|
-
import {
|
|
6
|
+
import { NgClass } from "@angular/common";
|
|
7
7
|
import { Button } from '@progress/kendo-angular-buttons';
|
|
8
8
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { xIcon } from '@progress/kendo-svg-icons';
|
|
@@ -45,25 +45,30 @@ export class WindowCloseActionDirective extends Button {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
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: "
|
|
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
49
|
LocalizationService,
|
|
50
50
|
{
|
|
51
51
|
provide: L10N_PREFIX,
|
|
52
52
|
useValue: 'kendo.button'
|
|
53
53
|
}
|
|
54
54
|
], exportAs: ["kendoWindowCloseAction"], usesInheritance: true, ngImport: i0, template: `
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
@if (!imageUrl && !iconClass) {
|
|
56
|
+
<kendo-icon-wrapper
|
|
57
57
|
innerCssClass="k-button-icon"
|
|
58
58
|
name="close"
|
|
59
59
|
[svgIcon]="xIcon">
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
</kendo-icon-wrapper>
|
|
61
|
+
}
|
|
62
|
+
@if (imageUrl) {
|
|
63
|
+
<span class="k-button-icon k-icon">
|
|
62
64
|
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
</span>
|
|
66
|
+
}
|
|
67
|
+
@if (iconClass) {
|
|
68
|
+
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
69
|
+
}
|
|
65
70
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
66
|
-
|
|
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"] }] });
|
|
67
72
|
}
|
|
68
73
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WindowCloseActionDirective, decorators: [{
|
|
69
74
|
type: Component,
|
|
@@ -78,20 +83,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
78
83
|
],
|
|
79
84
|
selector: 'button[kendoWindowCloseAction]',
|
|
80
85
|
template: `
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
@if (!imageUrl && !iconClass) {
|
|
87
|
+
<kendo-icon-wrapper
|
|
83
88
|
innerCssClass="k-button-icon"
|
|
84
89
|
name="close"
|
|
85
90
|
[svgIcon]="xIcon">
|
|
86
|
-
|
|
87
|
-
|
|
91
|
+
</kendo-icon-wrapper>
|
|
92
|
+
}
|
|
93
|
+
@if (imageUrl) {
|
|
94
|
+
<span class="k-button-icon k-icon">
|
|
88
95
|
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
89
|
-
|
|
90
|
-
|
|
96
|
+
</span>
|
|
97
|
+
}
|
|
98
|
+
@if (iconClass) {
|
|
99
|
+
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
100
|
+
}
|
|
91
101
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
92
|
-
|
|
102
|
+
`,
|
|
93
103
|
standalone: true,
|
|
94
|
-
imports: [
|
|
104
|
+
imports: [IconWrapperComponent, NgClass]
|
|
95
105
|
}]
|
|
96
106
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
|
|
97
107
|
type: Optional
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
|
|
6
|
-
import {
|
|
6
|
+
import { NgClass } from "@angular/common";
|
|
7
7
|
import { Button } from '@progress/kendo-angular-buttons';
|
|
8
8
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { windowIcon } from '@progress/kendo-svg-icons';
|
|
@@ -48,25 +48,30 @@ export class WindowMaximizeActionDirective extends Button {
|
|
|
48
48
|
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
49
49
|
}
|
|
50
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: "
|
|
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
52
|
LocalizationService,
|
|
53
53
|
{
|
|
54
54
|
provide: L10N_PREFIX,
|
|
55
55
|
useValue: 'kendo.button'
|
|
56
56
|
}
|
|
57
57
|
], exportAs: ["kendoWindowMaximizeAction"], usesInheritance: true, ngImport: i0, template: `
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
@if (!imageUrl && !iconClass) {
|
|
59
|
+
<kendo-icon-wrapper
|
|
60
60
|
innerCssClass="k-button-icon"
|
|
61
61
|
name="window"
|
|
62
62
|
[svgIcon]="windowIcon">
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
</kendo-icon-wrapper>
|
|
64
|
+
}
|
|
65
|
+
@if (imageUrl) {
|
|
66
|
+
<span class="k-button-icon k-icon">
|
|
65
67
|
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
</span>
|
|
69
|
+
}
|
|
70
|
+
@if (iconClass) {
|
|
71
|
+
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
72
|
+
}
|
|
68
73
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
69
|
-
|
|
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"] }] });
|
|
70
75
|
}
|
|
71
76
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WindowMaximizeActionDirective, decorators: [{
|
|
72
77
|
type: Component,
|
|
@@ -81,20 +86,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
81
86
|
],
|
|
82
87
|
selector: 'button[kendoWindowMaximizeAction]',
|
|
83
88
|
template: `
|
|
84
|
-
|
|
85
|
-
|
|
89
|
+
@if (!imageUrl && !iconClass) {
|
|
90
|
+
<kendo-icon-wrapper
|
|
86
91
|
innerCssClass="k-button-icon"
|
|
87
92
|
name="window"
|
|
88
93
|
[svgIcon]="windowIcon">
|
|
89
|
-
|
|
90
|
-
|
|
94
|
+
</kendo-icon-wrapper>
|
|
95
|
+
}
|
|
96
|
+
@if (imageUrl) {
|
|
97
|
+
<span class="k-button-icon k-icon">
|
|
91
98
|
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
92
|
-
|
|
93
|
-
|
|
99
|
+
</span>
|
|
100
|
+
}
|
|
101
|
+
@if (iconClass) {
|
|
102
|
+
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
103
|
+
}
|
|
94
104
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
95
|
-
|
|
105
|
+
`,
|
|
96
106
|
standalone: true,
|
|
97
|
-
imports: [
|
|
107
|
+
imports: [IconWrapperComponent, NgClass]
|
|
98
108
|
}]
|
|
99
109
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
|
|
100
110
|
type: Optional
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, ElementRef, HostBinding, HostListener, Input, Optional, NgZone, Renderer2 } from "@angular/core";
|
|
6
|
-
import {
|
|
6
|
+
import { NgClass } from "@angular/common";
|
|
7
7
|
import { Button } from '@progress/kendo-angular-buttons';
|
|
8
8
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { windowMinimizeIcon } from "@progress/kendo-svg-icons";
|
|
@@ -48,25 +48,30 @@ export class WindowMinimizeActionDirective extends Button {
|
|
|
48
48
|
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
49
49
|
}
|
|
50
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: "
|
|
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
52
|
LocalizationService,
|
|
53
53
|
{
|
|
54
54
|
provide: L10N_PREFIX,
|
|
55
55
|
useValue: 'kendo.button'
|
|
56
56
|
}
|
|
57
57
|
], exportAs: ["kendoWindowMinimizeAction"], usesInheritance: true, ngImport: i0, template: `
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
@if (!imageUrl && !iconClass) {
|
|
59
|
+
<kendo-icon-wrapper
|
|
60
60
|
innerCssClass="k-button-icon"
|
|
61
61
|
name="window-minimize"
|
|
62
62
|
[svgIcon]="windowMinimizeIcon">
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
</kendo-icon-wrapper>
|
|
64
|
+
}
|
|
65
|
+
@if (imageUrl) {
|
|
66
|
+
<span class="k-button-icon k-icon">
|
|
65
67
|
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
</span>
|
|
69
|
+
}
|
|
70
|
+
@if (iconClass) {
|
|
71
|
+
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
72
|
+
}
|
|
68
73
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
69
|
-
|
|
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"] }] });
|
|
70
75
|
}
|
|
71
76
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WindowMinimizeActionDirective, decorators: [{
|
|
72
77
|
type: Component,
|
|
@@ -81,20 +86,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
81
86
|
],
|
|
82
87
|
selector: 'button[kendoWindowMinimizeAction]',
|
|
83
88
|
template: `
|
|
84
|
-
|
|
85
|
-
|
|
89
|
+
@if (!imageUrl && !iconClass) {
|
|
90
|
+
<kendo-icon-wrapper
|
|
86
91
|
innerCssClass="k-button-icon"
|
|
87
92
|
name="window-minimize"
|
|
88
93
|
[svgIcon]="windowMinimizeIcon">
|
|
89
|
-
|
|
90
|
-
|
|
94
|
+
</kendo-icon-wrapper>
|
|
95
|
+
}
|
|
96
|
+
@if (imageUrl) {
|
|
97
|
+
<span class="k-button-icon k-icon">
|
|
91
98
|
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
92
|
-
|
|
93
|
-
|
|
99
|
+
</span>
|
|
100
|
+
}
|
|
101
|
+
@if (iconClass) {
|
|
102
|
+
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
103
|
+
}
|
|
94
104
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
95
|
-
|
|
105
|
+
`,
|
|
96
106
|
standalone: true,
|
|
97
|
-
imports: [
|
|
107
|
+
imports: [IconWrapperComponent, NgClass]
|
|
98
108
|
}]
|
|
99
109
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DragResizeService, decorators: [{
|
|
100
110
|
type: Optional
|