@indigina/ui-kit 1.0.76 → 1.0.80
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/assets/icons/carrier.svg +12 -0
- package/assets/icons/container.svg +10 -0
- package/bundles/indigina-ui-kit.umd.js +87 -6
- package/bundles/indigina-ui-kit.umd.js.map +1 -1
- package/esm2015/lib/components/kit-location-stepper/kit-location-stepper.module.js +1 -3
- package/esm2015/lib/components/kit-svg-icon/kit-svg-icon.const.js +3 -1
- package/esm2015/lib/components/kit-svg-sprite/kit-svg-sprite.component.js +2 -2
- package/esm2015/lib/components/kit-toastr/kit-toastr.module.js +12 -0
- package/esm2015/lib/components/kit-toastr/kit-toastr.service.js +65 -0
- package/esm2015/public-api.js +4 -1
- package/fesm2015/indigina-ui-kit.js +79 -5
- package/fesm2015/indigina-ui-kit.js.map +1 -1
- package/indigina-ui-kit.metadata.json +1 -1
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +3 -1
- package/lib/components/kit-toastr/kit-toastr.module.d.ts +2 -0
- package/lib/components/kit-toastr/kit-toastr.service.d.ts +27 -0
- package/package.json +3 -2
- package/public-api.d.ts +2 -0
- package/styles/components/toastr.scss +35 -0
- package/styles/styles.scss +2 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RendererFactory2 } from '@angular/core';
|
|
2
|
+
import { ActiveToast, ToastrService } from 'ngx-toastr';
|
|
3
|
+
export declare enum KitToastrType {
|
|
4
|
+
ERROR = "toast-error",
|
|
5
|
+
INFO = "toast-info",
|
|
6
|
+
SUCCESS = "toast-success",
|
|
7
|
+
WARNING = "toast-warning"
|
|
8
|
+
}
|
|
9
|
+
export interface KitToastrConfig {
|
|
10
|
+
type: KitToastrType;
|
|
11
|
+
message: string;
|
|
12
|
+
dismissible?: boolean;
|
|
13
|
+
title?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type KitToastr = ActiveToast<void>;
|
|
16
|
+
export declare class KitToastrService {
|
|
17
|
+
private toastrService;
|
|
18
|
+
private rendererFactory2;
|
|
19
|
+
private renderer2;
|
|
20
|
+
constructor(toastrService: ToastrService, rendererFactory2: RendererFactory2);
|
|
21
|
+
show(config: KitToastrConfig): KitToastr;
|
|
22
|
+
private getConfig;
|
|
23
|
+
private removeOverlayContainerClassIfToastsEmpty;
|
|
24
|
+
private addOverlayContainerClass;
|
|
25
|
+
private removeOverlayContainerClass;
|
|
26
|
+
private getOverlayContainer;
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"components",
|
|
8
8
|
"shared"
|
|
9
9
|
],
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.80",
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"@angular/common": "12.1.5",
|
|
13
13
|
"@angular/core": "12.1.5"
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"@progress/kendo-drawing": "1.10.1",
|
|
33
33
|
"@progress/kendo-licensing": "1.1.4",
|
|
34
34
|
"@progress/kendo-theme-default": "4.37.0",
|
|
35
|
-
"tslib": "2.3.1"
|
|
35
|
+
"tslib": "2.3.1",
|
|
36
|
+
"ngx-toastr": "12.0.0"
|
|
36
37
|
},
|
|
37
38
|
"engines": {
|
|
38
39
|
"node": ">= 12",
|
package/public-api.d.ts
CHANGED
|
@@ -42,3 +42,5 @@ export { KitPillComponent } from './lib/components/kit-pill/kit-pill.component';
|
|
|
42
42
|
export { KitPillModule } from './lib/components/kit-pill/kit-pill.module';
|
|
43
43
|
export { KitTooltipDirective, KitTooltipPosition } from './lib/directives/kit-tooltip/kit-tooltip.directive';
|
|
44
44
|
export { KitTooltipModule } from './lib/directives/kit-tooltip/kit-tooltip.module';
|
|
45
|
+
export { KitToastrModule } from './lib/components/kit-toastr/kit-toastr.module';
|
|
46
|
+
export { KitToastrService, KitToastrConfig, KitToastrType } from './lib/components/kit-toastr/kit-toastr.service';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@import "../spacings";
|
|
2
|
+
@import "../colors";
|
|
3
|
+
|
|
4
|
+
$z-index-base: 4500;
|
|
5
|
+
$z-index-toast-container: $z-index-base + 500;
|
|
6
|
+
|
|
7
|
+
@mixin overlay-backdrop {
|
|
8
|
+
content: "";
|
|
9
|
+
position: fixed;
|
|
10
|
+
inset: 0;
|
|
11
|
+
background-color: $color-black;
|
|
12
|
+
opacity: 0.8;
|
|
13
|
+
z-index: $z-index-toast-container;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.kit-overlay-container {
|
|
17
|
+
position: fixed;
|
|
18
|
+
inset: 0;
|
|
19
|
+
z-index: $z-index-base;
|
|
20
|
+
|
|
21
|
+
.toast-container:before {
|
|
22
|
+
@include overlay-backdrop;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.kit-toastr {
|
|
26
|
+
margin-top: $spacing-20;
|
|
27
|
+
box-shadow: none;
|
|
28
|
+
z-index: $z-index-toast-container + 1;
|
|
29
|
+
|
|
30
|
+
&:hover:not(.kit-toastr-dismissible) {
|
|
31
|
+
cursor: default;
|
|
32
|
+
box-shadow: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
package/styles/styles.scss
CHANGED
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
@import "~@progress/kendo-theme-default/scss/checkbox";
|
|
9
9
|
@import "~@progress/kendo-theme-default/scss/switch";
|
|
10
10
|
@import "~@progress/kendo-theme-default/scss/tooltip";
|
|
11
|
+
@import "~ngx-toastr/toastr";
|
|
11
12
|
|
|
12
13
|
/* styles which need to be included by default into app styles */
|
|
13
14
|
@import "common";
|
|
14
15
|
@import "components/tooltip";
|
|
16
|
+
@import "components/toastr";
|