@indigina/ui-kit 1.1.23 → 1.1.25

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.
Files changed (26) hide show
  1. package/assets/icons/check-circle-filled.svg +3 -0
  2. package/assets/icons/close-circle-filled.svg +3 -0
  3. package/assets/icons/info-circle.svg +4 -0
  4. package/assets/icons/warning-circle-filled.svg +3 -0
  5. package/esm2022/lib/components/kit-autocomplete/kit-autocomplete.component.mjs +2 -2
  6. package/esm2022/lib/components/kit-numeric-textbox/kit-numeric-textbox.component.mjs +21 -4
  7. package/esm2022/lib/components/kit-numeric-textbox/kit-numeric-textbox.const.mjs +8 -0
  8. package/esm2022/lib/components/kit-numeric-textbox/kit-numeric-textbox.module.mjs +7 -3
  9. package/esm2022/lib/components/kit-svg-icon/kit-svg-icon.const.mjs +5 -1
  10. package/esm2022/lib/components/kit-svg-sprite/kit-svg-sprite.component.mjs +3 -3
  11. package/esm2022/lib/components/kit-switch/kit-switch.component.mjs +2 -2
  12. package/esm2022/lib/components/kit-text-label/kit-text-label.component.mjs +2 -2
  13. package/esm2022/lib/components/kit-textbox/kit-textbox.component.mjs +22 -5
  14. package/esm2022/lib/components/kit-textbox/kit-textbox.const.mjs +8 -0
  15. package/esm2022/lib/components/kit-textbox/kit-textbox.module.mjs +7 -3
  16. package/fesm2022/indigina-ui-kit.mjs +73 -19
  17. package/fesm2022/indigina-ui-kit.mjs.map +1 -1
  18. package/lib/components/kit-numeric-textbox/kit-numeric-textbox.component.d.ts +11 -1
  19. package/lib/components/kit-numeric-textbox/kit-numeric-textbox.const.d.ts +6 -0
  20. package/lib/components/kit-numeric-textbox/kit-numeric-textbox.module.d.ts +2 -1
  21. package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +5 -1
  22. package/lib/components/kit-textbox/kit-textbox.component.d.ts +11 -1
  23. package/lib/components/kit-textbox/kit-textbox.const.d.ts +6 -0
  24. package/lib/components/kit-textbox/kit-textbox.module.d.ts +2 -1
  25. package/package.json +1 -1
  26. package/styles/theming.scss +3 -0
@@ -2,6 +2,7 @@ import { EventEmitter } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
4
4
  import { KitInputMessageType } from '../kit-input-message/kit-input-message.component';
5
+ import { KitNumericTextboxState } from './kit-numeric-textbox.const';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class KitNumericTextboxComponent implements ControlValueAccessor {
7
8
  /**
@@ -52,6 +53,14 @@ export declare class KitNumericTextboxComponent implements ControlValueAccessor
52
53
  * Specifies the number format
53
54
  */
54
55
  format?: string;
56
+ /**
57
+ * Defines the state of the textbox
58
+ */
59
+ state: KitNumericTextboxState;
60
+ /**
61
+ * Defines the icon which will be used with the input field
62
+ */
63
+ icon?: KitSvgIcon;
55
64
  /**
56
65
  * An action which is emitted when input field lost focus
57
66
  */
@@ -60,6 +69,7 @@ export declare class KitNumericTextboxComponent implements ControlValueAccessor
60
69
  * An action which is emitted when input value changed
61
70
  */
62
71
  changed: EventEmitter<number>;
72
+ readonly numericTextboxStateIcon: Record<KitNumericTextboxState, KitSvgIcon>;
63
73
  /**
64
74
  * Function that should be called every time the form control value changes
65
75
  */
@@ -81,5 +91,5 @@ export declare class KitNumericTextboxComponent implements ControlValueAccessor
81
91
  */
82
92
  onInputChange(value: number): void;
83
93
  static ɵfac: i0.ɵɵFactoryDeclaration<KitNumericTextboxComponent, never>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<KitNumericTextboxComponent, "kit-numeric-textbox", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "decimals": { "alias": "decimals"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "messageType": { "alias": "messageType"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "format": { "alias": "format"; "required": false; }; }, { "blured": "blured"; "changed": "changed"; }, never, never, false, never>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitNumericTextboxComponent, "kit-numeric-textbox", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "decimals": { "alias": "decimals"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "messageType": { "alias": "messageType"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "format": { "alias": "format"; "required": false; }; "state": { "alias": "state"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, { "blured": "blured"; "changed": "changed"; }, never, never, false, never>;
85
95
  }
@@ -0,0 +1,6 @@
1
+ export declare enum KitNumericTextboxState {
2
+ DEFAULT = "default",
3
+ WARNING = "warning",
4
+ ERROR = "error",
5
+ SUCCESS = "success"
6
+ }
@@ -5,8 +5,9 @@ import * as i2 from "@angular/common";
5
5
  import * as i3 from "@progress/kendo-angular-inputs";
6
6
  import * as i4 from "@progress/kendo-angular-label";
7
7
  import * as i5 from "../kit-input-message/kit-input-message.module";
8
+ import * as i6 from "projects/ui-kit/src/lib/components/kit-svg-icon/kit-svg-icon.module";
8
9
  export declare class KitNumericTextboxModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<KitNumericTextboxModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<KitNumericTextboxModule, [typeof i1.KitNumericTextboxComponent], [typeof i2.CommonModule, typeof i3.NumericTextBoxModule, typeof i4.LabelModule, typeof i5.KitInputMessageModule], [typeof i1.KitNumericTextboxComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KitNumericTextboxModule, [typeof i1.KitNumericTextboxComponent], [typeof i2.CommonModule, typeof i3.NumericTextBoxModule, typeof i4.LabelModule, typeof i5.KitInputMessageModule, typeof i6.KitSvgIconModule], [typeof i1.KitNumericTextboxComponent]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<KitNumericTextboxModule>;
12
13
  }
@@ -79,5 +79,9 @@ export declare enum KitSvgIcon {
79
79
  WINDOW_RESTORE = "window-restore",
80
80
  BACK_ARROW = "back-arrow",
81
81
  USER = "user",
82
- CARET_DOWN = "caret-down"
82
+ CARET_DOWN = "caret-down",
83
+ INFO_CIRCLE = "info-circle",
84
+ CHECK_CIRCLE_FILLED = "check-circle-filled",
85
+ WARNING_CIRCLE_FILLED = "warning-circle-filled",
86
+ CLOSE_CIRCLE_FILLED = "close-circle-filled"
83
87
  }
@@ -2,6 +2,7 @@ import { EventEmitter } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
4
4
  import { KitInputMessageType } from '../kit-input-message/kit-input-message.component';
5
+ import { KitTextboxState } from './kit-textbox.const';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class KitTextboxComponent implements ControlValueAccessor {
7
8
  /**
@@ -36,6 +37,14 @@ export declare class KitTextboxComponent implements ControlValueAccessor {
36
37
  * Defines the maximum length of the textbox value
37
38
  */
38
39
  maxlength?: number;
40
+ /**
41
+ * Defines the state of the textbox
42
+ */
43
+ state: KitTextboxState;
44
+ /**
45
+ * Defines the icon which will be used with the input field
46
+ */
47
+ icon?: KitSvgIcon;
39
48
  /**
40
49
  * An action which is emitted when input field lost focus
41
50
  */
@@ -44,6 +53,7 @@ export declare class KitTextboxComponent implements ControlValueAccessor {
44
53
  * An action which is emitted when input value changed
45
54
  */
46
55
  changed: EventEmitter<string>;
56
+ readonly textboxStateIcon: Record<KitTextboxState, KitSvgIcon>;
47
57
  /**
48
58
  * Function that should be called every time the form control value changes
49
59
  */
@@ -65,5 +75,5 @@ export declare class KitTextboxComponent implements ControlValueAccessor {
65
75
  */
66
76
  onInputChange(value: string): void;
67
77
  static ɵfac: i0.ɵɵFactoryDeclaration<KitTextboxComponent, never>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<KitTextboxComponent, "kit-textbox", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "messageType": { "alias": "messageType"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; }, { "blured": "blured"; "changed": "changed"; }, never, never, false, never>;
78
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitTextboxComponent, "kit-textbox", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "messageType": { "alias": "messageType"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "state": { "alias": "state"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, { "blured": "blured"; "changed": "changed"; }, never, never, false, never>;
69
79
  }
@@ -0,0 +1,6 @@
1
+ export declare enum KitTextboxState {
2
+ DEFAULT = "default",
3
+ WARNING = "warning",
4
+ ERROR = "error",
5
+ SUCCESS = "success"
6
+ }
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
4
4
  import * as i3 from "@progress/kendo-angular-inputs";
5
5
  import * as i4 from "@progress/kendo-angular-label";
6
6
  import * as i5 from "../kit-input-message/kit-input-message.module";
7
+ import * as i6 from "../kit-svg-icon/kit-svg-icon.module";
7
8
  export declare class KitTextboxModule {
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<KitTextboxModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<KitTextboxModule, [typeof i1.KitTextboxComponent], [typeof i2.CommonModule, typeof i3.TextBoxModule, typeof i4.LabelModule, typeof i5.KitInputMessageModule], [typeof i1.KitTextboxComponent]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KitTextboxModule, [typeof i1.KitTextboxComponent], [typeof i2.CommonModule, typeof i3.TextBoxModule, typeof i4.LabelModule, typeof i5.KitInputMessageModule, typeof i6.KitSvgIconModule], [typeof i1.KitTextboxComponent]>;
10
11
  static ɵinj: i0.ɵɵInjectorDeclaration<KitTextboxModule>;
11
12
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.23",
10
+ "version": "1.1.25",
11
11
  "peerDependencies": {
12
12
  "@angular/common": "^17.0.7",
13
13
  "@angular/core": "^17.0.7"
@@ -30,10 +30,12 @@
30
30
 
31
31
  --ui-kit-color-green: #00b0ad;
32
32
  --ui-kit-color-green-1: #39c237;
33
+ --ui-kit-color-green-2: #39c23733;
33
34
 
34
35
  --ui-kit-color-red: #ef3e42;
35
36
  --ui-kit-color-red-20: #f8e0e0;
36
37
  --ui-kit-color-red-1: #f5222d;
38
+ --ui-kit-color-red-2: #f5222d33;
37
39
 
38
40
  --ui-kit-color-cobalt: #006890;
39
41
  --ui-kit-color-cobalt-darkest: #002a3a;
@@ -41,4 +43,5 @@
41
43
  --ui-kit-color-teal: #23afd2;
42
44
 
43
45
  --ui-kit-color-orange: #faad14;
46
+ --ui-kit-color-orange-1: #faad1433;
44
47
  }