@unifylib/ui-lib 1.1.3 → 1.1.4
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 +16 -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 +57 -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 +12 -0
- package/esm2022/lib/base-model/items-total.model.mjs +8 -0
- package/esm2022/lib/base-model/line-item.model.mjs +11 -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/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 +101 -0
- package/esm2022/lib/components/action-confirmation/action-confirmation.component.mjs +55 -0
- package/esm2022/lib/components/activity-report-form/activity-report-form.component.mjs +499 -0
- package/esm2022/lib/components/advanced-filter/field-filter/field-filter.component.mjs +41 -0
- package/esm2022/lib/components/advanced-filter/filter-builder/filter-builder.component.mjs +162 -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 +99 -0
- package/esm2022/lib/components/auto-complete/auto-complete.component.mjs +292 -0
- package/esm2022/lib/components/base-form/base-form.component.mjs +297 -0
- package/esm2022/lib/components/base-form-canvas/base-form-canvas.component.mjs +591 -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 +514 -0
- package/esm2022/lib/components/button-actions/button-actions.component.mjs +70 -0
- package/esm2022/lib/components/editable-base-table/editable-base-table.component.mjs +496 -0
- package/esm2022/lib/components/equation-builder/equation-builder.component.mjs +112 -0
- package/esm2022/lib/components/item-line-editor/item-line-editor.component.mjs +299 -0
- package/esm2022/lib/components/multi-auto-complete/multi-auto-complete.component.mjs +278 -0
- package/esm2022/lib/components/paginator/paginator.component.mjs +91 -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 +498 -0
- package/esm2022/lib/components/search-bar/search-bar.component.mjs +62 -0
- package/esm2022/lib/components/section-form-canvas/section-form-canvas.component.mjs +81 -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 +70 -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 +119 -0
- package/esm2022/lib/services/backend-service.mjs +240 -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 +97 -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 +29 -0
- package/esm2022/q-btech-ui-lib.mjs +5 -0
- package/esm2022/unifylib-ui-lib.mjs +5 -0
- package/fesm2022/iq-ui-lib.mjs +5625 -0
- package/fesm2022/iq-ui-lib.mjs.map +1 -0
- package/fesm2022/q-btech-ui-lib.mjs +5619 -0
- package/fesm2022/q-btech-ui-lib.mjs.map +1 -0
- package/fesm2022/unifylib-ui-lib.mjs +5625 -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} +21 -23
- package/lib/base-model/audit-log-entry.d.ts +7 -0
- package/lib/base-model/button-action-settings.d.ts +15 -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 +53 -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 +11 -0
- package/lib/base-model/items-total.model.d.ts +6 -0
- package/lib/base-model/line-item.model.d.ts +9 -0
- package/lib/base-model/lookupItem.d.ts +13 -0
- package/lib/base-model/page-info.d.ts +52 -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 +28 -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 +32 -0
- package/lib/components/action-confirmation/action-confirmation.component.d.ts +19 -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 +20 -0
- package/lib/components/advanced-filter/filter-builder/filter-builder.component.d.ts +28 -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 +36 -0
- package/lib/components/auto-complete/auto-complete.component.d.ts +51 -0
- package/lib/components/base-form/base-form.component.d.ts +59 -0
- package/lib/components/base-form-canvas/base-form-canvas.component.d.ts +124 -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 +128 -0
- package/lib/components/button-actions/button-actions.component.d.ts +17 -0
- package/lib/components/editable-base-table/editable-base-table.component.d.ts +106 -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 +64 -0
- package/lib/components/multi-auto-complete/multi-auto-complete.component.d.ts +51 -0
- package/lib/components/paginator/paginator.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 +27 -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 +16 -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 +42 -0
- package/lib/services/backend-service.d.ts +59 -0
- package/{src/lib/services/index.ts → lib/services/index.d.ts} +3 -3
- 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/{src/lib/validators/index.ts → lib/validators/index.d.ts} +3 -3
- package/lib/validators/match-list.validator.d.ts +4 -0
- package/lib/validators/multi-email-validator.d.ts +6 -0
- package/package.json +27 -14
- package/{src/public-api.ts → public-api.d.ts} +25 -29
- 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 -29
- 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/feature-item.ts +0 -9
- package/src/lib/base-model/field-action.ts +0 -7
- package/src/lib/base-model/field-filter.model.ts +0 -7
- package/src/lib/base-model/field-info.ts +0 -102
- 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/items-total.model.ts +0 -12
- package/src/lib/base-model/line-item.model.ts +0 -18
- package/src/lib/base-model/lookupItem.ts +0 -21
- package/src/lib/base-model/null-snackmessage.ts +0 -9
- package/src/lib/base-model/page-info.ts +0 -54
- 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-comment/action-comment.component.css +0 -52
- package/src/lib/components/action-comment/action-comment.component.html +0 -47
- package/src/lib/components/action-comment/action-comment.component.spec.ts +0 -23
- package/src/lib/components/action-comment/action-comment.component.ts +0 -102
- package/src/lib/components/action-confirmation/action-confirmation.component.css +0 -46
- package/src/lib/components/action-confirmation/action-confirmation.component.html +0 -32
- 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 -110
- package/src/lib/components/activity-report-form/activity-report-form.component.scss +0 -69
- 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 -616
- package/src/lib/components/advanced-filter/field-filter/field-filter.component.html +0 -8
- 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 +0 -25
- package/src/lib/components/advanced-filter/field-filter/field-filter.component.ts +0 -55
- package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.html +0 -36
- package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.scss +0 -130
- package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.spec.ts +0 -25
- package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.ts +0 -186
- 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 -26
- package/src/lib/components/audit-log-list/audit-log.component.scss +0 -50
- 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 -114
- package/src/lib/components/auto-complete/auto-complete.component.css +0 -55
- package/src/lib/components/auto-complete/auto-complete.component.html +0 -45
- package/src/lib/components/auto-complete/auto-complete.component.spec.ts +0 -23
- package/src/lib/components/auto-complete/auto-complete.component.ts +0 -331
- package/src/lib/components/base-form/base-form.component.html +0 -59
- package/src/lib/components/base-form/base-form.component.scss +0 -68
- package/src/lib/components/base-form/base-form.component.spec.ts +0 -25
- package/src/lib/components/base-form/base-form.component.ts +0 -323
- package/src/lib/components/base-form-canvas/base-form-canvas.component.css +0 -196
- package/src/lib/components/base-form-canvas/base-form-canvas.component.html +0 -1095
- 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 -680
- package/src/lib/components/base-input-dialog/base-input-dialog.component.css +0 -67
- package/src/lib/components/base-input-dialog/base-input-dialog.component.html +0 -47
- 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 -77
- package/src/lib/components/base-table/base-table.component.html +0 -268
- package/src/lib/components/base-table/base-table.component.scss +0 -140
- package/src/lib/components/base-table/base-table.component.spec.ts +0 -25
- package/src/lib/components/base-table/base-table.component.ts +0 -621
- package/src/lib/components/button-actions/button-actions.component.html +0 -27
- package/src/lib/components/button-actions/button-actions.component.scss +0 -101
- package/src/lib/components/button-actions/button-actions.component.spec.ts +0 -23
- package/src/lib/components/button-actions/button-actions.component.ts +0 -70
- package/src/lib/components/editable-base-table/editable-base-table.component.html +0 -337
- package/src/lib/components/editable-base-table/editable-base-table.component.scss +0 -126
- 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 -579
- package/src/lib/components/equation-builder/equation-builder.component.css +0 -39
- 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 -119
- package/src/lib/components/item-line-editor/item-line-editor.component.html +0 -102
- package/src/lib/components/item-line-editor/item-line-editor.component.scss +0 -152
- package/src/lib/components/item-line-editor/item-line-editor.component.spec.ts +0 -23
- package/src/lib/components/item-line-editor/item-line-editor.component.ts +0 -306
- package/src/lib/components/multi-auto-complete/multi-auto-complete.component.css +0 -19
- 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 -315
- package/src/lib/components/paginator/paginator.component.css +0 -65
- package/src/lib/components/paginator/paginator.component.html +0 -30
- package/src/lib/components/paginator/paginator.component.ts +0 -87
- 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 -111
- package/src/lib/components/report-form/report-form.component.html +0 -92
- package/src/lib/components/report-form/report-form.component.scss +0 -51
- package/src/lib/components/report-form/report-form.component.spec.ts +0 -25
- package/src/lib/components/report-form/report-form.component.ts +0 -599
- package/src/lib/components/search-bar/search-bar.component.html +0 -51
- package/src/lib/components/search-bar/search-bar.component.scss +0 -63
- package/src/lib/components/search-bar/search-bar.component.spec.ts +0 -25
- package/src/lib/components/search-bar/search-bar.component.ts +0 -68
- package/src/lib/components/section-form-canvas/section-form-canvas.component.html +0 -43
- package/src/lib/components/section-form-canvas/section-form-canvas.component.scss +0 -81
- package/src/lib/components/section-form-canvas/section-form-canvas.component.spec.ts +0 -23
- package/src/lib/components/section-form-canvas/section-form-canvas.component.ts +0 -67
- package/src/lib/components/shared/action-button/action-button.component.html +0 -12
- package/src/lib/components/shared/action-button/action-button.component.scss +0 -45
- package/src/lib/components/shared/action-button/action-button.component.ts +0 -51
- package/src/lib/components/shared/action-card/action-card.component.html +0 -78
- package/src/lib/components/shared/action-card/action-card.component.scss +0 -238
- package/src/lib/components/shared/action-card/action-card.component.ts +0 -56
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.css +0 -135
- package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.html +0 -36
- 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 -71
- 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/snackbar-static/snackbar-static.component.html +0 -20
- package/src/lib/components/snackbar-static/snackbar-static.component.scss +0 -135
- package/src/lib/components/snackbar-static/snackbar-static.component.ts +0 -26
- 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 -35
- package/src/lib/components/title-bar/title-bar.component.scss +0 -126
- package/src/lib/components/title-bar/title-bar.component.spec.ts +0 -23
- package/src/lib/components/title-bar/title-bar.component.ts +0 -126
- package/src/lib/services/backend-service.ts +0 -287
- 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/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/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import {AfterViewInit, Component, ElementRef, HostListener, Inject, OnInit} from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
MAT_DIALOG_DATA, MatDialogActions, MatDialogContent,
|
|
4
|
-
MatDialogRef, MatDialogTitle,
|
|
5
|
-
} from "@angular/material/dialog";
|
|
6
|
-
import {FormsModule} from "@angular/forms";
|
|
7
|
-
import {TranslateModule, TranslateService} from "@ngx-translate/core";
|
|
8
|
-
import {FieldInfo, PageInfo, ReportRequest, TableColumn} from "../../base-model";
|
|
9
|
-
import {BaseTableComponent} from "../base-table/base-table.component";
|
|
10
|
-
import {MatButton, MatIconButton} from "@angular/material/button";
|
|
11
|
-
import {BackendService} from "../../services";
|
|
12
|
-
import {MatIcon} from "@angular/material/icon";
|
|
13
|
-
|
|
14
|
-
@Component({
|
|
15
|
-
selector: 'app-audit-log-details-dialog',
|
|
16
|
-
standalone: true,
|
|
17
|
-
imports: [
|
|
18
|
-
FormsModule,
|
|
19
|
-
TranslateModule,
|
|
20
|
-
BaseTableComponent,
|
|
21
|
-
MatDialogContent,
|
|
22
|
-
MatDialogTitle,
|
|
23
|
-
MatIconButton,
|
|
24
|
-
MatIcon
|
|
25
|
-
],
|
|
26
|
-
templateUrl: './report-details-dialog.component.html',
|
|
27
|
-
styleUrl: './report-details-dialog.component.css'
|
|
28
|
-
})
|
|
29
|
-
export class ReportDetailsDialogComponent implements OnInit , AfterViewInit{
|
|
30
|
-
dialogDirection: 'ltr' | 'rtl' = 'ltr';
|
|
31
|
-
|
|
32
|
-
pageInfo: PageInfo;
|
|
33
|
-
fields: FieldInfo[] = [];
|
|
34
|
-
|
|
35
|
-
isTermination : boolean=false;
|
|
36
|
-
comment: string = '';
|
|
37
|
-
external: boolean = false;
|
|
38
|
-
signingRequired: boolean = false;
|
|
39
|
-
tokenReference: string = "";
|
|
40
|
-
warningMsg = false;
|
|
41
|
-
item: any = {};
|
|
42
|
-
reportRequest: ReportRequest;
|
|
43
|
-
columns: TableColumn<any>[];
|
|
44
|
-
constructor(public dialogRef: MatDialogRef<ReportDetailsDialogComponent>,
|
|
45
|
-
@Inject(MAT_DIALOG_DATA) public data: any,
|
|
46
|
-
private translateService: TranslateService,
|
|
47
|
-
public backendService:BackendService,
|
|
48
|
-
private elRef: ElementRef) {
|
|
49
|
-
dialogRef.disableClose = true;
|
|
50
|
-
}
|
|
51
|
-
@HostListener('window:keyup.esc') onKeyUp() {
|
|
52
|
-
this.dialogRef.close();
|
|
53
|
-
}
|
|
54
|
-
ngOnInit(): void {
|
|
55
|
-
this.pageInfo = this.data.pageInfo;
|
|
56
|
-
this.pageInfo.hideTitle = true;
|
|
57
|
-
this.item = this.data.item;
|
|
58
|
-
this.pageInfo.hideExtractButton = false;
|
|
59
|
-
this.columns = this.data.columns;
|
|
60
|
-
this.reportRequest = this.data.request;
|
|
61
|
-
this.warningMsg = this.data.warningMsg || false;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
ngAfterViewInit(): void {
|
|
65
|
-
const container = this.elRef.nativeElement.closest('mat-dialog-container');
|
|
66
|
-
if (container && container.getAttribute('dir')) {
|
|
67
|
-
this.dialogDirection = container.getAttribute('dir') as 'ltr' | 'rtl';
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
cancel() {
|
|
72
|
-
this.reportRequest.filterRequest.filters = [];
|
|
73
|
-
this.backendService.isEmptyItems = false;
|
|
74
|
-
this.dialogRef.close();
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@HostListener('document:click', ['$event'])
|
|
78
|
-
onBackdropClick(event: MouseEvent): void {
|
|
79
|
-
const target = event.target as HTMLElement;
|
|
80
|
-
if (target.classList.contains('cdk-overlay-backdrop')) {
|
|
81
|
-
this.reportRequest.filterRequest.filters = [];
|
|
82
|
-
this.backendService.isEmptyItems = false;
|
|
83
|
-
this.dialogRef.close();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
getTitle() {
|
|
88
|
-
if (this.item?.isec_value_ar) {
|
|
89
|
-
const isecLabel = this.translateService.instant('ISEC');
|
|
90
|
-
return `<strong>${isecLabel} ${this.item.isec_value_ar}</strong>`;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
const sectorLabel = this.translateService.instant('SECTOR');
|
|
94
|
-
const periodLabel = this.translateService.instant('FOR_PERIOD');
|
|
95
|
-
const directorateLabel = this.translateService.instant('DIRECTORATE');
|
|
96
|
-
|
|
97
|
-
const sectorText = this.item.sector ? `${sectorLabel} ${this.item.sector}` : '';
|
|
98
|
-
const periodText = this.item.period ? ` ${periodLabel} ${this.item.period}` : '';
|
|
99
|
-
const yearText = this.item.year ? ` - ${this.item.year}` : '';
|
|
100
|
-
const directorateLine = this.item.directorate ? `<br><strong>${directorateLabel} - ${this.item.directorate}</strong>` : '';
|
|
101
|
-
|
|
102
|
-
const mainLine = (sectorText || periodText || yearText)
|
|
103
|
-
? `<strong>${[sectorText, periodText, yearText].filter(Boolean).join('')}</strong>`
|
|
104
|
-
: '';
|
|
105
|
-
|
|
106
|
-
return `${mainLine}${directorateLine}`;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
<div class="column full-width">
|
|
2
|
-
|
|
3
|
-
<div class="row align-start-center" style="margin-bottom: 10px;">
|
|
4
|
-
<app-title-bar [pageTitle]="getTitle()" [newAction]="false"></app-title-bar>
|
|
5
|
-
|
|
6
|
-
<mat-icon
|
|
7
|
-
*ngIf="pageInfo?.hasHint"
|
|
8
|
-
[matTooltip]="pageInfo.labelsSection + '.hint' | translate"
|
|
9
|
-
matTooltipPosition="right"
|
|
10
|
-
color="primary"
|
|
11
|
-
class="hint-icon"
|
|
12
|
-
matTooltipClass="custom-tooltip">
|
|
13
|
-
help_outline
|
|
14
|
-
</mat-icon>
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<app-base-form-canvas
|
|
18
|
-
[pageInfo]="pageInfo"
|
|
19
|
-
[fields]="fields"
|
|
20
|
-
[editable]="isEditable"
|
|
21
|
-
[errors]="errors"
|
|
22
|
-
[item]="this.reportForm?.value || {}"
|
|
23
|
-
(formUpdated)="updateForm($event)"
|
|
24
|
-
></app-base-form-canvas>
|
|
25
|
-
|
|
26
|
-
<br><br>
|
|
27
|
-
|
|
28
|
-
<div class="column">
|
|
29
|
-
<div class="row gap-10 responsive-row">
|
|
30
|
-
<button *ngIf="activeLevel === 1" color="primary" mat-flat-button (click)="doAction(x)" [disabled]="!isValidForm()" id="report-generate-btn">
|
|
31
|
-
{{ 'REPORTS.generate' | translate }}
|
|
32
|
-
</button>
|
|
33
|
-
|
|
34
|
-
<button mat-raised-button [matMenuTriggerFor]="menu" [disabled]="getIsEmptyList()" color="primary" id="report-extract-trigger">
|
|
35
|
-
{{ 'extract' | translate }}
|
|
36
|
-
<mat-icon class="expand_more actionButton__expand">expand_more</mat-icon>
|
|
37
|
-
</button>
|
|
38
|
-
|
|
39
|
-
<button mat-flat-button (click)="clear()" [disabled]="isFormEmpty() || activeLevel > 1" id="report-clear-btn">
|
|
40
|
-
{{ 'REPORTS.clear' | translate }}
|
|
41
|
-
</button>
|
|
42
|
-
|
|
43
|
-
<button *ngIf="activeLevel === 1 && drillDownEnabled()" color="warn" mat-flat-button (click)="drillDown()" id="report-drilldown-btn">
|
|
44
|
-
{{ drillDownLabel() | translate }}
|
|
45
|
-
</button>
|
|
46
|
-
|
|
47
|
-
<button *ngIf="activeLevel > 1 && backButtonEnabled" color="warn" mat-flat-button (click)="goUp()" id="report-up-btn">
|
|
48
|
-
{{ 'REPORTS.up' | translate }}
|
|
49
|
-
</button>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
<div *ngIf="activeLevel >= 1" class="main-form-canvas row align-start-start responsive-table" style="margin-top: 3vh;">
|
|
54
|
-
<div class="column full-width">
|
|
55
|
-
<app-base-table
|
|
56
|
-
*ngIf="activeLevel === 1"
|
|
57
|
-
[pageInfo]="pageInfo"
|
|
58
|
-
[columns]="columnsDefinition"
|
|
59
|
-
[enforceRefresh]="reloadData"
|
|
60
|
-
id="parent"
|
|
61
|
-
[reportRequest]="reportRequest"
|
|
62
|
-
(userAction)="emitUserAction($event)"
|
|
63
|
-
(hyperLinkAction)="emitHyperLinkAction($event)">
|
|
64
|
-
</app-base-table>
|
|
65
|
-
|
|
66
|
-
<app-base-table
|
|
67
|
-
*ngIf="activeLevel === 2"
|
|
68
|
-
[pageInfo]="drillDownPageInfo"
|
|
69
|
-
[columns]="drillDownColumns"
|
|
70
|
-
id="child"
|
|
71
|
-
[reportRequest]="childReportRequest"
|
|
72
|
-
(userAction)="emitJuniorAction($event)"
|
|
73
|
-
(hyperLinkAction)="emitHyperLinkAction($event)">
|
|
74
|
-
</app-base-table>
|
|
75
|
-
|
|
76
|
-
<app-base-table
|
|
77
|
-
*ngIf="activeLevel === 3"
|
|
78
|
-
[pageInfo]="juniorPageInfo"
|
|
79
|
-
[columns]="juniorColumns"
|
|
80
|
-
id="junior"
|
|
81
|
-
[reportRequest]="juniorReportRequest">
|
|
82
|
-
</app-base-table>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
<mat-menu #menu="matMenu">
|
|
89
|
-
<button type="button" mat-menu-item *ngFor="let type of types" (click)="extractReport(type)" [attr.id]="'report-extract-item-' + type">
|
|
90
|
-
{{ type }}
|
|
91
|
-
</button>
|
|
92
|
-
</mat-menu>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
.column {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
width: 100%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.row {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: row;
|
|
10
|
-
width: 100%;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.align-start-center {
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: flex-start;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.align-start-start {
|
|
19
|
-
align-items: flex-start;
|
|
20
|
-
justify-content: flex-start;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.gap-10 > * + * {
|
|
24
|
-
margin-left: 10px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.full-width {
|
|
28
|
-
width: 100%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.hint-icon {
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
margin-left: 10px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.responsive-row {
|
|
37
|
-
flex-wrap: wrap;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@media (max-width: 960px) {
|
|
41
|
-
.responsive-row {
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
align-items: flex-start;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@media (max-width: 600px) {
|
|
48
|
-
.responsive-table {
|
|
49
|
-
justify-content: center;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import {ReportFormComponent} from './report-form.component';
|
|
4
|
-
|
|
5
|
-
describe('BaseFormComponent', () => {
|
|
6
|
-
let component: ReportFormComponent;
|
|
7
|
-
let fixture: ComponentFixture<ReportFormComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ ReportFormComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
fixture = TestBed.createComponent(ReportFormComponent);
|
|
18
|
-
component = fixture.componentInstance;
|
|
19
|
-
fixture.detectChanges();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should create', () => {
|
|
23
|
-
expect(component).toBeTruthy();
|
|
24
|
-
});
|
|
25
|
-
});
|