@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.
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ export declare class KitDaterangeModule {
2
+ }
@@ -31,5 +31,7 @@ export declare enum KitSvgIcon {
31
31
  LTL = "ltl",
32
32
  ORG = "org",
33
33
  ARCHIVE = "archive",
34
- LOGOUT = "logout"
34
+ LOGOUT = "logout",
35
+ CONTAINER = "container",
36
+ CARRIER = "carrier"
35
37
  }
@@ -1,4 +1,4 @@
1
- import { Renderer2 } from '@angular/core';
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, renderer2: Renderer2);
20
+ constructor(toastrService: ToastrService, rendererFactory2: RendererFactory2);
20
21
  show(config: KitToastrConfig): KitToastr;
21
22
  private getConfig;
22
23
  private removeOverlayContainerClassIfToastsEmpty;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.0.78",
10
+ "version": "1.0.82",
11
11
  "peerDependencies": {
12
12
  "@angular/common": "12.1.5",
13
13
  "@angular/core": "12.1.5"
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';
@@ -19,6 +19,7 @@ $color-neutral-gray-charcoal: #27282a;
19
19
  $color-ghost: #cce1e9;
20
20
  $color-main: #56a2f7;
21
21
  $color-main-20: #ddecfd;
22
+ $color-main-50: #aad0fb;
22
23
  $color-second: #00b0ad;
23
24
  $color-disabled: #ebebe4;
24
25
 
@@ -1,7 +1,8 @@
1
1
  @import "../spacings";
2
2
  @import "../colors";
3
3
 
4
- $z-index-base: 5000;
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-base;
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-base + 1;
28
+ z-index: $z-index-toast-container + 1;
27
29
 
28
30
  &:hover:not(.kit-toastr-dismissible) {
29
31
  cursor: default;