@unifylib/ui-lib 1.1.26 → 1.1.27
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/iq-ui-lib.mjs +5 -0
- package/esm2022/lib/base-model/field-info.mjs +3 -1
- package/esm2022/lib/base-model/table-column.interface.mjs +1 -1
- package/esm2022/lib/components/action-comment/action-comment.component.mjs +3 -3
- 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 +57 -7
- package/esm2022/lib/components/base-form-canvas/base-form-canvas.component.mjs +3 -3
- package/esm2022/lib/components/base-table/base-table.component.mjs +68 -19
- package/esm2022/lib/components/editable-base-table/editable-base-table.component.mjs +2 -2
- package/esm2022/lib/components/item-line-editor/item-line-editor.component.mjs +33 -3
- package/esm2022/lib/components/paginator/paginator.component.mjs +32 -3
- package/esm2022/lib/components/report-details-dialog/report-details-dialog.component.mjs +2 -2
- package/esm2022/lib/components/report-form/report-form.component.mjs +2 -2
- package/esm2022/lib/components/section-form-canvas/section-form-canvas.component.mjs +14 -4
- package/esm2022/lib/components/shared/action-card/action-card.component.mjs +3 -3
- package/esm2022/lib/components/shared-list/shared-list.component.mjs +2 -2
- package/fesm2022/iq-ui-lib.mjs +6067 -0
- package/fesm2022/iq-ui-lib.mjs.map +1 -0
- package/fesm2022/unifylib-ui-lib.mjs +211 -43
- package/fesm2022/unifylib-ui-lib.mjs.map +1 -1
- package/lib/base-model/field-info.d.ts +1 -0
- package/lib/base-model/table-column.interface.d.ts +2 -0
- package/lib/components/advanced-filter/filter-builder/filter-builder.component.d.ts +13 -2
- package/lib/components/base-table/base-table.component.d.ts +15 -3
- package/lib/components/item-line-editor/item-line-editor.component.d.ts +5 -2
- package/lib/components/paginator/paginator.component.d.ts +8 -1
- package/lib/components/section-form-canvas/section-form-canvas.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -50,5 +50,6 @@ export declare class FieldInfo {
|
|
|
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
52
|
showSearchIcon?: boolean;
|
|
53
|
+
multiLevelSearchEnable?: boolean;
|
|
53
54
|
constructor(fieldInfo: FieldInfo);
|
|
54
55
|
}
|
|
@@ -8,14 +8,25 @@ export declare class FilterBuilderComponent implements OnInit, OnDestroy {
|
|
|
8
8
|
filterFields: FieldInfo[];
|
|
9
9
|
pageInfo: PageInfo;
|
|
10
10
|
pendingFilters: FieldFilter[];
|
|
11
|
+
showExportButton: boolean;
|
|
11
12
|
filter: FieldFilter;
|
|
12
13
|
filters: FieldFilter[];
|
|
13
14
|
private searchTimeout;
|
|
14
15
|
private autoApplyTimeout;
|
|
15
|
-
filterInformation: EventEmitter<
|
|
16
|
+
filterInformation: EventEmitter<{
|
|
17
|
+
filters: FieldFilter[];
|
|
18
|
+
searchStr: string;
|
|
19
|
+
}>;
|
|
16
20
|
isEmpty: EventEmitter<boolean>;
|
|
17
21
|
applyFilter: EventEmitter<void>;
|
|
22
|
+
sortByClicked: EventEmitter<string>;
|
|
23
|
+
exportClicked: EventEmitter<string>;
|
|
18
24
|
constructor();
|
|
25
|
+
isMobile(): boolean;
|
|
26
|
+
getSortableColumns(): TableColumn<any>[];
|
|
27
|
+
labelKey(column: TableColumn<any>): string;
|
|
28
|
+
onSortByClick(columnProperty: string): void;
|
|
29
|
+
onExportClick(reportType: string): void;
|
|
19
30
|
ngOnInit(): void;
|
|
20
31
|
ngOnDestroy(): void;
|
|
21
32
|
onKeyDown(event: KeyboardEvent): void;
|
|
@@ -30,5 +41,5 @@ export declare class FilterBuilderComponent implements OnInit, OnDestroy {
|
|
|
30
41
|
switchToAdvanced(): void;
|
|
31
42
|
private createDefaultFieldFilter;
|
|
32
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterBuilderComponent, never>;
|
|
33
|
-
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>;
|
|
44
|
+
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; }; "showExportButton": { "alias": "showExportButton"; "required": false; }; }, { "filterInformation": "filterInformation"; "isEmpty": "isEmpty"; "applyFilter": "applyFilter"; "sortByClicked": "sortByClicked"; "exportClicked": "exportClicked"; }, never, never, true, never>;
|
|
34
45
|
}
|
|
@@ -45,6 +45,7 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
45
45
|
pagesCount: number;
|
|
46
46
|
pageIndex: number;
|
|
47
47
|
pageSize: number;
|
|
48
|
+
mobileDisplayedItems: number;
|
|
48
49
|
private selectedStatusFilter;
|
|
49
50
|
advancedAppliedFilter: any[];
|
|
50
51
|
pendingFilters: any[];
|
|
@@ -53,6 +54,8 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
53
54
|
private timer;
|
|
54
55
|
pageInfo: PageInfo;
|
|
55
56
|
enablePagination: boolean;
|
|
57
|
+
mobilePageSize: number;
|
|
58
|
+
mobileLoadMoreIncrement: number;
|
|
56
59
|
data?: MatTableDataSource<any>;
|
|
57
60
|
listAction: ButtonActionSettings[];
|
|
58
61
|
extraActions: ButtonActionSettings[];
|
|
@@ -92,6 +95,8 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
92
95
|
constructor(backendService: BackendService, translateService: TranslateService, shareDataService: ShareDataService, securityManager: any, router: Router);
|
|
93
96
|
ngOnDestroy(): void;
|
|
94
97
|
ngOnInit(): void;
|
|
98
|
+
private isMobile;
|
|
99
|
+
private initializeMobilePageSize;
|
|
95
100
|
onPageChange(event: number): void;
|
|
96
101
|
extractFieldName(element: any, property: string): any;
|
|
97
102
|
get visibleColumns(): string[];
|
|
@@ -102,6 +107,7 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
102
107
|
sortState: any;
|
|
103
108
|
getNext(pageIndex: number): void;
|
|
104
109
|
onPageSizeChange(event: number): void;
|
|
110
|
+
onLoadMore(itemsToLoad: number): void;
|
|
105
111
|
private loadData;
|
|
106
112
|
getStatusDescription(element: any): any;
|
|
107
113
|
getStateType(element: any): any;
|
|
@@ -135,8 +141,10 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
135
141
|
shouldRenderAsHyperLink(element: any): boolean;
|
|
136
142
|
onSortAction($event: Sort): void;
|
|
137
143
|
shouldShowButton(element: any): boolean;
|
|
138
|
-
|
|
139
|
-
|
|
144
|
+
storePendingFilters($event: {
|
|
145
|
+
filters: FieldFilter[];
|
|
146
|
+
searchStr: string;
|
|
147
|
+
}): void;
|
|
140
148
|
applyPendingFilters(): void;
|
|
141
149
|
handleFilterEmpty($event: boolean): void;
|
|
142
150
|
resetData($event: boolean): void;
|
|
@@ -145,6 +153,10 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
145
153
|
getDisplayTitle(): string;
|
|
146
154
|
getDisplaySubtitle(): string;
|
|
147
155
|
buttonClickedEvent($event: ButtonActionSettings): void;
|
|
156
|
+
getMobileCardIdColumn(): TableColumn<any> | undefined;
|
|
157
|
+
getMobileCardStatusColumn(): TableColumn<any> | undefined;
|
|
158
|
+
getMobileCardColumns(): TableColumn<any>[];
|
|
159
|
+
labelKeyByValue(column: TableColumn<any> | undefined, row: any): string;
|
|
148
160
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseTableComponent, never>;
|
|
149
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseTableComponent, "app-base-table", never, { "filterFields": { "alias": "filterFields"; "required": false; }; "noDataFoundSvgPath": { "alias": "noDataFoundSvgPath"; "required": false; }; "noDataFoundTitle": { "alias": "noDataFoundTitle"; "required": false; }; "noDataFoundSubtitle": { "alias": "noDataFoundSubtitle"; "required": false; }; "noResultSvgPath": { "alias": "noResultSvgPath"; "required": false; }; "noResultTitle": { "alias": "noResultTitle"; "required": false; }; "noResultSubtitle": { "alias": "noResultSubtitle"; "required": false; }; "pageInfo": { "alias": "pageInfo"; "required": false; }; "enablePagination": { "alias": "enablePagination"; "required": false; }; "data": { "alias": "data"; "required": false; }; "listAction": { "alias": "listAction"; "required": false; }; "extraActions": { "alias": "extraActions"; "required": false; }; "buttonsDisplayMode": { "alias": "buttonsDisplayMode"; "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; }; }, { "buttonClicked": "buttonClicked"; "pageChange": "pageChange"; "userAction": "userAction"; "hyperLinkAction": "hyperLinkAction"; "extraAction": "extraAction"; "selectedColumn": "selectedColumn"; "listActionClicked": "listActionClicked"; "showDialog": "showDialog"; "clickRoutePage": "clickRoutePage"; }, never, never, true, never>;
|
|
161
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseTableComponent, "app-base-table", never, { "filterFields": { "alias": "filterFields"; "required": false; }; "noDataFoundSvgPath": { "alias": "noDataFoundSvgPath"; "required": false; }; "noDataFoundTitle": { "alias": "noDataFoundTitle"; "required": false; }; "noDataFoundSubtitle": { "alias": "noDataFoundSubtitle"; "required": false; }; "noResultSvgPath": { "alias": "noResultSvgPath"; "required": false; }; "noResultTitle": { "alias": "noResultTitle"; "required": false; }; "noResultSubtitle": { "alias": "noResultSubtitle"; "required": false; }; "pageInfo": { "alias": "pageInfo"; "required": false; }; "enablePagination": { "alias": "enablePagination"; "required": false; }; "mobilePageSize": { "alias": "mobilePageSize"; "required": false; }; "mobileLoadMoreIncrement": { "alias": "mobileLoadMoreIncrement"; "required": false; }; "data": { "alias": "data"; "required": false; }; "listAction": { "alias": "listAction"; "required": false; }; "extraActions": { "alias": "extraActions"; "required": false; }; "buttonsDisplayMode": { "alias": "buttonsDisplayMode"; "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; }; }, { "buttonClicked": "buttonClicked"; "pageChange": "pageChange"; "userAction": "userAction"; "hyperLinkAction": "hyperLinkAction"; "extraAction": "extraAction"; "selectedColumn": "selectedColumn"; "listActionClicked": "listActionClicked"; "showDialog": "showDialog"; "clickRoutePage": "clickRoutePage"; }, never, never, true, never>;
|
|
150
162
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FieldInfo, PageInfo } from "../../base-model";
|
|
3
3
|
import { FormGroup } from "@angular/forms";
|
|
4
4
|
import { LineItem } from "../../base-model/line-item.model";
|
|
5
5
|
import { ItemsTotal } from "../../base-model/items-total.model";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ItemLineEditorComponent implements OnChanges {
|
|
7
|
+
export declare class ItemLineEditorComponent implements OnChanges, OnInit {
|
|
8
8
|
noDataFoundIcon: string;
|
|
9
9
|
noDataFoundTitle: string;
|
|
10
10
|
noDataFoundSubtitle: string;
|
|
@@ -35,6 +35,9 @@ export declare class ItemLineEditorComponent implements OnChanges {
|
|
|
35
35
|
formRefs: (FormGroup | undefined)[];
|
|
36
36
|
editing: boolean[];
|
|
37
37
|
noDataFound: boolean;
|
|
38
|
+
isMobile(): boolean;
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
private applyMobileFieldModifications;
|
|
38
41
|
get headerFields(): FieldInfo[];
|
|
39
42
|
get hasInvalidEditingForm(): boolean;
|
|
40
43
|
get canAddNew(): boolean;
|
|
@@ -7,8 +7,11 @@ export declare class PaginatorComponent implements OnInit, OnChanges {
|
|
|
7
7
|
totalItems: number;
|
|
8
8
|
pageSize: number;
|
|
9
9
|
pageSizeOptions: number[];
|
|
10
|
+
mobileLoadMoreIncrement: number;
|
|
11
|
+
displayedItems: number;
|
|
10
12
|
pageChange: EventEmitter<number>;
|
|
11
13
|
pageSizeChange: EventEmitter<number>;
|
|
14
|
+
loadMore: EventEmitter<number>;
|
|
12
15
|
currentDirection: 'ltr' | 'rtl';
|
|
13
16
|
constructor(directionality: Directionality);
|
|
14
17
|
ngOnInit(): void;
|
|
@@ -23,7 +26,11 @@ export declare class PaginatorComponent implements OnInit, OnChanges {
|
|
|
23
26
|
getPageNumbers(): (number | string)[];
|
|
24
27
|
isEllipsis(page: number | string): boolean;
|
|
25
28
|
isActive(page: number | string): boolean;
|
|
29
|
+
onLoadMore(): void;
|
|
30
|
+
get canLoadMore(): boolean;
|
|
31
|
+
get currentPageNumber(): number;
|
|
32
|
+
get totalPageNumbers(): number;
|
|
26
33
|
protected readonly Math: Math;
|
|
27
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatorComponent, never>;
|
|
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>;
|
|
35
|
+
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; }; "mobileLoadMoreIncrement": { "alias": "mobileLoadMoreIncrement"; "required": false; }; "displayedItems": { "alias": "displayedItems"; "required": false; }; }, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; "loadMore": "loadMore"; }, never, never, true, never>;
|
|
29
36
|
}
|
|
@@ -25,6 +25,8 @@ export declare class SectionFormCanvasComponent {
|
|
|
25
25
|
formUpdated($event: any): void;
|
|
26
26
|
toggleExpand(): void;
|
|
27
27
|
onButtonClick(btn: ButtonActionSettings, sectionKey: number): void;
|
|
28
|
+
getDownloadButton(): ButtonActionSettings | undefined;
|
|
29
|
+
getMenuButtons(): ButtonActionSettings[];
|
|
28
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<SectionFormCanvasComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SectionFormCanvasComponent, "lib-section-form-canvas", never, { "pageInfo": { "alias": "pageInfo"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "itemId": { "alias": "itemId"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "hideBackButton": { "alias": "hideBackButton"; "required": false; }; "item": { "alias": "item"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "isTranslateTitle": { "alias": "isTranslateTitle"; "required": false; }; "isTranslateSubtitle": { "alias": "isTranslateSubtitle"; "required": false; }; "key": { "alias": "key"; "required": false; }; "hideToggle": { "alias": "hideToggle"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "alwaysOpen": { "alias": "alwaysOpen"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "itemStatus": { "alias": "itemStatus"; "required": false; }; }, { "actionEdit": "actionEdit"; "formEdit": "formEdit"; "buttonClicked": "buttonClicked"; }, never,
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionFormCanvasComponent, "lib-section-form-canvas", never, { "pageInfo": { "alias": "pageInfo"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "itemId": { "alias": "itemId"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "hideBackButton": { "alias": "hideBackButton"; "required": false; }; "item": { "alias": "item"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "isTranslateTitle": { "alias": "isTranslateTitle"; "required": false; }; "isTranslateSubtitle": { "alias": "isTranslateSubtitle"; "required": false; }; "key": { "alias": "key"; "required": false; }; "hideToggle": { "alias": "hideToggle"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "alwaysOpen": { "alias": "alwaysOpen"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "itemStatus": { "alias": "itemStatus"; "required": false; }; }, { "actionEdit": "actionEdit"; "formEdit": "formEdit"; "buttonClicked": "buttonClicked"; }, never, ["*"], true, never>;
|
|
30
32
|
}
|