@progress/kendo-angular-dialog 17.0.0-develop.9 → 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
|
@@ -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 * as i0 from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { TemplateRef, EventEmitter, Component, Input, Output, HostBinding, InjectionToken, Injectable, Inject, Optional, Directive, forwardRef, ContentChildren, ViewChildren, ViewChild, isDevMode, Renderer2, Host, HostListener, ContentChild, NgModule } from '@angular/core';
|
|
7
7
|
import { NgIf, NgFor, NgClass, NgTemplateOutlet, NgStyle } from '@angular/common';
|
|
8
8
|
import * as i2 from '@angular/animations';
|
|
9
9
|
import { style, animate, keyframes, trigger, state, transition } from '@angular/animations';
|
|
@@ -15,7 +15,7 @@ import { xIcon, windowRestoreIcon, windowIcon, windowMinimizeIcon } from '@progr
|
|
|
15
15
|
import { ButtonComponent, Button } from '@progress/kendo-angular-buttons';
|
|
16
16
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
17
17
|
import * as i1$1 from '@progress/kendo-angular-common';
|
|
18
|
-
import {
|
|
18
|
+
import { setHTMLAttributes, shouldShowValidationUI, isDocumentAvailable, focusableSelector, WatermarkOverlayComponent, DraggableDirective, isChanged } from '@progress/kendo-angular-common';
|
|
19
19
|
import { offset, scrollPosition, positionWithScroll, getDocumentElement, getWindowViewPort } from '@progress/kendo-popup-common';
|
|
20
20
|
import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
|
|
21
21
|
|
|
@@ -198,19 +198,7 @@ const findPrimaryButton = (buttons) => {
|
|
|
198
198
|
* ([see example]({% slug actionbuttons_dialog %})).
|
|
199
199
|
*/
|
|
200
200
|
class DialogActionsComponent {
|
|
201
|
-
|
|
202
|
-
this.el = el;
|
|
203
|
-
/**
|
|
204
|
-
* Specifies the possible layout of the action buttons.
|
|
205
|
-
* @default 'stretched'
|
|
206
|
-
*/
|
|
207
|
-
this.layout = 'stretched';
|
|
208
|
-
/**
|
|
209
|
-
* Fires when the user clicks an action button.
|
|
210
|
-
*/
|
|
211
|
-
this.action = new EventEmitter();
|
|
212
|
-
this.hostClasses = true;
|
|
213
|
-
}
|
|
201
|
+
el;
|
|
214
202
|
/**
|
|
215
203
|
* Allows the declarative specification of the actions.
|
|
216
204
|
*/
|
|
@@ -225,6 +213,24 @@ class DialogActionsComponent {
|
|
|
225
213
|
throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');
|
|
226
214
|
}
|
|
227
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* @hidden
|
|
218
|
+
*/
|
|
219
|
+
actionsArray;
|
|
220
|
+
/**
|
|
221
|
+
* @hidden
|
|
222
|
+
*/
|
|
223
|
+
actionsTemplate;
|
|
224
|
+
/**
|
|
225
|
+
* Specifies the possible layout of the action buttons.
|
|
226
|
+
* @default 'stretched'
|
|
227
|
+
*/
|
|
228
|
+
layout = 'stretched';
|
|
229
|
+
/**
|
|
230
|
+
* Fires when the user clicks an action button.
|
|
231
|
+
*/
|
|
232
|
+
action = new EventEmitter();
|
|
233
|
+
hostClasses = true;
|
|
228
234
|
get startClassName() {
|
|
229
235
|
return this.layout === 'start';
|
|
230
236
|
}
|
|
@@ -237,6 +243,9 @@ class DialogActionsComponent {
|
|
|
237
243
|
get stretchedClassName() {
|
|
238
244
|
return this.layout === 'stretched';
|
|
239
245
|
}
|
|
246
|
+
constructor(el) {
|
|
247
|
+
this.el = el;
|
|
248
|
+
}
|
|
240
249
|
/**
|
|
241
250
|
* @hidden
|
|
242
251
|
*/
|
|
@@ -263,9 +272,8 @@ class DialogActionsComponent {
|
|
|
263
272
|
isDivider(action) {
|
|
264
273
|
return action === 'spacer';
|
|
265
274
|
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
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: `
|
|
275
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogActionsComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
276
|
+
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: `
|
|
269
277
|
<ng-content *ngIf="!actions"></ng-content>
|
|
270
278
|
<ng-container *ngIf="actionsArray; else actionTemplate">
|
|
271
279
|
<ng-container *ngFor="let action of actionsArray">
|
|
@@ -286,7 +294,8 @@ DialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
286
294
|
</ng-container>
|
|
287
295
|
<ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
|
|
288
296
|
`, 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"] }] });
|
|
289
|
-
|
|
297
|
+
}
|
|
298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogActionsComponent, decorators: [{
|
|
290
299
|
type: Component,
|
|
291
300
|
args: [{
|
|
292
301
|
selector: 'kendo-dialog-actions',
|
|
@@ -347,12 +356,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
347
356
|
}] } });
|
|
348
357
|
|
|
349
358
|
class PreventableEvent {
|
|
359
|
+
prevented = false;
|
|
350
360
|
/**
|
|
351
361
|
* @hidden
|
|
352
362
|
*/
|
|
353
|
-
constructor() {
|
|
354
|
-
this.prevented = false;
|
|
355
|
-
}
|
|
363
|
+
constructor() { }
|
|
356
364
|
/**
|
|
357
365
|
* Prevents the default action for a specified event.
|
|
358
366
|
* In this way, the source component suppresses the built-in behavior that follows the event.
|
|
@@ -379,6 +387,7 @@ const DIALOG_LOCALIZATION_SERVICE = new InjectionToken('Dialog LocalizationServi
|
|
|
379
387
|
* @hidden
|
|
380
388
|
*/
|
|
381
389
|
class TitleBarLocalizationService extends LocalizationService {
|
|
390
|
+
dialogLocalization;
|
|
382
391
|
constructor(prefix, messageService, rtl, dialogLocalization) {
|
|
383
392
|
super(prefix, messageService, rtl);
|
|
384
393
|
this.dialogLocalization = dialogLocalization;
|
|
@@ -389,10 +398,10 @@ class TitleBarLocalizationService extends LocalizationService {
|
|
|
389
398
|
}
|
|
390
399
|
return super.get(shortKey);
|
|
391
400
|
}
|
|
401
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", 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 });
|
|
402
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TitleBarLocalizationService });
|
|
392
403
|
}
|
|
393
|
-
|
|
394
|
-
TitleBarLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TitleBarLocalizationService });
|
|
395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TitleBarLocalizationService, decorators: [{
|
|
404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TitleBarLocalizationService, decorators: [{
|
|
396
405
|
type: Injectable
|
|
397
406
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
398
407
|
type: Inject,
|
|
@@ -415,10 +424,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
415
424
|
* @hidden
|
|
416
425
|
*/
|
|
417
426
|
class Messages extends ComponentMessages {
|
|
427
|
+
/**
|
|
428
|
+
* The title of the close button.
|
|
429
|
+
*/
|
|
430
|
+
closeTitle;
|
|
431
|
+
/**
|
|
432
|
+
* The title of the restore button.
|
|
433
|
+
*/
|
|
434
|
+
restoreTitle;
|
|
435
|
+
/**
|
|
436
|
+
* The title of the maximize button.
|
|
437
|
+
*/
|
|
438
|
+
maximizeTitle;
|
|
439
|
+
/**
|
|
440
|
+
* The title of the minimize button.
|
|
441
|
+
*/
|
|
442
|
+
minimizeTitle;
|
|
443
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
444
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: Messages, selector: "kendo-dialog-messages-base", inputs: { closeTitle: "closeTitle", restoreTitle: "restoreTitle", maximizeTitle: "maximizeTitle", minimizeTitle: "minimizeTitle" }, usesInheritance: true, ngImport: i0 });
|
|
418
445
|
}
|
|
419
|
-
|
|
420
|
-
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: Messages, selector: "kendo-dialog-messages-base", inputs: { closeTitle: "closeTitle", restoreTitle: "restoreTitle", maximizeTitle: "maximizeTitle", minimizeTitle: "minimizeTitle" }, usesInheritance: true, ngImport: i0 });
|
|
421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, decorators: [{
|
|
446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, decorators: [{
|
|
422
447
|
type: Directive,
|
|
423
448
|
args: [{
|
|
424
449
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -438,19 +463,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
438
463
|
* @hidden
|
|
439
464
|
*/
|
|
440
465
|
class LocalizedMessagesDirective extends Messages {
|
|
466
|
+
service;
|
|
441
467
|
constructor(service) {
|
|
442
468
|
super();
|
|
443
469
|
this.service = service;
|
|
444
470
|
}
|
|
471
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
472
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedMessagesDirective, isStandalone: true, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ", providers: [
|
|
473
|
+
{
|
|
474
|
+
provide: Messages,
|
|
475
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
476
|
+
}
|
|
477
|
+
], usesInheritance: true, ngImport: i0 });
|
|
445
478
|
}
|
|
446
|
-
|
|
447
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ", providers: [
|
|
448
|
-
{
|
|
449
|
-
provide: Messages,
|
|
450
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
451
|
-
}
|
|
452
|
-
], usesInheritance: true, ngImport: i0 });
|
|
453
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
479
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
454
480
|
type: Directive,
|
|
455
481
|
args: [{
|
|
456
482
|
providers: [
|
|
@@ -474,21 +500,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
474
500
|
* It is used as part of the Dialog content when the component is created dynamically by using an [Angular service]({% slug service_dialog %}).
|
|
475
501
|
*/
|
|
476
502
|
class DialogTitleBarComponent {
|
|
503
|
+
zone;
|
|
504
|
+
hostElement;
|
|
505
|
+
localizationService;
|
|
506
|
+
/**
|
|
507
|
+
* Fires when the close button of the title-bar is clicked.
|
|
508
|
+
*/
|
|
509
|
+
close = new EventEmitter();
|
|
510
|
+
/**
|
|
511
|
+
* @hidden
|
|
512
|
+
*/
|
|
513
|
+
id;
|
|
514
|
+
/**
|
|
515
|
+
* @hidden
|
|
516
|
+
*/
|
|
517
|
+
closeTitle;
|
|
518
|
+
get className() {
|
|
519
|
+
return true;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* @hidden
|
|
523
|
+
*/
|
|
524
|
+
xIcon = xIcon;
|
|
477
525
|
constructor(zone, hostElement, localizationService) {
|
|
478
526
|
this.zone = zone;
|
|
479
527
|
this.hostElement = hostElement;
|
|
480
528
|
this.localizationService = localizationService;
|
|
481
|
-
/**
|
|
482
|
-
* Fires when the close button of the title-bar is clicked.
|
|
483
|
-
*/
|
|
484
|
-
this.close = new EventEmitter();
|
|
485
|
-
/**
|
|
486
|
-
* @hidden
|
|
487
|
-
*/
|
|
488
|
-
this.xIcon = xIcon;
|
|
489
|
-
}
|
|
490
|
-
get className() {
|
|
491
|
-
return true;
|
|
492
529
|
}
|
|
493
530
|
get closeButtonTitle() {
|
|
494
531
|
return this.closeTitle || this.localizationService.get('closeTitle');
|
|
@@ -507,19 +544,18 @@ class DialogTitleBarComponent {
|
|
|
507
544
|
const eventArgs = new PreventableEvent();
|
|
508
545
|
this.close.emit(eventArgs);
|
|
509
546
|
}
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
], ngImport: i0, template: `
|
|
547
|
+
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 });
|
|
548
|
+
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: [
|
|
549
|
+
TitleBarLocalizationService,
|
|
550
|
+
{
|
|
551
|
+
provide: LocalizationService,
|
|
552
|
+
useExisting: TitleBarLocalizationService
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
provide: L10N_PREFIX,
|
|
556
|
+
useValue: 'kendo.dialog'
|
|
557
|
+
}
|
|
558
|
+
], ngImport: i0, template: `
|
|
523
559
|
<ng-container
|
|
524
560
|
kendoDialogTitleBarLocalizedMessages
|
|
525
561
|
i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
|
|
@@ -545,7 +581,8 @@ DialogTitleBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
545
581
|
</div>
|
|
546
582
|
</ng-container>
|
|
547
583
|
`, 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"] }] });
|
|
548
|
-
|
|
584
|
+
}
|
|
585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogTitleBarComponent, decorators: [{
|
|
549
586
|
type: Component,
|
|
550
587
|
args: [{
|
|
551
588
|
selector: 'kendo-dialog-titlebar',
|
|
@@ -612,8 +649,8 @@ const packageMetadata = {
|
|
|
612
649
|
name: '@progress/kendo-angular-dialog',
|
|
613
650
|
productName: 'Kendo UI for Angular',
|
|
614
651
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
615
|
-
publishDate:
|
|
616
|
-
version: '17.0.0
|
|
652
|
+
publishDate: 1731413917,
|
|
653
|
+
version: '17.0.0',
|
|
617
654
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
618
655
|
};
|
|
619
656
|
|
|
@@ -728,58 +765,73 @@ const DEFAULT_ANIMATION_CONFIG = { duration: 300, type: 'translate' };
|
|
|
728
765
|
* Represents the [Kendo UI Dialog component for Angular]({% slug overview_dialog_dialogs %}).
|
|
729
766
|
*/
|
|
730
767
|
class DialogComponent {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
768
|
+
wrapper;
|
|
769
|
+
renderer;
|
|
770
|
+
cdr;
|
|
771
|
+
ngZone;
|
|
772
|
+
builder;
|
|
773
|
+
/**
|
|
774
|
+
* Specifies the action buttons that will be rendered.
|
|
775
|
+
*/
|
|
776
|
+
actions;
|
|
777
|
+
/**
|
|
778
|
+
* Specifies the layout of the action buttons in the Dialog.
|
|
779
|
+
* This option is only applicable if the action buttons are specified through the `actions` options.
|
|
780
|
+
*
|
|
781
|
+
* @default 'stretched'
|
|
782
|
+
*/
|
|
783
|
+
actionsLayout = 'stretched';
|
|
784
|
+
/**
|
|
785
|
+
* Specifies the query selector used to set the initial focus ([see examples]({% slug initial_focus_dialog %})).
|
|
786
|
+
*/
|
|
787
|
+
autoFocusedElement;
|
|
788
|
+
/**
|
|
789
|
+
* Specifies the text that is rendered in the title bar.
|
|
790
|
+
*/
|
|
791
|
+
title;
|
|
792
|
+
/**
|
|
793
|
+
* Specifies the width of the Dialog.
|
|
794
|
+
* A numeric value sets the width in pixels.
|
|
795
|
+
* A string value sets the width in arbitrary units—for example, `50%`.
|
|
796
|
+
*/
|
|
797
|
+
width;
|
|
798
|
+
/**
|
|
799
|
+
* Specifies the minimum width of the Dialog.
|
|
800
|
+
* A numeric value sets the minimum width in pixels.
|
|
801
|
+
* A string value sets the minimum width in arbitrary units—for example, `50%`.
|
|
802
|
+
*/
|
|
803
|
+
minWidth;
|
|
804
|
+
/**
|
|
805
|
+
* Specifies the maximum width of the Dialog.
|
|
806
|
+
* A numeric value sets the maximum width in pixels.
|
|
807
|
+
* A string value sets the maximum width in arbitrary units—for example, `50%`.
|
|
808
|
+
*/
|
|
809
|
+
maxWidth;
|
|
810
|
+
/**
|
|
811
|
+
* Specifies the height of the Dialog.
|
|
812
|
+
* A numeric value sets the height in pixels.
|
|
813
|
+
* A string value sets the height in arbitrary units—for example, `50%`.
|
|
814
|
+
*/
|
|
815
|
+
height;
|
|
816
|
+
/**
|
|
817
|
+
* Specifies the minimum height of the Dialog.
|
|
818
|
+
* A numeric value sets the minimum height in pixels.
|
|
819
|
+
* A string value sets the minimum height in arbitrary units—for example, `50%`.
|
|
820
|
+
*/
|
|
821
|
+
minHeight;
|
|
822
|
+
/**
|
|
823
|
+
* Specifies the maximum height of the Dialog.
|
|
824
|
+
* A numeric value sets the maximum height in pixels.
|
|
825
|
+
* A string value sets the maximum height in arbitrary units—for example, `50%`.
|
|
826
|
+
*/
|
|
827
|
+
maxHeight;
|
|
828
|
+
/**
|
|
829
|
+
* Configures the Dialog opening animation ([see example]({% slug animations_dialog %})).
|
|
830
|
+
* By default the animation type is set to `translate` and its duration is `300ms`.
|
|
831
|
+
*
|
|
832
|
+
* @default true
|
|
833
|
+
*/
|
|
834
|
+
animation = true;
|
|
783
835
|
/**
|
|
784
836
|
* The Dialog allows you to specify predefined theme colors.
|
|
785
837
|
* The theme color will be applied as a background and border color to the titlebar while also amending the text color accordingly.
|
|
@@ -825,9 +877,62 @@ class DialogComponent {
|
|
|
825
877
|
get cssClass() {
|
|
826
878
|
return this._cssClass;
|
|
827
879
|
}
|
|
880
|
+
/**
|
|
881
|
+
* @hidden
|
|
882
|
+
*/
|
|
883
|
+
contentTemplate;
|
|
884
|
+
/**
|
|
885
|
+
* @hidden
|
|
886
|
+
*/
|
|
887
|
+
titleId = null;
|
|
888
|
+
/**
|
|
889
|
+
* @hidden
|
|
890
|
+
*/
|
|
891
|
+
contentId = null;
|
|
892
|
+
/**
|
|
893
|
+
* @hidden
|
|
894
|
+
*/
|
|
895
|
+
closeTitle;
|
|
896
|
+
/**
|
|
897
|
+
* @hidden
|
|
898
|
+
*/
|
|
899
|
+
showLicenseWatermark = false;
|
|
900
|
+
/**
|
|
901
|
+
* Fires when the user clicks an action button of the Dialog.
|
|
902
|
+
* The event is fired only when the action buttons are specified through the `actions` options.
|
|
903
|
+
*/
|
|
904
|
+
action = new EventEmitter();
|
|
905
|
+
/**
|
|
906
|
+
* Fires when the user clicks the **Close** button of the Dialog or the **ESC** key.
|
|
907
|
+
*/
|
|
908
|
+
close = new EventEmitter();
|
|
828
909
|
get dir() {
|
|
829
910
|
return this.direction;
|
|
830
911
|
}
|
|
912
|
+
tabIndex = 0;
|
|
913
|
+
titlebarContent;
|
|
914
|
+
titlebarView;
|
|
915
|
+
actionsView;
|
|
916
|
+
dialog;
|
|
917
|
+
_htmlAttributes;
|
|
918
|
+
_cssClass;
|
|
919
|
+
_themeColor = null;
|
|
920
|
+
direction;
|
|
921
|
+
subscriptions = [];
|
|
922
|
+
domSubs = new Subscription();
|
|
923
|
+
constructor(wrapper, renderer, localization, cdr, ngZone, builder) {
|
|
924
|
+
this.wrapper = wrapper;
|
|
925
|
+
this.renderer = renderer;
|
|
926
|
+
this.cdr = cdr;
|
|
927
|
+
this.ngZone = ngZone;
|
|
928
|
+
this.builder = builder;
|
|
929
|
+
const isValid = validatePackage(packageMetadata);
|
|
930
|
+
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
931
|
+
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
932
|
+
this.subscriptions.push(localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
|
|
933
|
+
this.titleId = this.generateTitleId();
|
|
934
|
+
this.contentId = this.generateContentId();
|
|
935
|
+
}
|
|
831
936
|
ngAfterContentInit() {
|
|
832
937
|
this.bubble('close', this.titlebarContent.first);
|
|
833
938
|
this.renderer.setAttribute(this.wrapper.nativeElement.querySelector('.k-dialog'), 'aria-describedby', this.contentId);
|
|
@@ -1079,19 +1184,18 @@ class DialogComponent {
|
|
|
1079
1184
|
this.renderer.addClass(dialog, classToAdd);
|
|
1080
1185
|
}
|
|
1081
1186
|
}
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
}
|
|
1094
|
-
], 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: `
|
|
1187
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", 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 });
|
|
1188
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: [
|
|
1189
|
+
LocalizationService,
|
|
1190
|
+
{
|
|
1191
|
+
provide: DIALOG_LOCALIZATION_SERVICE,
|
|
1192
|
+
useExisting: LocalizationService
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
provide: L10N_PREFIX,
|
|
1196
|
+
useValue: 'kendo.dialog'
|
|
1197
|
+
}
|
|
1198
|
+
], 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: `
|
|
1095
1199
|
<ng-container
|
|
1096
1200
|
kendoDialogLocalizedMessages
|
|
1097
1201
|
i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
|
|
@@ -1115,12 +1219,13 @@ DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
1115
1219
|
</div>
|
|
1116
1220
|
</ng-container>
|
|
1117
1221
|
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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]" }], animations: [
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1222
|
+
trigger('overlayAppear', [
|
|
1223
|
+
state('in', style({ opacity: 1 })),
|
|
1224
|
+
transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
|
|
1225
|
+
])
|
|
1226
|
+
] });
|
|
1227
|
+
}
|
|
1228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogComponent, decorators: [{
|
|
1124
1229
|
type: Component,
|
|
1125
1230
|
args: [{
|
|
1126
1231
|
animations: [
|
|
@@ -1226,6 +1331,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1226
1331
|
* ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
|
|
1227
1332
|
*/
|
|
1228
1333
|
class DialogRef {
|
|
1334
|
+
/**
|
|
1335
|
+
* Emits events when the Dialog is closed either through the **Close** button of the title bar or through the action buttons.
|
|
1336
|
+
* If the **Close** button of the title bar is clicked, `DialogResult` is a `DialogCloseResult` instance.
|
|
1337
|
+
* If the Dialog is closed through the action buttons, `DialogResult` contains the object that was passed when the Dialog was opened.
|
|
1338
|
+
* When `close` is called with an argument, the result is the passed argument.
|
|
1339
|
+
*/
|
|
1340
|
+
result;
|
|
1341
|
+
/**
|
|
1342
|
+
* A reference to the Dialog instance.
|
|
1343
|
+
*/
|
|
1344
|
+
dialog;
|
|
1345
|
+
/**
|
|
1346
|
+
* A reference to the child component of the Dialog.
|
|
1347
|
+
* Available when the Dialog is opened with [component content](slug:service_dialog#toc-rendering-the-content-area).
|
|
1348
|
+
*/
|
|
1349
|
+
content;
|
|
1350
|
+
/**
|
|
1351
|
+
* Allows you to close the Dialog through code.
|
|
1352
|
+
* When called with no arguments,
|
|
1353
|
+
* the `result` Observable will be of type DialogCloseResult.
|
|
1354
|
+
* When called with an argument, the `result` Observable will hold the provided value.
|
|
1355
|
+
*/
|
|
1356
|
+
close;
|
|
1229
1357
|
}
|
|
1230
1358
|
|
|
1231
1359
|
/**
|
|
@@ -1233,6 +1361,15 @@ class DialogRef {
|
|
|
1233
1361
|
* ([see example](slug:service_dialog#toc-single-component-rendering)).
|
|
1234
1362
|
*/
|
|
1235
1363
|
class DialogContentBase {
|
|
1364
|
+
dialog;
|
|
1365
|
+
/**
|
|
1366
|
+
* @hidden
|
|
1367
|
+
*/
|
|
1368
|
+
dialogTitleBar;
|
|
1369
|
+
/**
|
|
1370
|
+
* @hidden
|
|
1371
|
+
*/
|
|
1372
|
+
dialogActions;
|
|
1236
1373
|
constructor(dialog) {
|
|
1237
1374
|
this.dialog = dialog;
|
|
1238
1375
|
}
|
|
@@ -1252,10 +1389,10 @@ class DialogContentBase {
|
|
|
1252
1389
|
}
|
|
1253
1390
|
}
|
|
1254
1391
|
}
|
|
1392
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContentBase, deps: [{ token: DialogRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1393
|
+
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 });
|
|
1255
1394
|
}
|
|
1256
|
-
|
|
1257
|
-
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 });
|
|
1258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogContentBase, decorators: [{
|
|
1395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContentBase, decorators: [{
|
|
1259
1396
|
type: Directive
|
|
1260
1397
|
}], ctorParameters: function () { return [{ type: DialogRef }]; }, propDecorators: { dialogTitleBar: [{
|
|
1261
1398
|
type: ViewChild,
|
|
@@ -1269,17 +1406,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1269
1406
|
* @hidden
|
|
1270
1407
|
*/
|
|
1271
1408
|
class DialogContainerService {
|
|
1409
|
+
static container = null;
|
|
1272
1410
|
set container(container) {
|
|
1273
1411
|
DialogContainerService.container = container;
|
|
1274
1412
|
}
|
|
1275
1413
|
get container() {
|
|
1276
1414
|
return DialogContainerService.container;
|
|
1277
1415
|
}
|
|
1416
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1417
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContainerService, providedIn: 'root' });
|
|
1278
1418
|
}
|
|
1279
|
-
|
|
1280
|
-
DialogContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1281
|
-
DialogContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogContainerService, providedIn: 'root' });
|
|
1282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogContainerService, decorators: [{
|
|
1419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContainerService, decorators: [{
|
|
1283
1420
|
type: Injectable,
|
|
1284
1421
|
args: [{
|
|
1285
1422
|
providedIn: 'root'
|
|
@@ -1291,6 +1428,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1291
1428
|
* ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
|
|
1292
1429
|
*/
|
|
1293
1430
|
class DialogAction {
|
|
1431
|
+
/**
|
|
1432
|
+
* The text of the action button.
|
|
1433
|
+
*/
|
|
1434
|
+
text;
|
|
1435
|
+
/**
|
|
1436
|
+
* Determines the theme color of the action button. The theme color will be applied as a background and border color while also amending the text color accordingly.
|
|
1437
|
+
*/
|
|
1438
|
+
themeColor;
|
|
1439
|
+
/**
|
|
1440
|
+
* Specifies the background and border styles of the action button.
|
|
1441
|
+
*/
|
|
1442
|
+
fillMode;
|
|
1443
|
+
/**
|
|
1444
|
+
* Sets the CSS classes that will be rendered on the action button.
|
|
1445
|
+
* Supports the union type of values that NgClass accepts [ngClass](link:site.data.urls.angular['ngclassapi']).
|
|
1446
|
+
*/
|
|
1447
|
+
cssClass;
|
|
1294
1448
|
}
|
|
1295
1449
|
|
|
1296
1450
|
/**
|
|
@@ -1298,11 +1452,109 @@ class DialogAction {
|
|
|
1298
1452
|
* ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
|
|
1299
1453
|
*/
|
|
1300
1454
|
class DialogSettings {
|
|
1455
|
+
/**
|
|
1456
|
+
* Defines a predicate that verifies if the pressed dialog action should be prevented. Returning true from the predicate prevents the dialog from closing.
|
|
1457
|
+
* If the **Close** button of the title bar is clicked, `DialogResult` is a `DialogCloseResult` instance.
|
|
1458
|
+
* If the Dialog is closed through the action buttons, `DialogResult` contains the object that was passed when the Dialog was opened. ([see example](slug:service_dialog#toc-dialog-close-prevention))
|
|
1459
|
+
* @param {DialogResult} ev
|
|
1460
|
+
* @param {DialogRef} [dialogRef] - provided only when the dialog is created using a component.
|
|
1461
|
+
* @returns
|
|
1462
|
+
*/
|
|
1463
|
+
preventAction;
|
|
1464
|
+
/**
|
|
1465
|
+
* Sets the title of the Dialog. If `title` is omitted,
|
|
1466
|
+
* the Dialog will not render a **Close** button.
|
|
1467
|
+
*/
|
|
1468
|
+
title;
|
|
1469
|
+
/**
|
|
1470
|
+
* Sets the CSS classes that will be rendered on the Dialog wrapper element.
|
|
1471
|
+
* Supports the union type of values that NgClass accepts [ngClass](link:site.data.urls.angular['ngclassapi']).
|
|
1472
|
+
*/
|
|
1473
|
+
cssClass;
|
|
1474
|
+
/**
|
|
1475
|
+
* Configures the Dialog opening animation ([see example]({% slug animations_dialog %})).
|
|
1476
|
+
* By default the animation type is set to `translate` and its duration is `300ms`.
|
|
1477
|
+
*/
|
|
1478
|
+
animation;
|
|
1479
|
+
/**
|
|
1480
|
+
* Sets the HTML attributes of the Dialog wrapper element.
|
|
1481
|
+
* The property accepts string key-value based pairs.
|
|
1482
|
+
*/
|
|
1483
|
+
htmlAttributes;
|
|
1484
|
+
/**
|
|
1485
|
+
* Defines the content of the Dialog.
|
|
1486
|
+
* ([see example](slug:service_dialog#toc-rendering-the-content-area)).
|
|
1487
|
+
*/
|
|
1488
|
+
content;
|
|
1489
|
+
/**
|
|
1490
|
+
* Specifies the width of the Dialog.
|
|
1491
|
+
* A numeric value sets the width in pixels.
|
|
1492
|
+
* A string value sets the width in arbitrary units—for example, `50%`.
|
|
1493
|
+
*/
|
|
1494
|
+
width;
|
|
1495
|
+
/**
|
|
1496
|
+
* Specifies the minimum width of the Dialog.
|
|
1497
|
+
* A numeric value sets the minimum width in pixels.
|
|
1498
|
+
* A string value sets the minimum width in arbitrary units—for example, `50%`.
|
|
1499
|
+
*/
|
|
1500
|
+
minWidth;
|
|
1501
|
+
/**
|
|
1502
|
+
* Specifies the maximum width of the Dialog.
|
|
1503
|
+
* A numeric value sets the maximum width in pixels.
|
|
1504
|
+
* A string value sets the maximum width in arbitrary units—for example, `50%`.
|
|
1505
|
+
*/
|
|
1506
|
+
maxWidth;
|
|
1507
|
+
/**
|
|
1508
|
+
* Specifies the height of the Dialog.
|
|
1509
|
+
* A numeric value sets the height in pixels.
|
|
1510
|
+
* A string value sets the height in arbitrary units—for example, `50%`.
|
|
1511
|
+
*/
|
|
1512
|
+
height;
|
|
1513
|
+
/**
|
|
1514
|
+
* Specifies the minimum height of the Dialog.
|
|
1515
|
+
* A numeric value sets the minimum height in pixels.
|
|
1516
|
+
* A string value sets the minimum height in arbitrary units—for example, `50%`.
|
|
1517
|
+
*/
|
|
1518
|
+
minHeight;
|
|
1519
|
+
/**
|
|
1520
|
+
* Specifies the maximum height of the Dialog.
|
|
1521
|
+
* A numeric value sets the maximum height in pixels.
|
|
1522
|
+
* A string value sets the maximum height in arbitrary units—for example, `50%`.
|
|
1523
|
+
*/
|
|
1524
|
+
maxHeight;
|
|
1525
|
+
/**
|
|
1526
|
+
* Defines the container in which the Dialog will be inserted.
|
|
1527
|
+
* Specifying this option changes the place in the page hierarchy where the Dialog will be inserted.
|
|
1528
|
+
* The styling of the component will remain the same.
|
|
1529
|
+
*/
|
|
1530
|
+
appendTo;
|
|
1531
|
+
/**
|
|
1532
|
+
* Specifies the title of the close button.
|
|
1533
|
+
*/
|
|
1534
|
+
closeTitle;
|
|
1535
|
+
/**
|
|
1536
|
+
* Sets the action buttons of the Dialog.
|
|
1537
|
+
*/
|
|
1538
|
+
actions;
|
|
1539
|
+
/**
|
|
1540
|
+
* Specifies the layout of the action buttons in the Dialog.
|
|
1541
|
+
*/
|
|
1542
|
+
actionsLayout;
|
|
1543
|
+
/**
|
|
1544
|
+
* Sets the focused element query selector.
|
|
1545
|
+
*/
|
|
1546
|
+
autoFocusedElement;
|
|
1547
|
+
/**
|
|
1548
|
+
* Specifies the theme color of the Dialog.
|
|
1549
|
+
*/
|
|
1550
|
+
themeColor;
|
|
1301
1551
|
}
|
|
1302
1552
|
|
|
1303
1553
|
// eslint-disable max-line-length
|
|
1304
1554
|
const isNotComponent$1 = (component) => isString(component) || component instanceof TemplateRef;
|
|
1305
1555
|
class DialogInjector {
|
|
1556
|
+
getDialogRef;
|
|
1557
|
+
parentInjector;
|
|
1306
1558
|
constructor(getDialogRef, parentInjector) {
|
|
1307
1559
|
this.getDialogRef = getDialogRef;
|
|
1308
1560
|
this.parentInjector = parentInjector;
|
|
@@ -1319,6 +1571,8 @@ class DialogInjector {
|
|
|
1319
1571
|
* ([see example]({% slug service_dialog %})).
|
|
1320
1572
|
*/
|
|
1321
1573
|
class DialogService {
|
|
1574
|
+
resolver;
|
|
1575
|
+
containerService;
|
|
1322
1576
|
constructor(
|
|
1323
1577
|
/**
|
|
1324
1578
|
* @hidden
|
|
@@ -1501,10 +1755,10 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
|
|
|
1501
1755
|
]
|
|
1502
1756
|
};
|
|
1503
1757
|
}
|
|
1758
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogService, deps: [{ token: i0.ComponentFactoryResolver }, { token: DialogContainerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1759
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogService, providedIn: 'root' });
|
|
1504
1760
|
}
|
|
1505
|
-
|
|
1506
|
-
DialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogService, providedIn: 'root' });
|
|
1507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogService, decorators: [{
|
|
1761
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogService, decorators: [{
|
|
1508
1762
|
type: Injectable,
|
|
1509
1763
|
args: [{
|
|
1510
1764
|
providedIn: 'root'
|
|
@@ -1549,20 +1803,23 @@ const createMoveStream = (el, ev) => mouseDown => {
|
|
|
1549
1803
|
* @hidden
|
|
1550
1804
|
*/
|
|
1551
1805
|
class DragResizeService {
|
|
1806
|
+
ngZone;
|
|
1807
|
+
close = new EventEmitter();
|
|
1808
|
+
focus = new EventEmitter();
|
|
1809
|
+
change = new EventEmitter();
|
|
1810
|
+
stateChange = new EventEmitter();
|
|
1811
|
+
dragStart = new EventEmitter();
|
|
1812
|
+
dragEnd = new EventEmitter();
|
|
1813
|
+
resizeStart = new EventEmitter();
|
|
1814
|
+
resizeEnd = new EventEmitter();
|
|
1815
|
+
options = Object.assign({}, DEFAULT_OPTIONS);
|
|
1816
|
+
restoreOptions;
|
|
1817
|
+
window;
|
|
1818
|
+
lastAction = null;
|
|
1819
|
+
subscriptions = new Subscription();
|
|
1820
|
+
dragSubscription = new Subscription();
|
|
1552
1821
|
constructor(ngZone) {
|
|
1553
1822
|
this.ngZone = ngZone;
|
|
1554
|
-
this.close = new EventEmitter();
|
|
1555
|
-
this.focus = new EventEmitter();
|
|
1556
|
-
this.change = new EventEmitter();
|
|
1557
|
-
this.stateChange = new EventEmitter();
|
|
1558
|
-
this.dragStart = new EventEmitter();
|
|
1559
|
-
this.dragEnd = new EventEmitter();
|
|
1560
|
-
this.resizeStart = new EventEmitter();
|
|
1561
|
-
this.resizeEnd = new EventEmitter();
|
|
1562
|
-
this.options = Object.assign({}, DEFAULT_OPTIONS);
|
|
1563
|
-
this.lastAction = null;
|
|
1564
|
-
this.subscriptions = new Subscription();
|
|
1565
|
-
this.dragSubscription = new Subscription();
|
|
1566
1823
|
}
|
|
1567
1824
|
ngOnDestroy() {
|
|
1568
1825
|
if (this.subscriptions) {
|
|
@@ -1830,10 +2087,10 @@ class DragResizeService {
|
|
|
1830
2087
|
get windowViewPort() {
|
|
1831
2088
|
return getWindowViewPort(this.window.nativeElement);
|
|
1832
2089
|
}
|
|
2090
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DragResizeService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2091
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DragResizeService });
|
|
1833
2092
|
}
|
|
1834
|
-
|
|
1835
|
-
DragResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DragResizeService });
|
|
1836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DragResizeService, decorators: [{
|
|
2093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DragResizeService, decorators: [{
|
|
1837
2094
|
type: Injectable
|
|
1838
2095
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
1839
2096
|
|
|
@@ -1841,15 +2098,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1841
2098
|
* @hidden
|
|
1842
2099
|
*/
|
|
1843
2100
|
class ResizeHandleDirective {
|
|
2101
|
+
draggable;
|
|
2102
|
+
el;
|
|
2103
|
+
renderer;
|
|
2104
|
+
service;
|
|
2105
|
+
direction;
|
|
2106
|
+
get hostClass() {
|
|
2107
|
+
return true;
|
|
2108
|
+
}
|
|
2109
|
+
subscriptions = new Subscription();
|
|
1844
2110
|
constructor(draggable, el, renderer, service) {
|
|
1845
2111
|
this.draggable = draggable;
|
|
1846
2112
|
this.el = el;
|
|
1847
2113
|
this.renderer = renderer;
|
|
1848
2114
|
this.service = service;
|
|
1849
|
-
this.subscriptions = new Subscription();
|
|
1850
|
-
}
|
|
1851
|
-
get hostClass() {
|
|
1852
|
-
return true;
|
|
1853
2115
|
}
|
|
1854
2116
|
ngOnInit() {
|
|
1855
2117
|
this.setDisplay();
|
|
@@ -1878,10 +2140,10 @@ class ResizeHandleDirective {
|
|
|
1878
2140
|
setDisplay(value = 'block') {
|
|
1879
2141
|
this.renderer.setStyle(this.el.nativeElement, 'display', this.service.options.state === 'default' ? value : 'none');
|
|
1880
2142
|
}
|
|
2143
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResizeHandleDirective, deps: [{ token: i1$1.DraggableDirective, host: true }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2144
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ResizeHandleDirective, isStandalone: true, selector: "[kendoWindowResizeHandle]", inputs: { direction: "direction" }, host: { properties: { "class.k-resize-handle": "this.hostClass" } }, ngImport: i0 });
|
|
1881
2145
|
}
|
|
1882
|
-
|
|
1883
|
-
ResizeHandleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ResizeHandleDirective, isStandalone: true, selector: "[kendoWindowResizeHandle]", inputs: { direction: "direction" }, host: { properties: { "class.k-resize-handle": "this.hostClass" } }, ngImport: i0 });
|
|
1884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ResizeHandleDirective, decorators: [{
|
|
2146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResizeHandleDirective, decorators: [{
|
|
1885
2147
|
type: Directive,
|
|
1886
2148
|
args: [{
|
|
1887
2149
|
selector: '[kendoWindowResizeHandle]',
|
|
@@ -1897,6 +2159,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1897
2159
|
}] } });
|
|
1898
2160
|
|
|
1899
2161
|
class WindowTitleBarComponent {
|
|
2162
|
+
el;
|
|
2163
|
+
ngZone;
|
|
2164
|
+
/**
|
|
2165
|
+
* @hidden
|
|
2166
|
+
*/
|
|
2167
|
+
template;
|
|
2168
|
+
/**
|
|
2169
|
+
* @hidden
|
|
2170
|
+
*/
|
|
2171
|
+
id;
|
|
2172
|
+
/**
|
|
2173
|
+
* @hidden
|
|
2174
|
+
*/
|
|
2175
|
+
service;
|
|
2176
|
+
dragDirective;
|
|
2177
|
+
dragSubscription;
|
|
2178
|
+
stateSubscription;
|
|
1900
2179
|
constructor(el, service, ngZone) {
|
|
1901
2180
|
this.el = el;
|
|
1902
2181
|
this.ngZone = ngZone;
|
|
@@ -1991,16 +2270,16 @@ class WindowTitleBarComponent {
|
|
|
1991
2270
|
const options = this.service.options;
|
|
1992
2271
|
return options.draggable && options.state !== 'maximized';
|
|
1993
2272
|
}
|
|
1994
|
-
}
|
|
1995
|
-
|
|
1996
|
-
WindowTitleBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WindowTitleBarComponent, isStandalone: true, selector: "kendo-window-titlebar", inputs: { template: "template", id: "id" }, host: { listeners: { "dblclick": "handle($event)" }, properties: { "class.k-window-titlebar": "this.className", "style.touch-action": "this.touchAction" } }, ngImport: i0, template: `
|
|
2273
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowTitleBarComponent, deps: [{ token: i0.ElementRef }, { token: DragResizeService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2274
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: WindowTitleBarComponent, isStandalone: true, selector: "kendo-window-titlebar", inputs: { template: "template", id: "id" }, host: { listeners: { "dblclick": "handle($event)" }, properties: { "class.k-window-titlebar": "this.className", "style.touch-action": "this.touchAction" } }, ngImport: i0, template: `
|
|
1997
2275
|
<ng-content *ngIf="!template"></ng-content>
|
|
1998
2276
|
<ng-template
|
|
1999
2277
|
[ngTemplateOutlet]="template"
|
|
2000
2278
|
[ngTemplateOutletContext]="{'$implicit': service}" *ngIf="template">
|
|
2001
2279
|
</ng-template>
|
|
2002
2280
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
2003
|
-
|
|
2281
|
+
}
|
|
2282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowTitleBarComponent, decorators: [{
|
|
2004
2283
|
type: Component,
|
|
2005
2284
|
args: [{
|
|
2006
2285
|
selector: 'kendo-window-titlebar',
|
|
@@ -2033,6 +2312,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2033
2312
|
* @hidden
|
|
2034
2313
|
*/
|
|
2035
2314
|
class NavigationService {
|
|
2315
|
+
window;
|
|
2316
|
+
ngZone;
|
|
2036
2317
|
constructor(window, ngZone) {
|
|
2037
2318
|
this.window = window;
|
|
2038
2319
|
this.ngZone = ngZone;
|
|
@@ -2166,22 +2447,26 @@ class NavigationService {
|
|
|
2166
2447
|
}
|
|
2167
2448
|
}
|
|
2168
2449
|
}
|
|
2450
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService, deps: [{ token: DragResizeService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2451
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService });
|
|
2169
2452
|
}
|
|
2170
|
-
|
|
2171
|
-
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NavigationService });
|
|
2172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NavigationService, decorators: [{
|
|
2453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService, decorators: [{
|
|
2173
2454
|
type: Injectable
|
|
2174
2455
|
}], ctorParameters: function () { return [{ type: DragResizeService }, { type: i0.NgZone }]; } });
|
|
2175
2456
|
|
|
2176
2457
|
class WindowCloseActionDirective extends Button {
|
|
2458
|
+
/**
|
|
2459
|
+
* @hidden
|
|
2460
|
+
*/
|
|
2461
|
+
window;
|
|
2462
|
+
/**
|
|
2463
|
+
* @hidden
|
|
2464
|
+
*/
|
|
2465
|
+
xIcon = xIcon;
|
|
2466
|
+
buttonType = 'button';
|
|
2467
|
+
buttonClass = true;
|
|
2177
2468
|
constructor(el, renderer, _service, localization, ngZone) {
|
|
2178
2469
|
super(el, renderer, null, localization, ngZone);
|
|
2179
|
-
/**
|
|
2180
|
-
* @hidden
|
|
2181
|
-
*/
|
|
2182
|
-
this.xIcon = xIcon;
|
|
2183
|
-
this.buttonType = 'button';
|
|
2184
|
-
this.buttonClass = true;
|
|
2185
2470
|
this.window = _service;
|
|
2186
2471
|
this.fillMode = 'flat';
|
|
2187
2472
|
this.icon = 'x';
|
|
@@ -2194,15 +2479,14 @@ class WindowCloseActionDirective extends Button {
|
|
|
2194
2479
|
this.window.closeAction();
|
|
2195
2480
|
}
|
|
2196
2481
|
}
|
|
2197
|
-
}
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
], exportAs: ["kendoWindowCloseAction"], usesInheritance: true, ngImport: i0, template: `
|
|
2482
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowCloseActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2483
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: [
|
|
2484
|
+
LocalizationService,
|
|
2485
|
+
{
|
|
2486
|
+
provide: L10N_PREFIX,
|
|
2487
|
+
useValue: 'kendo.button'
|
|
2488
|
+
}
|
|
2489
|
+
], exportAs: ["kendoWindowCloseAction"], usesInheritance: true, ngImport: i0, template: `
|
|
2206
2490
|
<kendo-icon-wrapper
|
|
2207
2491
|
*ngIf="!imageUrl && !iconClass"
|
|
2208
2492
|
innerCssClass="k-button-icon"
|
|
@@ -2215,7 +2499,8 @@ WindowCloseActionDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0
|
|
|
2215
2499
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
2216
2500
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
2217
2501
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }] });
|
|
2218
|
-
|
|
2502
|
+
}
|
|
2503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowCloseActionDirective, decorators: [{
|
|
2219
2504
|
type: Component,
|
|
2220
2505
|
args: [{
|
|
2221
2506
|
exportAs: 'kendoWindowCloseAction',
|
|
@@ -2259,14 +2544,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2259
2544
|
}] } });
|
|
2260
2545
|
|
|
2261
2546
|
class WindowRestoreActionDirective extends Button {
|
|
2547
|
+
/**
|
|
2548
|
+
* @hidden
|
|
2549
|
+
*/
|
|
2550
|
+
window;
|
|
2551
|
+
/**
|
|
2552
|
+
* @hidden
|
|
2553
|
+
*/
|
|
2554
|
+
windowRestoreIcon = windowRestoreIcon;
|
|
2555
|
+
buttonType = 'button';
|
|
2556
|
+
buttonClass = true;
|
|
2262
2557
|
constructor(el, renderer, _service, localization, ngZone) {
|
|
2263
2558
|
super(el, renderer, null, localization, ngZone);
|
|
2264
|
-
/**
|
|
2265
|
-
* @hidden
|
|
2266
|
-
*/
|
|
2267
|
-
this.windowRestoreIcon = windowRestoreIcon;
|
|
2268
|
-
this.buttonType = 'button';
|
|
2269
|
-
this.buttonClass = true;
|
|
2270
2559
|
this.window = _service;
|
|
2271
2560
|
this.fillMode = 'flat';
|
|
2272
2561
|
this.icon = 'window-restore';
|
|
@@ -2282,15 +2571,14 @@ class WindowRestoreActionDirective extends Button {
|
|
|
2282
2571
|
get visible() {
|
|
2283
2572
|
return this.window.options.state === 'default' ? 'none' : 'inline-flex';
|
|
2284
2573
|
}
|
|
2285
|
-
}
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
], exportAs: ["kendoWindowRestoreAction"], usesInheritance: true, ngImport: i0, template: `
|
|
2574
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowRestoreActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2575
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: WindowRestoreActionDirective, isStandalone: true, selector: "button[kendoWindowRestoreAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass", "style.display": "this.visible" } }, providers: [
|
|
2576
|
+
LocalizationService,
|
|
2577
|
+
{
|
|
2578
|
+
provide: L10N_PREFIX,
|
|
2579
|
+
useValue: 'kendo.button'
|
|
2580
|
+
}
|
|
2581
|
+
], exportAs: ["kendoWindowRestoreAction"], usesInheritance: true, ngImport: i0, template: `
|
|
2294
2582
|
<kendo-icon-wrapper
|
|
2295
2583
|
*ngIf="!imageUrl && !iconClass"
|
|
2296
2584
|
innerCssClass="k-button-icon"
|
|
@@ -2303,7 +2591,8 @@ WindowRestoreActionDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
|
|
|
2303
2591
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
2304
2592
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
2305
2593
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }] });
|
|
2306
|
-
|
|
2594
|
+
}
|
|
2595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowRestoreActionDirective, decorators: [{
|
|
2307
2596
|
type: Component,
|
|
2308
2597
|
args: [{
|
|
2309
2598
|
exportAs: 'kendoWindowRestoreAction',
|
|
@@ -2350,14 +2639,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2350
2639
|
}] } });
|
|
2351
2640
|
|
|
2352
2641
|
class WindowMaximizeActionDirective extends Button {
|
|
2642
|
+
/**
|
|
2643
|
+
* @hidden
|
|
2644
|
+
*/
|
|
2645
|
+
window;
|
|
2646
|
+
buttonType = 'button';
|
|
2647
|
+
buttonClass = true;
|
|
2648
|
+
/**
|
|
2649
|
+
* @hidden
|
|
2650
|
+
*/
|
|
2651
|
+
windowIcon = windowIcon;
|
|
2353
2652
|
constructor(el, renderer, _service, localization, ngZone) {
|
|
2354
2653
|
super(el, renderer, null, localization, ngZone);
|
|
2355
|
-
this.buttonType = 'button';
|
|
2356
|
-
this.buttonClass = true;
|
|
2357
|
-
/**
|
|
2358
|
-
* @hidden
|
|
2359
|
-
*/
|
|
2360
|
-
this.windowIcon = windowIcon;
|
|
2361
2654
|
this.window = _service;
|
|
2362
2655
|
this.fillMode = 'flat';
|
|
2363
2656
|
this.icon = 'window';
|
|
@@ -2373,15 +2666,14 @@ class WindowMaximizeActionDirective extends Button {
|
|
|
2373
2666
|
get visible() {
|
|
2374
2667
|
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
2375
2668
|
}
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
], exportAs: ["kendoWindowMaximizeAction"], usesInheritance: true, ngImport: i0, template: `
|
|
2669
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowMaximizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2670
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: [
|
|
2671
|
+
LocalizationService,
|
|
2672
|
+
{
|
|
2673
|
+
provide: L10N_PREFIX,
|
|
2674
|
+
useValue: 'kendo.button'
|
|
2675
|
+
}
|
|
2676
|
+
], exportAs: ["kendoWindowMaximizeAction"], usesInheritance: true, ngImport: i0, template: `
|
|
2385
2677
|
<kendo-icon-wrapper
|
|
2386
2678
|
*ngIf="!imageUrl && !iconClass"
|
|
2387
2679
|
innerCssClass="k-button-icon"
|
|
@@ -2394,7 +2686,8 @@ WindowMaximizeActionDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
|
|
|
2394
2686
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
2395
2687
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
2396
2688
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }] });
|
|
2397
|
-
|
|
2689
|
+
}
|
|
2690
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowMaximizeActionDirective, decorators: [{
|
|
2398
2691
|
type: Component,
|
|
2399
2692
|
args: [{
|
|
2400
2693
|
exportAs: 'kendoWindowMaximizeAction',
|
|
@@ -2441,14 +2734,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2441
2734
|
}] } });
|
|
2442
2735
|
|
|
2443
2736
|
class WindowMinimizeActionDirective extends Button {
|
|
2737
|
+
/**
|
|
2738
|
+
* @hidden
|
|
2739
|
+
*/
|
|
2740
|
+
window;
|
|
2741
|
+
buttonType = 'button';
|
|
2742
|
+
buttonClass = true;
|
|
2743
|
+
/**
|
|
2744
|
+
* @hidden
|
|
2745
|
+
*/
|
|
2746
|
+
windowMinimizeIcon = windowMinimizeIcon;
|
|
2444
2747
|
constructor(el, renderer, _service, localization, ngZone) {
|
|
2445
2748
|
super(el, renderer, null, localization, ngZone);
|
|
2446
|
-
this.buttonType = 'button';
|
|
2447
|
-
this.buttonClass = true;
|
|
2448
|
-
/**
|
|
2449
|
-
* @hidden
|
|
2450
|
-
*/
|
|
2451
|
-
this.windowMinimizeIcon = windowMinimizeIcon;
|
|
2452
2749
|
this.window = _service;
|
|
2453
2750
|
this.fillMode = 'flat';
|
|
2454
2751
|
this.icon = 'window-minimize';
|
|
@@ -2464,15 +2761,14 @@ class WindowMinimizeActionDirective extends Button {
|
|
|
2464
2761
|
get visible() {
|
|
2465
2762
|
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
2466
2763
|
}
|
|
2467
|
-
}
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
], exportAs: ["kendoWindowMinimizeAction"], usesInheritance: true, ngImport: i0, template: `
|
|
2764
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowMinimizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2765
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: [
|
|
2766
|
+
LocalizationService,
|
|
2767
|
+
{
|
|
2768
|
+
provide: L10N_PREFIX,
|
|
2769
|
+
useValue: 'kendo.button'
|
|
2770
|
+
}
|
|
2771
|
+
], exportAs: ["kendoWindowMinimizeAction"], usesInheritance: true, ngImport: i0, template: `
|
|
2476
2772
|
<kendo-icon-wrapper
|
|
2477
2773
|
*ngIf="!imageUrl && !iconClass"
|
|
2478
2774
|
innerCssClass="k-button-icon"
|
|
@@ -2485,7 +2781,8 @@ WindowMinimizeActionDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
|
|
|
2485
2781
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
2486
2782
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
2487
2783
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }] });
|
|
2488
|
-
|
|
2784
|
+
}
|
|
2785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowMinimizeActionDirective, decorators: [{
|
|
2489
2786
|
type: Component,
|
|
2490
2787
|
args: [{
|
|
2491
2788
|
exportAs: 'kendoWindowMinimizeAction',
|
|
@@ -2535,92 +2832,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2535
2832
|
* Represents the [Kendo UI Window component for Angular]({% slug overview_window_dialogs %}).
|
|
2536
2833
|
*/
|
|
2537
2834
|
class WindowComponent {
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
*/
|
|
2553
|
-
this.dragStart = new EventEmitter();
|
|
2554
|
-
/**
|
|
2555
|
-
* Fires when the Window was moved by the user.
|
|
2556
|
-
*/
|
|
2557
|
-
this.dragEnd = new EventEmitter();
|
|
2558
|
-
/**
|
|
2559
|
-
* Fires when the user starts to resize the Window.
|
|
2560
|
-
*/
|
|
2561
|
-
this.resizeStart = new EventEmitter();
|
|
2562
|
-
/**
|
|
2563
|
-
* Fires when the Window was resized by the user.
|
|
2564
|
-
*/
|
|
2565
|
-
this.resizeEnd = new EventEmitter();
|
|
2566
|
-
/**
|
|
2567
|
-
* Fires when the user closes the Window.
|
|
2568
|
-
*/
|
|
2569
|
-
this.close = new EventEmitter();
|
|
2570
|
-
/**
|
|
2571
|
-
* Fires when the `width` property of the component was updated. The event is triggered only after the resizing
|
|
2572
|
-
* has ended. The event data contains the new width. Allows a two-way binding of the `width` property.
|
|
2573
|
-
*/
|
|
2574
|
-
this.widthChange = new EventEmitter();
|
|
2575
|
-
/**
|
|
2576
|
-
* Fires when the `height` property of the component was updated. The event is triggered only after the resizing
|
|
2577
|
-
* has ended. The event data contains the new height. Allows a two-way binding of the `height` property.
|
|
2578
|
-
*/
|
|
2579
|
-
this.heightChange = new EventEmitter();
|
|
2580
|
-
/**
|
|
2581
|
-
* Fires when the `top` property of the component was updated. The event is triggered only after the dragging
|
|
2582
|
-
* and resizing have ended. The event data contains the new top offset. Allows a two-way binding of the `top` property.
|
|
2583
|
-
*/
|
|
2584
|
-
this.topChange = new EventEmitter();
|
|
2585
|
-
/**
|
|
2586
|
-
* Fires when the `left` property of the component was updated. The event is triggered only after the dragging
|
|
2587
|
-
* and resizing have ended. The event data contains the new left offset. Allows a two-way binding of the `left` property.
|
|
2588
|
-
*/
|
|
2589
|
-
this.leftChange = new EventEmitter();
|
|
2590
|
-
/**
|
|
2591
|
-
* Fires when the `state` property of the component was updated. The event data contains the new state. Allows a
|
|
2592
|
-
* two-way binding of the `state` property.
|
|
2593
|
-
*/
|
|
2594
|
-
this.stateChange = new EventEmitter();
|
|
2595
|
-
/**
|
|
2596
|
-
* @hidden
|
|
2597
|
-
*/
|
|
2598
|
-
this.messages = {};
|
|
2599
|
-
/**
|
|
2600
|
-
* @hidden
|
|
2601
|
-
*/
|
|
2602
|
-
this.showLicenseWatermark = false;
|
|
2603
|
-
this.tabIndex = 0;
|
|
2604
|
-
this.role = 'dialog';
|
|
2605
|
-
this.hostClass = true;
|
|
2606
|
-
/**
|
|
2607
|
-
* @hidden
|
|
2608
|
-
*/
|
|
2609
|
-
this.titleId = null;
|
|
2610
|
-
this._themeColor = null;
|
|
2611
|
-
this.draged = false;
|
|
2612
|
-
this.resized = false;
|
|
2613
|
-
this.windowSubscription = new Subscription();
|
|
2614
|
-
this.domSubs = new Subscription();
|
|
2615
|
-
const isValid = validatePackage(packageMetadata);
|
|
2616
|
-
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
2617
|
-
this.direction = this.localization.rtl ? 'rtl' : 'ltr';
|
|
2618
|
-
this.localizationChangeSubscription = this.localization.changes
|
|
2619
|
-
.subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr');
|
|
2620
|
-
this.resizeDirections = RESIZE_DIRECTIONS;
|
|
2621
|
-
this.subscribeEvents();
|
|
2622
|
-
this.titleId = this.generateTitleId();
|
|
2623
|
-
}
|
|
2835
|
+
el;
|
|
2836
|
+
renderer;
|
|
2837
|
+
service;
|
|
2838
|
+
navigation;
|
|
2839
|
+
ngZone;
|
|
2840
|
+
localization;
|
|
2841
|
+
/**
|
|
2842
|
+
* Specifies the query selector used to set the initial focus ([see examples]({% slug initial_focus_window %})).
|
|
2843
|
+
*/
|
|
2844
|
+
autoFocusedElement;
|
|
2845
|
+
/**
|
|
2846
|
+
* Specifies the text that is rendered in the title bar.
|
|
2847
|
+
*/
|
|
2848
|
+
title;
|
|
2624
2849
|
/**
|
|
2625
2850
|
* Specifies whether the user will be able to drag the component.
|
|
2626
2851
|
* @default true
|
|
@@ -2686,6 +2911,11 @@ class WindowComponent {
|
|
|
2686
2911
|
get htmlAttributes() {
|
|
2687
2912
|
return this._htmlAttributes;
|
|
2688
2913
|
}
|
|
2914
|
+
/**
|
|
2915
|
+
* Specifies if the content of the component is persisted in the DOM when minimized.
|
|
2916
|
+
* @default false
|
|
2917
|
+
*/
|
|
2918
|
+
keepContent = false;
|
|
2689
2919
|
/**
|
|
2690
2920
|
* Specifies the initial state of the component.
|
|
2691
2921
|
* If not specified, the value is set to `default`.
|
|
@@ -2787,9 +3017,106 @@ class WindowComponent {
|
|
|
2787
3017
|
}
|
|
2788
3018
|
return this.localization.get('minimizeTitle');
|
|
2789
3019
|
}
|
|
3020
|
+
/**
|
|
3021
|
+
* Fires when the user starts to move the Window.
|
|
3022
|
+
*/
|
|
3023
|
+
dragStart = new EventEmitter();
|
|
3024
|
+
/**
|
|
3025
|
+
* Fires when the Window was moved by the user.
|
|
3026
|
+
*/
|
|
3027
|
+
dragEnd = new EventEmitter();
|
|
3028
|
+
/**
|
|
3029
|
+
* Fires when the user starts to resize the Window.
|
|
3030
|
+
*/
|
|
3031
|
+
resizeStart = new EventEmitter();
|
|
3032
|
+
/**
|
|
3033
|
+
* Fires when the Window was resized by the user.
|
|
3034
|
+
*/
|
|
3035
|
+
resizeEnd = new EventEmitter();
|
|
3036
|
+
/**
|
|
3037
|
+
* Fires when the user closes the Window.
|
|
3038
|
+
*/
|
|
3039
|
+
close = new EventEmitter();
|
|
3040
|
+
/**
|
|
3041
|
+
* Fires when the `width` property of the component was updated. The event is triggered only after the resizing
|
|
3042
|
+
* has ended. The event data contains the new width. Allows a two-way binding of the `width` property.
|
|
3043
|
+
*/
|
|
3044
|
+
widthChange = new EventEmitter();
|
|
3045
|
+
/**
|
|
3046
|
+
* Fires when the `height` property of the component was updated. The event is triggered only after the resizing
|
|
3047
|
+
* has ended. The event data contains the new height. Allows a two-way binding of the `height` property.
|
|
3048
|
+
*/
|
|
3049
|
+
heightChange = new EventEmitter();
|
|
3050
|
+
/**
|
|
3051
|
+
* Fires when the `top` property of the component was updated. The event is triggered only after the dragging
|
|
3052
|
+
* and resizing have ended. The event data contains the new top offset. Allows a two-way binding of the `top` property.
|
|
3053
|
+
*/
|
|
3054
|
+
topChange = new EventEmitter();
|
|
3055
|
+
/**
|
|
3056
|
+
* Fires when the `left` property of the component was updated. The event is triggered only after the dragging
|
|
3057
|
+
* and resizing have ended. The event data contains the new left offset. Allows a two-way binding of the `left` property.
|
|
3058
|
+
*/
|
|
3059
|
+
leftChange = new EventEmitter();
|
|
3060
|
+
/**
|
|
3061
|
+
* Fires when the `state` property of the component was updated. The event data contains the new state. Allows a
|
|
3062
|
+
* two-way binding of the `state` property.
|
|
3063
|
+
*/
|
|
3064
|
+
stateChange = new EventEmitter();
|
|
3065
|
+
/**
|
|
3066
|
+
* @hidden
|
|
3067
|
+
*/
|
|
3068
|
+
contentTemplate;
|
|
3069
|
+
/**
|
|
3070
|
+
* @hidden
|
|
3071
|
+
*/
|
|
3072
|
+
titleBarTemplate;
|
|
3073
|
+
/**
|
|
3074
|
+
* @hidden
|
|
3075
|
+
*/
|
|
3076
|
+
messages = {};
|
|
3077
|
+
/**
|
|
3078
|
+
* @hidden
|
|
3079
|
+
*/
|
|
3080
|
+
showLicenseWatermark = false;
|
|
3081
|
+
tabIndex = 0;
|
|
3082
|
+
role = 'dialog';
|
|
3083
|
+
hostClass = true;
|
|
2790
3084
|
get dir() {
|
|
2791
3085
|
return this.direction;
|
|
2792
3086
|
}
|
|
3087
|
+
titleBarView;
|
|
3088
|
+
titleBarContent;
|
|
3089
|
+
resizeHandles;
|
|
3090
|
+
resizeDirections;
|
|
3091
|
+
/**
|
|
3092
|
+
* @hidden
|
|
3093
|
+
*/
|
|
3094
|
+
titleId = null;
|
|
3095
|
+
_htmlAttributes;
|
|
3096
|
+
_cssClass;
|
|
3097
|
+
_themeColor = null;
|
|
3098
|
+
direction;
|
|
3099
|
+
draged = false;
|
|
3100
|
+
resized = false;
|
|
3101
|
+
windowSubscription = new Subscription();
|
|
3102
|
+
domSubs = new Subscription();
|
|
3103
|
+
localizationChangeSubscription;
|
|
3104
|
+
constructor(el, renderer, service, navigation, ngZone, localization) {
|
|
3105
|
+
this.el = el;
|
|
3106
|
+
this.renderer = renderer;
|
|
3107
|
+
this.service = service;
|
|
3108
|
+
this.navigation = navigation;
|
|
3109
|
+
this.ngZone = ngZone;
|
|
3110
|
+
this.localization = localization;
|
|
3111
|
+
const isValid = validatePackage(packageMetadata);
|
|
3112
|
+
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
3113
|
+
this.direction = this.localization.rtl ? 'rtl' : 'ltr';
|
|
3114
|
+
this.localizationChangeSubscription = this.localization.changes
|
|
3115
|
+
.subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr');
|
|
3116
|
+
this.resizeDirections = RESIZE_DIRECTIONS;
|
|
3117
|
+
this.subscribeEvents();
|
|
3118
|
+
this.titleId = this.generateTitleId();
|
|
3119
|
+
}
|
|
2793
3120
|
ngAfterViewInit() {
|
|
2794
3121
|
if (!isDocumentAvailable()) {
|
|
2795
3122
|
return;
|
|
@@ -3081,17 +3408,16 @@ class WindowComponent {
|
|
|
3081
3408
|
this.renderer.addClass(wrapper, classToAdd);
|
|
3082
3409
|
}
|
|
3083
3410
|
}
|
|
3084
|
-
}
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
}
|
|
3094
|
-
], queries: [{ propertyName: "titleBarContent", first: true, predicate: WindowTitleBarComponent, descendants: true }], viewQueries: [{ propertyName: "titleBarView", first: true, predicate: WindowTitleBarComponent, descendants: true }, { propertyName: "resizeHandles", predicate: ResizeHandleDirective, descendants: true }], exportAs: ["kendoWindow"], usesOnChanges: true, ngImport: i0, template: `
|
|
3411
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService }, { token: NavigationService }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3412
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: WindowComponent, isStandalone: true, selector: "kendo-window", inputs: { autoFocusedElement: "autoFocusedElement", title: "title", draggable: "draggable", resizable: "resizable", themeColor: "themeColor", keepContent: "keepContent", state: "state", minWidth: "minWidth", minHeight: "minHeight", width: "width", height: "height", top: "top", left: "left" }, outputs: { dragStart: "dragStart", dragEnd: "dragEnd", resizeStart: "resizeStart", resizeEnd: "resizeEnd", close: "close", widthChange: "widthChange", heightChange: "heightChange", topChange: "topChange", leftChange: "leftChange", stateChange: "stateChange" }, host: { listeners: { "focus": "onComponentFocus()", "blur": "onComponentBlur()" }, properties: { "attr.tabIndex": "this.tabIndex", "attr.role": "this.role", "class.k-window": "this.hostClass", "attr.dir": "this.dir", "style.minWidth": "this.styleMinWidth", "style.minHeight": "this.styleMinHeight", "style.position": "this.stylePosition", "class.k-window-maximized": "this.wrapperMaximizedClass", "class.k-window-minimized": "this.wrapperMinimizedClass" } }, providers: [
|
|
3413
|
+
DragResizeService,
|
|
3414
|
+
NavigationService,
|
|
3415
|
+
LocalizationService,
|
|
3416
|
+
{
|
|
3417
|
+
provide: L10N_PREFIX,
|
|
3418
|
+
useValue: 'kendo.window'
|
|
3419
|
+
}
|
|
3420
|
+
], queries: [{ propertyName: "titleBarContent", first: true, predicate: WindowTitleBarComponent, descendants: true }], viewQueries: [{ propertyName: "titleBarView", first: true, predicate: WindowTitleBarComponent, descendants: true }, { propertyName: "resizeHandles", predicate: ResizeHandleDirective, descendants: true }], exportAs: ["kendoWindow"], usesOnChanges: true, ngImport: i0, template: `
|
|
3095
3421
|
<ng-container kendoWindowLocalizedMessages
|
|
3096
3422
|
i18n-closeTitle="kendo.window.closeTitle|The title of the close button"
|
|
3097
3423
|
closeTitle="Close"
|
|
@@ -3136,7 +3462,8 @@ WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
3136
3462
|
|
|
3137
3463
|
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
3138
3464
|
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template", "id"] }, { kind: "component", type: WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { kind: "component", type: WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { kind: "component", type: WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { kind: "component", type: WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: ["direction"] }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }] });
|
|
3139
|
-
|
|
3465
|
+
}
|
|
3466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowComponent, decorators: [{
|
|
3140
3467
|
type: Component,
|
|
3141
3468
|
args: [{
|
|
3142
3469
|
exportAs: 'kendoWindow',
|
|
@@ -3300,6 +3627,31 @@ class WindowCloseResult {
|
|
|
3300
3627
|
* ([see example]({% slug api_dialog_windowservice %}#toc-open)).
|
|
3301
3628
|
*/
|
|
3302
3629
|
class WindowRef {
|
|
3630
|
+
/**
|
|
3631
|
+
* A reference to the Window instance.
|
|
3632
|
+
*/
|
|
3633
|
+
window;
|
|
3634
|
+
/**
|
|
3635
|
+
* A reference to the child component of the Window.
|
|
3636
|
+
* Available when the Window is opened with
|
|
3637
|
+
* [component content](slug:service_window#toc-rendering-the-content-area).
|
|
3638
|
+
*/
|
|
3639
|
+
content;
|
|
3640
|
+
/**
|
|
3641
|
+
* Allows you to close the Window by using code.
|
|
3642
|
+
* When called with no arguments,
|
|
3643
|
+
* the `result` Observable will be of type WindowCloseResult.
|
|
3644
|
+
* When called with an argument, the `result` Observable will hold the provided value.
|
|
3645
|
+
*/
|
|
3646
|
+
close;
|
|
3647
|
+
/**
|
|
3648
|
+
* Emits events when the Window is closed through the **Esc** key, the **Close** button of the title bar or
|
|
3649
|
+
* by calling the `close` method.
|
|
3650
|
+
* When the Window is closed with the title bar button, **Esc** or by calling `close` with no arguments,
|
|
3651
|
+
* the result is of type [WindowCloseResult]({% slug api_dialog_windowcloseresult %}).
|
|
3652
|
+
* When `close` is called with an argument, the result is the passed argument.
|
|
3653
|
+
*/
|
|
3654
|
+
result;
|
|
3303
3655
|
}
|
|
3304
3656
|
|
|
3305
3657
|
/**
|
|
@@ -3307,23 +3659,114 @@ class WindowRef {
|
|
|
3307
3659
|
* ([see example]({% slug api_dialog_windowservice %}#toc-open)).
|
|
3308
3660
|
*/
|
|
3309
3661
|
class WindowSettings {
|
|
3662
|
+
/**
|
|
3663
|
+
* Defines a predicate that verifies if the closing of the Window should be prevented.
|
|
3664
|
+
* It applies to clicking the **Close** button of the title bar, pressing the **Esc** key or calling the `close` method.
|
|
3665
|
+
* Returning true from the predicate prevents the Window from closing.
|
|
3666
|
+
* If the **Close** button of the title bar is clicked or **Esc** is pressed, a [WindowCloseResult]({% slug api_dialog_windowcloseresult %}) instance is passed.
|
|
3667
|
+
* @param {any} ev
|
|
3668
|
+
* @param {WindowRef} [windowRef] - provided only when the window is created using a component.
|
|
3669
|
+
* @returns
|
|
3670
|
+
*/
|
|
3671
|
+
preventClose;
|
|
3672
|
+
/**
|
|
3673
|
+
* Sets the title of the Window.
|
|
3674
|
+
*/
|
|
3675
|
+
title;
|
|
3676
|
+
/**
|
|
3677
|
+
* Defines the content of the Window.
|
|
3678
|
+
*/
|
|
3679
|
+
content;
|
|
3680
|
+
/**
|
|
3681
|
+
* Defines the content of the title bar.
|
|
3682
|
+
*/
|
|
3683
|
+
titleBarContent;
|
|
3684
|
+
/**
|
|
3685
|
+
* Defines the text of the labels that are shown within the Window.
|
|
3686
|
+
* Used primarily for localization.
|
|
3687
|
+
*/
|
|
3688
|
+
messages;
|
|
3689
|
+
/**
|
|
3690
|
+
* Specifies if the content of the Window is persisted in the DOM
|
|
3691
|
+
* when the Window is minimized.
|
|
3692
|
+
*/
|
|
3693
|
+
keepContent;
|
|
3694
|
+
/**
|
|
3695
|
+
* Specifies the width of the Window.
|
|
3696
|
+
*/
|
|
3697
|
+
width;
|
|
3698
|
+
/**
|
|
3699
|
+
* Specifies the minimum width of the Window.
|
|
3700
|
+
*/
|
|
3701
|
+
minWidth;
|
|
3702
|
+
/**
|
|
3703
|
+
* Specifies the height of the Window.
|
|
3704
|
+
*/
|
|
3705
|
+
height;
|
|
3706
|
+
/**
|
|
3707
|
+
* Specifies the minimum height of the Window.
|
|
3708
|
+
*/
|
|
3709
|
+
minHeight;
|
|
3710
|
+
/**
|
|
3711
|
+
* Specifies the left offset of the Window.
|
|
3712
|
+
*/
|
|
3713
|
+
left;
|
|
3714
|
+
/**
|
|
3715
|
+
* Specifies the top offset of the Window.
|
|
3716
|
+
*/
|
|
3717
|
+
top;
|
|
3718
|
+
/**
|
|
3719
|
+
* Specifies is the Window is draggable.
|
|
3720
|
+
*/
|
|
3721
|
+
draggable;
|
|
3722
|
+
/**
|
|
3723
|
+
* Sets the custom CSS classes that will be rendered on the Window wrapper element.
|
|
3724
|
+
* Supports the union type of values that NgClass accepts [ngClass](link:site.data.urls.angular['ngclassapi']).
|
|
3725
|
+
*/
|
|
3726
|
+
cssClass;
|
|
3727
|
+
/**
|
|
3728
|
+
* Sets the HTML attributes of the Window wrapper element.
|
|
3729
|
+
* The property accepts string key-value based pairs.
|
|
3730
|
+
*/
|
|
3731
|
+
htmlAttributes;
|
|
3732
|
+
/**
|
|
3733
|
+
* Specifies if the Window is resizable.
|
|
3734
|
+
*/
|
|
3735
|
+
resizable;
|
|
3736
|
+
/**
|
|
3737
|
+
* Specifies the initial state of the Window.
|
|
3738
|
+
*/
|
|
3739
|
+
state;
|
|
3740
|
+
/**
|
|
3741
|
+
* Defines the container in which the Window will be inserted.
|
|
3742
|
+
* Specifying this option changes the place in the page hierarchy where the Window will be inserted.
|
|
3743
|
+
*/
|
|
3744
|
+
appendTo;
|
|
3745
|
+
/**
|
|
3746
|
+
* Sets the focused element query selector.
|
|
3747
|
+
*/
|
|
3748
|
+
autoFocusedElement;
|
|
3749
|
+
/**
|
|
3750
|
+
* Sets the theme color of the Window.
|
|
3751
|
+
*/
|
|
3752
|
+
themeColor;
|
|
3310
3753
|
}
|
|
3311
3754
|
|
|
3312
3755
|
/**
|
|
3313
3756
|
* @hidden
|
|
3314
3757
|
*/
|
|
3315
3758
|
class WindowContainerService {
|
|
3759
|
+
static container = null;
|
|
3316
3760
|
set container(container) {
|
|
3317
3761
|
WindowContainerService.container = container;
|
|
3318
3762
|
}
|
|
3319
3763
|
get container() {
|
|
3320
3764
|
return WindowContainerService.container;
|
|
3321
3765
|
}
|
|
3766
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3767
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowContainerService, providedIn: 'root' });
|
|
3322
3768
|
}
|
|
3323
|
-
|
|
3324
|
-
WindowContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WindowContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3325
|
-
WindowContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WindowContainerService, providedIn: 'root' });
|
|
3326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WindowContainerService, decorators: [{
|
|
3769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowContainerService, decorators: [{
|
|
3327
3770
|
type: Injectable,
|
|
3328
3771
|
args: [{
|
|
3329
3772
|
providedIn: 'root'
|
|
@@ -3332,6 +3775,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3332
3775
|
|
|
3333
3776
|
const isNotComponent = (component) => isString(component) || component instanceof TemplateRef;
|
|
3334
3777
|
class WindowInjector {
|
|
3778
|
+
getWindowRef;
|
|
3779
|
+
parentInjector;
|
|
3335
3780
|
constructor(getWindowRef, parentInjector) {
|
|
3336
3781
|
this.getWindowRef = getWindowRef;
|
|
3337
3782
|
this.parentInjector = parentInjector;
|
|
@@ -3348,6 +3793,8 @@ class WindowInjector {
|
|
|
3348
3793
|
* ([see example]({% slug service_window %})).
|
|
3349
3794
|
*/
|
|
3350
3795
|
class WindowService {
|
|
3796
|
+
resolver;
|
|
3797
|
+
containerService;
|
|
3351
3798
|
constructor(
|
|
3352
3799
|
/**
|
|
3353
3800
|
* @hidden
|
|
@@ -3526,10 +3973,10 @@ class WindowService {
|
|
|
3526
3973
|
]
|
|
3527
3974
|
};
|
|
3528
3975
|
}
|
|
3976
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowService, deps: [{ token: i0.ComponentFactoryResolver }, { token: WindowContainerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3977
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowService, providedIn: 'root' });
|
|
3529
3978
|
}
|
|
3530
|
-
|
|
3531
|
-
WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WindowService, providedIn: 'root' });
|
|
3532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WindowService, decorators: [{
|
|
3979
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowService, decorators: [{
|
|
3533
3980
|
type: Injectable,
|
|
3534
3981
|
args: [{
|
|
3535
3982
|
providedIn: 'root'
|
|
@@ -3553,10 +4000,10 @@ class DialogContainerDirective {
|
|
|
3553
4000
|
constructor(container, service) {
|
|
3554
4001
|
service.container = container;
|
|
3555
4002
|
}
|
|
4003
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContainerDirective, deps: [{ token: i0.ViewContainerRef }, { token: DialogContainerService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4004
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DialogContainerDirective, isStandalone: true, selector: "[kendoDialogContainer]", ngImport: i0 });
|
|
3556
4005
|
}
|
|
3557
|
-
|
|
3558
|
-
DialogContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DialogContainerDirective, isStandalone: true, selector: "[kendoDialogContainer]", ngImport: i0 });
|
|
3559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogContainerDirective, decorators: [{
|
|
4006
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContainerDirective, decorators: [{
|
|
3560
4007
|
type: Directive,
|
|
3561
4008
|
args: [{
|
|
3562
4009
|
selector: '[kendoDialogContainer]',
|
|
@@ -3569,6 +4016,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3569
4016
|
* ([see example](slug:globalization_dialogs#toc-internationalization)).
|
|
3570
4017
|
*/
|
|
3571
4018
|
class CustomMessagesComponent extends Messages {
|
|
4019
|
+
service;
|
|
3572
4020
|
constructor(service) {
|
|
3573
4021
|
super();
|
|
3574
4022
|
this.service = service;
|
|
@@ -3576,15 +4024,15 @@ class CustomMessagesComponent extends Messages {
|
|
|
3576
4024
|
get override() {
|
|
3577
4025
|
return true;
|
|
3578
4026
|
}
|
|
4027
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4028
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-dialog-messages, kendo-window-messages", providers: [
|
|
4029
|
+
{
|
|
4030
|
+
provide: Messages,
|
|
4031
|
+
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
4032
|
+
}
|
|
4033
|
+
], usesInheritance: true, ngImport: i0 });
|
|
3579
4034
|
}
|
|
3580
|
-
|
|
3581
|
-
CustomMessagesComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-dialog-messages, kendo-window-messages", providers: [
|
|
3582
|
-
{
|
|
3583
|
-
provide: Messages,
|
|
3584
|
-
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
3585
|
-
}
|
|
3586
|
-
], usesInheritance: true, ngImport: i0 });
|
|
3587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
4035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
3588
4036
|
type: Directive,
|
|
3589
4037
|
args: [{
|
|
3590
4038
|
providers: [
|
|
@@ -3613,10 +4061,10 @@ class WindowContainerDirective {
|
|
|
3613
4061
|
constructor(container, service) {
|
|
3614
4062
|
service.container = container;
|
|
3615
4063
|
}
|
|
4064
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowContainerDirective, deps: [{ token: i0.ViewContainerRef }, { token: WindowContainerService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4065
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: WindowContainerDirective, isStandalone: true, selector: "[kendoWindowContainer]", ngImport: i0 });
|
|
3616
4066
|
}
|
|
3617
|
-
|
|
3618
|
-
WindowContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WindowContainerDirective, isStandalone: true, selector: "[kendoWindowContainer]", ngImport: i0 });
|
|
3619
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WindowContainerDirective, decorators: [{
|
|
4067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowContainerDirective, decorators: [{
|
|
3620
4068
|
type: Directive,
|
|
3621
4069
|
args: [{
|
|
3622
4070
|
selector: '[kendoWindowContainer]',
|
|
@@ -3656,13 +4104,6 @@ const KENDO_DIALOGS = [
|
|
|
3656
4104
|
...KENDO_WINDOW
|
|
3657
4105
|
];
|
|
3658
4106
|
|
|
3659
|
-
/**
|
|
3660
|
-
* @hidden
|
|
3661
|
-
*/
|
|
3662
|
-
const DIALOG_DIRECTIVES = [
|
|
3663
|
-
DialogComponent,
|
|
3664
|
-
DialogTitleBarComponent
|
|
3665
|
-
];
|
|
3666
4107
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
3667
4108
|
/**
|
|
3668
4109
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
@@ -3687,11 +4128,11 @@ const DIALOG_DIRECTIVES = [
|
|
|
3687
4128
|
* ```
|
|
3688
4129
|
*/
|
|
3689
4130
|
class DialogModule {
|
|
4131
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4132
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DialogModule, imports: [DialogComponent, DialogTitleBarComponent, DialogContainerDirective, DialogActionsComponent, CustomMessagesComponent], exports: [DialogComponent, DialogTitleBarComponent, DialogContainerDirective, DialogActionsComponent, CustomMessagesComponent] });
|
|
4133
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService, IconsService], imports: [DialogComponent, DialogTitleBarComponent] });
|
|
3690
4134
|
}
|
|
3691
|
-
|
|
3692
|
-
DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DialogModule, imports: [DialogComponent, DialogTitleBarComponent, DialogContainerDirective, DialogActionsComponent, CustomMessagesComponent], exports: [DialogComponent, DialogTitleBarComponent, DialogContainerDirective, DialogActionsComponent, CustomMessagesComponent] });
|
|
3693
|
-
DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService, IconsService], imports: [DialogComponent, DialogTitleBarComponent, DialogActionsComponent] });
|
|
3694
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogModule, decorators: [{
|
|
4135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogModule, decorators: [{
|
|
3695
4136
|
type: NgModule,
|
|
3696
4137
|
args: [{
|
|
3697
4138
|
exports: [...KENDO_DIALOG],
|
|
@@ -3700,10 +4141,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3700
4141
|
}]
|
|
3701
4142
|
}] });
|
|
3702
4143
|
|
|
3703
|
-
const ENTRY_COMPONENTS = [
|
|
3704
|
-
WindowComponent,
|
|
3705
|
-
WindowTitleBarComponent
|
|
3706
|
-
];
|
|
3707
4144
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
3708
4145
|
/**
|
|
3709
4146
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
@@ -3728,11 +4165,11 @@ const ENTRY_COMPONENTS = [
|
|
|
3728
4165
|
* ```
|
|
3729
4166
|
*/
|
|
3730
4167
|
class WindowModule {
|
|
4168
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4169
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: WindowModule, imports: [WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, WindowContainerDirective, DialogActionsComponent, CustomMessagesComponent], exports: [WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, WindowContainerDirective, DialogActionsComponent, CustomMessagesComponent] });
|
|
4170
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService, IconsService], imports: [WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective] });
|
|
3731
4171
|
}
|
|
3732
|
-
|
|
3733
|
-
WindowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: WindowModule, imports: [WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, WindowContainerDirective, DialogActionsComponent, CustomMessagesComponent], exports: [WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, WindowContainerDirective, DialogActionsComponent, CustomMessagesComponent] });
|
|
3734
|
-
WindowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService, IconsService], imports: [WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, DialogActionsComponent] });
|
|
3735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WindowModule, decorators: [{
|
|
4172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowModule, decorators: [{
|
|
3736
4173
|
type: NgModule,
|
|
3737
4174
|
args: [{
|
|
3738
4175
|
imports: [...KENDO_WINDOW],
|
|
@@ -3768,11 +4205,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3768
4205
|
* ```
|
|
3769
4206
|
*/
|
|
3770
4207
|
class DialogsModule {
|
|
4208
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4209
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DialogsModule, imports: [DialogComponent, DialogTitleBarComponent, DialogContainerDirective, DialogActionsComponent, CustomMessagesComponent, WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, WindowContainerDirective, DialogActionsComponent, CustomMessagesComponent], exports: [DialogComponent, DialogTitleBarComponent, DialogContainerDirective, DialogActionsComponent, CustomMessagesComponent, WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, WindowContainerDirective, DialogActionsComponent, CustomMessagesComponent] });
|
|
4210
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogsModule, providers: [IconsService, DialogService, DialogContainerService, WindowService, WindowContainerService], imports: [DialogComponent, DialogTitleBarComponent, WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective] });
|
|
3771
4211
|
}
|
|
3772
|
-
|
|
3773
|
-
DialogsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DialogsModule, imports: [DialogComponent, DialogTitleBarComponent, DialogContainerDirective, DialogActionsComponent, CustomMessagesComponent, WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, WindowContainerDirective, DialogActionsComponent, CustomMessagesComponent], exports: [DialogComponent, DialogTitleBarComponent, DialogContainerDirective, DialogActionsComponent, CustomMessagesComponent, WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, WindowContainerDirective, DialogActionsComponent, CustomMessagesComponent] });
|
|
3774
|
-
DialogsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogsModule, providers: [IconsService, DialogService, DialogContainerService, WindowService, WindowContainerService], imports: [DialogComponent, DialogTitleBarComponent, DialogActionsComponent, WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, DialogActionsComponent] });
|
|
3775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogsModule, decorators: [{
|
|
4212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogsModule, decorators: [{
|
|
3776
4213
|
type: NgModule,
|
|
3777
4214
|
args: [{
|
|
3778
4215
|
imports: [...KENDO_DIALOGS],
|