@unifylib/ui-lib 1.1.3 → 1.1.5
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,67 +0,0 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
width: 98%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.title-row {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: row;
|
|
10
|
-
justify-content: flex-start;
|
|
11
|
-
align-items: flex-start;
|
|
12
|
-
width: 100%;
|
|
13
|
-
margin: 2vh 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.full-column {
|
|
17
|
-
flex: 1 1 100%;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.button-row {
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: row;
|
|
25
|
-
justify-content: flex-start;
|
|
26
|
-
align-items: flex-start;
|
|
27
|
-
width: 100%;
|
|
28
|
-
margin-top: 2vh;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.half-column {
|
|
32
|
-
flex: 0 0 49%;
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.right-align {
|
|
38
|
-
align-items: flex-end;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.button-group {
|
|
42
|
-
display: flex;
|
|
43
|
-
flex-direction: row;
|
|
44
|
-
justify-content: flex-end;
|
|
45
|
-
align-items: center;
|
|
46
|
-
gap: 10px;
|
|
47
|
-
margin: 1% 2%;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@media (max-width: 768px) {
|
|
51
|
-
.button-row {
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.half-column {
|
|
56
|
-
flex: 1 1 100%;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.right-align {
|
|
60
|
-
align-items: center;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.button-group {
|
|
64
|
-
justify-content: center;
|
|
65
|
-
flex-wrap: wrap;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<div class="container">
|
|
2
|
-
<div class="title-row">
|
|
3
|
-
<div class="full-column">
|
|
4
|
-
<app-title-bar [pageTitle]="getTitle()"></app-title-bar>
|
|
5
|
-
</div>
|
|
6
|
-
</div>
|
|
7
|
-
|
|
8
|
-
<ng-container *ngIf="isLoaded">
|
|
9
|
-
<app-base-form-canvas
|
|
10
|
-
[pageInfo]="pageInfo"
|
|
11
|
-
[fields]="fieldsInfo"
|
|
12
|
-
[editable]="true"
|
|
13
|
-
[item]="default"
|
|
14
|
-
(formUpdated)="captureForm($event)">
|
|
15
|
-
</app-base-form-canvas>
|
|
16
|
-
|
|
17
|
-
<div class="button-row">
|
|
18
|
-
<div class="half-column"></div>
|
|
19
|
-
<div class="half-column right-align">
|
|
20
|
-
<div class="button-group">
|
|
21
|
-
<ng-container>
|
|
22
|
-
<button
|
|
23
|
-
mat-stroked-button
|
|
24
|
-
class="btn-none-background-primary"
|
|
25
|
-
type="button"
|
|
26
|
-
(click)="doCancel('cancel')"
|
|
27
|
-
id="base-input-cancel-btn">
|
|
28
|
-
Cancel
|
|
29
|
-
</button>
|
|
30
|
-
</ng-container>
|
|
31
|
-
|
|
32
|
-
<ng-container>
|
|
33
|
-
<button
|
|
34
|
-
[ngClass]="saveDisabled() ? 'btn-none-background-primary' : 'btn-background-primary'"
|
|
35
|
-
[disabled]="saveDisabled()"
|
|
36
|
-
mat-stroked-button
|
|
37
|
-
type="button"
|
|
38
|
-
(click)="doSave('save')"
|
|
39
|
-
id="base-input-save-btn">
|
|
40
|
-
Save
|
|
41
|
-
</button>
|
|
42
|
-
</ng-container>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</ng-container>
|
|
47
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { BaseInputDialogComponent } from './base-input-dialog.component';
|
|
4
|
-
|
|
5
|
-
describe('BaseInputDialogComponent', () => {
|
|
6
|
-
let component: BaseInputDialogComponent;
|
|
7
|
-
let fixture: ComponentFixture<BaseInputDialogComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [BaseInputDialogComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(BaseInputDialogComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import {Component, Inject, Input, OnInit} from '@angular/core';
|
|
2
|
-
import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog";
|
|
3
|
-
import {FormGroup, ReactiveFormsModule} from "@angular/forms";
|
|
4
|
-
import {NgClass, NgIf} from "@angular/common";
|
|
5
|
-
import {MatIconModule} from "@angular/material/icon";
|
|
6
|
-
import {MatSelectModule} from "@angular/material/select";
|
|
7
|
-
import {MatInputModule} from "@angular/material/input";
|
|
8
|
-
import {TranslateModule} from "@ngx-translate/core";
|
|
9
|
-
import { BaseFormCanvasComponent } from '../base-form-canvas/base-form-canvas.component';
|
|
10
|
-
import {TitleBarComponent} from "../title-bar/title-bar.component";
|
|
11
|
-
import {FieldInfo, PageInfo} from "../../base-model";
|
|
12
|
-
import {BaseUtils} from "../../utils/base-utils";
|
|
13
|
-
import {MatButton} from "@angular/material/button";
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: 'lib-base-input-dialog',
|
|
17
|
-
standalone: true,
|
|
18
|
-
imports: [
|
|
19
|
-
NgIf,
|
|
20
|
-
NgClass,
|
|
21
|
-
MatIconModule,
|
|
22
|
-
ReactiveFormsModule,
|
|
23
|
-
MatSelectModule,
|
|
24
|
-
MatInputModule,
|
|
25
|
-
BaseFormCanvasComponent,
|
|
26
|
-
TranslateModule,
|
|
27
|
-
NgIf,
|
|
28
|
-
TranslateModule,
|
|
29
|
-
TitleBarComponent,
|
|
30
|
-
MatButton
|
|
31
|
-
],
|
|
32
|
-
templateUrl: './base-input-dialog.component.html',
|
|
33
|
-
styleUrl: './base-input-dialog.component.css'
|
|
34
|
-
})
|
|
35
|
-
export class BaseInputDialogComponent extends BaseUtils implements OnInit {
|
|
36
|
-
fieldsInfo: FieldInfo[];
|
|
37
|
-
default: any;
|
|
38
|
-
isLoaded: boolean = false;
|
|
39
|
-
formGroup: FormGroup;
|
|
40
|
-
|
|
41
|
-
constructor(public dialogRef: MatDialogRef<BaseInputDialogComponent>,
|
|
42
|
-
@Inject(MAT_DIALOG_DATA) public data: any) {
|
|
43
|
-
super()
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
ngOnInit(): void {
|
|
47
|
-
console.log('data' ,this.data);
|
|
48
|
-
this.fieldsInfo = this.data.fieldsInfo;
|
|
49
|
-
this.pageInfo = this.data.pageInfo;
|
|
50
|
-
this.default = this.data.element;
|
|
51
|
-
this.isLoaded = true;
|
|
52
|
-
}
|
|
53
|
-
captureForm($event: FormGroup) {
|
|
54
|
-
this.formGroup = $event;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
saveDisabled() {
|
|
58
|
-
return !this.formGroup?.valid;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
getTitle() {
|
|
62
|
-
return this.pageInfo.labelsSection + '.pop_up_title';
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
doSave(save: string) {
|
|
66
|
-
if (this.formGroup.valid) {
|
|
67
|
-
let id = this.default?.id;
|
|
68
|
-
this.default = this.formGroup.value;
|
|
69
|
-
this.default.id = id;
|
|
70
|
-
this.dialogRef.close(this.default);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
doCancel(cancel: string) {
|
|
75
|
-
this.dialogRef.close(null);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
<div class="flex-column baseTable">
|
|
2
|
-
<div class="flex-row flex-100" *ngIf="!pageInfo.hideTitle">
|
|
3
|
-
<div [class.flex-50]="pageInfo.draftSupported" [class.flex-100]="!pageInfo.draftSupported" class="flex-column align-start">
|
|
4
|
-
<app-title-bar
|
|
5
|
-
[pageTitle]="pageInfo.hideTitle ? '' : pageInfo.labelsSection+'.list_title'"
|
|
6
|
-
[titleMode]="''"
|
|
7
|
-
[newAction]="showAddNew()"
|
|
8
|
-
[showExtractButton]="!pageInfo.hideExtractButton"
|
|
9
|
-
[extraButton]="extraButton"
|
|
10
|
-
(newActionClicked)="onAddNewAction($event)"
|
|
11
|
-
(extractReport)="extractReport($event)"
|
|
12
|
-
[totalElements]="pageInfo.hideTitle ? undefined : totalElements">
|
|
13
|
-
</app-title-bar>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="flex-50 flex-column align-end" *ngIf="pageInfo.draftSupported">
|
|
16
|
-
<mat-chip-listbox aria-label="Color selection" [multiple]="false">
|
|
17
|
-
<mat-chip-option [selected]="!this.isPending" [color]="'accent'" [value]="'COMPLETED'" (click)="switchViewMode(false)">
|
|
18
|
-
{{'finished' | translate}}
|
|
19
|
-
</mat-chip-option>
|
|
20
|
-
<mat-chip-option [selected]="this.isPending" [color]="'accent'" [value]="'PENDING'" (click)="switchViewMode(true)">
|
|
21
|
-
{{'todo' | translate}}
|
|
22
|
-
</mat-chip-option>
|
|
23
|
-
</mat-chip-listbox>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
<div class="filter-row" *ngIf="!pageInfo.hideAdvancedFilter">
|
|
28
|
-
<app-filter-builder
|
|
29
|
-
*ngIf="!pageInfo.hideAdvancedFilter"
|
|
30
|
-
[pageInfo]="pageInfo"
|
|
31
|
-
[columns]="columns"
|
|
32
|
-
[filterFields]="filterFields"
|
|
33
|
-
(filterInformation)="doAdvancedSearch($event)"
|
|
34
|
-
(isEmpty)="resetData($event)">
|
|
35
|
-
</app-filter-builder>
|
|
36
|
-
|
|
37
|
-
<div class="button-group" >
|
|
38
|
-
|
|
39
|
-
<button *ngIf="!pageInfo.hideExtractButton"
|
|
40
|
-
mat-flat-button
|
|
41
|
-
[matMenuTriggerFor]="exportMenu"
|
|
42
|
-
color="primary"
|
|
43
|
-
class="btn-none-background-primary btn-export"
|
|
44
|
-
>
|
|
45
|
-
<div class="button-text">
|
|
46
|
-
<mat-icon>file_export</mat-icon>
|
|
47
|
-
<span>{{ 'export' | translate }}</span>
|
|
48
|
-
<mat-icon class="arrow-icon">arrow_drop_down</mat-icon>
|
|
49
|
-
</div>
|
|
50
|
-
</button>
|
|
51
|
-
|
|
52
|
-
<mat-menu #exportMenu="matMenu">
|
|
53
|
-
<button
|
|
54
|
-
mat-menu-item
|
|
55
|
-
*ngFor="let type of types"
|
|
56
|
-
(click)="extractReport(type)"
|
|
57
|
-
>
|
|
58
|
-
<span>{{ type | uppercase }}</span>
|
|
59
|
-
</button>
|
|
60
|
-
</mat-menu>
|
|
61
|
-
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<div class="flex-row flex-100 baseTable__detailsColumn">
|
|
67
|
-
<div class="flex-100">
|
|
68
|
-
<div class="flex-row flex-100 mainTable">
|
|
69
|
-
<table [dataSource]="dataSource" class="flex-fill" mat-table matSort (matSortChange)="onSortAction($event)">
|
|
70
|
-
<ng-container *ngFor="let column of this.columns; let last=last">
|
|
71
|
-
<ng-container matColumnDef="{{column.property}}">
|
|
72
|
-
<ng-container *ngIf="column.enableSorting; else withoutSortingColumn">
|
|
73
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell mat-sort-header>
|
|
74
|
-
{{ labelKey(column) | translate }}
|
|
75
|
-
</th>
|
|
76
|
-
</ng-container>
|
|
77
|
-
<ng-template #withoutSortingColumn>
|
|
78
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}</th>
|
|
79
|
-
</ng-template>
|
|
80
|
-
|
|
81
|
-
<ng-container [ngSwitch]="column.type">
|
|
82
|
-
<ng-container *ngSwitchCase="'workflowStatus'">
|
|
83
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary" mat-cell>
|
|
84
|
-
<button mat-button class="wfStatus {{ getStatusDescription(element)}}" [attr.id]="'table-btn-wf-'+column.property+'-'+(element.id || element.key || '')">{{ getStatusDescription(element) }}</button>
|
|
85
|
-
</td>
|
|
86
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
87
|
-
<button mat-button class="wfStatus {{ getStatusDescription(element)}}" [attr.id]="'table-btn-wf2-'+column.property+'-'+(element.id || element.key || '')">{{ getStatusDescription(element) }}</button>
|
|
88
|
-
</td>
|
|
89
|
-
</ng-container>
|
|
90
|
-
|
|
91
|
-
<ng-container *ngSwitchCase="'hyper-text'">
|
|
92
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" (click)="hyperLinkClicked(column.property,element)" mat-cell>
|
|
93
|
-
<mat-label [ngClass]="{'hyper-link': shouldRenderAsHyperLink(element)}">
|
|
94
|
-
{{ extractFieldName(element, column.property) }}
|
|
95
|
-
</mat-label>
|
|
96
|
-
</td>
|
|
97
|
-
</ng-container>
|
|
98
|
-
|
|
99
|
-
<ng-container *ngSwitchCase="'button'">
|
|
100
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary" mat-cell>
|
|
101
|
-
<button *ngIf="shouldShowButton(element)" mat-button class="primary" (click)="$event.stopPropagation(); actionButtonClicked(column.property, element)" [attr.id]="'table-btn-action-'+column.property">
|
|
102
|
-
{{ labelKey(column) + '_title' | translate }}
|
|
103
|
-
</button>
|
|
104
|
-
</td>
|
|
105
|
-
</ng-container>
|
|
106
|
-
|
|
107
|
-
<ng-container *ngSwitchCase="'icon'">
|
|
108
|
-
<td *matCellDef="let element" class="mainTable__td" mat-cell>
|
|
109
|
-
<mat-icon [ngClass]="{
|
|
110
|
-
'mainTable__td__icon-green': element[column.property] === 'pass',
|
|
111
|
-
'mainTable__td__icon-orange': element[column.property] === 'warning',
|
|
112
|
-
'mainTable__td__icon-red': element[column.property] === 'error'
|
|
113
|
-
}">
|
|
114
|
-
{{ getIcon(element[column.property]) }}
|
|
115
|
-
</mat-icon>
|
|
116
|
-
</td>
|
|
117
|
-
</ng-container>
|
|
118
|
-
|
|
119
|
-
<ng-container *ngSwitchCase="'checkbox'">
|
|
120
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary" mat-cell>
|
|
121
|
-
<mat-checkbox class="primary" [checked]="element[column.property]" (click)="$event.stopPropagation();actionCheckedClicked(column.property,element)"></mat-checkbox>
|
|
122
|
-
</td>
|
|
123
|
-
</ng-container>
|
|
124
|
-
|
|
125
|
-
<ng-container *ngSwitchCase="'stateType'">
|
|
126
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary" mat-cell>
|
|
127
|
-
<button mat-button class="stateType {{ element[column.property]}}" [attr.id]="'table-btn-state-'+column.property">{{ labelKeyByValue(column, element) | translate}}</button>
|
|
128
|
-
</td>
|
|
129
|
-
</ng-container>
|
|
130
|
-
|
|
131
|
-
<ng-container *ngSwitchCase="'date'">
|
|
132
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
133
|
-
{{ extractFieldName(element, column.property) | date:'yyyy-MM-dd' }}
|
|
134
|
-
</td>
|
|
135
|
-
</ng-container>
|
|
136
|
-
|
|
137
|
-
<ng-container *ngSwitchCase="'croppedText'">
|
|
138
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
139
|
-
{{ getCroppedText(element[column.property], element[column.width]) }}
|
|
140
|
-
</td>
|
|
141
|
-
</ng-container>
|
|
142
|
-
|
|
143
|
-
<ng-container *ngSwitchCase="'download'">
|
|
144
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" style="padding: 0;margin: 0;text-align: center;" mat-cell>
|
|
145
|
-
<mat-icon class="mainTable__td__icon-blue">system_update_alt</mat-icon>
|
|
146
|
-
</td>
|
|
147
|
-
</ng-container>
|
|
148
|
-
|
|
149
|
-
<ng-container *ngSwitchCase="'onOff'">
|
|
150
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
151
|
-
<mat-icon *ngIf="element[column.property] === null" class="mainTable__td__icon-darkorange">flag</mat-icon>
|
|
152
|
-
<mat-icon *ngIf="element[column.property] === false" class="mainTable__td__icon-red">flag</mat-icon>
|
|
153
|
-
<mat-icon *ngIf="element[column.property] === true" class="mainTable__td__icon-green">flag</mat-icon>
|
|
154
|
-
</td>
|
|
155
|
-
</ng-container>
|
|
156
|
-
|
|
157
|
-
<ng-container *ngSwitchCase="'status'">
|
|
158
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
159
|
-
<span *ngIf="element[column.property] === null || element[column.property] === false">
|
|
160
|
-
{{ pageInfo.labelsSection + '.' + column.label + 'InActive' | translate }}
|
|
161
|
-
</span>
|
|
162
|
-
<span *ngIf="element[column.property] === true">
|
|
163
|
-
{{ pageInfo.labelsSection + '.' + column.label + 'Active' | translate }}
|
|
164
|
-
</span>
|
|
165
|
-
</td>
|
|
166
|
-
</ng-container>
|
|
167
|
-
|
|
168
|
-
<ng-container *ngSwitchCase="'info'">
|
|
169
|
-
<td *matCellDef="let element" class="mainTable__td text-secondary" mat-cell>
|
|
170
|
-
<button mat-icon-button (click)="$event.stopPropagation();emitEvent(element)" [attr.id]="'table-btn-info-'+element.id">
|
|
171
|
-
<mat-icon>info</mat-icon>
|
|
172
|
-
</button>
|
|
173
|
-
</td>
|
|
174
|
-
</ng-container>
|
|
175
|
-
|
|
176
|
-
<ng-container *ngSwitchCase="'netAmount'">
|
|
177
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
178
|
-
<small><sup class="mainTable__td__currency">{{element[column.currency]}}</sup></small>
|
|
179
|
-
<span class="mainTable__td__property">{{ extractFieldName(element, column.property) | currency:element[column.currency] :'' }}</span> of
|
|
180
|
-
{{ extractFieldName(element, column.additionalProperty) | currency:element[column.currency] :'' }}
|
|
181
|
-
</td>
|
|
182
|
-
</ng-container>
|
|
183
|
-
|
|
184
|
-
<ng-container *ngSwitchCase="'localDateTime'">
|
|
185
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
186
|
-
{{ extractFieldName(element, column.property) | date : extractFormat(column) }}
|
|
187
|
-
</td>
|
|
188
|
-
</ng-container>
|
|
189
|
-
|
|
190
|
-
<ng-container *ngSwitchCase="'bigdecimal'">
|
|
191
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
192
|
-
<small><sup class="mainTable__td__currency">{{element[column.currency]}}</sup></small>
|
|
193
|
-
{{ extractFieldName(element, column.property) | number : (column.digitInfo || '1.3-5') }}
|
|
194
|
-
</td>
|
|
195
|
-
</ng-container>
|
|
196
|
-
|
|
197
|
-
<ng-container *ngSwitchCase="'listAction'">
|
|
198
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" style="padding: 0!important;" mat-cell>
|
|
199
|
-
<app-button-actions
|
|
200
|
-
[buttonsAction]="column.viewType === 'buttonsAction'"
|
|
201
|
-
[listAction]="listAction"
|
|
202
|
-
[actions]="listAction"
|
|
203
|
-
(clickedButton)="actionListClicked($event,element)">
|
|
204
|
-
</app-button-actions>
|
|
205
|
-
</td>
|
|
206
|
-
</ng-container>
|
|
207
|
-
|
|
208
|
-
<ng-container *ngSwitchDefault>
|
|
209
|
-
<ng-container *ngIf="column.translate; else noTranslate">
|
|
210
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" (click)="emitRoutePage(element)" mat-cell>
|
|
211
|
-
{{ extractFieldName(element, column.property) | translate }}
|
|
212
|
-
</td>
|
|
213
|
-
</ng-container>
|
|
214
|
-
<ng-template #noTranslate>
|
|
215
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" (click)="emitRoutePage(element)" mat-cell [innerHtml]='extractFieldName(element, column.property)'></td>
|
|
216
|
-
</ng-template>
|
|
217
|
-
</ng-container>
|
|
218
|
-
</ng-container>
|
|
219
|
-
</ng-container>
|
|
220
|
-
</ng-container>
|
|
221
|
-
|
|
222
|
-
<ng-container *ngIf="hasGroups()">
|
|
223
|
-
<ng-container *ngFor="let groupName of this.groupNames">
|
|
224
|
-
<ng-container matColumnDef="{{groupName}}">
|
|
225
|
-
<th mat-header-cell class="extra-header" *matHeaderCellDef [attr.colspan]="groupSpans.get(groupName)">
|
|
226
|
-
{{ (isHumanMade(groupName) ? groupName : "") | translate }}
|
|
227
|
-
</th>
|
|
228
|
-
</ng-container>
|
|
229
|
-
</ng-container>
|
|
230
|
-
<tr mat-header-row *matHeaderRowDef="this.groupNames"></tr>
|
|
231
|
-
</ng-container>
|
|
232
|
-
|
|
233
|
-
<tr *matHeaderRowDef="visibleColumns" mat-header-row></tr>
|
|
234
|
-
<tr (auxclick)="openNewTab(row)" (click)="$event.stopPropagation(); onSelectItem(row)" *matRowDef="let row; columns: visibleColumns"
|
|
235
|
-
[attr.id]="'table-row-' + (row?.id || row?.key || '')"
|
|
236
|
-
[ngClass]="{
|
|
237
|
-
'mainTable__highlight': selectedRowIndex == row.id || (pageInfo.groupByProperty && pageInfo.groupByValue?.includes(row[pageInfo.groupByProperty])),
|
|
238
|
-
'mainTable__dark_highlight': isDarkHighlight(row)
|
|
239
|
-
}"
|
|
240
|
-
mat-row>
|
|
241
|
-
</tr>
|
|
242
|
-
</table>
|
|
243
|
-
</div>
|
|
244
|
-
|
|
245
|
-
<div *ngIf="noDataFound" class="dataNotFound flex-column">
|
|
246
|
-
<mat-icon class="dataNotFound__icon">{{ noDataFoundIcon }}</mat-icon>
|
|
247
|
-
<span class="dataNotFound__title">{{ noDataFoundTitle | translate}}</span>
|
|
248
|
-
<span class="dataNotFound__subtitle">{{ noDataFoundSubtitle | translate}}</span>
|
|
249
|
-
</div>
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
<div *ngIf="(dataSource.data?.length > 0 || customizedData) && !pageInfo.hidePagination" class="main-pagination flex-row">
|
|
253
|
-
<ng-container *ngIf="enablePagination">
|
|
254
|
-
<div class="flex-column flex-100">
|
|
255
|
-
<app-paginator
|
|
256
|
-
[currentPage]="pageIndex"
|
|
257
|
-
[totalItems]="totalElements"
|
|
258
|
-
[pageSize]="pageSize"
|
|
259
|
-
[pageSizeOptions]="[5, 10, 25, 50]"
|
|
260
|
-
(pageChange)="onPageChange($event)"
|
|
261
|
-
(pageSizeChange)="onPageSizeChange($event)">
|
|
262
|
-
</app-paginator>
|
|
263
|
-
</div>
|
|
264
|
-
</ng-container>
|
|
265
|
-
</div>
|
|
266
|
-
</div>
|
|
267
|
-
</div>
|
|
268
|
-
</div>
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.flex-row {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: row;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.flex-column {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.flex-100 {
|
|
13
|
-
flex: 1 1 100%;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.flex-49 {
|
|
17
|
-
flex: 0 0 49%;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.flex-50 {
|
|
21
|
-
flex: 0 0 50%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.align-start {
|
|
25
|
-
justify-content: flex-start;
|
|
26
|
-
align-items: flex-start;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.align-center {
|
|
30
|
-
justify-content: center;
|
|
31
|
-
align-items: center;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.align-end {
|
|
35
|
-
justify-content: flex-end;
|
|
36
|
-
align-items: flex-end;
|
|
37
|
-
}
|
|
38
|
-
.gap-0 {
|
|
39
|
-
gap: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.gap-5 {
|
|
43
|
-
gap: 5px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.gap-10 {
|
|
47
|
-
gap: 10px;
|
|
48
|
-
}
|
|
49
|
-
.dataNotFound {
|
|
50
|
-
display: flex;
|
|
51
|
-
flex-direction: column;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
align-items: center;
|
|
54
|
-
height: 100%;
|
|
55
|
-
text-align: center;
|
|
56
|
-
|
|
57
|
-
&__icon {
|
|
58
|
-
color: var(--primary-color-3nd);
|
|
59
|
-
font-size: 40px;
|
|
60
|
-
height: 40px;
|
|
61
|
-
width: 40px;
|
|
62
|
-
margin-bottom: 8px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&__title {
|
|
66
|
-
color: #6A6A6A;
|
|
67
|
-
font-size: 20px;
|
|
68
|
-
font-weight: 700;
|
|
69
|
-
margin-bottom: 4px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&__subtitle {
|
|
73
|
-
color: #6A6A6A;
|
|
74
|
-
font-size: 20px;
|
|
75
|
-
font-weight: 400;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@media (max-width: 960px) {
|
|
80
|
-
.flex-column-sm {
|
|
81
|
-
flex-direction: column;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.align-center-sm {
|
|
85
|
-
justify-content: center;
|
|
86
|
-
align-items: flex-start;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
.filter-row {
|
|
90
|
-
display: flex;
|
|
91
|
-
align-items: center;
|
|
92
|
-
width: 100%;
|
|
93
|
-
gap: 12px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.filter-row app-filter-builder {
|
|
97
|
-
flex: 1;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.button-group {
|
|
101
|
-
width: 15%;
|
|
102
|
-
display: flex;
|
|
103
|
-
justify-content: flex-end;
|
|
104
|
-
gap: 8px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.btn-export {
|
|
108
|
-
|
|
109
|
-
height: 44px !important;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.arrow-icon {
|
|
113
|
-
font-size: 20px;
|
|
114
|
-
margin-left: 4px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
@media (max-width: 1024px) {
|
|
118
|
-
.button-group {
|
|
119
|
-
width: auto;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@media (max-width: 768px) {
|
|
124
|
-
.filter-row {
|
|
125
|
-
flex-direction: column;
|
|
126
|
-
align-items: stretch;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.button-group {
|
|
130
|
-
width: 100%;
|
|
131
|
-
justify-content: flex-start;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.btn-export {
|
|
135
|
-
width: 100%;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
.stateType {
|
|
139
|
-
font-size: 14px!important;
|
|
140
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import {BaseTableComponent} from './base-table.component';
|
|
4
|
-
|
|
5
|
-
describe('BaseTableComponent', () => {
|
|
6
|
-
let component: BaseTableComponent;
|
|
7
|
-
let fixture: ComponentFixture<BaseTableComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ BaseTableComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
fixture = TestBed.createComponent(BaseTableComponent);
|
|
18
|
-
component = fixture.componentInstance;
|
|
19
|
-
fixture.detectChanges();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should create', () => {
|
|
23
|
-
expect(component).toBeTruthy();
|
|
24
|
-
});
|
|
25
|
-
});
|