@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
|
@@ -30,92 +30,20 @@ import * as i3 from "@progress/kendo-angular-l10n";
|
|
|
30
30
|
* Represents the [Kendo UI Window component for Angular]({% slug overview_window_dialogs %}).
|
|
31
31
|
*/
|
|
32
32
|
export class WindowComponent {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*/
|
|
48
|
-
this.dragStart = new EventEmitter();
|
|
49
|
-
/**
|
|
50
|
-
* Fires when the Window was moved by the user.
|
|
51
|
-
*/
|
|
52
|
-
this.dragEnd = new EventEmitter();
|
|
53
|
-
/**
|
|
54
|
-
* Fires when the user starts to resize the Window.
|
|
55
|
-
*/
|
|
56
|
-
this.resizeStart = new EventEmitter();
|
|
57
|
-
/**
|
|
58
|
-
* Fires when the Window was resized by the user.
|
|
59
|
-
*/
|
|
60
|
-
this.resizeEnd = new EventEmitter();
|
|
61
|
-
/**
|
|
62
|
-
* Fires when the user closes the Window.
|
|
63
|
-
*/
|
|
64
|
-
this.close = new EventEmitter();
|
|
65
|
-
/**
|
|
66
|
-
* Fires when the `width` property of the component was updated. The event is triggered only after the resizing
|
|
67
|
-
* has ended. The event data contains the new width. Allows a two-way binding of the `width` property.
|
|
68
|
-
*/
|
|
69
|
-
this.widthChange = new EventEmitter();
|
|
70
|
-
/**
|
|
71
|
-
* Fires when the `height` property of the component was updated. The event is triggered only after the resizing
|
|
72
|
-
* has ended. The event data contains the new height. Allows a two-way binding of the `height` property.
|
|
73
|
-
*/
|
|
74
|
-
this.heightChange = new EventEmitter();
|
|
75
|
-
/**
|
|
76
|
-
* Fires when the `top` property of the component was updated. The event is triggered only after the dragging
|
|
77
|
-
* and resizing have ended. The event data contains the new top offset. Allows a two-way binding of the `top` property.
|
|
78
|
-
*/
|
|
79
|
-
this.topChange = new EventEmitter();
|
|
80
|
-
/**
|
|
81
|
-
* Fires when the `left` property of the component was updated. The event is triggered only after the dragging
|
|
82
|
-
* and resizing have ended. The event data contains the new left offset. Allows a two-way binding of the `left` property.
|
|
83
|
-
*/
|
|
84
|
-
this.leftChange = new EventEmitter();
|
|
85
|
-
/**
|
|
86
|
-
* Fires when the `state` property of the component was updated. The event data contains the new state. Allows a
|
|
87
|
-
* two-way binding of the `state` property.
|
|
88
|
-
*/
|
|
89
|
-
this.stateChange = new EventEmitter();
|
|
90
|
-
/**
|
|
91
|
-
* @hidden
|
|
92
|
-
*/
|
|
93
|
-
this.messages = {};
|
|
94
|
-
/**
|
|
95
|
-
* @hidden
|
|
96
|
-
*/
|
|
97
|
-
this.showLicenseWatermark = false;
|
|
98
|
-
this.tabIndex = 0;
|
|
99
|
-
this.role = 'dialog';
|
|
100
|
-
this.hostClass = true;
|
|
101
|
-
/**
|
|
102
|
-
* @hidden
|
|
103
|
-
*/
|
|
104
|
-
this.titleId = null;
|
|
105
|
-
this._themeColor = null;
|
|
106
|
-
this.draged = false;
|
|
107
|
-
this.resized = false;
|
|
108
|
-
this.windowSubscription = new Subscription();
|
|
109
|
-
this.domSubs = new Subscription();
|
|
110
|
-
const isValid = validatePackage(packageMetadata);
|
|
111
|
-
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
112
|
-
this.direction = this.localization.rtl ? 'rtl' : 'ltr';
|
|
113
|
-
this.localizationChangeSubscription = this.localization.changes
|
|
114
|
-
.subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr');
|
|
115
|
-
this.resizeDirections = RESIZE_DIRECTIONS;
|
|
116
|
-
this.subscribeEvents();
|
|
117
|
-
this.titleId = this.generateTitleId();
|
|
118
|
-
}
|
|
33
|
+
el;
|
|
34
|
+
renderer;
|
|
35
|
+
service;
|
|
36
|
+
navigation;
|
|
37
|
+
ngZone;
|
|
38
|
+
localization;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the query selector used to set the initial focus ([see examples]({% slug initial_focus_window %})).
|
|
41
|
+
*/
|
|
42
|
+
autoFocusedElement;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the text that is rendered in the title bar.
|
|
45
|
+
*/
|
|
46
|
+
title;
|
|
119
47
|
/**
|
|
120
48
|
* Specifies whether the user will be able to drag the component.
|
|
121
49
|
* @default true
|
|
@@ -181,6 +109,11 @@ export class WindowComponent {
|
|
|
181
109
|
get htmlAttributes() {
|
|
182
110
|
return this._htmlAttributes;
|
|
183
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Specifies if the content of the component is persisted in the DOM when minimized.
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
keepContent = false;
|
|
184
117
|
/**
|
|
185
118
|
* Specifies the initial state of the component.
|
|
186
119
|
* If not specified, the value is set to `default`.
|
|
@@ -282,9 +215,106 @@ export class WindowComponent {
|
|
|
282
215
|
}
|
|
283
216
|
return this.localization.get('minimizeTitle');
|
|
284
217
|
}
|
|
218
|
+
/**
|
|
219
|
+
* Fires when the user starts to move the Window.
|
|
220
|
+
*/
|
|
221
|
+
dragStart = new EventEmitter();
|
|
222
|
+
/**
|
|
223
|
+
* Fires when the Window was moved by the user.
|
|
224
|
+
*/
|
|
225
|
+
dragEnd = new EventEmitter();
|
|
226
|
+
/**
|
|
227
|
+
* Fires when the user starts to resize the Window.
|
|
228
|
+
*/
|
|
229
|
+
resizeStart = new EventEmitter();
|
|
230
|
+
/**
|
|
231
|
+
* Fires when the Window was resized by the user.
|
|
232
|
+
*/
|
|
233
|
+
resizeEnd = new EventEmitter();
|
|
234
|
+
/**
|
|
235
|
+
* Fires when the user closes the Window.
|
|
236
|
+
*/
|
|
237
|
+
close = new EventEmitter();
|
|
238
|
+
/**
|
|
239
|
+
* Fires when the `width` property of the component was updated. The event is triggered only after the resizing
|
|
240
|
+
* has ended. The event data contains the new width. Allows a two-way binding of the `width` property.
|
|
241
|
+
*/
|
|
242
|
+
widthChange = new EventEmitter();
|
|
243
|
+
/**
|
|
244
|
+
* Fires when the `height` property of the component was updated. The event is triggered only after the resizing
|
|
245
|
+
* has ended. The event data contains the new height. Allows a two-way binding of the `height` property.
|
|
246
|
+
*/
|
|
247
|
+
heightChange = new EventEmitter();
|
|
248
|
+
/**
|
|
249
|
+
* Fires when the `top` property of the component was updated. The event is triggered only after the dragging
|
|
250
|
+
* and resizing have ended. The event data contains the new top offset. Allows a two-way binding of the `top` property.
|
|
251
|
+
*/
|
|
252
|
+
topChange = new EventEmitter();
|
|
253
|
+
/**
|
|
254
|
+
* Fires when the `left` property of the component was updated. The event is triggered only after the dragging
|
|
255
|
+
* and resizing have ended. The event data contains the new left offset. Allows a two-way binding of the `left` property.
|
|
256
|
+
*/
|
|
257
|
+
leftChange = new EventEmitter();
|
|
258
|
+
/**
|
|
259
|
+
* Fires when the `state` property of the component was updated. The event data contains the new state. Allows a
|
|
260
|
+
* two-way binding of the `state` property.
|
|
261
|
+
*/
|
|
262
|
+
stateChange = new EventEmitter();
|
|
263
|
+
/**
|
|
264
|
+
* @hidden
|
|
265
|
+
*/
|
|
266
|
+
contentTemplate;
|
|
267
|
+
/**
|
|
268
|
+
* @hidden
|
|
269
|
+
*/
|
|
270
|
+
titleBarTemplate;
|
|
271
|
+
/**
|
|
272
|
+
* @hidden
|
|
273
|
+
*/
|
|
274
|
+
messages = {};
|
|
275
|
+
/**
|
|
276
|
+
* @hidden
|
|
277
|
+
*/
|
|
278
|
+
showLicenseWatermark = false;
|
|
279
|
+
tabIndex = 0;
|
|
280
|
+
role = 'dialog';
|
|
281
|
+
hostClass = true;
|
|
285
282
|
get dir() {
|
|
286
283
|
return this.direction;
|
|
287
284
|
}
|
|
285
|
+
titleBarView;
|
|
286
|
+
titleBarContent;
|
|
287
|
+
resizeHandles;
|
|
288
|
+
resizeDirections;
|
|
289
|
+
/**
|
|
290
|
+
* @hidden
|
|
291
|
+
*/
|
|
292
|
+
titleId = null;
|
|
293
|
+
_htmlAttributes;
|
|
294
|
+
_cssClass;
|
|
295
|
+
_themeColor = null;
|
|
296
|
+
direction;
|
|
297
|
+
draged = false;
|
|
298
|
+
resized = false;
|
|
299
|
+
windowSubscription = new Subscription();
|
|
300
|
+
domSubs = new Subscription();
|
|
301
|
+
localizationChangeSubscription;
|
|
302
|
+
constructor(el, renderer, service, navigation, ngZone, localization) {
|
|
303
|
+
this.el = el;
|
|
304
|
+
this.renderer = renderer;
|
|
305
|
+
this.service = service;
|
|
306
|
+
this.navigation = navigation;
|
|
307
|
+
this.ngZone = ngZone;
|
|
308
|
+
this.localization = localization;
|
|
309
|
+
const isValid = validatePackage(packageMetadata);
|
|
310
|
+
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
311
|
+
this.direction = this.localization.rtl ? 'rtl' : 'ltr';
|
|
312
|
+
this.localizationChangeSubscription = this.localization.changes
|
|
313
|
+
.subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr');
|
|
314
|
+
this.resizeDirections = RESIZE_DIRECTIONS;
|
|
315
|
+
this.subscribeEvents();
|
|
316
|
+
this.titleId = this.generateTitleId();
|
|
317
|
+
}
|
|
288
318
|
ngAfterViewInit() {
|
|
289
319
|
if (!isDocumentAvailable()) {
|
|
290
320
|
return;
|
|
@@ -576,17 +606,16 @@ export class WindowComponent {
|
|
|
576
606
|
this.renderer.addClass(wrapper, classToAdd);
|
|
577
607
|
}
|
|
578
608
|
}
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
}
|
|
589
|
-
], 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: `
|
|
609
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.DragResizeService }, { token: i2.NavigationService }, { token: i0.NgZone }, { token: i3.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
610
|
+
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: [
|
|
611
|
+
DragResizeService,
|
|
612
|
+
NavigationService,
|
|
613
|
+
LocalizationService,
|
|
614
|
+
{
|
|
615
|
+
provide: L10N_PREFIX,
|
|
616
|
+
useValue: 'kendo.window'
|
|
617
|
+
}
|
|
618
|
+
], 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: `
|
|
590
619
|
<ng-container kendoWindowLocalizedMessages
|
|
591
620
|
i18n-closeTitle="kendo.window.closeTitle|The title of the close button"
|
|
592
621
|
closeTitle="Close"
|
|
@@ -631,7 +660,8 @@ WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
631
660
|
|
|
632
661
|
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
633
662
|
`, 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]" }] });
|
|
634
|
-
|
|
663
|
+
}
|
|
664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowComponent, decorators: [{
|
|
635
665
|
type: Component,
|
|
636
666
|
args: [{
|
|
637
667
|
exportAs: 'kendoWindow',
|
|
@@ -14,6 +14,8 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
import * as i1 from "../window/window-container.service";
|
|
15
15
|
const isNotComponent = (component) => isString(component) || component instanceof TemplateRef;
|
|
16
16
|
class WindowInjector {
|
|
17
|
+
getWindowRef;
|
|
18
|
+
parentInjector;
|
|
17
19
|
constructor(getWindowRef, parentInjector) {
|
|
18
20
|
this.getWindowRef = getWindowRef;
|
|
19
21
|
this.parentInjector = parentInjector;
|
|
@@ -30,6 +32,8 @@ class WindowInjector {
|
|
|
30
32
|
* ([see example]({% slug service_window %})).
|
|
31
33
|
*/
|
|
32
34
|
export class WindowService {
|
|
35
|
+
resolver;
|
|
36
|
+
containerService;
|
|
33
37
|
constructor(
|
|
34
38
|
/**
|
|
35
39
|
* @hidden
|
|
@@ -208,10 +212,10 @@ export class WindowService {
|
|
|
208
212
|
]
|
|
209
213
|
};
|
|
210
214
|
}
|
|
215
|
+
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 });
|
|
216
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowService, providedIn: 'root' });
|
|
211
217
|
}
|
|
212
|
-
|
|
213
|
-
WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WindowService, providedIn: 'root' });
|
|
214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WindowService, decorators: [{
|
|
218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowService, decorators: [{
|
|
215
219
|
type: Injectable,
|
|
216
220
|
args: [{
|
|
217
221
|
providedIn: 'root'
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from "@angular/core";
|
|
6
6
|
import { IconsService } from "@progress/kendo-angular-icons";
|
|
7
|
-
import { WindowComponent } from "./window/window.component";
|
|
8
|
-
import { WindowTitleBarComponent } from "./window/window-titlebar.component";
|
|
9
7
|
import { WindowService } from './window/window.service';
|
|
10
8
|
import { WindowContainerService } from './window/window-container.service';
|
|
11
9
|
import { KENDO_WINDOW } from "./directives";
|
|
@@ -19,10 +17,6 @@ import * as i6 from "./window/window-titlebar.component";
|
|
|
19
17
|
import * as i7 from "./window/window-container.directive";
|
|
20
18
|
import * as i8 from "./dialog/dialog-actions.component";
|
|
21
19
|
import * as i9 from "./localization/custom-messages.component";
|
|
22
|
-
const ENTRY_COMPONENTS = [
|
|
23
|
-
WindowComponent,
|
|
24
|
-
WindowTitleBarComponent
|
|
25
|
-
];
|
|
26
20
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
27
21
|
/**
|
|
28
22
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
@@ -47,11 +41,11 @@ const ENTRY_COMPONENTS = [
|
|
|
47
41
|
* ```
|
|
48
42
|
*/
|
|
49
43
|
export class WindowModule {
|
|
44
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
45
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: WindowModule, imports: [i1.WindowComponent, i2.WindowCloseActionDirective, i3.WindowMinimizeActionDirective, i4.WindowMaximizeActionDirective, i5.WindowRestoreActionDirective, i6.WindowTitleBarComponent, i7.WindowContainerDirective, i8.DialogActionsComponent, i9.CustomMessagesComponent], exports: [i1.WindowComponent, i2.WindowCloseActionDirective, i3.WindowMinimizeActionDirective, i4.WindowMaximizeActionDirective, i5.WindowRestoreActionDirective, i6.WindowTitleBarComponent, i7.WindowContainerDirective, i8.DialogActionsComponent, i9.CustomMessagesComponent] });
|
|
46
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService, IconsService], imports: [i1.WindowComponent, i2.WindowCloseActionDirective, i3.WindowMinimizeActionDirective, i4.WindowMaximizeActionDirective, i5.WindowRestoreActionDirective] });
|
|
50
47
|
}
|
|
51
|
-
|
|
52
|
-
WindowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: WindowModule, imports: [i1.WindowComponent, i2.WindowCloseActionDirective, i3.WindowMinimizeActionDirective, i4.WindowMaximizeActionDirective, i5.WindowRestoreActionDirective, i6.WindowTitleBarComponent, i7.WindowContainerDirective, i8.DialogActionsComponent, i9.CustomMessagesComponent], exports: [i1.WindowComponent, i2.WindowCloseActionDirective, i3.WindowMinimizeActionDirective, i4.WindowMaximizeActionDirective, i5.WindowRestoreActionDirective, i6.WindowTitleBarComponent, i7.WindowContainerDirective, i8.DialogActionsComponent, i9.CustomMessagesComponent] });
|
|
53
|
-
WindowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService, IconsService], imports: [i1.WindowComponent, i2.WindowCloseActionDirective, i3.WindowMinimizeActionDirective, i4.WindowMaximizeActionDirective, i5.WindowRestoreActionDirective, i6.WindowTitleBarComponent, i8.DialogActionsComponent] });
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WindowModule, decorators: [{
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowModule, decorators: [{
|
|
55
49
|
type: NgModule,
|
|
56
50
|
args: [{
|
|
57
51
|
imports: [...KENDO_WINDOW],
|