ui-core-abv 0.1.3 → 0.1.4
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/fesm2022/ui-core-abv.mjs +278 -214
- package/fesm2022/ui-core-abv.mjs.map +1 -1
- package/lib/components/dynamic-form/form.models.d.ts +8 -1
- package/lib/components/inputs/input/input.component.d.ts +1 -1
- package/lib/components/inputs/uic-searcher/uic-searcher.component.d.ts +55 -0
- package/lib/components/pool-options/pool-options.component.d.ts +32 -0
- package/lib/components/table/table.component.d.ts +4 -3
- package/lib/components/table/table.models.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/lib/components/inputs/searcher/searcher.component.d.ts +0 -46
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
1
2
|
import { AppSelectOption } from "../inputs/select/select.component";
|
|
2
3
|
export interface FormStep {
|
|
3
4
|
title: string;
|
|
@@ -32,12 +33,18 @@ export interface FormField {
|
|
|
32
33
|
max?: number;
|
|
33
34
|
minLength?: number;
|
|
34
35
|
maxLength?: number;
|
|
36
|
+
showCounter?: boolean;
|
|
35
37
|
sliderInterval?: number;
|
|
36
38
|
sliderMarks?: number;
|
|
37
39
|
pattern?: RegExp;
|
|
38
40
|
options?: AppSelectOption[];
|
|
41
|
+
multyoption?: boolean;
|
|
42
|
+
searchIdKey?: string;
|
|
43
|
+
searchFn?: (query: string) => Observable<any[]>;
|
|
44
|
+
searchDisplayFn?: (item: any) => string;
|
|
45
|
+
searchIsEnabledFn?: (item: any) => boolean;
|
|
39
46
|
}
|
|
40
|
-
export type FieldType = 'text' | 'number' | 'date' | 'select' | '
|
|
47
|
+
export type FieldType = 'text' | 'number' | 'date' | 'select' | 'checkbox' | 'switch' | 'textarea' | 'pool' | 'searcher' | 'slider';
|
|
41
48
|
export interface FormResult {
|
|
42
49
|
result: boolean;
|
|
43
50
|
form: any;
|
|
@@ -15,5 +15,5 @@ export declare class UicInputComponent {
|
|
|
15
15
|
disableBtn: boolean;
|
|
16
16
|
disableButton(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicInputComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicInputComponent, "ui-input", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "clickButton": "clickButton"; }, never, ["*"], true, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicInputComponent, "ui-input", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "clickButton": "clickButton"; }, never, ["*", "[counter]"], true, never>;
|
|
19
19
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
declare const base: abstract new () => {
|
|
6
|
+
value: Record<string, any> | null;
|
|
7
|
+
valueChange: import("@angular/core").EventEmitter<Record<string, any> | null>;
|
|
8
|
+
onChange: (value: Record<string, any> | null) => void;
|
|
9
|
+
onTouched: () => void;
|
|
10
|
+
writeValue(obj: Record<string, any> | null): void;
|
|
11
|
+
registerOnChange(fn: any): void;
|
|
12
|
+
registerOnTouched(fn: any): void;
|
|
13
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
14
|
+
notifyChange(value: Record<string, any> | null): void;
|
|
15
|
+
};
|
|
16
|
+
export declare class UicSearcherComponent extends base {
|
|
17
|
+
icon: string;
|
|
18
|
+
iconColor: 'primary' | 'secondary';
|
|
19
|
+
internalIcon: string;
|
|
20
|
+
size: 's' | 'm' | 'l';
|
|
21
|
+
label: string;
|
|
22
|
+
error: string;
|
|
23
|
+
tip: string;
|
|
24
|
+
showSubtitle: boolean;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
loading: boolean;
|
|
27
|
+
showSelected: boolean;
|
|
28
|
+
placeholder: string;
|
|
29
|
+
searchFn?: (query: string) => Observable<any[]>;
|
|
30
|
+
itemDisplayFn?: (item: any) => string;
|
|
31
|
+
itemIsEnabledFn?: (item: any) => boolean;
|
|
32
|
+
manualSearch: boolean;
|
|
33
|
+
private readonly searchSubject;
|
|
34
|
+
results$: Observable<any[]>;
|
|
35
|
+
selectedOption: Record<string, any> | null;
|
|
36
|
+
searchText: string;
|
|
37
|
+
watingApi: boolean;
|
|
38
|
+
private readonly overlay;
|
|
39
|
+
private readonly vcr;
|
|
40
|
+
private readonly host;
|
|
41
|
+
onSearchChange(value: string): void;
|
|
42
|
+
triggerSearch(): void;
|
|
43
|
+
selectItem(item: Record<string, any>): void;
|
|
44
|
+
clearSearch(): void;
|
|
45
|
+
unselect(): void;
|
|
46
|
+
dropdownTemplate: TemplateRef<any>;
|
|
47
|
+
private overlayRef;
|
|
48
|
+
overlayPositions: ConnectedPosition[];
|
|
49
|
+
openList(): void;
|
|
50
|
+
closeList(): void;
|
|
51
|
+
writeValue(value: Record<string, any>): void;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UicSearcherComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicSearcherComponent, "ui-searcher", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "showSubtitle": { "alias": "showSubtitle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "showSelected": { "alias": "showSelected"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "searchFn": { "alias": "searchFn"; "required": false; }; "itemDisplayFn": { "alias": "itemDisplayFn"; "required": false; }; "itemIsEnabledFn": { "alias": "itemIsEnabledFn"; "required": false; }; "manualSearch": { "alias": "manualSearch"; "required": false; }; }, {}, never, never, true, never>;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AppSelectOption } from '../inputs/select/select.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
type selectId = number | string;
|
|
4
|
+
declare const base: abstract new () => {
|
|
5
|
+
value: selectId[];
|
|
6
|
+
valueChange: import("@angular/core").EventEmitter<selectId[]>;
|
|
7
|
+
onChange: (value: selectId[]) => void;
|
|
8
|
+
onTouched: () => void;
|
|
9
|
+
writeValue(obj: selectId[]): void;
|
|
10
|
+
registerOnChange(fn: any): void;
|
|
11
|
+
registerOnTouched(fn: any): void;
|
|
12
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
13
|
+
notifyChange(value: selectId[]): void;
|
|
14
|
+
};
|
|
15
|
+
export declare class UicPoolOptionsComponent extends base {
|
|
16
|
+
icon: string;
|
|
17
|
+
iconColor: 'primary' | 'secondary';
|
|
18
|
+
size: 's' | 'm' | 'l';
|
|
19
|
+
label: string;
|
|
20
|
+
error: string;
|
|
21
|
+
tip: string;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
loading: boolean;
|
|
24
|
+
multy: boolean;
|
|
25
|
+
options: AppSelectOption[];
|
|
26
|
+
selectedSet: Set<selectId>;
|
|
27
|
+
updateOptions(id: selectId): void;
|
|
28
|
+
writeValue(value: selectId[]): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UicPoolOptionsComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicPoolOptionsComponent, "ui-pool-options", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "multy": { "alias": "multy"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -23,12 +23,14 @@ export declare class UicTableComponent {
|
|
|
23
23
|
action: EventEmitter<TableAction>;
|
|
24
24
|
update: EventEmitter<TableFilters>;
|
|
25
25
|
checkedChange: EventEmitter<(string | number)[]>;
|
|
26
|
+
allSelected: boolean;
|
|
26
27
|
checkedIds: Set<string | number>;
|
|
27
28
|
sortKey: string;
|
|
28
29
|
sortAsc: boolean;
|
|
29
30
|
filter: string;
|
|
30
31
|
page: number;
|
|
31
|
-
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
getValue(data: TableRowData[], key: string): string;
|
|
32
34
|
getMoreActions(actions: TableButton[]): ActionMenuOption[];
|
|
33
35
|
getFontColor(data: TableRowData[], key: string): string;
|
|
34
36
|
getBackgroundColor(data: TableRowData[], key: string): import("ui-core-abv").BackgroundColors;
|
|
@@ -44,10 +46,9 @@ export declare class UicTableComponent {
|
|
|
44
46
|
toggleSelection(id: string | number, checked: boolean): void;
|
|
45
47
|
toggleAll(checked: boolean): void;
|
|
46
48
|
areAllSelected(): void;
|
|
47
|
-
allSelected: boolean;
|
|
48
49
|
ngOnChanges(): void;
|
|
49
50
|
doAction(rowId: string | number, key: string): void;
|
|
50
51
|
resetCheckedIds(): void;
|
|
51
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicTableComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicTableComponent, "ui-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "size": { "alias": "size"; "required": false; }; "squeletonRows": { "alias": "squeletonRows"; "required": false; }; "buttonSize": { "alias": "buttonSize"; "required": false; }; "highlightedId": { "alias": "highlightedId"; "required": false; }; "headerText": { "alias": "headerText"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; }; "searchLabel": { "alias": "searchLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; }, never, ["[actions]"], true, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicTableComponent, "ui-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "size": { "alias": "size"; "required": false; }; "squeletonRows": { "alias": "squeletonRows"; "required": false; }; "buttonSize": { "alias": "buttonSize"; "required": false; }; "highlightedId": { "alias": "highlightedId"; "required": false; }; "headerText": { "alias": "headerText"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; }; "searchLabel": { "alias": "searchLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; }, never, ["[actions]", "[filters]"], true, never>;
|
|
53
54
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from './lib/components/dynamic-form/form-wrapper/form-wrapper.component
|
|
|
5
5
|
export * from './lib/components/dynamic-form/steps-form/steps-form.component';
|
|
6
6
|
export * from './lib/components/inputs/input/input.component';
|
|
7
7
|
export * from './lib/components/inputs/date-picker/date-picker.component';
|
|
8
|
-
export * from './lib/components/inputs/searcher/searcher.component';
|
|
8
|
+
export * from './lib/components/inputs/uic-searcher/uic-searcher.component';
|
|
9
9
|
export * from './lib/components/inputs/select/select.component';
|
|
10
10
|
export * from './lib/components/table/table.component';
|
|
11
11
|
export * from './lib/components/table/table.models';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Overlay, OverlayPositionBuilder, OverlayRef } from '@angular/cdk/overlay';
|
|
2
|
-
import { ElementRef, EventEmitter, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class UicSearcherComponent {
|
|
6
|
-
private readonly renderer;
|
|
7
|
-
private readonly overlay;
|
|
8
|
-
private readonly positionBuilder;
|
|
9
|
-
private readonly vcr;
|
|
10
|
-
icon: string;
|
|
11
|
-
iconColor: 'primary' | 'secondary' | 'error' | 'light' | 'grey';
|
|
12
|
-
internalIcon: string;
|
|
13
|
-
size: 's' | 'm' | 'l';
|
|
14
|
-
label: string;
|
|
15
|
-
error: string;
|
|
16
|
-
tip: string;
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
showSelected: boolean;
|
|
19
|
-
placeholder: string;
|
|
20
|
-
open: boolean;
|
|
21
|
-
searchFn: (query: string) => Observable<any[]>;
|
|
22
|
-
itemDisplayFn: (item: any) => string;
|
|
23
|
-
itemIsEnabledFn: (item: any) => boolean;
|
|
24
|
-
manualSearch: boolean;
|
|
25
|
-
selectedItem: any;
|
|
26
|
-
selectedItemChange: EventEmitter<any>;
|
|
27
|
-
isLoading: boolean;
|
|
28
|
-
searchText: string;
|
|
29
|
-
private readonly searchSubject;
|
|
30
|
-
results$: Observable<any[]>;
|
|
31
|
-
toggleButton: ElementRef;
|
|
32
|
-
private unlistener;
|
|
33
|
-
constructor(renderer: Renderer2, overlay: Overlay, positionBuilder: OverlayPositionBuilder, vcr: ViewContainerRef);
|
|
34
|
-
openList(): void;
|
|
35
|
-
onSearchChange(value: string): void;
|
|
36
|
-
triggerSearch(): void;
|
|
37
|
-
selectItem(item: any): void;
|
|
38
|
-
clearSearch(): void;
|
|
39
|
-
unselect(): void;
|
|
40
|
-
dropdownTemplateRef: TemplateRef<any>;
|
|
41
|
-
overlayRef: OverlayRef;
|
|
42
|
-
closeOverlay(): void;
|
|
43
|
-
openOverlay(): void;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UicSearcherComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicSearcherComponent, "ui-searcher", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showSelected": { "alias": "showSelected"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "searchFn": { "alias": "searchFn"; "required": false; }; "itemDisplayFn": { "alias": "itemDisplayFn"; "required": false; }; "itemIsEnabledFn": { "alias": "itemIsEnabledFn"; "required": false; }; "manualSearch": { "alias": "manualSearch"; "required": false; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; }, { "selectedItemChange": "selectedItemChange"; }, never, never, true, never>;
|
|
46
|
-
}
|