verben-workflow-ui 0.5.93 → 0.5.95
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/public-api.mjs +41 -0
- package/esm2022/src/lib/base/core/base-data-page.facade.mjs +412 -0
- package/esm2022/src/lib/base/core/base-data-page.service.mjs +140 -0
- package/esm2022/src/lib/base/core/base-data-page.state.mjs +216 -0
- package/esm2022/src/lib/base/handlers/filter-handler.service.mjs +138 -0
- package/esm2022/src/lib/base/handlers/search-handler.service.mjs +31 -0
- package/esm2022/src/lib/base/handlers/sort-handler.service.mjs +73 -0
- package/esm2022/src/lib/base/index.mjs +2 -0
- package/esm2022/src/lib/base/models/api-payload.mjs +7 -0
- package/esm2022/src/lib/base/models/page-config.interface.mjs +2 -0
- package/esm2022/src/lib/base/models/page-filter-tab-option.interface.mjs +2 -0
- package/esm2022/src/lib/base/public-api.mjs +14 -0
- package/esm2022/src/lib/base/utils/column-helpers.mjs +55 -0
- package/esm2022/src/lib/base/verben-workflow-ui-src-lib-base.mjs +5 -0
- package/esm2022/src/lib/components/actors/actors.columns.mjs +39 -0
- package/esm2022/src/lib/components/actors/actors.component.mjs +175 -0
- package/esm2022/src/lib/components/actors/actors.config.mjs +49 -0
- package/esm2022/src/lib/components/actors/actors.facade.mjs +57 -0
- package/esm2022/src/lib/components/actors/actors.form.component.mjs +74 -0
- package/esm2022/src/lib/components/actors/actors.module.mjs +21 -0
- package/esm2022/src/lib/components/actors/actors.service.mjs +65 -0
- package/esm2022/src/lib/components/actors/actors.state.mjs +31 -0
- package/esm2022/src/lib/components/actors/index.mjs +2 -0
- package/esm2022/src/lib/components/actors/public-api.mjs +3 -0
- package/esm2022/src/lib/components/actors/verben-workflow-ui-src-lib-components-actors.mjs +5 -0
- package/esm2022/src/lib/components/designer/components/label-editor.component.mjs +148 -0
- package/esm2022/src/lib/components/designer/components/node-selector.component.mjs +317 -0
- package/esm2022/src/lib/components/designer/components/swimlane-label.component.mjs +161 -0
- package/esm2022/src/lib/components/designer/components/swimlane-popup.component.mjs +85 -0
- package/esm2022/src/lib/components/designer/components/wf-canvas.component.mjs +715 -0
- package/esm2022/src/lib/components/designer/components/wf-designer.component.mjs +135 -0
- package/esm2022/src/lib/components/designer/components/wf-toolbar.component.mjs +56 -0
- package/esm2022/src/lib/components/designer/index.mjs +2 -0
- package/esm2022/src/lib/components/designer/models/types.mjs +2 -0
- package/esm2022/src/lib/components/designer/public-api.mjs +3 -0
- package/esm2022/src/lib/components/designer/services/canvas-state.service.mjs +50 -0
- package/esm2022/src/lib/components/designer/services/connection-segment-interaction.service.mjs +108 -0
- package/esm2022/src/lib/components/designer/services/connection.service.mjs +266 -0
- package/esm2022/src/lib/components/designer/services/keyboard-handler.service.mjs +43 -0
- package/esm2022/src/lib/components/designer/services/label-management.service.mjs +66 -0
- package/esm2022/src/lib/components/designer/services/node-finder.service.mjs +30 -0
- package/esm2022/src/lib/components/designer/services/node-interaction.service.mjs +108 -0
- package/esm2022/src/lib/components/designer/services/node-precondition.service.mjs +108 -0
- package/esm2022/src/lib/components/designer/services/node-selection.service.mjs +96 -0
- package/esm2022/src/lib/components/designer/services/orthogonal-router.service.mjs +167 -0
- package/esm2022/src/lib/components/designer/services/position-update.service.mjs +45 -0
- package/esm2022/src/lib/components/designer/services/rendering.service.mjs +236 -0
- package/esm2022/src/lib/components/designer/services/swimlane-management.service.mjs +145 -0
- package/esm2022/src/lib/components/designer/services/swimlane-stats.service.mjs +44 -0
- package/esm2022/src/lib/components/designer/services/viewport.service.mjs +30 -0
- package/esm2022/src/lib/components/designer/services/wf-facade.service.mjs +239 -0
- package/esm2022/src/lib/components/designer/services/wf-mapper.service.mjs +323 -0
- package/esm2022/src/lib/components/designer/services/wf-persistence.service.mjs +169 -0
- package/esm2022/src/lib/components/designer/services/wf-state.service.mjs +108 -0
- package/esm2022/src/lib/components/designer/verben-workflow-ui-src-lib-components-designer.mjs +5 -0
- package/esm2022/src/lib/components/expiration/expiration.component.mjs +49 -0
- package/esm2022/src/lib/components/expiration/expiration.module.mjs +19 -0
- package/esm2022/src/lib/components/expiration/index.mjs +2 -0
- package/esm2022/src/lib/components/expiration/public-api.mjs +3 -0
- package/esm2022/src/lib/components/expiration/verben-workflow-ui-src-lib-components-expiration.mjs +5 -0
- package/esm2022/src/lib/components/file-render/file-render.component.mjs +45 -0
- package/esm2022/src/lib/components/file-render/file-render.module.mjs +35 -0
- package/esm2022/src/lib/components/file-render/index.mjs +2 -0
- package/esm2022/src/lib/components/file-render/public-api.mjs +3 -0
- package/esm2022/src/lib/components/file-render/verben-workflow-ui-src-lib-components-file-render.mjs +5 -0
- package/esm2022/src/lib/components/file-upload/file-upload.component.mjs +93 -0
- package/esm2022/src/lib/components/file-upload/file-upload.module.mjs +63 -0
- package/esm2022/src/lib/components/file-upload/index.mjs +2 -0
- package/esm2022/src/lib/components/file-upload/public-api.mjs +3 -0
- package/esm2022/src/lib/components/file-upload/verben-workflow-ui-src-lib-components-file-upload.mjs +5 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.columns.mjs +21 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.component.mjs +203 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.config.mjs +47 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.facade.mjs +60 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.form.component.mjs +52 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.module.mjs +21 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.service.mjs +35 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.state.mjs +15 -0
- package/esm2022/src/lib/components/flowable-status/index.mjs +2 -0
- package/esm2022/src/lib/components/flowable-status/public-api.mjs +3 -0
- package/esm2022/src/lib/components/flowable-status/verben-workflow-ui-src-lib-components-flowable-status.mjs +5 -0
- package/esm2022/src/lib/components/form-control/form-control.component.mjs +155 -0
- package/esm2022/src/lib/components/form-control/form-control.module.mjs +75 -0
- package/esm2022/src/lib/components/form-control/index.mjs +2 -0
- package/esm2022/src/lib/components/form-control/public-api.mjs +3 -0
- package/esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs +5 -0
- package/esm2022/src/lib/components/form-group/base-table-style.mjs +53 -0
- package/esm2022/src/lib/components/form-group/form-fields/form-fields.component.mjs +952 -0
- package/esm2022/src/lib/components/form-group/form-fields/form-fields.module.mjs +75 -0
- package/esm2022/src/lib/components/form-group/form-fields/form-fields.service.mjs +73 -0
- package/esm2022/src/lib/components/form-group/form-group.component.mjs +699 -0
- package/esm2022/src/lib/components/form-group/form-group.module.mjs +85 -0
- package/esm2022/src/lib/components/form-group/form-group.service.mjs +56 -0
- package/esm2022/src/lib/components/form-group/index.mjs +2 -0
- package/esm2022/src/lib/components/form-group/public-api.mjs +5 -0
- package/esm2022/src/lib/components/form-group/verben-workflow-ui-src-lib-components-form-group.mjs +5 -0
- package/esm2022/src/lib/components/form-response/form-response.component.mjs +641 -0
- package/esm2022/src/lib/components/form-response/form-response.module.mjs +76 -0
- package/esm2022/src/lib/components/form-response/form-response.service.mjs +54 -0
- package/esm2022/src/lib/components/form-response/index.mjs +2 -0
- package/esm2022/src/lib/components/form-response/public-api.mjs +3 -0
- package/esm2022/src/lib/components/form-response/verben-workflow-ui-src-lib-components-form-response.mjs +5 -0
- package/esm2022/src/lib/components/form-timer/form-timer.component.mjs +47 -0
- package/esm2022/src/lib/components/form-timer/form-timer.module.mjs +28 -0
- package/esm2022/src/lib/components/form-timer/index.mjs +2 -0
- package/esm2022/src/lib/components/form-timer/public-api.mjs +3 -0
- package/esm2022/src/lib/components/form-timer/verben-workflow-ui-src-lib-components-form-timer.mjs +5 -0
- package/esm2022/src/lib/components/form-viewer/form-viewer.component.mjs +38 -0
- package/esm2022/src/lib/components/form-viewer/form-viewer.module.mjs +78 -0
- package/esm2022/src/lib/components/form-viewer/index.mjs +2 -0
- package/esm2022/src/lib/components/form-viewer/public-api.mjs +3 -0
- package/esm2022/src/lib/components/form-viewer/verben-workflow-ui-src-lib-components-form-viewer.mjs +5 -0
- package/esm2022/src/lib/components/forms/base-table-style.mjs +53 -0
- package/esm2022/src/lib/components/forms/forms.component.mjs +673 -0
- package/esm2022/src/lib/components/forms/forms.module.mjs +18 -0
- package/esm2022/src/lib/components/forms/forms.service.mjs +68 -0
- package/esm2022/src/lib/components/forms/index.mjs +2 -0
- package/esm2022/src/lib/components/forms/public-api.mjs +3 -0
- package/esm2022/src/lib/components/forms/verben-workflow-ui-src-lib-components-forms.mjs +5 -0
- package/esm2022/src/lib/components/journal/index.mjs +2 -0
- package/esm2022/src/lib/components/journal/journal.component.mjs +11 -0
- package/esm2022/src/lib/components/journal/journal.module.mjs +18 -0
- package/esm2022/src/lib/components/journal/public-api.mjs +3 -0
- package/esm2022/src/lib/components/journal/verben-workflow-ui-src-lib-components-journal.mjs +5 -0
- package/esm2022/src/lib/components/my-queue/index.mjs +2 -0
- package/esm2022/src/lib/components/my-queue/my-queue.columns.mjs +34 -0
- package/esm2022/src/lib/components/my-queue/my-queue.component.mjs +342 -0
- package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +502 -0
- package/esm2022/src/lib/components/my-queue/my-queue.module.mjs +46 -0
- package/esm2022/src/lib/components/my-queue/my-queue.service.mjs +144 -0
- package/esm2022/src/lib/components/my-queue/my-queue.state.mjs +108 -0
- package/esm2022/src/lib/components/my-queue/public-api.mjs +4 -0
- package/esm2022/src/lib/components/my-queue/tasks.form.component.mjs +167 -0
- package/esm2022/src/lib/components/my-queue/verben-workflow-ui-src-lib-components-my-queue.mjs +5 -0
- package/esm2022/src/lib/components/operation-popup/index.mjs +2 -0
- package/esm2022/src/lib/components/operation-popup/operation-popup.component.mjs +382 -0
- package/esm2022/src/lib/components/operation-popup/operation-popup.facade.mjs +338 -0
- package/esm2022/src/lib/components/operation-popup/operation-popup.service.mjs +71 -0
- package/esm2022/src/lib/components/operation-popup/operation-popup.state.mjs +44 -0
- package/esm2022/src/lib/components/operation-popup/public-api.mjs +2 -0
- package/esm2022/src/lib/components/operation-popup/verben-workflow-ui-src-lib-components-operation-popup.mjs +5 -0
- package/esm2022/src/lib/components/stage-details/index.mjs +2 -0
- package/esm2022/src/lib/components/stage-details/public-api.mjs +3 -0
- package/esm2022/src/lib/components/stage-details/stage-details.component.mjs +49 -0
- package/esm2022/src/lib/components/stage-details/stage-details.module.mjs +19 -0
- package/esm2022/src/lib/components/stage-details/verben-workflow-ui-src-lib-components-stage-details.mjs +5 -0
- package/esm2022/src/lib/components/task-form/index.mjs +2 -0
- package/esm2022/src/lib/components/task-form/public-api.mjs +3 -0
- package/esm2022/src/lib/components/task-form/task-form.component.mjs +18 -0
- package/esm2022/src/lib/components/task-form/task-form.module.mjs +72 -0
- package/esm2022/src/lib/components/task-form/verben-workflow-ui-src-lib-components-task-form.mjs +5 -0
- package/esm2022/src/lib/components/task-history/index.mjs +2 -0
- package/esm2022/src/lib/components/task-history/public-api.mjs +3 -0
- package/esm2022/src/lib/components/task-history/task-history.component.mjs +217 -0
- package/esm2022/src/lib/components/task-history/task-history.module.mjs +20 -0
- package/esm2022/src/lib/components/task-history/task-history.service.mjs +32 -0
- package/esm2022/src/lib/components/task-history/verben-workflow-ui-src-lib-components-task-history.mjs +5 -0
- package/esm2022/src/lib/components/task-notification/base-table-style.mjs +53 -0
- package/esm2022/src/lib/components/task-notification/index.mjs +2 -0
- package/esm2022/src/lib/components/task-notification/public-api.mjs +3 -0
- package/esm2022/src/lib/components/task-notification/task-notification.component.mjs +670 -0
- package/esm2022/src/lib/components/task-notification/task-notification.module.mjs +18 -0
- package/esm2022/src/lib/components/task-notification/task-notification.service.mjs +256 -0
- package/esm2022/src/lib/components/task-notification/verben-workflow-ui-src-lib-components-task-notification.mjs +5 -0
- package/esm2022/src/lib/components/tasks/index.mjs +2 -0
- package/esm2022/src/lib/components/tasks/public-api.mjs +6 -0
- package/esm2022/src/lib/components/tasks/tasks.columns.mjs +48 -0
- package/esm2022/src/lib/components/tasks/tasks.component.mjs +193 -0
- package/esm2022/src/lib/components/tasks/tasks.facade.mjs +372 -0
- package/esm2022/src/lib/components/tasks/tasks.form.component.mjs +162 -0
- package/esm2022/src/lib/components/tasks/tasks.models.mjs +4 -0
- package/esm2022/src/lib/components/tasks/tasks.module.mjs +52 -0
- package/esm2022/src/lib/components/tasks/tasks.service.mjs +137 -0
- package/esm2022/src/lib/components/tasks/tasks.state.mjs +108 -0
- package/esm2022/src/lib/components/tasks/verben-workflow-ui-src-lib-components-tasks.mjs +5 -0
- package/esm2022/src/lib/components/wf/index.mjs +2 -0
- package/esm2022/src/lib/components/wf/public-api.mjs +4 -0
- package/esm2022/src/lib/components/wf/verben-workflow-ui-src-lib-components-wf.mjs +5 -0
- package/esm2022/src/lib/components/wf/wf.columns.mjs +34 -0
- package/esm2022/src/lib/components/wf/wf.component.mjs +68 -0
- package/esm2022/src/lib/components/wf/wf.module.mjs +22 -0
- package/esm2022/src/lib/components/wf/wf.service.mjs +82 -0
- package/esm2022/src/lib/components/workflow/column.mjs +38 -0
- package/esm2022/src/lib/components/workflow/helper.mjs +47 -0
- package/esm2022/src/lib/components/workflow/index.mjs +2 -0
- package/esm2022/src/lib/components/workflow/public-api.mjs +4 -0
- package/esm2022/src/lib/components/workflow/table-style.mjs +53 -0
- package/esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs +5 -0
- package/esm2022/src/lib/components/workflow/workflow.component.mjs +210 -0
- package/esm2022/src/lib/components/workflow/workflow.module.mjs +19 -0
- package/esm2022/src/lib/components/workflow-designer/action-dialog/action-dialog.component.mjs +125 -0
- package/esm2022/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.mjs +78 -0
- package/esm2022/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.mjs +87 -0
- package/esm2022/src/lib/components/workflow-designer/decision-popup/decision-popup.component.mjs +84 -0
- package/esm2022/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.mjs +1265 -0
- package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.mjs +96 -0
- package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.mjs +2 -0
- package/esm2022/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.mjs +242 -0
- package/esm2022/src/lib/components/workflow-designer/index.mjs +2 -0
- package/esm2022/src/lib/components/workflow-designer/public-api.mjs +5 -0
- package/esm2022/src/lib/components/workflow-designer/services/connection.service.mjs +237 -0
- package/esm2022/src/lib/components/workflow-designer/services/node-management.service.mjs +321 -0
- package/esm2022/src/lib/components/workflow-designer/services/popup.service.mjs +240 -0
- package/esm2022/src/lib/components/workflow-designer/services/swimlane.service.mjs +158 -0
- package/esm2022/src/lib/components/workflow-designer/services/transformer.service.mjs +278 -0
- package/esm2022/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.mjs +177 -0
- package/esm2022/src/lib/components/workflow-designer/stage-node/stage-node.component.mjs +226 -0
- package/esm2022/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.mjs +138 -0
- package/esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs +5 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-data.service.mjs +210 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.component.mjs +460 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.module.mjs +126 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.state.mjs +922 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.types.mjs +2 -0
- package/esm2022/src/lib/components/workflow-stage/index.mjs +2 -0
- package/esm2022/src/lib/components/workflow-stage/public-api.mjs +3 -0
- package/esm2022/src/lib/components/workflow-stage/verben-workflow-ui-src-lib-components-workflow-stage.mjs +5 -0
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.component.mjs +328 -0
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.module.mjs +82 -0
- package/esm2022/src/lib/components/workflows/index.mjs +2 -0
- package/esm2022/src/lib/components/workflows/public-api.mjs +7 -0
- package/esm2022/src/lib/components/workflows/verben-workflow-ui-src-lib-components-workflows.mjs +5 -0
- package/esm2022/src/lib/components/workflows/workflow-form/workflow-form.component.mjs +89 -0
- package/esm2022/src/lib/components/workflows/workflows.api.mjs +63 -0
- package/esm2022/src/lib/components/workflows/workflows.columns.mjs +39 -0
- package/esm2022/src/lib/components/workflows/workflows.component.mjs +236 -0
- package/esm2022/src/lib/components/workflows/workflows.config.mjs +51 -0
- package/esm2022/src/lib/components/workflows/workflows.facade.mjs +114 -0
- package/esm2022/src/lib/components/workflows/workflows.module.mjs +21 -0
- package/esm2022/src/lib/components/workflows/workflows.service.mjs +63 -0
- package/esm2022/src/lib/components/workflows/workflows.state.mjs +23 -0
- package/esm2022/src/lib/models/ActionHistory.mjs +2 -0
- package/esm2022/src/lib/models/ActionType.mjs +11 -0
- package/esm2022/src/lib/models/Actor.mjs +2 -0
- package/esm2022/src/lib/models/ActorTag.mjs +2 -0
- package/esm2022/src/lib/models/Coord.mjs +2 -0
- package/esm2022/src/lib/models/DataType.mjs +27 -0
- package/esm2022/src/lib/models/EAVEntity.mjs +2 -0
- package/esm2022/src/lib/models/ErrorResponse.mjs +11 -0
- package/esm2022/src/lib/models/Escalation.mjs +2 -0
- package/esm2022/src/lib/models/EscalationCycle.mjs +2 -0
- package/esm2022/src/lib/models/EscalationStage.mjs +2 -0
- package/esm2022/src/lib/models/EscalationType.mjs +7 -0
- package/esm2022/src/lib/models/File.mjs +2 -0
- package/esm2022/src/lib/models/FilterTypes.mjs +9 -0
- package/esm2022/src/lib/models/FlowableStatus.mjs +2 -0
- package/esm2022/src/lib/models/Form.mjs +2 -0
- package/esm2022/src/lib/models/FormEntity.mjs +2 -0
- package/esm2022/src/lib/models/FormFill.mjs +6 -0
- package/esm2022/src/lib/models/FormProperty.mjs +2 -0
- package/esm2022/src/lib/models/FormValues.mjs +2 -0
- package/esm2022/src/lib/models/MailConfig.mjs +2 -0
- package/esm2022/src/lib/models/MessageConfig.mjs +2 -0
- package/esm2022/src/lib/models/MessageMedium.mjs +6 -0
- package/esm2022/src/lib/models/OperationAction.mjs +2 -0
- package/esm2022/src/lib/models/PagedResult.mjs +2 -0
- package/esm2022/src/lib/models/PeriodMode.mjs +12 -0
- package/esm2022/src/lib/models/PermissionConfig.mjs +2 -0
- package/esm2022/src/lib/models/ReportSchedule.mjs +2 -0
- package/esm2022/src/lib/models/ReportType.mjs +7 -0
- package/esm2022/src/lib/models/Resource.mjs +47 -0
- package/esm2022/src/lib/models/ResponseKeyValue.mjs +2 -0
- package/esm2022/src/lib/models/SMSConfig.mjs +2 -0
- package/esm2022/src/lib/models/SearchDynamicWrapper.mjs +2 -0
- package/esm2022/src/lib/models/SearchOperator.mjs +6 -0
- package/esm2022/src/lib/models/SearchPropertySign.mjs +11 -0
- package/esm2022/src/lib/models/SearchPropertyValue.mjs +2 -0
- package/esm2022/src/lib/models/SearchPropertyValueType.mjs +11 -0
- package/esm2022/src/lib/models/Size.mjs +2 -0
- package/esm2022/src/lib/models/SortDirection.mjs +7 -0
- package/esm2022/src/lib/models/StageActorRule.mjs +8 -0
- package/esm2022/src/lib/models/SwimLane.mjs +2 -0
- package/esm2022/src/lib/models/Tag.mjs +2 -0
- package/esm2022/src/lib/models/Task.mjs +2 -0
- package/esm2022/src/lib/models/TaskAssignmentType.mjs +6 -0
- package/esm2022/src/lib/models/TaskNotification.mjs +2 -0
- package/esm2022/src/lib/models/TaskNotificationMessageType.mjs +6 -0
- package/esm2022/src/lib/models/TaskNotificationType.mjs +8 -0
- package/esm2022/src/lib/models/TaskStatus.mjs +9 -0
- package/esm2022/src/lib/models/Workflow.mjs +2 -0
- package/esm2022/src/lib/models/WorkflowAction.mjs +2 -0
- package/esm2022/src/lib/models/WorkflowOperation.mjs +2 -0
- package/esm2022/src/lib/models/WorkflowStage.mjs +2 -0
- package/esm2022/src/lib/models/actors.mjs +2 -0
- package/esm2022/src/lib/models/auth-mechanism.mjs +8 -0
- package/esm2022/src/lib/models/base.mjs +2 -0
- package/esm2022/src/lib/models/index.mjs +2 -0
- package/esm2022/src/lib/models/object-state.mjs +8 -0
- package/esm2022/src/lib/models/operation-type.mjs +7 -0
- package/esm2022/src/lib/models/paged.mjs +2 -0
- package/esm2022/src/lib/models/public-api.mjs +64 -0
- package/esm2022/src/lib/models/query-params.mjs +2 -0
- package/esm2022/src/lib/models/status.mjs +6 -0
- package/esm2022/src/lib/models/task-history.mjs +2 -0
- package/esm2022/src/lib/models/user-access-request-status.mjs +7 -0
- package/esm2022/src/lib/models/user.mjs +2 -0
- package/esm2022/src/lib/models/verben-workflow-ui-src-lib-models.mjs +5 -0
- package/esm2022/src/lib/pipes/async-label.pipe.mjs +25 -0
- package/esm2022/src/lib/pipes/index.mjs +2 -0
- package/esm2022/src/lib/pipes/public-api.mjs +2 -0
- package/esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs +5 -0
- package/esm2022/src/lib/services/environment.service.mjs +26 -0
- package/esm2022/src/lib/services/http-web-request.service.mjs +92 -0
- package/esm2022/src/lib/services/index.mjs +2 -0
- package/esm2022/src/lib/services/label.service.mjs +134 -0
- package/esm2022/src/lib/services/public-api.mjs +5 -0
- package/esm2022/src/lib/services/util.service.mjs +73 -0
- package/esm2022/src/lib/services/verben-workflow-ui-src-lib-services.mjs +5 -0
- package/esm2022/src/lib/shared/base-table-style.mjs +55 -0
- package/esm2022/src/lib/shared/components/base-data-view.component.mjs +154 -0
- package/esm2022/src/lib/shared/components/base-model-field.mjs +21 -0
- package/esm2022/src/lib/shared/index.mjs +7 -0
- package/esm2022/src/lib/shared/models/DataViewConfig.mjs +2 -0
- package/esm2022/src/lib/shared/public-api.mjs +13 -0
- package/esm2022/src/lib/shared/shared.module.mjs +103 -0
- package/esm2022/src/lib/shared/verben-workflow-ui-src-lib-shared.mjs +5 -0
- package/esm2022/verben-workflow-ui.mjs +5 -0
- package/fesm2022/verben-workflow-ui-src-lib-base.mjs +1055 -0
- package/fesm2022/verben-workflow-ui-src-lib-base.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs +484 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs +3887 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs +72 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs +83 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs +159 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs +430 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs +232 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs +1967 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs +769 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs +78 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-viewer.mjs +118 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-viewer.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs +812 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-journal.mjs +33 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-journal.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs +1317 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs +827 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs +72 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs +94 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs +269 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs +995 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs +1046 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs +203 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs +5353 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs +412 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs +365 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs +666 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-models.mjs +255 -0
- package/fesm2022/verben-workflow-ui-src-lib-models.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-pipes.mjs +32 -0
- package/fesm2022/verben-workflow-ui-src-lib-pipes.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-services.mjs +320 -0
- package/fesm2022/verben-workflow-ui-src-lib-services.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-shared.mjs +336 -0
- package/fesm2022/verben-workflow-ui-src-lib-shared.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui.mjs +34 -0
- package/fesm2022/verben-workflow-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/package.json +193 -8
- package/public-api.d.ts +22 -0
- package/src/lib/base/core/base-data-page.facade.d.ts +138 -0
- package/src/lib/base/core/base-data-page.service.d.ts +61 -0
- package/src/lib/base/core/base-data-page.state.d.ts +73 -0
- package/src/lib/base/handlers/filter-handler.service.d.ts +34 -0
- package/src/lib/base/handlers/search-handler.service.d.ts +20 -0
- package/src/lib/base/handlers/sort-handler.service.d.ts +30 -0
- package/src/lib/base/models/api-payload.d.ts +2 -0
- package/src/lib/base/models/page-config.interface.d.ts +24 -0
- package/src/lib/base/models/page-filter-tab-option.interface.d.ts +19 -0
- package/src/lib/base/public-api.d.ts +9 -0
- package/src/lib/base/utils/column-helpers.d.ts +24 -0
- package/src/lib/components/actors/actors.columns.d.ts +3 -0
- package/src/lib/components/actors/actors.component.d.ts +79 -0
- package/src/lib/components/actors/actors.config.d.ts +10 -0
- package/src/lib/components/actors/actors.facade.d.ts +29 -0
- package/src/lib/components/actors/actors.form.component.d.ts +23 -0
- package/src/lib/components/actors/actors.module.d.ts +11 -0
- package/src/lib/components/actors/actors.service.d.ts +33 -0
- package/src/lib/components/actors/actors.state.d.ts +19 -0
- package/src/lib/components/designer/components/label-editor.component.d.ts +22 -0
- package/src/lib/components/designer/components/node-selector.component.d.ts +23 -0
- package/src/lib/components/designer/components/swimlane-label.component.d.ts +12 -0
- package/src/lib/components/designer/components/swimlane-popup.component.d.ts +18 -0
- package/src/lib/components/designer/components/wf-canvas.component.d.ts +37 -0
- package/src/lib/components/designer/components/wf-designer.component.d.ts +22 -0
- package/src/lib/components/designer/components/wf-toolbar.component.d.ts +17 -0
- package/src/lib/components/designer/models/types.d.ts +103 -0
- package/src/lib/components/designer/services/canvas-state.service.d.ts +24 -0
- package/src/lib/components/designer/services/connection-segment-interaction.service.d.ts +36 -0
- package/src/lib/components/designer/services/connection.service.d.ts +47 -0
- package/src/lib/components/designer/services/keyboard-handler.service.d.ts +9 -0
- package/src/lib/components/designer/services/label-management.service.d.ts +14 -0
- package/src/lib/components/designer/services/node-finder.service.d.ts +10 -0
- package/src/lib/components/designer/services/node-interaction.service.d.ts +19 -0
- package/src/lib/components/designer/services/node-precondition.service.d.ts +37 -0
- package/src/lib/components/designer/services/node-selection.service.d.ts +19 -0
- package/src/lib/components/designer/services/orthogonal-router.service.d.ts +36 -0
- package/src/lib/components/designer/services/position-update.service.d.ts +10 -0
- package/src/lib/components/designer/services/rendering.service.d.ts +67 -0
- package/src/lib/components/designer/services/swimlane-management.service.d.ts +19 -0
- package/src/lib/components/designer/services/swimlane-stats.service.d.ts +19 -0
- package/src/lib/components/designer/services/viewport.service.d.ts +10 -0
- package/src/lib/components/designer/services/wf-facade.service.d.ts +67 -0
- package/src/lib/components/designer/services/wf-mapper.service.d.ts +26 -0
- package/src/lib/components/designer/services/wf-persistence.service.d.ts +21 -0
- package/src/lib/components/designer/services/wf-state.service.d.ts +30 -0
- package/src/lib/components/expiration/expiration.component.d.ts +20 -0
- package/src/lib/components/expiration/expiration.module.d.ts +9 -0
- package/src/lib/components/file-render/file-render.component.d.ts +17 -0
- package/src/lib/components/file-render/file-render.module.d.ts +10 -0
- package/src/lib/components/file-upload/file-upload.component.d.ts +22 -0
- package/src/lib/components/file-upload/file-upload.module.d.ts +11 -0
- package/src/lib/components/flowable-status/flowable-status.columns.d.ts +3 -0
- package/src/lib/components/flowable-status/flowable-status.component.d.ts +80 -0
- package/src/lib/components/flowable-status/flowable-status.config.d.ts +11 -0
- package/src/lib/components/flowable-status/flowable-status.facade.d.ts +26 -0
- package/src/lib/components/flowable-status/flowable-status.form.component.d.ts +18 -0
- package/src/lib/components/flowable-status/flowable-status.module.d.ts +11 -0
- package/src/lib/components/flowable-status/flowable-status.service.d.ts +23 -0
- package/src/lib/components/flowable-status/flowable-status.state.d.ts +11 -0
- package/src/lib/components/flowable-status/public-api.d.ts +2 -0
- package/src/lib/components/form-control/form-control.component.d.ts +38 -0
- package/src/lib/components/form-control/form-control.module.d.ts +11 -0
- package/src/lib/components/form-group/base-table-style.d.ts +1 -0
- package/src/lib/components/form-group/form-fields/form-fields.component.d.ts +136 -0
- package/src/lib/components/form-group/form-fields/form-fields.module.d.ts +11 -0
- package/src/lib/components/form-group/form-fields/form-fields.service.d.ts +9 -0
- package/src/lib/components/form-group/form-group.component.d.ts +108 -0
- package/src/lib/components/form-group/form-group.module.d.ts +15 -0
- package/src/lib/components/form-group/form-group.service.d.ts +9 -0
- package/src/lib/components/form-response/form-response.component.d.ts +108 -0
- package/src/lib/components/form-response/form-response.module.d.ts +12 -0
- package/src/lib/components/form-response/form-response.service.d.ts +9 -0
- package/src/lib/components/form-timer/form-timer.component.d.ts +13 -0
- package/src/lib/components/form-timer/form-timer.module.d.ts +9 -0
- package/src/lib/components/form-viewer/form-viewer.component.d.ts +17 -0
- package/src/lib/components/form-viewer/form-viewer.module.d.ts +11 -0
- package/src/lib/components/forms/base-table-style.d.ts +1 -0
- package/src/lib/components/forms/forms.component.d.ts +88 -0
- package/src/lib/components/forms/forms.module.d.ts +8 -0
- package/src/lib/components/forms/forms.service.d.ts +9 -0
- package/src/lib/components/journal/journal.component.d.ts +5 -0
- package/src/lib/components/journal/journal.module.d.ts +8 -0
- package/src/lib/components/my-queue/my-queue.columns.d.ts +3 -0
- package/src/lib/components/my-queue/my-queue.component.d.ts +58 -0
- package/src/lib/components/my-queue/my-queue.facade.d.ts +47 -0
- package/src/lib/components/my-queue/my-queue.module.d.ts +15 -0
- package/src/lib/components/my-queue/my-queue.service.d.ts +65 -0
- package/src/lib/components/my-queue/my-queue.state.d.ts +39 -0
- package/src/lib/components/my-queue/tasks.form.component.d.ts +43 -0
- package/src/lib/components/operation-popup/operation-popup.component.d.ts +62 -0
- package/src/lib/components/operation-popup/operation-popup.facade.d.ts +32 -0
- package/src/lib/components/operation-popup/operation-popup.service.d.ts +23 -0
- package/src/lib/components/operation-popup/operation-popup.state.d.ts +20 -0
- package/src/lib/components/stage-details/stage-details.component.d.ts +24 -0
- package/src/lib/components/stage-details/stage-details.module.d.ts +9 -0
- package/src/lib/components/task-form/task-form.component.d.ts +10 -0
- package/src/lib/components/task-form/task-form.module.d.ts +10 -0
- package/src/lib/components/task-history/task-history.component.d.ts +35 -0
- package/src/lib/components/task-history/task-history.module.d.ts +10 -0
- package/src/lib/components/task-history/task-history.service.d.ts +13 -0
- package/src/lib/components/task-notification/base-table-style.d.ts +1 -0
- package/src/lib/components/task-notification/task-notification.component.d.ts +89 -0
- package/src/lib/components/task-notification/task-notification.module.d.ts +8 -0
- package/src/lib/components/task-notification/task-notification.service.d.ts +32 -0
- package/src/lib/components/tasks/tasks.columns.d.ts +11 -0
- package/src/lib/components/tasks/tasks.component.d.ts +40 -0
- package/src/lib/components/tasks/tasks.facade.d.ts +44 -0
- package/src/lib/components/tasks/tasks.form.component.d.ts +40 -0
- package/src/lib/components/tasks/tasks.models.d.ts +4 -0
- package/src/lib/components/tasks/tasks.module.d.ts +17 -0
- package/src/lib/components/tasks/tasks.service.d.ts +58 -0
- package/src/lib/components/tasks/tasks.state.d.ts +46 -0
- package/src/lib/components/wf/wf.columns.d.ts +3 -0
- package/src/lib/components/wf/wf.component.d.ts +16 -0
- package/src/lib/components/wf/wf.module.d.ts +10 -0
- package/src/lib/components/wf/wf.service.d.ts +51 -0
- package/src/lib/components/workflow/column.d.ts +3 -0
- package/src/lib/components/workflow/helper.d.ts +2 -0
- package/src/lib/components/workflow/table-style.d.ts +1 -0
- package/src/lib/components/workflow/workflow.component.d.ts +57 -0
- package/src/lib/components/workflow/workflow.module.d.ts +9 -0
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.d.ts +34 -0
- package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.d.ts +25 -0
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.d.ts +38 -0
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.d.ts +29 -0
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.d.ts +292 -0
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.d.ts +39 -0
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.d.ts +5 -0
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.d.ts +46 -0
- package/src/lib/components/workflow-designer/services/connection.service.d.ts +101 -0
- package/src/lib/components/workflow-designer/services/node-management.service.d.ts +73 -0
- package/src/lib/components/workflow-designer/services/popup.service.d.ts +147 -0
- package/src/lib/components/workflow-designer/services/swimlane.service.d.ts +66 -0
- package/src/lib/components/workflow-designer/services/transformer.service.d.ts +51 -0
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.d.ts +43 -0
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.d.ts +58 -0
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.d.ts +49 -0
- package/src/lib/components/workflow-designer/workflow-data.service.d.ts +59 -0
- package/src/lib/components/workflow-designer/workflow-designer.component.d.ts +121 -0
- package/src/lib/components/workflow-designer/workflow-designer.module.d.ts +41 -0
- package/src/lib/components/workflow-designer/workflow-designer.state.d.ts +278 -0
- package/src/lib/components/workflow-designer/workflow-designer.types.d.ts +129 -0
- package/src/lib/components/workflow-stage/workflow-stage.component.d.ts +78 -0
- package/src/lib/components/workflow-stage/workflow-stage.module.d.ts +12 -0
- package/src/lib/components/workflows/public-api.d.ts +4 -0
- package/src/lib/components/workflows/workflow-form/workflow-form.component.d.ts +28 -0
- package/src/lib/components/workflows/workflows.api.d.ts +38 -0
- package/src/lib/components/workflows/workflows.columns.d.ts +3 -0
- package/src/lib/components/workflows/workflows.component.d.ts +98 -0
- package/src/lib/components/workflows/workflows.config.d.ts +10 -0
- package/src/lib/components/workflows/workflows.facade.d.ts +41 -0
- package/src/lib/components/workflows/workflows.module.d.ts +11 -0
- package/src/lib/components/workflows/workflows.service.d.ts +32 -0
- package/src/lib/components/workflows/workflows.state.d.ts +15 -0
- package/src/lib/models/ActionHistory.d.ts +16 -0
- package/src/lib/models/ActionType.d.ts +9 -0
- package/src/lib/models/Actor.d.ts +11 -0
- package/src/lib/models/ActorTag.d.ts +6 -0
- package/src/lib/models/Coord.d.ts +4 -0
- package/src/lib/models/DataType.d.ts +25 -0
- package/src/lib/models/EAVEntity.d.ts +4 -0
- package/src/lib/models/ErrorResponse.d.ts +6 -0
- package/src/lib/models/Escalation.d.ts +14 -0
- package/src/lib/models/EscalationCycle.d.ts +12 -0
- package/src/lib/models/EscalationStage.d.ts +10 -0
- package/src/lib/models/EscalationType.d.ts +5 -0
- package/src/lib/models/File.d.ts +7 -0
- package/src/lib/models/FilterTypes.d.ts +6 -0
- package/src/lib/models/FlowableStatus.d.ts +5 -0
- package/src/lib/models/Form.d.ts +13 -0
- package/src/lib/models/FormEntity.d.ts +13 -0
- package/src/lib/models/FormFill.d.ts +15 -0
- package/src/lib/models/FormProperty.d.ts +15 -0
- package/src/lib/models/FormValues.d.ts +14 -0
- package/src/lib/models/MailConfig.d.ts +12 -0
- package/src/lib/models/MessageConfig.d.ts +3 -0
- package/src/lib/models/MessageMedium.d.ts +4 -0
- package/src/lib/models/OperationAction.d.ts +14 -0
- package/src/lib/models/PagedResult.d.ts +5 -0
- package/src/lib/models/PeriodMode.d.ts +10 -0
- package/src/lib/models/PermissionConfig.d.ts +7 -0
- package/src/lib/models/ReportSchedule.d.ts +22 -0
- package/src/lib/models/ReportType.d.ts +5 -0
- package/src/lib/models/Resource.d.ts +20 -0
- package/src/lib/models/ResponseKeyValue.d.ts +5 -0
- package/src/lib/models/SMSConfig.d.ts +10 -0
- package/src/lib/models/SearchDynamicWrapper.d.ts +5 -0
- package/src/lib/models/SearchOperator.d.ts +4 -0
- package/src/lib/models/SearchPropertySign.d.ts +9 -0
- package/src/lib/models/SearchPropertyValue.d.ts +12 -0
- package/src/lib/models/SearchPropertyValueType.d.ts +9 -0
- package/src/lib/models/Size.d.ts +4 -0
- package/src/lib/models/SortDirection.d.ts +5 -0
- package/src/lib/models/StageActorRule.d.ts +6 -0
- package/src/lib/models/SwimLane.d.ts +13 -0
- package/src/lib/models/Tag.d.ts +6 -0
- package/src/lib/models/Task.d.ts +31 -0
- package/src/lib/models/TaskAssignmentType.d.ts +4 -0
- package/src/lib/models/TaskNotification.d.ts +14 -0
- package/src/lib/models/TaskNotificationMessageType.d.ts +4 -0
- package/src/lib/models/TaskNotificationType.d.ts +6 -0
- package/src/lib/models/TaskStatus.d.ts +7 -0
- package/src/lib/models/Workflow.d.ts +21 -0
- package/src/lib/models/WorkflowAction.d.ts +13 -0
- package/src/lib/models/WorkflowOperation.d.ts +6 -0
- package/src/lib/models/WorkflowStage.d.ts +26 -0
- package/src/lib/models/actors.d.ts +8 -0
- package/src/lib/models/auth-mechanism.d.ts +13 -0
- package/src/lib/models/base.d.ts +13 -0
- package/src/lib/models/object-state.d.ts +6 -0
- package/src/lib/models/operation-type.d.ts +5 -0
- package/src/lib/models/paged.d.ts +9 -0
- package/src/lib/models/query-params.d.ts +8 -0
- package/src/lib/models/status.d.ts +4 -0
- package/src/lib/models/task-history.d.ts +17 -0
- package/src/lib/models/user-access-request-status.d.ts +5 -0
- package/src/lib/models/user.d.ts +24 -0
- package/src/lib/pipes/async-label.pipe.d.ts +11 -0
- package/src/lib/services/environment.service.d.ts +23 -0
- package/src/lib/services/http-web-request.service.d.ts +23 -0
- package/src/lib/services/label.service.d.ts +15 -0
- package/src/lib/services/public-api.d.ts +4 -0
- package/src/lib/services/util.service.d.ts +21 -0
- package/src/lib/shared/base-table-style.d.ts +2 -0
- package/src/lib/shared/components/base-data-view.component.d.ts +41 -0
- package/src/lib/shared/components/base-model-field.d.ts +26 -0
- package/src/lib/shared/models/DataViewConfig.d.ts +11 -0
- package/src/lib/shared/public-api.d.ts +5 -0
- package/src/lib/shared/shared.module.d.ts +11 -0
- package/ng-package.json +0 -15
- package/src/lib/base/core/base-data-page.facade.ts +0 -533
- package/src/lib/base/core/base-data-page.service.ts +0 -222
- package/src/lib/base/core/base-data-page.state.ts +0 -287
- package/src/lib/base/handlers/filter-handler.service.ts +0 -169
- package/src/lib/base/handlers/search-handler.service.ts +0 -33
- package/src/lib/base/handlers/sort-handler.service.ts +0 -93
- package/src/lib/base/models/api-payload.ts +0 -13
- package/src/lib/base/models/page-config.interface.ts +0 -49
- package/src/lib/base/models/page-filter-tab-option.interface.ts +0 -20
- package/src/lib/base/ng-package.json +0 -6
- package/src/lib/base/public-api.ts +0 -16
- package/src/lib/base/utils/column-helpers.ts +0 -77
- package/src/lib/components/actors/actors.columns.ts +0 -40
- package/src/lib/components/actors/actors.component.css +0 -0
- package/src/lib/components/actors/actors.component.html +0 -320
- package/src/lib/components/actors/actors.component.spec.ts +0 -23
- package/src/lib/components/actors/actors.component.ts +0 -221
- package/src/lib/components/actors/actors.config.ts +0 -55
- package/src/lib/components/actors/actors.facade.ts +0 -71
- package/src/lib/components/actors/actors.form.component.html +0 -37
- package/src/lib/components/actors/actors.form.component.ts +0 -69
- package/src/lib/components/actors/actors.model.ts +0 -4
- package/src/lib/components/actors/actors.module.ts +0 -13
- package/src/lib/components/actors/actors.service.ts +0 -85
- package/src/lib/components/actors/actors.state.ts +0 -31
- package/src/lib/components/actors/ng-package.json +0 -6
- package/src/lib/components/designer/components/label-editor.component.ts +0 -188
- package/src/lib/components/designer/components/node-selector.component.ts +0 -208
- package/src/lib/components/designer/components/swimlane-label.component.ts +0 -102
- package/src/lib/components/designer/components/swimlane-popup.component.ts +0 -51
- package/src/lib/components/designer/components/wf-canvas.component.ts +0 -495
- package/src/lib/components/designer/components/wf-designer.component.ts +0 -182
- package/src/lib/components/designer/components/wf-node.component.ts +0 -91
- package/src/lib/components/designer/components/wf-properties-popup.component.ts +0 -257
- package/src/lib/components/designer/components/wf-toolbar.component.ts +0 -84
- package/src/lib/components/designer/models/types.ts +0 -132
- package/src/lib/components/designer/ng-package.json +0 -6
- package/src/lib/components/designer/services/canvas-state.service.ts +0 -63
- package/src/lib/components/designer/services/connection-segment-interaction.service.ts +0 -141
- package/src/lib/components/designer/services/connection.service.ts +0 -350
- package/src/lib/components/designer/services/keyboard-handler.service.ts +0 -39
- package/src/lib/components/designer/services/label-management.service.ts +0 -72
- package/src/lib/components/designer/services/node-finder.service.ts +0 -34
- package/src/lib/components/designer/services/node-interaction.service.ts +0 -135
- package/src/lib/components/designer/services/node-placement.service.ts +0 -77
- package/src/lib/components/designer/services/node-precondition.service.ts +0 -138
- package/src/lib/components/designer/services/node-renderer.service.ts +0 -97
- package/src/lib/components/designer/services/node-selection.service.ts +0 -110
- package/src/lib/components/designer/services/orthogonal-router.service.ts +0 -233
- package/src/lib/components/designer/services/position-update.service.ts +0 -56
- package/src/lib/components/designer/services/rendering.service.ts +0 -296
- package/src/lib/components/designer/services/swimlane-management.service.ts +0 -189
- package/src/lib/components/designer/services/swimlane-stats.service.ts +0 -53
- package/src/lib/components/designer/services/tag-helper.service.ts +0 -80
- package/src/lib/components/designer/services/viewport.service.ts +0 -30
- package/src/lib/components/designer/services/wf-facade.service.ts +0 -287
- package/src/lib/components/designer/services/wf-mapper.service.ts +0 -447
- package/src/lib/components/designer/services/wf-persistence.service.ts +0 -184
- package/src/lib/components/designer/services/wf-state.service.ts +0 -143
- package/src/lib/components/expiration/expiration.component.css +0 -0
- package/src/lib/components/expiration/expiration.component.html +0 -21
- package/src/lib/components/expiration/expiration.component.spec.ts +0 -23
- package/src/lib/components/expiration/expiration.component.ts +0 -52
- package/src/lib/components/expiration/expiration.module.ts +0 -11
- package/src/lib/components/expiration/ng-package.json +0 -6
- package/src/lib/components/file-render/file-render.component.css +0 -4
- package/src/lib/components/file-render/file-render.component.html +0 -21
- package/src/lib/components/file-render/file-render.component.spec.ts +0 -23
- package/src/lib/components/file-render/file-render.component.ts +0 -34
- package/src/lib/components/file-render/file-render.module.ts +0 -19
- package/src/lib/components/file-render/ng-package.json +0 -6
- package/src/lib/components/file-upload/file-upload.component.css +0 -0
- package/src/lib/components/file-upload/file-upload.component.html +0 -69
- package/src/lib/components/file-upload/file-upload.component.spec.ts +0 -23
- package/src/lib/components/file-upload/file-upload.component.ts +0 -87
- package/src/lib/components/file-upload/file-upload.module.ts +0 -40
- package/src/lib/components/file-upload/ng-package.json +0 -6
- package/src/lib/components/flowable-status/flowable-status.columns.ts +0 -23
- package/src/lib/components/flowable-status/flowable-status.component.css +0 -1
- package/src/lib/components/flowable-status/flowable-status.component.html +0 -166
- package/src/lib/components/flowable-status/flowable-status.component.ts +0 -247
- package/src/lib/components/flowable-status/flowable-status.config.ts +0 -54
- package/src/lib/components/flowable-status/flowable-status.facade.ts +0 -70
- package/src/lib/components/flowable-status/flowable-status.form.component.html +0 -13
- package/src/lib/components/flowable-status/flowable-status.form.component.ts +0 -51
- package/src/lib/components/flowable-status/flowable-status.model.ts +0 -3
- package/src/lib/components/flowable-status/flowable-status.module.ts +0 -13
- package/src/lib/components/flowable-status/flowable-status.service.ts +0 -39
- package/src/lib/components/flowable-status/flowable-status.state.ts +0 -10
- package/src/lib/components/flowable-status/ng-package.json +0 -6
- package/src/lib/components/flowable-status/public-api.ts +0 -3
- package/src/lib/components/form-control/form-control.component.css +0 -0
- package/src/lib/components/form-control/form-control.component.html +0 -254
- package/src/lib/components/form-control/form-control.component.spec.ts +0 -23
- package/src/lib/components/form-control/form-control.component.ts +0 -169
- package/src/lib/components/form-control/form-control.module.ts +0 -47
- package/src/lib/components/form-control/ng-package.json +0 -6
- package/src/lib/components/form-group/base-table-style.ts +0 -52
- package/src/lib/components/form-group/form-fields/form-fields.component.css +0 -114
- package/src/lib/components/form-group/form-fields/form-fields.component.html +0 -621
- package/src/lib/components/form-group/form-fields/form-fields.component.spec.ts +0 -23
- package/src/lib/components/form-group/form-fields/form-fields.component.ts +0 -1115
- package/src/lib/components/form-group/form-fields/form-fields.module.ts +0 -48
- package/src/lib/components/form-group/form-fields/form-fields.service.ts +0 -70
- package/src/lib/components/form-group/form-fields/helper.ts +0 -45
- package/src/lib/components/form-group/form-group.component.css +0 -113
- package/src/lib/components/form-group/form-group.component.html +0 -486
- package/src/lib/components/form-group/form-group.component.spec.ts +0 -22
- package/src/lib/components/form-group/form-group.component.ts +0 -791
- package/src/lib/components/form-group/form-group.module.ts +0 -54
- package/src/lib/components/form-group/form-group.service.ts +0 -53
- package/src/lib/components/form-group/helper.ts +0 -45
- package/src/lib/components/form-group/ng-package.json +0 -6
- package/src/lib/components/form-response/form-response.component.css +0 -114
- package/src/lib/components/form-response/form-response.component.html +0 -188
- package/src/lib/components/form-response/form-response.component.spec.ts +0 -23
- package/src/lib/components/form-response/form-response.component.ts +0 -723
- package/src/lib/components/form-response/form-response.module.ts +0 -48
- package/src/lib/components/form-response/form-response.service.ts +0 -52
- package/src/lib/components/form-response/helper.ts +0 -222
- package/src/lib/components/form-response/ng-package.json +0 -6
- package/src/lib/components/form-timer/form-timer.component.css +0 -0
- package/src/lib/components/form-timer/form-timer.component.html +0 -47
- package/src/lib/components/form-timer/form-timer.component.spec.ts +0 -23
- package/src/lib/components/form-timer/form-timer.component.ts +0 -50
- package/src/lib/components/form-timer/form-timer.module.ts +0 -19
- package/src/lib/components/form-timer/ng-package.json +0 -6
- package/src/lib/components/form-viewer/form-viewer.component.css +0 -4
- package/src/lib/components/form-viewer/form-viewer.component.html +0 -62
- package/src/lib/components/form-viewer/form-viewer.component.spec.ts +0 -23
- package/src/lib/components/form-viewer/form-viewer.component.ts +0 -31
- package/src/lib/components/form-viewer/form-viewer.module.ts +0 -52
- package/src/lib/components/form-viewer/ng-package.json +0 -6
- package/src/lib/components/forms/base-table-style.ts +0 -52
- package/src/lib/components/forms/forms.component.css +0 -126
- package/src/lib/components/forms/forms.component.html +0 -538
- package/src/lib/components/forms/forms.component.spec.ts +0 -23
- package/src/lib/components/forms/forms.component.ts +0 -810
- package/src/lib/components/forms/forms.module.ts +0 -10
- package/src/lib/components/forms/forms.service.spec.ts +0 -16
- package/src/lib/components/forms/forms.service.ts +0 -65
- package/src/lib/components/forms/ng-package.json +0 -6
- package/src/lib/components/journal/journal.component.css +0 -0
- package/src/lib/components/journal/journal.component.html +0 -1
- package/src/lib/components/journal/journal.component.spec.ts +0 -23
- package/src/lib/components/journal/journal.component.ts +0 -10
- package/src/lib/components/journal/journal.module.ts +0 -10
- package/src/lib/components/journal/ng-package.json +0 -6
- package/src/lib/components/my-queue/my-queue.columns.ts +0 -37
- package/src/lib/components/my-queue/my-queue.component.css +0 -8
- package/src/lib/components/my-queue/my-queue.component.html +0 -319
- package/src/lib/components/my-queue/my-queue.component.spec.ts +0 -23
- package/src/lib/components/my-queue/my-queue.component.ts +0 -409
- package/src/lib/components/my-queue/my-queue.facade.ts +0 -670
- package/src/lib/components/my-queue/my-queue.helper.ts +0 -71
- package/src/lib/components/my-queue/my-queue.module.ts +0 -27
- package/src/lib/components/my-queue/my-queue.service.spec.ts +0 -16
- package/src/lib/components/my-queue/my-queue.service.ts +0 -262
- package/src/lib/components/my-queue/my-queue.state.ts +0 -133
- package/src/lib/components/my-queue/ng-package.json +0 -6
- package/src/lib/components/my-queue/tasks.form.component.html +0 -162
- package/src/lib/components/my-queue/tasks.form.component.ts +0 -179
- package/src/lib/components/operation-popup/ng-package.json +0 -6
- package/src/lib/components/operation-popup/operation-popup.component.css +0 -1
- package/src/lib/components/operation-popup/operation-popup.component.html +0 -107
- package/src/lib/components/operation-popup/operation-popup.component.ts +0 -476
- package/src/lib/components/operation-popup/operation-popup.facade.ts +0 -416
- package/src/lib/components/operation-popup/operation-popup.service.ts +0 -120
- package/src/lib/components/operation-popup/operation-popup.state.ts +0 -49
- package/src/lib/components/stage-details/ng-package.json +0 -6
- package/src/lib/components/stage-details/stage-details.component.css +0 -0
- package/src/lib/components/stage-details/stage-details.component.html +0 -95
- package/src/lib/components/stage-details/stage-details.component.spec.ts +0 -23
- package/src/lib/components/stage-details/stage-details.component.ts +0 -43
- package/src/lib/components/stage-details/stage-details.module.ts +0 -11
- package/src/lib/components/task-form/ng-package.json +0 -6
- package/src/lib/components/task-form/task-form.component.css +0 -0
- package/src/lib/components/task-form/task-form.component.html +0 -38
- package/src/lib/components/task-form/task-form.component.spec.ts +0 -23
- package/src/lib/components/task-form/task-form.component.ts +0 -15
- package/src/lib/components/task-form/task-form.module.ts +0 -31
- package/src/lib/components/task-history/ng-package.json +0 -6
- package/src/lib/components/task-history/task-history.component.css +0 -334
- package/src/lib/components/task-history/task-history.component.html +0 -145
- package/src/lib/components/task-history/task-history.component.spec.ts +0 -23
- package/src/lib/components/task-history/task-history.component.ts +0 -232
- package/src/lib/components/task-history/task-history.module.ts +0 -11
- package/src/lib/components/task-history/task-history.service.ts +0 -32
- package/src/lib/components/task-notification/base-table-style.ts +0 -52
- package/src/lib/components/task-notification/ng-package.json +0 -6
- package/src/lib/components/task-notification/task-notification.component.css +0 -94
- package/src/lib/components/task-notification/task-notification.component.html +0 -585
- package/src/lib/components/task-notification/task-notification.component.spec.ts +0 -23
- package/src/lib/components/task-notification/task-notification.component.ts +0 -770
- package/src/lib/components/task-notification/task-notification.module.ts +0 -10
- package/src/lib/components/task-notification/task-notification.service.spec.ts +0 -16
- package/src/lib/components/task-notification/task-notification.service.ts +0 -397
- package/src/lib/components/tasks/ng-package.json +0 -6
- package/src/lib/components/tasks/tasks.columns.ts +0 -50
- package/src/lib/components/tasks/tasks.component.css +0 -4
- package/src/lib/components/tasks/tasks.component.html +0 -385
- package/src/lib/components/tasks/tasks.component.spec.ts +0 -23
- package/src/lib/components/tasks/tasks.component.ts +0 -211
- package/src/lib/components/tasks/tasks.facade.ts +0 -482
- package/src/lib/components/tasks/tasks.form.component.html +0 -171
- package/src/lib/components/tasks/tasks.form.component.ts +0 -172
- package/src/lib/components/tasks/tasks.helper.ts +0 -71
- package/src/lib/components/tasks/tasks.models.ts +0 -4
- package/src/lib/components/tasks/tasks.module.ts +0 -29
- package/src/lib/components/tasks/tasks.service.spec.ts +0 -16
- package/src/lib/components/tasks/tasks.service.ts +0 -215
- package/src/lib/components/tasks/tasks.state.ts +0 -144
- package/src/lib/components/wf/ng-package.json +0 -6
- package/src/lib/components/wf/wf.columns.ts +0 -36
- package/src/lib/components/wf/wf.component.css +0 -0
- package/src/lib/components/wf/wf.component.html +0 -35
- package/src/lib/components/wf/wf.component.spec.ts +0 -23
- package/src/lib/components/wf/wf.component.ts +0 -71
- package/src/lib/components/wf/wf.facade.ts +0 -266
- package/src/lib/components/wf/wf.helper.ts +0 -23
- package/src/lib/components/wf/wf.module.ts +0 -14
- package/src/lib/components/wf/wf.service.spec.ts +0 -16
- package/src/lib/components/wf/wf.service.ts +0 -98
- package/src/lib/components/wf/wf.state.ts +0 -99
- package/src/lib/components/workflow/column.ts +0 -40
- package/src/lib/components/workflow/helper.ts +0 -53
- package/src/lib/components/workflow/ng-package.json +0 -6
- package/src/lib/components/workflow/table-style.ts +0 -53
- package/src/lib/components/workflow/workflow.component.css +0 -0
- package/src/lib/components/workflow/workflow.component.html +0 -226
- package/src/lib/components/workflow/workflow.component.spec.ts +0 -23
- package/src/lib/components/workflow/workflow.component.ts +0 -224
- package/src/lib/components/workflow/workflow.module.ts +0 -11
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.css +0 -9
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.html +0 -56
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.ts +0 -142
- package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.css +0 -0
- package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.html +0 -45
- package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.ts +0 -83
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.css +0 -7
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.html +0 -89
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.ts +0 -87
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.css +0 -11
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.html +0 -74
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.ts +0 -80
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.css +0 -70
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.html +0 -454
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.ts +0 -1629
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.connection-drop.spec.ts +0 -100
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.css +0 -63
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.html +0 -49
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.ts +0 -86
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.ts +0 -7
- package/src/lib/components/workflow-designer/docs/01-architecture.md +0 -145
- package/src/lib/components/workflow-designer/docs/02-coordinate-system.md +0 -171
- package/src/lib/components/workflow-designer/docs/03-data-model.md +0 -163
- package/src/lib/components/workflow-designer/docs/04-interactions.md +0 -156
- package/src/lib/components/workflow-designer/docs/05-persistence.md +0 -117
- package/src/lib/components/workflow-designer/docs/06-known-issues.md +0 -181
- package/src/lib/components/workflow-designer/docs/07-integration.md +0 -178
- package/src/lib/components/workflow-designer/docs/08-api-reference.md +0 -187
- package/src/lib/components/workflow-designer/docs/09-development.md +0 -141
- package/src/lib/components/workflow-designer/docs/README.md +0 -81
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.css +0 -9
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.html +0 -94
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.ts +0 -273
- package/src/lib/components/workflow-designer/ng-package.json +0 -6
- package/src/lib/components/workflow-designer/services/connection.service.ts +0 -324
- package/src/lib/components/workflow-designer/services/node-management.service.ts +0 -372
- package/src/lib/components/workflow-designer/services/popup.service.ts +0 -276
- package/src/lib/components/workflow-designer/services/swimlane.service.ts +0 -176
- package/src/lib/components/workflow-designer/services/transformer.service.ts +0 -316
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.css +0 -0
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.html +0 -208
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.ts +0 -194
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.css +0 -15
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.html +0 -93
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.ts +0 -258
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.css +0 -0
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.html +0 -151
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.ts +0 -156
- package/src/lib/components/workflow-designer/workflow-data.service.spec.ts +0 -16
- package/src/lib/components/workflow-designer/workflow-data.service.ts +0 -290
- package/src/lib/components/workflow-designer/workflow-designer.component.css +0 -59
- package/src/lib/components/workflow-designer/workflow-designer.component.html +0 -29
- package/src/lib/components/workflow-designer/workflow-designer.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/workflow-designer.component.ts +0 -553
- package/src/lib/components/workflow-designer/workflow-designer.models.ts +0 -114
- package/src/lib/components/workflow-designer/workflow-designer.module.ts +0 -88
- package/src/lib/components/workflow-designer/workflow-designer.state.ts +0 -1104
- package/src/lib/components/workflow-designer/workflow-designer.types.ts +0 -140
- package/src/lib/components/workflow-stage/ng-package.json +0 -6
- package/src/lib/components/workflow-stage/workflow-stage.component.css +0 -24
- package/src/lib/components/workflow-stage/workflow-stage.component.html +0 -339
- package/src/lib/components/workflow-stage/workflow-stage.component.spec.ts +0 -23
- package/src/lib/components/workflow-stage/workflow-stage.component.ts +0 -349
- package/src/lib/components/workflow-stage/workflow-stage.module.ts +0 -53
- package/src/lib/components/workflows/ng-package.json +0 -6
- package/src/lib/components/workflows/public-api.ts +0 -6
- package/src/lib/components/workflows/workflow-form/workflow-form.component.css +0 -0
- package/src/lib/components/workflows/workflow-form/workflow-form.component.html +0 -138
- package/src/lib/components/workflows/workflow-form/workflow-form.component.spec.ts +0 -23
- package/src/lib/components/workflows/workflow-form/workflow-form.component.ts +0 -85
- package/src/lib/components/workflows/workflows.api.ts +0 -117
- package/src/lib/components/workflows/workflows.columns.ts +0 -41
- package/src/lib/components/workflows/workflows.component.css +0 -4
- package/src/lib/components/workflows/workflows.component.html +0 -309
- package/src/lib/components/workflows/workflows.component.spec.ts +0 -23
- package/src/lib/components/workflows/workflows.component.ts +0 -303
- package/src/lib/components/workflows/workflows.config.ts +0 -58
- package/src/lib/components/workflows/workflows.facade.ts +0 -147
- package/src/lib/components/workflows/workflows.module.ts +0 -14
- package/src/lib/components/workflows/workflows.service.spec.ts +0 -16
- package/src/lib/components/workflows/workflows.service.ts +0 -88
- package/src/lib/components/workflows/workflows.state.ts +0 -21
- package/src/lib/models/ActionHistory.ts +0 -19
- package/src/lib/models/ActionType.ts +0 -9
- package/src/lib/models/Actor.ts +0 -12
- package/src/lib/models/ActorTag.ts +0 -8
- package/src/lib/models/Coord.ts +0 -4
- package/src/lib/models/DataType.ts +0 -25
- package/src/lib/models/EAVEntity.ts +0 -5
- package/src/lib/models/ErrorResponse.ts +0 -7
- package/src/lib/models/Escalation.ts +0 -15
- package/src/lib/models/EscalationCycle.ts +0 -13
- package/src/lib/models/EscalationStage.ts +0 -11
- package/src/lib/models/EscalationType.ts +0 -5
- package/src/lib/models/File.ts +0 -8
- package/src/lib/models/FilterTypes.ts +0 -8
- package/src/lib/models/FlowableStatus.ts +0 -6
- package/src/lib/models/Form.ts +0 -14
- package/src/lib/models/FormEntity.ts +0 -14
- package/src/lib/models/FormFill.ts +0 -16
- package/src/lib/models/FormProperty.ts +0 -16
- package/src/lib/models/FormValues.ts +0 -16
- package/src/lib/models/MailConfig.ts +0 -13
- package/src/lib/models/MessageConfig.ts +0 -5
- package/src/lib/models/MessageMedium.ts +0 -4
- package/src/lib/models/OperationAction.ts +0 -15
- package/src/lib/models/PagedResult.ts +0 -5
- package/src/lib/models/PeriodMode.ts +0 -10
- package/src/lib/models/PermissionConfig.ts +0 -8
- package/src/lib/models/ReportSchedule.ts +0 -23
- package/src/lib/models/ReportType.ts +0 -5
- package/src/lib/models/Resource.ts +0 -57
- package/src/lib/models/ResponseKeyValue.ts +0 -5
- package/src/lib/models/SMSConfig.ts +0 -11
- package/src/lib/models/SearchDynamicWrapper.ts +0 -6
- package/src/lib/models/SearchOperator.ts +0 -4
- package/src/lib/models/SearchPropertySign.ts +0 -9
- package/src/lib/models/SearchPropertyValue.ts +0 -13
- package/src/lib/models/SearchPropertyValueType.ts +0 -9
- package/src/lib/models/Size.ts +0 -4
- package/src/lib/models/SortDirection.ts +0 -5
- package/src/lib/models/StageActorRule.ts +0 -6
- package/src/lib/models/SwimLane.ts +0 -14
- package/src/lib/models/Tag.ts +0 -7
- package/src/lib/models/Task.ts +0 -32
- package/src/lib/models/TaskAssignmentType.ts +0 -4
- package/src/lib/models/TaskNotification.ts +0 -16
- package/src/lib/models/TaskNotificationMessageType.ts +0 -4
- package/src/lib/models/TaskNotificationType.ts +0 -6
- package/src/lib/models/TaskStatus.ts +0 -7
- package/src/lib/models/Workflow.ts +0 -22
- package/src/lib/models/WorkflowAction.ts +0 -14
- package/src/lib/models/WorkflowOperation.ts +0 -7
- package/src/lib/models/WorkflowStage.ts +0 -27
- package/src/lib/models/actors.ts +0 -10
- package/src/lib/models/auth-mechanism.ts +0 -14
- package/src/lib/models/base.ts +0 -14
- package/src/lib/models/ng-package.json +0 -6
- package/src/lib/models/object-state.ts +0 -6
- package/src/lib/models/operation-type.ts +0 -6
- package/src/lib/models/paged.ts +0 -9
- package/src/lib/models/query-params.ts +0 -9
- package/src/lib/models/status.ts +0 -5
- package/src/lib/models/task-history.ts +0 -14
- package/src/lib/models/user-access-request-status.ts +0 -5
- package/src/lib/models/user.ts +0 -25
- package/src/lib/pipes/async-label.pipe.spec.ts +0 -12
- package/src/lib/pipes/async-label.pipe.ts +0 -30
- package/src/lib/pipes/ng-package.json +0 -6
- package/src/lib/services/environment.service.spec.ts +0 -16
- package/src/lib/services/environment.service.ts +0 -31
- package/src/lib/services/http-web-request.service.spec.ts +0 -16
- package/src/lib/services/http-web-request.service.ts +0 -154
- package/src/lib/services/label.service.spec.ts +0 -16
- package/src/lib/services/label.service.ts +0 -182
- package/src/lib/services/ng-package.json +0 -6
- package/src/lib/services/public-api.ts +0 -5
- package/src/lib/services/util.service.spec.ts +0 -16
- package/src/lib/services/util.service.ts +0 -72
- package/src/lib/shared/base-table-style.ts +0 -56
- package/src/lib/shared/components/base-data-view.component.ts +0 -187
- package/src/lib/shared/components/base-model-field.ts +0 -31
- package/src/lib/shared/models/DataViewConfig.ts +0 -19
- package/src/lib/shared/ng-package.json +0 -6
- package/src/lib/shared/public-api.ts +0 -14
- package/src/lib/shared/shared.module.ts +0 -67
- package/src/lib/utils/index.ts +0 -1
- package/src/lib/utils/public-api.ts +0 -2
- package/src/lib/utils/store.ts +0 -50
- package/src/public-api.ts +0 -56
- package/src/styles.css +0 -96
- package/tailwind.config copy.js +0 -33
- package/tailwind.config.js +0 -20
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
- /package/src/lib/base/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/actors/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/actors/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/designer/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/designer/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/expiration/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/expiration/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/file-render/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/file-render/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/file-upload/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/file-upload/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/flowable-status/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-control/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-control/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/form-group/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-group/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/form-response/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-response/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/form-timer/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-timer/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/form-viewer/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-viewer/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/forms/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/forms/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/journal/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/journal/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/my-queue/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/my-queue/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/operation-popup/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/operation-popup/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/stage-details/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/stage-details/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/task-form/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/task-form/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/task-history/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/task-history/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/task-notification/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/task-notification/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/tasks/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/tasks/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/wf/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/wf/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/workflow/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/workflow/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/workflow-designer/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/workflow-designer/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/workflow-stage/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/workflow-stage/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/workflows/{index.ts → index.d.ts} +0 -0
- /package/src/lib/models/{index.ts → index.d.ts} +0 -0
- /package/src/lib/models/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/pipes/{index.ts → index.d.ts} +0 -0
- /package/src/lib/pipes/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/services/{index.ts → index.d.ts} +0 -0
- /package/src/lib/shared/{index.ts → index.d.ts} +0 -0
- /package/{src/styles → styles}/styles.css +0 -0
|
@@ -0,0 +1,1046 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, EventEmitter, Component, Input, Output, input, NgModule } from '@angular/core';
|
|
3
|
+
import { SearchOperator, SearchPropertySign, SortDirection, ErrorResponse, ResourceModel, DataType, Status, TaskStatus, ObjectState } from 'verben-workflow-ui/src/lib/models';
|
|
4
|
+
import { BaseDataViewComponent, SharedModule } from 'verben-workflow-ui/src/lib/shared';
|
|
5
|
+
import { BehaviorSubject, Subject, debounceTime, distinctUntilChanged, takeUntil, lastValueFrom } from 'rxjs';
|
|
6
|
+
import * as i3 from 'verben-workflow-ui/src/lib/services';
|
|
7
|
+
import * as i4 from '@angular/common';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
import * as i5 from 'verben-ng-ui';
|
|
10
|
+
import { TooltipModule } from 'verben-ng-ui';
|
|
11
|
+
import * as i6$1 from '@angular/router';
|
|
12
|
+
import { RouterLink } from '@angular/router';
|
|
13
|
+
import * as i7$1 from 'verben-workflow-ui/src/lib/components/operation-popup';
|
|
14
|
+
import { OperationPopupComponent } from 'verben-workflow-ui/src/lib/components/operation-popup';
|
|
15
|
+
import * as i8 from 'verben-workflow-ui/src/lib/components/workflow-stage';
|
|
16
|
+
import { WorkFlowStageLibModule } from 'verben-workflow-ui/src/lib/components/workflow-stage';
|
|
17
|
+
import * as i1 from '@angular/forms';
|
|
18
|
+
import { Validators } from '@angular/forms';
|
|
19
|
+
import * as i6 from 'verben-workflow-ui/src/lib/components/form-control';
|
|
20
|
+
import { FormControlerModule } from 'verben-workflow-ui/src/lib/components/form-control';
|
|
21
|
+
import * as i7 from 'verben-workflow-ui/src/lib/components/form-timer';
|
|
22
|
+
import { FormTimerModule } from 'verben-workflow-ui/src/lib/components/form-timer';
|
|
23
|
+
import { TaskFormModule } from 'verben-workflow-ui/src/lib/components/task-form';
|
|
24
|
+
|
|
25
|
+
const columns = [
|
|
26
|
+
{
|
|
27
|
+
id: 'code',
|
|
28
|
+
header: 'CODE',
|
|
29
|
+
accessorKey: 'Code',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: 'task',
|
|
33
|
+
header: 'TASK',
|
|
34
|
+
accessorKey: 'Name',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 'stage',
|
|
38
|
+
header: 'STAGE',
|
|
39
|
+
accessorFn: (row) => row.CurrentStages?.join(', '),
|
|
40
|
+
},
|
|
41
|
+
// {
|
|
42
|
+
// id: 'status',
|
|
43
|
+
// header: 'STATUS',
|
|
44
|
+
// accessorKey: 'Status',
|
|
45
|
+
// },
|
|
46
|
+
{
|
|
47
|
+
id: 'currentActor',
|
|
48
|
+
header: 'ASSIGNED TO',
|
|
49
|
+
accessorFn: (row) => row.CurrentActors?.map((flwr) => flwr.Name).join(', '),
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'history',
|
|
53
|
+
header: 'HISTORY',
|
|
54
|
+
accessorKey: 'Code',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 'workflow',
|
|
58
|
+
header: 'WORKFLOW',
|
|
59
|
+
accessorKey: 'WorkflowCode',
|
|
60
|
+
},
|
|
61
|
+
{ id: 'actions', header: 'Actions' },
|
|
62
|
+
];
|
|
63
|
+
var TaskSearchProperty;
|
|
64
|
+
(function (TaskSearchProperty) {
|
|
65
|
+
TaskSearchProperty["Code"] = "Code";
|
|
66
|
+
TaskSearchProperty["Name"] = "Name";
|
|
67
|
+
TaskSearchProperty["Description"] = "Description";
|
|
68
|
+
TaskSearchProperty["WorkflowCode"] = "WorkflowCode";
|
|
69
|
+
TaskSearchProperty["Flowable"] = "Flowable";
|
|
70
|
+
TaskSearchProperty["Status"] = "Status";
|
|
71
|
+
})(TaskSearchProperty || (TaskSearchProperty = {}));
|
|
72
|
+
|
|
73
|
+
class TasksService {
|
|
74
|
+
httpService;
|
|
75
|
+
constructor(httpService) {
|
|
76
|
+
this.httpService = httpService;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get tasks with pagination and sorting
|
|
80
|
+
* @param skip Number of records to skip
|
|
81
|
+
* @param limit Number of records to take
|
|
82
|
+
* @param sortParam Sort parameter
|
|
83
|
+
* @param sortOrder Sort order ('asc' or 'desc')
|
|
84
|
+
* @returns Promise containing the tasks
|
|
85
|
+
*/
|
|
86
|
+
getTasks(skip, limit, sortParam, sortOrder) {
|
|
87
|
+
const url = `GetTasks/${skip}/${limit}/${sortParam}/${sortOrder}`;
|
|
88
|
+
return this.httpService.get(url);
|
|
89
|
+
}
|
|
90
|
+
getTasksForUser(skip, limit, user) {
|
|
91
|
+
var payload = [
|
|
92
|
+
{
|
|
93
|
+
PropertyName: 'CreatedBy',
|
|
94
|
+
EntityValue: user || '',
|
|
95
|
+
Operator: SearchOperator.And,
|
|
96
|
+
Sign: SearchPropertySign.EQ,
|
|
97
|
+
},
|
|
98
|
+
];
|
|
99
|
+
const url = `SearchTasks/${skip}/${limit}`;
|
|
100
|
+
return this.httpService.post(url, payload);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Get tasks with additional parameter, pagination and sorting
|
|
104
|
+
* @param param Search parameter
|
|
105
|
+
* @param skip Number of records to skip
|
|
106
|
+
* @param limit Number of records to take
|
|
107
|
+
* @param sortParam Sort parameter
|
|
108
|
+
* @param sortOrder Sort order ('asc' or 'desc')
|
|
109
|
+
* @returns Promise containing the filtered tasks
|
|
110
|
+
*/
|
|
111
|
+
getTaskWithParam(param, skip, limit, user) {
|
|
112
|
+
const payload = Object.keys(TaskSearchProperty).map((x) => {
|
|
113
|
+
return {
|
|
114
|
+
PropertyName: x,
|
|
115
|
+
EntityValue: param,
|
|
116
|
+
Operator: SearchOperator.Or,
|
|
117
|
+
Sign: SearchPropertySign.LIKE,
|
|
118
|
+
};
|
|
119
|
+
});
|
|
120
|
+
if (user) {
|
|
121
|
+
payload.push({
|
|
122
|
+
PropertyName: 'CreatedBy',
|
|
123
|
+
EntityValue: user || '',
|
|
124
|
+
Operator: SearchOperator.And,
|
|
125
|
+
Sign: SearchPropertySign.EQ,
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
const url = `SearchTasks/${skip}/${limit}`;
|
|
129
|
+
return this.httpService.post(url, payload);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Save multiple tasks
|
|
133
|
+
* @param requests Array of tasks to save
|
|
134
|
+
* @returns Promise containing the save operation result
|
|
135
|
+
*/
|
|
136
|
+
saveTasks(requests) {
|
|
137
|
+
const url = `SaveTasks`;
|
|
138
|
+
return this.httpService.post(url, requests);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Approve or reject multiple tasks
|
|
142
|
+
* @param requests Array of tasks to save
|
|
143
|
+
* @param isApproval True for approval, false for decline
|
|
144
|
+
* @returns Promise containing the save operation result
|
|
145
|
+
*/
|
|
146
|
+
processTasks(requests, isApproval) {
|
|
147
|
+
const url = `TaskAction/${isApproval}`;
|
|
148
|
+
return this.httpService.post(url, requests);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Delete multiple tasks
|
|
152
|
+
* @param requestIds Array of request IDs to delete
|
|
153
|
+
* @returns Observable containing the delete operation result
|
|
154
|
+
*/
|
|
155
|
+
deleteTasks(requestIds) {
|
|
156
|
+
const url = `DeleteTasks`;
|
|
157
|
+
return this.httpService.delete(`${url}?data=${requestIds.join(',')}`);
|
|
158
|
+
}
|
|
159
|
+
getWorkflows() {
|
|
160
|
+
const url = `GetWorkflows/0/0`;
|
|
161
|
+
return this.httpService.get(url);
|
|
162
|
+
}
|
|
163
|
+
getFormWithParam(param) {
|
|
164
|
+
const url = `GetFormsWithParam/${param}/0/1`;
|
|
165
|
+
return this.httpService.get(url);
|
|
166
|
+
}
|
|
167
|
+
followTask(actorId, task) {
|
|
168
|
+
const url = `FollowTask/${actorId}`;
|
|
169
|
+
return this.httpService.post(url, task);
|
|
170
|
+
}
|
|
171
|
+
unFollowTask(taskId, actorId) {
|
|
172
|
+
const url = `UnFollowTask/${taskId}/${actorId}`;
|
|
173
|
+
return this.httpService.post(url, {});
|
|
174
|
+
}
|
|
175
|
+
reAssign(task, comment, toUser, fromUser) {
|
|
176
|
+
const url = `Reassign/${comment}/${toUser}/${fromUser}`;
|
|
177
|
+
return this.httpService.post(url, task);
|
|
178
|
+
}
|
|
179
|
+
getNextActors(taskCode, stageCode, forCurrentStage) {
|
|
180
|
+
const url = `GetNextActors/${taskCode}/${forCurrentStage}${stageCode ? `/${stageCode}` : ''}`;
|
|
181
|
+
return this.httpService.get(url);
|
|
182
|
+
}
|
|
183
|
+
pickTask(task, comment, recipient, targetStage) {
|
|
184
|
+
const url = `PickTask/${comment}/${targetStage}${recipient ? '/' + recipient : ''}`;
|
|
185
|
+
return this.httpService.post(url, task);
|
|
186
|
+
}
|
|
187
|
+
unPickTask(targetStage, task, comment, recipient) {
|
|
188
|
+
const url = `UnPickTask/${comment}/${targetStage}${recipient ? '/' + recipient : ''}`;
|
|
189
|
+
return this.httpService.post(url, task);
|
|
190
|
+
}
|
|
191
|
+
getPossibleTasksForUser(user, skip, limit, sortParam, sortOrder) {
|
|
192
|
+
const url = `GetPossibleTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}`;
|
|
193
|
+
return this.httpService.get(url);
|
|
194
|
+
}
|
|
195
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksService, deps: [{ token: i3.HttpWebRequestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
196
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksService, providedIn: 'root' });
|
|
197
|
+
}
|
|
198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksService, decorators: [{
|
|
199
|
+
type: Injectable,
|
|
200
|
+
args: [{
|
|
201
|
+
providedIn: 'root', // 👈 Add this line
|
|
202
|
+
}]
|
|
203
|
+
}], ctorParameters: () => [{ type: i3.HttpWebRequestService }] });
|
|
204
|
+
|
|
205
|
+
class TaskState {
|
|
206
|
+
updating$ = new BehaviorSubject(false);
|
|
207
|
+
resetPage = new BehaviorSubject(false);
|
|
208
|
+
tasks$ = new BehaviorSubject([]);
|
|
209
|
+
searchTerm$ = new BehaviorSubject('');
|
|
210
|
+
queryParams$ = new BehaviorSubject({
|
|
211
|
+
skip: 0,
|
|
212
|
+
limit: 50,
|
|
213
|
+
sortParam: 'CreatedAt',
|
|
214
|
+
sortOrder: SortDirection.Desc,
|
|
215
|
+
});
|
|
216
|
+
workflows$ = new BehaviorSubject([]);
|
|
217
|
+
forms$ = new BehaviorSubject([]);
|
|
218
|
+
nextActors$ = new BehaviorSubject([]);
|
|
219
|
+
isUpdating$() {
|
|
220
|
+
return this.updating$.asObservable();
|
|
221
|
+
}
|
|
222
|
+
setUpdating(isUpdating) {
|
|
223
|
+
this.updating$.next(isUpdating);
|
|
224
|
+
}
|
|
225
|
+
getRequests$() {
|
|
226
|
+
return this.tasks$.asObservable();
|
|
227
|
+
}
|
|
228
|
+
setRequests(tasks) {
|
|
229
|
+
this.tasks$.next(tasks);
|
|
230
|
+
}
|
|
231
|
+
getNextActors$() {
|
|
232
|
+
return this.nextActors$.asObservable();
|
|
233
|
+
}
|
|
234
|
+
setNextActors(nextActors) {
|
|
235
|
+
this.nextActors$.next(nextActors);
|
|
236
|
+
}
|
|
237
|
+
getWorkflows$() {
|
|
238
|
+
return this.workflows$.asObservable();
|
|
239
|
+
}
|
|
240
|
+
setWorkflows(workflows) {
|
|
241
|
+
this.workflows$.next(workflows);
|
|
242
|
+
}
|
|
243
|
+
getForms$() {
|
|
244
|
+
return this.forms$.asObservable();
|
|
245
|
+
}
|
|
246
|
+
setForms(forms) {
|
|
247
|
+
this.forms$.next(forms);
|
|
248
|
+
}
|
|
249
|
+
getSearchTerm$() {
|
|
250
|
+
return this.searchTerm$.asObservable();
|
|
251
|
+
}
|
|
252
|
+
getSearchTermValue() {
|
|
253
|
+
return this.searchTerm$.getValue();
|
|
254
|
+
}
|
|
255
|
+
setSearchTerm(term) {
|
|
256
|
+
this.searchTerm$.next(term);
|
|
257
|
+
}
|
|
258
|
+
getQueryParams$() {
|
|
259
|
+
return this.queryParams$.asObservable();
|
|
260
|
+
}
|
|
261
|
+
getQueryParamsValue() {
|
|
262
|
+
return this.queryParams$.getValue();
|
|
263
|
+
}
|
|
264
|
+
updateQueryParams(params) {
|
|
265
|
+
this.queryParams$.next({ ...this.queryParams$.getValue(), ...params });
|
|
266
|
+
}
|
|
267
|
+
addRequest(task) {
|
|
268
|
+
const currentValue = this.tasks$.getValue();
|
|
269
|
+
this.tasks$.next([task, ...currentValue]);
|
|
270
|
+
}
|
|
271
|
+
resetPagination() {
|
|
272
|
+
const currentParams = this.queryParams$.getValue();
|
|
273
|
+
this.queryParams$.next({ ...currentParams, skip: 0 });
|
|
274
|
+
}
|
|
275
|
+
updateRequest(updatedRequest) {
|
|
276
|
+
const tasks = this.tasks$.getValue();
|
|
277
|
+
const index = tasks.findIndex((r) => r.Code === updatedRequest.Code);
|
|
278
|
+
if (index !== -1) {
|
|
279
|
+
tasks[index] = updatedRequest;
|
|
280
|
+
this.tasks$.next([...tasks]);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
removeRequest(taskId) {
|
|
284
|
+
const currentValue = this.tasks$.getValue();
|
|
285
|
+
this.tasks$.next(currentValue.filter((r) => r.Code !== taskId));
|
|
286
|
+
}
|
|
287
|
+
appendRequests(newRequests) {
|
|
288
|
+
const currentRequests = this.tasks$.getValue();
|
|
289
|
+
this.tasks$.next([...currentRequests, ...newRequests]);
|
|
290
|
+
}
|
|
291
|
+
resetQueryParams() {
|
|
292
|
+
this.queryParams$.next({
|
|
293
|
+
skip: 0,
|
|
294
|
+
limit: 50,
|
|
295
|
+
sortParam: 'CreatedAt',
|
|
296
|
+
sortOrder: SortDirection.Desc,
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TaskState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
300
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TaskState, providedIn: 'root' });
|
|
301
|
+
}
|
|
302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TaskState, decorators: [{
|
|
303
|
+
type: Injectable,
|
|
304
|
+
args: [{
|
|
305
|
+
providedIn: 'root', // 👈 Add this line
|
|
306
|
+
}]
|
|
307
|
+
}] });
|
|
308
|
+
|
|
309
|
+
class TaskFacade {
|
|
310
|
+
taskService;
|
|
311
|
+
taskState;
|
|
312
|
+
utilService;
|
|
313
|
+
searchSubject = new Subject();
|
|
314
|
+
destroy$ = new Subject();
|
|
315
|
+
constructor(taskService, taskState, utilService) {
|
|
316
|
+
this.taskService = taskService;
|
|
317
|
+
this.taskState = taskState;
|
|
318
|
+
this.utilService = utilService;
|
|
319
|
+
// Set up debounced search handling
|
|
320
|
+
this.searchSubject
|
|
321
|
+
.pipe(debounceTime(1000), distinctUntilChanged((a, b) => a.term === b.term), takeUntil(this.destroy$))
|
|
322
|
+
.subscribe(({ term }) => {
|
|
323
|
+
this.handleSearch(term);
|
|
324
|
+
});
|
|
325
|
+
this.isUpdating$().subscribe((loading) => {
|
|
326
|
+
this.utilService.sendBI(loading);
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
ngOnDestroy() {
|
|
330
|
+
this.destroy$.next();
|
|
331
|
+
this.destroy$.complete();
|
|
332
|
+
}
|
|
333
|
+
// Search handling
|
|
334
|
+
search(term, user) {
|
|
335
|
+
this.searchSubject.next({ term, user });
|
|
336
|
+
}
|
|
337
|
+
async handleSearch(searchTerm) {
|
|
338
|
+
this.taskState.setSearchTerm(searchTerm);
|
|
339
|
+
this.taskState.resetPagination();
|
|
340
|
+
this.taskState.resetPage.next(true);
|
|
341
|
+
try {
|
|
342
|
+
this.taskState.setUpdating(true);
|
|
343
|
+
if (searchTerm.trim()) {
|
|
344
|
+
await this.loadRequestsWithParam(searchTerm);
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
await this.loadRequests();
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
catch (error) {
|
|
351
|
+
throw error;
|
|
352
|
+
}
|
|
353
|
+
finally {
|
|
354
|
+
this.taskState.setUpdating(false);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
isUpdating$() {
|
|
358
|
+
return this.taskState.isUpdating$();
|
|
359
|
+
}
|
|
360
|
+
getRequests$() {
|
|
361
|
+
return this.taskState.getRequests$();
|
|
362
|
+
}
|
|
363
|
+
getWorkflow$() {
|
|
364
|
+
return this.taskState.getWorkflows$();
|
|
365
|
+
}
|
|
366
|
+
getForms$() {
|
|
367
|
+
return this.taskState.getForms$();
|
|
368
|
+
}
|
|
369
|
+
getNextActors$() {
|
|
370
|
+
return this.taskState.getNextActors$();
|
|
371
|
+
}
|
|
372
|
+
getQueryParams$() {
|
|
373
|
+
return this.taskState.getQueryParams$();
|
|
374
|
+
}
|
|
375
|
+
addNewRequest(task) {
|
|
376
|
+
this.taskState.addRequest(task);
|
|
377
|
+
}
|
|
378
|
+
async loadRequests() {
|
|
379
|
+
try {
|
|
380
|
+
this.taskState.setUpdating(true);
|
|
381
|
+
const params = this.taskState.getQueryParamsValue();
|
|
382
|
+
const canViewAll = params.user && params.canViewAll;
|
|
383
|
+
const requests = canViewAll
|
|
384
|
+
? await this.taskService.getTasks(params.skip, params.limit, params.sortParam || 'CreatedAt', params.sortOrder)
|
|
385
|
+
: await this.taskService.getTasksForUser(params.skip, params.limit, params.user);
|
|
386
|
+
if (requests instanceof ErrorResponse) {
|
|
387
|
+
this.utilService.showError(requests.ErrorMsg);
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
if (requests?.Result) {
|
|
391
|
+
requests.Result.forEach((x) => {
|
|
392
|
+
x.Id = x.Code;
|
|
393
|
+
});
|
|
394
|
+
this.taskState.setRequests(requests.Result);
|
|
395
|
+
this.taskState.updateQueryParams({
|
|
396
|
+
skip: requests.Skip > 0 ? requests.Skip : requests.Result.length,
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
catch (error) {
|
|
401
|
+
throw error;
|
|
402
|
+
}
|
|
403
|
+
finally {
|
|
404
|
+
this.taskState.setUpdating(false);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
async loadRequestsWithParam(param) {
|
|
408
|
+
try {
|
|
409
|
+
this.taskState.setUpdating(true);
|
|
410
|
+
const params = this.taskState.getQueryParamsValue();
|
|
411
|
+
const canViewAll = params.user && params.canViewAll;
|
|
412
|
+
const requests = canViewAll
|
|
413
|
+
? await this.taskService.getTaskWithParam(param, params.skip, params.limit)
|
|
414
|
+
: await this.taskService.getTaskWithParam(param, params.skip, params.limit, params.user);
|
|
415
|
+
if (requests instanceof ErrorResponse) {
|
|
416
|
+
this.utilService.showError(requests.ErrorMsg);
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
requests.Result.forEach((x) => {
|
|
420
|
+
x.Id = x.Code;
|
|
421
|
+
});
|
|
422
|
+
this.taskState.setRequests(requests.Result);
|
|
423
|
+
this.taskState.updateQueryParams({
|
|
424
|
+
skip: requests.Skip > 0 ? requests.Skip : requests.Result.length,
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
catch (error) {
|
|
428
|
+
throw error;
|
|
429
|
+
}
|
|
430
|
+
finally {
|
|
431
|
+
this.taskState.setUpdating(false);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
updateQueryParams(params) {
|
|
435
|
+
this.taskState.updateQueryParams(params);
|
|
436
|
+
// this.loadRequests();
|
|
437
|
+
}
|
|
438
|
+
async addRequest(request) {
|
|
439
|
+
try {
|
|
440
|
+
this.taskState.setUpdating(true);
|
|
441
|
+
const newRequest = { ...request, TaskForms: [] };
|
|
442
|
+
// this.taskState.addRequest(newRequest);
|
|
443
|
+
const response = await this.taskService.saveTasks([newRequest]);
|
|
444
|
+
if (response instanceof ErrorResponse) {
|
|
445
|
+
this.utilService.showError(response.ErrorMsg);
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
this.utilService.showSuccess('Task added successfully');
|
|
449
|
+
this.taskState.resetPagination();
|
|
450
|
+
await this.loadRequests(); // Reload to get server-side changes
|
|
451
|
+
}
|
|
452
|
+
catch (error) {
|
|
453
|
+
this.taskState.removeRequest(request.Code);
|
|
454
|
+
throw error;
|
|
455
|
+
}
|
|
456
|
+
finally {
|
|
457
|
+
this.taskState.setUpdating(false);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
resetQueryParams() {
|
|
461
|
+
this.taskState.resetQueryParams();
|
|
462
|
+
}
|
|
463
|
+
async updateRequest(request) {
|
|
464
|
+
try {
|
|
465
|
+
this.taskState.setUpdating(true);
|
|
466
|
+
const response = await this.taskService.saveTasks([request]);
|
|
467
|
+
if (response instanceof ErrorResponse) {
|
|
468
|
+
this.utilService.showError(response.ErrorMsg);
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
this.utilService.showSuccess('Task updated successfully');
|
|
472
|
+
this.taskState.updateRequest(request);
|
|
473
|
+
}
|
|
474
|
+
catch (error) {
|
|
475
|
+
throw error;
|
|
476
|
+
}
|
|
477
|
+
finally {
|
|
478
|
+
this.taskState.setUpdating(false);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
async deleteRequest(requestId) {
|
|
482
|
+
try {
|
|
483
|
+
this.taskState.setUpdating(true);
|
|
484
|
+
await lastValueFrom(this.taskService.deleteTasks([requestId]));
|
|
485
|
+
this.taskState.removeRequest(requestId);
|
|
486
|
+
}
|
|
487
|
+
catch (error) {
|
|
488
|
+
throw error;
|
|
489
|
+
}
|
|
490
|
+
finally {
|
|
491
|
+
this.taskState.setUpdating(false);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
async approveRequest(request) {
|
|
495
|
+
try {
|
|
496
|
+
this.taskState.setUpdating(true);
|
|
497
|
+
const response = await this.taskService.processTasks([request], true);
|
|
498
|
+
if (response instanceof ErrorResponse) {
|
|
499
|
+
this.utilService.showError(response.ErrorMsg);
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
// console.log(response);
|
|
503
|
+
const data = response?.[0];
|
|
504
|
+
if (data) {
|
|
505
|
+
this.taskState.updateRequest(data);
|
|
506
|
+
this.utilService.showSuccess('Task approved successfully');
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
catch (error) {
|
|
510
|
+
throw error;
|
|
511
|
+
}
|
|
512
|
+
finally {
|
|
513
|
+
this.taskState.setUpdating(false);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
async loadWorkflows() {
|
|
517
|
+
try {
|
|
518
|
+
const requests = await this.taskService.getWorkflows();
|
|
519
|
+
if (requests instanceof ErrorResponse) {
|
|
520
|
+
this.utilService.showError(requests.ErrorMsg);
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
this.taskState.setWorkflows(requests.Result);
|
|
524
|
+
}
|
|
525
|
+
catch (error) {
|
|
526
|
+
throw error;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
async loadFormsWithParam(param) {
|
|
530
|
+
try {
|
|
531
|
+
this.taskState.setUpdating(true);
|
|
532
|
+
const requests = await this.taskService.getFormWithParam(param);
|
|
533
|
+
if (requests instanceof ErrorResponse) {
|
|
534
|
+
this.utilService.showError(requests.ErrorMsg);
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
|
+
const form = requests.Result[0];
|
|
538
|
+
if (form)
|
|
539
|
+
return form;
|
|
540
|
+
}
|
|
541
|
+
catch (error) {
|
|
542
|
+
throw error;
|
|
543
|
+
}
|
|
544
|
+
finally {
|
|
545
|
+
this.taskState.setUpdating(false);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
async reAssign(request, comment, toUser, fromUser) {
|
|
549
|
+
try {
|
|
550
|
+
this.taskState.setUpdating(true);
|
|
551
|
+
const response = await this.taskService.reAssign({
|
|
552
|
+
...request,
|
|
553
|
+
FullStages: [],
|
|
554
|
+
CurrentActors: request.CurrentActors.map((c) => ({
|
|
555
|
+
...c,
|
|
556
|
+
ActorTags: [],
|
|
557
|
+
})),
|
|
558
|
+
}, comment, toUser, fromUser);
|
|
559
|
+
if (response instanceof ErrorResponse) {
|
|
560
|
+
this.utilService.showError(response.ErrorMsg);
|
|
561
|
+
return;
|
|
562
|
+
}
|
|
563
|
+
// console.log(response);
|
|
564
|
+
this.utilService.showSuccess('Task re-assigned successfully');
|
|
565
|
+
const data = response;
|
|
566
|
+
if (data) {
|
|
567
|
+
this.taskState.updateRequest(data);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
catch (error) {
|
|
571
|
+
throw error;
|
|
572
|
+
}
|
|
573
|
+
finally {
|
|
574
|
+
this.taskState.setUpdating(false);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
async loadNextActors(taskCode, stageCode, forCurrentStage) {
|
|
578
|
+
try {
|
|
579
|
+
this.taskState.setUpdating(true);
|
|
580
|
+
const params = this.taskState.getQueryParamsValue();
|
|
581
|
+
const requests = await this.taskService.getNextActors(taskCode, stageCode, forCurrentStage);
|
|
582
|
+
if (requests instanceof ErrorResponse) {
|
|
583
|
+
this.utilService.showError(requests.ErrorMsg);
|
|
584
|
+
return [];
|
|
585
|
+
}
|
|
586
|
+
this.taskState.setNextActors(requests);
|
|
587
|
+
return requests;
|
|
588
|
+
}
|
|
589
|
+
catch (error) {
|
|
590
|
+
return [];
|
|
591
|
+
}
|
|
592
|
+
finally {
|
|
593
|
+
this.taskState.setUpdating(false);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
// Load more handling
|
|
597
|
+
async loadMore(queue = false) {
|
|
598
|
+
try {
|
|
599
|
+
this.taskState.setUpdating(true);
|
|
600
|
+
const currentParams = this.taskState.getQueryParamsValue();
|
|
601
|
+
const searchTerm = this.taskState.getSearchTermValue();
|
|
602
|
+
// The first page is already loaded at skip=0 without advancing the
|
|
603
|
+
// pointer, so fetch the *next* page starting at newSkip.
|
|
604
|
+
// const newSkip = currentParams.skip + currentParams.limit;
|
|
605
|
+
const canViewAll = currentParams.user && currentParams.canViewAll;
|
|
606
|
+
// Load and append data, honouring any active search term
|
|
607
|
+
const response = searchTerm
|
|
608
|
+
? canViewAll
|
|
609
|
+
? await this.taskService.getTaskWithParam(searchTerm, currentParams.skip, currentParams.limit)
|
|
610
|
+
: await this.taskService.getTaskWithParam(searchTerm, currentParams.skip, currentParams.limit, currentParams.user)
|
|
611
|
+
: canViewAll
|
|
612
|
+
? await this.taskService.getTasks(currentParams.skip, currentParams.limit, currentParams.sortParam || 'CreatedAt', currentParams.sortOrder)
|
|
613
|
+
: await this.taskService.getTasksForUser(currentParams.skip, currentParams.limit, currentParams.user);
|
|
614
|
+
if (response instanceof ErrorResponse) {
|
|
615
|
+
this.utilService.showError(response.ErrorMsg);
|
|
616
|
+
return;
|
|
617
|
+
}
|
|
618
|
+
const { Skip, PageSize, Result } = response;
|
|
619
|
+
response.Result.forEach((x) => {
|
|
620
|
+
x.Id = x.Code;
|
|
621
|
+
});
|
|
622
|
+
this.taskState.appendRequests(response.Result);
|
|
623
|
+
this.taskState.updateQueryParams({
|
|
624
|
+
skip: Skip > 0 ? Skip : Result.length,
|
|
625
|
+
limit: currentParams.limit,
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
catch (error) {
|
|
629
|
+
throw error;
|
|
630
|
+
}
|
|
631
|
+
finally {
|
|
632
|
+
this.taskState.setUpdating(false);
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
async pickTask(request, comment, toUser, targetStageCode) {
|
|
636
|
+
try {
|
|
637
|
+
this.taskState.setUpdating(true);
|
|
638
|
+
const response = await this.taskService.pickTask({
|
|
639
|
+
...request,
|
|
640
|
+
FullStages: [],
|
|
641
|
+
CurrentActors: request.CurrentActors.map((c) => ({
|
|
642
|
+
...c,
|
|
643
|
+
ActorTags: [],
|
|
644
|
+
})),
|
|
645
|
+
}, comment, toUser, targetStageCode);
|
|
646
|
+
if (response instanceof ErrorResponse) {
|
|
647
|
+
this.utilService.showError(response.ErrorMsg);
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
650
|
+
// console.log(response);
|
|
651
|
+
this.utilService.showSuccess('Task picked successfully');
|
|
652
|
+
const data = response;
|
|
653
|
+
if (data) {
|
|
654
|
+
this.taskState.updateRequest(data);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
catch (error) {
|
|
658
|
+
throw error;
|
|
659
|
+
}
|
|
660
|
+
finally {
|
|
661
|
+
this.taskState.setUpdating(false);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TaskFacade, deps: [{ token: TasksService }, { token: TaskState }, { token: i3.UtilService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
665
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TaskFacade, providedIn: 'root' });
|
|
666
|
+
}
|
|
667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TaskFacade, decorators: [{
|
|
668
|
+
type: Injectable,
|
|
669
|
+
args: [{
|
|
670
|
+
providedIn: 'root', // 👈 Add this line
|
|
671
|
+
}]
|
|
672
|
+
}], ctorParameters: () => [{ type: TasksService }, { type: TaskState }, { type: i3.UtilService }] });
|
|
673
|
+
|
|
674
|
+
class TaskModel extends ResourceModel {
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
class TasksFormComponent {
|
|
678
|
+
fb;
|
|
679
|
+
taskFacade;
|
|
680
|
+
utilService;
|
|
681
|
+
get currentData() {
|
|
682
|
+
return this._currentData;
|
|
683
|
+
}
|
|
684
|
+
set currentData(value) {
|
|
685
|
+
this._currentData = value;
|
|
686
|
+
if (value?.data) {
|
|
687
|
+
this.form.patchValue({
|
|
688
|
+
Name: value.data.Name || '',
|
|
689
|
+
Description: value.data.Description || '',
|
|
690
|
+
WorkflowCode: value.data.WorkflowCode || '',
|
|
691
|
+
Status: value.data.Status || '',
|
|
692
|
+
AssignToMe: value.data.AssignToMe || true,
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
else {
|
|
696
|
+
this.form.reset();
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
_currentData = null;
|
|
700
|
+
taskForm = null;
|
|
701
|
+
active = 0;
|
|
702
|
+
dataType = DataType.Text;
|
|
703
|
+
onTaskFormSave = new EventEmitter();
|
|
704
|
+
onSave = new EventEmitter();
|
|
705
|
+
form;
|
|
706
|
+
statuses = Object.values(Status);
|
|
707
|
+
workflows = [];
|
|
708
|
+
loadingTaskForm = false;
|
|
709
|
+
taskFormView = false;
|
|
710
|
+
// active: boolean = false;
|
|
711
|
+
constructor(fb, taskFacade, utilService) {
|
|
712
|
+
this.fb = fb;
|
|
713
|
+
this.taskFacade = taskFacade;
|
|
714
|
+
this.utilService = utilService;
|
|
715
|
+
this.taskFacade.getWorkflow$().subscribe((workflows) => {
|
|
716
|
+
this.workflows = workflows;
|
|
717
|
+
});
|
|
718
|
+
this.form = this.fb.group({
|
|
719
|
+
Name: ['', { validators: [Validators.required] }],
|
|
720
|
+
Description: ['', { validators: [Validators.required] }],
|
|
721
|
+
WorkflowCode: ['', { validators: [Validators.required] }],
|
|
722
|
+
Status: ['', { validators: [Validators.required] }],
|
|
723
|
+
AssignToMe: [true],
|
|
724
|
+
TaskForms: [],
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
ngOnInit() {
|
|
728
|
+
try {
|
|
729
|
+
this.taskFacade.loadWorkflows().then(() => { });
|
|
730
|
+
}
|
|
731
|
+
catch (error) {
|
|
732
|
+
// Handle error
|
|
733
|
+
}
|
|
734
|
+
this.form.get('WorkflowCode')?.valueChanges.subscribe((value) => {
|
|
735
|
+
if (value) {
|
|
736
|
+
const selectedWorkflow = this.workflows.find(({ Code }) => Code === value);
|
|
737
|
+
if (selectedWorkflow?.Form) {
|
|
738
|
+
this.loadingTaskForm = true;
|
|
739
|
+
this.taskFacade
|
|
740
|
+
.loadFormsWithParam(selectedWorkflow.Form)
|
|
741
|
+
.then((form) => {
|
|
742
|
+
if (form) {
|
|
743
|
+
this.taskForm = form;
|
|
744
|
+
}
|
|
745
|
+
})
|
|
746
|
+
.finally(() => {
|
|
747
|
+
this.loadingTaskForm = false;
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
this.taskForm = null;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
handleSubmit() {
|
|
757
|
+
if (this.form.valid) {
|
|
758
|
+
// Emit save event with form value
|
|
759
|
+
// if (
|
|
760
|
+
// !this.taskForm ||
|
|
761
|
+
// (this.form.get('TaskForms')?.value as Form[])?.length > 0
|
|
762
|
+
// ) {
|
|
763
|
+
this.onSave.emit(this.form.value);
|
|
764
|
+
//}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
onDelete() {
|
|
768
|
+
// Emit delete event
|
|
769
|
+
}
|
|
770
|
+
sendTaskForm() {
|
|
771
|
+
if (this.taskForm) {
|
|
772
|
+
this.form
|
|
773
|
+
.get('TaskForms')
|
|
774
|
+
?.setValue([{ ...this.taskForm, Swimlane: '' }]);
|
|
775
|
+
this.taskFormView = false;
|
|
776
|
+
this.onTaskFormSave.emit(this.taskForm);
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
areRequiredPropertiesFilled() {
|
|
780
|
+
const properties = this.taskForm?.Entities[this.active].Properties || [];
|
|
781
|
+
// Check if all required properties have valid values
|
|
782
|
+
// return properties.every((property: any) => {
|
|
783
|
+
// console.log(property);
|
|
784
|
+
// return (
|
|
785
|
+
// !property.isRequired ||
|
|
786
|
+
// (property.Value !== undefined &&
|
|
787
|
+
// property.Value !== null &&
|
|
788
|
+
// property.Value !== '')
|
|
789
|
+
// );
|
|
790
|
+
// });
|
|
791
|
+
return true;
|
|
792
|
+
}
|
|
793
|
+
disableProcessing() {
|
|
794
|
+
const selectedWorkflow = this.workflows.find(({ Code }) => Code === this.form.get('WorkflowCode')?.value);
|
|
795
|
+
// if (
|
|
796
|
+
// selectedWorkflow?.Form &&
|
|
797
|
+
// (this.currentData?.data as Task)?.TaskForms?.length === 0
|
|
798
|
+
// ) {
|
|
799
|
+
// return true;
|
|
800
|
+
// } else
|
|
801
|
+
return this.form.invalid;
|
|
802
|
+
}
|
|
803
|
+
getRoute(item) {
|
|
804
|
+
const workflow = this.workflows.find((x) => x.Code == item.WorkflowCode);
|
|
805
|
+
if (workflow) {
|
|
806
|
+
return workflow.Route || null;
|
|
807
|
+
}
|
|
808
|
+
return null;
|
|
809
|
+
}
|
|
810
|
+
viewSource(item, route) {
|
|
811
|
+
this.utilService.openRelativeRouteInNewWindow(`${route}/${item.Code}`);
|
|
812
|
+
}
|
|
813
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksFormComponent, deps: [{ token: i1.FormBuilder }, { token: TaskFacade }, { token: i3.UtilService }], target: i0.ɵɵFactoryTarget.Component });
|
|
814
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: TasksFormComponent, selector: "tasks-form", inputs: { currentData: "currentData" }, outputs: { onTaskFormSave: "onTaskFormSave", onSave: "onSave" }, ngImport: i0, template: "@if (taskFormView && taskForm) {\n <div\n *ngIf=\"taskForm.Entities[active]\"\n class=\"flex flex-wrap bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-6\"\n >\n <app-form-timer></app-form-timer>\n <div *ngFor=\"let group of taskForm.Entities; let index = index\">\n <p\n (click)=\"active = index\"\n [ngClass]=\"{\n 'bg-[var(--vbn-color-surface)] text-primary rounded-lg shadow-lg':\n active === index,\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}group\n </p>\n </div>\n </div>\n\n <div *ngIf=\"taskForm.Entities[active]; else emptyState\" class=\"mt-4\">\n <form-control\n [dataType]=\"dataType\"\n [formProperties]=\"taskForm.Entities[active].Properties\"\n ></form-control>\n\n <div class=\"flex gap-3 justify-end\">\n <verbena-button\n (click)=\"areRequiredPropertiesFilled()\"\n text=\"CHECK\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n (click)=\"taskFormView = false\"\n text=\"Close task form\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"sendTaskForm()\"\n [disable]=\"!areRequiredPropertiesFilled()\"\n text=\"Save\"\n ></verbena-button>\n </div>\n </div>\n\n <!-- Empty state template -->\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n} @else {\n <form\n [formGroup]=\"form\"\n class=\"flex flex-col px-3 pb-3 rounded-xl h-full w-full relative space-y-4\"\n (ngSubmit)=\"handleSubmit()\"\n >\n <verbena-input\n name=\"Name\"\n label=\"Name\"\n formControlName=\"Name\"\n placeHolder=\"Enter Name\"\n />\n <verbena-input\n name=\"Description\"\n label=\"Description\"\n formControlName=\"Description\"\n placeHolder=\"Enter Description\"\n />\n\n <div class=\"space-y-1\">\n <label for=\"workflow\">Workflow</label>\n\n <verben-drop-down\n label=\"Workflow\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n placeholder=\"Select\"\n [options]=\"workflows\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n id=\"workflow\"\n formControlName=\"WorkflowCode\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <div class=\"space-y-1\">\n <label for=\"status\">Status</label>\n\n <verben-drop-down\n label=\"Status\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n [showClear]=\"true\"\n placeholder=\"Null\"\n [(options)]=\"statuses\"\n id=\"status\"\n formControlName=\"Status\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <div class=\"flex flex-col gap-1\">\n <label for=\"assignToMe\">Assign To Me</label>\n <verbena-switch\n onText=\"\"\n offText=\"\"\n formControlName=\"AssignToMe\"\n [onColor]=\"'#1A237E'\"\n ></verbena-switch>\n </div>\n\n <!-- buttons -->\n <div class=\"flex justify-between gap-4 my-2\">\n <!-- <verbena-button\n width=\"114px\"\n height=\"39px\"\n text=\"Delete\"\n bgColor=\"var(--vbn-color-text-muted)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button> -->\n <div>\n <div *ngIf=\"currentData && getRoute(currentData.data) as workflowRoute\">\n <ng-container\n *ngIf=\"\n currentData && workflowRoute && workflowRoute.trim().length > 0\n \"\n >\n <verbena-button\n *ngIf=\"currentData.data.DataState !== 'New'\"\n class=\"verben-switch-button\"\n (click)=\"viewSource(currentData.data, workflowRoute)\"\n text=\"View Source Data\"\n ></verbena-button>\n </ng-container>\n </div>\n </div>\n\n <!-- <verbena-button\n [disable]=\"!taskForm || loadingTaskForm\"\n (click)=\"taskFormView = true\"\n [text]=\"loadingTaskForm ? 'Checking for form' : 'Fill task form'\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button> -->\n <verbena-button\n type=\"submit\"\n text=\"Save\"\n bgColor=\"var(--vbn-color-primary)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n pd=\"10px 20px\"\n width=\"114px\"\n height=\"39px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button>\n </div>\n </form>\n}\n", dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5.VerbenaInputComponent, selector: "verbena-input", inputs: ["disabled", "label", "placeHolder", "required", "svgPosition", "minLength", "maxLength", "type", "bgColor", "border", "borderRadius", "textColor", "value", "labelPosition", "labelColor", "disable", "readOnly", "min", "max", "showBorder", "showErrorMessage", "errorMessageColor", "errorBorderColor", "errorPosition", "svg", "fontSize", "svgWidth", "svgHeight", "svgColor", "capitalization", "inputContainerClass", "inputFieldClass", "passLength", "inputWrapperClass", "passwordToggle", "customErrorMessages", "icon", "textPass"], outputs: ["valueChange"] }, { kind: "component", type: i5.VerbenaButtonComponent, selector: "verbena-button", inputs: ["type", "text", "icon", "useIcon", "svgPosition", "iconPosition", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "disable", "svgSize", "weight", "variant", "styleType", "svg", "svgWidth", "svgHeight", "iconColor", "svgColor", "buttonClass", "buttonTextClass", "isLoading", "spinnerSize", "spinnerColor"] }, { kind: "component", type: i5.DropDownComponent, selector: "verben-drop-down", inputs: ["options", "width", "overlayWidth", "showHorizontalLine", "horizontalLineColor", "optionLabel", "optionSubLabel", "optionValue", "placeholder", "invalidMessage", "errorPosition", "loadMoreCaption", "display", "showClear", "lazyLoad", "selectKey", "styleClass", "group", "multiselect", "filter", "avoidDuplication", "filterBy", "debounceTime", "minChar", "refPageSize", "disabled", "required", "load", "asyncLabel", "search"], outputs: ["optionsChange", "onChange", "onClick", "onClear"] }, { kind: "component", type: i5.VerbenaSwitchComponent, selector: "verbena-switch", inputs: ["label", "checked", "disabled", "offColor", "onColor", "onText", "offText", "width", "height", "customStyles"], outputs: ["change"] }, { kind: "component", type: i6.FormControlComponent, selector: "form-control", inputs: ["dataType", "value", "boolInputType", "formProperties", "disabled"] }, { kind: "component", type: i7.FormTimerComponent, selector: "app-form-timer", inputs: ["expiryDate"] }] });
|
|
815
|
+
}
|
|
816
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksFormComponent, decorators: [{
|
|
817
|
+
type: Component,
|
|
818
|
+
args: [{ selector: 'tasks-form', template: "@if (taskFormView && taskForm) {\n <div\n *ngIf=\"taskForm.Entities[active]\"\n class=\"flex flex-wrap bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-6\"\n >\n <app-form-timer></app-form-timer>\n <div *ngFor=\"let group of taskForm.Entities; let index = index\">\n <p\n (click)=\"active = index\"\n [ngClass]=\"{\n 'bg-[var(--vbn-color-surface)] text-primary rounded-lg shadow-lg':\n active === index,\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}group\n </p>\n </div>\n </div>\n\n <div *ngIf=\"taskForm.Entities[active]; else emptyState\" class=\"mt-4\">\n <form-control\n [dataType]=\"dataType\"\n [formProperties]=\"taskForm.Entities[active].Properties\"\n ></form-control>\n\n <div class=\"flex gap-3 justify-end\">\n <verbena-button\n (click)=\"areRequiredPropertiesFilled()\"\n text=\"CHECK\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n (click)=\"taskFormView = false\"\n text=\"Close task form\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"sendTaskForm()\"\n [disable]=\"!areRequiredPropertiesFilled()\"\n text=\"Save\"\n ></verbena-button>\n </div>\n </div>\n\n <!-- Empty state template -->\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n} @else {\n <form\n [formGroup]=\"form\"\n class=\"flex flex-col px-3 pb-3 rounded-xl h-full w-full relative space-y-4\"\n (ngSubmit)=\"handleSubmit()\"\n >\n <verbena-input\n name=\"Name\"\n label=\"Name\"\n formControlName=\"Name\"\n placeHolder=\"Enter Name\"\n />\n <verbena-input\n name=\"Description\"\n label=\"Description\"\n formControlName=\"Description\"\n placeHolder=\"Enter Description\"\n />\n\n <div class=\"space-y-1\">\n <label for=\"workflow\">Workflow</label>\n\n <verben-drop-down\n label=\"Workflow\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n placeholder=\"Select\"\n [options]=\"workflows\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n id=\"workflow\"\n formControlName=\"WorkflowCode\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <div class=\"space-y-1\">\n <label for=\"status\">Status</label>\n\n <verben-drop-down\n label=\"Status\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n [showClear]=\"true\"\n placeholder=\"Null\"\n [(options)]=\"statuses\"\n id=\"status\"\n formControlName=\"Status\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <div class=\"flex flex-col gap-1\">\n <label for=\"assignToMe\">Assign To Me</label>\n <verbena-switch\n onText=\"\"\n offText=\"\"\n formControlName=\"AssignToMe\"\n [onColor]=\"'#1A237E'\"\n ></verbena-switch>\n </div>\n\n <!-- buttons -->\n <div class=\"flex justify-between gap-4 my-2\">\n <!-- <verbena-button\n width=\"114px\"\n height=\"39px\"\n text=\"Delete\"\n bgColor=\"var(--vbn-color-text-muted)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button> -->\n <div>\n <div *ngIf=\"currentData && getRoute(currentData.data) as workflowRoute\">\n <ng-container\n *ngIf=\"\n currentData && workflowRoute && workflowRoute.trim().length > 0\n \"\n >\n <verbena-button\n *ngIf=\"currentData.data.DataState !== 'New'\"\n class=\"verben-switch-button\"\n (click)=\"viewSource(currentData.data, workflowRoute)\"\n text=\"View Source Data\"\n ></verbena-button>\n </ng-container>\n </div>\n </div>\n\n <!-- <verbena-button\n [disable]=\"!taskForm || loadingTaskForm\"\n (click)=\"taskFormView = true\"\n [text]=\"loadingTaskForm ? 'Checking for form' : 'Fill task form'\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button> -->\n <verbena-button\n type=\"submit\"\n text=\"Save\"\n bgColor=\"var(--vbn-color-primary)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n pd=\"10px 20px\"\n width=\"114px\"\n height=\"39px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button>\n </div>\n </form>\n}\n" }]
|
|
819
|
+
}], ctorParameters: () => [{ type: i1.FormBuilder }, { type: TaskFacade }, { type: i3.UtilService }], propDecorators: { currentData: [{
|
|
820
|
+
type: Input
|
|
821
|
+
}], onTaskFormSave: [{
|
|
822
|
+
type: Output
|
|
823
|
+
}], onSave: [{
|
|
824
|
+
type: Output
|
|
825
|
+
}] } });
|
|
826
|
+
|
|
827
|
+
class TasksComponent extends BaseDataViewComponent {
|
|
828
|
+
cdr;
|
|
829
|
+
taskState;
|
|
830
|
+
taskFacade;
|
|
831
|
+
server;
|
|
832
|
+
pageSize = input(50);
|
|
833
|
+
user = input('');
|
|
834
|
+
config = {
|
|
835
|
+
dataSource: [], // Populate from service
|
|
836
|
+
columns: columns, // Your existing column definitions
|
|
837
|
+
cardDataMapper: (task) => ({
|
|
838
|
+
selected: false,
|
|
839
|
+
title: task.Name,
|
|
840
|
+
data: task,
|
|
841
|
+
body: [
|
|
842
|
+
{ title: 'Name', value: task.Name },
|
|
843
|
+
{ title: 'Status', value: task.Status },
|
|
844
|
+
],
|
|
845
|
+
children: [],
|
|
846
|
+
}),
|
|
847
|
+
onDetailView: (task) => {
|
|
848
|
+
// Custom detail view logic
|
|
849
|
+
},
|
|
850
|
+
};
|
|
851
|
+
showForm = false;
|
|
852
|
+
permissionConfig = null;
|
|
853
|
+
constructor(cdr, taskState, taskFacade, server) {
|
|
854
|
+
super();
|
|
855
|
+
this.cdr = cdr;
|
|
856
|
+
this.taskState = taskState;
|
|
857
|
+
this.taskFacade = taskFacade;
|
|
858
|
+
this.server = server;
|
|
859
|
+
this.taskFacade.getRequests$().subscribe((data) => {
|
|
860
|
+
this.data.set(data);
|
|
861
|
+
});
|
|
862
|
+
this.taskState.resetPage.subscribe((state) => {
|
|
863
|
+
if (state) {
|
|
864
|
+
this.cardDataView.clearData();
|
|
865
|
+
this.currentData = null;
|
|
866
|
+
}
|
|
867
|
+
this.taskState.resetPage.next(false);
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
loadInitialData() {
|
|
871
|
+
this.taskFacade.resetQueryParams();
|
|
872
|
+
if (this.user() && this.user().trim().length > 0) {
|
|
873
|
+
this.taskFacade.updateQueryParams({
|
|
874
|
+
user: this.user(),
|
|
875
|
+
canViewAll: this.permissionConfig
|
|
876
|
+
? this.permissionConfig.Actions['ViewAll']
|
|
877
|
+
: false,
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
try {
|
|
881
|
+
this.taskFacade.loadRequests();
|
|
882
|
+
}
|
|
883
|
+
catch (error) {
|
|
884
|
+
// Handle error
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
handleSearch(event) {
|
|
888
|
+
// this.taskFacade.search(event.value, this.user());
|
|
889
|
+
this.taskFacade.search(event.value);
|
|
890
|
+
}
|
|
891
|
+
showActions() {
|
|
892
|
+
if (!this.permissionConfig) {
|
|
893
|
+
return false;
|
|
894
|
+
}
|
|
895
|
+
return (this.permissionConfig.Actions['Reassign'] ||
|
|
896
|
+
this.permissionConfig.Actions['FollowTask']);
|
|
897
|
+
}
|
|
898
|
+
getActionNamesForTask(task) {
|
|
899
|
+
if (!this.permissionConfig) {
|
|
900
|
+
return [];
|
|
901
|
+
}
|
|
902
|
+
const actions = [];
|
|
903
|
+
if (this.permissionConfig.Actions['Reassign']) {
|
|
904
|
+
actions.push('reassign');
|
|
905
|
+
}
|
|
906
|
+
if (this.permissionConfig.Actions['FollowTask']) {
|
|
907
|
+
actions.push('followtask');
|
|
908
|
+
}
|
|
909
|
+
return actions;
|
|
910
|
+
}
|
|
911
|
+
onStateChange(event) {
|
|
912
|
+
switch (event.key) {
|
|
913
|
+
case 'create': {
|
|
914
|
+
const newItem = new TaskModel({
|
|
915
|
+
WorkflowCode: '',
|
|
916
|
+
Status: TaskStatus.Active,
|
|
917
|
+
Flowable: '',
|
|
918
|
+
FlowableData: null,
|
|
919
|
+
FlowablePath: '',
|
|
920
|
+
CurrentActors: [],
|
|
921
|
+
DataState: ObjectState.New,
|
|
922
|
+
Id: (this.data().length + 1).toString(),
|
|
923
|
+
});
|
|
924
|
+
this.taskFacade.addNewRequest(newItem);
|
|
925
|
+
this.dataView.isTableView = false;
|
|
926
|
+
// CardDataViewComponent matches clicks against its cardDataList input,
|
|
927
|
+
// which only receives the new card after a change-detection pass. Force
|
|
928
|
+
// one so the freshly added card is resolvable before we open it.
|
|
929
|
+
this.cdr.detectChanges();
|
|
930
|
+
const card = this.cardData().find((c) => c.data === newItem);
|
|
931
|
+
if (card) {
|
|
932
|
+
this.currentData = this.cardDataView.onItemClick(card);
|
|
933
|
+
this.cdr.detectChanges();
|
|
934
|
+
}
|
|
935
|
+
break;
|
|
936
|
+
}
|
|
937
|
+
default:
|
|
938
|
+
break;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
getCardDataByIdentifier(code) {
|
|
942
|
+
return this.cardData()?.find(({ data }) => data.data.Code === code);
|
|
943
|
+
}
|
|
944
|
+
async loadMore() {
|
|
945
|
+
try {
|
|
946
|
+
await this.taskFacade.loadMore();
|
|
947
|
+
}
|
|
948
|
+
catch (error) {
|
|
949
|
+
// Handle error
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
async onSave(data) {
|
|
953
|
+
const payload = {
|
|
954
|
+
...this.currentData?.data,
|
|
955
|
+
...data,
|
|
956
|
+
};
|
|
957
|
+
await this.taskFacade.addRequest(payload);
|
|
958
|
+
}
|
|
959
|
+
cardClicked(item, toggleView = false) {
|
|
960
|
+
this.currentData = this.cardDataView.onItemClick(item);
|
|
961
|
+
if (this.currentData &&
|
|
962
|
+
this.currentData.data.DataState != ObjectState.New &&
|
|
963
|
+
this.currentData.data.Code.trim().length > 0) {
|
|
964
|
+
this.getAllTask(this.currentData.data.Code).then((res) => {
|
|
965
|
+
if (res && this.currentData) {
|
|
966
|
+
this.currentData.data.TaskData = res;
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
if (toggleView) {
|
|
971
|
+
this.dataView.toggleView();
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
onFormClose(isShow) {
|
|
975
|
+
this.showForm = isShow;
|
|
976
|
+
}
|
|
977
|
+
onFormOpen(isShow) {
|
|
978
|
+
this.showForm = true;
|
|
979
|
+
}
|
|
980
|
+
async getAllTask(code) {
|
|
981
|
+
this.taskState.setUpdating(true);
|
|
982
|
+
const res = await this.server.get(`GetTaskInfo/${code}`);
|
|
983
|
+
this.taskState.setUpdating(false);
|
|
984
|
+
if (res instanceof ErrorResponse) {
|
|
985
|
+
return undefined;
|
|
986
|
+
}
|
|
987
|
+
else {
|
|
988
|
+
var result = res;
|
|
989
|
+
return result;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TaskState }, { token: TaskFacade }, { token: i3.HttpWebRequestService }], target: i0.ɵɵFactoryTarget.Component });
|
|
993
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: TasksComponent, selector: "lib-tasks", inputs: { pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null }, permissionConfig: { classPropertyName: "permissionConfig", publicName: "permissionConfig", isSignal: false, isRequired: false, transformFunction: null } }, providers: [TasksService, TaskFacade, TaskState], usesInheritance: true, ngImport: i0, template: "<div class=\"space-y-8\">\n <verben-data-view\n #vdv\n [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: false,\n isSort: false,\n isExport: true,\n isSelect: true,\n isCreate: !!permissionConfig && permissionConfig.Actions['Create'],\n isToggle: true,\n }\"\n [buttonClass]=\"'my-custom-button-class'\"\n [iconClass]=\"'my-icon-class'\"\n [activeIconClass]=\"'my-active-icon-class'\"\n [selectedColumnCount]=\"0\"\n [selectedSortCount]=\"0\"\n [selectedFilterTableCount]=\"0\"\n (viewChange)=\"onViewChange($event)\"\n (stateChange)=\"onStateChange($event)\"\n (onSearchChange)=\"handleSearch($event)\"\n >\n <div table-content>\n <lib-data-table\n [data]=\"data()\"\n [columns]=\"config.columns\"\n [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\"\n >\n <ng-container libColumn=\"history\">\n <ng-template #cell let-value>\n <a\n *ngIf=\"\n permissionConfig && permissionConfig.Actions['ViewHistory']\n \"\n [routerLink]=\"['/workflow/task-history', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view history</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"workflow\">\n <ng-template #cell let-value>\n <a\n [routerLink]=\"['/workflow/workflows', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view Workflow</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template #cell let-row=\"row\">\n <lib-operation-popup\n *ngIf=\"showActions()\"\n [task]=\"row\"\n [allowedActions]=\"getActionNamesForTask(row)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n <!-- <lib-operation-popup [user]=\"user()\" [task]=\"row\" [allowedActions]=\"getActionNamesForTask(row)\"\n (actionComplete)=\"loadInitialData()\">\n <div trigger class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\">\n <verben-svg icon=\"dots\" [width]=\"3\" [height]=\"18\" class=\"w-auto\"></verben-svg>\n </div>\n </lib-operation-popup> -->\n </ng-template>\n <ng-template #header>\n <strong>Actions</strong>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n\n <div card-content>\n <verben-card-data-view\n borderRadius=\"12px\"\n (loadMoreClick)=\"loadMore()\"\n #vdcv\n dataId=\"Id\"\n border=\"5px\"\n [cardDataList]=\"cardData()\"\n rbgColor=\"var(--vbn-color-surface-alt)\"\n mg=\"20px\"\n >\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data\n #vlcd\n [parent]=\"vdcv\"\n dataId=\"Code\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\"\n [cardDataList]=\"cardData()\"\n >\n <ng-template #card let-cardItem>\n <div (click)=\"cardClicked(cardItem)\" class=\"flex\">\n <div\n (click)=\"cardClicked(cardItem)\"\n class=\"flex cursor-pointer w-full bg-secondary rounded-xl\"\n >\n <div\n class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\"\n [ngClass]=\"\n cardItem.selected ? 'bg-primary' : 'bg-secondary-200'\n \"\n ></div>\n <div class=\"flex flex-col py-2 px-4 w-full\">\n <div class=\"flex items-center gap-4 justify-between\">\n <div class=\"grid gap-y-2\">\n <span\n class=\"font-semibold text-[var(--vbn-color-on-primary)]\"\n >{{ cardItem.title }}</span\n >\n <p class=\"flex items-center\">\n <!-- <label for=\"phone\" class=\"text-[10px] font-light\">Current Actors:</label> -->\n @if (\n cardItem.data.CurrentActors &&\n cardItem.data.CurrentActors.length > 0\n ) {\n @if (cardItem.data.CurrentActors.length === 1) {\n <span id=\"phone\" class=\"text-sm\">{{\n cardItem.data.CurrentActors[0].Identifier\n }}</span>\n } @else {\n <verben-tooltip\n [top]=\"'0px'\"\n [textColor]=\"'var(--vbn-color-text)'\"\n [backgroundColor]=\"'var(--vbn-color-border)'\"\n [left]=\"'0'\"\n [tooltipContent]=\"actorsTooltipTemplate\"\n #actorsTooltip\n >\n <span id=\"phone\" class=\"text-sm cursor-pointer\">\n {{\n cardItem.data.CurrentActors[0].Identifier\n }}\n and\n {{ cardItem.data.CurrentActors.length - 1 }}\n others\n </span>\n </verben-tooltip>\n\n <ng-template #actorsTooltipTemplate>\n <div class=\"p-2\">\n <p class=\"text-xs font-semibold mb-1\">\n Current Actors:\n </p>\n <ul class=\"list-disc list-inside\">\n @for (\n actor of cardItem.data.CurrentActors;\n track actor.Identifier\n ) {\n <li class=\"text-xs\">\n {{ actor.Identifier }}\n </li>\n }\n </ul>\n </div>\n </ng-template>\n }\n } @else {\n <span id=\"phone\" class=\"text-sm text-gray-400\"\n >No actors assigned</span\n >\n }\n </p>\n </div>\n\n <div class=\"grid gap-y-2\">\n <span for=\"role\" class=\"font-light\">{{\n cardItem.data.Code\n }}</span>\n\n <div\n (click)=\"$event.stopPropagation()\"\n class=\"flex items-end gap-4\"\n >\n <a\n *ngIf=\"\n permissionConfig &&\n permissionConfig.Actions['ViewHistory']\n \"\n [routerLink]=\"[\n '/workflow/task-history',\n cardItem.data.Code,\n ]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)] text-xs relative z-10\"\n >view history</a\n >\n\n <lib-operation-popup\n *ngIf=\"showActions()\"\n [task]=\"cardItem.data\"\n [allowedActions]=\"\n getActionNamesForTask(cardItem.data)\n \"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n <!-- <lib-operation-popup [user]=\"user()\" [task]=\"cardItem.data\"\n [allowedActions]=\"getActionNamesForTask(cardItem.data)\" (actionComplete)=\"loadInitialData()\">\n <div trigger class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\">\n <verben-svg icon=\"dots\" [width]=\"3\" [height]=\"18\" class=\"w-auto\"></verben-svg>\n </div>\n </lib-operation-popup> -->\n </div>\n </div>\n </div>\n\n <!-- <div class=\"flex\">\n <span class=\"font-normal text-sm\">{{ item.title }}</span>\n </div>\n @for (ciItem of item.body; track ciItem.value) {\n <div class=\"\">\n <span class=\"text-muted font-light text-xs\"\n >{{ ciItem.title }}:</span\n >\n <span class=\"text-black\">{{ ciItem.value }}</span>\n </div>\n } -->\n </div>\n </div>\n </div>\n </ng-template>\n </verben-left-card-data>\n </verben-left-card-data-view>\n\n <verben-right-card-data-view>\n <ng-template #parent>\n <!-- <lib-user-request-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n (onApproval)=\"onApprove($event)\"\n ></lib-user-request-form> -->\n <div class=\"flex flex-col gap-3\">\n <app-workflow-stage\n *ngIf=\"\n currentData &&\n currentData.data.Code.trim().length > 0 &&\n currentData.data.TaskData &&\n permissionConfig &&\n permissionConfig.Actions['ViewHistory']\n \"\n [user]=\"user()\"\n [isVisible]=\"showForm\"\n [taskCode]=\"currentData.data.TaskData.Code\"\n (onClose)=\"onFormClose($event)\"\n [forms]=\"currentData.data.TaskData.TaskForms\"\n [currentActors]=\"currentData.data.TaskData.CurrentActors\"\n [historyToDate]=\"currentData.data.TaskData.HistoryToDate\"\n [nextActions]=\"currentData.data.TaskData.NextActions\"\n [task]=\"currentData.data.TaskData\"\n [readOnly]=\"true\"\n >\n </app-workflow-stage>\n\n <tasks-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n (onSave)=\"onSave($event)\"\n ></tasks-form>\n </div>\n </ng-template>\n </verben-right-card-data-view>\n\n <verben-card-data-view-footer class=\"w-full\">\n <div\n [ngClass]=\"{\n 'flex gap-2 items-center': true,\n 'justify-end': true,\n }\"\n >\n <!-- <verbena-button\n *ngIf=\"!vdcv.hasCurrentItem()\"\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [pd]=\"'9.79px 37.28px'\"\n [text]=\"'Delete'\"\n >\n </verbena-button> -->\n <div\n class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\"\n >\n <span class=\"paginator-text\"\n >{{ cardData().length }} records loaded</span\n >\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n </verben-card-data-view-footer>\n </verben-card-data-view>\n </div>\n <div column-content>\n <lib-data-columns\n [columns]=\"config.columns\"\n (columnsUpdated)=\"onColumnsUpdated($event)\"\n ></lib-data-columns>\n </div>\n <div filter-content>\n <verben-table-filter\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"420px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"\n ></verben-table-filter>\n </div>\n <div sort-content>\n <lib-data-sort\n [columns]=\"config.columns\"\n [data]=\"data()\"\n (sortApplied)=\"onSortUpdated($event)\"\n ></lib-data-sort>\n </div>\n <div export-content>\n <lib-data-export [data]=\"data()\" (exportDataEvent)=\"handleExport($event)\">\n </lib-data-export>\n </div>\n </verben-data-view>\n\n <div *ngIf=\"vdv.isTableView\" class=\"flex gap-2 justify-between\">\n <div class=\"message-log-button-container flex justify-between\">\n <!-- <verbena-button\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [pd]=\"'9.79px 37.28px'\"\n [text]=\"'Delete'\"\n >\n </verbena-button> -->\n </div>\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData().length }} records loaded</span>\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n</div>\n", styles: [".view-links{color:var(--vbn-color-border-focus);cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.DataTableComponent, selector: "lib-data-table", inputs: ["data", "columns", "dataKey", "formGroupConfig", "groupBy", "useVirtualScroll", "virtualScrollItemSize", "styleConfig"], outputs: ["rowEdit", "rowSave", "rowRevert", "rowDelete", "selectionChange"] }, { kind: "directive", type: i5.ColumnDirective, selector: "[libColumn]", inputs: ["libColumn"] }, { kind: "component", type: i5.SvgComponent, selector: "verben-svg", inputs: ["icon", "width", "height", "fill", "stroke", "type", "size"] }, { kind: "component", type: i5.DataViewComponent, selector: "verben-data-view", inputs: ["buttonClass", "iconClass", "activeIconClass", "columnCustomClass", "filterCustomClass", "sortCustomClass", "extendCustomClass", "exportCustomClass", "selectCustomClass", "importCustomClass", "zIndex", "createCustomClass", "tableIcon", "cardIcon", "cardClass", "tableClass", "searchKey", "searchValue", "viewState", "searchTemplate", "importTemplate", "columnTemplate", "extendTemplate", "filterTemplate", "sortTemplate", "children", "exportTemplate", "createTemplate", "selectedColumnCount", "selectedSortCount", "selectedFilterTableCount", "inputWidth", "milliseconds", "showColumnChild", "showSortChild", "showFilterChild", "showImportChild", "showExportChild", "showExtendChild", "create", "showSelected", "isTableView"], outputs: ["viewChange", "stateChange", "onSearchChange"] }, { kind: "component", type: i5.CardDataViewComponent, selector: "verben-card-data-view", inputs: ["pd", "mg", "lHeight", "rHeight", "rWidth", "lWidth", "textColor", "lbgColor", "rbgColor", "border", "display", "borderRadius", "activeCss", "inActiveCss", "displayAsRow", "cardDataList", "dataId", "totalRecords", "footer", "noOfVisibleChildren", "showEditIcon", "useVirtualScroll", "virtualScrollItemSize", "onItemClick", "onCardChildClick"], outputs: ["editClicked", "loadMoreClick"] }, { kind: "component", type: i5.LeftCardDataComponent, selector: "verben-left-card-data", inputs: ["pd", "mg", "height", "weight", "activeCss", "inActiveCss", "cardDataList", "iconCollapse", "iconExpanded", "parent", "useVirtualScroll", "virtualScrollItemSize", "dataId"] }, { kind: "component", type: i5.LeftCardDataViewComponent, selector: "verben-left-card-data-view", inputs: ["cardDataList"] }, { kind: "component", type: i5.RightCardDataViewComponent, selector: "verben-right-card-data-view", inputs: ["parentData", "chilData", "meth"] }, { kind: "component", type: i5.CardDataViewFooterComponent, selector: "verben-card-data-view-footer" }, { kind: "component", type: i5.TableFilterComponent, selector: "verben-table-filter", inputs: ["filterOptions", "pd", "mg", "height", "width", "bgColor", "boxShadow", "textColor", "primaryColor", "secondaryColor", "tertiaryColor", "border", "borderRadius", "selectWidth", "maxFilterLength", "savedFilters", "tooltip", "saveCallback"], outputs: ["filtersApplied", "resetSortData"] }, { kind: "component", type: i5.DataExportComponent, selector: "lib-data-export", inputs: ["columns", "data", "dataFetchUrl", "dataQueryParameters"], outputs: ["exportDataEvent"] }, { kind: "component", type: i5.DataColumnsComponent, selector: "lib-data-columns", inputs: ["columns", "enableDragAndDrop", "maxVisibleItems", "selectedColumns"], outputs: ["columnsUpdated"] }, { kind: "component", type: i5.DataSortComponent, selector: "lib-data-sort", inputs: ["columns", "data", "enableDragAndDrop"], outputs: ["sortApplied", "resetFilter"] }, { kind: "directive", type: i6$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i5.TooltipComponent, selector: "verben-tooltip", inputs: ["tooltipContent", "customClass", "backgroundColor", "textColor", "padding", "borderRadius", "zIndex", "border", "width", "top", "bottom", "left", "right"] }, { kind: "component", type: i7$1.OperationPopupComponent, selector: "lib-operation-popup", inputs: ["user", "task", "allowedActions"], outputs: ["actionComplete"] }, { kind: "component", type: i8.WorkflowStageComponent, selector: "app-workflow-stage", inputs: ["historyToDate", "taskCode", "forms", "isVisible", "readOnly", "currentActors", "user", "userName", "nextActions", "task"], outputs: ["onActionCompleted", "onPickCompleted", "onCommentCompleted", "onFormCompleted", "onOpen", "onClose"] }, { kind: "component", type: TasksFormComponent, selector: "tasks-form", inputs: ["currentData"], outputs: ["onTaskFormSave", "onSave"] }] });
|
|
994
|
+
}
|
|
995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksComponent, decorators: [{
|
|
996
|
+
type: Component,
|
|
997
|
+
args: [{ selector: 'lib-tasks', providers: [TasksService, TaskFacade, TaskState], template: "<div class=\"space-y-8\">\n <verben-data-view\n #vdv\n [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: false,\n isSort: false,\n isExport: true,\n isSelect: true,\n isCreate: !!permissionConfig && permissionConfig.Actions['Create'],\n isToggle: true,\n }\"\n [buttonClass]=\"'my-custom-button-class'\"\n [iconClass]=\"'my-icon-class'\"\n [activeIconClass]=\"'my-active-icon-class'\"\n [selectedColumnCount]=\"0\"\n [selectedSortCount]=\"0\"\n [selectedFilterTableCount]=\"0\"\n (viewChange)=\"onViewChange($event)\"\n (stateChange)=\"onStateChange($event)\"\n (onSearchChange)=\"handleSearch($event)\"\n >\n <div table-content>\n <lib-data-table\n [data]=\"data()\"\n [columns]=\"config.columns\"\n [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\"\n >\n <ng-container libColumn=\"history\">\n <ng-template #cell let-value>\n <a\n *ngIf=\"\n permissionConfig && permissionConfig.Actions['ViewHistory']\n \"\n [routerLink]=\"['/workflow/task-history', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view history</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"workflow\">\n <ng-template #cell let-value>\n <a\n [routerLink]=\"['/workflow/workflows', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view Workflow</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template #cell let-row=\"row\">\n <lib-operation-popup\n *ngIf=\"showActions()\"\n [task]=\"row\"\n [allowedActions]=\"getActionNamesForTask(row)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n <!-- <lib-operation-popup [user]=\"user()\" [task]=\"row\" [allowedActions]=\"getActionNamesForTask(row)\"\n (actionComplete)=\"loadInitialData()\">\n <div trigger class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\">\n <verben-svg icon=\"dots\" [width]=\"3\" [height]=\"18\" class=\"w-auto\"></verben-svg>\n </div>\n </lib-operation-popup> -->\n </ng-template>\n <ng-template #header>\n <strong>Actions</strong>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n\n <div card-content>\n <verben-card-data-view\n borderRadius=\"12px\"\n (loadMoreClick)=\"loadMore()\"\n #vdcv\n dataId=\"Id\"\n border=\"5px\"\n [cardDataList]=\"cardData()\"\n rbgColor=\"var(--vbn-color-surface-alt)\"\n mg=\"20px\"\n >\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data\n #vlcd\n [parent]=\"vdcv\"\n dataId=\"Code\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\"\n [cardDataList]=\"cardData()\"\n >\n <ng-template #card let-cardItem>\n <div (click)=\"cardClicked(cardItem)\" class=\"flex\">\n <div\n (click)=\"cardClicked(cardItem)\"\n class=\"flex cursor-pointer w-full bg-secondary rounded-xl\"\n >\n <div\n class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\"\n [ngClass]=\"\n cardItem.selected ? 'bg-primary' : 'bg-secondary-200'\n \"\n ></div>\n <div class=\"flex flex-col py-2 px-4 w-full\">\n <div class=\"flex items-center gap-4 justify-between\">\n <div class=\"grid gap-y-2\">\n <span\n class=\"font-semibold text-[var(--vbn-color-on-primary)]\"\n >{{ cardItem.title }}</span\n >\n <p class=\"flex items-center\">\n <!-- <label for=\"phone\" class=\"text-[10px] font-light\">Current Actors:</label> -->\n @if (\n cardItem.data.CurrentActors &&\n cardItem.data.CurrentActors.length > 0\n ) {\n @if (cardItem.data.CurrentActors.length === 1) {\n <span id=\"phone\" class=\"text-sm\">{{\n cardItem.data.CurrentActors[0].Identifier\n }}</span>\n } @else {\n <verben-tooltip\n [top]=\"'0px'\"\n [textColor]=\"'var(--vbn-color-text)'\"\n [backgroundColor]=\"'var(--vbn-color-border)'\"\n [left]=\"'0'\"\n [tooltipContent]=\"actorsTooltipTemplate\"\n #actorsTooltip\n >\n <span id=\"phone\" class=\"text-sm cursor-pointer\">\n {{\n cardItem.data.CurrentActors[0].Identifier\n }}\n and\n {{ cardItem.data.CurrentActors.length - 1 }}\n others\n </span>\n </verben-tooltip>\n\n <ng-template #actorsTooltipTemplate>\n <div class=\"p-2\">\n <p class=\"text-xs font-semibold mb-1\">\n Current Actors:\n </p>\n <ul class=\"list-disc list-inside\">\n @for (\n actor of cardItem.data.CurrentActors;\n track actor.Identifier\n ) {\n <li class=\"text-xs\">\n {{ actor.Identifier }}\n </li>\n }\n </ul>\n </div>\n </ng-template>\n }\n } @else {\n <span id=\"phone\" class=\"text-sm text-gray-400\"\n >No actors assigned</span\n >\n }\n </p>\n </div>\n\n <div class=\"grid gap-y-2\">\n <span for=\"role\" class=\"font-light\">{{\n cardItem.data.Code\n }}</span>\n\n <div\n (click)=\"$event.stopPropagation()\"\n class=\"flex items-end gap-4\"\n >\n <a\n *ngIf=\"\n permissionConfig &&\n permissionConfig.Actions['ViewHistory']\n \"\n [routerLink]=\"[\n '/workflow/task-history',\n cardItem.data.Code,\n ]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)] text-xs relative z-10\"\n >view history</a\n >\n\n <lib-operation-popup\n *ngIf=\"showActions()\"\n [task]=\"cardItem.data\"\n [allowedActions]=\"\n getActionNamesForTask(cardItem.data)\n \"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n <!-- <lib-operation-popup [user]=\"user()\" [task]=\"cardItem.data\"\n [allowedActions]=\"getActionNamesForTask(cardItem.data)\" (actionComplete)=\"loadInitialData()\">\n <div trigger class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\">\n <verben-svg icon=\"dots\" [width]=\"3\" [height]=\"18\" class=\"w-auto\"></verben-svg>\n </div>\n </lib-operation-popup> -->\n </div>\n </div>\n </div>\n\n <!-- <div class=\"flex\">\n <span class=\"font-normal text-sm\">{{ item.title }}</span>\n </div>\n @for (ciItem of item.body; track ciItem.value) {\n <div class=\"\">\n <span class=\"text-muted font-light text-xs\"\n >{{ ciItem.title }}:</span\n >\n <span class=\"text-black\">{{ ciItem.value }}</span>\n </div>\n } -->\n </div>\n </div>\n </div>\n </ng-template>\n </verben-left-card-data>\n </verben-left-card-data-view>\n\n <verben-right-card-data-view>\n <ng-template #parent>\n <!-- <lib-user-request-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n (onApproval)=\"onApprove($event)\"\n ></lib-user-request-form> -->\n <div class=\"flex flex-col gap-3\">\n <app-workflow-stage\n *ngIf=\"\n currentData &&\n currentData.data.Code.trim().length > 0 &&\n currentData.data.TaskData &&\n permissionConfig &&\n permissionConfig.Actions['ViewHistory']\n \"\n [user]=\"user()\"\n [isVisible]=\"showForm\"\n [taskCode]=\"currentData.data.TaskData.Code\"\n (onClose)=\"onFormClose($event)\"\n [forms]=\"currentData.data.TaskData.TaskForms\"\n [currentActors]=\"currentData.data.TaskData.CurrentActors\"\n [historyToDate]=\"currentData.data.TaskData.HistoryToDate\"\n [nextActions]=\"currentData.data.TaskData.NextActions\"\n [task]=\"currentData.data.TaskData\"\n [readOnly]=\"true\"\n >\n </app-workflow-stage>\n\n <tasks-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n (onSave)=\"onSave($event)\"\n ></tasks-form>\n </div>\n </ng-template>\n </verben-right-card-data-view>\n\n <verben-card-data-view-footer class=\"w-full\">\n <div\n [ngClass]=\"{\n 'flex gap-2 items-center': true,\n 'justify-end': true,\n }\"\n >\n <!-- <verbena-button\n *ngIf=\"!vdcv.hasCurrentItem()\"\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [pd]=\"'9.79px 37.28px'\"\n [text]=\"'Delete'\"\n >\n </verbena-button> -->\n <div\n class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\"\n >\n <span class=\"paginator-text\"\n >{{ cardData().length }} records loaded</span\n >\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n </verben-card-data-view-footer>\n </verben-card-data-view>\n </div>\n <div column-content>\n <lib-data-columns\n [columns]=\"config.columns\"\n (columnsUpdated)=\"onColumnsUpdated($event)\"\n ></lib-data-columns>\n </div>\n <div filter-content>\n <verben-table-filter\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"420px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"\n ></verben-table-filter>\n </div>\n <div sort-content>\n <lib-data-sort\n [columns]=\"config.columns\"\n [data]=\"data()\"\n (sortApplied)=\"onSortUpdated($event)\"\n ></lib-data-sort>\n </div>\n <div export-content>\n <lib-data-export [data]=\"data()\" (exportDataEvent)=\"handleExport($event)\">\n </lib-data-export>\n </div>\n </verben-data-view>\n\n <div *ngIf=\"vdv.isTableView\" class=\"flex gap-2 justify-between\">\n <div class=\"message-log-button-container flex justify-between\">\n <!-- <verbena-button\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [pd]=\"'9.79px 37.28px'\"\n [text]=\"'Delete'\"\n >\n </verbena-button> -->\n </div>\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData().length }} records loaded</span>\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n</div>\n", styles: [".view-links{color:var(--vbn-color-border-focus);cursor:pointer}\n"] }]
|
|
998
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: TaskState }, { type: TaskFacade }, { type: i3.HttpWebRequestService }], propDecorators: { permissionConfig: [{
|
|
999
|
+
type: Input
|
|
1000
|
+
}] } });
|
|
1001
|
+
|
|
1002
|
+
class TasksModule {
|
|
1003
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1004
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: TasksModule, declarations: [TasksComponent, TasksFormComponent], imports: [CommonModule,
|
|
1005
|
+
SharedModule,
|
|
1006
|
+
TaskFormModule,
|
|
1007
|
+
FormControlerModule,
|
|
1008
|
+
FormTimerModule,
|
|
1009
|
+
RouterLink,
|
|
1010
|
+
TooltipModule,
|
|
1011
|
+
OperationPopupComponent,
|
|
1012
|
+
WorkFlowStageLibModule], exports: [TasksComponent] });
|
|
1013
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksModule, imports: [CommonModule,
|
|
1014
|
+
SharedModule,
|
|
1015
|
+
TaskFormModule,
|
|
1016
|
+
FormControlerModule,
|
|
1017
|
+
FormTimerModule,
|
|
1018
|
+
TooltipModule,
|
|
1019
|
+
OperationPopupComponent,
|
|
1020
|
+
WorkFlowStageLibModule] });
|
|
1021
|
+
}
|
|
1022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksModule, decorators: [{
|
|
1023
|
+
type: NgModule,
|
|
1024
|
+
args: [{
|
|
1025
|
+
declarations: [TasksComponent, TasksFormComponent],
|
|
1026
|
+
imports: [
|
|
1027
|
+
CommonModule,
|
|
1028
|
+
SharedModule,
|
|
1029
|
+
TaskFormModule,
|
|
1030
|
+
FormControlerModule,
|
|
1031
|
+
FormTimerModule,
|
|
1032
|
+
RouterLink,
|
|
1033
|
+
TooltipModule,
|
|
1034
|
+
OperationPopupComponent,
|
|
1035
|
+
WorkFlowStageLibModule,
|
|
1036
|
+
],
|
|
1037
|
+
exports: [TasksComponent],
|
|
1038
|
+
}]
|
|
1039
|
+
}] });
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* Generated bundle index. Do not edit.
|
|
1043
|
+
*/
|
|
1044
|
+
|
|
1045
|
+
export { TaskFacade, TaskModel, TasksComponent, TasksModule, TasksService };
|
|
1046
|
+
//# sourceMappingURL=verben-workflow-ui-src-lib-components-tasks.mjs.map
|