verben-workflow-ui 0.5.91 → 0.5.93
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 +8 -193
- 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 +132 -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 +350 -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 +447 -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 +254 -0
- package/src/lib/components/form-control/form-control.component.spec.ts +23 -0
- package/src/lib/components/form-control/form-control.component.ts +169 -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 +791 -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 +723 -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-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 +27 -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 +162 -0
- package/src/lib/components/my-queue/tasks.form.component.ts +179 -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 +416 -0
- package/src/lib/components/operation-popup/operation-popup.service.ts +120 -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 +145 -0
- package/src/lib/components/task-history/task-history.component.spec.ts +23 -0
- package/src/lib/components/task-history/task-history.component.ts +232 -0
- package/src/lib/components/task-history/task-history.module.ts +11 -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 +770 -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 +211 -0
- package/src/lib/components/tasks/tasks.facade.ts +482 -0
- package/src/lib/components/tasks/tasks.form.component.html +171 -0
- package/src/lib/components/tasks/tasks.form.component.ts +172 -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 +23 -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 +56 -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 +142 -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 +1629 -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 +9 -0
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.html +94 -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 +273 -0
- package/src/lib/components/workflow-designer/ng-package.json +6 -0
- package/src/lib/components/workflow-designer/services/connection.service.ts +324 -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 +316 -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 +151 -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 +156 -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 +553 -0
- package/src/lib/components/workflow-designer/workflow-designer.models.ts +114 -0
- package/src/lib/components/workflow-designer/workflow-designer.module.ts +88 -0
- package/src/lib/components/workflow-designer/workflow-designer.state.ts +1104 -0
- package/src/lib/components/workflow-designer/workflow-designer.types.ts +140 -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 +349 -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/DataType.ts +25 -0
- package/src/lib/models/EAVEntity.ts +5 -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/FormValues.ts +16 -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/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 +32 -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 +6 -0
- package/src/lib/models/TaskStatus.ts +7 -0
- package/src/lib/models/Workflow.ts +22 -0
- package/src/lib/models/WorkflowAction.ts +14 -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/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/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 +56 -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 -266
- 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 -323
- 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 -155
- 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 -46
- 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 -167
- 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 -338
- package/esm2022/src/lib/components/operation-popup/operation-popup.service.mjs +0 -71
- package/esm2022/src/lib/components/operation-popup/operation-popup.state.mjs +0 -44
- package/esm2022/src/lib/components/operation-popup/public-api.mjs +0 -2
- 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 -217
- package/esm2022/src/lib/components/task-history/task-history.module.mjs +0 -20
- 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 -193
- package/esm2022/src/lib/components/tasks/tasks.facade.mjs +0 -372
- package/esm2022/src/lib/components/tasks/tasks.form.component.mjs +0 -157
- 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 -125
- 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 -1265
- 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 -242
- 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 -237
- 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 -278
- 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 -138
- 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 -126
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.state.mjs +0 -922
- 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 -328
- 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 -8
- 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 -73
- 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 -3887
- 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 -232
- 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 -1317
- 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 -827
- 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 -269
- 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 -1041
- 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 -5353
- 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 -412
- 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 -255
- 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 -320
- 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 -103
- 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 -38
- 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 -43
- 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 -35
- package/src/lib/components/task-history/task-history.module.d.ts +0 -10
- 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 -46
- 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 -129
- 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 -30
- 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 -6
- 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 -13
- 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/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 -21
- 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 → index.ts} +0 -0
- /package/src/lib/components/form-viewer/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/forms/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/forms/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/journal/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/journal/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/my-queue/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/my-queue/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/operation-popup/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/operation-popup/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/stage-details/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/stage-details/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/task-form/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/task-form/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/task-history/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/task-history/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/task-notification/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/task-notification/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/tasks/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/tasks/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/wf/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/wf/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/workflow/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/workflow/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/workflow-designer/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/workflow-designer/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/workflow-stage/{index.d.ts → index.ts} +0 -0
- /package/src/lib/components/workflow-stage/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/components/workflows/{index.d.ts → index.ts} +0 -0
- /package/src/lib/models/{index.d.ts → index.ts} +0 -0
- /package/src/lib/models/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/pipes/{index.d.ts → index.ts} +0 -0
- /package/src/lib/pipes/{public-api.d.ts → public-api.ts} +0 -0
- /package/src/lib/services/{index.d.ts → index.ts} +0 -0
- /package/src/lib/shared/{index.d.ts → index.ts} +0 -0
- /package/{styles → src/styles}/styles.css +0 -0
|
@@ -1,1055 +0,0 @@
|
|
|
1
|
-
import { SearchPropertyValueType, SortDirection, SearchOperator, SearchPropertySign, ErrorResponse, ObjectState } from 'verben-workflow-ui/src/lib/models';
|
|
2
|
-
export { SearchOperator, SearchPropertySign, SearchPropertyValueType, SortDirection } from 'verben-workflow-ui/src/lib/models';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { signal, Injectable } from '@angular/core';
|
|
5
|
-
import { BehaviorSubject, lastValueFrom, Subject, debounce, timer, distinctUntilChanged, takeUntil } from 'rxjs';
|
|
6
|
-
import * as i1 from 'verben-workflow-ui/src/lib/services';
|
|
7
|
-
import { DataFilterType, SortDirection as SortDirection$1 } from 'verben-ng-ui';
|
|
8
|
-
|
|
9
|
-
// Re-export the shared API payload models so base-page consumers can import
|
|
10
|
-
// them from a single place without reaching into the models entry point.
|
|
11
|
-
//
|
|
12
|
-
// Values and types are exported separately: `isolatedModules` is on, so
|
|
13
|
-
// re-exporting a type alongside values in one statement fails with TS1205.
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Extract property name from column definition.
|
|
17
|
-
* Only columns with accessorKey can be used for filter/sort — a column defined
|
|
18
|
-
* with accessorFn alone (e.g. the actors "tags" column) has no server-side
|
|
19
|
-
* property to filter or sort on.
|
|
20
|
-
*/
|
|
21
|
-
function getPropertyName(column) {
|
|
22
|
-
if (!column.accessorKey) {
|
|
23
|
-
throw new Error(`Column '${column.id}' must have accessorKey for filter/sort operations`);
|
|
24
|
-
}
|
|
25
|
-
return String(column.accessorKey);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Infer API property type from column definition.
|
|
29
|
-
* Uses basic heuristics based on the accessor key name.
|
|
30
|
-
*/
|
|
31
|
-
function inferPropertyType(column) {
|
|
32
|
-
if (!column.accessorKey) {
|
|
33
|
-
return SearchPropertyValueType.String;
|
|
34
|
-
}
|
|
35
|
-
const propertyName = String(column.accessorKey).toLowerCase();
|
|
36
|
-
// Date detection. Includes the common audit fields (CreatedAt, UpdatedAt,
|
|
37
|
-
// ModifiedAt, DeletedAt) whose names contain neither "date" nor "time".
|
|
38
|
-
if (propertyName.includes('date') ||
|
|
39
|
-
propertyName.includes('time') ||
|
|
40
|
-
/^(created|updated|modified|deleted)/.test(propertyName)) {
|
|
41
|
-
return SearchPropertyValueType.Date;
|
|
42
|
-
}
|
|
43
|
-
if (propertyName.startsWith('is') || propertyName.startsWith('has')) {
|
|
44
|
-
return SearchPropertyValueType.Bool;
|
|
45
|
-
}
|
|
46
|
-
if (propertyName.includes('count') ||
|
|
47
|
-
propertyName.includes('amount') ||
|
|
48
|
-
propertyName.includes('price') ||
|
|
49
|
-
propertyName.includes('total')) {
|
|
50
|
-
return SearchPropertyValueType.Decimal;
|
|
51
|
-
}
|
|
52
|
-
return SearchPropertyValueType.String;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Find a column by its id.
|
|
56
|
-
*/
|
|
57
|
-
function findColumn(columns, columnId) {
|
|
58
|
-
return columns.find((col) => col.id === columnId);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Columns that can take part in filter/sort — i.e. those backed by a real
|
|
62
|
-
* property on the entity. Use this to feed the filter and sort builders so a
|
|
63
|
-
* display-only column never produces a payload the API cannot honour.
|
|
64
|
-
*/
|
|
65
|
-
function filterableColumns(columns) {
|
|
66
|
-
return columns.filter((col) => !!col.accessorKey);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Abstract state management for base data pages.
|
|
71
|
-
* Tracks items, loading state, query params, filters, sorts, search, and
|
|
72
|
-
* visible columns. Card data is held in signals for cheap change detection.
|
|
73
|
-
*/
|
|
74
|
-
class BaseDataPageState {
|
|
75
|
-
updating$ = new BehaviorSubject(false);
|
|
76
|
-
items$ = new BehaviorSubject([]);
|
|
77
|
-
totalCount$ = new BehaviorSubject(0);
|
|
78
|
-
queryParams$ = new BehaviorSubject({
|
|
79
|
-
skip: 0,
|
|
80
|
-
limit: 20,
|
|
81
|
-
sortOrder: SortDirection.Desc,
|
|
82
|
-
});
|
|
83
|
-
searchTerm$ = new BehaviorSubject('');
|
|
84
|
-
filters$ = new BehaviorSubject([]);
|
|
85
|
-
sorts$ = new BehaviorSubject([]);
|
|
86
|
-
visibleColumns$ = new BehaviorSubject([]);
|
|
87
|
-
// Last table/card view (true = table, false = card). Persisted per page.
|
|
88
|
-
isTableView$ = new BehaviorSubject(false);
|
|
89
|
-
cardData = signal([]);
|
|
90
|
-
currentCardData = signal(null);
|
|
91
|
-
cardDataMapper;
|
|
92
|
-
/**
|
|
93
|
-
* Stable identity for a record. `Code` comes first: it is what every page in
|
|
94
|
-
* this library matches on, and what the backend assigns on persist. `Id` is
|
|
95
|
-
* frequently the empty string on records that came back from a save, and the
|
|
96
|
-
* lowercase `id` is a client-generated UUID that exists only on unsaved rows.
|
|
97
|
-
*/
|
|
98
|
-
getItemKey(item) {
|
|
99
|
-
return item.Code || item.Id || item.id;
|
|
100
|
-
}
|
|
101
|
-
updateCardDataFromItems(items) {
|
|
102
|
-
if (this.cardDataMapper) {
|
|
103
|
-
this.cardData.set(items.map((item) => this.cardDataMapper(item)));
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
// ===== Loading State =====
|
|
107
|
-
isUpdating$() {
|
|
108
|
-
return this.updating$.asObservable();
|
|
109
|
-
}
|
|
110
|
-
setUpdating(isUpdating) {
|
|
111
|
-
this.updating$.next(isUpdating);
|
|
112
|
-
}
|
|
113
|
-
// ===== Items =====
|
|
114
|
-
getItems$() {
|
|
115
|
-
return this.items$.asObservable();
|
|
116
|
-
}
|
|
117
|
-
getItemsValue() {
|
|
118
|
-
return this.items$.getValue();
|
|
119
|
-
}
|
|
120
|
-
setItems(items) {
|
|
121
|
-
this.items$.next(items);
|
|
122
|
-
this.updateCardDataFromItems(items);
|
|
123
|
-
}
|
|
124
|
-
appendItems(newItems) {
|
|
125
|
-
const allItems = [...this.items$.getValue(), ...newItems];
|
|
126
|
-
this.items$.next(allItems);
|
|
127
|
-
this.updateCardDataFromItems(allItems);
|
|
128
|
-
}
|
|
129
|
-
addItem(item) {
|
|
130
|
-
const allItems = [item, ...this.items$.getValue()];
|
|
131
|
-
this.items$.next(allItems);
|
|
132
|
-
this.updateCardDataFromItems(allItems);
|
|
133
|
-
}
|
|
134
|
-
updateItem(updatedItem) {
|
|
135
|
-
const items = this.items$.getValue();
|
|
136
|
-
const key = this.getItemKey(updatedItem);
|
|
137
|
-
const index = items.findIndex((item) => this.getItemKey(item) === key);
|
|
138
|
-
if (index !== -1) {
|
|
139
|
-
items[index] = updatedItem;
|
|
140
|
-
const allItems = [...items];
|
|
141
|
-
this.items$.next(allItems);
|
|
142
|
-
this.updateCardDataFromItems(allItems);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
/** Update the item when its key already exists, otherwise prepend it. */
|
|
146
|
-
upsertItem(item) {
|
|
147
|
-
const key = this.getItemKey(item);
|
|
148
|
-
const exists = this.items$
|
|
149
|
-
.getValue()
|
|
150
|
-
.some((existing) => this.getItemKey(existing) === key);
|
|
151
|
-
if (exists) {
|
|
152
|
-
this.updateItem(item);
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
this.addItem(item);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
removeItem(itemKey) {
|
|
159
|
-
const filteredItems = this.items$
|
|
160
|
-
.getValue()
|
|
161
|
-
.filter((item) => this.getItemKey(item) !== itemKey);
|
|
162
|
-
this.items$.next(filteredItems);
|
|
163
|
-
this.updateCardDataFromItems(filteredItems);
|
|
164
|
-
}
|
|
165
|
-
clearItems() {
|
|
166
|
-
this.items$.next([]);
|
|
167
|
-
this.updateCardDataFromItems([]);
|
|
168
|
-
}
|
|
169
|
-
// ===== Total Count =====
|
|
170
|
-
getTotalCount$() {
|
|
171
|
-
return this.totalCount$.asObservable();
|
|
172
|
-
}
|
|
173
|
-
setTotalCount(count) {
|
|
174
|
-
this.totalCount$.next(count);
|
|
175
|
-
}
|
|
176
|
-
// ===== Query Parameters =====
|
|
177
|
-
getQueryParams$() {
|
|
178
|
-
return this.queryParams$.asObservable();
|
|
179
|
-
}
|
|
180
|
-
getQueryParamsValue() {
|
|
181
|
-
return this.queryParams$.getValue();
|
|
182
|
-
}
|
|
183
|
-
updateQueryParams(params) {
|
|
184
|
-
this.queryParams$.next({ ...this.queryParams$.getValue(), ...params });
|
|
185
|
-
}
|
|
186
|
-
resetPagination() {
|
|
187
|
-
this.queryParams$.next({ ...this.queryParams$.getValue(), skip: 0 });
|
|
188
|
-
}
|
|
189
|
-
incrementPagination() {
|
|
190
|
-
const currentParams = this.queryParams$.getValue();
|
|
191
|
-
this.queryParams$.next({
|
|
192
|
-
...currentParams,
|
|
193
|
-
skip: currentParams.skip + currentParams.limit,
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
// ===== Search =====
|
|
197
|
-
getSearchTerm$() {
|
|
198
|
-
return this.searchTerm$.asObservable();
|
|
199
|
-
}
|
|
200
|
-
getSearchTermValue() {
|
|
201
|
-
return this.searchTerm$.getValue();
|
|
202
|
-
}
|
|
203
|
-
setSearchTerm(term) {
|
|
204
|
-
this.searchTerm$.next(term);
|
|
205
|
-
}
|
|
206
|
-
// ===== Filters =====
|
|
207
|
-
getFilters$() {
|
|
208
|
-
return this.filters$.asObservable();
|
|
209
|
-
}
|
|
210
|
-
getFiltersValue() {
|
|
211
|
-
return this.filters$.getValue();
|
|
212
|
-
}
|
|
213
|
-
setFilters(filters) {
|
|
214
|
-
this.filters$.next(filters);
|
|
215
|
-
}
|
|
216
|
-
clearFilters() {
|
|
217
|
-
this.filters$.next([]);
|
|
218
|
-
}
|
|
219
|
-
// ===== Sorts =====
|
|
220
|
-
getSorts$() {
|
|
221
|
-
return this.sorts$.asObservable();
|
|
222
|
-
}
|
|
223
|
-
getSortsValue() {
|
|
224
|
-
return this.sorts$.getValue();
|
|
225
|
-
}
|
|
226
|
-
setSorts(sorts) {
|
|
227
|
-
this.sorts$.next(sorts);
|
|
228
|
-
}
|
|
229
|
-
clearSorts() {
|
|
230
|
-
this.sorts$.next([]);
|
|
231
|
-
}
|
|
232
|
-
// ===== Visible Columns =====
|
|
233
|
-
getVisibleColumns$() {
|
|
234
|
-
return this.visibleColumns$.asObservable();
|
|
235
|
-
}
|
|
236
|
-
getVisibleColumnsValue() {
|
|
237
|
-
return this.visibleColumns$.getValue();
|
|
238
|
-
}
|
|
239
|
-
setVisibleColumns(columns) {
|
|
240
|
-
this.visibleColumns$.next(columns);
|
|
241
|
-
}
|
|
242
|
-
// ===== Table/Card View =====
|
|
243
|
-
getIsTableView$() {
|
|
244
|
-
return this.isTableView$.asObservable();
|
|
245
|
-
}
|
|
246
|
-
getIsTableViewValue() {
|
|
247
|
-
return this.isTableView$.getValue();
|
|
248
|
-
}
|
|
249
|
-
setIsTableView(isTableView) {
|
|
250
|
-
this.isTableView$.next(isTableView);
|
|
251
|
-
}
|
|
252
|
-
// ===== Card Data =====
|
|
253
|
-
setCardDataMapper(mapper) {
|
|
254
|
-
this.cardDataMapper = mapper;
|
|
255
|
-
}
|
|
256
|
-
getCardData() {
|
|
257
|
-
return this.cardData;
|
|
258
|
-
}
|
|
259
|
-
setCardData(data) {
|
|
260
|
-
this.cardData.set(data);
|
|
261
|
-
}
|
|
262
|
-
getCurrentCardData() {
|
|
263
|
-
return this.currentCardData;
|
|
264
|
-
}
|
|
265
|
-
setCurrentCardData(data) {
|
|
266
|
-
this.currentCardData.set(data);
|
|
267
|
-
}
|
|
268
|
-
// ===== Reset All =====
|
|
269
|
-
reset() {
|
|
270
|
-
this.clearItems();
|
|
271
|
-
this.setSearchTerm('');
|
|
272
|
-
this.clearFilters();
|
|
273
|
-
this.clearSorts();
|
|
274
|
-
this.setVisibleColumns([]);
|
|
275
|
-
this.cardData.set([]);
|
|
276
|
-
this.currentCardData.set(null);
|
|
277
|
-
this.resetPagination();
|
|
278
|
-
this.setTotalCount(0);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Converts filter conditions emitted by the verben-ng-ui filter components into
|
|
284
|
-
* the SearchPropertyValue[] payload the search API expects.
|
|
285
|
-
*
|
|
286
|
-
* Two input shapes are supported. `lib-data-filter` emits `FilterCondition[]`,
|
|
287
|
-
* which carries a columnId and an operator and is the shape the base prefers.
|
|
288
|
-
* `verben-table-filter` emits `IDataFilter[]`, which names the property directly
|
|
289
|
-
* and has no operator; it is kept working so pages can migrate one at a time.
|
|
290
|
-
*/
|
|
291
|
-
class FilterHandlerService {
|
|
292
|
-
buildFilterPayload(filters, columns) {
|
|
293
|
-
return filters
|
|
294
|
-
.map((filter) => this.isDataFilter(filter)
|
|
295
|
-
? this.fromDataFilter(filter)
|
|
296
|
-
: this.fromFilterCondition(filter, columns))
|
|
297
|
-
.filter(Boolean);
|
|
298
|
-
}
|
|
299
|
-
isDataFilter(filter) {
|
|
300
|
-
return filter.name !== undefined;
|
|
301
|
-
}
|
|
302
|
-
fromFilterCondition(filter, columns) {
|
|
303
|
-
const column = findColumn(columns, filter.columnId);
|
|
304
|
-
if (!column) {
|
|
305
|
-
return null;
|
|
306
|
-
}
|
|
307
|
-
// A display-only column (accessorFn with no accessorKey) has no server-side
|
|
308
|
-
// property to filter on; skip it rather than throwing out of getPropertyName.
|
|
309
|
-
if (!column.accessorKey) {
|
|
310
|
-
return null;
|
|
311
|
-
}
|
|
312
|
-
return {
|
|
313
|
-
PropertyName: getPropertyName(column),
|
|
314
|
-
EntityValue: String(filter.value),
|
|
315
|
-
Type: inferPropertyType(column),
|
|
316
|
-
Operator: SearchOperator.And,
|
|
317
|
-
Sign: this.mapOperatorToSign(filter.operator),
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
/** Legacy `verben-table-filter` shape: property name and type, no operator. */
|
|
321
|
-
fromDataFilter(filter) {
|
|
322
|
-
if (filter.value === undefined || filter.value === null) {
|
|
323
|
-
return null;
|
|
324
|
-
}
|
|
325
|
-
return {
|
|
326
|
-
PropertyName: filter.name,
|
|
327
|
-
EntityValue: String(filter.value),
|
|
328
|
-
Type: this.mapDataFilterType(filter.type),
|
|
329
|
-
Operator: SearchOperator.And,
|
|
330
|
-
Sign: filter.condition
|
|
331
|
-
? this.mapOperatorToSign(filter.condition)
|
|
332
|
-
: SearchPropertySign.EQ,
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* Inverse of {@link buildFilterPayload}: rebuild FilterCondition[] from a
|
|
337
|
-
* persisted SearchPropertyValue[] (restoring saved filters). Sign-preserving,
|
|
338
|
-
* so re-running buildFilterPayload reproduces the same query.
|
|
339
|
-
*/
|
|
340
|
-
buildFilterConditions(payload, columns) {
|
|
341
|
-
return payload
|
|
342
|
-
.map((pv) => {
|
|
343
|
-
const column = columns.find((col) => col.accessorKey && String(col.accessorKey) === pv.PropertyName);
|
|
344
|
-
if (!column) {
|
|
345
|
-
console.warn(`Column not found for saved filter property: ${pv.PropertyName}`);
|
|
346
|
-
return null;
|
|
347
|
-
}
|
|
348
|
-
return {
|
|
349
|
-
columnId: column.id,
|
|
350
|
-
operator: this.mapSignToOperator(pv.Sign),
|
|
351
|
-
value: pv.EntityValue,
|
|
352
|
-
};
|
|
353
|
-
})
|
|
354
|
-
.filter(Boolean);
|
|
355
|
-
}
|
|
356
|
-
mapSignToOperator(sign) {
|
|
357
|
-
switch (sign) {
|
|
358
|
-
case SearchPropertySign.LIKE:
|
|
359
|
-
return 'contains';
|
|
360
|
-
case SearchPropertySign.GT:
|
|
361
|
-
return 'greaterThan';
|
|
362
|
-
case SearchPropertySign.LT:
|
|
363
|
-
return 'lessThan';
|
|
364
|
-
case SearchPropertySign.EQ:
|
|
365
|
-
default:
|
|
366
|
-
return 'equals';
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
mapOperatorToSign(operator) {
|
|
370
|
-
const operatorMap = {
|
|
371
|
-
startsWith: SearchPropertySign.LIKE,
|
|
372
|
-
endsWith: SearchPropertySign.LIKE,
|
|
373
|
-
contains: SearchPropertySign.LIKE,
|
|
374
|
-
equals: SearchPropertySign.EQ,
|
|
375
|
-
equal: SearchPropertySign.EQ,
|
|
376
|
-
greaterThan: SearchPropertySign.GT,
|
|
377
|
-
lessThan: SearchPropertySign.LT,
|
|
378
|
-
on: SearchPropertySign.EQ,
|
|
379
|
-
before: SearchPropertySign.LT,
|
|
380
|
-
after: SearchPropertySign.GT,
|
|
381
|
-
};
|
|
382
|
-
return operatorMap[operator] || SearchPropertySign.EQ;
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* Carried over from the original workflows.helper.ts so the legacy
|
|
386
|
-
* `verben-table-filter` path keeps producing the same payload types.
|
|
387
|
-
*/
|
|
388
|
-
mapDataFilterType(type) {
|
|
389
|
-
switch (type) {
|
|
390
|
-
case DataFilterType.String:
|
|
391
|
-
return SearchPropertyValueType.String;
|
|
392
|
-
case DataFilterType.Integer:
|
|
393
|
-
case DataFilterType.Number:
|
|
394
|
-
return SearchPropertyValueType.Int;
|
|
395
|
-
case DataFilterType.Decimal:
|
|
396
|
-
return SearchPropertyValueType.Decimal;
|
|
397
|
-
case DataFilterType.Credit:
|
|
398
|
-
return SearchPropertyValueType.Float;
|
|
399
|
-
case DataFilterType.Date:
|
|
400
|
-
return SearchPropertyValueType.Date;
|
|
401
|
-
case DataFilterType.Bool:
|
|
402
|
-
return SearchPropertyValueType.Bool;
|
|
403
|
-
default:
|
|
404
|
-
return SearchPropertyValueType.String;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
408
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterHandlerService, providedIn: 'root' });
|
|
409
|
-
}
|
|
410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterHandlerService, decorators: [{
|
|
411
|
-
type: Injectable,
|
|
412
|
-
args: [{ providedIn: 'root' }]
|
|
413
|
-
}] });
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* Converts SortCondition[] emitted by lib-data-sort into what the workflow API
|
|
417
|
-
* needs.
|
|
418
|
-
*
|
|
419
|
-
* This API carries sort in the URL — every endpoint ends
|
|
420
|
-
* `/{skip}/{limit}/{sortParam}/{sortOrder}`, including the POST search — so
|
|
421
|
-
* `buildPrimarySort()` is the load-bearing one and only the first condition can
|
|
422
|
-
* be honoured. `buildSortPayload()` still emits the full set on the POST body so
|
|
423
|
-
* multi-column sort starts working the moment the backend reads it.
|
|
424
|
-
*/
|
|
425
|
-
class SortHandlerService {
|
|
426
|
-
/**
|
|
427
|
-
* Collapse the sort conditions to the single sort the URL can carry.
|
|
428
|
-
* Returns null when nothing sortable was selected, so callers fall back to
|
|
429
|
-
* the page's configured default.
|
|
430
|
-
*/
|
|
431
|
-
buildPrimarySort(sorts, columns) {
|
|
432
|
-
for (const sort of sorts) {
|
|
433
|
-
const column = findColumn(columns, sort.columnId);
|
|
434
|
-
if (!column?.accessorKey) {
|
|
435
|
-
continue;
|
|
436
|
-
}
|
|
437
|
-
return {
|
|
438
|
-
sortParam: getPropertyName(column),
|
|
439
|
-
sortOrder: this.mapSortDirection(sort.direction),
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
return null;
|
|
443
|
-
}
|
|
444
|
-
buildSortPayload(sorts, columns) {
|
|
445
|
-
return sorts
|
|
446
|
-
.map((sort) => {
|
|
447
|
-
const column = findColumn(columns, sort.columnId);
|
|
448
|
-
if (!column) {
|
|
449
|
-
return null;
|
|
450
|
-
}
|
|
451
|
-
if (!column.accessorKey) {
|
|
452
|
-
return null;
|
|
453
|
-
}
|
|
454
|
-
return {
|
|
455
|
-
PropertyName: getPropertyName(column),
|
|
456
|
-
EntityValue: '',
|
|
457
|
-
Type: inferPropertyType(column),
|
|
458
|
-
Operator: SearchOperator.And,
|
|
459
|
-
Sign: SearchPropertySign.EQ,
|
|
460
|
-
Sort: this.mapSortDirection(sort.direction),
|
|
461
|
-
};
|
|
462
|
-
})
|
|
463
|
-
.filter(Boolean);
|
|
464
|
-
}
|
|
465
|
-
mapSortDirection(direction) {
|
|
466
|
-
switch (direction) {
|
|
467
|
-
case SortDirection$1.Asc:
|
|
468
|
-
return SortDirection.Asc;
|
|
469
|
-
case SortDirection$1.Desc:
|
|
470
|
-
return SortDirection.Desc;
|
|
471
|
-
default:
|
|
472
|
-
return SortDirection.None;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SortHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
476
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SortHandlerService, providedIn: 'root' });
|
|
477
|
-
}
|
|
478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SortHandlerService, decorators: [{
|
|
479
|
-
type: Injectable,
|
|
480
|
-
args: [{ providedIn: 'root' }]
|
|
481
|
-
}] });
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Abstract base service for data pages.
|
|
485
|
-
* Handles list/search/save/delete with filter and sort support.
|
|
486
|
-
*
|
|
487
|
-
* The concrete URLs are built by the protected `*Url` seams below. Unlike the
|
|
488
|
-
* sibling libraries, every endpoint in the workflow API carries the sort as URL
|
|
489
|
-
* segments — `Get{Endpoint}/{skip}/{limit}/{sortParam}/{sortOrder}`, and the
|
|
490
|
-
* POST search does too — so the seams take sort parameters. Services whose
|
|
491
|
-
* endpoint names or shapes deviate (plural vs singular, query-string deletes)
|
|
492
|
-
* override just the URL rather than reimplementing `getData()`.
|
|
493
|
-
*
|
|
494
|
-
* When `baseUrl` is omitted, HttpWebRequestService falls back to the WorkFlowAPI
|
|
495
|
-
* base.
|
|
496
|
-
*/
|
|
497
|
-
class BaseDataPageService {
|
|
498
|
-
server;
|
|
499
|
-
filterHandler;
|
|
500
|
-
sortHandler;
|
|
501
|
-
baseUrl;
|
|
502
|
-
constructor(server, filterHandler, sortHandler, baseUrl) {
|
|
503
|
-
this.server = server;
|
|
504
|
-
this.filterHandler = filterHandler;
|
|
505
|
-
this.sortHandler = sortHandler;
|
|
506
|
-
this.baseUrl = baseUrl;
|
|
507
|
-
}
|
|
508
|
-
/** Sort property used when the user has not chosen one. */
|
|
509
|
-
defaultSortParam() {
|
|
510
|
-
return 'CreatedAt';
|
|
511
|
-
}
|
|
512
|
-
defaultSortOrder() {
|
|
513
|
-
return SortDirection.Desc;
|
|
514
|
-
}
|
|
515
|
-
// ===== URL seams (override in child services when the API deviates) =====
|
|
516
|
-
listUrl(skip, limit, sortParam, sortOrder) {
|
|
517
|
-
return `Get${this.getEndpoint()}/${skip}/${limit}/${sortParam}/${sortOrder}`;
|
|
518
|
-
}
|
|
519
|
-
searchTermUrl(term, skip, limit, sortParam, sortOrder) {
|
|
520
|
-
return `Get${this.getEndpoint()}WithParam/${term}/${skip}/${limit}/${sortParam}/${sortOrder}`;
|
|
521
|
-
}
|
|
522
|
-
filterSearchUrl(skip, limit, sortParam, sortOrder) {
|
|
523
|
-
return `Search${this.getEndpoint()}/${skip}/${limit}/${sortParam}/${sortOrder}`;
|
|
524
|
-
}
|
|
525
|
-
saveUrl() {
|
|
526
|
-
return `Save${this.getEndpoint()}`;
|
|
527
|
-
}
|
|
528
|
-
deleteUrl(itemIds) {
|
|
529
|
-
return `${this.getEndpoint()}/${itemIds.join(',')}`;
|
|
530
|
-
}
|
|
531
|
-
// ===== Payload =====
|
|
532
|
-
buildPayload(filters, sorts, columns) {
|
|
533
|
-
const filterPayload = this.filterHandler.buildFilterPayload(filters, columns);
|
|
534
|
-
const sortPayload = this.sortHandler.buildSortPayload(sorts, columns);
|
|
535
|
-
return [...filterPayload, ...sortPayload];
|
|
536
|
-
}
|
|
537
|
-
/** Filter-only payload (no sorts) for persisting saved filters. */
|
|
538
|
-
buildFilterPayloadOnly(filters, columns) {
|
|
539
|
-
return this.filterHandler.buildFilterPayload(filters, columns);
|
|
540
|
-
}
|
|
541
|
-
/** Inverse of {@link buildFilterPayloadOnly}: rebuild FilterCondition[] on restore. */
|
|
542
|
-
parseFilterPayload(payload, columns) {
|
|
543
|
-
return this.filterHandler.buildFilterConditions(payload, columns);
|
|
544
|
-
}
|
|
545
|
-
/**
|
|
546
|
-
* The sort the URL will carry: the user's first sortable selection, else the
|
|
547
|
-
* page default.
|
|
548
|
-
*/
|
|
549
|
-
resolveSort(sorts, columns) {
|
|
550
|
-
const chosen = sorts && columns ? this.sortHandler.buildPrimarySort(sorts, columns) : null;
|
|
551
|
-
return (chosen ?? {
|
|
552
|
-
sortParam: this.defaultSortParam(),
|
|
553
|
-
sortOrder: this.defaultSortOrder(),
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
// ===== Reads =====
|
|
557
|
-
/**
|
|
558
|
-
* Fetch data, automatically choosing the endpoint based on parameters:
|
|
559
|
-
* search-only -> GET WithParam, filters -> POST Search, otherwise plain GET.
|
|
560
|
-
*
|
|
561
|
-
* Sorts alone do not force the POST path: the plain GET already carries sort
|
|
562
|
-
* in its URL, so a sort-only request stays a GET.
|
|
563
|
-
*/
|
|
564
|
-
async getData(skip, limit, filters, sorts, searchTerm, columns) {
|
|
565
|
-
const hasFilters = !!filters && filters.length > 0;
|
|
566
|
-
const { sortParam, sortOrder } = this.resolveSort(sorts, columns);
|
|
567
|
-
if (hasFilters) {
|
|
568
|
-
if (!columns) {
|
|
569
|
-
throw new Error('Columns required for filter operations');
|
|
570
|
-
}
|
|
571
|
-
const payload = this.buildPayload(filters, sorts || [], columns);
|
|
572
|
-
// NOTE: post() here is (url, body, overrideToken?, baseUrl?) — baseUrl is
|
|
573
|
-
// the FOURTH argument, unlike get()/delete() where it is the second.
|
|
574
|
-
// Passing it third would send the URL as an auth token, and because
|
|
575
|
-
// HttpWebRequestService resolves errors into ErrorResponse rather than
|
|
576
|
-
// throwing, the failure would be silent.
|
|
577
|
-
return this.server.post(this.filterSearchUrl(skip, limit, sortParam, sortOrder), payload, undefined, this.baseUrl);
|
|
578
|
-
}
|
|
579
|
-
if (searchTerm) {
|
|
580
|
-
return this.server.get(this.searchTermUrl(searchTerm, skip, limit, sortParam, sortOrder), this.baseUrl);
|
|
581
|
-
}
|
|
582
|
-
return this.server.get(this.listUrl(skip, limit, sortParam, sortOrder), this.baseUrl);
|
|
583
|
-
}
|
|
584
|
-
// ===== Writes =====
|
|
585
|
-
async saveItems(items) {
|
|
586
|
-
return this.server.post(this.saveUrl(), items, undefined, this.baseUrl);
|
|
587
|
-
}
|
|
588
|
-
async deleteItems(itemIds) {
|
|
589
|
-
// HttpWebRequestService.delete returns a raw observable that rejects on HTTP
|
|
590
|
-
// error (unlike get/post, which resolve an ErrorResponse), so normalize here
|
|
591
|
-
// to keep the facade's error-handling contract uniform.
|
|
592
|
-
try {
|
|
593
|
-
const result = await lastValueFrom(this.server.delete(this.deleteUrl(itemIds), this.baseUrl));
|
|
594
|
-
return result ?? false;
|
|
595
|
-
}
|
|
596
|
-
catch (err) {
|
|
597
|
-
const msg = err?.error?.ErrorMsg || err?.ErrorMsg || err?.message || 'Delete failed';
|
|
598
|
-
return new ErrorResponse(msg);
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
// ===== Export =====
|
|
602
|
-
async exportData(filters, sorts, searchTerm, columns) {
|
|
603
|
-
const result = await this.getData(0, 999999, filters, sorts, searchTerm, columns);
|
|
604
|
-
if (result instanceof ErrorResponse) {
|
|
605
|
-
return result;
|
|
606
|
-
}
|
|
607
|
-
return result.Result || [];
|
|
608
|
-
}
|
|
609
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseDataPageService, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
610
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseDataPageService });
|
|
611
|
-
}
|
|
612
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseDataPageService, decorators: [{
|
|
613
|
-
type: Injectable
|
|
614
|
-
}], ctorParameters: () => [{ type: i1.HttpWebRequestService }, { type: FilterHandlerService }, { type: SortHandlerService }, { type: undefined }] });
|
|
615
|
-
|
|
616
|
-
/**
|
|
617
|
-
* Debounces search terms. Emits the term after the user stops typing.
|
|
618
|
-
* Provided per page so each page owns its own debounce stream.
|
|
619
|
-
*
|
|
620
|
-
* `search$` is a stable observable whose debounce interval is read live from
|
|
621
|
-
* `debounceMs`, so `setDebounceTime()` can be called after subscribers have
|
|
622
|
-
* attached (e.g. from a runtime `@Input`) and still take effect.
|
|
623
|
-
*/
|
|
624
|
-
class SearchHandlerService {
|
|
625
|
-
searchSubject = new Subject();
|
|
626
|
-
debounceMs = 500;
|
|
627
|
-
search$ = this.searchSubject.asObservable().pipe(debounce(() => timer(this.debounceMs)), distinctUntilChanged());
|
|
628
|
-
search(term) {
|
|
629
|
-
this.searchSubject.next(term);
|
|
630
|
-
}
|
|
631
|
-
setDebounceTime(ms) {
|
|
632
|
-
this.debounceMs = ms;
|
|
633
|
-
}
|
|
634
|
-
ngOnDestroy() {
|
|
635
|
-
this.searchSubject.complete();
|
|
636
|
-
}
|
|
637
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SearchHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
638
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SearchHandlerService });
|
|
639
|
-
}
|
|
640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SearchHandlerService, decorators: [{
|
|
641
|
-
type: Injectable
|
|
642
|
-
}] });
|
|
643
|
-
|
|
644
|
-
/**
|
|
645
|
-
* Abstract facade for base data pages.
|
|
646
|
-
* Orchestrates state, service, and search handler, and surfaces the host app's
|
|
647
|
-
* busy indicator / toasts through UtilService.
|
|
648
|
-
*/
|
|
649
|
-
class BaseDataPageFacade {
|
|
650
|
-
state;
|
|
651
|
-
service;
|
|
652
|
-
searchHandler;
|
|
653
|
-
utilService;
|
|
654
|
-
config;
|
|
655
|
-
destroy$ = new Subject();
|
|
656
|
-
cardSelectionCleared = new Subject();
|
|
657
|
-
/**
|
|
658
|
-
* The saved config record for this page (once loaded/created), retained so
|
|
659
|
-
* successive saves in a session update the same record instead of duplicating.
|
|
660
|
-
*/
|
|
661
|
-
savedOption;
|
|
662
|
-
constructor(state, service, searchHandler, utilService, config) {
|
|
663
|
-
this.state = state;
|
|
664
|
-
this.service = service;
|
|
665
|
-
this.searchHandler = searchHandler;
|
|
666
|
-
this.utilService = utilService;
|
|
667
|
-
this.config = config;
|
|
668
|
-
this.initializeSearchHandler();
|
|
669
|
-
this.state.setVisibleColumns(this.config.columns);
|
|
670
|
-
this.state.updateQueryParams({ limit: this.config.pageSize });
|
|
671
|
-
if (this.config.cardDataMapper) {
|
|
672
|
-
this.state.setCardDataMapper(this.config.cardDataMapper);
|
|
673
|
-
}
|
|
674
|
-
// Drive the host busy indicator from the shared loading flag.
|
|
675
|
-
this.state
|
|
676
|
-
.isUpdating$()
|
|
677
|
-
.pipe(takeUntil(this.destroy$))
|
|
678
|
-
.subscribe((loading) => this.utilService.sendBI(loading));
|
|
679
|
-
}
|
|
680
|
-
// ===== Configuration =====
|
|
681
|
-
getConfig() {
|
|
682
|
-
return this.config;
|
|
683
|
-
}
|
|
684
|
-
getColumns() {
|
|
685
|
-
return this.config.columns;
|
|
686
|
-
}
|
|
687
|
-
// ===== Observables =====
|
|
688
|
-
get items$() {
|
|
689
|
-
return this.state.getItems$();
|
|
690
|
-
}
|
|
691
|
-
get isLoading$() {
|
|
692
|
-
return this.state.isUpdating$();
|
|
693
|
-
}
|
|
694
|
-
get totalCount$() {
|
|
695
|
-
return this.state.getTotalCount$();
|
|
696
|
-
}
|
|
697
|
-
get filters$() {
|
|
698
|
-
return this.state.getFilters$();
|
|
699
|
-
}
|
|
700
|
-
get sorts$() {
|
|
701
|
-
return this.state.getSorts$();
|
|
702
|
-
}
|
|
703
|
-
get searchTerm$() {
|
|
704
|
-
return this.state.getSearchTerm$();
|
|
705
|
-
}
|
|
706
|
-
get visibleColumns$() {
|
|
707
|
-
return this.state.getVisibleColumns$();
|
|
708
|
-
}
|
|
709
|
-
/** Last table/card view (true = table). Restored on load, persisted on change. */
|
|
710
|
-
get isTableView$() {
|
|
711
|
-
return this.state.getIsTableView$();
|
|
712
|
-
}
|
|
713
|
-
getIsTableViewValue() {
|
|
714
|
-
return this.state.getIsTableViewValue();
|
|
715
|
-
}
|
|
716
|
-
get cardData() {
|
|
717
|
-
return this.state.getCardData();
|
|
718
|
-
}
|
|
719
|
-
get currentCardData() {
|
|
720
|
-
return this.state.getCurrentCardData();
|
|
721
|
-
}
|
|
722
|
-
/**
|
|
723
|
-
* Emits when a refetch invalidates the current card selection.
|
|
724
|
-
* Card views listen to this to clear their own selection state.
|
|
725
|
-
*/
|
|
726
|
-
get cardSelectionCleared$() {
|
|
727
|
-
return this.cardSelectionCleared.asObservable();
|
|
728
|
-
}
|
|
729
|
-
// ===== Data Loading =====
|
|
730
|
-
async loadData() {
|
|
731
|
-
// Drop the open record before the list underneath it is replaced. Without
|
|
732
|
-
// this the detail form keeps rendering the previous record after a search
|
|
733
|
-
// or filter refetch — the "form doesn't close after search" bug.
|
|
734
|
-
this.clearCardSelection();
|
|
735
|
-
this.state.setUpdating(true);
|
|
736
|
-
this.state.clearItems();
|
|
737
|
-
this.state.resetPagination();
|
|
738
|
-
const params = this.state.getQueryParamsValue();
|
|
739
|
-
const filters = this.state.getFiltersValue();
|
|
740
|
-
const sorts = this.state.getSortsValue();
|
|
741
|
-
const searchTerm = this.state.getSearchTermValue();
|
|
742
|
-
const result = await this.service.getData(params.skip, params.limit, filters, sorts, searchTerm, this.config.columns);
|
|
743
|
-
this.state.setUpdating(false);
|
|
744
|
-
if (result instanceof ErrorResponse) {
|
|
745
|
-
this.utilService.showError(result.ErrorMsg);
|
|
746
|
-
return;
|
|
747
|
-
}
|
|
748
|
-
this.state.setItems(result.Result || []);
|
|
749
|
-
this.state.setTotalCount(result.Total || 0);
|
|
750
|
-
}
|
|
751
|
-
addItem(item) {
|
|
752
|
-
this.state.addItem(item);
|
|
753
|
-
}
|
|
754
|
-
async loadMore() {
|
|
755
|
-
this.state.setUpdating(true);
|
|
756
|
-
// Advance first, then fetch: the first page was loaded at skip=0 without
|
|
757
|
-
// moving the pointer, so the next page starts at skip + limit.
|
|
758
|
-
this.state.incrementPagination();
|
|
759
|
-
const params = this.state.getQueryParamsValue();
|
|
760
|
-
const filters = this.state.getFiltersValue();
|
|
761
|
-
const sorts = this.state.getSortsValue();
|
|
762
|
-
// Paging must stay inside the active search/filter, or page 2 returns
|
|
763
|
-
// unfiltered rows.
|
|
764
|
-
const searchTerm = this.state.getSearchTermValue();
|
|
765
|
-
const result = await this.service.getData(params.skip, params.limit, filters, sorts, searchTerm, this.config.columns);
|
|
766
|
-
this.state.setUpdating(false);
|
|
767
|
-
if (result instanceof ErrorResponse) {
|
|
768
|
-
this.utilService.showError(result.ErrorMsg);
|
|
769
|
-
return;
|
|
770
|
-
}
|
|
771
|
-
this.state.appendItems(result.Result || []);
|
|
772
|
-
}
|
|
773
|
-
/**
|
|
774
|
-
* Fetch an arbitrary window without touching page state, honouring the active
|
|
775
|
-
* search, filters and sorts. Backs the export component's dataQueryFunction.
|
|
776
|
-
*/
|
|
777
|
-
async loadRange(skip, limit) {
|
|
778
|
-
const result = await this.service.getData(skip, limit, this.state.getFiltersValue(), this.state.getSortsValue(), this.state.getSearchTermValue(), this.config.columns);
|
|
779
|
-
if (result instanceof ErrorResponse) {
|
|
780
|
-
this.utilService.showError(result.ErrorMsg);
|
|
781
|
-
return [];
|
|
782
|
-
}
|
|
783
|
-
return result.Result || [];
|
|
784
|
-
}
|
|
785
|
-
async refresh() {
|
|
786
|
-
await this.loadData();
|
|
787
|
-
}
|
|
788
|
-
// ===== Search =====
|
|
789
|
-
onSearch(term) {
|
|
790
|
-
this.searchHandler.search(term);
|
|
791
|
-
}
|
|
792
|
-
initializeSearchHandler() {
|
|
793
|
-
if (this.config.searchDebounceTime) {
|
|
794
|
-
this.searchHandler.setDebounceTime(this.config.searchDebounceTime);
|
|
795
|
-
}
|
|
796
|
-
this.searchHandler.search$.pipe(takeUntil(this.destroy$)).subscribe((term) => {
|
|
797
|
-
this.state.setSearchTerm(term);
|
|
798
|
-
this.loadData();
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
// ===== Filters / Sorts =====
|
|
802
|
-
async applyFilters(filters) {
|
|
803
|
-
this.state.setFilters(filters);
|
|
804
|
-
this.persistConfig();
|
|
805
|
-
await this.loadData();
|
|
806
|
-
}
|
|
807
|
-
async clearFilters() {
|
|
808
|
-
this.state.clearFilters();
|
|
809
|
-
this.persistConfig();
|
|
810
|
-
await this.loadData();
|
|
811
|
-
}
|
|
812
|
-
async applySorts(sorts) {
|
|
813
|
-
this.state.setSorts(sorts);
|
|
814
|
-
await this.loadData();
|
|
815
|
-
}
|
|
816
|
-
async clearSorts() {
|
|
817
|
-
this.state.clearSorts();
|
|
818
|
-
await this.loadData();
|
|
819
|
-
}
|
|
820
|
-
// ===== Visible Columns =====
|
|
821
|
-
updateVisibleColumns(columns) {
|
|
822
|
-
this.state.setVisibleColumns(columns);
|
|
823
|
-
this.persistConfig();
|
|
824
|
-
}
|
|
825
|
-
// ===== Table/Card View =====
|
|
826
|
-
/**
|
|
827
|
-
* Update the table/card view flag WITHOUT persisting. Use for transient or
|
|
828
|
-
* internal switches (e.g. dropping to card view to open a create form).
|
|
829
|
-
*/
|
|
830
|
-
setViewState(isTableView) {
|
|
831
|
-
this.state.setIsTableView(isTableView);
|
|
832
|
-
}
|
|
833
|
-
/** Record the user's table/card choice and persist it (non-blocking). */
|
|
834
|
-
setView(isTableView) {
|
|
835
|
-
this.setViewState(isTableView);
|
|
836
|
-
this.persistConfig();
|
|
837
|
-
}
|
|
838
|
-
// ===== Persistence (saved filters, column arrangement, last view) =====
|
|
839
|
-
/**
|
|
840
|
-
* Restore this page's saved config (via the host UTIL_SERVICE), then load data.
|
|
841
|
-
* Safe to call in place of loadData() from the page's ngOnInit. When the page
|
|
842
|
-
* has no `ui` (opt-out) or nothing is saved / the host doesn't support it, it
|
|
843
|
-
* just loads data.
|
|
844
|
-
*/
|
|
845
|
-
async restoreSavedConfig() {
|
|
846
|
-
const ui = this.config.ui;
|
|
847
|
-
if (ui) {
|
|
848
|
-
const option = await this.utilService.getUserPageConfig(ui);
|
|
849
|
-
if (option) {
|
|
850
|
-
this.savedOption = option;
|
|
851
|
-
if (option.VisibleColumns?.length) {
|
|
852
|
-
const restored = this.rebuildColumns(option.VisibleColumns);
|
|
853
|
-
if (restored.length) {
|
|
854
|
-
this.state.setVisibleColumns(restored);
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
if (option.SavedFilters?.length) {
|
|
858
|
-
const conditions = this.service.parseFilterPayload(option.SavedFilters, this.config.columns);
|
|
859
|
-
this.state.setFilters(conditions);
|
|
860
|
-
}
|
|
861
|
-
this.state.setIsTableView(!option.IsCardView);
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
await this.loadData();
|
|
865
|
-
}
|
|
866
|
-
/**
|
|
867
|
-
* Assemble the current page config and persist it through the host. Fire-and-
|
|
868
|
-
* forget: never awaited, so the triggering UI action is not blocked. No-op when
|
|
869
|
-
* the page opts out of persistence (`ui` unset).
|
|
870
|
-
*/
|
|
871
|
-
persistConfig() {
|
|
872
|
-
const ui = this.config.ui;
|
|
873
|
-
if (!ui)
|
|
874
|
-
return;
|
|
875
|
-
const option = {
|
|
876
|
-
...this.newOption(ui),
|
|
877
|
-
...(this.savedOption ?? {}),
|
|
878
|
-
UIRoute: ui,
|
|
879
|
-
IsCardView: !this.state.getIsTableViewValue(),
|
|
880
|
-
VisibleColumns: this.state.getVisibleColumnsValue().map((col) => col.id),
|
|
881
|
-
SavedFilters: this.service.buildFilterPayloadOnly(this.state.getFiltersValue(), this.config.columns),
|
|
882
|
-
DataState: this.savedOption ? ObjectState.Changed : ObjectState.New,
|
|
883
|
-
};
|
|
884
|
-
this.utilService.saveUserPageConfig(option).then((saved) => {
|
|
885
|
-
if (saved)
|
|
886
|
-
this.savedOption = saved;
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
/** Map ordered saved column ids back onto the config's ColumnDefinitions. */
|
|
890
|
-
rebuildColumns(ids) {
|
|
891
|
-
const byId = new Map(this.config.columns.map((col) => [col.id, col]));
|
|
892
|
-
return ids
|
|
893
|
-
.map((id) => byId.get(id))
|
|
894
|
-
.filter((col) => !!col);
|
|
895
|
-
}
|
|
896
|
-
/** A fresh, unsaved PageFilterTabOption for this page. */
|
|
897
|
-
newOption(ui) {
|
|
898
|
-
return {
|
|
899
|
-
id: '',
|
|
900
|
-
Id: '',
|
|
901
|
-
Code: '',
|
|
902
|
-
TenantId: '',
|
|
903
|
-
ServiceName: '',
|
|
904
|
-
CreatedAt: new Date(),
|
|
905
|
-
UpdatedAt: new Date(),
|
|
906
|
-
DataState: ObjectState.New,
|
|
907
|
-
UIRoute: ui,
|
|
908
|
-
IsCardView: false,
|
|
909
|
-
VisibleColumns: [],
|
|
910
|
-
SavedFilters: [],
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
// ===== Card Data =====
|
|
914
|
-
selectCard(cardData) {
|
|
915
|
-
this.state.setCurrentCardData(cardData);
|
|
916
|
-
}
|
|
917
|
-
/**
|
|
918
|
-
* Close the detail form.
|
|
919
|
-
*
|
|
920
|
-
* Goes through clearCardSelection rather than `selectCard(null)`: nulling the
|
|
921
|
-
* signal alone only empties the form's fields, because CardDataViewComponent
|
|
922
|
-
* holds its own `currentItem` that keeps the right-hand panel on screen. The
|
|
923
|
-
* cardSelectionCleared$ notification is what lets the component tear that down.
|
|
924
|
-
*/
|
|
925
|
-
closeForm() {
|
|
926
|
-
this.clearCardSelection();
|
|
927
|
-
}
|
|
928
|
-
/**
|
|
929
|
-
* Open the detail form for a record. Routed through selectCard so table-row
|
|
930
|
-
* edit and card click share one source of truth for the open record — the
|
|
931
|
-
* form template binds the current card, not a separate "selected item".
|
|
932
|
-
* Reuses the matching existing card when there is one.
|
|
933
|
-
*/
|
|
934
|
-
openForm(item) {
|
|
935
|
-
if (!item) {
|
|
936
|
-
this.selectCard(null);
|
|
937
|
-
return;
|
|
938
|
-
}
|
|
939
|
-
const key = this.itemKey(item);
|
|
940
|
-
const existing = this.state
|
|
941
|
-
.getCardData()()
|
|
942
|
-
.find((card) => card.data && this.itemKey(card.data) === key);
|
|
943
|
-
this.selectCard(existing ?? this.config.cardDataMapper(item));
|
|
944
|
-
}
|
|
945
|
-
/**
|
|
946
|
-
* Prepend a blank record and open it. Replaces the old approach of inferring
|
|
947
|
-
* "this must be the new one" from a falsy Name, which re-opened the form
|
|
948
|
-
* whenever a refetch happened to contain a blank-named record.
|
|
949
|
-
*/
|
|
950
|
-
createItem(blank) {
|
|
951
|
-
this.state.addItem(blank);
|
|
952
|
-
this.openForm(blank);
|
|
953
|
-
return blank;
|
|
954
|
-
}
|
|
955
|
-
/**
|
|
956
|
-
* Stable identity, matching BaseDataPageState.getItemKey. Kept here so the
|
|
957
|
-
* facade can match cards without widening the state's protected seam.
|
|
958
|
-
*/
|
|
959
|
-
itemKey(item) {
|
|
960
|
-
return item.Code || item.Id || item.id;
|
|
961
|
-
}
|
|
962
|
-
/**
|
|
963
|
-
* Drop the current card selection because the data it referred to is being
|
|
964
|
-
* replaced. Called by loadData(); deliberately not by loadMore(), which only
|
|
965
|
-
* appends and leaves an existing selection valid.
|
|
966
|
-
*/
|
|
967
|
-
clearCardSelection() {
|
|
968
|
-
this.state.setCurrentCardData(null);
|
|
969
|
-
this.cardSelectionCleared.next();
|
|
970
|
-
}
|
|
971
|
-
// ===== CRUD =====
|
|
972
|
-
/**
|
|
973
|
-
* Stamp the write state a record should be saved with.
|
|
974
|
-
*
|
|
975
|
-
* A record is new only when it has no Code yet (the backend always assigns
|
|
976
|
-
* Code on persisted records). Don't trust the loaded DataState here: records
|
|
977
|
-
* returned from the backend come through unchanged and report DataState
|
|
978
|
-
* 'New', which would force an insert (and thus duplicate) on every edit.
|
|
979
|
-
*/
|
|
980
|
-
withDataState(item) {
|
|
981
|
-
return {
|
|
982
|
-
...item,
|
|
983
|
-
DataState: item.Code ? ObjectState.Changed : ObjectState.New,
|
|
984
|
-
};
|
|
985
|
-
}
|
|
986
|
-
async saveItems(items) {
|
|
987
|
-
this.state.setUpdating(true);
|
|
988
|
-
const result = await this.service.saveItems(items.map((item) => this.withDataState(item)));
|
|
989
|
-
this.state.setUpdating(false);
|
|
990
|
-
if (result instanceof ErrorResponse) {
|
|
991
|
-
this.utilService.showError(result.ErrorMsg);
|
|
992
|
-
return false;
|
|
993
|
-
}
|
|
994
|
-
this.utilService.showSuccess('Record(s) saved successfully');
|
|
995
|
-
// A save that inserted assigns a Code the client never had, so the saved
|
|
996
|
-
// record cannot be matched against the blank one it replaces. Refetch in
|
|
997
|
-
// that case; otherwise reconcile in place.
|
|
998
|
-
//
|
|
999
|
-
// The save endpoints are typed `Promise<any>` across this library and not
|
|
1000
|
-
// all of them echo the saved rows back, so only reconcile when the response
|
|
1001
|
-
// actually is an array — and refetch when it is not, rather than leaving the
|
|
1002
|
-
// list showing pre-save values.
|
|
1003
|
-
const inserted = items.some((item) => !item.Code);
|
|
1004
|
-
if (inserted || !Array.isArray(result)) {
|
|
1005
|
-
await this.refresh();
|
|
1006
|
-
}
|
|
1007
|
-
else {
|
|
1008
|
-
result.forEach((savedItem) => this.state.upsertItem(savedItem));
|
|
1009
|
-
}
|
|
1010
|
-
return true;
|
|
1011
|
-
}
|
|
1012
|
-
async deleteItems(itemIds) {
|
|
1013
|
-
this.state.setUpdating(true);
|
|
1014
|
-
const result = await this.service.deleteItems(itemIds);
|
|
1015
|
-
this.state.setUpdating(false);
|
|
1016
|
-
if (result instanceof ErrorResponse) {
|
|
1017
|
-
this.utilService.showError(result.ErrorMsg);
|
|
1018
|
-
return false;
|
|
1019
|
-
}
|
|
1020
|
-
itemIds.forEach((id) => this.state.removeItem(id));
|
|
1021
|
-
this.utilService.showSuccess('Record(s) deleted successfully');
|
|
1022
|
-
return true;
|
|
1023
|
-
}
|
|
1024
|
-
// ===== Export =====
|
|
1025
|
-
async exportData() {
|
|
1026
|
-
const filters = this.state.getFiltersValue();
|
|
1027
|
-
const sorts = this.state.getSortsValue();
|
|
1028
|
-
const searchTerm = this.state.getSearchTermValue();
|
|
1029
|
-
const result = await this.service.exportData(filters, sorts, searchTerm, this.config.columns);
|
|
1030
|
-
if (result instanceof ErrorResponse) {
|
|
1031
|
-
return [];
|
|
1032
|
-
}
|
|
1033
|
-
return result;
|
|
1034
|
-
}
|
|
1035
|
-
// ===== Cleanup =====
|
|
1036
|
-
ngOnDestroy() {
|
|
1037
|
-
this.destroy$.next();
|
|
1038
|
-
this.destroy$.complete();
|
|
1039
|
-
this.cardSelectionCleared.complete();
|
|
1040
|
-
}
|
|
1041
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseDataPageFacade, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
1042
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseDataPageFacade });
|
|
1043
|
-
}
|
|
1044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseDataPageFacade, decorators: [{
|
|
1045
|
-
type: Injectable
|
|
1046
|
-
}], ctorParameters: () => [{ type: BaseDataPageState }, { type: BaseDataPageService }, { type: SearchHandlerService }, { type: i1.UtilService }, { type: undefined }] });
|
|
1047
|
-
|
|
1048
|
-
// Models and interfaces
|
|
1049
|
-
|
|
1050
|
-
/**
|
|
1051
|
-
* Generated bundle index. Do not edit.
|
|
1052
|
-
*/
|
|
1053
|
-
|
|
1054
|
-
export { BaseDataPageFacade, BaseDataPageService, BaseDataPageState, FilterHandlerService, SearchHandlerService, SortHandlerService, filterableColumns, findColumn, getPropertyName, inferPropertyType };
|
|
1055
|
-
//# sourceMappingURL=verben-workflow-ui-src-lib-base.mjs.map
|