@unifylib/ui-lib 1.0.3 → 1.0.65
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/SearchStrConfig.mjs +11 -0
- package/esm2022/lib/base-model/api-response.mjs +2 -0
- package/esm2022/lib/base-model/audit-log-entry.mjs +3 -0
- package/esm2022/lib/base-model/button-action-settings.mjs +17 -0
- package/esm2022/lib/base-model/column-def.model.mjs +28 -0
- package/esm2022/lib/base-model/do-action-request.mjs +8 -0
- package/esm2022/lib/base-model/field-action.mjs +6 -0
- package/esm2022/lib/base-model/field-filter.model.mjs +3 -0
- package/esm2022/lib/base-model/field-info.mjs +64 -0
- package/esm2022/lib/base-model/field-predicate.model.mjs +10 -0
- package/esm2022/lib/base-model/filter-request.mjs +13 -0
- package/esm2022/lib/base-model/filter.model.mjs +25 -0
- package/esm2022/lib/base-model/get-items-list.mjs +10 -0
- package/esm2022/lib/base-model/index.mjs +13 -0
- package/esm2022/lib/base-model/items-total.model.mjs +8 -0
- package/esm2022/lib/base-model/line-item.model.mjs +12 -0
- package/esm2022/lib/base-model/lookupItem.mjs +16 -0
- package/esm2022/lib/base-model/page-info.mjs +17 -0
- package/esm2022/lib/base-model/permission-matrix.model.mjs +2 -0
- package/esm2022/lib/base-model/report-request.model.mjs +17 -0
- package/esm2022/lib/base-model/response-envelop.model.mjs +10 -0
- package/esm2022/lib/base-model/snack-message.model.mjs +11 -0
- package/esm2022/lib/base-model/table-column.interface.mjs +2 -0
- package/esm2022/lib/base-model/table-page-user-action.interface.mjs +21 -0
- package/esm2022/lib/base-model/workflow/workflow-steps.model.mjs +9 -0
- package/esm2022/lib/base-model/workflow/workflow.model.mjs +42 -0
- package/esm2022/lib/components/action-comment/action-comment.component.mjs +111 -0
- package/esm2022/lib/components/action-confirmation/action-confirmation.component.mjs +68 -0
- package/esm2022/lib/components/activity-report-form/activity-report-form.component.mjs +486 -0
- package/esm2022/lib/components/advanced-filter/field-filter/field-filter.component.mjs +44 -0
- package/esm2022/lib/components/advanced-filter/filter-builder/filter-builder.component.mjs +323 -0
- package/esm2022/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.mjs +70 -0
- package/esm2022/lib/components/audit-log-list/audit-log.component.mjs +97 -0
- package/esm2022/lib/components/auto-complete/auto-complete.component.mjs +300 -0
- package/esm2022/lib/components/base-form/base-form.component.mjs +284 -0
- package/esm2022/lib/components/base-form-canvas/MaxDigitsDirective.mjs +29 -0
- package/esm2022/lib/components/base-form-canvas/NumbersOnlyDirective.mjs +132 -0
- package/esm2022/lib/components/base-form-canvas/base-form-canvas.component.mjs +789 -0
- package/esm2022/lib/components/base-input-dialog/base-input-dialog.component.mjs +72 -0
- package/esm2022/lib/components/base-table/base-table.component.mjs +708 -0
- package/esm2022/lib/components/button-actions/button-actions.component.mjs +101 -0
- package/esm2022/lib/components/editable-base-table/editable-base-table.component.mjs +507 -0
- package/esm2022/lib/components/equation-builder/equation-builder.component.mjs +117 -0
- package/esm2022/lib/components/item-line-editor/item-line-editor.component.mjs +322 -0
- package/esm2022/lib/components/multi-auto-complete/multi-auto-complete.component.mjs +294 -0
- package/esm2022/lib/components/paginator/paginator.component.mjs +181 -0
- package/esm2022/lib/components/permission-matrix/permission-matrix.component.mjs +129 -0
- package/esm2022/lib/components/report-details-dialog/report-details-dialog.component.mjs +102 -0
- package/esm2022/lib/components/report-form/report-form.component.mjs +485 -0
- package/esm2022/lib/components/search-bar/search-bar.component.mjs +63 -0
- package/esm2022/lib/components/section-form-canvas/section-form-canvas.component.mjs +99 -0
- package/esm2022/lib/components/shared/action-button/action-button.component.mjs +59 -0
- package/esm2022/lib/components/shared/action-card/action-card.component.mjs +93 -0
- package/esm2022/lib/components/shared/attachment-uploader/attachment-uploader.component.mjs +74 -0
- package/esm2022/lib/components/shared-list/shared-list.component.mjs +47 -0
- package/esm2022/lib/components/snackbar-static/snackbar-static.component.mjs +43 -0
- package/esm2022/lib/components/title-bar/title-bar.component.mjs +185 -0
- package/esm2022/lib/services/backend-service.mjs +241 -0
- package/esm2022/lib/services/index.mjs +4 -0
- package/esm2022/lib/services/top-panel.mjs +22 -0
- package/esm2022/lib/services/trigger-form.service.mjs +17 -0
- package/esm2022/lib/utils/base-utils.mjs +101 -0
- package/esm2022/lib/validators/date-range-validator.mjs +27 -0
- package/esm2022/lib/validators/index.mjs +4 -0
- package/esm2022/lib/validators/match-list.validator.mjs +9 -0
- package/esm2022/lib/validators/multi-email-validator.mjs +13 -0
- package/esm2022/public-api.mjs +30 -0
- package/esm2022/unifylib-ui-lib.mjs +5 -0
- package/fesm2022/iq-ui-lib.mjs +6713 -0
- package/fesm2022/iq-ui-lib.mjs.map +1 -0
- package/fesm2022/unifylib-ui-lib.mjs +6713 -0
- package/fesm2022/unifylib-ui-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/base-model/SearchStrConfig.d.ts +8 -0
- package/{src/lib/base-model/api-response.ts → lib/base-model/api-response.d.ts} +5 -7
- package/lib/base-model/audit-log-entry.d.ts +7 -0
- package/lib/base-model/button-action-settings.d.ts +16 -0
- package/lib/base-model/column-def.model.d.ts +11 -0
- package/lib/base-model/do-action-request.d.ts +10 -0
- package/lib/base-model/field-action.d.ts +6 -0
- package/lib/base-model/field-filter.model.d.ts +7 -0
- package/lib/base-model/field-info.d.ts +59 -0
- package/lib/base-model/field-predicate.model.d.ts +7 -0
- package/lib/base-model/filter-request.d.ts +15 -0
- package/lib/base-model/filter.model.d.ts +22 -0
- package/lib/base-model/get-items-list.d.ts +21 -0
- package/lib/base-model/index.d.ts +12 -0
- package/lib/base-model/items-total.model.d.ts +6 -0
- package/lib/base-model/line-item.model.d.ts +10 -0
- package/lib/base-model/lookupItem.d.ts +13 -0
- package/{src/lib/base-model/page-info.ts → lib/base-model/page-info.d.ts} +26 -24
- package/lib/base-model/permission-matrix.model.d.ts +18 -0
- package/lib/base-model/report-request.model.d.ts +18 -0
- package/lib/base-model/response-envelop.model.d.ts +8 -0
- package/lib/base-model/snack-message.model.d.ts +7 -0
- package/lib/base-model/table-column.interface.d.ts +31 -0
- package/lib/base-model/table-page-user-action.interface.d.ts +14 -0
- package/lib/base-model/workflow/workflow-steps.model.d.ts +7 -0
- package/lib/base-model/workflow/workflow.model.d.ts +13 -0
- package/lib/components/action-comment/action-comment.component.d.ts +35 -0
- package/lib/components/action-confirmation/action-confirmation.component.d.ts +27 -0
- package/lib/components/activity-report-form/activity-report-form.component.d.ts +93 -0
- package/lib/components/advanced-filter/field-filter/field-filter.component.d.ts +21 -0
- package/lib/components/advanced-filter/filter-builder/filter-builder.component.d.ts +51 -0
- package/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.d.ts +25 -0
- package/lib/components/audit-log-list/audit-log.component.d.ts +29 -0
- package/lib/components/auto-complete/auto-complete.component.d.ts +52 -0
- package/lib/components/base-form/base-form.component.d.ts +59 -0
- package/lib/components/base-form-canvas/MaxDigitsDirective.d.ts +7 -0
- package/lib/components/base-form-canvas/NumbersOnlyDirective.d.ts +23 -0
- package/lib/components/base-form-canvas/base-form-canvas.component.d.ts +142 -0
- package/lib/components/base-input-dialog/base-input-dialog.component.d.ts +23 -0
- package/lib/components/base-table/base-table.component.d.ts +172 -0
- package/lib/components/button-actions/button-actions.component.d.ts +19 -0
- package/lib/components/editable-base-table/editable-base-table.component.d.ts +109 -0
- package/lib/components/equation-builder/equation-builder.component.d.ts +23 -0
- package/lib/components/item-line-editor/item-line-editor.component.d.ts +66 -0
- package/lib/components/multi-auto-complete/multi-auto-complete.component.d.ts +53 -0
- package/lib/components/paginator/paginator.component.d.ts +41 -0
- package/lib/components/permission-matrix/permission-matrix.component.d.ts +26 -0
- package/lib/components/report-details-dialog/report-details-dialog.component.d.ts +34 -0
- package/lib/components/report-form/report-form.component.d.ts +92 -0
- package/lib/components/search-bar/search-bar.component.d.ts +29 -0
- package/lib/components/section-form-canvas/section-form-canvas.component.d.ts +32 -0
- package/lib/components/shared/action-button/action-button.component.d.ts +17 -0
- package/lib/components/shared/action-card/action-card.component.d.ts +37 -0
- package/lib/components/shared/attachment-uploader/attachment-uploader.component.d.ts +18 -0
- package/lib/components/shared-list/shared-list.component.d.ts +21 -0
- package/lib/components/snackbar-static/snackbar-static.component.d.ts +15 -0
- package/lib/components/title-bar/title-bar.component.d.ts +54 -0
- package/lib/services/backend-service.d.ts +59 -0
- package/{src/lib/services/index.ts → lib/services/index.d.ts} +1 -1
- package/lib/services/top-panel.d.ts +8 -0
- package/lib/services/trigger-form.service.d.ts +7 -0
- package/lib/utils/base-utils.d.ts +13 -0
- package/lib/validators/date-range-validator.d.ts +2 -0
- package/lib/validators/match-list.validator.d.ts +4 -0
- package/lib/validators/multi-email-validator.d.ts +6 -0
- package/package.json +16 -3
- package/public-api.d.ts +26 -0
- package/ng-package.json +0 -7
- package/src/lib/base-model/SearchStrConfig.ts +0 -12
- package/src/lib/base-model/audit-log-entry.ts +0 -7
- package/src/lib/base-model/button-action-settings.ts +0 -25
- package/src/lib/base-model/column-def.model.ts +0 -34
- package/src/lib/base-model/do-action-request.ts +0 -11
- package/src/lib/base-model/field-action.ts +0 -7
- package/src/lib/base-model/field-filter.model.ts +0 -14
- package/src/lib/base-model/field-info.ts +0 -98
- package/src/lib/base-model/field-predicate.model.ts +0 -7
- package/src/lib/base-model/filter-request.ts +0 -27
- package/src/lib/base-model/filter.model.ts +0 -49
- package/src/lib/base-model/get-items-list.ts +0 -24
- package/src/lib/base-model/index.ts +0 -11
- package/src/lib/base-model/lookupItem.ts +0 -21
- package/src/lib/base-model/null-snackmessage.ts +0 -9
- package/src/lib/base-model/report-request.model.ts +0 -33
- package/src/lib/base-model/response-envelop.model.ts +0 -15
- package/src/lib/base-model/snack-message.model.ts +0 -14
- package/src/lib/base-model/snackmessage-interface.ts +0 -7
- package/src/lib/base-model/table-column.interface.ts +0 -29
- package/src/lib/base-model/table-page-user-action.interface.ts +0 -33
- package/src/lib/base-model/workflow/workflow-steps.model.ts +0 -9
- package/src/lib/base-model/workflow/workflow.model.ts +0 -52
- package/src/lib/components/action-confirmation/action-confirmation.component.css +0 -34
- package/src/lib/components/action-confirmation/action-confirmation.component.html +0 -18
- package/src/lib/components/action-confirmation/action-confirmation.component.spec.ts +0 -23
- package/src/lib/components/action-confirmation/action-confirmation.component.ts +0 -58
- package/src/lib/components/activity-report-form/activity-report-form.component.html +0 -109
- package/src/lib/components/activity-report-form/activity-report-form.component.scss +0 -0
- package/src/lib/components/activity-report-form/activity-report-form.component.spec.ts +0 -25
- package/src/lib/components/activity-report-form/activity-report-form.component.ts +0 -605
- package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.css +0 -51
- package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.html +0 -23
- package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.spec.ts +0 -23
- package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.ts +0 -69
- package/src/lib/components/audit-log-list/audit-log.component.html +0 -23
- package/src/lib/components/audit-log-list/audit-log.component.scss +0 -0
- package/src/lib/components/audit-log-list/audit-log.component.spec.ts +0 -25
- package/src/lib/components/audit-log-list/audit-log.component.ts +0 -116
- package/src/lib/components/auto-complete/auto-complete.component.css +0 -14
- package/src/lib/components/auto-complete/auto-complete.component.html +0 -29
- package/src/lib/components/auto-complete/auto-complete.component.spec.ts +0 -23
- package/src/lib/components/auto-complete/auto-complete.component.ts +0 -330
- package/src/lib/components/base-form/base-form.component.html +0 -58
- package/src/lib/components/base-form/base-form.component.scss +0 -0
- package/src/lib/components/base-form/base-form.component.spec.ts +0 -25
- package/src/lib/components/base-form/base-form.component.ts +0 -305
- package/src/lib/components/base-form-canvas/base-form-canvas.component.css +0 -22
- package/src/lib/components/base-form-canvas/base-form-canvas.component.html +0 -1006
- package/src/lib/components/base-form-canvas/base-form-canvas.component.spec.ts +0 -23
- package/src/lib/components/base-form-canvas/base-form-canvas.component.ts +0 -573
- package/src/lib/components/base-input-dialog/base-input-dialog.component.css +0 -0
- package/src/lib/components/base-input-dialog/base-input-dialog.component.html +0 -42
- package/src/lib/components/base-input-dialog/base-input-dialog.component.spec.ts +0 -23
- package/src/lib/components/base-input-dialog/base-input-dialog.component.ts +0 -78
- package/src/lib/components/base-table/base-table.component.html +0 -242
- package/src/lib/components/base-table/base-table.component.scss +0 -31
- package/src/lib/components/base-table/base-table.component.spec.ts +0 -25
- package/src/lib/components/base-table/base-table.component.ts +0 -568
- package/src/lib/components/button-actions/button-actions.component.html +0 -28
- package/src/lib/components/button-actions/button-actions.component.scss +0 -6
- package/src/lib/components/button-actions/button-actions.component.spec.ts +0 -23
- package/src/lib/components/button-actions/button-actions.component.ts +0 -72
- package/src/lib/components/editable-base-table/editable-base-table.component.html +0 -372
- package/src/lib/components/editable-base-table/editable-base-table.component.scss +0 -44
- package/src/lib/components/editable-base-table/editable-base-table.component.spec.ts +0 -25
- package/src/lib/components/editable-base-table/editable-base-table.component.ts +0 -570
- package/src/lib/components/equation-builder/equation-builder.component.css +0 -0
- package/src/lib/components/equation-builder/equation-builder.component.html +0 -31
- package/src/lib/components/equation-builder/equation-builder.component.spec.ts +0 -23
- package/src/lib/components/equation-builder/equation-builder.component.ts +0 -121
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.css +0 -11
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.html +0 -38
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.spec.ts +0 -23
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.ts +0 -317
- package/src/lib/components/paginator/paginator.component.css +0 -25
- package/src/lib/components/paginator/paginator.component.html +0 -34
- package/src/lib/components/paginator/paginator.component.ts +0 -94
- 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/components/rejection-comment/action-comment.component.spec.ts +0 -23
- package/src/lib/components/rejection-comment/action-comment.component.ts +0 -86
- package/src/lib/components/report-details-dialog/report-details-dialog.component.css +0 -17
- package/src/lib/components/report-details-dialog/report-details-dialog.component.html +0 -16
- package/src/lib/components/report-details-dialog/report-details-dialog.component.spec.ts +0 -23
- package/src/lib/components/report-details-dialog/report-details-dialog.component.ts +0 -113
- package/src/lib/components/report-form/report-form.component.html +0 -94
- package/src/lib/components/report-form/report-form.component.scss +0 -0
- package/src/lib/components/report-form/report-form.component.spec.ts +0 -25
- package/src/lib/components/report-form/report-form.component.ts +0 -588
- package/src/lib/components/search-bar/search-bar.component.html +0 -62
- package/src/lib/components/search-bar/search-bar.component.scss +0 -8
- package/src/lib/components/search-bar/search-bar.component.spec.ts +0 -25
- package/src/lib/components/search-bar/search-bar.component.ts +0 -70
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.css +0 -54
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.html +0 -22
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.spec.ts +0 -23
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.ts +0 -45
- package/src/lib/components/shared-list/shared-list.component.css +0 -0
- package/src/lib/components/shared-list/shared-list.component.html +0 -17
- package/src/lib/components/shared-list/shared-list.component.spec.ts +0 -23
- package/src/lib/components/shared-list/shared-list.component.ts +0 -53
- package/src/lib/components/title-bar/title-bar.component.css +0 -0
- package/src/lib/components/title-bar/title-bar.component.css.map +0 -1
- package/src/lib/components/title-bar/title-bar.component.html +0 -31
- package/src/lib/components/title-bar/title-bar.component.scss +0 -23
- package/src/lib/components/title-bar/title-bar.component.spec.ts +0 -23
- package/src/lib/components/title-bar/title-bar.component.ts +0 -119
- package/src/lib/services/backend-service.ts +0 -286
- package/src/lib/services/top-panel.ts +0 -17
- package/src/lib/services/trigger-form.service.ts +0 -11
- package/src/lib/share-module/shared-module.ts +0 -10
- package/src/lib/styles/invoiceq-theme.scss +0 -252
- package/src/lib/styles/styles.scss +0 -1723
- package/src/lib/utils/base-utils.ts +0 -102
- package/src/lib/validators/date-range-validator.ts +0 -31
- package/src/lib/validators/match-list.validator.ts +0 -10
- package/src/lib/validators/multi-email-validator.ts +0 -15
- package/src/public-api.ts +0 -21
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
- /package/{src/lib/validators/index.ts → lib/validators/index.d.ts} +0 -0
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export class ResponseEnvelop {
|
|
2
|
-
valid: boolean;
|
|
3
|
-
message: string[];
|
|
4
|
-
body: any;
|
|
5
|
-
pagesCount: number;
|
|
6
|
-
totalSize: number;
|
|
7
|
-
|
|
8
|
-
constructor(responseEnvelop:ResponseEnvelop) {
|
|
9
|
-
this.valid = responseEnvelop.valid;
|
|
10
|
-
this.message = responseEnvelop.message;
|
|
11
|
-
this.body = responseEnvelop.body;
|
|
12
|
-
this.pagesCount = responseEnvelop.pagesCount;
|
|
13
|
-
this.totalSize = responseEnvelop.totalSize;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export class SnackMessage {
|
|
2
|
-
message: string='';
|
|
3
|
-
translate: boolean=false;
|
|
4
|
-
type: 'info' | 'success' | 'error' | 'warning';
|
|
5
|
-
translateParams: any;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
constructor(message: string, translate=false , type?:any , translateParams: any = {}) {
|
|
9
|
-
this.message = message;
|
|
10
|
-
this.translate = translate;
|
|
11
|
-
this.type = type;
|
|
12
|
-
this.translateParams = translateParams;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface TableColumn<T> {
|
|
2
|
-
property: string;
|
|
3
|
-
type: 'text' | 'croppedText' | 'image' | 'netAmount' | 'workflowStatus' | 'onOff' | 'progress' | 'checkbox' | 'button' | 'date' | 'number'| 'icon' |'bigdecimal'|'builder'|'localDateTime'|'report-sequence' | 'listAction' | 'info' | 'stateType' | 'hyper-text'|'year' | 'reportType' | 'status'
|
|
4
|
-
viewType?:string;
|
|
5
|
-
enableSorting: boolean;
|
|
6
|
-
visible?: boolean;
|
|
7
|
-
cssClasses?: string[];
|
|
8
|
-
reportVisible?:boolean | true;
|
|
9
|
-
reportProperty?: string;
|
|
10
|
-
reportType?: string;
|
|
11
|
-
showSum?:boolean;
|
|
12
|
-
showCount?:boolean;
|
|
13
|
-
translate?: boolean;
|
|
14
|
-
width?:number;
|
|
15
|
-
label?:string;
|
|
16
|
-
reportwidth?:number;
|
|
17
|
-
langDrivenName?:boolean;
|
|
18
|
-
additionalProperty?: string;
|
|
19
|
-
currency?: string;
|
|
20
|
-
orderByProperty?: string;
|
|
21
|
-
advancedFilter?: boolean;
|
|
22
|
-
enableQuickFilter?: boolean;
|
|
23
|
-
format?:string;
|
|
24
|
-
group?:string;
|
|
25
|
-
arraySubProperty?: string;
|
|
26
|
-
digitInfo?:string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const FRONT_END_COLUMN_TYPES = ['listAction', 'button','hyper-text'];
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {PageInfo} from "./page-info";
|
|
2
|
-
|
|
3
|
-
export interface TablePageUserAction {
|
|
4
|
-
type: 'add' | 'select' | 'extra';
|
|
5
|
-
id?:number;
|
|
6
|
-
item?:any;
|
|
7
|
-
actionKey?: string;
|
|
8
|
-
pageInfo?:PageInfo
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const SELECT_RECORD_ACTION: TablePageUserAction = {
|
|
12
|
-
type:'select'
|
|
13
|
-
}
|
|
14
|
-
export const EXTRA_ACTION: TablePageUserAction = {
|
|
15
|
-
type:'extra'
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const DRILL_DOWN_ACTION: TablePageUserAction = {
|
|
19
|
-
type:'extra'
|
|
20
|
-
}
|
|
21
|
-
export const JUNIOR_DOWN_ACTION: TablePageUserAction = {
|
|
22
|
-
type:'extra'
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export const ADD_NEW_RECORD_ACTION: TablePageUserAction = {
|
|
26
|
-
type:'add',
|
|
27
|
-
id: -1
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export const TABLE_RECORD_ACTION: TablePageUserAction = {
|
|
31
|
-
type:'extra',
|
|
32
|
-
id: -1
|
|
33
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import {WorkflowStep} from "./workflow-steps.model";
|
|
2
|
-
|
|
3
|
-
export class Workflow {
|
|
4
|
-
id: number;
|
|
5
|
-
corporateWorkflowId: number;
|
|
6
|
-
corporateId : number;
|
|
7
|
-
workflowProcessId: number;
|
|
8
|
-
workflowSteps : WorkflowStep[];
|
|
9
|
-
rejectionStrategy: 'TERMINATE' | 'STEP_BACK' | 'CREATE_STEP';
|
|
10
|
-
processName: string;
|
|
11
|
-
|
|
12
|
-
constructor(workflow: Workflow) {
|
|
13
|
-
this.id= workflow.id;
|
|
14
|
-
this.corporateWorkflowId= workflow.corporateWorkflowId;
|
|
15
|
-
this.corporateId = workflow.corporateId;
|
|
16
|
-
this.workflowProcessId = workflow.workflowProcessId;
|
|
17
|
-
this.workflowSteps = workflow.workflowSteps === undefined ? [] : workflow.workflowSteps;
|
|
18
|
-
this.processName = PROCESS_NAMES_MAP[this.workflowProcessId];
|
|
19
|
-
this.rejectionStrategy = workflow.rejectionStrategy;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export const PROCESS_NAMES_MAP: Record<number, string> = {
|
|
23
|
-
1: 'Outward Invoices',
|
|
24
|
-
2: 'Inward Invoices',
|
|
25
|
-
5: 'Customers Management',
|
|
26
|
-
6: 'Vendors Management',
|
|
27
|
-
8: 'Payment',
|
|
28
|
-
13: 'Users Management',
|
|
29
|
-
14: 'Groups Management',
|
|
30
|
-
19: 'Departments Management',
|
|
31
|
-
22: 'Credit Notes',
|
|
32
|
-
23: 'Debit Notes',
|
|
33
|
-
30: 'Store Management',
|
|
34
|
-
31: 'Branch Management ',
|
|
35
|
-
32: 'Division Management',
|
|
36
|
-
33: 'Product Management',
|
|
37
|
-
34: 'Import Stock',
|
|
38
|
-
35: 'Export Stock',
|
|
39
|
-
36: 'Stock Damage',
|
|
40
|
-
51: 'Internal Invoices',
|
|
41
|
-
60: 'Purchase Request',
|
|
42
|
-
61: 'Purchase Order',
|
|
43
|
-
62: 'Request for Quotation',
|
|
44
|
-
63: 'Proposal Evaluation',
|
|
45
|
-
64: 'Proposal By Vendor'
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export const SEQ_PROCESS_NAMES_MAP: Record<number, string> = {
|
|
49
|
-
1: 'Outward Invoices / Invoice Number',
|
|
50
|
-
100: 'Outward Invoices / ePayment Number',
|
|
51
|
-
2: 'Inward Invoices'
|
|
52
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
.m-0{
|
|
2
|
-
margin: 0 !important;
|
|
3
|
-
}
|
|
4
|
-
.w-100{
|
|
5
|
-
width: 100%;
|
|
6
|
-
}
|
|
7
|
-
.form-style{
|
|
8
|
-
min-height: 12vh !important;
|
|
9
|
-
height: auto !important;
|
|
10
|
-
}
|
|
11
|
-
.text-red{
|
|
12
|
-
color: red !important;
|
|
13
|
-
}
|
|
14
|
-
.modal-footer{
|
|
15
|
-
margin-top: 5vh;
|
|
16
|
-
}
|
|
17
|
-
.overflow-hidden{
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
}
|
|
20
|
-
.pad-top{
|
|
21
|
-
margin-top: -7px;
|
|
22
|
-
display: block;
|
|
23
|
-
}
|
|
24
|
-
.action-comment {
|
|
25
|
-
direction: rtl;
|
|
26
|
-
display: flex;
|
|
27
|
-
justify-content: space-between;
|
|
28
|
-
}
|
|
29
|
-
.material-icons {
|
|
30
|
-
color: #E22222;
|
|
31
|
-
}
|
|
32
|
-
textarea#warn::placeholder {
|
|
33
|
-
color: red;
|
|
34
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<mat-dialog-content class="mat-typography" >
|
|
2
|
-
<p mat-dialog-title class="invoice-note-text invoice-section m-0" [dir]="direction">
|
|
3
|
-
{{ warningMsg | translate }}
|
|
4
|
-
</p>
|
|
5
|
-
</mat-dialog-content>
|
|
6
|
-
|
|
7
|
-
<mat-dialog-actions align="center" class="modal-footer">
|
|
8
|
-
<button mat-stroked-button color = 'warn'
|
|
9
|
-
(click)="cancel()" id="rejectActionLabel">
|
|
10
|
-
{{ rejectActionLabel | translate }}
|
|
11
|
-
</button>
|
|
12
|
-
<button mat-stroked-button color='primary'
|
|
13
|
-
(click)="commentAndClose()" id="acceptActionLabel">
|
|
14
|
-
{{ acceptActionLabel | translate }}
|
|
15
|
-
</button>
|
|
16
|
-
|
|
17
|
-
</mat-dialog-actions>
|
|
18
|
-
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ActionConfirmationComponent } from './action-confirmation.component';
|
|
4
|
-
|
|
5
|
-
describe('ActionCommentComponent', () => {
|
|
6
|
-
let component: ActionConfirmationComponent;
|
|
7
|
-
let fixture: ComponentFixture<ActionConfirmationComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [ActionConfirmationComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(ActionConfirmationComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import {Component, HostBinding, HostListener, Inject, OnInit} from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
MAT_DIALOG_DATA,
|
|
4
|
-
MatDialogActions,
|
|
5
|
-
MatDialogContent,
|
|
6
|
-
MatDialogRef,
|
|
7
|
-
MatDialogTitle
|
|
8
|
-
} from "@angular/material/dialog";
|
|
9
|
-
import {MatFormField} from "@angular/material/form-field";
|
|
10
|
-
import {TranslateModule} from "@ngx-translate/core";
|
|
11
|
-
import {MatButton} from "@angular/material/button";
|
|
12
|
-
|
|
13
|
-
@Component({
|
|
14
|
-
selector: 'app-action-confirmation',
|
|
15
|
-
standalone: true,
|
|
16
|
-
imports: [
|
|
17
|
-
MatDialogTitle,
|
|
18
|
-
MatFormField,
|
|
19
|
-
MatDialogContent,
|
|
20
|
-
TranslateModule,
|
|
21
|
-
MatDialogActions,
|
|
22
|
-
MatButton
|
|
23
|
-
],
|
|
24
|
-
templateUrl: './action-confirmation.component.html',
|
|
25
|
-
styleUrl: './action-confirmation.component.css'
|
|
26
|
-
})
|
|
27
|
-
export class ActionConfirmationComponent implements OnInit {
|
|
28
|
-
acceptActionLabel : string =''
|
|
29
|
-
rejectActionLabel : string =''
|
|
30
|
-
warningMsg : string = '';
|
|
31
|
-
direction: 'ltr' | 'rtl' = 'ltr';
|
|
32
|
-
constructor(public dialogRef: MatDialogRef<ActionConfirmationComponent>,
|
|
33
|
-
@Inject(MAT_DIALOG_DATA) public data: any,
|
|
34
|
-
@Inject('securityManager') private securityManager: any) {
|
|
35
|
-
dialogRef.disableClose = true;
|
|
36
|
-
}
|
|
37
|
-
@HostListener('window:keyup.esc') onKeyUp() {
|
|
38
|
-
this.dialogRef.close();
|
|
39
|
-
}
|
|
40
|
-
ngOnInit(): void {
|
|
41
|
-
this.acceptActionLabel = this.data.acceptActionLabel || 'accept' ;
|
|
42
|
-
this.rejectActionLabel = this.data.rejectActionLabel || 'reject';
|
|
43
|
-
this.warningMsg = this.data.warningMsg || '';
|
|
44
|
-
this.direction = this.securityManager.getDir() ;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
commentAndClose() {
|
|
49
|
-
this.dialogRef.close('accept');
|
|
50
|
-
|
|
51
|
-
return "";
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
cancel() {
|
|
55
|
-
this.dialogRef.close();
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
<div fxLayout="column" fxFlex="2" fxHide.lt-sm [ngStyle]="{'height':isMatchHeight() ? '30vh' : '88vh' }">
|
|
2
|
-
|
|
3
|
-
</div>
|
|
4
|
-
|
|
5
|
-
<div fxLayout="column" fxFlex="98">
|
|
6
|
-
|
|
7
|
-
<div fxLayout="row" fxLayoutAlign="start center" style="margin-bottom: 10px;">
|
|
8
|
-
<app-title-bar [pageTitle]="getTitle()" [newAction]="false"></app-title-bar>
|
|
9
|
-
|
|
10
|
-
<mat-icon
|
|
11
|
-
*ngIf="pageInfo?.hasHint"
|
|
12
|
-
[matTooltip]="pageInfo.labelsSection + '.hint' | translate"
|
|
13
|
-
matTooltipPosition="right"
|
|
14
|
-
color="primary"
|
|
15
|
-
style="cursor: pointer; margin-left: 10px;"
|
|
16
|
-
matTooltipClass="custom-tooltip">
|
|
17
|
-
help_outline
|
|
18
|
-
</mat-icon>
|
|
19
|
-
</div>
|
|
20
|
-
<app-base-form-canvas
|
|
21
|
-
[pageInfo]="pageInfo"
|
|
22
|
-
[fields]="fields"
|
|
23
|
-
[editable]="isEditable"
|
|
24
|
-
[errors]="errors"
|
|
25
|
-
[item]="this.reportForm?.value || {}"
|
|
26
|
-
(formUpdated)="updateForm($event)"
|
|
27
|
-
></app-base-form-canvas>
|
|
28
|
-
|
|
29
|
-
<div fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start start" fxLayoutAlign.lt-sm="center start"
|
|
30
|
-
class="main-form-canvas"
|
|
31
|
-
style="margin-top: 3vh; width: 100%">
|
|
32
|
-
|
|
33
|
-
<div fxLayout="column" fxFlex="49">
|
|
34
|
-
<div fxLayout="row" fxLayoutAlign="start center" fxFlex="100">
|
|
35
|
-
<button *ngIf="activeLevel === 1" color="primary" mat-flat-button (click)="doAction(x)"
|
|
36
|
-
[disabled]="!isValidForm()"
|
|
37
|
-
style="font-weight: bold;min-width: 140px; max-width: 200px; margin: 0 10px;">
|
|
38
|
-
{{ 'REPORTS.generate' | translate }}
|
|
39
|
-
</button>
|
|
40
|
-
<button style="font-weight: bold;min-width: 180px ;max-width: 200px;" mat-raised-button [matMenuTriggerFor]="menu"
|
|
41
|
-
[disabled]="getIsEmptyList()"
|
|
42
|
-
color="primary" class="btn-none-background-primary">
|
|
43
|
-
{{ 'extract' | translate }}
|
|
44
|
-
<mat-icon class="expand_more actionButton__expand">expand_more</mat-icon>
|
|
45
|
-
</button>
|
|
46
|
-
<button
|
|
47
|
-
mat-flat-button
|
|
48
|
-
(click)="clear()"
|
|
49
|
-
[disabled]="isFormEmpty() || activeLevel > 1"
|
|
50
|
-
style="font-weight: bold; min-width: 140px; max-width: 200px; margin: 0 10px; ">
|
|
51
|
-
{{ 'REPORTS.clear' | translate }}
|
|
52
|
-
</button>
|
|
53
|
-
|
|
54
|
-
<button *ngIf="activeLevel === 1 && drillDownEnabled()" color="warn" mat-flat-button (click)="drillDown()"
|
|
55
|
-
style="font-weight: bold;min-width: 140px; max-width: 200px; margin: 0 10px;">
|
|
56
|
-
{{ drillDownLabel() | translate }}
|
|
57
|
-
</button>
|
|
58
|
-
<button *ngIf="activeLevel > 1 && !(isComparisonReport && activeLevel == 2)" color="warn" mat-flat-button (click)="goUp()"
|
|
59
|
-
style="font-weight: bold;min-width: 140px; max-width: 200px; margin: 0 10px;">
|
|
60
|
-
{{ 'REPORTS.up' | translate }}
|
|
61
|
-
</button>
|
|
62
|
-
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
<div fxLayout="column" fxFlex="49"></div>
|
|
66
|
-
</div>
|
|
67
|
-
<div *ngIf="activeLevel === 1" fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start start" fxLayoutAlign.lt-sm="center start"
|
|
68
|
-
class="main-form-canvas"
|
|
69
|
-
style="margin-top: 3vh; width: 100%">
|
|
70
|
-
<div fxLayout="column" fxFlex="100">
|
|
71
|
-
<app-base-table [pageInfo]="pageInfo" [columns]="columnsDefinition" [enforceRefresh]="reloadData" id="parent"
|
|
72
|
-
[reportRequest]="reportRequest" (userAction)="emitUserAction($event)" (hyperLinkAction)="emitHyperLinkAction($event)"></app-base-table>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
<div *ngIf="activeLevel === 2" fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start start" fxLayoutAlign.lt-sm="center start"
|
|
76
|
-
class="main-form-canvas"
|
|
77
|
-
style="margin-top: 3vh; width: 100%">
|
|
78
|
-
<div fxLayout="column" fxFlex="100">
|
|
79
|
-
<app-base-table [pageInfo]="drillDownPageInfo" [columns]="drillDownColumns " id="child"
|
|
80
|
-
[reportRequest]="reportRequest"
|
|
81
|
-
(userAction)="emitUserAction($event)" (hyperLinkAction)="emitHyperLinkAction($event)"></app-base-table>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
<div *ngIf="activeLevel === 3" fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start start" fxLayoutAlign.lt-sm="center start"
|
|
85
|
-
class="main-form-canvas"
|
|
86
|
-
style="margin-top: 3vh; width: 100%">
|
|
87
|
-
<div fxLayout="column" fxFlex="100">
|
|
88
|
-
<app-base-table [pageInfo]="drillDownPageInfo" [columns]="drillDownColumns" id="junior"
|
|
89
|
-
[reportRequest]="reportRequest" (userAction)="emitUserAction($event)" (hyperLinkAction)="emitHyperLinkAction($event)" ></app-base-table>
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
92
|
-
<div *ngIf="activeLevel === 4" fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start start" fxLayoutAlign.lt-sm="center start"
|
|
93
|
-
class="main-form-canvas"
|
|
94
|
-
style="margin-top: 3vh; width: 100%">
|
|
95
|
-
<div fxLayout="column" fxFlex="100">
|
|
96
|
-
<app-base-table [pageInfo]="drillDownPageInfo" [columns]="drillDownColumns"
|
|
97
|
-
[reportRequest]="reportRequest" (userAction)="emitUserAction($event)" (hyperLinkAction)="emitHyperLinkAction($event)" ></app-base-table>
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
101
|
-
<mat-menu #menu="matMenu">
|
|
102
|
-
<button type="button"
|
|
103
|
-
mat-menu-item
|
|
104
|
-
*ngFor="let type of types"
|
|
105
|
-
(click)="extractReport(type)">
|
|
106
|
-
{{ type }}
|
|
107
|
-
</button>
|
|
108
|
-
</mat-menu>
|
|
109
|
-
|
|
File without changes
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import {ActivityReportFormComponent} from './activity-report-form.component';
|
|
4
|
-
|
|
5
|
-
describe('BaseFormComponent', () => {
|
|
6
|
-
let component: ActivityReportFormComponent;
|
|
7
|
-
let fixture: ComponentFixture<ActivityReportFormComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ ActivityReportFormComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
fixture = TestBed.createComponent(ActivityReportFormComponent);
|
|
18
|
-
component = fixture.componentInstance;
|
|
19
|
-
fixture.detectChanges();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should create', () => {
|
|
23
|
-
expect(component).toBeTruthy();
|
|
24
|
-
});
|
|
25
|
-
});
|