@evotor-dev/ui-kit 6.7.0 → 6.8.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/README.md +8 -51
- package/bundles/evotor-dev-ui-kit.umd.js +28 -12
- package/bundles/evotor-dev-ui-kit.umd.js.map +1 -1
- package/esm2015/lib/components/evo-autocomplete/components/evo-autocomplete.component.js +1 -1
- package/esm2015/lib/components/evo-button/components/evo-button/evo-button.component.js +1 -1
- package/esm2015/lib/components/evo-checkbox/evo-checkbox.component.js +9 -5
- package/esm2015/lib/components/evo-datepicker/evo-datepicker.component.js +1 -1
- package/esm2015/lib/components/evo-icon-button/evo-icon-button.component.js +10 -3
- package/esm2015/lib/components/evo-input/evo-input.component.js +4 -3
- package/esm2015/lib/components/evo-textarea/evo-textarea.component.js +8 -4
- package/fesm2015/evotor-dev-ui-kit.js +28 -12
- package/fesm2015/evotor-dev-ui-kit.js.map +1 -1
- package/lib/components/evo-autocomplete/components/evo-autocomplete.component.d.ts +2 -1
- package/lib/components/evo-checkbox/evo-checkbox.component.d.ts +4 -1
- package/lib/components/evo-icon-button/evo-icon-button.component.d.ts +2 -1
- package/lib/components/evo-textarea/evo-textarea.component.d.ts +3 -1
- package/package.json +6 -1
- package/styles/mixins/_evo-text-button-mixin.scss +24 -0
- package/styles/mixins.scss +1 -0
- package/styles/partials/_typography.scss +14 -0
|
@@ -7,6 +7,7 @@ import { EvoAutocompleteSize } from '../types/evo-autocomplete-size';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare type DropdownPosition = 'bottom' | 'top' | 'auto';
|
|
9
9
|
export declare type AddTagFn = ((term: string) => any | Promise<any>);
|
|
10
|
+
export declare type SearchFn = (term: string, item: any) => boolean;
|
|
10
11
|
export declare type CompareWithFn = (a: any, b: any) => boolean;
|
|
11
12
|
export declare type GroupValueFn = (key: string | object, children: any[]) => string | object;
|
|
12
13
|
export declare class EvoAutocompleteComponent implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
@@ -41,7 +42,7 @@ export declare class EvoAutocompleteComponent implements ControlValueAccessor, A
|
|
|
41
42
|
virtualScroll: boolean;
|
|
42
43
|
selectableGroup: boolean;
|
|
43
44
|
selectableGroupAsModel: boolean;
|
|
44
|
-
searchFn:
|
|
45
|
+
searchFn: SearchFn;
|
|
45
46
|
clearOnBackspace: boolean;
|
|
46
47
|
typeahead: Subject<string>;
|
|
47
48
|
multiple: boolean;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { EvoBaseControl } from '../../common/evo-base-control';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class EvoCheckboxComponent extends EvoBaseControl implements ControlValueAccessor {
|
|
6
|
+
protected injector: Injector;
|
|
7
|
+
private cdr;
|
|
6
8
|
set setIndeterminate(value: any);
|
|
7
9
|
indeterminateChange: EventEmitter<boolean>;
|
|
8
10
|
inputElement: ElementRef;
|
|
9
11
|
indeterminate: any;
|
|
10
12
|
disabled: boolean;
|
|
11
13
|
private _value;
|
|
14
|
+
constructor(injector: Injector, cdr: ChangeDetectorRef);
|
|
12
15
|
onChange(_: any): void;
|
|
13
16
|
onTouched(): void;
|
|
14
17
|
get value(): boolean;
|
|
@@ -16,11 +16,12 @@ export declare class EvoIconButtonComponent implements OnInit, OnChanges {
|
|
|
16
16
|
*/
|
|
17
17
|
theme: EvoIconButtonTheme;
|
|
18
18
|
size: EvoIconButtonSize;
|
|
19
|
+
notificationDot: boolean;
|
|
19
20
|
classes: string[];
|
|
20
21
|
get isDisabled(): boolean;
|
|
21
22
|
ngOnInit(): void;
|
|
22
23
|
ngOnChanges(changes: SimpleChanges): void;
|
|
23
24
|
private updateClassesList;
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvoIconButtonComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EvoIconButtonComponent, "button[evo-icon-button], a[evo-icon-button]", never, { "disabled": "disabled"; "loading": "loading"; "color": "color"; "theme": "theme"; "size": "size"; }, {}, never, ["evo-icon", "*"]>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoIconButtonComponent, "button[evo-icon-button], a[evo-icon-button]", never, { "disabled": "disabled"; "loading": "loading"; "color": "color"; "theme": "theme"; "size": "size"; "notificationDot": "notificationDot"; }, {}, never, ["evo-icon", "*"]>;
|
|
26
27
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
1
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
2
3
|
import { EvoBaseControl } from '../../common/evo-base-control';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class EvoTextareaComponent extends EvoBaseControl implements ControlValueAccessor {
|
|
5
6
|
placeholder: string;
|
|
6
7
|
rows: number;
|
|
8
|
+
blur: EventEmitter<void>;
|
|
7
9
|
_value: string;
|
|
8
10
|
disabled: boolean;
|
|
9
11
|
focused: boolean;
|
|
@@ -21,5 +23,5 @@ export declare class EvoTextareaComponent extends EvoBaseControl implements Cont
|
|
|
21
23
|
setDisabledState(isDisabled: boolean): void;
|
|
22
24
|
writeValue(value: string): void;
|
|
23
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvoTextareaComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EvoTextareaComponent, "evo-textarea", never, { "placeholder": "placeholder"; "rows": "rows"; }, {}, never, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoTextareaComponent, "evo-textarea", never, { "placeholder": "placeholder"; "rows": "rows"; }, { "blur": "blur"; }, never, never>;
|
|
25
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evotor-dev/ui-kit",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
|
+
"homepage": "https://evotor.github.io/Evo-UI-Kit",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/evotor/Evo-UI-Kit.git"
|
|
8
|
+
},
|
|
4
9
|
"peerDependencies": {
|
|
5
10
|
"@angular/common": ">=12.0.0 <13.0.0",
|
|
6
11
|
"@angular/core": ">=12.0.0 <13.0.0",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
$evo-text-button-styles: b1, b2, b3;
|
|
4
|
+
|
|
5
|
+
@mixin evo-text-button($style) {
|
|
6
|
+
@if not list.index($evo-text-button-styles, $style) {
|
|
7
|
+
@error "#{$style} is not a valid button style. Use one of #{$evo-text-button-styles}";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
font-family: var(--evo-font-secondary);
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
|
|
14
|
+
@if $style == b1 {
|
|
15
|
+
font-size: 18px;
|
|
16
|
+
line-height: 20px;
|
|
17
|
+
} @else if $style == b2 {
|
|
18
|
+
font-size: 16px;
|
|
19
|
+
line-height: 20px;
|
|
20
|
+
} @else if $style == b3 {
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
line-height: 20px;
|
|
23
|
+
}
|
|
24
|
+
}
|
package/styles/mixins.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import 'variables.scss';
|
|
2
2
|
@import './mixins/media-mixins';
|
|
3
3
|
@import './mixins/evo-input-mixins';
|
|
4
|
+
@import './mixins/evo-text-button-mixin';
|
|
4
5
|
@import './mixins/evo-text-caption-mixin';
|
|
5
6
|
@import './mixins/evo-text-header-mixin';
|
|
6
7
|
@import './mixins/evo-text-mobile-header-mixin';
|
|
@@ -119,3 +119,17 @@
|
|
|
119
119
|
.evo-text-tips {
|
|
120
120
|
@include evo-text-tips;
|
|
121
121
|
}
|
|
122
|
+
|
|
123
|
+
.evo-text-button {
|
|
124
|
+
&_b1 {
|
|
125
|
+
@include evo-text-button(b1);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&_b2 {
|
|
129
|
+
@include evo-text-button(b2);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&_b3 {
|
|
133
|
+
@include evo-text-button(b3);
|
|
134
|
+
}
|
|
135
|
+
}
|