@indigina/ui-kit 1.0.41 → 1.0.45
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/bundles/indigina-ui-kit.umd.js +382 -208
- package/bundles/indigina-ui-kit.umd.js.map +1 -1
- package/bundles/indigina-ui-kit.umd.min.js +1 -1
- package/bundles/indigina-ui-kit.umd.min.js.map +1 -1
- package/esm2015/lib/components/kit-autocomplete/kit-autocomplete.component.js +13 -3
- package/esm2015/lib/components/kit-checkbox/kit-checkbox.component.js +10 -2
- package/esm2015/lib/components/kit-checkbox/kit-checkbox.module.js +3 -1
- package/esm2015/lib/components/kit-datetimepicker/kit-datetimepicker.component.js +4 -1
- package/esm2015/lib/components/kit-dropdown/kit-dropdown.component.js +14 -3
- package/esm2015/lib/components/kit-switch/kit-switch.component.js +21 -3
- package/esm2015/lib/components/kit-switch/kit-switch.module.js +3 -1
- package/esm2015/lib/components/kit-text-label/kit-text-label.component.js +14 -4
- package/esm2015/lib/components/kit-textarea/kit-textarea.component.js +14 -4
- package/esm2015/lib/components/kit-toggle/kit-toggle.component.js +77 -0
- package/esm2015/lib/components/kit-toggle/kit-toggle.module.js +25 -0
- package/esm2015/lib/components/kit-units-textbox/kit-units-textbox.component.js +14 -4
- package/esm2015/public-api.js +8 -5
- package/fesm2015/indigina-ui-kit.js +369 -197
- package/fesm2015/indigina-ui-kit.js.map +1 -1
- package/indigina-ui-kit.metadata.json +1 -1
- package/lib/components/kit-autocomplete/kit-autocomplete.component.d.ts +8 -0
- package/lib/components/kit-checkbox/kit-checkbox.component.d.ts +14 -0
- package/lib/components/kit-dropdown/kit-dropdown.component.d.ts +9 -0
- package/lib/components/kit-switch/kit-switch.component.d.ts +22 -0
- package/lib/components/kit-text-label/kit-text-label.component.d.ts +8 -0
- package/lib/components/kit-textarea/kit-textarea.component.d.ts +8 -0
- package/lib/components/kit-toggle/kit-toggle.component.d.ts +50 -0
- package/lib/components/kit-toggle/kit-toggle.module.d.ts +2 -0
- package/lib/components/kit-units-textbox/kit-units-textbox.component.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -4
- package/styles/colors.scss +1 -0
- package/styles/styles.scss +1 -0
|
@@ -9,6 +9,10 @@ export interface KitAutocompleteItem<T> {
|
|
|
9
9
|
value: T;
|
|
10
10
|
getText?(): string;
|
|
11
11
|
}
|
|
12
|
+
export declare enum KitAutocompleteState {
|
|
13
|
+
REGULAR = "regular",
|
|
14
|
+
DANGER = "danger"
|
|
15
|
+
}
|
|
12
16
|
export declare class KitAutocompleteComponent<T> implements ControlValueAccessor {
|
|
13
17
|
private elementRef;
|
|
14
18
|
/**
|
|
@@ -47,6 +51,10 @@ export declare class KitAutocompleteComponent<T> implements ControlValueAccessor
|
|
|
47
51
|
* Defines a value which going to be an info message type
|
|
48
52
|
*/
|
|
49
53
|
messageType: KitInputMessageType;
|
|
54
|
+
/**
|
|
55
|
+
* Defines a particular state for the component
|
|
56
|
+
*/
|
|
57
|
+
state: KitAutocompleteState;
|
|
50
58
|
/**
|
|
51
59
|
* An action which is emitted when input value changed
|
|
52
60
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
4
|
+
import { KitInputMessageType } from '../kit-input-message/kit-input-message.component';
|
|
3
5
|
export declare enum KitCheckboxState {
|
|
4
6
|
REGULAR = "regular",
|
|
5
7
|
DANGER = "danger"
|
|
@@ -22,6 +24,18 @@ export declare class KitCheckboxComponent implements ControlValueAccessor {
|
|
|
22
24
|
* Defines a particular state for the component
|
|
23
25
|
*/
|
|
24
26
|
state: KitCheckboxState;
|
|
27
|
+
/**
|
|
28
|
+
* Defines an icon which will be used to the left of the info message
|
|
29
|
+
*/
|
|
30
|
+
messageIcon?: KitSvgIcon;
|
|
31
|
+
/**
|
|
32
|
+
* Defines a value which going to be an info message text
|
|
33
|
+
*/
|
|
34
|
+
messageText?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Defines a value which going to be an info message type
|
|
37
|
+
*/
|
|
38
|
+
messageType: KitInputMessageType;
|
|
25
39
|
/**
|
|
26
40
|
* Occurs as soon as input checked state is changed
|
|
27
41
|
*/
|
|
@@ -3,11 +3,16 @@ import { ItemDisabledFn, PopupSettings } from '@progress/kendo-angular-dropdowns
|
|
|
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
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
6
|
+
import { KitAutocompleteState } from '../kit-autocomplete/kit-autocomplete.component';
|
|
6
7
|
export interface KitDropdownItem<T> {
|
|
7
8
|
text: string;
|
|
8
9
|
value: T;
|
|
9
10
|
disabled?: Predicate<KitDropdownItem<T>>;
|
|
10
11
|
}
|
|
12
|
+
export declare enum KitDropdownState {
|
|
13
|
+
REGULAR = "regular",
|
|
14
|
+
DANGER = "danger"
|
|
15
|
+
}
|
|
11
16
|
export declare class KitDropdownComponent<T> implements ControlValueAccessor {
|
|
12
17
|
/**
|
|
13
18
|
* an items list which is going to be rendered as dropdown items
|
|
@@ -37,6 +42,10 @@ export declare class KitDropdownComponent<T> implements ControlValueAccessor {
|
|
|
37
42
|
* Defines a value which going to be an info message type
|
|
38
43
|
*/
|
|
39
44
|
messageType: KitInputMessageType;
|
|
45
|
+
/**
|
|
46
|
+
* Defines a particular state for the component
|
|
47
|
+
*/
|
|
48
|
+
state: KitAutocompleteState;
|
|
40
49
|
/**
|
|
41
50
|
* occurs once an item in the dropdown is selected
|
|
42
51
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { KitSwitchItem } from './kit-switch-item.model';
|
|
3
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
4
|
+
import { KitInputMessageType } from '../kit-input-message/kit-input-message.component';
|
|
3
5
|
export declare enum KitSwitchMode {
|
|
4
6
|
SINGLE = "single",
|
|
5
7
|
MULTI = "multiple"
|
|
@@ -9,6 +11,10 @@ export interface KitSwitchItemSelection {
|
|
|
9
11
|
item: KitSwitchItem;
|
|
10
12
|
mode: KitSwitchMode;
|
|
11
13
|
}
|
|
14
|
+
export declare enum KitSwitchState {
|
|
15
|
+
REGULAR = "regular",
|
|
16
|
+
DANGER = "danger"
|
|
17
|
+
}
|
|
12
18
|
export declare class KitSwitchComponent {
|
|
13
19
|
/**
|
|
14
20
|
* items list which is going to be rendered as switch buttons
|
|
@@ -32,6 +38,22 @@ export declare class KitSwitchComponent {
|
|
|
32
38
|
* in case of "single" mode it should be only one value
|
|
33
39
|
*/
|
|
34
40
|
selection?: string[];
|
|
41
|
+
/**
|
|
42
|
+
* Defines an icon which will be used to the left of the info message
|
|
43
|
+
*/
|
|
44
|
+
messageIcon?: KitSvgIcon;
|
|
45
|
+
/**
|
|
46
|
+
* Defines a value which going to be an info message text
|
|
47
|
+
*/
|
|
48
|
+
messageText?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Defines a value which going to be an info message type
|
|
51
|
+
*/
|
|
52
|
+
messageType: KitInputMessageType;
|
|
53
|
+
/**
|
|
54
|
+
* Defines a particular state for the component
|
|
55
|
+
*/
|
|
56
|
+
state: KitSwitchState;
|
|
35
57
|
/**
|
|
36
58
|
* emits when an items has been selected
|
|
37
59
|
*/
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { KitInputMessageType } from '../kit-input-message/kit-input-message.component';
|
|
2
|
+
export declare enum KitTextLabelState {
|
|
3
|
+
REGULAR = "regular",
|
|
4
|
+
DANGER = "danger"
|
|
5
|
+
}
|
|
2
6
|
export declare class KitTextLabelComponent {
|
|
3
7
|
/**
|
|
4
8
|
* Defines a value that is going to be applied as a label top text
|
|
@@ -24,4 +28,8 @@ export declare class KitTextLabelComponent {
|
|
|
24
28
|
* Defines a value which going to be an info message type
|
|
25
29
|
*/
|
|
26
30
|
messageType: KitInputMessageType;
|
|
31
|
+
/**
|
|
32
|
+
* Defines a particular state for the component
|
|
33
|
+
*/
|
|
34
|
+
state: KitTextLabelState;
|
|
27
35
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
4
|
+
export declare enum KitTextareaState {
|
|
5
|
+
REGULAR = "regular",
|
|
6
|
+
DANGER = "danger"
|
|
7
|
+
}
|
|
4
8
|
export declare class KitTextareaComponent implements ControlValueAccessor, OnChanges {
|
|
5
9
|
/**
|
|
6
10
|
* Defines a value that is going to be applied as a textarea placeholder
|
|
@@ -40,6 +44,10 @@ export declare class KitTextareaComponent implements ControlValueAccessor, OnCha
|
|
|
40
44
|
* Defines a value which going to be an info message text
|
|
41
45
|
*/
|
|
42
46
|
messageText?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Defines a particular state for the component
|
|
49
|
+
*/
|
|
50
|
+
state: KitTextareaState;
|
|
43
51
|
/**
|
|
44
52
|
* Defines a value that is going to be applied as a minimal textarea height
|
|
45
53
|
*/
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
4
|
+
import { KitInputMessageType } from '../kit-input-message/kit-input-message.component';
|
|
5
|
+
export declare class KitToggleComponent implements ControlValueAccessor {
|
|
6
|
+
/**
|
|
7
|
+
* Defines a label text which will be displayed next to the toggle
|
|
8
|
+
*/
|
|
9
|
+
label?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Defines whether the component will be in disabled state
|
|
12
|
+
*/
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Defines a default value
|
|
16
|
+
*/
|
|
17
|
+
defaultChecked: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Defines an icon which will be used to the left of the info message
|
|
20
|
+
*/
|
|
21
|
+
messageIcon?: KitSvgIcon;
|
|
22
|
+
/**
|
|
23
|
+
* Defines a value which going to be an info message text
|
|
24
|
+
*/
|
|
25
|
+
messageText?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Defines a value which going to be an info message type
|
|
28
|
+
*/
|
|
29
|
+
messageType: KitInputMessageType;
|
|
30
|
+
/**
|
|
31
|
+
* Occurs as soon as toggle state is changed
|
|
32
|
+
*/
|
|
33
|
+
changed: EventEmitter<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* Function that is called when toggle state changed
|
|
36
|
+
*/
|
|
37
|
+
onInputStateChange(checked: boolean): void;
|
|
38
|
+
/**
|
|
39
|
+
* Function that should be called every time the form control value changes
|
|
40
|
+
*/
|
|
41
|
+
onChange: (value: boolean) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Function that should be called when input lost focus and changed form control state to "touched"
|
|
44
|
+
*/
|
|
45
|
+
onTouched: () => void;
|
|
46
|
+
registerOnChange(fn: (_: boolean) => void): void;
|
|
47
|
+
registerOnTouched(fn: () => void): void;
|
|
48
|
+
writeValue(value: boolean): void;
|
|
49
|
+
setDisabledState(disabled: boolean): void;
|
|
50
|
+
}
|
|
@@ -12,6 +12,10 @@ export declare enum KitUnitsTextboxType {
|
|
|
12
12
|
TEXT = "text",
|
|
13
13
|
NUMBER = "number"
|
|
14
14
|
}
|
|
15
|
+
export declare enum KitUnitsTextboxState {
|
|
16
|
+
REGULAR = "regular",
|
|
17
|
+
DANGER = "danger"
|
|
18
|
+
}
|
|
15
19
|
export declare class KitUnitsTextboxComponent<T> {
|
|
16
20
|
/**
|
|
17
21
|
* Defines a value that is going to be applied as a textbox placeholder
|
|
@@ -89,6 +93,10 @@ export declare class KitUnitsTextboxComponent<T> {
|
|
|
89
93
|
* Specifies the number format of the numeric textbox
|
|
90
94
|
*/
|
|
91
95
|
format?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Defines a particular state for the component
|
|
98
|
+
*/
|
|
99
|
+
state: KitUnitsTextboxState;
|
|
92
100
|
/**
|
|
93
101
|
* Occurs once an item in the dropdown is selected
|
|
94
102
|
*/
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { KitSvgIconModule } from './lib/components/kit-svg-icon/kit-svg-icon.mod
|
|
|
7
7
|
export { KitSvgIcon } from './lib/components/kit-svg-icon/kit-svg-icon.const';
|
|
8
8
|
export { KitLoaderComponent } from './lib/components/kit-loader/kit-loader.component';
|
|
9
9
|
export { KitLoaderModule } from './lib/components/kit-loader/kit-loader.module';
|
|
10
|
-
export { KitSwitchComponent, KitSwitchMode, KitSwitchItemSelection } from './lib/components/kit-switch/kit-switch.component';
|
|
10
|
+
export { KitSwitchComponent, KitSwitchMode, KitSwitchItemSelection, KitSwitchState, } from './lib/components/kit-switch/kit-switch.component';
|
|
11
11
|
export { KitSwitchModule } from './lib/components/kit-switch/kit-switch.module';
|
|
12
12
|
export { KitSwitchItem } from './lib/components/kit-switch/kit-switch-item.model';
|
|
13
13
|
export { KitTextboxComponent } from './lib/components/kit-textbox/kit-textbox.component';
|
|
@@ -16,9 +16,9 @@ export { KitNumericTextboxComponent } from './lib/components/kit-numeric-textbox
|
|
|
16
16
|
export { KitNumericTextboxModule } from './lib/components/kit-numeric-textbox/kit-numeric-textbox.module';
|
|
17
17
|
export { KitInputMessageComponent, KitInputMessageType } from './lib/components/kit-input-message/kit-input-message.component';
|
|
18
18
|
export { KitInputMessageModule } from './lib/components/kit-input-message/kit-input-message.module';
|
|
19
|
-
export { KitDropdownComponent, KitDropdownItem } from './lib/components/kit-dropdown/kit-dropdown.component';
|
|
19
|
+
export { KitDropdownComponent, KitDropdownItem, KitDropdownState } from './lib/components/kit-dropdown/kit-dropdown.component';
|
|
20
20
|
export { KitDropdownModule } from './lib/components/kit-dropdown/kit-dropdown.module';
|
|
21
|
-
export { KitTextareaComponent } from './lib/components/kit-textarea/kit-textarea.component';
|
|
21
|
+
export { KitTextareaComponent, KitTextareaState } from './lib/components/kit-textarea/kit-textarea.component';
|
|
22
22
|
export { KitTextareaModule } from './lib/components/kit-textarea/kit-textarea.module';
|
|
23
23
|
export { KitTextareaAutoresizeDirective } from './lib/components/kit-textarea/kit-textarea-autoresize.directive';
|
|
24
24
|
export { KitTextLabelComponent } from './lib/components/kit-text-label/kit-text-label.component';
|
|
@@ -39,7 +39,9 @@ export { KitNavbarComponent, KitNavbarLink, KitNavbarMenuItem } from './lib/comp
|
|
|
39
39
|
export { KitNavbarModule } from './lib/components/kit-navbar/kit-navbar.module';
|
|
40
40
|
export { KitLocationStepperComponent, KitLocationStepperItem, KitLocationStepperItemDate, } from './lib/components/kit-location-stepper/kit-location-stepper.component';
|
|
41
41
|
export { KitLocationStepperModule } from './lib/components/kit-location-stepper/kit-location-stepper.module';
|
|
42
|
-
export { KitAutocompleteComponent, KitAutocompleteItem } from './lib/components/kit-autocomplete/kit-autocomplete.component';
|
|
42
|
+
export { KitAutocompleteComponent, KitAutocompleteItem, KitAutocompleteState, } from './lib/components/kit-autocomplete/kit-autocomplete.component';
|
|
43
43
|
export { KitAutocompleteModule } from './lib/components/kit-autocomplete/kit-autocomplete.module';
|
|
44
44
|
export { KitCheckboxComponent, KitCheckboxState } from './lib/components/kit-checkbox/kit-checkbox.component';
|
|
45
45
|
export { KitCheckboxModule } from './lib/components/kit-checkbox/kit-checkbox.module';
|
|
46
|
+
export { KitToggleComponent } from './lib/components/kit-toggle/kit-toggle.component';
|
|
47
|
+
export { KitToggleModule } from './lib/components/kit-toggle/kit-toggle.module';
|
package/styles/colors.scss
CHANGED
|
@@ -5,6 +5,7 @@ $color-white: #ffffff;
|
|
|
5
5
|
$color-neutral-gray: #74777d;
|
|
6
6
|
$color-neutral-gray-20w: #cdd2d9;
|
|
7
7
|
$color-neutral-gray-40w: #dadde3;
|
|
8
|
+
$color-neutral-gray-60w: #e6e9ec;
|
|
8
9
|
$color-neutral-gray-80w: #f3f4f6;
|
|
9
10
|
$color-neutral-gray-90w: #f3f5fa;
|
|
10
11
|
$color-neutral-gray-mid: #c1c7d0;
|
package/styles/styles.scss
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@import "~@progress/kendo-theme-default/scss/datetime";
|
|
7
7
|
@import "~@progress/kendo-theme-default/scss/combobox";
|
|
8
8
|
@import "~@progress/kendo-theme-default/scss/checkbox";
|
|
9
|
+
@import "~@progress/kendo-theme-default/scss/switch";
|
|
9
10
|
|
|
10
11
|
/* styles which need to be included by default into app styles */
|
|
11
12
|
@import "common";
|