verben-workflow-ui 0.6.4 → 0.6.6
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/ng-package.json +15 -0
- package/package.json +9 -194
- package/src/lib/base/core/base-data-page.facade.ts +533 -0
- package/src/lib/base/core/base-data-page.service.ts +222 -0
- package/src/lib/base/core/base-data-page.state.ts +287 -0
- package/src/lib/base/handlers/filter-handler.service.ts +169 -0
- package/src/lib/base/handlers/search-handler.service.ts +33 -0
- package/src/lib/base/handlers/sort-handler.service.ts +93 -0
- package/src/lib/base/models/api-payload.ts +13 -0
- package/src/lib/base/models/page-config.interface.ts +49 -0
- package/src/lib/base/models/page-filter-tab-option.interface.ts +20 -0
- package/src/lib/base/ng-package.json +6 -0
- package/src/lib/base/public-api.ts +16 -0
- package/src/lib/base/utils/column-helpers.ts +77 -0
- package/src/lib/components/actors/actors.columns.ts +40 -0
- package/src/lib/components/actors/actors.component.css +0 -0
- package/src/lib/components/actors/actors.component.html +320 -0
- package/src/lib/components/actors/actors.component.spec.ts +23 -0
- package/src/lib/components/actors/actors.component.ts +221 -0
- package/src/lib/components/actors/actors.config.ts +55 -0
- package/src/lib/components/actors/actors.facade.ts +71 -0
- package/src/lib/components/actors/actors.form.component.html +37 -0
- package/src/lib/components/actors/actors.form.component.ts +69 -0
- package/src/lib/components/actors/actors.model.ts +4 -0
- package/src/lib/components/actors/actors.module.ts +13 -0
- package/src/lib/components/actors/actors.service.ts +85 -0
- package/src/lib/components/actors/actors.state.ts +31 -0
- package/src/lib/components/actors/ng-package.json +6 -0
- package/src/lib/components/designer/components/label-editor.component.ts +188 -0
- package/src/lib/components/designer/components/node-selector.component.ts +208 -0
- package/src/lib/components/designer/components/swimlane-label.component.ts +102 -0
- package/src/lib/components/designer/components/swimlane-popup.component.ts +51 -0
- package/src/lib/components/designer/components/wf-canvas.component.ts +495 -0
- package/src/lib/components/designer/components/wf-designer.component.ts +182 -0
- package/src/lib/components/designer/components/wf-node.component.ts +91 -0
- package/src/lib/components/designer/components/wf-properties-popup.component.ts +257 -0
- package/src/lib/components/designer/components/wf-toolbar.component.ts +84 -0
- package/src/lib/components/designer/models/types.ts +133 -0
- package/src/lib/components/designer/ng-package.json +6 -0
- package/src/lib/components/designer/services/canvas-state.service.ts +63 -0
- package/src/lib/components/designer/services/connection-segment-interaction.service.ts +141 -0
- package/src/lib/components/designer/services/connection.service.ts +351 -0
- package/src/lib/components/designer/services/keyboard-handler.service.ts +39 -0
- package/src/lib/components/designer/services/label-management.service.ts +72 -0
- package/src/lib/components/designer/services/node-finder.service.ts +34 -0
- package/src/lib/components/designer/services/node-interaction.service.ts +135 -0
- package/src/lib/components/designer/services/node-placement.service.ts +77 -0
- package/src/lib/components/designer/services/node-precondition.service.ts +138 -0
- package/src/lib/components/designer/services/node-renderer.service.ts +97 -0
- package/src/lib/components/designer/services/node-selection.service.ts +110 -0
- package/src/lib/components/designer/services/orthogonal-router.service.ts +233 -0
- package/src/lib/components/designer/services/position-update.service.ts +56 -0
- package/src/lib/components/designer/services/rendering.service.ts +296 -0
- package/src/lib/components/designer/services/swimlane-management.service.ts +189 -0
- package/src/lib/components/designer/services/swimlane-stats.service.ts +53 -0
- package/src/lib/components/designer/services/tag-helper.service.ts +80 -0
- package/src/lib/components/designer/services/viewport.service.ts +30 -0
- package/src/lib/components/designer/services/wf-facade.service.ts +287 -0
- package/src/lib/components/designer/services/wf-mapper.service.ts +450 -0
- package/src/lib/components/designer/services/wf-persistence.service.ts +184 -0
- package/src/lib/components/designer/services/wf-state.service.ts +143 -0
- package/src/lib/components/expiration/expiration.component.css +0 -0
- package/src/lib/components/expiration/expiration.component.html +21 -0
- package/src/lib/components/expiration/expiration.component.spec.ts +23 -0
- package/src/lib/components/expiration/expiration.component.ts +52 -0
- package/src/lib/components/expiration/expiration.module.ts +11 -0
- package/src/lib/components/expiration/ng-package.json +6 -0
- package/src/lib/components/file-render/file-render.component.css +4 -0
- package/src/lib/components/file-render/file-render.component.html +21 -0
- package/src/lib/components/file-render/file-render.component.spec.ts +23 -0
- package/src/lib/components/file-render/file-render.component.ts +34 -0
- package/src/lib/components/file-render/file-render.module.ts +19 -0
- package/src/lib/components/file-render/ng-package.json +6 -0
- package/src/lib/components/file-upload/file-upload.component.css +0 -0
- package/src/lib/components/file-upload/file-upload.component.html +69 -0
- package/src/lib/components/file-upload/file-upload.component.spec.ts +23 -0
- package/src/lib/components/file-upload/file-upload.component.ts +87 -0
- package/src/lib/components/file-upload/file-upload.module.ts +40 -0
- package/src/lib/components/file-upload/ng-package.json +6 -0
- package/src/lib/components/flowable-status/flowable-status.columns.ts +23 -0
- package/src/lib/components/flowable-status/flowable-status.component.css +1 -0
- package/src/lib/components/flowable-status/flowable-status.component.html +166 -0
- package/src/lib/components/flowable-status/flowable-status.component.ts +247 -0
- package/src/lib/components/flowable-status/flowable-status.config.ts +54 -0
- package/src/lib/components/flowable-status/flowable-status.facade.ts +70 -0
- package/src/lib/components/flowable-status/flowable-status.form.component.html +13 -0
- package/src/lib/components/flowable-status/flowable-status.form.component.ts +51 -0
- package/src/lib/components/flowable-status/flowable-status.model.ts +3 -0
- package/src/lib/components/flowable-status/flowable-status.module.ts +13 -0
- package/src/lib/components/flowable-status/flowable-status.service.ts +39 -0
- package/src/lib/components/flowable-status/flowable-status.state.ts +10 -0
- package/src/lib/components/flowable-status/ng-package.json +6 -0
- package/src/lib/components/flowable-status/public-api.ts +3 -0
- package/src/lib/components/form-control/form-control.component.css +0 -0
- package/src/lib/components/form-control/form-control.component.html +259 -0
- package/src/lib/components/form-control/form-control.component.spec.ts +23 -0
- package/src/lib/components/form-control/form-control.component.ts +197 -0
- package/src/lib/components/form-control/form-control.module.ts +47 -0
- package/src/lib/components/form-control/ng-package.json +6 -0
- package/src/lib/components/form-group/base-table-style.ts +52 -0
- package/src/lib/components/form-group/form-fields/form-fields.component.css +114 -0
- package/src/lib/components/form-group/form-fields/form-fields.component.html +621 -0
- package/src/lib/components/form-group/form-fields/form-fields.component.spec.ts +23 -0
- package/src/lib/components/form-group/form-fields/form-fields.component.ts +1115 -0
- package/src/lib/components/form-group/form-fields/form-fields.module.ts +48 -0
- package/src/lib/components/form-group/form-fields/form-fields.service.ts +70 -0
- package/src/lib/components/form-group/form-fields/helper.ts +45 -0
- package/src/lib/components/form-group/form-group.component.css +113 -0
- package/src/lib/components/form-group/form-group.component.html +486 -0
- package/src/lib/components/form-group/form-group.component.spec.ts +22 -0
- package/src/lib/components/form-group/form-group.component.ts +789 -0
- package/src/lib/components/form-group/form-group.module.ts +54 -0
- package/src/lib/components/form-group/form-group.service.ts +53 -0
- package/src/lib/components/form-group/helper.ts +45 -0
- package/src/lib/components/form-group/ng-package.json +6 -0
- package/src/lib/components/form-response/form-response.component.css +114 -0
- package/src/lib/components/form-response/form-response.component.html +188 -0
- package/src/lib/components/form-response/form-response.component.spec.ts +23 -0
- package/src/lib/components/form-response/form-response.component.ts +735 -0
- package/src/lib/components/form-response/form-response.module.ts +48 -0
- package/src/lib/components/form-response/form-response.service.ts +52 -0
- package/src/lib/components/form-response/helper.ts +222 -0
- package/src/lib/components/form-response/ng-package.json +6 -0
- package/src/lib/components/form-timer/form-timer.component.css +0 -0
- package/src/lib/components/form-timer/form-timer.component.html +47 -0
- package/src/lib/components/form-timer/form-timer.component.spec.ts +23 -0
- package/src/lib/components/form-timer/form-timer.component.ts +50 -0
- package/src/lib/components/form-timer/form-timer.module.ts +19 -0
- package/src/lib/components/form-timer/ng-package.json +6 -0
- package/src/lib/components/form-values/form-values.component.css +48 -0
- package/src/lib/components/form-values/form-values.component.html +225 -0
- package/src/lib/components/form-values/form-values.component.ts +1437 -0
- package/src/lib/components/form-values/form-values.module.ts +13 -0
- package/src/lib/components/form-values/form-values.service.ts +45 -0
- package/src/lib/components/form-values/ng-package.json +6 -0
- package/src/lib/components/form-values/public-api.ts +3 -0
- package/src/lib/components/form-viewer/form-viewer.component.css +4 -0
- package/src/lib/components/form-viewer/form-viewer.component.html +62 -0
- package/src/lib/components/form-viewer/form-viewer.component.spec.ts +23 -0
- package/src/lib/components/form-viewer/form-viewer.component.ts +31 -0
- package/src/lib/components/form-viewer/form-viewer.module.ts +52 -0
- package/src/lib/components/form-viewer/ng-package.json +6 -0
- package/src/lib/components/forms/base-table-style.ts +52 -0
- package/src/lib/components/forms/forms.component.css +126 -0
- package/src/lib/components/forms/forms.component.html +538 -0
- package/src/lib/components/forms/forms.component.spec.ts +23 -0
- package/src/lib/components/forms/forms.component.ts +810 -0
- package/src/lib/components/forms/forms.module.ts +10 -0
- package/src/lib/components/forms/forms.service.spec.ts +16 -0
- package/src/lib/components/forms/forms.service.ts +65 -0
- package/src/lib/components/forms/ng-package.json +6 -0
- package/src/lib/components/journal/journal.component.css +0 -0
- package/src/lib/components/journal/journal.component.html +1 -0
- package/src/lib/components/journal/journal.component.spec.ts +23 -0
- package/src/lib/components/journal/journal.component.ts +10 -0
- package/src/lib/components/journal/journal.module.ts +10 -0
- package/src/lib/components/journal/ng-package.json +6 -0
- package/src/lib/components/my-queue/my-queue.columns.ts +37 -0
- package/src/lib/components/my-queue/my-queue.component.css +8 -0
- package/src/lib/components/my-queue/my-queue.component.html +319 -0
- package/src/lib/components/my-queue/my-queue.component.spec.ts +23 -0
- package/src/lib/components/my-queue/my-queue.component.ts +409 -0
- package/src/lib/components/my-queue/my-queue.facade.ts +670 -0
- package/src/lib/components/my-queue/my-queue.helper.ts +71 -0
- package/src/lib/components/my-queue/my-queue.module.ts +28 -0
- package/src/lib/components/my-queue/my-queue.service.spec.ts +16 -0
- package/src/lib/components/my-queue/my-queue.service.ts +262 -0
- package/src/lib/components/my-queue/my-queue.state.ts +133 -0
- package/src/lib/components/my-queue/ng-package.json +6 -0
- package/src/lib/components/my-queue/tasks.form.component.html +168 -0
- package/src/lib/components/my-queue/tasks.form.component.ts +201 -0
- package/src/lib/components/operation-popup/ng-package.json +6 -0
- package/src/lib/components/operation-popup/operation-popup.component.css +1 -0
- package/src/lib/components/operation-popup/operation-popup.component.html +107 -0
- package/src/lib/components/operation-popup/operation-popup.component.ts +476 -0
- package/src/lib/components/operation-popup/operation-popup.facade.ts +435 -0
- package/src/lib/components/operation-popup/operation-popup.service.ts +143 -0
- package/src/lib/components/operation-popup/operation-popup.state.ts +49 -0
- package/src/lib/components/stage-details/ng-package.json +6 -0
- package/src/lib/components/stage-details/stage-details.component.css +0 -0
- package/src/lib/components/stage-details/stage-details.component.html +95 -0
- package/src/lib/components/stage-details/stage-details.component.spec.ts +23 -0
- package/src/lib/components/stage-details/stage-details.component.ts +43 -0
- package/src/lib/components/stage-details/stage-details.module.ts +11 -0
- package/src/lib/components/task-form/ng-package.json +6 -0
- package/src/lib/components/task-form/task-form.component.css +0 -0
- package/src/lib/components/task-form/task-form.component.html +38 -0
- package/src/lib/components/task-form/task-form.component.spec.ts +23 -0
- package/src/lib/components/task-form/task-form.component.ts +15 -0
- package/src/lib/components/task-form/task-form.module.ts +31 -0
- package/src/lib/components/task-history/ng-package.json +6 -0
- package/src/lib/components/task-history/task-history.component.css +334 -0
- package/src/lib/components/task-history/task-history.component.html +292 -0
- package/src/lib/components/task-history/task-history.component.spec.ts +23 -0
- package/src/lib/components/task-history/task-history.component.ts +284 -0
- package/src/lib/components/task-history/task-history.module.ts +12 -0
- package/src/lib/components/task-history/task-history.service.ts +32 -0
- package/src/lib/components/task-notification/base-table-style.ts +52 -0
- package/src/lib/components/task-notification/ng-package.json +6 -0
- package/src/lib/components/task-notification/task-notification.component.css +94 -0
- package/src/lib/components/task-notification/task-notification.component.html +585 -0
- package/src/lib/components/task-notification/task-notification.component.spec.ts +23 -0
- package/src/lib/components/task-notification/task-notification.component.ts +793 -0
- package/src/lib/components/task-notification/task-notification.module.ts +10 -0
- package/src/lib/components/task-notification/task-notification.service.spec.ts +16 -0
- package/src/lib/components/task-notification/task-notification.service.ts +397 -0
- package/src/lib/components/tasks/ng-package.json +6 -0
- package/src/lib/components/tasks/tasks.columns.ts +50 -0
- package/src/lib/components/tasks/tasks.component.css +4 -0
- package/src/lib/components/tasks/tasks.component.html +385 -0
- package/src/lib/components/tasks/tasks.component.spec.ts +23 -0
- package/src/lib/components/tasks/tasks.component.ts +212 -0
- package/src/lib/components/tasks/tasks.facade.ts +482 -0
- package/src/lib/components/tasks/tasks.form.component.html +181 -0
- package/src/lib/components/tasks/tasks.form.component.ts +174 -0
- package/src/lib/components/tasks/tasks.helper.ts +71 -0
- package/src/lib/components/tasks/tasks.models.ts +4 -0
- package/src/lib/components/tasks/tasks.module.ts +29 -0
- package/src/lib/components/tasks/tasks.service.spec.ts +16 -0
- package/src/lib/components/tasks/tasks.service.ts +215 -0
- package/src/lib/components/tasks/tasks.state.ts +144 -0
- package/src/lib/components/wf/ng-package.json +6 -0
- package/src/lib/components/wf/wf.columns.ts +36 -0
- package/src/lib/components/wf/wf.component.css +0 -0
- package/src/lib/components/wf/wf.component.html +35 -0
- package/src/lib/components/wf/wf.component.spec.ts +23 -0
- package/src/lib/components/wf/wf.component.ts +71 -0
- package/src/lib/components/wf/wf.facade.ts +266 -0
- package/src/lib/components/wf/wf.helper.ts +25 -0
- package/src/lib/components/wf/wf.module.ts +14 -0
- package/src/lib/components/wf/wf.service.spec.ts +16 -0
- package/src/lib/components/wf/wf.service.ts +98 -0
- package/src/lib/components/wf/wf.state.ts +99 -0
- package/src/lib/components/workflow/column.ts +40 -0
- package/src/lib/components/workflow/helper.ts +53 -0
- package/src/lib/components/workflow/ng-package.json +6 -0
- package/src/lib/components/workflow/table-style.ts +53 -0
- package/src/lib/components/workflow/workflow.component.css +0 -0
- package/src/lib/components/workflow/workflow.component.html +226 -0
- package/src/lib/components/workflow/workflow.component.spec.ts +23 -0
- package/src/lib/components/workflow/workflow.component.ts +224 -0
- package/src/lib/components/workflow/workflow.module.ts +11 -0
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.css +9 -0
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.html +134 -0
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.spec.ts +23 -0
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.ts +147 -0
- 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 +45 -0
- package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.ts +83 -0
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.css +7 -0
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.html +89 -0
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.spec.ts +23 -0
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.ts +87 -0
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.css +11 -0
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.html +74 -0
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.spec.ts +23 -0
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.ts +80 -0
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.css +70 -0
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.html +454 -0
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.spec.ts +23 -0
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.ts +1654 -0
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.connection-drop.spec.ts +100 -0
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.css +63 -0
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.html +49 -0
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.spec.ts +23 -0
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.ts +86 -0
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.ts +7 -0
- package/src/lib/components/workflow-designer/docs/01-architecture.md +145 -0
- package/src/lib/components/workflow-designer/docs/02-coordinate-system.md +171 -0
- package/src/lib/components/workflow-designer/docs/03-data-model.md +163 -0
- package/src/lib/components/workflow-designer/docs/04-interactions.md +156 -0
- package/src/lib/components/workflow-designer/docs/05-persistence.md +117 -0
- package/src/lib/components/workflow-designer/docs/06-known-issues.md +181 -0
- package/src/lib/components/workflow-designer/docs/07-integration.md +178 -0
- package/src/lib/components/workflow-designer/docs/08-api-reference.md +187 -0
- package/src/lib/components/workflow-designer/docs/09-development.md +141 -0
- package/src/lib/components/workflow-designer/docs/README.md +81 -0
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.css +13 -0
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.html +204 -0
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.spec.ts +23 -0
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.ts +308 -0
- package/src/lib/components/workflow-designer/ng-package.json +6 -0
- package/src/lib/components/workflow-designer/services/connection.service.ts +325 -0
- package/src/lib/components/workflow-designer/services/node-management.service.ts +372 -0
- package/src/lib/components/workflow-designer/services/popup.service.ts +276 -0
- package/src/lib/components/workflow-designer/services/swimlane.service.ts +176 -0
- package/src/lib/components/workflow-designer/services/transformer.service.ts +318 -0
- 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 +208 -0
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.spec.ts +23 -0
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.ts +194 -0
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.css +15 -0
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.html +93 -0
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.spec.ts +23 -0
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.ts +258 -0
- 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 +150 -0
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.spec.ts +23 -0
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.ts +153 -0
- package/src/lib/components/workflow-designer/workflow-data.service.spec.ts +16 -0
- package/src/lib/components/workflow-designer/workflow-data.service.ts +290 -0
- package/src/lib/components/workflow-designer/workflow-designer.component.css +59 -0
- package/src/lib/components/workflow-designer/workflow-designer.component.html +29 -0
- package/src/lib/components/workflow-designer/workflow-designer.component.spec.ts +23 -0
- package/src/lib/components/workflow-designer/workflow-designer.component.ts +548 -0
- package/src/lib/components/workflow-designer/workflow-designer.models.ts +114 -0
- package/src/lib/components/workflow-designer/workflow-designer.module.ts +90 -0
- package/src/lib/components/workflow-designer/workflow-designer.state.ts +1123 -0
- package/src/lib/components/workflow-designer/workflow-designer.types.ts +141 -0
- package/src/lib/components/workflow-stage/ng-package.json +6 -0
- package/src/lib/components/workflow-stage/workflow-stage.component.css +24 -0
- package/src/lib/components/workflow-stage/workflow-stage.component.html +339 -0
- package/src/lib/components/workflow-stage/workflow-stage.component.spec.ts +23 -0
- package/src/lib/components/workflow-stage/workflow-stage.component.ts +355 -0
- package/src/lib/components/workflow-stage/workflow-stage.module.ts +53 -0
- package/src/lib/components/workflows/ng-package.json +6 -0
- package/src/lib/components/workflows/public-api.ts +6 -0
- package/src/lib/components/workflows/workflow-form/workflow-form.component.css +0 -0
- package/src/lib/components/workflows/workflow-form/workflow-form.component.html +138 -0
- package/src/lib/components/workflows/workflow-form/workflow-form.component.spec.ts +23 -0
- package/src/lib/components/workflows/workflow-form/workflow-form.component.ts +85 -0
- package/src/lib/components/workflows/workflows.api.ts +117 -0
- package/src/lib/components/workflows/workflows.columns.ts +41 -0
- package/src/lib/components/workflows/workflows.component.css +4 -0
- package/src/lib/components/workflows/workflows.component.html +309 -0
- package/src/lib/components/workflows/workflows.component.spec.ts +23 -0
- package/src/lib/components/workflows/workflows.component.ts +303 -0
- package/src/lib/components/workflows/workflows.config.ts +58 -0
- package/src/lib/components/workflows/workflows.facade.ts +147 -0
- package/src/lib/components/workflows/workflows.module.ts +14 -0
- package/src/lib/components/workflows/workflows.service.spec.ts +16 -0
- package/src/lib/components/workflows/workflows.service.ts +88 -0
- package/src/lib/components/workflows/workflows.state.ts +21 -0
- package/src/lib/models/ActionHistory.ts +19 -0
- package/src/lib/models/ActionType.ts +9 -0
- package/src/lib/models/Actor.ts +12 -0
- package/src/lib/models/ActorTag.ts +8 -0
- package/src/lib/models/Coord.ts +4 -0
- package/src/lib/models/DataExtensionValue.ts +5 -0
- package/src/lib/models/DataType.ts +25 -0
- package/src/lib/models/EAVDataType.ts +18 -0
- package/src/lib/models/EAVEntity.ts +5 -0
- package/src/lib/models/EntityDataValue.ts +7 -0
- package/src/lib/models/EntityProperty.ts +8 -0
- package/src/lib/models/ErrorResponse.ts +7 -0
- package/src/lib/models/Escalation.ts +15 -0
- package/src/lib/models/EscalationCycle.ts +13 -0
- package/src/lib/models/EscalationStage.ts +11 -0
- package/src/lib/models/EscalationType.ts +5 -0
- package/src/lib/models/File.ts +8 -0
- package/src/lib/models/FilterTypes.ts +8 -0
- package/src/lib/models/FlowableStatus.ts +6 -0
- package/src/lib/models/Form.ts +14 -0
- package/src/lib/models/FormEntity.ts +14 -0
- package/src/lib/models/FormFill.ts +16 -0
- package/src/lib/models/FormProperty.ts +16 -0
- package/src/lib/models/FormValue.ts +19 -0
- package/src/lib/models/MailConfig.ts +13 -0
- package/src/lib/models/MessageConfig.ts +5 -0
- package/src/lib/models/MessageMedium.ts +4 -0
- package/src/lib/models/OperationAction.ts +15 -0
- package/src/lib/models/PagedResult.ts +5 -0
- package/src/lib/models/PeriodMode.ts +10 -0
- package/src/lib/models/PermissionConfig.ts +8 -0
- package/src/lib/models/Property.ts +6 -0
- package/src/lib/models/ReportSchedule.ts +23 -0
- package/src/lib/models/ReportType.ts +5 -0
- package/src/lib/models/Resource.ts +57 -0
- package/src/lib/models/ResponseKeyValue.ts +5 -0
- package/src/lib/models/SMSConfig.ts +11 -0
- package/src/lib/models/SearchDynamicWrapper.ts +6 -0
- package/src/lib/models/SearchOperator.ts +4 -0
- package/src/lib/models/SearchPropertySign.ts +9 -0
- package/src/lib/models/SearchPropertyValue.ts +13 -0
- package/src/lib/models/SearchPropertyValueType.ts +9 -0
- package/src/lib/models/Size.ts +4 -0
- package/src/lib/models/SortDirection.ts +5 -0
- package/src/lib/models/StageActorRule.ts +6 -0
- package/src/lib/models/SwimLane.ts +14 -0
- package/src/lib/models/Tag.ts +7 -0
- package/src/lib/models/Task.ts +33 -0
- package/src/lib/models/TaskAssignmentType.ts +4 -0
- package/src/lib/models/TaskNotification.ts +16 -0
- package/src/lib/models/TaskNotificationMessageType.ts +4 -0
- package/src/lib/models/TaskNotificationType.ts +7 -0
- package/src/lib/models/TaskStatus.ts +7 -0
- package/src/lib/models/Workflow.ts +22 -0
- package/src/lib/models/WorkflowAction.ts +15 -0
- package/src/lib/models/WorkflowOperation.ts +7 -0
- package/src/lib/models/WorkflowStage.ts +27 -0
- package/src/lib/models/actors.ts +10 -0
- package/src/lib/models/auth-mechanism.ts +14 -0
- package/src/lib/models/base.ts +14 -0
- package/src/lib/models/ng-package.json +6 -0
- package/src/lib/models/object-state.ts +6 -0
- package/src/lib/models/operation-type.ts +6 -0
- package/src/lib/models/paged.ts +9 -0
- package/src/lib/models/public-api.ts +65 -0
- package/src/lib/models/query-params.ts +9 -0
- package/src/lib/models/status.ts +5 -0
- package/src/lib/models/task-history.ts +14 -0
- package/src/lib/models/user-access-request-status.ts +5 -0
- package/src/lib/models/user.ts +25 -0
- package/src/lib/pipes/async-label.pipe.spec.ts +12 -0
- package/src/lib/pipes/async-label.pipe.ts +30 -0
- package/src/lib/pipes/ng-package.json +6 -0
- package/src/lib/services/environment.service.spec.ts +16 -0
- package/src/lib/services/environment.service.ts +31 -0
- package/src/lib/services/http-web-request.service.spec.ts +16 -0
- package/src/lib/services/http-web-request.service.ts +154 -0
- package/src/lib/services/index.ts +1 -0
- package/src/lib/services/label.service.spec.ts +16 -0
- package/src/lib/services/label.service.ts +182 -0
- package/src/lib/services/ng-package.json +6 -0
- package/src/lib/services/public-api.ts +5 -0
- package/src/lib/services/util.service.spec.ts +16 -0
- package/src/lib/services/util.service.ts +72 -0
- package/src/lib/shared/base-table-style.ts +56 -0
- package/src/lib/shared/components/base-data-view.component.ts +187 -0
- package/src/lib/shared/components/base-model-field.ts +31 -0
- package/src/lib/shared/models/DataViewConfig.ts +19 -0
- package/src/lib/shared/ng-package.json +6 -0
- package/src/lib/shared/public-api.ts +14 -0
- package/src/lib/shared/shared.module.ts +67 -0
- package/src/lib/utils/index.ts +1 -0
- package/src/lib/utils/public-api.ts +2 -0
- package/src/lib/utils/store.ts +50 -0
- package/src/public-api.ts +58 -0
- package/src/styles.css +96 -0
- package/tailwind.config copy.js +33 -0
- package/tailwind.config.js +20 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +15 -0
- package/esm2022/public-api.mjs +0 -41
- package/esm2022/src/lib/base/core/base-data-page.facade.mjs +0 -412
- package/esm2022/src/lib/base/core/base-data-page.service.mjs +0 -140
- package/esm2022/src/lib/base/core/base-data-page.state.mjs +0 -216
- package/esm2022/src/lib/base/handlers/filter-handler.service.mjs +0 -138
- package/esm2022/src/lib/base/handlers/search-handler.service.mjs +0 -31
- package/esm2022/src/lib/base/handlers/sort-handler.service.mjs +0 -73
- package/esm2022/src/lib/base/index.mjs +0 -2
- package/esm2022/src/lib/base/models/api-payload.mjs +0 -7
- package/esm2022/src/lib/base/models/page-config.interface.mjs +0 -2
- package/esm2022/src/lib/base/models/page-filter-tab-option.interface.mjs +0 -2
- package/esm2022/src/lib/base/public-api.mjs +0 -14
- package/esm2022/src/lib/base/utils/column-helpers.mjs +0 -55
- package/esm2022/src/lib/base/verben-workflow-ui-src-lib-base.mjs +0 -5
- package/esm2022/src/lib/components/actors/actors.columns.mjs +0 -39
- package/esm2022/src/lib/components/actors/actors.component.mjs +0 -175
- package/esm2022/src/lib/components/actors/actors.config.mjs +0 -49
- package/esm2022/src/lib/components/actors/actors.facade.mjs +0 -57
- package/esm2022/src/lib/components/actors/actors.form.component.mjs +0 -74
- package/esm2022/src/lib/components/actors/actors.module.mjs +0 -21
- package/esm2022/src/lib/components/actors/actors.service.mjs +0 -65
- package/esm2022/src/lib/components/actors/actors.state.mjs +0 -31
- package/esm2022/src/lib/components/actors/index.mjs +0 -2
- package/esm2022/src/lib/components/actors/public-api.mjs +0 -3
- package/esm2022/src/lib/components/actors/verben-workflow-ui-src-lib-components-actors.mjs +0 -5
- package/esm2022/src/lib/components/designer/components/label-editor.component.mjs +0 -148
- package/esm2022/src/lib/components/designer/components/node-selector.component.mjs +0 -317
- package/esm2022/src/lib/components/designer/components/swimlane-label.component.mjs +0 -161
- package/esm2022/src/lib/components/designer/components/swimlane-popup.component.mjs +0 -85
- package/esm2022/src/lib/components/designer/components/wf-canvas.component.mjs +0 -715
- package/esm2022/src/lib/components/designer/components/wf-designer.component.mjs +0 -135
- package/esm2022/src/lib/components/designer/components/wf-toolbar.component.mjs +0 -56
- package/esm2022/src/lib/components/designer/index.mjs +0 -2
- package/esm2022/src/lib/components/designer/models/types.mjs +0 -2
- package/esm2022/src/lib/components/designer/public-api.mjs +0 -3
- package/esm2022/src/lib/components/designer/services/canvas-state.service.mjs +0 -50
- package/esm2022/src/lib/components/designer/services/connection-segment-interaction.service.mjs +0 -108
- package/esm2022/src/lib/components/designer/services/connection.service.mjs +0 -267
- package/esm2022/src/lib/components/designer/services/keyboard-handler.service.mjs +0 -43
- package/esm2022/src/lib/components/designer/services/label-management.service.mjs +0 -66
- package/esm2022/src/lib/components/designer/services/node-finder.service.mjs +0 -30
- package/esm2022/src/lib/components/designer/services/node-interaction.service.mjs +0 -108
- package/esm2022/src/lib/components/designer/services/node-precondition.service.mjs +0 -108
- package/esm2022/src/lib/components/designer/services/node-selection.service.mjs +0 -96
- package/esm2022/src/lib/components/designer/services/orthogonal-router.service.mjs +0 -167
- package/esm2022/src/lib/components/designer/services/position-update.service.mjs +0 -45
- package/esm2022/src/lib/components/designer/services/rendering.service.mjs +0 -236
- package/esm2022/src/lib/components/designer/services/swimlane-management.service.mjs +0 -145
- package/esm2022/src/lib/components/designer/services/swimlane-stats.service.mjs +0 -44
- package/esm2022/src/lib/components/designer/services/viewport.service.mjs +0 -30
- package/esm2022/src/lib/components/designer/services/wf-facade.service.mjs +0 -239
- package/esm2022/src/lib/components/designer/services/wf-mapper.service.mjs +0 -326
- package/esm2022/src/lib/components/designer/services/wf-persistence.service.mjs +0 -169
- package/esm2022/src/lib/components/designer/services/wf-state.service.mjs +0 -108
- package/esm2022/src/lib/components/designer/verben-workflow-ui-src-lib-components-designer.mjs +0 -5
- package/esm2022/src/lib/components/expiration/expiration.component.mjs +0 -49
- package/esm2022/src/lib/components/expiration/expiration.module.mjs +0 -19
- package/esm2022/src/lib/components/expiration/index.mjs +0 -2
- package/esm2022/src/lib/components/expiration/public-api.mjs +0 -3
- package/esm2022/src/lib/components/expiration/verben-workflow-ui-src-lib-components-expiration.mjs +0 -5
- package/esm2022/src/lib/components/file-render/file-render.component.mjs +0 -45
- package/esm2022/src/lib/components/file-render/file-render.module.mjs +0 -35
- package/esm2022/src/lib/components/file-render/index.mjs +0 -2
- package/esm2022/src/lib/components/file-render/public-api.mjs +0 -3
- package/esm2022/src/lib/components/file-render/verben-workflow-ui-src-lib-components-file-render.mjs +0 -5
- package/esm2022/src/lib/components/file-upload/file-upload.component.mjs +0 -93
- package/esm2022/src/lib/components/file-upload/file-upload.module.mjs +0 -63
- package/esm2022/src/lib/components/file-upload/index.mjs +0 -2
- package/esm2022/src/lib/components/file-upload/public-api.mjs +0 -3
- package/esm2022/src/lib/components/file-upload/verben-workflow-ui-src-lib-components-file-upload.mjs +0 -5
- package/esm2022/src/lib/components/flowable-status/flowable-status.columns.mjs +0 -21
- package/esm2022/src/lib/components/flowable-status/flowable-status.component.mjs +0 -203
- package/esm2022/src/lib/components/flowable-status/flowable-status.config.mjs +0 -47
- package/esm2022/src/lib/components/flowable-status/flowable-status.facade.mjs +0 -60
- package/esm2022/src/lib/components/flowable-status/flowable-status.form.component.mjs +0 -52
- package/esm2022/src/lib/components/flowable-status/flowable-status.module.mjs +0 -21
- package/esm2022/src/lib/components/flowable-status/flowable-status.service.mjs +0 -35
- package/esm2022/src/lib/components/flowable-status/flowable-status.state.mjs +0 -15
- package/esm2022/src/lib/components/flowable-status/index.mjs +0 -2
- package/esm2022/src/lib/components/flowable-status/public-api.mjs +0 -3
- package/esm2022/src/lib/components/flowable-status/verben-workflow-ui-src-lib-components-flowable-status.mjs +0 -5
- package/esm2022/src/lib/components/form-control/form-control.component.mjs +0 -180
- package/esm2022/src/lib/components/form-control/form-control.module.mjs +0 -75
- package/esm2022/src/lib/components/form-control/index.mjs +0 -2
- package/esm2022/src/lib/components/form-control/public-api.mjs +0 -3
- package/esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs +0 -5
- package/esm2022/src/lib/components/form-group/base-table-style.mjs +0 -53
- package/esm2022/src/lib/components/form-group/form-fields/form-fields.component.mjs +0 -952
- package/esm2022/src/lib/components/form-group/form-fields/form-fields.module.mjs +0 -75
- package/esm2022/src/lib/components/form-group/form-fields/form-fields.service.mjs +0 -73
- package/esm2022/src/lib/components/form-group/form-group.component.mjs +0 -699
- package/esm2022/src/lib/components/form-group/form-group.module.mjs +0 -85
- package/esm2022/src/lib/components/form-group/form-group.service.mjs +0 -56
- package/esm2022/src/lib/components/form-group/index.mjs +0 -2
- package/esm2022/src/lib/components/form-group/public-api.mjs +0 -5
- package/esm2022/src/lib/components/form-group/verben-workflow-ui-src-lib-components-form-group.mjs +0 -5
- package/esm2022/src/lib/components/form-response/form-response.component.mjs +0 -641
- package/esm2022/src/lib/components/form-response/form-response.module.mjs +0 -76
- package/esm2022/src/lib/components/form-response/form-response.service.mjs +0 -54
- package/esm2022/src/lib/components/form-response/index.mjs +0 -2
- package/esm2022/src/lib/components/form-response/public-api.mjs +0 -3
- package/esm2022/src/lib/components/form-response/verben-workflow-ui-src-lib-components-form-response.mjs +0 -5
- package/esm2022/src/lib/components/form-timer/form-timer.component.mjs +0 -47
- package/esm2022/src/lib/components/form-timer/form-timer.module.mjs +0 -28
- package/esm2022/src/lib/components/form-timer/index.mjs +0 -2
- package/esm2022/src/lib/components/form-timer/public-api.mjs +0 -3
- package/esm2022/src/lib/components/form-timer/verben-workflow-ui-src-lib-components-form-timer.mjs +0 -5
- package/esm2022/src/lib/components/form-viewer/form-viewer.component.mjs +0 -38
- package/esm2022/src/lib/components/form-viewer/form-viewer.module.mjs +0 -78
- package/esm2022/src/lib/components/form-viewer/index.mjs +0 -2
- package/esm2022/src/lib/components/form-viewer/public-api.mjs +0 -3
- package/esm2022/src/lib/components/form-viewer/verben-workflow-ui-src-lib-components-form-viewer.mjs +0 -5
- package/esm2022/src/lib/components/forms/base-table-style.mjs +0 -53
- package/esm2022/src/lib/components/forms/forms.component.mjs +0 -673
- package/esm2022/src/lib/components/forms/forms.module.mjs +0 -18
- package/esm2022/src/lib/components/forms/forms.service.mjs +0 -68
- package/esm2022/src/lib/components/forms/index.mjs +0 -2
- package/esm2022/src/lib/components/forms/public-api.mjs +0 -3
- package/esm2022/src/lib/components/forms/verben-workflow-ui-src-lib-components-forms.mjs +0 -5
- package/esm2022/src/lib/components/journal/index.mjs +0 -2
- package/esm2022/src/lib/components/journal/journal.component.mjs +0 -11
- package/esm2022/src/lib/components/journal/journal.module.mjs +0 -18
- package/esm2022/src/lib/components/journal/public-api.mjs +0 -3
- package/esm2022/src/lib/components/journal/verben-workflow-ui-src-lib-components-journal.mjs +0 -5
- package/esm2022/src/lib/components/my-queue/index.mjs +0 -2
- package/esm2022/src/lib/components/my-queue/my-queue.columns.mjs +0 -34
- package/esm2022/src/lib/components/my-queue/my-queue.component.mjs +0 -342
- package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +0 -502
- package/esm2022/src/lib/components/my-queue/my-queue.module.mjs +0 -47
- package/esm2022/src/lib/components/my-queue/my-queue.service.mjs +0 -144
- package/esm2022/src/lib/components/my-queue/my-queue.state.mjs +0 -108
- package/esm2022/src/lib/components/my-queue/public-api.mjs +0 -4
- package/esm2022/src/lib/components/my-queue/tasks.form.component.mjs +0 -191
- package/esm2022/src/lib/components/my-queue/verben-workflow-ui-src-lib-components-my-queue.mjs +0 -5
- package/esm2022/src/lib/components/operation-popup/index.mjs +0 -2
- package/esm2022/src/lib/components/operation-popup/operation-popup.component.mjs +0 -382
- package/esm2022/src/lib/components/operation-popup/operation-popup.facade.mjs +0 -345
- package/esm2022/src/lib/components/operation-popup/operation-popup.service.mjs +0 -82
- package/esm2022/src/lib/components/operation-popup/operation-popup.state.mjs +0 -44
- package/esm2022/src/lib/components/operation-popup/public-api.mjs +0 -3
- package/esm2022/src/lib/components/operation-popup/verben-workflow-ui-src-lib-components-operation-popup.mjs +0 -5
- package/esm2022/src/lib/components/stage-details/index.mjs +0 -2
- package/esm2022/src/lib/components/stage-details/public-api.mjs +0 -3
- package/esm2022/src/lib/components/stage-details/stage-details.component.mjs +0 -49
- package/esm2022/src/lib/components/stage-details/stage-details.module.mjs +0 -19
- package/esm2022/src/lib/components/stage-details/verben-workflow-ui-src-lib-components-stage-details.mjs +0 -5
- package/esm2022/src/lib/components/task-form/index.mjs +0 -2
- package/esm2022/src/lib/components/task-form/public-api.mjs +0 -3
- package/esm2022/src/lib/components/task-form/task-form.component.mjs +0 -18
- package/esm2022/src/lib/components/task-form/task-form.module.mjs +0 -72
- package/esm2022/src/lib/components/task-form/verben-workflow-ui-src-lib-components-task-form.mjs +0 -5
- package/esm2022/src/lib/components/task-history/index.mjs +0 -2
- package/esm2022/src/lib/components/task-history/public-api.mjs +0 -3
- package/esm2022/src/lib/components/task-history/task-history.component.mjs +0 -249
- package/esm2022/src/lib/components/task-history/task-history.module.mjs +0 -21
- package/esm2022/src/lib/components/task-history/task-history.service.mjs +0 -32
- package/esm2022/src/lib/components/task-history/verben-workflow-ui-src-lib-components-task-history.mjs +0 -5
- package/esm2022/src/lib/components/task-notification/base-table-style.mjs +0 -53
- package/esm2022/src/lib/components/task-notification/index.mjs +0 -2
- package/esm2022/src/lib/components/task-notification/public-api.mjs +0 -3
- package/esm2022/src/lib/components/task-notification/task-notification.component.mjs +0 -670
- package/esm2022/src/lib/components/task-notification/task-notification.module.mjs +0 -18
- package/esm2022/src/lib/components/task-notification/task-notification.service.mjs +0 -256
- package/esm2022/src/lib/components/task-notification/verben-workflow-ui-src-lib-components-task-notification.mjs +0 -5
- package/esm2022/src/lib/components/tasks/index.mjs +0 -2
- package/esm2022/src/lib/components/tasks/public-api.mjs +0 -6
- package/esm2022/src/lib/components/tasks/tasks.columns.mjs +0 -48
- package/esm2022/src/lib/components/tasks/tasks.component.mjs +0 -194
- package/esm2022/src/lib/components/tasks/tasks.facade.mjs +0 -372
- package/esm2022/src/lib/components/tasks/tasks.form.component.mjs +0 -164
- package/esm2022/src/lib/components/tasks/tasks.models.mjs +0 -4
- package/esm2022/src/lib/components/tasks/tasks.module.mjs +0 -52
- package/esm2022/src/lib/components/tasks/tasks.service.mjs +0 -137
- package/esm2022/src/lib/components/tasks/tasks.state.mjs +0 -108
- package/esm2022/src/lib/components/tasks/verben-workflow-ui-src-lib-components-tasks.mjs +0 -5
- package/esm2022/src/lib/components/wf/index.mjs +0 -2
- package/esm2022/src/lib/components/wf/public-api.mjs +0 -4
- package/esm2022/src/lib/components/wf/verben-workflow-ui-src-lib-components-wf.mjs +0 -5
- package/esm2022/src/lib/components/wf/wf.columns.mjs +0 -34
- package/esm2022/src/lib/components/wf/wf.component.mjs +0 -68
- package/esm2022/src/lib/components/wf/wf.module.mjs +0 -22
- package/esm2022/src/lib/components/wf/wf.service.mjs +0 -82
- package/esm2022/src/lib/components/workflow/column.mjs +0 -38
- package/esm2022/src/lib/components/workflow/helper.mjs +0 -47
- package/esm2022/src/lib/components/workflow/index.mjs +0 -2
- package/esm2022/src/lib/components/workflow/public-api.mjs +0 -4
- package/esm2022/src/lib/components/workflow/table-style.mjs +0 -53
- package/esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs +0 -5
- package/esm2022/src/lib/components/workflow/workflow.component.mjs +0 -210
- package/esm2022/src/lib/components/workflow/workflow.module.mjs +0 -19
- package/esm2022/src/lib/components/workflow-designer/action-dialog/action-dialog.component.mjs +0 -127
- package/esm2022/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.mjs +0 -78
- package/esm2022/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.mjs +0 -87
- package/esm2022/src/lib/components/workflow-designer/decision-popup/decision-popup.component.mjs +0 -84
- package/esm2022/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.mjs +0 -1270
- package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.mjs +0 -96
- package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.mjs +0 -2
- package/esm2022/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.mjs +0 -260
- package/esm2022/src/lib/components/workflow-designer/index.mjs +0 -2
- package/esm2022/src/lib/components/workflow-designer/public-api.mjs +0 -5
- package/esm2022/src/lib/components/workflow-designer/services/connection.service.mjs +0 -238
- package/esm2022/src/lib/components/workflow-designer/services/node-management.service.mjs +0 -321
- package/esm2022/src/lib/components/workflow-designer/services/popup.service.mjs +0 -240
- package/esm2022/src/lib/components/workflow-designer/services/swimlane.service.mjs +0 -158
- package/esm2022/src/lib/components/workflow-designer/services/transformer.service.mjs +0 -280
- package/esm2022/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.mjs +0 -177
- package/esm2022/src/lib/components/workflow-designer/stage-node/stage-node.component.mjs +0 -226
- package/esm2022/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.mjs +0 -137
- package/esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs +0 -5
- package/esm2022/src/lib/components/workflow-designer/workflow-data.service.mjs +0 -210
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.component.mjs +0 -460
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.module.mjs +0 -129
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.state.mjs +0 -928
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.types.mjs +0 -2
- package/esm2022/src/lib/components/workflow-stage/index.mjs +0 -2
- package/esm2022/src/lib/components/workflow-stage/public-api.mjs +0 -3
- package/esm2022/src/lib/components/workflow-stage/verben-workflow-ui-src-lib-components-workflow-stage.mjs +0 -5
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.component.mjs +0 -331
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.module.mjs +0 -82
- package/esm2022/src/lib/components/workflows/index.mjs +0 -2
- package/esm2022/src/lib/components/workflows/public-api.mjs +0 -7
- package/esm2022/src/lib/components/workflows/verben-workflow-ui-src-lib-components-workflows.mjs +0 -5
- package/esm2022/src/lib/components/workflows/workflow-form/workflow-form.component.mjs +0 -89
- package/esm2022/src/lib/components/workflows/workflows.api.mjs +0 -63
- package/esm2022/src/lib/components/workflows/workflows.columns.mjs +0 -39
- package/esm2022/src/lib/components/workflows/workflows.component.mjs +0 -236
- package/esm2022/src/lib/components/workflows/workflows.config.mjs +0 -51
- package/esm2022/src/lib/components/workflows/workflows.facade.mjs +0 -114
- package/esm2022/src/lib/components/workflows/workflows.module.mjs +0 -21
- package/esm2022/src/lib/components/workflows/workflows.service.mjs +0 -63
- package/esm2022/src/lib/components/workflows/workflows.state.mjs +0 -23
- package/esm2022/src/lib/models/ActionHistory.mjs +0 -2
- package/esm2022/src/lib/models/ActionType.mjs +0 -11
- package/esm2022/src/lib/models/Actor.mjs +0 -2
- package/esm2022/src/lib/models/ActorTag.mjs +0 -2
- package/esm2022/src/lib/models/Coord.mjs +0 -2
- package/esm2022/src/lib/models/DataType.mjs +0 -27
- package/esm2022/src/lib/models/EAVEntity.mjs +0 -2
- package/esm2022/src/lib/models/ErrorResponse.mjs +0 -11
- package/esm2022/src/lib/models/Escalation.mjs +0 -2
- package/esm2022/src/lib/models/EscalationCycle.mjs +0 -2
- package/esm2022/src/lib/models/EscalationStage.mjs +0 -2
- package/esm2022/src/lib/models/EscalationType.mjs +0 -7
- package/esm2022/src/lib/models/File.mjs +0 -2
- package/esm2022/src/lib/models/FilterTypes.mjs +0 -9
- package/esm2022/src/lib/models/FlowableStatus.mjs +0 -2
- package/esm2022/src/lib/models/Form.mjs +0 -2
- package/esm2022/src/lib/models/FormEntity.mjs +0 -2
- package/esm2022/src/lib/models/FormFill.mjs +0 -6
- package/esm2022/src/lib/models/FormProperty.mjs +0 -2
- package/esm2022/src/lib/models/FormValues.mjs +0 -2
- package/esm2022/src/lib/models/MailConfig.mjs +0 -2
- package/esm2022/src/lib/models/MessageConfig.mjs +0 -2
- package/esm2022/src/lib/models/MessageMedium.mjs +0 -6
- package/esm2022/src/lib/models/OperationAction.mjs +0 -2
- package/esm2022/src/lib/models/PagedResult.mjs +0 -2
- package/esm2022/src/lib/models/PeriodMode.mjs +0 -12
- package/esm2022/src/lib/models/PermissionConfig.mjs +0 -2
- package/esm2022/src/lib/models/ReportSchedule.mjs +0 -2
- package/esm2022/src/lib/models/ReportType.mjs +0 -7
- package/esm2022/src/lib/models/Resource.mjs +0 -47
- package/esm2022/src/lib/models/ResponseKeyValue.mjs +0 -2
- package/esm2022/src/lib/models/SMSConfig.mjs +0 -2
- package/esm2022/src/lib/models/SearchDynamicWrapper.mjs +0 -2
- package/esm2022/src/lib/models/SearchOperator.mjs +0 -6
- package/esm2022/src/lib/models/SearchPropertySign.mjs +0 -11
- package/esm2022/src/lib/models/SearchPropertyValue.mjs +0 -2
- package/esm2022/src/lib/models/SearchPropertyValueType.mjs +0 -11
- package/esm2022/src/lib/models/Size.mjs +0 -2
- package/esm2022/src/lib/models/SortDirection.mjs +0 -7
- package/esm2022/src/lib/models/StageActorRule.mjs +0 -8
- package/esm2022/src/lib/models/SwimLane.mjs +0 -2
- package/esm2022/src/lib/models/Tag.mjs +0 -2
- package/esm2022/src/lib/models/Task.mjs +0 -2
- package/esm2022/src/lib/models/TaskAssignmentType.mjs +0 -6
- package/esm2022/src/lib/models/TaskNotification.mjs +0 -2
- package/esm2022/src/lib/models/TaskNotificationMessageType.mjs +0 -6
- package/esm2022/src/lib/models/TaskNotificationType.mjs +0 -9
- package/esm2022/src/lib/models/TaskStatus.mjs +0 -9
- package/esm2022/src/lib/models/Workflow.mjs +0 -2
- package/esm2022/src/lib/models/WorkflowAction.mjs +0 -2
- package/esm2022/src/lib/models/WorkflowOperation.mjs +0 -2
- package/esm2022/src/lib/models/WorkflowStage.mjs +0 -2
- package/esm2022/src/lib/models/actors.mjs +0 -2
- package/esm2022/src/lib/models/auth-mechanism.mjs +0 -8
- package/esm2022/src/lib/models/base.mjs +0 -2
- package/esm2022/src/lib/models/index.mjs +0 -2
- package/esm2022/src/lib/models/object-state.mjs +0 -8
- package/esm2022/src/lib/models/operation-type.mjs +0 -7
- package/esm2022/src/lib/models/paged.mjs +0 -2
- package/esm2022/src/lib/models/public-api.mjs +0 -64
- package/esm2022/src/lib/models/query-params.mjs +0 -2
- package/esm2022/src/lib/models/status.mjs +0 -6
- package/esm2022/src/lib/models/task-history.mjs +0 -2
- package/esm2022/src/lib/models/user-access-request-status.mjs +0 -7
- package/esm2022/src/lib/models/user.mjs +0 -2
- package/esm2022/src/lib/models/verben-workflow-ui-src-lib-models.mjs +0 -5
- package/esm2022/src/lib/pipes/async-label.pipe.mjs +0 -25
- package/esm2022/src/lib/pipes/index.mjs +0 -2
- package/esm2022/src/lib/pipes/public-api.mjs +0 -2
- package/esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs +0 -5
- package/esm2022/src/lib/services/environment.service.mjs +0 -26
- package/esm2022/src/lib/services/http-web-request.service.mjs +0 -92
- package/esm2022/src/lib/services/index.mjs +0 -2
- package/esm2022/src/lib/services/label.service.mjs +0 -134
- package/esm2022/src/lib/services/public-api.mjs +0 -5
- package/esm2022/src/lib/services/util.service.mjs +0 -75
- package/esm2022/src/lib/services/verben-workflow-ui-src-lib-services.mjs +0 -5
- package/esm2022/src/lib/shared/base-table-style.mjs +0 -55
- package/esm2022/src/lib/shared/components/base-data-view.component.mjs +0 -154
- package/esm2022/src/lib/shared/components/base-model-field.mjs +0 -21
- package/esm2022/src/lib/shared/index.mjs +0 -7
- package/esm2022/src/lib/shared/models/DataViewConfig.mjs +0 -2
- package/esm2022/src/lib/shared/public-api.mjs +0 -13
- package/esm2022/src/lib/shared/shared.module.mjs +0 -103
- package/esm2022/src/lib/shared/verben-workflow-ui-src-lib-shared.mjs +0 -5
- package/esm2022/verben-workflow-ui.mjs +0 -5
- package/fesm2022/verben-workflow-ui-src-lib-base.mjs +0 -1055
- package/fesm2022/verben-workflow-ui-src-lib-base.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs +0 -484
- package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs +0 -3891
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs +0 -72
- package/fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs +0 -83
- package/fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs +0 -159
- package/fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs +0 -430
- package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs +0 -257
- package/fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs +0 -1967
- package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs +0 -769
- package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs +0 -78
- package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-form-viewer.mjs +0 -118
- package/fesm2022/verben-workflow-ui-src-lib-components-form-viewer.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs +0 -812
- package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-journal.mjs +0 -33
- package/fesm2022/verben-workflow-ui-src-lib-components-journal.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs +0 -1338
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs +0 -845
- package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs +0 -72
- package/fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs +0 -94
- package/fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs +0 -302
- package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs +0 -995
- package/fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs +0 -1049
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs +0 -203
- package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs +0 -5389
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs +0 -415
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs +0 -365
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs +0 -666
- package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-models.mjs +0 -256
- package/fesm2022/verben-workflow-ui-src-lib-models.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-pipes.mjs +0 -32
- package/fesm2022/verben-workflow-ui-src-lib-pipes.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-services.mjs +0 -322
- package/fesm2022/verben-workflow-ui-src-lib-services.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui-src-lib-shared.mjs +0 -336
- package/fesm2022/verben-workflow-ui-src-lib-shared.mjs.map +0 -1
- package/fesm2022/verben-workflow-ui.mjs +0 -34
- package/fesm2022/verben-workflow-ui.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/public-api.d.ts +0 -22
- package/src/lib/base/core/base-data-page.facade.d.ts +0 -138
- package/src/lib/base/core/base-data-page.service.d.ts +0 -61
- package/src/lib/base/core/base-data-page.state.d.ts +0 -73
- package/src/lib/base/handlers/filter-handler.service.d.ts +0 -34
- package/src/lib/base/handlers/search-handler.service.d.ts +0 -20
- package/src/lib/base/handlers/sort-handler.service.d.ts +0 -30
- package/src/lib/base/models/api-payload.d.ts +0 -2
- package/src/lib/base/models/page-config.interface.d.ts +0 -24
- package/src/lib/base/models/page-filter-tab-option.interface.d.ts +0 -19
- package/src/lib/base/public-api.d.ts +0 -9
- package/src/lib/base/utils/column-helpers.d.ts +0 -24
- package/src/lib/components/actors/actors.columns.d.ts +0 -3
- package/src/lib/components/actors/actors.component.d.ts +0 -79
- package/src/lib/components/actors/actors.config.d.ts +0 -10
- package/src/lib/components/actors/actors.facade.d.ts +0 -29
- package/src/lib/components/actors/actors.form.component.d.ts +0 -23
- package/src/lib/components/actors/actors.module.d.ts +0 -11
- package/src/lib/components/actors/actors.service.d.ts +0 -33
- package/src/lib/components/actors/actors.state.d.ts +0 -19
- package/src/lib/components/designer/components/label-editor.component.d.ts +0 -22
- package/src/lib/components/designer/components/node-selector.component.d.ts +0 -23
- package/src/lib/components/designer/components/swimlane-label.component.d.ts +0 -12
- package/src/lib/components/designer/components/swimlane-popup.component.d.ts +0 -18
- package/src/lib/components/designer/components/wf-canvas.component.d.ts +0 -37
- package/src/lib/components/designer/components/wf-designer.component.d.ts +0 -22
- package/src/lib/components/designer/components/wf-toolbar.component.d.ts +0 -17
- package/src/lib/components/designer/models/types.d.ts +0 -104
- package/src/lib/components/designer/services/canvas-state.service.d.ts +0 -24
- package/src/lib/components/designer/services/connection-segment-interaction.service.d.ts +0 -36
- package/src/lib/components/designer/services/connection.service.d.ts +0 -47
- package/src/lib/components/designer/services/keyboard-handler.service.d.ts +0 -9
- package/src/lib/components/designer/services/label-management.service.d.ts +0 -14
- package/src/lib/components/designer/services/node-finder.service.d.ts +0 -10
- package/src/lib/components/designer/services/node-interaction.service.d.ts +0 -19
- package/src/lib/components/designer/services/node-precondition.service.d.ts +0 -37
- package/src/lib/components/designer/services/node-selection.service.d.ts +0 -19
- package/src/lib/components/designer/services/orthogonal-router.service.d.ts +0 -36
- package/src/lib/components/designer/services/position-update.service.d.ts +0 -10
- package/src/lib/components/designer/services/rendering.service.d.ts +0 -67
- package/src/lib/components/designer/services/swimlane-management.service.d.ts +0 -19
- package/src/lib/components/designer/services/swimlane-stats.service.d.ts +0 -19
- package/src/lib/components/designer/services/viewport.service.d.ts +0 -10
- package/src/lib/components/designer/services/wf-facade.service.d.ts +0 -67
- package/src/lib/components/designer/services/wf-mapper.service.d.ts +0 -26
- package/src/lib/components/designer/services/wf-persistence.service.d.ts +0 -21
- package/src/lib/components/designer/services/wf-state.service.d.ts +0 -30
- package/src/lib/components/expiration/expiration.component.d.ts +0 -20
- package/src/lib/components/expiration/expiration.module.d.ts +0 -9
- package/src/lib/components/file-render/file-render.component.d.ts +0 -17
- package/src/lib/components/file-render/file-render.module.d.ts +0 -10
- package/src/lib/components/file-upload/file-upload.component.d.ts +0 -22
- package/src/lib/components/file-upload/file-upload.module.d.ts +0 -11
- package/src/lib/components/flowable-status/flowable-status.columns.d.ts +0 -3
- package/src/lib/components/flowable-status/flowable-status.component.d.ts +0 -80
- package/src/lib/components/flowable-status/flowable-status.config.d.ts +0 -11
- package/src/lib/components/flowable-status/flowable-status.facade.d.ts +0 -26
- package/src/lib/components/flowable-status/flowable-status.form.component.d.ts +0 -18
- package/src/lib/components/flowable-status/flowable-status.module.d.ts +0 -11
- package/src/lib/components/flowable-status/flowable-status.service.d.ts +0 -23
- package/src/lib/components/flowable-status/flowable-status.state.d.ts +0 -11
- package/src/lib/components/flowable-status/public-api.d.ts +0 -2
- package/src/lib/components/form-control/form-control.component.d.ts +0 -39
- package/src/lib/components/form-control/form-control.module.d.ts +0 -11
- package/src/lib/components/form-group/base-table-style.d.ts +0 -1
- package/src/lib/components/form-group/form-fields/form-fields.component.d.ts +0 -136
- package/src/lib/components/form-group/form-fields/form-fields.module.d.ts +0 -11
- package/src/lib/components/form-group/form-fields/form-fields.service.d.ts +0 -9
- package/src/lib/components/form-group/form-group.component.d.ts +0 -108
- package/src/lib/components/form-group/form-group.module.d.ts +0 -15
- package/src/lib/components/form-group/form-group.service.d.ts +0 -9
- package/src/lib/components/form-response/form-response.component.d.ts +0 -108
- package/src/lib/components/form-response/form-response.module.d.ts +0 -12
- package/src/lib/components/form-response/form-response.service.d.ts +0 -9
- package/src/lib/components/form-timer/form-timer.component.d.ts +0 -13
- package/src/lib/components/form-timer/form-timer.module.d.ts +0 -9
- package/src/lib/components/form-viewer/form-viewer.component.d.ts +0 -17
- package/src/lib/components/form-viewer/form-viewer.module.d.ts +0 -11
- package/src/lib/components/forms/base-table-style.d.ts +0 -1
- package/src/lib/components/forms/forms.component.d.ts +0 -88
- package/src/lib/components/forms/forms.module.d.ts +0 -8
- package/src/lib/components/forms/forms.service.d.ts +0 -9
- package/src/lib/components/journal/journal.component.d.ts +0 -5
- package/src/lib/components/journal/journal.module.d.ts +0 -8
- package/src/lib/components/my-queue/my-queue.columns.d.ts +0 -3
- package/src/lib/components/my-queue/my-queue.component.d.ts +0 -58
- package/src/lib/components/my-queue/my-queue.facade.d.ts +0 -47
- package/src/lib/components/my-queue/my-queue.module.d.ts +0 -15
- package/src/lib/components/my-queue/my-queue.service.d.ts +0 -65
- package/src/lib/components/my-queue/my-queue.state.d.ts +0 -39
- package/src/lib/components/my-queue/tasks.form.component.d.ts +0 -48
- package/src/lib/components/operation-popup/operation-popup.component.d.ts +0 -62
- package/src/lib/components/operation-popup/operation-popup.facade.d.ts +0 -32
- package/src/lib/components/operation-popup/operation-popup.service.d.ts +0 -23
- package/src/lib/components/operation-popup/operation-popup.state.d.ts +0 -20
- package/src/lib/components/stage-details/stage-details.component.d.ts +0 -24
- package/src/lib/components/stage-details/stage-details.module.d.ts +0 -9
- package/src/lib/components/task-form/task-form.component.d.ts +0 -10
- package/src/lib/components/task-form/task-form.module.d.ts +0 -10
- package/src/lib/components/task-history/task-history.component.d.ts +0 -41
- package/src/lib/components/task-history/task-history.module.d.ts +0 -11
- package/src/lib/components/task-history/task-history.service.d.ts +0 -13
- package/src/lib/components/task-notification/base-table-style.d.ts +0 -1
- package/src/lib/components/task-notification/task-notification.component.d.ts +0 -89
- package/src/lib/components/task-notification/task-notification.module.d.ts +0 -8
- package/src/lib/components/task-notification/task-notification.service.d.ts +0 -32
- package/src/lib/components/tasks/tasks.columns.d.ts +0 -11
- package/src/lib/components/tasks/tasks.component.d.ts +0 -40
- package/src/lib/components/tasks/tasks.facade.d.ts +0 -44
- package/src/lib/components/tasks/tasks.form.component.d.ts +0 -40
- package/src/lib/components/tasks/tasks.models.d.ts +0 -4
- package/src/lib/components/tasks/tasks.module.d.ts +0 -17
- package/src/lib/components/tasks/tasks.service.d.ts +0 -58
- package/src/lib/components/tasks/tasks.state.d.ts +0 -46
- package/src/lib/components/wf/wf.columns.d.ts +0 -3
- package/src/lib/components/wf/wf.component.d.ts +0 -16
- package/src/lib/components/wf/wf.module.d.ts +0 -10
- package/src/lib/components/wf/wf.service.d.ts +0 -51
- package/src/lib/components/workflow/column.d.ts +0 -3
- package/src/lib/components/workflow/helper.d.ts +0 -2
- package/src/lib/components/workflow/table-style.d.ts +0 -1
- package/src/lib/components/workflow/workflow.component.d.ts +0 -57
- package/src/lib/components/workflow/workflow.module.d.ts +0 -9
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.d.ts +0 -34
- package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.d.ts +0 -25
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.d.ts +0 -38
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.d.ts +0 -29
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.d.ts +0 -292
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.d.ts +0 -39
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.d.ts +0 -5
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.d.ts +0 -47
- package/src/lib/components/workflow-designer/services/connection.service.d.ts +0 -101
- package/src/lib/components/workflow-designer/services/node-management.service.d.ts +0 -73
- package/src/lib/components/workflow-designer/services/popup.service.d.ts +0 -147
- package/src/lib/components/workflow-designer/services/swimlane.service.d.ts +0 -66
- package/src/lib/components/workflow-designer/services/transformer.service.d.ts +0 -51
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.d.ts +0 -43
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.d.ts +0 -58
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.d.ts +0 -49
- package/src/lib/components/workflow-designer/workflow-data.service.d.ts +0 -59
- package/src/lib/components/workflow-designer/workflow-designer.component.d.ts +0 -121
- package/src/lib/components/workflow-designer/workflow-designer.module.d.ts +0 -41
- package/src/lib/components/workflow-designer/workflow-designer.state.d.ts +0 -278
- package/src/lib/components/workflow-designer/workflow-designer.types.d.ts +0 -130
- package/src/lib/components/workflow-stage/workflow-stage.component.d.ts +0 -78
- package/src/lib/components/workflow-stage/workflow-stage.module.d.ts +0 -12
- package/src/lib/components/workflows/public-api.d.ts +0 -4
- package/src/lib/components/workflows/workflow-form/workflow-form.component.d.ts +0 -28
- package/src/lib/components/workflows/workflows.api.d.ts +0 -38
- package/src/lib/components/workflows/workflows.columns.d.ts +0 -3
- package/src/lib/components/workflows/workflows.component.d.ts +0 -98
- package/src/lib/components/workflows/workflows.config.d.ts +0 -10
- package/src/lib/components/workflows/workflows.facade.d.ts +0 -41
- package/src/lib/components/workflows/workflows.module.d.ts +0 -11
- package/src/lib/components/workflows/workflows.service.d.ts +0 -32
- package/src/lib/components/workflows/workflows.state.d.ts +0 -15
- package/src/lib/models/ActionHistory.d.ts +0 -16
- package/src/lib/models/ActionType.d.ts +0 -9
- package/src/lib/models/Actor.d.ts +0 -11
- package/src/lib/models/ActorTag.d.ts +0 -6
- package/src/lib/models/Coord.d.ts +0 -4
- package/src/lib/models/DataType.d.ts +0 -25
- package/src/lib/models/EAVEntity.d.ts +0 -4
- package/src/lib/models/ErrorResponse.d.ts +0 -6
- package/src/lib/models/Escalation.d.ts +0 -14
- package/src/lib/models/EscalationCycle.d.ts +0 -12
- package/src/lib/models/EscalationStage.d.ts +0 -10
- package/src/lib/models/EscalationType.d.ts +0 -5
- package/src/lib/models/File.d.ts +0 -7
- package/src/lib/models/FilterTypes.d.ts +0 -6
- package/src/lib/models/FlowableStatus.d.ts +0 -5
- package/src/lib/models/Form.d.ts +0 -13
- package/src/lib/models/FormEntity.d.ts +0 -13
- package/src/lib/models/FormFill.d.ts +0 -15
- package/src/lib/models/FormProperty.d.ts +0 -15
- package/src/lib/models/FormValues.d.ts +0 -14
- package/src/lib/models/MailConfig.d.ts +0 -12
- package/src/lib/models/MessageConfig.d.ts +0 -3
- package/src/lib/models/MessageMedium.d.ts +0 -4
- package/src/lib/models/OperationAction.d.ts +0 -14
- package/src/lib/models/PagedResult.d.ts +0 -5
- package/src/lib/models/PeriodMode.d.ts +0 -10
- package/src/lib/models/PermissionConfig.d.ts +0 -7
- package/src/lib/models/ReportSchedule.d.ts +0 -22
- package/src/lib/models/ReportType.d.ts +0 -5
- package/src/lib/models/Resource.d.ts +0 -20
- package/src/lib/models/ResponseKeyValue.d.ts +0 -5
- package/src/lib/models/SMSConfig.d.ts +0 -10
- package/src/lib/models/SearchDynamicWrapper.d.ts +0 -5
- package/src/lib/models/SearchOperator.d.ts +0 -4
- package/src/lib/models/SearchPropertySign.d.ts +0 -9
- package/src/lib/models/SearchPropertyValue.d.ts +0 -12
- package/src/lib/models/SearchPropertyValueType.d.ts +0 -9
- package/src/lib/models/Size.d.ts +0 -4
- package/src/lib/models/SortDirection.d.ts +0 -5
- package/src/lib/models/StageActorRule.d.ts +0 -6
- package/src/lib/models/SwimLane.d.ts +0 -13
- package/src/lib/models/Tag.d.ts +0 -6
- package/src/lib/models/Task.d.ts +0 -32
- package/src/lib/models/TaskAssignmentType.d.ts +0 -4
- package/src/lib/models/TaskNotification.d.ts +0 -14
- package/src/lib/models/TaskNotificationMessageType.d.ts +0 -4
- package/src/lib/models/TaskNotificationType.d.ts +0 -7
- package/src/lib/models/TaskStatus.d.ts +0 -7
- package/src/lib/models/Workflow.d.ts +0 -21
- package/src/lib/models/WorkflowAction.d.ts +0 -14
- package/src/lib/models/WorkflowOperation.d.ts +0 -6
- package/src/lib/models/WorkflowStage.d.ts +0 -26
- package/src/lib/models/actors.d.ts +0 -8
- package/src/lib/models/auth-mechanism.d.ts +0 -13
- package/src/lib/models/base.d.ts +0 -13
- package/src/lib/models/object-state.d.ts +0 -6
- package/src/lib/models/operation-type.d.ts +0 -5
- package/src/lib/models/paged.d.ts +0 -9
- package/src/lib/models/public-api.d.ts +0 -63
- package/src/lib/models/query-params.d.ts +0 -8
- package/src/lib/models/status.d.ts +0 -4
- package/src/lib/models/task-history.d.ts +0 -17
- package/src/lib/models/user-access-request-status.d.ts +0 -5
- package/src/lib/models/user.d.ts +0 -24
- package/src/lib/pipes/async-label.pipe.d.ts +0 -11
- package/src/lib/services/environment.service.d.ts +0 -23
- package/src/lib/services/http-web-request.service.d.ts +0 -23
- package/src/lib/services/label.service.d.ts +0 -15
- package/src/lib/services/public-api.d.ts +0 -4
- package/src/lib/services/util.service.d.ts +0 -20
- package/src/lib/shared/base-table-style.d.ts +0 -2
- package/src/lib/shared/components/base-data-view.component.d.ts +0 -41
- package/src/lib/shared/components/base-model-field.d.ts +0 -26
- package/src/lib/shared/models/DataViewConfig.d.ts +0 -11
- package/src/lib/shared/public-api.d.ts +0 -5
- package/src/lib/shared/shared.module.d.ts +0 -11
- /package/src/lib/base/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/actors/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/actors/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/designer/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/designer/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/expiration/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/expiration/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/file-render/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/file-render/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/file-upload/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/file-upload/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/flowable-status/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/form-control/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/form-control/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/form-group/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/form-group/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/form-response/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/form-response/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/form-timer/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/form-timer/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{form-viewer/index.d.ts → form-values/index.ts} +0 -0
- /package/src/lib/components/{forms/index.d.ts → form-viewer/index.ts} +0 -0
- /package/src/lib/components/form-viewer/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{journal/index.d.ts → forms/index.ts} +0 -0
- /package/src/lib/components/forms/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{my-queue/index.d.ts → journal/index.ts} +0 -0
- /package/src/lib/components/journal/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{operation-popup/index.d.ts → my-queue/index.ts} +0 -0
- /package/src/lib/components/my-queue/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{stage-details/index.d.ts → operation-popup/index.ts} +0 -0
- /package/src/lib/components/operation-popup/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{task-form/index.d.ts → stage-details/index.ts} +0 -0
- /package/src/lib/components/stage-details/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{task-history/index.d.ts → task-form/index.ts} +0 -0
- /package/src/lib/components/task-form/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{task-notification/index.d.ts → task-history/index.ts} +0 -0
- /package/src/lib/components/task-history/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{tasks/index.d.ts → task-notification/index.ts} +0 -0
- /package/src/lib/components/task-notification/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{wf/index.d.ts → tasks/index.ts} +0 -0
- /package/src/lib/components/tasks/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{workflow-designer/index.d.ts → wf/index.ts} +0 -0
- /package/src/lib/components/wf/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{workflows/index.d.ts → workflow/index.ts} +0 -0
- /package/src/lib/components/workflow/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{workflow-stage/index.d.ts → workflow-designer/index.ts} +0 -0
- /package/src/lib/components/workflow-designer/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/{workflow/index.d.ts → workflow-stage/index.ts} +0 -0
- /package/src/lib/components/workflow-stage/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/{models/index.d.ts → components/workflows/index.ts} +0 -0
- /package/src/lib/{pipes/index.d.ts → models/index.ts} +0 -0
- /package/src/lib/{services/index.d.ts → pipes/index.ts} +0 -0
- /package/src/lib/pipes/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/shared/{index.d.ts → index.ts} +0 -0
- /package/{styles → src/styles}/styles.css +0 -0
|
@@ -0,0 +1,810 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component,
|
|
4
|
+
Input,
|
|
5
|
+
OnInit,
|
|
6
|
+
QueryList,
|
|
7
|
+
ViewChild,
|
|
8
|
+
ViewChildren,
|
|
9
|
+
} from '@angular/core';
|
|
10
|
+
import { FormBuilder } from '@angular/forms';
|
|
11
|
+
import { debounceTime, Subject } from 'rxjs';
|
|
12
|
+
import {
|
|
13
|
+
CardData,
|
|
14
|
+
CardDataViewComponent,
|
|
15
|
+
ColumnDefinition,
|
|
16
|
+
DataFilterType,
|
|
17
|
+
DataTableComponent,
|
|
18
|
+
DataViewComponent,
|
|
19
|
+
DropdownLoadEvent,
|
|
20
|
+
IDataFilter,
|
|
21
|
+
VerbenPopUpComponent,
|
|
22
|
+
} from 'verben-ng-ui';
|
|
23
|
+
import {
|
|
24
|
+
ErrorResponse,
|
|
25
|
+
Form,
|
|
26
|
+
FormEntity,
|
|
27
|
+
ObjectState,
|
|
28
|
+
PagedResult,
|
|
29
|
+
PermissionConfig,
|
|
30
|
+
SearchOperator,
|
|
31
|
+
SearchPropertySign,
|
|
32
|
+
SearchPropertyValue,
|
|
33
|
+
SearchPropertyValueType,
|
|
34
|
+
SortDirection,
|
|
35
|
+
} from 'verben-workflow-ui/src/lib/models';
|
|
36
|
+
import {
|
|
37
|
+
EnvironmentService,
|
|
38
|
+
HttpWebRequestService,
|
|
39
|
+
UtilService,
|
|
40
|
+
} from 'verben-workflow-ui/src/lib/services';
|
|
41
|
+
import { baseStyle } from './base-table-style';
|
|
42
|
+
import { FormsService } from './forms.service';
|
|
43
|
+
|
|
44
|
+
enum FormPropertyName {
|
|
45
|
+
Name = 'Name',
|
|
46
|
+
CreatedAt = 'Created At',
|
|
47
|
+
Anonymous = 'Anonymous',
|
|
48
|
+
ExpiryDate = 'Expiry Date',
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
enum FormPropertyMap {
|
|
52
|
+
Name = 'Name',
|
|
53
|
+
CreatedAt = 'CreatedAt',
|
|
54
|
+
Anonymous = 'AllowAnonymous',
|
|
55
|
+
ExpiryDate = 'ExpiryDate',
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
enum FilterTypes {
|
|
59
|
+
Before = SearchPropertySign.LT,
|
|
60
|
+
On = SearchPropertySign.EQ,
|
|
61
|
+
After = SearchPropertySign.GT,
|
|
62
|
+
NEQ = SearchPropertySign.NEQ,
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@Component({
|
|
66
|
+
selector: 'lib-forms',
|
|
67
|
+
templateUrl: './forms.component.html',
|
|
68
|
+
styleUrl: './forms.component.css',
|
|
69
|
+
})
|
|
70
|
+
export class FormsComponent implements OnInit {
|
|
71
|
+
visibleColumnDef: ColumnDefinition<Form>[] = [];
|
|
72
|
+
styles = baseStyle;
|
|
73
|
+
data: Form[] = [];
|
|
74
|
+
cardData: CardData[] = [];
|
|
75
|
+
currentData: CardData | null = null;
|
|
76
|
+
@ViewChild('vdcv') cardDataView!: CardDataViewComponent;
|
|
77
|
+
@ViewChild('vdv') dataView!: DataViewComponent;
|
|
78
|
+
@ViewChild('dt') tableView!: DataTableComponent<Form>;
|
|
79
|
+
@ViewChildren('popup') popUps!: QueryList<VerbenPopUpComponent>;
|
|
80
|
+
@Input() pageSize: number = 20;
|
|
81
|
+
@Input() searchDebounceTime: number = 500;
|
|
82
|
+
@Input() permissionConfig: PermissionConfig | null = null;
|
|
83
|
+
pageState: PagedResult<Form> | null = null;
|
|
84
|
+
isOpen: boolean = false;
|
|
85
|
+
openDropdownId: string | null = null;
|
|
86
|
+
isGroupOpen: boolean = false;
|
|
87
|
+
openGroupDropdownId: string | null = null;
|
|
88
|
+
currentFilters: IDataFilter[] = [];
|
|
89
|
+
currentSorts: IDataFilter[] = [];
|
|
90
|
+
searchTerm$ = new Subject<string>();
|
|
91
|
+
groups: FormEntity[] = [];
|
|
92
|
+
visibleColumns: IDataFilter[] = [];
|
|
93
|
+
|
|
94
|
+
filterArray: IDataFilter[] = [
|
|
95
|
+
{
|
|
96
|
+
name: FormPropertyName.Name,
|
|
97
|
+
type: DataFilterType.String,
|
|
98
|
+
checked: false,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: FormPropertyName.CreatedAt,
|
|
102
|
+
type: DataFilterType.Date,
|
|
103
|
+
checked: false,
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: FormPropertyName.Anonymous,
|
|
107
|
+
type: DataFilterType.Bool,
|
|
108
|
+
checked: false,
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: FormPropertyName.ExpiryDate,
|
|
112
|
+
type: DataFilterType.Date,
|
|
113
|
+
checked: false,
|
|
114
|
+
},
|
|
115
|
+
];
|
|
116
|
+
|
|
117
|
+
sortOptions: IDataFilter[] = [
|
|
118
|
+
{
|
|
119
|
+
name: FormPropertyName.Name,
|
|
120
|
+
type: DataFilterType.String,
|
|
121
|
+
checked: false,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: FormPropertyName.CreatedAt,
|
|
125
|
+
type: DataFilterType.Date,
|
|
126
|
+
checked: false,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: FormPropertyName.Anonymous,
|
|
130
|
+
type: DataFilterType.Bool,
|
|
131
|
+
checked: false,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: FormPropertyName.ExpiryDate,
|
|
135
|
+
type: DataFilterType.Date,
|
|
136
|
+
checked: false,
|
|
137
|
+
},
|
|
138
|
+
];
|
|
139
|
+
|
|
140
|
+
private currentSearchTerm: string = '';
|
|
141
|
+
|
|
142
|
+
constructor(
|
|
143
|
+
private utilService: UtilService,
|
|
144
|
+
private server: HttpWebRequestService,
|
|
145
|
+
private cdr: ChangeDetectorRef,
|
|
146
|
+
private fb: FormBuilder,
|
|
147
|
+
private envSvc: EnvironmentService,
|
|
148
|
+
private formsSvc: FormsService,
|
|
149
|
+
) {
|
|
150
|
+
this.visibleColumnDef = formsSvc.formColumns;
|
|
151
|
+
this.visibleColumns = formsSvc.formColumns.map((col) => ({
|
|
152
|
+
checked: true,
|
|
153
|
+
name: typeof col.header === 'string' ? col.header : col.id,
|
|
154
|
+
type: DataFilterType.Bool,
|
|
155
|
+
}));
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
async ngOnInit(): Promise<void> {
|
|
159
|
+
this.getFormEntities().then((res) => {
|
|
160
|
+
if (res) {
|
|
161
|
+
this.groups = res;
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
const forms = await this.getAllForms();
|
|
165
|
+
if (forms) {
|
|
166
|
+
this.data = forms.map((x) => {
|
|
167
|
+
return {
|
|
168
|
+
...x,
|
|
169
|
+
Id: x.Code,
|
|
170
|
+
id: x.Code,
|
|
171
|
+
ExpiryDate: new Date(x.ExpiryDate.toString()),
|
|
172
|
+
Entities: x.Entities.map((y) => {
|
|
173
|
+
return {
|
|
174
|
+
...y,
|
|
175
|
+
DataState: ObjectState.Unchanged,
|
|
176
|
+
};
|
|
177
|
+
}),
|
|
178
|
+
};
|
|
179
|
+
});
|
|
180
|
+
this.setUpCardData();
|
|
181
|
+
}
|
|
182
|
+
this.searchTerm$
|
|
183
|
+
.pipe(debounceTime(this.searchDebounceTime)) // Adjust debounce time here (in ms)
|
|
184
|
+
.subscribe(async (searchTerm) => {
|
|
185
|
+
this.currentSearchTerm = searchTerm;
|
|
186
|
+
this.updateFiltersAndSorts(true);
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
async getFormEntities(): Promise<FormEntity[] | undefined> {
|
|
191
|
+
this.utilService.sendBI(true);
|
|
192
|
+
const res = await this.server.get(
|
|
193
|
+
`GetFormEntities/0/${this.pageSize}/CreatedAt/${SortDirection.Desc}`,
|
|
194
|
+
);
|
|
195
|
+
this.utilService.sendBI(false);
|
|
196
|
+
if (res instanceof ErrorResponse) {
|
|
197
|
+
return undefined;
|
|
198
|
+
} else {
|
|
199
|
+
var result = (res as PagedResult<FormEntity>).Result;
|
|
200
|
+
return result;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
async loadMoreFormEntities(event: DropdownLoadEvent): Promise<FormEntity[]> {
|
|
205
|
+
const res = await this.server.get(
|
|
206
|
+
`GetFormEntities/${event.loadTimes * this.pageSize}/${this.pageSize}/CreatedAt/${SortDirection.Desc}`,
|
|
207
|
+
);
|
|
208
|
+
if (res instanceof ErrorResponse) {
|
|
209
|
+
return [];
|
|
210
|
+
} else {
|
|
211
|
+
var result = (res as PagedResult<FormEntity>).Result;
|
|
212
|
+
return result;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
async searchFormEntities(
|
|
216
|
+
data: string,
|
|
217
|
+
event: DropdownLoadEvent,
|
|
218
|
+
): Promise<FormEntity[]> {
|
|
219
|
+
const res = await this.server.get(
|
|
220
|
+
`GetFormEntitiesWithParam/${data}/${
|
|
221
|
+
event.loadTimes * this.pageSize
|
|
222
|
+
}/${this.pageSize}`,
|
|
223
|
+
);
|
|
224
|
+
if (res instanceof ErrorResponse) {
|
|
225
|
+
return [];
|
|
226
|
+
} else {
|
|
227
|
+
var result = (res as PagedResult<FormEntity>).Result;
|
|
228
|
+
return result;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
async getAsyncLabel(value: any): Promise<string> {
|
|
233
|
+
return value ? value.Name : '';
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
async getAllForms(): Promise<Form[] | undefined> {
|
|
237
|
+
this.utilService.sendBI(true);
|
|
238
|
+
const res = await this.server.get(
|
|
239
|
+
`GetForms/0/${this.pageSize}/CreatedAt/${SortDirection.Desc}`,
|
|
240
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
241
|
+
);
|
|
242
|
+
this.utilService.sendBI(false);
|
|
243
|
+
if (res instanceof ErrorResponse) {
|
|
244
|
+
return undefined;
|
|
245
|
+
} else {
|
|
246
|
+
this.pageState = res as PagedResult<Form>;
|
|
247
|
+
var result = (res as PagedResult<Form>).Result;
|
|
248
|
+
return result;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
async loadMore() {
|
|
253
|
+
if (!this.pageState) {
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
this.utilService.sendBI(true);
|
|
257
|
+
const res =
|
|
258
|
+
this.currentFilters.length > 0 ||
|
|
259
|
+
this.currentSorts.length > 0 ||
|
|
260
|
+
this.currentSearchTerm.trim().length > 0
|
|
261
|
+
? await this.loadMoreFiltersAndSorts()
|
|
262
|
+
: await this.server.get(
|
|
263
|
+
`GetForms/${this.pageState.Skip}/${this.pageSize}/CreatedAt/${SortDirection.Desc}`,
|
|
264
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
265
|
+
);
|
|
266
|
+
this.utilService.sendBI(false);
|
|
267
|
+
if (res instanceof ErrorResponse) {
|
|
268
|
+
return;
|
|
269
|
+
} else {
|
|
270
|
+
this.pageState = res as PagedResult<Form>;
|
|
271
|
+
var result = (res as PagedResult<Form>).Result;
|
|
272
|
+
this.data = this.data.concat(
|
|
273
|
+
result.map((x) => {
|
|
274
|
+
return {
|
|
275
|
+
...x,
|
|
276
|
+
id: x.Code,
|
|
277
|
+
Id: x.Code,
|
|
278
|
+
};
|
|
279
|
+
}),
|
|
280
|
+
);
|
|
281
|
+
this.setUpCardDataExtra(result);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
setUpCardData() {
|
|
286
|
+
const cardData: CardData[] = this.data.map((x) => {
|
|
287
|
+
return {
|
|
288
|
+
selected: false,
|
|
289
|
+
title: x.Name,
|
|
290
|
+
data: x,
|
|
291
|
+
body: [],
|
|
292
|
+
children: [],
|
|
293
|
+
};
|
|
294
|
+
});
|
|
295
|
+
this.cardData = cardData;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
setUpCardDataExtra(baseData: Form[]) {
|
|
299
|
+
const cardData: CardData[] = baseData.map((x) => {
|
|
300
|
+
return {
|
|
301
|
+
selected: false,
|
|
302
|
+
title: x.Name,
|
|
303
|
+
data: x,
|
|
304
|
+
body: [],
|
|
305
|
+
children: [],
|
|
306
|
+
};
|
|
307
|
+
});
|
|
308
|
+
this.cardData = this.cardData.concat(cardData);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
goToCardView(data: Form) {
|
|
312
|
+
const item = this.cardData.find((x) => x.data == data);
|
|
313
|
+
if (item) {
|
|
314
|
+
this.formCardClicked(item, true);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
goToTableView() {
|
|
319
|
+
if (!this.currentData) {
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
this.dataView.toggleView();
|
|
323
|
+
const id = this.currentData.data ? this.currentData.data.Id : '';
|
|
324
|
+
if (id.trim().length > 0 && !this.tableView.isRowEditing(id)) {
|
|
325
|
+
this.tableView.toggleRowEdit(id);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
viewResponses(code: string) {
|
|
330
|
+
if (code.trim().length == 0) {
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
// this.onViewProcessClicked.emit(code);
|
|
334
|
+
this.closePopUp();
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
formCardClicked(item: CardData, toggleView: boolean = false) {
|
|
338
|
+
this.currentData = this.cardDataView.onItemClick(item);
|
|
339
|
+
if (toggleView) {
|
|
340
|
+
this.dataView.toggleView();
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
async saveForm() {
|
|
345
|
+
if (this.currentData) {
|
|
346
|
+
var form: Form = this.currentData.data as Form;
|
|
347
|
+
|
|
348
|
+
if (this.currentData.data.Name.trim().length == 0) {
|
|
349
|
+
this.utilService.showInfo('Name cannot be empty');
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
form.DataState =
|
|
353
|
+
form.DataState == ObjectState.New
|
|
354
|
+
? ObjectState.New
|
|
355
|
+
: ObjectState.Changed;
|
|
356
|
+
form.Id = '';
|
|
357
|
+
this.utilService.sendBI(true);
|
|
358
|
+
const res = await this.server.post(
|
|
359
|
+
`SaveForms`,
|
|
360
|
+
[form],
|
|
361
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
362
|
+
);
|
|
363
|
+
this.utilService.sendBI(false);
|
|
364
|
+
if (res instanceof ErrorResponse) {
|
|
365
|
+
} else {
|
|
366
|
+
this.utilService.showSuccess('Form saved successfully');
|
|
367
|
+
const result = res as Form[];
|
|
368
|
+
if (result.length > 0) {
|
|
369
|
+
var userResult = result[0];
|
|
370
|
+
const itemIndex = this.data.findIndex(
|
|
371
|
+
(x) => x == this.currentData?.data,
|
|
372
|
+
);
|
|
373
|
+
if (itemIndex > -1) {
|
|
374
|
+
this.data[itemIndex].Code = userResult.Code;
|
|
375
|
+
this.data[itemIndex].Id = userResult.Code;
|
|
376
|
+
this.data[itemIndex].id = userResult.Code;
|
|
377
|
+
this.data[itemIndex].DataState = userResult.DataState;
|
|
378
|
+
this.data[itemIndex].TenantId = userResult.TenantId;
|
|
379
|
+
this.data[itemIndex].ServiceName = userResult.ServiceName;
|
|
380
|
+
this.data = this.data.map((x) => x);
|
|
381
|
+
this.cacheItem(this.data[itemIndex]);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
async tableSaveForm(form: Form, callBack: () => any) {
|
|
388
|
+
if (form.Name.trim().length == 0) {
|
|
389
|
+
this.utilService.showInfo('Name cannot be empty');
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
392
|
+
form.DataState =
|
|
393
|
+
form.DataState == ObjectState.New ? ObjectState.New : ObjectState.Changed;
|
|
394
|
+
form.Id = '';
|
|
395
|
+
this.utilService.sendBI(true);
|
|
396
|
+
const res = await this.server.post(
|
|
397
|
+
`SaveForms`,
|
|
398
|
+
[form],
|
|
399
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
400
|
+
);
|
|
401
|
+
this.utilService.sendBI(false);
|
|
402
|
+
if (res instanceof ErrorResponse) {
|
|
403
|
+
} else {
|
|
404
|
+
this.utilService.showSuccess('Form saved successfully');
|
|
405
|
+
const result = res as Form[];
|
|
406
|
+
if (result.length > 0) {
|
|
407
|
+
var userResult = result[0];
|
|
408
|
+
const itemIndex = this.data.findIndex((x) => x == form);
|
|
409
|
+
if (itemIndex > -1) {
|
|
410
|
+
this.data[itemIndex].Code = userResult.Code;
|
|
411
|
+
this.data[itemIndex].Id = userResult.Code;
|
|
412
|
+
this.data[itemIndex].id = userResult.Code;
|
|
413
|
+
this.data[itemIndex].DataState = userResult.DataState;
|
|
414
|
+
this.data[itemIndex].TenantId = userResult.TenantId;
|
|
415
|
+
this.data[itemIndex].ServiceName = userResult.ServiceName;
|
|
416
|
+
this.data = this.data.map((x) => x);
|
|
417
|
+
this.cacheItem(this.data[itemIndex]);
|
|
418
|
+
}
|
|
419
|
+
callBack();
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
updateTable() {
|
|
425
|
+
this.data = this.data.map((x) => x);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
updateItem(value: any, key: string): any {
|
|
429
|
+
return {
|
|
430
|
+
[key]: value,
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
closePopUp() {
|
|
435
|
+
this.openDropdownId = null;
|
|
436
|
+
this.popUps.forEach((popUp) => {
|
|
437
|
+
if (popUp.dropdownOpen) {
|
|
438
|
+
popUp.toggleDropdown();
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
closeGroupPopUp() {
|
|
443
|
+
this.openGroupDropdownId = null;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
onViewChange(isGridView: boolean): void {}
|
|
447
|
+
|
|
448
|
+
onStateChange(event: { key: string; value: boolean }): void {
|
|
449
|
+
switch (event.key) {
|
|
450
|
+
case 'create':
|
|
451
|
+
var newForm: Form = {
|
|
452
|
+
Name: '',
|
|
453
|
+
TenantId: '',
|
|
454
|
+
ServiceName: '',
|
|
455
|
+
id: (this.cardData.length + 1).toString(),
|
|
456
|
+
Id: (this.cardData.length + 1).toString(),
|
|
457
|
+
CreatedAt: new Date(),
|
|
458
|
+
UpdatedAt: new Date(),
|
|
459
|
+
DataState: ObjectState.New,
|
|
460
|
+
Code: '',
|
|
461
|
+
Entities: [],
|
|
462
|
+
IsValid: false,
|
|
463
|
+
AllowAnonymous: false,
|
|
464
|
+
Workflow: '',
|
|
465
|
+
URL: '',
|
|
466
|
+
Duration: 0,
|
|
467
|
+
ExpiryDate: new Date(),
|
|
468
|
+
FormValuesModified: false,
|
|
469
|
+
};
|
|
470
|
+
const cardData: CardData = {
|
|
471
|
+
selected: false,
|
|
472
|
+
title: newForm.Name,
|
|
473
|
+
data: newForm,
|
|
474
|
+
body: [],
|
|
475
|
+
children: [],
|
|
476
|
+
};
|
|
477
|
+
this.data = [newForm, ...this.data];
|
|
478
|
+
this.cardData.unshift(cardData);
|
|
479
|
+
this.formCardClicked(cardData);
|
|
480
|
+
this.dataView.isTableView = false;
|
|
481
|
+
break;
|
|
482
|
+
default:
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
showTableView: boolean = false;
|
|
488
|
+
onSelectionChange(selectedRows: Form[]) {}
|
|
489
|
+
|
|
490
|
+
onColumnsUpdated(updatedColumns: IDataFilter[]) {
|
|
491
|
+
const updatedColumnDef: ColumnDefinition<Form>[] = [];
|
|
492
|
+
updatedColumns.forEach((col) => {
|
|
493
|
+
const matchingCol = this.formsSvc.formColumns.find(
|
|
494
|
+
(column) => column.header === col.name || column.id === col.name,
|
|
495
|
+
);
|
|
496
|
+
if (matchingCol) {
|
|
497
|
+
updatedColumnDef.push(matchingCol);
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
|
|
501
|
+
this.visibleColumnDef = [...updatedColumnDef];
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
exportFiltersAndSorts = async (pageState: {
|
|
505
|
+
skip: number;
|
|
506
|
+
limit: number;
|
|
507
|
+
}) => {
|
|
508
|
+
var payload: SearchPropertyValue[] = this.currentFilters.map((x) => {
|
|
509
|
+
return {
|
|
510
|
+
PropertyName:
|
|
511
|
+
FormPropertyMap[
|
|
512
|
+
x.name.split(' ').join('') as keyof typeof FormPropertyMap
|
|
513
|
+
],
|
|
514
|
+
EntityValue: x.value,
|
|
515
|
+
Operator: SearchOperator.And,
|
|
516
|
+
Sign:
|
|
517
|
+
x.condition && Object.keys(FilterTypes).includes(x.condition)
|
|
518
|
+
? (FilterTypes[
|
|
519
|
+
x.condition as keyof typeof FilterTypes
|
|
520
|
+
] as unknown as SearchPropertySign)
|
|
521
|
+
: SearchPropertySign.EQ,
|
|
522
|
+
Type:
|
|
523
|
+
x.name == FormPropertyName.CreatedAt ||
|
|
524
|
+
x.name == FormPropertyName.ExpiryDate
|
|
525
|
+
? SearchPropertyValueType.Date
|
|
526
|
+
: x.name == FormPropertyName.Anonymous
|
|
527
|
+
? SearchPropertyValueType.Bool
|
|
528
|
+
: SearchPropertyValueType.String,
|
|
529
|
+
};
|
|
530
|
+
});
|
|
531
|
+
// payload.push({
|
|
532
|
+
// PropertyName: 'APIKey',
|
|
533
|
+
// EntityValue: this.envSvc.environment.APIKey,
|
|
534
|
+
// Operator: SearchOperator.And,
|
|
535
|
+
// Sign: SearchPropertySign.EQ,
|
|
536
|
+
// });
|
|
537
|
+
for (let sort of this.currentSorts) {
|
|
538
|
+
payload.push({
|
|
539
|
+
PropertyName:
|
|
540
|
+
FormPropertyMap[
|
|
541
|
+
sort.name.split(' ').join('') as keyof typeof FormPropertyMap
|
|
542
|
+
],
|
|
543
|
+
EntityValue: '',
|
|
544
|
+
Operator: SearchOperator.And,
|
|
545
|
+
Sign: SearchPropertySign.EQ,
|
|
546
|
+
Sort:
|
|
547
|
+
sort.value.toLowerCase() == SortDirection.Asc.toLowerCase()
|
|
548
|
+
? SortDirection.Asc
|
|
549
|
+
: sort.value.toLowerCase() == SortDirection.Desc.toLowerCase()
|
|
550
|
+
? SortDirection.Desc
|
|
551
|
+
: SortDirection.None,
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
const searchTermExists = this.currentSearchTerm.trim().length > 0;
|
|
555
|
+
this.utilService.sendBI(true);
|
|
556
|
+
const res = searchTermExists
|
|
557
|
+
? await this.server.get(
|
|
558
|
+
`GetFormsWithParam/${this.currentSearchTerm.trim()}/${
|
|
559
|
+
pageState.skip
|
|
560
|
+
}/${pageState.limit}`,
|
|
561
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
562
|
+
)
|
|
563
|
+
: payload.length == 0
|
|
564
|
+
? await this.server.get(
|
|
565
|
+
`GetForms/${pageState.skip}/${pageState.limit}`,
|
|
566
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
567
|
+
)
|
|
568
|
+
: await this.server.post(
|
|
569
|
+
`SearchForms/${pageState.skip}/${pageState.limit}`,
|
|
570
|
+
payload,
|
|
571
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
572
|
+
);
|
|
573
|
+
this.utilService.sendBI(false);
|
|
574
|
+
if (res instanceof ErrorResponse) {
|
|
575
|
+
return [];
|
|
576
|
+
} else {
|
|
577
|
+
var result = (res as PagedResult<Form>).Result;
|
|
578
|
+
return result;
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
|
|
582
|
+
async updateFiltersAndSorts(isSearch: boolean = false) {
|
|
583
|
+
if (!isSearch) {
|
|
584
|
+
this.dataView.onClearSearch();
|
|
585
|
+
this.currentSearchTerm = '';
|
|
586
|
+
this.cdr.detectChanges();
|
|
587
|
+
const clickEvent = new MouseEvent('click', {
|
|
588
|
+
bubbles: true,
|
|
589
|
+
cancelable: true,
|
|
590
|
+
view: window,
|
|
591
|
+
});
|
|
592
|
+
document.dispatchEvent(clickEvent);
|
|
593
|
+
}
|
|
594
|
+
var payload: SearchPropertyValue[] = this.currentFilters.map((x) => {
|
|
595
|
+
return {
|
|
596
|
+
PropertyName:
|
|
597
|
+
FormPropertyMap[
|
|
598
|
+
x.name.split(' ').join('') as keyof typeof FormPropertyMap
|
|
599
|
+
],
|
|
600
|
+
EntityValue: x.value,
|
|
601
|
+
Operator: SearchOperator.And,
|
|
602
|
+
Sign:
|
|
603
|
+
x.condition && Object.keys(FilterTypes).includes(x.condition)
|
|
604
|
+
? (FilterTypes[
|
|
605
|
+
x.condition as keyof typeof FilterTypes
|
|
606
|
+
] as unknown as SearchPropertySign)
|
|
607
|
+
: SearchPropertySign.EQ,
|
|
608
|
+
Type:
|
|
609
|
+
x.name == FormPropertyName.CreatedAt ||
|
|
610
|
+
x.name == FormPropertyName.ExpiryDate
|
|
611
|
+
? SearchPropertyValueType.Date
|
|
612
|
+
: x.name == FormPropertyName.Anonymous
|
|
613
|
+
? SearchPropertyValueType.Bool
|
|
614
|
+
: SearchPropertyValueType.String,
|
|
615
|
+
};
|
|
616
|
+
});
|
|
617
|
+
// payload.push({
|
|
618
|
+
// PropertyName: 'APIKey',
|
|
619
|
+
// EntityValue: this.envSvc.environment.APIKey,
|
|
620
|
+
// Operator: SearchOperator.And,
|
|
621
|
+
// Sign: SearchPropertySign.EQ,
|
|
622
|
+
// });
|
|
623
|
+
for (let sort of this.currentSorts) {
|
|
624
|
+
payload.push({
|
|
625
|
+
PropertyName:
|
|
626
|
+
FormPropertyMap[
|
|
627
|
+
sort.name.split(' ').join('') as keyof typeof FormPropertyMap
|
|
628
|
+
],
|
|
629
|
+
EntityValue: '',
|
|
630
|
+
Operator: SearchOperator.And,
|
|
631
|
+
Sign: SearchPropertySign.EQ,
|
|
632
|
+
Sort:
|
|
633
|
+
sort.value.toLowerCase() == SortDirection.Asc.toLowerCase()
|
|
634
|
+
? SortDirection.Asc
|
|
635
|
+
: sort.value.toLowerCase() == SortDirection.Desc.toLowerCase()
|
|
636
|
+
? SortDirection.Desc
|
|
637
|
+
: SortDirection.None,
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
const searchTermExists = this.currentSearchTerm.trim().length > 0;
|
|
641
|
+
this.utilService.sendBI(true);
|
|
642
|
+
const res = searchTermExists
|
|
643
|
+
? await this.server.get(
|
|
644
|
+
`GetFormsWithParam/${this.currentSearchTerm.trim()}/0/${
|
|
645
|
+
this.pageSize
|
|
646
|
+
}`,
|
|
647
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
648
|
+
)
|
|
649
|
+
: payload.length == 0
|
|
650
|
+
? await this.server.get(
|
|
651
|
+
`GetForms/0/${this.pageSize}`,
|
|
652
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
653
|
+
)
|
|
654
|
+
: await this.server.post(
|
|
655
|
+
`SearchForms/0/${this.pageSize}`,
|
|
656
|
+
payload,
|
|
657
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
658
|
+
);
|
|
659
|
+
this.utilService.sendBI(false);
|
|
660
|
+
if (res instanceof ErrorResponse) {
|
|
661
|
+
this.currentFilters = [];
|
|
662
|
+
this.currentSorts = [];
|
|
663
|
+
return undefined;
|
|
664
|
+
} else {
|
|
665
|
+
this.cardDataView.clearData();
|
|
666
|
+
this.currentData = null;
|
|
667
|
+
this.pageState = res as PagedResult<Form>;
|
|
668
|
+
var result = (res as PagedResult<Form>).Result;
|
|
669
|
+
this.data = result.map((x) => {
|
|
670
|
+
return {
|
|
671
|
+
...x,
|
|
672
|
+
Id: x.Code,
|
|
673
|
+
id: x.Code,
|
|
674
|
+
};
|
|
675
|
+
});
|
|
676
|
+
this.setUpCardData();
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
async loadMoreFiltersAndSorts(): Promise<PagedResult<Form> | undefined> {
|
|
680
|
+
if (!this.pageState) {
|
|
681
|
+
return;
|
|
682
|
+
}
|
|
683
|
+
var payload: SearchPropertyValue[] = this.currentFilters.map((x) => {
|
|
684
|
+
return {
|
|
685
|
+
PropertyName:
|
|
686
|
+
FormPropertyMap[
|
|
687
|
+
x.name.split(' ').join('') as keyof typeof FormPropertyMap
|
|
688
|
+
],
|
|
689
|
+
EntityValue: x.value,
|
|
690
|
+
Operator: SearchOperator.And,
|
|
691
|
+
Sign:
|
|
692
|
+
x.condition && Object.keys(FilterTypes).includes(x.condition)
|
|
693
|
+
? (FilterTypes[
|
|
694
|
+
x.condition as keyof typeof FilterTypes
|
|
695
|
+
] as unknown as SearchPropertySign)
|
|
696
|
+
: SearchPropertySign.EQ,
|
|
697
|
+
Type:
|
|
698
|
+
x.name == FormPropertyName.CreatedAt ||
|
|
699
|
+
x.name == FormPropertyName.ExpiryDate
|
|
700
|
+
? SearchPropertyValueType.Date
|
|
701
|
+
: x.name == FormPropertyName.Anonymous
|
|
702
|
+
? SearchPropertyValueType.Bool
|
|
703
|
+
: SearchPropertyValueType.String,
|
|
704
|
+
};
|
|
705
|
+
});
|
|
706
|
+
for (let sort of this.currentSorts) {
|
|
707
|
+
payload.push({
|
|
708
|
+
PropertyName:
|
|
709
|
+
FormPropertyMap[
|
|
710
|
+
sort.name.split(' ').join('') as keyof typeof FormPropertyMap
|
|
711
|
+
],
|
|
712
|
+
EntityValue: '',
|
|
713
|
+
Operator: SearchOperator.And,
|
|
714
|
+
Sign: SearchPropertySign.EQ,
|
|
715
|
+
Sort:
|
|
716
|
+
sort.value.toLowerCase() == SortDirection.Asc.toLowerCase()
|
|
717
|
+
? SortDirection.Asc
|
|
718
|
+
: sort.value.toLowerCase() == SortDirection.Desc.toLowerCase()
|
|
719
|
+
? SortDirection.Desc
|
|
720
|
+
: SortDirection.None,
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
const searchTermExists = this.currentSearchTerm.trim().length > 0;
|
|
724
|
+
this.utilService.sendBI(true);
|
|
725
|
+
const res = searchTermExists
|
|
726
|
+
? await this.server.get(
|
|
727
|
+
`GetFormsWithParam/${this.currentSearchTerm.trim()}/${
|
|
728
|
+
this.pageState.Skip
|
|
729
|
+
}/${this.pageSize}`,
|
|
730
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
731
|
+
)
|
|
732
|
+
: payload.length == 0
|
|
733
|
+
? await this.server.get(
|
|
734
|
+
`GetForms/${this.pageState.Skip}/${this.pageSize}`,
|
|
735
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
736
|
+
)
|
|
737
|
+
: await this.server.post(
|
|
738
|
+
`SearchForms/${this.pageState.Skip}/${this.pageSize}`,
|
|
739
|
+
payload,
|
|
740
|
+
this.envSvc.environment.WorkFlowAPI,
|
|
741
|
+
);
|
|
742
|
+
this.utilService.sendBI(false);
|
|
743
|
+
if (res instanceof ErrorResponse) {
|
|
744
|
+
return undefined;
|
|
745
|
+
} else {
|
|
746
|
+
var result = res as PagedResult<Form>;
|
|
747
|
+
return result;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
onFilterUpdated(updatedFilters: IDataFilter[] | string) {
|
|
752
|
+
// Ensure updatedFilters is an array
|
|
753
|
+
if (Array.isArray(updatedFilters)) {
|
|
754
|
+
this.currentFilters = updatedFilters;
|
|
755
|
+
this.updateFiltersAndSorts();
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
onSortUpdated(updatedSorts: IDataFilter[]) {
|
|
759
|
+
this.currentSorts = updatedSorts;
|
|
760
|
+
this.updateFiltersAndSorts();
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
handleSearch(event: { key: string; value: string }) {
|
|
764
|
+
this.searchTerm$.next(event.value);
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
handleExport(exportedData: Partial<any>[]) {
|
|
768
|
+
// console.log('Exported data:', exportedData);
|
|
769
|
+
this.downloadCSV(exportedData);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
private downloadCSV(data: Partial<any>[]) {
|
|
773
|
+
const headers = Object.keys(data[0]);
|
|
774
|
+
const csvContent = [
|
|
775
|
+
headers.join(','),
|
|
776
|
+
...data.map((row) => headers.map((header) => row[header]).join(',')),
|
|
777
|
+
].join('\n');
|
|
778
|
+
|
|
779
|
+
const blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });
|
|
780
|
+
const link = document.createElement('a');
|
|
781
|
+
if (link.download !== undefined) {
|
|
782
|
+
const url = URL.createObjectURL(blob);
|
|
783
|
+
link.setAttribute('href', url);
|
|
784
|
+
link.setAttribute('download', 'export.csv');
|
|
785
|
+
link.style.visibility = 'hidden';
|
|
786
|
+
document.body.appendChild(link);
|
|
787
|
+
link.click();
|
|
788
|
+
document.body.removeChild(link);
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
tableCache = new Map<string, Form>();
|
|
793
|
+
|
|
794
|
+
cacheItem(item: Form) {
|
|
795
|
+
const cacheKey = item.Id;
|
|
796
|
+
this.tableCache.set(cacheKey, JSON.parse(JSON.stringify(item)));
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
restoreCache(item: Form) {
|
|
800
|
+
const cacheKey = item.Id;
|
|
801
|
+
const itemCache = this.tableCache.get(cacheKey);
|
|
802
|
+
if (itemCache) {
|
|
803
|
+
item.Name = itemCache.Name;
|
|
804
|
+
item.Entities = itemCache.Entities;
|
|
805
|
+
item.ExpiryDate = itemCache.ExpiryDate;
|
|
806
|
+
item.AllowAnonymous = itemCache.AllowAnonymous;
|
|
807
|
+
}
|
|
808
|
+
this.tableCache.delete(cacheKey);
|
|
809
|
+
}
|
|
810
|
+
}
|