verben-workflow-ui 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/public-api.mjs +43 -0
- package/esm2022/src/lib/base/core/base-data-page.facade.mjs +412 -0
- package/esm2022/src/lib/base/core/base-data-page.service.mjs +140 -0
- package/esm2022/src/lib/base/core/base-data-page.state.mjs +216 -0
- package/esm2022/src/lib/base/handlers/filter-handler.service.mjs +138 -0
- package/esm2022/src/lib/base/handlers/search-handler.service.mjs +31 -0
- package/esm2022/src/lib/base/handlers/sort-handler.service.mjs +73 -0
- package/esm2022/src/lib/base/index.mjs +2 -0
- package/esm2022/src/lib/base/models/api-payload.mjs +7 -0
- package/esm2022/src/lib/base/models/page-config.interface.mjs +2 -0
- package/esm2022/src/lib/base/models/page-filter-tab-option.interface.mjs +2 -0
- package/esm2022/src/lib/base/public-api.mjs +14 -0
- package/esm2022/src/lib/base/utils/column-helpers.mjs +55 -0
- package/esm2022/src/lib/base/verben-workflow-ui-src-lib-base.mjs +5 -0
- package/esm2022/src/lib/components/actors/actors.columns.mjs +39 -0
- package/esm2022/src/lib/components/actors/actors.component.mjs +175 -0
- package/esm2022/src/lib/components/actors/actors.config.mjs +49 -0
- package/esm2022/src/lib/components/actors/actors.facade.mjs +57 -0
- package/esm2022/src/lib/components/actors/actors.form.component.mjs +74 -0
- package/esm2022/src/lib/components/actors/actors.module.mjs +21 -0
- package/esm2022/src/lib/components/actors/actors.service.mjs +65 -0
- package/esm2022/src/lib/components/actors/actors.state.mjs +31 -0
- package/esm2022/src/lib/components/actors/index.mjs +2 -0
- package/esm2022/src/lib/components/actors/public-api.mjs +3 -0
- package/esm2022/src/lib/components/actors/verben-workflow-ui-src-lib-components-actors.mjs +5 -0
- package/esm2022/src/lib/components/designer/components/label-editor.component.mjs +148 -0
- package/esm2022/src/lib/components/designer/components/node-selector.component.mjs +317 -0
- package/esm2022/src/lib/components/designer/components/swimlane-label.component.mjs +161 -0
- package/esm2022/src/lib/components/designer/components/swimlane-popup.component.mjs +85 -0
- package/esm2022/src/lib/components/designer/components/wf-canvas.component.mjs +715 -0
- package/esm2022/src/lib/components/designer/components/wf-designer.component.mjs +135 -0
- package/esm2022/src/lib/components/designer/components/wf-toolbar.component.mjs +56 -0
- package/esm2022/src/lib/components/designer/index.mjs +2 -0
- package/esm2022/src/lib/components/designer/models/types.mjs +2 -0
- package/esm2022/src/lib/components/designer/public-api.mjs +3 -0
- package/esm2022/src/lib/components/designer/services/canvas-state.service.mjs +50 -0
- package/esm2022/src/lib/components/designer/services/connection-segment-interaction.service.mjs +108 -0
- package/esm2022/src/lib/components/designer/services/connection.service.mjs +267 -0
- package/esm2022/src/lib/components/designer/services/keyboard-handler.service.mjs +43 -0
- package/esm2022/src/lib/components/designer/services/label-management.service.mjs +66 -0
- package/esm2022/src/lib/components/designer/services/node-finder.service.mjs +30 -0
- package/esm2022/src/lib/components/designer/services/node-interaction.service.mjs +108 -0
- package/esm2022/src/lib/components/designer/services/node-precondition.service.mjs +108 -0
- package/esm2022/src/lib/components/designer/services/node-selection.service.mjs +96 -0
- package/esm2022/src/lib/components/designer/services/orthogonal-router.service.mjs +167 -0
- package/esm2022/src/lib/components/designer/services/position-update.service.mjs +45 -0
- package/esm2022/src/lib/components/designer/services/rendering.service.mjs +236 -0
- package/esm2022/src/lib/components/designer/services/swimlane-management.service.mjs +145 -0
- package/esm2022/src/lib/components/designer/services/swimlane-stats.service.mjs +44 -0
- package/esm2022/src/lib/components/designer/services/viewport.service.mjs +30 -0
- package/esm2022/src/lib/components/designer/services/wf-facade.service.mjs +239 -0
- package/esm2022/src/lib/components/designer/services/wf-mapper.service.mjs +326 -0
- package/esm2022/src/lib/components/designer/services/wf-persistence.service.mjs +169 -0
- package/esm2022/src/lib/components/designer/services/wf-state.service.mjs +108 -0
- package/esm2022/src/lib/components/designer/verben-workflow-ui-src-lib-components-designer.mjs +5 -0
- package/esm2022/src/lib/components/expiration/expiration.component.mjs +49 -0
- package/esm2022/src/lib/components/expiration/expiration.module.mjs +19 -0
- package/esm2022/src/lib/components/expiration/index.mjs +2 -0
- package/esm2022/src/lib/components/expiration/public-api.mjs +3 -0
- package/esm2022/src/lib/components/expiration/verben-workflow-ui-src-lib-components-expiration.mjs +5 -0
- package/esm2022/src/lib/components/file-render/file-render.component.mjs +45 -0
- package/esm2022/src/lib/components/file-render/file-render.module.mjs +35 -0
- package/esm2022/src/lib/components/file-render/index.mjs +2 -0
- package/esm2022/src/lib/components/file-render/public-api.mjs +3 -0
- package/esm2022/src/lib/components/file-render/verben-workflow-ui-src-lib-components-file-render.mjs +5 -0
- package/esm2022/src/lib/components/file-upload/file-upload.component.mjs +93 -0
- package/esm2022/src/lib/components/file-upload/file-upload.module.mjs +63 -0
- package/esm2022/src/lib/components/file-upload/index.mjs +2 -0
- package/esm2022/src/lib/components/file-upload/public-api.mjs +3 -0
- package/esm2022/src/lib/components/file-upload/verben-workflow-ui-src-lib-components-file-upload.mjs +5 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.columns.mjs +21 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.component.mjs +203 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.config.mjs +47 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.facade.mjs +60 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.form.component.mjs +52 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.module.mjs +21 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.service.mjs +35 -0
- package/esm2022/src/lib/components/flowable-status/flowable-status.state.mjs +15 -0
- package/esm2022/src/lib/components/flowable-status/index.mjs +2 -0
- package/esm2022/src/lib/components/flowable-status/public-api.mjs +3 -0
- package/esm2022/src/lib/components/flowable-status/verben-workflow-ui-src-lib-components-flowable-status.mjs +5 -0
- package/esm2022/src/lib/components/form-control/form-control.component.mjs +180 -0
- package/esm2022/src/lib/components/form-control/form-control.module.mjs +75 -0
- package/esm2022/src/lib/components/form-control/index.mjs +2 -0
- package/esm2022/src/lib/components/form-control/public-api.mjs +3 -0
- package/esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs +5 -0
- package/esm2022/src/lib/components/form-group/base-table-style.mjs +53 -0
- package/esm2022/src/lib/components/form-group/form-fields/form-fields.component.mjs +952 -0
- package/esm2022/src/lib/components/form-group/form-fields/form-fields.module.mjs +75 -0
- package/esm2022/src/lib/components/form-group/form-fields/form-fields.service.mjs +73 -0
- package/esm2022/src/lib/components/form-group/form-group.component.mjs +698 -0
- package/esm2022/src/lib/components/form-group/form-group.module.mjs +85 -0
- package/esm2022/src/lib/components/form-group/form-group.service.mjs +56 -0
- package/esm2022/src/lib/components/form-group/index.mjs +2 -0
- package/esm2022/src/lib/components/form-group/public-api.mjs +5 -0
- package/esm2022/src/lib/components/form-group/verben-workflow-ui-src-lib-components-form-group.mjs +5 -0
- package/esm2022/src/lib/components/form-response/form-response.component.mjs +638 -0
- package/esm2022/src/lib/components/form-response/form-response.module.mjs +76 -0
- package/esm2022/src/lib/components/form-response/form-response.service.mjs +54 -0
- package/esm2022/src/lib/components/form-response/index.mjs +2 -0
- package/esm2022/src/lib/components/form-response/public-api.mjs +3 -0
- package/esm2022/src/lib/components/form-response/verben-workflow-ui-src-lib-components-form-response.mjs +5 -0
- package/esm2022/src/lib/components/form-timer/form-timer.component.mjs +47 -0
- package/esm2022/src/lib/components/form-timer/form-timer.module.mjs +28 -0
- package/esm2022/src/lib/components/form-timer/index.mjs +2 -0
- package/esm2022/src/lib/components/form-timer/public-api.mjs +3 -0
- package/esm2022/src/lib/components/form-timer/verben-workflow-ui-src-lib-components-form-timer.mjs +5 -0
- package/esm2022/src/lib/components/form-values/form-values.component.mjs +1157 -0
- package/esm2022/src/lib/components/form-values/form-values.module.mjs +20 -0
- package/esm2022/src/lib/components/form-values/form-values.service.mjs +48 -0
- package/esm2022/src/lib/components/form-values/index.mjs +2 -0
- package/esm2022/src/lib/components/form-values/public-api.mjs +4 -0
- package/esm2022/src/lib/components/form-values/verben-workflow-ui-src-lib-components-form-values.mjs +5 -0
- package/esm2022/src/lib/components/form-viewer/form-viewer.component.mjs +38 -0
- package/esm2022/src/lib/components/form-viewer/form-viewer.module.mjs +78 -0
- package/esm2022/src/lib/components/form-viewer/index.mjs +2 -0
- package/esm2022/src/lib/components/form-viewer/public-api.mjs +3 -0
- package/esm2022/src/lib/components/form-viewer/verben-workflow-ui-src-lib-components-form-viewer.mjs +5 -0
- package/esm2022/src/lib/components/forms/base-table-style.mjs +53 -0
- package/esm2022/src/lib/components/forms/forms.component.mjs +673 -0
- package/esm2022/src/lib/components/forms/forms.module.mjs +18 -0
- package/esm2022/src/lib/components/forms/forms.service.mjs +68 -0
- package/esm2022/src/lib/components/forms/index.mjs +2 -0
- package/esm2022/src/lib/components/forms/public-api.mjs +3 -0
- package/esm2022/src/lib/components/forms/verben-workflow-ui-src-lib-components-forms.mjs +5 -0
- package/esm2022/src/lib/components/journal/index.mjs +2 -0
- package/esm2022/src/lib/components/journal/journal.component.mjs +11 -0
- package/esm2022/src/lib/components/journal/journal.module.mjs +18 -0
- package/esm2022/src/lib/components/journal/public-api.mjs +3 -0
- package/esm2022/src/lib/components/journal/verben-workflow-ui-src-lib-components-journal.mjs +5 -0
- package/esm2022/src/lib/components/my-queue/index.mjs +2 -0
- package/esm2022/src/lib/components/my-queue/my-queue.columns.mjs +34 -0
- package/esm2022/src/lib/components/my-queue/my-queue.component.mjs +342 -0
- package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +502 -0
- package/esm2022/src/lib/components/my-queue/my-queue.module.mjs +47 -0
- package/esm2022/src/lib/components/my-queue/my-queue.service.mjs +144 -0
- package/esm2022/src/lib/components/my-queue/my-queue.state.mjs +108 -0
- package/esm2022/src/lib/components/my-queue/public-api.mjs +4 -0
- package/esm2022/src/lib/components/my-queue/tasks.form.component.mjs +191 -0
- package/esm2022/src/lib/components/my-queue/verben-workflow-ui-src-lib-components-my-queue.mjs +5 -0
- package/esm2022/src/lib/components/operation-popup/index.mjs +2 -0
- package/esm2022/src/lib/components/operation-popup/operation-popup.component.mjs +382 -0
- package/esm2022/src/lib/components/operation-popup/operation-popup.facade.mjs +345 -0
- package/esm2022/src/lib/components/operation-popup/operation-popup.service.mjs +82 -0
- package/esm2022/src/lib/components/operation-popup/operation-popup.state.mjs +44 -0
- package/esm2022/src/lib/components/operation-popup/public-api.mjs +3 -0
- package/esm2022/src/lib/components/operation-popup/verben-workflow-ui-src-lib-components-operation-popup.mjs +5 -0
- package/esm2022/src/lib/components/stage-details/index.mjs +2 -0
- package/esm2022/src/lib/components/stage-details/public-api.mjs +3 -0
- package/esm2022/src/lib/components/stage-details/stage-details.component.mjs +49 -0
- package/esm2022/src/lib/components/stage-details/stage-details.module.mjs +19 -0
- package/esm2022/src/lib/components/stage-details/verben-workflow-ui-src-lib-components-stage-details.mjs +5 -0
- package/esm2022/src/lib/components/task-form/index.mjs +2 -0
- package/esm2022/src/lib/components/task-form/public-api.mjs +3 -0
- package/esm2022/src/lib/components/task-form/task-form.component.mjs +18 -0
- package/esm2022/src/lib/components/task-form/task-form.module.mjs +72 -0
- package/esm2022/src/lib/components/task-form/verben-workflow-ui-src-lib-components-task-form.mjs +5 -0
- package/esm2022/src/lib/components/task-history/index.mjs +2 -0
- package/esm2022/src/lib/components/task-history/public-api.mjs +3 -0
- package/esm2022/src/lib/components/task-history/task-history.component.mjs +249 -0
- package/esm2022/src/lib/components/task-history/task-history.module.mjs +21 -0
- package/esm2022/src/lib/components/task-history/task-history.service.mjs +32 -0
- package/esm2022/src/lib/components/task-history/verben-workflow-ui-src-lib-components-task-history.mjs +5 -0
- package/esm2022/src/lib/components/task-notification/base-table-style.mjs +53 -0
- package/esm2022/src/lib/components/task-notification/index.mjs +2 -0
- package/esm2022/src/lib/components/task-notification/public-api.mjs +3 -0
- package/esm2022/src/lib/components/task-notification/task-notification.component.mjs +670 -0
- package/esm2022/src/lib/components/task-notification/task-notification.module.mjs +18 -0
- package/esm2022/src/lib/components/task-notification/task-notification.service.mjs +256 -0
- package/esm2022/src/lib/components/task-notification/verben-workflow-ui-src-lib-components-task-notification.mjs +5 -0
- package/esm2022/src/lib/components/tasks/index.mjs +2 -0
- package/esm2022/src/lib/components/tasks/public-api.mjs +6 -0
- package/esm2022/src/lib/components/tasks/tasks.columns.mjs +48 -0
- package/esm2022/src/lib/components/tasks/tasks.component.mjs +194 -0
- package/esm2022/src/lib/components/tasks/tasks.facade.mjs +372 -0
- package/esm2022/src/lib/components/tasks/tasks.form.component.mjs +164 -0
- package/esm2022/src/lib/components/tasks/tasks.models.mjs +4 -0
- package/esm2022/src/lib/components/tasks/tasks.module.mjs +52 -0
- package/esm2022/src/lib/components/tasks/tasks.service.mjs +137 -0
- package/esm2022/src/lib/components/tasks/tasks.state.mjs +108 -0
- package/esm2022/src/lib/components/tasks/verben-workflow-ui-src-lib-components-tasks.mjs +5 -0
- package/esm2022/src/lib/components/wf/index.mjs +2 -0
- package/esm2022/src/lib/components/wf/public-api.mjs +4 -0
- package/esm2022/src/lib/components/wf/verben-workflow-ui-src-lib-components-wf.mjs +5 -0
- package/esm2022/src/lib/components/wf/wf.columns.mjs +34 -0
- package/esm2022/src/lib/components/wf/wf.component.mjs +68 -0
- package/esm2022/src/lib/components/wf/wf.module.mjs +22 -0
- package/esm2022/src/lib/components/wf/wf.service.mjs +82 -0
- package/esm2022/src/lib/components/workflow/column.mjs +38 -0
- package/esm2022/src/lib/components/workflow/helper.mjs +47 -0
- package/esm2022/src/lib/components/workflow/index.mjs +2 -0
- package/esm2022/src/lib/components/workflow/public-api.mjs +4 -0
- package/esm2022/src/lib/components/workflow/table-style.mjs +53 -0
- package/esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs +5 -0
- package/esm2022/src/lib/components/workflow/workflow.component.mjs +210 -0
- package/esm2022/src/lib/components/workflow/workflow.module.mjs +19 -0
- package/esm2022/src/lib/components/workflow-designer/action-dialog/action-dialog.component.mjs +127 -0
- package/esm2022/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.mjs +78 -0
- package/esm2022/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.mjs +87 -0
- package/esm2022/src/lib/components/workflow-designer/decision-popup/decision-popup.component.mjs +84 -0
- package/esm2022/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.mjs +1270 -0
- package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.mjs +96 -0
- package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.mjs +2 -0
- package/esm2022/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.mjs +260 -0
- package/esm2022/src/lib/components/workflow-designer/index.mjs +2 -0
- package/esm2022/src/lib/components/workflow-designer/public-api.mjs +5 -0
- package/esm2022/src/lib/components/workflow-designer/services/connection.service.mjs +238 -0
- package/esm2022/src/lib/components/workflow-designer/services/node-management.service.mjs +321 -0
- package/esm2022/src/lib/components/workflow-designer/services/popup.service.mjs +240 -0
- package/esm2022/src/lib/components/workflow-designer/services/swimlane.service.mjs +158 -0
- package/esm2022/src/lib/components/workflow-designer/services/transformer.service.mjs +280 -0
- package/esm2022/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.mjs +177 -0
- package/esm2022/src/lib/components/workflow-designer/stage-node/stage-node.component.mjs +226 -0
- package/esm2022/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.mjs +137 -0
- package/esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs +5 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-data.service.mjs +210 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.component.mjs +460 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.module.mjs +129 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.state.mjs +928 -0
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.types.mjs +2 -0
- package/esm2022/src/lib/components/workflow-stage/index.mjs +2 -0
- package/esm2022/src/lib/components/workflow-stage/public-api.mjs +3 -0
- package/esm2022/src/lib/components/workflow-stage/verben-workflow-ui-src-lib-components-workflow-stage.mjs +5 -0
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.component.mjs +331 -0
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.module.mjs +82 -0
- package/esm2022/src/lib/components/workflows/index.mjs +2 -0
- package/esm2022/src/lib/components/workflows/public-api.mjs +7 -0
- package/esm2022/src/lib/components/workflows/verben-workflow-ui-src-lib-components-workflows.mjs +5 -0
- package/esm2022/src/lib/components/workflows/workflow-form/workflow-form.component.mjs +89 -0
- package/esm2022/src/lib/components/workflows/workflows.api.mjs +63 -0
- package/esm2022/src/lib/components/workflows/workflows.columns.mjs +39 -0
- package/esm2022/src/lib/components/workflows/workflows.component.mjs +236 -0
- package/esm2022/src/lib/components/workflows/workflows.config.mjs +51 -0
- package/esm2022/src/lib/components/workflows/workflows.facade.mjs +114 -0
- package/esm2022/src/lib/components/workflows/workflows.module.mjs +21 -0
- package/esm2022/src/lib/components/workflows/workflows.service.mjs +63 -0
- package/esm2022/src/lib/components/workflows/workflows.state.mjs +23 -0
- package/esm2022/src/lib/models/ActionHistory.mjs +2 -0
- package/esm2022/src/lib/models/ActionType.mjs +11 -0
- package/esm2022/src/lib/models/Actor.mjs +2 -0
- package/esm2022/src/lib/models/ActorTag.mjs +2 -0
- package/esm2022/src/lib/models/Coord.mjs +2 -0
- package/esm2022/src/lib/models/DataExtensionValue.mjs +2 -0
- package/esm2022/src/lib/models/DataType.mjs +27 -0
- package/esm2022/src/lib/models/EAVDataType.mjs +20 -0
- package/esm2022/src/lib/models/EAVEntity.mjs +2 -0
- package/esm2022/src/lib/models/EntityDataValue.mjs +2 -0
- package/esm2022/src/lib/models/EntityProperty.mjs +2 -0
- package/esm2022/src/lib/models/ErrorResponse.mjs +11 -0
- package/esm2022/src/lib/models/Escalation.mjs +2 -0
- package/esm2022/src/lib/models/EscalationCycle.mjs +2 -0
- package/esm2022/src/lib/models/EscalationStage.mjs +2 -0
- package/esm2022/src/lib/models/EscalationType.mjs +7 -0
- package/esm2022/src/lib/models/File.mjs +2 -0
- package/esm2022/src/lib/models/FilterTypes.mjs +9 -0
- package/esm2022/src/lib/models/FlowableStatus.mjs +2 -0
- package/esm2022/src/lib/models/Form.mjs +2 -0
- package/esm2022/src/lib/models/FormEntity.mjs +2 -0
- package/esm2022/src/lib/models/FormFill.mjs +6 -0
- package/esm2022/src/lib/models/FormProperty.mjs +2 -0
- package/esm2022/src/lib/models/FormValue.mjs +6 -0
- package/esm2022/src/lib/models/MailConfig.mjs +2 -0
- package/esm2022/src/lib/models/MessageConfig.mjs +2 -0
- package/esm2022/src/lib/models/MessageMedium.mjs +6 -0
- package/esm2022/src/lib/models/OperationAction.mjs +2 -0
- package/esm2022/src/lib/models/PagedResult.mjs +2 -0
- package/esm2022/src/lib/models/PeriodMode.mjs +12 -0
- package/esm2022/src/lib/models/PermissionConfig.mjs +2 -0
- package/esm2022/src/lib/models/Property.mjs +2 -0
- package/esm2022/src/lib/models/ReportSchedule.mjs +2 -0
- package/esm2022/src/lib/models/ReportType.mjs +7 -0
- package/esm2022/src/lib/models/Resource.mjs +47 -0
- package/esm2022/src/lib/models/ResponseKeyValue.mjs +2 -0
- package/esm2022/src/lib/models/SMSConfig.mjs +2 -0
- package/esm2022/src/lib/models/SearchDynamicWrapper.mjs +2 -0
- package/esm2022/src/lib/models/SearchOperator.mjs +6 -0
- package/esm2022/src/lib/models/SearchPropertySign.mjs +11 -0
- package/esm2022/src/lib/models/SearchPropertyValue.mjs +2 -0
- package/esm2022/src/lib/models/SearchPropertyValueType.mjs +11 -0
- package/esm2022/src/lib/models/Size.mjs +2 -0
- package/esm2022/src/lib/models/SortDirection.mjs +7 -0
- package/esm2022/src/lib/models/StageActorRule.mjs +8 -0
- package/esm2022/src/lib/models/SwimLane.mjs +2 -0
- package/esm2022/src/lib/models/Tag.mjs +2 -0
- package/esm2022/src/lib/models/Task.mjs +2 -0
- package/esm2022/src/lib/models/TaskAssignmentType.mjs +6 -0
- package/esm2022/src/lib/models/TaskNotification.mjs +2 -0
- package/esm2022/src/lib/models/TaskNotificationMessageType.mjs +6 -0
- package/esm2022/src/lib/models/TaskNotificationType.mjs +9 -0
- package/esm2022/src/lib/models/TaskStatus.mjs +9 -0
- package/esm2022/src/lib/models/Workflow.mjs +2 -0
- package/esm2022/src/lib/models/WorkflowAction.mjs +2 -0
- package/esm2022/src/lib/models/WorkflowOperation.mjs +2 -0
- package/esm2022/src/lib/models/WorkflowStage.mjs +2 -0
- package/esm2022/src/lib/models/actors.mjs +2 -0
- package/esm2022/src/lib/models/auth-mechanism.mjs +8 -0
- package/esm2022/src/lib/models/base.mjs +2 -0
- package/esm2022/src/lib/models/index.mjs +2 -0
- package/esm2022/src/lib/models/object-state.mjs +8 -0
- package/esm2022/src/lib/models/operation-type.mjs +7 -0
- package/esm2022/src/lib/models/paged.mjs +2 -0
- package/esm2022/src/lib/models/public-api.mjs +66 -0
- package/esm2022/src/lib/models/query-params.mjs +2 -0
- package/esm2022/src/lib/models/status.mjs +6 -0
- package/esm2022/src/lib/models/task-history.mjs +2 -0
- package/esm2022/src/lib/models/user-access-request-status.mjs +7 -0
- package/esm2022/src/lib/models/user.mjs +2 -0
- package/esm2022/src/lib/models/verben-workflow-ui-src-lib-models.mjs +5 -0
- package/esm2022/src/lib/pipes/async-label.pipe.mjs +25 -0
- package/esm2022/src/lib/pipes/index.mjs +2 -0
- package/esm2022/src/lib/pipes/public-api.mjs +2 -0
- package/esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs +5 -0
- package/esm2022/src/lib/services/environment.service.mjs +26 -0
- package/esm2022/src/lib/services/http-web-request.service.mjs +92 -0
- package/esm2022/src/lib/services/index.mjs +2 -0
- package/esm2022/src/lib/services/label.service.mjs +134 -0
- package/esm2022/src/lib/services/public-api.mjs +5 -0
- package/esm2022/src/lib/services/util.service.mjs +75 -0
- package/esm2022/src/lib/services/verben-workflow-ui-src-lib-services.mjs +5 -0
- package/esm2022/src/lib/shared/base-table-style.mjs +55 -0
- package/esm2022/src/lib/shared/components/base-data-view.component.mjs +154 -0
- package/esm2022/src/lib/shared/components/base-model-field.mjs +21 -0
- package/esm2022/src/lib/shared/index.mjs +7 -0
- package/esm2022/src/lib/shared/models/DataViewConfig.mjs +2 -0
- package/esm2022/src/lib/shared/public-api.mjs +13 -0
- package/esm2022/src/lib/shared/shared.module.mjs +103 -0
- package/esm2022/src/lib/shared/verben-workflow-ui-src-lib-shared.mjs +5 -0
- package/esm2022/verben-workflow-ui.mjs +5 -0
- package/fesm2022/verben-workflow-ui-src-lib-base.mjs +1055 -0
- package/fesm2022/verben-workflow-ui-src-lib-base.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs +484 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs +3891 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs +72 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs +83 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs +159 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs +430 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs +257 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs +1966 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs +766 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs +78 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-values.mjs +1226 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-values.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-viewer.mjs +118 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-viewer.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs +812 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-journal.mjs +33 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-journal.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs +1338 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs +845 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs +72 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs +94 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs +302 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs +995 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs +1049 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs +203 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs +5389 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs +415 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs +365 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs +666 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-models.mjs +261 -0
- package/fesm2022/verben-workflow-ui-src-lib-models.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-pipes.mjs +32 -0
- package/fesm2022/verben-workflow-ui-src-lib-pipes.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-services.mjs +322 -0
- package/fesm2022/verben-workflow-ui-src-lib-services.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-shared.mjs +336 -0
- package/fesm2022/verben-workflow-ui-src-lib-shared.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui.mjs +35 -0
- package/fesm2022/verben-workflow-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/package.json +199 -8
- package/public-api.d.ts +23 -0
- package/src/lib/base/core/base-data-page.facade.d.ts +138 -0
- package/src/lib/base/core/base-data-page.service.d.ts +61 -0
- package/src/lib/base/core/base-data-page.state.d.ts +73 -0
- package/src/lib/base/handlers/filter-handler.service.d.ts +34 -0
- package/src/lib/base/handlers/search-handler.service.d.ts +20 -0
- package/src/lib/base/handlers/sort-handler.service.d.ts +30 -0
- package/src/lib/base/models/api-payload.d.ts +2 -0
- package/src/lib/base/models/page-config.interface.d.ts +24 -0
- package/src/lib/base/models/page-filter-tab-option.interface.d.ts +19 -0
- package/src/lib/base/public-api.d.ts +9 -0
- package/src/lib/base/utils/column-helpers.d.ts +24 -0
- package/src/lib/components/actors/actors.columns.d.ts +3 -0
- package/src/lib/components/actors/actors.component.d.ts +79 -0
- package/src/lib/components/actors/actors.config.d.ts +10 -0
- package/src/lib/components/actors/actors.facade.d.ts +29 -0
- package/src/lib/components/actors/actors.form.component.d.ts +23 -0
- package/src/lib/components/actors/actors.module.d.ts +11 -0
- package/src/lib/components/actors/actors.service.d.ts +33 -0
- package/src/lib/components/actors/actors.state.d.ts +19 -0
- package/src/lib/components/designer/components/label-editor.component.d.ts +22 -0
- package/src/lib/components/designer/components/node-selector.component.d.ts +23 -0
- package/src/lib/components/designer/components/swimlane-label.component.d.ts +12 -0
- package/src/lib/components/designer/components/swimlane-popup.component.d.ts +18 -0
- package/src/lib/components/designer/components/wf-canvas.component.d.ts +37 -0
- package/src/lib/components/designer/components/wf-designer.component.d.ts +22 -0
- package/src/lib/components/designer/components/wf-toolbar.component.d.ts +17 -0
- package/src/lib/components/designer/models/types.d.ts +104 -0
- package/src/lib/components/designer/services/canvas-state.service.d.ts +24 -0
- package/src/lib/components/designer/services/connection-segment-interaction.service.d.ts +36 -0
- package/src/lib/components/designer/services/connection.service.d.ts +47 -0
- package/src/lib/components/designer/services/keyboard-handler.service.d.ts +9 -0
- package/src/lib/components/designer/services/label-management.service.d.ts +14 -0
- package/src/lib/components/designer/services/node-finder.service.d.ts +10 -0
- package/src/lib/components/designer/services/node-interaction.service.d.ts +19 -0
- package/src/lib/components/designer/services/node-precondition.service.d.ts +37 -0
- package/src/lib/components/designer/services/node-selection.service.d.ts +19 -0
- package/src/lib/components/designer/services/orthogonal-router.service.d.ts +36 -0
- package/src/lib/components/designer/services/position-update.service.d.ts +10 -0
- package/src/lib/components/designer/services/rendering.service.d.ts +67 -0
- package/src/lib/components/designer/services/swimlane-management.service.d.ts +19 -0
- package/src/lib/components/designer/services/swimlane-stats.service.d.ts +19 -0
- package/src/lib/components/designer/services/viewport.service.d.ts +10 -0
- package/src/lib/components/designer/services/wf-facade.service.d.ts +67 -0
- package/src/lib/components/designer/services/wf-mapper.service.d.ts +26 -0
- package/src/lib/components/designer/services/wf-persistence.service.d.ts +21 -0
- package/src/lib/components/designer/services/wf-state.service.d.ts +30 -0
- package/src/lib/components/expiration/expiration.component.d.ts +20 -0
- package/src/lib/components/expiration/expiration.module.d.ts +9 -0
- package/src/lib/components/file-render/file-render.component.d.ts +17 -0
- package/src/lib/components/file-render/file-render.module.d.ts +10 -0
- package/src/lib/components/file-upload/file-upload.component.d.ts +22 -0
- package/src/lib/components/file-upload/file-upload.module.d.ts +11 -0
- package/src/lib/components/flowable-status/flowable-status.columns.d.ts +3 -0
- package/src/lib/components/flowable-status/flowable-status.component.d.ts +80 -0
- package/src/lib/components/flowable-status/flowable-status.config.d.ts +11 -0
- package/src/lib/components/flowable-status/flowable-status.facade.d.ts +26 -0
- package/src/lib/components/flowable-status/flowable-status.form.component.d.ts +18 -0
- package/src/lib/components/flowable-status/flowable-status.module.d.ts +11 -0
- package/src/lib/components/flowable-status/flowable-status.service.d.ts +23 -0
- package/src/lib/components/flowable-status/flowable-status.state.d.ts +11 -0
- package/src/lib/components/flowable-status/public-api.d.ts +2 -0
- package/src/lib/components/form-control/form-control.component.d.ts +39 -0
- package/src/lib/components/form-control/form-control.module.d.ts +11 -0
- package/src/lib/components/form-group/base-table-style.d.ts +1 -0
- package/src/lib/components/form-group/form-fields/form-fields.component.d.ts +136 -0
- package/src/lib/components/form-group/form-fields/form-fields.module.d.ts +11 -0
- package/src/lib/components/form-group/form-fields/form-fields.service.d.ts +9 -0
- package/src/lib/components/form-group/form-group.component.d.ts +108 -0
- package/src/lib/components/form-group/form-group.module.d.ts +15 -0
- package/src/lib/components/form-group/form-group.service.d.ts +9 -0
- package/src/lib/components/form-response/form-response.component.d.ts +106 -0
- package/src/lib/components/form-response/form-response.module.d.ts +12 -0
- package/src/lib/components/form-response/form-response.service.d.ts +9 -0
- package/src/lib/components/form-timer/form-timer.component.d.ts +13 -0
- package/src/lib/components/form-timer/form-timer.module.d.ts +9 -0
- package/src/lib/components/form-values/form-values.component.d.ts +118 -0
- package/src/lib/components/form-values/form-values.module.d.ts +10 -0
- package/src/lib/components/form-values/form-values.service.d.ts +9 -0
- package/src/lib/components/form-viewer/form-viewer.component.d.ts +17 -0
- package/src/lib/components/form-viewer/form-viewer.module.d.ts +11 -0
- package/src/lib/components/forms/base-table-style.d.ts +1 -0
- package/src/lib/components/forms/forms.component.d.ts +88 -0
- package/src/lib/components/forms/forms.module.d.ts +8 -0
- package/src/lib/components/forms/forms.service.d.ts +9 -0
- package/src/lib/components/journal/journal.component.d.ts +5 -0
- package/src/lib/components/journal/journal.module.d.ts +8 -0
- package/src/lib/components/my-queue/my-queue.columns.d.ts +3 -0
- package/src/lib/components/my-queue/my-queue.component.d.ts +58 -0
- package/src/lib/components/my-queue/my-queue.facade.d.ts +47 -0
- package/src/lib/components/my-queue/my-queue.module.d.ts +15 -0
- package/src/lib/components/my-queue/my-queue.service.d.ts +65 -0
- package/src/lib/components/my-queue/my-queue.state.d.ts +39 -0
- package/src/lib/components/my-queue/tasks.form.component.d.ts +48 -0
- package/src/lib/components/operation-popup/operation-popup.component.d.ts +62 -0
- package/src/lib/components/operation-popup/operation-popup.facade.d.ts +32 -0
- package/src/lib/components/operation-popup/operation-popup.service.d.ts +23 -0
- package/src/lib/components/operation-popup/operation-popup.state.d.ts +20 -0
- package/src/lib/components/stage-details/stage-details.component.d.ts +24 -0
- package/src/lib/components/stage-details/stage-details.module.d.ts +9 -0
- package/src/lib/components/task-form/task-form.component.d.ts +10 -0
- package/src/lib/components/task-form/task-form.module.d.ts +10 -0
- package/src/lib/components/task-history/task-history.component.d.ts +41 -0
- package/src/lib/components/task-history/task-history.module.d.ts +11 -0
- package/src/lib/components/task-history/task-history.service.d.ts +13 -0
- package/src/lib/components/task-notification/base-table-style.d.ts +1 -0
- package/src/lib/components/task-notification/task-notification.component.d.ts +89 -0
- package/src/lib/components/task-notification/task-notification.module.d.ts +8 -0
- package/src/lib/components/task-notification/task-notification.service.d.ts +32 -0
- package/src/lib/components/tasks/tasks.columns.d.ts +11 -0
- package/src/lib/components/tasks/tasks.component.d.ts +40 -0
- package/src/lib/components/tasks/tasks.facade.d.ts +44 -0
- package/src/lib/components/tasks/tasks.form.component.d.ts +40 -0
- package/src/lib/components/tasks/tasks.models.d.ts +4 -0
- package/src/lib/components/tasks/tasks.module.d.ts +17 -0
- package/src/lib/components/tasks/tasks.service.d.ts +58 -0
- package/src/lib/components/tasks/tasks.state.d.ts +46 -0
- package/src/lib/components/wf/wf.columns.d.ts +3 -0
- package/src/lib/components/wf/wf.component.d.ts +16 -0
- package/src/lib/components/wf/wf.module.d.ts +10 -0
- package/src/lib/components/wf/wf.service.d.ts +51 -0
- package/src/lib/components/workflow/column.d.ts +3 -0
- package/src/lib/components/workflow/helper.d.ts +2 -0
- package/src/lib/components/workflow/table-style.d.ts +1 -0
- package/src/lib/components/workflow/workflow.component.d.ts +57 -0
- package/src/lib/components/workflow/workflow.module.d.ts +9 -0
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.d.ts +34 -0
- package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.d.ts +25 -0
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.d.ts +38 -0
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.d.ts +29 -0
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.d.ts +292 -0
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.d.ts +39 -0
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.d.ts +5 -0
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.d.ts +47 -0
- package/src/lib/components/workflow-designer/services/connection.service.d.ts +101 -0
- package/src/lib/components/workflow-designer/services/node-management.service.d.ts +73 -0
- package/src/lib/components/workflow-designer/services/popup.service.d.ts +147 -0
- package/src/lib/components/workflow-designer/services/swimlane.service.d.ts +66 -0
- package/src/lib/components/workflow-designer/services/transformer.service.d.ts +51 -0
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.d.ts +43 -0
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.d.ts +58 -0
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.d.ts +49 -0
- package/src/lib/components/workflow-designer/workflow-data.service.d.ts +59 -0
- package/src/lib/components/workflow-designer/workflow-designer.component.d.ts +121 -0
- package/src/lib/components/workflow-designer/workflow-designer.module.d.ts +41 -0
- package/src/lib/components/workflow-designer/workflow-designer.state.d.ts +278 -0
- package/src/lib/components/workflow-designer/workflow-designer.types.d.ts +130 -0
- package/src/lib/components/workflow-stage/workflow-stage.component.d.ts +78 -0
- package/src/lib/components/workflow-stage/workflow-stage.module.d.ts +12 -0
- package/src/lib/components/workflows/public-api.d.ts +4 -0
- package/src/lib/components/workflows/workflow-form/workflow-form.component.d.ts +28 -0
- package/src/lib/components/workflows/workflows.api.d.ts +38 -0
- package/src/lib/components/workflows/workflows.columns.d.ts +3 -0
- package/src/lib/components/workflows/workflows.component.d.ts +98 -0
- package/src/lib/components/workflows/workflows.config.d.ts +10 -0
- package/src/lib/components/workflows/workflows.facade.d.ts +41 -0
- package/src/lib/components/workflows/workflows.module.d.ts +11 -0
- package/src/lib/components/workflows/workflows.service.d.ts +32 -0
- package/src/lib/components/workflows/workflows.state.d.ts +15 -0
- package/src/lib/models/ActionHistory.d.ts +16 -0
- package/src/lib/models/ActionType.d.ts +9 -0
- package/src/lib/models/Actor.d.ts +11 -0
- package/src/lib/models/ActorTag.d.ts +6 -0
- package/src/lib/models/Coord.d.ts +4 -0
- package/src/lib/models/DataExtensionValue.d.ts +4 -0
- package/src/lib/models/DataType.d.ts +25 -0
- package/src/lib/models/EAVDataType.d.ts +18 -0
- package/src/lib/models/EAVEntity.d.ts +4 -0
- package/src/lib/models/EntityDataValue.d.ts +6 -0
- package/src/lib/models/EntityProperty.d.ts +7 -0
- package/src/lib/models/ErrorResponse.d.ts +6 -0
- package/src/lib/models/Escalation.d.ts +14 -0
- package/src/lib/models/EscalationCycle.d.ts +12 -0
- package/src/lib/models/EscalationStage.d.ts +10 -0
- package/src/lib/models/EscalationType.d.ts +5 -0
- package/src/lib/models/File.d.ts +7 -0
- package/src/lib/models/FilterTypes.d.ts +6 -0
- package/src/lib/models/FlowableStatus.d.ts +5 -0
- package/src/lib/models/Form.d.ts +13 -0
- package/src/lib/models/FormEntity.d.ts +13 -0
- package/src/lib/models/FormFill.d.ts +15 -0
- package/src/lib/models/FormProperty.d.ts +15 -0
- package/src/lib/models/FormValue.d.ts +13 -0
- package/src/lib/models/MailConfig.d.ts +12 -0
- package/src/lib/models/MessageConfig.d.ts +3 -0
- package/src/lib/models/MessageMedium.d.ts +4 -0
- package/src/lib/models/OperationAction.d.ts +14 -0
- package/src/lib/models/PagedResult.d.ts +5 -0
- package/src/lib/models/PeriodMode.d.ts +10 -0
- package/src/lib/models/PermissionConfig.d.ts +7 -0
- package/src/lib/models/Property.d.ts +5 -0
- package/src/lib/models/ReportSchedule.d.ts +22 -0
- package/src/lib/models/ReportType.d.ts +5 -0
- package/src/lib/models/Resource.d.ts +20 -0
- package/src/lib/models/ResponseKeyValue.d.ts +5 -0
- package/src/lib/models/SMSConfig.d.ts +10 -0
- package/src/lib/models/SearchDynamicWrapper.d.ts +5 -0
- package/src/lib/models/SearchOperator.d.ts +4 -0
- package/src/lib/models/SearchPropertySign.d.ts +9 -0
- package/src/lib/models/SearchPropertyValue.d.ts +12 -0
- package/src/lib/models/SearchPropertyValueType.d.ts +9 -0
- package/src/lib/models/Size.d.ts +4 -0
- package/src/lib/models/SortDirection.d.ts +5 -0
- package/src/lib/models/StageActorRule.d.ts +6 -0
- package/src/lib/models/SwimLane.d.ts +13 -0
- package/src/lib/models/Tag.d.ts +6 -0
- package/src/lib/models/Task.d.ts +32 -0
- package/src/lib/models/TaskAssignmentType.d.ts +4 -0
- package/src/lib/models/TaskNotification.d.ts +14 -0
- package/src/lib/models/TaskNotificationMessageType.d.ts +4 -0
- package/src/lib/models/TaskNotificationType.d.ts +7 -0
- package/src/lib/models/TaskStatus.d.ts +7 -0
- package/src/lib/models/Workflow.d.ts +21 -0
- package/src/lib/models/WorkflowAction.d.ts +14 -0
- package/src/lib/models/WorkflowOperation.d.ts +6 -0
- package/src/lib/models/WorkflowStage.d.ts +26 -0
- package/src/lib/models/actors.d.ts +8 -0
- package/src/lib/models/auth-mechanism.d.ts +13 -0
- package/src/lib/models/base.d.ts +13 -0
- package/src/lib/models/object-state.d.ts +6 -0
- package/src/lib/models/operation-type.d.ts +5 -0
- package/src/lib/models/paged.d.ts +9 -0
- package/src/lib/models/query-params.d.ts +8 -0
- package/src/lib/models/status.d.ts +4 -0
- package/src/lib/models/task-history.d.ts +17 -0
- package/src/lib/models/user-access-request-status.d.ts +5 -0
- package/src/lib/models/user.d.ts +24 -0
- package/src/lib/pipes/async-label.pipe.d.ts +11 -0
- package/src/lib/services/environment.service.d.ts +23 -0
- package/src/lib/services/http-web-request.service.d.ts +23 -0
- package/src/lib/services/label.service.d.ts +15 -0
- package/src/lib/services/public-api.d.ts +4 -0
- package/src/lib/services/util.service.d.ts +20 -0
- package/src/lib/shared/base-table-style.d.ts +2 -0
- package/src/lib/shared/components/base-data-view.component.d.ts +41 -0
- package/src/lib/shared/components/base-model-field.d.ts +26 -0
- package/src/lib/shared/models/DataViewConfig.d.ts +11 -0
- package/src/lib/shared/public-api.d.ts +5 -0
- package/src/lib/shared/shared.module.d.ts +11 -0
- package/ng-package.json +0 -15
- package/src/lib/base/core/base-data-page.facade.ts +0 -533
- package/src/lib/base/core/base-data-page.service.ts +0 -222
- package/src/lib/base/core/base-data-page.state.ts +0 -287
- package/src/lib/base/handlers/filter-handler.service.ts +0 -169
- package/src/lib/base/handlers/search-handler.service.ts +0 -33
- package/src/lib/base/handlers/sort-handler.service.ts +0 -93
- package/src/lib/base/models/api-payload.ts +0 -13
- package/src/lib/base/models/page-config.interface.ts +0 -49
- package/src/lib/base/models/page-filter-tab-option.interface.ts +0 -20
- package/src/lib/base/ng-package.json +0 -6
- package/src/lib/base/public-api.ts +0 -16
- package/src/lib/base/utils/column-helpers.ts +0 -77
- package/src/lib/components/actors/actors.columns.ts +0 -40
- package/src/lib/components/actors/actors.component.css +0 -0
- package/src/lib/components/actors/actors.component.html +0 -320
- package/src/lib/components/actors/actors.component.spec.ts +0 -23
- package/src/lib/components/actors/actors.component.ts +0 -221
- package/src/lib/components/actors/actors.config.ts +0 -55
- package/src/lib/components/actors/actors.facade.ts +0 -71
- package/src/lib/components/actors/actors.form.component.html +0 -37
- package/src/lib/components/actors/actors.form.component.ts +0 -69
- package/src/lib/components/actors/actors.model.ts +0 -4
- package/src/lib/components/actors/actors.module.ts +0 -13
- package/src/lib/components/actors/actors.service.ts +0 -85
- package/src/lib/components/actors/actors.state.ts +0 -31
- package/src/lib/components/actors/ng-package.json +0 -6
- package/src/lib/components/designer/components/label-editor.component.ts +0 -188
- package/src/lib/components/designer/components/node-selector.component.ts +0 -208
- package/src/lib/components/designer/components/swimlane-label.component.ts +0 -102
- package/src/lib/components/designer/components/swimlane-popup.component.ts +0 -51
- package/src/lib/components/designer/components/wf-canvas.component.ts +0 -495
- package/src/lib/components/designer/components/wf-designer.component.ts +0 -182
- package/src/lib/components/designer/components/wf-node.component.ts +0 -91
- package/src/lib/components/designer/components/wf-properties-popup.component.ts +0 -257
- package/src/lib/components/designer/components/wf-toolbar.component.ts +0 -84
- package/src/lib/components/designer/models/types.ts +0 -133
- package/src/lib/components/designer/ng-package.json +0 -6
- package/src/lib/components/designer/services/canvas-state.service.ts +0 -63
- package/src/lib/components/designer/services/connection-segment-interaction.service.ts +0 -141
- package/src/lib/components/designer/services/connection.service.ts +0 -351
- package/src/lib/components/designer/services/keyboard-handler.service.ts +0 -39
- package/src/lib/components/designer/services/label-management.service.ts +0 -72
- package/src/lib/components/designer/services/node-finder.service.ts +0 -34
- package/src/lib/components/designer/services/node-interaction.service.ts +0 -135
- package/src/lib/components/designer/services/node-placement.service.ts +0 -77
- package/src/lib/components/designer/services/node-precondition.service.ts +0 -138
- package/src/lib/components/designer/services/node-renderer.service.ts +0 -97
- package/src/lib/components/designer/services/node-selection.service.ts +0 -110
- package/src/lib/components/designer/services/orthogonal-router.service.ts +0 -233
- package/src/lib/components/designer/services/position-update.service.ts +0 -56
- package/src/lib/components/designer/services/rendering.service.ts +0 -296
- package/src/lib/components/designer/services/swimlane-management.service.ts +0 -189
- package/src/lib/components/designer/services/swimlane-stats.service.ts +0 -53
- package/src/lib/components/designer/services/tag-helper.service.ts +0 -80
- package/src/lib/components/designer/services/viewport.service.ts +0 -30
- package/src/lib/components/designer/services/wf-facade.service.ts +0 -287
- package/src/lib/components/designer/services/wf-mapper.service.ts +0 -450
- package/src/lib/components/designer/services/wf-persistence.service.ts +0 -184
- package/src/lib/components/designer/services/wf-state.service.ts +0 -143
- package/src/lib/components/expiration/expiration.component.css +0 -0
- package/src/lib/components/expiration/expiration.component.html +0 -21
- package/src/lib/components/expiration/expiration.component.spec.ts +0 -23
- package/src/lib/components/expiration/expiration.component.ts +0 -52
- package/src/lib/components/expiration/expiration.module.ts +0 -11
- package/src/lib/components/expiration/ng-package.json +0 -6
- package/src/lib/components/file-render/file-render.component.css +0 -4
- package/src/lib/components/file-render/file-render.component.html +0 -21
- package/src/lib/components/file-render/file-render.component.spec.ts +0 -23
- package/src/lib/components/file-render/file-render.component.ts +0 -34
- package/src/lib/components/file-render/file-render.module.ts +0 -19
- package/src/lib/components/file-render/ng-package.json +0 -6
- package/src/lib/components/file-upload/file-upload.component.css +0 -0
- package/src/lib/components/file-upload/file-upload.component.html +0 -69
- package/src/lib/components/file-upload/file-upload.component.spec.ts +0 -23
- package/src/lib/components/file-upload/file-upload.component.ts +0 -87
- package/src/lib/components/file-upload/file-upload.module.ts +0 -40
- package/src/lib/components/file-upload/ng-package.json +0 -6
- package/src/lib/components/flowable-status/flowable-status.columns.ts +0 -23
- package/src/lib/components/flowable-status/flowable-status.component.css +0 -1
- package/src/lib/components/flowable-status/flowable-status.component.html +0 -166
- package/src/lib/components/flowable-status/flowable-status.component.ts +0 -247
- package/src/lib/components/flowable-status/flowable-status.config.ts +0 -54
- package/src/lib/components/flowable-status/flowable-status.facade.ts +0 -70
- package/src/lib/components/flowable-status/flowable-status.form.component.html +0 -13
- package/src/lib/components/flowable-status/flowable-status.form.component.ts +0 -51
- package/src/lib/components/flowable-status/flowable-status.model.ts +0 -3
- package/src/lib/components/flowable-status/flowable-status.module.ts +0 -13
- package/src/lib/components/flowable-status/flowable-status.service.ts +0 -39
- package/src/lib/components/flowable-status/flowable-status.state.ts +0 -10
- package/src/lib/components/flowable-status/ng-package.json +0 -6
- package/src/lib/components/flowable-status/public-api.ts +0 -3
- package/src/lib/components/form-control/form-control.component.css +0 -0
- package/src/lib/components/form-control/form-control.component.html +0 -259
- package/src/lib/components/form-control/form-control.component.spec.ts +0 -23
- package/src/lib/components/form-control/form-control.component.ts +0 -197
- package/src/lib/components/form-control/form-control.module.ts +0 -47
- package/src/lib/components/form-control/ng-package.json +0 -6
- package/src/lib/components/form-group/base-table-style.ts +0 -52
- package/src/lib/components/form-group/form-fields/form-fields.component.css +0 -114
- package/src/lib/components/form-group/form-fields/form-fields.component.html +0 -621
- package/src/lib/components/form-group/form-fields/form-fields.component.spec.ts +0 -23
- package/src/lib/components/form-group/form-fields/form-fields.component.ts +0 -1115
- package/src/lib/components/form-group/form-fields/form-fields.module.ts +0 -48
- package/src/lib/components/form-group/form-fields/form-fields.service.ts +0 -70
- package/src/lib/components/form-group/form-fields/helper.ts +0 -45
- package/src/lib/components/form-group/form-group.component.css +0 -113
- package/src/lib/components/form-group/form-group.component.html +0 -486
- package/src/lib/components/form-group/form-group.component.spec.ts +0 -22
- package/src/lib/components/form-group/form-group.component.ts +0 -789
- package/src/lib/components/form-group/form-group.module.ts +0 -54
- package/src/lib/components/form-group/form-group.service.ts +0 -53
- package/src/lib/components/form-group/helper.ts +0 -45
- package/src/lib/components/form-group/ng-package.json +0 -6
- package/src/lib/components/form-response/form-response.component.css +0 -114
- package/src/lib/components/form-response/form-response.component.html +0 -188
- package/src/lib/components/form-response/form-response.component.spec.ts +0 -23
- package/src/lib/components/form-response/form-response.component.ts +0 -735
- package/src/lib/components/form-response/form-response.module.ts +0 -48
- package/src/lib/components/form-response/form-response.service.ts +0 -52
- package/src/lib/components/form-response/helper.ts +0 -222
- package/src/lib/components/form-response/ng-package.json +0 -6
- package/src/lib/components/form-timer/form-timer.component.css +0 -0
- package/src/lib/components/form-timer/form-timer.component.html +0 -47
- package/src/lib/components/form-timer/form-timer.component.spec.ts +0 -23
- package/src/lib/components/form-timer/form-timer.component.ts +0 -50
- package/src/lib/components/form-timer/form-timer.module.ts +0 -19
- package/src/lib/components/form-timer/ng-package.json +0 -6
- package/src/lib/components/form-values/form-values.component.css +0 -48
- package/src/lib/components/form-values/form-values.component.html +0 -225
- package/src/lib/components/form-values/form-values.component.ts +0 -1437
- package/src/lib/components/form-values/form-values.module.ts +0 -13
- package/src/lib/components/form-values/form-values.service.ts +0 -45
- package/src/lib/components/form-values/ng-package.json +0 -6
- package/src/lib/components/form-viewer/form-viewer.component.css +0 -4
- package/src/lib/components/form-viewer/form-viewer.component.html +0 -62
- package/src/lib/components/form-viewer/form-viewer.component.spec.ts +0 -23
- package/src/lib/components/form-viewer/form-viewer.component.ts +0 -31
- package/src/lib/components/form-viewer/form-viewer.module.ts +0 -52
- package/src/lib/components/form-viewer/ng-package.json +0 -6
- package/src/lib/components/forms/base-table-style.ts +0 -52
- package/src/lib/components/forms/forms.component.css +0 -126
- package/src/lib/components/forms/forms.component.html +0 -538
- package/src/lib/components/forms/forms.component.spec.ts +0 -23
- package/src/lib/components/forms/forms.component.ts +0 -810
- package/src/lib/components/forms/forms.module.ts +0 -10
- package/src/lib/components/forms/forms.service.spec.ts +0 -16
- package/src/lib/components/forms/forms.service.ts +0 -65
- package/src/lib/components/forms/ng-package.json +0 -6
- package/src/lib/components/journal/journal.component.css +0 -0
- package/src/lib/components/journal/journal.component.html +0 -1
- package/src/lib/components/journal/journal.component.spec.ts +0 -23
- package/src/lib/components/journal/journal.component.ts +0 -10
- package/src/lib/components/journal/journal.module.ts +0 -10
- package/src/lib/components/journal/ng-package.json +0 -6
- package/src/lib/components/my-queue/my-queue.columns.ts +0 -37
- package/src/lib/components/my-queue/my-queue.component.css +0 -8
- package/src/lib/components/my-queue/my-queue.component.html +0 -319
- package/src/lib/components/my-queue/my-queue.component.spec.ts +0 -23
- package/src/lib/components/my-queue/my-queue.component.ts +0 -409
- package/src/lib/components/my-queue/my-queue.facade.ts +0 -670
- package/src/lib/components/my-queue/my-queue.helper.ts +0 -71
- package/src/lib/components/my-queue/my-queue.module.ts +0 -28
- package/src/lib/components/my-queue/my-queue.service.spec.ts +0 -16
- package/src/lib/components/my-queue/my-queue.service.ts +0 -262
- package/src/lib/components/my-queue/my-queue.state.ts +0 -133
- package/src/lib/components/my-queue/ng-package.json +0 -6
- package/src/lib/components/my-queue/tasks.form.component.html +0 -168
- package/src/lib/components/my-queue/tasks.form.component.ts +0 -201
- package/src/lib/components/operation-popup/ng-package.json +0 -6
- package/src/lib/components/operation-popup/operation-popup.component.css +0 -1
- package/src/lib/components/operation-popup/operation-popup.component.html +0 -107
- package/src/lib/components/operation-popup/operation-popup.component.ts +0 -476
- package/src/lib/components/operation-popup/operation-popup.facade.ts +0 -435
- package/src/lib/components/operation-popup/operation-popup.service.ts +0 -143
- package/src/lib/components/operation-popup/operation-popup.state.ts +0 -49
- package/src/lib/components/stage-details/ng-package.json +0 -6
- package/src/lib/components/stage-details/stage-details.component.css +0 -0
- package/src/lib/components/stage-details/stage-details.component.html +0 -95
- package/src/lib/components/stage-details/stage-details.component.spec.ts +0 -23
- package/src/lib/components/stage-details/stage-details.component.ts +0 -43
- package/src/lib/components/stage-details/stage-details.module.ts +0 -11
- package/src/lib/components/task-form/ng-package.json +0 -6
- package/src/lib/components/task-form/task-form.component.css +0 -0
- package/src/lib/components/task-form/task-form.component.html +0 -38
- package/src/lib/components/task-form/task-form.component.spec.ts +0 -23
- package/src/lib/components/task-form/task-form.component.ts +0 -15
- package/src/lib/components/task-form/task-form.module.ts +0 -31
- package/src/lib/components/task-history/ng-package.json +0 -6
- package/src/lib/components/task-history/task-history.component.css +0 -334
- package/src/lib/components/task-history/task-history.component.html +0 -292
- package/src/lib/components/task-history/task-history.component.spec.ts +0 -23
- package/src/lib/components/task-history/task-history.component.ts +0 -284
- package/src/lib/components/task-history/task-history.module.ts +0 -12
- package/src/lib/components/task-history/task-history.service.ts +0 -32
- package/src/lib/components/task-notification/base-table-style.ts +0 -52
- package/src/lib/components/task-notification/ng-package.json +0 -6
- package/src/lib/components/task-notification/task-notification.component.css +0 -94
- package/src/lib/components/task-notification/task-notification.component.html +0 -585
- package/src/lib/components/task-notification/task-notification.component.spec.ts +0 -23
- package/src/lib/components/task-notification/task-notification.component.ts +0 -793
- package/src/lib/components/task-notification/task-notification.module.ts +0 -10
- package/src/lib/components/task-notification/task-notification.service.spec.ts +0 -16
- package/src/lib/components/task-notification/task-notification.service.ts +0 -397
- package/src/lib/components/tasks/ng-package.json +0 -6
- package/src/lib/components/tasks/tasks.columns.ts +0 -50
- package/src/lib/components/tasks/tasks.component.css +0 -4
- package/src/lib/components/tasks/tasks.component.html +0 -385
- package/src/lib/components/tasks/tasks.component.spec.ts +0 -23
- package/src/lib/components/tasks/tasks.component.ts +0 -212
- package/src/lib/components/tasks/tasks.facade.ts +0 -482
- package/src/lib/components/tasks/tasks.form.component.html +0 -181
- package/src/lib/components/tasks/tasks.form.component.ts +0 -174
- package/src/lib/components/tasks/tasks.helper.ts +0 -71
- package/src/lib/components/tasks/tasks.models.ts +0 -4
- package/src/lib/components/tasks/tasks.module.ts +0 -29
- package/src/lib/components/tasks/tasks.service.spec.ts +0 -16
- package/src/lib/components/tasks/tasks.service.ts +0 -215
- package/src/lib/components/tasks/tasks.state.ts +0 -144
- package/src/lib/components/wf/ng-package.json +0 -6
- package/src/lib/components/wf/wf.columns.ts +0 -36
- package/src/lib/components/wf/wf.component.css +0 -0
- package/src/lib/components/wf/wf.component.html +0 -35
- package/src/lib/components/wf/wf.component.spec.ts +0 -23
- package/src/lib/components/wf/wf.component.ts +0 -71
- package/src/lib/components/wf/wf.facade.ts +0 -266
- package/src/lib/components/wf/wf.helper.ts +0 -25
- package/src/lib/components/wf/wf.module.ts +0 -14
- package/src/lib/components/wf/wf.service.spec.ts +0 -16
- package/src/lib/components/wf/wf.service.ts +0 -98
- package/src/lib/components/wf/wf.state.ts +0 -99
- package/src/lib/components/workflow/column.ts +0 -40
- package/src/lib/components/workflow/helper.ts +0 -53
- package/src/lib/components/workflow/ng-package.json +0 -6
- package/src/lib/components/workflow/table-style.ts +0 -53
- package/src/lib/components/workflow/workflow.component.css +0 -0
- package/src/lib/components/workflow/workflow.component.html +0 -226
- package/src/lib/components/workflow/workflow.component.spec.ts +0 -23
- package/src/lib/components/workflow/workflow.component.ts +0 -224
- package/src/lib/components/workflow/workflow.module.ts +0 -11
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.css +0 -9
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.html +0 -134
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.ts +0 -147
- package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.css +0 -0
- package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.html +0 -45
- package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.ts +0 -83
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.css +0 -7
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.html +0 -89
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.ts +0 -87
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.css +0 -11
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.html +0 -74
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.ts +0 -80
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.css +0 -70
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.html +0 -454
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.ts +0 -1654
- package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.connection-drop.spec.ts +0 -100
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.css +0 -63
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.html +0 -49
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.ts +0 -86
- package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.ts +0 -7
- package/src/lib/components/workflow-designer/docs/01-architecture.md +0 -145
- package/src/lib/components/workflow-designer/docs/02-coordinate-system.md +0 -171
- package/src/lib/components/workflow-designer/docs/03-data-model.md +0 -163
- package/src/lib/components/workflow-designer/docs/04-interactions.md +0 -156
- package/src/lib/components/workflow-designer/docs/05-persistence.md +0 -117
- package/src/lib/components/workflow-designer/docs/06-known-issues.md +0 -181
- package/src/lib/components/workflow-designer/docs/07-integration.md +0 -178
- package/src/lib/components/workflow-designer/docs/08-api-reference.md +0 -187
- package/src/lib/components/workflow-designer/docs/09-development.md +0 -141
- package/src/lib/components/workflow-designer/docs/README.md +0 -81
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.css +0 -13
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.html +0 -204
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.ts +0 -308
- package/src/lib/components/workflow-designer/ng-package.json +0 -6
- package/src/lib/components/workflow-designer/services/connection.service.ts +0 -325
- package/src/lib/components/workflow-designer/services/node-management.service.ts +0 -372
- package/src/lib/components/workflow-designer/services/popup.service.ts +0 -276
- package/src/lib/components/workflow-designer/services/swimlane.service.ts +0 -176
- package/src/lib/components/workflow-designer/services/transformer.service.ts +0 -318
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.css +0 -0
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.html +0 -208
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.ts +0 -194
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.css +0 -15
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.html +0 -93
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/stage-node/stage-node.component.ts +0 -258
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.css +0 -0
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.html +0 -150
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.ts +0 -153
- package/src/lib/components/workflow-designer/workflow-data.service.spec.ts +0 -16
- package/src/lib/components/workflow-designer/workflow-data.service.ts +0 -290
- package/src/lib/components/workflow-designer/workflow-designer.component.css +0 -59
- package/src/lib/components/workflow-designer/workflow-designer.component.html +0 -29
- package/src/lib/components/workflow-designer/workflow-designer.component.spec.ts +0 -23
- package/src/lib/components/workflow-designer/workflow-designer.component.ts +0 -548
- package/src/lib/components/workflow-designer/workflow-designer.models.ts +0 -114
- package/src/lib/components/workflow-designer/workflow-designer.module.ts +0 -90
- package/src/lib/components/workflow-designer/workflow-designer.state.ts +0 -1123
- package/src/lib/components/workflow-designer/workflow-designer.types.ts +0 -141
- package/src/lib/components/workflow-stage/ng-package.json +0 -6
- package/src/lib/components/workflow-stage/workflow-stage.component.css +0 -24
- package/src/lib/components/workflow-stage/workflow-stage.component.html +0 -339
- package/src/lib/components/workflow-stage/workflow-stage.component.spec.ts +0 -23
- package/src/lib/components/workflow-stage/workflow-stage.component.ts +0 -355
- package/src/lib/components/workflow-stage/workflow-stage.module.ts +0 -53
- package/src/lib/components/workflows/ng-package.json +0 -6
- package/src/lib/components/workflows/public-api.ts +0 -6
- package/src/lib/components/workflows/workflow-form/workflow-form.component.css +0 -0
- package/src/lib/components/workflows/workflow-form/workflow-form.component.html +0 -138
- package/src/lib/components/workflows/workflow-form/workflow-form.component.spec.ts +0 -23
- package/src/lib/components/workflows/workflow-form/workflow-form.component.ts +0 -85
- package/src/lib/components/workflows/workflows.api.ts +0 -117
- package/src/lib/components/workflows/workflows.columns.ts +0 -41
- package/src/lib/components/workflows/workflows.component.css +0 -4
- package/src/lib/components/workflows/workflows.component.html +0 -309
- package/src/lib/components/workflows/workflows.component.spec.ts +0 -23
- package/src/lib/components/workflows/workflows.component.ts +0 -303
- package/src/lib/components/workflows/workflows.config.ts +0 -58
- package/src/lib/components/workflows/workflows.facade.ts +0 -147
- package/src/lib/components/workflows/workflows.module.ts +0 -14
- package/src/lib/components/workflows/workflows.service.spec.ts +0 -16
- package/src/lib/components/workflows/workflows.service.ts +0 -88
- package/src/lib/components/workflows/workflows.state.ts +0 -21
- package/src/lib/models/ActionHistory.ts +0 -19
- package/src/lib/models/ActionType.ts +0 -9
- package/src/lib/models/Actor.ts +0 -12
- package/src/lib/models/ActorTag.ts +0 -8
- package/src/lib/models/Coord.ts +0 -4
- package/src/lib/models/DataExtensionValue.ts +0 -5
- package/src/lib/models/DataType.ts +0 -25
- package/src/lib/models/EAVDataType.ts +0 -18
- package/src/lib/models/EAVEntity.ts +0 -5
- package/src/lib/models/EntityDataValue.ts +0 -7
- package/src/lib/models/EntityProperty.ts +0 -8
- package/src/lib/models/ErrorResponse.ts +0 -7
- package/src/lib/models/Escalation.ts +0 -15
- package/src/lib/models/EscalationCycle.ts +0 -13
- package/src/lib/models/EscalationStage.ts +0 -11
- package/src/lib/models/EscalationType.ts +0 -5
- package/src/lib/models/File.ts +0 -8
- package/src/lib/models/FilterTypes.ts +0 -8
- package/src/lib/models/FlowableStatus.ts +0 -6
- package/src/lib/models/Form.ts +0 -14
- package/src/lib/models/FormEntity.ts +0 -14
- package/src/lib/models/FormFill.ts +0 -16
- package/src/lib/models/FormProperty.ts +0 -16
- package/src/lib/models/FormValue.ts +0 -19
- package/src/lib/models/MailConfig.ts +0 -13
- package/src/lib/models/MessageConfig.ts +0 -5
- package/src/lib/models/MessageMedium.ts +0 -4
- package/src/lib/models/OperationAction.ts +0 -15
- package/src/lib/models/PagedResult.ts +0 -5
- package/src/lib/models/PeriodMode.ts +0 -10
- package/src/lib/models/PermissionConfig.ts +0 -8
- package/src/lib/models/Property.ts +0 -6
- package/src/lib/models/ReportSchedule.ts +0 -23
- package/src/lib/models/ReportType.ts +0 -5
- package/src/lib/models/Resource.ts +0 -57
- package/src/lib/models/ResponseKeyValue.ts +0 -5
- package/src/lib/models/SMSConfig.ts +0 -11
- package/src/lib/models/SearchDynamicWrapper.ts +0 -6
- package/src/lib/models/SearchOperator.ts +0 -4
- package/src/lib/models/SearchPropertySign.ts +0 -9
- package/src/lib/models/SearchPropertyValue.ts +0 -13
- package/src/lib/models/SearchPropertyValueType.ts +0 -9
- package/src/lib/models/Size.ts +0 -4
- package/src/lib/models/SortDirection.ts +0 -5
- package/src/lib/models/StageActorRule.ts +0 -6
- package/src/lib/models/SwimLane.ts +0 -14
- package/src/lib/models/Tag.ts +0 -7
- package/src/lib/models/Task.ts +0 -33
- package/src/lib/models/TaskAssignmentType.ts +0 -4
- package/src/lib/models/TaskNotification.ts +0 -16
- package/src/lib/models/TaskNotificationMessageType.ts +0 -4
- package/src/lib/models/TaskNotificationType.ts +0 -7
- package/src/lib/models/TaskStatus.ts +0 -7
- package/src/lib/models/Workflow.ts +0 -22
- package/src/lib/models/WorkflowAction.ts +0 -15
- package/src/lib/models/WorkflowOperation.ts +0 -7
- package/src/lib/models/WorkflowStage.ts +0 -27
- package/src/lib/models/actors.ts +0 -10
- package/src/lib/models/auth-mechanism.ts +0 -14
- package/src/lib/models/base.ts +0 -14
- package/src/lib/models/ng-package.json +0 -6
- package/src/lib/models/object-state.ts +0 -6
- package/src/lib/models/operation-type.ts +0 -6
- package/src/lib/models/paged.ts +0 -9
- package/src/lib/models/query-params.ts +0 -9
- package/src/lib/models/status.ts +0 -5
- package/src/lib/models/task-history.ts +0 -14
- package/src/lib/models/user-access-request-status.ts +0 -5
- package/src/lib/models/user.ts +0 -25
- package/src/lib/pipes/async-label.pipe.spec.ts +0 -12
- package/src/lib/pipes/async-label.pipe.ts +0 -30
- package/src/lib/pipes/ng-package.json +0 -6
- package/src/lib/services/environment.service.spec.ts +0 -16
- package/src/lib/services/environment.service.ts +0 -31
- package/src/lib/services/http-web-request.service.spec.ts +0 -16
- package/src/lib/services/http-web-request.service.ts +0 -154
- package/src/lib/services/label.service.spec.ts +0 -16
- package/src/lib/services/label.service.ts +0 -182
- package/src/lib/services/ng-package.json +0 -6
- package/src/lib/services/public-api.ts +0 -5
- package/src/lib/services/util.service.spec.ts +0 -16
- package/src/lib/services/util.service.ts +0 -72
- package/src/lib/shared/base-table-style.ts +0 -56
- package/src/lib/shared/components/base-data-view.component.ts +0 -187
- package/src/lib/shared/components/base-model-field.ts +0 -31
- package/src/lib/shared/models/DataViewConfig.ts +0 -19
- package/src/lib/shared/ng-package.json +0 -6
- package/src/lib/shared/public-api.ts +0 -14
- package/src/lib/shared/shared.module.ts +0 -67
- package/src/lib/utils/index.ts +0 -1
- package/src/lib/utils/public-api.ts +0 -2
- package/src/lib/utils/store.ts +0 -50
- package/src/public-api.ts +0 -58
- package/src/styles.css +0 -96
- package/tailwind.config copy.js +0 -33
- package/tailwind.config.js +0 -20
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
- /package/src/lib/base/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/actors/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/actors/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/designer/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/designer/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/expiration/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/expiration/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/file-render/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/file-render/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/file-upload/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/file-upload/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/flowable-status/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-control/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-control/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/form-group/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-group/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/form-response/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-response/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/form-timer/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-timer/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/form-values/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-values/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/form-viewer/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/form-viewer/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/forms/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/forms/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/journal/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/journal/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/my-queue/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/my-queue/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/operation-popup/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/operation-popup/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/stage-details/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/stage-details/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/task-form/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/task-form/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/task-history/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/task-history/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/task-notification/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/task-notification/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/tasks/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/tasks/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/wf/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/wf/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/workflow/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/workflow/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/workflow-designer/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/workflow-designer/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/workflow-stage/{index.ts → index.d.ts} +0 -0
- /package/src/lib/components/workflow-stage/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/components/workflows/{index.ts → index.d.ts} +0 -0
- /package/src/lib/models/{index.ts → index.d.ts} +0 -0
- /package/src/lib/models/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/pipes/{index.ts → index.d.ts} +0 -0
- /package/src/lib/pipes/{public-api.ts → public-api.d.ts} +0 -0
- /package/src/lib/services/{index.ts → index.d.ts} +0 -0
- /package/src/lib/shared/{index.ts → index.d.ts} +0 -0
- /package/{src/styles → styles}/styles.css +0 -0
|
@@ -0,0 +1,1966 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, EventEmitter, Component, Input, ViewChild, Output, NgModule } from '@angular/core';
|
|
3
|
+
import { Subject, debounceTime } from 'rxjs';
|
|
4
|
+
import * as i6 from 'verben-ng-ui';
|
|
5
|
+
import { DataFilterType, ConditionalOptions, DataTableModule, SvgModule, VerbenPopUpModule, DataViewModule, VerbenaButtonModule, CardDataViewModule, DropDownModule, TableFilterModule, VisibleColumnModule, SortTableModule, DataExportModule, VerbenaInputModule, VerbenaSwitchModule, ChipModule } from 'verben-ng-ui';
|
|
6
|
+
import { Status, ErrorResponse, SortDirection, ObjectState, SearchOperator, SearchPropertySign, SearchPropertyValueType, DataType } from 'verben-workflow-ui/src/lib/models';
|
|
7
|
+
import * as i1 from 'verben-workflow-ui/src/lib/services';
|
|
8
|
+
import * as i3 from '@angular/router';
|
|
9
|
+
import { RouterModule } from '@angular/router';
|
|
10
|
+
import * as i5 from '@angular/common';
|
|
11
|
+
import { CommonModule } from '@angular/common';
|
|
12
|
+
import * as i2 from '@angular/forms';
|
|
13
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
14
|
+
import * as i7 from 'verben-workflow-ui/src/lib/pipes';
|
|
15
|
+
import { FormControlerModule } from 'verben-workflow-ui/src/lib/components/form-control';
|
|
16
|
+
import { SharedModule } from 'verben-workflow-ui/src/lib/shared';
|
|
17
|
+
|
|
18
|
+
const baseStyle = {
|
|
19
|
+
width: '100%',
|
|
20
|
+
fontFamily: '"Fraunces", serif',
|
|
21
|
+
fontSize: '125%',
|
|
22
|
+
whiteSpace: 'nowrap',
|
|
23
|
+
margin: '0',
|
|
24
|
+
border: '1px solid var(--vbn-color-primary)',
|
|
25
|
+
borderRadius: '16px',
|
|
26
|
+
borderCollapse: 'separate',
|
|
27
|
+
borderSpacing: '0',
|
|
28
|
+
// tableLayout: 'fixed',
|
|
29
|
+
overflow: 'hidden',
|
|
30
|
+
rows: {
|
|
31
|
+
even: {
|
|
32
|
+
backgroundColor: 'var(--vbn-color-surface)',
|
|
33
|
+
},
|
|
34
|
+
odd: {
|
|
35
|
+
backgroundColor: 'var(--vbn-color-surface-alt)',
|
|
36
|
+
},
|
|
37
|
+
height: '68px',
|
|
38
|
+
},
|
|
39
|
+
cells: {
|
|
40
|
+
padding: '2rem 1rem',
|
|
41
|
+
},
|
|
42
|
+
header: {
|
|
43
|
+
// stickyTop: true,
|
|
44
|
+
// zIndex: 2,
|
|
45
|
+
backgroundColor: 'var(--vbn-color-surface-alt)',
|
|
46
|
+
fontWeight: 'bold',
|
|
47
|
+
textAlign: 'left',
|
|
48
|
+
padding: '12px 16px',
|
|
49
|
+
height: '30px',
|
|
50
|
+
},
|
|
51
|
+
footer: {
|
|
52
|
+
// stickyBottom: true,
|
|
53
|
+
// zIndex: 2,
|
|
54
|
+
padding: '3px',
|
|
55
|
+
},
|
|
56
|
+
// body: {
|
|
57
|
+
// background: 'var(--vbn-color-surface)',
|
|
58
|
+
// padding: '4px 5px',
|
|
59
|
+
// textAlign: 'center',
|
|
60
|
+
// },
|
|
61
|
+
// firstColumn: {
|
|
62
|
+
// stickyLeft: true,
|
|
63
|
+
// zIndex: 1,
|
|
64
|
+
// },
|
|
65
|
+
lastColumn: {
|
|
66
|
+
// stickyRight: true,
|
|
67
|
+
// zIndex: 1,
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
class FormsService {
|
|
72
|
+
constructor() { }
|
|
73
|
+
get FormGroupColumns() {
|
|
74
|
+
return [
|
|
75
|
+
{
|
|
76
|
+
id: 'select',
|
|
77
|
+
header: '',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: 'name',
|
|
81
|
+
header: 'NAME',
|
|
82
|
+
accessorFn: (row) => {
|
|
83
|
+
return row;
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: 'description',
|
|
88
|
+
header: 'DESCRIPTION',
|
|
89
|
+
accessorKey: 'Description',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: 'workflow',
|
|
93
|
+
header: 'WORK FLOW',
|
|
94
|
+
accessorKey: 'Workflow',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 'isValidated',
|
|
98
|
+
header: 'VALIDATED',
|
|
99
|
+
accessorKey: 'IsValidated',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: 'entity',
|
|
103
|
+
header: 'ENTITY',
|
|
104
|
+
accessorKey: 'Entity',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: 'actions',
|
|
108
|
+
header: 'ACTIONS',
|
|
109
|
+
accessorFn: (row) => {
|
|
110
|
+
return row;
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
];
|
|
114
|
+
}
|
|
115
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
116
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormsService, providedIn: 'root' });
|
|
117
|
+
}
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormsService, decorators: [{
|
|
119
|
+
type: Injectable,
|
|
120
|
+
args: [{
|
|
121
|
+
providedIn: 'root',
|
|
122
|
+
}]
|
|
123
|
+
}], ctorParameters: () => [] });
|
|
124
|
+
|
|
125
|
+
var FormFieldProperty;
|
|
126
|
+
(function (FormFieldProperty) {
|
|
127
|
+
FormFieldProperty["Name"] = "Name";
|
|
128
|
+
FormFieldProperty["Description"] = "Description";
|
|
129
|
+
FormFieldProperty["IsValidated"] = "IsValidated";
|
|
130
|
+
FormFieldProperty["WorkFlow"] = "WorkFlow";
|
|
131
|
+
FormFieldProperty["ServiceName"] = "ServiceName";
|
|
132
|
+
FormFieldProperty["CreatedAt"] = "CreatedAt";
|
|
133
|
+
})(FormFieldProperty || (FormFieldProperty = {}));
|
|
134
|
+
var TaskUserPropertyMap$1;
|
|
135
|
+
(function (TaskUserPropertyMap) {
|
|
136
|
+
TaskUserPropertyMap["User"] = "Name";
|
|
137
|
+
TaskUserPropertyMap["Date"] = "CreatedAt";
|
|
138
|
+
TaskUserPropertyMap["Role"] = "RoleID";
|
|
139
|
+
TaskUserPropertyMap["Service"] = "ServiceName";
|
|
140
|
+
TaskUserPropertyMap["Application"] = "Application";
|
|
141
|
+
TaskUserPropertyMap["Tenant"] = "TenantId";
|
|
142
|
+
TaskUserPropertyMap["Email"] = "MailAddress";
|
|
143
|
+
TaskUserPropertyMap["Status"] = "Status";
|
|
144
|
+
})(TaskUserPropertyMap$1 || (TaskUserPropertyMap$1 = {}));
|
|
145
|
+
var FilterTypes$1;
|
|
146
|
+
(function (FilterTypes) {
|
|
147
|
+
FilterTypes["Before"] = "LT";
|
|
148
|
+
FilterTypes["On"] = "EQ";
|
|
149
|
+
FilterTypes["After"] = "GT";
|
|
150
|
+
FilterTypes["NEQ"] = "NEQ";
|
|
151
|
+
})(FilterTypes$1 || (FilterTypes$1 = {}));
|
|
152
|
+
class FormGroupComponent {
|
|
153
|
+
utilService;
|
|
154
|
+
server;
|
|
155
|
+
cdr;
|
|
156
|
+
envSvc;
|
|
157
|
+
router;
|
|
158
|
+
FormGroupSvc;
|
|
159
|
+
visibleColumnDef = [];
|
|
160
|
+
styles = baseStyle;
|
|
161
|
+
data = [];
|
|
162
|
+
path = '/documentation/form-group/fields';
|
|
163
|
+
cardData = [];
|
|
164
|
+
selectedFilterTableCount = 0;
|
|
165
|
+
selectedSortTableCount = 0;
|
|
166
|
+
selectedColumnTableCount = 0;
|
|
167
|
+
showFilter = false;
|
|
168
|
+
showSort = false;
|
|
169
|
+
showColumn = false;
|
|
170
|
+
currentData = null;
|
|
171
|
+
cardDataView;
|
|
172
|
+
dataView;
|
|
173
|
+
tableView;
|
|
174
|
+
application = null;
|
|
175
|
+
pageSize = 20;
|
|
176
|
+
skip = 0;
|
|
177
|
+
hasMore = true;
|
|
178
|
+
onViewProcessClicked = new EventEmitter();
|
|
179
|
+
searchTerm = '';
|
|
180
|
+
pageState = null;
|
|
181
|
+
isOpen = false;
|
|
182
|
+
openDropdownId = null;
|
|
183
|
+
currentFilters = [];
|
|
184
|
+
currentSorts = [];
|
|
185
|
+
searchTerm$ = new Subject();
|
|
186
|
+
statusOptions = Object.values(Status);
|
|
187
|
+
eavEntities = [];
|
|
188
|
+
workflowAPI = '';
|
|
189
|
+
users = [];
|
|
190
|
+
visibleColumns = [];
|
|
191
|
+
filterArray = [
|
|
192
|
+
{
|
|
193
|
+
name: FormFieldProperty.Name,
|
|
194
|
+
type: DataFilterType.String,
|
|
195
|
+
checked: false,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: FormFieldProperty.Description,
|
|
199
|
+
type: DataFilterType.String,
|
|
200
|
+
checked: false,
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: FormFieldProperty.IsValidated,
|
|
204
|
+
type: DataFilterType.Bool,
|
|
205
|
+
checked: false,
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: FormFieldProperty.ServiceName,
|
|
209
|
+
type: DataFilterType.String,
|
|
210
|
+
checked: false,
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: FormFieldProperty.WorkFlow,
|
|
214
|
+
type: DataFilterType.String,
|
|
215
|
+
checked: false,
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: FormFieldProperty.CreatedAt,
|
|
219
|
+
type: DataFilterType.Date,
|
|
220
|
+
checked: false,
|
|
221
|
+
},
|
|
222
|
+
];
|
|
223
|
+
closePopUp(row) {
|
|
224
|
+
if (this.openDropdownId === row.id) {
|
|
225
|
+
this.openDropdownId = null; // Properly reset when closing
|
|
226
|
+
}
|
|
227
|
+
this.onClose(); // Call any additional logic for closure
|
|
228
|
+
}
|
|
229
|
+
toggleTable(row) {
|
|
230
|
+
this.tableView.toggleRowEdit(row.Code);
|
|
231
|
+
}
|
|
232
|
+
sortOptions = [
|
|
233
|
+
{
|
|
234
|
+
name: FormFieldProperty.Name,
|
|
235
|
+
type: DataFilterType.String,
|
|
236
|
+
checked: false,
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: FormFieldProperty.Description,
|
|
240
|
+
type: DataFilterType.String,
|
|
241
|
+
checked: false,
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: FormFieldProperty.IsValidated,
|
|
245
|
+
type: DataFilterType.Bool,
|
|
246
|
+
checked: false,
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: FormFieldProperty.ServiceName,
|
|
250
|
+
type: DataFilterType.String,
|
|
251
|
+
checked: false,
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: FormFieldProperty.WorkFlow,
|
|
255
|
+
type: DataFilterType.String,
|
|
256
|
+
checked: false,
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
name: FormFieldProperty.CreatedAt,
|
|
260
|
+
type: DataFilterType.Date,
|
|
261
|
+
checked: false,
|
|
262
|
+
},
|
|
263
|
+
];
|
|
264
|
+
currentSearchTerm = '';
|
|
265
|
+
constructor(utilService, server, cdr, envSvc, router, FormGroupSvc) {
|
|
266
|
+
this.utilService = utilService;
|
|
267
|
+
this.server = server;
|
|
268
|
+
this.cdr = cdr;
|
|
269
|
+
this.envSvc = envSvc;
|
|
270
|
+
this.router = router;
|
|
271
|
+
this.FormGroupSvc = FormGroupSvc;
|
|
272
|
+
this.visibleColumnDef = FormGroupSvc.FormGroupColumns;
|
|
273
|
+
this.visibleColumns = FormGroupSvc.FormGroupColumns.map((col) => ({
|
|
274
|
+
checked: true,
|
|
275
|
+
name: typeof col.header === 'string' ? col.header : col.id,
|
|
276
|
+
type: DataFilterType.Bool,
|
|
277
|
+
}));
|
|
278
|
+
this.workflowAPI = this.envSvc.environment.WorkFlowAPI;
|
|
279
|
+
}
|
|
280
|
+
async ngOnInit() {
|
|
281
|
+
this.getForms();
|
|
282
|
+
this.getEAVEntities().then((res) => {
|
|
283
|
+
if (res) {
|
|
284
|
+
this.eavEntities = res;
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
async getAllTaskUsers() {
|
|
289
|
+
this.utilService.sendBI(true);
|
|
290
|
+
const res = await this.server.get(`GetTaskUsers/0/${this.pageSize}`, this.envSvc.environment.WorkFlowAPI);
|
|
291
|
+
this.utilService.sendBI(false);
|
|
292
|
+
if (res instanceof ErrorResponse) {
|
|
293
|
+
return undefined;
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
this.pageState = res;
|
|
297
|
+
var result = res.Result;
|
|
298
|
+
return result;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
clearLogs(sortValue = 'CreatedAt', order = 'asc') {
|
|
302
|
+
this.data = [];
|
|
303
|
+
this.skip = 0;
|
|
304
|
+
this.hasMore = true;
|
|
305
|
+
this.getForms();
|
|
306
|
+
}
|
|
307
|
+
async getForms() {
|
|
308
|
+
if (this.showColumn) {
|
|
309
|
+
this.showColumn = false;
|
|
310
|
+
this.selectedColumnTableCount = 0;
|
|
311
|
+
this.reset();
|
|
312
|
+
}
|
|
313
|
+
if (this.showFilter) {
|
|
314
|
+
this.showFilter = false;
|
|
315
|
+
this.selectedFilterTableCount = 0;
|
|
316
|
+
this.reset();
|
|
317
|
+
}
|
|
318
|
+
if (this.showSort) {
|
|
319
|
+
this.showSort = false;
|
|
320
|
+
this.reset();
|
|
321
|
+
this.selectedSortTableCount = 0;
|
|
322
|
+
}
|
|
323
|
+
this.utilService.sendBI(true);
|
|
324
|
+
const res = await this.server.get(`GetFormEntities/${this.skip}/${this.pageSize}/CreatedAt/${SortDirection.Desc}`, this.envSvc.environment.WorkFlowAPI);
|
|
325
|
+
this.utilService.sendBI(false);
|
|
326
|
+
if (res instanceof ErrorResponse) {
|
|
327
|
+
return undefined;
|
|
328
|
+
}
|
|
329
|
+
this.pageState = res;
|
|
330
|
+
const result = this.pageState.Result;
|
|
331
|
+
if (this.data && Array.isArray(this.data)) {
|
|
332
|
+
this.data = [...this.data, ...result];
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
this.data = result;
|
|
336
|
+
}
|
|
337
|
+
this.data.forEach((x) => {
|
|
338
|
+
x.Id = x.Code;
|
|
339
|
+
x.id = x.Id;
|
|
340
|
+
});
|
|
341
|
+
this.skip += this.pageSize;
|
|
342
|
+
this.hasMore = this.skip < this.pageState.Total;
|
|
343
|
+
this.setUpCardData();
|
|
344
|
+
return result;
|
|
345
|
+
}
|
|
346
|
+
loadMore() {
|
|
347
|
+
if (this.hasMore) {
|
|
348
|
+
this.getForms();
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
reset() {
|
|
352
|
+
this.data = [];
|
|
353
|
+
this.skip = 0;
|
|
354
|
+
this.pageSize = 10;
|
|
355
|
+
}
|
|
356
|
+
onUserSelected(event, item) {
|
|
357
|
+
const user = this.users.find((x) => x.Name == event.value);
|
|
358
|
+
if (user) {
|
|
359
|
+
item.Name = user.Name;
|
|
360
|
+
item.Description = user.Description;
|
|
361
|
+
item.Workflow = user.Workflow;
|
|
362
|
+
item.IsValidated = user.IsValidated;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
onClear(event, item) {
|
|
366
|
+
item.Name = '';
|
|
367
|
+
item.Description = '';
|
|
368
|
+
item.Workflow = '0';
|
|
369
|
+
item.IsValidated = false;
|
|
370
|
+
}
|
|
371
|
+
getItemLabel(name) {
|
|
372
|
+
const item = this.users.find((user) => user.Name === name);
|
|
373
|
+
const otherCheck = this.data.find((data) => data.Name === name);
|
|
374
|
+
return item ? item.Name : otherCheck ? otherCheck.Name : '';
|
|
375
|
+
}
|
|
376
|
+
getAsyncLabel(value) {
|
|
377
|
+
const data = this.data.find((x) => x.Name == value);
|
|
378
|
+
return data ? data.Name : '';
|
|
379
|
+
}
|
|
380
|
+
setUpCardData() {
|
|
381
|
+
const cardData = this.data.map((x) => {
|
|
382
|
+
return {
|
|
383
|
+
selected: false,
|
|
384
|
+
title: x.Name,
|
|
385
|
+
data: x,
|
|
386
|
+
body: [],
|
|
387
|
+
children: [],
|
|
388
|
+
};
|
|
389
|
+
});
|
|
390
|
+
this.cardData = cardData;
|
|
391
|
+
}
|
|
392
|
+
setUpCardDataExtra(baseData) {
|
|
393
|
+
const cardData = baseData.map((x) => {
|
|
394
|
+
return {
|
|
395
|
+
selected: false,
|
|
396
|
+
title: x.Name,
|
|
397
|
+
data: x,
|
|
398
|
+
body: [],
|
|
399
|
+
children: [],
|
|
400
|
+
};
|
|
401
|
+
});
|
|
402
|
+
this.cardData = this.cardData.concat(cardData);
|
|
403
|
+
}
|
|
404
|
+
goToCardView(data) {
|
|
405
|
+
const item = this.cardData.find((x) => x.data == data);
|
|
406
|
+
if (item) {
|
|
407
|
+
this.userCardClicked(item, true);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
goToTableView() {
|
|
411
|
+
if (!this.currentData) {
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
this.dataView.toggleView();
|
|
415
|
+
const id = this.currentData.data ? this.currentData.data.Id : '';
|
|
416
|
+
if (id.trim().length > 0 && !this.tableView.isRowEditing(id)) {
|
|
417
|
+
this.tableView.toggleRowEdit(id);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
viewProcesses(code) {
|
|
421
|
+
if (code.trim().length == 0) {
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
this.onViewProcessClicked.emit(code);
|
|
425
|
+
}
|
|
426
|
+
userCardClicked(item, toggleView = false) {
|
|
427
|
+
this.currentData = this.cardDataView.onItemClick(item);
|
|
428
|
+
if (toggleView) {
|
|
429
|
+
this.dataView.toggleView();
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
async saveFormGroup() {
|
|
433
|
+
if (this.currentData) {
|
|
434
|
+
var form = this.currentData.data;
|
|
435
|
+
if (this.currentData.data.Name.trim().length == 0) {
|
|
436
|
+
this.utilService.showInfo('Name cannot be empty');
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
form.DataState =
|
|
440
|
+
form.DataState == ObjectState.New
|
|
441
|
+
? ObjectState.New
|
|
442
|
+
: ObjectState.Changed;
|
|
443
|
+
form.Id = form.DataState == ObjectState.New ? '' : form.Id;
|
|
444
|
+
this.utilService.sendBI(true);
|
|
445
|
+
const res = await this.server.post(`SaveFormEntities`, [form], this.envSvc.environment.WorkFlowAPI);
|
|
446
|
+
this.utilService.sendBI(false);
|
|
447
|
+
if (res instanceof ErrorResponse) {
|
|
448
|
+
}
|
|
449
|
+
else {
|
|
450
|
+
this.utilService.showSuccess('Form group saved successfully');
|
|
451
|
+
const result = res;
|
|
452
|
+
if (result.length > 0) {
|
|
453
|
+
var formResult = result[0];
|
|
454
|
+
const itemIndex = this.data.findIndex((x) => x == this.currentData?.data);
|
|
455
|
+
if (itemIndex > -1) {
|
|
456
|
+
this.data[itemIndex].Name = formResult.Name;
|
|
457
|
+
this.data[itemIndex].Code = formResult.Code;
|
|
458
|
+
this.data[itemIndex].Id = formResult.Code;
|
|
459
|
+
this.data[itemIndex].id = formResult.Code;
|
|
460
|
+
this.data[itemIndex].DataState = formResult.DataState;
|
|
461
|
+
this.data[itemIndex].Description = formResult.Description;
|
|
462
|
+
this.data[itemIndex].IsValidated = formResult.IsValidated;
|
|
463
|
+
this.data[itemIndex].Workflow = formResult.Workflow;
|
|
464
|
+
this.data = this.data.map((x) => x);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
toggleIsValidate(value, row) {
|
|
471
|
+
const newValue = !value;
|
|
472
|
+
row.IsValidated = newValue;
|
|
473
|
+
}
|
|
474
|
+
async tableSaveFormGroup(form, callBack) {
|
|
475
|
+
form.DataState =
|
|
476
|
+
form.DataState == ObjectState.New ? ObjectState.New : ObjectState.Changed;
|
|
477
|
+
form.Id = form.DataState == ObjectState.New ? '' : form.Id;
|
|
478
|
+
this.utilService.sendBI(true);
|
|
479
|
+
const res = await this.server.post(`SaveFormEntities`, [form], this.envSvc.environment.WorkFlowAPI);
|
|
480
|
+
this.utilService.sendBI(false);
|
|
481
|
+
if (res instanceof ErrorResponse) {
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
this.utilService.showSuccess('Form group saved successfully');
|
|
485
|
+
const result = res;
|
|
486
|
+
if (result.length > 0) {
|
|
487
|
+
var formResult = result[0];
|
|
488
|
+
const itemIndex = this.data.findIndex((x) => x == form);
|
|
489
|
+
if (itemIndex > -1) {
|
|
490
|
+
this.data[itemIndex].Name = formResult.Name;
|
|
491
|
+
this.data[itemIndex].Code = formResult.Code;
|
|
492
|
+
this.data[itemIndex].Id = formResult.Code;
|
|
493
|
+
this.data[itemIndex].id = formResult.Code;
|
|
494
|
+
this.data[itemIndex].DataState = formResult.DataState;
|
|
495
|
+
this.data[itemIndex].Description = formResult.Description;
|
|
496
|
+
this.data[itemIndex].IsValidated = formResult.IsValidated;
|
|
497
|
+
this.data[itemIndex].Workflow = formResult.Workflow;
|
|
498
|
+
this.data = this.data.map((x) => x);
|
|
499
|
+
}
|
|
500
|
+
this.closePopUp(form);
|
|
501
|
+
callBack();
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
updateTable() {
|
|
506
|
+
this.data = this.data.map((x) => x);
|
|
507
|
+
}
|
|
508
|
+
onFieldCountChange(value, source) {
|
|
509
|
+
source.Workflow = value;
|
|
510
|
+
}
|
|
511
|
+
getFieldCount(source) {
|
|
512
|
+
return source.Workflow;
|
|
513
|
+
}
|
|
514
|
+
navigateToFields(card) {
|
|
515
|
+
const queryParams = { FormId: card.Code, Name: card.Name };
|
|
516
|
+
this.router.navigate([`${this.path}`], { queryParams });
|
|
517
|
+
}
|
|
518
|
+
onClose() {
|
|
519
|
+
this.isOpen = false;
|
|
520
|
+
}
|
|
521
|
+
openDropdown(item) {
|
|
522
|
+
if (this.openDropdownId === item.Id) {
|
|
523
|
+
this.openDropdownId = null;
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
this.openDropdownId = item.Id;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
async onSearch(event) {
|
|
530
|
+
this.searchTerm = event.value;
|
|
531
|
+
this.reset();
|
|
532
|
+
if (!this.searchTerm) {
|
|
533
|
+
this.getForms();
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
this.utilService.sendBI(true);
|
|
537
|
+
try {
|
|
538
|
+
const res = await this.server.get(`GetFormEntitiesWithParam/${this.searchTerm}/${this.skip}/${this.pageSize}/CreatedAt/asc`);
|
|
539
|
+
this.utilService.sendBI(false);
|
|
540
|
+
if (res instanceof ErrorResponse) {
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
this.pageState = res;
|
|
544
|
+
var result = res.Result;
|
|
545
|
+
result.forEach((x) => {
|
|
546
|
+
x.Id = x.Code;
|
|
547
|
+
x.id = x.Id;
|
|
548
|
+
});
|
|
549
|
+
this.data = result;
|
|
550
|
+
this.setUpCardData();
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
catch (error) { }
|
|
554
|
+
}
|
|
555
|
+
isDropdownOpen(item) {
|
|
556
|
+
return this.openDropdownId === item.id;
|
|
557
|
+
}
|
|
558
|
+
onViewChange(isGridView) { }
|
|
559
|
+
onStateChange(event) {
|
|
560
|
+
switch (event.key) {
|
|
561
|
+
case 'create':
|
|
562
|
+
var newGroup = {
|
|
563
|
+
Code: '',
|
|
564
|
+
TenantId: '',
|
|
565
|
+
Id: '',
|
|
566
|
+
id: '',
|
|
567
|
+
ServiceName: '',
|
|
568
|
+
CreatedAt: new Date(),
|
|
569
|
+
UpdatedAt: new Date(),
|
|
570
|
+
DataState: ObjectState.New,
|
|
571
|
+
Name: '',
|
|
572
|
+
Description: '',
|
|
573
|
+
Workflow: '',
|
|
574
|
+
Form: '',
|
|
575
|
+
Properties: [],
|
|
576
|
+
IsValidated: false,
|
|
577
|
+
Tags: [],
|
|
578
|
+
};
|
|
579
|
+
const cardData = {
|
|
580
|
+
selected: false,
|
|
581
|
+
title: newGroup.Name,
|
|
582
|
+
data: newGroup,
|
|
583
|
+
body: [],
|
|
584
|
+
children: [],
|
|
585
|
+
};
|
|
586
|
+
this.data = [newGroup, ...this.data];
|
|
587
|
+
this.cardData.unshift(cardData);
|
|
588
|
+
this.userCardClicked(cardData);
|
|
589
|
+
this.dataView.isTableView = false;
|
|
590
|
+
break;
|
|
591
|
+
case 'filter':
|
|
592
|
+
this.showFilter = event.value;
|
|
593
|
+
break;
|
|
594
|
+
case 'sort':
|
|
595
|
+
this.showSort = event.value;
|
|
596
|
+
break;
|
|
597
|
+
case 'column':
|
|
598
|
+
this.showColumn = event.value;
|
|
599
|
+
break;
|
|
600
|
+
default:
|
|
601
|
+
break;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
showTableView = false;
|
|
605
|
+
onSelectionChange(selectedRows) { }
|
|
606
|
+
onColumnsUpdated(updatedColumns) {
|
|
607
|
+
this.selectedColumnTableCount = updatedColumns.length;
|
|
608
|
+
this.showColumn = false;
|
|
609
|
+
const updatedColumnDef = [];
|
|
610
|
+
updatedColumns.forEach((col) => {
|
|
611
|
+
const matchingCol = this.FormGroupSvc.FormGroupColumns.find((column) => column.header === col.name || column.id === col.name);
|
|
612
|
+
if (matchingCol) {
|
|
613
|
+
updatedColumnDef.push(matchingCol);
|
|
614
|
+
}
|
|
615
|
+
});
|
|
616
|
+
this.visibleColumnDef = [...updatedColumnDef];
|
|
617
|
+
}
|
|
618
|
+
async updateFiltersAndSorts(isSearch = false) {
|
|
619
|
+
if (!isSearch) {
|
|
620
|
+
this.dataView.onClearSearch();
|
|
621
|
+
this.currentSearchTerm = '';
|
|
622
|
+
this.cdr.detectChanges();
|
|
623
|
+
const clickEvent = new MouseEvent('click', {
|
|
624
|
+
bubbles: true,
|
|
625
|
+
cancelable: true,
|
|
626
|
+
view: window,
|
|
627
|
+
});
|
|
628
|
+
document.dispatchEvent(clickEvent);
|
|
629
|
+
}
|
|
630
|
+
var payload = this.currentFilters.map((x) => {
|
|
631
|
+
return {
|
|
632
|
+
PropertyName: FormFieldProperty[x.name],
|
|
633
|
+
EntityValue: x.value,
|
|
634
|
+
Operator: SearchOperator.And,
|
|
635
|
+
Sign: x.condition && Object.keys(FilterTypes$1).includes(x.condition)
|
|
636
|
+
? FilterTypes$1[x.condition]
|
|
637
|
+
: SearchPropertySign.EQ,
|
|
638
|
+
Type: x.name == FormFieldProperty.CreatedAt
|
|
639
|
+
? SearchPropertyValueType.Date
|
|
640
|
+
: SearchPropertyValueType.String,
|
|
641
|
+
};
|
|
642
|
+
});
|
|
643
|
+
// payload.push({
|
|
644
|
+
// PropertyName: 'APIKey',
|
|
645
|
+
// EntityValue: this.envSvc.environment.APIKey,
|
|
646
|
+
// Operator: SearchOperator.And,
|
|
647
|
+
// Sign: SearchPropertySign.EQ,
|
|
648
|
+
// });
|
|
649
|
+
const sortParam = this.currentSorts.length > 0
|
|
650
|
+
? {
|
|
651
|
+
Param: FormFieldProperty[this.currentSorts[0].name],
|
|
652
|
+
Order: this.currentSorts[0].value,
|
|
653
|
+
}
|
|
654
|
+
: null;
|
|
655
|
+
const searchTermExists = this.currentSearchTerm.trim().length > 0;
|
|
656
|
+
this.utilService.sendBI(true);
|
|
657
|
+
const res = searchTermExists
|
|
658
|
+
? await this.server.get(`GetFormEntitiesWithParam/${this.currentSearchTerm.trim()}/0/${this.pageSize}`, this.envSvc.environment.WorkFlowAPI)
|
|
659
|
+
: await this.server.post(sortParam
|
|
660
|
+
? `SearchFormEntities/0/${this.pageSize}/${sortParam.Param}/${sortParam.Order}`
|
|
661
|
+
: `SearchFormEntities/0/${this.pageSize}`, payload, this.envSvc.environment.WorkFlowAPI);
|
|
662
|
+
this.utilService.sendBI(false);
|
|
663
|
+
if (res instanceof ErrorResponse) {
|
|
664
|
+
this.currentFilters = [];
|
|
665
|
+
this.currentSorts = [];
|
|
666
|
+
return undefined;
|
|
667
|
+
}
|
|
668
|
+
else {
|
|
669
|
+
this.pageState = res;
|
|
670
|
+
var result = res.Result;
|
|
671
|
+
result.forEach((x) => {
|
|
672
|
+
x.Id = x.Code;
|
|
673
|
+
x.id = x.Id;
|
|
674
|
+
});
|
|
675
|
+
this.data = result;
|
|
676
|
+
this.setUpCardData();
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
async postSearch(payload) {
|
|
680
|
+
this.utilService.sendBI(true);
|
|
681
|
+
const res = await this.server.post(`SearchFormEntities/0/${this.pageSize}`, payload);
|
|
682
|
+
this.utilService.sendBI(false);
|
|
683
|
+
if (res instanceof ErrorResponse) {
|
|
684
|
+
return;
|
|
685
|
+
}
|
|
686
|
+
else {
|
|
687
|
+
this.pageState = res;
|
|
688
|
+
var result = res.Result;
|
|
689
|
+
result.forEach((x) => {
|
|
690
|
+
x.Id = x.Code;
|
|
691
|
+
x.id = x.Id;
|
|
692
|
+
});
|
|
693
|
+
this.data = result;
|
|
694
|
+
this.setUpCardData();
|
|
695
|
+
// this.setUpCardDataExtra(this.data)
|
|
696
|
+
return result;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
onFilterApplied(appliedFilter) {
|
|
700
|
+
this.showFilter = false;
|
|
701
|
+
if (Array.isArray(appliedFilter)) {
|
|
702
|
+
this.selectedFilterTableCount = appliedFilter.length;
|
|
703
|
+
const queryParams = appliedFilter
|
|
704
|
+
.filter((filter) => filter.checked)
|
|
705
|
+
.map((filter) => ({
|
|
706
|
+
PropertyName: filter.name,
|
|
707
|
+
EntityValue: filter.value,
|
|
708
|
+
Type: filter.type,
|
|
709
|
+
Operator: 'And',
|
|
710
|
+
Sign: this.getCondition(filter.condition),
|
|
711
|
+
}));
|
|
712
|
+
this.postSearch(queryParams);
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
getCondition(value) {
|
|
716
|
+
switch (value) {
|
|
717
|
+
case ConditionalOptions.On:
|
|
718
|
+
return SearchPropertySign.EQ;
|
|
719
|
+
case ConditionalOptions.After:
|
|
720
|
+
return SearchPropertySign.EQ;
|
|
721
|
+
case ConditionalOptions.Before:
|
|
722
|
+
return SearchPropertySign.LT;
|
|
723
|
+
case ConditionalOptions.NotEqual:
|
|
724
|
+
return SearchPropertySign.NEQ;
|
|
725
|
+
default:
|
|
726
|
+
return value;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
onSortUpdated(updatedSorts) {
|
|
730
|
+
this.currentSorts = updatedSorts;
|
|
731
|
+
this.showSort = false;
|
|
732
|
+
this.selectedSortTableCount = updatedSorts.length;
|
|
733
|
+
this.updateFiltersAndSorts();
|
|
734
|
+
}
|
|
735
|
+
handleSearch(event) {
|
|
736
|
+
this.searchTerm$.next(event.value);
|
|
737
|
+
}
|
|
738
|
+
handleExport(exportedData) {
|
|
739
|
+
// console.log('Exported data:', exportedData);
|
|
740
|
+
this.downloadCSV(exportedData);
|
|
741
|
+
}
|
|
742
|
+
downloadCSV(data) {
|
|
743
|
+
const headers = Object.keys(data[0]);
|
|
744
|
+
const csvContent = [
|
|
745
|
+
headers.join(','),
|
|
746
|
+
...data.map((row) => headers.map((header) => row[header]).join(',')),
|
|
747
|
+
].join('\n');
|
|
748
|
+
const blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });
|
|
749
|
+
const link = document.createElement('a');
|
|
750
|
+
if (link.download !== undefined) {
|
|
751
|
+
const url = URL.createObjectURL(blob);
|
|
752
|
+
link.setAttribute('href', url);
|
|
753
|
+
link.setAttribute('download', 'export.csv');
|
|
754
|
+
link.style.visibility = 'hidden';
|
|
755
|
+
document.body.appendChild(link);
|
|
756
|
+
link.click();
|
|
757
|
+
document.body.removeChild(link);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
async getEAVEntities() {
|
|
761
|
+
this.utilService.sendBI(true);
|
|
762
|
+
const res = await this.server.get(`GetEAVEntity/0/0`);
|
|
763
|
+
this.utilService.sendBI(false);
|
|
764
|
+
if (res instanceof ErrorResponse) {
|
|
765
|
+
return undefined;
|
|
766
|
+
}
|
|
767
|
+
else {
|
|
768
|
+
var result = res.Result;
|
|
769
|
+
return result;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
async publishEAV(entity) {
|
|
773
|
+
this.utilService.sendBI(true);
|
|
774
|
+
const res = await this.server.post(`PublishEAV`, entity);
|
|
775
|
+
this.utilService.sendBI(false);
|
|
776
|
+
if (res instanceof ErrorResponse) {
|
|
777
|
+
return undefined;
|
|
778
|
+
}
|
|
779
|
+
else {
|
|
780
|
+
this.utilService.showInfo('Extensions Published Successfully');
|
|
781
|
+
// var result = (res as PagedResult<EAVEntity>).Result;
|
|
782
|
+
// return result;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormGroupComponent, deps: [{ token: i1.UtilService }, { token: i1.HttpWebRequestService }, { token: i0.ChangeDetectorRef }, { token: i1.EnvironmentService }, { token: i3.Router }, { token: FormsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
786
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FormGroupComponent, selector: "lib-form-group", inputs: { path: "path", application: "application", pageSize: "pageSize" }, outputs: { onViewProcessClicked: "onViewProcessClicked" }, viewQueries: [{ propertyName: "cardDataView", first: true, predicate: ["vdcv"], descendants: true }, { propertyName: "dataView", first: true, predicate: ["vdv"], descendants: true }, { propertyName: "tableView", first: true, predicate: ["dt"], descendants: true }], ngImport: i0, template: "<div #messageLog class=\"flex flex-col gap-4 message-log-container\">\n <verben-data-view\n #vdv\n [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: true,\n isSort: true,\n isExport: true,\n isSelect: true,\n isCreate: true,\n isToggle: true,\n }\"\n [buttonClass]=\"'my-custom-button-class'\"\n [iconClass]=\"'my-icon-class'\"\n [searchValue]=\"searchTerm\"\n (onSearchChange)=\"onSearch($event)\"\n [showFilterChild]=\"showFilter\"\n [showSortChild]=\"showSort\"\n [showColumnChild]=\"showColumn\"\n [activeIconClass]=\"'my-active-icon-class'\"\n [selectedColumnCount]=\"selectedColumnTableCount\"\n [selectedSortCount]=\"selectedSortTableCount\"\n [selectedFilterTableCount]=\"selectedFilterTableCount\"\n (viewChange)=\"onViewChange($event)\"\n (stateChange)=\"onStateChange($event)\"\n >\n <div class=\"mt-2\" table-content>\n <lib-data-table\n #dt\n [data]=\"data\"\n [columns]=\"visibleColumnDef\"\n [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\"\n >\n <ng-container libColumn=\"select\">\n <ng-template\n #cell\n let-isSelected=\"isSelected\"\n let-toggleRowSelection=\"toggleRowSelection\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"isSelected\"\n (change)=\"toggleRowSelection()\"\n />\n </ng-template>\n <ng-template\n #header\n let-allRowsSelected=\"allRowsSelected\"\n let-someRowsSelected=\"someRowsSelected\"\n let-toggleAllRows=\"toggleAllRows\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"allRowsSelected()\"\n [indeterminate]=\"someRowsSelected()\"\n (change)=\"toggleAllRows()\"\n />\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"name\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value.Name }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n inputContainerClass=\"w-fit\"\n [(ngModel)]=\"row.Name\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"workflow\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n inputContainerClass=\"w-fit\"\n [(ngModel)]=\"row.Workflow\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"description\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n inputContainerClass=\"w-fit\"\n [(ngModel)]=\"row.Description\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"isValidated\">\n <ng-template #cell let-row=\"row\" let-value>\n <verben-svg *ngIf=\"value === true\" [icon]=\"'check'\"></verben-svg>\n <verben-svg *ngIf=\"value === false\" [icon]=\"'error'\"></verben-svg>\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-switch\n [onColor]=\"'var(--vbn-color-text)'\"\n [(ngModel)]=\"row.IsValidated\"\n ></verbena-switch>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"entity\">\n <ng-template #cell let-row=\"row\" let-value>\n {{\n row.Entity\n | asyncLabel: \"EAVEntity\" : \"Entity\" : workflowAPI\n | async\n }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateData=\"updateData\"\n let-value\n >\n <verben-drop-down\n width=\"100%\"\n placeholder=\"Select Entity\"\n [showClear]=\"true\"\n [filter]=\"true\"\n [(options)]=\"eavEntities\"\n optionLabel=\"Entity\"\n optionValue=\"Code\"\n [(ngModel)]=\"row.Entity\"\n >\n </verben-drop-down>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template\n #cell\n let-isEditing=\"isEditing\"\n let-toggleRowEdit=\"toggleRowEdit\"\n let-row=\"row\"\n let-value\n >\n <verben-pop-Up\n [customStyles]=\"{ 'z-index': '99' }\"\n [dropdownOpen]=\"isDropdownOpen(row)\"\n [enableMouseLeave]=\"false\"\n (close)=\"onClose()\"\n >\n <verben-svg\n class=\"cursor-pointer actions-icon\"\n (click)=\"openDropdown(row)\"\n dropdown-trigger\n icon=\"list\"\n ></verben-svg>\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div\n (click)=\"navigateToFields(row)\"\n class=\"pop-up-value cursor-pointer\"\n >\n View Fields\n </div>\n <div\n (click)=\"toggleRowEdit()\"\n class=\"pop-up-value cursor-pointer\"\n >\n Edit\n </div>\n <!-- <div class=\"pop-up-value cursor-pointer\">Delete</div> -->\n </div>\n </verben-pop-Up>\n </ng-template>\n <ng-template\n #cellEdit\n let-isEditing=\"isEditing\"\n let-toggleRowEdit=\"toggleRowEdit\"\n let-row=\"row\"\n let-value\n >\n <div class=\"flex gap-2 items-center\">\n <verben-svg\n icon=\"check\"\n [width]=\"15\"\n [height]=\"15\"\n (click)=\"tableSaveFormGroup(value, toggleRowEdit)\"\n ></verben-svg>\n <!-- <verben-svg icon=\"delete\" [width]=\"15\" [height]=\"15\"></verben-svg> -->\n <verben-svg\n icon=\"cardViewAlt\"\n [width]=\"15\"\n [height]=\"15\"\n (click)=\"goToCardView(value)\"\n ></verben-svg>\n </div>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n <div card-content>\n <verben-card-data-view\n borderRadius=\"12px\"\n #vdcv\n dataId=\"Id\"\n border=\"5px\"\n [cardDataList]=\"cardData\"\n rbgColor=\"var(--vbn-color-surface-alt)\"\n mg=\"0px\"\n >\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data\n #vlcd\n [parent]=\"vdcv\"\n dataId=\"MailAddress\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\"\n [cardDataList]=\"cardData\"\n >\n <ng-template #card let-item>\n <div\n (click)=\"userCardClicked(item)\"\n class=\"flex cursor-pointer h-[max-content]\"\n >\n <!-- <verben-svg [width]=\"15\" [height]=\"15\" (click)=\"toggleChildren(item); $event.stopPropagation()\"\n [ngClass]=\"item.children && item.children.length?'visible':'invisible'\"\n class=\"items-center flex pr-1 cursor-pointer\" [icon]=\"item.isChildrenExpanded?'minus':'plus'\" /> -->\n <div class=\"flex w-full bg-secondary rounded-xl\">\n <div\n class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\"\n [ngClass]=\"\n item.selected ? 'bg-primary' : 'bg-secondary-200'\n \"\n ></div>\n <div class=\"py-3 px-4 flex-1 h-[100%]\">\n <div\n class=\"flex items-start flex-1 gap-1 justify-between h-[100%]\"\n >\n <div\n class=\"flex flex-col flex-1 card-min-height justify-between h-[100%]\"\n >\n <div class=\"flex justify-between\">\n <div>\n <h3\n class=\"my-0 font-bold text-[var(--vbn-color-on-primary)] leading-[19.5px]\"\n >\n {{ item.data.Name }}\n </h3>\n <span class=\"flex mt-2 items-center gap-1\">\n <span\n class=\"!text-[10px] font-light text-[var(--vbn-color-on-primary)]\"\n >Description:</span\n >\n <span class=\"!text-[12px] font-semibold\">{{\n item.data.Description\n }}</span>\n </span>\n </div>\n\n <div>\n <span\n class=\"!text-[10px] text-[var(--vbn-color-on-primary)]\"\n >Work Flow</span\n >\n <p class=\"!text-[12px]\">{{ item.data.Workflow }}</p>\n </div>\n </div>\n </div>\n\n <!-- <div class=\"flex items-end h-[100%]\">\n <span class=\"enum-val {{item.data.Status}}\">{{item.data.Status}}</span>\n </div> -->\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </verben-left-card-data>\n </verben-left-card-data-view>\n <verben-right-card-data-view>\n <ng-template #parent>\n <div\n *ngIf=\"this.currentData\"\n class=\"flex flex-col rounded-xl h-full w-full relative gap-6\"\n >\n <verbena-input\n name=\"Name\"\n label=\"Name\"\n (ngModelChange)=\"updateTable()\"\n [(ngModel)]=\"currentData.data.Name\"\n />\n <verbena-input\n name=\"Description\"\n label=\"Description\"\n (ngModelChange)=\"updateTable()\"\n [(ngModel)]=\"currentData.data.Description\"\n />\n <verbena-input\n name=\"Workflow\"\n label=\"Work Flow\"\n [(ngModel)]=\"currentData.data.Workflow\"\n />\n\n <div class=\"flex flex-col gap-1\">\n <div>Entity</div>\n <verben-drop-down\n width=\"100%\"\n placeholder=\"Select Entity\"\n [showClear]=\"true\"\n [filter]=\"true\"\n [(options)]=\"eavEntities\"\n optionLabel=\"Entity\"\n optionValue=\"Code\"\n [(ngModel)]=\"currentData.data.Entity\"\n >\n </verben-drop-down>\n </div>\n <div class=\"flex flex-col gap-1\">\n <div>Validate</div>\n <verbena-switch\n [onColor]=\"'var(--vbn-color-text)'\"\n [(ngModel)]=\"currentData.data.IsValidated\"\n ></verbena-switch>\n </div>\n <!-- <div class=\"flex flex-col gap-1\">\n <div>Status</div>\n <verben-drop-down width=\"100%\" placeholder=\"Change Status\" [(options)]=\"statusOptions\"\n [(ngModel)]=\"this.currentData.data.Status\">\n </verben-drop-down>\n </div> -->\n\n <!-- buttons -->\n <div class=\"flex justify-between w-full bottom-8 left-0 right-0\">\n <div>\n <verbena-button\n *ngIf=\"\n currentData.data.Entity &&\n currentData.data.Entity.trim().length > 0\n \"\n class=\"verben-switch-button\"\n (click)=\"publishEAV(currentData.data)\"\n text=\"Publish Extension\"\n ></verbena-button>\n </div>\n <!-- <verbena-button class=\"verben-delete-button\" text=\"Delete\"></verbena-button> -->\n <div class=\"flex gap-3\">\n <verbena-button\n *ngIf=\"currentData.data.DataState !== 'New'\"\n class=\"verben-switch-button\"\n (click)=\"navigateToFields(currentData.data)\"\n text=\"View Fields\"\n ></verbena-button>\n <verbena-button\n class=\"verben-switch-button\"\n (click)=\"goToTableView()\"\n text=\"Switch To Table\"\n ></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"this.saveFormGroup()\"\n text=\"Save\"\n ></verbena-button>\n </div>\n </div>\n </div>\n </ng-template>\n </verben-right-card-data-view>\n <!-- <verben-right-card-data-view>\n yeshhhhhh\n </verben-right-card-data-view> -->\n\n <verben-card-data-view-footer>\n <div class=\"flex gap-2 justify-between\">\n <div\n *ngIf=\"!vdcv.hasCurrentItem()\"\n class=\"message-log-button-container flex justify-between\"\n >\n <!-- <verbena-button [fontWeight]=\"'bold'\" [bgColor]=\"'var(--vbn-color-text-muted)'\" [borderRadius]=\"'4px'\" [textColor]=\"'var(--vbn-color-surface)'\"\n [text]=\"'Delete'\">\n </verbena-button> -->\n </div>\n <div\n class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\"\n >\n <span class=\"paginator-text\"\n >{{ cardData.length }} records loaded</span\n >\n <button (click)=\"loadMore()\" class=\"load-more view-links\">\n Load more\n </button>\n </div>\n </div>\n </verben-card-data-view-footer>\n </verben-card-data-view>\n </div>\n <div column-content>\n <verben-visible-column\n (resetFilter)=\"getForms()\"\n (columnsUpdated)=\"onColumnsUpdated($event)\"\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"400px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n [columns]=\"visibleColumns\"\n [displayedColumns]=\"5\"\n ></verben-visible-column>\n </div>\n <div filter-content>\n <verben-table-filter\n (resetSortData)=\"getForms()\"\n (filtersApplied)=\"onFilterApplied($event)\"\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"420px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"\n ></verben-table-filter>\n </div>\n <div sort-content>\n <verben-sort-table\n (resetSortData)=\"getForms()\"\n (selectedOptions)=\"onSortUpdated($event)\"\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"400px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [enableDragAndDrop]=\"true\"\n [sortOptions]=\"sortOptions\"\n ></verben-sort-table>\n </div>\n <div export-content>\n <lib-data-export [data]=\"data\" (exportDataEvent)=\"handleExport($event)\">\n </lib-data-export>\n </div>\n </verben-data-view>\n <div *ngIf=\"vdv.isTableView\" class=\"flex gap-2 justify-between\">\n <div class=\"message-log-button-container flex justify-between\">\n <!-- <verbena-button [fontWeight]=\"'bold'\" [bgColor]=\"'var(--vbn-color-text-muted)'\" [borderRadius]=\"'4px'\" [textColor]=\"'var(--vbn-color-surface)'\"\n [text]=\"'Delete'\">\n </verbena-button> -->\n </div>\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData.length }} records loaded</span>\n <button (click)=\"loadMore()\" class=\"load-more view-links\">\n Load more\n </button>\n </div>\n </div>\n</div>\n", styles: [".view-links{font-size:14px!important;color:var(--vbn-color-border-focus);font-weight:600;cursor:pointer}.view-links:hover{text-decoration:underline;text-underline-offset:3px}.context-banner{background-color:#d4a00773}.card-min-height{gap:10px}::ng-deep .childrenPadding{max-height:300px;overflow-y:auto}::ng-deep .toolbar{margin-bottom:15px}::ng-deep .master-only-container{margin:0!important;padding:0!important}::ng-deep .master-detail-container{margin:0!important;padding:0!important}.pop-up-content{border-radius:4px;background-color:var(--vbn-color-surface);border:1px solid rgba(212,161,7,.5)}.pop-up-value{padding:10px 20px}.pop-up-content>div:nth-child(1){border-bottom:4px solid var(--vbn-color-primary)}.enum-val{padding:2px 10px;width:100%;min-width:max-content;text-align:center}.enum-val.Active{background-color:var(--vbn-color-success-bg);color:var(--vbn-color-success)}.enum-val.InActive{background-color:#ffdfdf;color:var(--vbn-color-error)}.toggle-container{width:53px;padding:1px;color:var(--vbn-color-surface);height:22px;position:relative;background-color:var(--vbn-color-text);border-radius:2rem;cursor:pointer}.toggle-circle{width:50%;height:100%;position:absolute;left:0;padding:5px;top:0;background-color:var(--vbn-color-surface);border-radius:50%;transform:scale(1);transition:transform .3s}.translate-100{transform:translate(100%)}.translate-0{transform:translate(0)}.toggle-text-on{display:block;font-size:12px;margin-left:4px}.toggle-text-off{display:block;font-size:12px;margin-right:4px;text-align:right}\n"], dependencies: [{ kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i6.DataTableComponent, selector: "lib-data-table", inputs: ["data", "columns", "dataKey", "formGroupConfig", "groupBy", "useVirtualScroll", "virtualScrollItemSize", "styleConfig"], outputs: ["rowEdit", "rowSave", "rowRevert", "rowDelete", "selectionChange"] }, { kind: "directive", type: i6.ColumnDirective, selector: "[libColumn]", inputs: ["libColumn"] }, { kind: "component", type: i6.SvgComponent, selector: "verben-svg", inputs: ["icon", "width", "height", "fill", "stroke", "type", "size"] }, { kind: "component", type: i6.VerbenPopUpComponent, selector: "verben-pop-Up", inputs: ["dropdownOpen", "dropdownWidth", "color", "customStyles", "popUpClass", "border", "borderRadius", "enableMouseLeave", "cdkPosition"], outputs: ["dropdownOpenChange", "close"] }, { kind: "component", type: i6.DataViewComponent, selector: "verben-data-view", inputs: ["buttonClass", "iconClass", "activeIconClass", "columnCustomClass", "filterCustomClass", "sortCustomClass", "extendCustomClass", "exportCustomClass", "selectCustomClass", "importCustomClass", "zIndex", "createCustomClass", "tableIcon", "cardIcon", "cardClass", "tableClass", "searchKey", "searchValue", "viewState", "searchTemplate", "importTemplate", "columnTemplate", "extendTemplate", "filterTemplate", "sortTemplate", "children", "exportTemplate", "createTemplate", "selectedColumnCount", "selectedSortCount", "selectedFilterTableCount", "inputWidth", "milliseconds", "showColumnChild", "showSortChild", "showFilterChild", "showImportChild", "showExportChild", "showExtendChild", "create", "showSelected", "useTwoWayBinding", "isTableView"], outputs: ["viewChange", "stateChange", "onSearchChange"] }, { kind: "component", type: i6.VerbenaButtonComponent, selector: "verbena-button", inputs: ["type", "text", "styleType", "size", "block", "disable", "disabled", "isLoading", "spinnerSize", "spinnerColor", "svg", "svgPosition", "svgWidth", "svgHeight", "svgSize", "svgColor", "icon", "useIcon", "iconPosition", "iconColor", "variant", "weight", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "buttonClass", "buttonTextClass"] }, { kind: "component", type: i6.CardDataViewComponent, selector: "verben-card-data-view", inputs: ["pd", "mg", "lHeight", "rHeight", "rWidth", "lWidth", "textColor", "lbgColor", "rbgColor", "border", "display", "borderRadius", "activeCss", "inActiveCss", "displayAsRow", "cardDataList", "dataId", "totalRecords", "footer", "noOfVisibleChildren", "showEditIcon", "useVirtualScroll", "virtualScrollItemSize", "onItemClick", "onCardChildClick"], outputs: ["editClicked", "loadMoreClick"] }, { kind: "component", type: i6.LeftCardDataComponent, selector: "verben-left-card-data", inputs: ["pd", "mg", "height", "weight", "activeCss", "inActiveCss", "cardDataList", "iconCollapse", "iconExpanded", "parent", "useVirtualScroll", "virtualScrollItemSize", "dataId", "cardActions", "cardChildActions", "cardActionsPosition"] }, { kind: "component", type: i6.LeftCardDataViewComponent, selector: "verben-left-card-data-view", inputs: ["cardDataList"] }, { kind: "component", type: i6.RightCardDataViewComponent, selector: "verben-right-card-data-view", inputs: ["parentData", "chilData", "meth"] }, { kind: "component", type: i6.CardDataViewFooterComponent, selector: "verben-card-data-view-footer" }, { kind: "component", type: i6.DropDownComponent, selector: "verben-drop-down", inputs: ["options", "width", "overlayWidth", "showHorizontalLine", "horizontalLineColor", "optionLabel", "optionSubLabel", "optionValue", "placeholder", "invalidMessage", "errorPosition", "loadMoreCaption", "display", "showClear", "lazyLoad", "selectKey", "styleClass", "group", "multiselect", "filter", "avoidDuplication", "filterBy", "debounceTime", "minChar", "refPageSize", "disabled", "required", "autoScrollToCurrentItem", "load", "asyncLabel", "search"], outputs: ["optionsChange", "onChange", "onClick", "onClear"] }, { kind: "component", type: i6.VerbenaSwitchComponent, selector: "verbena-switch", inputs: ["label", "checked", "disabled", "offColor", "onColor", "onText", "offText", "width", "height", "customStyles"], outputs: ["change"] }, { kind: "component", type: i6.TableFilterComponent, selector: "verben-table-filter", inputs: ["filterOptions", "columns", "data", "initialFilters", "pd", "mg", "height", "width", "bgColor", "boxShadow", "textColor", "primaryColor", "secondaryColor", "tertiaryColor", "border", "borderRadius", "selectWidth", "maxFilterLength", "savedFilters", "tooltip", "saveCallback"], outputs: ["filtersApplied", "resetSortData", "filterApplied", "resetFilter"] }, { kind: "component", type: i6.VisibleColumnComponent, selector: "verben-visible-column", inputs: ["columns", "items", "enableDragAndDrop", "displayedColumns", "showMore", "pd", "mg", "height", "width", "bgColor", "boxShadow", "textColor", "primaryColor", "secondaryColor", "tertiaryColor", "border", "borderRadius", "selectWidth", "closeColumn", "saveCallback"], outputs: ["columnsUpdated", "resetFilter"] }, { kind: "component", type: i6.SortTableComponent, selector: "verben-sort-table", inputs: ["enableDragAndDrop", "sortOptions", "columns", "data", "resetText", "displayedOptions", "propertyText", "showMoreText", "sortButtonText", "pd", "mg", "height", "width", "bgColor", "boxShadow", "textColor", "primaryColor", "secondaryColor", "tertiaryColor", "border", "borderRadius", "selectWidth", "containerHeight"], outputs: ["selectedOptions", "resetSortData", "sortApplied", "resetFilter"] }, { kind: "component", type: i6.DataExportComponent, selector: "lib-data-export", inputs: ["columns", "data", "dataFetchUrl", "dataQueryParameters"], outputs: ["exportDataEvent"] }, { kind: "component", type: i6.VerbenaInputComponent, selector: "verbena-input", inputs: ["disabled", "label", "placeHolder", "required", "svgPosition", "minLength", "maxLength", "type", "bgColor", "border", "borderRadius", "textColor", "value", "labelPosition", "labelColor", "disable", "readOnly", "min", "max", "showBorder", "showErrorMessage", "errorMessageColor", "errorBorderColor", "errorPosition", "svg", "fontSize", "svgWidth", "svgHeight", "svgColor", "capitalization", "inputContainerClass", "inputFieldClass", "passLength", "inputWrapperClass", "passwordToggle", "customErrorMessages", "icon", "textPass"], outputs: ["valueChange"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.AsyncLabelPipe, name: "asyncLabel" }] });
|
|
787
|
+
}
|
|
788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormGroupComponent, decorators: [{
|
|
789
|
+
type: Component,
|
|
790
|
+
args: [{ selector: 'lib-form-group', template: "<div #messageLog class=\"flex flex-col gap-4 message-log-container\">\n <verben-data-view\n #vdv\n [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: true,\n isSort: true,\n isExport: true,\n isSelect: true,\n isCreate: true,\n isToggle: true,\n }\"\n [buttonClass]=\"'my-custom-button-class'\"\n [iconClass]=\"'my-icon-class'\"\n [searchValue]=\"searchTerm\"\n (onSearchChange)=\"onSearch($event)\"\n [showFilterChild]=\"showFilter\"\n [showSortChild]=\"showSort\"\n [showColumnChild]=\"showColumn\"\n [activeIconClass]=\"'my-active-icon-class'\"\n [selectedColumnCount]=\"selectedColumnTableCount\"\n [selectedSortCount]=\"selectedSortTableCount\"\n [selectedFilterTableCount]=\"selectedFilterTableCount\"\n (viewChange)=\"onViewChange($event)\"\n (stateChange)=\"onStateChange($event)\"\n >\n <div class=\"mt-2\" table-content>\n <lib-data-table\n #dt\n [data]=\"data\"\n [columns]=\"visibleColumnDef\"\n [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\"\n >\n <ng-container libColumn=\"select\">\n <ng-template\n #cell\n let-isSelected=\"isSelected\"\n let-toggleRowSelection=\"toggleRowSelection\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"isSelected\"\n (change)=\"toggleRowSelection()\"\n />\n </ng-template>\n <ng-template\n #header\n let-allRowsSelected=\"allRowsSelected\"\n let-someRowsSelected=\"someRowsSelected\"\n let-toggleAllRows=\"toggleAllRows\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"allRowsSelected()\"\n [indeterminate]=\"someRowsSelected()\"\n (change)=\"toggleAllRows()\"\n />\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"name\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value.Name }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n inputContainerClass=\"w-fit\"\n [(ngModel)]=\"row.Name\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"workflow\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n inputContainerClass=\"w-fit\"\n [(ngModel)]=\"row.Workflow\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"description\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n inputContainerClass=\"w-fit\"\n [(ngModel)]=\"row.Description\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"isValidated\">\n <ng-template #cell let-row=\"row\" let-value>\n <verben-svg *ngIf=\"value === true\" [icon]=\"'check'\"></verben-svg>\n <verben-svg *ngIf=\"value === false\" [icon]=\"'error'\"></verben-svg>\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-switch\n [onColor]=\"'var(--vbn-color-text)'\"\n [(ngModel)]=\"row.IsValidated\"\n ></verbena-switch>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"entity\">\n <ng-template #cell let-row=\"row\" let-value>\n {{\n row.Entity\n | asyncLabel: \"EAVEntity\" : \"Entity\" : workflowAPI\n | async\n }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateData=\"updateData\"\n let-value\n >\n <verben-drop-down\n width=\"100%\"\n placeholder=\"Select Entity\"\n [showClear]=\"true\"\n [filter]=\"true\"\n [(options)]=\"eavEntities\"\n optionLabel=\"Entity\"\n optionValue=\"Code\"\n [(ngModel)]=\"row.Entity\"\n >\n </verben-drop-down>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template\n #cell\n let-isEditing=\"isEditing\"\n let-toggleRowEdit=\"toggleRowEdit\"\n let-row=\"row\"\n let-value\n >\n <verben-pop-Up\n [customStyles]=\"{ 'z-index': '99' }\"\n [dropdownOpen]=\"isDropdownOpen(row)\"\n [enableMouseLeave]=\"false\"\n (close)=\"onClose()\"\n >\n <verben-svg\n class=\"cursor-pointer actions-icon\"\n (click)=\"openDropdown(row)\"\n dropdown-trigger\n icon=\"list\"\n ></verben-svg>\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div\n (click)=\"navigateToFields(row)\"\n class=\"pop-up-value cursor-pointer\"\n >\n View Fields\n </div>\n <div\n (click)=\"toggleRowEdit()\"\n class=\"pop-up-value cursor-pointer\"\n >\n Edit\n </div>\n <!-- <div class=\"pop-up-value cursor-pointer\">Delete</div> -->\n </div>\n </verben-pop-Up>\n </ng-template>\n <ng-template\n #cellEdit\n let-isEditing=\"isEditing\"\n let-toggleRowEdit=\"toggleRowEdit\"\n let-row=\"row\"\n let-value\n >\n <div class=\"flex gap-2 items-center\">\n <verben-svg\n icon=\"check\"\n [width]=\"15\"\n [height]=\"15\"\n (click)=\"tableSaveFormGroup(value, toggleRowEdit)\"\n ></verben-svg>\n <!-- <verben-svg icon=\"delete\" [width]=\"15\" [height]=\"15\"></verben-svg> -->\n <verben-svg\n icon=\"cardViewAlt\"\n [width]=\"15\"\n [height]=\"15\"\n (click)=\"goToCardView(value)\"\n ></verben-svg>\n </div>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n <div card-content>\n <verben-card-data-view\n borderRadius=\"12px\"\n #vdcv\n dataId=\"Id\"\n border=\"5px\"\n [cardDataList]=\"cardData\"\n rbgColor=\"var(--vbn-color-surface-alt)\"\n mg=\"0px\"\n >\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data\n #vlcd\n [parent]=\"vdcv\"\n dataId=\"MailAddress\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\"\n [cardDataList]=\"cardData\"\n >\n <ng-template #card let-item>\n <div\n (click)=\"userCardClicked(item)\"\n class=\"flex cursor-pointer h-[max-content]\"\n >\n <!-- <verben-svg [width]=\"15\" [height]=\"15\" (click)=\"toggleChildren(item); $event.stopPropagation()\"\n [ngClass]=\"item.children && item.children.length?'visible':'invisible'\"\n class=\"items-center flex pr-1 cursor-pointer\" [icon]=\"item.isChildrenExpanded?'minus':'plus'\" /> -->\n <div class=\"flex w-full bg-secondary rounded-xl\">\n <div\n class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\"\n [ngClass]=\"\n item.selected ? 'bg-primary' : 'bg-secondary-200'\n \"\n ></div>\n <div class=\"py-3 px-4 flex-1 h-[100%]\">\n <div\n class=\"flex items-start flex-1 gap-1 justify-between h-[100%]\"\n >\n <div\n class=\"flex flex-col flex-1 card-min-height justify-between h-[100%]\"\n >\n <div class=\"flex justify-between\">\n <div>\n <h3\n class=\"my-0 font-bold text-[var(--vbn-color-on-primary)] leading-[19.5px]\"\n >\n {{ item.data.Name }}\n </h3>\n <span class=\"flex mt-2 items-center gap-1\">\n <span\n class=\"!text-[10px] font-light text-[var(--vbn-color-on-primary)]\"\n >Description:</span\n >\n <span class=\"!text-[12px] font-semibold\">{{\n item.data.Description\n }}</span>\n </span>\n </div>\n\n <div>\n <span\n class=\"!text-[10px] text-[var(--vbn-color-on-primary)]\"\n >Work Flow</span\n >\n <p class=\"!text-[12px]\">{{ item.data.Workflow }}</p>\n </div>\n </div>\n </div>\n\n <!-- <div class=\"flex items-end h-[100%]\">\n <span class=\"enum-val {{item.data.Status}}\">{{item.data.Status}}</span>\n </div> -->\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </verben-left-card-data>\n </verben-left-card-data-view>\n <verben-right-card-data-view>\n <ng-template #parent>\n <div\n *ngIf=\"this.currentData\"\n class=\"flex flex-col rounded-xl h-full w-full relative gap-6\"\n >\n <verbena-input\n name=\"Name\"\n label=\"Name\"\n (ngModelChange)=\"updateTable()\"\n [(ngModel)]=\"currentData.data.Name\"\n />\n <verbena-input\n name=\"Description\"\n label=\"Description\"\n (ngModelChange)=\"updateTable()\"\n [(ngModel)]=\"currentData.data.Description\"\n />\n <verbena-input\n name=\"Workflow\"\n label=\"Work Flow\"\n [(ngModel)]=\"currentData.data.Workflow\"\n />\n\n <div class=\"flex flex-col gap-1\">\n <div>Entity</div>\n <verben-drop-down\n width=\"100%\"\n placeholder=\"Select Entity\"\n [showClear]=\"true\"\n [filter]=\"true\"\n [(options)]=\"eavEntities\"\n optionLabel=\"Entity\"\n optionValue=\"Code\"\n [(ngModel)]=\"currentData.data.Entity\"\n >\n </verben-drop-down>\n </div>\n <div class=\"flex flex-col gap-1\">\n <div>Validate</div>\n <verbena-switch\n [onColor]=\"'var(--vbn-color-text)'\"\n [(ngModel)]=\"currentData.data.IsValidated\"\n ></verbena-switch>\n </div>\n <!-- <div class=\"flex flex-col gap-1\">\n <div>Status</div>\n <verben-drop-down width=\"100%\" placeholder=\"Change Status\" [(options)]=\"statusOptions\"\n [(ngModel)]=\"this.currentData.data.Status\">\n </verben-drop-down>\n </div> -->\n\n <!-- buttons -->\n <div class=\"flex justify-between w-full bottom-8 left-0 right-0\">\n <div>\n <verbena-button\n *ngIf=\"\n currentData.data.Entity &&\n currentData.data.Entity.trim().length > 0\n \"\n class=\"verben-switch-button\"\n (click)=\"publishEAV(currentData.data)\"\n text=\"Publish Extension\"\n ></verbena-button>\n </div>\n <!-- <verbena-button class=\"verben-delete-button\" text=\"Delete\"></verbena-button> -->\n <div class=\"flex gap-3\">\n <verbena-button\n *ngIf=\"currentData.data.DataState !== 'New'\"\n class=\"verben-switch-button\"\n (click)=\"navigateToFields(currentData.data)\"\n text=\"View Fields\"\n ></verbena-button>\n <verbena-button\n class=\"verben-switch-button\"\n (click)=\"goToTableView()\"\n text=\"Switch To Table\"\n ></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"this.saveFormGroup()\"\n text=\"Save\"\n ></verbena-button>\n </div>\n </div>\n </div>\n </ng-template>\n </verben-right-card-data-view>\n <!-- <verben-right-card-data-view>\n yeshhhhhh\n </verben-right-card-data-view> -->\n\n <verben-card-data-view-footer>\n <div class=\"flex gap-2 justify-between\">\n <div\n *ngIf=\"!vdcv.hasCurrentItem()\"\n class=\"message-log-button-container flex justify-between\"\n >\n <!-- <verbena-button [fontWeight]=\"'bold'\" [bgColor]=\"'var(--vbn-color-text-muted)'\" [borderRadius]=\"'4px'\" [textColor]=\"'var(--vbn-color-surface)'\"\n [text]=\"'Delete'\">\n </verbena-button> -->\n </div>\n <div\n class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\"\n >\n <span class=\"paginator-text\"\n >{{ cardData.length }} records loaded</span\n >\n <button (click)=\"loadMore()\" class=\"load-more view-links\">\n Load more\n </button>\n </div>\n </div>\n </verben-card-data-view-footer>\n </verben-card-data-view>\n </div>\n <div column-content>\n <verben-visible-column\n (resetFilter)=\"getForms()\"\n (columnsUpdated)=\"onColumnsUpdated($event)\"\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"400px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n [columns]=\"visibleColumns\"\n [displayedColumns]=\"5\"\n ></verben-visible-column>\n </div>\n <div filter-content>\n <verben-table-filter\n (resetSortData)=\"getForms()\"\n (filtersApplied)=\"onFilterApplied($event)\"\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"420px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"\n ></verben-table-filter>\n </div>\n <div sort-content>\n <verben-sort-table\n (resetSortData)=\"getForms()\"\n (selectedOptions)=\"onSortUpdated($event)\"\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"400px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [enableDragAndDrop]=\"true\"\n [sortOptions]=\"sortOptions\"\n ></verben-sort-table>\n </div>\n <div export-content>\n <lib-data-export [data]=\"data\" (exportDataEvent)=\"handleExport($event)\">\n </lib-data-export>\n </div>\n </verben-data-view>\n <div *ngIf=\"vdv.isTableView\" class=\"flex gap-2 justify-between\">\n <div class=\"message-log-button-container flex justify-between\">\n <!-- <verbena-button [fontWeight]=\"'bold'\" [bgColor]=\"'var(--vbn-color-text-muted)'\" [borderRadius]=\"'4px'\" [textColor]=\"'var(--vbn-color-surface)'\"\n [text]=\"'Delete'\">\n </verbena-button> -->\n </div>\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData.length }} records loaded</span>\n <button (click)=\"loadMore()\" class=\"load-more view-links\">\n Load more\n </button>\n </div>\n </div>\n</div>\n", styles: [".view-links{font-size:14px!important;color:var(--vbn-color-border-focus);font-weight:600;cursor:pointer}.view-links:hover{text-decoration:underline;text-underline-offset:3px}.context-banner{background-color:#d4a00773}.card-min-height{gap:10px}::ng-deep .childrenPadding{max-height:300px;overflow-y:auto}::ng-deep .toolbar{margin-bottom:15px}::ng-deep .master-only-container{margin:0!important;padding:0!important}::ng-deep .master-detail-container{margin:0!important;padding:0!important}.pop-up-content{border-radius:4px;background-color:var(--vbn-color-surface);border:1px solid rgba(212,161,7,.5)}.pop-up-value{padding:10px 20px}.pop-up-content>div:nth-child(1){border-bottom:4px solid var(--vbn-color-primary)}.enum-val{padding:2px 10px;width:100%;min-width:max-content;text-align:center}.enum-val.Active{background-color:var(--vbn-color-success-bg);color:var(--vbn-color-success)}.enum-val.InActive{background-color:#ffdfdf;color:var(--vbn-color-error)}.toggle-container{width:53px;padding:1px;color:var(--vbn-color-surface);height:22px;position:relative;background-color:var(--vbn-color-text);border-radius:2rem;cursor:pointer}.toggle-circle{width:50%;height:100%;position:absolute;left:0;padding:5px;top:0;background-color:var(--vbn-color-surface);border-radius:50%;transform:scale(1);transition:transform .3s}.translate-100{transform:translate(100%)}.translate-0{transform:translate(0)}.toggle-text-on{display:block;font-size:12px;margin-left:4px}.toggle-text-off{display:block;font-size:12px;margin-right:4px;text-align:right}\n"] }]
|
|
791
|
+
}], ctorParameters: () => [{ type: i1.UtilService }, { type: i1.HttpWebRequestService }, { type: i0.ChangeDetectorRef }, { type: i1.EnvironmentService }, { type: i3.Router }, { type: FormsService }], propDecorators: { path: [{
|
|
792
|
+
type: Input
|
|
793
|
+
}], cardDataView: [{
|
|
794
|
+
type: ViewChild,
|
|
795
|
+
args: ['vdcv']
|
|
796
|
+
}], dataView: [{
|
|
797
|
+
type: ViewChild,
|
|
798
|
+
args: ['vdv']
|
|
799
|
+
}], tableView: [{
|
|
800
|
+
type: ViewChild,
|
|
801
|
+
args: ['dt']
|
|
802
|
+
}], application: [{
|
|
803
|
+
type: Input
|
|
804
|
+
}], pageSize: [{
|
|
805
|
+
type: Input
|
|
806
|
+
}], onViewProcessClicked: [{
|
|
807
|
+
type: Output
|
|
808
|
+
}] } });
|
|
809
|
+
|
|
810
|
+
class FormsFieldService {
|
|
811
|
+
constructor() { }
|
|
812
|
+
get formFieldColumns() {
|
|
813
|
+
return [
|
|
814
|
+
{
|
|
815
|
+
id: 'select',
|
|
816
|
+
header: '',
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
id: 'name',
|
|
820
|
+
header: 'NAME',
|
|
821
|
+
accessorFn: (row) => {
|
|
822
|
+
return row;
|
|
823
|
+
},
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
id: 'propertyName',
|
|
827
|
+
header: 'PROPERTY NAME',
|
|
828
|
+
accessorFn: (row) => {
|
|
829
|
+
return row.PropertyName;
|
|
830
|
+
},
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
id: 'dataType',
|
|
834
|
+
header: 'DATA TYPE',
|
|
835
|
+
accessorKey: 'DataType',
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
id: 'minValue',
|
|
839
|
+
header: 'MIN VALUE',
|
|
840
|
+
accessorKey: 'MinValue',
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
id: 'maxValue',
|
|
844
|
+
header: 'MAX VALUE',
|
|
845
|
+
accessorKey: 'MaxValue',
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
id: 'defaultValue',
|
|
849
|
+
header: 'DEFAULT VALUE',
|
|
850
|
+
accessorKey: 'DefaultValue',
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
id: 'isRequired',
|
|
854
|
+
header: 'REQUIRED',
|
|
855
|
+
accessorKey: 'IsRequired',
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
id: 'isReadOnly',
|
|
859
|
+
header: 'READ ONLY',
|
|
860
|
+
accessorKey: 'IsReadOnly',
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
id: 'actions',
|
|
864
|
+
header: 'ACTIONS',
|
|
865
|
+
accessorFn: (row) => {
|
|
866
|
+
return row;
|
|
867
|
+
},
|
|
868
|
+
},
|
|
869
|
+
];
|
|
870
|
+
}
|
|
871
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormsFieldService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
872
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormsFieldService, providedIn: 'root' });
|
|
873
|
+
}
|
|
874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormsFieldService, decorators: [{
|
|
875
|
+
type: Injectable,
|
|
876
|
+
args: [{
|
|
877
|
+
providedIn: 'root',
|
|
878
|
+
}]
|
|
879
|
+
}], ctorParameters: () => [] });
|
|
880
|
+
|
|
881
|
+
var TaskUserPropertyName;
|
|
882
|
+
(function (TaskUserPropertyName) {
|
|
883
|
+
TaskUserPropertyName["User"] = "User";
|
|
884
|
+
TaskUserPropertyName["Date"] = "Date";
|
|
885
|
+
TaskUserPropertyName["Role"] = "Role";
|
|
886
|
+
TaskUserPropertyName["Service"] = "Service";
|
|
887
|
+
TaskUserPropertyName["Application"] = "Application";
|
|
888
|
+
TaskUserPropertyName["Tenant"] = "Tenant";
|
|
889
|
+
TaskUserPropertyName["Email"] = "Email";
|
|
890
|
+
TaskUserPropertyName["Status"] = "Status";
|
|
891
|
+
})(TaskUserPropertyName || (TaskUserPropertyName = {}));
|
|
892
|
+
var TaskUserPropertyMap;
|
|
893
|
+
(function (TaskUserPropertyMap) {
|
|
894
|
+
TaskUserPropertyMap["User"] = "Name";
|
|
895
|
+
TaskUserPropertyMap["Date"] = "CreatedAt";
|
|
896
|
+
TaskUserPropertyMap["Role"] = "RoleID";
|
|
897
|
+
TaskUserPropertyMap["Service"] = "ServiceName";
|
|
898
|
+
TaskUserPropertyMap["Application"] = "Application";
|
|
899
|
+
TaskUserPropertyMap["Tenant"] = "TenantId";
|
|
900
|
+
TaskUserPropertyMap["Email"] = "MailAddress";
|
|
901
|
+
TaskUserPropertyMap["Status"] = "Status";
|
|
902
|
+
})(TaskUserPropertyMap || (TaskUserPropertyMap = {}));
|
|
903
|
+
var FilterTypes;
|
|
904
|
+
(function (FilterTypes) {
|
|
905
|
+
FilterTypes["Before"] = "LT";
|
|
906
|
+
FilterTypes["On"] = "EQ";
|
|
907
|
+
FilterTypes["After"] = "GT";
|
|
908
|
+
FilterTypes["NEQ"] = "NEQ";
|
|
909
|
+
})(FilterTypes || (FilterTypes = {}));
|
|
910
|
+
class FormFieldsComponent {
|
|
911
|
+
utilService;
|
|
912
|
+
server;
|
|
913
|
+
cdr;
|
|
914
|
+
fb;
|
|
915
|
+
envSvc;
|
|
916
|
+
router;
|
|
917
|
+
route;
|
|
918
|
+
taskUsersSvc;
|
|
919
|
+
_location;
|
|
920
|
+
elRef;
|
|
921
|
+
renderer;
|
|
922
|
+
visibleColumnDef = [];
|
|
923
|
+
styles = baseStyle;
|
|
924
|
+
data = [];
|
|
925
|
+
hideMinMax = true;
|
|
926
|
+
path = '/documentation/workflow-forms/fields';
|
|
927
|
+
cardData = [];
|
|
928
|
+
queryParams = {};
|
|
929
|
+
showSort = false;
|
|
930
|
+
showColumn = false;
|
|
931
|
+
currentData = null;
|
|
932
|
+
fileInput;
|
|
933
|
+
cardDataView;
|
|
934
|
+
dataView;
|
|
935
|
+
tableView;
|
|
936
|
+
application = null;
|
|
937
|
+
pageSize = 10;
|
|
938
|
+
searchDebounceTime = 500;
|
|
939
|
+
onViewProcessClicked = new EventEmitter();
|
|
940
|
+
currentExpandedCard = null;
|
|
941
|
+
pageState = null;
|
|
942
|
+
isOpen = false;
|
|
943
|
+
openDropdownId = null;
|
|
944
|
+
currentFilters = [];
|
|
945
|
+
currentSorts = [];
|
|
946
|
+
selectedFilterTableCount = 0;
|
|
947
|
+
selectedSortTableCount = 0;
|
|
948
|
+
selectedColumnTableCount = 0;
|
|
949
|
+
showFilter = false;
|
|
950
|
+
formName = '';
|
|
951
|
+
searchTerm$ = new Subject();
|
|
952
|
+
properties = [];
|
|
953
|
+
searchTerm = '';
|
|
954
|
+
skip = 0;
|
|
955
|
+
chipArray = [];
|
|
956
|
+
Id = '';
|
|
957
|
+
chips;
|
|
958
|
+
statusOptions = Object.values(Status);
|
|
959
|
+
dataType = Object.values(DataType);
|
|
960
|
+
dataType2 = DataType.Text;
|
|
961
|
+
users = [];
|
|
962
|
+
visibleColumns = [];
|
|
963
|
+
filterArray = [
|
|
964
|
+
{
|
|
965
|
+
name: 'Name',
|
|
966
|
+
type: DataFilterType.String,
|
|
967
|
+
checked: false,
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
name: 'DataType',
|
|
971
|
+
type: DataFilterType.String,
|
|
972
|
+
checked: false,
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
name: 'DefaultValue',
|
|
976
|
+
type: DataFilterType.String,
|
|
977
|
+
checked: false,
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
name: 'Value',
|
|
981
|
+
type: DataFilterType.String,
|
|
982
|
+
checked: false,
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
name: 'MaxValue',
|
|
986
|
+
type: DataFilterType.Number,
|
|
987
|
+
checked: false,
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
name: 'MinValue',
|
|
991
|
+
type: DataFilterType.String,
|
|
992
|
+
checked: false,
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
name: 'IsRequired',
|
|
996
|
+
type: DataFilterType.Bool,
|
|
997
|
+
checked: false,
|
|
998
|
+
},
|
|
999
|
+
];
|
|
1000
|
+
sortOptions = [
|
|
1001
|
+
{
|
|
1002
|
+
name: 'Name',
|
|
1003
|
+
type: DataFilterType.String,
|
|
1004
|
+
checked: false,
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
name: 'DataType',
|
|
1008
|
+
type: DataFilterType.String,
|
|
1009
|
+
checked: false,
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
name: 'DefaultValue',
|
|
1013
|
+
type: DataFilterType.String,
|
|
1014
|
+
checked: false,
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
name: 'Value',
|
|
1018
|
+
type: DataFilterType.String,
|
|
1019
|
+
checked: false,
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
name: 'MaxValue',
|
|
1023
|
+
type: DataFilterType.Number,
|
|
1024
|
+
checked: false,
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
name: 'MinValue',
|
|
1028
|
+
type: DataFilterType.String,
|
|
1029
|
+
checked: false,
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
name: 'IsRequired',
|
|
1033
|
+
type: DataFilterType.Bool,
|
|
1034
|
+
checked: false,
|
|
1035
|
+
},
|
|
1036
|
+
];
|
|
1037
|
+
currentSearchTerm = '';
|
|
1038
|
+
constructor(utilService, server, cdr, fb, envSvc, router, route, taskUsersSvc, _location, elRef, renderer) {
|
|
1039
|
+
this.utilService = utilService;
|
|
1040
|
+
this.server = server;
|
|
1041
|
+
this.cdr = cdr;
|
|
1042
|
+
this.fb = fb;
|
|
1043
|
+
this.envSvc = envSvc;
|
|
1044
|
+
this.router = router;
|
|
1045
|
+
this.route = route;
|
|
1046
|
+
this.taskUsersSvc = taskUsersSvc;
|
|
1047
|
+
this._location = _location;
|
|
1048
|
+
this.elRef = elRef;
|
|
1049
|
+
this.renderer = renderer;
|
|
1050
|
+
this.visibleColumnDef = taskUsersSvc.formFieldColumns;
|
|
1051
|
+
this.visibleColumns = taskUsersSvc.formFieldColumns.map((col) => ({
|
|
1052
|
+
checked: true,
|
|
1053
|
+
name: typeof col.header === 'string' ? col.header : col.id,
|
|
1054
|
+
type: DataFilterType.Bool,
|
|
1055
|
+
}));
|
|
1056
|
+
}
|
|
1057
|
+
async ngOnInit() {
|
|
1058
|
+
this.searchTerm$
|
|
1059
|
+
.pipe(debounceTime(this.searchDebounceTime)) // Adjust debounce time here (in ms)
|
|
1060
|
+
.subscribe(async (searchTerm) => {
|
|
1061
|
+
this.currentSearchTerm = searchTerm;
|
|
1062
|
+
this.updateFiltersAndSorts(true);
|
|
1063
|
+
});
|
|
1064
|
+
this.route.queryParams.subscribe((params) => {
|
|
1065
|
+
const Id = params['FormId'];
|
|
1066
|
+
const Name = params['Name'];
|
|
1067
|
+
this.Id = Id;
|
|
1068
|
+
this.formName = Name;
|
|
1069
|
+
if (Id) {
|
|
1070
|
+
this.getProperties(Id);
|
|
1071
|
+
}
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
onChipChange(chips) {
|
|
1075
|
+
this.chips = chips;
|
|
1076
|
+
}
|
|
1077
|
+
async postSearch(payload) {
|
|
1078
|
+
this.utilService.sendBI(true);
|
|
1079
|
+
const res = await this.server.post(`SearchFormEntities/0/${this.pageSize}`, payload);
|
|
1080
|
+
this.utilService.sendBI(false);
|
|
1081
|
+
if (res instanceof ErrorResponse) {
|
|
1082
|
+
this.utilService.showError('Error occurred while searching.');
|
|
1083
|
+
return;
|
|
1084
|
+
}
|
|
1085
|
+
const pageState = res;
|
|
1086
|
+
const result = pageState?.Result;
|
|
1087
|
+
if (!result || result.length === 0) {
|
|
1088
|
+
this.utilService.showInfo('No results found.');
|
|
1089
|
+
this.data = [];
|
|
1090
|
+
return;
|
|
1091
|
+
}
|
|
1092
|
+
// Assign and ensure Properties exist
|
|
1093
|
+
this.data = result.map((item) => ({
|
|
1094
|
+
...item,
|
|
1095
|
+
Properties: item.Properties || [],
|
|
1096
|
+
}));
|
|
1097
|
+
this.setUpCardData();
|
|
1098
|
+
return result;
|
|
1099
|
+
}
|
|
1100
|
+
onDropDownChange(event) {
|
|
1101
|
+
if (event) {
|
|
1102
|
+
this.checkMinMax(event);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
async getProperties(Id, show = false) {
|
|
1106
|
+
if (this.showColumn) {
|
|
1107
|
+
this.showColumn = false;
|
|
1108
|
+
this.selectedColumnTableCount = 0;
|
|
1109
|
+
this.reset();
|
|
1110
|
+
}
|
|
1111
|
+
if (this.showFilter) {
|
|
1112
|
+
this.showFilter = false;
|
|
1113
|
+
this.selectedFilterTableCount = 0;
|
|
1114
|
+
this.reset();
|
|
1115
|
+
}
|
|
1116
|
+
if (this.showSort) {
|
|
1117
|
+
this.showSort = false;
|
|
1118
|
+
this.reset();
|
|
1119
|
+
this.selectedSortTableCount = 0;
|
|
1120
|
+
}
|
|
1121
|
+
var payload = [
|
|
1122
|
+
{
|
|
1123
|
+
PropertyName: `Code`,
|
|
1124
|
+
EntityValue: Id,
|
|
1125
|
+
Operator: SearchOperator.And,
|
|
1126
|
+
Sign: SearchPropertySign.EQ,
|
|
1127
|
+
Type: SearchPropertyValueType.String,
|
|
1128
|
+
},
|
|
1129
|
+
];
|
|
1130
|
+
this.utilService.sendBI(true);
|
|
1131
|
+
const res = await this.server.post(`SearchFormEntities/${this.skip}/${this.pageSize}`, payload);
|
|
1132
|
+
this.utilService.sendBI(false);
|
|
1133
|
+
if (res instanceof ErrorResponse) {
|
|
1134
|
+
return undefined;
|
|
1135
|
+
}
|
|
1136
|
+
else {
|
|
1137
|
+
var result = res.Result;
|
|
1138
|
+
this.data = result;
|
|
1139
|
+
this.data.forEach((x) => x.Properties.forEach((p, i) => (p.Id = i.toString())));
|
|
1140
|
+
this.properties = this.data[0].Properties;
|
|
1141
|
+
this.setUpCardData();
|
|
1142
|
+
show = false;
|
|
1143
|
+
return result;
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
onUserSelected(event, item) {
|
|
1147
|
+
const user = this.users.find((x) => x.Name == event.value);
|
|
1148
|
+
if (user) {
|
|
1149
|
+
item.Name = user.Name;
|
|
1150
|
+
item.Description = user.Description;
|
|
1151
|
+
item.Properties = user.Properties;
|
|
1152
|
+
item.IsValidated = user.IsValidated;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
onClear(event, item) {
|
|
1156
|
+
item.Name = '';
|
|
1157
|
+
item.Description = '';
|
|
1158
|
+
item.Properties = [];
|
|
1159
|
+
item.IsValidated = false;
|
|
1160
|
+
}
|
|
1161
|
+
async getForms() {
|
|
1162
|
+
this.utilService.sendBI(true);
|
|
1163
|
+
const res = await this.server.get(`GetFormEntitiesWithParams/Group/0/${this.pageSize}`, this.envSvc.environment.WorkFlowAPI);
|
|
1164
|
+
this.utilService.sendBI(false);
|
|
1165
|
+
if (res instanceof ErrorResponse) {
|
|
1166
|
+
return undefined;
|
|
1167
|
+
}
|
|
1168
|
+
else {
|
|
1169
|
+
this.pageState = res;
|
|
1170
|
+
var result = res.Result;
|
|
1171
|
+
this.data = result;
|
|
1172
|
+
this.setUpCardData();
|
|
1173
|
+
this.properties = result[0].Properties;
|
|
1174
|
+
return result;
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
getItemLabel(name) {
|
|
1178
|
+
const item = this.users.find((user) => user.Name === name);
|
|
1179
|
+
const otherCheck = this.data.find((data) => data.Name === name);
|
|
1180
|
+
return item ? item.Name : otherCheck ? otherCheck.Name : '';
|
|
1181
|
+
}
|
|
1182
|
+
getAsyncLabel(value) {
|
|
1183
|
+
const data = this.data.find((x) => x.Name == value);
|
|
1184
|
+
return data ? data.Name : '';
|
|
1185
|
+
}
|
|
1186
|
+
async loadMore() {
|
|
1187
|
+
if (!this.pageState) {
|
|
1188
|
+
return;
|
|
1189
|
+
}
|
|
1190
|
+
this.utilService.sendBI(true);
|
|
1191
|
+
const res = this.currentFilters.length > 0 ||
|
|
1192
|
+
this.currentSorts.length > 0 ||
|
|
1193
|
+
this.currentSearchTerm.trim().length > 0
|
|
1194
|
+
? await this.loadMoreFiltersAndSorts()
|
|
1195
|
+
: await this.server.get(`GetTaskUsers/${this.pageState.Skip}/${this.pageSize}`, this.envSvc.environment.WorkFlowAPI);
|
|
1196
|
+
this.utilService.sendBI(false);
|
|
1197
|
+
if (res instanceof ErrorResponse) {
|
|
1198
|
+
return;
|
|
1199
|
+
}
|
|
1200
|
+
else {
|
|
1201
|
+
this.pageState = res;
|
|
1202
|
+
var result = res.Result;
|
|
1203
|
+
this.data = this.data.concat(result.map((x) => {
|
|
1204
|
+
return {
|
|
1205
|
+
...x,
|
|
1206
|
+
id: x.Name,
|
|
1207
|
+
};
|
|
1208
|
+
}));
|
|
1209
|
+
this.setUpCardDataExtra(result);
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
cardClicked(item, toggleView = false) {
|
|
1213
|
+
this.currentData = this.cardDataView.onItemClick(item);
|
|
1214
|
+
if (toggleView) {
|
|
1215
|
+
this.dataView.toggleView();
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
toggleChildren(item) {
|
|
1219
|
+
var currToggleState = item.isChildrenExpanded;
|
|
1220
|
+
this.cardData.forEach((_) => {
|
|
1221
|
+
_.isChildrenExpanded = false;
|
|
1222
|
+
});
|
|
1223
|
+
item.isChildrenExpanded = !currToggleState;
|
|
1224
|
+
if (item.isChildrenExpanded) {
|
|
1225
|
+
this.currentExpandedCard = item;
|
|
1226
|
+
}
|
|
1227
|
+
else {
|
|
1228
|
+
this.currentExpandedCard = null;
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
setUpCardData() {
|
|
1232
|
+
const cardData = this.data[0]?.Properties?.map((x) => {
|
|
1233
|
+
return {
|
|
1234
|
+
...x,
|
|
1235
|
+
selected: false,
|
|
1236
|
+
title: x.Name,
|
|
1237
|
+
data: x,
|
|
1238
|
+
body: [],
|
|
1239
|
+
children: [],
|
|
1240
|
+
};
|
|
1241
|
+
});
|
|
1242
|
+
this.cardData = cardData; // Assign the transformed array to `cardData`
|
|
1243
|
+
}
|
|
1244
|
+
openDropdown(item) {
|
|
1245
|
+
this.openDropdownId = this.openDropdownId === item.Id ? null : item.Id;
|
|
1246
|
+
}
|
|
1247
|
+
closePopUp(row) {
|
|
1248
|
+
if (this.openDropdownId === row.Id) {
|
|
1249
|
+
this.openDropdownId = null; // Properly reset when closing
|
|
1250
|
+
}
|
|
1251
|
+
this.onClose(); // Call any additional logic for closure
|
|
1252
|
+
}
|
|
1253
|
+
setUpCardDataExtra(baseData) {
|
|
1254
|
+
const cardData = baseData.map((x) => {
|
|
1255
|
+
return {
|
|
1256
|
+
selected: false,
|
|
1257
|
+
title: x.Name,
|
|
1258
|
+
data: x,
|
|
1259
|
+
body: [],
|
|
1260
|
+
children: [],
|
|
1261
|
+
};
|
|
1262
|
+
});
|
|
1263
|
+
this.cardData = this.cardData.concat(cardData);
|
|
1264
|
+
}
|
|
1265
|
+
goToCardView(data) {
|
|
1266
|
+
const item = this.cardData.find((x) => x.data == data);
|
|
1267
|
+
if (item) {
|
|
1268
|
+
this.userCardClicked(item, true);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
goToTableView() {
|
|
1272
|
+
if (!this.currentData) {
|
|
1273
|
+
return;
|
|
1274
|
+
}
|
|
1275
|
+
this.dataView.toggleView();
|
|
1276
|
+
const id = this.currentData.data ? this.currentData.data.Id : '';
|
|
1277
|
+
if (id.trim().length > 0 && !this.tableView.isRowEditing(id)) {
|
|
1278
|
+
this.tableView.toggleRowEdit(id);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
viewProcesses(code) {
|
|
1282
|
+
if (code.trim().length == 0) {
|
|
1283
|
+
return;
|
|
1284
|
+
}
|
|
1285
|
+
this.onViewProcessClicked.emit(code);
|
|
1286
|
+
}
|
|
1287
|
+
userCardClicked(item, toggleView = false) {
|
|
1288
|
+
this.cardData.forEach((card) => (card.selected = false));
|
|
1289
|
+
item.selected = true;
|
|
1290
|
+
this.currentData = this.cardDataView.onItemClick(item);
|
|
1291
|
+
this.chipArray = JSON.parse(this.currentData?.data.Value);
|
|
1292
|
+
if (toggleView) {
|
|
1293
|
+
this.dataView.toggleView();
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
async saveFormProperty() {
|
|
1297
|
+
if (!this.currentData) {
|
|
1298
|
+
return;
|
|
1299
|
+
}
|
|
1300
|
+
const formProperty = this.data;
|
|
1301
|
+
this.utilService.sendBI(true);
|
|
1302
|
+
try {
|
|
1303
|
+
// API call to save user
|
|
1304
|
+
const res = await this.server.post(`SaveFormEntities`, formProperty, this.envSvc.environment.WorkFlowAPI);
|
|
1305
|
+
this.utilService.sendBI(false);
|
|
1306
|
+
if (!(res instanceof ErrorResponse)) {
|
|
1307
|
+
this.utilService.showSuccess('Form property saved successfully');
|
|
1308
|
+
const result = res;
|
|
1309
|
+
if (result.length > 0) {
|
|
1310
|
+
const userResult = result[0];
|
|
1311
|
+
const itemIndex = this.data.findIndex((x) => x === this.currentData?.data);
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
catch (error) {
|
|
1316
|
+
this.utilService.sendBI(false);
|
|
1317
|
+
// Optional: Handle errors if needed
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
stringify(val) {
|
|
1321
|
+
return JSON.stringify(val);
|
|
1322
|
+
}
|
|
1323
|
+
generateUniqueId() {
|
|
1324
|
+
return '_' + Math.random().toString(36).substr(2, 9);
|
|
1325
|
+
}
|
|
1326
|
+
addOrUpdateFormProperty(form, property) {
|
|
1327
|
+
if (!property.id) {
|
|
1328
|
+
property.id = this.generateUniqueId();
|
|
1329
|
+
}
|
|
1330
|
+
const index = form.Properties.findIndex((p) => p.id === property.id);
|
|
1331
|
+
if (index !== -1) {
|
|
1332
|
+
form.Properties[index] = { ...property }; // update
|
|
1333
|
+
}
|
|
1334
|
+
else {
|
|
1335
|
+
form.Properties.push({ ...property }); // add
|
|
1336
|
+
}
|
|
1337
|
+
form.DataState =
|
|
1338
|
+
form.DataState === ObjectState.New
|
|
1339
|
+
? ObjectState.New
|
|
1340
|
+
: ObjectState.Changed;
|
|
1341
|
+
}
|
|
1342
|
+
deleteProperty(propertyId) {
|
|
1343
|
+
if (!this.data || this.data.length === 0)
|
|
1344
|
+
return;
|
|
1345
|
+
const form = this.data[0];
|
|
1346
|
+
form.Properties = form.Properties.filter((p) => p.Id !== propertyId);
|
|
1347
|
+
this.cardData = this.cardData.filter((c) => c.data.Id !== propertyId);
|
|
1348
|
+
if (this.currentData && this.currentData.data.Id === propertyId) {
|
|
1349
|
+
this.currentData = null;
|
|
1350
|
+
this.cardDataView.clearData();
|
|
1351
|
+
}
|
|
1352
|
+
this.data = [...this.data];
|
|
1353
|
+
this.utilService.showInfo('Property removed');
|
|
1354
|
+
}
|
|
1355
|
+
async saveAllProperties() {
|
|
1356
|
+
if (!this.data || this.data.length === 0)
|
|
1357
|
+
return;
|
|
1358
|
+
const form = this.data[0];
|
|
1359
|
+
form.Properties.forEach((prop, index) => {
|
|
1360
|
+
prop.Id = index.toString();
|
|
1361
|
+
prop.MaxValue = Number(prop.MaxValue);
|
|
1362
|
+
prop.MinValue = Number(prop.MinValue);
|
|
1363
|
+
prop.Options = Array.isArray(prop.Options)
|
|
1364
|
+
? prop.Options.join(',')
|
|
1365
|
+
: (prop.Options ?? '');
|
|
1366
|
+
prop.Value = prop.Value ?? '';
|
|
1367
|
+
});
|
|
1368
|
+
const invalid = form.Properties.find((p) => !p.Name || p.Name.trim().length === 0);
|
|
1369
|
+
if (invalid) {
|
|
1370
|
+
this.utilService.showInfo('Name cannot be empty');
|
|
1371
|
+
return;
|
|
1372
|
+
}
|
|
1373
|
+
form.DataState = ObjectState.Changed;
|
|
1374
|
+
this.utilService.sendBI(true);
|
|
1375
|
+
const res = await this.server.post('SaveFormEntities', [form], this.envSvc.environment.WorkFlowAPI);
|
|
1376
|
+
this.utilService.sendBI(false);
|
|
1377
|
+
if (res instanceof ErrorResponse) {
|
|
1378
|
+
this.utilService.showError('An error occurred while saving');
|
|
1379
|
+
}
|
|
1380
|
+
else {
|
|
1381
|
+
this.utilService.showSuccess('Form properties saved successfully');
|
|
1382
|
+
const result = res;
|
|
1383
|
+
if (result.length > 0) {
|
|
1384
|
+
this.data[0].DataState = result[0].DataState;
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
async saveViaTable(row, callBack) {
|
|
1389
|
+
if (!row)
|
|
1390
|
+
return;
|
|
1391
|
+
const property = row;
|
|
1392
|
+
property.MaxValue = Number(property.MaxValue);
|
|
1393
|
+
property.MinValue = Number(property.MinValue);
|
|
1394
|
+
property.Options = this.chipArray?.toString();
|
|
1395
|
+
property.Value = '';
|
|
1396
|
+
if (!property.Name || property.Name.trim().length === 0) {
|
|
1397
|
+
this.utilService.showInfo('Name cannot be empty');
|
|
1398
|
+
return;
|
|
1399
|
+
}
|
|
1400
|
+
this.utilService.sendBI(true);
|
|
1401
|
+
const form = this.data[0];
|
|
1402
|
+
const index = form.Properties.findIndex((p) => p.id === property.id);
|
|
1403
|
+
if (index > -1) {
|
|
1404
|
+
form.Properties[index] = property;
|
|
1405
|
+
}
|
|
1406
|
+
else {
|
|
1407
|
+
form.Properties.push(property);
|
|
1408
|
+
}
|
|
1409
|
+
form.DataState =
|
|
1410
|
+
form.DataState === ObjectState.New
|
|
1411
|
+
? ObjectState.New
|
|
1412
|
+
: ObjectState.Changed;
|
|
1413
|
+
const res = await this.server.post('SaveFormEntities', this.data, this.envSvc.environment.WorkFlowAPI);
|
|
1414
|
+
this.utilService.sendBI(false);
|
|
1415
|
+
if (res instanceof ErrorResponse) {
|
|
1416
|
+
this.utilService.showError('An error occurred while saving');
|
|
1417
|
+
}
|
|
1418
|
+
else {
|
|
1419
|
+
this.utilService.showSuccess('Form property saved successfully');
|
|
1420
|
+
const result = res;
|
|
1421
|
+
this.closePopUp(row);
|
|
1422
|
+
callBack();
|
|
1423
|
+
if (result.length > 0) {
|
|
1424
|
+
const updatedForm = result[0];
|
|
1425
|
+
this.data[0].Properties = updatedForm.Properties;
|
|
1426
|
+
this.data = [...this.data];
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
toggleIsValidate(value, row) {
|
|
1431
|
+
const newValue = !value;
|
|
1432
|
+
row.IsRequired = newValue;
|
|
1433
|
+
}
|
|
1434
|
+
onKeyDown(e, data) {
|
|
1435
|
+
// allow navigation / control keys
|
|
1436
|
+
const allowed = [
|
|
1437
|
+
'Backspace',
|
|
1438
|
+
'Delete',
|
|
1439
|
+
'ArrowLeft',
|
|
1440
|
+
'ArrowRight',
|
|
1441
|
+
'ArrowUp',
|
|
1442
|
+
'ArrowDown',
|
|
1443
|
+
'Tab',
|
|
1444
|
+
'Enter',
|
|
1445
|
+
'Home',
|
|
1446
|
+
'End',
|
|
1447
|
+
'Escape',
|
|
1448
|
+
];
|
|
1449
|
+
if (allowed.includes(e.key))
|
|
1450
|
+
return;
|
|
1451
|
+
// block the Space key (covers modern & old browsers)
|
|
1452
|
+
if (e.key === ' ' || e.code === 'Space' || e.key === 'Spacebar') {
|
|
1453
|
+
e.preventDefault();
|
|
1454
|
+
return;
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
onPaste(e, data) {
|
|
1458
|
+
e.preventDefault();
|
|
1459
|
+
const pasted = e.clipboardData?.getData('text') ?? '';
|
|
1460
|
+
const cleaned = pasted.replace(/\s+/g, '');
|
|
1461
|
+
const input = e.target;
|
|
1462
|
+
const start = input.selectionStart ?? input.value.length;
|
|
1463
|
+
const end = input.selectionEnd ?? start;
|
|
1464
|
+
const newVal = input.value.slice(0, start) + cleaned + input.value.slice(end);
|
|
1465
|
+
input.value = newVal;
|
|
1466
|
+
data.PropertyName = newVal;
|
|
1467
|
+
this.updateTable?.();
|
|
1468
|
+
}
|
|
1469
|
+
onInput(e, data) {
|
|
1470
|
+
const input = e.target;
|
|
1471
|
+
const cleaned = input.value.replace(/\s+/g, '');
|
|
1472
|
+
if (input.value !== cleaned) {
|
|
1473
|
+
const pos = input.selectionStart ?? cleaned.length;
|
|
1474
|
+
input.value = cleaned;
|
|
1475
|
+
const newPos = Math.min(pos, cleaned.length);
|
|
1476
|
+
setTimeout(() => input.setSelectionRange(newPos, newPos), 0);
|
|
1477
|
+
}
|
|
1478
|
+
data.PropertyName = cleaned;
|
|
1479
|
+
this.updateTable?.();
|
|
1480
|
+
}
|
|
1481
|
+
updateTable() {
|
|
1482
|
+
this.data = this.data.map((x) => x);
|
|
1483
|
+
}
|
|
1484
|
+
convertToInt(value, data, prop) {
|
|
1485
|
+
data[prop] = parseInt(value);
|
|
1486
|
+
}
|
|
1487
|
+
getStringValue(data, prop) {
|
|
1488
|
+
return data[prop].toString();
|
|
1489
|
+
}
|
|
1490
|
+
checkMinMax(value) {
|
|
1491
|
+
var showMinmax = false;
|
|
1492
|
+
switch (value) {
|
|
1493
|
+
case 'String':
|
|
1494
|
+
showMinmax = true;
|
|
1495
|
+
break;
|
|
1496
|
+
case 'Int':
|
|
1497
|
+
showMinmax = true;
|
|
1498
|
+
break;
|
|
1499
|
+
case 'Decimal':
|
|
1500
|
+
showMinmax = true;
|
|
1501
|
+
break;
|
|
1502
|
+
case 'Float':
|
|
1503
|
+
showMinmax = true;
|
|
1504
|
+
break;
|
|
1505
|
+
default:
|
|
1506
|
+
showMinmax = false;
|
|
1507
|
+
break;
|
|
1508
|
+
}
|
|
1509
|
+
return (this.hideMinMax = showMinmax);
|
|
1510
|
+
}
|
|
1511
|
+
navigateToFields() {
|
|
1512
|
+
const queryParams = this.queryParams;
|
|
1513
|
+
this.router.navigate([`${this.path}`], { queryParams });
|
|
1514
|
+
}
|
|
1515
|
+
onClose() {
|
|
1516
|
+
this.isOpen = false;
|
|
1517
|
+
}
|
|
1518
|
+
goBack() {
|
|
1519
|
+
this._location.back();
|
|
1520
|
+
}
|
|
1521
|
+
isDropdownOpen(item) {
|
|
1522
|
+
return this.openDropdownId === item.id;
|
|
1523
|
+
}
|
|
1524
|
+
onViewChange(isGridView) { }
|
|
1525
|
+
onStateChange(event) {
|
|
1526
|
+
switch (event.key) {
|
|
1527
|
+
case 'create':
|
|
1528
|
+
const newId = `prop-${Date.now()}`;
|
|
1529
|
+
var newUser = {
|
|
1530
|
+
MaxValue: 100,
|
|
1531
|
+
Name: '',
|
|
1532
|
+
Value: '',
|
|
1533
|
+
MinValue: 100,
|
|
1534
|
+
Options: '',
|
|
1535
|
+
IsRequired: false,
|
|
1536
|
+
IsReadOnly: false,
|
|
1537
|
+
DataType: DataType.Text,
|
|
1538
|
+
DefaultValue: '',
|
|
1539
|
+
PropertyName: '',
|
|
1540
|
+
id: newId,
|
|
1541
|
+
Id: newId,
|
|
1542
|
+
};
|
|
1543
|
+
this.chipArray = [];
|
|
1544
|
+
const cardData = {
|
|
1545
|
+
selected: false,
|
|
1546
|
+
title: newUser.Name,
|
|
1547
|
+
data: newUser,
|
|
1548
|
+
body: [],
|
|
1549
|
+
children: [],
|
|
1550
|
+
};
|
|
1551
|
+
if (this.data && this.data.length > 0) {
|
|
1552
|
+
this.data[0].Properties = [
|
|
1553
|
+
...(this.data[0].Properties ?? []),
|
|
1554
|
+
newUser,
|
|
1555
|
+
];
|
|
1556
|
+
}
|
|
1557
|
+
this.cardData.push(cardData);
|
|
1558
|
+
this.userCardClicked(cardData);
|
|
1559
|
+
this.dataView.isTableView = false;
|
|
1560
|
+
break;
|
|
1561
|
+
case 'filter':
|
|
1562
|
+
this.showFilter = event.value;
|
|
1563
|
+
break;
|
|
1564
|
+
case 'sort':
|
|
1565
|
+
this.showSort = event.value;
|
|
1566
|
+
break;
|
|
1567
|
+
case 'column':
|
|
1568
|
+
this.showColumn = event.value;
|
|
1569
|
+
break;
|
|
1570
|
+
default:
|
|
1571
|
+
break;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
reset() {
|
|
1575
|
+
this.skip = 0;
|
|
1576
|
+
this.pageSize = 10;
|
|
1577
|
+
}
|
|
1578
|
+
async onSearch(event) {
|
|
1579
|
+
this.searchTerm = event.value;
|
|
1580
|
+
this.reset();
|
|
1581
|
+
if (!this.searchTerm) {
|
|
1582
|
+
this.getProperties(this.Id);
|
|
1583
|
+
return;
|
|
1584
|
+
}
|
|
1585
|
+
this.utilService.sendBI(true);
|
|
1586
|
+
try {
|
|
1587
|
+
const res = await this.server.get(`GetFormEntitiesWithParam/${this.searchTerm}/${this.skip}/${this.pageSize}/CreatedAt/asc`);
|
|
1588
|
+
this.utilService.sendBI(false);
|
|
1589
|
+
if (res instanceof ErrorResponse) {
|
|
1590
|
+
}
|
|
1591
|
+
else {
|
|
1592
|
+
this.pageState = res;
|
|
1593
|
+
var result = res.Result;
|
|
1594
|
+
this.data = result;
|
|
1595
|
+
this.setUpCardData();
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
catch (error) {
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
showTableView = false;
|
|
1602
|
+
onSelectionChange(selectedRows) { }
|
|
1603
|
+
retryMessage() { }
|
|
1604
|
+
onColumnsUpdated(updatedColumns) {
|
|
1605
|
+
const updatedColumnDef = [];
|
|
1606
|
+
this.showColumn = false;
|
|
1607
|
+
this.selectedColumnTableCount = updatedColumns.length;
|
|
1608
|
+
updatedColumns.forEach((col) => {
|
|
1609
|
+
const matchingCol = this.taskUsersSvc.formFieldColumns.find((column) => column.header === col.name || column.id === col.name);
|
|
1610
|
+
if (matchingCol) {
|
|
1611
|
+
updatedColumnDef.push(matchingCol);
|
|
1612
|
+
}
|
|
1613
|
+
});
|
|
1614
|
+
this.visibleColumnDef = [...updatedColumnDef];
|
|
1615
|
+
}
|
|
1616
|
+
async updateFiltersAndSorts(isSearch = false) {
|
|
1617
|
+
if (!isSearch) {
|
|
1618
|
+
this.dataView.onClearSearch();
|
|
1619
|
+
this.currentSearchTerm = '';
|
|
1620
|
+
this.cdr.detectChanges();
|
|
1621
|
+
const clickEvent = new MouseEvent('click', {
|
|
1622
|
+
bubbles: true,
|
|
1623
|
+
cancelable: true,
|
|
1624
|
+
view: window,
|
|
1625
|
+
});
|
|
1626
|
+
document.dispatchEvent(clickEvent);
|
|
1627
|
+
}
|
|
1628
|
+
var payload = this.currentFilters.map((x) => {
|
|
1629
|
+
return {
|
|
1630
|
+
PropertyName: TaskUserPropertyMap[x.name],
|
|
1631
|
+
EntityValue: x.value,
|
|
1632
|
+
Operator: SearchOperator.And,
|
|
1633
|
+
Sign: x.condition && Object.keys(FilterTypes).includes(x.condition)
|
|
1634
|
+
? FilterTypes[x.condition]
|
|
1635
|
+
: SearchPropertySign.EQ,
|
|
1636
|
+
Type: x.name == TaskUserPropertyName.Date
|
|
1637
|
+
? SearchPropertyValueType.Date
|
|
1638
|
+
: SearchPropertyValueType.String,
|
|
1639
|
+
};
|
|
1640
|
+
});
|
|
1641
|
+
// payload.push({
|
|
1642
|
+
// PropertyName: 'APIKey',
|
|
1643
|
+
// EntityValue: this.envSvc.environment.APIKey,
|
|
1644
|
+
// Operator: SearchOperator.And,
|
|
1645
|
+
// Sign: SearchPropertySign.EQ,
|
|
1646
|
+
// });
|
|
1647
|
+
const sortParam = this.currentSorts.length > 0
|
|
1648
|
+
? {
|
|
1649
|
+
Param: TaskUserPropertyMap[this.currentSorts[0].name],
|
|
1650
|
+
Order: this.currentSorts[0].value,
|
|
1651
|
+
}
|
|
1652
|
+
: null;
|
|
1653
|
+
const searchTermExists = this.currentSearchTerm.trim().length > 0;
|
|
1654
|
+
this.utilService.sendBI(true);
|
|
1655
|
+
const res = searchTermExists
|
|
1656
|
+
? await this.server.get(`GetTaskUserWithParam/${this.currentSearchTerm.trim()}/0/${this.pageSize}`, this.envSvc.environment.WorkFlowAPI)
|
|
1657
|
+
: await this.server.post(sortParam
|
|
1658
|
+
? `SearchTaskUsers/0/${this.pageSize}/${sortParam.Param}/${sortParam.Order}`
|
|
1659
|
+
: `SearchTaskUsers/0/${this.pageSize}`, payload, this.envSvc.environment.WorkFlowAPI);
|
|
1660
|
+
this.utilService.sendBI(false);
|
|
1661
|
+
if (res instanceof ErrorResponse) {
|
|
1662
|
+
this.currentFilters = [];
|
|
1663
|
+
this.currentSorts = [];
|
|
1664
|
+
return undefined;
|
|
1665
|
+
}
|
|
1666
|
+
else {
|
|
1667
|
+
this.pageState = res;
|
|
1668
|
+
var result = res.Result;
|
|
1669
|
+
this.data = result.map((x) => {
|
|
1670
|
+
return {
|
|
1671
|
+
...x,
|
|
1672
|
+
id: x.Id,
|
|
1673
|
+
};
|
|
1674
|
+
});
|
|
1675
|
+
this.setUpCardData();
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
async loadMoreFiltersAndSorts() {
|
|
1679
|
+
if (!this.pageState) {
|
|
1680
|
+
return;
|
|
1681
|
+
}
|
|
1682
|
+
var payload = this.currentFilters.map((x) => {
|
|
1683
|
+
return {
|
|
1684
|
+
PropertyName: TaskUserPropertyMap[x.name],
|
|
1685
|
+
EntityValue: x.value,
|
|
1686
|
+
Operator: SearchOperator.And,
|
|
1687
|
+
Sign: x.condition && Object.keys(FilterTypes).includes(x.condition)
|
|
1688
|
+
? FilterTypes[x.condition]
|
|
1689
|
+
: SearchPropertySign.EQ,
|
|
1690
|
+
Type: x.name == TaskUserPropertyName.Date
|
|
1691
|
+
? SearchPropertyValueType.Date
|
|
1692
|
+
: SearchPropertyValueType.String,
|
|
1693
|
+
};
|
|
1694
|
+
});
|
|
1695
|
+
const sortParam = this.currentSorts.length > 0
|
|
1696
|
+
? {
|
|
1697
|
+
Param: TaskUserPropertyMap[this.currentSorts[0].name],
|
|
1698
|
+
Order: this.currentSorts[0].value,
|
|
1699
|
+
}
|
|
1700
|
+
: null;
|
|
1701
|
+
const searchTermExists = this.currentSearchTerm.trim().length > 0;
|
|
1702
|
+
this.utilService.sendBI(true);
|
|
1703
|
+
const res = searchTermExists
|
|
1704
|
+
? await this.server.get(`GetTaskUserWithParam/${this.currentSearchTerm.trim()}/${this.pageState.Skip}/${this.pageSize}`, this.envSvc.environment.WorkFlowAPI)
|
|
1705
|
+
: await this.server.post(sortParam
|
|
1706
|
+
? `SearchTaskUsers/${this.pageState.Skip}/${this.pageSize}/${sortParam.Param}/${sortParam.Order}`
|
|
1707
|
+
: `SearchTaskUsers/${this.pageState.Skip}/${this.pageSize}`, payload, this.envSvc.environment.WorkFlowAPI);
|
|
1708
|
+
this.utilService.sendBI(false);
|
|
1709
|
+
if (res instanceof ErrorResponse) {
|
|
1710
|
+
return undefined;
|
|
1711
|
+
}
|
|
1712
|
+
else {
|
|
1713
|
+
var result = res;
|
|
1714
|
+
return result;
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
onFilterApplied(appliedFilter) {
|
|
1718
|
+
if (Array.isArray(appliedFilter)) {
|
|
1719
|
+
this.selectedFilterTableCount = appliedFilter.length;
|
|
1720
|
+
this.showFilter = false;
|
|
1721
|
+
const queryParams = appliedFilter
|
|
1722
|
+
.filter((filter) => filter.checked)
|
|
1723
|
+
.map((filter) => ({
|
|
1724
|
+
PropertyName: filter.name,
|
|
1725
|
+
EntityValue: filter.value,
|
|
1726
|
+
Type: filter.type,
|
|
1727
|
+
Operator: 'And',
|
|
1728
|
+
Sign: this.getCondition(filter.condition),
|
|
1729
|
+
}));
|
|
1730
|
+
this.postSearch(queryParams);
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
getCondition(value) {
|
|
1734
|
+
switch (value) {
|
|
1735
|
+
case ConditionalOptions.On:
|
|
1736
|
+
return SearchPropertySign.EQ;
|
|
1737
|
+
case ConditionalOptions.After:
|
|
1738
|
+
return SearchPropertySign.EQ;
|
|
1739
|
+
case ConditionalOptions.Before:
|
|
1740
|
+
return SearchPropertySign.LT;
|
|
1741
|
+
case ConditionalOptions.NotEqual:
|
|
1742
|
+
return SearchPropertySign.NEQ;
|
|
1743
|
+
default:
|
|
1744
|
+
return value;
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
onSortUpdated(updatedSorts) {
|
|
1748
|
+
this.currentSorts = updatedSorts;
|
|
1749
|
+
this.showSort = false;
|
|
1750
|
+
this.selectedSortTableCount = updatedSorts.length;
|
|
1751
|
+
this.updateFiltersAndSorts();
|
|
1752
|
+
}
|
|
1753
|
+
handleSearch(event) {
|
|
1754
|
+
this.searchTerm$.next(event.value);
|
|
1755
|
+
}
|
|
1756
|
+
handleExport(exportedData) {
|
|
1757
|
+
// console.log('Exported data:', exportedData);
|
|
1758
|
+
this.downloadCSV(exportedData);
|
|
1759
|
+
}
|
|
1760
|
+
downloadCSV(data) {
|
|
1761
|
+
const headers = Object.keys(data[0]);
|
|
1762
|
+
const csvContent = [
|
|
1763
|
+
headers.join(','),
|
|
1764
|
+
...data.map((row) => headers.map((header) => row[header]).join(',')),
|
|
1765
|
+
].join('\n');
|
|
1766
|
+
const blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });
|
|
1767
|
+
const link = document.createElement('a');
|
|
1768
|
+
if (link.download !== undefined) {
|
|
1769
|
+
const url = URL.createObjectURL(blob);
|
|
1770
|
+
link.setAttribute('href', url);
|
|
1771
|
+
link.setAttribute('download', 'export.csv');
|
|
1772
|
+
link.style.visibility = 'hidden';
|
|
1773
|
+
document.body.appendChild(link);
|
|
1774
|
+
link.click();
|
|
1775
|
+
document.body.removeChild(link);
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
async publishEAV(entity) {
|
|
1779
|
+
this.utilService.sendBI(true);
|
|
1780
|
+
const res = await this.server.post(`PublishEAV`, entity);
|
|
1781
|
+
this.utilService.sendBI(false);
|
|
1782
|
+
if (res instanceof ErrorResponse) {
|
|
1783
|
+
return undefined;
|
|
1784
|
+
}
|
|
1785
|
+
else {
|
|
1786
|
+
this.utilService.showInfo('Extensions Published Successfully');
|
|
1787
|
+
// var result = (res as PagedResult<EAVEntity>).Result;
|
|
1788
|
+
// return result;
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormFieldsComponent, deps: [{ token: i1.UtilService }, { token: i1.HttpWebRequestService }, { token: i0.ChangeDetectorRef }, { token: i2.FormBuilder }, { token: i1.EnvironmentService }, { token: i3.Router }, { token: i3.ActivatedRoute }, { token: FormsFieldService }, { token: i5.Location }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1792
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FormFieldsComponent, selector: "lib-form-fields", inputs: { path: "path", application: "application", pageSize: "pageSize", searchDebounceTime: "searchDebounceTime" }, outputs: { onViewProcessClicked: "onViewProcessClicked" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true, static: true }, { propertyName: "cardDataView", first: true, predicate: ["vdcv"], descendants: true }, { propertyName: "dataView", first: true, predicate: ["vdv"], descendants: true }, { propertyName: "tableView", first: true, predicate: ["dt"], descendants: true }], ngImport: i0, template: "<header\n class=\"rounded-lg shadow-lg flex justify-between items-center px-6 py-2 mb-2 bg-[#D4A00773]\"\n>\n <div class=\"flex items-center gap-10\">\n <h4 class=\"font-semibold\">{{ formName }}</h4>\n <span class=\"flex items-center gap-1\">\n Ref ID:\n <span>{{ Id }}</span>\n </span>\n </div>\n <div class=\"flex gap-3 items-center\">\n <verbena-button\n *ngIf=\"\n data.length > 0 && data[0].Entity && data[0].Entity.trim().length > 0\n \"\n [pd]=\"'6px'\"\n class=\"verben-switch-button\"\n (click)=\"publishEAV(data[0])\"\n text=\"Publish Extension\"\n ></verbena-button>\n <verbena-button\n [pd]=\"'6px'\"\n class=\"verben-primary-button\"\n (click)=\"saveAllProperties()\"\n text=\"Save All\"\n ></verbena-button>\n <verben-svg\n (click)=\"goBack()\"\n class=\"cursor-pointer\"\n [width]=\"17\"\n [height]=\"17\"\n [icon]=\"'close'\"\n ></verben-svg>\n </div>\n</header>\n<div #messageLog class=\"flex flex-col gap-4 message-log-container\">\n <verben-data-view\n #vdv\n [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: true,\n isSort: true,\n isExport: true,\n isSelect: true,\n isCreate: true,\n isToggle: true,\n }\"\n [buttonClass]=\"'my-custom-button-class'\"\n [iconClass]=\"'my-icon-class'\"\n [showSortChild]=\"showSort\"\n [showColumnChild]=\"showColumn\"\n [activeIconClass]=\"'my-active-icon-class'\"\n [selectedColumnCount]=\"selectedColumnTableCount\"\n [selectedSortCount]=\"selectedSortTableCount\"\n [selectedFilterTableCount]=\"selectedFilterTableCount\"\n [showFilterChild]=\"showFilter\"\n [searchValue]=\"searchTerm\"\n (viewChange)=\"onViewChange($event)\"\n (stateChange)=\"onStateChange($event)\"\n (onSearchChange)=\"onSearch($event)\"\n >\n <div class=\"mt-2\" table-content>\n <lib-data-table\n #dt\n [data]=\"data[0].Properties\"\n [columns]=\"visibleColumnDef\"\n [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\"\n >\n <ng-container libColumn=\"select\">\n <ng-template\n #cell\n let-isSelected=\"isSelected\"\n let-toggleRowSelection=\"toggleRowSelection\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"isSelected\"\n (change)=\"toggleRowSelection()\"\n />\n </ng-template>\n <ng-template\n #header\n let-allRowsSelected=\"allRowsSelected\"\n let-someRowsSelected=\"someRowsSelected\"\n let-toggleAllRows=\"toggleAllRows\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"allRowsSelected()\"\n [indeterminate]=\"someRowsSelected()\"\n (change)=\"toggleAllRows()\"\n />\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"name\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value.Name }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n inputContainerClass=\"w-fit\"\n [(ngModel)]=\"row.Name\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"propertyName\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ row.PropertyName }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n (keydown)=\"onKeyDown($event, row)\"\n (paste)=\"onPaste($event, row)\"\n (input)=\"onInput($event, row)\"\n inputContainerClass=\"w-fit\"\n [(ngModel)]=\"row.PropertyName\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"minValue\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n [type]=\"'number'\"\n [ngModel]=\"getStringValue(row, 'MinValue')\"\n (valueChange)=\"convertToInt($event, row, 'MinValue')\"\n inputContainerClass=\"w-[130px]\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"maxValue\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n [type]=\"'number'\"\n inputContainerClass=\"w-[130px]\"\n [ngModel]=\"getStringValue(row, 'MaxValue')\"\n (valueChange)=\"convertToInt($event, row, 'MaxValue')\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"defaultValue\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n [type]=\"'text'\"\n inputContainerClass=\"w-[130px]\"\n [(ngModel)]=\"row.DefaultValue\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"dataType\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <div class=\"flex flex-col gap-1\">\n <verben-drop-down\n width=\"100%\"\n placeholder=\"Change Data Type\"\n [(options)]=\"dataType\"\n [(ngModel)]=\"row.DataType\"\n >\n </verben-drop-down>\n </div>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"isRequired\">\n <ng-template #cell let-row=\"row\" let-value>\n <verben-svg *ngIf=\"value === true\" [icon]=\"'check'\"></verben-svg>\n <verben-svg *ngIf=\"value === false\" [icon]=\"'error'\"></verben-svg>\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-switch\n [onColor]=\"'var(--vbn-color-text)'\"\n [(ngModel)]=\"row.IsRequired\"\n ></verbena-switch>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"isReadOnly\">\n <ng-template #cell let-row=\"row\" let-value>\n <verben-svg *ngIf=\"value === true\" [icon]=\"'check'\"></verben-svg>\n <verben-svg *ngIf=\"value === false\" [icon]=\"'error'\"></verben-svg>\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-switch\n [onColor]=\"'var(--vbn-color-text)'\"\n [(ngModel)]=\"row.IsReadOnly\"\n ></verbena-switch>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template\n #cell\n let-isEditing=\"isEditing\"\n let-toggleRowEdit=\"toggleRowEdit\"\n let-row=\"row\"\n let-value\n >\n <verben-pop-Up\n [customStyles]=\"{ 'z-index': '99' }\"\n [dropdownOpen]=\"openDropdownId === row.id\"\n [enableMouseLeave]=\"false\"\n (close)=\"onClose()\"\n >\n <verben-svg\n class=\"cursor-pointer actions-icon\"\n (click)=\"openDropdown(row)\"\n dropdown-trigger\n icon=\"list\"\n ></verben-svg>\n <div\n class=\"pop-up-content flex flex-col\"\n *ngIf=\"openDropdownId === row.Id\"\n dropdown-content\n >\n <div\n (click)=\"toggleRowEdit()\"\n class=\"pop-up-value cursor-pointer\"\n >\n Edit\n </div>\n <div\n (click)=\"deleteProperty(row.Id)\"\n class=\"pop-up-value cursor-pointer\"\n >\n Delete\n </div>\n </div>\n </verben-pop-Up>\n </ng-template>\n <ng-template\n #cellEdit\n let-isEditing=\"isEditing\"\n let-toggleRowEdit=\"toggleRowEdit\"\n let-row=\"row\"\n let-value\n >\n <div class=\"flex gap-2 items-center\">\n <verben-svg\n icon=\"check\"\n [width]=\"15\"\n [height]=\"15\"\n (click)=\"saveViaTable(row, toggleRowEdit)\"\n ></verben-svg>\n <verben-svg\n (click)=\"toggleRowEdit(); deleteProperty(row.Id)\"\n icon=\"delete\"\n [width]=\"15\"\n [height]=\"15\"\n ></verben-svg>\n <verben-svg\n icon=\"cardViewAlt\"\n [width]=\"15\"\n [height]=\"15\"\n (click)=\"goToCardView(value)\"\n ></verben-svg>\n </div>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n <div card-content>\n <verben-card-data-view\n borderRadius=\"12px\"\n #vdcv\n dataId=\"Id\"\n border=\"5px\"\n [cardDataList]=\"cardData\"\n rbgColor=\"var(--vbn-color-surface-alt)\"\n mg=\"0px\"\n >\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data\n #vlcd\n [parent]=\"vdcv\"\n dataId=\"id\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\"\n [cardDataList]=\"cardData\"\n >\n <ng-template #card let-item>\n <div\n (click)=\"userCardClicked(item)\"\n class=\"flex cursor-pointer h-[max-content]\"\n >\n <!-- <verben-svg [width]=\"15\" [height]=\"15\" (click)=\"toggleChildren(item); $event.stopPropagation()\"\n [ngClass]=\"item.children && item.children.length?'visible':'invisible'\"\n class=\"items-center flex pr-1 cursor-pointer\" [icon]=\"item.isChildrenExpanded?'minus':'plus'\" /> -->\n <div class=\"flex w-full bg-secondary rounded-xl\">\n <div\n class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\"\n [ngClass]=\"\n item.selected ? 'bg-primary' : 'bg-secondary-200'\n \"\n ></div>\n <div class=\"py-3 px-4 flex-1 h-[100%]\">\n <div\n class=\"flex items-start flex-1 gap-1 justify-between h-[100%]\"\n >\n <div\n class=\"flex flex-col flex-1 card-min-height justify-between h-[100%]\"\n >\n <div class=\"flex justify-between mr-4\">\n <div>\n <h3\n class=\"my-0 font-bold text-[var(--vbn-color-on-primary)] leading-[19.5px]\"\n >\n {{ item.data.Name }}\n </h3>\n <span class=\"flex items-center gap-1 mt-2\">\n <span\n class=\"!text-[10px] text-[var(--vbn-color-on-primary)]\"\n >Data Type:</span\n >\n <span class=\"!text-[13px] font-bold\">{{\n item.data.DataType\n }}</span>\n </span>\n </div>\n\n <div>\n <!-- <span class=\"!text-[10px] text-[var(--vbn-color-on-primary)]\"\n >Default Value:</span\n >\n <p class=\"!text-[12px]\">\n {{ item.data.DefaultValue }}\n </p> -->\n </div>\n </div>\n </div>\n\n <!-- <div class=\"flex items-end h-[100%]\">\n <span class=\"enum-val {{item.data.Status}}\">{{item.data.Status}}</span>\n </div> -->\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </verben-left-card-data>\n </verben-left-card-data-view>\n <verben-right-card-data-view>\n <ng-template #parent>\n <div\n *ngIf=\"currentData\"\n class=\"flex flex-col rounded-xl h-full w-full relative gap-6\"\n >\n <verbena-input\n name=\"Name\"\n label=\"Name\"\n [(ngModel)]=\"currentData.data.Name\"\n />\n <verbena-input\n name=\"Name\"\n label=\"Property Name\"\n (keydown)=\"onKeyDown($event, currentData.data)\"\n (paste)=\"onPaste($event, currentData.data)\"\n (input)=\"onInput($event, currentData.data)\"\n [(ngModel)]=\"currentData.data.PropertyName\"\n />\n <div class=\"flex flex-col gap-1\">\n <div>Data Type</div>\n <verben-drop-down\n width=\"100%\"\n placeholder=\"Change Data Type\"\n [(options)]=\"dataType\"\n [(ngModel)]=\"currentData.data.DataType\"\n (ngModelChange)=\"onDropDownChange($event)\"\n >\n </verben-drop-down>\n </div>\n\n <div\n *ngIf=\"\n currentData.data.DataType === 'SingleSelection' ||\n currentData.data.DataType === 'MultiSelection'\n \"\n >\n <p class=\"mb-2\">Enter Options</p>\n <verben-chip\n [placeholder]=\"'Enter Options'\"\n [(ngModel)]=\"chipArray\"\n (onChange)=\"onChipChange($event)\"\n ></verben-chip>\n </div>\n <div>\n <verbena-input\n [placeHolder]=\"'Enter default text'\"\n [(ngModel)]=\"currentData.data.DefaultValue\"\n name=\"DefaultValue\"\n label=\"Default Value (optional)\"\n />\n </div>\n <div>\n <p class=\"mb-2\">Required</p>\n\n <verbena-switch\n [onColor]=\"'var(--vbn-color-text)'\"\n [(ngModel)]=\"currentData.data.IsRequired\"\n ></verbena-switch>\n </div>\n <div>\n <p class=\"mb-2\">Read Only</p>\n\n <verbena-switch\n [onColor]=\"'var(--vbn-color-text)'\"\n [(ngModel)]=\"currentData.data.IsReadOnly\"\n ></verbena-switch>\n </div>\n <div\n *ngIf=\"\n currentData.data.DataType === 'Number' ||\n currentData.data.DataType === 'Text'\n \"\n class=\"flex flex-col gap-6\"\n >\n <verbena-input\n [type]=\"'number'\"\n name=\"minValue\"\n label=\"Min Value\"\n [ngModel]=\"getStringValue(currentData.data, 'MinValue')\"\n (valueChange)=\"\n convertToInt($event, currentData.data, 'MinValue')\n \"\n />\n <verbena-input\n [type]=\"'number'\"\n name=\"maxValue\"\n label=\"Max Value\"\n (ngModelChange)=\"updateTable()\"\n [ngModel]=\"getStringValue(currentData.data, 'MaxValue')\"\n (valueChange)=\"\n convertToInt($event, currentData.data, 'MaxValue')\n \"\n />\n </div>\n <!-- buttons -->\n <div class=\"flex justify-between w-full bottom-8 left-0 right-0\">\n <verbena-button\n (click)=\"deleteProperty(currentData.data.Id)\"\n class=\"verben-delete-button\"\n text=\"Delete\"\n ></verbena-button>\n <div class=\"flex gap-3\">\n <verbena-button\n class=\"verben-switch-button\"\n (click)=\"goToTableView()\"\n text=\"Switch To Table\"\n ></verbena-button>\n <!-- <verbena-button class=\"verben-primary-button\" (click)=\"saveUser()\" text=\"Save\"></verbena-button> -->\n </div>\n </div>\n </div>\n </ng-template>\n </verben-right-card-data-view>\n <!-- <verben-right-card-data-view>\n yeshhhhhh\n </verben-right-card-data-view> -->\n\n <verben-card-data-view-footer>\n <div class=\"flex gap-2 justify-between\">\n <div\n *ngIf=\"!vdcv.hasCurrentItem()\"\n class=\"message-log-button-container flex justify-between\"\n >\n <verbena-button\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [text]=\"'Delete'\"\n >\n </verbena-button>\n </div>\n <div\n class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\"\n >\n <span class=\"paginator-text\"\n >{{ cardData.length }} records loaded</span\n >\n </div>\n </div>\n </verben-card-data-view-footer>\n </verben-card-data-view>\n </div>\n <div column-content>\n <verben-visible-column\n (resetFilter)=\"getProperties(Id, showColumn)\"\n (columnsUpdated)=\"onColumnsUpdated($event)\"\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"400px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n [columns]=\"visibleColumns\"\n [displayedColumns]=\"5\"\n ></verben-visible-column>\n </div>\n <div filter-content>\n <verben-table-filter\n (resetSortData)=\"getProperties(Id, showFilter)\"\n (filtersApplied)=\"onFilterApplied($event)\"\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"420px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"\n ></verben-table-filter>\n </div>\n <div sort-content>\n <verben-sort-table\n (resetSortData)=\"getProperties(Id, showSort)\"\n (selectedOptions)=\"onSortUpdated($event)\"\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"400px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [enableDragAndDrop]=\"true\"\n [sortOptions]=\"sortOptions\"\n ></verben-sort-table>\n </div>\n <div export-content>\n <lib-data-export\n [data]=\"data[0].Properties\"\n (exportDataEvent)=\"handleExport($event)\"\n >\n </lib-data-export>\n </div>\n </verben-data-view>\n <div *ngIf=\"vdv.isTableView\" class=\"flex gap-2 justify-between\">\n <div class=\"message-log-button-container flex justify-between\">\n <verbena-button\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [text]=\"'Delete'\"\n >\n </verbena-button>\n </div>\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData.length }} records loaded</span>\n <button (click)=\"loadMore()\" class=\"load-more view-links\">\n Load more\n </button>\n </div>\n </div>\n</div>\n<!-- <div class=\"w-[400px] bg-white p-4 shadow-lg border\">\n <form-control [dataType]=\"dataType2\" [formProperties]=\"data[0].Properties\"></form-control>\n</div> -->\n", styles: [".view-links{font-size:14px!important;color:var(--vbn-color-border-focus);font-weight:600;cursor:pointer}.view-links:hover{text-decoration:underline;text-underline-offset:3px}.context-banner{background-color:#d4a00773}.card-min-height{gap:10px}::ng-deep .childrenPadding{max-height:300px;overflow-y:auto}::ng-deep .toolbar{margin-bottom:15px}::ng-deep .master-only-container{margin:0!important;padding:0!important}::ng-deep .master-detail-container{margin:0!important;padding:0!important}.pop-up-content{border-radius:4px;background-color:var(--vbn-color-surface);border:1px solid rgba(212,161,7,.5)}.pop-up-value{padding:10px 20px}.pop-up-content>div:nth-child(1){border-bottom:4px solid var(--vbn-color-primary)}.enum-val{padding:2px 10px;width:100%;min-width:max-content;text-align:center}.enum-val.Active{background-color:var(--vbn-color-success-bg);color:var(--vbn-color-success)}.enum-val.InActive{background-color:#ffdfdf;color:var(--vbn-color-error)}.toggle-container{width:53px;padding:1px;color:var(--vbn-color-surface);height:22px;position:relative;background-color:var(--vbn-color-text);border-radius:2rem;cursor:pointer}.toggle-circle{width:50%;height:100%;position:absolute;left:0;padding:5px;top:0;background-color:var(--vbn-color-surface);border-radius:50%;transform:scale(1);transition:transform .3s}.translate-100{transform:translate(100%)}.translate-0{transform:translate(0)}.toggle-text-on{display:block;font-size:12px;margin-left:4px}.toggle-text-off{display:block;font-size:12px;margin-right:4px;text-align:right}\n"], dependencies: [{ kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i6.DataTableComponent, selector: "lib-data-table", inputs: ["data", "columns", "dataKey", "formGroupConfig", "groupBy", "useVirtualScroll", "virtualScrollItemSize", "styleConfig"], outputs: ["rowEdit", "rowSave", "rowRevert", "rowDelete", "selectionChange"] }, { kind: "directive", type: i6.ColumnDirective, selector: "[libColumn]", inputs: ["libColumn"] }, { kind: "component", type: i6.SvgComponent, selector: "verben-svg", inputs: ["icon", "width", "height", "fill", "stroke", "type", "size"] }, { kind: "component", type: i6.VerbenPopUpComponent, selector: "verben-pop-Up", inputs: ["dropdownOpen", "dropdownWidth", "color", "customStyles", "popUpClass", "border", "borderRadius", "enableMouseLeave", "cdkPosition"], outputs: ["dropdownOpenChange", "close"] }, { kind: "component", type: i6.DataViewComponent, selector: "verben-data-view", inputs: ["buttonClass", "iconClass", "activeIconClass", "columnCustomClass", "filterCustomClass", "sortCustomClass", "extendCustomClass", "exportCustomClass", "selectCustomClass", "importCustomClass", "zIndex", "createCustomClass", "tableIcon", "cardIcon", "cardClass", "tableClass", "searchKey", "searchValue", "viewState", "searchTemplate", "importTemplate", "columnTemplate", "extendTemplate", "filterTemplate", "sortTemplate", "children", "exportTemplate", "createTemplate", "selectedColumnCount", "selectedSortCount", "selectedFilterTableCount", "inputWidth", "milliseconds", "showColumnChild", "showSortChild", "showFilterChild", "showImportChild", "showExportChild", "showExtendChild", "create", "showSelected", "useTwoWayBinding", "isTableView"], outputs: ["viewChange", "stateChange", "onSearchChange"] }, { kind: "component", type: i6.VerbenaButtonComponent, selector: "verbena-button", inputs: ["type", "text", "styleType", "size", "block", "disable", "disabled", "isLoading", "spinnerSize", "spinnerColor", "svg", "svgPosition", "svgWidth", "svgHeight", "svgSize", "svgColor", "icon", "useIcon", "iconPosition", "iconColor", "variant", "weight", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "buttonClass", "buttonTextClass"] }, { kind: "component", type: i6.CardDataViewComponent, selector: "verben-card-data-view", inputs: ["pd", "mg", "lHeight", "rHeight", "rWidth", "lWidth", "textColor", "lbgColor", "rbgColor", "border", "display", "borderRadius", "activeCss", "inActiveCss", "displayAsRow", "cardDataList", "dataId", "totalRecords", "footer", "noOfVisibleChildren", "showEditIcon", "useVirtualScroll", "virtualScrollItemSize", "onItemClick", "onCardChildClick"], outputs: ["editClicked", "loadMoreClick"] }, { kind: "component", type: i6.LeftCardDataComponent, selector: "verben-left-card-data", inputs: ["pd", "mg", "height", "weight", "activeCss", "inActiveCss", "cardDataList", "iconCollapse", "iconExpanded", "parent", "useVirtualScroll", "virtualScrollItemSize", "dataId", "cardActions", "cardChildActions", "cardActionsPosition"] }, { kind: "component", type: i6.LeftCardDataViewComponent, selector: "verben-left-card-data-view", inputs: ["cardDataList"] }, { kind: "component", type: i6.RightCardDataViewComponent, selector: "verben-right-card-data-view", inputs: ["parentData", "chilData", "meth"] }, { kind: "component", type: i6.CardDataViewFooterComponent, selector: "verben-card-data-view-footer" }, { kind: "component", type: i6.DropDownComponent, selector: "verben-drop-down", inputs: ["options", "width", "overlayWidth", "showHorizontalLine", "horizontalLineColor", "optionLabel", "optionSubLabel", "optionValue", "placeholder", "invalidMessage", "errorPosition", "loadMoreCaption", "display", "showClear", "lazyLoad", "selectKey", "styleClass", "group", "multiselect", "filter", "avoidDuplication", "filterBy", "debounceTime", "minChar", "refPageSize", "disabled", "required", "autoScrollToCurrentItem", "load", "asyncLabel", "search"], outputs: ["optionsChange", "onChange", "onClick", "onClear"] }, { kind: "component", type: i6.TableFilterComponent, selector: "verben-table-filter", inputs: ["filterOptions", "columns", "data", "initialFilters", "pd", "mg", "height", "width", "bgColor", "boxShadow", "textColor", "primaryColor", "secondaryColor", "tertiaryColor", "border", "borderRadius", "selectWidth", "maxFilterLength", "savedFilters", "tooltip", "saveCallback"], outputs: ["filtersApplied", "resetSortData", "filterApplied", "resetFilter"] }, { kind: "component", type: i6.VisibleColumnComponent, selector: "verben-visible-column", inputs: ["columns", "items", "enableDragAndDrop", "displayedColumns", "showMore", "pd", "mg", "height", "width", "bgColor", "boxShadow", "textColor", "primaryColor", "secondaryColor", "tertiaryColor", "border", "borderRadius", "selectWidth", "closeColumn", "saveCallback"], outputs: ["columnsUpdated", "resetFilter"] }, { kind: "component", type: i6.SortTableComponent, selector: "verben-sort-table", inputs: ["enableDragAndDrop", "sortOptions", "columns", "data", "resetText", "displayedOptions", "propertyText", "showMoreText", "sortButtonText", "pd", "mg", "height", "width", "bgColor", "boxShadow", "textColor", "primaryColor", "secondaryColor", "tertiaryColor", "border", "borderRadius", "selectWidth", "containerHeight"], outputs: ["selectedOptions", "resetSortData", "sortApplied", "resetFilter"] }, { kind: "component", type: i6.DataExportComponent, selector: "lib-data-export", inputs: ["columns", "data", "dataFetchUrl", "dataQueryParameters"], outputs: ["exportDataEvent"] }, { kind: "component", type: i6.VerbenaInputComponent, selector: "verbena-input", inputs: ["disabled", "label", "placeHolder", "required", "svgPosition", "minLength", "maxLength", "type", "bgColor", "border", "borderRadius", "textColor", "value", "labelPosition", "labelColor", "disable", "readOnly", "min", "max", "showBorder", "showErrorMessage", "errorMessageColor", "errorBorderColor", "errorPosition", "svg", "fontSize", "svgWidth", "svgHeight", "svgColor", "capitalization", "inputContainerClass", "inputFieldClass", "passLength", "inputWrapperClass", "passwordToggle", "customErrorMessages", "icon", "textPass"], outputs: ["valueChange"] }, { kind: "component", type: i6.VerbenaSwitchComponent, selector: "verbena-switch", inputs: ["label", "checked", "disabled", "offColor", "onColor", "onText", "offText", "width", "height", "customStyles"], outputs: ["change"] }, { kind: "component", type: i6.ChipComponent, selector: "verben-chip", inputs: ["width", "placeholder", "max", "styleClass", "separator", "disabled", "required", "invalidMessage", "errorPosition"], outputs: ["onChange"] }] });
|
|
1793
|
+
}
|
|
1794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormFieldsComponent, decorators: [{
|
|
1795
|
+
type: Component,
|
|
1796
|
+
args: [{ selector: 'lib-form-fields', template: "<header\n class=\"rounded-lg shadow-lg flex justify-between items-center px-6 py-2 mb-2 bg-[#D4A00773]\"\n>\n <div class=\"flex items-center gap-10\">\n <h4 class=\"font-semibold\">{{ formName }}</h4>\n <span class=\"flex items-center gap-1\">\n Ref ID:\n <span>{{ Id }}</span>\n </span>\n </div>\n <div class=\"flex gap-3 items-center\">\n <verbena-button\n *ngIf=\"\n data.length > 0 && data[0].Entity && data[0].Entity.trim().length > 0\n \"\n [pd]=\"'6px'\"\n class=\"verben-switch-button\"\n (click)=\"publishEAV(data[0])\"\n text=\"Publish Extension\"\n ></verbena-button>\n <verbena-button\n [pd]=\"'6px'\"\n class=\"verben-primary-button\"\n (click)=\"saveAllProperties()\"\n text=\"Save All\"\n ></verbena-button>\n <verben-svg\n (click)=\"goBack()\"\n class=\"cursor-pointer\"\n [width]=\"17\"\n [height]=\"17\"\n [icon]=\"'close'\"\n ></verben-svg>\n </div>\n</header>\n<div #messageLog class=\"flex flex-col gap-4 message-log-container\">\n <verben-data-view\n #vdv\n [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: true,\n isSort: true,\n isExport: true,\n isSelect: true,\n isCreate: true,\n isToggle: true,\n }\"\n [buttonClass]=\"'my-custom-button-class'\"\n [iconClass]=\"'my-icon-class'\"\n [showSortChild]=\"showSort\"\n [showColumnChild]=\"showColumn\"\n [activeIconClass]=\"'my-active-icon-class'\"\n [selectedColumnCount]=\"selectedColumnTableCount\"\n [selectedSortCount]=\"selectedSortTableCount\"\n [selectedFilterTableCount]=\"selectedFilterTableCount\"\n [showFilterChild]=\"showFilter\"\n [searchValue]=\"searchTerm\"\n (viewChange)=\"onViewChange($event)\"\n (stateChange)=\"onStateChange($event)\"\n (onSearchChange)=\"onSearch($event)\"\n >\n <div class=\"mt-2\" table-content>\n <lib-data-table\n #dt\n [data]=\"data[0].Properties\"\n [columns]=\"visibleColumnDef\"\n [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\"\n >\n <ng-container libColumn=\"select\">\n <ng-template\n #cell\n let-isSelected=\"isSelected\"\n let-toggleRowSelection=\"toggleRowSelection\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"isSelected\"\n (change)=\"toggleRowSelection()\"\n />\n </ng-template>\n <ng-template\n #header\n let-allRowsSelected=\"allRowsSelected\"\n let-someRowsSelected=\"someRowsSelected\"\n let-toggleAllRows=\"toggleAllRows\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"allRowsSelected()\"\n [indeterminate]=\"someRowsSelected()\"\n (change)=\"toggleAllRows()\"\n />\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"name\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value.Name }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n inputContainerClass=\"w-fit\"\n [(ngModel)]=\"row.Name\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"propertyName\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ row.PropertyName }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n (keydown)=\"onKeyDown($event, row)\"\n (paste)=\"onPaste($event, row)\"\n (input)=\"onInput($event, row)\"\n inputContainerClass=\"w-fit\"\n [(ngModel)]=\"row.PropertyName\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"minValue\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n [type]=\"'number'\"\n [ngModel]=\"getStringValue(row, 'MinValue')\"\n (valueChange)=\"convertToInt($event, row, 'MinValue')\"\n inputContainerClass=\"w-[130px]\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"maxValue\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n [type]=\"'number'\"\n inputContainerClass=\"w-[130px]\"\n [ngModel]=\"getStringValue(row, 'MaxValue')\"\n (valueChange)=\"convertToInt($event, row, 'MaxValue')\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"defaultValue\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-input\n [type]=\"'text'\"\n inputContainerClass=\"w-[130px]\"\n [(ngModel)]=\"row.DefaultValue\"\n ></verbena-input>\n </ng-template>\n </ng-container>\n <ng-container libColumn=\"dataType\">\n <ng-template #cell let-row=\"row\" let-value>\n {{ value }}\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <div class=\"flex flex-col gap-1\">\n <verben-drop-down\n width=\"100%\"\n placeholder=\"Change Data Type\"\n [(options)]=\"dataType\"\n [(ngModel)]=\"row.DataType\"\n >\n </verben-drop-down>\n </div>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"isRequired\">\n <ng-template #cell let-row=\"row\" let-value>\n <verben-svg *ngIf=\"value === true\" [icon]=\"'check'\"></verben-svg>\n <verben-svg *ngIf=\"value === false\" [icon]=\"'error'\"></verben-svg>\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-switch\n [onColor]=\"'var(--vbn-color-text)'\"\n [(ngModel)]=\"row.IsRequired\"\n ></verbena-switch>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"isReadOnly\">\n <ng-template #cell let-row=\"row\" let-value>\n <verben-svg *ngIf=\"value === true\" [icon]=\"'check'\"></verben-svg>\n <verben-svg *ngIf=\"value === false\" [icon]=\"'error'\"></verben-svg>\n </ng-template>\n <ng-template\n #cellEdit\n let-row=\"row\"\n let-updateValue=\"updateValue\"\n let-value\n >\n <verbena-switch\n [onColor]=\"'var(--vbn-color-text)'\"\n [(ngModel)]=\"row.IsReadOnly\"\n ></verbena-switch>\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template\n #cell\n let-isEditing=\"isEditing\"\n let-toggleRowEdit=\"toggleRowEdit\"\n let-row=\"row\"\n let-value\n >\n <verben-pop-Up\n [customStyles]=\"{ 'z-index': '99' }\"\n [dropdownOpen]=\"openDropdownId === row.id\"\n [enableMouseLeave]=\"false\"\n (close)=\"onClose()\"\n >\n <verben-svg\n class=\"cursor-pointer actions-icon\"\n (click)=\"openDropdown(row)\"\n dropdown-trigger\n icon=\"list\"\n ></verben-svg>\n <div\n class=\"pop-up-content flex flex-col\"\n *ngIf=\"openDropdownId === row.Id\"\n dropdown-content\n >\n <div\n (click)=\"toggleRowEdit()\"\n class=\"pop-up-value cursor-pointer\"\n >\n Edit\n </div>\n <div\n (click)=\"deleteProperty(row.Id)\"\n class=\"pop-up-value cursor-pointer\"\n >\n Delete\n </div>\n </div>\n </verben-pop-Up>\n </ng-template>\n <ng-template\n #cellEdit\n let-isEditing=\"isEditing\"\n let-toggleRowEdit=\"toggleRowEdit\"\n let-row=\"row\"\n let-value\n >\n <div class=\"flex gap-2 items-center\">\n <verben-svg\n icon=\"check\"\n [width]=\"15\"\n [height]=\"15\"\n (click)=\"saveViaTable(row, toggleRowEdit)\"\n ></verben-svg>\n <verben-svg\n (click)=\"toggleRowEdit(); deleteProperty(row.Id)\"\n icon=\"delete\"\n [width]=\"15\"\n [height]=\"15\"\n ></verben-svg>\n <verben-svg\n icon=\"cardViewAlt\"\n [width]=\"15\"\n [height]=\"15\"\n (click)=\"goToCardView(value)\"\n ></verben-svg>\n </div>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n <div card-content>\n <verben-card-data-view\n borderRadius=\"12px\"\n #vdcv\n dataId=\"Id\"\n border=\"5px\"\n [cardDataList]=\"cardData\"\n rbgColor=\"var(--vbn-color-surface-alt)\"\n mg=\"0px\"\n >\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data\n #vlcd\n [parent]=\"vdcv\"\n dataId=\"id\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\"\n [cardDataList]=\"cardData\"\n >\n <ng-template #card let-item>\n <div\n (click)=\"userCardClicked(item)\"\n class=\"flex cursor-pointer h-[max-content]\"\n >\n <!-- <verben-svg [width]=\"15\" [height]=\"15\" (click)=\"toggleChildren(item); $event.stopPropagation()\"\n [ngClass]=\"item.children && item.children.length?'visible':'invisible'\"\n class=\"items-center flex pr-1 cursor-pointer\" [icon]=\"item.isChildrenExpanded?'minus':'plus'\" /> -->\n <div class=\"flex w-full bg-secondary rounded-xl\">\n <div\n class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\"\n [ngClass]=\"\n item.selected ? 'bg-primary' : 'bg-secondary-200'\n \"\n ></div>\n <div class=\"py-3 px-4 flex-1 h-[100%]\">\n <div\n class=\"flex items-start flex-1 gap-1 justify-between h-[100%]\"\n >\n <div\n class=\"flex flex-col flex-1 card-min-height justify-between h-[100%]\"\n >\n <div class=\"flex justify-between mr-4\">\n <div>\n <h3\n class=\"my-0 font-bold text-[var(--vbn-color-on-primary)] leading-[19.5px]\"\n >\n {{ item.data.Name }}\n </h3>\n <span class=\"flex items-center gap-1 mt-2\">\n <span\n class=\"!text-[10px] text-[var(--vbn-color-on-primary)]\"\n >Data Type:</span\n >\n <span class=\"!text-[13px] font-bold\">{{\n item.data.DataType\n }}</span>\n </span>\n </div>\n\n <div>\n <!-- <span class=\"!text-[10px] text-[var(--vbn-color-on-primary)]\"\n >Default Value:</span\n >\n <p class=\"!text-[12px]\">\n {{ item.data.DefaultValue }}\n </p> -->\n </div>\n </div>\n </div>\n\n <!-- <div class=\"flex items-end h-[100%]\">\n <span class=\"enum-val {{item.data.Status}}\">{{item.data.Status}}</span>\n </div> -->\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </verben-left-card-data>\n </verben-left-card-data-view>\n <verben-right-card-data-view>\n <ng-template #parent>\n <div\n *ngIf=\"currentData\"\n class=\"flex flex-col rounded-xl h-full w-full relative gap-6\"\n >\n <verbena-input\n name=\"Name\"\n label=\"Name\"\n [(ngModel)]=\"currentData.data.Name\"\n />\n <verbena-input\n name=\"Name\"\n label=\"Property Name\"\n (keydown)=\"onKeyDown($event, currentData.data)\"\n (paste)=\"onPaste($event, currentData.data)\"\n (input)=\"onInput($event, currentData.data)\"\n [(ngModel)]=\"currentData.data.PropertyName\"\n />\n <div class=\"flex flex-col gap-1\">\n <div>Data Type</div>\n <verben-drop-down\n width=\"100%\"\n placeholder=\"Change Data Type\"\n [(options)]=\"dataType\"\n [(ngModel)]=\"currentData.data.DataType\"\n (ngModelChange)=\"onDropDownChange($event)\"\n >\n </verben-drop-down>\n </div>\n\n <div\n *ngIf=\"\n currentData.data.DataType === 'SingleSelection' ||\n currentData.data.DataType === 'MultiSelection'\n \"\n >\n <p class=\"mb-2\">Enter Options</p>\n <verben-chip\n [placeholder]=\"'Enter Options'\"\n [(ngModel)]=\"chipArray\"\n (onChange)=\"onChipChange($event)\"\n ></verben-chip>\n </div>\n <div>\n <verbena-input\n [placeHolder]=\"'Enter default text'\"\n [(ngModel)]=\"currentData.data.DefaultValue\"\n name=\"DefaultValue\"\n label=\"Default Value (optional)\"\n />\n </div>\n <div>\n <p class=\"mb-2\">Required</p>\n\n <verbena-switch\n [onColor]=\"'var(--vbn-color-text)'\"\n [(ngModel)]=\"currentData.data.IsRequired\"\n ></verbena-switch>\n </div>\n <div>\n <p class=\"mb-2\">Read Only</p>\n\n <verbena-switch\n [onColor]=\"'var(--vbn-color-text)'\"\n [(ngModel)]=\"currentData.data.IsReadOnly\"\n ></verbena-switch>\n </div>\n <div\n *ngIf=\"\n currentData.data.DataType === 'Number' ||\n currentData.data.DataType === 'Text'\n \"\n class=\"flex flex-col gap-6\"\n >\n <verbena-input\n [type]=\"'number'\"\n name=\"minValue\"\n label=\"Min Value\"\n [ngModel]=\"getStringValue(currentData.data, 'MinValue')\"\n (valueChange)=\"\n convertToInt($event, currentData.data, 'MinValue')\n \"\n />\n <verbena-input\n [type]=\"'number'\"\n name=\"maxValue\"\n label=\"Max Value\"\n (ngModelChange)=\"updateTable()\"\n [ngModel]=\"getStringValue(currentData.data, 'MaxValue')\"\n (valueChange)=\"\n convertToInt($event, currentData.data, 'MaxValue')\n \"\n />\n </div>\n <!-- buttons -->\n <div class=\"flex justify-between w-full bottom-8 left-0 right-0\">\n <verbena-button\n (click)=\"deleteProperty(currentData.data.Id)\"\n class=\"verben-delete-button\"\n text=\"Delete\"\n ></verbena-button>\n <div class=\"flex gap-3\">\n <verbena-button\n class=\"verben-switch-button\"\n (click)=\"goToTableView()\"\n text=\"Switch To Table\"\n ></verbena-button>\n <!-- <verbena-button class=\"verben-primary-button\" (click)=\"saveUser()\" text=\"Save\"></verbena-button> -->\n </div>\n </div>\n </div>\n </ng-template>\n </verben-right-card-data-view>\n <!-- <verben-right-card-data-view>\n yeshhhhhh\n </verben-right-card-data-view> -->\n\n <verben-card-data-view-footer>\n <div class=\"flex gap-2 justify-between\">\n <div\n *ngIf=\"!vdcv.hasCurrentItem()\"\n class=\"message-log-button-container flex justify-between\"\n >\n <verbena-button\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [text]=\"'Delete'\"\n >\n </verbena-button>\n </div>\n <div\n class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\"\n >\n <span class=\"paginator-text\"\n >{{ cardData.length }} records loaded</span\n >\n </div>\n </div>\n </verben-card-data-view-footer>\n </verben-card-data-view>\n </div>\n <div column-content>\n <verben-visible-column\n (resetFilter)=\"getProperties(Id, showColumn)\"\n (columnsUpdated)=\"onColumnsUpdated($event)\"\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"400px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n [columns]=\"visibleColumns\"\n [displayedColumns]=\"5\"\n ></verben-visible-column>\n </div>\n <div filter-content>\n <verben-table-filter\n (resetSortData)=\"getProperties(Id, showFilter)\"\n (filtersApplied)=\"onFilterApplied($event)\"\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"420px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"\n ></verben-table-filter>\n </div>\n <div sort-content>\n <verben-sort-table\n (resetSortData)=\"getProperties(Id, showSort)\"\n (selectedOptions)=\"onSortUpdated($event)\"\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"400px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [enableDragAndDrop]=\"true\"\n [sortOptions]=\"sortOptions\"\n ></verben-sort-table>\n </div>\n <div export-content>\n <lib-data-export\n [data]=\"data[0].Properties\"\n (exportDataEvent)=\"handleExport($event)\"\n >\n </lib-data-export>\n </div>\n </verben-data-view>\n <div *ngIf=\"vdv.isTableView\" class=\"flex gap-2 justify-between\">\n <div class=\"message-log-button-container flex justify-between\">\n <verbena-button\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [text]=\"'Delete'\"\n >\n </verbena-button>\n </div>\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData.length }} records loaded</span>\n <button (click)=\"loadMore()\" class=\"load-more view-links\">\n Load more\n </button>\n </div>\n </div>\n</div>\n<!-- <div class=\"w-[400px] bg-white p-4 shadow-lg border\">\n <form-control [dataType]=\"dataType2\" [formProperties]=\"data[0].Properties\"></form-control>\n</div> -->\n", styles: [".view-links{font-size:14px!important;color:var(--vbn-color-border-focus);font-weight:600;cursor:pointer}.view-links:hover{text-decoration:underline;text-underline-offset:3px}.context-banner{background-color:#d4a00773}.card-min-height{gap:10px}::ng-deep .childrenPadding{max-height:300px;overflow-y:auto}::ng-deep .toolbar{margin-bottom:15px}::ng-deep .master-only-container{margin:0!important;padding:0!important}::ng-deep .master-detail-container{margin:0!important;padding:0!important}.pop-up-content{border-radius:4px;background-color:var(--vbn-color-surface);border:1px solid rgba(212,161,7,.5)}.pop-up-value{padding:10px 20px}.pop-up-content>div:nth-child(1){border-bottom:4px solid var(--vbn-color-primary)}.enum-val{padding:2px 10px;width:100%;min-width:max-content;text-align:center}.enum-val.Active{background-color:var(--vbn-color-success-bg);color:var(--vbn-color-success)}.enum-val.InActive{background-color:#ffdfdf;color:var(--vbn-color-error)}.toggle-container{width:53px;padding:1px;color:var(--vbn-color-surface);height:22px;position:relative;background-color:var(--vbn-color-text);border-radius:2rem;cursor:pointer}.toggle-circle{width:50%;height:100%;position:absolute;left:0;padding:5px;top:0;background-color:var(--vbn-color-surface);border-radius:50%;transform:scale(1);transition:transform .3s}.translate-100{transform:translate(100%)}.translate-0{transform:translate(0)}.toggle-text-on{display:block;font-size:12px;margin-left:4px}.toggle-text-off{display:block;font-size:12px;margin-right:4px;text-align:right}\n"] }]
|
|
1797
|
+
}], ctorParameters: () => [{ type: i1.UtilService }, { type: i1.HttpWebRequestService }, { type: i0.ChangeDetectorRef }, { type: i2.FormBuilder }, { type: i1.EnvironmentService }, { type: i3.Router }, { type: i3.ActivatedRoute }, { type: FormsFieldService }, { type: i5.Location }, { type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { path: [{
|
|
1798
|
+
type: Input
|
|
1799
|
+
}], fileInput: [{
|
|
1800
|
+
type: ViewChild,
|
|
1801
|
+
args: ['fileInput', { static: true }]
|
|
1802
|
+
}], cardDataView: [{
|
|
1803
|
+
type: ViewChild,
|
|
1804
|
+
args: ['vdcv']
|
|
1805
|
+
}], dataView: [{
|
|
1806
|
+
type: ViewChild,
|
|
1807
|
+
args: ['vdv']
|
|
1808
|
+
}], tableView: [{
|
|
1809
|
+
type: ViewChild,
|
|
1810
|
+
args: ['dt']
|
|
1811
|
+
}], application: [{
|
|
1812
|
+
type: Input
|
|
1813
|
+
}], pageSize: [{
|
|
1814
|
+
type: Input
|
|
1815
|
+
}], searchDebounceTime: [{
|
|
1816
|
+
type: Input
|
|
1817
|
+
}], onViewProcessClicked: [{
|
|
1818
|
+
type: Output
|
|
1819
|
+
}] } });
|
|
1820
|
+
|
|
1821
|
+
class FormsFieldLibModule {
|
|
1822
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormsFieldLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1823
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: FormsFieldLibModule, declarations: [FormFieldsComponent], imports: [CommonModule,
|
|
1824
|
+
FormsModule,
|
|
1825
|
+
ReactiveFormsModule,
|
|
1826
|
+
DataTableModule,
|
|
1827
|
+
SvgModule,
|
|
1828
|
+
VerbenPopUpModule,
|
|
1829
|
+
DataViewModule,
|
|
1830
|
+
VerbenaButtonModule,
|
|
1831
|
+
CardDataViewModule,
|
|
1832
|
+
DropDownModule,
|
|
1833
|
+
TableFilterModule,
|
|
1834
|
+
VisibleColumnModule,
|
|
1835
|
+
SortTableModule,
|
|
1836
|
+
DataExportModule,
|
|
1837
|
+
VerbenaInputModule,
|
|
1838
|
+
VerbenaSwitchModule,
|
|
1839
|
+
FormControlerModule,
|
|
1840
|
+
ChipModule], exports: [FormFieldsComponent] });
|
|
1841
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormsFieldLibModule, imports: [CommonModule,
|
|
1842
|
+
FormsModule,
|
|
1843
|
+
ReactiveFormsModule,
|
|
1844
|
+
DataTableModule,
|
|
1845
|
+
SvgModule,
|
|
1846
|
+
VerbenPopUpModule,
|
|
1847
|
+
DataViewModule,
|
|
1848
|
+
VerbenaButtonModule,
|
|
1849
|
+
CardDataViewModule,
|
|
1850
|
+
DropDownModule,
|
|
1851
|
+
TableFilterModule,
|
|
1852
|
+
VisibleColumnModule,
|
|
1853
|
+
SortTableModule,
|
|
1854
|
+
DataExportModule,
|
|
1855
|
+
VerbenaInputModule,
|
|
1856
|
+
VerbenaSwitchModule,
|
|
1857
|
+
FormControlerModule,
|
|
1858
|
+
ChipModule] });
|
|
1859
|
+
}
|
|
1860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormsFieldLibModule, decorators: [{
|
|
1861
|
+
type: NgModule,
|
|
1862
|
+
args: [{
|
|
1863
|
+
declarations: [FormFieldsComponent],
|
|
1864
|
+
imports: [
|
|
1865
|
+
CommonModule,
|
|
1866
|
+
FormsModule,
|
|
1867
|
+
ReactiveFormsModule,
|
|
1868
|
+
DataTableModule,
|
|
1869
|
+
SvgModule,
|
|
1870
|
+
VerbenPopUpModule,
|
|
1871
|
+
DataViewModule,
|
|
1872
|
+
VerbenaButtonModule,
|
|
1873
|
+
CardDataViewModule,
|
|
1874
|
+
DropDownModule,
|
|
1875
|
+
TableFilterModule,
|
|
1876
|
+
VisibleColumnModule,
|
|
1877
|
+
SortTableModule,
|
|
1878
|
+
DataExportModule,
|
|
1879
|
+
VerbenaInputModule,
|
|
1880
|
+
VerbenaSwitchModule,
|
|
1881
|
+
FormControlerModule,
|
|
1882
|
+
ChipModule,
|
|
1883
|
+
],
|
|
1884
|
+
exports: [FormFieldsComponent],
|
|
1885
|
+
}]
|
|
1886
|
+
}] });
|
|
1887
|
+
|
|
1888
|
+
const appRoutes = [
|
|
1889
|
+
{ path: '', component: FormGroupComponent, title: 'Form' },
|
|
1890
|
+
{ path: 'fields', component: FormFieldsComponent, title: 'Fields' },
|
|
1891
|
+
];
|
|
1892
|
+
class FormGroupLibModule {
|
|
1893
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormGroupLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1894
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: FormGroupLibModule, declarations: [FormGroupComponent], imports: [CommonModule,
|
|
1895
|
+
FormsModule,
|
|
1896
|
+
ReactiveFormsModule,
|
|
1897
|
+
DataTableModule,
|
|
1898
|
+
SvgModule,
|
|
1899
|
+
VerbenPopUpModule,
|
|
1900
|
+
DataViewModule,
|
|
1901
|
+
VerbenaButtonModule,
|
|
1902
|
+
CardDataViewModule,
|
|
1903
|
+
DropDownModule,
|
|
1904
|
+
VerbenaSwitchModule,
|
|
1905
|
+
TableFilterModule,
|
|
1906
|
+
VisibleColumnModule,
|
|
1907
|
+
SortTableModule,
|
|
1908
|
+
DataExportModule,
|
|
1909
|
+
VerbenaInputModule,
|
|
1910
|
+
FormsFieldLibModule,
|
|
1911
|
+
SharedModule, i3.RouterModule], exports: [FormGroupComponent] });
|
|
1912
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormGroupLibModule, imports: [CommonModule,
|
|
1913
|
+
FormsModule,
|
|
1914
|
+
ReactiveFormsModule,
|
|
1915
|
+
DataTableModule,
|
|
1916
|
+
SvgModule,
|
|
1917
|
+
VerbenPopUpModule,
|
|
1918
|
+
DataViewModule,
|
|
1919
|
+
VerbenaButtonModule,
|
|
1920
|
+
CardDataViewModule,
|
|
1921
|
+
DropDownModule,
|
|
1922
|
+
VerbenaSwitchModule,
|
|
1923
|
+
TableFilterModule,
|
|
1924
|
+
VisibleColumnModule,
|
|
1925
|
+
SortTableModule,
|
|
1926
|
+
DataExportModule,
|
|
1927
|
+
VerbenaInputModule,
|
|
1928
|
+
FormsFieldLibModule,
|
|
1929
|
+
SharedModule,
|
|
1930
|
+
RouterModule.forChild(appRoutes)] });
|
|
1931
|
+
}
|
|
1932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormGroupLibModule, decorators: [{
|
|
1933
|
+
type: NgModule,
|
|
1934
|
+
args: [{
|
|
1935
|
+
declarations: [FormGroupComponent],
|
|
1936
|
+
imports: [
|
|
1937
|
+
CommonModule,
|
|
1938
|
+
FormsModule,
|
|
1939
|
+
ReactiveFormsModule,
|
|
1940
|
+
DataTableModule,
|
|
1941
|
+
SvgModule,
|
|
1942
|
+
VerbenPopUpModule,
|
|
1943
|
+
DataViewModule,
|
|
1944
|
+
VerbenaButtonModule,
|
|
1945
|
+
CardDataViewModule,
|
|
1946
|
+
DropDownModule,
|
|
1947
|
+
VerbenaSwitchModule,
|
|
1948
|
+
TableFilterModule,
|
|
1949
|
+
VisibleColumnModule,
|
|
1950
|
+
SortTableModule,
|
|
1951
|
+
DataExportModule,
|
|
1952
|
+
VerbenaInputModule,
|
|
1953
|
+
FormsFieldLibModule,
|
|
1954
|
+
SharedModule,
|
|
1955
|
+
RouterModule.forChild(appRoutes),
|
|
1956
|
+
],
|
|
1957
|
+
exports: [FormGroupComponent],
|
|
1958
|
+
}]
|
|
1959
|
+
}] });
|
|
1960
|
+
|
|
1961
|
+
/**
|
|
1962
|
+
* Generated bundle index. Do not edit.
|
|
1963
|
+
*/
|
|
1964
|
+
|
|
1965
|
+
export { FormFieldsComponent, FormGroupComponent, FormGroupLibModule, FormsFieldLibModule, appRoutes };
|
|
1966
|
+
//# sourceMappingURL=verben-workflow-ui-src-lib-components-form-group.mjs.map
|