@indigina/ui-kit 1.1.24 → 1.1.26

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.
@@ -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
  }
@@ -2,7 +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 'projects/ui-kit/src/lib/components/kit-textbox/kit-textbox.const';
5
+ import { KitTextboxState } from './kit-textbox.const';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class KitTextboxComponent implements ControlValueAccessor {
8
8
  /**
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.24",
10
+ "version": "1.1.26",
11
11
  "peerDependencies": {
12
12
  "@angular/common": "^17.0.7",
13
13
  "@angular/core": "^17.0.7"