@progress/kendo-angular-dialog 17.1.1 → 17.1.2-develop.2

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.
@@ -436,15 +436,17 @@ export class DialogComponent {
436
436
  }
437
437
  }
438
438
  handleThemeColorClass(previousValue, currentValue) {
439
- const dialog = this.dialog.nativeElement;
440
- if (previousValue) {
441
- const classToRemove = `k-dialog-${previousValue}`;
442
- this.renderer.removeClass(dialog, classToRemove);
443
- }
444
- if (currentValue) {
445
- const classToAdd = `k-dialog-${currentValue}`;
446
- this.renderer.addClass(dialog, classToAdd);
447
- }
439
+ this.ngZone.onStable.pipe(take(1)).subscribe(() => {
440
+ const dialog = this.dialog.nativeElement;
441
+ if (previousValue) {
442
+ const classToRemove = `k-dialog-${previousValue}`;
443
+ this.renderer.removeClass(dialog, classToRemove);
444
+ }
445
+ if (currentValue) {
446
+ const classToAdd = `k-dialog-${currentValue}`;
447
+ this.renderer.addClass(dialog, classToAdd);
448
+ }
449
+ });
448
450
  }
449
451
  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 });
450
452
  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: [
@@ -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: 1733732311,
13
- version: '17.1.1',
12
+ publishDate: 1733999432,
13
+ version: '17.1.2-develop.2',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -649,8 +649,8 @@ const packageMetadata = {
649
649
  name: '@progress/kendo-angular-dialog',
650
650
  productName: 'Kendo UI for Angular',
651
651
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
652
- publishDate: 1733732311,
653
- version: '17.1.1',
652
+ publishDate: 1733999432,
653
+ version: '17.1.2-develop.2',
654
654
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
655
655
  };
656
656
 
@@ -1174,15 +1174,17 @@ class DialogComponent {
1174
1174
  }
1175
1175
  }
1176
1176
  handleThemeColorClass(previousValue, currentValue) {
1177
- const dialog = this.dialog.nativeElement;
1178
- if (previousValue) {
1179
- const classToRemove = `k-dialog-${previousValue}`;
1180
- this.renderer.removeClass(dialog, classToRemove);
1181
- }
1182
- if (currentValue) {
1183
- const classToAdd = `k-dialog-${currentValue}`;
1184
- this.renderer.addClass(dialog, classToAdd);
1185
- }
1177
+ this.ngZone.onStable.pipe(take(1)).subscribe(() => {
1178
+ const dialog = this.dialog.nativeElement;
1179
+ if (previousValue) {
1180
+ const classToRemove = `k-dialog-${previousValue}`;
1181
+ this.renderer.removeClass(dialog, classToRemove);
1182
+ }
1183
+ if (currentValue) {
1184
+ const classToAdd = `k-dialog-${currentValue}`;
1185
+ this.renderer.addClass(dialog, classToAdd);
1186
+ }
1187
+ });
1186
1188
  }
1187
1189
  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
1190
  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: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dialog",
3
- "version": "17.1.1",
3
+ "version": "17.1.2-develop.2",
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": "16 - 19",
28
28
  "@angular/platform-browser": "16 - 19",
29
29
  "@progress/kendo-licensing": "^1.0.2",
30
- "@progress/kendo-angular-buttons": "17.1.1",
31
- "@progress/kendo-angular-common": "17.1.1",
32
- "@progress/kendo-angular-icons": "17.1.1",
33
- "@progress/kendo-angular-l10n": "17.1.1",
30
+ "@progress/kendo-angular-buttons": "17.1.2-develop.2",
31
+ "@progress/kendo-angular-common": "17.1.2-develop.2",
32
+ "@progress/kendo-angular-icons": "17.1.2-develop.2",
33
+ "@progress/kendo-angular-l10n": "17.1.2-develop.2",
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": "17.1.1",
38
+ "@progress/kendo-angular-schematics": "17.1.2-develop.2",
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': '17.1.1',
7
+ '@progress/kendo-angular-popup': '17.1.2-develop.2',
8
8
  // Peer dependency of icons
9
9
  '@progress/kendo-svg-icons': '^4.0.0'
10
10
  } });