@unifylib/ui-lib 1.0.3 → 1.1.3
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/ng-package.json +7 -7
- package/package.json +14 -12
- package/src/lib/base-model/SearchStrConfig.ts +12 -12
- package/src/lib/base-model/api-response.ts +23 -23
- package/src/lib/base-model/audit-log-entry.ts +7 -7
- package/src/lib/base-model/button-action-settings.ts +29 -25
- package/src/lib/base-model/column-def.model.ts +34 -34
- package/src/lib/base-model/do-action-request.ts +11 -11
- package/src/lib/base-model/feature-item.ts +9 -0
- package/src/lib/base-model/field-action.ts +7 -7
- package/src/lib/base-model/field-filter.model.ts +7 -14
- package/src/lib/base-model/field-info.ts +102 -98
- package/src/lib/base-model/field-predicate.model.ts +7 -7
- package/src/lib/base-model/filter-request.ts +27 -27
- package/src/lib/base-model/filter.model.ts +49 -49
- package/src/lib/base-model/get-items-list.ts +24 -24
- package/src/lib/base-model/index.ts +11 -11
- package/src/lib/base-model/items-total.model.ts +12 -0
- package/src/lib/base-model/line-item.model.ts +18 -0
- package/src/lib/base-model/lookupItem.ts +21 -21
- package/src/lib/base-model/null-snackmessage.ts +9 -9
- package/src/lib/base-model/page-info.ts +54 -51
- package/src/lib/base-model/report-request.model.ts +33 -33
- package/src/lib/base-model/response-envelop.model.ts +15 -15
- package/src/lib/base-model/snack-message.model.ts +14 -14
- package/src/lib/base-model/snackmessage-interface.ts +7 -7
- package/src/lib/base-model/table-column.interface.ts +29 -29
- package/src/lib/base-model/table-page-user-action.interface.ts +33 -33
- package/src/lib/base-model/workflow/workflow-steps.model.ts +9 -9
- package/src/lib/base-model/workflow/workflow.model.ts +52 -52
- package/src/lib/components/action-comment/action-comment.component.css +52 -0
- package/src/lib/components/action-comment/action-comment.component.html +47 -0
- package/src/lib/components/{rejection-comment → action-comment}/action-comment.component.spec.ts +23 -23
- package/src/lib/components/{rejection-comment → action-comment}/action-comment.component.ts +102 -86
- package/src/lib/components/action-confirmation/action-confirmation.component.css +46 -34
- package/src/lib/components/action-confirmation/action-confirmation.component.html +32 -18
- package/src/lib/components/action-confirmation/action-confirmation.component.spec.ts +23 -23
- package/src/lib/components/action-confirmation/action-confirmation.component.ts +58 -58
- package/src/lib/components/activity-report-form/activity-report-form.component.html +110 -109
- package/src/lib/components/activity-report-form/activity-report-form.component.scss +69 -0
- package/src/lib/components/activity-report-form/activity-report-form.component.spec.ts +25 -25
- package/src/lib/components/activity-report-form/activity-report-form.component.ts +616 -605
- package/src/lib/components/advanced-filter/field-filter/field-filter.component.html +8 -0
- package/src/lib/components/advanced-filter/field-filter/field-filter.component.scss +0 -0
- package/src/lib/components/advanced-filter/field-filter/field-filter.component.spec.ts +25 -0
- package/src/lib/components/advanced-filter/field-filter/field-filter.component.ts +55 -0
- package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.html +36 -0
- package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.scss +130 -0
- package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.spec.ts +25 -0
- package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.ts +186 -0
- package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.css +51 -51
- package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.html +23 -23
- package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.spec.ts +23 -23
- package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.ts +69 -69
- package/src/lib/components/audit-log-list/audit-log.component.html +26 -23
- package/src/lib/components/audit-log-list/audit-log.component.scss +50 -0
- package/src/lib/components/audit-log-list/audit-log.component.spec.ts +25 -25
- package/src/lib/components/audit-log-list/audit-log.component.ts +114 -116
- package/src/lib/components/auto-complete/auto-complete.component.css +55 -14
- package/src/lib/components/auto-complete/auto-complete.component.html +45 -29
- package/src/lib/components/auto-complete/auto-complete.component.spec.ts +23 -23
- package/src/lib/components/auto-complete/auto-complete.component.ts +331 -330
- package/src/lib/components/base-form/base-form.component.html +59 -58
- package/src/lib/components/base-form/base-form.component.scss +68 -0
- package/src/lib/components/base-form/base-form.component.spec.ts +25 -25
- package/src/lib/components/base-form/base-form.component.ts +323 -305
- package/src/lib/components/base-form-canvas/base-form-canvas.component.css +196 -22
- package/src/lib/components/base-form-canvas/base-form-canvas.component.html +1095 -1006
- package/src/lib/components/base-form-canvas/base-form-canvas.component.spec.ts +23 -23
- package/src/lib/components/base-form-canvas/base-form-canvas.component.ts +680 -573
- package/src/lib/components/base-input-dialog/base-input-dialog.component.css +67 -0
- package/src/lib/components/base-input-dialog/base-input-dialog.component.html +47 -42
- package/src/lib/components/base-input-dialog/base-input-dialog.component.spec.ts +23 -23
- package/src/lib/components/base-input-dialog/base-input-dialog.component.ts +77 -78
- package/src/lib/components/base-table/base-table.component.html +268 -242
- package/src/lib/components/base-table/base-table.component.scss +140 -31
- package/src/lib/components/base-table/base-table.component.spec.ts +25 -25
- package/src/lib/components/base-table/base-table.component.ts +621 -568
- package/src/lib/components/button-actions/button-actions.component.html +27 -28
- package/src/lib/components/button-actions/button-actions.component.scss +101 -6
- package/src/lib/components/button-actions/button-actions.component.spec.ts +23 -23
- package/src/lib/components/button-actions/button-actions.component.ts +70 -72
- package/src/lib/components/editable-base-table/editable-base-table.component.html +337 -372
- package/src/lib/components/editable-base-table/editable-base-table.component.scss +126 -44
- package/src/lib/components/editable-base-table/editable-base-table.component.spec.ts +25 -25
- package/src/lib/components/editable-base-table/editable-base-table.component.ts +579 -570
- package/src/lib/components/equation-builder/equation-builder.component.css +39 -0
- package/src/lib/components/equation-builder/equation-builder.component.html +31 -31
- package/src/lib/components/equation-builder/equation-builder.component.spec.ts +23 -23
- package/src/lib/components/equation-builder/equation-builder.component.ts +119 -121
- package/src/lib/components/item-line-editor/item-line-editor.component.html +102 -0
- package/src/lib/components/item-line-editor/item-line-editor.component.scss +152 -0
- package/src/lib/components/item-line-editor/item-line-editor.component.spec.ts +23 -0
- package/src/lib/components/item-line-editor/item-line-editor.component.ts +306 -0
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.css +19 -11
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.html +38 -38
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.spec.ts +23 -23
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.ts +315 -317
- package/src/lib/components/paginator/paginator.component.css +65 -25
- package/src/lib/components/paginator/paginator.component.html +30 -34
- package/src/lib/components/paginator/paginator.component.ts +87 -94
- package/src/lib/components/report-details-dialog/report-details-dialog.component.css +17 -17
- package/src/lib/components/report-details-dialog/report-details-dialog.component.html +16 -16
- package/src/lib/components/report-details-dialog/report-details-dialog.component.spec.ts +23 -23
- package/src/lib/components/report-details-dialog/report-details-dialog.component.ts +111 -113
- package/src/lib/components/report-form/report-form.component.html +92 -94
- package/src/lib/components/report-form/report-form.component.scss +51 -0
- package/src/lib/components/report-form/report-form.component.spec.ts +25 -25
- package/src/lib/components/report-form/report-form.component.ts +599 -588
- package/src/lib/components/search-bar/search-bar.component.html +51 -62
- package/src/lib/components/search-bar/search-bar.component.scss +63 -8
- package/src/lib/components/search-bar/search-bar.component.spec.ts +25 -25
- package/src/lib/components/search-bar/search-bar.component.ts +68 -70
- package/src/lib/components/section-form-canvas/section-form-canvas.component.html +43 -0
- package/src/lib/components/section-form-canvas/section-form-canvas.component.scss +81 -0
- package/src/lib/components/section-form-canvas/section-form-canvas.component.spec.ts +23 -0
- package/src/lib/components/section-form-canvas/section-form-canvas.component.ts +67 -0
- package/src/lib/components/shared/action-button/action-button.component.html +12 -0
- package/src/lib/components/shared/action-button/action-button.component.scss +45 -0
- package/src/lib/components/shared/action-button/action-button.component.ts +51 -0
- package/src/lib/components/shared/action-card/action-card.component.html +78 -0
- package/src/lib/components/shared/action-card/action-card.component.scss +238 -0
- package/src/lib/components/shared/action-card/action-card.component.ts +56 -0
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.css +135 -54
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.html +36 -22
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.spec.ts +23 -23
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.ts +71 -45
- package/src/lib/components/shared-list/shared-list.component.html +17 -17
- package/src/lib/components/shared-list/shared-list.component.spec.ts +23 -23
- package/src/lib/components/shared-list/shared-list.component.ts +53 -53
- package/src/lib/components/snackbar-static/snackbar-static.component.html +20 -0
- package/src/lib/components/snackbar-static/snackbar-static.component.scss +135 -0
- package/src/lib/components/snackbar-static/snackbar-static.component.ts +26 -0
- package/src/lib/components/title-bar/title-bar.component.html +35 -31
- package/src/lib/components/title-bar/title-bar.component.scss +126 -23
- package/src/lib/components/title-bar/title-bar.component.spec.ts +23 -23
- package/src/lib/components/title-bar/title-bar.component.ts +126 -119
- package/src/lib/services/backend-service.ts +287 -286
- package/src/lib/services/index.ts +3 -3
- package/src/lib/services/top-panel.ts +17 -17
- package/src/lib/services/trigger-form.service.ts +11 -11
- package/src/lib/share-module/shared-module.ts +10 -10
- package/src/lib/utils/base-utils.ts +102 -102
- package/src/lib/validators/date-range-validator.ts +31 -31
- package/src/lib/validators/index.ts +3 -3
- package/src/lib/validators/match-list.validator.ts +10 -10
- package/src/lib/validators/multi-email-validator.ts +15 -15
- package/src/public-api.ts +29 -21
- package/tsconfig.lib.json +15 -15
- package/tsconfig.lib.prod.json +11 -11
- package/tsconfig.spec.json +15 -15
- package/src/lib/components/rejection-comment/action-comment.component.css +0 -33
- package/src/lib/components/rejection-comment/action-comment.component.html +0 -46
- package/src/lib/styles/invoiceq-theme.scss +0 -252
- package/src/lib/styles/styles.scss +0 -1723
package/ng-package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
-
"dest": "../../../dist/iq/ui-lib",
|
|
4
|
-
"lib": {
|
|
5
|
-
"entryFile": "src/public-api.ts"
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
+
"dest": "../../../dist/iq/ui-lib",
|
|
4
|
+
"lib": {
|
|
5
|
+
"entryFile": "src/public-api.ts"
|
|
6
|
+
}
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@unifylib/ui-lib",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^17.3.12",
|
|
6
|
-
"@angular/core": "^17.3.12"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@unifylib/ui-lib",
|
|
3
|
+
"version": "1.1.3",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^17.3.12",
|
|
6
|
+
"@angular/core": "^17.3.12",
|
|
7
|
+
"moment": "^2.30.1",
|
|
8
|
+
"rxjs": "~7.8.0"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"tslib": "^2.3.0"
|
|
12
|
+
},
|
|
13
|
+
"sideEffects": false
|
|
14
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export enum MATCH_TYPE {
|
|
3
|
-
LIKE = 'like',
|
|
4
|
-
MATCH = 'match'
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export class SearchStrConfig {
|
|
8
|
-
searchStr:string='';
|
|
9
|
-
matchType?: MATCH_TYPE;
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
|
|
2
|
+
export enum MATCH_TYPE {
|
|
3
|
+
LIKE = 'like',
|
|
4
|
+
MATCH = 'match'
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export class SearchStrConfig {
|
|
8
|
+
searchStr:string='';
|
|
9
|
+
matchType?: MATCH_TYPE;
|
|
10
|
+
|
|
11
|
+
}
|
|
12
|
+
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export interface ApiResponse {
|
|
2
|
-
body: any;
|
|
3
|
-
valid?: boolean;
|
|
4
|
-
fieldMessages?: FieldMessage[];
|
|
5
|
-
globalMessages?: GlobalMessage[];
|
|
6
|
-
pagination?: Pagination;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface Pagination {
|
|
10
|
-
pageNumber: number ;
|
|
11
|
-
pageSize: number ;
|
|
12
|
-
totalElements: number ;
|
|
13
|
-
totalPages: number ;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface FieldMessage {
|
|
17
|
-
message: string;
|
|
18
|
-
fieldName: string;
|
|
19
|
-
}
|
|
20
|
-
export interface GlobalMessage {
|
|
21
|
-
message: string;
|
|
22
|
-
messageType: 'INFO'| 'WARNING' | 'ERROR';
|
|
23
|
-
}
|
|
1
|
+
export interface ApiResponse {
|
|
2
|
+
body: any;
|
|
3
|
+
valid?: boolean;
|
|
4
|
+
fieldMessages?: FieldMessage[];
|
|
5
|
+
globalMessages?: GlobalMessage[];
|
|
6
|
+
pagination?: Pagination;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface Pagination {
|
|
10
|
+
pageNumber: number ;
|
|
11
|
+
pageSize: number ;
|
|
12
|
+
totalElements: number ;
|
|
13
|
+
totalPages: number ;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface FieldMessage {
|
|
17
|
+
message: string;
|
|
18
|
+
fieldName: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GlobalMessage {
|
|
21
|
+
message: string;
|
|
22
|
+
messageType: 'INFO'| 'WARNING' | 'ERROR';
|
|
23
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export class AuditLogEntry {
|
|
2
|
-
action: number;
|
|
3
|
-
createdOn:Date;
|
|
4
|
-
createdBy:string;
|
|
5
|
-
subject:any;
|
|
6
|
-
comment:string;
|
|
7
|
-
}
|
|
1
|
+
export class AuditLogEntry {
|
|
2
|
+
action: number;
|
|
3
|
+
createdOn:Date;
|
|
4
|
+
createdBy:string;
|
|
5
|
+
subject:any;
|
|
6
|
+
comment:string;
|
|
7
|
+
}
|
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
export class ButtonActionSettings {
|
|
3
|
-
constructor(buttonActionSettings: ButtonActionSettings) {
|
|
4
|
-
this.key = buttonActionSettings.key;
|
|
5
|
-
this.
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
|
|
2
|
+
export class ButtonActionSettings {
|
|
3
|
+
constructor(buttonActionSettings: ButtonActionSettings) {
|
|
4
|
+
this.key = buttonActionSettings.key;
|
|
5
|
+
this.id = buttonActionSettings.id;
|
|
6
|
+
this.action = buttonActionSettings.action;
|
|
7
|
+
this.label = buttonActionSettings.label;
|
|
8
|
+
this.color = buttonActionSettings.color;
|
|
9
|
+
this.isPrimary = buttonActionSettings.isPrimary;
|
|
10
|
+
this.icon = buttonActionSettings.icon;
|
|
11
|
+
this.showCommentDialog = buttonActionSettings.showCommentDialog;
|
|
12
|
+
this.comment = buttonActionSettings.comment;
|
|
13
|
+
this.shareExternal = buttonActionSettings.shareExternal;
|
|
14
|
+
this.commentRequired = buttonActionSettings.commentRequired || false;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
label: string;
|
|
18
|
+
id: string;
|
|
19
|
+
action?: any;
|
|
20
|
+
key: number;
|
|
21
|
+
isPrimary?: boolean;
|
|
22
|
+
icon?: any;
|
|
23
|
+
showCommentDialog?:boolean;
|
|
24
|
+
comment?: any;
|
|
25
|
+
shareExternal?: boolean;
|
|
26
|
+
selectedId?: number;
|
|
27
|
+
commentRequired? : boolean;
|
|
28
|
+
color?: string;
|
|
29
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export class ColumnDef {
|
|
2
|
-
order: number;
|
|
3
|
-
label: string;
|
|
4
|
-
fieldName: string;
|
|
5
|
-
datatype: string;
|
|
6
|
-
groupLabel: string;
|
|
7
|
-
width: number;
|
|
8
|
-
showSum: boolean=false;
|
|
9
|
-
showCount: boolean=false;
|
|
10
|
-
|
|
11
|
-
constructor(tableColumn: any, order: number, transLabel :string, lang?:string, groupLabel?:string) {
|
|
12
|
-
this.order = order;
|
|
13
|
-
this.label = transLabel;
|
|
14
|
-
if (tableColumn.reportProperty) {
|
|
15
|
-
this.fieldName = tableColumn.reportProperty;
|
|
16
|
-
} else {
|
|
17
|
-
this.fieldName = tableColumn.property.toString();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
if (tableColumn.langDrivenName){
|
|
21
|
-
this.fieldName = this.fieldName + "." + (lang === 'en'? "englishName": "arabicName");
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (tableColumn.reportType) {
|
|
25
|
-
this.datatype = tableColumn.reportType;
|
|
26
|
-
} else {
|
|
27
|
-
this.datatype = tableColumn.type === 'number' ? 'long' : tableColumn.type;
|
|
28
|
-
}
|
|
29
|
-
this.width = tableColumn.reportwidth ? tableColumn.reportwidth : null;
|
|
30
|
-
this.showSum = tableColumn.showSum;
|
|
31
|
-
this.showCount = tableColumn.showCount;
|
|
32
|
-
this.groupLabel = groupLabel;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
export class ColumnDef {
|
|
2
|
+
order: number;
|
|
3
|
+
label: string;
|
|
4
|
+
fieldName: string;
|
|
5
|
+
datatype: string;
|
|
6
|
+
groupLabel: string;
|
|
7
|
+
width: number;
|
|
8
|
+
showSum: boolean=false;
|
|
9
|
+
showCount: boolean=false;
|
|
10
|
+
|
|
11
|
+
constructor(tableColumn: any, order: number, transLabel :string, lang?:string, groupLabel?:string) {
|
|
12
|
+
this.order = order;
|
|
13
|
+
this.label = transLabel;
|
|
14
|
+
if (tableColumn.reportProperty) {
|
|
15
|
+
this.fieldName = tableColumn.reportProperty;
|
|
16
|
+
} else {
|
|
17
|
+
this.fieldName = tableColumn.property.toString();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (tableColumn.langDrivenName){
|
|
21
|
+
this.fieldName = this.fieldName + "." + (lang === 'en'? "englishName": "arabicName");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (tableColumn.reportType) {
|
|
25
|
+
this.datatype = tableColumn.reportType;
|
|
26
|
+
} else {
|
|
27
|
+
this.datatype = tableColumn.type === 'number' ? 'long' : tableColumn.type;
|
|
28
|
+
}
|
|
29
|
+
this.width = tableColumn.reportwidth ? tableColumn.reportwidth : null;
|
|
30
|
+
this.showSum = tableColumn.showSum;
|
|
31
|
+
this.showCount = tableColumn.showCount;
|
|
32
|
+
this.groupLabel = groupLabel;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export const NEW =1;
|
|
2
|
-
export const SAVE =2;
|
|
3
|
-
export const REJECT =3;
|
|
4
|
-
export const APPROVE =4;
|
|
5
|
-
export const SAVE_AND_COMPLETE =5;
|
|
6
|
-
|
|
7
|
-
export class DoActionRequest {
|
|
8
|
-
actionId: number;
|
|
9
|
-
comment: string;
|
|
10
|
-
subject: any;
|
|
11
|
-
}
|
|
1
|
+
export const NEW =1;
|
|
2
|
+
export const SAVE =2;
|
|
3
|
+
export const REJECT =3;
|
|
4
|
+
export const APPROVE =4;
|
|
5
|
+
export const SAVE_AND_COMPLETE =5;
|
|
6
|
+
|
|
7
|
+
export class DoActionRequest {
|
|
8
|
+
actionId: number;
|
|
9
|
+
comment: string;
|
|
10
|
+
subject: any;
|
|
11
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {FieldInfo} from "./field-info";
|
|
2
|
-
|
|
3
|
-
export class FieldAction {
|
|
4
|
-
pageId: string='';
|
|
5
|
-
property: any;
|
|
6
|
-
fieldInfo?: FieldInfo;
|
|
7
|
-
}
|
|
1
|
+
import {FieldInfo} from "./field-info";
|
|
2
|
+
|
|
3
|
+
export class FieldAction {
|
|
4
|
+
pageId: string='';
|
|
5
|
+
property: any;
|
|
6
|
+
fieldInfo?: FieldInfo;
|
|
7
|
+
}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
export class FieldFilter {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const EMPTY_FILED_FILTER : FieldFilter = {
|
|
10
|
-
fieldName: 'abc',
|
|
11
|
-
operator: 'abc',
|
|
12
|
-
firstValue: 'abc',
|
|
13
|
-
filterType: 'FILED_FILTER',
|
|
14
|
-
}
|
|
1
|
+
export class FieldFilter {
|
|
2
|
+
fieldName: string;
|
|
3
|
+
operator: string;
|
|
4
|
+
filterType: string;
|
|
5
|
+
fieldType: string;
|
|
6
|
+
valueObject: any
|
|
7
|
+
}
|
|
@@ -1,98 +1,102 @@
|
|
|
1
|
-
import {ValidatorFn} from "@angular/forms";
|
|
2
|
-
import {Filter} from "./filter.model";
|
|
3
|
-
|
|
4
|
-
export class FieldInfo {
|
|
5
|
-
property: string = "";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
71
|
-
this.
|
|
72
|
-
this.
|
|
73
|
-
this.
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
76
|
-
this.
|
|
77
|
-
this.
|
|
78
|
-
this.
|
|
79
|
-
this.
|
|
80
|
-
this.
|
|
81
|
-
this.
|
|
82
|
-
this.
|
|
83
|
-
this.
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
88
|
-
this.
|
|
89
|
-
this.
|
|
90
|
-
this.
|
|
91
|
-
this.
|
|
92
|
-
this.
|
|
93
|
-
this.
|
|
94
|
-
this.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
1
|
+
import {ValidatorFn} from "@angular/forms";
|
|
2
|
+
import {Filter} from "./filter.model";
|
|
3
|
+
|
|
4
|
+
export class FieldInfo {
|
|
5
|
+
property: string = "";
|
|
6
|
+
targetProperty?: string = "";
|
|
7
|
+
row: number;
|
|
8
|
+
required: boolean = false;
|
|
9
|
+
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' = 'text';
|
|
10
|
+
textFormat?: 'json';
|
|
11
|
+
readonly?: boolean = false;
|
|
12
|
+
viewonly?: boolean ;
|
|
13
|
+
label?: string = '';
|
|
14
|
+
currency?: string;
|
|
15
|
+
lookupApiPath?: string;
|
|
16
|
+
multi?:boolean;
|
|
17
|
+
supportedTypes?:string;
|
|
18
|
+
cascadedBy?: string;
|
|
19
|
+
cascadedByProperty?: string;
|
|
20
|
+
pathParams?: string;
|
|
21
|
+
listOptions?: any[];
|
|
22
|
+
operators?: any[];
|
|
23
|
+
fieldsApi?: string;
|
|
24
|
+
reportFilter?:string;
|
|
25
|
+
updateOnly?: boolean;
|
|
26
|
+
fieldSize ?: number ;
|
|
27
|
+
includeAllOption?: boolean;
|
|
28
|
+
defaultListOption?: any;
|
|
29
|
+
acceptNewItem?: boolean;
|
|
30
|
+
translate?: boolean = false;
|
|
31
|
+
validators?: ValidatorFn[];
|
|
32
|
+
placeholder?: any;
|
|
33
|
+
visible?: boolean = true;
|
|
34
|
+
pattern?: string;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
advancedFilter?: boolean;
|
|
37
|
+
filterOperator?: 'GREATER_THAN_EQUAL'|'GREATER_THAN'| 'LESS_THAN'|'LESS_THAN_EQUAL'| 'EQUALS'| 'LIKE'| 'NOT_EQ'| 'IN' ;
|
|
38
|
+
workflowManaged?: boolean;
|
|
39
|
+
workflowCascadingField?: string;
|
|
40
|
+
attachmentType?: string;
|
|
41
|
+
lookupFilterList?: Filter[];
|
|
42
|
+
buttonType?: string;
|
|
43
|
+
hideFiles?: boolean;
|
|
44
|
+
behavioralName?: string;
|
|
45
|
+
flattenBySubAttribute?: string;
|
|
46
|
+
defaultValue?:any;
|
|
47
|
+
extraLookupsColumns?: string[];
|
|
48
|
+
displayColumn?: string;
|
|
49
|
+
searchAttribute?:string;
|
|
50
|
+
validationMessages?: any;
|
|
51
|
+
hideLabel?:boolean;
|
|
52
|
+
searchOperator?:"GREATER_THAN_EQUAL" | "GREATER_THAN" | "LESS_THAN" | "LESS_THAN_EQUAL" | "EQUALS" | "LIKE" | "NOT_EQ" | "IN" | "NOT_NULL";
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
constructor(fieldInfo: FieldInfo) {
|
|
56
|
+
this.property = fieldInfo.property;
|
|
57
|
+
this.targetProperty = fieldInfo.targetProperty;
|
|
58
|
+
this.required = fieldInfo.required;
|
|
59
|
+
this.type = fieldInfo.type;
|
|
60
|
+
this.readonly = fieldInfo.readonly;
|
|
61
|
+
this.label = fieldInfo.label;
|
|
62
|
+
this.fieldSize = fieldInfo.fieldSize;
|
|
63
|
+
this.lookupApiPath = fieldInfo.lookupApiPath ? fieldInfo.lookupApiPath : fieldInfo.property;
|
|
64
|
+
this.row = fieldInfo.row;
|
|
65
|
+
this.supportedTypes = fieldInfo.supportedTypes;
|
|
66
|
+
this.listOptions = fieldInfo.listOptions;
|
|
67
|
+
this.pathParams = fieldInfo.pathParams;
|
|
68
|
+
this.viewonly = fieldInfo.viewonly;
|
|
69
|
+
this.multi = fieldInfo.multi;
|
|
70
|
+
this.updateOnly = fieldInfo.updateOnly;
|
|
71
|
+
this.includeAllOption = fieldInfo.includeAllOption;
|
|
72
|
+
this.defaultListOption = fieldInfo.defaultListOption;
|
|
73
|
+
this.acceptNewItem = fieldInfo.acceptNewItem;
|
|
74
|
+
this.cascadedBy = fieldInfo.cascadedBy;
|
|
75
|
+
this.cascadedByProperty = fieldInfo.cascadedByProperty ? fieldInfo.cascadedByProperty : fieldInfo.cascadedBy;
|
|
76
|
+
this.currency = fieldInfo.currency;
|
|
77
|
+
this.translate = fieldInfo.translate;
|
|
78
|
+
this.advancedFilter = fieldInfo.advancedFilter;
|
|
79
|
+
this.placeholder = fieldInfo.placeholder;
|
|
80
|
+
this.validators = fieldInfo.validators;
|
|
81
|
+
this.filterOperator = fieldInfo.filterOperator;
|
|
82
|
+
this.pattern = fieldInfo.pattern;
|
|
83
|
+
this.workflowManaged = fieldInfo.workflowManaged;
|
|
84
|
+
this.workflowCascadingField = fieldInfo.workflowCascadingField;
|
|
85
|
+
this.visible = fieldInfo.visible === undefined || fieldInfo.visible;
|
|
86
|
+
this.attachmentType = fieldInfo.attachmentType;
|
|
87
|
+
this.lookupFilterList = fieldInfo.lookupFilterList;
|
|
88
|
+
this.extraLookupsColumns = fieldInfo.extraLookupsColumns;
|
|
89
|
+
this.displayColumn = fieldInfo.displayColumn;
|
|
90
|
+
this.textFormat = fieldInfo.textFormat;
|
|
91
|
+
this.buttonType = fieldInfo.buttonType;
|
|
92
|
+
this.hideFiles = fieldInfo.hideFiles;
|
|
93
|
+
this.behavioralName = fieldInfo.behavioralName;
|
|
94
|
+
this.flattenBySubAttribute = fieldInfo.flattenBySubAttribute;
|
|
95
|
+
this.defaultValue = fieldInfo.defaultValue;
|
|
96
|
+
this.searchAttribute = fieldInfo.searchAttribute || this.property;
|
|
97
|
+
this.validationMessages = fieldInfo.validationMessages;
|
|
98
|
+
this.hideLabel = fieldInfo.hideLabel;
|
|
99
|
+
this.searchOperator = fieldInfo.searchOperator || 'EQUALS';
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export class FieldPredicate {
|
|
2
|
-
fieldName: string='';
|
|
3
|
-
operator: string='';
|
|
4
|
-
fieldType: string='';
|
|
5
|
-
firstValue: string='';
|
|
6
|
-
secondValue: string='';
|
|
7
|
-
}
|
|
1
|
+
export class FieldPredicate {
|
|
2
|
+
fieldName: string='';
|
|
3
|
+
operator: string='';
|
|
4
|
+
fieldType: string='';
|
|
5
|
+
firstValue: string='';
|
|
6
|
+
secondValue: string='';
|
|
7
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {Filter} from "./filter.model";
|
|
2
|
-
import {MATCH_TYPE} from "./SearchStrConfig";
|
|
3
|
-
|
|
4
|
-
export class FilterRequest {
|
|
5
|
-
filters?: Filter[];
|
|
6
|
-
searchStr: string;
|
|
7
|
-
pageIndex: number;
|
|
8
|
-
pageSize: number;
|
|
9
|
-
sortKey: string;
|
|
10
|
-
sortDirection: 'ASC'|'DESC';
|
|
11
|
-
apiUri: string;
|
|
12
|
-
columns: string[];
|
|
13
|
-
pendingPage: boolean;
|
|
14
|
-
matchType?: MATCH_TYPE;
|
|
15
|
-
|
|
16
|
-
constructor(pageSize: number = 10) {
|
|
17
|
-
this.apiUri = '';
|
|
18
|
-
this.searchStr = '';
|
|
19
|
-
this.pageIndex = 0;
|
|
20
|
-
this.pageSize = pageSize;
|
|
21
|
-
this.sortKey = 'id';
|
|
22
|
-
this.sortDirection = "DESC";
|
|
23
|
-
this.columns = [];
|
|
24
|
-
this.pendingPage = false;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
1
|
+
import {Filter} from "./filter.model";
|
|
2
|
+
import {MATCH_TYPE} from "./SearchStrConfig";
|
|
3
|
+
|
|
4
|
+
export class FilterRequest {
|
|
5
|
+
filters?: Filter[];
|
|
6
|
+
searchStr: string;
|
|
7
|
+
pageIndex: number;
|
|
8
|
+
pageSize: number;
|
|
9
|
+
sortKey: string;
|
|
10
|
+
sortDirection: 'ASC'|'DESC';
|
|
11
|
+
apiUri: string;
|
|
12
|
+
columns: string[];
|
|
13
|
+
pendingPage: boolean;
|
|
14
|
+
matchType?: MATCH_TYPE;
|
|
15
|
+
|
|
16
|
+
constructor(pageSize: number = 10) {
|
|
17
|
+
this.apiUri = '';
|
|
18
|
+
this.searchStr = '';
|
|
19
|
+
this.pageIndex = 0;
|
|
20
|
+
this.pageSize = pageSize;
|
|
21
|
+
this.sortKey = 'id';
|
|
22
|
+
this.sortDirection = "DESC";
|
|
23
|
+
this.columns = [];
|
|
24
|
+
this.pendingPage = false;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|