@evotor-dev/ui-kit 8.0.0-beta.17 → 8.0.0-beta.19
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-autocomplete/components/evo-autocomplete/evo-autocomplete.component.mjs +401 -0
- package/esm2022/lib/components/evo-autocomplete/components/evo-autocomplete-default-option/evo-autocomplete-default-option.component.mjs +44 -0
- package/esm2022/lib/components/evo-autocomplete/components/evo-autocomplete-footer/evo-autocomplete-footer.component.mjs +11 -0
- package/esm2022/lib/components/evo-autocomplete/components/evo-autocomplete-header/evo-autocomplete-header.component.mjs +11 -0
- package/esm2022/lib/components/evo-autocomplete/evo-autocomplete.module.mjs +12 -6
- package/esm2022/lib/components/evo-autocomplete/public-api.mjs +5 -3
- package/esm2022/lib/components/evo-datepicker/evo-datepicker.component.mjs +3 -3
- package/esm2022/lib/components/evo-icon-button/evo-icon-button.component.mjs +11 -4
- package/esm2022/lib/components/evo-input/evo-input.component.mjs +3 -3
- package/esm2022/lib/components/evo-navbar/evo-navbar-item/evo-navbar-item.component.mjs +3 -3
- package/esm2022/lib/components/evo-navbar/evo-navbar.component.mjs +3 -3
- package/esm2022/lib/components/evo-textarea/evo-textarea.component.mjs +9 -5
- package/esm2022/lib/operators/enter-zone.operator.mjs +1 -1
- package/fesm2022/evotor-dev-ui-kit.mjs +88 -32
- package/fesm2022/evotor-dev-ui-kit.mjs.map +1 -1
- package/lib/components/evo-autocomplete/components/{evo-autocomplete.component.d.ts → evo-autocomplete/evo-autocomplete.component.d.ts} +15 -7
- package/lib/components/evo-autocomplete/components/evo-autocomplete-footer/evo-autocomplete-footer.component.d.ts +5 -0
- package/lib/components/evo-autocomplete/components/evo-autocomplete-header/evo-autocomplete-header.component.d.ts +5 -0
- package/lib/components/evo-autocomplete/evo-autocomplete.module.d.ts +5 -3
- package/lib/components/evo-autocomplete/public-api.d.ts +4 -2
- 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 +1 -1
- package/esm2022/lib/components/evo-autocomplete/components/evo-autocomplete.component.mjs +0 -380
- package/esm2022/lib/components/evo-autocomplete/components/templates/evo-autocomplete-default-option.component.mjs +0 -44
- /package/lib/components/evo-autocomplete/components/{templates → evo-autocomplete-default-option}/evo-autocomplete-default-option.component.d.ts +0 -0
|
@@ -2,13 +2,14 @@ import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, TemplateRef
|
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { NgSelectComponent } from '@ng-select/ng-select';
|
|
5
|
-
import { EvoInputTheme } from '
|
|
6
|
-
import { EvoAutocompleteSize } from '
|
|
7
|
-
import { EvoIconService } from '../../evo-icon';
|
|
5
|
+
import { EvoInputTheme } from '../../../evo-input';
|
|
6
|
+
import { EvoAutocompleteSize } from '../../types/evo-autocomplete-size';
|
|
8
7
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
8
|
+
import { EvoIconService } from '../../../evo-icon';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export type DropdownPosition = 'bottom' | 'top' | 'auto';
|
|
11
11
|
export type AddTagFn = (term: string) => any | Promise<any>;
|
|
12
|
+
export type SearchFn = (term: string, item: any) => boolean;
|
|
12
13
|
export type CompareWithFn = (a: any, b: any) => boolean;
|
|
13
14
|
export type GroupValueFn = (key: string | object, children: any[]) => string | object;
|
|
14
15
|
export declare class EvoAutocompleteComponent implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
@@ -27,7 +28,6 @@ export declare class EvoAutocompleteComponent implements ControlValueAccessor, A
|
|
|
27
28
|
bindValue: string;
|
|
28
29
|
markFirst: boolean;
|
|
29
30
|
placeholder: string;
|
|
30
|
-
notFoundText: string;
|
|
31
31
|
typeToSearchText: string;
|
|
32
32
|
addTagText: string;
|
|
33
33
|
loadingText: string;
|
|
@@ -46,18 +46,18 @@ export declare class EvoAutocompleteComponent implements ControlValueAccessor, A
|
|
|
46
46
|
virtualScroll: boolean;
|
|
47
47
|
selectableGroup: boolean;
|
|
48
48
|
selectableGroupAsModel: boolean;
|
|
49
|
-
searchFn:
|
|
49
|
+
searchFn: SearchFn;
|
|
50
50
|
clearOnBackspace: boolean;
|
|
51
51
|
typeahead: Subject<string>;
|
|
52
52
|
multiple: boolean;
|
|
53
53
|
multipleInline: boolean;
|
|
54
54
|
addTag: boolean | AddTagFn;
|
|
55
|
-
searchable: boolean;
|
|
56
55
|
clearable: boolean;
|
|
57
56
|
errorsMessages: {
|
|
58
57
|
[key: string]: string;
|
|
59
58
|
};
|
|
60
59
|
compareWith: CompareWithFn;
|
|
60
|
+
_notFoundText: string;
|
|
61
61
|
editQuery: boolean;
|
|
62
62
|
blurEvent: EventEmitter<any>;
|
|
63
63
|
focusEvent: EventEmitter<any>;
|
|
@@ -80,11 +80,19 @@ export declare class EvoAutocompleteComponent implements ControlValueAccessor, A
|
|
|
80
80
|
labelTemp: TemplateRef<any>;
|
|
81
81
|
multiLabelTemp: TemplateRef<any>;
|
|
82
82
|
optionTemp: TemplateRef<any>;
|
|
83
|
+
optgroupTemp: TemplateRef<any>;
|
|
84
|
+
headerTemp: TemplateRef<any>;
|
|
85
|
+
footerTemp: TemplateRef<any>;
|
|
86
|
+
notFoundTemp: TemplateRef<any>;
|
|
83
87
|
protected inputVal: string;
|
|
84
88
|
protected readonly _destroy$: Subject<void>;
|
|
85
89
|
protected _value: any;
|
|
86
90
|
protected inputEl: HTMLInputElement;
|
|
91
|
+
protected _searchable: any;
|
|
92
|
+
get notFoundText(): string;
|
|
87
93
|
constructor(cdr: ChangeDetectorRef, control: NgControl, evoIconService: EvoIconService, sanitizer: DomSanitizer, iconResolver: (s: string) => string);
|
|
94
|
+
set searchable(searchable: boolean);
|
|
95
|
+
get searchable(): boolean;
|
|
88
96
|
set setSelectbox(isSelectbox: boolean);
|
|
89
97
|
set setTheme(theme: string | EvoInputTheme);
|
|
90
98
|
get hasErrors(): boolean;
|
|
@@ -116,5 +124,5 @@ export declare class EvoAutocompleteComponent implements ControlValueAccessor, A
|
|
|
116
124
|
*/
|
|
117
125
|
protected patchClearButtonIcon(): void;
|
|
118
126
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvoAutocompleteComponent, never>;
|
|
119
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EvoAutocompleteComponent, "evo-autocomplete", never, { "size": { "alias": "size"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "items": { "alias": "items"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "markFirst": { "alias": "markFirst"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "
|
|
127
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoAutocompleteComponent, "evo-autocomplete", never, { "size": { "alias": "size"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "items": { "alias": "items"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "markFirst": { "alias": "markFirst"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "typeToSearchText": { "alias": "typeToSearchText"; "required": false; }; "addTagText": { "alias": "addTagText"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "clearAllText": { "alias": "clearAllText"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "hideSelected": { "alias": "hideSelected"; "required": false; }; "selectOnTab": { "alias": "selectOnTab"; "required": false; }; "openOnEnter": { "alias": "openOnEnter"; "required": false; }; "maxSelectedItems": { "alias": "maxSelectedItems"; "required": false; }; "groupBy": { "alias": "groupBy"; "required": false; }; "groupValue": { "alias": "groupValue"; "required": false; }; "bufferAmount": { "alias": "bufferAmount"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "selectableGroup": { "alias": "selectableGroup"; "required": false; }; "selectableGroupAsModel": { "alias": "selectableGroupAsModel"; "required": false; }; "searchFn": { "alias": "searchFn"; "required": false; }; "clearOnBackspace": { "alias": "clearOnBackspace"; "required": false; }; "typeahead": { "alias": "typeahead"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "multipleInline": { "alias": "multipleInline"; "required": false; }; "addTag": { "alias": "addTag"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "errorsMessages": { "alias": "errorsMessages"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "_notFoundText": { "alias": "notFoundText"; "required": false; }; "editQuery": { "alias": "editQuery"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "setSelectbox": { "alias": "isSelectbox"; "required": false; }; "setTheme": { "alias": "theme"; "required": false; }; }, { "blurEvent": "blur"; "focusEvent": "focus"; "changeEvent": "change"; "openEvent": "open"; "closeEvent": "close"; "searchEvent": "search"; "clearEvent": "clear"; "addEvent": "add"; "removeEvent": "remove"; "scrollEvent": "scroll"; "scrollToEndEvent": "scrollToEnd"; }, ["labelTemp", "multiLabelTemp", "optionTemp", "optgroupTemp", "headerTemp", "footerTemp", "notFoundTemp"], never, true, never>;
|
|
120
128
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class EvoAutocompleteFooterComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EvoAutocompleteFooterComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoAutocompleteFooterComponent, "evo-autocomplete-footer", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class EvoAutocompleteHeaderComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EvoAutocompleteHeaderComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoAutocompleteHeaderComponent, "evo-autocomplete-header", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./components/evo-autocomplete.component";
|
|
3
|
-
import * as i2 from "./components/
|
|
2
|
+
import * as i1 from "./components/evo-autocomplete/evo-autocomplete.component";
|
|
3
|
+
import * as i2 from "./components/evo-autocomplete-default-option/evo-autocomplete-default-option.component";
|
|
4
|
+
import * as i3 from "./components/evo-autocomplete-header/evo-autocomplete-header.component";
|
|
5
|
+
import * as i4 from "./components/evo-autocomplete-footer/evo-autocomplete-footer.component";
|
|
4
6
|
export declare class EvoAutocompleteModule {
|
|
5
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvoAutocompleteModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EvoAutocompleteModule, never, [typeof i1.EvoAutocompleteComponent, typeof i2.EvoAutocompleteDefaultOptionComponent], [typeof i1.EvoAutocompleteComponent, typeof i2.EvoAutocompleteDefaultOptionComponent]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EvoAutocompleteModule, never, [typeof i1.EvoAutocompleteComponent, typeof i2.EvoAutocompleteDefaultOptionComponent, typeof i3.EvoAutocompleteHeaderComponent, typeof i4.EvoAutocompleteFooterComponent], [typeof i1.EvoAutocompleteComponent, typeof i2.EvoAutocompleteDefaultOptionComponent, typeof i3.EvoAutocompleteHeaderComponent, typeof i4.EvoAutocompleteFooterComponent]>;
|
|
7
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<EvoAutocompleteModule>;
|
|
8
10
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './evo-autocomplete.module';
|
|
2
|
-
export * from './components/evo-autocomplete.component';
|
|
3
|
-
export * from './components/
|
|
2
|
+
export * from './components/evo-autocomplete/evo-autocomplete.component';
|
|
3
|
+
export * from './components/evo-autocomplete-default-option/evo-autocomplete-default-option.component';
|
|
4
|
+
export * from './components/evo-autocomplete-header/evo-autocomplete-header.component';
|
|
5
|
+
export * from './components/evo-autocomplete-footer/evo-autocomplete-footer.component';
|
|
4
6
|
export * from './helpers/switch-query-to-list';
|
|
5
7
|
export * from './models/DaDataParty';
|
|
6
8
|
export * from './models/dadata.model';
|
|
@@ -6,11 +6,12 @@ export declare class EvoIconButtonComponent implements OnInit, OnChanges {
|
|
|
6
6
|
loading: boolean;
|
|
7
7
|
color: EvoIconButtonColor;
|
|
8
8
|
size: EvoIconButtonSize;
|
|
9
|
+
notificationDot: boolean;
|
|
9
10
|
classes: string[];
|
|
10
11
|
get isDisabled(): boolean;
|
|
11
12
|
ngOnInit(): void;
|
|
12
13
|
ngOnChanges(changes: SimpleChanges): void;
|
|
13
14
|
private updateClassesList;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvoIconButtonComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EvoIconButtonComponent, "button[evo-icon-button], a[evo-icon-button]", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, ["evo-icon", "*"], true, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoIconButtonComponent, "button[evo-icon-button], a[evo-icon-button]", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "notificationDot": { "alias": "notificationDot"; "required": false; }; }, {}, never, ["evo-icon", "*"], true, never>;
|
|
16
17
|
}
|
|
@@ -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": { "alias": "placeholder"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, {}, never, never, true, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoTextareaComponent, "evo-textarea", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, { "blur": "blur"; }, never, never, true, never>;
|
|
25
27
|
}
|