@unifylib/ui-lib 1.1.24 → 1.1.26
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 +1 -1
- package/esm2022/lib/components/activity-report-form/activity-report-form.component.mjs +2 -2
- package/esm2022/lib/components/base-form/base-form.component.mjs +2 -2
- package/esm2022/lib/components/base-form-canvas/base-form-canvas.component.mjs +47 -4
- package/esm2022/lib/components/base-input-dialog/base-input-dialog.component.mjs +2 -2
- package/esm2022/lib/components/base-table/base-table.component.mjs +34 -30
- package/esm2022/lib/components/editable-base-table/editable-base-table.component.mjs +2 -2
- 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 +8 -3
- package/esm2022/lib/components/shared/attachment-uploader/attachment-uploader.component.mjs +6 -4
- package/esm2022/lib/components/shared-list/shared-list.component.mjs +2 -2
- package/esm2022/lib/components/title-bar/title-bar.component.mjs +46 -8
- package/fesm2022/unifylib-ui-lib.mjs +201 -109
- package/fesm2022/unifylib-ui-lib.mjs.map +1 -1
- package/lib/base-model/field-info.d.ts +1 -1
- package/lib/components/base-form-canvas/base-form-canvas.component.d.ts +2 -0
- package/lib/components/base-table/base-table.component.d.ts +9 -3
- package/lib/components/section-form-canvas/section-form-canvas.component.d.ts +3 -1
- package/lib/components/shared/attachment-uploader/attachment-uploader.component.d.ts +2 -1
- package/lib/components/title-bar/title-bar.component.d.ts +12 -3
- package/package.json +1 -1
- package/esm2022/iq-ui-lib.mjs +0 -5
- package/fesm2022/iq-ui-lib.mjs +0 -5807
- package/fesm2022/iq-ui-lib.mjs.map +0 -1
|
@@ -5,7 +5,7 @@ export declare class FieldInfo {
|
|
|
5
5
|
targetProperty?: string;
|
|
6
6
|
row: number;
|
|
7
7
|
required: boolean;
|
|
8
|
-
type: 'text' | 'amount' | 'color-picker' | 'currency' | 'date' | 'number' | 'sequence' | 'list' | 'lookup' | 'multi-select' | 'password' | 'rich-text' | 'radio-button' | 'phone-number' | 'iban-text' | 'checkbox' | 'textarea' | 'button' | 'spacer' | 'attachment' | 'section-title' | 'chip-list' | 'time' | 'divider' | 'hyper-text' | 'stateType' | 'status' | 'year' | 'equation-builder';
|
|
8
|
+
type: 'text' | 'amount' | 'color-picker' | 'currency' | 'date' | 'number' | 'sequence' | 'list' | 'lookup' | 'multi-select' | 'password' | 'rich-text' | 'radio-button' | 'phone-number' | 'iban-text' | 'checkbox' | 'textarea' | 'button' | 'spacer' | 'attachment' | 'section-title' | 'chip-list' | 'time' | 'divider' | 'hyper-text' | 'stateType' | 'status' | 'year' | 'equation-builder' | 'toggle';
|
|
9
9
|
textFormat?: 'json';
|
|
10
10
|
readonly?: boolean;
|
|
11
11
|
viewonly?: boolean;
|
|
@@ -119,6 +119,8 @@ export declare class BaseFormCanvasComponent implements OnInit, OnChanges, OnDes
|
|
|
119
119
|
checkEquation(field: FieldInfo, $event: Event): void;
|
|
120
120
|
getView(field: any): 'month' | 'year' | 'multi-year';
|
|
121
121
|
setMonthAndYear(normalizedMonthAndYear: Moment, picker: MatDatepicker<Moment>, field: any): void;
|
|
122
|
+
getAcceptedFileTypes(field: FieldInfo): string | undefined;
|
|
123
|
+
onAttachmentFileSelected(file: File | null, field: FieldInfo): void;
|
|
122
124
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormCanvasComponent, never>;
|
|
123
125
|
static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormCanvasComponent, "app-base-form-canvas", never, { "pageInfo": { "alias": "pageInfo"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "workflowEditableFields": { "alias": "workflowEditableFields"; "required": false; }; "isWorkflowEditableManaged": { "alias": "isWorkflowEditableManaged"; "required": false; }; "supportingAttributes": { "alias": "supportingAttributes"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "emitOnValueChanges": { "alias": "emitOnValueChanges"; "required": false; }; "item": { "alias": "item"; "required": false; }; "equationSuggestedFields": { "alias": "equationSuggestedFields"; "required": false; }; "currentEquationValue": { "alias": "currentEquationValue"; "required": false; "isSignal": true; }; }, { "attachmentEmitter": "attachmentEmitter"; "actionEmitter": "actionEmitter"; "formUpdated": "formUpdated"; "hyperTextEvent": "hyperTextEvent"; "currentEquationValue": "currentEquationValueChange"; }, never, never, true, never>;
|
|
124
126
|
}
|
|
@@ -55,10 +55,13 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
55
55
|
enablePagination: boolean;
|
|
56
56
|
data?: MatTableDataSource<any>;
|
|
57
57
|
listAction: ButtonActionSettings[];
|
|
58
|
+
extraActions: ButtonActionSettings[];
|
|
59
|
+
buttonsDisplayMode: 'dropdown' | 'list';
|
|
58
60
|
columns: TableColumn<any>[];
|
|
59
61
|
filters: Filter[];
|
|
60
62
|
pathParam: number;
|
|
61
|
-
extraButton:
|
|
63
|
+
extraButton: ButtonActionSettings[];
|
|
64
|
+
buttonClicked: EventEmitter<ButtonActionSettings>;
|
|
62
65
|
enforceRefresh: boolean;
|
|
63
66
|
isPending: boolean;
|
|
64
67
|
trigger: boolean;
|
|
@@ -75,6 +78,7 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
75
78
|
listActionClicked: EventEmitter<{
|
|
76
79
|
action: ButtonActionSettings;
|
|
77
80
|
row: any;
|
|
81
|
+
isPending: boolean;
|
|
78
82
|
}>;
|
|
79
83
|
showDialog: EventEmitter<any>;
|
|
80
84
|
usedWorkflow: Workflow;
|
|
@@ -110,7 +114,8 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
110
114
|
emitRoutePage(element: any): void;
|
|
111
115
|
onSelectItem(row: any): void;
|
|
112
116
|
openNewTab(row: any): void;
|
|
113
|
-
|
|
117
|
+
onViewModeChangedReceived(isPending: boolean): void;
|
|
118
|
+
switchViewMode(isPending: boolean): void;
|
|
114
119
|
onAddNewAction($event: any): void;
|
|
115
120
|
showAddNew(): boolean;
|
|
116
121
|
onExtraButtionAction($event: any): void;
|
|
@@ -139,6 +144,7 @@ export declare class BaseTableComponent extends BaseUtils implements OnInit, OnC
|
|
|
139
144
|
getDisplaySvgPath(): string;
|
|
140
145
|
getDisplayTitle(): string;
|
|
141
146
|
getDisplaySubtitle(): string;
|
|
147
|
+
buttonClickedEvent($event: ButtonActionSettings): void;
|
|
142
148
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseTableComponent, never>;
|
|
143
|
-
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; }; "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>;
|
|
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>;
|
|
144
150
|
}
|
|
@@ -10,7 +10,9 @@ export declare class SectionFormCanvasComponent {
|
|
|
10
10
|
hideBackButton: boolean;
|
|
11
11
|
item: any;
|
|
12
12
|
title: string;
|
|
13
|
+
subtitle: string;
|
|
13
14
|
isTranslateTitle: boolean;
|
|
15
|
+
isTranslateSubtitle: boolean;
|
|
14
16
|
key: number;
|
|
15
17
|
hideToggle: boolean;
|
|
16
18
|
isExpanded: boolean;
|
|
@@ -24,5 +26,5 @@ export declare class SectionFormCanvasComponent {
|
|
|
24
26
|
toggleExpand(): void;
|
|
25
27
|
onButtonClick(btn: ButtonActionSettings, sectionKey: number): void;
|
|
26
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<SectionFormCanvasComponent, never>;
|
|
27
|
-
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; }; "isTranslateTitle": { "alias": "isTranslateTitle"; "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, never, true, 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, never, true, never>;
|
|
28
30
|
}
|
|
@@ -3,6 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class AttachmentUploaderComponent {
|
|
4
4
|
fileUpload: ElementRef<HTMLInputElement>;
|
|
5
5
|
fileSelected: EventEmitter<File>;
|
|
6
|
+
acceptedTypes?: string;
|
|
6
7
|
selectedFile: File | null;
|
|
7
8
|
isDragOver: boolean;
|
|
8
9
|
triggerAttachmentUpload(): void;
|
|
@@ -12,5 +13,5 @@ export declare class AttachmentUploaderComponent {
|
|
|
12
13
|
onDragLeave(event: DragEvent): void;
|
|
13
14
|
onDrop(event: DragEvent): void;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentUploaderComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentUploaderComponent, "app-attachment-uploader", never, {}, { "fileSelected": "fileSelected"; }, never, never, true, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentUploaderComponent, "app-attachment-uploader", never, { "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; }, { "fileSelected": "fileSelected"; }, never, never, true, never>;
|
|
16
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Location } from "@angular/common";
|
|
3
3
|
import { Directionality } from "@angular/cdk/bidi";
|
|
4
|
-
import { ButtonActionSettings } from "../../base-model";
|
|
4
|
+
import { ButtonActionSettings, PageInfo } from "../../base-model";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class TitleBarComponent implements OnInit, OnChanges {
|
|
7
7
|
private location;
|
|
@@ -10,6 +10,7 @@ export declare class TitleBarComponent implements OnInit, OnChanges {
|
|
|
10
10
|
showExtractButton: boolean;
|
|
11
11
|
totalElements?: number;
|
|
12
12
|
titleMode: string;
|
|
13
|
+
pageInfo: PageInfo;
|
|
13
14
|
subTitle: string;
|
|
14
15
|
statusDesc?: string;
|
|
15
16
|
newAction: boolean;
|
|
@@ -29,15 +30,23 @@ export declare class TitleBarComponent implements OnInit, OnChanges {
|
|
|
29
30
|
buttons: ButtonActionSettings[];
|
|
30
31
|
buttonsDisplayMode: 'dropdown' | 'list';
|
|
31
32
|
buttonClicked: EventEmitter<ButtonActionSettings>;
|
|
33
|
+
draftSupported: boolean;
|
|
34
|
+
isPending: boolean;
|
|
35
|
+
onViewModeChange?: (isPending: boolean) => void;
|
|
36
|
+
viewModeChanged: EventEmitter<boolean>;
|
|
37
|
+
private _isPending;
|
|
32
38
|
constructor(location: Location, dir: Directionality);
|
|
33
39
|
ngOnInit(): void;
|
|
40
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
41
|
+
get currentIsPending(): boolean;
|
|
34
42
|
get backIcon(): string;
|
|
35
43
|
publishEvent(): void;
|
|
36
44
|
doExtractReport(value: any): void;
|
|
37
45
|
publishExtraButtonEvent(): void;
|
|
38
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
39
46
|
goBack(): void;
|
|
40
47
|
onButtonClick(btn: ButtonActionSettings): void;
|
|
48
|
+
onViewModeChanged(isPending: boolean): void;
|
|
49
|
+
onChipSelectionChange(event: any): void;
|
|
41
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<TitleBarComponent, 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>;
|
|
51
|
+
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; }; "pageInfo": { "alias": "pageInfo"; "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; }; "draftSupported": { "alias": "draftSupported"; "required": false; }; "isPending": { "alias": "isPending"; "required": false; }; "onViewModeChange": { "alias": "onViewModeChange"; "required": false; }; }, { "newActionClicked": "newActionClicked"; "extraButtonClicked": "extraButtonClicked"; "extractReport": "extractReport"; "buttonClicked": "buttonClicked"; "viewModeChanged": "viewModeChanged"; }, never, never, true, never>;
|
|
43
52
|
}
|
package/package.json
CHANGED
package/esm2022/iq-ui-lib.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXEtdWktbGliLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvaW52b2ljZXEvdWktbGliL3NyYy9pcS11aS1saWIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|