@progress/kendo-angular-notification 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.
- package/NOTICE.txt +2599 -172
- package/fesm2022/progress-kendo-angular-notification.mjs +33 -16
- package/models/notification-settings.d.ts +1 -1
- package/models/type.d.ts +19 -5
- package/package-metadata.mjs +2 -2
- package/package.json +6 -6
|
@@ -11,8 +11,8 @@ import { take } from 'rxjs/operators';
|
|
|
11
11
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
12
12
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
13
13
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
14
|
-
import { xIcon, infoCircleIcon,
|
|
15
|
-
import { guid } from '@progress/kendo-angular-common';
|
|
14
|
+
import { xIcon, infoCircleIcon, xCircleIcon, exclamationCircleIcon, checkIcon } from '@progress/kendo-svg-icons';
|
|
15
|
+
import { guid, KENDO_WEBMCP_HOST } from '@progress/kendo-angular-common';
|
|
16
16
|
import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
|
|
17
17
|
|
|
18
18
|
class NotificationSettings {
|
|
@@ -71,7 +71,7 @@ class NotificationSettings {
|
|
|
71
71
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/notification/types)).
|
|
72
72
|
*
|
|
73
73
|
* The possible values are:
|
|
74
|
-
* * `style: (Default) 'none'|'
|
|
74
|
+
* * `style: (Default) 'none'|'base'|'primary'|'secondary'|'tertiary'|'info'|'success'|'warning'|'error'|'inverse'`
|
|
75
75
|
* * `icon: 'true'|'false'`
|
|
76
76
|
*
|
|
77
77
|
* @default { style: 'none', icon: true }
|
|
@@ -129,8 +129,8 @@ const packageMetadata = {
|
|
|
129
129
|
productName: 'Kendo UI for Angular',
|
|
130
130
|
productCode: 'KENDOUIANGULAR',
|
|
131
131
|
productCodes: ['KENDOUIANGULAR'],
|
|
132
|
-
publishDate:
|
|
133
|
-
version: '24.0.0-develop.
|
|
132
|
+
publishDate: 1779215139,
|
|
133
|
+
version: '24.0.0-develop.40',
|
|
134
134
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
135
135
|
};
|
|
136
136
|
|
|
@@ -290,28 +290,43 @@ class NotificationComponent {
|
|
|
290
290
|
typeClass() {
|
|
291
291
|
return {
|
|
292
292
|
'none': '',
|
|
293
|
+
'base': 'k-notification-base',
|
|
294
|
+
'primary': 'k-notification-primary',
|
|
295
|
+
'secondary': 'k-notification-secondary',
|
|
296
|
+
'tertiary': 'k-notification-tertiary',
|
|
293
297
|
'success': 'k-notification-success',
|
|
294
298
|
'warning': 'k-notification-warning',
|
|
295
299
|
'error': 'k-notification-error',
|
|
296
|
-
'info': 'k-notification-info'
|
|
300
|
+
'info': 'k-notification-info',
|
|
301
|
+
'inverse': 'k-notification-inverse'
|
|
297
302
|
}[this.type.style];
|
|
298
303
|
}
|
|
299
304
|
typeIconClass() {
|
|
300
305
|
return {
|
|
301
306
|
'none': '',
|
|
302
|
-
'
|
|
307
|
+
'base': '',
|
|
308
|
+
'primary': '',
|
|
309
|
+
'secondary': '',
|
|
310
|
+
'tertiary': '',
|
|
311
|
+
'success': 'check',
|
|
303
312
|
'warning': 'exclamation-circle',
|
|
304
|
-
'error': 'x-
|
|
305
|
-
'info': 'info-circle'
|
|
313
|
+
'error': 'x-circle',
|
|
314
|
+
'info': 'info-circle',
|
|
315
|
+
'inverse': ''
|
|
306
316
|
}[this.type.style];
|
|
307
317
|
}
|
|
308
318
|
typeSVGIcon() {
|
|
309
319
|
return {
|
|
310
320
|
'none': null,
|
|
311
|
-
'
|
|
321
|
+
'base': null,
|
|
322
|
+
'primary': null,
|
|
323
|
+
'secondary': null,
|
|
324
|
+
'tertiary': null,
|
|
325
|
+
'success': checkIcon,
|
|
312
326
|
'warning': exclamationCircleIcon,
|
|
313
|
-
'error':
|
|
314
|
-
'info': infoCircleIcon
|
|
327
|
+
'error': xCircleIcon,
|
|
328
|
+
'info': infoCircleIcon,
|
|
329
|
+
'inverse': null
|
|
315
330
|
}[this.type.style];
|
|
316
331
|
}
|
|
317
332
|
onCloseClick() {
|
|
@@ -375,7 +390,8 @@ class NotificationComponent {
|
|
|
375
390
|
{
|
|
376
391
|
provide: L10N_PREFIX,
|
|
377
392
|
useValue: 'kendo.notification'
|
|
378
|
-
}
|
|
393
|
+
},
|
|
394
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => NotificationComponent) }
|
|
379
395
|
], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: `
|
|
380
396
|
<ng-container kendoNotificationLocalizedMessages
|
|
381
397
|
i18n-closeTitle="kendo.notification.closeTitle|The title of the close button"
|
|
@@ -411,7 +427,7 @@ class NotificationComponent {
|
|
|
411
427
|
</div>
|
|
412
428
|
|
|
413
429
|
@if (closable) {
|
|
414
|
-
<span class="k-notification-actions"
|
|
430
|
+
<span class="k-notification-actions">
|
|
415
431
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
416
432
|
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
417
433
|
</span>
|
|
@@ -459,7 +475,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
459
475
|
</div>
|
|
460
476
|
|
|
461
477
|
@if (closable) {
|
|
462
|
-
<span class="k-notification-actions"
|
|
478
|
+
<span class="k-notification-actions">
|
|
463
479
|
<span class="k-notification-action k-notification-close-action" [attr.title]="closeButtonTitle" (click)="onCloseClick()">
|
|
464
480
|
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
465
481
|
</span>
|
|
@@ -472,7 +488,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
472
488
|
{
|
|
473
489
|
provide: L10N_PREFIX,
|
|
474
490
|
useValue: 'kendo.notification'
|
|
475
|
-
}
|
|
491
|
+
},
|
|
492
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => NotificationComponent) }
|
|
476
493
|
],
|
|
477
494
|
standalone: true,
|
|
478
495
|
imports: [LocalizedMessagesDirective, NgClass, IconWrapperComponent, NgTemplateOutlet]
|
|
@@ -62,7 +62,7 @@ export declare class NotificationSettings {
|
|
|
62
62
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/notification/types)).
|
|
63
63
|
*
|
|
64
64
|
* The possible values are:
|
|
65
|
-
* * `style: (Default) 'none'|'
|
|
65
|
+
* * `style: (Default) 'none'|'base'|'primary'|'secondary'|'tertiary'|'info'|'success'|'warning'|'error'|'inverse'`
|
|
66
66
|
* * `icon: 'true'|'false'`
|
|
67
67
|
*
|
|
68
68
|
* @default { style: 'none', icon: true }
|
package/models/type.d.ts
CHANGED
|
@@ -5,12 +5,26 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Specifies the Notification type
|
|
7
7
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/notification/types)).
|
|
8
|
-
*
|
|
9
|
-
* The possible values are:
|
|
10
|
-
* * `style: (Default) 'none'|'success'|'error'|'warning'|'info'`
|
|
11
|
-
* * `icon?: (Default) 'true'|'false'`
|
|
12
8
|
*/
|
|
13
9
|
export type Type = {
|
|
14
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the styling of the Notification.
|
|
12
|
+
*
|
|
13
|
+
* The possible values are:
|
|
14
|
+
* * `none` (Default)—Applies no predefined styling.
|
|
15
|
+
* * `base`—Applies base styling.
|
|
16
|
+
* * `primary`—Applies primary styling.
|
|
17
|
+
* * `secondary`—Applies secondary styling.
|
|
18
|
+
* * `tertiary`—Applies tertiary styling.
|
|
19
|
+
* * `info`—Applies info styling.
|
|
20
|
+
* * `success`—Applies success styling.
|
|
21
|
+
* * `warning`—Applies warning styling.
|
|
22
|
+
* * `error`—Applies error styling.
|
|
23
|
+
* * `inverse`—Applies inverse styling.
|
|
24
|
+
*/
|
|
25
|
+
style?: 'none' | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'inverse';
|
|
26
|
+
/**
|
|
27
|
+
* Specifies whether to render an icon next to the Notification content. Defaults to `false`.
|
|
28
|
+
*/
|
|
15
29
|
icon?: boolean;
|
|
16
30
|
};
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "24.0.0-develop.
|
|
10
|
+
"publishDate": 1779215139,
|
|
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-notification",
|
|
3
|
-
"version": "24.0.0-develop.
|
|
3
|
+
"version": "24.0.0-develop.40",
|
|
4
4
|
"description": "Kendo UI Notification for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"package": {
|
|
18
18
|
"productName": "Kendo UI for Angular",
|
|
19
19
|
"productCode": "KENDOUIANGULAR",
|
|
20
|
-
"publishDate":
|
|
20
|
+
"publishDate": 1779215139,
|
|
21
21
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"@angular/core": "19 - 21",
|
|
28
28
|
"@angular/platform-browser": "19 - 21",
|
|
29
29
|
"@progress/kendo-licensing": "^1.11.0",
|
|
30
|
-
"@progress/kendo-angular-common": "24.0.0-develop.
|
|
31
|
-
"@progress/kendo-angular-l10n": "24.0.0-develop.
|
|
32
|
-
"@progress/kendo-angular-icons": "24.0.0-develop.
|
|
30
|
+
"@progress/kendo-angular-common": "24.0.0-develop.40",
|
|
31
|
+
"@progress/kendo-angular-l10n": "24.0.0-develop.40",
|
|
32
|
+
"@progress/kendo-angular-icons": "24.0.0-develop.40",
|
|
33
33
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"tslib": "^2.3.1",
|
|
37
|
-
"@progress/kendo-angular-schematics": "24.0.0-develop.
|
|
37
|
+
"@progress/kendo-angular-schematics": "24.0.0-develop.40"
|
|
38
38
|
},
|
|
39
39
|
"schematics": "./schematics/collection.json",
|
|
40
40
|
"module": "fesm2022/progress-kendo-angular-notification.mjs",
|