@progress/kendo-angular-dialog 14.1.1-develop.7 → 14.2.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.
@@ -5,6 +5,7 @@
5
5
  import { EventEmitter, TemplateRef, ElementRef } from '@angular/core';
6
6
  import { DialogAction } from './models/dialog-action';
7
7
  import { ActionsLayout } from '../common/actions-layout';
8
+ import { DialogActionDivider } from './models/dialog-action-divider';
8
9
  import * as i0 from "@angular/core";
9
10
  /**
10
11
  * Specifies the action buttons of the Dialog
@@ -47,6 +48,10 @@ export declare class DialogActionsComponent {
47
48
  * @hidden
48
49
  */
49
50
  buttonClass(action: DialogAction): string;
51
+ /**
52
+ * @hidden
53
+ */
54
+ isDivider(action: DialogAction | DialogActionDivider): boolean;
50
55
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogActionsComponent, never>;
51
56
  static ɵcmp: i0.ɵɵComponentDeclaration<DialogActionsComponent, "kendo-dialog-actions", never, { "actions": "actions"; "layout": "layout"; }, { "action": "action"; }, never, ["*"]>;
52
57
  }
@@ -0,0 +1,8 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Specifies a Dialog action that will be used as divider.
7
+ */
8
+ export declare type DialogActionDivider = 'spacer';
@@ -4,7 +4,6 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { TemplateRef, ViewContainerRef } from "@angular/core";
6
6
  import { ActionsLayout } from "./../../common/actions-layout";
7
- import { DialogAction } from "./dialog-action";
8
7
  import { DialogAnimation } from "./dialog-animation";
9
8
  import { DialogRef } from "./dialog-ref";
10
9
  import { DialogResult } from "./dialog-result";
@@ -98,7 +97,7 @@ export declare class DialogSettings {
98
97
  /**
99
98
  * Sets the action buttons of the Dialog.
100
99
  */
101
- actions?: DialogAction[] | any[] | TemplateRef<any>;
100
+ actions?: any[] | TemplateRef<any>;
102
101
  /**
103
102
  * Specifies the layout of the action buttons in the Dialog.
104
103
  */
@@ -9,3 +9,4 @@ export * from './dialog-result';
9
9
  export * from './dialog-settings';
10
10
  export * from './dialog-animation';
11
11
  export * from './theme-color';
12
+ export * from './dialog-action-divider';
@@ -70,20 +70,32 @@ export class DialogActionsComponent {
70
70
  }
71
71
  return classes.join(' ');
72
72
  }
73
+ /**
74
+ * @hidden
75
+ */
76
+ isDivider(action) {
77
+ return action === 'spacer';
78
+ }
73
79
  }
74
80
  DialogActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogActionsComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
75
81
  DialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: { actions: "actions", layout: "layout" }, outputs: { action: "action" }, host: { properties: { "class.k-actions": "this.hostClasses", "class.k-actions-horizontal": "this.hostClasses", "class.k-window-actions": "this.hostClasses", "class.k-dialog-actions": "this.hostClasses", "class.k-actions-start": "this.startClassName", "class.k-actions-center": "this.centerClassName", "class.k-actions-end": "this.endClassName", "class.k-actions-stretched": "this.stretchedClassName" } }, ngImport: i0, template: `
76
82
  <ng-content *ngIf="!actions"></ng-content>
77
83
  <ng-container *ngIf="actionsArray; else actionTemplate">
78
- <button
79
- type="button"
80
- *ngFor="let action of actionsArray"
81
- [ngClass]="buttonClass(action)"
82
- (click)="onButtonClick(action, $event)"
83
- [attr.aria-label]="action.text"
84
- >
85
- {{ action.text }}
86
- </button>
84
+ <ng-container *ngFor="let action of actionsArray">
85
+ <ng-container *ngIf="isDivider(action); else defaultAction">
86
+ <span class="k-spacer"></span>
87
+ </ng-container>
88
+ <ng-template #defaultAction>
89
+ <button
90
+ type="button"
91
+ [ngClass]="buttonClass(action)"
92
+ (click)="onButtonClick(action, $event)"
93
+ [attr.aria-label]="action.text"
94
+ >
95
+ {{ action.text }}
96
+ </button>
97
+ </ng-template>
98
+ </ng-container>
87
99
  </ng-container>
88
100
  <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
89
101
  `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
@@ -94,15 +106,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
94
106
  template: `
95
107
  <ng-content *ngIf="!actions"></ng-content>
96
108
  <ng-container *ngIf="actionsArray; else actionTemplate">
97
- <button
98
- type="button"
99
- *ngFor="let action of actionsArray"
100
- [ngClass]="buttonClass(action)"
101
- (click)="onButtonClick(action, $event)"
102
- [attr.aria-label]="action.text"
103
- >
104
- {{ action.text }}
105
- </button>
109
+ <ng-container *ngFor="let action of actionsArray">
110
+ <ng-container *ngIf="isDivider(action); else defaultAction">
111
+ <span class="k-spacer"></span>
112
+ </ng-container>
113
+ <ng-template #defaultAction>
114
+ <button
115
+ type="button"
116
+ [ngClass]="buttonClass(action)"
117
+ (click)="onButtonClick(action, $event)"
118
+ [attr.aria-label]="action.text"
119
+ >
120
+ {{ action.text }}
121
+ </button>
122
+ </ng-template>
123
+ </ng-container>
106
124
  </ng-container>
107
125
  <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
108
126
  `
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -9,3 +9,4 @@ export * from './dialog-result';
9
9
  export * from './dialog-settings';
10
10
  export * from './dialog-animation';
11
11
  export * from './theme-color';
12
+ export * from './dialog-action-divider';
@@ -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: 1700475305,
13
- version: '14.1.1-develop.7',
12
+ publishDate: 1700668151,
13
+ version: '14.2.0-develop.2',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -270,20 +270,32 @@ class DialogActionsComponent {
270
270
  }
271
271
  return classes.join(' ');
272
272
  }
273
+ /**
274
+ * @hidden
275
+ */
276
+ isDivider(action) {
277
+ return action === 'spacer';
278
+ }
273
279
  }
274
280
  DialogActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogActionsComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
275
281
  DialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: { actions: "actions", layout: "layout" }, outputs: { action: "action" }, host: { properties: { "class.k-actions": "this.hostClasses", "class.k-actions-horizontal": "this.hostClasses", "class.k-window-actions": "this.hostClasses", "class.k-dialog-actions": "this.hostClasses", "class.k-actions-start": "this.startClassName", "class.k-actions-center": "this.centerClassName", "class.k-actions-end": "this.endClassName", "class.k-actions-stretched": "this.stretchedClassName" } }, ngImport: i0, template: `
276
282
  <ng-content *ngIf="!actions"></ng-content>
277
283
  <ng-container *ngIf="actionsArray; else actionTemplate">
278
- <button
279
- type="button"
280
- *ngFor="let action of actionsArray"
281
- [ngClass]="buttonClass(action)"
282
- (click)="onButtonClick(action, $event)"
283
- [attr.aria-label]="action.text"
284
- >
285
- {{ action.text }}
286
- </button>
284
+ <ng-container *ngFor="let action of actionsArray">
285
+ <ng-container *ngIf="isDivider(action); else defaultAction">
286
+ <span class="k-spacer"></span>
287
+ </ng-container>
288
+ <ng-template #defaultAction>
289
+ <button
290
+ type="button"
291
+ [ngClass]="buttonClass(action)"
292
+ (click)="onButtonClick(action, $event)"
293
+ [attr.aria-label]="action.text"
294
+ >
295
+ {{ action.text }}
296
+ </button>
297
+ </ng-template>
298
+ </ng-container>
287
299
  </ng-container>
288
300
  <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
289
301
  `, isInline: true, directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
@@ -294,15 +306,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
294
306
  template: `
295
307
  <ng-content *ngIf="!actions"></ng-content>
296
308
  <ng-container *ngIf="actionsArray; else actionTemplate">
297
- <button
298
- type="button"
299
- *ngFor="let action of actionsArray"
300
- [ngClass]="buttonClass(action)"
301
- (click)="onButtonClick(action, $event)"
302
- [attr.aria-label]="action.text"
303
- >
304
- {{ action.text }}
305
- </button>
309
+ <ng-container *ngFor="let action of actionsArray">
310
+ <ng-container *ngIf="isDivider(action); else defaultAction">
311
+ <span class="k-spacer"></span>
312
+ </ng-container>
313
+ <ng-template #defaultAction>
314
+ <button
315
+ type="button"
316
+ [ngClass]="buttonClass(action)"
317
+ (click)="onButtonClick(action, $event)"
318
+ [attr.aria-label]="action.text"
319
+ >
320
+ {{ action.text }}
321
+ </button>
322
+ </ng-template>
323
+ </ng-container>
306
324
  </ng-container>
307
325
  <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
308
326
  `
@@ -606,8 +624,8 @@ const packageMetadata = {
606
624
  name: '@progress/kendo-angular-dialog',
607
625
  productName: 'Kendo UI for Angular',
608
626
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
609
- publishDate: 1700475305,
610
- version: '14.1.1-develop.7',
627
+ publishDate: 1700668151,
628
+ version: '14.2.0-develop.2',
611
629
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
612
630
  };
613
631
 
@@ -270,20 +270,32 @@ class DialogActionsComponent {
270
270
  }
271
271
  return classes.join(' ');
272
272
  }
273
+ /**
274
+ * @hidden
275
+ */
276
+ isDivider(action) {
277
+ return action === 'spacer';
278
+ }
273
279
  }
274
280
  DialogActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DialogActionsComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
275
281
  DialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: { actions: "actions", layout: "layout" }, outputs: { action: "action" }, host: { properties: { "class.k-actions": "this.hostClasses", "class.k-actions-horizontal": "this.hostClasses", "class.k-window-actions": "this.hostClasses", "class.k-dialog-actions": "this.hostClasses", "class.k-actions-start": "this.startClassName", "class.k-actions-center": "this.centerClassName", "class.k-actions-end": "this.endClassName", "class.k-actions-stretched": "this.stretchedClassName" } }, ngImport: i0, template: `
276
282
  <ng-content *ngIf="!actions"></ng-content>
277
283
  <ng-container *ngIf="actionsArray; else actionTemplate">
278
- <button
279
- type="button"
280
- *ngFor="let action of actionsArray"
281
- [ngClass]="buttonClass(action)"
282
- (click)="onButtonClick(action, $event)"
283
- [attr.aria-label]="action.text"
284
- >
285
- {{ action.text }}
286
- </button>
284
+ <ng-container *ngFor="let action of actionsArray">
285
+ <ng-container *ngIf="isDivider(action); else defaultAction">
286
+ <span class="k-spacer"></span>
287
+ </ng-container>
288
+ <ng-template #defaultAction>
289
+ <button
290
+ type="button"
291
+ [ngClass]="buttonClass(action)"
292
+ (click)="onButtonClick(action, $event)"
293
+ [attr.aria-label]="action.text"
294
+ >
295
+ {{ action.text }}
296
+ </button>
297
+ </ng-template>
298
+ </ng-container>
287
299
  </ng-container>
288
300
  <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
289
301
  `, isInline: true, directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
@@ -294,15 +306,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
294
306
  template: `
295
307
  <ng-content *ngIf="!actions"></ng-content>
296
308
  <ng-container *ngIf="actionsArray; else actionTemplate">
297
- <button
298
- type="button"
299
- *ngFor="let action of actionsArray"
300
- [ngClass]="buttonClass(action)"
301
- (click)="onButtonClick(action, $event)"
302
- [attr.aria-label]="action.text"
303
- >
304
- {{ action.text }}
305
- </button>
309
+ <ng-container *ngFor="let action of actionsArray">
310
+ <ng-container *ngIf="isDivider(action); else defaultAction">
311
+ <span class="k-spacer"></span>
312
+ </ng-container>
313
+ <ng-template #defaultAction>
314
+ <button
315
+ type="button"
316
+ [ngClass]="buttonClass(action)"
317
+ (click)="onButtonClick(action, $event)"
318
+ [attr.aria-label]="action.text"
319
+ >
320
+ {{ action.text }}
321
+ </button>
322
+ </ng-template>
323
+ </ng-container>
306
324
  </ng-container>
307
325
  <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
308
326
  `
@@ -602,8 +620,8 @@ const packageMetadata = {
602
620
  name: '@progress/kendo-angular-dialog',
603
621
  productName: 'Kendo UI for Angular',
604
622
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
605
- publishDate: 1700475305,
606
- version: '14.1.1-develop.7',
623
+ publishDate: 1700668151,
624
+ version: '14.2.0-develop.2',
607
625
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
608
626
  };
609
627
 
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 } from './dialog/models/';
11
+ export { DialogCloseResult, DialogRef, DialogSettings, DialogAction, DialogResult, DialogAnimation, DialogThemeColor, 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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dialog",
3
- "version": "14.1.1-develop.7",
3
+ "version": "14.2.0-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": "13 - 17",
28
28
  "@angular/platform-browser": "13 - 17",
29
29
  "@progress/kendo-licensing": "^1.0.2",
30
- "@progress/kendo-angular-buttons": "14.1.1-develop.7",
31
- "@progress/kendo-angular-common": "14.1.1-develop.7",
32
- "@progress/kendo-angular-icons": "14.1.1-develop.7",
33
- "@progress/kendo-angular-l10n": "14.1.1-develop.7",
30
+ "@progress/kendo-angular-buttons": "14.2.0-develop.2",
31
+ "@progress/kendo-angular-common": "14.2.0-develop.2",
32
+ "@progress/kendo-angular-icons": "14.2.0-develop.2",
33
+ "@progress/kendo-angular-l10n": "14.2.0-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": "14.1.1-develop.7",
38
+ "@progress/kendo-angular-schematics": "14.2.0-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': '14.1.1-develop.7',
7
+ '@progress/kendo-angular-popup': '14.2.0-develop.2',
8
8
  // Peer dependency of icons
9
9
  '@progress/kendo-svg-icons': '^2.0.0'
10
10
  } });