@progress/kendo-angular-dialog 6.0.3-dev.202203091004 → 7.0.0-next.202203171702
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/bundles/kendo-angular-dialog.umd.js +5 -0
- package/{dist/es2015/common → common}/actions-layout.d.ts +0 -0
- package/{dist/es2015/common → common}/preventable-event.d.ts +0 -0
- package/{dist/es2015/common → common}/util.d.ts +1 -1
- package/{dist/es2015/dialog → dialog}/dialog-actions.component.d.ts +14 -7
- package/{dist/es2015/dialog → dialog}/dialog-container.directive.d.ts +3 -0
- package/dialog/dialog-container.service.d.ts +16 -0
- package/{dist/es2015/dialog → dialog}/dialog-content-base.d.ts +4 -1
- package/{dist/es2015/dialog → dialog}/dialog-titlebar.component.d.ts +5 -2
- package/{dist/es2015/dialog → dialog}/dialog.component.d.ts +13 -6
- package/{dist/es2015/dialog → dialog}/dialog.service.d.ts +5 -1
- package/dialog/models/dialog-action.d.ts +28 -0
- package/dialog/models/dialog-close-result.d.ts +11 -0
- package/dialog/models/dialog-ref.d.ts +38 -0
- package/dialog/models/dialog-result.d.ts +14 -0
- package/{dist/es2015/dialog → dialog/models}/dialog-settings.d.ts +5 -73
- package/{dist/es/localization/dialog-localization.service.js → dialog/models/index.d.ts} +5 -5
- package/{dist/es2015/dialog.module.d.ts → dialog.module.d.ts} +11 -0
- package/{dist/es2015/dialogs.module.d.ts → dialogs.module.d.ts} +6 -0
- package/{dist/es2015 → esm2015}/common/actions-layout.js +1 -0
- package/{dist/es2015 → esm2015}/common/preventable-event.js +0 -0
- package/{dist/es2015 → esm2015}/common/util.js +0 -5
- package/esm2015/dialog/dialog-actions.component.js +115 -0
- package/esm2015/dialog/dialog-container.directive.js +30 -0
- package/esm2015/dialog/dialog-container.service.js +23 -0
- package/{dist/es2015 → esm2015}/dialog/dialog-content-base.js +18 -10
- package/esm2015/dialog/dialog-titlebar.component.js +136 -0
- package/{dist/es2015 → esm2015}/dialog/dialog.component.js +123 -113
- package/{dist/es2015 → esm2015}/dialog/dialog.service.js +16 -15
- package/{dist/es2015/window/window-container.service.d.ts → esm2015/dialog/models/dialog-action.js} +3 -5
- package/esm2015/dialog/models/dialog-close-result.js +11 -0
- package/esm2015/dialog/models/dialog-ref.js +11 -0
- package/{dist/es/common/actions-layout.js → esm2015/dialog/models/dialog-result.js} +1 -0
- package/{dist/es2015/dialog/dialog-container.service.d.ts → esm2015/dialog/models/dialog-settings.js} +3 -5
- package/esm2015/dialog/models/index.js +9 -0
- package/{dist/es2015 → esm2015}/dialog.module.js +20 -13
- package/{dist/es → esm2015}/dialogs.module.js +12 -12
- package/esm2015/kendo-angular-dialog.js +8 -0
- package/esm2015/localization/custom-messages.component.js +41 -0
- package/{dist/es2015 → esm2015}/localization/dialog-localization.service.js +0 -0
- package/esm2015/localization/localized-messages.directive.js +40 -0
- package/esm2015/localization/messages.js +28 -0
- package/esm2015/localization/titlebar-localization.service.js +44 -0
- package/{dist/es2015 → esm2015}/main.js +8 -2
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/esm2015/shared.module.js +38 -0
- package/esm2015/window/actions/window-close-action.directive.js +59 -0
- package/esm2015/window/actions/window-maximize-action.directive.js +65 -0
- package/esm2015/window/actions/window-minimize-action.directive.js +65 -0
- package/esm2015/window/actions/window-restore-action.directive.js +65 -0
- package/{dist/es2015 → esm2015}/window/drag-resize.service.js +9 -11
- package/esm2015/window/models/index.js +10 -0
- package/esm2015/window/models/window-close-result.js +9 -0
- package/{dist/es2015/window/window-events.js → esm2015/window/models/window-messages.js} +1 -0
- package/esm2015/window/models/window-options.js +5 -0
- package/{dist/es2015/window/window-settings.js → esm2015/window/models/window-ref.js} +0 -11
- package/esm2015/window/models/window-settings.js +10 -0
- package/esm2015/window/models/window-types.js +5 -0
- package/{dist/es2015 → esm2015}/window/navigation.service.js +10 -11
- package/esm2015/window/window-container.directive.js +30 -0
- package/esm2015/window/window-container.service.js +23 -0
- package/{dist/es → esm2015}/window/window-events.js +1 -0
- package/{dist/es2015 → esm2015}/window/window-resize-handle.directive.js +21 -26
- package/{dist/es2015 → esm2015}/window/window-titlebar.component.js +35 -34
- package/{dist/es2015 → esm2015}/window/window.component.js +168 -187
- package/{dist/es2015 → esm2015}/window/window.service.js +15 -14
- package/{dist/es2015 → esm2015}/window.module.js +29 -17
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dialog.js} +1023 -926
- package/{dist/es2015/shared.module.d.ts → kendo-angular-dialog.d.ts} +3 -7
- package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/localization → localization}/dialog-localization.service.d.ts +0 -0
- package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
- package/{dist/es2015/localization → localization}/titlebar-localization.service.d.ts +3 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +7 -2
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +33 -105
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/shared.module.d.ts +21 -0
- package/{dist/es2015/window → window}/actions/window-close-action.directive.d.ts +3 -0
- package/{dist/es2015/window → window}/actions/window-maximize-action.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/actions/window-minimize-action.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/actions/window-restore-action.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/drag-resize.service.d.ts +8 -4
- package/window/models/index.d.ts +10 -0
- package/window/models/window-close-result.d.ts +9 -0
- package/window/models/window-messages.d.ts +26 -0
- package/window/models/window-options.d.ts +20 -0
- package/window/models/window-ref.d.ts +40 -0
- package/{dist/es2015/window → window/models}/window-settings.d.ts +4 -84
- package/window/models/window-types.d.ts +11 -0
- package/{dist/es2015/window → window}/navigation.service.d.ts +4 -1
- package/{dist/es2015/window → window}/window-container.directive.d.ts +3 -0
- package/window/window-container.service.d.ts +16 -0
- package/{dist/es2015/window → window}/window-events.d.ts +0 -0
- package/{dist/es2015/window → window}/window-resize-handle.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/window-titlebar.component.d.ts +6 -3
- package/{dist/es2015/window → window}/window.component.d.ts +42 -25
- package/{dist/es2015/window → window}/window.service.d.ts +5 -1
- package/window.module.d.ts +45 -0
- package/dist/cdn/js/kendo-angular-dialog.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/common/preventable-event.js +0 -29
- package/dist/es/common/util.js +0 -214
- package/dist/es/dialog/dialog-actions.component.js +0 -89
- package/dist/es/dialog/dialog-container.directive.js +0 -31
- package/dist/es/dialog/dialog-container.service.js +0 -31
- package/dist/es/dialog/dialog-content-base.js +0 -45
- package/dist/es/dialog/dialog-settings.js +0 -46
- package/dist/es/dialog/dialog-titlebar.component.js +0 -94
- package/dist/es/dialog/dialog.component.js +0 -462
- package/dist/es/dialog/dialog.service.js +0 -214
- package/dist/es/dialog.module.js +0 -56
- package/dist/es/index.js +0 -22
- package/dist/es/localization/custom-messages.component.js +0 -44
- package/dist/es/localization/localized-messages.directive.js +0 -35
- package/dist/es/localization/messages.js +0 -34
- package/dist/es/localization/titlebar-localization.service.js +0 -34
- package/dist/es/main.js +0 -21
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/shared.module.js +0 -34
- package/dist/es/window/actions/window-close-action.directive.js +0 -63
- package/dist/es/window/actions/window-maximize-action.directive.js +0 -75
- package/dist/es/window/actions/window-minimize-action.directive.js +0 -75
- package/dist/es/window/actions/window-restore-action.directive.js +0 -75
- package/dist/es/window/drag-resize.service.js +0 -351
- package/dist/es/window/navigation.service.js +0 -155
- package/dist/es/window/window-container.directive.js +0 -31
- package/dist/es/window/window-container.service.js +0 -31
- package/dist/es/window/window-resize-handle.directive.js +0 -78
- package/dist/es/window/window-settings.js +0 -34
- package/dist/es/window/window-titlebar.component.js +0 -144
- package/dist/es/window/window.component.js +0 -808
- package/dist/es/window/window.service.js +0 -214
- package/dist/es/window.module.js +0 -76
- package/dist/es2015/dialog/dialog-actions.component.js +0 -98
- package/dist/es2015/dialog/dialog-container.directive.js +0 -30
- package/dist/es2015/dialog/dialog-container.service.js +0 -23
- package/dist/es2015/dialog/dialog-settings.js +0 -30
- package/dist/es2015/dialog/dialog-titlebar.component.js +0 -106
- package/dist/es2015/dialogs.module.js +0 -41
- package/dist/es2015/index.d.ts +0 -22
- package/dist/es2015/index.js +0 -22
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/custom-messages.component.js +0 -36
- package/dist/es2015/localization/localized-messages.directive.js +0 -35
- package/dist/es2015/localization/messages.js +0 -28
- package/dist/es2015/localization/titlebar-localization.service.js +0 -31
- package/dist/es2015/shared.module.js +0 -31
- package/dist/es2015/window/actions/window-close-action.directive.js +0 -60
- package/dist/es2015/window/actions/window-maximize-action.directive.js +0 -68
- package/dist/es2015/window/actions/window-minimize-action.directive.js +0 -68
- package/dist/es2015/window/actions/window-restore-action.directive.js +0 -68
- package/dist/es2015/window/window-container.directive.js +0 -30
- package/dist/es2015/window/window-container.service.js +0 -23
- package/dist/es2015/window.module.d.ts +0 -28
- package/dist/fesm5/index.js +0 -3474
- package/dist/npm/common/actions-layout.js +0 -6
- package/dist/npm/common/preventable-event.js +0 -31
- package/dist/npm/common/util.js +0 -219
- package/dist/npm/dialog/dialog-actions.component.js +0 -91
- package/dist/npm/dialog/dialog-container.directive.js +0 -33
- package/dist/npm/dialog/dialog-container.service.js +0 -33
- package/dist/npm/dialog/dialog-content-base.js +0 -47
- package/dist/npm/dialog/dialog-settings.js +0 -48
- package/dist/npm/dialog/dialog-titlebar.component.js +0 -96
- package/dist/npm/dialog/dialog.component.js +0 -464
- package/dist/npm/dialog/dialog.service.js +0 -216
- package/dist/npm/dialog.module.js +0 -58
- package/dist/npm/dialogs.module.js +0 -46
- package/dist/npm/index.js +0 -40
- package/dist/npm/localization/custom-messages.component.js +0 -46
- package/dist/npm/localization/dialog-localization.service.js +0 -11
- package/dist/npm/localization/localized-messages.directive.js +0 -37
- package/dist/npm/localization/messages.js +0 -36
- package/dist/npm/localization/titlebar-localization.service.js +0 -36
- package/dist/npm/main.js +0 -45
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/shared.module.js +0 -36
- package/dist/npm/window/actions/window-close-action.directive.js +0 -65
- package/dist/npm/window/actions/window-maximize-action.directive.js +0 -77
- package/dist/npm/window/actions/window-minimize-action.directive.js +0 -77
- package/dist/npm/window/actions/window-restore-action.directive.js +0 -77
- package/dist/npm/window/drag-resize.service.js +0 -353
- package/dist/npm/window/navigation.service.js +0 -157
- package/dist/npm/window/window-container.directive.js +0 -33
- package/dist/npm/window/window-container.service.js +0 -33
- package/dist/npm/window/window-events.js +0 -6
- package/dist/npm/window/window-resize-handle.directive.js +0 -80
- package/dist/npm/window/window-settings.js +0 -36
- package/dist/npm/window/window-titlebar.component.js +0 -146
- package/dist/npm/window/window.component.js +0 -810
- package/dist/npm/window/window.service.js +0 -216
- package/dist/npm/window.module.js +0 -78
- package/dist/systemjs/kendo-angular-dialog.js +0 -5
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import { Component, EventEmitter, HostBinding, Input, ViewChild, Output, ElementRef, Renderer2, ChangeDetectorRef, NgZone, ContentChildren, QueryList, ViewChildren } from '@angular/core';
|
|
5
|
+
import { Component, EventEmitter, HostBinding, Input, ViewChild, Output, ContentChildren, ViewChildren } from '@angular/core';
|
|
7
6
|
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
8
7
|
import { DialogActionsComponent } from './dialog-actions.component';
|
|
9
8
|
import { DialogTitleBarComponent } from './dialog-titlebar.component';
|
|
@@ -11,14 +10,20 @@ import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
|
11
10
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
12
11
|
import { packageMetadata } from '../package-metadata';
|
|
13
12
|
import { hasClasses, Keys, isPresent, focusableSelector, isFocusable, DIALOG_ELEMENTS_HANDLING_ARROWS, DIALOG_ELEMENTS_HANDLING_ESC_KEY, createValueWithUnit, setHTMLAttributes, parseCSSClassNames, findPrimaryButton } from '../common/util';
|
|
14
|
-
import { DialogCloseResult } from './dialog-
|
|
13
|
+
import { DialogCloseResult } from './models/dialog-close-result';
|
|
15
14
|
import { DIALOG_LOCALIZATION_SERVICE } from './../localization/dialog-localization.service';
|
|
16
15
|
import { take } from 'rxjs/operators';
|
|
17
16
|
import { Subscription } from 'rxjs';
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
19
|
+
import * as i2 from "./dialog-titlebar.component";
|
|
20
|
+
import * as i3 from "./dialog-actions.component";
|
|
21
|
+
import * as i4 from "../localization/localized-messages.directive";
|
|
22
|
+
import * as i5 from "@angular/common";
|
|
18
23
|
/**
|
|
19
24
|
* Represents the [Kendo UI Dialog component for Angular]({% slug overview_dialog_dialogs %}).
|
|
20
25
|
*/
|
|
21
|
-
|
|
26
|
+
export class DialogComponent {
|
|
22
27
|
constructor(wrapper, renderer, localization, cdr, ngZone) {
|
|
23
28
|
this.wrapper = wrapper;
|
|
24
29
|
this.renderer = renderer;
|
|
@@ -320,107 +325,76 @@ let DialogComponent = class DialogComponent {
|
|
|
320
325
|
this.subscriptions.push(s);
|
|
321
326
|
}
|
|
322
327
|
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
],
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
]
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
tslib_1.__decorate([
|
|
394
|
-
HostBinding('class.k-dialog-wrapper'),
|
|
395
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
396
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
397
|
-
], DialogComponent.prototype, "wrapperClass", null);
|
|
398
|
-
DialogComponent = tslib_1.__decorate([
|
|
399
|
-
Component({
|
|
400
|
-
animations: [
|
|
401
|
-
trigger('overlayAppear', [
|
|
402
|
-
state('in', style({ opacity: 1 })),
|
|
403
|
-
transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
|
|
404
|
-
]),
|
|
405
|
-
trigger('dialogSlideInAppear', [
|
|
406
|
-
state('in', style({ transform: 'translate(0, 0)' })),
|
|
407
|
-
transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
|
|
408
|
-
])
|
|
409
|
-
],
|
|
410
|
-
exportAs: 'kendoDialog',
|
|
411
|
-
providers: [
|
|
412
|
-
LocalizationService,
|
|
413
|
-
{
|
|
414
|
-
provide: DIALOG_LOCALIZATION_SERVICE,
|
|
415
|
-
useExisting: LocalizationService
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
provide: L10N_PREFIX,
|
|
419
|
-
useValue: 'kendo.dialog'
|
|
420
|
-
}
|
|
421
|
-
],
|
|
422
|
-
selector: 'kendo-dialog',
|
|
423
|
-
template: `
|
|
328
|
+
}
|
|
329
|
+
DialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
330
|
+
DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DialogComponent, selector: "kendo-dialog", inputs: { actions: "actions", actionsLayout: "actionsLayout", autoFocusedElement: "autoFocusedElement", title: "title", width: "width", minWidth: "minWidth", maxWidth: "maxWidth", height: "height", minHeight: "minHeight", maxHeight: "maxHeight" }, outputs: { action: "action", close: "close" }, host: { properties: { "attr.dir": "this.dir", "attr.tabIndex": "this.tabIndex", "class.k-dialog-wrapper": "this.wrapperClass" } }, providers: [
|
|
331
|
+
LocalizationService,
|
|
332
|
+
{
|
|
333
|
+
provide: DIALOG_LOCALIZATION_SERVICE,
|
|
334
|
+
useExisting: LocalizationService
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
provide: L10N_PREFIX,
|
|
338
|
+
useValue: 'kendo.dialog'
|
|
339
|
+
}
|
|
340
|
+
], queries: [{ propertyName: "titlebarContent", predicate: DialogTitleBarComponent }], viewQueries: [{ propertyName: "actionsView", first: true, predicate: DialogActionsComponent, descendants: true }, { propertyName: "titlebarView", predicate: DialogTitleBarComponent, descendants: true }], exportAs: ["kendoDialog"], ngImport: i0, template: `
|
|
341
|
+
<ng-container
|
|
342
|
+
kendoDialogLocalizedMessages
|
|
343
|
+
i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
|
|
344
|
+
closeTitle="Close"
|
|
345
|
+
>
|
|
346
|
+
<div class="k-overlay" @overlayAppear></div>
|
|
347
|
+
|
|
348
|
+
<div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles" @dialogSlideInAppear>
|
|
349
|
+
<kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
|
|
350
|
+
<ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
|
|
351
|
+
|
|
352
|
+
<div [id]="contentId" class="k-content k-window-content k-dialog-content">
|
|
353
|
+
<ng-content *ngIf="!contentTemplate"></ng-content>
|
|
354
|
+
<ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>
|
|
355
|
+
</div>
|
|
356
|
+
|
|
357
|
+
<ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>
|
|
358
|
+
<kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
|
|
359
|
+
</div>
|
|
360
|
+
</ng-container>
|
|
361
|
+
`, isInline: true, components: [{ type: i2.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }], directives: [{ type: i4.LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i5.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
|
|
362
|
+
trigger('overlayAppear', [
|
|
363
|
+
state('in', style({ opacity: 1 })),
|
|
364
|
+
transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
|
|
365
|
+
]),
|
|
366
|
+
trigger('dialogSlideInAppear', [
|
|
367
|
+
state('in', style({ transform: 'translate(0, 0)' })),
|
|
368
|
+
transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
|
|
369
|
+
])
|
|
370
|
+
] });
|
|
371
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogComponent, decorators: [{
|
|
372
|
+
type: Component,
|
|
373
|
+
args: [{
|
|
374
|
+
animations: [
|
|
375
|
+
trigger('overlayAppear', [
|
|
376
|
+
state('in', style({ opacity: 1 })),
|
|
377
|
+
transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
|
|
378
|
+
]),
|
|
379
|
+
trigger('dialogSlideInAppear', [
|
|
380
|
+
state('in', style({ transform: 'translate(0, 0)' })),
|
|
381
|
+
transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
|
|
382
|
+
])
|
|
383
|
+
],
|
|
384
|
+
exportAs: 'kendoDialog',
|
|
385
|
+
providers: [
|
|
386
|
+
LocalizationService,
|
|
387
|
+
{
|
|
388
|
+
provide: DIALOG_LOCALIZATION_SERVICE,
|
|
389
|
+
useExisting: LocalizationService
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
provide: L10N_PREFIX,
|
|
393
|
+
useValue: 'kendo.dialog'
|
|
394
|
+
}
|
|
395
|
+
],
|
|
396
|
+
selector: 'kendo-dialog',
|
|
397
|
+
template: `
|
|
424
398
|
<ng-container
|
|
425
399
|
kendoDialogLocalizedMessages
|
|
426
400
|
i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
|
|
@@ -442,11 +416,47 @@ DialogComponent = tslib_1.__decorate([
|
|
|
442
416
|
</div>
|
|
443
417
|
</ng-container>
|
|
444
418
|
`
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
419
|
+
}]
|
|
420
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { actions: [{
|
|
421
|
+
type: Input
|
|
422
|
+
}], actionsLayout: [{
|
|
423
|
+
type: Input
|
|
424
|
+
}], autoFocusedElement: [{
|
|
425
|
+
type: Input
|
|
426
|
+
}], title: [{
|
|
427
|
+
type: Input
|
|
428
|
+
}], width: [{
|
|
429
|
+
type: Input
|
|
430
|
+
}], minWidth: [{
|
|
431
|
+
type: Input
|
|
432
|
+
}], maxWidth: [{
|
|
433
|
+
type: Input
|
|
434
|
+
}], height: [{
|
|
435
|
+
type: Input
|
|
436
|
+
}], minHeight: [{
|
|
437
|
+
type: Input
|
|
438
|
+
}], maxHeight: [{
|
|
439
|
+
type: Input
|
|
440
|
+
}], action: [{
|
|
441
|
+
type: Output
|
|
442
|
+
}], close: [{
|
|
443
|
+
type: Output
|
|
444
|
+
}], dir: [{
|
|
445
|
+
type: HostBinding,
|
|
446
|
+
args: ['attr.dir']
|
|
447
|
+
}], tabIndex: [{
|
|
448
|
+
type: HostBinding,
|
|
449
|
+
args: ['attr.tabIndex']
|
|
450
|
+
}], titlebarContent: [{
|
|
451
|
+
type: ContentChildren,
|
|
452
|
+
args: [DialogTitleBarComponent, { descendants: false }]
|
|
453
|
+
}], titlebarView: [{
|
|
454
|
+
type: ViewChildren,
|
|
455
|
+
args: [DialogTitleBarComponent]
|
|
456
|
+
}], actionsView: [{
|
|
457
|
+
type: ViewChild,
|
|
458
|
+
args: [DialogActionsComponent, { static: false }]
|
|
459
|
+
}], wrapperClass: [{
|
|
460
|
+
type: HostBinding,
|
|
461
|
+
args: ['class.k-dialog-wrapper']
|
|
462
|
+
}] } });
|
|
@@ -2,19 +2,20 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
// tslint:disable:max-line-length
|
|
5
|
+
// eslint-disable max-line-length
|
|
7
6
|
import { Subject, merge } from 'rxjs';
|
|
8
7
|
import { take, filter, share, map } from 'rxjs/operators';
|
|
9
|
-
import { Injectable,
|
|
8
|
+
import { Injectable, Renderer2, TemplateRef, isDevMode, Inject } from '@angular/core';
|
|
10
9
|
import { DialogComponent } from './dialog.component';
|
|
11
10
|
import { DialogContainerService } from './dialog-container.service';
|
|
12
|
-
import {
|
|
11
|
+
import { DialogRef } from './models/dialog-ref';
|
|
13
12
|
import { DialogContentBase } from './dialog-content-base';
|
|
14
13
|
import { PreventableEvent } from '../common/preventable-event';
|
|
15
14
|
import { isString } from '../common/util';
|
|
15
|
+
import { DialogCloseResult } from './models';
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
import * as i1 from "./dialog-container.service";
|
|
16
18
|
const isNotComponent = (component) => isString(component) || component instanceof TemplateRef;
|
|
17
|
-
const ɵ0 = isNotComponent;
|
|
18
19
|
class DialogInjector {
|
|
19
20
|
constructor(getDialogRef, parentInjector) {
|
|
20
21
|
this.getDialogRef = getDialogRef;
|
|
@@ -31,7 +32,7 @@ class DialogInjector {
|
|
|
31
32
|
* A service for opening Dialog windows dynamically
|
|
32
33
|
* ([see example]({% slug service_dialog %})).
|
|
33
34
|
*/
|
|
34
|
-
|
|
35
|
+
export class DialogService {
|
|
35
36
|
constructor(
|
|
36
37
|
/**
|
|
37
38
|
* @hidden
|
|
@@ -212,12 +213,12 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
|
|
|
212
213
|
]
|
|
213
214
|
};
|
|
214
215
|
}
|
|
215
|
-
}
|
|
216
|
-
DialogService =
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
216
|
+
}
|
|
217
|
+
DialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogService, deps: [{ token: i0.ComponentFactoryResolver }, { token: DialogContainerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
218
|
+
DialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogService });
|
|
219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogService, decorators: [{
|
|
220
|
+
type: Injectable
|
|
221
|
+
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i1.DialogContainerService, decorators: [{
|
|
222
|
+
type: Inject,
|
|
223
|
+
args: [DialogContainerService]
|
|
224
|
+
}] }]; } });
|
package/{dist/es2015/window/window-container.service.d.ts → esm2015/dialog/models/dialog-action.js}
RENAMED
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ViewContainerRef } from '@angular/core';
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
6
|
+
* The settings for the Dialog actions when the Dialog is opened through `DialogService`
|
|
7
|
+
* ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
10
|
-
private static container;
|
|
11
|
-
container: ViewContainerRef;
|
|
9
|
+
export class DialogAction {
|
|
12
10
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Indicates that the **Close** button is clicked. Used when the results from
|
|
7
|
+
* the Dialogs that are opened through `DialogService` are filtered
|
|
8
|
+
* ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
|
|
9
|
+
*/
|
|
10
|
+
export class DialogCloseResult {
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Holds references to the object instance and published events of the Dialog.
|
|
7
|
+
* Controls the Dialogs that were opened through the `DialogService`
|
|
8
|
+
* ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
|
|
9
|
+
*/
|
|
10
|
+
export class DialogRef {
|
|
11
|
+
}
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ViewContainerRef } from '@angular/core';
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
6
|
+
* The settings that can be used when the Dialog is opened through `DialogService`.
|
|
7
|
+
* ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
10
|
-
private static container;
|
|
11
|
-
container: ViewContainerRef;
|
|
9
|
+
export class DialogSettings {
|
|
12
10
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export * from './dialog-action';
|
|
6
|
+
export * from './dialog-close-result';
|
|
7
|
+
export * from './dialog-ref';
|
|
8
|
+
export * from './dialog-result';
|
|
9
|
+
export * from './dialog-settings';
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
5
|
import { NgModule } from '@angular/core';
|
|
7
6
|
import { DialogComponent } from './dialog/dialog.component';
|
|
8
7
|
import { DialogTitleBarComponent } from './dialog/dialog-titlebar.component';
|
|
@@ -10,6 +9,10 @@ import { DialogService } from './dialog/dialog.service';
|
|
|
10
9
|
import { DialogContainerDirective } from './dialog/dialog-container.directive';
|
|
11
10
|
import { DialogContainerService } from './dialog/dialog-container.service';
|
|
12
11
|
import { SharedModule, SHARED_DIRECTIVES } from './shared.module';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "./dialog/dialog-actions.component";
|
|
14
|
+
import * as i2 from "./localization/custom-messages.component";
|
|
15
|
+
import * as i3 from "./localization/localized-messages.directive";
|
|
13
16
|
/**
|
|
14
17
|
* @hidden
|
|
15
18
|
*/
|
|
@@ -39,15 +42,19 @@ export const DIALOG_DIRECTIVES = [
|
|
|
39
42
|
* }
|
|
40
43
|
* ```
|
|
41
44
|
*/
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
DialogModule =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
],
|
|
53
|
-
|
|
45
|
+
export class DialogModule {
|
|
46
|
+
}
|
|
47
|
+
DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
48
|
+
DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, declarations: [DialogComponent,
|
|
49
|
+
DialogTitleBarComponent, DialogContainerDirective], imports: [SharedModule], exports: [DialogComponent,
|
|
50
|
+
DialogTitleBarComponent, i1.DialogActionsComponent, i2.CustomMessagesComponent, i3.LocalizedMessagesDirective, DialogContainerDirective] });
|
|
51
|
+
DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService], imports: [[SharedModule]] });
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogModule, decorators: [{
|
|
53
|
+
type: NgModule,
|
|
54
|
+
args: [{
|
|
55
|
+
declarations: [DIALOG_DIRECTIVES, DialogContainerDirective],
|
|
56
|
+
exports: [DIALOG_DIRECTIVES, SHARED_DIRECTIVES, DialogContainerDirective],
|
|
57
|
+
imports: [SharedModule],
|
|
58
|
+
providers: [DialogContainerService, DialogService]
|
|
59
|
+
}]
|
|
60
|
+
}] });
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
5
|
import { NgModule } from '@angular/core';
|
|
7
6
|
import { DialogModule } from './dialog.module';
|
|
8
7
|
import { WindowModule } from './window.module';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
11
11
|
* definition for the Dialogs components.
|
|
@@ -31,14 +31,14 @@ import { WindowModule } from './window.module';
|
|
|
31
31
|
*
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
34
|
+
export class DialogsModule {
|
|
35
|
+
}
|
|
36
|
+
DialogsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
37
|
+
DialogsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, exports: [DialogModule, WindowModule] });
|
|
38
|
+
DialogsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, imports: [DialogModule, WindowModule] });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogsModule, decorators: [{
|
|
40
|
+
type: NgModule,
|
|
41
|
+
args: [{
|
|
42
|
+
exports: [DialogModule, WindowModule]
|
|
43
|
+
}]
|
|
44
|
+
}] });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Generated bundle index. Do not edit.
|
|
7
|
+
*/
|
|
8
|
+
export * from './main';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, forwardRef } from '@angular/core';
|
|
6
|
+
import { Messages } from './messages';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
9
|
+
/**
|
|
10
|
+
* Custom component messages override default component messages
|
|
11
|
+
* ([see example]({% slug globalization_dialogs %}#toc-localization)).
|
|
12
|
+
*/
|
|
13
|
+
export class CustomMessagesComponent extends Messages {
|
|
14
|
+
constructor(service) {
|
|
15
|
+
super();
|
|
16
|
+
this.service = service;
|
|
17
|
+
}
|
|
18
|
+
get override() {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
23
|
+
CustomMessagesComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CustomMessagesComponent, selector: "kendo-dialog-messages, kendo-window-messages", providers: [
|
|
24
|
+
{
|
|
25
|
+
provide: Messages,
|
|
26
|
+
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
27
|
+
}
|
|
28
|
+
], usesInheritance: true, ngImport: i0 });
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
30
|
+
type: Directive,
|
|
31
|
+
args: [{
|
|
32
|
+
providers: [
|
|
33
|
+
{
|
|
34
|
+
provide: Messages,
|
|
35
|
+
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
39
|
+
selector: 'kendo-dialog-messages, kendo-window-messages'
|
|
40
|
+
}]
|
|
41
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
File without changes
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, forwardRef } from '@angular/core';
|
|
6
|
+
import { Messages } from './messages';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export class LocalizedMessagesDirective extends Messages {
|
|
13
|
+
constructor(service) {
|
|
14
|
+
super();
|
|
15
|
+
this.service = service;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
+
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ", providers: [
|
|
20
|
+
{
|
|
21
|
+
provide: Messages,
|
|
22
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
23
|
+
}
|
|
24
|
+
], usesInheritance: true, ngImport: i0 });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
26
|
+
type: Directive,
|
|
27
|
+
args: [{
|
|
28
|
+
providers: [
|
|
29
|
+
{
|
|
30
|
+
provide: Messages,
|
|
31
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
selector: `
|
|
35
|
+
[kendoDialogLocalizedMessages],
|
|
36
|
+
[kendoWindowLocalizedMessages],
|
|
37
|
+
[kendoDialogTitleBarLocalizedMessages]
|
|
38
|
+
`
|
|
39
|
+
}]
|
|
40
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, Input } from '@angular/core';
|
|
6
|
+
import { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export class Messages extends ComponentMessages {
|
|
12
|
+
}
|
|
13
|
+
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
+
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Messages, selector: "kendo-dialog-messages-base", inputs: { closeTitle: "closeTitle", restoreTitle: "restoreTitle", maximizeTitle: "maximizeTitle", minimizeTitle: "minimizeTitle" }, usesInheritance: true, ngImport: i0 });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
|
|
16
|
+
type: Directive,
|
|
17
|
+
args: [{
|
|
18
|
+
selector: 'kendo-dialog-messages-base'
|
|
19
|
+
}]
|
|
20
|
+
}], propDecorators: { closeTitle: [{
|
|
21
|
+
type: Input
|
|
22
|
+
}], restoreTitle: [{
|
|
23
|
+
type: Input
|
|
24
|
+
}], maximizeTitle: [{
|
|
25
|
+
type: Input
|
|
26
|
+
}], minimizeTitle: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}] } });
|