@indigina/ui-kit 1.0.78 → 1.0.82
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 +135 -4
- package/bundles/indigina-ui-kit.umd.js.map +1 -1
- package/esm2015/lib/components/kit-daterange/kit-daterange.component.js +103 -0
- package/esm2015/lib/components/kit-daterange/kit-daterange.module.js +30 -0
- 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.service.js +6 -5
- package/esm2015/public-api.js +4 -1
- package/fesm2015/indigina-ui-kit.js +132 -7
- package/fesm2015/indigina-ui-kit.js.map +1 -1
- package/indigina-ui-kit.metadata.json +1 -1
- package/lib/components/kit-daterange/kit-daterange.component.d.ts +102 -0
- package/lib/components/kit-daterange/kit-daterange.module.d.ts +2 -0
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +3 -1
- package/lib/components/kit-toastr/kit-toastr.service.d.ts +3 -2
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/styles/colors.scss +1 -0
- package/styles/components/toastr.scss +5 -3
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
|
+
import { AbstractControl } from '@angular/forms';
|
|
4
|
+
import { DateRangePopupComponent } from '@progress/kendo-angular-dateinputs';
|
|
5
|
+
export declare enum KitDaterangeType {
|
|
6
|
+
DEFAULT = "default",
|
|
7
|
+
BUTTON = "button"
|
|
8
|
+
}
|
|
9
|
+
export declare enum KitDaterangeIconPosition {
|
|
10
|
+
LEFT = "left",
|
|
11
|
+
RIGHT = "right"
|
|
12
|
+
}
|
|
13
|
+
export declare class KitDaterangeComponent {
|
|
14
|
+
type: KitDaterangeType;
|
|
15
|
+
/**
|
|
16
|
+
* Defines a value that is going to be applied as a daterange button label
|
|
17
|
+
*/
|
|
18
|
+
label?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Defines a value that is going to be applied as a daterange start input label
|
|
21
|
+
*/
|
|
22
|
+
startLabel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Defines a value that is going to be applied as a daterange end input label
|
|
25
|
+
*/
|
|
26
|
+
endLabel?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Defines a value that is going to be applied as a daterange start input placeholder
|
|
29
|
+
*/
|
|
30
|
+
startPlaceholder?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Defines a value that is going to be applied as a daterange end input placeholder
|
|
33
|
+
*/
|
|
34
|
+
endPlaceholder?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Defines a value that is going to be applied as a daterange format
|
|
37
|
+
*/
|
|
38
|
+
format: string;
|
|
39
|
+
/**
|
|
40
|
+
* Defines a value that is going to be applied as a default daterange start date value
|
|
41
|
+
*/
|
|
42
|
+
defaultStartDate?: Date;
|
|
43
|
+
/**
|
|
44
|
+
* Defines a value that is going to be applied as a default daterange end date value
|
|
45
|
+
*/
|
|
46
|
+
defaultEndDate?: Date;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the smallest valid date
|
|
49
|
+
*/
|
|
50
|
+
min?: Date;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies the biggest valid date
|
|
53
|
+
*/
|
|
54
|
+
max?: Date;
|
|
55
|
+
/**
|
|
56
|
+
* Defines whether the component will be in disabled state
|
|
57
|
+
*/
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Defines a state whether the component will be valid or not
|
|
61
|
+
*/
|
|
62
|
+
isValid?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Defines a value which used to set position of the calendar icon
|
|
65
|
+
*/
|
|
66
|
+
iconPosition: KitDaterangeIconPosition;
|
|
67
|
+
/**
|
|
68
|
+
* Defines an icon which will be used to the left of the info message
|
|
69
|
+
*/
|
|
70
|
+
messageIcon?: KitSvgIcon;
|
|
71
|
+
/**
|
|
72
|
+
* Defines a value which going to be an info message text
|
|
73
|
+
*/
|
|
74
|
+
messageText?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Defines a value that is going to be applied as a start date form control
|
|
77
|
+
*/
|
|
78
|
+
startDateControl: AbstractControl;
|
|
79
|
+
/**
|
|
80
|
+
* Defines a value that is going to be applied as an end date form control
|
|
81
|
+
*/
|
|
82
|
+
endDateControl: AbstractControl;
|
|
83
|
+
/**
|
|
84
|
+
* An action which is emitted when start date changed
|
|
85
|
+
*/
|
|
86
|
+
startDateChanged: EventEmitter<Date>;
|
|
87
|
+
/**
|
|
88
|
+
* An action which is emitted when end date changed
|
|
89
|
+
*/
|
|
90
|
+
endDateChanged: EventEmitter<Date>;
|
|
91
|
+
popup: DateRangePopupComponent;
|
|
92
|
+
/**
|
|
93
|
+
* An icon which will be used in a daterange input icon
|
|
94
|
+
*/
|
|
95
|
+
readonly icon: KitSvgIcon;
|
|
96
|
+
readonly KitDaterangeType: typeof KitDaterangeType;
|
|
97
|
+
readonly KitDaterangeIconPosition: typeof KitDaterangeIconPosition;
|
|
98
|
+
openCalendarPopup(): void;
|
|
99
|
+
onStartDateChange(value: Date): void;
|
|
100
|
+
onEndDateChange(value: Date): void;
|
|
101
|
+
onBlur(): void;
|
|
102
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RendererFactory2 } from '@angular/core';
|
|
2
2
|
import { ActiveToast, ToastrService } from 'ngx-toastr';
|
|
3
3
|
export declare enum KitToastrType {
|
|
4
4
|
ERROR = "toast-error",
|
|
@@ -15,8 +15,9 @@ export interface KitToastrConfig {
|
|
|
15
15
|
export declare type KitToastr = ActiveToast<void>;
|
|
16
16
|
export declare class KitToastrService {
|
|
17
17
|
private toastrService;
|
|
18
|
+
private rendererFactory2;
|
|
18
19
|
private renderer2;
|
|
19
|
-
constructor(toastrService: ToastrService,
|
|
20
|
+
constructor(toastrService: ToastrService, rendererFactory2: RendererFactory2);
|
|
20
21
|
show(config: KitToastrConfig): KitToastr;
|
|
21
22
|
private getConfig;
|
|
22
23
|
private removeOverlayContainerClassIfToastsEmpty;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -44,3 +44,5 @@ export { KitTooltipDirective, KitTooltipPosition } from './lib/directives/kit-to
|
|
|
44
44
|
export { KitTooltipModule } from './lib/directives/kit-tooltip/kit-tooltip.module';
|
|
45
45
|
export { KitToastrModule } from './lib/components/kit-toastr/kit-toastr.module';
|
|
46
46
|
export { KitToastrService, KitToastrConfig, KitToastrType } from './lib/components/kit-toastr/kit-toastr.service';
|
|
47
|
+
export { KitDaterangeComponent, KitDaterangeType, KitDaterangeIconPosition } from './lib/components/kit-daterange/kit-daterange.component';
|
|
48
|
+
export { KitDaterangeModule } from './lib/components/kit-daterange/kit-daterange.module';
|
package/styles/colors.scss
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
@import "../spacings";
|
|
2
2
|
@import "../colors";
|
|
3
3
|
|
|
4
|
-
$z-index-base:
|
|
4
|
+
$z-index-base: 4500;
|
|
5
|
+
$z-index-toast-container: $z-index-base + 500;
|
|
5
6
|
|
|
6
7
|
@mixin overlay-backdrop {
|
|
7
8
|
content: "";
|
|
@@ -9,12 +10,13 @@ $z-index-base: 5000;
|
|
|
9
10
|
inset: 0;
|
|
10
11
|
background-color: $color-black;
|
|
11
12
|
opacity: 0.8;
|
|
12
|
-
z-index: $z-index-
|
|
13
|
+
z-index: $z-index-toast-container;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.kit-overlay-container {
|
|
16
17
|
position: fixed;
|
|
17
18
|
inset: 0;
|
|
19
|
+
z-index: $z-index-base;
|
|
18
20
|
|
|
19
21
|
.toast-container:before {
|
|
20
22
|
@include overlay-backdrop;
|
|
@@ -23,7 +25,7 @@ $z-index-base: 5000;
|
|
|
23
25
|
.kit-toastr {
|
|
24
26
|
margin-top: $spacing-20;
|
|
25
27
|
box-shadow: none;
|
|
26
|
-
z-index: $z-index-
|
|
28
|
+
z-index: $z-index-toast-container + 1;
|
|
27
29
|
|
|
28
30
|
&:hover:not(.kit-toastr-dismissible) {
|
|
29
31
|
cursor: default;
|