@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,101 +0,0 @@
|
|
|
1
|
-
.svgColor{
|
|
2
|
-
fill: transparent !important;
|
|
3
|
-
stroke: var(--accent-color) !important;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.action-buttons-container {
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: row;
|
|
9
|
-
gap: 16px;
|
|
10
|
-
align-items: center;
|
|
11
|
-
padding: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.action-button {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
height: 28px;
|
|
19
|
-
min-width: 24px;
|
|
20
|
-
background: white;
|
|
21
|
-
border: 1px solid #a5c4d2;
|
|
22
|
-
border-radius: 9999px;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
padding: 0 16px;
|
|
25
|
-
transition: all 0.2s ease;
|
|
26
|
-
box-sizing: border-box;
|
|
27
|
-
|
|
28
|
-
&:hover:not(:disabled) {
|
|
29
|
-
border-color: #8ba8b8;
|
|
30
|
-
background: #f8fafb;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&:active:not(:disabled) {
|
|
34
|
-
transform: scale(0.98);
|
|
35
|
-
background: #f0f4f6;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&:disabled {
|
|
39
|
-
opacity: 0.5;
|
|
40
|
-
cursor: not-allowed;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.action-icon {
|
|
45
|
-
width: 18px;
|
|
46
|
-
height: 18px;
|
|
47
|
-
font-size: 18px;
|
|
48
|
-
color: #1a365d;
|
|
49
|
-
display: flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
|
|
53
|
-
::ng-deep svg {
|
|
54
|
-
fill: #1a365d;
|
|
55
|
-
stroke: #1a365d;
|
|
56
|
-
width: 18px;
|
|
57
|
-
height: 18px;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.flex-row {
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: row;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.flex-column {
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.align-start {
|
|
72
|
-
justify-content: flex-start;
|
|
73
|
-
align-items: flex-start;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.align-center {
|
|
77
|
-
justify-content: center;
|
|
78
|
-
align-items: center;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.align-end {
|
|
82
|
-
justify-content: flex-end;
|
|
83
|
-
align-items: flex-end;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.gap-0 {
|
|
87
|
-
gap: 0;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.gap-5 {
|
|
91
|
-
gap: 5px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.gap-10 {
|
|
95
|
-
gap: 10px;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.padding-horizontal-10 {
|
|
99
|
-
padding-left: 10px;
|
|
100
|
-
padding-right: 10px;
|
|
101
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ButtonActionsComponent } from './button-actions.component';
|
|
4
|
-
|
|
5
|
-
describe('ButtonActionsComponent', () => {
|
|
6
|
-
let component: ButtonActionsComponent;
|
|
7
|
-
let fixture: ComponentFixture<ButtonActionsComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [ButtonActionsComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(ButtonActionsComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
|
2
|
-
import {ButtonActionSettings} from "../../base-model/button-action-settings";
|
|
3
|
-
import {MatDialog} from "@angular/material/dialog";
|
|
4
|
-
import {ActionCommentComponent} from "../action-comment/action-comment.component";
|
|
5
|
-
import {MatIcon} from "@angular/material/icon";
|
|
6
|
-
import {MatMenu, MatMenuItem, MatMenuTrigger} from "@angular/material/menu";
|
|
7
|
-
import {MatIconButton} from "@angular/material/button";
|
|
8
|
-
import {NgClass, NgForOf, NgIf} from "@angular/common";
|
|
9
|
-
import {TranslateModule} from "@ngx-translate/core";
|
|
10
|
-
|
|
11
|
-
@Component({
|
|
12
|
-
selector: 'app-button-actions',
|
|
13
|
-
standalone: true,
|
|
14
|
-
imports: [
|
|
15
|
-
MatIcon,
|
|
16
|
-
MatMenuTrigger,
|
|
17
|
-
MatIconButton,
|
|
18
|
-
MatMenu,
|
|
19
|
-
MatMenuItem,
|
|
20
|
-
NgIf,
|
|
21
|
-
NgClass,
|
|
22
|
-
NgForOf,
|
|
23
|
-
TranslateModule
|
|
24
|
-
],
|
|
25
|
-
templateUrl: './button-actions.component.html',
|
|
26
|
-
styleUrl: './button-actions.component.scss'
|
|
27
|
-
})
|
|
28
|
-
export class ButtonActionsComponent {
|
|
29
|
-
constructor(public dialog: MatDialog) { }
|
|
30
|
-
|
|
31
|
-
@Input()
|
|
32
|
-
actions: ButtonActionSettings[] =[];
|
|
33
|
-
@Input()
|
|
34
|
-
disabled?: boolean = false;
|
|
35
|
-
|
|
36
|
-
@Output()
|
|
37
|
-
clickedButton: EventEmitter<any> = new EventEmitter();
|
|
38
|
-
|
|
39
|
-
@Input()
|
|
40
|
-
buttonsAction: boolean = false;
|
|
41
|
-
|
|
42
|
-
@Input()
|
|
43
|
-
listAction: ButtonActionSettings[] = [];
|
|
44
|
-
ngOnInit(): void {
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
getClickedAction(action: ButtonActionSettings) {
|
|
49
|
-
if (action.showCommentDialog === true) {
|
|
50
|
-
const dialogRef = this.dialog.open(ActionCommentComponent, {
|
|
51
|
-
data: {label: action.label, isTermination: action.commentRequired, external: false,
|
|
52
|
-
warningMsg: false},
|
|
53
|
-
width: '600px',
|
|
54
|
-
height: 'auto',
|
|
55
|
-
direction: 'ltr' // this.authService.dir === 'rtl' ? 'rtl': 'ltr'
|
|
56
|
-
});
|
|
57
|
-
dialogRef.afterClosed().subscribe(result => {
|
|
58
|
-
if (result) {
|
|
59
|
-
action.comment = result.comment;
|
|
60
|
-
action.shareExternal = result.shareExternal;
|
|
61
|
-
this.clickedButton.emit(action);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
} else {
|
|
66
|
-
this.clickedButton.emit(action);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
}
|
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
<div class="baseTable flex-column">
|
|
2
|
-
<div class="left-align">
|
|
3
|
-
<app-attachment-uploader #uploader
|
|
4
|
-
*ngIf="isBulkItemsSupported"
|
|
5
|
-
(fileSelected)="handleFileUpload($event)">
|
|
6
|
-
</app-attachment-uploader>
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<div class="flex-row full-width">
|
|
10
|
-
<div class="flex-half flex-column align-center-start">
|
|
11
|
-
<app-title-bar [pageTitle]="pageInfo.hideTitle ? '' : pageInfo.labelsSection+'.list_title'"
|
|
12
|
-
[titleMode]="''"
|
|
13
|
-
[newAction]="false"
|
|
14
|
-
[showExtractButton]="!pageInfo.hideExtractButton">
|
|
15
|
-
</app-title-bar>
|
|
16
|
-
<span class="font-small">{{ 'totalCountItem' | translate }} : {{ this.totalElements }}</span>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="flex-half flex-column align-start-end">
|
|
19
|
-
<mat-chip-listbox aria-label="Color selection" [multiple]="false" *ngIf="pageInfo.draftSupported">
|
|
20
|
-
<mat-chip-option [selected]="!this.isPending" [color]="'accent'" [value]="'COMPLETED'"
|
|
21
|
-
(click)="switchViewMode(false)">{{ 'finished' | translate }}
|
|
22
|
-
</mat-chip-option>
|
|
23
|
-
<mat-chip-option [selected]="this.isPending" [color]="'accent'" [value]="'PENDING'"
|
|
24
|
-
(click)="switchViewMode(true)">{{ 'todo' | translate }}
|
|
25
|
-
</mat-chip-option>
|
|
26
|
-
</mat-chip-listbox>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
|
-
<ng-container *ngIf="showSearch()">
|
|
31
|
-
<div class="flex-row full-width">
|
|
32
|
-
<div class="flex-80 flex-column align-start-end">
|
|
33
|
-
<app-base-form-canvas class="flex-fill"
|
|
34
|
-
[pageInfo]="pageInfo"
|
|
35
|
-
[fields]="searchFormFields"
|
|
36
|
-
[editable]="true"
|
|
37
|
-
(formUpdated)="updateSearchForm($event)">
|
|
38
|
-
</app-base-form-canvas>
|
|
39
|
-
</div>
|
|
40
|
-
<div class="flex-15 flex-column align-start-end">
|
|
41
|
-
<div class="flex-row align-center-center gap-8 full-width">
|
|
42
|
-
<button mat-button color="primary" type="button" (click)="doSearch()" id="editable-search-btn">
|
|
43
|
-
<mat-icon>search</mat-icon>
|
|
44
|
-
{{ 'search' | translate }}
|
|
45
|
-
</button>
|
|
46
|
-
<button mat-button color="primary" type="button" (click)="clearSearch()" id="editable-clear-search-btn">
|
|
47
|
-
<mat-icon>clear</mat-icon>
|
|
48
|
-
{{ 'clear' | translate }}
|
|
49
|
-
</button>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
</ng-container>
|
|
54
|
-
|
|
55
|
-
<div class="flex-row full-width baseTable__detailsColumn">
|
|
56
|
-
<div class="flex-full">
|
|
57
|
-
<ng-container *ngIf="isLoaded">
|
|
58
|
-
<div class="flex-row mainTable gap-0 align-start-start">
|
|
59
|
-
<form [formGroup]="formParam" class="flex-fill">
|
|
60
|
-
<table [dataSource]="dataFormArray.controls" class="flex-fill" mat-table matSort>
|
|
61
|
-
<ng-container *ngFor="let column of this.fields; let i = index">
|
|
62
|
-
<ng-container matColumnDef="{{column.property}}">
|
|
63
|
-
<ng-container [ngSwitch]="column.type">
|
|
64
|
-
<ng-container *ngSwitchCase="'equation-builder'">
|
|
65
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}
|
|
66
|
-
</th>
|
|
67
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
68
|
-
[ngClass]="['mainTable__td__text-secondary__td']" mat-cell>
|
|
69
|
-
<lib-equation-builder
|
|
70
|
-
[form]="element"
|
|
71
|
-
[field]="column"
|
|
72
|
-
[readOnly]="column.readonly"
|
|
73
|
-
[isPending]="isPending"
|
|
74
|
-
(valueChanged)="handleEquationChange($event, element, column)">
|
|
75
|
-
</lib-equation-builder>
|
|
76
|
-
</td>
|
|
77
|
-
</ng-container>
|
|
78
|
-
|
|
79
|
-
<ng-container *ngSwitchCase="'lookup'">
|
|
80
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}
|
|
81
|
-
</th>
|
|
82
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
83
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
84
|
-
mat-cell>
|
|
85
|
-
<app-auto-complete
|
|
86
|
-
[form]="element"
|
|
87
|
-
[field]="column"
|
|
88
|
-
[defaultValue]="element.get(column.property)?.value"
|
|
89
|
-
(selectedValue)="patchLookupValue($event, column.property)">
|
|
90
|
-
</app-auto-complete>
|
|
91
|
-
</td>
|
|
92
|
-
</ng-container>
|
|
93
|
-
<ng-container *ngSwitchCase="'list'">
|
|
94
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}</th>
|
|
95
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
96
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
97
|
-
mat-cell>
|
|
98
|
-
<mat-label>{{element}}</mat-label>
|
|
99
|
-
<mat-select
|
|
100
|
-
formControlName="{{column.property}}"
|
|
101
|
-
[attr.aria-label]="column.label! | translate"
|
|
102
|
-
[multiple]="false"
|
|
103
|
-
[(value)]="element[column.property]">
|
|
104
|
-
<ng-container>
|
|
105
|
-
<mat-option
|
|
106
|
-
*ngFor="let item of column.listOptions"
|
|
107
|
-
[value]="item">
|
|
108
|
-
{{ getOptionValue(item) }}
|
|
109
|
-
</mat-option>
|
|
110
|
-
</ng-container>
|
|
111
|
-
</mat-select>
|
|
112
|
-
</td>
|
|
113
|
-
</ng-container>
|
|
114
|
-
<ng-container *ngSwitchCase="'stateType'">
|
|
115
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
116
|
-
{{ 'action' | translate }}
|
|
117
|
-
</th>
|
|
118
|
-
<td *matCellDef="let element" class="mainTable__td mainTable__td__text-secondary__td" mat-cell>
|
|
119
|
-
<div class="flex-column">
|
|
120
|
-
<div class="flex-row full-width">
|
|
121
|
-
<div class="flex-third flex-column align-center-center">
|
|
122
|
-
<button mat-button class="btn-none-background-primary"
|
|
123
|
-
color="primary"
|
|
124
|
-
[disabled]="disabledSaveButton(element)"
|
|
125
|
-
(click)="fieldButtonEvent(column,element,SAVE)"
|
|
126
|
-
[attr.id]="'editable-save-' + (element.value?.id || '')">
|
|
127
|
-
{{ getPositiveWfActionKey(element.value.stateType) | translate }}
|
|
128
|
-
</button>
|
|
129
|
-
</div>
|
|
130
|
-
<div class="flex-third flex-column align-center-center">
|
|
131
|
-
<button *ngIf="isPending" mat-button class="btn-none-background-primary"
|
|
132
|
-
color="accent"
|
|
133
|
-
(click)="fieldButtonEvent(column,element,REJECT)"
|
|
134
|
-
[attr.id]="'editable-reject-' + (element.value?.id || '')">
|
|
135
|
-
{{ getNegativeWfActionKey(element.value.stateType) | translate }}
|
|
136
|
-
</button>
|
|
137
|
-
</div>
|
|
138
|
-
<div class="flex-third flex-column align-center-center"></div>
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|
|
141
|
-
</td>
|
|
142
|
-
</ng-container>
|
|
143
|
-
<ng-container *ngSwitchCase="'year'">
|
|
144
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}
|
|
145
|
-
</th>
|
|
146
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
147
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
148
|
-
mat-cell>
|
|
149
|
-
<mat-form-field class="flex-auto fx-flex-fill" appearance="outline">
|
|
150
|
-
<mat-label>{{ labelKey(column) | translate }}</mat-label>
|
|
151
|
-
<input matInput
|
|
152
|
-
[disabled]="column.readonly"
|
|
153
|
-
[readonly]="column.readonly"
|
|
154
|
-
[matDatepicker]="picker"
|
|
155
|
-
[formControl]="getField(element, column)"
|
|
156
|
-
[required]="column.required"
|
|
157
|
-
[attr.aria-required]="column.required"
|
|
158
|
-
[attr.aria-labelledby]="'label-' + column.property"
|
|
159
|
-
[attr.aria-describedby]="'error-' + column.property">
|
|
160
|
-
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
|
161
|
-
<mat-datepicker #picker startView="multi-year"
|
|
162
|
-
(yearSelected)="setMonthAndYear($event, picker, element,column)"
|
|
163
|
-
panelClass="example-month-picker"></mat-datepicker>
|
|
164
|
-
|
|
165
|
-
</mat-form-field>
|
|
166
|
-
<!-- <mat-form-field class="flex-auto" appearance="outline" fxFlexFill>-->
|
|
167
|
-
<!-- <input matInput [formControl]="getField(element, column)">-->
|
|
168
|
-
<!-- </mat-form-field>-->
|
|
169
|
-
</td>
|
|
170
|
-
</ng-container>
|
|
171
|
-
<ng-container *ngSwitchCase="'number'">
|
|
172
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
173
|
-
{{ labelKey(column) | translate }}
|
|
174
|
-
</th>
|
|
175
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
176
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
177
|
-
mat-cell>
|
|
178
|
-
<mat-form-field class="flex-auto fx-flex-fill" appearance="outline">
|
|
179
|
-
<!-- Visually hidden label just to trigger the floating label and asterisk -->
|
|
180
|
-
<mat-label>
|
|
181
|
-
</mat-label>
|
|
182
|
-
|
|
183
|
-
<input matInput
|
|
184
|
-
type="number"
|
|
185
|
-
[formControl]="getField(element, column)"
|
|
186
|
-
[required]="column.required"
|
|
187
|
-
[readonly]="column.readonly"
|
|
188
|
-
[attr.aria-required]="column.required"
|
|
189
|
-
[attr.aria-labelledby]="'label-' + column.property"
|
|
190
|
-
[attr.aria-describedby]="'error-' + column.property">
|
|
191
|
-
</mat-form-field>
|
|
192
|
-
</td>
|
|
193
|
-
</ng-container>
|
|
194
|
-
<ng-container *ngSwitchCase="'status'">
|
|
195
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
196
|
-
{{ labelKey(column) | translate }}
|
|
197
|
-
</th>
|
|
198
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
199
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
200
|
-
mat-cell>
|
|
201
|
-
<mat-checkbox
|
|
202
|
-
style="padding-bottom: 14px; padding-top: 14px;"
|
|
203
|
-
[formControl]="getField(element, column)"
|
|
204
|
-
[required]="column.required"
|
|
205
|
-
[attr.aria-required]="column.required"
|
|
206
|
-
[attr.aria-labelledby]="'label-' + column.property"
|
|
207
|
-
[attr.aria-describedby]="'error-' + column.property"
|
|
208
|
-
[style.pointer-events]="column.readonly ? 'none' : 'auto'"
|
|
209
|
-
[style.opacity]="column.readonly ? 0.7 : 1"
|
|
210
|
-
(click)="column.readonly ? $event.preventDefault() : null">
|
|
211
|
-
</mat-checkbox>
|
|
212
|
-
</td>
|
|
213
|
-
</ng-container>
|
|
214
|
-
<ng-container *ngSwitchCase="'text'">
|
|
215
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
216
|
-
{{ labelKey(column) | translate }}
|
|
217
|
-
</th>
|
|
218
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
219
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
220
|
-
mat-cell>
|
|
221
|
-
<mat-form-field class="flex-auto fx-flex-fill" appearance="outline">
|
|
222
|
-
<mat-label>
|
|
223
|
-
{{ labelKey(column) | translate }}
|
|
224
|
-
</mat-label>
|
|
225
|
-
<input matInput
|
|
226
|
-
type="text"
|
|
227
|
-
[formControl]="getField(element, column)"
|
|
228
|
-
[required]="column.required"
|
|
229
|
-
[readonly]="column.readonly"
|
|
230
|
-
[attr.aria-required]="column.required"
|
|
231
|
-
[attr.aria-labelledby]="'label-' + column.property"
|
|
232
|
-
[attr.aria-describedby]="'error-' + column.property">
|
|
233
|
-
</mat-form-field>
|
|
234
|
-
</td>
|
|
235
|
-
</ng-container>
|
|
236
|
-
<ng-container *ngSwitchCase="'date'">
|
|
237
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>
|
|
238
|
-
{{ labelKey(column) | translate }}
|
|
239
|
-
</th>
|
|
240
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
241
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
242
|
-
mat-cell>
|
|
243
|
-
<mat-form-field class="flex-auto fx-flex-fill" appearance="outline">
|
|
244
|
-
<input matInput
|
|
245
|
-
[matDatepicker]="xpicker"
|
|
246
|
-
[formControl]="getField(element, column)"
|
|
247
|
-
[required]="column.required"
|
|
248
|
-
[readonly]="column.readonly"
|
|
249
|
-
[disabled]="column.readonly"
|
|
250
|
-
[attr.aria-required]="column.required"
|
|
251
|
-
[attr.aria-labelledby]="'label-' + column.property"
|
|
252
|
-
[attr.aria-describedby]="'error-' + column.property">
|
|
253
|
-
<mat-datepicker-toggle
|
|
254
|
-
matSuffix
|
|
255
|
-
[for]="xpicker"
|
|
256
|
-
[disabled]="column.readonly">
|
|
257
|
-
</mat-datepicker-toggle>
|
|
258
|
-
<mat-datepicker #xpicker></mat-datepicker>
|
|
259
|
-
</mat-form-field>
|
|
260
|
-
</td>
|
|
261
|
-
</ng-container>
|
|
262
|
-
|
|
263
|
-
<ng-container *ngSwitchDefault>
|
|
264
|
-
<th *matHeaderCellDef class="mainTable__th" mat-header-cell>{{ labelKey(column) | translate }}
|
|
265
|
-
</th>
|
|
266
|
-
<td *matCellDef="let element" class="mainTable__td"
|
|
267
|
-
[ngClass]="['mainTable__td__text-secondary__td']"
|
|
268
|
-
mat-cell>
|
|
269
|
-
<mat-form-field class="flex-auto fx-flex-fill" appearance="outline">
|
|
270
|
-
<input matInput
|
|
271
|
-
[readonly]="column.readonly"
|
|
272
|
-
[attr.aria-required]="column.required"
|
|
273
|
-
[formControl]="getField(element, column)">
|
|
274
|
-
</mat-form-field>
|
|
275
|
-
</td>
|
|
276
|
-
</ng-container>
|
|
277
|
-
</ng-container>
|
|
278
|
-
</ng-container>
|
|
279
|
-
</ng-container>
|
|
280
|
-
<tr *matHeaderRowDef="visibleColumns" mat-header-row></tr>
|
|
281
|
-
<tr (click)="onSelectItem(row)" (auxclick)="openNewTab(row)"
|
|
282
|
-
*matRowDef="let row; columns: visibleColumns | paginate:config"
|
|
283
|
-
[attr.id]="'editable-row-' + (row?.value?.id || row?.value?.key || '')"
|
|
284
|
-
mat-row></tr>
|
|
285
|
-
</table>
|
|
286
|
-
</form>
|
|
287
|
-
</div>
|
|
288
|
-
|
|
289
|
-
<div *ngIf="noDataFound && !pageInfo.lazyLoadData" class="flex-row dataNotFound">
|
|
290
|
-
<div class="flex-column flex-full">
|
|
291
|
-
<span class="dataNotFound__details">
|
|
292
|
-
<mat-icon class="dataNotFound__details__icon">info</mat-icon>
|
|
293
|
-
<span>{{ 'dataNotFound' | translate }}</span>
|
|
294
|
-
</span>
|
|
295
|
-
</div>
|
|
296
|
-
</div>
|
|
297
|
-
|
|
298
|
-
<div class="flex-row mainTable" *ngIf="!selectedFileFromUploader">
|
|
299
|
-
<div>
|
|
300
|
-
<button *ngIf="!isPending && pageInfo.hasAddButton" mat-button color="primary" type="button"
|
|
301
|
-
(click)="addNewItem()" id="editable-add-item-btn">
|
|
302
|
-
<mat-icon>add_box</mat-icon>
|
|
303
|
-
{{ translationKey | translate }}
|
|
304
|
-
</button>
|
|
305
|
-
</div>
|
|
306
|
-
</div>
|
|
307
|
-
|
|
308
|
-
<div class="flex-row flex-wrap align-center-center main-pagination" *ngIf="totalElements > 0">
|
|
309
|
-
<div class="flex-column flex-full">
|
|
310
|
-
<app-paginator [currentPage]="pageIndex" [totalItems]="totalElements" [pageSize]="pageSize"
|
|
311
|
-
[pageSizeOptions]="[5, 10, 25, 50]" (pageChange)="onPageChange($event)"
|
|
312
|
-
(pageSizeChange)="onPageSizeChange($event)"></app-paginator>
|
|
313
|
-
</div>
|
|
314
|
-
<div class="flex-column flex-full countItem hide-gt-xs">
|
|
315
|
-
<span class="countItem__totalElement">{{ 'totalCountItem' | translate }} : {{ this.totalElements }}</span>
|
|
316
|
-
</div>
|
|
317
|
-
<div class="flex-column flex-2"></div>
|
|
318
|
-
</div>
|
|
319
|
-
</ng-container>
|
|
320
|
-
</div>
|
|
321
|
-
</div>
|
|
322
|
-
|
|
323
|
-
<div *ngIf="isBulkItemsSupported" class="flex-row gap-10 align-start-start mainTable">
|
|
324
|
-
<div>
|
|
325
|
-
<button mat-flat-button color="primary" type="button" (click)="addBulkItems()" [disabled]="shouldDisableBulkAdd()" id="editable-bulk-add-btn">
|
|
326
|
-
<mat-icon>add_box</mat-icon>
|
|
327
|
-
{{ 'addAll' | translate }}
|
|
328
|
-
</button>
|
|
329
|
-
</div>
|
|
330
|
-
<div>
|
|
331
|
-
<button mat-flat-button color="warn" type="button" [disabled]="!hasDataToClear()" (click)="clearBulkItems()" id="editable-bulk-clear-btn">
|
|
332
|
-
<mat-icon>delete</mat-icon>
|
|
333
|
-
{{ 'clearAll' | translate }}
|
|
334
|
-
</button>
|
|
335
|
-
</div>
|
|
336
|
-
</div>
|
|
337
|
-
</div>
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
.baseTable {
|
|
2
|
-
padding: 20px;
|
|
3
|
-
//margin-inline: 8px;
|
|
4
|
-
//width: max-content;
|
|
5
|
-
}
|
|
6
|
-
.example-month-picker .mat-calendar-period-button {
|
|
7
|
-
pointer-events: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.example-month-picker .mat-calendar-arrow {
|
|
11
|
-
display: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.responsive-top-gap {
|
|
15
|
-
margin-top: 20px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@media (max-width: 959px) {
|
|
19
|
-
.responsive-top-gap {
|
|
20
|
-
margin-top: 1px;
|
|
21
|
-
}
|
|
22
|
-
.baseTable {
|
|
23
|
-
padding: 20px;
|
|
24
|
-
margin-inline: 8px;
|
|
25
|
-
width: max-content;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.flex-row {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.flex-column {
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.flex-half {
|
|
41
|
-
flex: 0 0 50%;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.flex-80 {
|
|
45
|
-
flex: 0 0 80%;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.flex-15 {
|
|
49
|
-
flex: 0 0 15%;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.flex-2 {
|
|
53
|
-
flex: 0 0 2%;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.flex-full {
|
|
57
|
-
flex: 0 0 100%;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.align-start-start {
|
|
61
|
-
justify-content: flex-start;
|
|
62
|
-
align-items: flex-start;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.align-start-end {
|
|
66
|
-
justify-content: flex-end;
|
|
67
|
-
align-items: flex-start;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.align-center-start {
|
|
71
|
-
justify-content: flex-start;
|
|
72
|
-
align-items: center;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.align-center-center {
|
|
76
|
-
justify-content: center;
|
|
77
|
-
align-items: center;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.align-end-start {
|
|
81
|
-
justify-content: flex-start;
|
|
82
|
-
align-items: flex-end;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.align-end-end {
|
|
86
|
-
justify-content: flex-end;
|
|
87
|
-
align-items: flex-end;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.gap-8 {
|
|
91
|
-
gap: 8px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.gap-10 {
|
|
95
|
-
gap: 10px;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.gap-0 {
|
|
99
|
-
gap: 0px;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@media (max-width: 959px) {
|
|
103
|
-
.flex-column.lt-md {
|
|
104
|
-
flex-direction: column;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.flex-row.lt-md {
|
|
108
|
-
flex-direction: row;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.flex-full.lt-md {
|
|
112
|
-
flex: 0 0 100%;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.align-center-center.lt-md {
|
|
116
|
-
justify-content: center;
|
|
117
|
-
align-items: center;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
@media (max-width: 599px) {
|
|
122
|
-
.flex-hide.gt-xs {
|
|
123
|
-
display: none !important;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import {EditableBaseTableComponent} from './editable-base-table.component';
|
|
4
|
-
|
|
5
|
-
describe('BaseTableComponent', () => {
|
|
6
|
-
let component: EditableBaseTableComponent;
|
|
7
|
-
let fixture: ComponentFixture<EditableBaseTableComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ EditableBaseTableComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
fixture = TestBed.createComponent(EditableBaseTableComponent);
|
|
18
|
-
component = fixture.componentInstance;
|
|
19
|
-
fixture.detectChanges();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should create', () => {
|
|
23
|
-
expect(component).toBeTruthy();
|
|
24
|
-
});
|
|
25
|
-
});
|