@progress/kendo-angular-dialog 23.3.1-develop.3 → 23.4.0-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.
@@ -37,6 +37,10 @@ export declare class DialogTitleBarComponent implements AfterViewInit {
37
37
  * @hidden
38
38
  */
39
39
  closeTitle: string;
40
+ /**
41
+ * @hidden
42
+ */
43
+ closable: boolean;
40
44
  get className(): true;
41
45
  /**
42
46
  * @hidden
@@ -50,5 +54,5 @@ export declare class DialogTitleBarComponent implements AfterViewInit {
50
54
  */
51
55
  onCloseClick(e: Event): void;
52
56
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogTitleBarComponent, [null, null, { optional: true; }]>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogTitleBarComponent, "kendo-dialog-titlebar", never, { "id": { "alias": "id"; "required": false; }; "closeTitle": { "alias": "closeTitle"; "required": false; }; }, { "close": "close"; }, never, ["*"], true, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogTitleBarComponent, "kendo-dialog-titlebar", never, { "id": { "alias": "id"; "required": false; }; "closeTitle": { "alias": "closeTitle"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; }, { "close": "close"; }, never, ["*"], true, never>;
54
58
  }
@@ -64,6 +64,14 @@ export declare class DialogComponent implements AfterContentInit, AfterViewInit,
64
64
  * This property is related to accessibility.
65
65
  */
66
66
  autoFocusedElement: string;
67
+ /**
68
+ * Specifies whether the Dialog can be closed by the **Close** button in the title bar or by pressing the `Esc` key.
69
+ *
70
+ * @type {boolean}
71
+ * @default true
72
+ */
73
+ set closable(value: boolean);
74
+ get closable(): boolean;
67
75
  /**
68
76
  * Sets the text in the Dialog title bar.
69
77
  *
@@ -180,6 +188,7 @@ export declare class DialogComponent implements AfterContentInit, AfterViewInit,
180
188
  private _htmlAttributes;
181
189
  private _cssClass;
182
190
  private _themeColor;
191
+ private _closable;
183
192
  private direction;
184
193
  private subscriptions;
185
194
  private domSubs;
@@ -236,5 +245,5 @@ export declare class DialogComponent implements AfterContentInit, AfterViewInit,
236
245
  private bubble;
237
246
  private handleThemeColorClass;
238
247
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
239
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "kendo-dialog", ["kendoDialog"], { "actions": { "alias": "actions"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; "autoFocusedElement": { "alias": "autoFocusedElement"; "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>;
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>;
240
249
  }
@@ -87,6 +87,11 @@ export declare class DialogSettings {
87
87
  * Sets the `closeTitle` for the **Close** button.
88
88
  */
89
89
  closeTitle?: string;
90
+ /**
91
+ * Specifies whether the Dialog can be closed by the **Close** button in the title bar or by pressing the `Esc` key.
92
+ * @default true
93
+ */
94
+ closable?: boolean;
90
95
  /**
91
96
  * Sets the Dialog `actions` buttons.
92
97
  */
@@ -366,6 +366,10 @@ class DialogTitleBarComponent {
366
366
  * @hidden
367
367
  */
368
368
  closeTitle;
369
+ /**
370
+ * @hidden
371
+ */
372
+ closable = true;
369
373
  get className() {
370
374
  return true;
371
375
  }
@@ -396,7 +400,7 @@ class DialogTitleBarComponent {
396
400
  this.close.emit(eventArgs);
397
401
  }
398
402
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DialogTitleBarComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i1$1.LocalizationService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
399
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: DialogTitleBarComponent, isStandalone: true, selector: "kendo-dialog-titlebar", inputs: { id: "id", closeTitle: "closeTitle" }, outputs: { close: "close" }, host: { properties: { "class.k-window-titlebar": "this.className", "class.k-dialog-titlebar": "this.className" } }, providers: [
403
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DialogTitleBarComponent, isStandalone: true, selector: "kendo-dialog-titlebar", inputs: { id: "id", closeTitle: "closeTitle", closable: "closable" }, outputs: { close: "close" }, host: { properties: { "class.k-window-titlebar": "this.className", "class.k-dialog-titlebar": "this.className" } }, providers: [
400
404
  TitleBarLocalizationService,
401
405
  {
402
406
  provide: LocalizationService,
@@ -416,20 +420,22 @@ class DialogTitleBarComponent {
416
420
  <ng-content></ng-content>
417
421
  </span>
418
422
 
419
- <div class="k-window-titlebar-actions k-dialog-titlebar-actions">
420
- <button
421
- kendoButton
422
- fillMode="flat"
423
- type="button"
424
- [attr.title]="closeButtonTitle"
425
- [attr.aria-label]="closeButtonTitle"
426
- icon="close"
427
- [svgIcon]="xIcon"
428
- class="k-window-titlebar-action k-dialog-titlebar-action"
429
- (click)="onCloseClick($event)"
430
- >
431
- </button>
432
- </div>
423
+ @if (closable) {
424
+ <div class="k-window-titlebar-actions k-dialog-titlebar-actions">
425
+ <button
426
+ kendoButton
427
+ fillMode="flat"
428
+ type="button"
429
+ [attr.title]="closeButtonTitle"
430
+ [attr.aria-label]="closeButtonTitle"
431
+ icon="close"
432
+ [svgIcon]="xIcon"
433
+ class="k-window-titlebar-action k-dialog-titlebar-action"
434
+ (click)="onCloseClick($event)"
435
+ >
436
+ </button>
437
+ </div>
438
+ }
433
439
  </ng-container>
434
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"] }] });
435
441
  }
@@ -458,20 +464,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
458
464
  <ng-content></ng-content>
459
465
  </span>
460
466
 
461
- <div class="k-window-titlebar-actions k-dialog-titlebar-actions">
462
- <button
463
- kendoButton
464
- fillMode="flat"
465
- type="button"
466
- [attr.title]="closeButtonTitle"
467
- [attr.aria-label]="closeButtonTitle"
468
- icon="close"
469
- [svgIcon]="xIcon"
470
- class="k-window-titlebar-action k-dialog-titlebar-action"
471
- (click)="onCloseClick($event)"
472
- >
473
- </button>
474
- </div>
467
+ @if (closable) {
468
+ <div class="k-window-titlebar-actions k-dialog-titlebar-actions">
469
+ <button
470
+ kendoButton
471
+ fillMode="flat"
472
+ type="button"
473
+ [attr.title]="closeButtonTitle"
474
+ [attr.aria-label]="closeButtonTitle"
475
+ icon="close"
476
+ [svgIcon]="xIcon"
477
+ class="k-window-titlebar-action k-dialog-titlebar-action"
478
+ (click)="onCloseClick($event)"
479
+ >
480
+ </button>
481
+ </div>
482
+ }
475
483
  </ng-container>
476
484
  `,
477
485
  standalone: true,
@@ -485,6 +493,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
485
493
  type: Input
486
494
  }], closeTitle: [{
487
495
  type: Input
496
+ }], closable: [{
497
+ type: Input
488
498
  }], className: [{
489
499
  type: HostBinding,
490
500
  args: ['class.k-window-titlebar']
@@ -501,8 +511,8 @@ const packageMetadata = {
501
511
  productName: 'Kendo UI for Angular',
502
512
  productCode: 'KENDOUIANGULAR',
503
513
  productCodes: ['KENDOUIANGULAR'],
504
- publishDate: 1775658946,
505
- version: '23.3.1-develop.3',
514
+ publishDate: 1776172098,
515
+ version: '23.4.0-develop.2',
506
516
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
507
517
  };
508
518
 
@@ -826,6 +836,21 @@ class DialogComponent {
826
836
  * This property is related to accessibility.
827
837
  */
828
838
  autoFocusedElement;
839
+ /**
840
+ * Specifies whether the Dialog can be closed by the **Close** button in the title bar or by pressing the `Esc` key.
841
+ *
842
+ * @type {boolean}
843
+ * @default true
844
+ */
845
+ set closable(value) {
846
+ this._closable = value;
847
+ if (this.titlebarContent?.first) {
848
+ this.titlebarContent.first.closable = value;
849
+ }
850
+ }
851
+ get closable() {
852
+ return this._closable;
853
+ }
829
854
  /**
830
855
  * Sets the text in the Dialog title bar.
831
856
  *
@@ -964,6 +989,7 @@ class DialogComponent {
964
989
  _htmlAttributes;
965
990
  _cssClass;
966
991
  _themeColor = undefined;
992
+ _closable = true;
967
993
  direction;
968
994
  subscriptions = [];
969
995
  domSubs = new Subscription();
@@ -986,11 +1012,13 @@ class DialogComponent {
986
1012
  this.renderer.setAttribute(this.wrapper.nativeElement.querySelector('.k-dialog'), 'aria-describedby', this.contentId);
987
1013
  if (this.titlebarContent.first) {
988
1014
  this.titlebarContent.first.id = this.titleId;
1015
+ this.titlebarContent.first.closable = this.closable;
989
1016
  }
990
1017
  else {
991
1018
  this.subscriptions.push(this.titlebarContent.changes.subscribe(() => {
992
1019
  if (isPresent(this.titlebarContent.first)) {
993
1020
  this.titlebarContent.first.id = this.titleId;
1021
+ this.titlebarContent.first.closable = this.closable;
994
1022
  this.ngZone.onStable.pipe(take(1)).subscribe(() => {
995
1023
  this.bubble('close', this.titlebarContent.first);
996
1024
  this.renderer.setAttribute(this.wrapper.nativeElement.querySelector('.k-dialog'), 'aria-labelledby', this.titleId);
@@ -1064,7 +1092,7 @@ class DialogComponent {
1064
1092
  const parent = target.parentElement;
1065
1093
  const code = normalizeKeys(event);
1066
1094
  if (hasClasses(target, DIALOG_ELEMENTS_HANDLING_ESC_KEY) || hasClasses(parent, DIALOG_ELEMENTS_HANDLING_ESC_KEY)) {
1067
- if (code === Keys.Escape) {
1095
+ if (code === Keys.Escape && this.closable) {
1068
1096
  this.ngZone.run(() => {
1069
1097
  this.close.emit(new DialogCloseResult());
1070
1098
  });
@@ -1236,7 +1264,7 @@ class DialogComponent {
1236
1264
  });
1237
1265
  }
1238
1266
  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 });
1239
- 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", 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: [
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: [
1240
1268
  LocalizationService,
1241
1269
  {
1242
1270
  provide: DIALOG_LOCALIZATION_SERVICE,
@@ -1256,7 +1284,7 @@ class DialogComponent {
1256
1284
 
1257
1285
  <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
1258
1286
  @if (title) {
1259
- <kendo-dialog-titlebar [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
1287
+ <kendo-dialog-titlebar [closable]="closable" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
1260
1288
  }
1261
1289
  @if (!title) {
1262
1290
  <ng-content select="kendo-dialog-titlebar"></ng-content>
@@ -1283,7 +1311,7 @@ class DialogComponent {
1283
1311
  }
1284
1312
  </div>
1285
1313
  </ng-container>
1286
- `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }], animations: [
1314
+ `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle", "closable"], outputs: ["close"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }], animations: [
1287
1315
  trigger('overlayAppear', [
1288
1316
  state('in', style({ opacity: 1 })),
1289
1317
  transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
@@ -1322,7 +1350,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
1322
1350
 
1323
1351
  <div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
1324
1352
  @if (title) {
1325
- <kendo-dialog-titlebar [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
1353
+ <kendo-dialog-titlebar [closable]="closable" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
1326
1354
  }
1327
1355
  @if (!title) {
1328
1356
  <ng-content select="kendo-dialog-titlebar"></ng-content>
@@ -1359,6 +1387,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
1359
1387
  type: Input
1360
1388
  }], autoFocusedElement: [{
1361
1389
  type: Input
1390
+ }], closable: [{
1391
+ type: Input
1362
1392
  }], title: [{
1363
1393
  type: Input
1364
1394
  }], width: [{
@@ -1622,6 +1652,11 @@ class DialogSettings {
1622
1652
  * Sets the `closeTitle` for the **Close** button.
1623
1653
  */
1624
1654
  closeTitle;
1655
+ /**
1656
+ * Specifies whether the Dialog can be closed by the **Close** button in the title bar or by pressing the `Esc` key.
1657
+ * @default true
1658
+ */
1659
+ closable;
1625
1660
  /**
1626
1661
  * Sets the Dialog `actions` buttons.
1627
1662
  */
@@ -1787,6 +1822,7 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
1787
1822
  instance.autoFocusedElement = options.autoFocusedElement;
1788
1823
  instance.themeColor = options.themeColor != undefined ? options.themeColor : null;
1789
1824
  instance.closeTitle = options.closeTitle;
1825
+ instance.closable = options.closable !== undefined ? options.closable : true;
1790
1826
  instance.cssClass = options.cssClass;
1791
1827
  instance.htmlAttributes = options.htmlAttributes;
1792
1828
  instance.animation = options.animation !== undefined ? options.animation : true;
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1775658946,
11
- "version": "23.3.1-develop.3",
10
+ "publishDate": 1776172098,
11
+ "version": "23.4.0-develop.2",
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": "23.3.1-develop.3",
3
+ "version": "23.4.0-develop.2",
4
4
  "description": "Dialog Package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -23,7 +23,7 @@
23
23
  "package": {
24
24
  "productName": "Kendo UI for Angular",
25
25
  "productCode": "KENDOUIANGULAR",
26
- "publishDate": 1775658946,
26
+ "publishDate": 1776172098,
27
27
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
28
28
  }
29
29
  },
@@ -33,15 +33,15 @@
33
33
  "@angular/core": "19 - 21",
34
34
  "@angular/platform-browser": "19 - 21",
35
35
  "@progress/kendo-licensing": "^1.10.0",
36
- "@progress/kendo-angular-buttons": "23.3.1-develop.3",
37
- "@progress/kendo-angular-common": "23.3.1-develop.3",
38
- "@progress/kendo-angular-icons": "23.3.1-develop.3",
39
- "@progress/kendo-angular-l10n": "23.3.1-develop.3",
36
+ "@progress/kendo-angular-buttons": "23.4.0-develop.2",
37
+ "@progress/kendo-angular-common": "23.4.0-develop.2",
38
+ "@progress/kendo-angular-icons": "23.4.0-develop.2",
39
+ "@progress/kendo-angular-l10n": "23.4.0-develop.2",
40
40
  "rxjs": "^6.5.3 || ^7.0.0"
41
41
  },
42
42
  "dependencies": {
43
43
  "tslib": "^2.3.1",
44
- "@progress/kendo-angular-schematics": "23.3.1-develop.3",
44
+ "@progress/kendo-angular-schematics": "23.4.0-develop.2",
45
45
  "@progress/kendo-popup-common": "1.9.5"
46
46
  },
47
47
  "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': '23.3.1-develop.3',
12
+ '@progress/kendo-angular-popup': '23.4.0-develop.2',
13
13
  // Peer dependency of icons
14
14
  '@progress/kendo-svg-icons': '^4.0.0'
15
15
  } });