ui-core-abv 0.1.42 → 0.1.52
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 +289 -129
- package/fesm2022/ui-core-abv.mjs.map +1 -1
- package/lib/components/dynamic-form/form.models.d.ts +1 -2
- package/lib/components/dynamic-form/steps-form/step-tabs/step-tabs.component.d.ts +3 -3
- package/lib/components/inputs/multy-select/multy-select.component.d.ts +49 -0
- package/lib/components/pool-options/pool-options.component.d.ts +2 -0
- package/lib/components/table/table-searcher/table-searcher.component.d.ts +3 -1
- package/lib/components/table/table.component.d.ts +2 -1
- package/lib/components/table/table.models.d.ts +4 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -39,12 +39,11 @@ export interface FormField {
|
|
|
39
39
|
pattern?: RegExp;
|
|
40
40
|
options?: AppSelectOption[];
|
|
41
41
|
multyoption?: boolean;
|
|
42
|
-
searchIdKey?: string;
|
|
43
42
|
searchFn?: (query: string) => Observable<any[]>;
|
|
44
43
|
searchDisplayFn?: (item: any) => string;
|
|
45
44
|
searchIsEnabledFn?: (item: any) => boolean;
|
|
46
45
|
}
|
|
47
|
-
export type FieldType = 'text' | 'number' | 'date' | 'select' | 'checkbox' | 'switch' | 'textarea' | 'pool' | 'searcher' | 'slider';
|
|
46
|
+
export type FieldType = 'text' | 'number' | 'date' | 'select' | 'checkbox' | 'switch' | 'textarea' | 'pool' | 'multyselect' | 'searcher' | 'slider';
|
|
48
47
|
export interface FormResult {
|
|
49
48
|
result: boolean;
|
|
50
49
|
form: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class UicStepTabsComponent {
|
|
4
4
|
tabs: string[];
|
|
5
5
|
currentTab: string;
|
|
6
6
|
navigationEnabled: boolean;
|
|
@@ -8,6 +8,6 @@ export declare class StepTabsComponent {
|
|
|
8
8
|
currentTabChange: EventEmitter<string>;
|
|
9
9
|
currentIndex: number;
|
|
10
10
|
changeTab(newTab: string): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UicStepTabsComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicStepTabsComponent, "ui-step-tabs", never, { "tabs": { "alias": "tabs"; "required": false; }; "currentTab": { "alias": "currentTab"; "required": false; }; "navigationEnabled": { "alias": "navigationEnabled"; "required": false; }; "showStepTitle": { "alias": "showStepTitle"; "required": false; }; }, { "currentTabChange": "currentTabChange"; }, never, never, true, never>;
|
|
13
13
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
3
|
+
import { AppSelectOption } from '../select/select.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
type selectId = (number | string)[];
|
|
6
|
+
declare const base: abstract new () => {
|
|
7
|
+
value: selectId;
|
|
8
|
+
valueChange: import("@angular/core").EventEmitter<selectId>;
|
|
9
|
+
onChange: (value: selectId) => void;
|
|
10
|
+
onTouched: () => void;
|
|
11
|
+
writeValue(obj: selectId): void;
|
|
12
|
+
registerOnChange(fn: any): void;
|
|
13
|
+
registerOnTouched(fn: any): void;
|
|
14
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
15
|
+
notifyChange(value: selectId): void;
|
|
16
|
+
};
|
|
17
|
+
export declare class UicMultySelectComponent extends base {
|
|
18
|
+
icon: string;
|
|
19
|
+
iconColor: 'primary' | 'secondary';
|
|
20
|
+
internalIcon: string;
|
|
21
|
+
size: 's' | 'm' | 'l';
|
|
22
|
+
label: string;
|
|
23
|
+
error: string;
|
|
24
|
+
tip: string;
|
|
25
|
+
showSubtitle: boolean;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
emptyText: string;
|
|
28
|
+
loading: boolean;
|
|
29
|
+
options: AppSelectOption[];
|
|
30
|
+
allSelected: boolean;
|
|
31
|
+
selectedSet: Set<string | number>;
|
|
32
|
+
toggleAll(checked: boolean): void;
|
|
33
|
+
toggleOption(id: number | string): void;
|
|
34
|
+
updateAllSelected(): void;
|
|
35
|
+
applySelection(): void;
|
|
36
|
+
dropdownTemplate: TemplateRef<any>;
|
|
37
|
+
private overlayRef;
|
|
38
|
+
overlayPositions: ConnectedPosition[];
|
|
39
|
+
private readonly overlay;
|
|
40
|
+
private readonly vcr;
|
|
41
|
+
private readonly host;
|
|
42
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
43
|
+
openList(): void;
|
|
44
|
+
closeList(): void;
|
|
45
|
+
writeValue(value: (string | number)[]): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UicMultySelectComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicMultySelectComponent, "ui-multy-select", 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; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SimpleChanges } from '@angular/core';
|
|
1
2
|
import { AppSelectOption } from '../inputs/select/select.component';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
type selectId = number | string;
|
|
@@ -26,6 +27,7 @@ export declare class UicPoolOptionsComponent extends base {
|
|
|
26
27
|
selectedSet: Set<selectId>;
|
|
27
28
|
updateOptions(id: selectId): void;
|
|
28
29
|
writeValue(value: selectId[]): void;
|
|
30
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicPoolOptionsComponent, never>;
|
|
30
32
|
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
33
|
}
|
|
@@ -4,10 +4,12 @@ export declare class UicTableUicSearcherComponent {
|
|
|
4
4
|
placeholder: string;
|
|
5
5
|
label: string;
|
|
6
6
|
searchOnKeydown: boolean;
|
|
7
|
+
showButtonText: boolean;
|
|
8
|
+
showSearchButton: boolean;
|
|
7
9
|
filter: EventEmitter<string>;
|
|
8
10
|
text: string;
|
|
9
11
|
reset(): void;
|
|
10
12
|
updateText(): void;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicTableUicSearcherComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicTableUicSearcherComponent, "uic-table-searcher", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "searchOnKeydown": { "alias": "searchOnKeydown"; "required": false; }; }, { "filter": "filter"; }, never, never, true, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicTableUicSearcherComponent, "uic-table-searcher", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "searchOnKeydown": { "alias": "searchOnKeydown"; "required": false; }; "showButtonText": { "alias": "showButtonText"; "required": false; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; }; }, { "filter": "filter"; }, never, never, true, never>;
|
|
13
15
|
}
|
|
@@ -20,6 +20,7 @@ export declare class UicTableComponent {
|
|
|
20
20
|
showPagination: boolean;
|
|
21
21
|
showEmptyMessage: boolean;
|
|
22
22
|
emptyMessage: string;
|
|
23
|
+
searcherShowButtonText: boolean;
|
|
23
24
|
action: EventEmitter<TableAction>;
|
|
24
25
|
update: EventEmitter<TableFilters>;
|
|
25
26
|
checkedChange: EventEmitter<(string | number)[]>;
|
|
@@ -50,5 +51,5 @@ export declare class UicTableComponent {
|
|
|
50
51
|
doAction(rowId: string | number, key: string): void;
|
|
51
52
|
resetCheckedIds(): void;
|
|
52
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicTableComponent, 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>;
|
|
54
|
+
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; }; "searcherShowButtonText": { "alias": "searcherShowButtonText"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; }, never, ["[actions]", "[filters]"], true, never>;
|
|
54
55
|
}
|
|
@@ -7,7 +7,10 @@ export interface TableColums {
|
|
|
7
7
|
type: ColumnTypes;
|
|
8
8
|
sortEnable?: boolean;
|
|
9
9
|
actions?: TableButton[];
|
|
10
|
-
moreActions?:
|
|
10
|
+
moreActions?: {
|
|
11
|
+
icon?: string;
|
|
12
|
+
actions: TableButton[];
|
|
13
|
+
}[];
|
|
11
14
|
}
|
|
12
15
|
export interface TableButton {
|
|
13
16
|
key: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -3,10 +3,12 @@ export * from './lib/components/inputs/checkbox/checkbox.component';
|
|
|
3
3
|
export * from './lib/components/inputs/toggle-button/toggle-button.component';
|
|
4
4
|
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
|
+
export * from './lib/components/dynamic-form/steps-form/step-tabs/step-tabs.component';
|
|
6
7
|
export * from './lib/components/inputs/input/input.component';
|
|
7
8
|
export * from './lib/components/inputs/date-picker/date-picker.component';
|
|
8
9
|
export * from './lib/components/inputs/uic-searcher/uic-searcher.component';
|
|
9
10
|
export * from './lib/components/inputs/select/select.component';
|
|
11
|
+
export * from './lib/components/inputs/multy-select/multy-select.component';
|
|
10
12
|
export * from './lib/components/table/table.component';
|
|
11
13
|
export * from './lib/components/table/table.models';
|
|
12
14
|
export * from './lib/components/skeleton-loader/skeleton-loader.component';
|