verben-workflow-ui 0.5.82 → 0.5.83
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 +39 -0
- package/esm2022/src/lib/components/actors/actors.columns.mjs +39 -0
- package/esm2022/src/lib/components/actors/actors.component.mjs +129 -0
- package/esm2022/src/lib/components/actors/actors.facade.mjs +253 -0
- package/esm2022/src/lib/components/actors/actors.form.component.mjs +78 -0
- package/esm2022/src/lib/components/actors/actors.module.mjs +21 -0
- package/esm2022/src/lib/components/actors/actors.service.mjs +78 -0
- package/esm2022/src/lib/components/actors/actors.state.mjs +100 -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 +319 -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 +138 -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 +109 -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 +324 -0
- package/esm2022/src/lib/components/designer/services/wf-persistence.service.mjs +167 -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 +136 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.facade.mjs +207 -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 +54 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.state.mjs +85 -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 +157 -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 +958 -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 +707 -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 +645 -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 +50 -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/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 +29 -0
- package/esm2022/src/lib/components/my-queue/my-queue.component.mjs +142 -0
- package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +469 -0
- package/esm2022/src/lib/components/my-queue/my-queue.module.mjs +40 -0
- package/esm2022/src/lib/components/my-queue/my-queue.service.mjs +138 -0
- package/esm2022/src/lib/components/my-queue/my-queue.state.mjs +90 -0
- package/esm2022/src/lib/components/my-queue/public-api.mjs +4 -0
- package/esm2022/src/lib/components/my-queue/tasks.form.component.mjs +147 -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 +353 -0
- package/esm2022/src/lib/components/operation-popup/operation-popup.facade.mjs +352 -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 +51 -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 +221 -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 +34 -0
- package/esm2022/src/lib/components/tasks/tasks.component.mjs +113 -0
- package/esm2022/src/lib/components/tasks/tasks.facade.mjs +355 -0
- package/esm2022/src/lib/components/tasks/tasks.form.component.mjs +147 -0
- package/esm2022/src/lib/components/tasks/tasks.models.mjs +4 -0
- package/esm2022/src/lib/components/tasks/tasks.module.mjs +48 -0
- package/esm2022/src/lib/components/tasks/tasks.service.mjs +106 -0
- package/esm2022/src/lib/components/tasks/tasks.state.mjs +96 -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 +69 -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 +216 -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 +119 -0
- package/esm2022/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.mjs +70 -0
- package/esm2022/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.mjs +76 -0
- package/esm2022/src/lib/components/workflow-designer/decision-popup/decision-popup.component.mjs +65 -0
- package/esm2022/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.mjs +1226 -0
- package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.mjs +83 -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 +238 -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 +222 -0
- package/esm2022/src/lib/components/workflow-designer/services/node-management.service.mjs +300 -0
- package/esm2022/src/lib/components/workflow-designer/services/popup.service.mjs +235 -0
- package/esm2022/src/lib/components/workflow-designer/services/swimlane.service.mjs +145 -0
- package/esm2022/src/lib/components/workflow-designer/services/transformer.service.mjs +263 -0
- package/esm2022/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.mjs +175 -0
- package/esm2022/src/lib/components/workflow-designer/stage-node/stage-node.component.mjs +217 -0
- package/esm2022/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.mjs +131 -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 +186 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.component.mjs +408 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.module.mjs +107 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.state.mjs +759 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.types.mjs +2 -0
- package/esm2022/src/lib/components/workflows/index.mjs +2 -0
- package/esm2022/src/lib/components/workflows/public-api.mjs +4 -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 +91 -0
- package/esm2022/src/lib/components/workflows/workflows.columns.mjs +34 -0
- package/esm2022/src/lib/components/workflows/workflows.component.mjs +190 -0
- package/esm2022/src/lib/components/workflows/workflows.facade.mjs +306 -0
- package/esm2022/src/lib/components/workflows/workflows.helper.mjs +21 -0
- package/esm2022/src/lib/components/workflows/workflows.module.mjs +21 -0
- package/esm2022/src/lib/components/workflows/workflows.service.mjs +122 -0
- package/esm2022/src/lib/components/workflows/workflows.state.mjs +92 -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 +27 -0
- package/esm2022/src/lib/services/http-web-request.service.mjs +90 -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 +65 -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 +158 -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-components-actors.mjs +678 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs +3892 -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 +558 -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 +234 -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 +1981 -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 +773 -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 +81 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.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 +1034 -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 +812 -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 +74 -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 +273 -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 +878 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs +204 -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 +4908 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs +371 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs +854 -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 +311 -0
- package/fesm2022/verben-workflow-ui-src-lib-services.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-shared.mjs +340 -0
- package/fesm2022/verben-workflow-ui-src-lib-shared.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui.mjs +32 -0
- package/fesm2022/verben-workflow-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/package.json +175 -9
- package/public-api.d.ts +20 -0
- package/src/lib/components/actors/actors.columns.d.ts +3 -0
- package/src/lib/components/actors/actors.component.d.ts +31 -0
- package/src/lib/components/actors/actors.facade.d.ts +37 -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 +53 -0
- package/src/lib/components/actors/actors.state.d.ts +36 -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 +34 -0
- package/src/lib/components/flowable-status/flowable-status.facade.d.ts +32 -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 +35 -0
- package/src/lib/components/flowable-status/flowable-status.state.d.ts +30 -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/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 +26 -0
- package/src/lib/components/my-queue/my-queue.facade.d.ts +42 -0
- package/src/lib/components/my-queue/my-queue.module.d.ts +14 -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 +33 -0
- package/src/lib/components/my-queue/tasks.form.component.d.ts +36 -0
- package/src/lib/components/operation-popup/operation-popup.component.d.ts +57 -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 +3 -0
- package/src/lib/components/tasks/tasks.component.d.ts +28 -0
- package/src/lib/components/tasks/tasks.facade.d.ts +40 -0
- package/src/lib/components/tasks/tasks.form.component.d.ts +36 -0
- package/src/lib/components/tasks/tasks.models.d.ts +4 -0
- package/src/lib/components/tasks/tasks.module.d.ts +16 -0
- package/src/lib/components/tasks/tasks.service.d.ts +57 -0
- package/src/lib/components/tasks/tasks.state.d.ts +35 -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 +30 -0
- package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.d.ts +24 -0
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.d.ts +34 -0
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.d.ts +26 -0
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.d.ts +188 -0
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.d.ts +33 -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 +42 -0
- package/src/lib/components/workflow-designer/services/connection.service.d.ts +85 -0
- package/src/lib/components/workflow-designer/services/node-management.service.d.ts +52 -0
- package/src/lib/components/workflow-designer/services/popup.service.d.ts +139 -0
- package/src/lib/components/workflow-designer/services/swimlane.service.d.ts +51 -0
- package/src/lib/components/workflow-designer/services/transformer.service.d.ts +36 -0
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.d.ts +40 -0
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.d.ts +54 -0
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.d.ts +45 -0
- package/src/lib/components/workflow-designer/workflow-data.service.d.ts +35 -0
- package/src/lib/components/workflow-designer/workflow-designer.component.d.ts +47 -0
- package/src/lib/components/workflow-designer/workflow-designer.module.d.ts +22 -0
- package/src/lib/components/workflow-designer/workflow-designer.state.d.ts +99 -0
- package/src/lib/components/workflow-designer/workflow-designer.types.d.ts +49 -0
- package/src/lib/components/workflows/workflow-form/workflow-form.component.d.ts +28 -0
- package/src/lib/components/workflows/workflows.columns.d.ts +3 -0
- package/src/lib/components/workflows/workflows.component.d.ts +49 -0
- package/src/lib/components/workflows/workflows.facade.d.ts +38 -0
- package/src/lib/components/workflows/workflows.helper.d.ts +3 -0
- package/src/lib/components/workflows/workflows.module.d.ts +11 -0
- package/src/lib/components/workflows/workflows.service.d.ts +78 -0
- package/src/lib/components/workflows/workflows.state.d.ts +33 -0
- package/src/lib/models/ActionHistory.d.ts +14 -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 +22 -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 +20 -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 +11 -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 +23 -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 +12 -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/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 -329
- package/src/lib/components/actors/actors.component.spec.ts +0 -23
- package/src/lib/components/actors/actors.component.ts +0 -141
- package/src/lib/components/actors/actors.facade.ts +0 -314
- package/src/lib/components/actors/actors.form.component.html +0 -37
- package/src/lib/components/actors/actors.form.component.ts +0 -80
- 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 -101
- package/src/lib/components/actors/actors.state.ts +0 -117
- 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 -210
- 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 -185
- 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 -139
- 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 -448
- package/src/lib/components/designer/services/wf-persistence.service.ts +0 -180
- 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 -159
- package/src/lib/components/flowable-status/flowable-status.component.ts +0 -147
- package/src/lib/components/flowable-status/flowable-status.facade.ts +0 -251
- 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 -62
- package/src/lib/components/flowable-status/flowable-status.state.ts +0 -97
- 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 -171
- 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 -1120
- 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 -798
- 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 -726
- 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 -52
- 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/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 -32
- package/src/lib/components/my-queue/my-queue.component.css +0 -4
- package/src/lib/components/my-queue/my-queue.component.html +0 -181
- package/src/lib/components/my-queue/my-queue.component.spec.ts +0 -23
- package/src/lib/components/my-queue/my-queue.component.ts +0 -136
- package/src/lib/components/my-queue/my-queue.facade.ts +0 -577
- package/src/lib/components/my-queue/my-queue.helper.ts +0 -72
- package/src/lib/components/my-queue/my-queue.module.ts +0 -23
- package/src/lib/components/my-queue/my-queue.service.spec.ts +0 -16
- package/src/lib/components/my-queue/my-queue.service.ts +0 -229
- package/src/lib/components/my-queue/my-queue.state.ts +0 -105
- package/src/lib/components/my-queue/ng-package.json +0 -6
- package/src/lib/components/my-queue/tasks.form.component.html +0 -144
- package/src/lib/components/my-queue/tasks.form.component.ts +0 -152
- 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 -381
- package/src/lib/components/operation-popup/operation-popup.facade.ts +0 -430
- 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 -45
- 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 -236
- 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 -36
- package/src/lib/components/tasks/tasks.component.css +0 -4
- package/src/lib/components/tasks/tasks.component.html +0 -215
- package/src/lib/components/tasks/tasks.component.spec.ts +0 -23
- package/src/lib/components/tasks/tasks.component.ts +0 -111
- package/src/lib/components/tasks/tasks.facade.ts +0 -443
- package/src/lib/components/tasks/tasks.form.component.html +0 -144
- package/src/lib/components/tasks/tasks.form.component.ts +0 -152
- package/src/lib/components/tasks/tasks.helper.ts +0 -72
- package/src/lib/components/tasks/tasks.models.ts +0 -4
- package/src/lib/components/tasks/tasks.module.ts +0 -28
- package/src/lib/components/tasks/tasks.service.spec.ts +0 -16
- package/src/lib/components/tasks/tasks.service.ts +0 -157
- package/src/lib/components/tasks/tasks.state.ts +0 -113
- 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 -72
- package/src/lib/components/wf/wf.facade.ts +0 -274
- 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 -230
- 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 -136
- 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 -75
- 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 -76
- 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 -61
- 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 -1620
- 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 -73
- 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 -170
- 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 -107
- package/src/lib/components/workflow-designer/docs/06-known-issues.md +0 -126
- package/src/lib/components/workflow-designer/docs/README.md +0 -71
- 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 -272
- package/src/lib/components/workflow-designer/ng-package.json +0 -6
- package/src/lib/components/workflow-designer/services/connection.service.ts +0 -309
- package/src/lib/components/workflow-designer/services/node-management.service.ts +0 -351
- package/src/lib/components/workflow-designer/services/popup.service.ts +0 -271
- package/src/lib/components/workflow-designer/services/swimlane.service.ts +0 -163
- package/src/lib/components/workflow-designer/services/transformer.service.ts +0 -301
- 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 -190
- 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 -253
- 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 -149
- package/src/lib/components/workflow-designer/workflow-data.service.spec.ts +0 -16
- package/src/lib/components/workflow-designer/workflow-data.service.ts +0 -266
- 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 -515
- package/src/lib/components/workflow-designer/workflow-designer.models.ts +0 -102
- package/src/lib/components/workflow-designer/workflow-designer.module.ts +0 -69
- package/src/lib/components/workflow-designer/workflow-designer.state.ts +0 -953
- package/src/lib/components/workflow-designer/workflow-designer.types.ts +0 -61
- package/src/lib/components/workflow-stage/workflow-stage.component.css +0 -24
- package/src/lib/components/workflow-stage/workflow-stage.component.html +0 -201
- package/src/lib/components/workflow-stage/workflow-stage.component.spec.ts +0 -23
- package/src/lib/components/workflow-stage/workflow-stage.component.ts +0 -179
- package/src/lib/components/workflow-stage/workflow-stage.module.ts +0 -55
- package/src/lib/components/workflows/ng-package.json +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 -128
- 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 -87
- package/src/lib/components/workflows/workflows.columns.ts +0 -36
- package/src/lib/components/workflows/workflows.component.css +0 -4
- package/src/lib/components/workflows/workflows.component.html +0 -271
- package/src/lib/components/workflows/workflows.component.spec.ts +0 -23
- package/src/lib/components/workflows/workflows.component.ts +0 -214
- package/src/lib/components/workflows/workflows.facade.ts +0 -386
- package/src/lib/components/workflows/workflows.helper.ts +0 -23
- 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 -161
- package/src/lib/components/workflows/workflows.state.ts +0 -106
- package/src/lib/models/ActionHistory.ts +0 -17
- 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 -23
- 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 -21
- 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 -12
- 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 -24
- package/src/lib/pipes/async-label.pipe.spec.ts +0 -8
- 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 -32
- package/src/lib/services/http-web-request.service.spec.ts +0 -16
- package/src/lib/services/http-web-request.service.ts +0 -118
- 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 -58
- package/src/lib/shared/base-table-style.ts +0 -56
- package/src/lib/shared/components/base-data-view.component.ts +0 -191
- 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 -54
- 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/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/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/workflows/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/workflows/{public-api.ts → public-api.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,1034 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, input, Component, Input, ViewChildren, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from 'verben-workflow-ui/src/lib/components/tasks';
|
|
4
|
+
import { TaskModel } from 'verben-workflow-ui/src/lib/components/tasks';
|
|
5
|
+
import { SortDirection, ErrorResponse, TaskStatus, ObjectState, DataType, Status } from 'verben-workflow-ui/src/lib/models';
|
|
6
|
+
import { BaseDataViewComponent, SharedModule } from 'verben-workflow-ui/src/lib/shared';
|
|
7
|
+
import { BehaviorSubject, lastValueFrom } from 'rxjs';
|
|
8
|
+
import * as i1 from 'verben-workflow-ui/src/lib/services';
|
|
9
|
+
import * as i3 from '@angular/common';
|
|
10
|
+
import { CommonModule } from '@angular/common';
|
|
11
|
+
import * as i3$1 from 'verben-ng-ui';
|
|
12
|
+
import * as i4 from '@angular/router';
|
|
13
|
+
import { RouterLink } from '@angular/router';
|
|
14
|
+
import * as i5 from 'verben-workflow-ui/src/lib/components/operation-popup';
|
|
15
|
+
import { OperationPopupComponent } from 'verben-workflow-ui/src/lib/components/operation-popup';
|
|
16
|
+
import * as i5$1 from 'verben-workflow-ui/src/lib/components/form-control';
|
|
17
|
+
import { FormControlerModule } from 'verben-workflow-ui/src/lib/components/form-control';
|
|
18
|
+
import * as i6 from 'verben-workflow-ui/src/lib/components/form-timer';
|
|
19
|
+
import { FormTimerModule } from 'verben-workflow-ui/src/lib/components/form-timer';
|
|
20
|
+
import * as i1$1 from '@angular/forms';
|
|
21
|
+
import { Validators } from '@angular/forms';
|
|
22
|
+
|
|
23
|
+
const columns = [
|
|
24
|
+
{
|
|
25
|
+
id: 'task',
|
|
26
|
+
header: 'TASK',
|
|
27
|
+
accessorKey: 'Name',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 'stage',
|
|
31
|
+
header: 'STAGE',
|
|
32
|
+
accessorFn: (row) => row.FullStages?.slice(0, 3)
|
|
33
|
+
?.map(({ Name }) => Name)
|
|
34
|
+
.join(', ') +
|
|
35
|
+
(row.FullStages?.length && row.FullStages?.length > 3
|
|
36
|
+
? ` ... + ${row.FullStages?.length - 3}`
|
|
37
|
+
: ''),
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: 'history',
|
|
41
|
+
header: 'HISTORY',
|
|
42
|
+
accessorKey: 'Code',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 'workflow',
|
|
46
|
+
header: 'WORKFLOW',
|
|
47
|
+
accessorKey: 'WorkflowCode',
|
|
48
|
+
},
|
|
49
|
+
{ id: 'actions', header: 'Actions' },
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
class MyQueueService {
|
|
53
|
+
httpService;
|
|
54
|
+
constructor(httpService) {
|
|
55
|
+
this.httpService = httpService;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get tasks with pagination and sorting
|
|
59
|
+
* @param skip Number of records to skip
|
|
60
|
+
* @param limit Number of records to take
|
|
61
|
+
* @param sortParam Sort parameter
|
|
62
|
+
* @param sortOrder Sort order ('asc' or 'desc')
|
|
63
|
+
* @returns Promise containing the tasks
|
|
64
|
+
*/
|
|
65
|
+
getTasks(skip, limit, sortParam, sortOrder) {
|
|
66
|
+
const url = `GetTasks/${skip}/${limit}/${sortParam}/${sortOrder}`;
|
|
67
|
+
return this.httpService.get(url);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Get tasks with additional parameter, pagination and sorting
|
|
71
|
+
* @param param Search parameter
|
|
72
|
+
* @param skip Number of records to skip
|
|
73
|
+
* @param limit Number of records to take
|
|
74
|
+
* @param sortParam Sort parameter
|
|
75
|
+
* @param sortOrder Sort order ('asc' or 'desc')
|
|
76
|
+
* @returns Promise containing the filtered tasks
|
|
77
|
+
*/
|
|
78
|
+
getTaskWithParam(param, skip, limit, sortParam, sortOrder) {
|
|
79
|
+
const url = `GetTaskWithParam/${param}/${skip}/${limit}/${sortParam}/${sortOrder}`;
|
|
80
|
+
return this.httpService.get(url);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Save multiple tasks
|
|
84
|
+
* @param requests Array of tasks to save
|
|
85
|
+
* @returns Promise containing the save operation result
|
|
86
|
+
*/
|
|
87
|
+
saveTasks(requests) {
|
|
88
|
+
const url = `SaveTasks`;
|
|
89
|
+
return this.httpService.post(url, requests);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Approve or reject multiple tasks
|
|
93
|
+
* @param requests Array of tasks to save
|
|
94
|
+
* @param isApproval True for approval, false for decline
|
|
95
|
+
* @returns Promise containing the save operation result
|
|
96
|
+
*/
|
|
97
|
+
processTasks(requests, isApproval) {
|
|
98
|
+
const url = `TaskAction/${isApproval}`;
|
|
99
|
+
return this.httpService.post(url, requests);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Delete multiple tasks
|
|
103
|
+
* @param requestIds Array of request IDs to delete
|
|
104
|
+
* @returns Observable containing the delete operation result
|
|
105
|
+
*/
|
|
106
|
+
deleteTasks(requestIds) {
|
|
107
|
+
const url = `DeleteTasks`;
|
|
108
|
+
return this.httpService.delete(`${url}?data=${requestIds.join(',')}`);
|
|
109
|
+
}
|
|
110
|
+
getTasksForUser(user, skip, limit, sortParam, sortOrder) {
|
|
111
|
+
const url = `GetTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}`;
|
|
112
|
+
return this.httpService.get(url);
|
|
113
|
+
}
|
|
114
|
+
getQueueTasksForUser(user, skip, limit, sortParam, sortOrder) {
|
|
115
|
+
const url = `GetQueueTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}`;
|
|
116
|
+
return this.httpService.get(url);
|
|
117
|
+
}
|
|
118
|
+
getPossibleTasksForUser(user, skip, limit, sortParam, sortOrder) {
|
|
119
|
+
const url = `GetPossibleTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}`;
|
|
120
|
+
return this.httpService.get(url);
|
|
121
|
+
}
|
|
122
|
+
getNextActions(taskCode) {
|
|
123
|
+
const url = `GetNextActions/${taskCode}`;
|
|
124
|
+
return this.httpService.get(url);
|
|
125
|
+
}
|
|
126
|
+
getPreviousActions(taskCode) {
|
|
127
|
+
const url = `GetPreviousActions/${taskCode}`;
|
|
128
|
+
return this.httpService.get(url);
|
|
129
|
+
}
|
|
130
|
+
getAllPreviousActions(taskCode) {
|
|
131
|
+
const url = `GetAllPreviousActions/${taskCode}`;
|
|
132
|
+
return this.httpService.get(url);
|
|
133
|
+
}
|
|
134
|
+
getNextActors(taskCode, forCurrentStage, stageCode) {
|
|
135
|
+
const url = `GetNextActors/${taskCode}${'/' + forCurrentStage + (stageCode ? '/' + stageCode : '')}`;
|
|
136
|
+
return this.httpService.get(url);
|
|
137
|
+
}
|
|
138
|
+
passOn(fromStage, toStage, task, comment, recipient) {
|
|
139
|
+
const url = `PassOn/${fromStage}/${toStage}/${comment}${recipient ? '/' + recipient : ''}`;
|
|
140
|
+
return this.httpService.post(url, task);
|
|
141
|
+
}
|
|
142
|
+
passBack(fromStage, toStage, task, comment, recipient) {
|
|
143
|
+
const url = `PassBack/${fromStage}/${toStage}/${comment}${recipient ? '/' + recipient : ''}`;
|
|
144
|
+
return this.httpService.post(url, task);
|
|
145
|
+
}
|
|
146
|
+
pickTask(targetStage, task, comment, recipient) {
|
|
147
|
+
const url = `PickTask/${comment}/${targetStage}${recipient ? '/' + recipient : ''}`;
|
|
148
|
+
return this.httpService.post(url, task);
|
|
149
|
+
}
|
|
150
|
+
unPickTask(targetStage, task, comment, recipient) {
|
|
151
|
+
const url = `UnPickTask/${comment}/${targetStage}${recipient ? '/' + recipient : ''}`;
|
|
152
|
+
return this.httpService.post(url, task);
|
|
153
|
+
}
|
|
154
|
+
followTask(actorId, task) {
|
|
155
|
+
const url = `FollowTask/${actorId}`;
|
|
156
|
+
return this.httpService.post(url, task);
|
|
157
|
+
}
|
|
158
|
+
unFollowTask(taskId, actorId
|
|
159
|
+
// task: Task,
|
|
160
|
+
) {
|
|
161
|
+
const url = `UnFollowTask/${taskId}/${actorId}`;
|
|
162
|
+
return this.httpService.post(url, {});
|
|
163
|
+
}
|
|
164
|
+
reAssign(task, comment, fromUser, toUser) {
|
|
165
|
+
const url = `Reassign/${comment}/${toUser}/${fromUser}`;
|
|
166
|
+
return this.httpService.post(url, task);
|
|
167
|
+
}
|
|
168
|
+
skipTo(fromStage, toStage, task, comment, recipient, isBackward = false) {
|
|
169
|
+
const url = `SkipTo/${fromStage}/${toStage}/${comment}${recipient ? '/' + recipient : ''}/${isBackward}`;
|
|
170
|
+
return this.httpService.post(url, task);
|
|
171
|
+
}
|
|
172
|
+
getCurrentFormsForTask(taskCode) {
|
|
173
|
+
const url = `GetCurrentFormsForTask/${taskCode}`;
|
|
174
|
+
return this.httpService.get(url);
|
|
175
|
+
}
|
|
176
|
+
fillForm(form, taskCode) {
|
|
177
|
+
const url = `FillForm/${taskCode}`;
|
|
178
|
+
return this.httpService.post(url, form);
|
|
179
|
+
}
|
|
180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService, deps: [{ token: i1.HttpWebRequestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
181
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService });
|
|
182
|
+
}
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService, decorators: [{
|
|
184
|
+
type: Injectable
|
|
185
|
+
}], ctorParameters: () => [{ type: i1.HttpWebRequestService }] });
|
|
186
|
+
|
|
187
|
+
class MyQueueState {
|
|
188
|
+
updating$ = new BehaviorSubject(false);
|
|
189
|
+
tasks$ = new BehaviorSubject([]);
|
|
190
|
+
queryParams$ = new BehaviorSubject({
|
|
191
|
+
skip: 0,
|
|
192
|
+
limit: 20,
|
|
193
|
+
sortParam: 'CreatedAt',
|
|
194
|
+
sortOrder: SortDirection.Desc,
|
|
195
|
+
});
|
|
196
|
+
nextActions$ = new BehaviorSubject([]);
|
|
197
|
+
nextActors$ = new BehaviorSubject([]);
|
|
198
|
+
taskForms$ = new BehaviorSubject([]);
|
|
199
|
+
isUpdating$() {
|
|
200
|
+
return this.updating$.asObservable();
|
|
201
|
+
}
|
|
202
|
+
setUpdating(isUpdating) {
|
|
203
|
+
this.updating$.next(isUpdating);
|
|
204
|
+
}
|
|
205
|
+
getRequests$() {
|
|
206
|
+
return this.tasks$.asObservable();
|
|
207
|
+
}
|
|
208
|
+
setRequests(tasks) {
|
|
209
|
+
this.tasks$.next(tasks);
|
|
210
|
+
}
|
|
211
|
+
getNextActions$() {
|
|
212
|
+
return this.nextActions$.asObservable();
|
|
213
|
+
}
|
|
214
|
+
getNextActors$() {
|
|
215
|
+
return this.nextActors$.asObservable();
|
|
216
|
+
}
|
|
217
|
+
getTaskForms$() {
|
|
218
|
+
return this.taskForms$.asObservable();
|
|
219
|
+
}
|
|
220
|
+
setNextActions(nextActions) {
|
|
221
|
+
this.nextActions$.next(nextActions);
|
|
222
|
+
}
|
|
223
|
+
setNextActors(nextActors) {
|
|
224
|
+
this.nextActors$.next(nextActors);
|
|
225
|
+
}
|
|
226
|
+
setTaskForms(taskForms) {
|
|
227
|
+
this.taskForms$.next(taskForms);
|
|
228
|
+
}
|
|
229
|
+
getQueryParams$() {
|
|
230
|
+
return this.queryParams$.asObservable();
|
|
231
|
+
}
|
|
232
|
+
getQueryParamsValue() {
|
|
233
|
+
return this.queryParams$.getValue();
|
|
234
|
+
}
|
|
235
|
+
updateQueryParams(params) {
|
|
236
|
+
this.queryParams$.next({ ...this.queryParams$.getValue(), ...params });
|
|
237
|
+
}
|
|
238
|
+
resetQueryParams() {
|
|
239
|
+
this.queryParams$.next({
|
|
240
|
+
skip: 0,
|
|
241
|
+
limit: 20,
|
|
242
|
+
sortParam: 'CreatedAt',
|
|
243
|
+
sortOrder: SortDirection.Desc,
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
addRequest(task) {
|
|
247
|
+
const currentValue = this.tasks$.getValue();
|
|
248
|
+
this.tasks$.next([task, ...currentValue]);
|
|
249
|
+
}
|
|
250
|
+
updateRequest(updatedRequest) {
|
|
251
|
+
const tasks = this.tasks$.getValue();
|
|
252
|
+
const index = tasks.findIndex((r) => r.Code === updatedRequest.Code);
|
|
253
|
+
if (index !== -1) {
|
|
254
|
+
tasks[index] = updatedRequest;
|
|
255
|
+
this.tasks$.next([...tasks]);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
removeRequest(taskCode) {
|
|
259
|
+
const currentValue = this.tasks$.getValue();
|
|
260
|
+
this.tasks$.next(currentValue.filter((r) => r.Code !== taskCode));
|
|
261
|
+
}
|
|
262
|
+
appendRequests(newRequests) {
|
|
263
|
+
const currentRequests = this.tasks$.getValue();
|
|
264
|
+
this.tasks$.next([...currentRequests, ...newRequests]);
|
|
265
|
+
}
|
|
266
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
267
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueState });
|
|
268
|
+
}
|
|
269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueState, decorators: [{
|
|
270
|
+
type: Injectable
|
|
271
|
+
}] });
|
|
272
|
+
|
|
273
|
+
class MyQueueFacade {
|
|
274
|
+
service;
|
|
275
|
+
state;
|
|
276
|
+
utilService;
|
|
277
|
+
constructor(service, state, utilService) {
|
|
278
|
+
this.service = service;
|
|
279
|
+
this.state = state;
|
|
280
|
+
this.utilService = utilService;
|
|
281
|
+
this.isUpdating$().subscribe((loading) => {
|
|
282
|
+
this.utilService.sendBI(loading);
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
isUpdating$() {
|
|
286
|
+
return this.state.isUpdating$();
|
|
287
|
+
}
|
|
288
|
+
getRequests$() {
|
|
289
|
+
return this.state.getRequests$();
|
|
290
|
+
}
|
|
291
|
+
getNextActions$() {
|
|
292
|
+
return this.state.getNextActions$();
|
|
293
|
+
}
|
|
294
|
+
getNextActors$() {
|
|
295
|
+
return this.state.getNextActors$();
|
|
296
|
+
}
|
|
297
|
+
getTaskForms$() {
|
|
298
|
+
return this.state.getTaskForms$();
|
|
299
|
+
}
|
|
300
|
+
getQueryParams$() {
|
|
301
|
+
return this.state.getQueryParams$();
|
|
302
|
+
}
|
|
303
|
+
addNewRequest(task) {
|
|
304
|
+
this.state.addRequest(task);
|
|
305
|
+
}
|
|
306
|
+
async loadRequests(queue = false) {
|
|
307
|
+
try {
|
|
308
|
+
this.state.setUpdating(true);
|
|
309
|
+
const params = this.state.getQueryParamsValue();
|
|
310
|
+
const response = queue
|
|
311
|
+
? await this.service.getQueueTasksForUser(params.user || '', params.skip, params.limit, params.sortParam || 'CreatedDate', params.sortOrder)
|
|
312
|
+
: await this.service.getTasksForUser(params.user || '', params.skip, params.limit, params.sortParam || 'CreatedDate', params.sortOrder);
|
|
313
|
+
if (response instanceof ErrorResponse) {
|
|
314
|
+
this.utilService.showError(response.ErrorMsg);
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
const { Skip, PageSize, Result } = response;
|
|
318
|
+
if (Result) {
|
|
319
|
+
this.state.setRequests(Result);
|
|
320
|
+
this.state.updateQueryParams({ skip: Skip });
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
catch (error) {
|
|
324
|
+
console.error('Failed to load requests:', error);
|
|
325
|
+
throw error;
|
|
326
|
+
}
|
|
327
|
+
finally {
|
|
328
|
+
this.state.setUpdating(false);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
async loadRequestsWithParam(param) {
|
|
332
|
+
try {
|
|
333
|
+
this.state.setUpdating(true);
|
|
334
|
+
const params = this.state.getQueryParamsValue();
|
|
335
|
+
const requests = await this.service.getTaskWithParam(param, params.skip, params.limit, params.sortParam || 'CreatedDate', params.sortOrder);
|
|
336
|
+
if (requests instanceof ErrorResponse) {
|
|
337
|
+
this.utilService.showError(requests.ErrorMsg);
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
this.state.setRequests(requests.Result);
|
|
341
|
+
this.state.updateQueryParams({ skip: requests.Skip });
|
|
342
|
+
}
|
|
343
|
+
catch (error) {
|
|
344
|
+
console.error('Failed to load requests with param:', error);
|
|
345
|
+
throw error;
|
|
346
|
+
}
|
|
347
|
+
finally {
|
|
348
|
+
this.state.setUpdating(false);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
updateQueryParams(params) {
|
|
352
|
+
this.state.updateQueryParams(params);
|
|
353
|
+
// this.loadRequests();
|
|
354
|
+
}
|
|
355
|
+
async addRequest(request) {
|
|
356
|
+
try {
|
|
357
|
+
this.state.setUpdating(true);
|
|
358
|
+
const newRequest = { ...request };
|
|
359
|
+
this.state.addRequest(newRequest);
|
|
360
|
+
const response = await this.service.saveTasks([newRequest]);
|
|
361
|
+
if (response instanceof ErrorResponse) {
|
|
362
|
+
this.utilService.showError(response.ErrorMsg);
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
this.utilService.showSuccess('Task created successfully');
|
|
366
|
+
await this.loadRequests(); // Reload to get server-side changes
|
|
367
|
+
}
|
|
368
|
+
catch (error) {
|
|
369
|
+
console.error('Failed to add request:', error);
|
|
370
|
+
this.state.removeRequest(request.Code);
|
|
371
|
+
throw error;
|
|
372
|
+
}
|
|
373
|
+
finally {
|
|
374
|
+
this.state.setUpdating(false);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
resetQueryParams() {
|
|
378
|
+
this.state.resetQueryParams();
|
|
379
|
+
}
|
|
380
|
+
async updateRequest(request) {
|
|
381
|
+
try {
|
|
382
|
+
this.state.setUpdating(true);
|
|
383
|
+
const response = await this.service.saveTasks([request]);
|
|
384
|
+
if (response instanceof ErrorResponse) {
|
|
385
|
+
this.utilService.showError(response.ErrorMsg);
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
this.utilService.showSuccess('Task updated successfully');
|
|
389
|
+
this.state.updateRequest(request);
|
|
390
|
+
}
|
|
391
|
+
catch (error) {
|
|
392
|
+
console.error('Failed to update request:', error);
|
|
393
|
+
throw error;
|
|
394
|
+
}
|
|
395
|
+
finally {
|
|
396
|
+
this.state.setUpdating(false);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
async deleteRequest(requestId) {
|
|
400
|
+
try {
|
|
401
|
+
this.state.setUpdating(true);
|
|
402
|
+
await lastValueFrom(this.service.deleteTasks([requestId]));
|
|
403
|
+
this.state.removeRequest(requestId);
|
|
404
|
+
}
|
|
405
|
+
catch (error) {
|
|
406
|
+
console.error('Failed to delete request:', error);
|
|
407
|
+
throw error;
|
|
408
|
+
}
|
|
409
|
+
finally {
|
|
410
|
+
this.state.setUpdating(false);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
async approveRequest(request) {
|
|
414
|
+
try {
|
|
415
|
+
this.state.setUpdating(true);
|
|
416
|
+
const response = await this.service.processTasks([request], true);
|
|
417
|
+
if (response instanceof ErrorResponse) {
|
|
418
|
+
this.utilService.showError(response.ErrorMsg);
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
// console.log(response);
|
|
422
|
+
const data = response?.[0];
|
|
423
|
+
if (data) {
|
|
424
|
+
this.state.updateRequest(data);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
catch (error) {
|
|
428
|
+
console.error('Failed to update request:', error);
|
|
429
|
+
throw error;
|
|
430
|
+
}
|
|
431
|
+
finally {
|
|
432
|
+
this.state.setUpdating(false);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
async loadNextActions(taskCode) {
|
|
436
|
+
try {
|
|
437
|
+
this.state.setUpdating(true);
|
|
438
|
+
const params = this.state.getQueryParamsValue();
|
|
439
|
+
const requests = await this.service.getNextActions(taskCode);
|
|
440
|
+
if (requests instanceof ErrorResponse) {
|
|
441
|
+
this.utilService.showError(requests.ErrorMsg);
|
|
442
|
+
return [];
|
|
443
|
+
}
|
|
444
|
+
this.state.setNextActions(requests);
|
|
445
|
+
// if (requests.length > 0) {
|
|
446
|
+
// // this.selectedAction = actions[0];
|
|
447
|
+
// this.loadNextActors(taskCode, requests[0].ToStage);
|
|
448
|
+
// }
|
|
449
|
+
return requests;
|
|
450
|
+
}
|
|
451
|
+
catch (error) {
|
|
452
|
+
console.error('Failed to load requests with param:', error);
|
|
453
|
+
return [];
|
|
454
|
+
}
|
|
455
|
+
finally {
|
|
456
|
+
this.state.setUpdating(false);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
async loadPreviousActions(taskCode) {
|
|
460
|
+
try {
|
|
461
|
+
this.state.setUpdating(true);
|
|
462
|
+
const requests = await this.service.getPreviousActions(taskCode);
|
|
463
|
+
if (requests instanceof ErrorResponse) {
|
|
464
|
+
this.utilService.showError(requests.ErrorMsg);
|
|
465
|
+
return [];
|
|
466
|
+
}
|
|
467
|
+
this.state.setNextActions(requests);
|
|
468
|
+
return requests;
|
|
469
|
+
}
|
|
470
|
+
catch (error) {
|
|
471
|
+
console.error('Failed to load requests with param:', error);
|
|
472
|
+
return [];
|
|
473
|
+
}
|
|
474
|
+
finally {
|
|
475
|
+
this.state.setUpdating(false);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
async loadAllPreviousActions(taskCode) {
|
|
479
|
+
try {
|
|
480
|
+
this.state.setUpdating(true);
|
|
481
|
+
const requests = await this.service.getAllPreviousActions(taskCode);
|
|
482
|
+
if (requests instanceof ErrorResponse) {
|
|
483
|
+
this.utilService.showError(requests.ErrorMsg);
|
|
484
|
+
return [];
|
|
485
|
+
}
|
|
486
|
+
this.state.setNextActions(requests);
|
|
487
|
+
return requests;
|
|
488
|
+
}
|
|
489
|
+
catch (error) {
|
|
490
|
+
console.error('Failed to load requests with param:', error);
|
|
491
|
+
return [];
|
|
492
|
+
}
|
|
493
|
+
finally {
|
|
494
|
+
this.state.setUpdating(false);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
async loadNextActors(taskCode, forCurrentStage, stageCode) {
|
|
498
|
+
try {
|
|
499
|
+
this.state.setUpdating(true);
|
|
500
|
+
const params = this.state.getQueryParamsValue();
|
|
501
|
+
const requests = await this.service.getNextActors(taskCode, forCurrentStage, stageCode);
|
|
502
|
+
if (requests instanceof ErrorResponse) {
|
|
503
|
+
this.utilService.showError(requests.ErrorMsg);
|
|
504
|
+
return [];
|
|
505
|
+
}
|
|
506
|
+
this.state.setNextActors(requests);
|
|
507
|
+
return requests;
|
|
508
|
+
}
|
|
509
|
+
catch (error) {
|
|
510
|
+
console.error('Failed to load requests with param:', error);
|
|
511
|
+
return [];
|
|
512
|
+
}
|
|
513
|
+
finally {
|
|
514
|
+
this.state.setUpdating(false);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
async loadTaskForms(taskCode) {
|
|
518
|
+
try {
|
|
519
|
+
this.state.setUpdating(true);
|
|
520
|
+
console.log('Loading task form');
|
|
521
|
+
const requests = await this.service.getCurrentFormsForTask(taskCode);
|
|
522
|
+
if (requests instanceof ErrorResponse) {
|
|
523
|
+
this.utilService.showError(requests.ErrorMsg);
|
|
524
|
+
return [];
|
|
525
|
+
}
|
|
526
|
+
console.log('FORMS', requests);
|
|
527
|
+
this.state.setTaskForms(requests);
|
|
528
|
+
return requests;
|
|
529
|
+
}
|
|
530
|
+
catch (error) {
|
|
531
|
+
console.error('Failed to load requests with param:', error);
|
|
532
|
+
return [];
|
|
533
|
+
}
|
|
534
|
+
finally {
|
|
535
|
+
this.state.setUpdating(false);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
async passOn(action, request, comment, recipient, currentUser) {
|
|
539
|
+
try {
|
|
540
|
+
this.state.setUpdating(true);
|
|
541
|
+
const response = await this.service.passOn(action.FromStage, action.ToStage, {
|
|
542
|
+
...request,
|
|
543
|
+
FullStages: [],
|
|
544
|
+
CurrentActors: request.CurrentActors.map((c) => ({
|
|
545
|
+
...c,
|
|
546
|
+
ActorTags: [],
|
|
547
|
+
})),
|
|
548
|
+
}, comment, recipient ?? undefined);
|
|
549
|
+
if (response instanceof ErrorResponse) {
|
|
550
|
+
this.utilService.showError(response.ErrorMsg);
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
// console.log(response);
|
|
554
|
+
const data = response;
|
|
555
|
+
if (data) {
|
|
556
|
+
if (data.CurrentActors.map((c) => c.Identifier).includes(currentUser)) {
|
|
557
|
+
this.state.updateRequest(data);
|
|
558
|
+
}
|
|
559
|
+
else {
|
|
560
|
+
this.state.removeRequest(request.Code);
|
|
561
|
+
}
|
|
562
|
+
this.utilService.showSuccess('Task passed on successfully');
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
catch (error) {
|
|
566
|
+
console.error('Failed to update request:', error);
|
|
567
|
+
}
|
|
568
|
+
finally {
|
|
569
|
+
this.state.setUpdating(false);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
async passBack(action, request, comment, recipient, currentUser) {
|
|
573
|
+
try {
|
|
574
|
+
this.state.setUpdating(true);
|
|
575
|
+
const response = await this.service.passBack(
|
|
576
|
+
// Alternate from and to stage o.
|
|
577
|
+
action.ToStage, action.FromStage, {
|
|
578
|
+
...request,
|
|
579
|
+
FullStages: [],
|
|
580
|
+
CurrentActors: request.CurrentActors.map((c) => ({
|
|
581
|
+
...c,
|
|
582
|
+
ActorTags: [],
|
|
583
|
+
})),
|
|
584
|
+
}, comment, recipient ?? undefined);
|
|
585
|
+
if (response instanceof ErrorResponse) {
|
|
586
|
+
this.utilService.showError(response.ErrorMsg);
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
// console.log(response);
|
|
590
|
+
const data = response;
|
|
591
|
+
if (data) {
|
|
592
|
+
if (data.CurrentActors.map((c) => c.Identifier).includes(currentUser)) {
|
|
593
|
+
this.state.updateRequest(data);
|
|
594
|
+
}
|
|
595
|
+
else {
|
|
596
|
+
this.state.removeRequest(request.Code);
|
|
597
|
+
}
|
|
598
|
+
this.utilService.showSuccess('Task passed back successfully');
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
catch (error) {
|
|
602
|
+
console.error('Failed to update request:', error);
|
|
603
|
+
throw error;
|
|
604
|
+
}
|
|
605
|
+
finally {
|
|
606
|
+
this.state.setUpdating(false);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
async skipTo(from, to, request, comment, recipient, currentUser) {
|
|
610
|
+
try {
|
|
611
|
+
this.state.setUpdating(true);
|
|
612
|
+
const response = await this.service.skipTo(from, to, {
|
|
613
|
+
...request,
|
|
614
|
+
FullStages: [],
|
|
615
|
+
CurrentActors: request.CurrentActors.map((c) => ({
|
|
616
|
+
...c,
|
|
617
|
+
ActorTags: [],
|
|
618
|
+
})),
|
|
619
|
+
}, comment, recipient ?? undefined);
|
|
620
|
+
if (response instanceof ErrorResponse) {
|
|
621
|
+
this.utilService.showError(response.ErrorMsg);
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
// console.log(response);
|
|
625
|
+
const data = response;
|
|
626
|
+
if (data) {
|
|
627
|
+
if (data.CurrentActors.map((c) => c.Identifier).includes(currentUser)) {
|
|
628
|
+
this.state.updateRequest(data);
|
|
629
|
+
}
|
|
630
|
+
else {
|
|
631
|
+
this.state.removeRequest(request.Code);
|
|
632
|
+
}
|
|
633
|
+
this.utilService.showSuccess('Task skipped to successfully');
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
catch (error) {
|
|
637
|
+
console.error('Failed to update request:', error);
|
|
638
|
+
throw error;
|
|
639
|
+
}
|
|
640
|
+
finally {
|
|
641
|
+
this.state.setUpdating(false);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
async reAssign(request, comment, currentUser) {
|
|
645
|
+
try {
|
|
646
|
+
this.state.setUpdating(true);
|
|
647
|
+
const response = await this.service.reAssign({
|
|
648
|
+
...request,
|
|
649
|
+
FullStages: [],
|
|
650
|
+
CurrentActors: request.CurrentActors.map((c) => ({
|
|
651
|
+
...c,
|
|
652
|
+
ActorTags: [],
|
|
653
|
+
})),
|
|
654
|
+
}, comment);
|
|
655
|
+
if (response instanceof ErrorResponse) {
|
|
656
|
+
this.utilService.showError(response.ErrorMsg);
|
|
657
|
+
return;
|
|
658
|
+
}
|
|
659
|
+
// console.log(response);
|
|
660
|
+
const data = response;
|
|
661
|
+
if (data) {
|
|
662
|
+
if (data.CurrentActors.map((c) => c.Identifier).includes(currentUser)) {
|
|
663
|
+
this.state.updateRequest(data);
|
|
664
|
+
}
|
|
665
|
+
else {
|
|
666
|
+
this.state.removeRequest(request.Code);
|
|
667
|
+
}
|
|
668
|
+
this.utilService.showSuccess('Task re-assigned successfully');
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
catch (error) {
|
|
672
|
+
console.error('Failed to update request:', error);
|
|
673
|
+
throw error;
|
|
674
|
+
}
|
|
675
|
+
finally {
|
|
676
|
+
this.state.setUpdating(false);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
async fillForm(form, taskCode) {
|
|
680
|
+
try {
|
|
681
|
+
this.state.setUpdating(true);
|
|
682
|
+
const filledForm = await this.service.fillForm(form, taskCode);
|
|
683
|
+
if (filledForm instanceof ErrorResponse) {
|
|
684
|
+
this.utilService.showError(filledForm.ErrorMsg);
|
|
685
|
+
throw new Error(filledForm.ErrorMsg);
|
|
686
|
+
}
|
|
687
|
+
return filledForm;
|
|
688
|
+
}
|
|
689
|
+
catch (error) {
|
|
690
|
+
console.error('Failed to fill form:', error);
|
|
691
|
+
throw error;
|
|
692
|
+
}
|
|
693
|
+
finally {
|
|
694
|
+
this.state.setUpdating(false);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
// Load more handling
|
|
698
|
+
async loadMore(queue = false) {
|
|
699
|
+
try {
|
|
700
|
+
this.state.setUpdating(true);
|
|
701
|
+
const currentParams = this.state.getQueryParamsValue();
|
|
702
|
+
// const searchTerm = this.state.getSearchTermValue();
|
|
703
|
+
const searchTerm = false;
|
|
704
|
+
// Update skip value
|
|
705
|
+
const newSkip = currentParams.skip + currentParams.limit;
|
|
706
|
+
// Load and append data
|
|
707
|
+
const response = queue
|
|
708
|
+
? await this.service.getQueueTasksForUser(currentParams.user || '', newSkip, currentParams.limit, currentParams.sortParam || 'CreatedDate', currentParams.sortOrder)
|
|
709
|
+
: await this.service.getTasksForUser(currentParams.user || '', newSkip, currentParams.limit, currentParams.sortParam || 'CreatedDate', currentParams.sortOrder);
|
|
710
|
+
if (response instanceof ErrorResponse) {
|
|
711
|
+
this.utilService.showError(response.ErrorMsg);
|
|
712
|
+
return;
|
|
713
|
+
}
|
|
714
|
+
this.state.appendRequests(response.Result);
|
|
715
|
+
this.state.updateQueryParams({
|
|
716
|
+
skip: newSkip,
|
|
717
|
+
limit: currentParams.limit,
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
catch (error) {
|
|
721
|
+
console.error('Load more failed:', error);
|
|
722
|
+
throw error;
|
|
723
|
+
}
|
|
724
|
+
finally {
|
|
725
|
+
this.state.setUpdating(false);
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade, deps: [{ token: MyQueueService }, { token: MyQueueState }, { token: i1.UtilService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
729
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade });
|
|
730
|
+
}
|
|
731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade, decorators: [{
|
|
732
|
+
type: Injectable
|
|
733
|
+
}], ctorParameters: () => [{ type: MyQueueService }, { type: MyQueueState }, { type: i1.UtilService }] });
|
|
734
|
+
|
|
735
|
+
class MyQueueComponent extends BaseDataViewComponent {
|
|
736
|
+
cdr;
|
|
737
|
+
facade;
|
|
738
|
+
isGeneral = input(false);
|
|
739
|
+
user;
|
|
740
|
+
config = {
|
|
741
|
+
dataSource: [], // Populate from service
|
|
742
|
+
columns: columns, // Your existing column definitions
|
|
743
|
+
cardDataMapper: (task) => ({
|
|
744
|
+
selected: false,
|
|
745
|
+
title: task.Name,
|
|
746
|
+
data: task,
|
|
747
|
+
body: [
|
|
748
|
+
{ title: 'Name', value: task.Name },
|
|
749
|
+
{ title: 'Status', value: task.Status },
|
|
750
|
+
],
|
|
751
|
+
children: [],
|
|
752
|
+
}),
|
|
753
|
+
onDetailView: (task) => {
|
|
754
|
+
// Custom detail view logic
|
|
755
|
+
},
|
|
756
|
+
};
|
|
757
|
+
popups;
|
|
758
|
+
constructor(cdr, facade) {
|
|
759
|
+
super();
|
|
760
|
+
this.cdr = cdr;
|
|
761
|
+
this.facade = facade;
|
|
762
|
+
this.facade.getRequests$().subscribe((data) => {
|
|
763
|
+
this.data.set(data);
|
|
764
|
+
});
|
|
765
|
+
}
|
|
766
|
+
loadInitialData() {
|
|
767
|
+
this.facade.resetQueryParams();
|
|
768
|
+
this.facade.updateQueryParams({ user: this.user });
|
|
769
|
+
try {
|
|
770
|
+
this.facade.loadRequests(this.isGeneral());
|
|
771
|
+
}
|
|
772
|
+
catch (error) {
|
|
773
|
+
// Handle error
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
// protected getCardDataByIdentifier(mailAddress: string): CardData | undefined {
|
|
777
|
+
// return this.cardData().find(({ data }) => data.MailAddress === mailAddress);
|
|
778
|
+
// }
|
|
779
|
+
async loadMore() {
|
|
780
|
+
try {
|
|
781
|
+
await this.facade.loadMore(this.isGeneral());
|
|
782
|
+
}
|
|
783
|
+
catch (error) {
|
|
784
|
+
// Handle error
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
getActionNamesForTask(task) {
|
|
788
|
+
if (this.isGeneral()) {
|
|
789
|
+
return ['picktask', 'releasetask', 'followtask', 'unfollowtask'];
|
|
790
|
+
}
|
|
791
|
+
else {
|
|
792
|
+
const actions = ['passon', 'passback', 'skipto', 'reassign'];
|
|
793
|
+
if (task.FullStages?.[0]?.IsEntryPoint) {
|
|
794
|
+
// Remove passback for entry point stages
|
|
795
|
+
return actions.filter(action => action !== 'passback');
|
|
796
|
+
}
|
|
797
|
+
return actions;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
groupByWorkflowCode(task) {
|
|
801
|
+
return `Workflow: ${task.WorkflowCode}`;
|
|
802
|
+
}
|
|
803
|
+
onPopupToggled(isOpen, currentPopup) {
|
|
804
|
+
if (isOpen) {
|
|
805
|
+
this.popups.forEach((popup) => {
|
|
806
|
+
if (popup !== currentPopup && popup.dropdownOpen) {
|
|
807
|
+
popup.toggleDropdown();
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
onStateChange(event) {
|
|
813
|
+
switch (event.key) {
|
|
814
|
+
case 'create':
|
|
815
|
+
var newItem = new TaskModel({
|
|
816
|
+
WorkflowCode: '',
|
|
817
|
+
Status: TaskStatus.Active,
|
|
818
|
+
Flowable: '',
|
|
819
|
+
FlowableData: null,
|
|
820
|
+
FlowablePath: '',
|
|
821
|
+
CurrentActors: [],
|
|
822
|
+
DataState: ObjectState.New,
|
|
823
|
+
});
|
|
824
|
+
this.facade.addNewRequest(newItem);
|
|
825
|
+
// const cardData: CardData = {
|
|
826
|
+
// selected: false,
|
|
827
|
+
// title: ,
|
|
828
|
+
// data: newGroup,
|
|
829
|
+
// body: [],
|
|
830
|
+
// children: [],
|
|
831
|
+
// };
|
|
832
|
+
// this.data = this.data.concat([newGroup]);
|
|
833
|
+
// this.cardData.push(cardData);
|
|
834
|
+
// this.userCardClicked(cardData);
|
|
835
|
+
this.dataView.isTableView = false;
|
|
836
|
+
break;
|
|
837
|
+
// case 'filter':
|
|
838
|
+
// this.showFilter = event.value;
|
|
839
|
+
// break;
|
|
840
|
+
// case 'sort':
|
|
841
|
+
// this.showSort = event.value;
|
|
842
|
+
// break;
|
|
843
|
+
// case 'column':
|
|
844
|
+
// this.showColumn = event.value;
|
|
845
|
+
// break;
|
|
846
|
+
default:
|
|
847
|
+
break;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: MyQueueFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
851
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: MyQueueComponent, selector: "lib-my-queue", inputs: { isGeneral: { classPropertyName: "isGeneral", publicName: "isGeneral", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: false, isRequired: false, transformFunction: null } }, providers: [MyQueueService, MyQueueState, MyQueueFacade], viewQueries: [{ propertyName: "popups", predicate: ["popup"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"space-y-8\">\n <verben-data-view #vdv [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: true,\n isSort: true,\n isExport: true,\n isSelect: true,\n isCreate: isGeneral(),\n isToggle: true,\n }\" [buttonClass]=\"'my-custom-button-class'\" [iconClass]=\"'my-icon-class'\"\n [activeIconClass]=\"'my-active-icon-class'\" [selectedColumnCount]=\"0\" [selectedSortCount]=\"0\"\n [selectedFilterTableCount]=\"0\" (viewChange)=\"onViewChange($event)\" (stateChange)=\"onStateChange($event)\">\n <div table-content>\n <lib-data-table [data]=\"data()\" [columns]=\"config.columns\" [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\" [groupBy]=\"groupByWorkflowCode\">\n <ng-container libColumn=\"history\">\n <ng-template #cell let-value let-deleteRow>\n <a [routerLink]=\"['/workflow/task-history', value]\" routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\">view history</a>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"workflow\">\n <ng-template #cell let-value>\n <a [routerLink]=\"['/workflow/workflows', value]\" routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\">view Workflow</a>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template #cell let-row=\"row\">\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 class=\"text-center\">Actions</strong>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n <div card-content>\n <verben-card-data-view borderRadius=\"12px\" (loadMoreClick)=\"loadMore()\" #vdcv dataId=\"Id\" border=\"5px\"\n [cardDataList]=\"cardData()\" rbgColor=\"var(--vbn-color-surface-alt)\" mg=\"20px\">\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data #vlcd [parent]=\"vdcv\" dataId=\"Code\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\" [cardDataList]=\"cardData()\">\n <ng-template #card let-item>\n <div (click)=\"\n currentData = isGeneral() ? vdcv.onItemClick(item) : null\n \" class=\"flex\">\n <div (click)=\"\n currentData = isGeneral() ? vdcv.onItemClick(item) : null\n \" class=\"flex cursor-pointer w-full bg-secondary rounded-xl\">\n <div class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\" [ngClass]=\"\n item.selected ? 'bg-primary' : 'bg-secondary-200'\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 class=\"font-semibold text-[var(--vbn-color-on-primary)]\">{{\n item.title\n }}</span>\n <p class=\"flex items-center\">\n <label for=\"phone\" class=\"text-[10px] font-light\">Status:</label>\n <span id=\"phone\" class=\"text-sm\">{{\n item.data.Status\n }}</span>\n </p>\n </div>\n\n <div class=\"grid gap-y-2\">\n <span for=\"role\" class=\"font-light\">{{\n item.data.Code\n }}</span>\n\n <div (click)=\"$event.stopPropagation();\" class=\"flex items-end gap-4\">\n <a [routerLink]=\"[\n '/workflow/task-history',\n item.data.Code\n ]\" routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)] text-xs relative z-10\">view\n history</a>\n\n <lib-operation-popup [user]=\"user\" [task]=\"item.data\"\n [allowedActions]=\"getActionNamesForTask(item.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 </ng-template>\n </verben-right-card-data-view>\n\n <verben-card-data-view-footer class=\"w-full\">\n <div [ngClass]=\"{\n 'flex gap-2 items-center': true,\n 'justify-end': true,\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 class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData().length }} records loaded</span>\n <button (click)=\"loadMore()\" class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\">\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 [columns]=\"config.columns\" (columnsUpdated)=\"onColumnsUpdated($event)\"></lib-data-columns>\n </div>\n <div filter-content>\n <verben-table-filter [border]=\"'1px solid var(--vbn-color-primary)'\" borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\" bgColor=\"white\" width=\"420px\" textColor=\"black\" pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\" secondaryColor=\"var(--vbn-color-border-focus)\" tertiaryColor=\"var(--vbn-color-on-primary)\" [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"></verben-table-filter>\n </div>\n <div sort-content>\n <lib-data-sort [columns]=\"config.columns\" [data]=\"data()\" (sortApplied)=\"onSortUpdated($event)\"></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-end\">\n\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData().length }} records loaded</span>\n <button (click)=\"loadMore()\" class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\">\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: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.DataTableComponent, selector: "lib-data-table", inputs: ["data", "columns", "dataKey", "formGroupConfig", "groupBy", "useVirtualScroll", "virtualScrollItemSize", "styleConfig"], outputs: ["rowEdit", "rowSave", "rowRevert", "rowDelete", "selectionChange"] }, { kind: "directive", type: i3$1.ColumnDirective, selector: "[libColumn]", inputs: ["libColumn"] }, { kind: "component", type: i3$1.SvgComponent, selector: "verben-svg", inputs: ["icon", "width", "height", "fill", "stroke", "type", "size"] }, { kind: "component", type: i3$1.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: i3$1.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: i3$1.LeftCardDataComponent, selector: "verben-left-card-data", inputs: ["pd", "mg", "height", "weight", "activeCss", "inActiveCss", "cardDataList", "iconCollapse", "iconExpanded", "parent", "useVirtualScroll", "virtualScrollItemSize", "dataId"] }, { kind: "component", type: i3$1.LeftCardDataViewComponent, selector: "verben-left-card-data-view", inputs: ["cardDataList"] }, { kind: "component", type: i3$1.RightCardDataViewComponent, selector: "verben-right-card-data-view", inputs: ["parentData", "chilData", "meth"] }, { kind: "component", type: i3$1.CardDataViewFooterComponent, selector: "verben-card-data-view-footer" }, { kind: "component", type: i3$1.TableFilterComponent, selector: "verben-table-filter", inputs: ["filterOptions", "pd", "mg", "height", "width", "bgColor", "boxShadow", "textColor", "primaryColor", "secondaryColor", "tertiaryColor", "border", "borderRadius", "selectWidth", "maxFilterLength", "tooltip"], outputs: ["filtersApplied", "resetSortData"] }, { kind: "component", type: i3$1.DataExportComponent, selector: "lib-data-export", inputs: ["columns", "data", "dataFetchUrl", "dataQueryParameters"], outputs: ["exportDataEvent"] }, { kind: "component", type: i3$1.DataColumnsComponent, selector: "lib-data-columns", inputs: ["columns", "enableDragAndDrop", "maxVisibleItems"], outputs: ["columnsUpdated"] }, { kind: "component", type: i3$1.DataSortComponent, selector: "lib-data-sort", inputs: ["columns", "data", "enableDragAndDrop"], outputs: ["sortApplied", "resetFilter"] }, { kind: "directive", type: i4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i5.OperationPopupComponent, selector: "lib-operation-popup", inputs: ["user", "task", "allowedActions"], outputs: ["actionComplete"] }] });
|
|
852
|
+
}
|
|
853
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueComponent, decorators: [{
|
|
854
|
+
type: Component,
|
|
855
|
+
args: [{ selector: 'lib-my-queue', providers: [MyQueueService, MyQueueState, MyQueueFacade], template: "<div class=\"space-y-8\">\n <verben-data-view #vdv [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: true,\n isSort: true,\n isExport: true,\n isSelect: true,\n isCreate: isGeneral(),\n isToggle: true,\n }\" [buttonClass]=\"'my-custom-button-class'\" [iconClass]=\"'my-icon-class'\"\n [activeIconClass]=\"'my-active-icon-class'\" [selectedColumnCount]=\"0\" [selectedSortCount]=\"0\"\n [selectedFilterTableCount]=\"0\" (viewChange)=\"onViewChange($event)\" (stateChange)=\"onStateChange($event)\">\n <div table-content>\n <lib-data-table [data]=\"data()\" [columns]=\"config.columns\" [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\" [groupBy]=\"groupByWorkflowCode\">\n <ng-container libColumn=\"history\">\n <ng-template #cell let-value let-deleteRow>\n <a [routerLink]=\"['/workflow/task-history', value]\" routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\">view history</a>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"workflow\">\n <ng-template #cell let-value>\n <a [routerLink]=\"['/workflow/workflows', value]\" routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\">view Workflow</a>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template #cell let-row=\"row\">\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 class=\"text-center\">Actions</strong>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n <div card-content>\n <verben-card-data-view borderRadius=\"12px\" (loadMoreClick)=\"loadMore()\" #vdcv dataId=\"Id\" border=\"5px\"\n [cardDataList]=\"cardData()\" rbgColor=\"var(--vbn-color-surface-alt)\" mg=\"20px\">\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data #vlcd [parent]=\"vdcv\" dataId=\"Code\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\" [cardDataList]=\"cardData()\">\n <ng-template #card let-item>\n <div (click)=\"\n currentData = isGeneral() ? vdcv.onItemClick(item) : null\n \" class=\"flex\">\n <div (click)=\"\n currentData = isGeneral() ? vdcv.onItemClick(item) : null\n \" class=\"flex cursor-pointer w-full bg-secondary rounded-xl\">\n <div class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\" [ngClass]=\"\n item.selected ? 'bg-primary' : 'bg-secondary-200'\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 class=\"font-semibold text-[var(--vbn-color-on-primary)]\">{{\n item.title\n }}</span>\n <p class=\"flex items-center\">\n <label for=\"phone\" class=\"text-[10px] font-light\">Status:</label>\n <span id=\"phone\" class=\"text-sm\">{{\n item.data.Status\n }}</span>\n </p>\n </div>\n\n <div class=\"grid gap-y-2\">\n <span for=\"role\" class=\"font-light\">{{\n item.data.Code\n }}</span>\n\n <div (click)=\"$event.stopPropagation();\" class=\"flex items-end gap-4\">\n <a [routerLink]=\"[\n '/workflow/task-history',\n item.data.Code\n ]\" routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)] text-xs relative z-10\">view\n history</a>\n\n <lib-operation-popup [user]=\"user\" [task]=\"item.data\"\n [allowedActions]=\"getActionNamesForTask(item.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 </ng-template>\n </verben-right-card-data-view>\n\n <verben-card-data-view-footer class=\"w-full\">\n <div [ngClass]=\"{\n 'flex gap-2 items-center': true,\n 'justify-end': true,\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 class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData().length }} records loaded</span>\n <button (click)=\"loadMore()\" class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\">\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 [columns]=\"config.columns\" (columnsUpdated)=\"onColumnsUpdated($event)\"></lib-data-columns>\n </div>\n <div filter-content>\n <verben-table-filter [border]=\"'1px solid var(--vbn-color-primary)'\" borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\" bgColor=\"white\" width=\"420px\" textColor=\"black\" pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\" secondaryColor=\"var(--vbn-color-border-focus)\" tertiaryColor=\"var(--vbn-color-on-primary)\" [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"></verben-table-filter>\n </div>\n <div sort-content>\n <lib-data-sort [columns]=\"config.columns\" [data]=\"data()\" (sortApplied)=\"onSortUpdated($event)\"></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-end\">\n\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData().length }} records loaded</span>\n <button (click)=\"loadMore()\" class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\">\n Load more\n </button>\n </div>\n </div>\n</div>\n", styles: [".view-links{color:var(--vbn-color-border-focus);cursor:pointer}\n"] }]
|
|
856
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: MyQueueFacade }], propDecorators: { user: [{
|
|
857
|
+
type: Input
|
|
858
|
+
}], popups: [{
|
|
859
|
+
type: ViewChildren,
|
|
860
|
+
args: ['popup']
|
|
861
|
+
}] } });
|
|
862
|
+
|
|
863
|
+
class TasksFormComponent {
|
|
864
|
+
fb;
|
|
865
|
+
taskFacade;
|
|
866
|
+
get currentData() {
|
|
867
|
+
return this._currentData;
|
|
868
|
+
}
|
|
869
|
+
set currentData(value) {
|
|
870
|
+
this._currentData = value;
|
|
871
|
+
console.log(value?.data);
|
|
872
|
+
if (value?.data) {
|
|
873
|
+
this.form.patchValue({
|
|
874
|
+
Name: value.data.Name || '',
|
|
875
|
+
Description: value.data.Description || '',
|
|
876
|
+
WorkflowCode: value.data.WorkflowCode || '',
|
|
877
|
+
Status: value.data.Status || '',
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
else {
|
|
881
|
+
this.form.reset();
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
_currentData = null;
|
|
885
|
+
taskForm = null;
|
|
886
|
+
active = 0;
|
|
887
|
+
dataType = DataType.Text;
|
|
888
|
+
onTaskFormSave = new EventEmitter();
|
|
889
|
+
onSave = new EventEmitter();
|
|
890
|
+
form;
|
|
891
|
+
statuses = Object.values(Status);
|
|
892
|
+
workflows = [];
|
|
893
|
+
loadingTaskForm = false;
|
|
894
|
+
taskFormView = false;
|
|
895
|
+
// active: boolean = false;
|
|
896
|
+
constructor(fb, taskFacade) {
|
|
897
|
+
this.fb = fb;
|
|
898
|
+
this.taskFacade = taskFacade;
|
|
899
|
+
this.taskFacade.getWorkflow$().subscribe((workflows) => {
|
|
900
|
+
this.workflows = workflows;
|
|
901
|
+
});
|
|
902
|
+
this.form = this.fb.group({
|
|
903
|
+
Name: ['', { validators: [Validators.required] }],
|
|
904
|
+
Description: ['', { validators: [Validators.required] }],
|
|
905
|
+
WorkflowCode: ['', { validators: [Validators.required] }],
|
|
906
|
+
Status: ['', { validators: [Validators.required] }],
|
|
907
|
+
TaskForms: [],
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
ngOnInit() {
|
|
911
|
+
try {
|
|
912
|
+
this.taskFacade.loadWorkflows().then(() => { });
|
|
913
|
+
}
|
|
914
|
+
catch (error) {
|
|
915
|
+
// Handle error
|
|
916
|
+
}
|
|
917
|
+
this.form.get('WorkflowCode')?.valueChanges.subscribe((value) => {
|
|
918
|
+
if (value) {
|
|
919
|
+
const selectedWorkflow = this.workflows.find(({ Code }) => Code === value);
|
|
920
|
+
if (selectedWorkflow?.Form) {
|
|
921
|
+
this.loadingTaskForm = true;
|
|
922
|
+
this.taskFacade
|
|
923
|
+
.loadFormsWithParam(selectedWorkflow.Form)
|
|
924
|
+
.then((form) => {
|
|
925
|
+
if (form) {
|
|
926
|
+
this.taskForm = form;
|
|
927
|
+
}
|
|
928
|
+
})
|
|
929
|
+
.finally(() => {
|
|
930
|
+
this.loadingTaskForm = false;
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
else {
|
|
934
|
+
this.taskForm = null;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
handleSubmit() {
|
|
940
|
+
if (this.form.valid) {
|
|
941
|
+
// Emit save event with form value
|
|
942
|
+
console.log('Form saved:', this.form.value);
|
|
943
|
+
if (!this.taskForm ||
|
|
944
|
+
this.form.get('TaskForms')?.value?.length > 0) {
|
|
945
|
+
this.onSave.emit(this.form.value);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
onDelete() {
|
|
950
|
+
// Emit delete event
|
|
951
|
+
console.log('Delete requested');
|
|
952
|
+
}
|
|
953
|
+
sendTaskForm() {
|
|
954
|
+
if (this.taskForm) {
|
|
955
|
+
this.form
|
|
956
|
+
.get('TaskForms')
|
|
957
|
+
?.setValue([{ ...this.taskForm, Swimlane: '' }]);
|
|
958
|
+
this.taskFormView = false;
|
|
959
|
+
this.onTaskFormSave.emit(this.taskForm);
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
areRequiredPropertiesFilled() {
|
|
963
|
+
const properties = this.taskForm?.Entities[this.active].Properties || [];
|
|
964
|
+
// Check if all required properties have valid values
|
|
965
|
+
// return properties.every((property: any) => {
|
|
966
|
+
// console.log(property);
|
|
967
|
+
// return (
|
|
968
|
+
// !property.isRequired ||
|
|
969
|
+
// (property.Value !== undefined &&
|
|
970
|
+
// property.Value !== null &&
|
|
971
|
+
// property.Value !== '')
|
|
972
|
+
// );
|
|
973
|
+
// });
|
|
974
|
+
return true;
|
|
975
|
+
}
|
|
976
|
+
disableProcessing() {
|
|
977
|
+
const selectedWorkflow = this.workflows.find(({ Code }) => Code === this.form.get('WorkflowCode')?.value);
|
|
978
|
+
if (selectedWorkflow?.Form &&
|
|
979
|
+
this.currentData?.data?.TaskForms?.length === 0) {
|
|
980
|
+
return true;
|
|
981
|
+
}
|
|
982
|
+
else
|
|
983
|
+
return this.form.invalid;
|
|
984
|
+
}
|
|
985
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksFormComponent, deps: [{ token: i1$1.FormBuilder }, { token: i2.TaskFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
986
|
+
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': 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\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 <!-- 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 <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: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i3$1.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: i3$1.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: i3$1.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$1.FormControlComponent, selector: "form-control", inputs: ["dataType", "value", "boolInputType", "formProperties", "disabled"] }, { kind: "component", type: i6.FormTimerComponent, selector: "app-form-timer", inputs: ["expiryDate"] }] });
|
|
987
|
+
}
|
|
988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksFormComponent, decorators: [{
|
|
989
|
+
type: Component,
|
|
990
|
+
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': 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\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 <!-- 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 <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" }]
|
|
991
|
+
}], ctorParameters: () => [{ type: i1$1.FormBuilder }, { type: i2.TaskFacade }], propDecorators: { currentData: [{
|
|
992
|
+
type: Input
|
|
993
|
+
}], onTaskFormSave: [{
|
|
994
|
+
type: Output
|
|
995
|
+
}], onSave: [{
|
|
996
|
+
type: Output
|
|
997
|
+
}] } });
|
|
998
|
+
|
|
999
|
+
class MyQueueModule {
|
|
1000
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1001
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: MyQueueModule, declarations: [MyQueueComponent, TasksFormComponent], imports: [CommonModule,
|
|
1002
|
+
SharedModule,
|
|
1003
|
+
RouterLink,
|
|
1004
|
+
FormControlerModule,
|
|
1005
|
+
FormTimerModule,
|
|
1006
|
+
OperationPopupComponent], exports: [MyQueueComponent] });
|
|
1007
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueModule, imports: [CommonModule,
|
|
1008
|
+
SharedModule,
|
|
1009
|
+
FormControlerModule,
|
|
1010
|
+
FormTimerModule,
|
|
1011
|
+
OperationPopupComponent] });
|
|
1012
|
+
}
|
|
1013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueModule, decorators: [{
|
|
1014
|
+
type: NgModule,
|
|
1015
|
+
args: [{
|
|
1016
|
+
declarations: [MyQueueComponent, TasksFormComponent],
|
|
1017
|
+
imports: [
|
|
1018
|
+
CommonModule,
|
|
1019
|
+
SharedModule,
|
|
1020
|
+
RouterLink,
|
|
1021
|
+
FormControlerModule,
|
|
1022
|
+
FormTimerModule,
|
|
1023
|
+
OperationPopupComponent,
|
|
1024
|
+
],
|
|
1025
|
+
exports: [MyQueueComponent],
|
|
1026
|
+
}]
|
|
1027
|
+
}] });
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Generated bundle index. Do not edit.
|
|
1031
|
+
*/
|
|
1032
|
+
|
|
1033
|
+
export { MyQueueComponent, MyQueueModule, MyQueueService };
|
|
1034
|
+
//# sourceMappingURL=verben-workflow-ui-src-lib-components-my-queue.mjs.map
|