@progress/kendo-angular-dialog 24.0.0-develop.4 → 24.0.0-develop.40

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.
@@ -0,0 +1,30 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.default = default_1;
8
+ const tslib_1 = require("tslib");
9
+ const fs = tslib_1.__importStar(require("fs"));
10
+ const codemods_1 = require("@progress/kendo-angular-common/codemods");
11
+ function default_1(fileInfo, api) {
12
+ const filePath = fileInfo.path;
13
+ if (!(0, codemods_1.isApiChangeTarget)(filePath)) {
14
+ return fileInfo.source;
15
+ }
16
+ // Handle HTML files and inline templates
17
+ const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeRemoval)(templateContent, 'kendo-dialog', 'themeColor'));
18
+ if (filePath.endsWith('.html')) {
19
+ if (htmlResult && htmlResult !== fileInfo.source) {
20
+ fs.writeFileSync(filePath, htmlResult, 'utf-8');
21
+ return htmlResult;
22
+ }
23
+ return fileInfo.source;
24
+ }
25
+ // Handle TypeScript property transformations
26
+ const j = api.jscodeshift;
27
+ const rootSource = j(htmlResult || fileInfo.source);
28
+ (0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dialog', 'DialogComponent', 'themeColor');
29
+ return rootSource.toSource();
30
+ }
@@ -0,0 +1,22 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.default = default_1;
8
+ const codemods_1 = require("@progress/kendo-angular-common/codemods");
9
+ function default_1(fileInfo, api) {
10
+ const filePath = fileInfo.path;
11
+ if (!(0, codemods_1.isApiChangeTarget)(filePath)) {
12
+ return fileInfo.source;
13
+ }
14
+ if (filePath.endsWith('.html')) {
15
+ return fileInfo.source;
16
+ }
17
+ const j = api.jscodeshift;
18
+ const rootSource = j(fileInfo.source);
19
+ (0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dialog', 'DialogSettings', 'themeColor');
20
+ (0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dialog', 'WindowSettings', 'themeColor');
21
+ return rootSource.toSource();
22
+ }
@@ -0,0 +1,30 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.default = default_1;
8
+ const tslib_1 = require("tslib");
9
+ const fs = tslib_1.__importStar(require("fs"));
10
+ const codemods_1 = require("@progress/kendo-angular-common/codemods");
11
+ function default_1(fileInfo, api) {
12
+ const filePath = fileInfo.path;
13
+ if (!(0, codemods_1.isApiChangeTarget)(filePath)) {
14
+ return fileInfo.source;
15
+ }
16
+ // Handle HTML files and inline templates
17
+ const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeRemoval)(templateContent, 'kendo-window', 'themeColor'));
18
+ if (filePath.endsWith('.html')) {
19
+ if (htmlResult && htmlResult !== fileInfo.source) {
20
+ fs.writeFileSync(filePath, htmlResult, 'utf-8');
21
+ return htmlResult;
22
+ }
23
+ return fileInfo.source;
24
+ }
25
+ // Handle TypeScript property transformations
26
+ const j = api.jscodeshift;
27
+ const rootSource = j(htmlResult || fileInfo.source);
28
+ (0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dialog', 'WindowComponent', 'themeColor');
29
+ return rootSource.toSource();
30
+ }
@@ -11,7 +11,6 @@ import { LicenseMessage } from '@progress/kendo-licensing';
11
11
  import { ActionsLayout } from '../common/actions-layout';
12
12
  import { DialogAction } from './models/dialog-action';
13
13
  import { DialogAnimation } from './models/dialog-animation';
14
- import { DialogThemeColor } from './models';
15
14
  import * as i0 from "@angular/core";
16
15
  /**
17
16
  * Represents the [Kendo UI Dialog component for Angular](https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog).
@@ -122,13 +121,6 @@ export declare class DialogComponent implements AfterContentInit, AfterViewInit,
122
121
  * @default true
123
122
  */
124
123
  animation: boolean | DialogAnimation;
125
- /**
126
- * Sets a predefined theme color for the Dialog. The color applies to the title bar background and border, and updates the text color.
127
- *
128
- * @type {DialogThemeColor}
129
- */
130
- set themeColor(themeColor: DialogThemeColor);
131
- get themeColor(): DialogThemeColor;
132
124
  /**
133
125
  * @hidden
134
126
  */
@@ -187,7 +179,6 @@ export declare class DialogComponent implements AfterContentInit, AfterViewInit,
187
179
  dialog: ElementRef;
188
180
  private _htmlAttributes;
189
181
  private _cssClass;
190
- private _themeColor;
191
182
  private _closable;
192
183
  private direction;
193
184
  private subscriptions;
@@ -243,7 +234,6 @@ export declare class DialogComponent implements AfterContentInit, AfterViewInit,
243
234
  get wrapperClass(): boolean;
244
235
  get styles(): any;
245
236
  private bubble;
246
- private handleThemeColorClass;
247
237
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
248
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "kendo-dialog", ["kendoDialog"], { "actions": { "alias": "actions"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; "autoFocusedElement": { "alias": "autoFocusedElement"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "title": { "alias": "title"; "required": false; }; "width": { "alias": "width"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "height": { "alias": "height"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; }, { "action": "action"; "close": "close"; }, ["titlebarContent"], ["kendo-dialog-titlebar", "*", "kendo-dialog-actions"], true, never>;
238
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "kendo-dialog", ["kendoDialog"], { "actions": { "alias": "actions"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; "autoFocusedElement": { "alias": "autoFocusedElement"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "title": { "alias": "title"; "required": false; }; "width": { "alias": "width"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "height": { "alias": "height"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; }, { "action": "action"; "close": "close"; }, ["titlebarContent"], ["kendo-dialog-titlebar", "*", "kendo-dialog-actions"], true, never>;
249
239
  }
@@ -7,7 +7,6 @@ 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";
11
10
  /**
12
11
  * Represents the settings for opening a Dialog through the `DialogService`.
13
12
  * ([See example.](https://www.telerik.com/kendo-angular-ui/components/dialogs/api/dialogservice#open))
@@ -104,8 +103,4 @@ export declare class DialogSettings {
104
103
  * Sets the query selector for the element to focus automatically with `autoFocusedElement`.
105
104
  */
106
105
  autoFocusedElement?: string;
107
- /**
108
- * Sets the theme color of the Dialog.
109
- */
110
- themeColor?: DialogThemeColor;
111
106
  }
@@ -8,5 +8,4 @@ export * from './dialog-ref';
8
8
  export * from './dialog-result';
9
9
  export * from './dialog-settings';
10
10
  export * from './dialog-animation';
11
- export * from './theme-color';
12
11
  export * from './dialog-action-divider';
@@ -16,7 +16,7 @@ import { xIcon, windowRestoreIcon, windowIcon, windowMinimizeIcon } from '@progr
16
16
  import { validatePackage } from '@progress/kendo-licensing';
17
17
  import { of, Subscription, Subject, merge } from 'rxjs';
18
18
  import * as i1$2 from '@progress/kendo-angular-common';
19
- import { setHTMLAttributes, getLicenseMessage, shouldShowValidationUI, isDocumentAvailable, normalizeKeys, Keys, focusableSelector, WatermarkOverlayComponent, DraggableDirective, isChanged } from '@progress/kendo-angular-common';
19
+ import { setHTMLAttributes, getLicenseMessage, shouldShowValidationUI, isDocumentAvailable, normalizeKeys, Keys, focusableSelector, WatermarkOverlayComponent, KENDO_WEBMCP_HOST, DraggableDirective, isChanged } from '@progress/kendo-angular-common';
20
20
  import { offset, scrollPosition, positionWithScroll, getDocumentElement, getWindowViewPort } from '@progress/kendo-popup-common';
21
21
  import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
22
22
 
@@ -124,7 +124,7 @@ class DialogActionsComponent {
124
124
  } @else {
125
125
  <ng-container [ngTemplateOutlet]="actionsTemplate"></ng-container>
126
126
  }
127
- `, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i1.ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
127
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i1.ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
128
128
  }
129
129
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DialogActionsComponent, decorators: [{
130
130
  type: Component,
@@ -429,6 +429,7 @@ class DialogTitleBarComponent {
429
429
  [attr.title]="closeButtonTitle"
430
430
  [attr.aria-label]="closeButtonTitle"
431
431
  icon="close"
432
+ size="xsmall"
432
433
  [svgIcon]="xIcon"
433
434
  class="k-window-titlebar-action k-dialog-titlebar-action"
434
435
  (click)="onCloseClick($event)"
@@ -437,7 +438,7 @@ class DialogTitleBarComponent {
437
438
  </div>
438
439
  }
439
440
  </ng-container>
440
- `, 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", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
441
+ `, 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", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
441
442
  }
442
443
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DialogTitleBarComponent, decorators: [{
443
444
  type: Component,
@@ -473,6 +474,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
473
474
  [attr.title]="closeButtonTitle"
474
475
  [attr.aria-label]="closeButtonTitle"
475
476
  icon="close"
477
+ size="xsmall"
476
478
  [svgIcon]="xIcon"
477
479
  class="k-window-titlebar-action k-dialog-titlebar-action"
478
480
  (click)="onCloseClick($event)"
@@ -511,8 +513,8 @@ const packageMetadata = {
511
513
  productName: 'Kendo UI for Angular',
512
514
  productCode: 'KENDOUIANGULAR',
513
515
  productCodes: ['KENDOUIANGULAR'],
514
- publishDate: 1776957244,
515
- version: '24.0.0-develop.4',
516
+ publishDate: 1779214939,
517
+ version: '24.0.0-develop.40',
516
518
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
517
519
  };
518
520
 
@@ -901,18 +903,6 @@ class DialogComponent {
901
903
  * @default true
902
904
  */
903
905
  animation = true;
904
- /**
905
- * Sets a predefined theme color for the Dialog. The color applies to the title bar background and border, and updates the text color.
906
- *
907
- * @type {DialogThemeColor}
908
- */
909
- set themeColor(themeColor) {
910
- this.handleThemeColorClass(this.themeColor, themeColor);
911
- this._themeColor = themeColor;
912
- }
913
- get themeColor() {
914
- return this._themeColor;
915
- }
916
906
  /**
917
907
  * @hidden
918
908
  */
@@ -988,7 +978,6 @@ class DialogComponent {
988
978
  dialog;
989
979
  _htmlAttributes;
990
980
  _cssClass;
991
- _themeColor = undefined;
992
981
  _closable = true;
993
982
  direction;
994
983
  subscriptions = [];
@@ -1052,7 +1041,6 @@ class DialogComponent {
1052
1041
  }));
1053
1042
  }
1054
1043
  this.initDomEvents();
1055
- this.handleThemeColorClass(null, this.themeColor);
1056
1044
  }
1057
1045
  ngOnInit() {
1058
1046
  if (this.animation) {
@@ -1250,21 +1238,8 @@ class DialogComponent {
1250
1238
  this.subscriptions.push(s);
1251
1239
  }
1252
1240
  }
1253
- handleThemeColorClass(previousValue, currentValue) {
1254
- this.ngZone.onStable.pipe(take(1)).subscribe(() => {
1255
- const dialog = this.dialog.nativeElement;
1256
- if (previousValue) {
1257
- const classToRemove = `k-dialog-${previousValue}`;
1258
- this.renderer.removeClass(dialog, classToRemove);
1259
- }
1260
- if (currentValue) {
1261
- const classToAdd = `k-dialog-${currentValue}`;
1262
- this.renderer.addClass(dialog, classToAdd);
1263
- }
1264
- });
1265
- }
1266
1241
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i2.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Component });
1267
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DialogComponent, isStandalone: true, selector: "kendo-dialog", inputs: { actions: "actions", actionsLayout: "actionsLayout", autoFocusedElement: "autoFocusedElement", closable: "closable", 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: [
1242
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DialogComponent, isStandalone: true, selector: "kendo-dialog", inputs: { actions: "actions", actionsLayout: "actionsLayout", autoFocusedElement: "autoFocusedElement", closable: "closable", title: "title", width: "width", minWidth: "minWidth", maxWidth: "maxWidth", height: "height", minHeight: "minHeight", maxHeight: "maxHeight", animation: "animation" }, outputs: { action: "action", close: "close" }, host: { properties: { "attr.dir": "this.dir", "attr.tabIndex": "this.tabIndex", "class.k-dialog-wrapper": "this.wrapperClass" } }, providers: [
1268
1243
  LocalizationService,
1269
1244
  {
1270
1245
  provide: DIALOG_LOCALIZATION_SERVICE,
@@ -1273,7 +1248,8 @@ class DialogComponent {
1273
1248
  {
1274
1249
  provide: L10N_PREFIX,
1275
1250
  useValue: 'kendo.dialog'
1276
- }
1251
+ },
1252
+ { provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => DialogComponent) }
1277
1253
  ], 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: `
1278
1254
  <ng-container
1279
1255
  kendoDialogLocalizedMessages
@@ -1337,7 +1313,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
1337
1313
  {
1338
1314
  provide: L10N_PREFIX,
1339
1315
  useValue: 'kendo.dialog'
1340
- }
1316
+ },
1317
+ { provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => DialogComponent) }
1341
1318
  ],
1342
1319
  selector: 'kendo-dialog',
1343
1320
  template: `
@@ -1405,8 +1382,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
1405
1382
  type: Input
1406
1383
  }], animation: [{
1407
1384
  type: Input
1408
- }], themeColor: [{
1409
- type: Input
1410
1385
  }], action: [{
1411
1386
  type: Output
1412
1387
  }], close: [{
@@ -1669,10 +1644,6 @@ class DialogSettings {
1669
1644
  * Sets the query selector for the element to focus automatically with `autoFocusedElement`.
1670
1645
  */
1671
1646
  autoFocusedElement;
1672
- /**
1673
- * Sets the theme color of the Dialog.
1674
- */
1675
- themeColor;
1676
1647
  }
1677
1648
 
1678
1649
  // eslint-disable max-line-length
@@ -1820,7 +1791,6 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
1820
1791
  instance.minHeight = options.minHeight;
1821
1792
  instance.maxHeight = options.maxHeight;
1822
1793
  instance.autoFocusedElement = options.autoFocusedElement;
1823
- instance.themeColor = options.themeColor != undefined ? options.themeColor : null;
1824
1794
  instance.closeTitle = options.closeTitle;
1825
1795
  instance.closable = options.closable !== undefined ? options.closable : true;
1826
1796
  instance.cssClass = options.cssClass;
@@ -2596,6 +2566,7 @@ class WindowCloseActionDirective extends Button {
2596
2566
  super(el, renderer, null, localization, ngZone);
2597
2567
  this.window = _service;
2598
2568
  this.fillMode = 'flat';
2569
+ this.size = 'xsmall';
2599
2570
  this.icon = 'x';
2600
2571
  }
2601
2572
  /**
@@ -2702,6 +2673,7 @@ class WindowRestoreActionDirective extends Button {
2702
2673
  super(el, renderer, null, localization, ngZone);
2703
2674
  this.window = _service;
2704
2675
  this.fillMode = 'flat';
2676
+ this.size = 'xsmall';
2705
2677
  this.icon = 'window-restore';
2706
2678
  }
2707
2679
  /**
@@ -2814,6 +2786,7 @@ class WindowMaximizeActionDirective extends Button {
2814
2786
  super(el, renderer, null, localization, ngZone);
2815
2787
  this.window = _service;
2816
2788
  this.fillMode = 'flat';
2789
+ this.size = 'xsmall';
2817
2790
  this.icon = 'window';
2818
2791
  }
2819
2792
  /**
@@ -2926,6 +2899,7 @@ class WindowMinimizeActionDirective extends Button {
2926
2899
  super(el, renderer, null, localization, ngZone);
2927
2900
  this.window = _service;
2928
2901
  this.fillMode = 'flat';
2902
+ this.size = 'xsmall';
2929
2903
  this.icon = 'window-minimize';
2930
2904
  }
2931
2905
  /**
@@ -3066,16 +3040,6 @@ class WindowComponent {
3066
3040
  get resizable() {
3067
3041
  return this.options.resizable;
3068
3042
  }
3069
- /**
3070
- * Sets the predefined theme color for the Window. The color applies to the title bar background and border, and updates the text color.
3071
- */
3072
- set themeColor(themeColor) {
3073
- this.handleThemeColorClass(this.themeColor, themeColor);
3074
- this._themeColor = themeColor;
3075
- }
3076
- get themeColor() {
3077
- return this._themeColor;
3078
- }
3079
3043
  /**
3080
3044
  * @hidden
3081
3045
  */
@@ -3275,7 +3239,6 @@ class WindowComponent {
3275
3239
  titleId = null;
3276
3240
  _htmlAttributes;
3277
3241
  _cssClass;
3278
- _themeColor = undefined;
3279
3242
  direction;
3280
3243
  draged = false;
3281
3244
  resized = false;
@@ -3312,7 +3275,6 @@ class WindowComponent {
3312
3275
  if (this.titleBarView || this.titleBarContent) {
3313
3276
  this.renderer.setAttribute(this.el.nativeElement, 'aria-labelledby', this.titleId);
3314
3277
  }
3315
- this.handleThemeColorClass(null, this.themeColor);
3316
3278
  }
3317
3279
  ngOnInit() {
3318
3280
  this.renderer.removeAttribute(this.el.nativeElement, 'title');
@@ -3577,26 +3539,16 @@ class WindowComponent {
3577
3539
  generateTitleId() {
3578
3540
  return 'kendo-window-title-' + Math.ceil(Math.random() * 1000000).toString();
3579
3541
  }
3580
- handleThemeColorClass(previousValue, currentValue) {
3581
- const wrapper = this.el.nativeElement;
3582
- if (previousValue) {
3583
- const classToRemove = `k-window-${previousValue}`;
3584
- this.renderer.removeClass(wrapper, classToRemove);
3585
- }
3586
- if (currentValue) {
3587
- const classToAdd = `k-window-${currentValue}`;
3588
- this.renderer.addClass(wrapper, classToAdd);
3589
- }
3590
- }
3591
3542
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: WindowComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService }, { token: NavigationService }, { token: i0.NgZone }, { token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
3592
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", 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: [
3543
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: WindowComponent, isStandalone: true, selector: "kendo-window", inputs: { autoFocusedElement: "autoFocusedElement", title: "title", draggable: "draggable", resizable: "resizable", 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: [
3593
3544
  DragResizeService,
3594
3545
  NavigationService,
3595
3546
  LocalizationService,
3596
3547
  {
3597
3548
  provide: L10N_PREFIX,
3598
3549
  useValue: 'kendo.window'
3599
- }
3550
+ },
3551
+ { provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => WindowComponent) }
3600
3552
  ], 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: `
3601
3553
  <ng-container kendoWindowLocalizedMessages
3602
3554
  i18n-closeTitle="kendo.window.closeTitle|The title of the close button"
@@ -3668,7 +3620,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
3668
3620
  {
3669
3621
  provide: L10N_PREFIX,
3670
3622
  useValue: 'kendo.window'
3671
- }
3623
+ },
3624
+ { provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => WindowComponent) }
3672
3625
  ],
3673
3626
  selector: 'kendo-window',
3674
3627
  template: `
@@ -3741,8 +3694,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
3741
3694
  type: Input
3742
3695
  }], resizable: [{
3743
3696
  type: Input
3744
- }], themeColor: [{
3745
- type: Input
3746
3697
  }], keepContent: [{
3747
3698
  type: Input
3748
3699
  }], state: [{
@@ -3938,10 +3889,6 @@ class WindowSettings {
3938
3889
  * Sets the query selector for the element to focus automatically.
3939
3890
  */
3940
3891
  autoFocusedElement;
3941
- /**
3942
- * Sets the theme color of the Window.
3943
- */
3944
- themeColor;
3945
3892
  }
3946
3893
 
3947
3894
  /**
@@ -4113,9 +4060,6 @@ class WindowService {
4113
4060
  instance.keepContent = true;
4114
4061
  }
4115
4062
  }
4116
- if (isPresent(options.themeColor)) {
4117
- instance.themeColor = options.themeColor;
4118
- }
4119
4063
  if (options.content instanceof TemplateRef) {
4120
4064
  instance.contentTemplate = options.content;
4121
4065
  }
package/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export { DialogContentBase } from './dialog/dialog-content-base';
8
8
  export { DialogActionsComponent } from './dialog/dialog-actions.component';
9
9
  export { DialogService } from './dialog/dialog.service';
10
10
  export { DialogContainerService } from './dialog/dialog-container.service';
11
- export { DialogCloseResult, DialogRef, DialogSettings, DialogAction, DialogResult, DialogAnimation, DialogThemeColor, DialogActionDivider } from './dialog/models/';
11
+ export { DialogCloseResult, DialogRef, DialogSettings, DialogAction, DialogResult, DialogAnimation, DialogActionDivider } from './dialog/models/';
12
12
  export { ActionsLayout } from './common/actions-layout';
13
13
  export { DialogAnimationType } from './common/animation-types';
14
14
  export { AnimationDirection } from './common/dialog-animation-direction';
@@ -18,7 +18,7 @@ export { WindowMaximizeActionDirective } from './window/actions/window-maximize-
18
18
  export { WindowMinimizeActionDirective } from './window/actions/window-minimize-action.directive';
19
19
  export { WindowCloseActionDirective } from './window/actions/window-close-action.directive';
20
20
  export { WindowRestoreActionDirective } from './window/actions/window-restore-action.directive';
21
- export { WindowState, WindowSettings, WindowDimensionSetting, WindowRef, WindowCloseResult, WindowThemeColor } from './window/models';
21
+ export { WindowState, WindowSettings, WindowDimensionSetting, WindowRef, WindowCloseResult } from './window/models';
22
22
  export { WindowService } from './window/window.service';
23
23
  export { WindowContainerService } from './window/window-container.service';
24
24
  export { DragResizeService } from './window/drag-resize.service';
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1776957244,
11
- "version": "24.0.0-develop.4",
10
+ "publishDate": 1779214939,
11
+ "version": "24.0.0-develop.40",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dialog",
3
- "version": "24.0.0-develop.4",
3
+ "version": "24.0.0-develop.40",
4
4
  "description": "Dialog Package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -20,10 +20,32 @@
20
20
  ],
21
21
  "@progress": {
22
22
  "friendlyName": "Dialogs",
23
+ "migrations": {
24
+ "options": {
25
+ "parser": "tsx",
26
+ "pattern": "*.{ts,html,css,scss,sass,less}"
27
+ },
28
+ "codemods": {
29
+ "24": [
30
+ {
31
+ "description": "The Dialog's themeColor input property is removed.",
32
+ "file": "codemods/v24/dialog-themeColor.js"
33
+ },
34
+ {
35
+ "description": "The Window's themeColor input property is removed.",
36
+ "file": "codemods/v24/window-themeColor.js"
37
+ },
38
+ {
39
+ "description": "The themeColor property is removed from DialogSettings and WindowSettings.",
40
+ "file": "codemods/v24/dialogSettings-themeColor.js"
41
+ }
42
+ ]
43
+ }
44
+ },
23
45
  "package": {
24
46
  "productName": "Kendo UI for Angular",
25
47
  "productCode": "KENDOUIANGULAR",
26
- "publishDate": 1776957244,
48
+ "publishDate": 1779214939,
27
49
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
28
50
  }
29
51
  },
@@ -33,15 +55,15 @@
33
55
  "@angular/core": "19 - 21",
34
56
  "@angular/platform-browser": "19 - 21",
35
57
  "@progress/kendo-licensing": "^1.11.0",
36
- "@progress/kendo-angular-buttons": "24.0.0-develop.4",
37
- "@progress/kendo-angular-common": "24.0.0-develop.4",
38
- "@progress/kendo-angular-icons": "24.0.0-develop.4",
39
- "@progress/kendo-angular-l10n": "24.0.0-develop.4",
58
+ "@progress/kendo-angular-buttons": "24.0.0-develop.40",
59
+ "@progress/kendo-angular-common": "24.0.0-develop.40",
60
+ "@progress/kendo-angular-icons": "24.0.0-develop.40",
61
+ "@progress/kendo-angular-l10n": "24.0.0-develop.40",
40
62
  "rxjs": "^6.5.3 || ^7.0.0"
41
63
  },
42
64
  "dependencies": {
43
65
  "tslib": "^2.3.1",
44
- "@progress/kendo-angular-schematics": "24.0.0-develop.4",
66
+ "@progress/kendo-angular-schematics": "24.0.0-develop.40",
45
67
  "@progress/kendo-popup-common": "1.9.5"
46
68
  },
47
69
  "schematics": "./schematics/collection.json",
@@ -9,7 +9,7 @@ const schematics_1 = require("@angular-devkit/schematics");
9
9
  function default_1(options) {
10
10
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'DialogsModule', package: 'dialog', peerDependencies: {
11
11
  // Peer dependency of buttons
12
- '@progress/kendo-angular-popup': '24.0.0-develop.4',
12
+ '@progress/kendo-angular-popup': '24.0.0-develop.40',
13
13
  // Peer dependency of icons
14
14
  '@progress/kendo-svg-icons': '^4.0.0'
15
15
  } });
@@ -8,4 +8,3 @@ export * from './window-options';
8
8
  export * from './window-ref';
9
9
  export * from './window-settings';
10
10
  export * from './window-types';
11
- export * from './theme-color';
@@ -6,7 +6,6 @@ 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';
10
9
  /**
11
10
  * Represents the settings for the Window actions when you open a Window through `WindowService`. ([See example.](https://www.telerik.com/kendo-angular-ui/components/dialogs/api/windowservice#open))
12
11
  */
@@ -95,8 +94,4 @@ export declare class WindowSettings {
95
94
  * Sets the query selector for the element to focus automatically.
96
95
  */
97
96
  autoFocusedElement?: string;
98
- /**
99
- * Sets the theme color of the Window.
100
- */
101
- themeColor?: WindowThemeColor;
102
97
  }
@@ -11,7 +11,6 @@ import { WindowTitleBarComponent } from './window-titlebar.component';
11
11
  import { NavigationService } from './navigation.service';
12
12
  import { WindowDimensionSetting, WindowOffsetSetting, WindowState } from './models/window-types';
13
13
  import { WindowMessages } from './models/window-messages';
14
- import { WindowThemeColor } from './models';
15
14
  import * as i0 from "@angular/core";
16
15
  /**
17
16
  * Represents the [Kendo UI Window component for Angular](https://www.telerik.com/kendo-angular-ui/components/dialogs/window).
@@ -55,11 +54,6 @@ export declare class WindowComponent implements OnInit, OnDestroy, OnChanges, Af
55
54
  */
56
55
  set resizable(value: boolean);
57
56
  get resizable(): boolean;
58
- /**
59
- * Sets the predefined theme color for the Window. The color applies to the title bar background and border, and updates the text color.
60
- */
61
- set themeColor(themeColor: WindowThemeColor);
62
- get themeColor(): WindowThemeColor;
63
57
  /**
64
58
  * @hidden
65
59
  */
@@ -194,7 +188,6 @@ export declare class WindowComponent implements OnInit, OnDestroy, OnChanges, Af
194
188
  titleId: string;
195
189
  private _htmlAttributes;
196
190
  private _cssClass;
197
- private _themeColor;
198
191
  private direction;
199
192
  private draged;
200
193
  private resized;
@@ -266,7 +259,6 @@ export declare class WindowComponent implements OnInit, OnDestroy, OnChanges, Af
266
259
  * @hidden
267
260
  */
268
261
  private generateTitleId;
269
- private handleThemeColorClass;
270
262
  static ɵfac: i0.ɵɵFactoryDeclaration<WindowComponent, never>;
271
- static ɵcmp: i0.ɵɵComponentDeclaration<WindowComponent, "kendo-window", ["kendoWindow"], { "autoFocusedElement": { "alias": "autoFocusedElement"; "required": false; }; "title": { "alias": "title"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "keepContent": { "alias": "keepContent"; "required": false; }; "state": { "alias": "state"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "top": { "alias": "top"; "required": false; }; "left": { "alias": "left"; "required": false; }; }, { "dragStart": "dragStart"; "dragEnd": "dragEnd"; "resizeStart": "resizeStart"; "resizeEnd": "resizeEnd"; "close": "close"; "widthChange": "widthChange"; "heightChange": "heightChange"; "topChange": "topChange"; "leftChange": "leftChange"; "stateChange": "stateChange"; }, ["titleBarContent"], ["kendo-window-titlebar", "*"], true, never>;
263
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowComponent, "kendo-window", ["kendoWindow"], { "autoFocusedElement": { "alias": "autoFocusedElement"; "required": false; }; "title": { "alias": "title"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "keepContent": { "alias": "keepContent"; "required": false; }; "state": { "alias": "state"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "top": { "alias": "top"; "required": false; }; "left": { "alias": "left"; "required": false; }; }, { "dragStart": "dragStart"; "dragEnd": "dragEnd"; "resizeStart": "resizeStart"; "resizeEnd": "resizeEnd"; "close": "close"; "widthChange": "widthChange"; "heightChange": "heightChange"; "topChange": "topChange"; "leftChange": "leftChange"; "stateChange": "stateChange"; }, ["titleBarContent"], ["kendo-window-titlebar", "*"], true, never>;
272
264
  }
@@ -1,14 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Represents the possible theme colors for the Dialog.
7
- *
8
- * Use the `DialogThemeColor` type to set the color theme for Dialog components. The possible values are:
9
- * - `primary` &mdash;Applies coloring based on the `primary` theme color.
10
- * - `light`&mdash; Applies coloring based on the `light` theme color.
11
- * - `dark`&mdash; Applies coloring based on the `dark` theme color.
12
- *
13
- */
14
- export type DialogThemeColor = 'primary' | 'light' | 'dark';