@progress/kendo-angular-dialog 16.10.1-develop.3 → 16.11.0-develop.10

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.
@@ -7,6 +7,7 @@ import { ActionsLayout } from "./../../common/actions-layout";
7
7
  import { DialogAnimation } from "./dialog-animation";
8
8
  import { DialogRef } from "./dialog-ref";
9
9
  import { DialogResult } from "./dialog-result";
10
+ import { DialogThemeColor } from "./theme-color";
10
11
  /**
11
12
  * The settings that can be used when the Dialog is opened through `DialogService`.
12
13
  * ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
@@ -106,4 +107,8 @@ export declare class DialogSettings {
106
107
  * Sets the focused element query selector.
107
108
  */
108
109
  autoFocusedElement?: string;
110
+ /**
111
+ * Specifies the theme color of the Dialog.
112
+ */
113
+ themeColor?: DialogThemeColor;
109
114
  }
@@ -178,6 +178,7 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
178
178
  instance.minHeight = options.minHeight;
179
179
  instance.maxHeight = options.maxHeight;
180
180
  instance.autoFocusedElement = options.autoFocusedElement;
181
+ instance.themeColor = options.themeColor != undefined ? options.themeColor : null;
181
182
  instance.closeTitle = options.closeTitle;
182
183
  instance.cssClass = options.cssClass;
183
184
  instance.htmlAttributes = options.htmlAttributes;
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-dialog',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1727275608,
13
- version: '16.10.1-develop.3',
12
+ publishDate: 1727948186,
13
+ version: '16.11.0-develop.10',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Injectable, NgZone, EventEmitter } from "@angular/core";
6
6
  import { Subscription } from 'rxjs';
7
- import { tap, map, switchMap, takeUntil } from 'rxjs/operators';
7
+ import { tap, map, switchMap, takeUntil, take } from 'rxjs/operators';
8
8
  import { isPresent, OFFSET_STYLES, preventDefault } from '../common/util';
9
9
  import { scrollPosition, offset, getDocumentElement, positionWithScroll, getWindowViewPort } from '@progress/kendo-popup-common';
10
10
  import * as i0 from "@angular/core";
@@ -189,6 +189,11 @@ export class DragResizeService {
189
189
  this.options = Object.assign({}, this.restoreOptions);
190
190
  }
191
191
  this.options.state = 'default';
192
+ this.ngZone.onStable.pipe(take(1)).subscribe(() => {
193
+ if (!isPresent(this.options.left) || !isPresent(this.options.top)) {
194
+ this.center();
195
+ }
196
+ });
192
197
  this.stateChange.emit('default');
193
198
  }
194
199
  storeOptions() {
@@ -176,6 +176,9 @@ export class WindowService {
176
176
  instance.keepContent = true;
177
177
  }
178
178
  }
179
+ if (isPresent(options.themeColor)) {
180
+ instance.themeColor = options.themeColor;
181
+ }
179
182
  if (options.content instanceof TemplateRef) {
180
183
  instance.contentTemplate = options.content;
181
184
  }
@@ -616,8 +616,8 @@ const packageMetadata = {
616
616
  name: '@progress/kendo-angular-dialog',
617
617
  productName: 'Kendo UI for Angular',
618
618
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
619
- publishDate: 1727275608,
620
- version: '16.10.1-develop.3',
619
+ publishDate: 1727948186,
620
+ version: '16.11.0-develop.10',
621
621
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
622
622
  };
623
623
 
@@ -1468,6 +1468,7 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
1468
1468
  instance.minHeight = options.minHeight;
1469
1469
  instance.maxHeight = options.maxHeight;
1470
1470
  instance.autoFocusedElement = options.autoFocusedElement;
1471
+ instance.themeColor = options.themeColor != undefined ? options.themeColor : null;
1471
1472
  instance.closeTitle = options.closeTitle;
1472
1473
  instance.cssClass = options.cssClass;
1473
1474
  instance.htmlAttributes = options.htmlAttributes;
@@ -1700,6 +1701,11 @@ class DragResizeService {
1700
1701
  this.options = Object.assign({}, this.restoreOptions);
1701
1702
  }
1702
1703
  this.options.state = 'default';
1704
+ this.ngZone.onStable.pipe(take(1)).subscribe(() => {
1705
+ if (!isPresent(this.options.left) || !isPresent(this.options.top)) {
1706
+ this.center();
1707
+ }
1708
+ });
1703
1709
  this.stateChange.emit('default');
1704
1710
  }
1705
1711
  storeOptions() {
@@ -3504,6 +3510,9 @@ class WindowService {
3504
3510
  instance.keepContent = true;
3505
3511
  }
3506
3512
  }
3513
+ if (isPresent(options.themeColor)) {
3514
+ instance.themeColor = options.themeColor;
3515
+ }
3507
3516
  if (options.content instanceof TemplateRef) {
3508
3517
  instance.contentTemplate = options.content;
3509
3518
  }
@@ -612,8 +612,8 @@ const packageMetadata = {
612
612
  name: '@progress/kendo-angular-dialog',
613
613
  productName: 'Kendo UI for Angular',
614
614
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
615
- publishDate: 1727275608,
616
- version: '16.10.1-develop.3',
615
+ publishDate: 1727948186,
616
+ version: '16.11.0-develop.10',
617
617
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
618
618
  };
619
619
 
@@ -1464,6 +1464,7 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
1464
1464
  instance.minHeight = options.minHeight;
1465
1465
  instance.maxHeight = options.maxHeight;
1466
1466
  instance.autoFocusedElement = options.autoFocusedElement;
1467
+ instance.themeColor = options.themeColor != undefined ? options.themeColor : null;
1467
1468
  instance.closeTitle = options.closeTitle;
1468
1469
  instance.cssClass = options.cssClass;
1469
1470
  instance.htmlAttributes = options.htmlAttributes;
@@ -1694,6 +1695,11 @@ class DragResizeService {
1694
1695
  this.options = Object.assign({}, this.restoreOptions);
1695
1696
  }
1696
1697
  this.options.state = 'default';
1698
+ this.ngZone.onStable.pipe(take(1)).subscribe(() => {
1699
+ if (!isPresent(this.options.left) || !isPresent(this.options.top)) {
1700
+ this.center();
1701
+ }
1702
+ });
1697
1703
  this.stateChange.emit('default');
1698
1704
  }
1699
1705
  storeOptions() {
@@ -3488,6 +3494,9 @@ class WindowService {
3488
3494
  instance.keepContent = true;
3489
3495
  }
3490
3496
  }
3497
+ if (isPresent(options.themeColor)) {
3498
+ instance.themeColor = options.themeColor;
3499
+ }
3491
3500
  if (options.content instanceof TemplateRef) {
3492
3501
  instance.contentTemplate = options.content;
3493
3502
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dialog",
3
- "version": "16.10.1-develop.3",
3
+ "version": "16.11.0-develop.10",
4
4
  "description": "Dialog Package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -27,15 +27,15 @@
27
27
  "@angular/core": "15 - 18",
28
28
  "@angular/platform-browser": "15 - 18",
29
29
  "@progress/kendo-licensing": "^1.0.2",
30
- "@progress/kendo-angular-buttons": "16.10.1-develop.3",
31
- "@progress/kendo-angular-common": "16.10.1-develop.3",
32
- "@progress/kendo-angular-icons": "16.10.1-develop.3",
33
- "@progress/kendo-angular-l10n": "16.10.1-develop.3",
30
+ "@progress/kendo-angular-buttons": "16.11.0-develop.10",
31
+ "@progress/kendo-angular-common": "16.11.0-develop.10",
32
+ "@progress/kendo-angular-icons": "16.11.0-develop.10",
33
+ "@progress/kendo-angular-l10n": "16.11.0-develop.10",
34
34
  "rxjs": "^6.5.3 || ^7.0.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "tslib": "^2.3.1",
38
- "@progress/kendo-angular-schematics": "16.10.1-develop.3",
38
+ "@progress/kendo-angular-schematics": "16.11.0-develop.10",
39
39
  "@progress/kendo-popup-common": "^1.7.0"
40
40
  },
41
41
  "schematics": "./schematics/collection.json",
@@ -4,7 +4,7 @@ const schematics_1 = require("@angular-devkit/schematics");
4
4
  function default_1(options) {
5
5
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'DialogsModule', package: 'dialog', peerDependencies: {
6
6
  // Peer dependency of buttons
7
- '@progress/kendo-angular-popup': '16.10.1-develop.3',
7
+ '@progress/kendo-angular-popup': '16.11.0-develop.10',
8
8
  // Peer dependency of icons
9
9
  '@progress/kendo-svg-icons': '^3.0.0'
10
10
  } });
@@ -6,6 +6,7 @@ import { TemplateRef, ViewContainerRef } from '@angular/core';
6
6
  import { WindowMessages } from './window-messages';
7
7
  import { WindowRef } from './window-ref';
8
8
  import { WindowState } from './window-types';
9
+ import { WindowThemeColor } from './theme-color';
9
10
  /**
10
11
  * The settings for the Window actions when the Window is opened through `WindowService`
11
12
  * ([see example]({% slug api_dialog_windowservice %}#toc-open)).
@@ -100,4 +101,8 @@ export declare class WindowSettings {
100
101
  * Sets the focused element query selector.
101
102
  */
102
103
  autoFocusedElement?: string;
104
+ /**
105
+ * Sets the theme color of the Window.
106
+ */
107
+ themeColor?: WindowThemeColor;
103
108
  }