@unifylib/ui-lib 1.1.5 → 1.1.6
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/base-model/field-info.mjs +2 -1
- package/esm2022/lib/components/action-confirmation/action-confirmation.component.mjs +3 -3
- package/esm2022/lib/components/activity-report-form/activity-report-form.component.mjs +2 -2
- package/esm2022/lib/components/advanced-filter/filter-builder/filter-builder.component.mjs +23 -4
- package/esm2022/lib/components/base-form/base-form.component.mjs +2 -2
- package/esm2022/lib/components/base-form-canvas/base-form-canvas.component.mjs +3 -3
- package/esm2022/lib/components/base-input-dialog/base-input-dialog.component.mjs +2 -2
- package/esm2022/lib/components/base-table/base-table.component.mjs +48 -5
- package/esm2022/lib/components/editable-base-table/editable-base-table.component.mjs +2 -2
- package/esm2022/lib/components/paginator/paginator.component.mjs +49 -8
- package/esm2022/lib/components/rejection-comment/action-comment.component.mjs +88 -0
- package/esm2022/lib/components/report-form/report-form.component.mjs +2 -2
- package/esm2022/lib/components/title-bar/title-bar.component.mjs +6 -3
- package/fesm2022/iq-ui-lib.mjs +142 -34
- package/fesm2022/iq-ui-lib.mjs.map +1 -1
- package/fesm2022/unifylib-ui-lib.mjs +142 -34
- package/fesm2022/unifylib-ui-lib.mjs.map +1 -1
- package/lib/base-model/field-info.d.ts +1 -0
- package/lib/components/advanced-filter/filter-builder/filter-builder.component.d.ts +5 -1
- package/lib/components/base-table/base-table.component.d.ts +9 -0
- package/lib/components/paginator/paginator.component.d.ts +3 -0
- package/lib/components/rejection-comment/action-comment.component.d.ts +24 -0
- package/lib/components/title-bar/title-bar.component.d.ts +2 -1
- package/package.json +2 -4
|
@@ -49,5 +49,6 @@ export declare class FieldInfo {
|
|
|
49
49
|
validationMessages?: any;
|
|
50
50
|
hideLabel?: boolean;
|
|
51
51
|
searchOperator?: "GREATER_THAN_EQUAL" | "GREATER_THAN" | "LESS_THAN" | "LESS_THAN_EQUAL" | "EQUALS" | "LIKE" | "NOT_EQ" | "IN" | "NOT_NULL";
|
|
52
|
+
showSearchIcon?: boolean;
|
|
52
53
|
constructor(fieldInfo: FieldInfo);
|
|
53
54
|
}
|
|
@@ -7,15 +7,19 @@ export declare class FilterBuilderComponent implements OnInit, OnDestroy {
|
|
|
7
7
|
isChecked: boolean;
|
|
8
8
|
filterFields: FieldInfo[];
|
|
9
9
|
pageInfo: PageInfo;
|
|
10
|
+
pendingFilters: FieldFilter[];
|
|
10
11
|
filter: FieldFilter;
|
|
11
12
|
filters: FieldFilter[];
|
|
12
13
|
private searchTimeout;
|
|
13
14
|
filterInformation: EventEmitter<FieldFilter[]>;
|
|
14
15
|
isEmpty: EventEmitter<boolean>;
|
|
16
|
+
applyFilter: EventEmitter<void>;
|
|
15
17
|
constructor();
|
|
16
18
|
ngOnInit(): void;
|
|
17
19
|
ngOnDestroy(): void;
|
|
18
20
|
doSearch(): void;
|
|
21
|
+
onApplyFilter(): void;
|
|
22
|
+
hasPendingFilters(): boolean;
|
|
19
23
|
private scheduleSearch;
|
|
20
24
|
formChanges($event: any, index?: number, fieldInfo?: FieldInfo): void;
|
|
21
25
|
typeMap(colType?: string): string;
|
|
@@ -24,5 +28,5 @@ export declare class FilterBuilderComponent implements OnInit, OnDestroy {
|
|
|
24
28
|
switchToAdvanced(): void;
|
|
25
29
|
private createDefaultFieldFilter;
|
|
26
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterBuilderComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterBuilderComponent, "app-filter-builder", never, { "columns": { "alias": "columns"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "filterFields": { "alias": "filterFields"; "required": false; }; "pageInfo": { "alias": "pageInfo"; "required": false; }; }, { "filterInformation": "filterInformation"; "isEmpty": "isEmpty"; }, never, never, true, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterBuilderComponent, "app-filter-builder", never, { "columns": { "alias": "columns"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "filterFields": { "alias": "filterFields"; "required": false; }; "pageInfo": { "alias": "pageInfo"; "required": false; }; "pendingFilters": { "alias": "pendingFilters"; "required": false; }; }, { "filterInformation": "filterInformation"; "isEmpty": "isEmpty"; "applyFilter": "applyFilter"; }, never, never, true, never>;
|
|
28
32
|
}
|
|
@@ -44,6 +44,7 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
44
44
|
pageSize: number;
|
|
45
45
|
private selectedStatusFilter;
|
|
46
46
|
advancedAppliedFilter: any[];
|
|
47
|
+
pendingFilters: any[];
|
|
47
48
|
searchStr: string;
|
|
48
49
|
private filterRequest;
|
|
49
50
|
private timer;
|
|
@@ -87,6 +88,11 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
87
88
|
onPageChange(event: number): void;
|
|
88
89
|
extractFieldName(element: any, property: string): any;
|
|
89
90
|
get visibleColumns(): string[];
|
|
91
|
+
get visibleColumnsArray(): string[];
|
|
92
|
+
getColumn(property: string): TableColumn<any> | undefined;
|
|
93
|
+
getSortDirection(property: string): 'asc' | 'desc' | '';
|
|
94
|
+
handleSortClick(property: string): void;
|
|
95
|
+
sortState: any;
|
|
90
96
|
getNext(pageIndex: number): void;
|
|
91
97
|
onPageSizeChange(event: number): void;
|
|
92
98
|
private loadData;
|
|
@@ -122,6 +128,9 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
122
128
|
onSortAction($event: Sort): void;
|
|
123
129
|
shouldShowButton(element: any): boolean;
|
|
124
130
|
doAdvancedSearch($event: FieldFilter[]): void;
|
|
131
|
+
storePendingFilters($event: FieldFilter[]): void;
|
|
132
|
+
applyPendingFilters(): void;
|
|
133
|
+
handleFilterEmpty($event: boolean): void;
|
|
125
134
|
resetData($event: boolean): void;
|
|
126
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseTableComponent, never>;
|
|
127
136
|
static ɵcmp: i0.ɵɵComponentDeclaration<BaseTableComponent, "app-base-table", never, { "filterFields": { "alias": "filterFields"; "required": false; }; "noDataFoundIcon": { "alias": "noDataFoundIcon"; "required": false; }; "noDataFoundTitle": { "alias": "noDataFoundTitle"; "required": false; }; "noDataFoundSubtitle": { "alias": "noDataFoundSubtitle"; "required": false; }; "pageInfo": { "alias": "pageInfo"; "required": false; }; "enablePagination": { "alias": "enablePagination"; "required": false; }; "data": { "alias": "data"; "required": false; }; "listAction": { "alias": "listAction"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "pathParam": { "alias": "pathParam"; "required": false; }; "extraButton": { "alias": "extraButton"; "required": false; }; "enforceRefresh": { "alias": "enforceRefresh"; "required": false; }; "isPending": { "alias": "isPending"; "required": false; }; "trigger": { "alias": "trigger"; "required": false; }; "reportRequest": { "alias": "reportRequest"; "required": false; }; "separateEndpointData": { "alias": "separateEndpointData"; "required": false; }; "manageablePages": { "alias": "manageablePages"; "required": false; }; "totalPagesCount": { "alias": "totalPagesCount"; "required": false; }; "currentPageIndex": { "alias": "currentPageIndex"; "required": false; }; "customizedData": { "alias": "customizedData"; "required": false; }; }, { "pageChange": "pageChange"; "userAction": "userAction"; "hyperLinkAction": "hyperLinkAction"; "extraAction": "extraAction"; "selectedColumn": "selectedColumn"; "listActionClicked": "listActionClicked"; "showDialog": "showDialog"; "clickRoutePage": "clickRoutePage"; }, never, never, true, never>;
|
|
@@ -20,6 +20,9 @@ export declare class PaginatorComponent implements OnInit, OnChanges {
|
|
|
20
20
|
nextPage(): void;
|
|
21
21
|
previousPage(): void;
|
|
22
22
|
onPageSizeChange(size: number): void;
|
|
23
|
+
getPageNumbers(): (number | string)[];
|
|
24
|
+
isEllipsis(page: number | string): boolean;
|
|
25
|
+
isActive(page: number | string): boolean;
|
|
23
26
|
protected readonly Math: Math;
|
|
24
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatorComponent, never>;
|
|
25
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<PaginatorComponent, "app-paginator", never, { "currentPage": { "alias": "currentPage"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; }, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; }, never, never, true, never>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from "@angular/material/dialog";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ActionCommentComponent implements OnInit {
|
|
5
|
+
dialogRef: MatDialogRef<ActionCommentComponent>;
|
|
6
|
+
data: any;
|
|
7
|
+
actionLabel: string;
|
|
8
|
+
isTermination: boolean;
|
|
9
|
+
comment: string;
|
|
10
|
+
external: boolean;
|
|
11
|
+
signingRequired: boolean;
|
|
12
|
+
tokenReference: string;
|
|
13
|
+
otp: string;
|
|
14
|
+
isSubmitted: boolean;
|
|
15
|
+
showExternalBox: boolean;
|
|
16
|
+
warningMsg: boolean;
|
|
17
|
+
constructor(dialogRef: MatDialogRef<ActionCommentComponent>, data: any);
|
|
18
|
+
onKeyUp(): void;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
commentAndClose(): false | "";
|
|
21
|
+
cancel(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionCommentComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionCommentComponent, "app-action-comment", never, {}, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -27,6 +27,7 @@ export declare class TitleBarComponent implements OnInit, OnChanges {
|
|
|
27
27
|
isRoot: boolean;
|
|
28
28
|
hideBackButton: boolean;
|
|
29
29
|
buttons: ButtonActionSettings[];
|
|
30
|
+
buttonsDisplayMode: 'dropdown' | 'list';
|
|
30
31
|
buttonClicked: EventEmitter<ButtonActionSettings>;
|
|
31
32
|
constructor(location: Location, dir: Directionality);
|
|
32
33
|
ngOnInit(): void;
|
|
@@ -38,5 +39,5 @@ export declare class TitleBarComponent implements OnInit, OnChanges {
|
|
|
38
39
|
goBack(): void;
|
|
39
40
|
onButtonClick(btn: ButtonActionSettings): void;
|
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<TitleBarComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TitleBarComponent, "app-title-bar", never, { "pageTitle": { "alias": "pageTitle"; "required": false; }; "showExtractButton": { "alias": "showExtractButton"; "required": false; }; "totalElements": { "alias": "totalElements"; "required": false; }; "titleMode": { "alias": "titleMode"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "statusDesc": { "alias": "statusDesc"; "required": false; }; "newAction": { "alias": "newAction"; "required": false; }; "extraButton": { "alias": "extraButton"; "required": false; }; "showDetails": { "alias": "showDetails"; "required": false; }; "showImport": { "alias": "showImport"; "required": false; }; "showButton": { "alias": "showButton"; "required": false; }; "extraData": { "alias": "extraData"; "required": false; }; "titleCorporateAdmin": { "alias": "titleCorporateAdmin"; "required": false; }; "hideBackButton": { "alias": "hideBackButton"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "newActionClicked": "newActionClicked"; "extraButtonClicked": "extraButtonClicked"; "extractReport": "extractReport"; "buttonClicked": "buttonClicked"; }, never, never, true, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TitleBarComponent, "app-title-bar", never, { "pageTitle": { "alias": "pageTitle"; "required": false; }; "showExtractButton": { "alias": "showExtractButton"; "required": false; }; "totalElements": { "alias": "totalElements"; "required": false; }; "titleMode": { "alias": "titleMode"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "statusDesc": { "alias": "statusDesc"; "required": false; }; "newAction": { "alias": "newAction"; "required": false; }; "extraButton": { "alias": "extraButton"; "required": false; }; "showDetails": { "alias": "showDetails"; "required": false; }; "showImport": { "alias": "showImport"; "required": false; }; "showButton": { "alias": "showButton"; "required": false; }; "extraData": { "alias": "extraData"; "required": false; }; "titleCorporateAdmin": { "alias": "titleCorporateAdmin"; "required": false; }; "hideBackButton": { "alias": "hideBackButton"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "buttonsDisplayMode": { "alias": "buttonsDisplayMode"; "required": false; }; }, { "newActionClicked": "newActionClicked"; "extraButtonClicked": "extraButtonClicked"; "extractReport": "extractReport"; "buttonClicked": "buttonClicked"; }, never, never, true, never>;
|
|
42
43
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unifylib/ui-lib",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^17.3.12",
|
|
6
|
-
"@angular/core": "^17.3.12"
|
|
7
|
-
"moment": "^2.30.1",
|
|
8
|
-
"rxjs": "~7.8.0"
|
|
6
|
+
"@angular/core": "^17.3.12"
|
|
9
7
|
},
|
|
10
8
|
"dependencies": {
|
|
11
9
|
"tslib": "^2.3.0"
|