@unifylib/ui-lib 1.1.64 → 1.1.67
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/cli/generators/dashboard.js +147 -0
- package/cli/generators/form-screen.js +95 -0
- package/cli/generators/line-editor.js +110 -0
- package/cli/generators/permission-matrix.js +115 -0
- package/cli/generators/section-form.js +103 -0
- package/cli/generators/table-screen.js +181 -0
- package/cli/index.js +185 -0
- package/cli/utils.js +228 -0
- package/esm2022/lib/components/action-comment/action-comment.component.mjs +6 -5
- package/esm2022/lib/components/advanced-filter/filter-builder/filter-builder.component.mjs +8 -3
- package/esm2022/lib/components/audit-log-list/audit-log.component.mjs +3 -3
- package/esm2022/lib/components/auto-complete/auto-complete.component.mjs +11 -3
- package/esm2022/lib/components/base-form-canvas/base-form-canvas.component.mjs +50 -4
- package/esm2022/lib/components/base-table/base-table.component.mjs +73 -9
- package/esm2022/lib/components/button-actions/button-actions.component.mjs +3 -3
- package/esm2022/lib/components/editable-base-table/editable-base-table.component.mjs +3 -3
- package/esm2022/lib/components/equation-builder/equation-builder.component.mjs +9 -4
- package/esm2022/lib/components/multi-auto-complete/multi-auto-complete.component.mjs +20 -4
- package/esm2022/lib/components/paginator/paginator.component.mjs +26 -6
- package/esm2022/lib/components/report-details-dialog/report-details-dialog.component.mjs +3 -3
- package/esm2022/lib/components/report-form/report-form.component.mjs +3 -3
- package/esm2022/lib/components/search-bar/search-bar.component.mjs +5 -4
- package/esm2022/lib/components/section-form-canvas/section-form-canvas.component.mjs +3 -3
- package/esm2022/lib/components/shared/attachment-uploader/attachment-uploader.component.mjs +5 -3
- package/esm2022/lib/components/snackbar-static/snackbar-static.component.mjs +3 -3
- package/esm2022/lib/components/title-bar/title-bar.component.mjs +3 -3
- package/fesm2022/iq-ui-lib.mjs +233 -72
- package/fesm2022/iq-ui-lib.mjs.map +1 -1
- package/fesm2022/unifylib-ui-lib.mjs +233 -72
- package/fesm2022/unifylib-ui-lib.mjs.map +1 -1
- package/lib/components/advanced-filter/filter-builder/filter-builder.component.d.ts +2 -0
- package/lib/components/auto-complete/auto-complete.component.d.ts +2 -1
- package/lib/components/base-form-canvas/base-form-canvas.component.d.ts +4 -0
- package/lib/components/base-table/base-table.component.d.ts +10 -1
- package/lib/components/multi-auto-complete/multi-auto-complete.component.d.ts +3 -1
- package/lib/components/paginator/paginator.component.d.ts +6 -1
- package/lib/components/shared/attachment-uploader/attachment-uploader.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -3,6 +3,8 @@ import { FieldInfo, PageInfo, TableColumn } from "../../../base-model";
|
|
|
3
3
|
import { FieldFilter } from "../../../base-model/field-filter.model";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FilterBuilderComponent implements OnInit, OnDestroy {
|
|
6
|
+
private readonly liveAnnouncer;
|
|
7
|
+
private readonly translate;
|
|
6
8
|
columns: TableColumn<any>[];
|
|
7
9
|
isChecked: boolean;
|
|
8
10
|
filterFields: FieldInfo[];
|
|
@@ -43,9 +43,10 @@ export declare class AutoCompleteComponent implements OnInit, OnChanges {
|
|
|
43
43
|
filterLookupItems(name: any, trigger: MatAutocompleteTrigger): void;
|
|
44
44
|
addLookupFilterByAnotherProperties(listItems: GetItemsList): void;
|
|
45
45
|
private patchLookupValue;
|
|
46
|
+
get matErrorDescribedBy(): string | null;
|
|
46
47
|
getId(): string;
|
|
47
48
|
onKeydown(event: KeyboardEvent, autocompleteTrigger: MatAutocompleteTrigger): void;
|
|
48
49
|
closed(): void;
|
|
49
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteComponent, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutoCompleteComponent, "app-auto-complete", never, { "field": { "alias": "field"; "required": false; }; "form": { "alias": "form"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "supportingAttributes": { "alias": "supportingAttributes"; "required": false; }; }, { "selectedValue": "selectedValue"; }, never,
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutoCompleteComponent, "app-auto-complete", never, { "field": { "alias": "field"; "required": false; }; "form": { "alias": "form"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "supportingAttributes": { "alias": "supportingAttributes"; "required": false; }; }, { "selectedValue": "selectedValue"; }, never, ["mat-error"], true, never>;
|
|
51
52
|
}
|
|
@@ -108,6 +108,10 @@ export declare class BaseFormCanvasComponent implements OnInit, OnChanges, OnDes
|
|
|
108
108
|
extractFieldName(element: any, property: string): any;
|
|
109
109
|
isReadonlyTextValueEmpty(defaults: any, field: FieldInfo): boolean;
|
|
110
110
|
getReadonlyDateFormat(field: FieldInfo): string;
|
|
111
|
+
onMultiStateMenuInnerKeydown(event: Event, field: FieldInfo): void;
|
|
112
|
+
private isMultiStateMenuActivateKey;
|
|
113
|
+
private findMultiStateRowFromKeyboardEvent;
|
|
114
|
+
onMultiStateRowClick(event: MouseEvent, property: string, code: string): void;
|
|
111
115
|
toggleMultiStateFilter(property: string, code: string, checked: boolean): void;
|
|
112
116
|
isMultiStateSelected(property: string, code: string): boolean;
|
|
113
117
|
isMultiStateEmpty(property: string): boolean;
|
|
@@ -11,6 +11,7 @@ import { ReportRequest } from "../../base-model/report-request.model";
|
|
|
11
11
|
import { TablePageUserAction } from "../../base-model/table-page-user-action.interface";
|
|
12
12
|
import { Workflow } from "../../base-model/workflow/workflow.model";
|
|
13
13
|
import { Router } from "@angular/router";
|
|
14
|
+
import { LiveAnnouncer } from "@angular/cdk/a11y";
|
|
14
15
|
import { FieldFilter } from "../../base-model/field-filter.model";
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
export declare class BaseTableComponent extends BaseUtils implements OnInit, OnChanges, OnDestroy {
|
|
@@ -19,6 +20,7 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
19
20
|
shareDataService: ShareDataService;
|
|
20
21
|
private securityManager;
|
|
21
22
|
private router;
|
|
23
|
+
private readonly liveAnnouncer;
|
|
22
24
|
types: string[];
|
|
23
25
|
collection: {
|
|
24
26
|
count: number;
|
|
@@ -92,7 +94,7 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
92
94
|
noDataFound: boolean;
|
|
93
95
|
totalRequiredCountItem: number;
|
|
94
96
|
clickRoutePage: EventEmitter<any>;
|
|
95
|
-
constructor(backendService: BackendService, translateService: TranslateService, shareDataService: ShareDataService, securityManager: any, router: Router);
|
|
97
|
+
constructor(backendService: BackendService, translateService: TranslateService, shareDataService: ShareDataService, securityManager: any, router: Router, liveAnnouncer: LiveAnnouncer);
|
|
96
98
|
ngOnDestroy(): void;
|
|
97
99
|
ngOnInit(): void;
|
|
98
100
|
private isMobile;
|
|
@@ -104,11 +106,16 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
104
106
|
getColumn(property: string): TableColumn<any> | undefined;
|
|
105
107
|
getSortDirection(property: string): 'asc' | 'desc' | '';
|
|
106
108
|
handleSortClick(property: string): void;
|
|
109
|
+
onSortHeaderKeydown(event: KeyboardEvent, columnProp: string): void;
|
|
110
|
+
/** aria-sort on sortable column headers (WCAG table semantics). */
|
|
111
|
+
getColumnAriaSort(columnProp: string): 'ascending' | 'descending' | 'none' | null;
|
|
112
|
+
onDefaultCellLinkKeydown(event: KeyboardEvent, row: unknown): void;
|
|
107
113
|
sortState: any;
|
|
108
114
|
getNext(pageIndex: number): void;
|
|
109
115
|
onPageSizeChange(event: number): void;
|
|
110
116
|
onLoadMore(itemsToLoad: number): void;
|
|
111
117
|
private loadData;
|
|
118
|
+
private announceTableResults;
|
|
112
119
|
getStatusDescription(element: any): any;
|
|
113
120
|
getStateType(element: any): any;
|
|
114
121
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -136,6 +143,8 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
136
143
|
private emitTableAction;
|
|
137
144
|
extractReport(reportType: any): void;
|
|
138
145
|
getIcon(status: string): string;
|
|
146
|
+
getIconAriaLabelKey(status: string): string;
|
|
147
|
+
getOnOffFlagAriaLabelKey(value: boolean | null | undefined): string;
|
|
139
148
|
actionCheckedClicked(property: string, element: any): void;
|
|
140
149
|
isDarkHighlight(row: any): boolean;
|
|
141
150
|
shouldRenderAsHyperLink(element: any): boolean;
|
|
@@ -43,9 +43,11 @@ export declare class MultiAutoCompleteComponent {
|
|
|
43
43
|
filterLookupItems(name: any, trigger: MatAutocompleteTrigger): void;
|
|
44
44
|
private patchLookupValue;
|
|
45
45
|
remove(item: LookupItem): void;
|
|
46
|
+
get matErrorDescribedBy(): string | null;
|
|
46
47
|
getLabel(): any;
|
|
47
48
|
onKeydown(event: KeyboardEvent, autocompleteTrigger: MatAutocompleteTrigger): void;
|
|
49
|
+
openLookupPanel(autocompleteTrigger: MatAutocompleteTrigger): void;
|
|
48
50
|
getId(): string;
|
|
49
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiAutoCompleteComponent, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiAutoCompleteComponent, "app-multi-auto-complete", never, { "field": { "alias": "field"; "required": false; }; "form": { "alias": "form"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "pathParam": { "alias": "pathParam"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "selectedValue": "selectedValue"; }, never,
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiAutoCompleteComponent, "app-multi-auto-complete", never, { "field": { "alias": "field"; "required": false; }; "form": { "alias": "form"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "pathParam": { "alias": "pathParam"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "selectedValue": "selectedValue"; }, never, ["mat-error"], true, never>;
|
|
51
53
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnChanges } from '@angular/core';
|
|
2
2
|
import { Directionality } from '@angular/cdk/bidi';
|
|
3
|
+
import { LiveAnnouncer } from '@angular/cdk/a11y';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class PaginatorComponent implements OnInit, OnChanges {
|
|
5
7
|
private directionality;
|
|
8
|
+
private readonly liveAnnouncer;
|
|
9
|
+
private readonly translate;
|
|
6
10
|
currentPage: number;
|
|
7
11
|
totalItems: number;
|
|
8
12
|
pageSize: number;
|
|
@@ -13,7 +17,7 @@ export declare class PaginatorComponent implements OnInit, OnChanges {
|
|
|
13
17
|
pageSizeChange: EventEmitter<number>;
|
|
14
18
|
loadMore: EventEmitter<number>;
|
|
15
19
|
currentDirection: 'ltr' | 'rtl';
|
|
16
|
-
constructor(directionality: Directionality);
|
|
20
|
+
constructor(directionality: Directionality, liveAnnouncer: LiveAnnouncer, translate: TranslateService);
|
|
17
21
|
ngOnInit(): void;
|
|
18
22
|
ngOnChanges(): void;
|
|
19
23
|
get totalPages(): number;
|
|
@@ -23,6 +27,7 @@ export declare class PaginatorComponent implements OnInit, OnChanges {
|
|
|
23
27
|
nextPage(): void;
|
|
24
28
|
previousPage(): void;
|
|
25
29
|
onPageSizeChange(size: number): void;
|
|
30
|
+
private announcePagination;
|
|
26
31
|
getPageNumbers(): (number | string)[];
|
|
27
32
|
isEllipsis(page: number | string): boolean;
|
|
28
33
|
isActive(page: number | string): boolean;
|
|
@@ -4,6 +4,7 @@ export declare class AttachmentUploaderComponent {
|
|
|
4
4
|
fileUpload: ElementRef<HTMLInputElement>;
|
|
5
5
|
fileSelected: EventEmitter<File>;
|
|
6
6
|
acceptedTypes?: string;
|
|
7
|
+
ariaDescribedBy?: string | null;
|
|
7
8
|
selectedFile: File | null;
|
|
8
9
|
isDragOver: boolean;
|
|
9
10
|
triggerAttachmentUpload(): void;
|
|
@@ -13,5 +14,5 @@ export declare class AttachmentUploaderComponent {
|
|
|
13
14
|
onDragLeave(event: DragEvent): void;
|
|
14
15
|
onDrop(event: DragEvent): void;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentUploaderComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentUploaderComponent, "app-attachment-uploader", never, { "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; }, { "fileSelected": "fileSelected"; }, never, never, true, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentUploaderComponent, "app-attachment-uploader", never, { "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; }; }, { "fileSelected": "fileSelected"; }, never, never, true, never>;
|
|
17
18
|
}
|