@progress/kendo-angular-notification 3.0.6-dev.202203091018 → 4.0.0-dev.202204131907
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/bundles/kendo-angular-notification.umd.js +5 -0
- package/{dist/es/models/notification-ref.js → esm2015/kendo-angular-notification.js} +4 -0
- package/esm2015/localization/localized-messages.directive.js +38 -0
- package/{dist/es → esm2015}/main.js +2 -0
- package/{dist/es2015 → esm2015}/models/animation.js +1 -0
- package/{dist/es2015 → esm2015}/models/notification-ref.js +1 -0
- package/{dist/es2015 → esm2015}/models/notification-settings.js +0 -0
- package/{dist/es → esm2015}/models/position.js +1 -0
- package/{dist/es2015 → esm2015}/models/type.js +1 -0
- package/{dist/es2015 → esm2015}/notification.component.js +85 -73
- package/{dist/es2015 → esm2015}/notification.container.component.js +25 -27
- package/{dist/es → esm2015}/notification.module.js +16 -16
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/services/notification.service.js +14 -12
- package/{dist/es2015 → esm2015}/utils/animations.js +0 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-notification.js} +170 -146
- package/{dist/es/models/animation.js → kendo-angular-notification.d.ts} +5 -0
- package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +1 -0
- package/{dist/es2015/models → models}/animation.d.ts +0 -0
- package/{dist/es2015/models → models}/notification-ref.d.ts +0 -0
- package/{dist/es2015/models → models}/notification-settings.d.ts +0 -0
- package/{dist/es2015/models → models}/position.d.ts +0 -0
- package/{dist/es2015/models → models}/type.d.ts +0 -0
- package/{dist/es2015/notification.component.d.ts → notification.component.d.ts} +5 -2
- package/{dist/es2015/notification.container.component.d.ts → notification.container.component.d.ts} +3 -1
- package/{dist/es2015/notification.module.d.ts → notification.module.d.ts} +8 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +34 -97
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/services → services}/notification.service.d.ts +4 -1
- package/{dist/es2015/utils → utils}/animations.d.ts +0 -0
- package/dist/cdn/js/kendo-angular-notification.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/index.js +0 -10
- package/dist/es/localization/localized-messages.directive.js +0 -38
- package/dist/es/models/notification-settings.js +0 -54
- package/dist/es/models/type.js +0 -4
- package/dist/es/notification.component.js +0 -222
- package/dist/es/notification.container.component.js +0 -154
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/services/notification.service.js +0 -135
- package/dist/es/utils/animations.js +0 -41
- package/dist/es2015/index.d.ts +0 -10
- package/dist/es2015/index.js +0 -10
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/localized-messages.directive.js +0 -34
- package/dist/es2015/main.js +0 -8
- package/dist/es2015/models/position.js +0 -4
- package/dist/es2015/notification.module.js +0 -53
- package/dist/fesm5/index.js +0 -677
- package/dist/npm/index.js +0 -15
- package/dist/npm/localization/localized-messages.directive.js +0 -40
- package/dist/npm/main.js +0 -15
- package/dist/npm/models/animation.js +0 -6
- package/dist/npm/models/notification-ref.js +0 -6
- package/dist/npm/models/notification-settings.js +0 -56
- package/dist/npm/models/position.js +0 -6
- package/dist/npm/models/type.js +0 -6
- package/dist/npm/notification.component.js +0 -224
- package/dist/npm/notification.container.component.js +0 -156
- package/dist/npm/notification.module.js +0 -58
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/services/notification.service.js +0 -137
- package/dist/npm/utils/animations.js +0 -47
- package/dist/systemjs/kendo-angular-notification.js +0 -5
package/package.json
CHANGED
|
@@ -1,90 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-notification",
|
|
3
|
+
"version": "4.0.0-dev.202204131907",
|
|
3
4
|
"description": "Kendo UI Notification for Angular",
|
|
4
|
-
"author": "Progress",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"jsdelivr": "dist/cdn/js/kendo-angular-notification.js",
|
|
15
|
-
"unpkg": "dist/cdn/js/kendo-angular-notification.js",
|
|
16
|
-
"sideEffects": false,
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "jest",
|
|
19
|
-
"test:watch": "jest --watch",
|
|
20
|
-
"test:ci": "ci-angular-test",
|
|
21
|
-
"start": "gulp start",
|
|
22
|
-
"e2e:ci": "ci-angular-e2e",
|
|
23
|
-
"lint": "gulp lint && gulp lint-docs",
|
|
24
|
-
"api-check": "gulp api-check",
|
|
25
|
-
"build-package": "gulp build-package",
|
|
26
|
-
"semantic-release": "semantic-release pre && semantic-prerelease publish --public && semantic-release post"
|
|
6
|
+
"author": "Progress",
|
|
7
|
+
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/telerik/kendo-angular-notification.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/telerik/kendo-angular"
|
|
27
14
|
},
|
|
28
15
|
"keywords": [
|
|
29
|
-
"
|
|
30
|
-
"
|
|
16
|
+
"Angular",
|
|
17
|
+
"Kendo UI"
|
|
31
18
|
],
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"@angular/common": "8 - 13",
|
|
35
|
-
"@angular/core": "8 - 13",
|
|
36
|
-
"@progress/kendo-angular-common": "^2.0.0",
|
|
37
|
-
"@progress/kendo-angular-l10n": "^3.0.0",
|
|
38
|
-
"@progress/kendo-licensing": "^1.0.2",
|
|
39
|
-
"rxjs": "^6.4.0 || ^7.0.0"
|
|
19
|
+
"@progress": {
|
|
20
|
+
"friendlyName": "Notification"
|
|
40
21
|
},
|
|
41
22
|
"dependencies": {
|
|
42
|
-
"@progress/kendo-schematics": "^
|
|
43
|
-
"tslib": "^
|
|
23
|
+
"@progress/kendo-schematics": "^3.0.0",
|
|
24
|
+
"tslib": "^2.3.1"
|
|
44
25
|
},
|
|
45
|
-
"
|
|
46
|
-
"@angular
|
|
47
|
-
"@angular
|
|
48
|
-
"@angular/
|
|
49
|
-
"@angular
|
|
50
|
-
"@angular
|
|
51
|
-
"@angular/compiler-cli": "^8.2.0",
|
|
52
|
-
"@angular/core": "^8.2.0",
|
|
53
|
-
"@angular/forms": "^8.2.0",
|
|
54
|
-
"@angular/platform-browser": "^8.2.0",
|
|
55
|
-
"@angular/platform-browser-dynamic": "^8.2.0",
|
|
56
|
-
"@angular/platform-server": "^8.2.0",
|
|
57
|
-
"@angular/router": "^8.2.0",
|
|
58
|
-
"@progress/kendo-angular-buttons": "^6.4.1",
|
|
59
|
-
"@progress/kendo-angular-label": "^3.1.1",
|
|
60
|
-
"@progress/kendo-angular-popup": "^4.0.2",
|
|
61
|
-
"@progress/kendo-angular-common": "^2.0.0",
|
|
62
|
-
"@progress/kendo-angular-e2e": "^2.2.0",
|
|
63
|
-
"@progress/kendo-angular-jest-preset": "^2.0.0",
|
|
64
|
-
"@progress/kendo-angular-l10n": "^3.0.0",
|
|
65
|
-
"@progress/kendo-angular-tasks": "18.1.2-cdn-bundle-v18.10",
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@angular/animations": "^12.0.0 || ^13.0.0",
|
|
28
|
+
"@angular/common": "^12.0.0 || ^13.0.0",
|
|
29
|
+
"@angular/core": "^12.0.0 || ^13.0.0",
|
|
30
|
+
"@progress/kendo-angular-common": ">3.0.0-next",
|
|
31
|
+
"@progress/kendo-angular-l10n": ">4.0.0-next",
|
|
66
32
|
"@progress/kendo-licensing": "^1.0.2",
|
|
67
|
-
"
|
|
68
|
-
"@progress/kendo-theme-default": "^5.0.0",
|
|
69
|
-
"@progress/kendo-theme-material": "^5.0.0",
|
|
70
|
-
"@telerik/semantic-prerelease": "^1.0.0",
|
|
71
|
-
"@types/jest": "^21.1.8",
|
|
72
|
-
"@types/node": "ts3.4",
|
|
73
|
-
"@types/zone.js": "0.0.27",
|
|
74
|
-
"codelyzer": "^5.0.0",
|
|
75
|
-
"core-js": "^2.2.2",
|
|
76
|
-
"cz-conventional-changelog": "^1.1.5",
|
|
77
|
-
"ghooks": "^1.0.3",
|
|
78
|
-
"gulp": "^4.0.0",
|
|
79
|
-
"jest-cli": "^21.2.1",
|
|
80
|
-
"jest-junit": "^8.0.0",
|
|
81
|
-
"rxjs": "~6.4.0",
|
|
82
|
-
"rxjs-tslint-rules": "^4.23.1",
|
|
83
|
-
"semantic-release": "^6.3.6",
|
|
84
|
-
"tslint": "^5.20.1",
|
|
85
|
-
"typescript": "~3.4.5",
|
|
86
|
-
"validate-commit-msg": "^1.1.1",
|
|
87
|
-
"zone.js": "~0.9.1"
|
|
33
|
+
"rxjs": "^6.5.3 || ^7.0.0"
|
|
88
34
|
},
|
|
89
35
|
"config": {
|
|
90
36
|
"commitizen": {
|
|
@@ -109,27 +55,16 @@
|
|
|
109
55
|
"maxSubjectLength": 100
|
|
110
56
|
}
|
|
111
57
|
},
|
|
112
|
-
"
|
|
113
|
-
"preset": "@progress/kendo-angular-jest-preset"
|
|
114
|
-
},
|
|
115
|
-
"repository": {
|
|
116
|
-
"type": "git",
|
|
117
|
-
"url": "https://github.com/telerik/kendo-angular-notification.git"
|
|
118
|
-
},
|
|
119
|
-
"bugs": {
|
|
120
|
-
"url": "https://github.com/telerik/kendo-angular"
|
|
121
|
-
},
|
|
122
|
-
"@progress": {
|
|
123
|
-
"friendlyName": "Notification"
|
|
124
|
-
},
|
|
125
|
-
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
58
|
+
"schematics": "./schematics/collection.json",
|
|
126
59
|
"release": {
|
|
127
60
|
"debug": false,
|
|
128
61
|
"branchTags": {
|
|
129
|
-
"develop": "dev"
|
|
62
|
+
"develop": "dev",
|
|
63
|
+
"ng12-update": "next"
|
|
130
64
|
},
|
|
131
65
|
"fallbackTags": {
|
|
132
|
-
"dev": "latest"
|
|
66
|
+
"dev": "latest",
|
|
67
|
+
"next": "latest"
|
|
133
68
|
},
|
|
134
69
|
"analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
|
|
135
70
|
"generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
|
|
@@ -137,9 +72,11 @@
|
|
|
137
72
|
"verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
|
|
138
73
|
"verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
|
|
139
74
|
},
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
75
|
+
"main": "bundles/kendo-angular-notification.umd.js",
|
|
76
|
+
"module": "fesm2015/kendo-angular-notification.js",
|
|
77
|
+
"es2015": "fesm2015/kendo-angular-notification.js",
|
|
78
|
+
"esm2015": "esm2015/kendo-angular-notification.js",
|
|
79
|
+
"fesm2015": "fesm2015/kendo-angular-notification.js",
|
|
80
|
+
"typings": "kendo-angular-notification.d.ts",
|
|
81
|
+
"sideEffects": false
|
|
145
82
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
1
5
|
"use strict";
|
|
2
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
7
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
8
|
function default_1(options) {
|
|
5
|
-
const finalOptions = Object.assign({}, options, { mainNgModule: 'NotificationModule', package: 'notification' //package name, e.g grid
|
|
9
|
+
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'NotificationModule', package: 'notification' //package name, e.g grid
|
|
6
10
|
});
|
|
7
11
|
return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
|
|
8
12
|
}
|
|
9
13
|
exports.default = default_1;
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,mCACX,OAAO,KACV,YAAY,EAAE,oBAAoB,EAClC,OAAO,EAAE,cAAc,CAAC,wBAAwB;OACnD,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AARD,4BAQC"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { ComponentFactoryResolver, Injector, InjectionToken, ElementRef } from '@angular/core';
|
|
6
6
|
import { NotificationSettings } from '../models/notification-settings';
|
|
7
7
|
import { NotificationRef } from '../models/notification-ref';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* Used to inject the Notification container. If not provided, the first root component of
|
|
10
11
|
* the application is used.
|
|
@@ -72,6 +73,8 @@ export declare class NotificationService {
|
|
|
72
73
|
* @returns {NotificationRef} - A reference to the Notification object and the convenience properties.
|
|
73
74
|
*/
|
|
74
75
|
show(settings: NotificationSettings): NotificationRef;
|
|
75
|
-
private
|
|
76
|
+
private get appRef();
|
|
76
77
|
private findGroupContainer;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, [null, null, { optional: true; }]>;
|
|
79
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
77
80
|
}
|
|
File without changes
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("@angular/animations"),require("@progress/kendo-angular-l10n"),require("rxjs/operators"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,],e):"object"==typeof exports?exports.KendoAngularNotification=e(require("@angular/core"),require("@angular/animations"),require("@progress/kendo-angular-l10n"),require("rxjs/operators"),require("@progress/kendo-licensing"),require("@angular/common")):t.KendoAngularNotification=e(t.ng.core,t.ng.animations,t.KendoAngularL10N,t.rxjs.operators,t.KendoLicensing,t.ng.common)}(window,(function(t,e,n,i,o,r){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return r})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return u})),n.d(e,"__generator",(function(){return p})),n.d(e,"__createBinding",(function(){return f})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return h})),n.d(e,"__read",(function(){return y})),n.d(e,"__spread",(function(){return m})),n.d(e,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return b})),n.d(e,"__asyncValues",(function(){return C})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return N})),n.d(e,"__classPrivateFieldGet",(function(){return I})),n.d(e,"__classPrivateFieldSet",(function(){return S}));
|
|
6
|
-
/*! *****************************************************************************
|
|
7
|
-
Copyright (c) Microsoft Corporation.
|
|
8
|
-
|
|
9
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
-
purpose with or without fee is hereby granted.
|
|
11
|
-
|
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
13
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
14
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
16
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
17
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
-
***************************************************************************** */
|
|
20
|
-
var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}function s(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function c(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{c(i.next(t))}catch(t){r(t)}}function s(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))}function p(t,e){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function f(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}function d(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function h(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(y(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(t,e||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){o[t]&&(i[t]=function(e){return new Promise((function(n,i){r.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=o[t](e)).value instanceof g?Promise.resolve(n.value.v).then(c,l):u(r[0][2],n)}catch(t){u(r[0][3],t)}var n}function c(t){s("next",t)}function l(t){s("throw",t)}function u(t,e){t(e),r.shift(),r.length&&s(r[0][0],r[0][1])}}function b(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,o){e[i]=t[i]?function(e){return(n=!n)?{value:g(t[i](e)),done:"return"===i}:o?o(e):e}:o}}function C(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,o){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,o,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function N(t){return t&&t.__esModule?t:{default:t}}function I(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(9),s=n(10),c=n(11),l=n(12),u=n(4),p=function(){function t(t,e,n,i,r){var a=this;this.cdr=t,this.element=e,this.renderer=n,this.builder=i,this.localizationService=r,this.close=new o.EventEmitter,this.width=null,this.height=null,this.defaultHideAfter=5e3,this.animationEnd=new o.EventEmitter,this.rtl=!1,s.validatePackage(c.packageMetadata),this.dynamicRTLSubscription=r.changes.subscribe((function(t){var e=t.rtl;a.rtl=e,a.direction=a.rtl?"rtl":"ltr"}))}return Object.defineProperty(t.prototype,"containerClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),t.prototype.notificationClasses=function(){return(this.type?this.typeClass():"")+"\n "+(this.closable?"k-notification-closable":"")},t.prototype.ngOnInit=function(){clearTimeout(this.hideTimeout)},t.prototype.ngOnDestroy=function(){clearTimeout(this.hideTimeout),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},t.prototype.ngAfterViewInit=function(){var t=this;this.closable||this.animation||this.setHideTimeout(),!this.closable&&this.animation&&this.animationEnd.pipe(a.take(1)).subscribe((function(){return t.setHideTimeout()})),this.animation&&this.animate(this.animation)},t.prototype.typeClass=function(){return{none:"",success:"k-notification-success",warning:"k-notification-warning",error:"k-notification-error",info:"k-notification-info"}[this.type.style]},t.prototype.typeIconClass=function(){return{none:"",success:"k-i-success",warning:"k-i-warning",error:"k-i-error",info:"k-i-info"}[this.type.style]},t.prototype.onCloseClick=function(){clearTimeout(this.hideTimeout),this.hide()},t.prototype.hide=function(t){var e=this,n=getComputedStyle(this.element.nativeElement).height;if(this.animation&&n)return this.animate(this.animation,!0),void this.animationEnd.subscribe((function(){e.emitClose(t)}));this.emitClose(t)},t.prototype.setHideTimeout=function(){var t=this,e=this.hideAfter||this.defaultHideAfter;this.hideTimeout=window.setTimeout((function(){return t.onCloseClick()}),e)},t.prototype.emitClose=function(t){t&&t.destroy(),this.close.emit()},t.prototype.play=function(t,e){var n=this,i=this.builder.build(t),o=this.element.nativeElement;this.renderer.addClass(o,"k-notification-container-animating");var r=i.create(e);r.onDone((function(){n.renderer.removeClass(o,"k-notification-container-animating"),n.animationEnd.emit(),r&&(r.destroy(),r=null)})),r.play()},t.prototype.animate=function(t,e){var n=this.element.nativeElement,i=t.duration,o=n.offsetHeight,r="slide"===t.type?this.slideAnimation(o,i,e):this.fadeAnimation(i,e);this.play(r,n)},t.prototype.slideAnimation=function(t,e,n){return n?l.slideCloseAnimation(t,e):l.slideAnimation(t,e)},t.prototype.fadeAnimation=function(t,e){return e?l.fadeCloseAnimation(t):l.fadeAnimation(t)},i.__decorate([o.ViewChild("container",{read:o.ViewContainerRef,static:!0}),i.__metadata("design:type",o.ViewContainerRef)],t.prototype,"container",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"templateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"templateString",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"width",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"height",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],t.prototype,"hideAfter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"type",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"animation",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],t.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-notification-container"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"containerClass",null),t=i.__decorate([o.Component({selector:"kendo-notification",template:'\n <ng-container kendoNotificationLocalizedMessages\n i18n-closeTitle="kendo.notification.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n <div class="k-widget k-notification {{ notificationClasses() }}"\n [ngClass]="cssClass"\n [style.height.px]="height"\n [style.width.px]="width">\n <div class="k-notification-wrap k-hstack">\n <span *ngIf="type && type.icon && type.style !== \'none\'" class="k-icon" [ngClass]="typeIconClass()"></span>\n\n <div class="k-notification-content">\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n <ng-container #container></ng-container>\n </div>\n\n <a *ngIf="closable" class="k-icon k-i-close" [attr.title]="closeButtonTitle" (click)="onCloseClick()"></a>\n </div>\n </div>\n ',providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.notification"}]}),i.__metadata("design:paramtypes",[o.ChangeDetectorRef,o.ElementRef,o.Renderer2,r.AnimationBuilder,u.LocalizationService])],t)}();e.NotificationComponent=p},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6);e.NOTIFICATION_CONTAINER=new o.InjectionToken("Notification Container");var a=function(){function t(t,e,n){this.resolver=t,this.injector=e,this.container=n,this.notificationContainers=[],this.position={horizontal:"right",vertical:"top"}}return t.prototype.show=function(t){if(!t)throw new Error("NotificationSettings settings are required");var e,n=this.findGroupContainer(t),i=t.position||this.position,o=i.horizontal+" "+i.vertical,a=this.notificationContainers.find((function(t){return n.nativeElement.contains(t.element.nativeElement)&&t.id===o}));if(!a){a=(e=this.resolver.resolveComponentFactory(r.NotificationContainerComponent).create(this.injector)).instance,this.appRef.attachView(e.hostView);var s=e.location.nativeElement,c=this.findGroupContainer(t);if(!c)throw new Error("\n View Container not found! Inject the NOTIFICATION_CONTAINER or define a specific ViewContainerRef via\n the appendTo option. See http://www.telerik.com/kendo-angular-ui/components/notification/api/NOTIFICATION_CONTAINER/\n for more details.\n ");c.nativeElement.appendChild(s),this.notificationContainers.push(a)}return t.position=i,a.addNotification(t)},Object.defineProperty(t.prototype,"appRef",{get:function(){return this.applicationRef||(this.applicationRef=this.injector.get(o.ApplicationRef)),this.applicationRef},enumerable:!0,configurable:!0}),t.prototype.findGroupContainer=function(t){var e;if(t.appendTo)e=t.appendTo.element;else if(this.container)e=this.container;else{var n=this.appRef.components&&this.appRef.components[0];e=n?n.location:null}return e},t=i.__decorate([o.Injectable(),i.__param(2,o.Inject(e.NOTIFICATION_CONTAINER)),i.__param(2,o.Optional()),i.__metadata("design:paramtypes",[o.ComponentFactoryResolver,o.Injector,o.ElementRef])],t)}();e.NotificationService=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=function(){function t(t,e,n){this.element=t,this.renderer=e,this.resolver=n,this.id="",this.notifications=[]}return t.prototype.ngOnDestroy=function(){this.notifications.forEach((function(t){t.closeClickSubscription&&t.closeClickSubscription.unsubscribe()})),this.notifications=[]},t.prototype.addNotification=function(t){this.position=t.position,this.id=this.position.horizontal+" "+this.position.vertical;var e=this.resolver.resolveComponentFactory(r.NotificationComponent),n=this.container.createComponent(e);this.applySettings(n,t);var i=null;if("function"==typeof t.content){var o=this.resolver.resolveComponentFactory(t.content);i=n.instance.container.createComponent(o)}return n.changeDetectorRef.detectChanges(),this.notifications.push(n.instance),t.appendTo&&this.applyAbsolutePosition(t.appendTo),this.applyPosition(),this.applyContainerWrap(),{afterHide:n.instance.close,hide:function(){return n.instance.hide(i)},notification:n,content:i||null}},t.prototype.hide=function(t){var e=t.instance,n=this.notifications.indexOf(e);this.notifications.splice(n,1),e.closeClickSubscription&&e.closeClickSubscription.unsubscribe(),e.templateRef=null,e.templateString=null,t.destroy()},t.prototype.applyContainerWrap=function(){var t="right"===this.position.horizontal?"wrap-reverse":"wrap";this.renderer.setStyle(this.group.nativeElement,"flex-wrap",t)},t.prototype.applySettings=function(t,e){var n=this,i=t.instance,r=e.content,a=e.animation||null;i.closeClickSubscription=i.close.subscribe((function(){return n.hide(t)})),"string"==typeof r&&(i.templateString=r),r instanceof o.TemplateRef&&(i.templateRef=r),i.animation=a;var s=e.type;s&&void 0===s.style&&(s.style="none"),s&&void 0===s.icon&&(s.icon=!0),i.type=s,i.closeTitle=e.closeTitle,e.cssClass&&(i.cssClass=e.cssClass),i.closable=e.closable,i.hideAfter=e.hideAfter,i.width=e.width,i.height=e.height},t.prototype.applyAbsolutePosition=function(t){var e=t.element.nativeElement,n=this.element.nativeElement.children[0];"static"===window.getComputedStyle(e).position&&this.renderer.setStyle(e,"position","relative"),this.renderer.setStyle(n,"position","absolute")},t.prototype.applyPosition=function(){var t=this.element.nativeElement.children[0],e=t.getBoundingClientRect().width/2,n=this.setContainerPosition(this.position,e);Object.keys(n).forEach((function(e){t.style[e]=n[e]}))},t.prototype.setContainerPosition=function(t,e){var n={horizontal:{left:{left:0,alignItems:"flex-start"},right:{right:0,alignItems:"flex-start"},center:{left:"50%",marginLeft:-e+"px",alignItems:"center"}},vertical:{top:{top:0},bottom:{bottom:0}}},i=n.horizontal[t.horizontal],o=n.vertical[t.vertical];return Object.assign({},i,o)},i.__decorate([o.ViewChild("container",{read:o.ViewContainerRef,static:!0}),i.__metadata("design:type",o.ViewContainerRef)],t.prototype,"container",void 0),i.__decorate([o.ViewChild("group",{static:!0}),i.__metadata("design:type",o.ElementRef)],t.prototype,"group",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"id",void 0),t=i.__decorate([o.Component({selector:"kendo-notification-container",template:'\n <div #group class="k-notification-group">\n <ng-container #container></ng-container>\n </div>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.ComponentFactoryResolver])],t)}();e.NotificationContainerComponent=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(8);e.NotificationSettings=i.NotificationSettings;var o=n(2);e.NotificationComponent=o.NotificationComponent;var r=n(5);e.NotificationService=r.NotificationService,e.NOTIFICATION_CONTAINER=r.NOTIFICATION_CONTAINER;var a=n(13);e.NotificationModule=a.NotificationModule},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){this.hideAfter=5e3,this.position={horizontal:"right",vertical:"top"},this.animation={type:"fade",duration:500},this.closable=!1,this.type={style:"none",icon:!0}};e.NotificationSettings=i},function(t,e){t.exports=i},function(t,e){t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-notification",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646821059,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3);e.slideAnimation=function(t,e){return[i.style({overflow:"hidden",height:0}),i.animate(e+"ms ease-in",i.style({height:t+"px"}))]},e.slideCloseAnimation=function(t,e){return[i.style({height:t+"px"}),i.animate(e+"ms ease-in",i.style({overflow:"hidden",height:0}))]},e.fadeAnimation=function(t){return[i.style({opacity:0}),i.animate(t+"ms ease-in",i.style({opacity:1}))]},e.fadeCloseAnimation=function(t){return[i.style({opacity:1}),i.animate(t+"ms ease-in",i.style({opacity:0}))]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(14),a=n(5),s=n(2),c=n(6),l=n(15),u=function(){function t(){}return t=i.__decorate([o.NgModule({declarations:[s.NotificationComponent,c.NotificationContainerComponent,l.LocalizedMessagesDirective],entryComponents:[s.NotificationComponent,c.NotificationContainerComponent],imports:[r.CommonModule],exports:[s.NotificationComponent,c.NotificationContainerComponent],providers:[a.NotificationService]})],t)}();e.NotificationModule=u},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return i.__extends(e,t),n=e,i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),e=n=i.__decorate([o.Directive({providers:[{provide:r.ComponentMessages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoNotificationLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}(r.ComponentMessages);e.LocalizedMessagesDirective=a}])}));
|
package/dist/cdn/main.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("tslib"),require("@angular/core"),require("@angular/animations"),require("@progress/kendo-angular-l10n"),require("rxjs/operators"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,],e):"object"==typeof exports?exports.KendoAngularNotification=e(require("tslib"),require("@angular/core"),require("@angular/animations"),require("@progress/kendo-angular-l10n"),require("rxjs/operators"),require("@progress/kendo-licensing"),require("@angular/common")):t.KendoAngularNotification=e(t.self,t.ng.core,t.ng.animations,t.KendoAngularL10N,t.rxjs.operators,t.KendoLicensing,t.ng.common)}(window,(function(t,e,i,n,o,a,r){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=7)}([function(e,i){e.exports=t},function(t,i){t.exports=e},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(3),r=i(9),s=i(10),c=i(11),l=i(12),p=i(4),u=function(){function t(t,e,i,n,a){var r=this;this.cdr=t,this.element=e,this.renderer=i,this.builder=n,this.localizationService=a,this.close=new o.EventEmitter,this.width=null,this.height=null,this.defaultHideAfter=5e3,this.animationEnd=new o.EventEmitter,this.rtl=!1,s.validatePackage(c.packageMetadata),this.dynamicRTLSubscription=a.changes.subscribe((function(t){var e=t.rtl;r.rtl=e,r.direction=r.rtl?"rtl":"ltr"}))}return Object.defineProperty(t.prototype,"containerClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),t.prototype.notificationClasses=function(){return(this.type?this.typeClass():"")+"\n "+(this.closable?"k-notification-closable":"")},t.prototype.ngOnInit=function(){clearTimeout(this.hideTimeout)},t.prototype.ngOnDestroy=function(){clearTimeout(this.hideTimeout),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},t.prototype.ngAfterViewInit=function(){var t=this;this.closable||this.animation||this.setHideTimeout(),!this.closable&&this.animation&&this.animationEnd.pipe(r.take(1)).subscribe((function(){return t.setHideTimeout()})),this.animation&&this.animate(this.animation)},t.prototype.typeClass=function(){return{none:"",success:"k-notification-success",warning:"k-notification-warning",error:"k-notification-error",info:"k-notification-info"}[this.type.style]},t.prototype.typeIconClass=function(){return{none:"",success:"k-i-success",warning:"k-i-warning",error:"k-i-error",info:"k-i-info"}[this.type.style]},t.prototype.onCloseClick=function(){clearTimeout(this.hideTimeout),this.hide()},t.prototype.hide=function(t){var e=this,i=getComputedStyle(this.element.nativeElement).height;if(this.animation&&i)return this.animate(this.animation,!0),void this.animationEnd.subscribe((function(){e.emitClose(t)}));this.emitClose(t)},t.prototype.setHideTimeout=function(){var t=this,e=this.hideAfter||this.defaultHideAfter;this.hideTimeout=window.setTimeout((function(){return t.onCloseClick()}),e)},t.prototype.emitClose=function(t){t&&t.destroy(),this.close.emit()},t.prototype.play=function(t,e){var i=this,n=this.builder.build(t),o=this.element.nativeElement;this.renderer.addClass(o,"k-notification-container-animating");var a=n.create(e);a.onDone((function(){i.renderer.removeClass(o,"k-notification-container-animating"),i.animationEnd.emit(),a&&(a.destroy(),a=null)})),a.play()},t.prototype.animate=function(t,e){var i=this.element.nativeElement,n=t.duration,o=i.offsetHeight,a="slide"===t.type?this.slideAnimation(o,n,e):this.fadeAnimation(n,e);this.play(a,i)},t.prototype.slideAnimation=function(t,e,i){return i?l.slideCloseAnimation(t,e):l.slideAnimation(t,e)},t.prototype.fadeAnimation=function(t,e){return e?l.fadeCloseAnimation(t):l.fadeAnimation(t)},n.__decorate([o.ViewChild("container",{read:o.ViewContainerRef,static:!0}),n.__metadata("design:type",o.ViewContainerRef)],t.prototype,"container",void 0),n.__decorate([o.Input(),n.__metadata("design:type",o.TemplateRef)],t.prototype,"templateRef",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"templateString",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],t.prototype,"width",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],t.prototype,"height",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],t.prototype,"hideAfter",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],t.prototype,"type",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],t.prototype,"animation",void 0),n.__decorate([o.HostBinding("attr.dir"),n.__metadata("design:type",String)],t.prototype,"direction",void 0),n.__decorate([o.HostBinding("class.k-notification-container"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],t.prototype,"containerClass",null),t=n.__decorate([o.Component({selector:"kendo-notification",template:'\n <ng-container kendoNotificationLocalizedMessages\n i18n-closeTitle="kendo.notification.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n <div class="k-widget k-notification {{ notificationClasses() }}"\n [ngClass]="cssClass"\n [style.height.px]="height"\n [style.width.px]="width">\n <div class="k-notification-wrap k-hstack">\n <span *ngIf="type && type.icon && type.style !== \'none\'" class="k-icon" [ngClass]="typeIconClass()"></span>\n\n <div class="k-notification-content">\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n <ng-container #container></ng-container>\n </div>\n\n <a *ngIf="closable" class="k-icon k-i-close" [attr.title]="closeButtonTitle" (click)="onCloseClick()"></a>\n </div>\n </div>\n ',providers:[p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.notification"}]}),n.__metadata("design:paramtypes",[o.ChangeDetectorRef,o.ElementRef,o.Renderer2,a.AnimationBuilder,p.LocalizationService])],t)}();e.NotificationComponent=u},function(t,e){t.exports=i},function(t,e){t.exports=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(6);e.NOTIFICATION_CONTAINER=new o.InjectionToken("Notification Container");var r=function(){function t(t,e,i){this.resolver=t,this.injector=e,this.container=i,this.notificationContainers=[],this.position={horizontal:"right",vertical:"top"}}return t.prototype.show=function(t){if(!t)throw new Error("NotificationSettings settings are required");var e,i=this.findGroupContainer(t),n=t.position||this.position,o=n.horizontal+" "+n.vertical,r=this.notificationContainers.find((function(t){return i.nativeElement.contains(t.element.nativeElement)&&t.id===o}));if(!r){r=(e=this.resolver.resolveComponentFactory(a.NotificationContainerComponent).create(this.injector)).instance,this.appRef.attachView(e.hostView);var s=e.location.nativeElement,c=this.findGroupContainer(t);if(!c)throw new Error("\n View Container not found! Inject the NOTIFICATION_CONTAINER or define a specific ViewContainerRef via\n the appendTo option. See http://www.telerik.com/kendo-angular-ui/components/notification/api/NOTIFICATION_CONTAINER/\n for more details.\n ");c.nativeElement.appendChild(s),this.notificationContainers.push(r)}return t.position=n,r.addNotification(t)},Object.defineProperty(t.prototype,"appRef",{get:function(){return this.applicationRef||(this.applicationRef=this.injector.get(o.ApplicationRef)),this.applicationRef},enumerable:!0,configurable:!0}),t.prototype.findGroupContainer=function(t){var e;if(t.appendTo)e=t.appendTo.element;else if(this.container)e=this.container;else{var i=this.appRef.components&&this.appRef.components[0];e=i?i.location:null}return e},t=n.__decorate([o.Injectable(),n.__param(2,o.Inject(e.NOTIFICATION_CONTAINER)),n.__param(2,o.Optional()),n.__metadata("design:paramtypes",[o.ComponentFactoryResolver,o.Injector,o.ElementRef])],t)}();e.NotificationService=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(2),r=function(){function t(t,e,i){this.element=t,this.renderer=e,this.resolver=i,this.id="",this.notifications=[]}return t.prototype.ngOnDestroy=function(){this.notifications.forEach((function(t){t.closeClickSubscription&&t.closeClickSubscription.unsubscribe()})),this.notifications=[]},t.prototype.addNotification=function(t){this.position=t.position,this.id=this.position.horizontal+" "+this.position.vertical;var e=this.resolver.resolveComponentFactory(a.NotificationComponent),i=this.container.createComponent(e);this.applySettings(i,t);var n=null;if("function"==typeof t.content){var o=this.resolver.resolveComponentFactory(t.content);n=i.instance.container.createComponent(o)}return i.changeDetectorRef.detectChanges(),this.notifications.push(i.instance),t.appendTo&&this.applyAbsolutePosition(t.appendTo),this.applyPosition(),this.applyContainerWrap(),{afterHide:i.instance.close,hide:function(){return i.instance.hide(n)},notification:i,content:n||null}},t.prototype.hide=function(t){var e=t.instance,i=this.notifications.indexOf(e);this.notifications.splice(i,1),e.closeClickSubscription&&e.closeClickSubscription.unsubscribe(),e.templateRef=null,e.templateString=null,t.destroy()},t.prototype.applyContainerWrap=function(){var t="right"===this.position.horizontal?"wrap-reverse":"wrap";this.renderer.setStyle(this.group.nativeElement,"flex-wrap",t)},t.prototype.applySettings=function(t,e){var i=this,n=t.instance,a=e.content,r=e.animation||null;n.closeClickSubscription=n.close.subscribe((function(){return i.hide(t)})),"string"==typeof a&&(n.templateString=a),a instanceof o.TemplateRef&&(n.templateRef=a),n.animation=r;var s=e.type;s&&void 0===s.style&&(s.style="none"),s&&void 0===s.icon&&(s.icon=!0),n.type=s,n.closeTitle=e.closeTitle,e.cssClass&&(n.cssClass=e.cssClass),n.closable=e.closable,n.hideAfter=e.hideAfter,n.width=e.width,n.height=e.height},t.prototype.applyAbsolutePosition=function(t){var e=t.element.nativeElement,i=this.element.nativeElement.children[0];"static"===window.getComputedStyle(e).position&&this.renderer.setStyle(e,"position","relative"),this.renderer.setStyle(i,"position","absolute")},t.prototype.applyPosition=function(){var t=this.element.nativeElement.children[0],e=t.getBoundingClientRect().width/2,i=this.setContainerPosition(this.position,e);Object.keys(i).forEach((function(e){t.style[e]=i[e]}))},t.prototype.setContainerPosition=function(t,e){var i={horizontal:{left:{left:0,alignItems:"flex-start"},right:{right:0,alignItems:"flex-start"},center:{left:"50%",marginLeft:-e+"px",alignItems:"center"}},vertical:{top:{top:0},bottom:{bottom:0}}},n=i.horizontal[t.horizontal],o=i.vertical[t.vertical];return Object.assign({},n,o)},n.__decorate([o.ViewChild("container",{read:o.ViewContainerRef,static:!0}),n.__metadata("design:type",o.ViewContainerRef)],t.prototype,"container",void 0),n.__decorate([o.ViewChild("group",{static:!0}),n.__metadata("design:type",o.ElementRef)],t.prototype,"group",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"id",void 0),t=n.__decorate([o.Component({selector:"kendo-notification-container",template:'\n <div #group class="k-notification-group">\n <ng-container #container></ng-container>\n </div>\n '}),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.ComponentFactoryResolver])],t)}();e.NotificationContainerComponent=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(8);e.NotificationSettings=n.NotificationSettings;var o=i(2);e.NotificationComponent=o.NotificationComponent;var a=i(5);e.NotificationService=a.NotificationService,e.NOTIFICATION_CONTAINER=a.NOTIFICATION_CONTAINER;var r=i(13);e.NotificationModule=r.NotificationModule},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){this.hideAfter=5e3,this.position={horizontal:"right",vertical:"top"},this.animation={type:"fade",duration:500},this.closable=!1,this.type={style:"none",icon:!0}};e.NotificationSettings=n},function(t,e){t.exports=o},function(t,e){t.exports=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-notification",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646821059,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(3);e.slideAnimation=function(t,e){return[n.style({overflow:"hidden",height:0}),n.animate(e+"ms ease-in",n.style({height:t+"px"}))]},e.slideCloseAnimation=function(t,e){return[n.style({height:t+"px"}),n.animate(e+"ms ease-in",n.style({overflow:"hidden",height:0}))]},e.fadeAnimation=function(t){return[n.style({opacity:0}),n.animate(t+"ms ease-in",n.style({opacity:1}))]},e.fadeCloseAnimation=function(t){return[n.style({opacity:1}),n.animate(t+"ms ease-in",n.style({opacity:0}))]}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(14),r=i(5),s=i(2),c=i(6),l=i(15),p=function(){function t(){}return t=n.__decorate([o.NgModule({declarations:[s.NotificationComponent,c.NotificationContainerComponent,l.LocalizedMessagesDirective],entryComponents:[s.NotificationComponent,c.NotificationContainerComponent],imports:[a.CommonModule],exports:[s.NotificationComponent,c.NotificationContainerComponent],providers:[r.NotificationService]})],t)}();e.NotificationModule=p},function(t,e){t.exports=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(1),a=i(4),r=function(t){function e(e){var i=t.call(this)||this;return i.service=e,i}var i;return n.__extends(e,t),i=e,n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),e=i=n.__decorate([o.Directive({providers:[{provide:a.ComponentMessages,useExisting:o.forwardRef((function(){return i}))}],selector:"[kendoNotificationLocalizedMessages]"}),n.__metadata("design:paramtypes",[a.LocalizationService])],e)}(a.ComponentMessages);e.LocalizedMessagesDirective=r}])}));
|
package/dist/es/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Generated bundle index. Do not edit.
|
|
7
|
-
*/
|
|
8
|
-
export * from './main';
|
|
9
|
-
export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
10
|
-
export { NotificationContainerComponent } from './notification.container.component';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, forwardRef, Input } from '@angular/core';
|
|
7
|
-
import { ComponentMessages, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
var LocalizedMessagesDirective = /** @class */ (function (_super) {
|
|
12
|
-
tslib_1.__extends(LocalizedMessagesDirective, _super);
|
|
13
|
-
function LocalizedMessagesDirective(service) {
|
|
14
|
-
var _this = _super.call(this) || this;
|
|
15
|
-
_this.service = service;
|
|
16
|
-
return _this;
|
|
17
|
-
}
|
|
18
|
-
LocalizedMessagesDirective_1 = LocalizedMessagesDirective;
|
|
19
|
-
var LocalizedMessagesDirective_1;
|
|
20
|
-
tslib_1.__decorate([
|
|
21
|
-
Input(),
|
|
22
|
-
tslib_1.__metadata("design:type", String)
|
|
23
|
-
], LocalizedMessagesDirective.prototype, "closeTitle", void 0);
|
|
24
|
-
LocalizedMessagesDirective = LocalizedMessagesDirective_1 = tslib_1.__decorate([
|
|
25
|
-
Directive({
|
|
26
|
-
providers: [
|
|
27
|
-
{
|
|
28
|
-
provide: ComponentMessages,
|
|
29
|
-
useExisting: forwardRef(function () { return LocalizedMessagesDirective_1; })
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
selector: "[kendoNotificationLocalizedMessages]"
|
|
33
|
-
}),
|
|
34
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService])
|
|
35
|
-
], LocalizedMessagesDirective);
|
|
36
|
-
return LocalizedMessagesDirective;
|
|
37
|
-
}(ComponentMessages));
|
|
38
|
-
export { LocalizedMessagesDirective };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
var NotificationSettings = /** @class */ (function () {
|
|
6
|
-
function NotificationSettings() {
|
|
7
|
-
/**
|
|
8
|
-
* Specifies the time in milliseconds after which the
|
|
9
|
-
* Notification will hide
|
|
10
|
-
* ([see example]({% slug hiding_notifications %}#toc-definig-a-delay-before-hiding)).
|
|
11
|
-
* Defaults to `5000`.
|
|
12
|
-
*/
|
|
13
|
-
this.hideAfter = 5000;
|
|
14
|
-
/**
|
|
15
|
-
* Defines the position of the Notification
|
|
16
|
-
* ([see example]({% slug positioning_notification %})).
|
|
17
|
-
*
|
|
18
|
-
* The possible values are:
|
|
19
|
-
* * `horizontal: 'left'|'center'|'right'`
|
|
20
|
-
* * `vertical: 'top'|'bottom'`
|
|
21
|
-
*/
|
|
22
|
-
this.position = { horizontal: 'right', vertical: 'top' };
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the animation settings of the Notification
|
|
25
|
-
* ([see example]({% slug animations_notification %})).
|
|
26
|
-
*
|
|
27
|
-
* The possible values are:
|
|
28
|
-
* * `duration`—Accepts a number in milliseconds. Defaults to `500ms`.
|
|
29
|
-
* * `type?: 'slide'| (Default) 'fade'`
|
|
30
|
-
*/
|
|
31
|
-
this.animation = { type: 'fade', duration: 500 };
|
|
32
|
-
/**
|
|
33
|
-
* Specifies if the Notification will require a user action to hide.
|
|
34
|
-
* If the property is set to `true`, the Notification renders a **Close** button
|
|
35
|
-
* ([see example]({% slug hiding_notifications %}#toc-defining-a-closable-notification)).
|
|
36
|
-
*
|
|
37
|
-
* The possible values are:
|
|
38
|
-
* * (Default) `false`
|
|
39
|
-
* * `true`
|
|
40
|
-
*/
|
|
41
|
-
this.closable = false;
|
|
42
|
-
/**
|
|
43
|
-
* Specifies the type of the Notification
|
|
44
|
-
* ([see example]({% slug types_notification %})).
|
|
45
|
-
*
|
|
46
|
-
* The possible values are:
|
|
47
|
-
* * `style: (Default) 'none'|'success'|'error'|'warning'|'info'`
|
|
48
|
-
* * `icon: 'true'|'false'`
|
|
49
|
-
*/
|
|
50
|
-
this.type = { style: 'none', icon: true };
|
|
51
|
-
}
|
|
52
|
-
return NotificationSettings;
|
|
53
|
-
}());
|
|
54
|
-
export { NotificationSettings };
|
package/dist/es/models/type.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|