verben-workflow-ui 0.6.8 → 0.7.0
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/src/lib/components/designer/models/types.mjs +1 -1
- package/esm2022/src/lib/components/designer/services/connection.service.mjs +2 -1
- package/esm2022/src/lib/components/designer/services/wf-mapper.service.mjs +4 -1
- package/esm2022/src/lib/components/my-queue/my-queue.component.mjs +9 -4
- package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +17 -1
- package/esm2022/src/lib/components/my-queue/tasks.form.component.mjs +5 -1
- package/esm2022/src/lib/components/operation-popup/operation-popup.component.mjs +3 -3
- package/esm2022/src/lib/components/operation-popup/operation-popup.facade.mjs +33 -1
- package/esm2022/src/lib/components/task-history/task-history.component.mjs +165 -11
- package/esm2022/src/lib/components/tasks/tasks.component.mjs +9 -6
- package/esm2022/src/lib/components/tasks/tasks.facade.mjs +9 -1
- package/esm2022/src/lib/components/tasks/tasks.form.component.mjs +54 -7
- package/esm2022/src/lib/components/workflow-designer/action-dialog/action-dialog.component.mjs +6 -3
- package/esm2022/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.mjs +5 -1
- package/esm2022/src/lib/components/workflow-designer/services/connection.service.mjs +2 -1
- package/esm2022/src/lib/components/workflow-designer/services/transformer.service.mjs +3 -1
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.component.mjs +2 -1
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.state.mjs +4 -1
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.types.mjs +1 -1
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.component.mjs +436 -34
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.module.mjs +9 -2
- package/esm2022/src/lib/models/Task.mjs +1 -1
- package/esm2022/src/lib/models/WorkflowAction.mjs +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs +4 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs +28 -3
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs +34 -2
- package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs +164 -10
- package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs +68 -11
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs +16 -2
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs +441 -33
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs.map +1 -1
- package/package.json +68 -68
- package/src/lib/components/designer/models/types.d.ts +1 -0
- package/src/lib/components/task-history/task-history.component.d.ts +23 -2
- package/src/lib/components/tasks/tasks.component.d.ts +3 -2
- package/src/lib/components/tasks/tasks.form.component.d.ts +12 -4
- package/src/lib/components/workflow-designer/workflow-designer.types.d.ts +1 -0
- package/src/lib/components/workflow-stage/workflow-stage.component.d.ts +49 -6
- package/src/lib/components/workflow-stage/workflow-stage.module.d.ts +4 -3
- package/src/lib/models/Task.d.ts +1 -0
- package/src/lib/models/WorkflowAction.d.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verben-workflow-ui-src-lib-components-workflow-stage.mjs","sources":["../../../projects/verben-workflow-ui/src/lib/components/workflow-stage/workflow-stage.component.ts","../../../projects/verben-workflow-ui/src/lib/components/workflow-stage/workflow-stage.component.html","../../../projects/verben-workflow-ui/src/lib/components/workflow-stage/workflow-stage.module.ts","../../../projects/verben-workflow-ui/src/lib/components/workflow-stage/verben-workflow-ui-src-lib-components-workflow-stage.ts"],"sourcesContent":["import {\n Component,\n EventEmitter,\n Input,\n Output,\n QueryList,\n SimpleChanges,\n ViewChildren,\n} from '@angular/core';\n\nimport { DataType, VerbenPopUpComponent } from 'verben-ng-ui';\n\nimport {\n ActionHistory,\n Actor,\n ErrorResponse,\n Form,\n ObjectState,\n SearchPropertyValue,\n Task,\n User,\n WorkflowAction,\n} from 'verben-workflow-ui/src/lib/models';\nimport {\n EnvironmentService,\n HttpWebRequestService,\n UtilService,\n} from 'verben-workflow-ui/src/lib/services';\n\n@Component({\n selector: 'app-workflow-stage',\n templateUrl: './workflow-stage.component.html',\n styleUrl: './workflow-stage.component.css',\n})\nexport class WorkflowStageComponent {\n @Input() historyToDate: any[] = [];\n @Input() taskCode: string | null = null;\n @Input() forms: any = [];\n @Input() isVisible: boolean = false;\n @Input() readOnly: boolean = false;\n active: number = 0;\n dataType: DataType = DataType.Text;\n commentText: string = '';\n isFormViewerVisible: boolean = false;\n activeForm: Form | null = null;\n @Input() currentActors: any[] = [];\n @Input() user: string | null = null;\n @Input() userName: string | null = null;\n @Input() nextActions: any[] = [];\n @Input() task: Task | null = null;\n @Output() onActionCompleted = new EventEmitter<any>();\n @Output() onPickCompleted = new EventEmitter<any>();\n @Output() onCommentCompleted = new EventEmitter<any>();\n @Output() onFormCompleted = new EventEmitter<any>();\n @Output() onOpen = new EventEmitter<any>();\n\n @Output() onClose = new EventEmitter<any>();\n @ViewChildren('popup') popUps!: QueryList<VerbenPopUpComponent>;\n @ViewChildren('popup2') popUp2s!: QueryList<VerbenPopUpComponent>;\n @ViewChildren('popup3') popUp3s!: QueryList<VerbenPopUpComponent>;\n @ViewChildren('popup4') popUp4s!: QueryList<VerbenPopUpComponent>;\n localHistoryToDate: ActionHistory[] = [];\n localNextActions: any[] = [];\n taskForms: any = [];\n selectedAction: any = null;\n nextActors: Actor[] = [];\n selectedRecipient: string | null = null;\n\n // Pick / re-assign popup state — kept separate from the pass-on flow above\n // so opening it never clobbers `commentText` / `selectedRecipient`.\n selectedStageCode: string | null = null;\n pickComment: string = '';\n pickRecipient: string | null = null;\n pickActors: { Name: string; Identifier: string }[] = [];\n\n constructor(\n private utilService: UtilService,\n private server: HttpWebRequestService,\n ) {}\n\n ngOnInit() {}\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['historyToDate']) {\n const incoming = changes['historyToDate'].currentValue;\n\n const allHistory = Array.isArray(incoming) ? incoming : [];\n\n this.localHistoryToDate = allHistory.filter(\n (item) => item.ActionType !== 'TaskReAssignment',\n );\n\n // console.log({ historyToDate: this.localHistoryToDate });\n }\n\n if (changes['nextActions']) {\n const incoming = changes['nextActions'].currentValue;\n const actions = Array.isArray(incoming)\n ? [...(incoming as WorkflowAction[])].sort(\n (a, b) => a.Position - b.Position,\n )\n : [];\n this.localNextActions = actions;\n this.selectedAction = null;\n // console.log({ nextActions: this.localNextActions });\n }\n\n this.handleDataChanges();\n }\n\n submitForm(groupIndex: number): void {\n const formEntity = {\n ...this.forms[groupIndex],\n DataState: ObjectState.Changed,\n };\n this.onFormCompleted.emit(formEntity);\n // this.isVisible = false;\n }\n\n areRequiredPropertiesFilled(properties: any[] = []): boolean {\n if (!properties.length) return true;\n\n return properties.every((prop) => {\n if (prop.IsRequired !== true) return true;\n return prop.Value && prop.Value.trim().length > 0;\n });\n }\n\n openCommentFor(action: any) {\n this.selectedAction = action;\n // console.log(this.selectedAction, 'kk');\n\n this.commentText = '';\n this.selectedRecipient = null;\n this.nextActors = [];\n this.loadNextActors(action?.ToStage);\n this.popUp2s.forEach((popUp) => {\n if (!popUp.dropdownOpen) {\n popUp.toggleDropdown();\n }\n });\n }\n\n async loadNextActors(stageCode: string | undefined) {\n if (!this.taskCode || !stageCode) {\n this.nextActors = [];\n return;\n }\n this.utilService.sendBI(true);\n const res = await this.server.get(\n `GetNextActors/${this.taskCode}/false/${stageCode}`,\n );\n this.utilService.sendBI(false);\n if (res instanceof ErrorResponse) {\n this.nextActors = [];\n return;\n }\n this.nextActors = (res as Actor[]) || [];\n const userEmail = this.user;\n this.selectedRecipient =\n userEmail && this.nextActors.some((a) => a.Identifier === userEmail)\n ? userEmail\n : null;\n }\n\n handleDataChanges() {\n // console.log('Data updated!', {\n // history: this.localHistoryToDate,\n // actions: this.localNextActions,\n // taskForms: this.taskForms,\n // });\n }\n\n closePopUp() {\n this.popUps.forEach((popUp) => {\n if (popUp.dropdownOpen) {\n popUp.toggleDropdown();\n }\n });\n }\n closePopUp2() {\n this.popUp2s.forEach((popUp) => {\n if (popUp.dropdownOpen) {\n popUp.toggleDropdown();\n }\n });\n }\n completeAction(action: any) {\n this.onActionCompleted.emit({\n action: action,\n comment: this.commentText,\n recipient: this.selectedRecipient || '',\n });\n this.closePopUp2();\n }\n onModalOpen(event: any) {\n this.onOpen.emit(event);\n }\n\n onModalClose(event: any) {\n this.onClose.emit(event);\n }\n disableNotActor(): boolean {\n const userEmail = this.user;\n return !this.currentActors?.some((actor) => actor.Identifier === userEmail);\n }\n\n canPick(): boolean {\n return !!this.task?.CanPickTask;\n }\n\n /**\n * A task already sitting on someone's desk is taken over via re-assignment;\n * one with no current actors is unclaimed and gets picked.\n */\n isReassign(): boolean {\n return (this.task?.CurrentActors?.length ?? 0) > 0;\n }\n\n openPickPopup() {\n this.pickComment = '';\n this.selectedStageCode =\n this.task?.CurrentStages?.[0] ??\n this.localHistoryToDate[this.localHistoryToDate.length - 1]?.ToStage ??\n null;\n\n const email = this.user;\n this.pickActors = email\n ? [{ Identifier: email, Name: this.userName || email }]\n : [];\n this.pickRecipient = email ?? null;\n\n this.popUp4s.forEach((popUp) => {\n if (!popUp.dropdownOpen) {\n popUp.toggleDropdown();\n }\n });\n }\n\n async submitPick() {\n if (!this.task || !this.pickComment || !this.pickRecipient) {\n return;\n }\n const res = this.isReassign()\n ? await this.reassignTask()\n : await this.pickTask();\n\n if (res === null || res instanceof ErrorResponse) {\n return;\n }\n\n this.utilService.showSuccess(\n this.isReassign()\n ? 'Task reassigned successfully'\n : 'Task picked successfully',\n );\n this.onPickCompleted.emit(res);\n this.closePopUp4();\n }\n\n private async pickTask(): Promise<any> {\n if (!this.selectedStageCode) {\n return null;\n }\n\n this.utilService.sendBI(true);\n const res = await this.server.post(\n `PickTaskWithCode/${this.task!.Code}/${this.pickComment}/${\n this.selectedStageCode\n }/${this.pickRecipient}`,\n {},\n );\n this.utilService.sendBI(false);\n\n if (res instanceof ErrorResponse) {\n this.utilService.showError(res.ErrorMsg);\n }\n return res;\n }\n\n private async reassignTask(): Promise<any> {\n const task = this.task!;\n const fromUser = task.CurrentActors?.[0]?.Identifier;\n if (!fromUser) {\n return null;\n }\n\n const payload: Task = {\n ...task,\n DataState: ObjectState.Changed,\n HistoryToDate: [],\n CurrentActors: (task.CurrentActors || []).map((it: any) => ({\n ...it,\n ActorTags: [],\n })),\n FullStages: [],\n };\n\n this.utilService.sendBI(true);\n const res = await this.server.post(\n `Reassign/${this.pickComment}/${this.pickRecipient}/${fromUser}`,\n payload,\n );\n this.utilService.sendBI(false);\n\n if (res instanceof ErrorResponse) {\n this.utilService.showError(res.ErrorMsg);\n }\n return res;\n }\n\n closePopUp4() {\n this.popUp4s.forEach((popUp) => {\n if (popUp.dropdownOpen) {\n popUp.toggleDropdown();\n }\n });\n }\n\n async loadFormIfExists(stage: string | undefined) {\n if (!this.taskCode || !stage) {\n return;\n }\n this.utilService.sendBI(true);\n const res = await this.server.get(\n `GetCurrentFormsForTask/${this.taskCode}/${stage}`,\n );\n this.utilService.sendBI(false);\n if (res instanceof ErrorResponse) {\n this.utilService.showInfo('Could not load form for selected stage');\n return;\n } else {\n var result = res as Form[];\n if (result.length > 0) {\n this.activeForm = result[0];\n this.closePopUp3();\n this.isFormViewerVisible = true;\n }\n }\n }\n\n onFormViewerOpen() {}\n\n onFormViewerClose() {\n this.isFormViewerVisible = false;\n this.activeForm = null;\n }\n\n closePopUp3() {\n this.popUp3s.forEach((popUp) => {\n if (popUp.dropdownOpen) {\n popUp.toggleDropdown();\n }\n });\n }\n}\n","<div\n class=\"flex overflow-x-auto items-start min-h-max overflow-y-clip pt-3 pb-3\"\n>\n <div *ngFor=\"let stage of localHistoryToDate; let i = index\">\n <div class=\"flex items-center\">\n <verben-tooltip\n [top]=\"'0px'\"\n [textColor]=\"'#000'\"\n [backgroundColor]=\"'#D3D3D3'\"\n [left]=\"'0'\"\n [tooltipContent]=\"taskCode ? nullTemplate : tooltipTemplate\"\n #tooltip\n >\n <div\n class=\"w-[30px] h-[30px] flex cursor-pointer justify-center items-center rounded-full bg-primary\"\n >\n <ng-container *ngIf=\"taskCode\">\n <verben-pop-Up\n #popup3\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n >\n <verben-svg\n stroke=\"#fff\"\n icon=\"check\"\n dropdown-trigger\n ></verben-svg>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <!-- <div (click)=\"viewVendors(value.Code)\" class=\"pop-up-value cursor-pointer\">View vendors</div> -->\n <div\n (click)=\"loadFormIfExists(stage.ToStage)\"\n class=\"pop-up-value cursor-pointer\"\n >\n Load Stage Form\n </div>\n <!-- <div class=\"pop-up-value cursor-pointer\">Delete</div> -->\n </div>\n </verben-pop-Up>\n </ng-container>\n <ng-container *ngIf=\"!taskCode\">\n <verben-svg stroke=\"#fff\" icon=\"check\"></verben-svg>\n </ng-container>\n </div>\n </verben-tooltip>\n\n <ng-template #nullTemplate></ng-template>\n\n <ng-template #tooltipTemplate>\n <div>\n <p class=\"text-xs\">{{ stage.Actor.Identifier }}</p>\n </div>\n </ng-template>\n\n <ng-container\n *ngIf=\"\n localHistoryToDate[i + 1] ||\n (i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n !readOnly)\n \"\n >\n <div\n class=\"border-primary border-b-2 w-[50px] relative px-2 text-xs text-primary font-medium\"\n ></div>\n </ng-container>\n <div\n *ngIf=\"\n i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n !readOnly\n \"\n class=\"relative inline-flex\"\n >\n <p\n (click)=\"openCommentFor(selectedAction || localNextActions[0])\"\n [ngClass]=\"{\n 'cursor-not-allowed opacity-50 pointer-events-none':\n disableNotActor(),\n 'cursor-pointer': !disableNotActor(),\n }\"\n class=\"text-center min-w-max rounded-md h-[30px] text-[white] text-sm flex justify-center items-center py-1 max-w-fit px-2 bg-primary\"\n >\n {{\n selectedAction?.Name ||\n selectedAction?.ToStageName ||\n localNextActions[0]?.Name ||\n localNextActions[0]?.ToStageName\n }}\n </p>\n <div\n *ngIf=\"canPick()\"\n (click)=\"openPickPopup()\"\n [title]=\"\n isReassign()\n ? 'Reassign task to yourself to act on this stage'\n : 'Pick task to act on this stage'\n \"\n class=\"absolute -top-2 -right-2 w-[18px] h-[18px] rounded-full bg-[#FFE681] ring-2 ring-white shadow flex items-center justify-center cursor-pointer z-10\"\n >\n <verben-svg\n icon=\"user\"\n fill=\"#404040\"\n [width]=\"12\"\n [height]=\"12\"\n ></verben-svg>\n </div>\n </div>\n\n <ng-container>\n <div\n *ngIf=\"localHistoryToDate[i + 1]?.ActionName\"\n class=\"border-primary border-b-2 w-[50px] relative px-2 text-xs text-primary font-medium\"\n ></div>\n </ng-container>\n\n <ng-container\n *ngIf=\"\n i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n localNextActions.length !== 1 &&\n !readOnly\n \"\n >\n <div>\n <verben-pop-Up\n #popup\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n >\n <div dropdown-trigger class=\"flex items-center\">\n <div class=\"w-[20px] h-[2px] bg-[#D4A007]\"></div>\n <div class=\"mt-2\">\n <verben-svg\n class=\"cursor-pointer actions-icon\"\n stroke=\"#D4A007\"\n icon=\"chevron\"\n ></verben-svg>\n </div>\n </div>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <ul>\n <li\n *ngFor=\"let action of localNextActions\"\n class=\"pop-up-value\"\n >\n <button\n [disabled]=\"disableNotActor()\"\n class=\"disabled:cursor-not-allowed cursor-pointer\"\n (click)=\"openCommentFor(action); closePopUp()\"\n >\n {{ action.Name || action.ToStageName || \"Unnamed\" }}\n </button>\n </li>\n </ul>\n </div>\n </verben-pop-Up>\n </div>\n </ng-container>\n </div>\n <verben-tooltip\n [top]=\"'0px'\"\n [textColor]=\"'#000'\"\n [backgroundColor]=\"'#D3D3D3'\"\n [left]=\"'0'\"\n [tooltipContent]=\"tooltipTemplate2\"\n #tooltip\n >\n <p\n class=\"text-xs min-w-max left-0 text-primary mt-1 font-semibold capitalize\"\n >\n {{ stage.ToStageName | slice: 0 : 20\n }}{{ stage.ToStageName && stage.ToStageName.length > 20 ? \"...\" : \"\" }}\n </p>\n </verben-tooltip>\n <ng-template #tooltipTemplate2>\n <div>\n <p class=\"text-xs\">{{ stage.ToStageName }}</p>\n </div>\n </ng-template>\n </div>\n</div>\n<verben-pop-Up\n #popup2\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n>\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div class=\"p-4 w-[350px]\">\n <h3 class=\"font-semibold mb-2\">Add Comment</h3>\n\n <verben-drop-down\n *ngIf=\"taskCode && nextActors.length > 0\"\n width=\"100%\"\n class=\"mb-3 block\"\n label=\"Assign to (optional)\"\n [options]=\"nextActors\"\n optionLabel=\"Name\"\n optionValue=\"Identifier\"\n [(ngModel)]=\"selectedRecipient\"\n [showClear]=\"true\"\n ></verben-drop-down>\n\n <textarea\n class=\"w-full border p-2 rounded-md outline-none\"\n rows=\"4\"\n [(ngModel)]=\"commentText\"\n placeholder=\"Enter your comment...\"\n ></textarea>\n\n <div class=\"flex justify-end gap-3 mt-4\">\n <verbena-button (click)=\"closePopUp2()\" text=\"Cancel\"></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n text=\"OK\"\n (click)=\"completeAction(selectedAction)\"\n [disable]=\"!commentText\"\n ></verbena-button>\n </div>\n </div>\n </div>\n</verben-pop-Up>\n<verben-pop-Up\n #popup4\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n>\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div class=\"p-4 w-[350px]\">\n <h3 class=\"font-semibold mb-2\">\n {{ isReassign() ? \"Reassign Task\" : \"Pick Task\" }}\n </h3>\n\n <verben-drop-down\n *ngIf=\"!isReassign()\"\n width=\"100%\"\n class=\"mb-3 block\"\n label=\"Stage\"\n [options]=\"task?.FullStages || []\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n [(ngModel)]=\"selectedStageCode\"\n [showClear]=\"true\"\n ></verben-drop-down>\n\n <verben-drop-down\n width=\"100%\"\n class=\"mb-3 block\"\n label=\"Assign to\"\n [options]=\"pickActors\"\n optionLabel=\"Name\"\n optionValue=\"Identifier\"\n [(ngModel)]=\"pickRecipient\"\n [disabled]=\"true\"\n ></verben-drop-down>\n\n <textarea\n class=\"w-full border p-2 rounded-md outline-none\"\n rows=\"4\"\n [(ngModel)]=\"pickComment\"\n placeholder=\"Enter your comment...\"\n ></textarea>\n\n <div class=\"flex justify-end gap-3 mt-4\">\n <verbena-button (click)=\"closePopUp4()\" text=\"Cancel\"></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n text=\"OK\"\n (click)=\"submitPick()\"\n [disable]=\"\n !pickComment ||\n !pickRecipient ||\n (!isReassign() && !selectedStageCode)\n \"\n ></verbena-button>\n </div>\n </div>\n </div>\n</verben-pop-Up>\n<verben-dialogue\n [dismissOutsideClick]=\"true\"\n [closeOnEscape]=\"true\"\n [mode]=\"'drawer'\"\n [padding]=\"'0px'\"\n [drawerWidth]=\"'500px'\"\n position=\"right\"\n [disableFooter]=\"false\"\n [isVisible]=\"isVisible\"\n [modalData]=\"taskForms\"\n (openModal)=\"onModalOpen($event)\"\n (closeModal)=\"onModalClose($event)\"\n [headerTemplate]=\"headerTemplate\"\n [bodyTemplate]=\"bodyTemplate\"\n [showCloseIcon]=\"true\"\n>\n</verben-dialogue>\n\n<ng-template #headerTemplate>\n <div class=\"bg-[#FFE681] px-6 py-4 flex justify-between items-center\">\n <h1>{{ forms[0]?.Name }}</h1>\n </div>\n</ng-template>\n\n<ng-template #bodyTemplate>\n <div class=\"p-3\">\n <div *ngIf=\"forms?.[active]?.Entities?.length; else emptyState\">\n <div\n *ngFor=\"let entity of forms[active]?.Entities; let j = index\"\n class=\"mb-6 pb-4\"\n >\n <form-control\n [formProperties]=\"entity?.Properties || []\"\n ></form-control>\n <div class=\"flex gap-3 justify-end mt-4\">\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"submitForm(active)\"\n [disable]=\"!areRequiredPropertiesFilled(entity?.Properties)\"\n text=\"Proceed\"\n ></verbena-button>\n </div>\n </div>\n </div>\n\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n </div>\n</ng-template>\n\n<app-form-viewer\n [form]=\"activeForm\"\n [isVisible]=\"isFormViewerVisible\"\n (onOpen)=\"onFormViewerOpen()\"\n (onClose)=\"onFormViewerClose()\"\n></app-form-viewer>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport {\n CardDataViewModule,\n DataExportModule,\n DataTableModule,\n DataViewModule,\n DropDownModule,\n SortTableModule,\n SvgModule,\n TableFilterModule,\n TooltipModule,\n VerbenaButtonModule,\n VerbenaInputModule,\n VerbenaSwitchModule,\n VerbenDialogueModule,\n VerbenPopUpModule,\n VisibleColumnModule,\n} from 'verben-ng-ui';\nimport { RouterModule, Routes } from '@angular/router';\nimport { WorkflowStageComponent } from './workflow-stage.component';\nimport { FormControlerModule } from 'verben-workflow-ui/src/lib/components/form-control';\nimport { FormViewerLibModule } from 'verben-workflow-ui/src/lib/components/form-viewer';\n@NgModule({\n declarations: [WorkflowStageComponent],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n DataTableModule,\n SvgModule,\n VerbenPopUpModule,\n DataViewModule,\n VerbenaButtonModule,\n CardDataViewModule,\n DropDownModule,\n VerbenaSwitchModule,\n TableFilterModule,\n VisibleColumnModule,\n SortTableModule,\n DataExportModule,\n TooltipModule,\n VerbenDialogueModule,\n VerbenaInputModule,\n FormControlerModule,\n FormViewerLibModule,\n ],\n exports: [WorkflowStageComponent],\n})\nexport class WorkFlowStageLibModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAkCa,sBAAsB,CAAA;AA0CvB,IAAA,WAAA,CAAA;AACA,IAAA,MAAA,CAAA;IA1CD,aAAa,GAAU,EAAE,CAAC;IAC1B,QAAQ,GAAkB,IAAI,CAAC;IAC/B,KAAK,GAAQ,EAAE,CAAC;IAChB,SAAS,GAAY,KAAK,CAAC;IAC3B,QAAQ,GAAY,KAAK,CAAC;IACnC,MAAM,GAAW,CAAC,CAAC;AACnB,IAAA,QAAQ,GAAa,QAAQ,CAAC,IAAI,CAAC;IACnC,WAAW,GAAW,EAAE,CAAC;IACzB,mBAAmB,GAAY,KAAK,CAAC;IACrC,UAAU,GAAgB,IAAI,CAAC;IACtB,aAAa,GAAU,EAAE,CAAC;IAC1B,IAAI,GAAkB,IAAI,CAAC;IAC3B,QAAQ,GAAkB,IAAI,CAAC;IAC/B,WAAW,GAAU,EAAE,CAAC;IACxB,IAAI,GAAgB,IAAI,CAAC;AACxB,IAAA,iBAAiB,GAAG,IAAI,YAAY,EAAO,CAAC;AAC5C,IAAA,eAAe,GAAG,IAAI,YAAY,EAAO,CAAC;AAC1C,IAAA,kBAAkB,GAAG,IAAI,YAAY,EAAO,CAAC;AAC7C,IAAA,eAAe,GAAG,IAAI,YAAY,EAAO,CAAC;AAC1C,IAAA,MAAM,GAAG,IAAI,YAAY,EAAO,CAAC;AAEjC,IAAA,OAAO,GAAG,IAAI,YAAY,EAAO,CAAC;AACrB,IAAA,MAAM,CAAmC;AACxC,IAAA,OAAO,CA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AA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YAvB/B,YAAY;YACZ,WAAW;YACX,mBAAmB;YACnB,eAAe;YACf,SAAS;YACT,iBAAiB;YACjB,cAAc;YACd,mBAAmB;YACnB,kBAAkB;YAClB,cAAc;YACd,mBAAmB;YACnB,iBAAiB;YACjB,mBAAmB;YACnB,eAAe;YACf,gBAAgB;YAChB,aAAa;YACb,oBAAoB;YACpB,kBAAkB;YAClB,mBAAmB;YACnB,mBAAmB,CAAA,EAAA,CAAA,CAAA;;4FAIV,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBA1BlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,eAAe;wBACf,SAAS;wBACT,iBAAiB;wBACjB,cAAc;wBACd,mBAAmB;wBACnB,kBAAkB;wBAClB,cAAc;wBACd,mBAAmB;wBACnB,iBAAiB;wBACjB,mBAAmB;wBACnB,eAAe;wBACf,gBAAgB;wBAChB,aAAa;wBACb,oBAAoB;wBACpB,kBAAkB;wBAClB,mBAAmB;wBACnB,mBAAmB;AACpB,qBAAA;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA,CAAA;;;ACnDD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"verben-workflow-ui-src-lib-components-workflow-stage.mjs","sources":["../../../projects/verben-workflow-ui/src/lib/components/workflow-stage/workflow-stage.component.ts","../../../projects/verben-workflow-ui/src/lib/components/workflow-stage/workflow-stage.component.html","../../../projects/verben-workflow-ui/src/lib/components/workflow-stage/workflow-stage.module.ts","../../../projects/verben-workflow-ui/src/lib/components/workflow-stage/verben-workflow-ui-src-lib-components-workflow-stage.ts"],"sourcesContent":["import {\n ChangeDetectorRef,\n Component,\n DoCheck,\n EventEmitter,\n HostListener,\n Input,\n IterableDiffer,\n IterableDiffers,\n Output,\n QueryList,\n SimpleChanges,\n ViewChildren,\n} from '@angular/core';\n\nimport {\n DataType,\n DropdownChangeEvent,\n DropdownLoadEvent,\n VerbenPopUpComponent,\n} from 'verben-ng-ui';\nimport { EditorConfig, EditorMode, PagedResult } from 'verben-reporting-ui';\n\nimport {\n ActionHistory,\n Actor,\n ErrorResponse,\n Form,\n ObjectState,\n SearchPropertyValue,\n SortDirection,\n Task,\n User,\n WorkflowAction,\n} from 'verben-workflow-ui/src/lib/models';\nimport {\n EnvironmentService,\n HttpWebRequestService,\n UtilService,\n} from 'verben-workflow-ui/src/lib/services';\n\n@Component({\n selector: 'app-workflow-stage',\n templateUrl: './workflow-stage.component.html',\n styleUrl: './workflow-stage.component.css',\n})\nexport class WorkflowStageComponent /* implements DoCheck */ {\n @Input() pageSize: number = 50;\n @Input() historyToDate: any[] = [];\n @Input() taskCode: string | null = null;\n @Input() forms: any = [];\n @Input() isVisible: boolean = false;\n @Input() readOnly: boolean = false;\n active: number = 0;\n dataType: DataType = DataType.Text;\n commentText: string = '';\n isRichEditor: boolean = false;\n editorMode: EditorMode = EditorMode.Designer;\n editorConfig: EditorConfig = {\n editable: true,\n height: '240px',\n width: '100%',\n showToolbar: true,\n menuItems: [],\n };\n isFormViewerVisible: boolean = false;\n activeForm: Form | null = null;\n hoveredStage: any = null;\n stageTooltipPos = {\n top: 0,\n left: 0,\n transform: '',\n showAbove: true,\n };\n @Input() currentActors: any[] = [];\n @Input() user: string | null = null;\n @Input() userName: string | null = null;\n @Input() nextActions: any[] = [];\n @Input() task: Task | null = null;\n @Output() onActionCompleted = new EventEmitter<any>();\n @Output() onPickCompleted = new EventEmitter<any>();\n @Output() onCommentCompleted = new EventEmitter<any>();\n @Output() onFormCompleted = new EventEmitter<any>();\n @Output() onOpen = new EventEmitter<any>();\n\n @Output() onClose = new EventEmitter<any>();\n @ViewChildren('popup') popUps!: QueryList<VerbenPopUpComponent>;\n @ViewChildren('popup2') popUp2s!: QueryList<VerbenPopUpComponent>;\n @ViewChildren('popup3') popUp3s!: QueryList<VerbenPopUpComponent>;\n @ViewChildren('popup4') popUp4s!: QueryList<VerbenPopUpComponent>;\n localHistoryToDate: ActionHistory[] = [];\n localNextActions: any[] = [];\n taskForms: any = [];\n selectedAction: any = null;\n nextActors: Actor[] = [];\n actors: Actor[] = [];\n selectedRecipient: string | null = null;\n copy: Actor[] = [];\n\n // Pick / re-assign popup state — kept separate from the pass-on flow above\n // so opening it never clobbers `commentText` / `selectedRecipient`.\n selectedStageCode: string | null = null;\n pickComment: string = '';\n isPickRichEditor: boolean = false;\n pickRecipient: string | null = null;\n pickActors: { Name: string; Identifier: string }[] = [];\n\n popupPositions: any[] = [\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n offsetY: 6,\n },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n offsetY: 6,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n offsetY: -6,\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom',\n offsetY: -6,\n },\n ];\n\n passOnPositions: any[] = [\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n offsetY: 10,\n },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n offsetY: 10,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n offsetY: -10,\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom',\n offsetY: -10,\n },\n ];\n\n reassignPositions: any[] = [\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n offsetY: 30,\n },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n offsetY: 30,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n offsetY: -10,\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom',\n offsetY: -10,\n },\n ];\n\n private historyDiffer: IterableDiffer<any>;\n private actionsDiffer: IterableDiffer<any>;\n private lastTaskCode: string | null = null;\n\n constructor(\n private utilService: UtilService,\n private server: HttpWebRequestService,\n private cdr: ChangeDetectorRef,\n private differs: IterableDiffers,\n ) {\n this.historyDiffer = this.differs.find([]).create(this.trackByStage);\n this.actionsDiffer = this.differs.find([]).create(this.trackByAction);\n this.getActors().then((res) => {\n if (res) {\n this.actors = res;\n this.cdr.markForCheck();\n }\n });\n }\n\n ngOnInit() {\n this.lastTaskCode = this.taskCode || this.task?.Code || null;\n this.syncStagesAndActions();\n }\n\n /*\n ngDoCheck(): void {\n const currentCode = this.taskCode || this.task?.Code || null;\n if (currentCode !== this.lastTaskCode) {\n this.lastTaskCode = currentCode;\n this.resetTransientState();\n this.syncStagesAndActions();\n this.cdr.markForCheck();\n return;\n }\n\n const currentHistory =\n this.historyToDate && this.historyToDate.length > 0\n ? this.historyToDate\n : this.task?.HistoryToDate || [];\n const historyChanges = this.historyDiffer.diff(currentHistory);\n if (historyChanges) {\n this.localHistoryToDate = currentHistory.filter(\n (item: any) => item.ActionType !== 'TaskReAssignment',\n );\n this.cdr.markForCheck();\n }\n\n const currentActions =\n this.nextActions && this.nextActions.length > 0\n ? this.nextActions\n : this.task?.NextActions || [];\n const actionsChanges = this.actionsDiffer.diff(currentActions);\n if (actionsChanges) {\n this.localNextActions = [...currentActions].sort(\n (a: any, b: any) => (a.Position ?? 0) - (b.Position ?? 0),\n );\n this.selectedAction = null;\n this.cdr.markForCheck();\n }\n }\n */\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['taskCode'] || changes['task']) {\n this.lastTaskCode = this.taskCode || this.task?.Code || null;\n this.resetTransientState();\n this.syncStagesAndActions();\n }\n\n if (changes['historyToDate'] || changes['task']) {\n const incoming =\n this.historyToDate && this.historyToDate.length > 0\n ? this.historyToDate\n : this.task?.HistoryToDate;\n const allHistory = Array.isArray(incoming) ? incoming : [];\n this.localHistoryToDate = allHistory.filter(\n (item) => item.ActionType !== 'TaskReAssignment',\n );\n }\n\n if (changes['nextActions'] || changes['task']) {\n const incoming =\n this.nextActions && this.nextActions.length > 0\n ? this.nextActions\n : this.task?.NextActions;\n const actions = Array.isArray(incoming)\n ? [...(incoming as WorkflowAction[])].sort(\n (a, b) => (a.Position ?? 0) - (b.Position ?? 0),\n )\n : [];\n this.localNextActions = actions;\n this.selectedAction = null;\n }\n\n this.handleDataChanges();\n this.cdr.markForCheck();\n }\n\n resetTransientState(): void {\n this.selectedAction = null;\n this.commentText = '';\n this.pickComment = '';\n this.selectedRecipient = null;\n this.pickRecipient = null;\n this.nextActors = [];\n this.pickActors = [];\n this.isRichEditor = false;\n this.isPickRichEditor = false;\n this.closePopUp();\n this.closePopUp2();\n this.closePopUp3();\n this.closePopUp4();\n }\n\n private syncStagesAndActions() {\n const incomingHistory =\n this.historyToDate && this.historyToDate.length > 0\n ? this.historyToDate\n : this.task?.HistoryToDate;\n const allHistory = Array.isArray(incomingHistory) ? incomingHistory : [];\n this.localHistoryToDate = allHistory.filter(\n (item) => item.ActionType !== 'TaskReAssignment',\n );\n\n const incomingActions =\n this.nextActions && this.nextActions.length > 0\n ? this.nextActions\n : this.task?.NextActions;\n const actions = Array.isArray(incomingActions)\n ? [...(incomingActions as WorkflowAction[])].sort(\n (a, b) => (a.Position ?? 0) - (b.Position ?? 0),\n )\n : [];\n this.localNextActions = actions;\n }\n\n getActionCaption(action: any): string {\n if (!action) return '';\n return (\n action.Caption ||\n action.caption ||\n action.Name ||\n action.name ||\n action.ToStageName ||\n action.toStageName ||\n ''\n );\n }\n\n getStageName(stage: any): string {\n if (!stage) return '';\n return (\n stage.ToStageName ||\n stage.toStageName ||\n stage.StageName ||\n stage.stageName ||\n stage.Caption ||\n stage.caption ||\n stage.Name ||\n stage.name ||\n ''\n );\n }\n\n trackByStage(index: number, stage: any): any {\n return stage?.Id || stage?.ToStage || stage?.CreatedAt || index;\n }\n\n trackByAction(index: number, action: any): any {\n return (\n action?.Id || action?.ToStage || action?.Name || action?.Caption || index\n );\n }\n\n submitForm(groupIndex: number): void {\n const formEntity = {\n ...this.forms[groupIndex],\n DataState: ObjectState.Changed,\n };\n this.onFormCompleted.emit(formEntity);\n // this.isVisible = false;\n }\n\n areRequiredPropertiesFilled(properties: any[] = []): boolean {\n if (!properties.length) return true;\n\n return properties.every((prop) => {\n if (prop.IsRequired !== true) return true;\n return prop.Value && prop.Value.trim().length > 0;\n });\n }\n\n openCommentFor(action: any, event?: Event) {\n if (event) {\n event.stopPropagation();\n }\n this.closePopUp();\n this.closePopUp4();\n this.selectedAction = action;\n // console.log(this.selectedAction, 'kk');\n\n this.commentText = '';\n this.isRichEditor = false;\n this.selectedRecipient = null;\n this.nextActors = [];\n this.copy = [];\n this.loadNextActors(action?.ToStage);\n this.popUp2s?.forEach((popUp) => {\n if (!popUp.dropdownOpen) {\n popUp.toggleDropdown();\n }\n });\n }\n\n setEditorMode(rich: boolean) {\n if (this.isRichEditor === rich) return;\n this.isRichEditor = rich;\n this.commentText = '';\n }\n\n isCommentValid(): boolean {\n if (!this.commentText) return false;\n const stripped = this.commentText\n .replace(/<[^>]*>/g, '')\n .replace(/ /g, ' ')\n .trim();\n if (\n this.commentText.includes('<table') ||\n this.commentText.includes('<img')\n ) {\n return true;\n }\n return stripped.length > 0;\n }\n\n async loadNextActors(stageCode: string | undefined) {\n if (!this.taskCode || !stageCode) {\n this.nextActors = [];\n return;\n }\n this.utilService.sendBI(true);\n const res = await this.server.get(\n `GetNextActors/${this.taskCode}/false/${stageCode}`,\n );\n this.utilService.sendBI(false);\n if (res instanceof ErrorResponse) {\n this.nextActors = [];\n return;\n }\n this.nextActors = (res as Actor[]) || [];\n const userEmail = this.user;\n this.selectedRecipient =\n userEmail && this.nextActors.some((a) => a.Identifier === userEmail)\n ? userEmail\n : null;\n }\n\n handleDataChanges() {\n // console.log('Data updated!', {\n // history: this.localHistoryToDate,\n // actions: this.localNextActions,\n // taskForms: this.taskForms,\n // });\n }\n\n closePopUp() {\n this.popUps?.forEach((popUp) => {\n if (popUp.dropdownOpen) {\n popUp.toggleDropdown();\n }\n });\n }\n closePopUp2() {\n this.popUp2s?.forEach((popUp) => {\n if (popUp.dropdownOpen) {\n popUp.toggleDropdown();\n }\n });\n }\n completeAction(action: any) {\n this.onActionCompleted.emit({\n action: action,\n comment: this.commentText,\n recipient: this.selectedRecipient || '',\n });\n this.closePopUp2();\n }\n onModalOpen(event: any) {\n this.onOpen.emit(event);\n }\n\n onModalClose(event: any) {\n this.onClose.emit(event);\n }\n disableNotActor(): boolean {\n const userEmail = this.user;\n if (!userEmail) return true;\n const actors =\n this.currentActors && this.currentActors.length > 0\n ? this.currentActors\n : this.task?.CurrentActors || [];\n return !actors.some((actor) => actor.Identifier === userEmail);\n }\n\n canPick(): boolean {\n return !!this.task?.CanPickTask;\n }\n\n /**\n * A task already sitting on someone's desk is taken over via re-assignment;\n * one with no current actors is unclaimed and gets picked.\n */\n isReassign(): boolean {\n const actors =\n this.currentActors && this.currentActors.length > 0\n ? this.currentActors\n : this.task?.CurrentActors || [];\n return actors.length > 0;\n }\n\n openPickPopup(event?: Event) {\n if (event) {\n event.stopPropagation();\n }\n this.closePopUp();\n this.closePopUp2();\n this.pickComment = '';\n this.isPickRichEditor = false;\n this.selectedStageCode =\n this.task?.CurrentStages?.[0] ??\n this.localHistoryToDate[this.localHistoryToDate.length - 1]?.ToStage ??\n null;\n\n const email = this.user;\n this.pickActors = email\n ? [{ Identifier: email, Name: this.userName || email }]\n : [];\n this.pickRecipient = email ?? null;\n\n this.popUp4s?.forEach((popUp) => {\n if (!popUp.dropdownOpen) {\n popUp.toggleDropdown();\n }\n });\n }\n\n setPickEditorMode(rich: boolean) {\n if (this.isPickRichEditor === rich) return;\n this.isPickRichEditor = rich;\n this.pickComment = '';\n }\n\n isPickCommentValid(): boolean {\n if (!this.pickComment) return false;\n const stripped = this.pickComment\n .replace(/<[^>]*>/g, '')\n .replace(/ /g, ' ')\n .trim();\n if (\n this.pickComment.includes('<table') ||\n this.pickComment.includes('<img')\n ) {\n return true;\n }\n return stripped.length > 0;\n }\n\n async submitPick() {\n if (!this.task || !this.isPickCommentValid() || !this.pickRecipient) {\n return;\n }\n const res = this.isReassign()\n ? await this.reassignTask()\n : await this.pickTask();\n\n if (res === null || res instanceof ErrorResponse) {\n return;\n }\n\n this.utilService.showSuccess(\n this.isReassign()\n ? 'Task reassigned successfully'\n : 'Task picked successfully',\n );\n this.onPickCompleted.emit(res);\n this.closePopUp4();\n }\n\n private async pickTask(): Promise<any> {\n if (!this.selectedStageCode) {\n return null;\n }\n\n this.utilService.sendBI(true);\n const res = await this.server.post(\n `PickTaskWithCode/${this.task!.Code}/${encodeURIComponent(this.pickComment)}/${\n this.selectedStageCode\n }/${this.pickRecipient}`,\n {},\n );\n this.utilService.sendBI(false);\n\n if (res instanceof ErrorResponse) {\n this.utilService.showError(res.ErrorMsg);\n }\n return res;\n }\n\n private async reassignTask(): Promise<any> {\n const task = this.task!;\n const fromUser = task.CurrentActors?.[0]?.Identifier;\n if (!fromUser) {\n return null;\n }\n\n const payload: Task = {\n ...task,\n DataState: ObjectState.Changed,\n HistoryToDate: [],\n CurrentActors: (task.CurrentActors || []).map((it: any) => ({\n ...it,\n ActorTags: [],\n })),\n Copy: (task.Copy || []).map((it: any) => ({\n ...it,\n ActorTags: [],\n })),\n FullStages: [],\n };\n\n this.utilService.sendBI(true);\n const res = await this.server.post(\n `Reassign/${encodeURIComponent(this.pickComment)}/${this.pickRecipient}/${fromUser}`,\n payload,\n );\n this.utilService.sendBI(false);\n\n if (res instanceof ErrorResponse) {\n this.utilService.showError(res.ErrorMsg);\n }\n return res;\n }\n\n closePopUp4() {\n this.popUp4s?.forEach((popUp) => {\n if (popUp.dropdownOpen) {\n popUp.toggleDropdown();\n }\n });\n }\n\n async loadFormIfExists(stage: string | undefined) {\n if (!this.taskCode || !stage) {\n return;\n }\n this.utilService.sendBI(true);\n const res = await this.server.get(\n `GetCurrentFormsForTask/${this.taskCode}/${stage}`,\n );\n this.utilService.sendBI(false);\n if (res instanceof ErrorResponse) {\n this.utilService.showInfo('Could not load form for selected stage');\n return;\n } else {\n var result = res as Form[];\n if (result.length > 0) {\n this.activeForm = result[0];\n this.closePopUp3();\n this.isFormViewerVisible = true;\n }\n }\n }\n\n onFormViewerOpen() {}\n\n onFormViewerClose() {\n this.isFormViewerVisible = false;\n this.activeForm = null;\n }\n\n closePopUp3() {\n this.popUp3s?.forEach((popUp) => {\n if (popUp.dropdownOpen) {\n popUp.toggleDropdown();\n }\n });\n }\n\n async getActors(): Promise<Actor[] | undefined> {\n this.utilService.sendBI(true);\n const res = await this.server.get(\n `GetActors/0/${this.pageSize}/CreatedAt/${SortDirection.Desc}`,\n );\n this.utilService.sendBI(false);\n if (res instanceof ErrorResponse) {\n return undefined;\n } else {\n var result = (res as PagedResult<Actor>).Result;\n return result;\n }\n }\n\n async loadMoreActors(event: DropdownLoadEvent): Promise<Actor[]> {\n const res = await this.server.get(\n `GetActors/${event.loadTimes * this.pageSize}/${this.pageSize}/CreatedAt/${SortDirection.Desc}`,\n );\n if (res instanceof ErrorResponse) {\n return [];\n } else {\n var result = (res as PagedResult<Actor>).Result;\n return result;\n }\n }\n async searchActors(data: string, event: DropdownLoadEvent): Promise<Actor[]> {\n const res = await this.server.get(\n `GetActorsWithParam/${data}/${\n event.loadTimes * this.pageSize\n }/${this.pageSize}`,\n );\n if (res instanceof ErrorResponse) {\n return [];\n } else {\n var result = (res as PagedResult<Actor>).Result;\n return result;\n }\n }\n\n async getAsyncLabel(value: any): Promise<string> {\n return value ? value.Name : '';\n }\n\n onCopyChanged(event: DropdownChangeEvent) {\n if (!this.task) {\n return;\n }\n const actors = event.value as Actor[];\n // console.log({ CopyActors: actors });\n this.task.Copy = actors;\n }\n\n @HostListener('window:scroll')\n onWindowScroll() {\n if (this.hoveredStage) {\n this.hoveredStage = null;\n }\n }\n\n onStageMouseEnter(stage: any, event: MouseEvent) {\n if (!stage?.Actor?.Identifier && !stage?.Actor?.Name) {\n return;\n }\n const target = event.currentTarget as HTMLElement;\n if (!target) return;\n\n const rect = target.getBoundingClientRect();\n const gap = 6;\n const availableSpaceAbove = rect.top;\n const availableSpaceBelow = window.innerHeight - rect.bottom;\n\n // Prioritize above if there is space (>= 36px)\n const showAbove = availableSpaceAbove >= 36 || availableSpaceAbove > availableSpaceBelow;\n\n let top: number;\n let transform: string;\n\n if (showAbove) {\n top = rect.top - gap;\n transform = 'translate(-50%, -100%)';\n } else {\n top = rect.bottom + gap;\n transform = 'translate(-50%, 0)';\n }\n\n const centerX = rect.left + rect.width / 2;\n const minLeft = 110;\n const maxLeft = Math.max(minLeft, window.innerWidth - 110);\n const left = Math.min(Math.max(centerX, minLeft), maxLeft);\n\n this.stageTooltipPos = {\n top,\n left,\n transform,\n showAbove,\n };\n this.hoveredStage = stage;\n }\n\n onStageMouseLeave() {\n this.hoveredStage = null;\n }\n\n onStageClick() {\n this.hoveredStage = null;\n }\n\n getTagsFromActor(actor: any): string {\n if (!actor) return '';\n if (actor.Tags && Array.isArray(actor.Tags) && actor.Tags.length > 0) {\n return actor.Tags.map((t: any) => t.Name || t).filter(Boolean).join(', ');\n }\n if (actor.ActorTags && Array.isArray(actor.ActorTags) && actor.ActorTags.length > 0) {\n return actor.ActorTags.map((t: any) => t.Name || t).filter(Boolean).join(', ');\n }\n return '';\n }\n}\n","<div\n (scroll)=\"onStageMouseLeave()\"\n class=\"flex overflow-x-auto items-start min-h-max overflow-y-clip pt-3 pb-3 px-1\"\n>\n <div\n *ngFor=\"\n let stage of localHistoryToDate;\n trackBy: trackByStage;\n let i = index\n \"\n >\n <div class=\"flex items-center\">\n <!-- Stage circle with hover actor tooltip and click stage form popup -->\n <div\n class=\"w-[30px] h-[30px] flex cursor-pointer justify-center items-center rounded-full bg-primary text-white shadow-xs hover:ring-2 hover:ring-primary/30 transition-all duration-150\"\n (mouseenter)=\"onStageMouseEnter(stage, $event)\"\n (mouseleave)=\"onStageMouseLeave()\"\n >\n <!-- In task mode: Stage Form popup on click -->\n <ng-container *ngIf=\"taskCode; else plainStageCircle\">\n <verben-pop-Up\n #popup3\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n [cdkPosition]=\"popupPositions\"\n >\n <div\n dropdown-trigger\n (click)=\"onStageClick()\"\n class=\"flex items-center justify-center w-full h-full\"\n >\n <!-- Clean modern checkmark -->\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"3\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"20 6 9 17 4 12\"></polyline>\n </svg>\n </div>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div\n (click)=\"loadFormIfExists(stage.ToStage)\"\n class=\"pop-up-value cursor-pointer\"\n >\n Load Stage Form\n </div>\n </div>\n </verben-pop-Up>\n </ng-container>\n\n <!-- Plain checkmark when not in task mode -->\n <ng-template #plainStageCircle>\n <div class=\"flex items-center justify-center w-full h-full\">\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"3\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"20 6 9 17 4 12\"></polyline>\n </svg>\n </div>\n </ng-template>\n </div>\n\n <ng-container\n *ngIf=\"\n localHistoryToDate[i + 1] ||\n (i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n !readOnly)\n \"\n >\n <div\n class=\"border-primary border-b-2 w-[50px] relative px-2 text-xs text-primary font-medium\"\n ></div>\n </ng-container>\n <div\n *ngIf=\"\n i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n !readOnly\n \"\n class=\"relative inline-flex\"\n >\n <verben-pop-Up\n #popup2\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n [cdkPosition]=\"passOnPositions\"\n >\n <div dropdown-trigger class=\"inline-flex\">\n <p\n (click)=\"\n openCommentFor(selectedAction || localNextActions[0], $event)\n \"\n [ngClass]=\"{\n 'cursor-not-allowed opacity-50 pointer-events-none':\n disableNotActor(),\n 'cursor-pointer': !disableNotActor(),\n }\"\n class=\"text-center min-w-max rounded-md h-[30px] text-[white] text-sm flex justify-center items-center py-1 max-w-fit px-2 bg-primary\"\n >\n {{\n selectedAction?.Name ||\n selectedAction?.ToStageName ||\n localNextActions[0]?.Name ||\n localNextActions[0]?.ToStageName\n }}\n </p>\n </div>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div\n class=\"p-4 transition-all duration-200\"\n [style.width]=\"isRichEditor ? '580px' : '420px'\"\n >\n <!-- Coherent Header -->\n <div\n class=\"flex items-center justify-between pb-3 mb-3 border-b border-gray-200\"\n >\n <div class=\"flex items-center gap-2\">\n <span\n class=\"w-2 h-2 rounded-full bg-primary inline-block\"\n ></span>\n <h3\n class=\"text-sm font-semibold text-gray-800 tracking-tight\"\n >\n {{ getActionCaption(selectedAction) || \"Add Comment\" }}\n </h3>\n </div>\n <button\n type=\"button\"\n (click)=\"closePopUp2()\"\n class=\"text-gray-400 hover:text-gray-600 transition-colors p-1 rounded-md hover:bg-gray-100 cursor-pointer\"\n title=\"Close\"\n >\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line>\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>\n </svg>\n </button>\n </div>\n\n <div class=\"flex flex-col gap-3\">\n <!-- Send To -->\n <div\n class=\"flex flex-col gap-1.5\"\n *ngIf=\"taskCode && nextActors.length > 0\"\n >\n <div class=\"flex items-center justify-between\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase\"\n >\n Send To\n </label>\n <span class=\"text-[11px] text-gray-400\">Optional</span>\n </div>\n <verben-drop-down\n width=\"100%\"\n label=\"Send to (optional)\"\n [options]=\"nextActors\"\n optionLabel=\"Name\"\n optionValue=\"Identifier\"\n [(ngModel)]=\"selectedRecipient\"\n [showClear]=\"true\"\n ></verben-drop-down>\n </div>\n\n <!-- Copy -->\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"flex items-center justify-between\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase\"\n >\n Copy\n </label>\n <span class=\"text-[11px] text-gray-400\">Notify actors</span>\n </div>\n <verben-drop-down\n selectKey=\"Code\"\n display=\"chip\"\n width=\"100%\"\n placeholder=\"Select Actors\"\n [showClear]=\"true\"\n [filter]=\"true\"\n (onChange)=\"onCopyChanged($event)\"\n [load]=\"this.loadMoreActors.bind(this)\"\n [search]=\"this.searchActors.bind(this)\"\n [(options)]=\"actors\"\n optionLabel=\"Name\"\n [multiselect]=\"true\"\n [(ngModel)]=\"copy\"\n [lazyLoad]=\"true\"\n [asyncLabel]=\"this.getAsyncLabel.bind(this)\"\n >\n </verben-drop-down>\n </div>\n\n <!-- Comment with Mode Switcher -->\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"flex items-center justify-between mb-0.5\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase flex items-center gap-1\"\n >\n <span>Comment</span>\n <span class=\"text-red-500\">*</span>\n </label>\n\n <!-- Mode Switch Pill -->\n <div\n class=\"inline-flex items-center bg-gray-100 p-0.5 rounded-md border border-gray-200\"\n >\n <button\n type=\"button\"\n (click)=\"setEditorMode(false)\"\n [ngClass]=\"\n !isRichEditor\n ? 'bg-white text-gray-800 shadow-xs font-medium'\n : 'text-gray-500 hover:text-gray-700'\n \"\n class=\"px-2 py-0.5 text-xs rounded transition-all cursor-pointer flex items-center gap-1\"\n title=\"Simple textarea\"\n >\n <span>Simple</span>\n </button>\n <button\n type=\"button\"\n (click)=\"setEditorMode(true)\"\n [ngClass]=\"\n isRichEditor\n ? 'bg-white text-gray-800 shadow-xs font-medium'\n : 'text-gray-500 hover:text-gray-700'\n \"\n class=\"px-2 py-0.5 text-xs rounded transition-all cursor-pointer flex items-center gap-1\"\n title=\"Rich text editor with formatting & tables\"\n >\n <svg\n width=\"11\"\n height=\"11\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M4 7V4h16v3M9 20h6M12 4v16\" />\n </svg>\n <span>Rich / Tables</span>\n </button>\n </div>\n </div>\n\n <!-- Simple Textarea Mode -->\n <div *ngIf=\"!isRichEditor\" class=\"w-full\">\n <verbena-textarea\n [(ngModel)]=\"commentText\"\n [rows]=\"4\"\n width=\"100%\"\n border=\"1px solid #cbd5e1\"\n borderRadius=\"6px\"\n ></verbena-textarea>\n </div>\n\n <!-- Rich Reporting Editor Mode -->\n <div\n *ngIf=\"isRichEditor\"\n class=\"workflow-comment-editor w-full\"\n >\n <lib-editor\n [editorConfig]=\"editorConfig\"\n [editorMode]=\"editorMode\"\n [(ngModel)]=\"commentText\"\n ></lib-editor>\n </div>\n </div>\n </div>\n\n <!-- Action Buttons -->\n <div class=\"flex justify-end gap-3 mt-4 pt-2\">\n <verbena-button\n (click)=\"closePopUp2()\"\n text=\"Cancel\"\n ></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n text=\"OK\"\n (click)=\"completeAction(selectedAction)\"\n [disable]=\"!isCommentValid()\"\n ></verbena-button>\n </div>\n </div>\n </div>\n </verben-pop-Up>\n\n <div *ngIf=\"canPick()\" class=\"absolute -top-2 -right-2 z-10\">\n <verben-pop-Up\n #popup4\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n [cdkPosition]=\"reassignPositions\"\n >\n <div\n dropdown-trigger\n (click)=\"openPickPopup($event)\"\n [title]=\"\n isReassign()\n ? 'Reassign task to yourself to act on this stage'\n : 'Pick task to act on this stage'\n \"\n class=\"w-[18px] h-[18px] rounded-full bg-[#FFE681] ring-2 ring-white shadow flex items-center justify-center cursor-pointer\"\n >\n <verben-svg\n icon=\"user\"\n fill=\"#404040\"\n [width]=\"12\"\n [height]=\"12\"\n ></verben-svg>\n </div>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div\n class=\"p-4 transition-all duration-200\"\n [style.width]=\"isPickRichEditor ? '580px' : '420px'\"\n >\n <!-- Coherent Header -->\n <div\n class=\"flex items-center justify-between pb-3 mb-3 border-b border-gray-200\"\n >\n <div class=\"flex items-center gap-2\">\n <span\n class=\"w-2 h-2 rounded-full bg-primary inline-block\"\n ></span>\n <h3\n class=\"text-sm font-semibold text-gray-800 tracking-tight\"\n >\n {{ isReassign() ? \"Reassign Task\" : \"Pick Task\" }}\n </h3>\n </div>\n <button\n type=\"button\"\n (click)=\"closePopUp4()\"\n class=\"text-gray-400 hover:text-gray-600 transition-colors p-1 rounded-md hover:bg-gray-100 cursor-pointer\"\n title=\"Close\"\n >\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line>\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>\n </svg>\n </button>\n </div>\n\n <div class=\"flex flex-col gap-3\">\n <!-- Stage (if not reassign) -->\n <div class=\"flex flex-col gap-1.5\" *ngIf=\"!isReassign()\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase flex items-center gap-1\"\n >\n <span>Stage</span>\n <span class=\"text-red-500\">*</span>\n </label>\n <verben-drop-down\n width=\"100%\"\n label=\"Stage\"\n [options]=\"task?.FullStages || []\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n [(ngModel)]=\"selectedStageCode\"\n [showClear]=\"true\"\n ></verben-drop-down>\n </div>\n\n <!-- Assign To -->\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"flex items-center justify-between\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase\"\n >\n Assign to\n </label>\n <span class=\"text-[11px] text-gray-400\"\n >Current Actor</span\n >\n </div>\n <verben-drop-down\n width=\"100%\"\n label=\"Assign to\"\n [options]=\"pickActors\"\n optionLabel=\"Name\"\n optionValue=\"Identifier\"\n [(ngModel)]=\"pickRecipient\"\n [disabled]=\"true\"\n ></verben-drop-down>\n </div>\n\n <!-- Comment with Mode Switcher -->\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"flex items-center justify-between mb-0.5\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase flex items-center gap-1\"\n >\n <span>Comment</span>\n <span class=\"text-red-500\">*</span>\n </label>\n\n <!-- Mode Switch Pill -->\n <div\n class=\"inline-flex items-center bg-gray-100 p-0.5 rounded-md border border-gray-200\"\n >\n <button\n type=\"button\"\n (click)=\"setPickEditorMode(false)\"\n [ngClass]=\"\n !isPickRichEditor\n ? 'bg-white text-gray-800 shadow-xs font-medium'\n : 'text-gray-500 hover:text-gray-700'\n \"\n class=\"px-2 py-0.5 text-xs rounded transition-all cursor-pointer flex items-center gap-1\"\n title=\"Simple textarea\"\n >\n <span>Simple</span>\n </button>\n <button\n type=\"button\"\n (click)=\"setPickEditorMode(true)\"\n [ngClass]=\"\n isPickRichEditor\n ? 'bg-white text-gray-800 shadow-xs font-medium'\n : 'text-gray-500 hover:text-gray-700'\n \"\n class=\"px-2 py-0.5 text-xs rounded transition-all cursor-pointer flex items-center gap-1\"\n title=\"Rich text editor with formatting & tables\"\n >\n <svg\n width=\"11\"\n height=\"11\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M4 7V4h16v3M9 20h6M12 4v16\" />\n </svg>\n <span>Rich / Tables</span>\n </button>\n </div>\n </div>\n\n <!-- Simple Textarea Mode -->\n <div *ngIf=\"!isPickRichEditor\" class=\"w-full\">\n <verbena-textarea\n [(ngModel)]=\"pickComment\"\n [rows]=\"4\"\n width=\"100%\"\n border=\"1px solid #cbd5e1\"\n borderRadius=\"6px\"\n ></verbena-textarea>\n </div>\n\n <!-- Rich Reporting Editor Mode -->\n <div\n *ngIf=\"isPickRichEditor\"\n class=\"workflow-comment-editor w-full\"\n >\n <lib-editor\n [editorConfig]=\"editorConfig\"\n [editorMode]=\"editorMode\"\n [(ngModel)]=\"pickComment\"\n ></lib-editor>\n </div>\n </div>\n </div>\n\n <!-- Action Buttons -->\n <div class=\"flex justify-end gap-3 mt-4 pt-2\">\n <verbena-button\n (click)=\"closePopUp4()\"\n text=\"Cancel\"\n ></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n text=\"OK\"\n (click)=\"submitPick()\"\n [disable]=\"\n !isPickCommentValid() ||\n !pickRecipient ||\n (!isReassign() && !selectedStageCode)\n \"\n ></verbena-button>\n </div>\n </div>\n </div>\n </verben-pop-Up>\n </div>\n </div>\n\n <ng-container>\n <div\n *ngIf=\"localHistoryToDate[i + 1]?.ActionName\"\n class=\"border-primary border-b-2 w-[50px] relative px-2 text-xs text-primary font-medium\"\n ></div>\n </ng-container>\n\n <ng-container\n *ngIf=\"\n i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n localNextActions.length !== 1 &&\n !readOnly\n \"\n >\n <div>\n <verben-pop-Up\n #popup\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n [cdkPosition]=\"popupPositions\"\n >\n <div dropdown-trigger class=\"flex items-center\">\n <div class=\"w-[20px] h-[2px] bg-[#D4A007]\"></div>\n <div class=\"mt-2\">\n <verben-svg\n class=\"cursor-pointer actions-icon\"\n stroke=\"#D4A007\"\n icon=\"chevron\"\n ></verben-svg>\n </div>\n </div>\n\n <div\n class=\"pop-up-content flex flex-col py-1.5 min-w-[170px]\"\n dropdown-content\n >\n <div\n class=\"px-3 py-1.5 border-b border-gray-100 flex items-center gap-1.5\"\n >\n <span\n class=\"w-1.5 h-1.5 rounded-full bg-primary inline-block\"\n ></span>\n <span\n class=\"text-[11px] font-semibold text-gray-500 uppercase tracking-wider\"\n >Actions</span\n >\n </div>\n <ul class=\"flex flex-col py-1\">\n <li\n *ngFor=\"\n let action of localNextActions;\n trackBy: trackByAction\n \"\n >\n <button\n [disabled]=\"disableNotActor()\"\n class=\"w-full text-left px-3 py-2 text-xs font-medium text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors disabled:cursor-not-allowed disabled:opacity-40 cursor-pointer flex items-center justify-between\"\n (click)=\"openCommentFor(action, $event); closePopUp()\"\n >\n <span>{{\n action.Name || action.ToStageName || \"Unnamed\"\n }}</span>\n </button>\n </li>\n </ul>\n </div>\n </verben-pop-Up>\n </div>\n </ng-container>\n </div>\n <ng-container\n *ngIf=\"\n stage.ToStageName && stage.ToStageName.length > 20;\n else plainStageName\n \"\n >\n <verben-tooltip\n [top]=\"'0px'\"\n [textColor]=\"'#000'\"\n [backgroundColor]=\"'#D3D3D3'\"\n [left]=\"'0'\"\n [tooltipContent]=\"tooltipTemplate2\"\n #tooltip\n >\n <p\n class=\"text-xs min-w-max left-0 text-primary mt-1 font-semibold capitalize\"\n >\n {{ stage.ToStageName | slice: 0 : 20 }}...\n </p>\n </verben-tooltip>\n <ng-template #tooltipTemplate2>\n <div>\n <p class=\"text-xs\">{{ stage.ToStageName }}</p>\n </div>\n </ng-template>\n </ng-container>\n <ng-template #plainStageName>\n <p\n class=\"text-xs min-w-max left-0 text-primary mt-1 font-semibold capitalize\"\n >\n {{ stage.ToStageName || \"\" }}\n </p>\n </ng-template>\n </div>\n</div>\n<verben-dialogue\n [dismissOutsideClick]=\"true\"\n [closeOnEscape]=\"true\"\n [mode]=\"'drawer'\"\n [padding]=\"'0px'\"\n [drawerWidth]=\"'500px'\"\n position=\"right\"\n [disableFooter]=\"false\"\n [isVisible]=\"isVisible\"\n [modalData]=\"taskForms\"\n (openModal)=\"onModalOpen($event)\"\n (closeModal)=\"onModalClose($event)\"\n [headerTemplate]=\"headerTemplate\"\n [bodyTemplate]=\"bodyTemplate\"\n [showCloseIcon]=\"true\"\n>\n</verben-dialogue>\n\n<ng-template #headerTemplate>\n <div class=\"bg-[#FFE681] px-6 py-4 flex justify-between items-center\">\n <h1>{{ forms[0]?.Name }}</h1>\n </div>\n</ng-template>\n\n<ng-template #bodyTemplate>\n <div class=\"p-3\">\n <div *ngIf=\"forms?.[active]?.Entities?.length; else emptyState\">\n <div\n *ngFor=\"let entity of forms[active]?.Entities; let j = index\"\n class=\"mb-6 pb-4\"\n >\n <form-control\n [formProperties]=\"entity?.Properties || []\"\n ></form-control>\n <div class=\"flex gap-3 justify-end mt-4\">\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"submitForm(active)\"\n [disable]=\"!areRequiredPropertiesFilled(entity?.Properties)\"\n text=\"Proceed\"\n ></verbena-button>\n </div>\n </div>\n </div>\n\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n </div>\n</ng-template>\n\n<app-form-viewer\n [form]=\"activeForm\"\n [isVisible]=\"isFormViewerVisible\"\n (onOpen)=\"onFormViewerOpen()\"\n (onClose)=\"onFormViewerClose()\"\n></app-form-viewer>\n\n<!-- Floating Actor Tooltip with Edge Detection -->\n<div\n *ngIf=\"\n hoveredStage && (hoveredStage.Actor?.Identifier || hoveredStage.Actor?.Name)\n \"\n class=\"fixed z-[9999] pointer-events-none transition-opacity duration-150 ease-out\"\n [style.top.px]=\"stageTooltipPos.top\"\n [style.left.px]=\"stageTooltipPos.left\"\n [style.transform]=\"stageTooltipPos.transform\"\n>\n <div\n class=\"bg-gray-800 text-white text-xs rounded-md px-2.5 py-1 shadow-md whitespace-nowrap relative flex items-center gap-1.5\"\n >\n <verben-svg\n [width]=\"12\"\n [height]=\"12\"\n [icon]=\"'user'\"\n stroke=\"#cbd5e1\"\n ></verben-svg>\n <span class=\"font-medium text-[12px]\">{{\n hoveredStage.Actor?.Name || hoveredStage.Actor?.Identifier\n }}</span>\n <!-- <span\n *ngIf=\"\n hoveredStage.Actor?.Name &&\n hoveredStage.Actor?.Identifier &&\n hoveredStage.Actor.Name !== hoveredStage.Actor.Identifier\n \"\n class=\"text-gray-300 text-[11px]\"\n >\n ({{ hoveredStage.Actor.Identifier }})\n </span> -->\n\n <!-- Arrow pointing toward circle -->\n <div\n *ngIf=\"stageTooltipPos.showAbove\"\n class=\"absolute left-1/2 -bottom-[4px] -translate-x-1/2 w-0 h-0 border-x-4 border-x-transparent border-t-[4px] border-t-gray-800\"\n ></div>\n <div\n *ngIf=\"!stageTooltipPos.showAbove\"\n class=\"absolute left-1/2 -top-[4px] -translate-x-1/2 w-0 h-0 border-x-4 border-x-transparent border-b-[4px] border-b-gray-800\"\n ></div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport {\n CardDataViewModule,\n DataExportModule,\n DataTableModule,\n DataViewModule,\n DropDownModule,\n SortTableModule,\n SvgModule,\n TableFilterModule,\n TooltipModule,\n VerbenaButtonModule,\n VerbenaInputModule,\n VerbenaSwitchModule,\n VerbenaTextareaModule,\n VerbenDialogueModule,\n VerbenPopUpModule,\n VisibleColumnModule,\n} from 'verben-ng-ui';\nimport { EditorModule } from 'verben-reporting-ui';\nimport { RouterModule, Routes } from '@angular/router';\nimport { WorkflowStageComponent } from './workflow-stage.component';\nimport { FormControlerModule } from 'verben-workflow-ui/src/lib/components/form-control';\nimport { FormViewerLibModule } from 'verben-workflow-ui/src/lib/components/form-viewer';\n@NgModule({\n declarations: [WorkflowStageComponent],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n DataTableModule,\n SvgModule,\n VerbenPopUpModule,\n DataViewModule,\n VerbenaButtonModule,\n CardDataViewModule,\n DropDownModule,\n VerbenaSwitchModule,\n TableFilterModule,\n VisibleColumnModule,\n SortTableModule,\n DataExportModule,\n TooltipModule,\n VerbenDialogueModule,\n VerbenaInputModule,\n VerbenaTextareaModule,\n EditorModule,\n FormControlerModule,\n FormViewerLibModule,\n ],\n exports: [WorkflowStageComponent],\n})\nexport class WorkFlowStageLibModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA8CM,MAAO,sBAAsB,0BAAyB;AA+JhD,IAAA,WAAA,CAAA;AACA,IAAA,MAAA,CAAA;AACA,IAAA,GAAA,CAAA;AACA,IAAA,OAAA,CAAA;IAjKD,QAAQ,GAAW,EAAE,CAAC;IACtB,aAAa,GAAU,EAAE,CAAC;IAC1B,QAAQ,GAAkB,IAAI,CAAC;IAC/B,KAAK,GAAQ,EAAE,CAAC;IAChB,SAAS,GAAY,KAAK,CAAC;IAC3B,QAAQ,GAAY,KAAK,CAAC;IACnC,MAAM,GAAW,CAAC,CAAC;AACnB,IAAA,QAAQ,GAAa,QAAQ,CAAC,IAAI,CAAC;IACnC,WAAW,GAAW,EAAE,CAAC;IACzB,YAAY,GAAY,KAAK,CAAC;AAC9B,IAAA,UAAU,GAAe,UAAU,CAAC,QAAQ,CAAC;AAC7C,IAAA,YAAY,GAAiB;AAC3B,QAAA,QAAQ,EAAE,IAAI;AACd,QAAA,MAAM,EAAE,OAAO;AACf,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,WAAW,EAAE,IAAI;AACjB,QAAA,SAAS,EAAE,EAAE;KACd,CAAC;IACF,mBAAmB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f,SAAS;wBACT,iBAAiB;wBACjB,cAAc;wBACd,mBAAmB;wBACnB,kBAAkB;wBAClB,cAAc;wBACd,mBAAmB;wBACnB,iBAAiB;wBACjB,mBAAmB;wBACnB,eAAe;wBACf,gBAAgB;wBAChB,aAAa;wBACb,oBAAoB;wBACpB,kBAAkB;wBAClB,qBAAqB;wBACrB,YAAY;wBACZ,mBAAmB;wBACnB,mBAAmB;AACpB,qBAAA;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA,CAAA;;;ACvDD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verben-workflow-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"style": "styles/styles.css",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./styles": {
|
|
@@ -15,36 +15,36 @@
|
|
|
15
15
|
"esm": "./esm2022/verben-workflow-ui.mjs",
|
|
16
16
|
"default": "./fesm2022/verben-workflow-ui.mjs"
|
|
17
17
|
},
|
|
18
|
-
"./src/lib/base": {
|
|
19
|
-
"types": "./src/lib/base/index.d.ts",
|
|
20
|
-
"esm2022": "./esm2022/src/lib/base/verben-workflow-ui-src-lib-base.mjs",
|
|
21
|
-
"esm": "./esm2022/src/lib/base/verben-workflow-ui-src-lib-base.mjs",
|
|
22
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-base.mjs"
|
|
23
|
-
},
|
|
24
18
|
"./src/lib/services": {
|
|
25
19
|
"types": "./src/lib/services/index.d.ts",
|
|
26
20
|
"esm2022": "./esm2022/src/lib/services/verben-workflow-ui-src-lib-services.mjs",
|
|
27
21
|
"esm": "./esm2022/src/lib/services/verben-workflow-ui-src-lib-services.mjs",
|
|
28
22
|
"default": "./fesm2022/verben-workflow-ui-src-lib-services.mjs"
|
|
29
23
|
},
|
|
30
|
-
"./src/lib/pipes": {
|
|
31
|
-
"types": "./src/lib/pipes/index.d.ts",
|
|
32
|
-
"esm2022": "./esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs",
|
|
33
|
-
"esm": "./esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs",
|
|
34
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-pipes.mjs"
|
|
35
|
-
},
|
|
36
24
|
"./src/lib/models": {
|
|
37
25
|
"types": "./src/lib/models/index.d.ts",
|
|
38
26
|
"esm2022": "./esm2022/src/lib/models/verben-workflow-ui-src-lib-models.mjs",
|
|
39
27
|
"esm": "./esm2022/src/lib/models/verben-workflow-ui-src-lib-models.mjs",
|
|
40
28
|
"default": "./fesm2022/verben-workflow-ui-src-lib-models.mjs"
|
|
41
29
|
},
|
|
30
|
+
"./src/lib/pipes": {
|
|
31
|
+
"types": "./src/lib/pipes/index.d.ts",
|
|
32
|
+
"esm2022": "./esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs",
|
|
33
|
+
"esm": "./esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs",
|
|
34
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-pipes.mjs"
|
|
35
|
+
},
|
|
42
36
|
"./src/lib/shared": {
|
|
43
37
|
"types": "./src/lib/shared/index.d.ts",
|
|
44
38
|
"esm2022": "./esm2022/src/lib/shared/verben-workflow-ui-src-lib-shared.mjs",
|
|
45
39
|
"esm": "./esm2022/src/lib/shared/verben-workflow-ui-src-lib-shared.mjs",
|
|
46
40
|
"default": "./fesm2022/verben-workflow-ui-src-lib-shared.mjs"
|
|
47
41
|
},
|
|
42
|
+
"./src/lib/base": {
|
|
43
|
+
"types": "./src/lib/base/index.d.ts",
|
|
44
|
+
"esm2022": "./esm2022/src/lib/base/verben-workflow-ui-src-lib-base.mjs",
|
|
45
|
+
"esm": "./esm2022/src/lib/base/verben-workflow-ui-src-lib-base.mjs",
|
|
46
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-base.mjs"
|
|
47
|
+
},
|
|
48
48
|
"./src/lib/components/actors": {
|
|
49
49
|
"types": "./src/lib/components/actors/index.d.ts",
|
|
50
50
|
"esm2022": "./esm2022/src/lib/components/actors/verben-workflow-ui-src-lib-components-actors.mjs",
|
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
"esm": "./esm2022/src/lib/components/flowable-status/verben-workflow-ui-src-lib-components-flowable-status.mjs",
|
|
82
82
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs"
|
|
83
83
|
},
|
|
84
|
-
"./src/lib/components/form-
|
|
85
|
-
"types": "./src/lib/components/form-
|
|
86
|
-
"esm2022": "./esm2022/src/lib/components/form-
|
|
87
|
-
"esm": "./esm2022/src/lib/components/form-
|
|
88
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-
|
|
84
|
+
"./src/lib/components/form-response": {
|
|
85
|
+
"types": "./src/lib/components/form-response/index.d.ts",
|
|
86
|
+
"esm2022": "./esm2022/src/lib/components/form-response/verben-workflow-ui-src-lib-components-form-response.mjs",
|
|
87
|
+
"esm": "./esm2022/src/lib/components/form-response/verben-workflow-ui-src-lib-components-form-response.mjs",
|
|
88
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs"
|
|
89
89
|
},
|
|
90
90
|
"./src/lib/components/form-group": {
|
|
91
91
|
"types": "./src/lib/components/form-group/index.d.ts",
|
|
@@ -93,11 +93,11 @@
|
|
|
93
93
|
"esm": "./esm2022/src/lib/components/form-group/verben-workflow-ui-src-lib-components-form-group.mjs",
|
|
94
94
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs"
|
|
95
95
|
},
|
|
96
|
-
"./src/lib/components/form-
|
|
97
|
-
"types": "./src/lib/components/form-
|
|
98
|
-
"esm2022": "./esm2022/src/lib/components/form-
|
|
99
|
-
"esm": "./esm2022/src/lib/components/form-
|
|
100
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-
|
|
96
|
+
"./src/lib/components/form-control": {
|
|
97
|
+
"types": "./src/lib/components/form-control/index.d.ts",
|
|
98
|
+
"esm2022": "./esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs",
|
|
99
|
+
"esm": "./esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs",
|
|
100
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs"
|
|
101
101
|
},
|
|
102
102
|
"./src/lib/components/form-values": {
|
|
103
103
|
"types": "./src/lib/components/form-values/index.d.ts",
|
|
@@ -105,18 +105,6 @@
|
|
|
105
105
|
"esm": "./esm2022/src/lib/components/form-values/verben-workflow-ui-src-lib-components-form-values.mjs",
|
|
106
106
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-values.mjs"
|
|
107
107
|
},
|
|
108
|
-
"./src/lib/components/form-timer": {
|
|
109
|
-
"types": "./src/lib/components/form-timer/index.d.ts",
|
|
110
|
-
"esm2022": "./esm2022/src/lib/components/form-timer/verben-workflow-ui-src-lib-components-form-timer.mjs",
|
|
111
|
-
"esm": "./esm2022/src/lib/components/form-timer/verben-workflow-ui-src-lib-components-form-timer.mjs",
|
|
112
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs"
|
|
113
|
-
},
|
|
114
|
-
"./src/lib/components/forms": {
|
|
115
|
-
"types": "./src/lib/components/forms/index.d.ts",
|
|
116
|
-
"esm2022": "./esm2022/src/lib/components/forms/verben-workflow-ui-src-lib-components-forms.mjs",
|
|
117
|
-
"esm": "./esm2022/src/lib/components/forms/verben-workflow-ui-src-lib-components-forms.mjs",
|
|
118
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-forms.mjs"
|
|
119
|
-
},
|
|
120
108
|
"./src/lib/components/form-viewer": {
|
|
121
109
|
"types": "./src/lib/components/form-viewer/index.d.ts",
|
|
122
110
|
"esm2022": "./esm2022/src/lib/components/form-viewer/verben-workflow-ui-src-lib-components-form-viewer.mjs",
|
|
@@ -129,35 +117,47 @@
|
|
|
129
117
|
"esm": "./esm2022/src/lib/components/my-queue/verben-workflow-ui-src-lib-components-my-queue.mjs",
|
|
130
118
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs"
|
|
131
119
|
},
|
|
120
|
+
"./src/lib/components/journal": {
|
|
121
|
+
"types": "./src/lib/components/journal/index.d.ts",
|
|
122
|
+
"esm2022": "./esm2022/src/lib/components/journal/verben-workflow-ui-src-lib-components-journal.mjs",
|
|
123
|
+
"esm": "./esm2022/src/lib/components/journal/verben-workflow-ui-src-lib-components-journal.mjs",
|
|
124
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-journal.mjs"
|
|
125
|
+
},
|
|
126
|
+
"./src/lib/components/forms": {
|
|
127
|
+
"types": "./src/lib/components/forms/index.d.ts",
|
|
128
|
+
"esm2022": "./esm2022/src/lib/components/forms/verben-workflow-ui-src-lib-components-forms.mjs",
|
|
129
|
+
"esm": "./esm2022/src/lib/components/forms/verben-workflow-ui-src-lib-components-forms.mjs",
|
|
130
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-forms.mjs"
|
|
131
|
+
},
|
|
132
132
|
"./src/lib/components/operation-popup": {
|
|
133
133
|
"types": "./src/lib/components/operation-popup/index.d.ts",
|
|
134
134
|
"esm2022": "./esm2022/src/lib/components/operation-popup/verben-workflow-ui-src-lib-components-operation-popup.mjs",
|
|
135
135
|
"esm": "./esm2022/src/lib/components/operation-popup/verben-workflow-ui-src-lib-components-operation-popup.mjs",
|
|
136
136
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs"
|
|
137
137
|
},
|
|
138
|
+
"./src/lib/components/form-timer": {
|
|
139
|
+
"types": "./src/lib/components/form-timer/index.d.ts",
|
|
140
|
+
"esm2022": "./esm2022/src/lib/components/form-timer/verben-workflow-ui-src-lib-components-form-timer.mjs",
|
|
141
|
+
"esm": "./esm2022/src/lib/components/form-timer/verben-workflow-ui-src-lib-components-form-timer.mjs",
|
|
142
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs"
|
|
143
|
+
},
|
|
138
144
|
"./src/lib/components/stage-details": {
|
|
139
145
|
"types": "./src/lib/components/stage-details/index.d.ts",
|
|
140
146
|
"esm2022": "./esm2022/src/lib/components/stage-details/verben-workflow-ui-src-lib-components-stage-details.mjs",
|
|
141
147
|
"esm": "./esm2022/src/lib/components/stage-details/verben-workflow-ui-src-lib-components-stage-details.mjs",
|
|
142
148
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs"
|
|
143
149
|
},
|
|
144
|
-
"./src/lib/components/task-form": {
|
|
145
|
-
"types": "./src/lib/components/task-form/index.d.ts",
|
|
146
|
-
"esm2022": "./esm2022/src/lib/components/task-form/verben-workflow-ui-src-lib-components-task-form.mjs",
|
|
147
|
-
"esm": "./esm2022/src/lib/components/task-form/verben-workflow-ui-src-lib-components-task-form.mjs",
|
|
148
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs"
|
|
149
|
-
},
|
|
150
150
|
"./src/lib/components/task-history": {
|
|
151
151
|
"types": "./src/lib/components/task-history/index.d.ts",
|
|
152
152
|
"esm2022": "./esm2022/src/lib/components/task-history/verben-workflow-ui-src-lib-components-task-history.mjs",
|
|
153
153
|
"esm": "./esm2022/src/lib/components/task-history/verben-workflow-ui-src-lib-components-task-history.mjs",
|
|
154
154
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs"
|
|
155
155
|
},
|
|
156
|
-
"./src/lib/components/
|
|
157
|
-
"types": "./src/lib/components/
|
|
158
|
-
"esm2022": "./esm2022/src/lib/components/
|
|
159
|
-
"esm": "./esm2022/src/lib/components/
|
|
160
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-
|
|
156
|
+
"./src/lib/components/task-form": {
|
|
157
|
+
"types": "./src/lib/components/task-form/index.d.ts",
|
|
158
|
+
"esm2022": "./esm2022/src/lib/components/task-form/verben-workflow-ui-src-lib-components-task-form.mjs",
|
|
159
|
+
"esm": "./esm2022/src/lib/components/task-form/verben-workflow-ui-src-lib-components-task-form.mjs",
|
|
160
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs"
|
|
161
161
|
},
|
|
162
162
|
"./src/lib/components/task-notification": {
|
|
163
163
|
"types": "./src/lib/components/task-notification/index.d.ts",
|
|
@@ -165,17 +165,11 @@
|
|
|
165
165
|
"esm": "./esm2022/src/lib/components/task-notification/verben-workflow-ui-src-lib-components-task-notification.mjs",
|
|
166
166
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs"
|
|
167
167
|
},
|
|
168
|
-
"./src/lib/components/
|
|
169
|
-
"types": "./src/lib/components/
|
|
170
|
-
"esm2022": "./esm2022/src/lib/components/
|
|
171
|
-
"esm": "./esm2022/src/lib/components/
|
|
172
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-
|
|
173
|
-
},
|
|
174
|
-
"./src/lib/components/workflow": {
|
|
175
|
-
"types": "./src/lib/components/workflow/index.d.ts",
|
|
176
|
-
"esm2022": "./esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs",
|
|
177
|
-
"esm": "./esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs",
|
|
178
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs"
|
|
168
|
+
"./src/lib/components/tasks": {
|
|
169
|
+
"types": "./src/lib/components/tasks/index.d.ts",
|
|
170
|
+
"esm2022": "./esm2022/src/lib/components/tasks/verben-workflow-ui-src-lib-components-tasks.mjs",
|
|
171
|
+
"esm": "./esm2022/src/lib/components/tasks/verben-workflow-ui-src-lib-components-tasks.mjs",
|
|
172
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs"
|
|
179
173
|
},
|
|
180
174
|
"./src/lib/components/wf": {
|
|
181
175
|
"types": "./src/lib/components/wf/index.d.ts",
|
|
@@ -183,11 +177,17 @@
|
|
|
183
177
|
"esm": "./esm2022/src/lib/components/wf/verben-workflow-ui-src-lib-components-wf.mjs",
|
|
184
178
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-wf.mjs"
|
|
185
179
|
},
|
|
186
|
-
"./src/lib/components/
|
|
187
|
-
"types": "./src/lib/components/
|
|
188
|
-
"esm2022": "./esm2022/src/lib/components/
|
|
189
|
-
"esm": "./esm2022/src/lib/components/
|
|
190
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-
|
|
180
|
+
"./src/lib/components/workflow": {
|
|
181
|
+
"types": "./src/lib/components/workflow/index.d.ts",
|
|
182
|
+
"esm2022": "./esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs",
|
|
183
|
+
"esm": "./esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs",
|
|
184
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs"
|
|
185
|
+
},
|
|
186
|
+
"./src/lib/components/workflow-stage": {
|
|
187
|
+
"types": "./src/lib/components/workflow-stage/index.d.ts",
|
|
188
|
+
"esm2022": "./esm2022/src/lib/components/workflow-stage/verben-workflow-ui-src-lib-components-workflow-stage.mjs",
|
|
189
|
+
"esm": "./esm2022/src/lib/components/workflow-stage/verben-workflow-ui-src-lib-components-workflow-stage.mjs",
|
|
190
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs"
|
|
191
191
|
},
|
|
192
192
|
"./src/lib/components/workflow-designer": {
|
|
193
193
|
"types": "./src/lib/components/workflow-designer/index.d.ts",
|
|
@@ -195,18 +195,18 @@
|
|
|
195
195
|
"esm": "./esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs",
|
|
196
196
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs"
|
|
197
197
|
},
|
|
198
|
-
"./src/lib/components/
|
|
199
|
-
"types": "./src/lib/components/
|
|
200
|
-
"esm2022": "./esm2022/src/lib/components/
|
|
201
|
-
"esm": "./esm2022/src/lib/components/
|
|
202
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-
|
|
198
|
+
"./src/lib/components/workflows": {
|
|
199
|
+
"types": "./src/lib/components/workflows/index.d.ts",
|
|
200
|
+
"esm2022": "./esm2022/src/lib/components/workflows/verben-workflow-ui-src-lib-components-workflows.mjs",
|
|
201
|
+
"esm": "./esm2022/src/lib/components/workflows/verben-workflow-ui-src-lib-components-workflows.mjs",
|
|
202
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs"
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
205
|
"peerDependencies": {
|
|
206
206
|
"@angular/common": "^14.0.0 || ^18.0.0",
|
|
207
207
|
"@angular/core": "^14.0.0 || ^18.0.0",
|
|
208
208
|
"verben-ng-ui": "^1.3.6",
|
|
209
|
-
"verben-reporting-ui": "^0.2.
|
|
209
|
+
"verben-reporting-ui": "^0.2.6",
|
|
210
210
|
"tailwindcss": "^3.4.13"
|
|
211
211
|
},
|
|
212
212
|
"dependencies": {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Location } from '@angular/common';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
3
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
4
|
+
import { EditorConfig, EditorMode } from 'verben-reporting-ui';
|
|
3
5
|
import { ActionHistory, ActionType, Actor, File as FileData, Form, OperationType } from 'verben-workflow-ui/src/lib/models';
|
|
4
6
|
import { EnvironmentService, HttpWebRequestService, UtilService } from 'verben-workflow-ui/src/lib/services';
|
|
5
7
|
import { TaskHistoryService } from './task-history.service';
|
|
@@ -10,20 +12,39 @@ export declare class TaskHistoryComponent implements OnInit {
|
|
|
10
12
|
private envSvc;
|
|
11
13
|
private utilService;
|
|
12
14
|
private server;
|
|
15
|
+
private sanitizer;
|
|
16
|
+
private cdr;
|
|
13
17
|
taskCode: import("@angular/core").InputSignal<string>;
|
|
14
18
|
operationType: typeof OperationType;
|
|
15
19
|
active: number;
|
|
16
20
|
showCommentBox: boolean;
|
|
17
21
|
newComment: string;
|
|
22
|
+
isRichEditor: boolean;
|
|
23
|
+
editorMode: EditorMode;
|
|
24
|
+
editorConfig: EditorConfig;
|
|
18
25
|
selectedFiles: FileData[];
|
|
19
26
|
activeForm: Form | null;
|
|
20
27
|
isFormViewerVisible: boolean;
|
|
21
|
-
constructor(_location: Location, service: TaskHistoryService, envSvc: EnvironmentService, utilService: UtilService, server: HttpWebRequestService);
|
|
28
|
+
constructor(_location: Location, service: TaskHistoryService, envSvc: EnvironmentService, utilService: UtilService, server: HttpWebRequestService, sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
|
|
22
29
|
history: ActionHistory[];
|
|
30
|
+
activeFormattedComment: SafeHtml;
|
|
31
|
+
activeDecodedComment: string;
|
|
32
|
+
isActiveHtml: boolean;
|
|
33
|
+
private formattedCommentCache;
|
|
34
|
+
private decodedCommentCache;
|
|
35
|
+
private isHtmlCache;
|
|
23
36
|
ngOnInit(): void;
|
|
24
37
|
goBack(): void;
|
|
25
38
|
setActive(i: number): void;
|
|
39
|
+
updateActiveComment(): void;
|
|
26
40
|
getTagsFromActor(actor: Actor): string;
|
|
41
|
+
setEditorMode(rich: boolean): void;
|
|
42
|
+
isCommentValid(): boolean;
|
|
43
|
+
copyStatusText: string;
|
|
44
|
+
decodeComment(content: string | null | undefined): string;
|
|
45
|
+
isHtml(content: string | null | undefined): boolean;
|
|
46
|
+
getFormattedComment(content: string | null | undefined): SafeHtml;
|
|
47
|
+
copyCommentText(content: string | null | undefined): Promise<void>;
|
|
27
48
|
addComment(): void;
|
|
28
49
|
saveComment(): Promise<void>;
|
|
29
50
|
onFileSelect(data: any): void;
|