@evotor-dev/ui-kit 8.5.1 → 8.7.0
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/esm2022/lib/components/evo-chip/evo-chip.component.mjs +4 -3
- package/esm2022/lib/components/evo-input/evo-input.component.mjs +15 -14
- package/fesm2022/evotor-dev-ui-kit.mjs +17 -15
- package/fesm2022/evotor-dev-ui-kit.mjs.map +1 -1
- package/lib/components/evo-chip/evo-chip.component.d.ts +2 -1
- package/lib/components/evo-input/evo-input.component.d.ts +6 -5
- package/package.json +1 -1
- package/styles/components/evo-chip.scss +42 -2
|
@@ -9,7 +9,8 @@ export declare enum EvoChipType {
|
|
|
9
9
|
}
|
|
10
10
|
export declare enum EvoChipTheme {
|
|
11
11
|
grey = "grey",// default
|
|
12
|
-
white = "white"
|
|
12
|
+
white = "white",
|
|
13
|
+
custom = "custom"
|
|
13
14
|
}
|
|
14
15
|
export declare class EvoChipComponent extends EvoBaseControl implements ControlValueAccessor, OnInit, AfterViewInit {
|
|
15
16
|
type: EvoChipType | string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef,
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, Injector, NgZone, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, Validator } from '@angular/forms';
|
|
3
3
|
import { EvoBaseControl } from '../../common/evo-base-control';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -31,7 +31,8 @@ export declare class EvoInputComponent extends EvoBaseControl implements Control
|
|
|
31
31
|
unmask: boolean | 'typed';
|
|
32
32
|
clearable: boolean;
|
|
33
33
|
maskValidation: boolean;
|
|
34
|
-
blur:
|
|
34
|
+
readonly blur: import("@angular/core").OutputEmitterRef<Event>;
|
|
35
|
+
readonly onFocus: import("@angular/core").OutputEmitterRef<Event>;
|
|
35
36
|
inputElement: ElementRef;
|
|
36
37
|
tooltipElement: ElementRef;
|
|
37
38
|
size: EvoInputSizes;
|
|
@@ -74,8 +75,8 @@ export declare class EvoInputComponent extends EvoBaseControl implements Control
|
|
|
74
75
|
registerOnTouched(fn: any): void;
|
|
75
76
|
setDisabledState(state: boolean): void;
|
|
76
77
|
focus(): void;
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
onInputFocus(event: Event): void;
|
|
79
|
+
onInputBlur(event: Event): void;
|
|
79
80
|
onTooltipClick(event: any): void;
|
|
80
81
|
onClear(): void;
|
|
81
82
|
hideTooltip(): void;
|
|
@@ -90,5 +91,5 @@ export declare class EvoInputComponent extends EvoBaseControl implements Control
|
|
|
90
91
|
mask: boolean;
|
|
91
92
|
};
|
|
92
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvoInputComponent, [null, null, null, { optional: true; }, null]>;
|
|
93
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EvoInputComponent, "evo-input", never, { "autoFocus": { "alias": "autoFocus"; "required": false; }; "dataCp": { "alias": "data-cp"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "inputDebounce": { "alias": "inputDebounce"; "required": false; }; "unmask": { "alias": "unmask"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "maskValidation": { "alias": "maskValidation"; "required": false; }; "setValue": { "alias": "value"; "required": false; }; "setSize": { "alias": "size"; "required": false; }; "setTheme": { "alias": "theme"; "required": false; }; }, { "blur": "blur"; }, never, ["[evoInputPrefixContent]", "[evoInputIcon]", "[tooltip]"], true, never>;
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoInputComponent, "evo-input", never, { "autoFocus": { "alias": "autoFocus"; "required": false; }; "dataCp": { "alias": "data-cp"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "inputDebounce": { "alias": "inputDebounce"; "required": false; }; "unmask": { "alias": "unmask"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "maskValidation": { "alias": "maskValidation"; "required": false; }; "setValue": { "alias": "value"; "required": false; }; "setSize": { "alias": "size"; "required": false; }; "setTheme": { "alias": "theme"; "required": false; }; }, { "blur": "blur"; "onFocus": "onFocus"; }, never, ["[evoInputPrefixContent]", "[evoInputIcon]", "[tooltip]"], true, never>;
|
|
94
95
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use 'sass:math';
|
|
2
2
|
@import '../mixins.scss';
|
|
3
3
|
|
|
4
4
|
.chip {
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
border-radius: math.div($height, 2);
|
|
27
27
|
|
|
28
28
|
cursor: pointer;
|
|
29
|
-
transition:
|
|
29
|
+
transition:
|
|
30
|
+
color 0.3s,
|
|
31
|
+
background-color 0.3s;
|
|
30
32
|
|
|
31
33
|
user-select: none;
|
|
32
34
|
}
|
|
@@ -97,6 +99,44 @@
|
|
|
97
99
|
}
|
|
98
100
|
}
|
|
99
101
|
|
|
102
|
+
&_theme-custom:not(&_type-label) {
|
|
103
|
+
input:not(:checked) {
|
|
104
|
+
& + #{$parent-selector}__label {
|
|
105
|
+
color: var(--evo-chip-color, $color-link);
|
|
106
|
+
background-color: var(--evo-chip-background-color, $color-background-grey);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&:focus + #{$parent-selector}__label,
|
|
110
|
+
&:hover + #{$parent-selector}__label {
|
|
111
|
+
color: var(--evo-chip-color-hover, $color-link);
|
|
112
|
+
background-color: var(--evo-chip-background-color-hover, $color-grey-hover);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&:active + #{$parent-selector}__label {
|
|
116
|
+
color: var(--evo-chip-color-active, $color-link);
|
|
117
|
+
background-color: var(--evo-chip-background-color-active, $color-grey-active);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
input:checked {
|
|
122
|
+
& + #{$parent-selector}__label {
|
|
123
|
+
color: var(--evo-chip-checked-color, $color-white) !important;
|
|
124
|
+
background-color: var(--evo-chip-checked-background-color, $color-link) !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:focus + #{$parent-selector}__label,
|
|
128
|
+
&:hover + #{$parent-selector}__label {
|
|
129
|
+
color: var(--evo-chip-color-hover, $color-link) !important;
|
|
130
|
+
background-color: var(--evo-chip-checked-background-color-hover, $color-link-hover) !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&:active + #{$parent-selector}__label {
|
|
134
|
+
color: var(--evo-chip-color-active, $color-link) !important;
|
|
135
|
+
background-color: var(--evo-chip-checked-background-color-active, $color-link-active) !important;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
100
140
|
&_type-label {
|
|
101
141
|
#{$parent-selector}__label {
|
|
102
142
|
color: $color-white;
|